diff --git a/CHANGELOG b/CHANGELOG index cb99cf40e..cb8dd7552 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2022-06-07 Version: 1.36.1142 +- Support ModifyDBClusterPayType. + 2022-05-31 Version: 1.36.1141 - Support aggregator delivery. diff --git a/VERSION b/VERSION index a67fc291d..7fb7eefeb 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1141 \ No newline at end of file +1.36.1142 \ No newline at end of file diff --git a/adb/CMakeLists.txt b/adb/CMakeLists.txt index 85fb86735..1251c3dd8 100644 --- a/adb/CMakeLists.txt +++ b/adb/CMakeLists.txt @@ -23,12 +23,16 @@ set(adb_public_header set(adb_public_header_model include/alibabacloud/adb/model/AllocateClusterPublicConnectionRequest.h include/alibabacloud/adb/model/AllocateClusterPublicConnectionResult.h + include/alibabacloud/adb/model/BindDBResourceGroupWithUserRequest.h + include/alibabacloud/adb/model/BindDBResourceGroupWithUserResult.h include/alibabacloud/adb/model/BindDBResourcePoolWithUserRequest.h include/alibabacloud/adb/model/BindDBResourcePoolWithUserResult.h include/alibabacloud/adb/model/CreateAccountRequest.h include/alibabacloud/adb/model/CreateAccountResult.h include/alibabacloud/adb/model/CreateDBClusterRequest.h include/alibabacloud/adb/model/CreateDBClusterResult.h + include/alibabacloud/adb/model/CreateDBResourceGroupRequest.h + include/alibabacloud/adb/model/CreateDBResourceGroupResult.h include/alibabacloud/adb/model/CreateDBResourcePoolRequest.h include/alibabacloud/adb/model/CreateDBResourcePoolResult.h include/alibabacloud/adb/model/CreateElasticPlanRequest.h @@ -37,6 +41,8 @@ set(adb_public_header_model include/alibabacloud/adb/model/DeleteAccountResult.h include/alibabacloud/adb/model/DeleteDBClusterRequest.h include/alibabacloud/adb/model/DeleteDBClusterResult.h + include/alibabacloud/adb/model/DeleteDBResourceGroupRequest.h + include/alibabacloud/adb/model/DeleteDBResourceGroupResult.h include/alibabacloud/adb/model/DeleteDBResourcePoolRequest.h include/alibabacloud/adb/model/DeleteDBResourcePoolResult.h include/alibabacloud/adb/model/DeleteElasticPlanRequest.h @@ -67,6 +73,10 @@ set(adb_public_header_model include/alibabacloud/adb/model/DescribeDBClusterAccessWhiteListResult.h include/alibabacloud/adb/model/DescribeDBClusterAttributeRequest.h include/alibabacloud/adb/model/DescribeDBClusterAttributeResult.h + include/alibabacloud/adb/model/DescribeDBClusterForecastRequest.h + include/alibabacloud/adb/model/DescribeDBClusterForecastResult.h + include/alibabacloud/adb/model/DescribeDBClusterHealthReportRequest.h + include/alibabacloud/adb/model/DescribeDBClusterHealthReportResult.h include/alibabacloud/adb/model/DescribeDBClusterNetInfoRequest.h include/alibabacloud/adb/model/DescribeDBClusterNetInfoResult.h include/alibabacloud/adb/model/DescribeDBClusterPerformanceRequest.h @@ -75,8 +85,16 @@ set(adb_public_header_model include/alibabacloud/adb/model/DescribeDBClusterResourcePoolPerformanceResult.h include/alibabacloud/adb/model/DescribeDBClustersRequest.h include/alibabacloud/adb/model/DescribeDBClustersResult.h + include/alibabacloud/adb/model/DescribeDBResourceGroupRequest.h + include/alibabacloud/adb/model/DescribeDBResourceGroupResult.h include/alibabacloud/adb/model/DescribeDBResourcePoolRequest.h include/alibabacloud/adb/model/DescribeDBResourcePoolResult.h + include/alibabacloud/adb/model/DescribeDiagnosisDimensionsRequest.h + include/alibabacloud/adb/model/DescribeDiagnosisDimensionsResult.h + include/alibabacloud/adb/model/DescribeDiagnosisRecordsRequest.h + include/alibabacloud/adb/model/DescribeDiagnosisRecordsResult.h + include/alibabacloud/adb/model/DescribeDownloadRecordsRequest.h + include/alibabacloud/adb/model/DescribeDownloadRecordsResult.h include/alibabacloud/adb/model/DescribeElasticDailyPlanRequest.h include/alibabacloud/adb/model/DescribeElasticDailyPlanResult.h include/alibabacloud/adb/model/DescribeElasticPlanRequest.h @@ -85,12 +103,20 @@ set(adb_public_header_model include/alibabacloud/adb/model/DescribeInclinedTablesResult.h include/alibabacloud/adb/model/DescribeLoadTasksRecordsRequest.h include/alibabacloud/adb/model/DescribeLoadTasksRecordsResult.h + include/alibabacloud/adb/model/DescribeMaintenanceActionRequest.h + include/alibabacloud/adb/model/DescribeMaintenanceActionResult.h include/alibabacloud/adb/model/DescribeOperatorPermissionRequest.h include/alibabacloud/adb/model/DescribeOperatorPermissionResult.h + include/alibabacloud/adb/model/DescribePatternPerformanceRequest.h + include/alibabacloud/adb/model/DescribePatternPerformanceResult.h include/alibabacloud/adb/model/DescribeProcessListRequest.h include/alibabacloud/adb/model/DescribeProcessListResult.h include/alibabacloud/adb/model/DescribeRegionsRequest.h include/alibabacloud/adb/model/DescribeRegionsResult.h + include/alibabacloud/adb/model/DescribeSQLPatternAttributeRequest.h + include/alibabacloud/adb/model/DescribeSQLPatternAttributeResult.h + include/alibabacloud/adb/model/DescribeSQLPatternsRequest.h + include/alibabacloud/adb/model/DescribeSQLPatternsResult.h include/alibabacloud/adb/model/DescribeSQLPlanRequest.h include/alibabacloud/adb/model/DescribeSQLPlanResult.h include/alibabacloud/adb/model/DescribeSQLPlanTaskRequest.h @@ -101,6 +127,10 @@ set(adb_public_header_model include/alibabacloud/adb/model/DescribeSlowLogRecordsResult.h include/alibabacloud/adb/model/DescribeSlowLogTrendRequest.h include/alibabacloud/adb/model/DescribeSlowLogTrendResult.h + include/alibabacloud/adb/model/DescribeSqlPatternRequest.h + include/alibabacloud/adb/model/DescribeSqlPatternResult.h + include/alibabacloud/adb/model/DescribeTableAccessCountRequest.h + include/alibabacloud/adb/model/DescribeTableAccessCountResult.h include/alibabacloud/adb/model/DescribeTableDetailRequest.h include/alibabacloud/adb/model/DescribeTableDetailResult.h include/alibabacloud/adb/model/DescribeTablePartitionDiagnoseRequest.h @@ -111,6 +141,8 @@ set(adb_public_header_model include/alibabacloud/adb/model/DescribeTablesResult.h include/alibabacloud/adb/model/DescribeTaskInfoRequest.h include/alibabacloud/adb/model/DescribeTaskInfoResult.h + include/alibabacloud/adb/model/DownloadDiagnosisRecordsRequest.h + include/alibabacloud/adb/model/DownloadDiagnosisRecordsResult.h include/alibabacloud/adb/model/GrantOperatorPermissionRequest.h include/alibabacloud/adb/model/GrantOperatorPermissionResult.h include/alibabacloud/adb/model/KillProcessRequest.h @@ -135,14 +167,20 @@ set(adb_public_header_model include/alibabacloud/adb/model/ModifyDBClusterDescriptionResult.h include/alibabacloud/adb/model/ModifyDBClusterMaintainTimeRequest.h include/alibabacloud/adb/model/ModifyDBClusterMaintainTimeResult.h + include/alibabacloud/adb/model/ModifyDBClusterPayTypeRequest.h + include/alibabacloud/adb/model/ModifyDBClusterPayTypeResult.h include/alibabacloud/adb/model/ModifyDBClusterResourceGroupRequest.h include/alibabacloud/adb/model/ModifyDBClusterResourceGroupResult.h + include/alibabacloud/adb/model/ModifyDBResourceGroupRequest.h + include/alibabacloud/adb/model/ModifyDBResourceGroupResult.h include/alibabacloud/adb/model/ModifyDBResourcePoolRequest.h include/alibabacloud/adb/model/ModifyDBResourcePoolResult.h include/alibabacloud/adb/model/ModifyElasticPlanRequest.h include/alibabacloud/adb/model/ModifyElasticPlanResult.h include/alibabacloud/adb/model/ModifyLogBackupPolicyRequest.h include/alibabacloud/adb/model/ModifyLogBackupPolicyResult.h + include/alibabacloud/adb/model/ModifyMaintenanceActionRequest.h + include/alibabacloud/adb/model/ModifyMaintenanceActionResult.h include/alibabacloud/adb/model/ReleaseClusterPublicConnectionRequest.h include/alibabacloud/adb/model/ReleaseClusterPublicConnectionResult.h include/alibabacloud/adb/model/ResetAccountPasswordRequest.h @@ -151,6 +189,8 @@ set(adb_public_header_model include/alibabacloud/adb/model/RevokeOperatorPermissionResult.h include/alibabacloud/adb/model/TagResourcesRequest.h include/alibabacloud/adb/model/TagResourcesResult.h + include/alibabacloud/adb/model/UnbindDBResourceGroupWithUserRequest.h + include/alibabacloud/adb/model/UnbindDBResourceGroupWithUserResult.h include/alibabacloud/adb/model/UnbindDBResourcePoolWithUserRequest.h include/alibabacloud/adb/model/UnbindDBResourcePoolWithUserResult.h include/alibabacloud/adb/model/UntagResourcesRequest.h @@ -160,12 +200,16 @@ set(adb_src src/AdbClient.cc src/model/AllocateClusterPublicConnectionRequest.cc src/model/AllocateClusterPublicConnectionResult.cc + src/model/BindDBResourceGroupWithUserRequest.cc + src/model/BindDBResourceGroupWithUserResult.cc src/model/BindDBResourcePoolWithUserRequest.cc src/model/BindDBResourcePoolWithUserResult.cc src/model/CreateAccountRequest.cc src/model/CreateAccountResult.cc src/model/CreateDBClusterRequest.cc src/model/CreateDBClusterResult.cc + src/model/CreateDBResourceGroupRequest.cc + src/model/CreateDBResourceGroupResult.cc src/model/CreateDBResourcePoolRequest.cc src/model/CreateDBResourcePoolResult.cc src/model/CreateElasticPlanRequest.cc @@ -174,6 +218,8 @@ set(adb_src src/model/DeleteAccountResult.cc src/model/DeleteDBClusterRequest.cc src/model/DeleteDBClusterResult.cc + src/model/DeleteDBResourceGroupRequest.cc + src/model/DeleteDBResourceGroupResult.cc src/model/DeleteDBResourcePoolRequest.cc src/model/DeleteDBResourcePoolResult.cc src/model/DeleteElasticPlanRequest.cc @@ -204,6 +250,10 @@ set(adb_src src/model/DescribeDBClusterAccessWhiteListResult.cc src/model/DescribeDBClusterAttributeRequest.cc src/model/DescribeDBClusterAttributeResult.cc + src/model/DescribeDBClusterForecastRequest.cc + src/model/DescribeDBClusterForecastResult.cc + src/model/DescribeDBClusterHealthReportRequest.cc + src/model/DescribeDBClusterHealthReportResult.cc src/model/DescribeDBClusterNetInfoRequest.cc src/model/DescribeDBClusterNetInfoResult.cc src/model/DescribeDBClusterPerformanceRequest.cc @@ -212,8 +262,16 @@ set(adb_src src/model/DescribeDBClusterResourcePoolPerformanceResult.cc src/model/DescribeDBClustersRequest.cc src/model/DescribeDBClustersResult.cc + src/model/DescribeDBResourceGroupRequest.cc + src/model/DescribeDBResourceGroupResult.cc src/model/DescribeDBResourcePoolRequest.cc src/model/DescribeDBResourcePoolResult.cc + src/model/DescribeDiagnosisDimensionsRequest.cc + src/model/DescribeDiagnosisDimensionsResult.cc + src/model/DescribeDiagnosisRecordsRequest.cc + src/model/DescribeDiagnosisRecordsResult.cc + src/model/DescribeDownloadRecordsRequest.cc + src/model/DescribeDownloadRecordsResult.cc src/model/DescribeElasticDailyPlanRequest.cc src/model/DescribeElasticDailyPlanResult.cc src/model/DescribeElasticPlanRequest.cc @@ -222,12 +280,20 @@ set(adb_src src/model/DescribeInclinedTablesResult.cc src/model/DescribeLoadTasksRecordsRequest.cc src/model/DescribeLoadTasksRecordsResult.cc + src/model/DescribeMaintenanceActionRequest.cc + src/model/DescribeMaintenanceActionResult.cc src/model/DescribeOperatorPermissionRequest.cc src/model/DescribeOperatorPermissionResult.cc + src/model/DescribePatternPerformanceRequest.cc + src/model/DescribePatternPerformanceResult.cc src/model/DescribeProcessListRequest.cc src/model/DescribeProcessListResult.cc src/model/DescribeRegionsRequest.cc src/model/DescribeRegionsResult.cc + src/model/DescribeSQLPatternAttributeRequest.cc + src/model/DescribeSQLPatternAttributeResult.cc + src/model/DescribeSQLPatternsRequest.cc + src/model/DescribeSQLPatternsResult.cc src/model/DescribeSQLPlanRequest.cc src/model/DescribeSQLPlanResult.cc src/model/DescribeSQLPlanTaskRequest.cc @@ -238,6 +304,10 @@ set(adb_src src/model/DescribeSlowLogRecordsResult.cc src/model/DescribeSlowLogTrendRequest.cc src/model/DescribeSlowLogTrendResult.cc + src/model/DescribeSqlPatternRequest.cc + src/model/DescribeSqlPatternResult.cc + src/model/DescribeTableAccessCountRequest.cc + src/model/DescribeTableAccessCountResult.cc src/model/DescribeTableDetailRequest.cc src/model/DescribeTableDetailResult.cc src/model/DescribeTablePartitionDiagnoseRequest.cc @@ -248,6 +318,8 @@ set(adb_src src/model/DescribeTablesResult.cc src/model/DescribeTaskInfoRequest.cc src/model/DescribeTaskInfoResult.cc + src/model/DownloadDiagnosisRecordsRequest.cc + src/model/DownloadDiagnosisRecordsResult.cc src/model/GrantOperatorPermissionRequest.cc src/model/GrantOperatorPermissionResult.cc src/model/KillProcessRequest.cc @@ -272,14 +344,20 @@ set(adb_src src/model/ModifyDBClusterDescriptionResult.cc src/model/ModifyDBClusterMaintainTimeRequest.cc src/model/ModifyDBClusterMaintainTimeResult.cc + src/model/ModifyDBClusterPayTypeRequest.cc + src/model/ModifyDBClusterPayTypeResult.cc src/model/ModifyDBClusterResourceGroupRequest.cc src/model/ModifyDBClusterResourceGroupResult.cc + src/model/ModifyDBResourceGroupRequest.cc + src/model/ModifyDBResourceGroupResult.cc src/model/ModifyDBResourcePoolRequest.cc src/model/ModifyDBResourcePoolResult.cc src/model/ModifyElasticPlanRequest.cc src/model/ModifyElasticPlanResult.cc src/model/ModifyLogBackupPolicyRequest.cc src/model/ModifyLogBackupPolicyResult.cc + src/model/ModifyMaintenanceActionRequest.cc + src/model/ModifyMaintenanceActionResult.cc src/model/ReleaseClusterPublicConnectionRequest.cc src/model/ReleaseClusterPublicConnectionResult.cc src/model/ResetAccountPasswordRequest.cc @@ -288,6 +366,8 @@ set(adb_src src/model/RevokeOperatorPermissionResult.cc src/model/TagResourcesRequest.cc src/model/TagResourcesResult.cc + src/model/UnbindDBResourceGroupWithUserRequest.cc + src/model/UnbindDBResourceGroupWithUserResult.cc src/model/UnbindDBResourcePoolWithUserRequest.cc src/model/UnbindDBResourcePoolWithUserResult.cc src/model/UntagResourcesRequest.cc diff --git a/adb/include/alibabacloud/adb/AdbClient.h b/adb/include/alibabacloud/adb/AdbClient.h index f4f07f251..9aa34a96a 100644 --- a/adb/include/alibabacloud/adb/AdbClient.h +++ b/adb/include/alibabacloud/adb/AdbClient.h @@ -24,12 +24,16 @@ #include "AdbExport.h" #include "model/AllocateClusterPublicConnectionRequest.h" #include "model/AllocateClusterPublicConnectionResult.h" +#include "model/BindDBResourceGroupWithUserRequest.h" +#include "model/BindDBResourceGroupWithUserResult.h" #include "model/BindDBResourcePoolWithUserRequest.h" #include "model/BindDBResourcePoolWithUserResult.h" #include "model/CreateAccountRequest.h" #include "model/CreateAccountResult.h" #include "model/CreateDBClusterRequest.h" #include "model/CreateDBClusterResult.h" +#include "model/CreateDBResourceGroupRequest.h" +#include "model/CreateDBResourceGroupResult.h" #include "model/CreateDBResourcePoolRequest.h" #include "model/CreateDBResourcePoolResult.h" #include "model/CreateElasticPlanRequest.h" @@ -38,6 +42,8 @@ #include "model/DeleteAccountResult.h" #include "model/DeleteDBClusterRequest.h" #include "model/DeleteDBClusterResult.h" +#include "model/DeleteDBResourceGroupRequest.h" +#include "model/DeleteDBResourceGroupResult.h" #include "model/DeleteDBResourcePoolRequest.h" #include "model/DeleteDBResourcePoolResult.h" #include "model/DeleteElasticPlanRequest.h" @@ -68,6 +74,10 @@ #include "model/DescribeDBClusterAccessWhiteListResult.h" #include "model/DescribeDBClusterAttributeRequest.h" #include "model/DescribeDBClusterAttributeResult.h" +#include "model/DescribeDBClusterForecastRequest.h" +#include "model/DescribeDBClusterForecastResult.h" +#include "model/DescribeDBClusterHealthReportRequest.h" +#include "model/DescribeDBClusterHealthReportResult.h" #include "model/DescribeDBClusterNetInfoRequest.h" #include "model/DescribeDBClusterNetInfoResult.h" #include "model/DescribeDBClusterPerformanceRequest.h" @@ -76,8 +86,16 @@ #include "model/DescribeDBClusterResourcePoolPerformanceResult.h" #include "model/DescribeDBClustersRequest.h" #include "model/DescribeDBClustersResult.h" +#include "model/DescribeDBResourceGroupRequest.h" +#include "model/DescribeDBResourceGroupResult.h" #include "model/DescribeDBResourcePoolRequest.h" #include "model/DescribeDBResourcePoolResult.h" +#include "model/DescribeDiagnosisDimensionsRequest.h" +#include "model/DescribeDiagnosisDimensionsResult.h" +#include "model/DescribeDiagnosisRecordsRequest.h" +#include "model/DescribeDiagnosisRecordsResult.h" +#include "model/DescribeDownloadRecordsRequest.h" +#include "model/DescribeDownloadRecordsResult.h" #include "model/DescribeElasticDailyPlanRequest.h" #include "model/DescribeElasticDailyPlanResult.h" #include "model/DescribeElasticPlanRequest.h" @@ -86,12 +104,20 @@ #include "model/DescribeInclinedTablesResult.h" #include "model/DescribeLoadTasksRecordsRequest.h" #include "model/DescribeLoadTasksRecordsResult.h" +#include "model/DescribeMaintenanceActionRequest.h" +#include "model/DescribeMaintenanceActionResult.h" #include "model/DescribeOperatorPermissionRequest.h" #include "model/DescribeOperatorPermissionResult.h" +#include "model/DescribePatternPerformanceRequest.h" +#include "model/DescribePatternPerformanceResult.h" #include "model/DescribeProcessListRequest.h" #include "model/DescribeProcessListResult.h" #include "model/DescribeRegionsRequest.h" #include "model/DescribeRegionsResult.h" +#include "model/DescribeSQLPatternAttributeRequest.h" +#include "model/DescribeSQLPatternAttributeResult.h" +#include "model/DescribeSQLPatternsRequest.h" +#include "model/DescribeSQLPatternsResult.h" #include "model/DescribeSQLPlanRequest.h" #include "model/DescribeSQLPlanResult.h" #include "model/DescribeSQLPlanTaskRequest.h" @@ -102,6 +128,10 @@ #include "model/DescribeSlowLogRecordsResult.h" #include "model/DescribeSlowLogTrendRequest.h" #include "model/DescribeSlowLogTrendResult.h" +#include "model/DescribeSqlPatternRequest.h" +#include "model/DescribeSqlPatternResult.h" +#include "model/DescribeTableAccessCountRequest.h" +#include "model/DescribeTableAccessCountResult.h" #include "model/DescribeTableDetailRequest.h" #include "model/DescribeTableDetailResult.h" #include "model/DescribeTablePartitionDiagnoseRequest.h" @@ -112,6 +142,8 @@ #include "model/DescribeTablesResult.h" #include "model/DescribeTaskInfoRequest.h" #include "model/DescribeTaskInfoResult.h" +#include "model/DownloadDiagnosisRecordsRequest.h" +#include "model/DownloadDiagnosisRecordsResult.h" #include "model/GrantOperatorPermissionRequest.h" #include "model/GrantOperatorPermissionResult.h" #include "model/KillProcessRequest.h" @@ -136,14 +168,20 @@ #include "model/ModifyDBClusterDescriptionResult.h" #include "model/ModifyDBClusterMaintainTimeRequest.h" #include "model/ModifyDBClusterMaintainTimeResult.h" +#include "model/ModifyDBClusterPayTypeRequest.h" +#include "model/ModifyDBClusterPayTypeResult.h" #include "model/ModifyDBClusterResourceGroupRequest.h" #include "model/ModifyDBClusterResourceGroupResult.h" +#include "model/ModifyDBResourceGroupRequest.h" +#include "model/ModifyDBResourceGroupResult.h" #include "model/ModifyDBResourcePoolRequest.h" #include "model/ModifyDBResourcePoolResult.h" #include "model/ModifyElasticPlanRequest.h" #include "model/ModifyElasticPlanResult.h" #include "model/ModifyLogBackupPolicyRequest.h" #include "model/ModifyLogBackupPolicyResult.h" +#include "model/ModifyMaintenanceActionRequest.h" +#include "model/ModifyMaintenanceActionResult.h" #include "model/ReleaseClusterPublicConnectionRequest.h" #include "model/ReleaseClusterPublicConnectionResult.h" #include "model/ResetAccountPasswordRequest.h" @@ -152,6 +190,8 @@ #include "model/RevokeOperatorPermissionResult.h" #include "model/TagResourcesRequest.h" #include "model/TagResourcesResult.h" +#include "model/UnbindDBResourceGroupWithUserRequest.h" +#include "model/UnbindDBResourceGroupWithUserResult.h" #include "model/UnbindDBResourcePoolWithUserRequest.h" #include "model/UnbindDBResourcePoolWithUserResult.h" #include "model/UntagResourcesRequest.h" @@ -168,6 +208,9 @@ namespace AlibabaCloud typedef Outcome AllocateClusterPublicConnectionOutcome; typedef std::future AllocateClusterPublicConnectionOutcomeCallable; typedef std::function&)> AllocateClusterPublicConnectionAsyncHandler; + typedef Outcome BindDBResourceGroupWithUserOutcome; + typedef std::future BindDBResourceGroupWithUserOutcomeCallable; + typedef std::function&)> BindDBResourceGroupWithUserAsyncHandler; typedef Outcome BindDBResourcePoolWithUserOutcome; typedef std::future BindDBResourcePoolWithUserOutcomeCallable; typedef std::function&)> BindDBResourcePoolWithUserAsyncHandler; @@ -177,6 +220,9 @@ namespace AlibabaCloud typedef Outcome CreateDBClusterOutcome; typedef std::future CreateDBClusterOutcomeCallable; typedef std::function&)> CreateDBClusterAsyncHandler; + typedef Outcome CreateDBResourceGroupOutcome; + typedef std::future CreateDBResourceGroupOutcomeCallable; + typedef std::function&)> CreateDBResourceGroupAsyncHandler; typedef Outcome CreateDBResourcePoolOutcome; typedef std::future CreateDBResourcePoolOutcomeCallable; typedef std::function&)> CreateDBResourcePoolAsyncHandler; @@ -189,6 +235,9 @@ namespace AlibabaCloud typedef Outcome DeleteDBClusterOutcome; typedef std::future DeleteDBClusterOutcomeCallable; typedef std::function&)> DeleteDBClusterAsyncHandler; + typedef Outcome DeleteDBResourceGroupOutcome; + typedef std::future DeleteDBResourceGroupOutcomeCallable; + typedef std::function&)> DeleteDBResourceGroupAsyncHandler; typedef Outcome DeleteDBResourcePoolOutcome; typedef std::future DeleteDBResourcePoolOutcomeCallable; typedef std::function&)> DeleteDBResourcePoolAsyncHandler; @@ -234,6 +283,12 @@ namespace AlibabaCloud typedef Outcome DescribeDBClusterAttributeOutcome; typedef std::future DescribeDBClusterAttributeOutcomeCallable; typedef std::function&)> DescribeDBClusterAttributeAsyncHandler; + typedef Outcome DescribeDBClusterForecastOutcome; + typedef std::future DescribeDBClusterForecastOutcomeCallable; + typedef std::function&)> DescribeDBClusterForecastAsyncHandler; + typedef Outcome DescribeDBClusterHealthReportOutcome; + typedef std::future DescribeDBClusterHealthReportOutcomeCallable; + typedef std::function&)> DescribeDBClusterHealthReportAsyncHandler; typedef Outcome DescribeDBClusterNetInfoOutcome; typedef std::future DescribeDBClusterNetInfoOutcomeCallable; typedef std::function&)> DescribeDBClusterNetInfoAsyncHandler; @@ -246,9 +301,21 @@ namespace AlibabaCloud typedef Outcome DescribeDBClustersOutcome; typedef std::future DescribeDBClustersOutcomeCallable; typedef std::function&)> DescribeDBClustersAsyncHandler; + typedef Outcome DescribeDBResourceGroupOutcome; + typedef std::future DescribeDBResourceGroupOutcomeCallable; + typedef std::function&)> DescribeDBResourceGroupAsyncHandler; typedef Outcome DescribeDBResourcePoolOutcome; typedef std::future DescribeDBResourcePoolOutcomeCallable; typedef std::function&)> DescribeDBResourcePoolAsyncHandler; + typedef Outcome DescribeDiagnosisDimensionsOutcome; + typedef std::future DescribeDiagnosisDimensionsOutcomeCallable; + typedef std::function&)> DescribeDiagnosisDimensionsAsyncHandler; + typedef Outcome DescribeDiagnosisRecordsOutcome; + typedef std::future DescribeDiagnosisRecordsOutcomeCallable; + typedef std::function&)> DescribeDiagnosisRecordsAsyncHandler; + typedef Outcome DescribeDownloadRecordsOutcome; + typedef std::future DescribeDownloadRecordsOutcomeCallable; + typedef std::function&)> DescribeDownloadRecordsAsyncHandler; typedef Outcome DescribeElasticDailyPlanOutcome; typedef std::future DescribeElasticDailyPlanOutcomeCallable; typedef std::function&)> DescribeElasticDailyPlanAsyncHandler; @@ -261,15 +328,27 @@ namespace AlibabaCloud typedef Outcome DescribeLoadTasksRecordsOutcome; typedef std::future DescribeLoadTasksRecordsOutcomeCallable; typedef std::function&)> DescribeLoadTasksRecordsAsyncHandler; + typedef Outcome DescribeMaintenanceActionOutcome; + typedef std::future DescribeMaintenanceActionOutcomeCallable; + typedef std::function&)> DescribeMaintenanceActionAsyncHandler; typedef Outcome DescribeOperatorPermissionOutcome; typedef std::future DescribeOperatorPermissionOutcomeCallable; typedef std::function&)> DescribeOperatorPermissionAsyncHandler; + typedef Outcome DescribePatternPerformanceOutcome; + typedef std::future DescribePatternPerformanceOutcomeCallable; + typedef std::function&)> DescribePatternPerformanceAsyncHandler; typedef Outcome DescribeProcessListOutcome; typedef std::future DescribeProcessListOutcomeCallable; typedef std::function&)> DescribeProcessListAsyncHandler; typedef Outcome DescribeRegionsOutcome; typedef std::future DescribeRegionsOutcomeCallable; typedef std::function&)> DescribeRegionsAsyncHandler; + typedef Outcome DescribeSQLPatternAttributeOutcome; + typedef std::future DescribeSQLPatternAttributeOutcomeCallable; + typedef std::function&)> DescribeSQLPatternAttributeAsyncHandler; + typedef Outcome DescribeSQLPatternsOutcome; + typedef std::future DescribeSQLPatternsOutcomeCallable; + typedef std::function&)> DescribeSQLPatternsAsyncHandler; typedef Outcome DescribeSQLPlanOutcome; typedef std::future DescribeSQLPlanOutcomeCallable; typedef std::function&)> DescribeSQLPlanAsyncHandler; @@ -285,6 +364,12 @@ namespace AlibabaCloud typedef Outcome DescribeSlowLogTrendOutcome; typedef std::future DescribeSlowLogTrendOutcomeCallable; typedef std::function&)> DescribeSlowLogTrendAsyncHandler; + typedef Outcome DescribeSqlPatternOutcome; + typedef std::future DescribeSqlPatternOutcomeCallable; + typedef std::function&)> DescribeSqlPatternAsyncHandler; + typedef Outcome DescribeTableAccessCountOutcome; + typedef std::future DescribeTableAccessCountOutcomeCallable; + typedef std::function&)> DescribeTableAccessCountAsyncHandler; typedef Outcome DescribeTableDetailOutcome; typedef std::future DescribeTableDetailOutcomeCallable; typedef std::function&)> DescribeTableDetailAsyncHandler; @@ -300,6 +385,9 @@ namespace AlibabaCloud typedef Outcome DescribeTaskInfoOutcome; typedef std::future DescribeTaskInfoOutcomeCallable; typedef std::function&)> DescribeTaskInfoAsyncHandler; + typedef Outcome DownloadDiagnosisRecordsOutcome; + typedef std::future DownloadDiagnosisRecordsOutcomeCallable; + typedef std::function&)> DownloadDiagnosisRecordsAsyncHandler; typedef Outcome GrantOperatorPermissionOutcome; typedef std::future GrantOperatorPermissionOutcomeCallable; typedef std::function&)> GrantOperatorPermissionAsyncHandler; @@ -336,9 +424,15 @@ namespace AlibabaCloud typedef Outcome ModifyDBClusterMaintainTimeOutcome; typedef std::future ModifyDBClusterMaintainTimeOutcomeCallable; typedef std::function&)> ModifyDBClusterMaintainTimeAsyncHandler; + typedef Outcome ModifyDBClusterPayTypeOutcome; + typedef std::future ModifyDBClusterPayTypeOutcomeCallable; + typedef std::function&)> ModifyDBClusterPayTypeAsyncHandler; typedef Outcome ModifyDBClusterResourceGroupOutcome; typedef std::future ModifyDBClusterResourceGroupOutcomeCallable; typedef std::function&)> ModifyDBClusterResourceGroupAsyncHandler; + typedef Outcome ModifyDBResourceGroupOutcome; + typedef std::future ModifyDBResourceGroupOutcomeCallable; + typedef std::function&)> ModifyDBResourceGroupAsyncHandler; typedef Outcome ModifyDBResourcePoolOutcome; typedef std::future ModifyDBResourcePoolOutcomeCallable; typedef std::function&)> ModifyDBResourcePoolAsyncHandler; @@ -348,6 +442,9 @@ namespace AlibabaCloud typedef Outcome ModifyLogBackupPolicyOutcome; typedef std::future ModifyLogBackupPolicyOutcomeCallable; typedef std::function&)> ModifyLogBackupPolicyAsyncHandler; + typedef Outcome ModifyMaintenanceActionOutcome; + typedef std::future ModifyMaintenanceActionOutcomeCallable; + typedef std::function&)> ModifyMaintenanceActionAsyncHandler; typedef Outcome ReleaseClusterPublicConnectionOutcome; typedef std::future ReleaseClusterPublicConnectionOutcomeCallable; typedef std::function&)> ReleaseClusterPublicConnectionAsyncHandler; @@ -360,6 +457,9 @@ namespace AlibabaCloud typedef Outcome TagResourcesOutcome; typedef std::future TagResourcesOutcomeCallable; typedef std::function&)> TagResourcesAsyncHandler; + typedef Outcome UnbindDBResourceGroupWithUserOutcome; + typedef std::future UnbindDBResourceGroupWithUserOutcomeCallable; + typedef std::function&)> UnbindDBResourceGroupWithUserAsyncHandler; typedef Outcome UnbindDBResourcePoolWithUserOutcome; typedef std::future UnbindDBResourcePoolWithUserOutcomeCallable; typedef std::function&)> UnbindDBResourcePoolWithUserAsyncHandler; @@ -374,6 +474,9 @@ namespace AlibabaCloud AllocateClusterPublicConnectionOutcome allocateClusterPublicConnection(const Model::AllocateClusterPublicConnectionRequest &request)const; void allocateClusterPublicConnectionAsync(const Model::AllocateClusterPublicConnectionRequest& request, const AllocateClusterPublicConnectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AllocateClusterPublicConnectionOutcomeCallable allocateClusterPublicConnectionCallable(const Model::AllocateClusterPublicConnectionRequest& request) const; + BindDBResourceGroupWithUserOutcome bindDBResourceGroupWithUser(const Model::BindDBResourceGroupWithUserRequest &request)const; + void bindDBResourceGroupWithUserAsync(const Model::BindDBResourceGroupWithUserRequest& request, const BindDBResourceGroupWithUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + BindDBResourceGroupWithUserOutcomeCallable bindDBResourceGroupWithUserCallable(const Model::BindDBResourceGroupWithUserRequest& request) const; BindDBResourcePoolWithUserOutcome bindDBResourcePoolWithUser(const Model::BindDBResourcePoolWithUserRequest &request)const; void bindDBResourcePoolWithUserAsync(const Model::BindDBResourcePoolWithUserRequest& request, const BindDBResourcePoolWithUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; BindDBResourcePoolWithUserOutcomeCallable bindDBResourcePoolWithUserCallable(const Model::BindDBResourcePoolWithUserRequest& request) const; @@ -383,6 +486,9 @@ namespace AlibabaCloud 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; + CreateDBResourceGroupOutcome createDBResourceGroup(const Model::CreateDBResourceGroupRequest &request)const; + void createDBResourceGroupAsync(const Model::CreateDBResourceGroupRequest& request, const CreateDBResourceGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateDBResourceGroupOutcomeCallable createDBResourceGroupCallable(const Model::CreateDBResourceGroupRequest& request) const; CreateDBResourcePoolOutcome createDBResourcePool(const Model::CreateDBResourcePoolRequest &request)const; void createDBResourcePoolAsync(const Model::CreateDBResourcePoolRequest& request, const CreateDBResourcePoolAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateDBResourcePoolOutcomeCallable createDBResourcePoolCallable(const Model::CreateDBResourcePoolRequest& request) const; @@ -395,6 +501,9 @@ namespace AlibabaCloud DeleteDBClusterOutcome deleteDBCluster(const Model::DeleteDBClusterRequest &request)const; void deleteDBClusterAsync(const Model::DeleteDBClusterRequest& request, const DeleteDBClusterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteDBClusterOutcomeCallable deleteDBClusterCallable(const Model::DeleteDBClusterRequest& request) const; + DeleteDBResourceGroupOutcome deleteDBResourceGroup(const Model::DeleteDBResourceGroupRequest &request)const; + void deleteDBResourceGroupAsync(const Model::DeleteDBResourceGroupRequest& request, const DeleteDBResourceGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteDBResourceGroupOutcomeCallable deleteDBResourceGroupCallable(const Model::DeleteDBResourceGroupRequest& request) const; DeleteDBResourcePoolOutcome deleteDBResourcePool(const Model::DeleteDBResourcePoolRequest &request)const; void deleteDBResourcePoolAsync(const Model::DeleteDBResourcePoolRequest& request, const DeleteDBResourcePoolAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteDBResourcePoolOutcomeCallable deleteDBResourcePoolCallable(const Model::DeleteDBResourcePoolRequest& request) const; @@ -440,6 +549,12 @@ namespace AlibabaCloud DescribeDBClusterAttributeOutcome describeDBClusterAttribute(const Model::DescribeDBClusterAttributeRequest &request)const; void describeDBClusterAttributeAsync(const Model::DescribeDBClusterAttributeRequest& request, const DescribeDBClusterAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDBClusterAttributeOutcomeCallable describeDBClusterAttributeCallable(const Model::DescribeDBClusterAttributeRequest& request) const; + DescribeDBClusterForecastOutcome describeDBClusterForecast(const Model::DescribeDBClusterForecastRequest &request)const; + void describeDBClusterForecastAsync(const Model::DescribeDBClusterForecastRequest& request, const DescribeDBClusterForecastAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDBClusterForecastOutcomeCallable describeDBClusterForecastCallable(const Model::DescribeDBClusterForecastRequest& request) const; + DescribeDBClusterHealthReportOutcome describeDBClusterHealthReport(const Model::DescribeDBClusterHealthReportRequest &request)const; + void describeDBClusterHealthReportAsync(const Model::DescribeDBClusterHealthReportRequest& request, const DescribeDBClusterHealthReportAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDBClusterHealthReportOutcomeCallable describeDBClusterHealthReportCallable(const Model::DescribeDBClusterHealthReportRequest& 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; @@ -452,9 +567,21 @@ namespace AlibabaCloud 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; + DescribeDBResourceGroupOutcome describeDBResourceGroup(const Model::DescribeDBResourceGroupRequest &request)const; + void describeDBResourceGroupAsync(const Model::DescribeDBResourceGroupRequest& request, const DescribeDBResourceGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDBResourceGroupOutcomeCallable describeDBResourceGroupCallable(const Model::DescribeDBResourceGroupRequest& request) const; DescribeDBResourcePoolOutcome describeDBResourcePool(const Model::DescribeDBResourcePoolRequest &request)const; void describeDBResourcePoolAsync(const Model::DescribeDBResourcePoolRequest& request, const DescribeDBResourcePoolAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDBResourcePoolOutcomeCallable describeDBResourcePoolCallable(const Model::DescribeDBResourcePoolRequest& request) const; + DescribeDiagnosisDimensionsOutcome describeDiagnosisDimensions(const Model::DescribeDiagnosisDimensionsRequest &request)const; + void describeDiagnosisDimensionsAsync(const Model::DescribeDiagnosisDimensionsRequest& request, const DescribeDiagnosisDimensionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDiagnosisDimensionsOutcomeCallable describeDiagnosisDimensionsCallable(const Model::DescribeDiagnosisDimensionsRequest& request) const; + DescribeDiagnosisRecordsOutcome describeDiagnosisRecords(const Model::DescribeDiagnosisRecordsRequest &request)const; + void describeDiagnosisRecordsAsync(const Model::DescribeDiagnosisRecordsRequest& request, const DescribeDiagnosisRecordsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDiagnosisRecordsOutcomeCallable describeDiagnosisRecordsCallable(const Model::DescribeDiagnosisRecordsRequest& request) const; + DescribeDownloadRecordsOutcome describeDownloadRecords(const Model::DescribeDownloadRecordsRequest &request)const; + void describeDownloadRecordsAsync(const Model::DescribeDownloadRecordsRequest& request, const DescribeDownloadRecordsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDownloadRecordsOutcomeCallable describeDownloadRecordsCallable(const Model::DescribeDownloadRecordsRequest& request) const; DescribeElasticDailyPlanOutcome describeElasticDailyPlan(const Model::DescribeElasticDailyPlanRequest &request)const; void describeElasticDailyPlanAsync(const Model::DescribeElasticDailyPlanRequest& request, const DescribeElasticDailyPlanAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeElasticDailyPlanOutcomeCallable describeElasticDailyPlanCallable(const Model::DescribeElasticDailyPlanRequest& request) const; @@ -467,15 +594,27 @@ namespace AlibabaCloud DescribeLoadTasksRecordsOutcome describeLoadTasksRecords(const Model::DescribeLoadTasksRecordsRequest &request)const; void describeLoadTasksRecordsAsync(const Model::DescribeLoadTasksRecordsRequest& request, const DescribeLoadTasksRecordsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeLoadTasksRecordsOutcomeCallable describeLoadTasksRecordsCallable(const Model::DescribeLoadTasksRecordsRequest& request) const; + DescribeMaintenanceActionOutcome describeMaintenanceAction(const Model::DescribeMaintenanceActionRequest &request)const; + void describeMaintenanceActionAsync(const Model::DescribeMaintenanceActionRequest& request, const DescribeMaintenanceActionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeMaintenanceActionOutcomeCallable describeMaintenanceActionCallable(const Model::DescribeMaintenanceActionRequest& request) const; DescribeOperatorPermissionOutcome describeOperatorPermission(const Model::DescribeOperatorPermissionRequest &request)const; void describeOperatorPermissionAsync(const Model::DescribeOperatorPermissionRequest& request, const DescribeOperatorPermissionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeOperatorPermissionOutcomeCallable describeOperatorPermissionCallable(const Model::DescribeOperatorPermissionRequest& request) const; + DescribePatternPerformanceOutcome describePatternPerformance(const Model::DescribePatternPerformanceRequest &request)const; + void describePatternPerformanceAsync(const Model::DescribePatternPerformanceRequest& request, const DescribePatternPerformanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribePatternPerformanceOutcomeCallable describePatternPerformanceCallable(const Model::DescribePatternPerformanceRequest& request) const; DescribeProcessListOutcome describeProcessList(const Model::DescribeProcessListRequest &request)const; void describeProcessListAsync(const Model::DescribeProcessListRequest& request, const DescribeProcessListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeProcessListOutcomeCallable describeProcessListCallable(const Model::DescribeProcessListRequest& 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; + DescribeSQLPatternAttributeOutcome describeSQLPatternAttribute(const Model::DescribeSQLPatternAttributeRequest &request)const; + void describeSQLPatternAttributeAsync(const Model::DescribeSQLPatternAttributeRequest& request, const DescribeSQLPatternAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSQLPatternAttributeOutcomeCallable describeSQLPatternAttributeCallable(const Model::DescribeSQLPatternAttributeRequest& request) const; + DescribeSQLPatternsOutcome describeSQLPatterns(const Model::DescribeSQLPatternsRequest &request)const; + void describeSQLPatternsAsync(const Model::DescribeSQLPatternsRequest& request, const DescribeSQLPatternsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSQLPatternsOutcomeCallable describeSQLPatternsCallable(const Model::DescribeSQLPatternsRequest& request) const; DescribeSQLPlanOutcome describeSQLPlan(const Model::DescribeSQLPlanRequest &request)const; void describeSQLPlanAsync(const Model::DescribeSQLPlanRequest& request, const DescribeSQLPlanAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeSQLPlanOutcomeCallable describeSQLPlanCallable(const Model::DescribeSQLPlanRequest& request) const; @@ -491,6 +630,12 @@ namespace AlibabaCloud DescribeSlowLogTrendOutcome describeSlowLogTrend(const Model::DescribeSlowLogTrendRequest &request)const; void describeSlowLogTrendAsync(const Model::DescribeSlowLogTrendRequest& request, const DescribeSlowLogTrendAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeSlowLogTrendOutcomeCallable describeSlowLogTrendCallable(const Model::DescribeSlowLogTrendRequest& request) const; + DescribeSqlPatternOutcome describeSqlPattern(const Model::DescribeSqlPatternRequest &request)const; + void describeSqlPatternAsync(const Model::DescribeSqlPatternRequest& request, const DescribeSqlPatternAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSqlPatternOutcomeCallable describeSqlPatternCallable(const Model::DescribeSqlPatternRequest& request) const; + DescribeTableAccessCountOutcome describeTableAccessCount(const Model::DescribeTableAccessCountRequest &request)const; + void describeTableAccessCountAsync(const Model::DescribeTableAccessCountRequest& request, const DescribeTableAccessCountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeTableAccessCountOutcomeCallable describeTableAccessCountCallable(const Model::DescribeTableAccessCountRequest& request) const; DescribeTableDetailOutcome describeTableDetail(const Model::DescribeTableDetailRequest &request)const; void describeTableDetailAsync(const Model::DescribeTableDetailRequest& request, const DescribeTableDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeTableDetailOutcomeCallable describeTableDetailCallable(const Model::DescribeTableDetailRequest& request) const; @@ -506,6 +651,9 @@ namespace AlibabaCloud DescribeTaskInfoOutcome describeTaskInfo(const Model::DescribeTaskInfoRequest &request)const; void describeTaskInfoAsync(const Model::DescribeTaskInfoRequest& request, const DescribeTaskInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeTaskInfoOutcomeCallable describeTaskInfoCallable(const Model::DescribeTaskInfoRequest& request) const; + DownloadDiagnosisRecordsOutcome downloadDiagnosisRecords(const Model::DownloadDiagnosisRecordsRequest &request)const; + void downloadDiagnosisRecordsAsync(const Model::DownloadDiagnosisRecordsRequest& request, const DownloadDiagnosisRecordsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DownloadDiagnosisRecordsOutcomeCallable downloadDiagnosisRecordsCallable(const Model::DownloadDiagnosisRecordsRequest& request) const; GrantOperatorPermissionOutcome grantOperatorPermission(const Model::GrantOperatorPermissionRequest &request)const; void grantOperatorPermissionAsync(const Model::GrantOperatorPermissionRequest& request, const GrantOperatorPermissionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GrantOperatorPermissionOutcomeCallable grantOperatorPermissionCallable(const Model::GrantOperatorPermissionRequest& request) const; @@ -542,9 +690,15 @@ namespace AlibabaCloud 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; + ModifyDBClusterPayTypeOutcome modifyDBClusterPayType(const Model::ModifyDBClusterPayTypeRequest &request)const; + void modifyDBClusterPayTypeAsync(const Model::ModifyDBClusterPayTypeRequest& request, const ModifyDBClusterPayTypeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDBClusterPayTypeOutcomeCallable modifyDBClusterPayTypeCallable(const Model::ModifyDBClusterPayTypeRequest& request) const; ModifyDBClusterResourceGroupOutcome modifyDBClusterResourceGroup(const Model::ModifyDBClusterResourceGroupRequest &request)const; void modifyDBClusterResourceGroupAsync(const Model::ModifyDBClusterResourceGroupRequest& request, const ModifyDBClusterResourceGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyDBClusterResourceGroupOutcomeCallable modifyDBClusterResourceGroupCallable(const Model::ModifyDBClusterResourceGroupRequest& request) const; + ModifyDBResourceGroupOutcome modifyDBResourceGroup(const Model::ModifyDBResourceGroupRequest &request)const; + void modifyDBResourceGroupAsync(const Model::ModifyDBResourceGroupRequest& request, const ModifyDBResourceGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDBResourceGroupOutcomeCallable modifyDBResourceGroupCallable(const Model::ModifyDBResourceGroupRequest& request) const; ModifyDBResourcePoolOutcome modifyDBResourcePool(const Model::ModifyDBResourcePoolRequest &request)const; void modifyDBResourcePoolAsync(const Model::ModifyDBResourcePoolRequest& request, const ModifyDBResourcePoolAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyDBResourcePoolOutcomeCallable modifyDBResourcePoolCallable(const Model::ModifyDBResourcePoolRequest& request) const; @@ -554,6 +708,9 @@ namespace AlibabaCloud ModifyLogBackupPolicyOutcome modifyLogBackupPolicy(const Model::ModifyLogBackupPolicyRequest &request)const; void modifyLogBackupPolicyAsync(const Model::ModifyLogBackupPolicyRequest& request, const ModifyLogBackupPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyLogBackupPolicyOutcomeCallable modifyLogBackupPolicyCallable(const Model::ModifyLogBackupPolicyRequest& request) const; + ModifyMaintenanceActionOutcome modifyMaintenanceAction(const Model::ModifyMaintenanceActionRequest &request)const; + void modifyMaintenanceActionAsync(const Model::ModifyMaintenanceActionRequest& request, const ModifyMaintenanceActionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyMaintenanceActionOutcomeCallable modifyMaintenanceActionCallable(const Model::ModifyMaintenanceActionRequest& request) const; ReleaseClusterPublicConnectionOutcome releaseClusterPublicConnection(const Model::ReleaseClusterPublicConnectionRequest &request)const; void releaseClusterPublicConnectionAsync(const Model::ReleaseClusterPublicConnectionRequest& request, const ReleaseClusterPublicConnectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ReleaseClusterPublicConnectionOutcomeCallable releaseClusterPublicConnectionCallable(const Model::ReleaseClusterPublicConnectionRequest& request) const; @@ -566,6 +723,9 @@ namespace AlibabaCloud TagResourcesOutcome tagResources(const Model::TagResourcesRequest &request)const; void tagResourcesAsync(const Model::TagResourcesRequest& request, const TagResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; TagResourcesOutcomeCallable tagResourcesCallable(const Model::TagResourcesRequest& request) const; + UnbindDBResourceGroupWithUserOutcome unbindDBResourceGroupWithUser(const Model::UnbindDBResourceGroupWithUserRequest &request)const; + void unbindDBResourceGroupWithUserAsync(const Model::UnbindDBResourceGroupWithUserRequest& request, const UnbindDBResourceGroupWithUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UnbindDBResourceGroupWithUserOutcomeCallable unbindDBResourceGroupWithUserCallable(const Model::UnbindDBResourceGroupWithUserRequest& request) const; UnbindDBResourcePoolWithUserOutcome unbindDBResourcePoolWithUser(const Model::UnbindDBResourcePoolWithUserRequest &request)const; void unbindDBResourcePoolWithUserAsync(const Model::UnbindDBResourcePoolWithUserRequest& request, const UnbindDBResourcePoolWithUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UnbindDBResourcePoolWithUserOutcomeCallable unbindDBResourcePoolWithUserCallable(const Model::UnbindDBResourcePoolWithUserRequest& request) const; diff --git a/adb/include/alibabacloud/adb/model/AllocateClusterPublicConnectionRequest.h b/adb/include/alibabacloud/adb/model/AllocateClusterPublicConnectionRequest.h index 046037d5f..640bc0b33 100644 --- a/adb/include/alibabacloud/adb/model/AllocateClusterPublicConnectionRequest.h +++ b/adb/include/alibabacloud/adb/model/AllocateClusterPublicConnectionRequest.h @@ -1,66 +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_ADB_MODEL_ALLOCATECLUSTERPUBLICCONNECTIONREQUEST_H_ -#define ALIBABACLOUD_ADB_MODEL_ALLOCATECLUSTERPUBLICCONNECTIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Adb - { - namespace Model - { - class ALIBABACLOUD_ADB_EXPORT AllocateClusterPublicConnectionRequest : public RpcServiceRequest - { - - public: - AllocateClusterPublicConnectionRequest(); - ~AllocateClusterPublicConnectionRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ADB_MODEL_ALLOCATECLUSTERPUBLICCONNECTIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_ALLOCATECLUSTERPUBLICCONNECTIONREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_ALLOCATECLUSTERPUBLICCONNECTIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT AllocateClusterPublicConnectionRequest : public RpcServiceRequest { +public: + AllocateClusterPublicConnectionRequest(); + ~AllocateClusterPublicConnectionRequest(); + 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 Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_ALLOCATECLUSTERPUBLICCONNECTIONREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/BindDBResourceGroupWithUserRequest.h b/adb/include/alibabacloud/adb/model/BindDBResourceGroupWithUserRequest.h new file mode 100644 index 000000000..85a6a9d44 --- /dev/null +++ b/adb/include/alibabacloud/adb/model/BindDBResourceGroupWithUserRequest.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_ADB_MODEL_BINDDBRESOURCEGROUPWITHUSERREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_BINDDBRESOURCEGROUPWITHUSERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT BindDBResourceGroupWithUserRequest : public RpcServiceRequest { +public: + BindDBResourceGroupWithUserRequest(); + ~BindDBResourceGroupWithUserRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getGroupUser() const; + void setGroupUser(const std::string &groupUser); + 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 getGroupName() const; + void setGroupName(const std::string &groupName); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string groupUser_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; + std::string groupName_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_BINDDBRESOURCEGROUPWITHUSERREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/BindDBResourceGroupWithUserResult.h b/adb/include/alibabacloud/adb/model/BindDBResourceGroupWithUserResult.h new file mode 100644 index 000000000..46b0c39c5 --- /dev/null +++ b/adb/include/alibabacloud/adb/model/BindDBResourceGroupWithUserResult.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_ADB_MODEL_BINDDBRESOURCEGROUPWITHUSERRESULT_H_ +#define ALIBABACLOUD_ADB_MODEL_BINDDBRESOURCEGROUPWITHUSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Adb + { + namespace Model + { + class ALIBABACLOUD_ADB_EXPORT BindDBResourceGroupWithUserResult : public ServiceResult + { + public: + + + BindDBResourceGroupWithUserResult(); + explicit BindDBResourceGroupWithUserResult(const std::string &payload); + ~BindDBResourceGroupWithUserResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ADB_MODEL_BINDDBRESOURCEGROUPWITHUSERRESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/BindDBResourcePoolWithUserRequest.h b/adb/include/alibabacloud/adb/model/BindDBResourcePoolWithUserRequest.h index d8f1d3923..0396c5aa9 100644 --- a/adb/include/alibabacloud/adb/model/BindDBResourcePoolWithUserRequest.h +++ b/adb/include/alibabacloud/adb/model/BindDBResourcePoolWithUserRequest.h @@ -1,69 +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_ADB_MODEL_BINDDBRESOURCEPOOLWITHUSERREQUEST_H_ -#define ALIBABACLOUD_ADB_MODEL_BINDDBRESOURCEPOOLWITHUSERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Adb - { - namespace Model - { - class ALIBABACLOUD_ADB_EXPORT BindDBResourcePoolWithUserRequest : public RpcServiceRequest - { - - public: - BindDBResourcePoolWithUserRequest(); - ~BindDBResourcePoolWithUserRequest(); - - std::string getPoolName()const; - void setPoolName(const std::string& poolName); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getPoolUser()const; - void setPoolUser(const std::string& poolUser); - 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: - std::string poolName_; - long resourceOwnerId_; - std::string poolUser_; - std::string accessKeyId_; - std::string resourceOwnerAccount_; - std::string dBClusterId_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ADB_MODEL_BINDDBRESOURCEPOOLWITHUSERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_BINDDBRESOURCEPOOLWITHUSERREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_BINDDBRESOURCEPOOLWITHUSERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT BindDBResourcePoolWithUserRequest : public RpcServiceRequest { +public: + BindDBResourcePoolWithUserRequest(); + ~BindDBResourcePoolWithUserRequest(); + std::string getPoolName() const; + void setPoolName(const std::string &poolName); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getPoolUser() const; + void setPoolUser(const std::string &poolUser); + 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: + std::string poolName_; + long resourceOwnerId_; + std::string poolUser_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_BINDDBRESOURCEPOOLWITHUSERREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/CreateAccountRequest.h b/adb/include/alibabacloud/adb/model/CreateAccountRequest.h index f0e72fe90..0ab3a6f15 100644 --- a/adb/include/alibabacloud/adb/model/CreateAccountRequest.h +++ b/adb/include/alibabacloud/adb/model/CreateAccountRequest.h @@ -1,75 +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_ADB_MODEL_CREATEACCOUNTREQUEST_H_ -#define ALIBABACLOUD_ADB_MODEL_CREATEACCOUNTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Adb - { - namespace Model - { - class ALIBABACLOUD_ADB_EXPORT CreateAccountRequest : public RpcServiceRequest - { - - public: - CreateAccountRequest(); - ~CreateAccountRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - 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 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 accountType_; - std::string accountDescription_; - std::string accessKeyId_; - std::string accountName_; - std::string resourceOwnerAccount_; - std::string dBClusterId_; - std::string ownerAccount_; - long ownerId_; - std::string accountPassword_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ADB_MODEL_CREATEACCOUNTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_CREATEACCOUNTREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_CREATEACCOUNTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT CreateAccountRequest : public RpcServiceRequest { +public: + CreateAccountRequest(); + ~CreateAccountRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + 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 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 accountType_; + std::string accountDescription_; + std::string accessKeyId_; + std::string accountName_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; + std::string accountPassword_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_CREATEACCOUNTREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/CreateDBClusterRequest.h b/adb/include/alibabacloud/adb/model/CreateDBClusterRequest.h index 9fe2f529e..bcc8ecb3b 100644 --- a/adb/include/alibabacloud/adb/model/CreateDBClusterRequest.h +++ b/adb/include/alibabacloud/adb/model/CreateDBClusterRequest.h @@ -1,135 +1,132 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ADB_MODEL_CREATEDBCLUSTERREQUEST_H_ -#define ALIBABACLOUD_ADB_MODEL_CREATEDBCLUSTERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Adb - { - namespace Model - { - class ALIBABACLOUD_ADB_EXPORT CreateDBClusterRequest : public RpcServiceRequest - { - - public: - CreateDBClusterRequest(); - ~CreateDBClusterRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getDBClusterDescription()const; - void setDBClusterDescription(const std::string& dBClusterDescription); - std::string getStorageType()const; - void setStorageType(const std::string& storageType); - std::string getMode()const; - void setMode(const std::string& mode); - std::string getResourceGroupId()const; - void setResourceGroupId(const std::string& resourceGroupId); - std::string getPeriod()const; - void setPeriod(const std::string& period); - std::string getBackupSetID()const; - void setBackupSetID(const std::string& backupSetID); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getDBNodeGroupCount()const; - void setDBNodeGroupCount(const std::string& dBNodeGroupCount); - std::string getVSwitchId()const; - void setVSwitchId(const std::string& vSwitchId); - std::string getZoneId()const; - void setZoneId(const std::string& zoneId); - std::string getComputeResource()const; - void setComputeResource(const std::string& computeResource); - std::string getSourceDBInstanceName()const; - void setSourceDBInstanceName(const std::string& sourceDBInstanceName); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getStorageResource()const; - void setStorageResource(const std::string& storageResource); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getDBClusterCategory()const; - void setDBClusterCategory(const std::string& dBClusterCategory); - std::string getDBClusterNetworkType()const; - void setDBClusterNetworkType(const std::string& dBClusterNetworkType); - std::string getRestoreTime()const; - void setRestoreTime(const std::string& restoreTime); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getDBClusterVersion()const; - void setDBClusterVersion(const std::string& dBClusterVersion); - std::string getDBClusterClass()const; - void setDBClusterClass(const std::string& dBClusterClass); - std::string getUsedTime()const; - void setUsedTime(const std::string& usedTime); - std::string getRestoreType()const; - void setRestoreType(const std::string& restoreType); - std::string getDBNodeStorage()const; - void setDBNodeStorage(const std::string& dBNodeStorage); - std::string getExecutorCount()const; - void setExecutorCount(const std::string& executorCount); - std::string getVPCId()const; - void setVPCId(const std::string& vPCId); - std::string getPayType()const; - void setPayType(const std::string& payType); - - private: - long resourceOwnerId_; - std::string dBClusterDescription_; - std::string storageType_; - std::string mode_; - std::string resourceGroupId_; - std::string period_; - std::string backupSetID_; - long ownerId_; - std::string dBNodeGroupCount_; - std::string vSwitchId_; - std::string zoneId_; - std::string computeResource_; - std::string sourceDBInstanceName_; - std::string clientToken_; - std::string accessKeyId_; - std::string storageResource_; - std::string regionId_; - std::string dBClusterCategory_; - std::string dBClusterNetworkType_; - std::string restoreTime_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string dBClusterVersion_; - std::string dBClusterClass_; - std::string usedTime_; - std::string restoreType_; - std::string dBNodeStorage_; - std::string executorCount_; - std::string vPCId_; - std::string payType_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ADB_MODEL_CREATEDBCLUSTERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_CREATEDBCLUSTERREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_CREATEDBCLUSTERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT CreateDBClusterRequest : public RpcServiceRequest { +public: + CreateDBClusterRequest(); + ~CreateDBClusterRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getDBClusterDescription() const; + void setDBClusterDescription(const std::string &dBClusterDescription); + std::string getStorageType() const; + void setStorageType(const std::string &storageType); + std::string getMode() const; + void setMode(const std::string &mode); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getPeriod() const; + void setPeriod(const std::string &period); + std::string getBackupSetID() const; + void setBackupSetID(const std::string &backupSetID); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getDBNodeGroupCount() const; + void setDBNodeGroupCount(const std::string &dBNodeGroupCount); + std::string getVSwitchId() const; + void setVSwitchId(const std::string &vSwitchId); + std::string getZoneId() const; + void setZoneId(const std::string &zoneId); + std::string getComputeResource() const; + void setComputeResource(const std::string &computeResource); + std::string getElasticIOResource() const; + void setElasticIOResource(const std::string &elasticIOResource); + std::string getSourceDBInstanceName() const; + void setSourceDBInstanceName(const std::string &sourceDBInstanceName); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getStorageResource() const; + void setStorageResource(const std::string &storageResource); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getDBClusterCategory() const; + void setDBClusterCategory(const std::string &dBClusterCategory); + std::string getDBClusterNetworkType() const; + void setDBClusterNetworkType(const std::string &dBClusterNetworkType); + std::string getRestoreTime() const; + void setRestoreTime(const std::string &restoreTime); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getDBClusterVersion() const; + void setDBClusterVersion(const std::string &dBClusterVersion); + std::string getDBClusterClass() const; + void setDBClusterClass(const std::string &dBClusterClass); + std::string getUsedTime() const; + void setUsedTime(const std::string &usedTime); + std::string getRestoreType() const; + void setRestoreType(const std::string &restoreType); + std::string getDBNodeStorage() const; + void setDBNodeStorage(const std::string &dBNodeStorage); + std::string getExecutorCount() const; + void setExecutorCount(const std::string &executorCount); + std::string getVPCId() const; + void setVPCId(const std::string &vPCId); + std::string getPayType() const; + void setPayType(const std::string &payType); + +private: + long resourceOwnerId_; + std::string dBClusterDescription_; + std::string storageType_; + std::string mode_; + std::string resourceGroupId_; + std::string period_; + std::string backupSetID_; + long ownerId_; + std::string dBNodeGroupCount_; + std::string vSwitchId_; + std::string zoneId_; + std::string computeResource_; + std::string elasticIOResource_; + std::string sourceDBInstanceName_; + std::string clientToken_; + std::string accessKeyId_; + std::string storageResource_; + std::string regionId_; + std::string dBClusterCategory_; + std::string dBClusterNetworkType_; + std::string restoreTime_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string dBClusterVersion_; + std::string dBClusterClass_; + std::string usedTime_; + std::string restoreType_; + std::string dBNodeStorage_; + std::string executorCount_; + std::string vPCId_; + std::string payType_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_CREATEDBCLUSTERREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/CreateDBResourceGroupRequest.h b/adb/include/alibabacloud/adb/model/CreateDBResourceGroupRequest.h new file mode 100644 index 000000000..358968f8b --- /dev/null +++ b/adb/include/alibabacloud/adb/model/CreateDBResourceGroupRequest.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_ADB_MODEL_CREATEDBRESOURCEGROUPREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_CREATEDBRESOURCEGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT CreateDBResourceGroupRequest : public RpcServiceRequest { +public: + CreateDBResourceGroupRequest(); + ~CreateDBResourceGroupRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getNodeNum() const; + void setNodeNum(int nodeNum); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getGroupType() const; + void setGroupType(const std::string &groupType); + 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 getGroupName() const; + void setGroupName(const std::string &groupName); + +private: + long resourceOwnerId_; + int nodeNum_; + std::string accessKeyId_; + std::string groupType_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; + std::string groupName_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_CREATEDBRESOURCEGROUPREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/CreateDBResourceGroupResult.h b/adb/include/alibabacloud/adb/model/CreateDBResourceGroupResult.h new file mode 100644 index 000000000..2c93a7583 --- /dev/null +++ b/adb/include/alibabacloud/adb/model/CreateDBResourceGroupResult.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_ADB_MODEL_CREATEDBRESOURCEGROUPRESULT_H_ +#define ALIBABACLOUD_ADB_MODEL_CREATEDBRESOURCEGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Adb + { + namespace Model + { + class ALIBABACLOUD_ADB_EXPORT CreateDBResourceGroupResult : public ServiceResult + { + public: + + + CreateDBResourceGroupResult(); + explicit CreateDBResourceGroupResult(const std::string &payload); + ~CreateDBResourceGroupResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ADB_MODEL_CREATEDBRESOURCEGROUPRESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/CreateDBResourcePoolRequest.h b/adb/include/alibabacloud/adb/model/CreateDBResourcePoolRequest.h index 895b50ca3..e59b00144 100644 --- a/adb/include/alibabacloud/adb/model/CreateDBResourcePoolRequest.h +++ b/adb/include/alibabacloud/adb/model/CreateDBResourcePoolRequest.h @@ -1,72 +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_ADB_MODEL_CREATEDBRESOURCEPOOLREQUEST_H_ -#define ALIBABACLOUD_ADB_MODEL_CREATEDBRESOURCEPOOLREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Adb - { - namespace Model - { - class ALIBABACLOUD_ADB_EXPORT CreateDBResourcePoolRequest : public RpcServiceRequest - { - - public: - CreateDBResourcePoolRequest(); - ~CreateDBResourcePoolRequest(); - - std::string getPoolName()const; - void setPoolName(const std::string& poolName); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - int getNodeNum()const; - void setNodeNum(int nodeNum); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getQueryType()const; - void setQueryType(const std::string& queryType); - 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: - std::string poolName_; - long resourceOwnerId_; - int nodeNum_; - std::string accessKeyId_; - std::string queryType_; - std::string resourceOwnerAccount_; - std::string dBClusterId_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ADB_MODEL_CREATEDBRESOURCEPOOLREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_CREATEDBRESOURCEPOOLREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_CREATEDBRESOURCEPOOLREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT CreateDBResourcePoolRequest : public RpcServiceRequest { +public: + CreateDBResourcePoolRequest(); + ~CreateDBResourcePoolRequest(); + std::string getPoolName() const; + void setPoolName(const std::string &poolName); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getNodeNum() const; + void setNodeNum(int nodeNum); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getQueryType() const; + void setQueryType(const std::string &queryType); + 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: + std::string poolName_; + long resourceOwnerId_; + int nodeNum_; + std::string accessKeyId_; + std::string queryType_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_CREATEDBRESOURCEPOOLREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/CreateElasticPlanRequest.h b/adb/include/alibabacloud/adb/model/CreateElasticPlanRequest.h index fda45b068..7b99458f3 100644 --- a/adb/include/alibabacloud/adb/model/CreateElasticPlanRequest.h +++ b/adb/include/alibabacloud/adb/model/CreateElasticPlanRequest.h @@ -1,90 +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_ADB_MODEL_CREATEELASTICPLANREQUEST_H_ -#define ALIBABACLOUD_ADB_MODEL_CREATEELASTICPLANREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Adb - { - namespace Model - { - class ALIBABACLOUD_ADB_EXPORT CreateElasticPlanRequest : public RpcServiceRequest - { - - public: - CreateElasticPlanRequest(); - ~CreateElasticPlanRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getElasticPlanTimeStart()const; - void setElasticPlanTimeStart(const std::string& elasticPlanTimeStart); - std::string getElasticPlanEndDay()const; - void setElasticPlanEndDay(const std::string& elasticPlanEndDay); - std::string getElasticPlanWeeklyRepeat()const; - void setElasticPlanWeeklyRepeat(const std::string& elasticPlanWeeklyRepeat); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - bool getElasticPlanEnable()const; - void setElasticPlanEnable(bool elasticPlanEnable); - std::string getElasticPlanTimeEnd()const; - void setElasticPlanTimeEnd(const std::string& elasticPlanTimeEnd); - std::string getElasticPlanStartDay()const; - void setElasticPlanStartDay(const std::string& elasticPlanStartDay); - 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 getElasticPlanName()const; - void setElasticPlanName(const std::string& elasticPlanName); - std::string getResourcePoolName()const; - void setResourcePoolName(const std::string& resourcePoolName); - int getElasticPlanNodeNum()const; - void setElasticPlanNodeNum(int elasticPlanNodeNum); - - private: - long resourceOwnerId_; - std::string elasticPlanTimeStart_; - std::string elasticPlanEndDay_; - std::string elasticPlanWeeklyRepeat_; - std::string accessKeyId_; - bool elasticPlanEnable_; - std::string elasticPlanTimeEnd_; - std::string elasticPlanStartDay_; - std::string resourceOwnerAccount_; - std::string dBClusterId_; - std::string ownerAccount_; - long ownerId_; - std::string elasticPlanName_; - std::string resourcePoolName_; - int elasticPlanNodeNum_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ADB_MODEL_CREATEELASTICPLANREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_CREATEELASTICPLANREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_CREATEELASTICPLANREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT CreateElasticPlanRequest : public RpcServiceRequest { +public: + CreateElasticPlanRequest(); + ~CreateElasticPlanRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getElasticPlanTimeStart() const; + void setElasticPlanTimeStart(const std::string &elasticPlanTimeStart); + std::string getElasticPlanEndDay() const; + void setElasticPlanEndDay(const std::string &elasticPlanEndDay); + std::string getElasticPlanWeeklyRepeat() const; + void setElasticPlanWeeklyRepeat(const std::string &elasticPlanWeeklyRepeat); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + bool getElasticPlanEnable() const; + void setElasticPlanEnable(bool elasticPlanEnable); + std::string getElasticPlanTimeEnd() const; + void setElasticPlanTimeEnd(const std::string &elasticPlanTimeEnd); + std::string getElasticPlanStartDay() const; + void setElasticPlanStartDay(const std::string &elasticPlanStartDay); + 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 getElasticPlanName() const; + void setElasticPlanName(const std::string &elasticPlanName); + std::string getResourcePoolName() const; + void setResourcePoolName(const std::string &resourcePoolName); + int getElasticPlanNodeNum() const; + void setElasticPlanNodeNum(int elasticPlanNodeNum); + +private: + long resourceOwnerId_; + std::string elasticPlanTimeStart_; + std::string elasticPlanEndDay_; + std::string elasticPlanWeeklyRepeat_; + std::string accessKeyId_; + bool elasticPlanEnable_; + std::string elasticPlanTimeEnd_; + std::string elasticPlanStartDay_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; + std::string elasticPlanName_; + std::string resourcePoolName_; + int elasticPlanNodeNum_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_CREATEELASTICPLANREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/DeleteAccountRequest.h b/adb/include/alibabacloud/adb/model/DeleteAccountRequest.h index a1c32a332..749dd8f44 100644 --- a/adb/include/alibabacloud/adb/model/DeleteAccountRequest.h +++ b/adb/include/alibabacloud/adb/model/DeleteAccountRequest.h @@ -1,69 +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_ADB_MODEL_DELETEACCOUNTREQUEST_H_ -#define ALIBABACLOUD_ADB_MODEL_DELETEACCOUNTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Adb - { - namespace Model - { - class ALIBABACLOUD_ADB_EXPORT DeleteAccountRequest : public RpcServiceRequest - { - - public: - DeleteAccountRequest(); - ~DeleteAccountRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAccountType()const; - void setAccountType(const std::string& accountType); - 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 accountType_; - std::string accessKeyId_; - std::string accountName_; - std::string resourceOwnerAccount_; - std::string dBClusterId_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ADB_MODEL_DELETEACCOUNTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_DELETEACCOUNTREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_DELETEACCOUNTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT DeleteAccountRequest : public RpcServiceRequest { +public: + DeleteAccountRequest(); + ~DeleteAccountRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccountType() const; + void setAccountType(const std::string &accountType); + 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 accountType_; + std::string accessKeyId_; + std::string accountName_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_DELETEACCOUNTREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/DeleteDBClusterRequest.h b/adb/include/alibabacloud/adb/model/DeleteDBClusterRequest.h index 4b17ecef0..2c11ccf24 100644 --- a/adb/include/alibabacloud/adb/model/DeleteDBClusterRequest.h +++ b/adb/include/alibabacloud/adb/model/DeleteDBClusterRequest.h @@ -1,63 +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_ADB_MODEL_DELETEDBCLUSTERREQUEST_H_ -#define ALIBABACLOUD_ADB_MODEL_DELETEDBCLUSTERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Adb - { - namespace Model - { - class ALIBABACLOUD_ADB_EXPORT DeleteDBClusterRequest : public RpcServiceRequest - { - - public: - DeleteDBClusterRequest(); - ~DeleteDBClusterRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ADB_MODEL_DELETEDBCLUSTERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_DELETEDBCLUSTERREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_DELETEDBCLUSTERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT DeleteDBClusterRequest : public RpcServiceRequest { +public: + DeleteDBClusterRequest(); + ~DeleteDBClusterRequest(); + 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 Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_DELETEDBCLUSTERREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/DeleteDBResourceGroupRequest.h b/adb/include/alibabacloud/adb/model/DeleteDBResourceGroupRequest.h new file mode 100644 index 000000000..050cdd985 --- /dev/null +++ b/adb/include/alibabacloud/adb/model/DeleteDBResourceGroupRequest.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_ADB_MODEL_DELETEDBRESOURCEGROUPREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_DELETEDBRESOURCEGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT DeleteDBResourceGroupRequest : public RpcServiceRequest { +public: + DeleteDBResourceGroupRequest(); + ~DeleteDBResourceGroupRequest(); + 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 getGroupName() const; + void setGroupName(const std::string &groupName); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; + std::string groupName_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_DELETEDBRESOURCEGROUPREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/DeleteDBResourceGroupResult.h b/adb/include/alibabacloud/adb/model/DeleteDBResourceGroupResult.h new file mode 100644 index 000000000..d2741c242 --- /dev/null +++ b/adb/include/alibabacloud/adb/model/DeleteDBResourceGroupResult.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_ADB_MODEL_DELETEDBRESOURCEGROUPRESULT_H_ +#define ALIBABACLOUD_ADB_MODEL_DELETEDBRESOURCEGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Adb + { + namespace Model + { + class ALIBABACLOUD_ADB_EXPORT DeleteDBResourceGroupResult : public ServiceResult + { + public: + + + DeleteDBResourceGroupResult(); + explicit DeleteDBResourceGroupResult(const std::string &payload); + ~DeleteDBResourceGroupResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ADB_MODEL_DELETEDBRESOURCEGROUPRESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/DeleteDBResourcePoolRequest.h b/adb/include/alibabacloud/adb/model/DeleteDBResourcePoolRequest.h index f77e5f065..a0876f568 100644 --- a/adb/include/alibabacloud/adb/model/DeleteDBResourcePoolRequest.h +++ b/adb/include/alibabacloud/adb/model/DeleteDBResourcePoolRequest.h @@ -1,66 +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_ADB_MODEL_DELETEDBRESOURCEPOOLREQUEST_H_ -#define ALIBABACLOUD_ADB_MODEL_DELETEDBRESOURCEPOOLREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Adb - { - namespace Model - { - class ALIBABACLOUD_ADB_EXPORT DeleteDBResourcePoolRequest : public RpcServiceRequest - { - - public: - DeleteDBResourcePoolRequest(); - ~DeleteDBResourcePoolRequest(); - - std::string getPoolName()const; - void setPoolName(const std::string& poolName); - 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: - std::string poolName_; - long resourceOwnerId_; - std::string accessKeyId_; - std::string resourceOwnerAccount_; - std::string dBClusterId_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ADB_MODEL_DELETEDBRESOURCEPOOLREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_DELETEDBRESOURCEPOOLREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_DELETEDBRESOURCEPOOLREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT DeleteDBResourcePoolRequest : public RpcServiceRequest { +public: + DeleteDBResourcePoolRequest(); + ~DeleteDBResourcePoolRequest(); + std::string getPoolName() const; + void setPoolName(const std::string &poolName); + 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: + std::string poolName_; + long resourceOwnerId_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_DELETEDBRESOURCEPOOLREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/DeleteElasticPlanRequest.h b/adb/include/alibabacloud/adb/model/DeleteElasticPlanRequest.h index ca82b6863..ecb78ac26 100644 --- a/adb/include/alibabacloud/adb/model/DeleteElasticPlanRequest.h +++ b/adb/include/alibabacloud/adb/model/DeleteElasticPlanRequest.h @@ -1,66 +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_ADB_MODEL_DELETEELASTICPLANREQUEST_H_ -#define ALIBABACLOUD_ADB_MODEL_DELETEELASTICPLANREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Adb - { - namespace Model - { - class ALIBABACLOUD_ADB_EXPORT DeleteElasticPlanRequest : public RpcServiceRequest - { - - public: - DeleteElasticPlanRequest(); - ~DeleteElasticPlanRequest(); - - 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 getElasticPlanName()const; - void setElasticPlanName(const std::string& elasticPlanName); - - private: - long resourceOwnerId_; - std::string accessKeyId_; - std::string resourceOwnerAccount_; - std::string dBClusterId_; - std::string ownerAccount_; - long ownerId_; - std::string elasticPlanName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ADB_MODEL_DELETEELASTICPLANREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_DELETEELASTICPLANREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_DELETEELASTICPLANREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT DeleteElasticPlanRequest : public RpcServiceRequest { +public: + DeleteElasticPlanRequest(); + ~DeleteElasticPlanRequest(); + 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 getElasticPlanName() const; + void setElasticPlanName(const std::string &elasticPlanName); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; + std::string elasticPlanName_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_DELETEELASTICPLANREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/DescribeAccountsRequest.h b/adb/include/alibabacloud/adb/model/DescribeAccountsRequest.h index b0c9ee231..dcee0b9f6 100644 --- a/adb/include/alibabacloud/adb/model/DescribeAccountsRequest.h +++ b/adb/include/alibabacloud/adb/model/DescribeAccountsRequest.h @@ -1,69 +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_ADB_MODEL_DESCRIBEACCOUNTSREQUEST_H_ -#define ALIBABACLOUD_ADB_MODEL_DESCRIBEACCOUNTSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Adb - { - namespace Model - { - class ALIBABACLOUD_ADB_EXPORT DescribeAccountsRequest : public RpcServiceRequest - { - - public: - DescribeAccountsRequest(); - ~DescribeAccountsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAccountType()const; - void setAccountType(const std::string& accountType); - 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 accountType_; - std::string accessKeyId_; - std::string accountName_; - std::string resourceOwnerAccount_; - std::string dBClusterId_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEACCOUNTSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBEACCOUNTSREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBEACCOUNTSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT DescribeAccountsRequest : public RpcServiceRequest { +public: + DescribeAccountsRequest(); + ~DescribeAccountsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccountType() const; + void setAccountType(const std::string &accountType); + 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 accountType_; + std::string accessKeyId_; + std::string accountName_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEACCOUNTSREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/DescribeAllAccountsRequest.h b/adb/include/alibabacloud/adb/model/DescribeAllAccountsRequest.h index fa1149481..41084efe0 100644 --- a/adb/include/alibabacloud/adb/model/DescribeAllAccountsRequest.h +++ b/adb/include/alibabacloud/adb/model/DescribeAllAccountsRequest.h @@ -1,63 +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_ADB_MODEL_DESCRIBEALLACCOUNTSREQUEST_H_ -#define ALIBABACLOUD_ADB_MODEL_DESCRIBEALLACCOUNTSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Adb - { - namespace Model - { - class ALIBABACLOUD_ADB_EXPORT DescribeAllAccountsRequest : public RpcServiceRequest - { - - public: - DescribeAllAccountsRequest(); - ~DescribeAllAccountsRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEALLACCOUNTSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBEALLACCOUNTSREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBEALLACCOUNTSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT DescribeAllAccountsRequest : public RpcServiceRequest { +public: + DescribeAllAccountsRequest(); + ~DescribeAllAccountsRequest(); + 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 Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEALLACCOUNTSREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/DescribeAllDataSourceRequest.h b/adb/include/alibabacloud/adb/model/DescribeAllDataSourceRequest.h index 3e0fac4e7..244b5d4d8 100644 --- a/adb/include/alibabacloud/adb/model/DescribeAllDataSourceRequest.h +++ b/adb/include/alibabacloud/adb/model/DescribeAllDataSourceRequest.h @@ -1,69 +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_ADB_MODEL_DESCRIBEALLDATASOURCEREQUEST_H_ -#define ALIBABACLOUD_ADB_MODEL_DESCRIBEALLDATASOURCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Adb - { - namespace Model - { - class ALIBABACLOUD_ADB_EXPORT DescribeAllDataSourceRequest : public RpcServiceRequest - { - - public: - DescribeAllDataSourceRequest(); - ~DescribeAllDataSourceRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getTableName()const; - void setTableName(const std::string& tableName); - std::string getSchemaName()const; - void setSchemaName(const std::string& schemaName); - 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 tableName_; - std::string schemaName_; - std::string resourceOwnerAccount_; - std::string dBClusterId_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEALLDATASOURCEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBEALLDATASOURCEREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBEALLDATASOURCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT DescribeAllDataSourceRequest : public RpcServiceRequest { +public: + DescribeAllDataSourceRequest(); + ~DescribeAllDataSourceRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getTableName() const; + void setTableName(const std::string &tableName); + std::string getSchemaName() const; + void setSchemaName(const std::string &schemaName); + 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 tableName_; + std::string schemaName_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEALLDATASOURCEREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/DescribeAllDataSourceResult.h b/adb/include/alibabacloud/adb/model/DescribeAllDataSourceResult.h index af4a96a21..36a325902 100644 --- a/adb/include/alibabacloud/adb/model/DescribeAllDataSourceResult.h +++ b/adb/include/alibabacloud/adb/model/DescribeAllDataSourceResult.h @@ -32,11 +32,6 @@ namespace AlibabaCloud class ALIBABACLOUD_ADB_EXPORT DescribeAllDataSourceResult : public ServiceResult { public: - struct Schema - { - std::string dBClusterId; - std::string schemaName; - }; struct Table { std::string tableName; @@ -45,14 +40,19 @@ namespace AlibabaCloud }; struct Column { - std::string tableName; std::string columnName; + std::string tableName; std::string type; bool autoIncrementColumn; std::string dBClusterId; bool primaryKey; std::string schemaName; }; + struct Schema + { + std::string dBClusterId; + std::string schemaName; + }; DescribeAllDataSourceResult(); diff --git a/adb/include/alibabacloud/adb/model/DescribeAuditLogConfigRequest.h b/adb/include/alibabacloud/adb/model/DescribeAuditLogConfigRequest.h index 8e760e8df..98662e641 100644 --- a/adb/include/alibabacloud/adb/model/DescribeAuditLogConfigRequest.h +++ b/adb/include/alibabacloud/adb/model/DescribeAuditLogConfigRequest.h @@ -1,66 +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_ADB_MODEL_DESCRIBEAUDITLOGCONFIGREQUEST_H_ -#define ALIBABACLOUD_ADB_MODEL_DESCRIBEAUDITLOGCONFIGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Adb - { - namespace Model - { - class ALIBABACLOUD_ADB_EXPORT DescribeAuditLogConfigRequest : public RpcServiceRequest - { - - public: - DescribeAuditLogConfigRequest(); - ~DescribeAuditLogConfigRequest(); - - 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& regionId); - 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 regionId_; - std::string resourceOwnerAccount_; - std::string dBClusterId_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEAUDITLOGCONFIGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBEAUDITLOGCONFIGREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBEAUDITLOGCONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT DescribeAuditLogConfigRequest : public RpcServiceRequest { +public: + DescribeAuditLogConfigRequest(); + ~DescribeAuditLogConfigRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + 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 getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; + std::string accessKeyId_; + std::string regionId_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEAUDITLOGCONFIGREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/DescribeAuditLogRecordsRequest.h b/adb/include/alibabacloud/adb/model/DescribeAuditLogRecordsRequest.h index 42df3e877..aecf1e307 100644 --- a/adb/include/alibabacloud/adb/model/DescribeAuditLogRecordsRequest.h +++ b/adb/include/alibabacloud/adb/model/DescribeAuditLogRecordsRequest.h @@ -1,99 +1,96 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBEAUDITLOGRECORDSREQUEST_H_ -#define ALIBABACLOUD_ADB_MODEL_DESCRIBEAUDITLOGRECORDSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Adb - { - namespace Model - { - class ALIBABACLOUD_ADB_EXPORT DescribeAuditLogRecordsRequest : public RpcServiceRequest - { - - public: - DescribeAuditLogRecordsRequest(); - ~DescribeAuditLogRecordsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getStartTime()const; - void setStartTime(const std::string& startTime); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getHostAddress()const; - void setHostAddress(const std::string& hostAddress); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getSqlType()const; - void setSqlType(const std::string& sqlType); - 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 getQueryKeyword()const; - void setQueryKeyword(const std::string& queryKeyword); - std::string getEndTime()const; - void setEndTime(const std::string& endTime); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getDBName()const; - void setDBName(const std::string& dBName); - std::string getSucceed()const; - void setSucceed(const std::string& succeed); - std::string getUser()const; - void setUser(const std::string& user); - std::string getOrderType()const; - void setOrderType(const std::string& orderType); - - private: - long resourceOwnerId_; - std::string startTime_; - int pageNumber_; - std::string accessKeyId_; - std::string hostAddress_; - std::string regionId_; - int pageSize_; - std::string sqlType_; - std::string resourceOwnerAccount_; - std::string dBClusterId_; - std::string ownerAccount_; - std::string queryKeyword_; - std::string endTime_; - long ownerId_; - std::string dBName_; - std::string succeed_; - std::string user_; - std::string orderType_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEAUDITLOGRECORDSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBEAUDITLOGRECORDSREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBEAUDITLOGRECORDSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT DescribeAuditLogRecordsRequest : public RpcServiceRequest { +public: + DescribeAuditLogRecordsRequest(); + ~DescribeAuditLogRecordsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getHostAddress() const; + void setHostAddress(const std::string &hostAddress); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getOrder() const; + void setOrder(const std::string &order); + std::string getSqlType() const; + void setSqlType(const std::string &sqlType); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getQueryKeyword() const; + void setQueryKeyword(const std::string &queryKeyword); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getEndTime() const; + void setEndTime(const std::string &endTime); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getDBName() const; + void setDBName(const std::string &dBName); + std::string getSucceed() const; + void setSucceed(const std::string &succeed); + std::string getUser() const; + void setUser(const std::string &user); + std::string getOrderType() const; + void setOrderType(const std::string &orderType); + +private: + long resourceOwnerId_; + std::string startTime_; + int pageNumber_; + std::string accessKeyId_; + std::string hostAddress_; + std::string regionId_; + int pageSize_; + std::string order_; + std::string sqlType_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string queryKeyword_; + std::string ownerAccount_; + std::string endTime_; + long ownerId_; + std::string dBName_; + std::string succeed_; + std::string user_; + std::string orderType_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEAUDITLOGRECORDSREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/DescribeAuditLogRecordsResult.h b/adb/include/alibabacloud/adb/model/DescribeAuditLogRecordsResult.h index 7cc863dc4..14e723fda 100644 --- a/adb/include/alibabacloud/adb/model/DescribeAuditLogRecordsResult.h +++ b/adb/include/alibabacloud/adb/model/DescribeAuditLogRecordsResult.h @@ -35,14 +35,15 @@ namespace AlibabaCloud struct SlowLogRecord { std::string connId; + std::string user; std::string executeTime; std::string totalTime; std::string dBName; std::string processID; std::string hostAddress; std::string sQLType; - std::string sQLText; std::string succeed; + std::string sQLText; }; diff --git a/adb/include/alibabacloud/adb/model/DescribeAutoRenewAttributeRequest.h b/adb/include/alibabacloud/adb/model/DescribeAutoRenewAttributeRequest.h index 01abe0bba..a2be521cb 100644 --- a/adb/include/alibabacloud/adb/model/DescribeAutoRenewAttributeRequest.h +++ b/adb/include/alibabacloud/adb/model/DescribeAutoRenewAttributeRequest.h @@ -1,75 +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_ADB_MODEL_DESCRIBEAUTORENEWATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_ADB_MODEL_DESCRIBEAUTORENEWATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Adb - { - namespace Model - { - class ALIBABACLOUD_ADB_EXPORT DescribeAutoRenewAttributeRequest : public RpcServiceRequest - { - - public: - DescribeAutoRenewAttributeRequest(); - ~DescribeAutoRenewAttributeRequest(); - - 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 getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getDBClusterIds()const; - void setDBClusterIds(const std::string& dBClusterIds); - - private: - long resourceOwnerId_; - int pageNumber_; - std::string accessKeyId_; - std::string resourceGroupId_; - std::string regionId_; - int pageSize_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string dBClusterIds_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEAUTORENEWATTRIBUTEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBEAUTORENEWATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBEAUTORENEWATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT DescribeAutoRenewAttributeRequest : public RpcServiceRequest { +public: + DescribeAutoRenewAttributeRequest(); + ~DescribeAutoRenewAttributeRequest(); + 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 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 getDBClusterIds() const; + void setDBClusterIds(const std::string &dBClusterIds); + +private: + long resourceOwnerId_; + int pageNumber_; + std::string accessKeyId_; + std::string resourceGroupId_; + std::string regionId_; + int pageSize_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string dBClusterIds_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEAUTORENEWATTRIBUTEREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/DescribeAvailableResourceRequest.h b/adb/include/alibabacloud/adb/model/DescribeAvailableResourceRequest.h index 03742f887..cfa9c4e63 100644 --- a/adb/include/alibabacloud/adb/model/DescribeAvailableResourceRequest.h +++ b/adb/include/alibabacloud/adb/model/DescribeAvailableResourceRequest.h @@ -1,72 +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_ADB_MODEL_DESCRIBEAVAILABLERESOURCEREQUEST_H_ -#define ALIBABACLOUD_ADB_MODEL_DESCRIBEAVAILABLERESOURCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Adb - { - namespace Model - { - class ALIBABACLOUD_ADB_EXPORT DescribeAvailableResourceRequest : public RpcServiceRequest - { - - public: - DescribeAvailableResourceRequest(); - ~DescribeAvailableResourceRequest(); - - 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& regionId); - 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 getAcceptLanguage()const; - void setAcceptLanguage(const std::string& acceptLanguage); - std::string getZoneId()const; - void setZoneId(const std::string& zoneId); - std::string getChargeType()const; - void setChargeType(const std::string& chargeType); - - private: - long resourceOwnerId_; - std::string accessKeyId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string acceptLanguage_; - std::string zoneId_; - std::string chargeType_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEAVAILABLERESOURCEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBEAVAILABLERESOURCEREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBEAVAILABLERESOURCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT DescribeAvailableResourceRequest : public RpcServiceRequest { +public: + DescribeAvailableResourceRequest(); + ~DescribeAvailableResourceRequest(); + 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 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 getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + std::string getZoneId() const; + void setZoneId(const std::string &zoneId); + std::string getChargeType() const; + void setChargeType(const std::string &chargeType); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string acceptLanguage_; + std::string zoneId_; + std::string chargeType_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEAVAILABLERESOURCEREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/DescribeAvailableResourceResult.h b/adb/include/alibabacloud/adb/model/DescribeAvailableResourceResult.h index 32c63ffd8..0f9912751 100644 --- a/adb/include/alibabacloud/adb/model/DescribeAvailableResourceResult.h +++ b/adb/include/alibabacloud/adb/model/DescribeAvailableResourceResult.h @@ -42,8 +42,8 @@ namespace AlibabaCloud { struct SupportedElasticIOResource { - std::string maxCount; std::string step; + std::string maxCount; std::string minCount; }; std::string storageType; @@ -57,8 +57,8 @@ namespace AlibabaCloud { struct NodeCount { - std::string maxCount; std::string step; + std::string maxCount; std::string minCount; }; NodeCount nodeCount; @@ -68,8 +68,8 @@ namespace AlibabaCloud { struct NodeCount1 { - std::string maxCount; std::string step; + std::string maxCount; std::string minCount; }; NodeCount1 nodeCount1; diff --git a/adb/include/alibabacloud/adb/model/DescribeBackupPolicyRequest.h b/adb/include/alibabacloud/adb/model/DescribeBackupPolicyRequest.h index 41baaef6c..3df424bd0 100644 --- a/adb/include/alibabacloud/adb/model/DescribeBackupPolicyRequest.h +++ b/adb/include/alibabacloud/adb/model/DescribeBackupPolicyRequest.h @@ -1,63 +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_ADB_MODEL_DESCRIBEBACKUPPOLICYREQUEST_H_ -#define ALIBABACLOUD_ADB_MODEL_DESCRIBEBACKUPPOLICYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Adb - { - namespace Model - { - class ALIBABACLOUD_ADB_EXPORT DescribeBackupPolicyRequest : public RpcServiceRequest - { - - public: - DescribeBackupPolicyRequest(); - ~DescribeBackupPolicyRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEBACKUPPOLICYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBEBACKUPPOLICYREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBEBACKUPPOLICYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT DescribeBackupPolicyRequest : public RpcServiceRequest { +public: + DescribeBackupPolicyRequest(); + ~DescribeBackupPolicyRequest(); + 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 Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEBACKUPPOLICYREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/DescribeBackupsRequest.h b/adb/include/alibabacloud/adb/model/DescribeBackupsRequest.h index 41cc7f06a..5322181ad 100644 --- a/adb/include/alibabacloud/adb/model/DescribeBackupsRequest.h +++ b/adb/include/alibabacloud/adb/model/DescribeBackupsRequest.h @@ -1,78 +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_ADB_MODEL_DESCRIBEBACKUPSREQUEST_H_ -#define ALIBABACLOUD_ADB_MODEL_DESCRIBEBACKUPSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Adb - { - namespace Model - { - class ALIBABACLOUD_ADB_EXPORT DescribeBackupsRequest : public RpcServiceRequest - { - - public: - DescribeBackupsRequest(); - ~DescribeBackupsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getStartTime()const; - void setStartTime(const std::string& startTime); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getDBClusterId()const; - void setDBClusterId(const std::string& dBClusterId); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getBackupId()const; - void setBackupId(const std::string& backupId); - std::string getEndTime()const; - void setEndTime(const std::string& endTime); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string startTime_; - int pageNumber_; - std::string accessKeyId_; - int pageSize_; - std::string resourceOwnerAccount_; - std::string dBClusterId_; - std::string ownerAccount_; - std::string backupId_; - std::string endTime_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEBACKUPSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBEBACKUPSREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBEBACKUPSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT DescribeBackupsRequest : public RpcServiceRequest { +public: + DescribeBackupsRequest(); + ~DescribeBackupsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getBackupId() const; + void setBackupId(const std::string &backupId); + std::string getEndTime() const; + void setEndTime(const std::string &endTime); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string startTime_; + int pageNumber_; + std::string accessKeyId_; + int pageSize_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + std::string backupId_; + std::string endTime_; + long ownerId_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEBACKUPSREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/DescribeBackupsResult.h b/adb/include/alibabacloud/adb/model/DescribeBackupsResult.h index 2c77de4d4..d4db90716 100644 --- a/adb/include/alibabacloud/adb/model/DescribeBackupsResult.h +++ b/adb/include/alibabacloud/adb/model/DescribeBackupsResult.h @@ -35,12 +35,12 @@ namespace AlibabaCloud struct Backup { std::string backupMethod; - std::string backupEndTime; int backupSize; + std::string backupEndTime; std::string dBClusterId; std::string backupStartTime; - std::string backupId; std::string backupType; + std::string backupId; }; diff --git a/adb/include/alibabacloud/adb/model/DescribeColumnsRequest.h b/adb/include/alibabacloud/adb/model/DescribeColumnsRequest.h index 94718a5b9..bb290d927 100644 --- a/adb/include/alibabacloud/adb/model/DescribeColumnsRequest.h +++ b/adb/include/alibabacloud/adb/model/DescribeColumnsRequest.h @@ -1,69 +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_ADB_MODEL_DESCRIBECOLUMNSREQUEST_H_ -#define ALIBABACLOUD_ADB_MODEL_DESCRIBECOLUMNSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Adb - { - namespace Model - { - class ALIBABACLOUD_ADB_EXPORT DescribeColumnsRequest : public RpcServiceRequest - { - - public: - DescribeColumnsRequest(); - ~DescribeColumnsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getTableName()const; - void setTableName(const std::string& tableName); - std::string getSchemaName()const; - void setSchemaName(const std::string& schemaName); - 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 tableName_; - std::string schemaName_; - std::string resourceOwnerAccount_; - std::string dBClusterId_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBECOLUMNSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBECOLUMNSREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBECOLUMNSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT DescribeColumnsRequest : public RpcServiceRequest { +public: + DescribeColumnsRequest(); + ~DescribeColumnsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getTableName() const; + void setTableName(const std::string &tableName); + std::string getSchemaName() const; + void setSchemaName(const std::string &schemaName); + 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 tableName_; + std::string schemaName_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBECOLUMNSREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/DescribeColumnsResult.h b/adb/include/alibabacloud/adb/model/DescribeColumnsResult.h index 0157f75bc..8937d345c 100644 --- a/adb/include/alibabacloud/adb/model/DescribeColumnsResult.h +++ b/adb/include/alibabacloud/adb/model/DescribeColumnsResult.h @@ -34,8 +34,8 @@ namespace AlibabaCloud public: struct Column { - std::string tableName; std::string columnName; + std::string tableName; std::string type; bool autoIncrementColumn; std::string dBClusterId; diff --git a/adb/include/alibabacloud/adb/model/DescribeConnectionCountRecordsRequest.h b/adb/include/alibabacloud/adb/model/DescribeConnectionCountRecordsRequest.h index fd710022c..5f42410ab 100644 --- a/adb/include/alibabacloud/adb/model/DescribeConnectionCountRecordsRequest.h +++ b/adb/include/alibabacloud/adb/model/DescribeConnectionCountRecordsRequest.h @@ -1,63 +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_ADB_MODEL_DESCRIBECONNECTIONCOUNTRECORDSREQUEST_H_ -#define ALIBABACLOUD_ADB_MODEL_DESCRIBECONNECTIONCOUNTRECORDSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Adb - { - namespace Model - { - class ALIBABACLOUD_ADB_EXPORT DescribeConnectionCountRecordsRequest : public RpcServiceRequest - { - - public: - DescribeConnectionCountRecordsRequest(); - ~DescribeConnectionCountRecordsRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBECONNECTIONCOUNTRECORDSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBECONNECTIONCOUNTRECORDSREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBECONNECTIONCOUNTRECORDSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT DescribeConnectionCountRecordsRequest : public RpcServiceRequest { +public: + DescribeConnectionCountRecordsRequest(); + ~DescribeConnectionCountRecordsRequest(); + 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 Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBECONNECTIONCOUNTRECORDSREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/DescribeConnectionCountRecordsResult.h b/adb/include/alibabacloud/adb/model/DescribeConnectionCountRecordsResult.h index 63332ff8e..a1d1df7c7 100644 --- a/adb/include/alibabacloud/adb/model/DescribeConnectionCountRecordsResult.h +++ b/adb/include/alibabacloud/adb/model/DescribeConnectionCountRecordsResult.h @@ -32,16 +32,16 @@ namespace AlibabaCloud class ALIBABACLOUD_ADB_EXPORT DescribeConnectionCountRecordsResult : public ServiceResult { public: - struct Users - { - std::string user; - long count; - }; struct AccessIps { std::string accessIp; long count; }; + struct Users + { + std::string user; + long count; + }; DescribeConnectionCountRecordsResult(); diff --git a/adb/include/alibabacloud/adb/model/DescribeDBClusterAccessWhiteListRequest.h b/adb/include/alibabacloud/adb/model/DescribeDBClusterAccessWhiteListRequest.h index aa22bf430..84b9b013a 100644 --- a/adb/include/alibabacloud/adb/model/DescribeDBClusterAccessWhiteListRequest.h +++ b/adb/include/alibabacloud/adb/model/DescribeDBClusterAccessWhiteListRequest.h @@ -1,63 +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_ADB_MODEL_DESCRIBEDBCLUSTERACCESSWHITELISTREQUEST_H_ -#define ALIBABACLOUD_ADB_MODEL_DESCRIBEDBCLUSTERACCESSWHITELISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Adb - { - namespace Model - { - class ALIBABACLOUD_ADB_EXPORT DescribeDBClusterAccessWhiteListRequest : public RpcServiceRequest - { - - public: - DescribeDBClusterAccessWhiteListRequest(); - ~DescribeDBClusterAccessWhiteListRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEDBCLUSTERACCESSWHITELISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBEDBCLUSTERACCESSWHITELISTREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBEDBCLUSTERACCESSWHITELISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT DescribeDBClusterAccessWhiteListRequest : public RpcServiceRequest { +public: + DescribeDBClusterAccessWhiteListRequest(); + ~DescribeDBClusterAccessWhiteListRequest(); + 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 Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEDBCLUSTERACCESSWHITELISTREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/DescribeDBClusterAccessWhiteListResult.h b/adb/include/alibabacloud/adb/model/DescribeDBClusterAccessWhiteListResult.h index bb132b0b6..c7357c864 100644 --- a/adb/include/alibabacloud/adb/model/DescribeDBClusterAccessWhiteListResult.h +++ b/adb/include/alibabacloud/adb/model/DescribeDBClusterAccessWhiteListResult.h @@ -34,8 +34,8 @@ namespace AlibabaCloud public: struct IPArray { - std::string dBClusterIPArrayName; std::string securityIPList; + std::string dBClusterIPArrayName; std::string dBClusterIPArrayAttribute; }; diff --git a/adb/include/alibabacloud/adb/model/DescribeDBClusterAttributeRequest.h b/adb/include/alibabacloud/adb/model/DescribeDBClusterAttributeRequest.h index 197656803..715c6c614 100644 --- a/adb/include/alibabacloud/adb/model/DescribeDBClusterAttributeRequest.h +++ b/adb/include/alibabacloud/adb/model/DescribeDBClusterAttributeRequest.h @@ -1,63 +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_ADB_MODEL_DESCRIBEDBCLUSTERATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_ADB_MODEL_DESCRIBEDBCLUSTERATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Adb - { - namespace Model - { - class ALIBABACLOUD_ADB_EXPORT DescribeDBClusterAttributeRequest : public RpcServiceRequest - { - - public: - DescribeDBClusterAttributeRequest(); - ~DescribeDBClusterAttributeRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEDBCLUSTERATTRIBUTEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBEDBCLUSTERATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBEDBCLUSTERATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT DescribeDBClusterAttributeRequest : public RpcServiceRequest { +public: + DescribeDBClusterAttributeRequest(); + ~DescribeDBClusterAttributeRequest(); + 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 Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEDBCLUSTERATTRIBUTEREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/DescribeDBClusterAttributeResult.h b/adb/include/alibabacloud/adb/model/DescribeDBClusterAttributeResult.h index a0264332c..7ba00b5d3 100644 --- a/adb/include/alibabacloud/adb/model/DescribeDBClusterAttributeResult.h +++ b/adb/include/alibabacloud/adb/model/DescribeDBClusterAttributeResult.h @@ -63,21 +63,22 @@ namespace AlibabaCloud std::string zoneId; std::string vPCId; std::string dBClusterStatus; - std::string vSwitchId; std::string mode; + std::string vSwitchId; std::string dBClusterDescription; std::string computeResource; std::string expired; - std::string lockMode; std::string payType; + std::string lockMode; bool enableAirflow; - std::string dBNodeClass; bool enableSpark; + std::string dBNodeClass; std::string vPCCloudInstanceId; std::string creationTime; + std::string kmsId; std::string regionId; - std::string expireTime; std::string connectionString; + std::string expireTime; std::string rdsInstanceId; }; diff --git a/adb/include/alibabacloud/adb/model/DescribeDBClusterForecastRequest.h b/adb/include/alibabacloud/adb/model/DescribeDBClusterForecastRequest.h new file mode 100644 index 000000000..98c91d93a --- /dev/null +++ b/adb/include/alibabacloud/adb/model/DescribeDBClusterForecastRequest.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_ADB_MODEL_DESCRIBEDBCLUSTERFORECASTREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBEDBCLUSTERFORECASTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT DescribeDBClusterForecastRequest : public RpcServiceRequest { +public: + DescribeDBClusterForecastRequest(); + ~DescribeDBClusterForecastRequest(); + std::string getMetricType() const; + void setMetricType(const std::string &metricType); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + +private: + std::string metricType_; + std::string regionId_; + std::string dBClusterId_; + std::string startTime_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEDBCLUSTERFORECASTREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/DescribeDBClusterForecastResult.h b/adb/include/alibabacloud/adb/model/DescribeDBClusterForecastResult.h new file mode 100644 index 000000000..4d2d6ccc1 --- /dev/null +++ b/adb/include/alibabacloud/adb/model/DescribeDBClusterForecastResult.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBEDBCLUSTERFORECASTRESULT_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBEDBCLUSTERFORECASTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Adb + { + namespace Model + { + class ALIBABACLOUD_ADB_EXPORT DescribeDBClusterForecastResult : public ServiceResult + { + public: + struct PerformancesItem + { + struct SeriesItem + { + std::string values; + std::string name; + }; + std::vector series; + std::string unit; + std::string key; + }; + + + DescribeDBClusterForecastResult(); + explicit DescribeDBClusterForecastResult(const std::string &payload); + ~DescribeDBClusterForecastResult(); + std::vector getPerformances()const; + + protected: + void parse(const std::string &payload); + private: + std::vector performances_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEDBCLUSTERFORECASTRESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/DescribeDBClusterHealthReportRequest.h b/adb/include/alibabacloud/adb/model/DescribeDBClusterHealthReportRequest.h new file mode 100644 index 000000000..1b1f62f0f --- /dev/null +++ b/adb/include/alibabacloud/adb/model/DescribeDBClusterHealthReportRequest.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_ADB_MODEL_DESCRIBEDBCLUSTERHEALTHREPORTREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBEDBCLUSTERHEALTHREPORTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT DescribeDBClusterHealthReportRequest : public RpcServiceRequest { +public: + DescribeDBClusterHealthReportRequest(); + ~DescribeDBClusterHealthReportRequest(); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + +private: + std::string regionId_; + std::string dBClusterId_; + std::string startTime_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEDBCLUSTERHEALTHREPORTREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/DescribeDBClusterHealthReportResult.h b/adb/include/alibabacloud/adb/model/DescribeDBClusterHealthReportResult.h new file mode 100644 index 000000000..8a8e31e98 --- /dev/null +++ b/adb/include/alibabacloud/adb/model/DescribeDBClusterHealthReportResult.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_ADB_MODEL_DESCRIBEDBCLUSTERHEALTHREPORTRESULT_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBEDBCLUSTERHEALTHREPORTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Adb + { + namespace Model + { + class ALIBABACLOUD_ADB_EXPORT DescribeDBClusterHealthReportResult : public ServiceResult + { + public: + struct ItemsItem + { + std::string avg; + std::string max; + std::string key; + std::string name; + }; + + + DescribeDBClusterHealthReportResult(); + explicit DescribeDBClusterHealthReportResult(const std::string &payload); + ~DescribeDBClusterHealthReportResult(); + std::vector getItems()const; + + protected: + void parse(const std::string &payload); + private: + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEDBCLUSTERHEALTHREPORTRESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/DescribeDBClusterNetInfoRequest.h b/adb/include/alibabacloud/adb/model/DescribeDBClusterNetInfoRequest.h index 2900a0a01..9956eb014 100644 --- a/adb/include/alibabacloud/adb/model/DescribeDBClusterNetInfoRequest.h +++ b/adb/include/alibabacloud/adb/model/DescribeDBClusterNetInfoRequest.h @@ -1,63 +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_ADB_MODEL_DESCRIBEDBCLUSTERNETINFOREQUEST_H_ -#define ALIBABACLOUD_ADB_MODEL_DESCRIBEDBCLUSTERNETINFOREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Adb - { - namespace Model - { - class ALIBABACLOUD_ADB_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); - - private: - long resourceOwnerId_; - std::string accessKeyId_; - std::string resourceOwnerAccount_; - std::string dBClusterId_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEDBCLUSTERNETINFOREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBEDBCLUSTERNETINFOREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBEDBCLUSTERNETINFOREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_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); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEDBCLUSTERNETINFOREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/DescribeDBClusterNetInfoResult.h b/adb/include/alibabacloud/adb/model/DescribeDBClusterNetInfoResult.h index 1eb004212..fcba0c2bb 100644 --- a/adb/include/alibabacloud/adb/model/DescribeDBClusterNetInfoResult.h +++ b/adb/include/alibabacloud/adb/model/DescribeDBClusterNetInfoResult.h @@ -35,11 +35,12 @@ namespace AlibabaCloud struct Address { std::string vPCId; - std::string port; std::string vSwitchId; + std::string port; std::string connectionString; std::string iPAddress; std::string netType; + std::string connectionStringPrefix; }; diff --git a/adb/include/alibabacloud/adb/model/DescribeDBClusterPerformanceRequest.h b/adb/include/alibabacloud/adb/model/DescribeDBClusterPerformanceRequest.h index c770e88a2..d1d525b03 100644 --- a/adb/include/alibabacloud/adb/model/DescribeDBClusterPerformanceRequest.h +++ b/adb/include/alibabacloud/adb/model/DescribeDBClusterPerformanceRequest.h @@ -1,72 +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_ADB_MODEL_DESCRIBEDBCLUSTERPERFORMANCEREQUEST_H_ -#define ALIBABACLOUD_ADB_MODEL_DESCRIBEDBCLUSTERPERFORMANCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Adb - { - namespace Model - { - class ALIBABACLOUD_ADB_EXPORT DescribeDBClusterPerformanceRequest : public RpcServiceRequest - { - - public: - DescribeDBClusterPerformanceRequest(); - ~DescribeDBClusterPerformanceRequest(); - - 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 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 key_; - std::string resourceOwnerAccount_; - std::string dBClusterId_; - std::string ownerAccount_; - std::string endTime_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEDBCLUSTERPERFORMANCEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBEDBCLUSTERPERFORMANCEREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBEDBCLUSTERPERFORMANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT DescribeDBClusterPerformanceRequest : public RpcServiceRequest { +public: + DescribeDBClusterPerformanceRequest(); + ~DescribeDBClusterPerformanceRequest(); + 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 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 key_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + std::string endTime_; + long ownerId_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEDBCLUSTERPERFORMANCEREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/DescribeDBClusterPerformanceResult.h b/adb/include/alibabacloud/adb/model/DescribeDBClusterPerformanceResult.h index 796ee9d8b..669057c9d 100644 --- a/adb/include/alibabacloud/adb/model/DescribeDBClusterPerformanceResult.h +++ b/adb/include/alibabacloud/adb/model/DescribeDBClusterPerformanceResult.h @@ -49,16 +49,16 @@ namespace AlibabaCloud explicit DescribeDBClusterPerformanceResult(const std::string &payload); ~DescribeDBClusterPerformanceResult(); std::string getEndTime()const; - std::string getDBClusterId()const; std::string getStartTime()const; + std::string getDBClusterId()const; std::vector getPerformances()const; protected: void parse(const std::string &payload); private: std::string endTime_; - std::string dBClusterId_; std::string startTime_; + std::string dBClusterId_; std::vector performances_; }; diff --git a/adb/include/alibabacloud/adb/model/DescribeDBClusterResourcePoolPerformanceRequest.h b/adb/include/alibabacloud/adb/model/DescribeDBClusterResourcePoolPerformanceRequest.h index 7394179c0..3afca4faf 100644 --- a/adb/include/alibabacloud/adb/model/DescribeDBClusterResourcePoolPerformanceRequest.h +++ b/adb/include/alibabacloud/adb/model/DescribeDBClusterResourcePoolPerformanceRequest.h @@ -1,75 +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_ADB_MODEL_DESCRIBEDBCLUSTERRESOURCEPOOLPERFORMANCEREQUEST_H_ -#define ALIBABACLOUD_ADB_MODEL_DESCRIBEDBCLUSTERRESOURCEPOOLPERFORMANCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Adb - { - namespace Model - { - class ALIBABACLOUD_ADB_EXPORT DescribeDBClusterResourcePoolPerformanceRequest : public RpcServiceRequest - { - - public: - DescribeDBClusterResourcePoolPerformanceRequest(); - ~DescribeDBClusterResourcePoolPerformanceRequest(); - - 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 getResourcePools()const; - void setResourcePools(const std::string& resourcePools); - std::string getKey()const; - void setKey(const std::string& key); - 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 resourcePools_; - std::string key_; - std::string resourceOwnerAccount_; - std::string dBClusterId_; - std::string ownerAccount_; - std::string endTime_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEDBCLUSTERRESOURCEPOOLPERFORMANCEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBEDBCLUSTERRESOURCEPOOLPERFORMANCEREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBEDBCLUSTERRESOURCEPOOLPERFORMANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT DescribeDBClusterResourcePoolPerformanceRequest : public RpcServiceRequest { +public: + DescribeDBClusterResourcePoolPerformanceRequest(); + ~DescribeDBClusterResourcePoolPerformanceRequest(); + 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 getResourcePools() const; + void setResourcePools(const std::string &resourcePools); + std::string getKey() const; + void setKey(const std::string &key); + 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 resourcePools_; + std::string key_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + std::string endTime_; + long ownerId_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEDBCLUSTERRESOURCEPOOLPERFORMANCEREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/DescribeDBClusterResourcePoolPerformanceResult.h b/adb/include/alibabacloud/adb/model/DescribeDBClusterResourcePoolPerformanceResult.h index d1d32885d..7fbdcf4d3 100644 --- a/adb/include/alibabacloud/adb/model/DescribeDBClusterResourcePoolPerformanceResult.h +++ b/adb/include/alibabacloud/adb/model/DescribeDBClusterResourcePoolPerformanceResult.h @@ -54,16 +54,16 @@ namespace AlibabaCloud explicit DescribeDBClusterResourcePoolPerformanceResult(const std::string &payload); ~DescribeDBClusterResourcePoolPerformanceResult(); std::string getEndTime()const; - std::string getDBClusterId()const; std::string getStartTime()const; + std::string getDBClusterId()const; std::vector getPerformances()const; protected: void parse(const std::string &payload); private: std::string endTime_; - std::string dBClusterId_; std::string startTime_; + std::string dBClusterId_; std::vector performances_; }; diff --git a/adb/include/alibabacloud/adb/model/DescribeDBClustersRequest.h b/adb/include/alibabacloud/adb/model/DescribeDBClustersRequest.h index 39ebd56a1..9061cecf4 100644 --- a/adb/include/alibabacloud/adb/model/DescribeDBClustersRequest.h +++ b/adb/include/alibabacloud/adb/model/DescribeDBClustersRequest.h @@ -1,90 +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_ADB_MODEL_DESCRIBEDBCLUSTERSREQUEST_H_ -#define ALIBABACLOUD_ADB_MODEL_DESCRIBEDBCLUSTERSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Adb - { - namespace Model - { - class ALIBABACLOUD_ADB_EXPORT DescribeDBClustersRequest : public RpcServiceRequest - { - public: - struct Tag - { - std::string value; - std::string key; - }; - - public: - DescribeDBClustersRequest(); - ~DescribeDBClustersRequest(); - - 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); - 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 getRegionId()const; - void setRegionId(const std::string& regionId); - 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 getDBClusterIds()const; - void setDBClusterIds(const std::string& dBClusterIds); - - private: - long resourceOwnerId_; - std::string dBClusterDescription_; - std::string dBClusterStatus_; - int pageNumber_; - std::string accessKeyId_; - std::string resourceGroupId_; - std::string regionId_; - int pageSize_; - std::vector tag_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string dBClusterIds_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEDBCLUSTERSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBEDBCLUSTERSREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBEDBCLUSTERSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT DescribeDBClustersRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + DescribeDBClustersRequest(); + ~DescribeDBClustersRequest(); + 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); + 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 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 getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getDBClusterIds() const; + void setDBClusterIds(const std::string &dBClusterIds); + +private: + long resourceOwnerId_; + std::string dBClusterDescription_; + std::string dBClusterStatus_; + int pageNumber_; + std::string accessKeyId_; + std::string resourceGroupId_; + std::string regionId_; + int pageSize_; + std::vector tag_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string dBClusterIds_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEDBCLUSTERSREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/DescribeDBClustersResult.h b/adb/include/alibabacloud/adb/model/DescribeDBClustersResult.h index 6432a539f..62d85439c 100644 --- a/adb/include/alibabacloud/adb/model/DescribeDBClustersResult.h +++ b/adb/include/alibabacloud/adb/model/DescribeDBClustersResult.h @@ -61,8 +61,8 @@ namespace AlibabaCloud std::string vPCId; std::string dBClusterStatus; std::string createTime; - std::string vSwitchId; std::string mode; + std::string vSwitchId; std::string dBClusterDescription; std::string computeResource; std::string expired; @@ -71,8 +71,8 @@ namespace AlibabaCloud std::string dBNodeClass; std::string vPCCloudInstanceId; std::string regionId; - std::string expireTime; std::string connectionString; + std::string expireTime; std::string rdsInstanceId; }; diff --git a/adb/include/alibabacloud/adb/model/DescribeDBResourceGroupRequest.h b/adb/include/alibabacloud/adb/model/DescribeDBResourceGroupRequest.h new file mode 100644 index 000000000..8b047edbf --- /dev/null +++ b/adb/include/alibabacloud/adb/model/DescribeDBResourceGroupRequest.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_ADB_MODEL_DESCRIBEDBRESOURCEGROUPREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBEDBRESOURCEGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT DescribeDBResourceGroupRequest : public RpcServiceRequest { +public: + DescribeDBResourceGroupRequest(); + ~DescribeDBResourceGroupRequest(); + 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 getGroupName() const; + void setGroupName(const std::string &groupName); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; + std::string groupName_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEDBRESOURCEGROUPREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/DescribeDBResourceGroupResult.h b/adb/include/alibabacloud/adb/model/DescribeDBResourceGroupResult.h new file mode 100644 index 000000000..2e6aaf551 --- /dev/null +++ b/adb/include/alibabacloud/adb/model/DescribeDBResourceGroupResult.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_ADB_MODEL_DESCRIBEDBRESOURCEGROUPRESULT_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBEDBRESOURCEGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Adb + { + namespace Model + { + class ALIBABACLOUD_ADB_EXPORT DescribeDBResourceGroupResult : public ServiceResult + { + public: + struct PoolInfo + { + std::string groupName; + std::string groupType; + int nodeNum; + std::string createTime; + std::string updateTime; + std::string groupUsers; + }; + + + DescribeDBResourceGroupResult(); + explicit DescribeDBResourceGroupResult(const std::string &payload); + ~DescribeDBResourceGroupResult(); + std::vector getGroupsInfo()const; + + protected: + void parse(const std::string &payload); + private: + std::vector groupsInfo_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEDBRESOURCEGROUPRESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/DescribeDBResourcePoolRequest.h b/adb/include/alibabacloud/adb/model/DescribeDBResourcePoolRequest.h index ed737026b..1f806f7b6 100644 --- a/adb/include/alibabacloud/adb/model/DescribeDBResourcePoolRequest.h +++ b/adb/include/alibabacloud/adb/model/DescribeDBResourcePoolRequest.h @@ -1,66 +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_ADB_MODEL_DESCRIBEDBRESOURCEPOOLREQUEST_H_ -#define ALIBABACLOUD_ADB_MODEL_DESCRIBEDBRESOURCEPOOLREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Adb - { - namespace Model - { - class ALIBABACLOUD_ADB_EXPORT DescribeDBResourcePoolRequest : public RpcServiceRequest - { - - public: - DescribeDBResourcePoolRequest(); - ~DescribeDBResourcePoolRequest(); - - std::string getPoolName()const; - void setPoolName(const std::string& poolName); - 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: - std::string poolName_; - long resourceOwnerId_; - std::string accessKeyId_; - std::string resourceOwnerAccount_; - std::string dBClusterId_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEDBRESOURCEPOOLREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBEDBRESOURCEPOOLREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBEDBRESOURCEPOOLREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT DescribeDBResourcePoolRequest : public RpcServiceRequest { +public: + DescribeDBResourcePoolRequest(); + ~DescribeDBResourcePoolRequest(); + std::string getPoolName() const; + void setPoolName(const std::string &poolName); + 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: + std::string poolName_; + long resourceOwnerId_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEDBRESOURCEPOOLREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/DescribeDiagnosisDimensionsRequest.h b/adb/include/alibabacloud/adb/model/DescribeDiagnosisDimensionsRequest.h new file mode 100644 index 000000000..267f40f02 --- /dev/null +++ b/adb/include/alibabacloud/adb/model/DescribeDiagnosisDimensionsRequest.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_ADB_MODEL_DESCRIBEDIAGNOSISDIMENSIONSREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBEDIAGNOSISDIMENSIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT DescribeDiagnosisDimensionsRequest : public RpcServiceRequest { +public: + DescribeDiagnosisDimensionsRequest(); + ~DescribeDiagnosisDimensionsRequest(); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getQueryCondition() const; + void setQueryCondition(const std::string &queryCondition); + std::string getEndTime() const; + void setEndTime(const std::string &endTime); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string dBClusterId_; + std::string queryCondition_; + std::string endTime_; + std::string startTime_; + std::string regionId_; + std::string lang_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEDIAGNOSISDIMENSIONSREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/DescribeDiagnosisDimensionsResult.h b/adb/include/alibabacloud/adb/model/DescribeDiagnosisDimensionsResult.h new file mode 100644 index 000000000..489c7d231 --- /dev/null +++ b/adb/include/alibabacloud/adb/model/DescribeDiagnosisDimensionsResult.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_ADB_MODEL_DESCRIBEDIAGNOSISDIMENSIONSRESULT_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBEDIAGNOSISDIMENSIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Adb + { + namespace Model + { + class ALIBABACLOUD_ADB_EXPORT DescribeDiagnosisDimensionsResult : public ServiceResult + { + public: + + + DescribeDiagnosisDimensionsResult(); + explicit DescribeDiagnosisDimensionsResult(const std::string &payload); + ~DescribeDiagnosisDimensionsResult(); + std::vector getClientIps()const; + std::vector getDatabases()const; + std::vector getResourceGroups()const; + std::vector getUserNames()const; + + protected: + void parse(const std::string &payload); + private: + std::vector clientIps_; + std::vector databases_; + std::vector resourceGroups_; + std::vector userNames_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEDIAGNOSISDIMENSIONSRESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/DescribeDiagnosisRecordsRequest.h b/adb/include/alibabacloud/adb/model/DescribeDiagnosisRecordsRequest.h new file mode 100644 index 000000000..065b131e4 --- /dev/null +++ b/adb/include/alibabacloud/adb/model/DescribeDiagnosisRecordsRequest.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_ADB_MODEL_DESCRIBEDIAGNOSISRECORDSREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBEDIAGNOSISRECORDSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT DescribeDiagnosisRecordsRequest : public RpcServiceRequest { +public: + DescribeDiagnosisRecordsRequest(); + ~DescribeDiagnosisRecordsRequest(); + std::string getQueryCondition() const; + void setQueryCondition(const std::string &queryCondition); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + std::string getRawStartTime() const; + void setRawStartTime(const std::string &rawStartTime); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRawEndTime() const; + void setRawEndTime(const std::string &rawEndTime); + std::string getDatabase() const; + void setDatabase(const std::string &database); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getClientIp() const; + void setClientIp(const std::string &clientIp); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getKeyword() const; + void setKeyword(const std::string &keyword); + std::string getLang() const; + void setLang(const std::string &lang); + std::string getOrder() const; + void setOrder(const std::string &order); + long getMaxScanSize() const; + void setMaxScanSize(long maxScanSize); + std::string getResourceGroup() const; + void setResourceGroup(const std::string &resourceGroup); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + long getPatternId() const; + void setPatternId(long patternId); + std::string getEndTime() const; + void setEndTime(const std::string &endTime); + long getMinPeakMemory() const; + void setMinPeakMemory(long minPeakMemory); + long getMinScanSize() const; + void setMinScanSize(long minScanSize); + long getMaxPeakMemory() const; + void setMaxPeakMemory(long maxPeakMemory); + std::string getUserName() const; + void setUserName(const std::string &userName); + +private: + std::string queryCondition_; + std::string startTime_; + std::string rawStartTime_; + int pageNumber_; + std::string rawEndTime_; + std::string database_; + std::string regionId_; + std::string clientIp_; + int pageSize_; + std::string keyword_; + std::string lang_; + std::string order_; + long maxScanSize_; + std::string resourceGroup_; + std::string dBClusterId_; + long patternId_; + std::string endTime_; + long minPeakMemory_; + long minScanSize_; + long maxPeakMemory_; + std::string userName_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEDIAGNOSISRECORDSREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/DescribeDiagnosisRecordsResult.h b/adb/include/alibabacloud/adb/model/DescribeDiagnosisRecordsResult.h new file mode 100644 index 000000000..e101a3764 --- /dev/null +++ b/adb/include/alibabacloud/adb/model/DescribeDiagnosisRecordsResult.h @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBEDIAGNOSISRECORDSRESULT_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBEDIAGNOSISRECORDSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Adb + { + namespace Model + { + class ALIBABACLOUD_ADB_EXPORT DescribeDiagnosisRecordsResult : public ServiceResult + { + public: + struct Items + { + std::string status; + std::string userName; + long totalPlanningTime; + long sQLTruncatedThreshold; + long peakMemory; + long etlWriteRows; + long startTime; + long cost; + std::string clientIp; + std::string sQL; + long executionTime; + long scanRows; + int totalStages; + int resourceCostRank; + std::string database; + long outputRows; + long queueTime; + std::string rcHost; + long scanSize; + std::string processId; + long outputDataSize; + bool sQLTruncated; + std::string resourceGroup; + }; + + + DescribeDiagnosisRecordsResult(); + explicit DescribeDiagnosisRecordsResult(const std::string &payload); + ~DescribeDiagnosisRecordsResult(); + int getTotalCount()const; + std::vector getQuerys()const; + int getPageSize()const; + int getPageNumber()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::vector querys_; + int pageSize_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEDIAGNOSISRECORDSRESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/DescribeDownloadRecordsRequest.h b/adb/include/alibabacloud/adb/model/DescribeDownloadRecordsRequest.h new file mode 100644 index 000000000..28fd8bf1d --- /dev/null +++ b/adb/include/alibabacloud/adb/model/DescribeDownloadRecordsRequest.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_ADB_MODEL_DESCRIBEDOWNLOADRECORDSREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBEDOWNLOADRECORDSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT DescribeDownloadRecordsRequest : public RpcServiceRequest { +public: + DescribeDownloadRecordsRequest(); + ~DescribeDownloadRecordsRequest(); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string regionId_; + std::string dBClusterId_; + std::string lang_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEDOWNLOADRECORDSREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/DescribeDownloadRecordsResult.h b/adb/include/alibabacloud/adb/model/DescribeDownloadRecordsResult.h new file mode 100644 index 000000000..47d52aeed --- /dev/null +++ b/adb/include/alibabacloud/adb/model/DescribeDownloadRecordsResult.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_ADB_MODEL_DESCRIBEDOWNLOADRECORDSRESULT_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBEDOWNLOADRECORDSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Adb + { + namespace Model + { + class ALIBABACLOUD_ADB_EXPORT DescribeDownloadRecordsResult : public ServiceResult + { + public: + struct Items + { + std::string status; + std::string fileName; + std::string exceptionMsg; + std::string url; + long downloadId; + }; + + + DescribeDownloadRecordsResult(); + explicit DescribeDownloadRecordsResult(const std::string &payload); + ~DescribeDownloadRecordsResult(); + std::vector getRecords()const; + + protected: + void parse(const std::string &payload); + private: + std::vector records_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEDOWNLOADRECORDSRESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/DescribeElasticDailyPlanRequest.h b/adb/include/alibabacloud/adb/model/DescribeElasticDailyPlanRequest.h index 4652c4e85..ca576f269 100644 --- a/adb/include/alibabacloud/adb/model/DescribeElasticDailyPlanRequest.h +++ b/adb/include/alibabacloud/adb/model/DescribeElasticDailyPlanRequest.h @@ -1,75 +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_ADB_MODEL_DESCRIBEELASTICDAILYPLANREQUEST_H_ -#define ALIBABACLOUD_ADB_MODEL_DESCRIBEELASTICDAILYPLANREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Adb - { - namespace Model - { - class ALIBABACLOUD_ADB_EXPORT DescribeElasticDailyPlanRequest : public RpcServiceRequest - { - - public: - DescribeElasticDailyPlanRequest(); - ~DescribeElasticDailyPlanRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getElasticDailyPlanStatusList()const; - void setElasticDailyPlanStatusList(const std::string& elasticDailyPlanStatusList); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getElasticDailyPlanDay()const; - void setElasticDailyPlanDay(const std::string& elasticDailyPlanDay); - 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 getElasticPlanName()const; - void setElasticPlanName(const std::string& elasticPlanName); - std::string getResourcePoolName()const; - void setResourcePoolName(const std::string& resourcePoolName); - - private: - long resourceOwnerId_; - std::string elasticDailyPlanStatusList_; - std::string accessKeyId_; - std::string elasticDailyPlanDay_; - std::string resourceOwnerAccount_; - std::string dBClusterId_; - std::string ownerAccount_; - long ownerId_; - std::string elasticPlanName_; - std::string resourcePoolName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEELASTICDAILYPLANREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBEELASTICDAILYPLANREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBEELASTICDAILYPLANREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT DescribeElasticDailyPlanRequest : public RpcServiceRequest { +public: + DescribeElasticDailyPlanRequest(); + ~DescribeElasticDailyPlanRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getElasticDailyPlanStatusList() const; + void setElasticDailyPlanStatusList(const std::string &elasticDailyPlanStatusList); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getElasticDailyPlanDay() const; + void setElasticDailyPlanDay(const std::string &elasticDailyPlanDay); + 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 getElasticPlanName() const; + void setElasticPlanName(const std::string &elasticPlanName); + std::string getResourcePoolName() const; + void setResourcePoolName(const std::string &resourcePoolName); + +private: + long resourceOwnerId_; + std::string elasticDailyPlanStatusList_; + std::string accessKeyId_; + std::string elasticDailyPlanDay_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; + std::string elasticPlanName_; + std::string resourcePoolName_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEELASTICDAILYPLANREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/DescribeElasticPlanRequest.h b/adb/include/alibabacloud/adb/model/DescribeElasticPlanRequest.h index 7cb8c3c7e..43187c4a0 100644 --- a/adb/include/alibabacloud/adb/model/DescribeElasticPlanRequest.h +++ b/adb/include/alibabacloud/adb/model/DescribeElasticPlanRequest.h @@ -1,72 +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_ADB_MODEL_DESCRIBEELASTICPLANREQUEST_H_ -#define ALIBABACLOUD_ADB_MODEL_DESCRIBEELASTICPLANREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Adb - { - namespace Model - { - class ALIBABACLOUD_ADB_EXPORT DescribeElasticPlanRequest : public RpcServiceRequest - { - - public: - DescribeElasticPlanRequest(); - ~DescribeElasticPlanRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - bool getElasticPlanEnable()const; - void setElasticPlanEnable(bool elasticPlanEnable); - 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 getElasticPlanName()const; - void setElasticPlanName(const std::string& elasticPlanName); - std::string getResourcePoolName()const; - void setResourcePoolName(const std::string& resourcePoolName); - - private: - long resourceOwnerId_; - std::string accessKeyId_; - bool elasticPlanEnable_; - std::string resourceOwnerAccount_; - std::string dBClusterId_; - std::string ownerAccount_; - long ownerId_; - std::string elasticPlanName_; - std::string resourcePoolName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEELASTICPLANREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBEELASTICPLANREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBEELASTICPLANREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT DescribeElasticPlanRequest : public RpcServiceRequest { +public: + DescribeElasticPlanRequest(); + ~DescribeElasticPlanRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + bool getElasticPlanEnable() const; + void setElasticPlanEnable(bool elasticPlanEnable); + 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 getElasticPlanName() const; + void setElasticPlanName(const std::string &elasticPlanName); + std::string getResourcePoolName() const; + void setResourcePoolName(const std::string &resourcePoolName); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + bool elasticPlanEnable_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; + std::string elasticPlanName_; + std::string resourcePoolName_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEELASTICPLANREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/DescribeElasticPlanResult.h b/adb/include/alibabacloud/adb/model/DescribeElasticPlanResult.h index fe6b22557..62a265e23 100644 --- a/adb/include/alibabacloud/adb/model/DescribeElasticPlanResult.h +++ b/adb/include/alibabacloud/adb/model/DescribeElasticPlanResult.h @@ -36,13 +36,13 @@ namespace AlibabaCloud { std::string weeklyRepeat; std::string endTime; - int elasticNodeNum; std::string startTime; + int elasticNodeNum; std::string resourcePoolName; bool enable; std::string endDay; - std::string planName; std::string startDay; + std::string planName; }; diff --git a/adb/include/alibabacloud/adb/model/DescribeInclinedTablesRequest.h b/adb/include/alibabacloud/adb/model/DescribeInclinedTablesRequest.h index 0a2dfa93c..88deb0b60 100644 --- a/adb/include/alibabacloud/adb/model/DescribeInclinedTablesRequest.h +++ b/adb/include/alibabacloud/adb/model/DescribeInclinedTablesRequest.h @@ -1,75 +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_ADB_MODEL_DESCRIBEINCLINEDTABLESREQUEST_H_ -#define ALIBABACLOUD_ADB_MODEL_DESCRIBEINCLINEDTABLESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Adb - { - namespace Model - { - class ALIBABACLOUD_ADB_EXPORT DescribeInclinedTablesRequest : public RpcServiceRequest - { - - public: - DescribeInclinedTablesRequest(); - ~DescribeInclinedTablesRequest(); - - std::string getTableType()const; - void setTableType(const std::string& tableType); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getOrder()const; - void setOrder(const std::string& order); - 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: - std::string tableType_; - long resourceOwnerId_; - int pageNumber_; - std::string accessKeyId_; - int pageSize_; - std::string order_; - std::string resourceOwnerAccount_; - std::string dBClusterId_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEINCLINEDTABLESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBEINCLINEDTABLESREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBEINCLINEDTABLESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT DescribeInclinedTablesRequest : public RpcServiceRequest { +public: + DescribeInclinedTablesRequest(); + ~DescribeInclinedTablesRequest(); + std::string getTableType() const; + void setTableType(const std::string &tableType); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getOrder() const; + void setOrder(const std::string &order); + 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: + std::string tableType_; + long resourceOwnerId_; + int pageNumber_; + std::string accessKeyId_; + int pageSize_; + std::string order_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEINCLINEDTABLESREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/DescribeLoadTasksRecordsRequest.h b/adb/include/alibabacloud/adb/model/DescribeLoadTasksRecordsRequest.h index e6a967d63..b61425603 100644 --- a/adb/include/alibabacloud/adb/model/DescribeLoadTasksRecordsRequest.h +++ b/adb/include/alibabacloud/adb/model/DescribeLoadTasksRecordsRequest.h @@ -1,87 +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_ADB_MODEL_DESCRIBELOADTASKSRECORDSREQUEST_H_ -#define ALIBABACLOUD_ADB_MODEL_DESCRIBELOADTASKSRECORDSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Adb - { - namespace Model - { - class ALIBABACLOUD_ADB_EXPORT DescribeLoadTasksRecordsRequest : public RpcServiceRequest - { - - public: - DescribeLoadTasksRecordsRequest(); - ~DescribeLoadTasksRecordsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRange()const; - void setRange(const std::string& range); - 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); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getState()const; - void setState(const std::string& state); - std::string getOrder()const; - void setOrder(const std::string& order); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getDBClusterId()const; - void setDBClusterId(const std::string& dBClusterId); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getEndTime()const; - void setEndTime(const std::string& endTime); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getDBName()const; - void setDBName(const std::string& dBName); - - private: - long resourceOwnerId_; - std::string range_; - std::string startTime_; - int pageNumber_; - std::string accessKeyId_; - int pageSize_; - std::string state_; - std::string order_; - std::string resourceOwnerAccount_; - std::string dBClusterId_; - std::string ownerAccount_; - std::string endTime_; - long ownerId_; - std::string dBName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBELOADTASKSRECORDSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBELOADTASKSRECORDSREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBELOADTASKSRECORDSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT DescribeLoadTasksRecordsRequest : public RpcServiceRequest { +public: + DescribeLoadTasksRecordsRequest(); + ~DescribeLoadTasksRecordsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRange() const; + void setRange(const std::string &range); + 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); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getState() const; + void setState(const std::string &state); + std::string getOrder() const; + void setOrder(const std::string &order); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getEndTime() const; + void setEndTime(const std::string &endTime); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getDBName() const; + void setDBName(const std::string &dBName); + +private: + long resourceOwnerId_; + std::string range_; + std::string startTime_; + int pageNumber_; + std::string accessKeyId_; + int pageSize_; + std::string state_; + std::string order_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + std::string endTime_; + long ownerId_; + std::string dBName_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBELOADTASKSRECORDSREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/DescribeLoadTasksRecordsResult.h b/adb/include/alibabacloud/adb/model/DescribeLoadTasksRecordsResult.h index 72ba5a340..3e5b29eed 100644 --- a/adb/include/alibabacloud/adb/model/DescribeLoadTasksRecordsResult.h +++ b/adb/include/alibabacloud/adb/model/DescribeLoadTasksRecordsResult.h @@ -37,8 +37,8 @@ namespace AlibabaCloud long processRows; std::string state; std::string createTime; - std::string jobName; std::string updateTime; + std::string jobName; std::string dBName; std::string processID; std::string sql; diff --git a/adb/include/alibabacloud/adb/model/DescribeMaintenanceActionRequest.h b/adb/include/alibabacloud/adb/model/DescribeMaintenanceActionRequest.h new file mode 100644 index 000000000..aa7eb848a --- /dev/null +++ b/adb/include/alibabacloud/adb/model/DescribeMaintenanceActionRequest.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_ADB_MODEL_DESCRIBEMAINTENANCEACTIONREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBEMAINTENANCEACTIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT DescribeMaintenanceActionRequest : public RpcServiceRequest { +public: + DescribeMaintenanceActionRequest(); + ~DescribeMaintenanceActionRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + int getIsHistory() const; + void setIsHistory(int isHistory); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getTaskType() const; + void setTaskType(const std::string &taskType); + 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 getRegion() const; + void setRegion(const std::string ®ion); + +private: + long resourceOwnerId_; + int pageNumber_; + std::string accessKeyId_; + int isHistory_; + std::string regionId_; + int pageSize_; + std::string taskType_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string region_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEMAINTENANCEACTIONREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/DescribeMaintenanceActionResult.h b/adb/include/alibabacloud/adb/model/DescribeMaintenanceActionResult.h new file mode 100644 index 000000000..5cac7a628 --- /dev/null +++ b/adb/include/alibabacloud/adb/model/DescribeMaintenanceActionResult.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_ADB_MODEL_DESCRIBEMAINTENANCEACTIONRESULT_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBEMAINTENANCEACTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Adb + { + namespace Model + { + class ALIBABACLOUD_ADB_EXPORT DescribeMaintenanceActionResult : public ServiceResult + { + public: + struct ItemsItem + { + std::string status; + std::string createdTime; + std::string deadline; + std::string startTime; + std::string dBClusterId; + std::string dBType; + std::string dBVersion; + std::string modifiedTime; + std::string taskType; + std::string prepareInterval; + std::string region; + int id; + std::string resultInfo; + std::string switchTime; + }; + + + DescribeMaintenanceActionResult(); + explicit DescribeMaintenanceActionResult(const std::string &payload); + ~DescribeMaintenanceActionResult(); + 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_ADB_MODEL_DESCRIBEMAINTENANCEACTIONRESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/DescribeOperatorPermissionRequest.h b/adb/include/alibabacloud/adb/model/DescribeOperatorPermissionRequest.h index 5c03b6893..2d5fbf42d 100644 --- a/adb/include/alibabacloud/adb/model/DescribeOperatorPermissionRequest.h +++ b/adb/include/alibabacloud/adb/model/DescribeOperatorPermissionRequest.h @@ -1,63 +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_ADB_MODEL_DESCRIBEOPERATORPERMISSIONREQUEST_H_ -#define ALIBABACLOUD_ADB_MODEL_DESCRIBEOPERATORPERMISSIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Adb - { - namespace Model - { - class ALIBABACLOUD_ADB_EXPORT DescribeOperatorPermissionRequest : public RpcServiceRequest - { - - public: - DescribeOperatorPermissionRequest(); - ~DescribeOperatorPermissionRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEOPERATORPERMISSIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBEOPERATORPERMISSIONREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBEOPERATORPERMISSIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT DescribeOperatorPermissionRequest : public RpcServiceRequest { +public: + DescribeOperatorPermissionRequest(); + ~DescribeOperatorPermissionRequest(); + 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 Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEOPERATORPERMISSIONREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/DescribePatternPerformanceRequest.h b/adb/include/alibabacloud/adb/model/DescribePatternPerformanceRequest.h new file mode 100644 index 000000000..ca2a680f1 --- /dev/null +++ b/adb/include/alibabacloud/adb/model/DescribePatternPerformanceRequest.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_ADB_MODEL_DESCRIBEPATTERNPERFORMANCEREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBEPATTERNPERFORMANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT DescribePatternPerformanceRequest : public RpcServiceRequest { +public: + DescribePatternPerformanceRequest(); + ~DescribePatternPerformanceRequest(); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getPatternId() const; + void setPatternId(const std::string &patternId); + std::string getEndTime() const; + void setEndTime(const std::string &endTime); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + +private: + std::string regionId_; + std::string dBClusterId_; + std::string patternId_; + std::string endTime_; + std::string startTime_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEPATTERNPERFORMANCEREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/DescribePatternPerformanceResult.h b/adb/include/alibabacloud/adb/model/DescribePatternPerformanceResult.h new file mode 100644 index 000000000..936206e83 --- /dev/null +++ b/adb/include/alibabacloud/adb/model/DescribePatternPerformanceResult.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_ADB_MODEL_DESCRIBEPATTERNPERFORMANCERESULT_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBEPATTERNPERFORMANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Adb + { + namespace Model + { + class ALIBABACLOUD_ADB_EXPORT DescribePatternPerformanceResult : public ServiceResult + { + public: + struct PerformanceItem + { + struct SeriesItem + { + std::vector values; + std::string name; + }; + std::vector series; + std::string unit; + std::string key; + }; + + + DescribePatternPerformanceResult(); + explicit DescribePatternPerformanceResult(const std::string &payload); + ~DescribePatternPerformanceResult(); + std::string getEndTime()const; + std::string getStartTime()const; + std::vector getPerformances()const; + + protected: + void parse(const std::string &payload); + private: + std::string endTime_; + std::string startTime_; + std::vector performances_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEPATTERNPERFORMANCERESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/DescribeProcessListRequest.h b/adb/include/alibabacloud/adb/model/DescribeProcessListRequest.h index 29a719360..f033bafcf 100644 --- a/adb/include/alibabacloud/adb/model/DescribeProcessListRequest.h +++ b/adb/include/alibabacloud/adb/model/DescribeProcessListRequest.h @@ -1,84 +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_ADB_MODEL_DESCRIBEPROCESSLISTREQUEST_H_ -#define ALIBABACLOUD_ADB_MODEL_DESCRIBEPROCESSLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Adb - { - namespace Model - { - class ALIBABACLOUD_ADB_EXPORT DescribeProcessListRequest : public RpcServiceRequest - { - - public: - DescribeProcessListRequest(); - ~DescribeProcessListRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - int getPageSize()const; - void setPageSize(int pageSize); - bool getShowFull()const; - void setShowFull(bool showFull); - int getRunningTime()const; - void setRunningTime(int runningTime); - std::string getKeyword()const; - void setKeyword(const std::string& keyword); - std::string getOrder()const; - void setOrder(const std::string& order); - 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 getUser()const; - void setUser(const std::string& user); - - private: - long resourceOwnerId_; - int pageNumber_; - std::string accessKeyId_; - int pageSize_; - bool showFull_; - int runningTime_; - std::string keyword_; - std::string order_; - std::string resourceOwnerAccount_; - std::string dBClusterId_; - std::string ownerAccount_; - long ownerId_; - std::string user_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEPROCESSLISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBEPROCESSLISTREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBEPROCESSLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT DescribeProcessListRequest : public RpcServiceRequest { +public: + DescribeProcessListRequest(); + ~DescribeProcessListRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + int getPageSize() const; + void setPageSize(int pageSize); + bool getShowFull() const; + void setShowFull(bool showFull); + int getRunningTime() const; + void setRunningTime(int runningTime); + std::string getKeyword() const; + void setKeyword(const std::string &keyword); + std::string getOrder() const; + void setOrder(const std::string &order); + 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 getUser() const; + void setUser(const std::string &user); + +private: + long resourceOwnerId_; + int pageNumber_; + std::string accessKeyId_; + int pageSize_; + bool showFull_; + int runningTime_; + std::string keyword_; + std::string order_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; + std::string user_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEPROCESSLISTREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/DescribeProcessListResult.h b/adb/include/alibabacloud/adb/model/DescribeProcessListResult.h index 49f204d87..b232f3257 100644 --- a/adb/include/alibabacloud/adb/model/DescribeProcessListResult.h +++ b/adb/include/alibabacloud/adb/model/DescribeProcessListResult.h @@ -37,10 +37,10 @@ namespace AlibabaCloud std::string user; std::string command; std::string startTime; - std::string host; int time; - int id; + std::string host; std::string processId; + int id; std::string info; std::string dB; }; diff --git a/adb/include/alibabacloud/adb/model/DescribeRegionsRequest.h b/adb/include/alibabacloud/adb/model/DescribeRegionsRequest.h index 6a551c44d..9d7318364 100644 --- a/adb/include/alibabacloud/adb/model/DescribeRegionsRequest.h +++ b/adb/include/alibabacloud/adb/model/DescribeRegionsRequest.h @@ -1,63 +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_ADB_MODEL_DESCRIBEREGIONSREQUEST_H_ -#define ALIBABACLOUD_ADB_MODEL_DESCRIBEREGIONSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Adb - { - namespace Model - { - class ALIBABACLOUD_ADB_EXPORT DescribeRegionsRequest : public RpcServiceRequest - { - - public: - DescribeRegionsRequest(); - ~DescribeRegionsRequest(); - - 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 getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getAcceptLanguage()const; - void setAcceptLanguage(const std::string& acceptLanguage); - - private: - long resourceOwnerId_; - std::string accessKeyId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string acceptLanguage_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEREGIONSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBEREGIONSREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBEREGIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT DescribeRegionsRequest : public RpcServiceRequest { +public: + DescribeRegionsRequest(); + ~DescribeRegionsRequest(); + 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 getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEREGIONSREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/DescribeSQLPatternAttributeRequest.h b/adb/include/alibabacloud/adb/model/DescribeSQLPatternAttributeRequest.h new file mode 100644 index 000000000..ef6efb207 --- /dev/null +++ b/adb/include/alibabacloud/adb/model/DescribeSQLPatternAttributeRequest.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_ADB_MODEL_DESCRIBESQLPATTERNATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBESQLPATTERNATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT DescribeSQLPatternAttributeRequest : public RpcServiceRequest { +public: + DescribeSQLPatternAttributeRequest(); + ~DescribeSQLPatternAttributeRequest(); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + long getPatternId() const; + void setPatternId(long patternId); + std::string getEndTime() const; + void setEndTime(const std::string &endTime); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string dBClusterId_; + long patternId_; + std::string endTime_; + std::string startTime_; + std::string regionId_; + std::string lang_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBESQLPATTERNATTRIBUTEREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/DescribeSQLPatternAttributeResult.h b/adb/include/alibabacloud/adb/model/DescribeSQLPatternAttributeResult.h new file mode 100644 index 000000000..807cdd9c7 --- /dev/null +++ b/adb/include/alibabacloud/adb/model/DescribeSQLPatternAttributeResult.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_ADB_MODEL_DESCRIBESQLPATTERNATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBESQLPATTERNATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Adb + { + namespace Model + { + class ALIBABACLOUD_ADB_EXPORT DescribeSQLPatternAttributeResult : public ServiceResult + { + public: + struct PatternDetail + { + std::string sQLPattern; + std::string totalQueryTime; + std::string averageMemory; + long queryCount; + std::string averageQueryTime; + }; + + + DescribeSQLPatternAttributeResult(); + explicit DescribeSQLPatternAttributeResult(const std::string &payload); + ~DescribeSQLPatternAttributeResult(); + PatternDetail getPatternDetail()const; + + protected: + void parse(const std::string &payload); + private: + PatternDetail patternDetail_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBESQLPATTERNATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/DescribeSQLPatternsRequest.h b/adb/include/alibabacloud/adb/model/DescribeSQLPatternsRequest.h new file mode 100644 index 000000000..bae1e335f --- /dev/null +++ b/adb/include/alibabacloud/adb/model/DescribeSQLPatternsRequest.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_ADB_MODEL_DESCRIBESQLPATTERNSREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBESQLPATTERNSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT DescribeSQLPatternsRequest : public RpcServiceRequest { +public: + DescribeSQLPatternsRequest(); + ~DescribeSQLPatternsRequest(); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getEndTime() const; + void setEndTime(const std::string &endTime); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + 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 getKeyword() const; + void setKeyword(const std::string &keyword); + std::string getLang() const; + void setLang(const std::string &lang); + std::string getOrder() const; + void setOrder(const std::string &order); + +private: + std::string dBClusterId_; + std::string endTime_; + std::string startTime_; + int pageNumber_; + std::string regionId_; + int pageSize_; + std::string keyword_; + std::string lang_; + std::string order_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBESQLPATTERNSREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/DescribeSQLPatternsResult.h b/adb/include/alibabacloud/adb/model/DescribeSQLPatternsResult.h new file mode 100644 index 000000000..42e82bb9d --- /dev/null +++ b/adb/include/alibabacloud/adb/model/DescribeSQLPatternsResult.h @@ -0,0 +1,77 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBESQLPATTERNSRESULT_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBESQLPATTERNSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Adb + { + namespace Model + { + class ALIBABACLOUD_ADB_EXPORT DescribeSQLPatternsResult : public ServiceResult + { + public: + struct PatternDetailsItem + { + std::string accessIp; + std::string sQLPattern; + std::string user; + double averageScanSize; + double averageQueryTime; + double averagePeakMemory; + long maxExecutionTime; + long maxQueryTime; + std::string patternId; + long maxScanSize; + std::string patternCreationTime; + long maxPeakMemory; + long queryCount; + std::string tables; + long failedCount; + double averageExecutionTime; + bool blockable; + }; + + + DescribeSQLPatternsResult(); + explicit DescribeSQLPatternsResult(const std::string &payload); + ~DescribeSQLPatternsResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getPatternDetails()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector patternDetails_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBESQLPATTERNSRESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/DescribeSQLPlanRequest.h b/adb/include/alibabacloud/adb/model/DescribeSQLPlanRequest.h index 5e7cca3dd..36e34548c 100644 --- a/adb/include/alibabacloud/adb/model/DescribeSQLPlanRequest.h +++ b/adb/include/alibabacloud/adb/model/DescribeSQLPlanRequest.h @@ -1,66 +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_ADB_MODEL_DESCRIBESQLPLANREQUEST_H_ -#define ALIBABACLOUD_ADB_MODEL_DESCRIBESQLPLANREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Adb - { - namespace Model - { - class ALIBABACLOUD_ADB_EXPORT DescribeSQLPlanRequest : public RpcServiceRequest - { - - public: - DescribeSQLPlanRequest(); - ~DescribeSQLPlanRequest(); - - 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 getProcessId()const; - void setProcessId(const std::string& processId); - - private: - long resourceOwnerId_; - std::string accessKeyId_; - std::string resourceOwnerAccount_; - std::string dBClusterId_; - std::string ownerAccount_; - long ownerId_; - std::string processId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBESQLPLANREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBESQLPLANREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBESQLPLANREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT DescribeSQLPlanRequest : public RpcServiceRequest { +public: + DescribeSQLPlanRequest(); + ~DescribeSQLPlanRequest(); + 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 getProcessId() const; + void setProcessId(const std::string &processId); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; + std::string processId_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBESQLPLANREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/DescribeSQLPlanResult.h b/adb/include/alibabacloud/adb/model/DescribeSQLPlanResult.h index 470216b9c..4e18f984f 100644 --- a/adb/include/alibabacloud/adb/model/DescribeSQLPlanResult.h +++ b/adb/include/alibabacloud/adb/model/DescribeSQLPlanResult.h @@ -45,8 +45,8 @@ namespace AlibabaCloud long cPUTime; long queuedTime; std::string state; - std::string database; long totalTime; + std::string database; long planningTime; long outputRows; }; @@ -60,14 +60,14 @@ namespace AlibabaCloud long scanTimeMin; long scanTimeAvg; long inputSizeMax; + long scanSizeMax; long inputSizeMin; long inputSizeAvg; - long scanSizeMax; std::string state; long operatorCost; long scanTimeMax; - long cPUTimeMin; long cPUTimeAvg; + long cPUTimeMin; }; diff --git a/adb/include/alibabacloud/adb/model/DescribeSQLPlanTaskRequest.h b/adb/include/alibabacloud/adb/model/DescribeSQLPlanTaskRequest.h index fb7f6dadf..d5e74251e 100644 --- a/adb/include/alibabacloud/adb/model/DescribeSQLPlanTaskRequest.h +++ b/adb/include/alibabacloud/adb/model/DescribeSQLPlanTaskRequest.h @@ -1,69 +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_ADB_MODEL_DESCRIBESQLPLANTASKREQUEST_H_ -#define ALIBABACLOUD_ADB_MODEL_DESCRIBESQLPLANTASKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Adb - { - namespace Model - { - class ALIBABACLOUD_ADB_EXPORT DescribeSQLPlanTaskRequest : public RpcServiceRequest - { - - public: - DescribeSQLPlanTaskRequest(); - ~DescribeSQLPlanTaskRequest(); - - 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 getProcessId()const; - void setProcessId(const std::string& processId); - std::string getStageId()const; - void setStageId(const std::string& stageId); - - private: - long resourceOwnerId_; - std::string accessKeyId_; - std::string resourceOwnerAccount_; - std::string dBClusterId_; - std::string ownerAccount_; - long ownerId_; - std::string processId_; - std::string stageId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBESQLPLANTASKREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBESQLPLANTASKREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBESQLPLANTASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT DescribeSQLPlanTaskRequest : public RpcServiceRequest { +public: + DescribeSQLPlanTaskRequest(); + ~DescribeSQLPlanTaskRequest(); + 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 getProcessId() const; + void setProcessId(const std::string &processId); + std::string getStageId() const; + void setStageId(const std::string &stageId); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; + std::string processId_; + std::string stageId_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBESQLPLANTASKREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/DescribeSQLPlanTaskResult.h b/adb/include/alibabacloud/adb/model/DescribeSQLPlanTaskResult.h index 053a5536e..015bd165f 100644 --- a/adb/include/alibabacloud/adb/model/DescribeSQLPlanTaskResult.h +++ b/adb/include/alibabacloud/adb/model/DescribeSQLPlanTaskResult.h @@ -35,15 +35,15 @@ namespace AlibabaCloud struct SqlPlanTask { long outputSize; - int taskId; long scanRows; - long inputSize; + int taskId; long scanCost; + long inputSize; std::string state; long peakMemory; - long elapsedTime; long operatorCost; long outputRows; + long elapsedTime; long scanSize; long inputRows; }; diff --git a/adb/include/alibabacloud/adb/model/DescribeSchemasRequest.h b/adb/include/alibabacloud/adb/model/DescribeSchemasRequest.h index d3142e4cc..1f7b7c2c6 100644 --- a/adb/include/alibabacloud/adb/model/DescribeSchemasRequest.h +++ b/adb/include/alibabacloud/adb/model/DescribeSchemasRequest.h @@ -1,63 +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_ADB_MODEL_DESCRIBESCHEMASREQUEST_H_ -#define ALIBABACLOUD_ADB_MODEL_DESCRIBESCHEMASREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Adb - { - namespace Model - { - class ALIBABACLOUD_ADB_EXPORT DescribeSchemasRequest : public RpcServiceRequest - { - - public: - DescribeSchemasRequest(); - ~DescribeSchemasRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBESCHEMASREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBESCHEMASREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBESCHEMASREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT DescribeSchemasRequest : public RpcServiceRequest { +public: + DescribeSchemasRequest(); + ~DescribeSchemasRequest(); + 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 Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBESCHEMASREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/DescribeSlowLogRecordsRequest.h b/adb/include/alibabacloud/adb/model/DescribeSlowLogRecordsRequest.h index fbbd41b4c..95e65790f 100644 --- a/adb/include/alibabacloud/adb/model/DescribeSlowLogRecordsRequest.h +++ b/adb/include/alibabacloud/adb/model/DescribeSlowLogRecordsRequest.h @@ -1,90 +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_ADB_MODEL_DESCRIBESLOWLOGRECORDSREQUEST_H_ -#define ALIBABACLOUD_ADB_MODEL_DESCRIBESLOWLOGRECORDSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Adb - { - namespace Model - { - class ALIBABACLOUD_ADB_EXPORT DescribeSlowLogRecordsRequest : public RpcServiceRequest - { - - public: - DescribeSlowLogRecordsRequest(); - ~DescribeSlowLogRecordsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRange()const; - void setRange(const std::string& range); - 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); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getState()const; - void setState(const std::string& state); - std::string getOrder()const; - void setOrder(const std::string& order); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getDBClusterId()const; - void setDBClusterId(const std::string& dBClusterId); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getEndTime()const; - void setEndTime(const std::string& endTime); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getDBName()const; - void setDBName(const std::string& dBName); - std::string getProcessID()const; - void setProcessID(const std::string& processID); - - private: - long resourceOwnerId_; - std::string range_; - std::string startTime_; - int pageNumber_; - std::string accessKeyId_; - int pageSize_; - std::string state_; - std::string order_; - std::string resourceOwnerAccount_; - std::string dBClusterId_; - std::string ownerAccount_; - std::string endTime_; - long ownerId_; - std::string dBName_; - std::string processID_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBESLOWLOGRECORDSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBESLOWLOGRECORDSREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBESLOWLOGRECORDSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT DescribeSlowLogRecordsRequest : public RpcServiceRequest { +public: + DescribeSlowLogRecordsRequest(); + ~DescribeSlowLogRecordsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRange() const; + void setRange(const std::string &range); + 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); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getState() const; + void setState(const std::string &state); + std::string getOrder() const; + void setOrder(const std::string &order); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getEndTime() const; + void setEndTime(const std::string &endTime); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getDBName() const; + void setDBName(const std::string &dBName); + std::string getProcessID() const; + void setProcessID(const std::string &processID); + +private: + long resourceOwnerId_; + std::string range_; + std::string startTime_; + int pageNumber_; + std::string accessKeyId_; + int pageSize_; + std::string state_; + std::string order_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + std::string endTime_; + long ownerId_; + std::string dBName_; + std::string processID_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBESLOWLOGRECORDSREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/DescribeSlowLogRecordsResult.h b/adb/include/alibabacloud/adb/model/DescribeSlowLogRecordsResult.h index d77a9dcf0..22372c681 100644 --- a/adb/include/alibabacloud/adb/model/DescribeSlowLogRecordsResult.h +++ b/adb/include/alibabacloud/adb/model/DescribeSlowLogRecordsResult.h @@ -38,10 +38,10 @@ namespace AlibabaCloud std::string userName; std::string peakMemoryUsage; std::string executionStartTime; - long parseRowCounts; long queryTime; - long scanTime; + long parseRowCounts; std::string hostAddress; + long scanTime; std::string sQLText; long wallTime; long scanRows; @@ -50,8 +50,8 @@ namespace AlibabaCloud long planningTime; std::string dBName; long queueTime; - std::string processID; std::string scanSize; + std::string processID; }; diff --git a/adb/include/alibabacloud/adb/model/DescribeSlowLogTrendRequest.h b/adb/include/alibabacloud/adb/model/DescribeSlowLogTrendRequest.h index 01148eec4..4d5ddd277 100644 --- a/adb/include/alibabacloud/adb/model/DescribeSlowLogTrendRequest.h +++ b/adb/include/alibabacloud/adb/model/DescribeSlowLogTrendRequest.h @@ -1,72 +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_ADB_MODEL_DESCRIBESLOWLOGTRENDREQUEST_H_ -#define ALIBABACLOUD_ADB_MODEL_DESCRIBESLOWLOGTRENDREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Adb - { - namespace Model - { - class ALIBABACLOUD_ADB_EXPORT DescribeSlowLogTrendRequest : public RpcServiceRequest - { - - public: - DescribeSlowLogTrendRequest(); - ~DescribeSlowLogTrendRequest(); - - 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); - std::string getDBName()const; - void setDBName(const std::string& dBName); - - private: - long resourceOwnerId_; - std::string startTime_; - std::string accessKeyId_; - std::string resourceOwnerAccount_; - std::string dBClusterId_; - std::string ownerAccount_; - std::string endTime_; - long ownerId_; - std::string dBName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBESLOWLOGTRENDREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBESLOWLOGTRENDREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBESLOWLOGTRENDREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT DescribeSlowLogTrendRequest : public RpcServiceRequest { +public: + DescribeSlowLogTrendRequest(); + ~DescribeSlowLogTrendRequest(); + 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); + std::string getDBName() const; + void setDBName(const std::string &dBName); + +private: + long resourceOwnerId_; + std::string startTime_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + std::string endTime_; + long ownerId_; + std::string dBName_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBESLOWLOGTRENDREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/DescribeSlowLogTrendResult.h b/adb/include/alibabacloud/adb/model/DescribeSlowLogTrendResult.h index 36ca531ae..10f073916 100644 --- a/adb/include/alibabacloud/adb/model/DescribeSlowLogTrendResult.h +++ b/adb/include/alibabacloud/adb/model/DescribeSlowLogTrendResult.h @@ -49,16 +49,16 @@ namespace AlibabaCloud explicit DescribeSlowLogTrendResult(const std::string &payload); ~DescribeSlowLogTrendResult(); std::string getEndTime()const; - std::string getDBClusterId()const; std::string getStartTime()const; + std::string getDBClusterId()const; std::vector getItems()const; protected: void parse(const std::string &payload); private: std::string endTime_; - std::string dBClusterId_; std::string startTime_; + std::string dBClusterId_; std::vector items_; }; diff --git a/adb/include/alibabacloud/adb/model/DescribeSqlPatternRequest.h b/adb/include/alibabacloud/adb/model/DescribeSqlPatternRequest.h new file mode 100644 index 000000000..60f4f9e82 --- /dev/null +++ b/adb/include/alibabacloud/adb/model/DescribeSqlPatternRequest.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_ADB_MODEL_DESCRIBESQLPATTERNREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBESQLPATTERNREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT DescribeSqlPatternRequest : public RpcServiceRequest { +public: + DescribeSqlPatternRequest(); + ~DescribeSqlPatternRequest(); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getSqlPattern() const; + void setSqlPattern(const std::string &sqlPattern); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + std::string getType() const; + void setType(const std::string &type); + 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 getOrder() const; + void setOrder(const std::string &order); + +private: + std::string dBClusterId_; + std::string sqlPattern_; + std::string startTime_; + std::string type_; + int pageNumber_; + std::string regionId_; + int pageSize_; + std::string order_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBESQLPATTERNREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/DescribeSqlPatternResult.h b/adb/include/alibabacloud/adb/model/DescribeSqlPatternResult.h new file mode 100644 index 000000000..d2e35e625 --- /dev/null +++ b/adb/include/alibabacloud/adb/model/DescribeSqlPatternResult.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_ADB_MODEL_DESCRIBESQLPATTERNRESULT_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBESQLPATTERNRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Adb + { + namespace Model + { + class ALIBABACLOUD_ADB_EXPORT DescribeSqlPatternResult : public ServiceResult + { + public: + struct ItemsItem + { + std::string avgPeakMemory; + std::string accessIP; + std::string avgCpuTime; + std::string pattern; + std::string user; + std::string maxStageCount; + std::string avgTaskCount; + std::string avgScanSize; + std::string reportDate; + std::string avgStageCount; + std::string instanceName; + std::string maxScanSize; + std::string maxPeakMemory; + std::string maxTaskCount; + std::string queryCount; + std::string maxCpuTime; + }; + + + DescribeSqlPatternResult(); + explicit DescribeSqlPatternResult(const std::string &payload); + ~DescribeSqlPatternResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getItems()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBESQLPATTERNRESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/DescribeTableAccessCountRequest.h b/adb/include/alibabacloud/adb/model/DescribeTableAccessCountRequest.h new file mode 100644 index 000000000..c751cccff --- /dev/null +++ b/adb/include/alibabacloud/adb/model/DescribeTableAccessCountRequest.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_ADB_MODEL_DESCRIBETABLEACCESSCOUNTREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBETABLEACCESSCOUNTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT DescribeTableAccessCountRequest : public RpcServiceRequest { +public: + DescribeTableAccessCountRequest(); + ~DescribeTableAccessCountRequest(); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + 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 getTableName() const; + void setTableName(const std::string &tableName); + std::string getOrder() const; + void setOrder(const std::string &order); + +private: + std::string dBClusterId_; + std::string startTime_; + int pageNumber_; + std::string regionId_; + int pageSize_; + std::string tableName_; + std::string order_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBETABLEACCESSCOUNTREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/DescribeTableAccessCountResult.h b/adb/include/alibabacloud/adb/model/DescribeTableAccessCountResult.h new file mode 100644 index 000000000..dc2219f36 --- /dev/null +++ b/adb/include/alibabacloud/adb/model/DescribeTableAccessCountResult.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_ADB_MODEL_DESCRIBETABLEACCESSCOUNTRESULT_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBETABLEACCESSCOUNTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Adb + { + namespace Model + { + class ALIBABACLOUD_ADB_EXPORT DescribeTableAccessCountResult : public ServiceResult + { + public: + struct ItemsItem + { + std::string instanceName; + std::string tableName; + std::string tableSchema; + std::string reportDate; + std::string accessCount; + }; + + + DescribeTableAccessCountResult(); + explicit DescribeTableAccessCountResult(const std::string &payload); + ~DescribeTableAccessCountResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getItems()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBETABLEACCESSCOUNTRESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/DescribeTableDetailRequest.h b/adb/include/alibabacloud/adb/model/DescribeTableDetailRequest.h index df3eae646..610220122 100644 --- a/adb/include/alibabacloud/adb/model/DescribeTableDetailRequest.h +++ b/adb/include/alibabacloud/adb/model/DescribeTableDetailRequest.h @@ -1,69 +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_ADB_MODEL_DESCRIBETABLEDETAILREQUEST_H_ -#define ALIBABACLOUD_ADB_MODEL_DESCRIBETABLEDETAILREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Adb - { - namespace Model - { - class ALIBABACLOUD_ADB_EXPORT DescribeTableDetailRequest : public RpcServiceRequest - { - - public: - DescribeTableDetailRequest(); - ~DescribeTableDetailRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getTableName()const; - void setTableName(const std::string& tableName); - std::string getSchemaName()const; - void setSchemaName(const std::string& schemaName); - 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 tableName_; - std::string schemaName_; - std::string resourceOwnerAccount_; - std::string dBClusterId_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBETABLEDETAILREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBETABLEDETAILREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBETABLEDETAILREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT DescribeTableDetailRequest : public RpcServiceRequest { +public: + DescribeTableDetailRequest(); + ~DescribeTableDetailRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getTableName() const; + void setTableName(const std::string &tableName); + std::string getSchemaName() const; + void setSchemaName(const std::string &schemaName); + 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 tableName_; + std::string schemaName_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBETABLEDETAILREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/DescribeTablePartitionDiagnoseRequest.h b/adb/include/alibabacloud/adb/model/DescribeTablePartitionDiagnoseRequest.h index 721f29d10..28ddb6974 100644 --- a/adb/include/alibabacloud/adb/model/DescribeTablePartitionDiagnoseRequest.h +++ b/adb/include/alibabacloud/adb/model/DescribeTablePartitionDiagnoseRequest.h @@ -1,72 +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_ADB_MODEL_DESCRIBETABLEPARTITIONDIAGNOSEREQUEST_H_ -#define ALIBABACLOUD_ADB_MODEL_DESCRIBETABLEPARTITIONDIAGNOSEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Adb - { - namespace Model - { - class ALIBABACLOUD_ADB_EXPORT DescribeTablePartitionDiagnoseRequest : public RpcServiceRequest - { - - public: - DescribeTablePartitionDiagnoseRequest(); - ~DescribeTablePartitionDiagnoseRequest(); - - 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 getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getDBClusterId()const; - void setDBClusterId(const std::string& dBClusterId); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - int pageNumber_; - std::string accessKeyId_; - std::string regionId_; - int pageSize_; - std::string resourceOwnerAccount_; - std::string dBClusterId_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBETABLEPARTITIONDIAGNOSEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBETABLEPARTITIONDIAGNOSEREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBETABLEPARTITIONDIAGNOSEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT DescribeTablePartitionDiagnoseRequest : public RpcServiceRequest { +public: + DescribeTablePartitionDiagnoseRequest(); + ~DescribeTablePartitionDiagnoseRequest(); + 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 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 regionId_; + int pageSize_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBETABLEPARTITIONDIAGNOSEREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/DescribeTableStatisticsRequest.h b/adb/include/alibabacloud/adb/model/DescribeTableStatisticsRequest.h index 6c1a0b233..d5ef1d84f 100644 --- a/adb/include/alibabacloud/adb/model/DescribeTableStatisticsRequest.h +++ b/adb/include/alibabacloud/adb/model/DescribeTableStatisticsRequest.h @@ -1,72 +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_ADB_MODEL_DESCRIBETABLESTATISTICSREQUEST_H_ -#define ALIBABACLOUD_ADB_MODEL_DESCRIBETABLESTATISTICSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Adb - { - namespace Model - { - class ALIBABACLOUD_ADB_EXPORT DescribeTableStatisticsRequest : public RpcServiceRequest - { - - public: - DescribeTableStatisticsRequest(); - ~DescribeTableStatisticsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getOrder()const; - void setOrder(const std::string& order); - 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_; - int pageSize_; - std::string order_; - std::string resourceOwnerAccount_; - std::string dBClusterId_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBETABLESTATISTICSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBETABLESTATISTICSREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBETABLESTATISTICSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT DescribeTableStatisticsRequest : public RpcServiceRequest { +public: + DescribeTableStatisticsRequest(); + ~DescribeTableStatisticsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getOrder() const; + void setOrder(const std::string &order); + 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_; + int pageSize_; + std::string order_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBETABLESTATISTICSREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/DescribeTableStatisticsResult.h b/adb/include/alibabacloud/adb/model/DescribeTableStatisticsResult.h index ae300a06b..3e217ea31 100644 --- a/adb/include/alibabacloud/adb/model/DescribeTableStatisticsResult.h +++ b/adb/include/alibabacloud/adb/model/DescribeTableStatisticsResult.h @@ -38,10 +38,10 @@ namespace AlibabaCloud long coldDataSize; long dataSize; long primaryKeyIndexSize; - long indexSize; long rowCount; - long partitionCount; + long indexSize; std::string schemaName; + long partitionCount; }; diff --git a/adb/include/alibabacloud/adb/model/DescribeTablesRequest.h b/adb/include/alibabacloud/adb/model/DescribeTablesRequest.h index e8f297076..8e14d2fcf 100644 --- a/adb/include/alibabacloud/adb/model/DescribeTablesRequest.h +++ b/adb/include/alibabacloud/adb/model/DescribeTablesRequest.h @@ -1,66 +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_ADB_MODEL_DESCRIBETABLESREQUEST_H_ -#define ALIBABACLOUD_ADB_MODEL_DESCRIBETABLESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Adb - { - namespace Model - { - class ALIBABACLOUD_ADB_EXPORT DescribeTablesRequest : public RpcServiceRequest - { - - public: - DescribeTablesRequest(); - ~DescribeTablesRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getSchemaName()const; - void setSchemaName(const std::string& schemaName); - 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 schemaName_; - std::string resourceOwnerAccount_; - std::string dBClusterId_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBETABLESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBETABLESREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBETABLESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT DescribeTablesRequest : public RpcServiceRequest { +public: + DescribeTablesRequest(); + ~DescribeTablesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getSchemaName() const; + void setSchemaName(const std::string &schemaName); + 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 schemaName_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBETABLESREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/DescribeTaskInfoRequest.h b/adb/include/alibabacloud/adb/model/DescribeTaskInfoRequest.h index ecee0444d..ea103e172 100644 --- a/adb/include/alibabacloud/adb/model/DescribeTaskInfoRequest.h +++ b/adb/include/alibabacloud/adb/model/DescribeTaskInfoRequest.h @@ -1,66 +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_ADB_MODEL_DESCRIBETASKINFOREQUEST_H_ -#define ALIBABACLOUD_ADB_MODEL_DESCRIBETASKINFOREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Adb - { - namespace Model - { - class ALIBABACLOUD_ADB_EXPORT DescribeTaskInfoRequest : public RpcServiceRequest - { - - public: - DescribeTaskInfoRequest(); - ~DescribeTaskInfoRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - int getTaskId()const; - void setTaskId(int 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); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string accessKeyId_; - int taskId_; - std::string resourceOwnerAccount_; - std::string dBClusterId_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBETASKINFOREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBETASKINFOREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBETASKINFOREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT DescribeTaskInfoRequest : public RpcServiceRequest { +public: + DescribeTaskInfoRequest(); + ~DescribeTaskInfoRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + int getTaskId() const; + void setTaskId(int 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); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + int taskId_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBETASKINFOREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/DownloadDiagnosisRecordsRequest.h b/adb/include/alibabacloud/adb/model/DownloadDiagnosisRecordsRequest.h new file mode 100644 index 000000000..1a8b3f330 --- /dev/null +++ b/adb/include/alibabacloud/adb/model/DownloadDiagnosisRecordsRequest.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_ADB_MODEL_DOWNLOADDIAGNOSISRECORDSREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_DOWNLOADDIAGNOSISRECORDSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT DownloadDiagnosisRecordsRequest : public RpcServiceRequest { +public: + DownloadDiagnosisRecordsRequest(); + ~DownloadDiagnosisRecordsRequest(); + long getMaxScanSize() const; + void setMaxScanSize(long maxScanSize); + std::string getResourceGroup() const; + void setResourceGroup(const std::string &resourceGroup); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getQueryCondition() const; + void setQueryCondition(const std::string &queryCondition); + std::string getEndTime() const; + void setEndTime(const std::string &endTime); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + std::string getRawStartTime() const; + void setRawStartTime(const std::string &rawStartTime); + long getMinPeakMemory() const; + void setMinPeakMemory(long minPeakMemory); + std::string getRawEndTime() const; + void setRawEndTime(const std::string &rawEndTime); + long getMinScanSize() const; + void setMinScanSize(long minScanSize); + std::string getDatabase() const; + void setDatabase(const std::string &database); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getClientIp() const; + void setClientIp(const std::string &clientIp); + long getMaxPeakMemory() const; + void setMaxPeakMemory(long maxPeakMemory); + std::string getKeyword() const; + void setKeyword(const std::string &keyword); + std::string getLang() const; + void setLang(const std::string &lang); + std::string getUserName() const; + void setUserName(const std::string &userName); + +private: + long maxScanSize_; + std::string resourceGroup_; + std::string dBClusterId_; + std::string queryCondition_; + std::string endTime_; + std::string startTime_; + std::string rawStartTime_; + long minPeakMemory_; + std::string rawEndTime_; + long minScanSize_; + std::string database_; + std::string regionId_; + std::string clientIp_; + long maxPeakMemory_; + std::string keyword_; + std::string lang_; + std::string userName_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_DOWNLOADDIAGNOSISRECORDSREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/DownloadDiagnosisRecordsResult.h b/adb/include/alibabacloud/adb/model/DownloadDiagnosisRecordsResult.h new file mode 100644 index 000000000..7ec389529 --- /dev/null +++ b/adb/include/alibabacloud/adb/model/DownloadDiagnosisRecordsResult.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_ADB_MODEL_DOWNLOADDIAGNOSISRECORDSRESULT_H_ +#define ALIBABACLOUD_ADB_MODEL_DOWNLOADDIAGNOSISRECORDSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Adb + { + namespace Model + { + class ALIBABACLOUD_ADB_EXPORT DownloadDiagnosisRecordsResult : public ServiceResult + { + public: + + + DownloadDiagnosisRecordsResult(); + explicit DownloadDiagnosisRecordsResult(const std::string &payload); + ~DownloadDiagnosisRecordsResult(); + int getDownloadId()const; + + protected: + void parse(const std::string &payload); + private: + int downloadId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ADB_MODEL_DOWNLOADDIAGNOSISRECORDSRESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/GrantOperatorPermissionRequest.h b/adb/include/alibabacloud/adb/model/GrantOperatorPermissionRequest.h index d996d9b5b..6af96e188 100644 --- a/adb/include/alibabacloud/adb/model/GrantOperatorPermissionRequest.h +++ b/adb/include/alibabacloud/adb/model/GrantOperatorPermissionRequest.h @@ -1,69 +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_ADB_MODEL_GRANTOPERATORPERMISSIONREQUEST_H_ -#define ALIBABACLOUD_ADB_MODEL_GRANTOPERATORPERMISSIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Adb - { - namespace Model - { - class ALIBABACLOUD_ADB_EXPORT GrantOperatorPermissionRequest : public RpcServiceRequest - { - - public: - GrantOperatorPermissionRequest(); - ~GrantOperatorPermissionRequest(); - - std::string getPrivileges()const; - void setPrivileges(const std::string& privileges); - 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 getExpiredTime()const; - void setExpiredTime(const std::string& expiredTime); - - private: - std::string privileges_; - long resourceOwnerId_; - std::string accessKeyId_; - std::string resourceOwnerAccount_; - std::string dBClusterId_; - std::string ownerAccount_; - long ownerId_; - std::string expiredTime_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ADB_MODEL_GRANTOPERATORPERMISSIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_GRANTOPERATORPERMISSIONREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_GRANTOPERATORPERMISSIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT GrantOperatorPermissionRequest : public RpcServiceRequest { +public: + GrantOperatorPermissionRequest(); + ~GrantOperatorPermissionRequest(); + std::string getPrivileges() const; + void setPrivileges(const std::string &privileges); + 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 getExpiredTime() const; + void setExpiredTime(const std::string &expiredTime); + +private: + std::string privileges_; + long resourceOwnerId_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; + std::string expiredTime_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_GRANTOPERATORPERMISSIONREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/KillProcessRequest.h b/adb/include/alibabacloud/adb/model/KillProcessRequest.h index a0aa034a2..69a1f6f51 100644 --- a/adb/include/alibabacloud/adb/model/KillProcessRequest.h +++ b/adb/include/alibabacloud/adb/model/KillProcessRequest.h @@ -1,66 +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_ADB_MODEL_KILLPROCESSREQUEST_H_ -#define ALIBABACLOUD_ADB_MODEL_KILLPROCESSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Adb - { - namespace Model - { - class ALIBABACLOUD_ADB_EXPORT KillProcessRequest : public RpcServiceRequest - { - - public: - KillProcessRequest(); - ~KillProcessRequest(); - - 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 getProcessId()const; - void setProcessId(const std::string& processId); - - private: - long resourceOwnerId_; - std::string accessKeyId_; - std::string resourceOwnerAccount_; - std::string dBClusterId_; - std::string ownerAccount_; - long ownerId_; - std::string processId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ADB_MODEL_KILLPROCESSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_KILLPROCESSREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_KILLPROCESSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT KillProcessRequest : public RpcServiceRequest { +public: + KillProcessRequest(); + ~KillProcessRequest(); + 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 getProcessId() const; + void setProcessId(const std::string &processId); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; + std::string processId_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_KILLPROCESSREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/ListTagResourcesRequest.h b/adb/include/alibabacloud/adb/model/ListTagResourcesRequest.h index 938d09986..e32a9e48a 100644 --- a/adb/include/alibabacloud/adb/model/ListTagResourcesRequest.h +++ b/adb/include/alibabacloud/adb/model/ListTagResourcesRequest.h @@ -1,81 +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_ADB_MODEL_LISTTAGRESOURCESREQUEST_H_ -#define ALIBABACLOUD_ADB_MODEL_LISTTAGRESOURCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Adb - { - namespace Model - { - class ALIBABACLOUD_ADB_EXPORT ListTagResourcesRequest : public RpcServiceRequest - { - public: - struct Tag - { - std::string value; - std::string key; - }; - - public: - ListTagResourcesRequest(); - ~ListTagResourcesRequest(); - - 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& regionId); - std::string getNextToken()const; - void setNextToken(const std::string& nextToken); - std::vector getTag()const; - void setTag(const std::vector& tag); - std::vector getResourceId()const; - void setResourceId(const std::vector& resourceId); - 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::vector tag_; - std::vector resourceId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string resourceType_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ADB_MODEL_LISTTAGRESOURCESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_LISTTAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_LISTTAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT ListTagResourcesRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + ListTagResourcesRequest(); + ~ListTagResourcesRequest(); + 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::vector getTag() const; + void setTag(const std::vector &tag); + std::vector getResourceId() const; + void setResourceId(const std::vector &resourceId); + 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::vector tag_; + std::vector resourceId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string resourceType_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_LISTTAGRESOURCESREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/ModifyAccountDescriptionRequest.h b/adb/include/alibabacloud/adb/model/ModifyAccountDescriptionRequest.h index e97358e4f..9f7212f32 100644 --- a/adb/include/alibabacloud/adb/model/ModifyAccountDescriptionRequest.h +++ b/adb/include/alibabacloud/adb/model/ModifyAccountDescriptionRequest.h @@ -1,69 +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_ADB_MODEL_MODIFYACCOUNTDESCRIPTIONREQUEST_H_ -#define ALIBABACLOUD_ADB_MODEL_MODIFYACCOUNTDESCRIPTIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Adb - { - namespace Model - { - class ALIBABACLOUD_ADB_EXPORT ModifyAccountDescriptionRequest : public RpcServiceRequest - { - - public: - ModifyAccountDescriptionRequest(); - ~ModifyAccountDescriptionRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - 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 accountDescription_; - std::string accessKeyId_; - std::string accountName_; - std::string resourceOwnerAccount_; - std::string dBClusterId_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ADB_MODEL_MODIFYACCOUNTDESCRIPTIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_MODIFYACCOUNTDESCRIPTIONREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_MODIFYACCOUNTDESCRIPTIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT ModifyAccountDescriptionRequest : public RpcServiceRequest { +public: + ModifyAccountDescriptionRequest(); + ~ModifyAccountDescriptionRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + 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 accountDescription_; + std::string accessKeyId_; + std::string accountName_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_MODIFYACCOUNTDESCRIPTIONREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/ModifyAuditLogConfigRequest.h b/adb/include/alibabacloud/adb/model/ModifyAuditLogConfigRequest.h index 4ade8caf6..e9656d1b9 100644 --- a/adb/include/alibabacloud/adb/model/ModifyAuditLogConfigRequest.h +++ b/adb/include/alibabacloud/adb/model/ModifyAuditLogConfigRequest.h @@ -1,69 +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_ADB_MODEL_MODIFYAUDITLOGCONFIGREQUEST_H_ -#define ALIBABACLOUD_ADB_MODEL_MODIFYAUDITLOGCONFIGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Adb - { - namespace Model - { - class ALIBABACLOUD_ADB_EXPORT ModifyAuditLogConfigRequest : public RpcServiceRequest - { - - public: - ModifyAuditLogConfigRequest(); - ~ModifyAuditLogConfigRequest(); - - 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& regionId); - 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 getAuditLogStatus()const; - void setAuditLogStatus(const std::string& auditLogStatus); - - private: - long resourceOwnerId_; - std::string accessKeyId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string dBClusterId_; - std::string ownerAccount_; - long ownerId_; - std::string auditLogStatus_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ADB_MODEL_MODIFYAUDITLOGCONFIGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_MODIFYAUDITLOGCONFIGREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_MODIFYAUDITLOGCONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT ModifyAuditLogConfigRequest : public RpcServiceRequest { +public: + ModifyAuditLogConfigRequest(); + ~ModifyAuditLogConfigRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + 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 getAuditLogStatus() const; + void setAuditLogStatus(const std::string &auditLogStatus); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; + std::string auditLogStatus_; + std::string accessKeyId_; + std::string regionId_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_MODIFYAUDITLOGCONFIGREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/ModifyAuditLogConfigResult.h b/adb/include/alibabacloud/adb/model/ModifyAuditLogConfigResult.h index 1deca7211..132c3adf4 100644 --- a/adb/include/alibabacloud/adb/model/ModifyAuditLogConfigResult.h +++ b/adb/include/alibabacloud/adb/model/ModifyAuditLogConfigResult.h @@ -37,10 +37,12 @@ namespace AlibabaCloud ModifyAuditLogConfigResult(); explicit ModifyAuditLogConfigResult(const std::string &payload); ~ModifyAuditLogConfigResult(); + bool getUpdateSucceed()const; protected: void parse(const std::string &payload); private: + bool updateSucceed_; }; } diff --git a/adb/include/alibabacloud/adb/model/ModifyAutoRenewAttributeRequest.h b/adb/include/alibabacloud/adb/model/ModifyAutoRenewAttributeRequest.h index 11b80dde0..91114f573 100644 --- a/adb/include/alibabacloud/adb/model/ModifyAutoRenewAttributeRequest.h +++ b/adb/include/alibabacloud/adb/model/ModifyAutoRenewAttributeRequest.h @@ -1,75 +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_ADB_MODEL_MODIFYAUTORENEWATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_ADB_MODEL_MODIFYAUTORENEWATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Adb - { - namespace Model - { - class ALIBABACLOUD_ADB_EXPORT ModifyAutoRenewAttributeRequest : public RpcServiceRequest - { - - public: - ModifyAutoRenewAttributeRequest(); - ~ModifyAutoRenewAttributeRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getDuration()const; - void setDuration(const std::string& duration); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getRenewalStatus()const; - void setRenewalStatus(const std::string& renewalStatus); - 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 getPeriodUnit()const; - void setPeriodUnit(const std::string& periodUnit); - - private: - long resourceOwnerId_; - std::string accessKeyId_; - std::string duration_; - std::string regionId_; - std::string renewalStatus_; - std::string resourceOwnerAccount_; - std::string dBClusterId_; - std::string ownerAccount_; - long ownerId_; - std::string periodUnit_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ADB_MODEL_MODIFYAUTORENEWATTRIBUTEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_MODIFYAUTORENEWATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_MODIFYAUTORENEWATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT ModifyAutoRenewAttributeRequest : public RpcServiceRequest { +public: + ModifyAutoRenewAttributeRequest(); + ~ModifyAutoRenewAttributeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getDuration() const; + void setDuration(const std::string &duration); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getRenewalStatus() const; + void setRenewalStatus(const std::string &renewalStatus); + 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 getPeriodUnit() const; + void setPeriodUnit(const std::string &periodUnit); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string duration_; + std::string regionId_; + std::string renewalStatus_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; + std::string periodUnit_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_MODIFYAUTORENEWATTRIBUTEREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/ModifyBackupPolicyRequest.h b/adb/include/alibabacloud/adb/model/ModifyBackupPolicyRequest.h index ca243114b..5ae6c21e1 100644 --- a/adb/include/alibabacloud/adb/model/ModifyBackupPolicyRequest.h +++ b/adb/include/alibabacloud/adb/model/ModifyBackupPolicyRequest.h @@ -1,78 +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_ADB_MODEL_MODIFYBACKUPPOLICYREQUEST_H_ -#define ALIBABACLOUD_ADB_MODEL_MODIFYBACKUPPOLICYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Adb - { - namespace Model - { - class ALIBABACLOUD_ADB_EXPORT ModifyBackupPolicyRequest : public RpcServiceRequest - { - - public: - ModifyBackupPolicyRequest(); - ~ModifyBackupPolicyRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getEnableBackupLog()const; - void setEnableBackupLog(const std::string& enableBackupLog); - std::string getPreferredBackupPeriod()const; - void setPreferredBackupPeriod(const std::string& preferredBackupPeriod); - 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 getPreferredBackupTime()const; - void setPreferredBackupTime(const std::string& preferredBackupTime); - std::string getBackupRetentionPeriod()const; - void setBackupRetentionPeriod(const std::string& backupRetentionPeriod); - int getLogBackupRetentionPeriod()const; - void setLogBackupRetentionPeriod(int logBackupRetentionPeriod); - - private: - long resourceOwnerId_; - std::string accessKeyId_; - std::string enableBackupLog_; - std::string preferredBackupPeriod_; - std::string resourceOwnerAccount_; - std::string dBClusterId_; - std::string ownerAccount_; - long ownerId_; - std::string preferredBackupTime_; - std::string backupRetentionPeriod_; - int logBackupRetentionPeriod_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ADB_MODEL_MODIFYBACKUPPOLICYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_MODIFYBACKUPPOLICYREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_MODIFYBACKUPPOLICYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT ModifyBackupPolicyRequest : public RpcServiceRequest { +public: + ModifyBackupPolicyRequest(); + ~ModifyBackupPolicyRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getEnableBackupLog() const; + void setEnableBackupLog(const std::string &enableBackupLog); + std::string getPreferredBackupPeriod() const; + void setPreferredBackupPeriod(const std::string &preferredBackupPeriod); + 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 getPreferredBackupTime() const; + void setPreferredBackupTime(const std::string &preferredBackupTime); + std::string getBackupRetentionPeriod() const; + void setBackupRetentionPeriod(const std::string &backupRetentionPeriod); + int getLogBackupRetentionPeriod() const; + void setLogBackupRetentionPeriod(int logBackupRetentionPeriod); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string enableBackupLog_; + std::string preferredBackupPeriod_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; + std::string preferredBackupTime_; + std::string backupRetentionPeriod_; + int logBackupRetentionPeriod_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_MODIFYBACKUPPOLICYREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/ModifyClusterConnectionStringRequest.h b/adb/include/alibabacloud/adb/model/ModifyClusterConnectionStringRequest.h index 8e6675cb5..143bd9e43 100644 --- a/adb/include/alibabacloud/adb/model/ModifyClusterConnectionStringRequest.h +++ b/adb/include/alibabacloud/adb/model/ModifyClusterConnectionStringRequest.h @@ -1,72 +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_ADB_MODEL_MODIFYCLUSTERCONNECTIONSTRINGREQUEST_H_ -#define ALIBABACLOUD_ADB_MODEL_MODIFYCLUSTERCONNECTIONSTRINGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Adb - { - namespace Model - { - class ALIBABACLOUD_ADB_EXPORT ModifyClusterConnectionStringRequest : public RpcServiceRequest - { - - public: - ModifyClusterConnectionStringRequest(); - ~ModifyClusterConnectionStringRequest(); - - 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); - std::string getCurrentConnectionString()const; - void setCurrentConnectionString(const std::string& currentConnectionString); - int getPort()const; - void setPort(int port); - - private: - long resourceOwnerId_; - std::string connectionStringPrefix_; - std::string accessKeyId_; - std::string resourceOwnerAccount_; - std::string dBClusterId_; - std::string ownerAccount_; - long ownerId_; - std::string currentConnectionString_; - int port_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ADB_MODEL_MODIFYCLUSTERCONNECTIONSTRINGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_MODIFYCLUSTERCONNECTIONSTRINGREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_MODIFYCLUSTERCONNECTIONSTRINGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT ModifyClusterConnectionStringRequest : public RpcServiceRequest { +public: + ModifyClusterConnectionStringRequest(); + ~ModifyClusterConnectionStringRequest(); + 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); + std::string getCurrentConnectionString() const; + void setCurrentConnectionString(const std::string ¤tConnectionString); + int getPort() const; + void setPort(int port); + +private: + long resourceOwnerId_; + std::string connectionStringPrefix_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; + std::string currentConnectionString_; + int port_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_MODIFYCLUSTERCONNECTIONSTRINGREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/ModifyDBClusterAccessWhiteListRequest.h b/adb/include/alibabacloud/adb/model/ModifyDBClusterAccessWhiteListRequest.h index d86c0f7ce..7d12eb83d 100644 --- a/adb/include/alibabacloud/adb/model/ModifyDBClusterAccessWhiteListRequest.h +++ b/adb/include/alibabacloud/adb/model/ModifyDBClusterAccessWhiteListRequest.h @@ -1,75 +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_ADB_MODEL_MODIFYDBCLUSTERACCESSWHITELISTREQUEST_H_ -#define ALIBABACLOUD_ADB_MODEL_MODIFYDBCLUSTERACCESSWHITELISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Adb - { - namespace Model - { - class ALIBABACLOUD_ADB_EXPORT ModifyDBClusterAccessWhiteListRequest : public RpcServiceRequest - { - - public: - ModifyDBClusterAccessWhiteListRequest(); - ~ModifyDBClusterAccessWhiteListRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getSecurityIps()const; - void setSecurityIps(const std::string& securityIps); - std::string getDBClusterIPArrayAttribute()const; - void setDBClusterIPArrayAttribute(const std::string& dBClusterIPArrayAttribute); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getModifyMode()const; - void setModifyMode(const std::string& modifyMode); - 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 getDBClusterIPArrayName()const; - void setDBClusterIPArrayName(const std::string& dBClusterIPArrayName); - - private: - long resourceOwnerId_; - std::string securityIps_; - std::string dBClusterIPArrayAttribute_; - std::string accessKeyId_; - std::string modifyMode_; - std::string resourceOwnerAccount_; - std::string dBClusterId_; - std::string ownerAccount_; - long ownerId_; - std::string dBClusterIPArrayName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ADB_MODEL_MODIFYDBCLUSTERACCESSWHITELISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_MODIFYDBCLUSTERACCESSWHITELISTREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_MODIFYDBCLUSTERACCESSWHITELISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT ModifyDBClusterAccessWhiteListRequest : public RpcServiceRequest { +public: + ModifyDBClusterAccessWhiteListRequest(); + ~ModifyDBClusterAccessWhiteListRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSecurityIps() const; + void setSecurityIps(const std::string &securityIps); + std::string getDBClusterIPArrayAttribute() const; + void setDBClusterIPArrayAttribute(const std::string &dBClusterIPArrayAttribute); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getModifyMode() const; + void setModifyMode(const std::string &modifyMode); + 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 getDBClusterIPArrayName() const; + void setDBClusterIPArrayName(const std::string &dBClusterIPArrayName); + +private: + long resourceOwnerId_; + std::string securityIps_; + std::string dBClusterIPArrayAttribute_; + std::string accessKeyId_; + std::string modifyMode_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; + std::string dBClusterIPArrayName_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_MODIFYDBCLUSTERACCESSWHITELISTREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/ModifyDBClusterDescriptionRequest.h b/adb/include/alibabacloud/adb/model/ModifyDBClusterDescriptionRequest.h index be24ed8e7..6b9c799df 100644 --- a/adb/include/alibabacloud/adb/model/ModifyDBClusterDescriptionRequest.h +++ b/adb/include/alibabacloud/adb/model/ModifyDBClusterDescriptionRequest.h @@ -1,66 +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_ADB_MODEL_MODIFYDBCLUSTERDESCRIPTIONREQUEST_H_ -#define ALIBABACLOUD_ADB_MODEL_MODIFYDBCLUSTERDESCRIPTIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Adb - { - namespace Model - { - class ALIBABACLOUD_ADB_EXPORT ModifyDBClusterDescriptionRequest : public RpcServiceRequest - { - - public: - ModifyDBClusterDescriptionRequest(); - ~ModifyDBClusterDescriptionRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ADB_MODEL_MODIFYDBCLUSTERDESCRIPTIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_MODIFYDBCLUSTERDESCRIPTIONREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_MODIFYDBCLUSTERDESCRIPTIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT ModifyDBClusterDescriptionRequest : public RpcServiceRequest { +public: + ModifyDBClusterDescriptionRequest(); + ~ModifyDBClusterDescriptionRequest(); + 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 Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_MODIFYDBCLUSTERDESCRIPTIONREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/ModifyDBClusterMaintainTimeRequest.h b/adb/include/alibabacloud/adb/model/ModifyDBClusterMaintainTimeRequest.h index 5439b39b5..b37f566f0 100644 --- a/adb/include/alibabacloud/adb/model/ModifyDBClusterMaintainTimeRequest.h +++ b/adb/include/alibabacloud/adb/model/ModifyDBClusterMaintainTimeRequest.h @@ -1,66 +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_ADB_MODEL_MODIFYDBCLUSTERMAINTAINTIMEREQUEST_H_ -#define ALIBABACLOUD_ADB_MODEL_MODIFYDBCLUSTERMAINTAINTIMEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Adb - { - namespace Model - { - class ALIBABACLOUD_ADB_EXPORT ModifyDBClusterMaintainTimeRequest : public RpcServiceRequest - { - - public: - ModifyDBClusterMaintainTimeRequest(); - ~ModifyDBClusterMaintainTimeRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getMaintainTime()const; - void setMaintainTime(const std::string& maintainTime); - 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 maintainTime_; - std::string resourceOwnerAccount_; - std::string dBClusterId_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ADB_MODEL_MODIFYDBCLUSTERMAINTAINTIMEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_MODIFYDBCLUSTERMAINTAINTIMEREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_MODIFYDBCLUSTERMAINTAINTIMEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT ModifyDBClusterMaintainTimeRequest : public RpcServiceRequest { +public: + ModifyDBClusterMaintainTimeRequest(); + ~ModifyDBClusterMaintainTimeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getMaintainTime() const; + void setMaintainTime(const std::string &maintainTime); + 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 maintainTime_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_MODIFYDBCLUSTERMAINTAINTIMEREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/ModifyDBClusterPayTypeRequest.h b/adb/include/alibabacloud/adb/model/ModifyDBClusterPayTypeRequest.h new file mode 100644 index 000000000..1ba974511 --- /dev/null +++ b/adb/include/alibabacloud/adb/model/ModifyDBClusterPayTypeRequest.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_ADB_MODEL_MODIFYDBCLUSTERPAYTYPEREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_MODIFYDBCLUSTERPAYTYPEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT ModifyDBClusterPayTypeRequest : public RpcServiceRequest { +public: + ModifyDBClusterPayTypeRequest(); + ~ModifyDBClusterPayTypeRequest(); + std::string getPeriod() const; + void setPeriod(const std::string &period); + std::string getDbClusterId() const; + void setDbClusterId(const std::string &dbClusterId); + std::string getUsedTime() const; + void setUsedTime(const std::string &usedTime); + std::string getPayType() const; + void setPayType(const std::string &payType); + +private: + std::string period_; + std::string dbClusterId_; + std::string usedTime_; + std::string payType_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_MODIFYDBCLUSTERPAYTYPEREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/ModifyDBClusterPayTypeResult.h b/adb/include/alibabacloud/adb/model/ModifyDBClusterPayTypeResult.h new file mode 100644 index 000000000..432844558 --- /dev/null +++ b/adb/include/alibabacloud/adb/model/ModifyDBClusterPayTypeResult.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_ADB_MODEL_MODIFYDBCLUSTERPAYTYPERESULT_H_ +#define ALIBABACLOUD_ADB_MODEL_MODIFYDBCLUSTERPAYTYPERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Adb + { + namespace Model + { + class ALIBABACLOUD_ADB_EXPORT ModifyDBClusterPayTypeResult : public ServiceResult + { + public: + + + ModifyDBClusterPayTypeResult(); + explicit ModifyDBClusterPayTypeResult(const std::string &payload); + ~ModifyDBClusterPayTypeResult(); + std::string getDBClusterId()const; + std::string getPayType()const; + std::string getOrderId()const; + + protected: + void parse(const std::string &payload); + private: + std::string dBClusterId_; + std::string payType_; + std::string orderId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ADB_MODEL_MODIFYDBCLUSTERPAYTYPERESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/ModifyDBClusterRequest.h b/adb/include/alibabacloud/adb/model/ModifyDBClusterRequest.h index 439cb09b1..d5dc1f0b8 100644 --- a/adb/include/alibabacloud/adb/model/ModifyDBClusterRequest.h +++ b/adb/include/alibabacloud/adb/model/ModifyDBClusterRequest.h @@ -1,96 +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_ADB_MODEL_MODIFYDBCLUSTERREQUEST_H_ -#define ALIBABACLOUD_ADB_MODEL_MODIFYDBCLUSTERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Adb - { - namespace Model - { - class ALIBABACLOUD_ADB_EXPORT ModifyDBClusterRequest : public RpcServiceRequest - { - - public: - ModifyDBClusterRequest(); - ~ModifyDBClusterRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getMode()const; - void setMode(const std::string& mode); - std::string getStorageResource()const; - void setStorageResource(const std::string& storageResource); - std::string getDBNodeClass()const; - void setDBNodeClass(const std::string& dBNodeClass); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getDBClusterCategory()const; - void setDBClusterCategory(const std::string& dBClusterCategory); - 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 getDBNodeGroupCount()const; - void setDBNodeGroupCount(const std::string& dBNodeGroupCount); - std::string getDBNodeStorage()const; - void setDBNodeStorage(const std::string& dBNodeStorage); - std::string getExecutorCount()const; - void setExecutorCount(const std::string& executorCount); - std::string getModifyType()const; - void setModifyType(const std::string& modifyType); - std::string getComputeResource()const; - void setComputeResource(const std::string& computeResource); - int getElasticIOResource()const; - void setElasticIOResource(int elasticIOResource); - - private: - long resourceOwnerId_; - std::string accessKeyId_; - std::string mode_; - std::string storageResource_; - std::string dBNodeClass_; - std::string regionId_; - std::string dBClusterCategory_; - std::string resourceOwnerAccount_; - std::string dBClusterId_; - std::string ownerAccount_; - long ownerId_; - std::string dBNodeGroupCount_; - std::string dBNodeStorage_; - std::string executorCount_; - std::string modifyType_; - std::string computeResource_; - int elasticIOResource_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ADB_MODEL_MODIFYDBCLUSTERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_MODIFYDBCLUSTERREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_MODIFYDBCLUSTERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT ModifyDBClusterRequest : public RpcServiceRequest { +public: + ModifyDBClusterRequest(); + ~ModifyDBClusterRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getMode() const; + void setMode(const std::string &mode); + std::string getStorageResource() const; + void setStorageResource(const std::string &storageResource); + std::string getDBNodeClass() const; + void setDBNodeClass(const std::string &dBNodeClass); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getDBClusterCategory() const; + void setDBClusterCategory(const std::string &dBClusterCategory); + 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 getDBNodeGroupCount() const; + void setDBNodeGroupCount(const std::string &dBNodeGroupCount); + std::string getDBNodeStorage() const; + void setDBNodeStorage(const std::string &dBNodeStorage); + std::string getExecutorCount() const; + void setExecutorCount(const std::string &executorCount); + std::string getModifyType() const; + void setModifyType(const std::string &modifyType); + std::string getComputeResource() const; + void setComputeResource(const std::string &computeResource); + int getElasticIOResource() const; + void setElasticIOResource(int elasticIOResource); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string mode_; + std::string storageResource_; + std::string dBNodeClass_; + std::string regionId_; + std::string dBClusterCategory_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; + std::string dBNodeGroupCount_; + std::string dBNodeStorage_; + std::string executorCount_; + std::string modifyType_; + std::string computeResource_; + int elasticIOResource_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_MODIFYDBCLUSTERREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/ModifyDBClusterResourceGroupRequest.h b/adb/include/alibabacloud/adb/model/ModifyDBClusterResourceGroupRequest.h index 3cead7f44..9f4a6bb7f 100644 --- a/adb/include/alibabacloud/adb/model/ModifyDBClusterResourceGroupRequest.h +++ b/adb/include/alibabacloud/adb/model/ModifyDBClusterResourceGroupRequest.h @@ -1,66 +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_ADB_MODEL_MODIFYDBCLUSTERRESOURCEGROUPREQUEST_H_ -#define ALIBABACLOUD_ADB_MODEL_MODIFYDBCLUSTERRESOURCEGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Adb - { - namespace Model - { - class ALIBABACLOUD_ADB_EXPORT ModifyDBClusterResourceGroupRequest : public RpcServiceRequest - { - - public: - ModifyDBClusterResourceGroupRequest(); - ~ModifyDBClusterResourceGroupRequest(); - - 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 getNewResourceGroupId()const; - void setNewResourceGroupId(const std::string& newResourceGroupId); - - private: - long resourceOwnerId_; - std::string accessKeyId_; - std::string resourceOwnerAccount_; - std::string dBClusterId_; - std::string ownerAccount_; - long ownerId_; - std::string newResourceGroupId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ADB_MODEL_MODIFYDBCLUSTERRESOURCEGROUPREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_MODIFYDBCLUSTERRESOURCEGROUPREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_MODIFYDBCLUSTERRESOURCEGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT ModifyDBClusterResourceGroupRequest : public RpcServiceRequest { +public: + ModifyDBClusterResourceGroupRequest(); + ~ModifyDBClusterResourceGroupRequest(); + 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 getNewResourceGroupId() const; + void setNewResourceGroupId(const std::string &newResourceGroupId); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; + std::string newResourceGroupId_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_MODIFYDBCLUSTERRESOURCEGROUPREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/ModifyDBResourceGroupRequest.h b/adb/include/alibabacloud/adb/model/ModifyDBResourceGroupRequest.h new file mode 100644 index 000000000..430203e3a --- /dev/null +++ b/adb/include/alibabacloud/adb/model/ModifyDBResourceGroupRequest.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_ADB_MODEL_MODIFYDBRESOURCEGROUPREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_MODIFYDBRESOURCEGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT ModifyDBResourceGroupRequest : public RpcServiceRequest { +public: + ModifyDBResourceGroupRequest(); + ~ModifyDBResourceGroupRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getNodeNum() const; + void setNodeNum(int nodeNum); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getGroupType() const; + void setGroupType(const std::string &groupType); + 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 getGroupName() const; + void setGroupName(const std::string &groupName); + +private: + long resourceOwnerId_; + int nodeNum_; + std::string accessKeyId_; + std::string groupType_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; + std::string groupName_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_MODIFYDBRESOURCEGROUPREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/ModifyDBResourceGroupResult.h b/adb/include/alibabacloud/adb/model/ModifyDBResourceGroupResult.h new file mode 100644 index 000000000..fc4d80f67 --- /dev/null +++ b/adb/include/alibabacloud/adb/model/ModifyDBResourceGroupResult.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_ADB_MODEL_MODIFYDBRESOURCEGROUPRESULT_H_ +#define ALIBABACLOUD_ADB_MODEL_MODIFYDBRESOURCEGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Adb + { + namespace Model + { + class ALIBABACLOUD_ADB_EXPORT ModifyDBResourceGroupResult : public ServiceResult + { + public: + + + ModifyDBResourceGroupResult(); + explicit ModifyDBResourceGroupResult(const std::string &payload); + ~ModifyDBResourceGroupResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ADB_MODEL_MODIFYDBRESOURCEGROUPRESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/ModifyDBResourcePoolRequest.h b/adb/include/alibabacloud/adb/model/ModifyDBResourcePoolRequest.h index 3447a5880..0c23d33b5 100644 --- a/adb/include/alibabacloud/adb/model/ModifyDBResourcePoolRequest.h +++ b/adb/include/alibabacloud/adb/model/ModifyDBResourcePoolRequest.h @@ -1,72 +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_ADB_MODEL_MODIFYDBRESOURCEPOOLREQUEST_H_ -#define ALIBABACLOUD_ADB_MODEL_MODIFYDBRESOURCEPOOLREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Adb - { - namespace Model - { - class ALIBABACLOUD_ADB_EXPORT ModifyDBResourcePoolRequest : public RpcServiceRequest - { - - public: - ModifyDBResourcePoolRequest(); - ~ModifyDBResourcePoolRequest(); - - std::string getPoolName()const; - void setPoolName(const std::string& poolName); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - int getNodeNum()const; - void setNodeNum(int nodeNum); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getQueryType()const; - void setQueryType(const std::string& queryType); - 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: - std::string poolName_; - long resourceOwnerId_; - int nodeNum_; - std::string accessKeyId_; - std::string queryType_; - std::string resourceOwnerAccount_; - std::string dBClusterId_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ADB_MODEL_MODIFYDBRESOURCEPOOLREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_MODIFYDBRESOURCEPOOLREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_MODIFYDBRESOURCEPOOLREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT ModifyDBResourcePoolRequest : public RpcServiceRequest { +public: + ModifyDBResourcePoolRequest(); + ~ModifyDBResourcePoolRequest(); + std::string getPoolName() const; + void setPoolName(const std::string &poolName); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getNodeNum() const; + void setNodeNum(int nodeNum); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getQueryType() const; + void setQueryType(const std::string &queryType); + 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: + std::string poolName_; + long resourceOwnerId_; + int nodeNum_; + std::string accessKeyId_; + std::string queryType_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_MODIFYDBRESOURCEPOOLREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/ModifyElasticPlanRequest.h b/adb/include/alibabacloud/adb/model/ModifyElasticPlanRequest.h index 324a3e05f..f4accc17e 100644 --- a/adb/include/alibabacloud/adb/model/ModifyElasticPlanRequest.h +++ b/adb/include/alibabacloud/adb/model/ModifyElasticPlanRequest.h @@ -1,90 +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_ADB_MODEL_MODIFYELASTICPLANREQUEST_H_ -#define ALIBABACLOUD_ADB_MODEL_MODIFYELASTICPLANREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Adb - { - namespace Model - { - class ALIBABACLOUD_ADB_EXPORT ModifyElasticPlanRequest : public RpcServiceRequest - { - - public: - ModifyElasticPlanRequest(); - ~ModifyElasticPlanRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getElasticPlanTimeStart()const; - void setElasticPlanTimeStart(const std::string& elasticPlanTimeStart); - std::string getElasticPlanEndDay()const; - void setElasticPlanEndDay(const std::string& elasticPlanEndDay); - std::string getElasticPlanWeeklyRepeat()const; - void setElasticPlanWeeklyRepeat(const std::string& elasticPlanWeeklyRepeat); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - bool getElasticPlanEnable()const; - void setElasticPlanEnable(bool elasticPlanEnable); - std::string getElasticPlanTimeEnd()const; - void setElasticPlanTimeEnd(const std::string& elasticPlanTimeEnd); - std::string getElasticPlanStartDay()const; - void setElasticPlanStartDay(const std::string& elasticPlanStartDay); - 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 getElasticPlanName()const; - void setElasticPlanName(const std::string& elasticPlanName); - std::string getResourcePoolName()const; - void setResourcePoolName(const std::string& resourcePoolName); - int getElasticPlanNodeNum()const; - void setElasticPlanNodeNum(int elasticPlanNodeNum); - - private: - long resourceOwnerId_; - std::string elasticPlanTimeStart_; - std::string elasticPlanEndDay_; - std::string elasticPlanWeeklyRepeat_; - std::string accessKeyId_; - bool elasticPlanEnable_; - std::string elasticPlanTimeEnd_; - std::string elasticPlanStartDay_; - std::string resourceOwnerAccount_; - std::string dBClusterId_; - std::string ownerAccount_; - long ownerId_; - std::string elasticPlanName_; - std::string resourcePoolName_; - int elasticPlanNodeNum_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ADB_MODEL_MODIFYELASTICPLANREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_MODIFYELASTICPLANREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_MODIFYELASTICPLANREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT ModifyElasticPlanRequest : public RpcServiceRequest { +public: + ModifyElasticPlanRequest(); + ~ModifyElasticPlanRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getElasticPlanTimeStart() const; + void setElasticPlanTimeStart(const std::string &elasticPlanTimeStart); + std::string getElasticPlanEndDay() const; + void setElasticPlanEndDay(const std::string &elasticPlanEndDay); + std::string getElasticPlanWeeklyRepeat() const; + void setElasticPlanWeeklyRepeat(const std::string &elasticPlanWeeklyRepeat); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + bool getElasticPlanEnable() const; + void setElasticPlanEnable(bool elasticPlanEnable); + std::string getElasticPlanTimeEnd() const; + void setElasticPlanTimeEnd(const std::string &elasticPlanTimeEnd); + std::string getElasticPlanStartDay() const; + void setElasticPlanStartDay(const std::string &elasticPlanStartDay); + 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 getElasticPlanName() const; + void setElasticPlanName(const std::string &elasticPlanName); + std::string getResourcePoolName() const; + void setResourcePoolName(const std::string &resourcePoolName); + int getElasticPlanNodeNum() const; + void setElasticPlanNodeNum(int elasticPlanNodeNum); + +private: + long resourceOwnerId_; + std::string elasticPlanTimeStart_; + std::string elasticPlanEndDay_; + std::string elasticPlanWeeklyRepeat_; + std::string accessKeyId_; + bool elasticPlanEnable_; + std::string elasticPlanTimeEnd_; + std::string elasticPlanStartDay_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; + std::string elasticPlanName_; + std::string resourcePoolName_; + int elasticPlanNodeNum_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_MODIFYELASTICPLANREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/ModifyLogBackupPolicyRequest.h b/adb/include/alibabacloud/adb/model/ModifyLogBackupPolicyRequest.h index fdc97c011..b3aa4a9b2 100644 --- a/adb/include/alibabacloud/adb/model/ModifyLogBackupPolicyRequest.h +++ b/adb/include/alibabacloud/adb/model/ModifyLogBackupPolicyRequest.h @@ -1,69 +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_ADB_MODEL_MODIFYLOGBACKUPPOLICYREQUEST_H_ -#define ALIBABACLOUD_ADB_MODEL_MODIFYLOGBACKUPPOLICYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Adb - { - namespace Model - { - class ALIBABACLOUD_ADB_EXPORT ModifyLogBackupPolicyRequest : public RpcServiceRequest - { - - public: - ModifyLogBackupPolicyRequest(); - ~ModifyLogBackupPolicyRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getEnableBackupLog()const; - void setEnableBackupLog(const std::string& enableBackupLog); - 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 getLogBackupRetentionPeriod()const; - void setLogBackupRetentionPeriod(const std::string& logBackupRetentionPeriod); - - private: - long resourceOwnerId_; - std::string accessKeyId_; - std::string enableBackupLog_; - std::string resourceOwnerAccount_; - std::string dBClusterId_; - std::string ownerAccount_; - long ownerId_; - std::string logBackupRetentionPeriod_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ADB_MODEL_MODIFYLOGBACKUPPOLICYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_MODIFYLOGBACKUPPOLICYREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_MODIFYLOGBACKUPPOLICYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT ModifyLogBackupPolicyRequest : public RpcServiceRequest { +public: + ModifyLogBackupPolicyRequest(); + ~ModifyLogBackupPolicyRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getEnableBackupLog() const; + void setEnableBackupLog(const std::string &enableBackupLog); + 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 getLogBackupRetentionPeriod() const; + void setLogBackupRetentionPeriod(const std::string &logBackupRetentionPeriod); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string enableBackupLog_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; + std::string logBackupRetentionPeriod_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_MODIFYLOGBACKUPPOLICYREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/ModifyMaintenanceActionRequest.h b/adb/include/alibabacloud/adb/model/ModifyMaintenanceActionRequest.h new file mode 100644 index 000000000..b7c4c3486 --- /dev/null +++ b/adb/include/alibabacloud/adb/model/ModifyMaintenanceActionRequest.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_ADB_MODEL_MODIFYMAINTENANCEACTIONREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_MODIFYMAINTENANCEACTIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT ModifyMaintenanceActionRequest : public RpcServiceRequest { +public: + ModifyMaintenanceActionRequest(); + ~ModifyMaintenanceActionRequest(); + 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 getSwitchTime() const; + void setSwitchTime(const std::string &switchTime); + 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 getIds() const; + void setIds(const std::string &ids); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string regionId_; + std::string switchTime_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string ids_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_MODIFYMAINTENANCEACTIONREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/ModifyMaintenanceActionResult.h b/adb/include/alibabacloud/adb/model/ModifyMaintenanceActionResult.h new file mode 100644 index 000000000..dc53c35ef --- /dev/null +++ b/adb/include/alibabacloud/adb/model/ModifyMaintenanceActionResult.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_ADB_MODEL_MODIFYMAINTENANCEACTIONRESULT_H_ +#define ALIBABACLOUD_ADB_MODEL_MODIFYMAINTENANCEACTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Adb + { + namespace Model + { + class ALIBABACLOUD_ADB_EXPORT ModifyMaintenanceActionResult : public ServiceResult + { + public: + + + ModifyMaintenanceActionResult(); + explicit ModifyMaintenanceActionResult(const std::string &payload); + ~ModifyMaintenanceActionResult(); + std::string getIds()const; + + protected: + void parse(const std::string &payload); + private: + std::string ids_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ADB_MODEL_MODIFYMAINTENANCEACTIONRESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/ReleaseClusterPublicConnectionRequest.h b/adb/include/alibabacloud/adb/model/ReleaseClusterPublicConnectionRequest.h index 36382dba1..cd6861624 100644 --- a/adb/include/alibabacloud/adb/model/ReleaseClusterPublicConnectionRequest.h +++ b/adb/include/alibabacloud/adb/model/ReleaseClusterPublicConnectionRequest.h @@ -1,63 +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_ADB_MODEL_RELEASECLUSTERPUBLICCONNECTIONREQUEST_H_ -#define ALIBABACLOUD_ADB_MODEL_RELEASECLUSTERPUBLICCONNECTIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Adb - { - namespace Model - { - class ALIBABACLOUD_ADB_EXPORT ReleaseClusterPublicConnectionRequest : public RpcServiceRequest - { - - public: - ReleaseClusterPublicConnectionRequest(); - ~ReleaseClusterPublicConnectionRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ADB_MODEL_RELEASECLUSTERPUBLICCONNECTIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_RELEASECLUSTERPUBLICCONNECTIONREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_RELEASECLUSTERPUBLICCONNECTIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT ReleaseClusterPublicConnectionRequest : public RpcServiceRequest { +public: + ReleaseClusterPublicConnectionRequest(); + ~ReleaseClusterPublicConnectionRequest(); + 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 Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_RELEASECLUSTERPUBLICCONNECTIONREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/ResetAccountPasswordRequest.h b/adb/include/alibabacloud/adb/model/ResetAccountPasswordRequest.h index 08e6de3b1..921b41b07 100644 --- a/adb/include/alibabacloud/adb/model/ResetAccountPasswordRequest.h +++ b/adb/include/alibabacloud/adb/model/ResetAccountPasswordRequest.h @@ -1,72 +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_ADB_MODEL_RESETACCOUNTPASSWORDREQUEST_H_ -#define ALIBABACLOUD_ADB_MODEL_RESETACCOUNTPASSWORDREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Adb - { - namespace Model - { - class ALIBABACLOUD_ADB_EXPORT ResetAccountPasswordRequest : public RpcServiceRequest - { - - public: - ResetAccountPasswordRequest(); - ~ResetAccountPasswordRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAccountType()const; - void setAccountType(const std::string& accountType); - 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 accountType_; - std::string accessKeyId_; - std::string accountName_; - std::string resourceOwnerAccount_; - std::string dBClusterId_; - std::string ownerAccount_; - long ownerId_; - std::string accountPassword_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ADB_MODEL_RESETACCOUNTPASSWORDREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_RESETACCOUNTPASSWORDREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_RESETACCOUNTPASSWORDREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT ResetAccountPasswordRequest : public RpcServiceRequest { +public: + ResetAccountPasswordRequest(); + ~ResetAccountPasswordRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccountType() const; + void setAccountType(const std::string &accountType); + 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 accountType_; + std::string accessKeyId_; + std::string accountName_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; + std::string accountPassword_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_RESETACCOUNTPASSWORDREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/RevokeOperatorPermissionRequest.h b/adb/include/alibabacloud/adb/model/RevokeOperatorPermissionRequest.h index d24e1c3ae..5e1f50d8e 100644 --- a/adb/include/alibabacloud/adb/model/RevokeOperatorPermissionRequest.h +++ b/adb/include/alibabacloud/adb/model/RevokeOperatorPermissionRequest.h @@ -1,63 +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_ADB_MODEL_REVOKEOPERATORPERMISSIONREQUEST_H_ -#define ALIBABACLOUD_ADB_MODEL_REVOKEOPERATORPERMISSIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Adb - { - namespace Model - { - class ALIBABACLOUD_ADB_EXPORT RevokeOperatorPermissionRequest : public RpcServiceRequest - { - - public: - RevokeOperatorPermissionRequest(); - ~RevokeOperatorPermissionRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ADB_MODEL_REVOKEOPERATORPERMISSIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_REVOKEOPERATORPERMISSIONREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_REVOKEOPERATORPERMISSIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT RevokeOperatorPermissionRequest : public RpcServiceRequest { +public: + RevokeOperatorPermissionRequest(); + ~RevokeOperatorPermissionRequest(); + 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 Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_REVOKEOPERATORPERMISSIONREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/TagResourcesRequest.h b/adb/include/alibabacloud/adb/model/TagResourcesRequest.h index 86b180886..447b579eb 100644 --- a/adb/include/alibabacloud/adb/model/TagResourcesRequest.h +++ b/adb/include/alibabacloud/adb/model/TagResourcesRequest.h @@ -1,78 +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. - */ - -#ifndef ALIBABACLOUD_ADB_MODEL_TAGRESOURCESREQUEST_H_ -#define ALIBABACLOUD_ADB_MODEL_TAGRESOURCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Adb - { - namespace Model - { - class ALIBABACLOUD_ADB_EXPORT TagResourcesRequest : public RpcServiceRequest - { - public: - struct Tag - { - std::string value; - std::string key; - }; - - public: - TagResourcesRequest(); - ~TagResourcesRequest(); - - 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& regionId); - std::vector getTag()const; - void setTag(const std::vector& tag); - std::vector getResourceId()const; - void setResourceId(const std::vector& resourceId); - 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::vector tag_; - std::vector resourceId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string resourceType_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ADB_MODEL_TAGRESOURCESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_TAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_TAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT TagResourcesRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + TagResourcesRequest(); + ~TagResourcesRequest(); + 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::vector getTag() const; + void setTag(const std::vector &tag); + std::vector getResourceId() const; + void setResourceId(const std::vector &resourceId); + 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::vector tag_; + std::vector resourceId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string resourceType_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_TAGRESOURCESREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/UnbindDBResourceGroupWithUserRequest.h b/adb/include/alibabacloud/adb/model/UnbindDBResourceGroupWithUserRequest.h new file mode 100644 index 000000000..0f64297ec --- /dev/null +++ b/adb/include/alibabacloud/adb/model/UnbindDBResourceGroupWithUserRequest.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_ADB_MODEL_UNBINDDBRESOURCEGROUPWITHUSERREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_UNBINDDBRESOURCEGROUPWITHUSERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT UnbindDBResourceGroupWithUserRequest : public RpcServiceRequest { +public: + UnbindDBResourceGroupWithUserRequest(); + ~UnbindDBResourceGroupWithUserRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getGroupUser() const; + void setGroupUser(const std::string &groupUser); + 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 getGroupName() const; + void setGroupName(const std::string &groupName); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string groupUser_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; + std::string groupName_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_UNBINDDBRESOURCEGROUPWITHUSERREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/UnbindDBResourceGroupWithUserResult.h b/adb/include/alibabacloud/adb/model/UnbindDBResourceGroupWithUserResult.h new file mode 100644 index 000000000..bdfa029f3 --- /dev/null +++ b/adb/include/alibabacloud/adb/model/UnbindDBResourceGroupWithUserResult.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_ADB_MODEL_UNBINDDBRESOURCEGROUPWITHUSERRESULT_H_ +#define ALIBABACLOUD_ADB_MODEL_UNBINDDBRESOURCEGROUPWITHUSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Adb + { + namespace Model + { + class ALIBABACLOUD_ADB_EXPORT UnbindDBResourceGroupWithUserResult : public ServiceResult + { + public: + + + UnbindDBResourceGroupWithUserResult(); + explicit UnbindDBResourceGroupWithUserResult(const std::string &payload); + ~UnbindDBResourceGroupWithUserResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ADB_MODEL_UNBINDDBRESOURCEGROUPWITHUSERRESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/UnbindDBResourcePoolWithUserRequest.h b/adb/include/alibabacloud/adb/model/UnbindDBResourcePoolWithUserRequest.h index b847c7ae2..802354ea2 100644 --- a/adb/include/alibabacloud/adb/model/UnbindDBResourcePoolWithUserRequest.h +++ b/adb/include/alibabacloud/adb/model/UnbindDBResourcePoolWithUserRequest.h @@ -1,69 +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_ADB_MODEL_UNBINDDBRESOURCEPOOLWITHUSERREQUEST_H_ -#define ALIBABACLOUD_ADB_MODEL_UNBINDDBRESOURCEPOOLWITHUSERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Adb - { - namespace Model - { - class ALIBABACLOUD_ADB_EXPORT UnbindDBResourcePoolWithUserRequest : public RpcServiceRequest - { - - public: - UnbindDBResourcePoolWithUserRequest(); - ~UnbindDBResourcePoolWithUserRequest(); - - std::string getPoolName()const; - void setPoolName(const std::string& poolName); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getPoolUser()const; - void setPoolUser(const std::string& poolUser); - 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: - std::string poolName_; - long resourceOwnerId_; - std::string poolUser_; - std::string accessKeyId_; - std::string resourceOwnerAccount_; - std::string dBClusterId_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ADB_MODEL_UNBINDDBRESOURCEPOOLWITHUSERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_UNBINDDBRESOURCEPOOLWITHUSERREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_UNBINDDBRESOURCEPOOLWITHUSERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT UnbindDBResourcePoolWithUserRequest : public RpcServiceRequest { +public: + UnbindDBResourcePoolWithUserRequest(); + ~UnbindDBResourcePoolWithUserRequest(); + std::string getPoolName() const; + void setPoolName(const std::string &poolName); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getPoolUser() const; + void setPoolUser(const std::string &poolUser); + 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: + std::string poolName_; + long resourceOwnerId_; + std::string poolUser_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_UNBINDDBRESOURCEPOOLWITHUSERREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/UntagResourcesRequest.h b/adb/include/alibabacloud/adb/model/UntagResourcesRequest.h index 53974506e..5dbd7158e 100644 --- a/adb/include/alibabacloud/adb/model/UntagResourcesRequest.h +++ b/adb/include/alibabacloud/adb/model/UntagResourcesRequest.h @@ -1,75 +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_ADB_MODEL_UNTAGRESOURCESREQUEST_H_ -#define ALIBABACLOUD_ADB_MODEL_UNTAGRESOURCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Adb - { - namespace Model - { - class ALIBABACLOUD_ADB_EXPORT UntagResourcesRequest : public RpcServiceRequest - { - - public: - UntagResourcesRequest(); - ~UntagResourcesRequest(); - - 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& regionId); - bool getAll()const; - void setAll(bool all); - std::vector getResourceId()const; - void setResourceId(const std::vector& resourceId); - 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); - std::vector getTagKey()const; - void setTagKey(const std::vector& tagKey); - - private: - long resourceOwnerId_; - std::string accessKeyId_; - std::string regionId_; - bool all_; - std::vector resourceId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string resourceType_; - std::vector tagKey_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ADB_MODEL_UNTAGRESOURCESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_UNTAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_UNTAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT UntagResourcesRequest : public RpcServiceRequest { +public: + UntagResourcesRequest(); + ~UntagResourcesRequest(); + 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); + bool getAll() const; + void setAll(bool all); + std::vector getResourceId() const; + void setResourceId(const std::vector &resourceId); + 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); + std::vector getTagKey() const; + void setTagKey(const std::vector &tagKey); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string regionId_; + bool all_; + std::vector resourceId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string resourceType_; + std::vector tagKey_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_UNTAGRESOURCESREQUEST_H_ diff --git a/adb/src/AdbClient.cc b/adb/src/AdbClient.cc index a1a6a4fb9..193e97c7d 100644 --- a/adb/src/AdbClient.cc +++ b/adb/src/AdbClient.cc @@ -87,6 +87,42 @@ AdbClient::AllocateClusterPublicConnectionOutcomeCallable AdbClient::allocateClu return task->get_future(); } +AdbClient::BindDBResourceGroupWithUserOutcome AdbClient::bindDBResourceGroupWithUser(const BindDBResourceGroupWithUserRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return BindDBResourceGroupWithUserOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return BindDBResourceGroupWithUserOutcome(BindDBResourceGroupWithUserResult(outcome.result())); + else + return BindDBResourceGroupWithUserOutcome(outcome.error()); +} + +void AdbClient::bindDBResourceGroupWithUserAsync(const BindDBResourceGroupWithUserRequest& request, const BindDBResourceGroupWithUserAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, bindDBResourceGroupWithUser(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AdbClient::BindDBResourceGroupWithUserOutcomeCallable AdbClient::bindDBResourceGroupWithUserCallable(const BindDBResourceGroupWithUserRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->bindDBResourceGroupWithUser(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AdbClient::BindDBResourcePoolWithUserOutcome AdbClient::bindDBResourcePoolWithUser(const BindDBResourcePoolWithUserRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -195,6 +231,42 @@ AdbClient::CreateDBClusterOutcomeCallable AdbClient::createDBClusterCallable(con return task->get_future(); } +AdbClient::CreateDBResourceGroupOutcome AdbClient::createDBResourceGroup(const CreateDBResourceGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateDBResourceGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateDBResourceGroupOutcome(CreateDBResourceGroupResult(outcome.result())); + else + return CreateDBResourceGroupOutcome(outcome.error()); +} + +void AdbClient::createDBResourceGroupAsync(const CreateDBResourceGroupRequest& request, const CreateDBResourceGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createDBResourceGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AdbClient::CreateDBResourceGroupOutcomeCallable AdbClient::createDBResourceGroupCallable(const CreateDBResourceGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createDBResourceGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AdbClient::CreateDBResourcePoolOutcome AdbClient::createDBResourcePool(const CreateDBResourcePoolRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -339,6 +411,42 @@ AdbClient::DeleteDBClusterOutcomeCallable AdbClient::deleteDBClusterCallable(con return task->get_future(); } +AdbClient::DeleteDBResourceGroupOutcome AdbClient::deleteDBResourceGroup(const DeleteDBResourceGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteDBResourceGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteDBResourceGroupOutcome(DeleteDBResourceGroupResult(outcome.result())); + else + return DeleteDBResourceGroupOutcome(outcome.error()); +} + +void AdbClient::deleteDBResourceGroupAsync(const DeleteDBResourceGroupRequest& request, const DeleteDBResourceGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteDBResourceGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AdbClient::DeleteDBResourceGroupOutcomeCallable AdbClient::deleteDBResourceGroupCallable(const DeleteDBResourceGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteDBResourceGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AdbClient::DeleteDBResourcePoolOutcome AdbClient::deleteDBResourcePool(const DeleteDBResourcePoolRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -879,6 +987,78 @@ AdbClient::DescribeDBClusterAttributeOutcomeCallable AdbClient::describeDBCluste return task->get_future(); } +AdbClient::DescribeDBClusterForecastOutcome AdbClient::describeDBClusterForecast(const DescribeDBClusterForecastRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDBClusterForecastOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDBClusterForecastOutcome(DescribeDBClusterForecastResult(outcome.result())); + else + return DescribeDBClusterForecastOutcome(outcome.error()); +} + +void AdbClient::describeDBClusterForecastAsync(const DescribeDBClusterForecastRequest& request, const DescribeDBClusterForecastAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDBClusterForecast(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AdbClient::DescribeDBClusterForecastOutcomeCallable AdbClient::describeDBClusterForecastCallable(const DescribeDBClusterForecastRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDBClusterForecast(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AdbClient::DescribeDBClusterHealthReportOutcome AdbClient::describeDBClusterHealthReport(const DescribeDBClusterHealthReportRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDBClusterHealthReportOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDBClusterHealthReportOutcome(DescribeDBClusterHealthReportResult(outcome.result())); + else + return DescribeDBClusterHealthReportOutcome(outcome.error()); +} + +void AdbClient::describeDBClusterHealthReportAsync(const DescribeDBClusterHealthReportRequest& request, const DescribeDBClusterHealthReportAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDBClusterHealthReport(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AdbClient::DescribeDBClusterHealthReportOutcomeCallable AdbClient::describeDBClusterHealthReportCallable(const DescribeDBClusterHealthReportRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDBClusterHealthReport(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AdbClient::DescribeDBClusterNetInfoOutcome AdbClient::describeDBClusterNetInfo(const DescribeDBClusterNetInfoRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1023,6 +1203,42 @@ AdbClient::DescribeDBClustersOutcomeCallable AdbClient::describeDBClustersCallab return task->get_future(); } +AdbClient::DescribeDBResourceGroupOutcome AdbClient::describeDBResourceGroup(const DescribeDBResourceGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDBResourceGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDBResourceGroupOutcome(DescribeDBResourceGroupResult(outcome.result())); + else + return DescribeDBResourceGroupOutcome(outcome.error()); +} + +void AdbClient::describeDBResourceGroupAsync(const DescribeDBResourceGroupRequest& request, const DescribeDBResourceGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDBResourceGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AdbClient::DescribeDBResourceGroupOutcomeCallable AdbClient::describeDBResourceGroupCallable(const DescribeDBResourceGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDBResourceGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AdbClient::DescribeDBResourcePoolOutcome AdbClient::describeDBResourcePool(const DescribeDBResourcePoolRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1059,6 +1275,114 @@ AdbClient::DescribeDBResourcePoolOutcomeCallable AdbClient::describeDBResourcePo return task->get_future(); } +AdbClient::DescribeDiagnosisDimensionsOutcome AdbClient::describeDiagnosisDimensions(const DescribeDiagnosisDimensionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDiagnosisDimensionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDiagnosisDimensionsOutcome(DescribeDiagnosisDimensionsResult(outcome.result())); + else + return DescribeDiagnosisDimensionsOutcome(outcome.error()); +} + +void AdbClient::describeDiagnosisDimensionsAsync(const DescribeDiagnosisDimensionsRequest& request, const DescribeDiagnosisDimensionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDiagnosisDimensions(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AdbClient::DescribeDiagnosisDimensionsOutcomeCallable AdbClient::describeDiagnosisDimensionsCallable(const DescribeDiagnosisDimensionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDiagnosisDimensions(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AdbClient::DescribeDiagnosisRecordsOutcome AdbClient::describeDiagnosisRecords(const DescribeDiagnosisRecordsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDiagnosisRecordsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDiagnosisRecordsOutcome(DescribeDiagnosisRecordsResult(outcome.result())); + else + return DescribeDiagnosisRecordsOutcome(outcome.error()); +} + +void AdbClient::describeDiagnosisRecordsAsync(const DescribeDiagnosisRecordsRequest& request, const DescribeDiagnosisRecordsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDiagnosisRecords(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AdbClient::DescribeDiagnosisRecordsOutcomeCallable AdbClient::describeDiagnosisRecordsCallable(const DescribeDiagnosisRecordsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDiagnosisRecords(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AdbClient::DescribeDownloadRecordsOutcome AdbClient::describeDownloadRecords(const DescribeDownloadRecordsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDownloadRecordsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDownloadRecordsOutcome(DescribeDownloadRecordsResult(outcome.result())); + else + return DescribeDownloadRecordsOutcome(outcome.error()); +} + +void AdbClient::describeDownloadRecordsAsync(const DescribeDownloadRecordsRequest& request, const DescribeDownloadRecordsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDownloadRecords(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AdbClient::DescribeDownloadRecordsOutcomeCallable AdbClient::describeDownloadRecordsCallable(const DescribeDownloadRecordsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDownloadRecords(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AdbClient::DescribeElasticDailyPlanOutcome AdbClient::describeElasticDailyPlan(const DescribeElasticDailyPlanRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1203,6 +1527,42 @@ AdbClient::DescribeLoadTasksRecordsOutcomeCallable AdbClient::describeLoadTasksR return task->get_future(); } +AdbClient::DescribeMaintenanceActionOutcome AdbClient::describeMaintenanceAction(const DescribeMaintenanceActionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeMaintenanceActionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeMaintenanceActionOutcome(DescribeMaintenanceActionResult(outcome.result())); + else + return DescribeMaintenanceActionOutcome(outcome.error()); +} + +void AdbClient::describeMaintenanceActionAsync(const DescribeMaintenanceActionRequest& request, const DescribeMaintenanceActionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeMaintenanceAction(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AdbClient::DescribeMaintenanceActionOutcomeCallable AdbClient::describeMaintenanceActionCallable(const DescribeMaintenanceActionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeMaintenanceAction(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AdbClient::DescribeOperatorPermissionOutcome AdbClient::describeOperatorPermission(const DescribeOperatorPermissionRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1239,6 +1599,42 @@ AdbClient::DescribeOperatorPermissionOutcomeCallable AdbClient::describeOperator return task->get_future(); } +AdbClient::DescribePatternPerformanceOutcome AdbClient::describePatternPerformance(const DescribePatternPerformanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribePatternPerformanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribePatternPerformanceOutcome(DescribePatternPerformanceResult(outcome.result())); + else + return DescribePatternPerformanceOutcome(outcome.error()); +} + +void AdbClient::describePatternPerformanceAsync(const DescribePatternPerformanceRequest& request, const DescribePatternPerformanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describePatternPerformance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AdbClient::DescribePatternPerformanceOutcomeCallable AdbClient::describePatternPerformanceCallable(const DescribePatternPerformanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describePatternPerformance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AdbClient::DescribeProcessListOutcome AdbClient::describeProcessList(const DescribeProcessListRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1311,6 +1707,78 @@ AdbClient::DescribeRegionsOutcomeCallable AdbClient::describeRegionsCallable(con return task->get_future(); } +AdbClient::DescribeSQLPatternAttributeOutcome AdbClient::describeSQLPatternAttribute(const DescribeSQLPatternAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSQLPatternAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSQLPatternAttributeOutcome(DescribeSQLPatternAttributeResult(outcome.result())); + else + return DescribeSQLPatternAttributeOutcome(outcome.error()); +} + +void AdbClient::describeSQLPatternAttributeAsync(const DescribeSQLPatternAttributeRequest& request, const DescribeSQLPatternAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSQLPatternAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AdbClient::DescribeSQLPatternAttributeOutcomeCallable AdbClient::describeSQLPatternAttributeCallable(const DescribeSQLPatternAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSQLPatternAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AdbClient::DescribeSQLPatternsOutcome AdbClient::describeSQLPatterns(const DescribeSQLPatternsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSQLPatternsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSQLPatternsOutcome(DescribeSQLPatternsResult(outcome.result())); + else + return DescribeSQLPatternsOutcome(outcome.error()); +} + +void AdbClient::describeSQLPatternsAsync(const DescribeSQLPatternsRequest& request, const DescribeSQLPatternsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSQLPatterns(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AdbClient::DescribeSQLPatternsOutcomeCallable AdbClient::describeSQLPatternsCallable(const DescribeSQLPatternsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSQLPatterns(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AdbClient::DescribeSQLPlanOutcome AdbClient::describeSQLPlan(const DescribeSQLPlanRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1491,6 +1959,78 @@ AdbClient::DescribeSlowLogTrendOutcomeCallable AdbClient::describeSlowLogTrendCa return task->get_future(); } +AdbClient::DescribeSqlPatternOutcome AdbClient::describeSqlPattern(const DescribeSqlPatternRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSqlPatternOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSqlPatternOutcome(DescribeSqlPatternResult(outcome.result())); + else + return DescribeSqlPatternOutcome(outcome.error()); +} + +void AdbClient::describeSqlPatternAsync(const DescribeSqlPatternRequest& request, const DescribeSqlPatternAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSqlPattern(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AdbClient::DescribeSqlPatternOutcomeCallable AdbClient::describeSqlPatternCallable(const DescribeSqlPatternRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSqlPattern(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AdbClient::DescribeTableAccessCountOutcome AdbClient::describeTableAccessCount(const DescribeTableAccessCountRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeTableAccessCountOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeTableAccessCountOutcome(DescribeTableAccessCountResult(outcome.result())); + else + return DescribeTableAccessCountOutcome(outcome.error()); +} + +void AdbClient::describeTableAccessCountAsync(const DescribeTableAccessCountRequest& request, const DescribeTableAccessCountAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeTableAccessCount(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AdbClient::DescribeTableAccessCountOutcomeCallable AdbClient::describeTableAccessCountCallable(const DescribeTableAccessCountRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeTableAccessCount(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AdbClient::DescribeTableDetailOutcome AdbClient::describeTableDetail(const DescribeTableDetailRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1671,6 +2211,42 @@ AdbClient::DescribeTaskInfoOutcomeCallable AdbClient::describeTaskInfoCallable(c return task->get_future(); } +AdbClient::DownloadDiagnosisRecordsOutcome AdbClient::downloadDiagnosisRecords(const DownloadDiagnosisRecordsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DownloadDiagnosisRecordsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DownloadDiagnosisRecordsOutcome(DownloadDiagnosisRecordsResult(outcome.result())); + else + return DownloadDiagnosisRecordsOutcome(outcome.error()); +} + +void AdbClient::downloadDiagnosisRecordsAsync(const DownloadDiagnosisRecordsRequest& request, const DownloadDiagnosisRecordsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, downloadDiagnosisRecords(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AdbClient::DownloadDiagnosisRecordsOutcomeCallable AdbClient::downloadDiagnosisRecordsCallable(const DownloadDiagnosisRecordsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->downloadDiagnosisRecords(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AdbClient::GrantOperatorPermissionOutcome AdbClient::grantOperatorPermission(const GrantOperatorPermissionRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2103,6 +2679,42 @@ AdbClient::ModifyDBClusterMaintainTimeOutcomeCallable AdbClient::modifyDBCluster return task->get_future(); } +AdbClient::ModifyDBClusterPayTypeOutcome AdbClient::modifyDBClusterPayType(const ModifyDBClusterPayTypeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDBClusterPayTypeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDBClusterPayTypeOutcome(ModifyDBClusterPayTypeResult(outcome.result())); + else + return ModifyDBClusterPayTypeOutcome(outcome.error()); +} + +void AdbClient::modifyDBClusterPayTypeAsync(const ModifyDBClusterPayTypeRequest& request, const ModifyDBClusterPayTypeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDBClusterPayType(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AdbClient::ModifyDBClusterPayTypeOutcomeCallable AdbClient::modifyDBClusterPayTypeCallable(const ModifyDBClusterPayTypeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDBClusterPayType(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AdbClient::ModifyDBClusterResourceGroupOutcome AdbClient::modifyDBClusterResourceGroup(const ModifyDBClusterResourceGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2139,6 +2751,42 @@ AdbClient::ModifyDBClusterResourceGroupOutcomeCallable AdbClient::modifyDBCluste return task->get_future(); } +AdbClient::ModifyDBResourceGroupOutcome AdbClient::modifyDBResourceGroup(const ModifyDBResourceGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDBResourceGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDBResourceGroupOutcome(ModifyDBResourceGroupResult(outcome.result())); + else + return ModifyDBResourceGroupOutcome(outcome.error()); +} + +void AdbClient::modifyDBResourceGroupAsync(const ModifyDBResourceGroupRequest& request, const ModifyDBResourceGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDBResourceGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AdbClient::ModifyDBResourceGroupOutcomeCallable AdbClient::modifyDBResourceGroupCallable(const ModifyDBResourceGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDBResourceGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AdbClient::ModifyDBResourcePoolOutcome AdbClient::modifyDBResourcePool(const ModifyDBResourcePoolRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2247,6 +2895,42 @@ AdbClient::ModifyLogBackupPolicyOutcomeCallable AdbClient::modifyLogBackupPolicy return task->get_future(); } +AdbClient::ModifyMaintenanceActionOutcome AdbClient::modifyMaintenanceAction(const ModifyMaintenanceActionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyMaintenanceActionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyMaintenanceActionOutcome(ModifyMaintenanceActionResult(outcome.result())); + else + return ModifyMaintenanceActionOutcome(outcome.error()); +} + +void AdbClient::modifyMaintenanceActionAsync(const ModifyMaintenanceActionRequest& request, const ModifyMaintenanceActionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyMaintenanceAction(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AdbClient::ModifyMaintenanceActionOutcomeCallable AdbClient::modifyMaintenanceActionCallable(const ModifyMaintenanceActionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyMaintenanceAction(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AdbClient::ReleaseClusterPublicConnectionOutcome AdbClient::releaseClusterPublicConnection(const ReleaseClusterPublicConnectionRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2391,6 +3075,42 @@ AdbClient::TagResourcesOutcomeCallable AdbClient::tagResourcesCallable(const Tag return task->get_future(); } +AdbClient::UnbindDBResourceGroupWithUserOutcome AdbClient::unbindDBResourceGroupWithUser(const UnbindDBResourceGroupWithUserRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UnbindDBResourceGroupWithUserOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UnbindDBResourceGroupWithUserOutcome(UnbindDBResourceGroupWithUserResult(outcome.result())); + else + return UnbindDBResourceGroupWithUserOutcome(outcome.error()); +} + +void AdbClient::unbindDBResourceGroupWithUserAsync(const UnbindDBResourceGroupWithUserRequest& request, const UnbindDBResourceGroupWithUserAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, unbindDBResourceGroupWithUser(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AdbClient::UnbindDBResourceGroupWithUserOutcomeCallable AdbClient::unbindDBResourceGroupWithUserCallable(const UnbindDBResourceGroupWithUserRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->unbindDBResourceGroupWithUser(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AdbClient::UnbindDBResourcePoolWithUserOutcome AdbClient::unbindDBResourcePoolWithUser(const UnbindDBResourcePoolWithUserRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/adb/src/model/AllocateClusterPublicConnectionRequest.cc b/adb/src/model/AllocateClusterPublicConnectionRequest.cc index 2e2cbef3a..426a0995f 100644 --- a/adb/src/model/AllocateClusterPublicConnectionRequest.cc +++ b/adb/src/model/AllocateClusterPublicConnectionRequest.cc @@ -1,106 +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::Adb::Model::AllocateClusterPublicConnectionRequest; - -AllocateClusterPublicConnectionRequest::AllocateClusterPublicConnectionRequest() : - RpcServiceRequest("adb", "2019-03-15", "AllocateClusterPublicConnection") -{ - setMethod(HttpRequest::Method::Post); -} - -AllocateClusterPublicConnectionRequest::~AllocateClusterPublicConnectionRequest() -{} - -long AllocateClusterPublicConnectionRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Adb::Model::AllocateClusterPublicConnectionRequest; + +AllocateClusterPublicConnectionRequest::AllocateClusterPublicConnectionRequest() + : RpcServiceRequest("adb", "2019-03-15", "AllocateClusterPublicConnection") { + setMethod(HttpRequest::Method::Post); } -void AllocateClusterPublicConnectionRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +AllocateClusterPublicConnectionRequest::~AllocateClusterPublicConnectionRequest() {} + +long AllocateClusterPublicConnectionRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string AllocateClusterPublicConnectionRequest::getConnectionStringPrefix()const -{ - return connectionStringPrefix_; +void AllocateClusterPublicConnectionRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void AllocateClusterPublicConnectionRequest::setConnectionStringPrefix(const std::string& connectionStringPrefix) -{ - connectionStringPrefix_ = connectionStringPrefix; - setParameter("ConnectionStringPrefix", connectionStringPrefix); +std::string AllocateClusterPublicConnectionRequest::getConnectionStringPrefix() const { + return connectionStringPrefix_; } -std::string AllocateClusterPublicConnectionRequest::getAccessKeyId()const -{ - return accessKeyId_; +void AllocateClusterPublicConnectionRequest::setConnectionStringPrefix(const std::string &connectionStringPrefix) { + connectionStringPrefix_ = connectionStringPrefix; + setParameter(std::string("ConnectionStringPrefix"), connectionStringPrefix); } -void AllocateClusterPublicConnectionRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string AllocateClusterPublicConnectionRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string AllocateClusterPublicConnectionRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void AllocateClusterPublicConnectionRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void AllocateClusterPublicConnectionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string AllocateClusterPublicConnectionRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string AllocateClusterPublicConnectionRequest::getDBClusterId()const -{ - return dBClusterId_; +void AllocateClusterPublicConnectionRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void AllocateClusterPublicConnectionRequest::setDBClusterId(const std::string& dBClusterId) -{ - dBClusterId_ = dBClusterId; - setParameter("DBClusterId", dBClusterId); +std::string AllocateClusterPublicConnectionRequest::getDBClusterId() const { + return dBClusterId_; } -std::string AllocateClusterPublicConnectionRequest::getOwnerAccount()const -{ - return ownerAccount_; +void AllocateClusterPublicConnectionRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); } -void AllocateClusterPublicConnectionRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string AllocateClusterPublicConnectionRequest::getOwnerAccount() const { + return ownerAccount_; } -long AllocateClusterPublicConnectionRequest::getOwnerId()const -{ - return ownerId_; +void AllocateClusterPublicConnectionRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void AllocateClusterPublicConnectionRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long AllocateClusterPublicConnectionRequest::getOwnerId() const { + return ownerId_; +} + +void AllocateClusterPublicConnectionRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/adb/src/model/BindDBResourceGroupWithUserRequest.cc b/adb/src/model/BindDBResourceGroupWithUserRequest.cc new file mode 100644 index 000000000..16a6f0f0e --- /dev/null +++ b/adb/src/model/BindDBResourceGroupWithUserRequest.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::Adb::Model::BindDBResourceGroupWithUserRequest; + +BindDBResourceGroupWithUserRequest::BindDBResourceGroupWithUserRequest() + : RpcServiceRequest("adb", "2019-03-15", "BindDBResourceGroupWithUser") { + setMethod(HttpRequest::Method::Post); +} + +BindDBResourceGroupWithUserRequest::~BindDBResourceGroupWithUserRequest() {} + +long BindDBResourceGroupWithUserRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void BindDBResourceGroupWithUserRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string BindDBResourceGroupWithUserRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void BindDBResourceGroupWithUserRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string BindDBResourceGroupWithUserRequest::getGroupUser() const { + return groupUser_; +} + +void BindDBResourceGroupWithUserRequest::setGroupUser(const std::string &groupUser) { + groupUser_ = groupUser; + setParameter(std::string("GroupUser"), groupUser); +} + +std::string BindDBResourceGroupWithUserRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void BindDBResourceGroupWithUserRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string BindDBResourceGroupWithUserRequest::getDBClusterId() const { + return dBClusterId_; +} + +void BindDBResourceGroupWithUserRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string BindDBResourceGroupWithUserRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void BindDBResourceGroupWithUserRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long BindDBResourceGroupWithUserRequest::getOwnerId() const { + return ownerId_; +} + +void BindDBResourceGroupWithUserRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string BindDBResourceGroupWithUserRequest::getGroupName() const { + return groupName_; +} + +void BindDBResourceGroupWithUserRequest::setGroupName(const std::string &groupName) { + groupName_ = groupName; + setParameter(std::string("GroupName"), groupName); +} + diff --git a/adb/src/model/BindDBResourceGroupWithUserResult.cc b/adb/src/model/BindDBResourceGroupWithUserResult.cc new file mode 100644 index 000000000..306fd4c58 --- /dev/null +++ b/adb/src/model/BindDBResourceGroupWithUserResult.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::Adb; +using namespace AlibabaCloud::Adb::Model; + +BindDBResourceGroupWithUserResult::BindDBResourceGroupWithUserResult() : + ServiceResult() +{} + +BindDBResourceGroupWithUserResult::BindDBResourceGroupWithUserResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +BindDBResourceGroupWithUserResult::~BindDBResourceGroupWithUserResult() +{} + +void BindDBResourceGroupWithUserResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/adb/src/model/BindDBResourcePoolWithUserRequest.cc b/adb/src/model/BindDBResourcePoolWithUserRequest.cc index b7c30430d..9f2d87947 100644 --- a/adb/src/model/BindDBResourcePoolWithUserRequest.cc +++ b/adb/src/model/BindDBResourcePoolWithUserRequest.cc @@ -1,117 +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::Adb::Model::BindDBResourcePoolWithUserRequest; - -BindDBResourcePoolWithUserRequest::BindDBResourcePoolWithUserRequest() : - RpcServiceRequest("adb", "2019-03-15", "BindDBResourcePoolWithUser") -{ - setMethod(HttpRequest::Method::Post); -} - -BindDBResourcePoolWithUserRequest::~BindDBResourcePoolWithUserRequest() -{} - -std::string BindDBResourcePoolWithUserRequest::getPoolName()const -{ - return poolName_; + */ + +#include + +using AlibabaCloud::Adb::Model::BindDBResourcePoolWithUserRequest; + +BindDBResourcePoolWithUserRequest::BindDBResourcePoolWithUserRequest() + : RpcServiceRequest("adb", "2019-03-15", "BindDBResourcePoolWithUser") { + setMethod(HttpRequest::Method::Post); } -void BindDBResourcePoolWithUserRequest::setPoolName(const std::string& poolName) -{ - poolName_ = poolName; - setParameter("PoolName", poolName); +BindDBResourcePoolWithUserRequest::~BindDBResourcePoolWithUserRequest() {} + +std::string BindDBResourcePoolWithUserRequest::getPoolName() const { + return poolName_; } -long BindDBResourcePoolWithUserRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void BindDBResourcePoolWithUserRequest::setPoolName(const std::string &poolName) { + poolName_ = poolName; + setParameter(std::string("PoolName"), poolName); } -void BindDBResourcePoolWithUserRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long BindDBResourcePoolWithUserRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string BindDBResourcePoolWithUserRequest::getPoolUser()const -{ - return poolUser_; +void BindDBResourcePoolWithUserRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void BindDBResourcePoolWithUserRequest::setPoolUser(const std::string& poolUser) -{ - poolUser_ = poolUser; - setParameter("PoolUser", poolUser); +std::string BindDBResourcePoolWithUserRequest::getPoolUser() const { + return poolUser_; } -std::string BindDBResourcePoolWithUserRequest::getAccessKeyId()const -{ - return accessKeyId_; +void BindDBResourcePoolWithUserRequest::setPoolUser(const std::string &poolUser) { + poolUser_ = poolUser; + setParameter(std::string("PoolUser"), poolUser); } -void BindDBResourcePoolWithUserRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string BindDBResourcePoolWithUserRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string BindDBResourcePoolWithUserRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void BindDBResourcePoolWithUserRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void BindDBResourcePoolWithUserRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string BindDBResourcePoolWithUserRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string BindDBResourcePoolWithUserRequest::getDBClusterId()const -{ - return dBClusterId_; +void BindDBResourcePoolWithUserRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void BindDBResourcePoolWithUserRequest::setDBClusterId(const std::string& dBClusterId) -{ - dBClusterId_ = dBClusterId; - setParameter("DBClusterId", dBClusterId); +std::string BindDBResourcePoolWithUserRequest::getDBClusterId() const { + return dBClusterId_; } -std::string BindDBResourcePoolWithUserRequest::getOwnerAccount()const -{ - return ownerAccount_; +void BindDBResourcePoolWithUserRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); } -void BindDBResourcePoolWithUserRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string BindDBResourcePoolWithUserRequest::getOwnerAccount() const { + return ownerAccount_; } -long BindDBResourcePoolWithUserRequest::getOwnerId()const -{ - return ownerId_; +void BindDBResourcePoolWithUserRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void BindDBResourcePoolWithUserRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long BindDBResourcePoolWithUserRequest::getOwnerId() const { + return ownerId_; +} + +void BindDBResourcePoolWithUserRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/adb/src/model/CreateAccountRequest.cc b/adb/src/model/CreateAccountRequest.cc index cfd42a0af..9bde8d09a 100644 --- a/adb/src/model/CreateAccountRequest.cc +++ b/adb/src/model/CreateAccountRequest.cc @@ -1,139 +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::Adb::Model::CreateAccountRequest; - -CreateAccountRequest::CreateAccountRequest() : - RpcServiceRequest("adb", "2019-03-15", "CreateAccount") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateAccountRequest::~CreateAccountRequest() -{} - -long CreateAccountRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Adb::Model::CreateAccountRequest; + +CreateAccountRequest::CreateAccountRequest() + : RpcServiceRequest("adb", "2019-03-15", "CreateAccount") { + setMethod(HttpRequest::Method::Post); } -void CreateAccountRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +CreateAccountRequest::~CreateAccountRequest() {} + +long CreateAccountRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreateAccountRequest::getAccountType()const -{ - return accountType_; +void CreateAccountRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateAccountRequest::setAccountType(const std::string& accountType) -{ - accountType_ = accountType; - setParameter("AccountType", accountType); +std::string CreateAccountRequest::getAccountType() const { + return accountType_; } -std::string CreateAccountRequest::getAccountDescription()const -{ - return accountDescription_; +void CreateAccountRequest::setAccountType(const std::string &accountType) { + accountType_ = accountType; + setParameter(std::string("AccountType"), accountType); } -void CreateAccountRequest::setAccountDescription(const std::string& accountDescription) -{ - accountDescription_ = accountDescription; - setParameter("AccountDescription", accountDescription); +std::string CreateAccountRequest::getAccountDescription() const { + return accountDescription_; } -std::string CreateAccountRequest::getAccessKeyId()const -{ - return accessKeyId_; +void CreateAccountRequest::setAccountDescription(const std::string &accountDescription) { + accountDescription_ = accountDescription; + setParameter(std::string("AccountDescription"), accountDescription); } -void CreateAccountRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string CreateAccountRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string CreateAccountRequest::getAccountName()const -{ - return accountName_; +void CreateAccountRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void CreateAccountRequest::setAccountName(const std::string& accountName) -{ - accountName_ = accountName; - setParameter("AccountName", accountName); +std::string CreateAccountRequest::getAccountName() const { + return accountName_; } -std::string CreateAccountRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateAccountRequest::setAccountName(const std::string &accountName) { + accountName_ = accountName; + setParameter(std::string("AccountName"), accountName); } -void CreateAccountRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CreateAccountRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string CreateAccountRequest::getDBClusterId()const -{ - return dBClusterId_; +void CreateAccountRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreateAccountRequest::setDBClusterId(const std::string& dBClusterId) -{ - dBClusterId_ = dBClusterId; - setParameter("DBClusterId", dBClusterId); +std::string CreateAccountRequest::getDBClusterId() const { + return dBClusterId_; } -std::string CreateAccountRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreateAccountRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); } -void CreateAccountRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CreateAccountRequest::getOwnerAccount() const { + return ownerAccount_; } -long CreateAccountRequest::getOwnerId()const -{ - return ownerId_; +void CreateAccountRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreateAccountRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CreateAccountRequest::getOwnerId() const { + return ownerId_; } -std::string CreateAccountRequest::getAccountPassword()const -{ - return accountPassword_; +void CreateAccountRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CreateAccountRequest::setAccountPassword(const std::string& accountPassword) -{ - accountPassword_ = accountPassword; - setParameter("AccountPassword", accountPassword); +std::string CreateAccountRequest::getAccountPassword() const { + return accountPassword_; +} + +void CreateAccountRequest::setAccountPassword(const std::string &accountPassword) { + accountPassword_ = accountPassword; + setParameter(std::string("AccountPassword"), accountPassword); } diff --git a/adb/src/model/CreateAccountResult.cc b/adb/src/model/CreateAccountResult.cc index 721263cb0..38b2d7c65 100644 --- a/adb/src/model/CreateAccountResult.cc +++ b/adb/src/model/CreateAccountResult.cc @@ -39,10 +39,10 @@ void CreateAccountResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["DBClusterId"].isNull()) - dBClusterId_ = value["DBClusterId"].asString(); if(!value["TaskId"].isNull()) taskId_ = std::stoi(value["TaskId"].asString()); + if(!value["DBClusterId"].isNull()) + dBClusterId_ = value["DBClusterId"].asString(); } diff --git a/adb/src/model/CreateDBClusterRequest.cc b/adb/src/model/CreateDBClusterRequest.cc index a35fd8d80..0ccc25481 100644 --- a/adb/src/model/CreateDBClusterRequest.cc +++ b/adb/src/model/CreateDBClusterRequest.cc @@ -1,359 +1,306 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::Adb::Model::CreateDBClusterRequest; - -CreateDBClusterRequest::CreateDBClusterRequest() : - RpcServiceRequest("adb", "2019-03-15", "CreateDBCluster") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateDBClusterRequest::~CreateDBClusterRequest() -{} - -long CreateDBClusterRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Adb::Model::CreateDBClusterRequest; + +CreateDBClusterRequest::CreateDBClusterRequest() + : RpcServiceRequest("adb", "2019-03-15", "CreateDBCluster") { + setMethod(HttpRequest::Method::Post); } -void CreateDBClusterRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +CreateDBClusterRequest::~CreateDBClusterRequest() {} + +long CreateDBClusterRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreateDBClusterRequest::getDBClusterDescription()const -{ - return dBClusterDescription_; +void CreateDBClusterRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateDBClusterRequest::setDBClusterDescription(const std::string& dBClusterDescription) -{ - dBClusterDescription_ = dBClusterDescription; - setParameter("DBClusterDescription", dBClusterDescription); +std::string CreateDBClusterRequest::getDBClusterDescription() const { + return dBClusterDescription_; } -std::string CreateDBClusterRequest::getStorageType()const -{ - return storageType_; +void CreateDBClusterRequest::setDBClusterDescription(const std::string &dBClusterDescription) { + dBClusterDescription_ = dBClusterDescription; + setParameter(std::string("DBClusterDescription"), dBClusterDescription); } -void CreateDBClusterRequest::setStorageType(const std::string& storageType) -{ - storageType_ = storageType; - setParameter("StorageType", storageType); +std::string CreateDBClusterRequest::getStorageType() const { + return storageType_; } -std::string CreateDBClusterRequest::getMode()const -{ - return mode_; +void CreateDBClusterRequest::setStorageType(const std::string &storageType) { + storageType_ = storageType; + setParameter(std::string("StorageType"), storageType); } -void CreateDBClusterRequest::setMode(const std::string& mode) -{ - mode_ = mode; - setParameter("Mode", mode); +std::string CreateDBClusterRequest::getMode() const { + return mode_; } -std::string CreateDBClusterRequest::getResourceGroupId()const -{ - return resourceGroupId_; +void CreateDBClusterRequest::setMode(const std::string &mode) { + mode_ = mode; + setParameter(std::string("Mode"), mode); } -void CreateDBClusterRequest::setResourceGroupId(const std::string& resourceGroupId) -{ - resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); +std::string CreateDBClusterRequest::getResourceGroupId() const { + return resourceGroupId_; } -std::string CreateDBClusterRequest::getPeriod()const -{ - return period_; +void CreateDBClusterRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -void CreateDBClusterRequest::setPeriod(const std::string& period) -{ - period_ = period; - setParameter("Period", period); +std::string CreateDBClusterRequest::getPeriod() const { + return period_; } -std::string CreateDBClusterRequest::getBackupSetID()const -{ - return backupSetID_; +void CreateDBClusterRequest::setPeriod(const std::string &period) { + period_ = period; + setParameter(std::string("Period"), period); } -void CreateDBClusterRequest::setBackupSetID(const std::string& backupSetID) -{ - backupSetID_ = backupSetID; - setParameter("BackupSetID", backupSetID); +std::string CreateDBClusterRequest::getBackupSetID() const { + return backupSetID_; } -long CreateDBClusterRequest::getOwnerId()const -{ - return ownerId_; +void CreateDBClusterRequest::setBackupSetID(const std::string &backupSetID) { + backupSetID_ = backupSetID; + setParameter(std::string("BackupSetID"), backupSetID); } -void CreateDBClusterRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CreateDBClusterRequest::getOwnerId() const { + return ownerId_; } -std::string CreateDBClusterRequest::getDBNodeGroupCount()const -{ - return dBNodeGroupCount_; +void CreateDBClusterRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CreateDBClusterRequest::setDBNodeGroupCount(const std::string& dBNodeGroupCount) -{ - dBNodeGroupCount_ = dBNodeGroupCount; - setParameter("DBNodeGroupCount", dBNodeGroupCount); +std::string CreateDBClusterRequest::getDBNodeGroupCount() const { + return dBNodeGroupCount_; } -std::string CreateDBClusterRequest::getVSwitchId()const -{ - return vSwitchId_; +void CreateDBClusterRequest::setDBNodeGroupCount(const std::string &dBNodeGroupCount) { + dBNodeGroupCount_ = dBNodeGroupCount; + setParameter(std::string("DBNodeGroupCount"), dBNodeGroupCount); } -void CreateDBClusterRequest::setVSwitchId(const std::string& vSwitchId) -{ - vSwitchId_ = vSwitchId; - setParameter("VSwitchId", vSwitchId); +std::string CreateDBClusterRequest::getVSwitchId() const { + return vSwitchId_; } -std::string CreateDBClusterRequest::getZoneId()const -{ - return zoneId_; +void CreateDBClusterRequest::setVSwitchId(const std::string &vSwitchId) { + vSwitchId_ = vSwitchId; + setParameter(std::string("VSwitchId"), vSwitchId); } -void CreateDBClusterRequest::setZoneId(const std::string& zoneId) -{ - zoneId_ = zoneId; - setParameter("ZoneId", zoneId); +std::string CreateDBClusterRequest::getZoneId() const { + return zoneId_; } -std::string CreateDBClusterRequest::getComputeResource()const -{ - return computeResource_; +void CreateDBClusterRequest::setZoneId(const std::string &zoneId) { + zoneId_ = zoneId; + setParameter(std::string("ZoneId"), zoneId); } -void CreateDBClusterRequest::setComputeResource(const std::string& computeResource) -{ - computeResource_ = computeResource; - setParameter("ComputeResource", computeResource); +std::string CreateDBClusterRequest::getComputeResource() const { + return computeResource_; } -std::string CreateDBClusterRequest::getSourceDBInstanceName()const -{ - return sourceDBInstanceName_; +void CreateDBClusterRequest::setComputeResource(const std::string &computeResource) { + computeResource_ = computeResource; + setParameter(std::string("ComputeResource"), computeResource); } -void CreateDBClusterRequest::setSourceDBInstanceName(const std::string& sourceDBInstanceName) -{ - sourceDBInstanceName_ = sourceDBInstanceName; - setParameter("SourceDBInstanceName", sourceDBInstanceName); +std::string CreateDBClusterRequest::getElasticIOResource() const { + return elasticIOResource_; } -std::string CreateDBClusterRequest::getClientToken()const -{ - return clientToken_; +void CreateDBClusterRequest::setElasticIOResource(const std::string &elasticIOResource) { + elasticIOResource_ = elasticIOResource; + setParameter(std::string("ElasticIOResource"), elasticIOResource); } -void CreateDBClusterRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string CreateDBClusterRequest::getSourceDBInstanceName() const { + return sourceDBInstanceName_; } -std::string CreateDBClusterRequest::getAccessKeyId()const -{ - return accessKeyId_; +void CreateDBClusterRequest::setSourceDBInstanceName(const std::string &sourceDBInstanceName) { + sourceDBInstanceName_ = sourceDBInstanceName; + setParameter(std::string("SourceDBInstanceName"), sourceDBInstanceName); } -void CreateDBClusterRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string CreateDBClusterRequest::getClientToken() const { + return clientToken_; } -std::string CreateDBClusterRequest::getStorageResource()const -{ - return storageResource_; +void CreateDBClusterRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void CreateDBClusterRequest::setStorageResource(const std::string& storageResource) -{ - storageResource_ = storageResource; - setParameter("StorageResource", storageResource); +std::string CreateDBClusterRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string CreateDBClusterRequest::getRegionId()const -{ - return regionId_; +void CreateDBClusterRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void CreateDBClusterRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateDBClusterRequest::getStorageResource() const { + return storageResource_; } -std::string CreateDBClusterRequest::getDBClusterCategory()const -{ - return dBClusterCategory_; +void CreateDBClusterRequest::setStorageResource(const std::string &storageResource) { + storageResource_ = storageResource; + setParameter(std::string("StorageResource"), storageResource); } -void CreateDBClusterRequest::setDBClusterCategory(const std::string& dBClusterCategory) -{ - dBClusterCategory_ = dBClusterCategory; - setParameter("DBClusterCategory", dBClusterCategory); +std::string CreateDBClusterRequest::getRegionId() const { + return regionId_; } -std::string CreateDBClusterRequest::getDBClusterNetworkType()const -{ - return dBClusterNetworkType_; +void CreateDBClusterRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreateDBClusterRequest::setDBClusterNetworkType(const std::string& dBClusterNetworkType) -{ - dBClusterNetworkType_ = dBClusterNetworkType; - setParameter("DBClusterNetworkType", dBClusterNetworkType); +std::string CreateDBClusterRequest::getDBClusterCategory() const { + return dBClusterCategory_; } -std::string CreateDBClusterRequest::getRestoreTime()const -{ - return restoreTime_; +void CreateDBClusterRequest::setDBClusterCategory(const std::string &dBClusterCategory) { + dBClusterCategory_ = dBClusterCategory; + setParameter(std::string("DBClusterCategory"), dBClusterCategory); } -void CreateDBClusterRequest::setRestoreTime(const std::string& restoreTime) -{ - restoreTime_ = restoreTime; - setParameter("RestoreTime", restoreTime); +std::string CreateDBClusterRequest::getDBClusterNetworkType() const { + return dBClusterNetworkType_; } -std::string CreateDBClusterRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateDBClusterRequest::setDBClusterNetworkType(const std::string &dBClusterNetworkType) { + dBClusterNetworkType_ = dBClusterNetworkType; + setParameter(std::string("DBClusterNetworkType"), dBClusterNetworkType); } -void CreateDBClusterRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CreateDBClusterRequest::getRestoreTime() const { + return restoreTime_; } -std::string CreateDBClusterRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreateDBClusterRequest::setRestoreTime(const std::string &restoreTime) { + restoreTime_ = restoreTime; + setParameter(std::string("RestoreTime"), restoreTime); } -void CreateDBClusterRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CreateDBClusterRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string CreateDBClusterRequest::getDBClusterVersion()const -{ - return dBClusterVersion_; +void CreateDBClusterRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreateDBClusterRequest::setDBClusterVersion(const std::string& dBClusterVersion) -{ - dBClusterVersion_ = dBClusterVersion; - setParameter("DBClusterVersion", dBClusterVersion); +std::string CreateDBClusterRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string CreateDBClusterRequest::getDBClusterClass()const -{ - return dBClusterClass_; +void CreateDBClusterRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreateDBClusterRequest::setDBClusterClass(const std::string& dBClusterClass) -{ - dBClusterClass_ = dBClusterClass; - setParameter("DBClusterClass", dBClusterClass); +std::string CreateDBClusterRequest::getDBClusterVersion() const { + return dBClusterVersion_; } -std::string CreateDBClusterRequest::getUsedTime()const -{ - return usedTime_; +void CreateDBClusterRequest::setDBClusterVersion(const std::string &dBClusterVersion) { + dBClusterVersion_ = dBClusterVersion; + setParameter(std::string("DBClusterVersion"), dBClusterVersion); } -void CreateDBClusterRequest::setUsedTime(const std::string& usedTime) -{ - usedTime_ = usedTime; - setParameter("UsedTime", usedTime); +std::string CreateDBClusterRequest::getDBClusterClass() const { + return dBClusterClass_; } -std::string CreateDBClusterRequest::getRestoreType()const -{ - return restoreType_; +void CreateDBClusterRequest::setDBClusterClass(const std::string &dBClusterClass) { + dBClusterClass_ = dBClusterClass; + setParameter(std::string("DBClusterClass"), dBClusterClass); } -void CreateDBClusterRequest::setRestoreType(const std::string& restoreType) -{ - restoreType_ = restoreType; - setParameter("RestoreType", restoreType); +std::string CreateDBClusterRequest::getUsedTime() const { + return usedTime_; } -std::string CreateDBClusterRequest::getDBNodeStorage()const -{ - return dBNodeStorage_; +void CreateDBClusterRequest::setUsedTime(const std::string &usedTime) { + usedTime_ = usedTime; + setParameter(std::string("UsedTime"), usedTime); } -void CreateDBClusterRequest::setDBNodeStorage(const std::string& dBNodeStorage) -{ - dBNodeStorage_ = dBNodeStorage; - setParameter("DBNodeStorage", dBNodeStorage); +std::string CreateDBClusterRequest::getRestoreType() const { + return restoreType_; } -std::string CreateDBClusterRequest::getExecutorCount()const -{ - return executorCount_; +void CreateDBClusterRequest::setRestoreType(const std::string &restoreType) { + restoreType_ = restoreType; + setParameter(std::string("RestoreType"), restoreType); } -void CreateDBClusterRequest::setExecutorCount(const std::string& executorCount) -{ - executorCount_ = executorCount; - setParameter("ExecutorCount", executorCount); +std::string CreateDBClusterRequest::getDBNodeStorage() const { + return dBNodeStorage_; } -std::string CreateDBClusterRequest::getVPCId()const -{ - return vPCId_; +void CreateDBClusterRequest::setDBNodeStorage(const std::string &dBNodeStorage) { + dBNodeStorage_ = dBNodeStorage; + setParameter(std::string("DBNodeStorage"), dBNodeStorage); } -void CreateDBClusterRequest::setVPCId(const std::string& vPCId) -{ - vPCId_ = vPCId; - setParameter("VPCId", vPCId); +std::string CreateDBClusterRequest::getExecutorCount() const { + return executorCount_; } -std::string CreateDBClusterRequest::getPayType()const -{ - return payType_; +void CreateDBClusterRequest::setExecutorCount(const std::string &executorCount) { + executorCount_ = executorCount; + setParameter(std::string("ExecutorCount"), executorCount); } -void CreateDBClusterRequest::setPayType(const std::string& payType) -{ - payType_ = payType; - setParameter("PayType", payType); +std::string CreateDBClusterRequest::getVPCId() const { + return vPCId_; +} + +void CreateDBClusterRequest::setVPCId(const std::string &vPCId) { + vPCId_ = vPCId; + setParameter(std::string("VPCId"), vPCId); +} + +std::string CreateDBClusterRequest::getPayType() const { + return payType_; +} + +void CreateDBClusterRequest::setPayType(const std::string &payType) { + payType_ = payType; + setParameter(std::string("PayType"), payType); } diff --git a/adb/src/model/CreateDBClusterResult.cc b/adb/src/model/CreateDBClusterResult.cc index d04b5b701..2c5dd2a20 100644 --- a/adb/src/model/CreateDBClusterResult.cc +++ b/adb/src/model/CreateDBClusterResult.cc @@ -39,12 +39,12 @@ void CreateDBClusterResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + if(!value["ResourceGroupId"].isNull()) + resourceGroupId_ = value["ResourceGroupId"].asString(); if(!value["DBClusterId"].isNull()) dBClusterId_ = value["DBClusterId"].asString(); if(!value["OrderId"].isNull()) orderId_ = value["OrderId"].asString(); - if(!value["ResourceGroupId"].isNull()) - resourceGroupId_ = value["ResourceGroupId"].asString(); } diff --git a/adb/src/model/CreateDBResourceGroupRequest.cc b/adb/src/model/CreateDBResourceGroupRequest.cc new file mode 100644 index 000000000..d33d86507 --- /dev/null +++ b/adb/src/model/CreateDBResourceGroupRequest.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::Adb::Model::CreateDBResourceGroupRequest; + +CreateDBResourceGroupRequest::CreateDBResourceGroupRequest() + : RpcServiceRequest("adb", "2019-03-15", "CreateDBResourceGroup") { + setMethod(HttpRequest::Method::Post); +} + +CreateDBResourceGroupRequest::~CreateDBResourceGroupRequest() {} + +long CreateDBResourceGroupRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void CreateDBResourceGroupRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +int CreateDBResourceGroupRequest::getNodeNum() const { + return nodeNum_; +} + +void CreateDBResourceGroupRequest::setNodeNum(int nodeNum) { + nodeNum_ = nodeNum; + setParameter(std::string("NodeNum"), std::to_string(nodeNum)); +} + +std::string CreateDBResourceGroupRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void CreateDBResourceGroupRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string CreateDBResourceGroupRequest::getGroupType() const { + return groupType_; +} + +void CreateDBResourceGroupRequest::setGroupType(const std::string &groupType) { + groupType_ = groupType; + setParameter(std::string("GroupType"), groupType); +} + +std::string CreateDBResourceGroupRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void CreateDBResourceGroupRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string CreateDBResourceGroupRequest::getDBClusterId() const { + return dBClusterId_; +} + +void CreateDBResourceGroupRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string CreateDBResourceGroupRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void CreateDBResourceGroupRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long CreateDBResourceGroupRequest::getOwnerId() const { + return ownerId_; +} + +void CreateDBResourceGroupRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string CreateDBResourceGroupRequest::getGroupName() const { + return groupName_; +} + +void CreateDBResourceGroupRequest::setGroupName(const std::string &groupName) { + groupName_ = groupName; + setParameter(std::string("GroupName"), groupName); +} + diff --git a/adb/src/model/CreateDBResourceGroupResult.cc b/adb/src/model/CreateDBResourceGroupResult.cc new file mode 100644 index 000000000..5d0e6ba75 --- /dev/null +++ b/adb/src/model/CreateDBResourceGroupResult.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::Adb; +using namespace AlibabaCloud::Adb::Model; + +CreateDBResourceGroupResult::CreateDBResourceGroupResult() : + ServiceResult() +{} + +CreateDBResourceGroupResult::CreateDBResourceGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateDBResourceGroupResult::~CreateDBResourceGroupResult() +{} + +void CreateDBResourceGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/adb/src/model/CreateDBResourcePoolRequest.cc b/adb/src/model/CreateDBResourcePoolRequest.cc index 163c4f87a..8566182f4 100644 --- a/adb/src/model/CreateDBResourcePoolRequest.cc +++ b/adb/src/model/CreateDBResourcePoolRequest.cc @@ -1,128 +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::Adb::Model::CreateDBResourcePoolRequest; - -CreateDBResourcePoolRequest::CreateDBResourcePoolRequest() : - RpcServiceRequest("adb", "2019-03-15", "CreateDBResourcePool") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateDBResourcePoolRequest::~CreateDBResourcePoolRequest() -{} - -std::string CreateDBResourcePoolRequest::getPoolName()const -{ - return poolName_; + */ + +#include + +using AlibabaCloud::Adb::Model::CreateDBResourcePoolRequest; + +CreateDBResourcePoolRequest::CreateDBResourcePoolRequest() + : RpcServiceRequest("adb", "2019-03-15", "CreateDBResourcePool") { + setMethod(HttpRequest::Method::Post); } -void CreateDBResourcePoolRequest::setPoolName(const std::string& poolName) -{ - poolName_ = poolName; - setParameter("PoolName", poolName); +CreateDBResourcePoolRequest::~CreateDBResourcePoolRequest() {} + +std::string CreateDBResourcePoolRequest::getPoolName() const { + return poolName_; } -long CreateDBResourcePoolRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void CreateDBResourcePoolRequest::setPoolName(const std::string &poolName) { + poolName_ = poolName; + setParameter(std::string("PoolName"), poolName); } -void CreateDBResourcePoolRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long CreateDBResourcePoolRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -int CreateDBResourcePoolRequest::getNodeNum()const -{ - return nodeNum_; +void CreateDBResourcePoolRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateDBResourcePoolRequest::setNodeNum(int nodeNum) -{ - nodeNum_ = nodeNum; - setParameter("NodeNum", std::to_string(nodeNum)); +int CreateDBResourcePoolRequest::getNodeNum() const { + return nodeNum_; } -std::string CreateDBResourcePoolRequest::getAccessKeyId()const -{ - return accessKeyId_; +void CreateDBResourcePoolRequest::setNodeNum(int nodeNum) { + nodeNum_ = nodeNum; + setParameter(std::string("NodeNum"), std::to_string(nodeNum)); } -void CreateDBResourcePoolRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string CreateDBResourcePoolRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string CreateDBResourcePoolRequest::getQueryType()const -{ - return queryType_; +void CreateDBResourcePoolRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void CreateDBResourcePoolRequest::setQueryType(const std::string& queryType) -{ - queryType_ = queryType; - setParameter("QueryType", queryType); +std::string CreateDBResourcePoolRequest::getQueryType() const { + return queryType_; } -std::string CreateDBResourcePoolRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateDBResourcePoolRequest::setQueryType(const std::string &queryType) { + queryType_ = queryType; + setParameter(std::string("QueryType"), queryType); } -void CreateDBResourcePoolRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CreateDBResourcePoolRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string CreateDBResourcePoolRequest::getDBClusterId()const -{ - return dBClusterId_; +void CreateDBResourcePoolRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreateDBResourcePoolRequest::setDBClusterId(const std::string& dBClusterId) -{ - dBClusterId_ = dBClusterId; - setParameter("DBClusterId", dBClusterId); +std::string CreateDBResourcePoolRequest::getDBClusterId() const { + return dBClusterId_; } -std::string CreateDBResourcePoolRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreateDBResourcePoolRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); } -void CreateDBResourcePoolRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CreateDBResourcePoolRequest::getOwnerAccount() const { + return ownerAccount_; } -long CreateDBResourcePoolRequest::getOwnerId()const -{ - return ownerId_; +void CreateDBResourcePoolRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreateDBResourcePoolRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CreateDBResourcePoolRequest::getOwnerId() const { + return ownerId_; +} + +void CreateDBResourcePoolRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/adb/src/model/CreateElasticPlanRequest.cc b/adb/src/model/CreateElasticPlanRequest.cc index 56c180d6b..e92923895 100644 --- a/adb/src/model/CreateElasticPlanRequest.cc +++ b/adb/src/model/CreateElasticPlanRequest.cc @@ -1,194 +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::Adb::Model::CreateElasticPlanRequest; - -CreateElasticPlanRequest::CreateElasticPlanRequest() : - RpcServiceRequest("adb", "2019-03-15", "CreateElasticPlan") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateElasticPlanRequest::~CreateElasticPlanRequest() -{} - -long CreateElasticPlanRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Adb::Model::CreateElasticPlanRequest; + +CreateElasticPlanRequest::CreateElasticPlanRequest() + : RpcServiceRequest("adb", "2019-03-15", "CreateElasticPlan") { + setMethod(HttpRequest::Method::Post); } -void CreateElasticPlanRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +CreateElasticPlanRequest::~CreateElasticPlanRequest() {} + +long CreateElasticPlanRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreateElasticPlanRequest::getElasticPlanTimeStart()const -{ - return elasticPlanTimeStart_; +void CreateElasticPlanRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateElasticPlanRequest::setElasticPlanTimeStart(const std::string& elasticPlanTimeStart) -{ - elasticPlanTimeStart_ = elasticPlanTimeStart; - setParameter("ElasticPlanTimeStart", elasticPlanTimeStart); +std::string CreateElasticPlanRequest::getElasticPlanTimeStart() const { + return elasticPlanTimeStart_; } -std::string CreateElasticPlanRequest::getElasticPlanEndDay()const -{ - return elasticPlanEndDay_; +void CreateElasticPlanRequest::setElasticPlanTimeStart(const std::string &elasticPlanTimeStart) { + elasticPlanTimeStart_ = elasticPlanTimeStart; + setParameter(std::string("ElasticPlanTimeStart"), elasticPlanTimeStart); } -void CreateElasticPlanRequest::setElasticPlanEndDay(const std::string& elasticPlanEndDay) -{ - elasticPlanEndDay_ = elasticPlanEndDay; - setParameter("ElasticPlanEndDay", elasticPlanEndDay); +std::string CreateElasticPlanRequest::getElasticPlanEndDay() const { + return elasticPlanEndDay_; } -std::string CreateElasticPlanRequest::getElasticPlanWeeklyRepeat()const -{ - return elasticPlanWeeklyRepeat_; +void CreateElasticPlanRequest::setElasticPlanEndDay(const std::string &elasticPlanEndDay) { + elasticPlanEndDay_ = elasticPlanEndDay; + setParameter(std::string("ElasticPlanEndDay"), elasticPlanEndDay); } -void CreateElasticPlanRequest::setElasticPlanWeeklyRepeat(const std::string& elasticPlanWeeklyRepeat) -{ - elasticPlanWeeklyRepeat_ = elasticPlanWeeklyRepeat; - setParameter("ElasticPlanWeeklyRepeat", elasticPlanWeeklyRepeat); +std::string CreateElasticPlanRequest::getElasticPlanWeeklyRepeat() const { + return elasticPlanWeeklyRepeat_; } -std::string CreateElasticPlanRequest::getAccessKeyId()const -{ - return accessKeyId_; +void CreateElasticPlanRequest::setElasticPlanWeeklyRepeat(const std::string &elasticPlanWeeklyRepeat) { + elasticPlanWeeklyRepeat_ = elasticPlanWeeklyRepeat; + setParameter(std::string("ElasticPlanWeeklyRepeat"), elasticPlanWeeklyRepeat); } -void CreateElasticPlanRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string CreateElasticPlanRequest::getAccessKeyId() const { + return accessKeyId_; } -bool CreateElasticPlanRequest::getElasticPlanEnable()const -{ - return elasticPlanEnable_; +void CreateElasticPlanRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void CreateElasticPlanRequest::setElasticPlanEnable(bool elasticPlanEnable) -{ - elasticPlanEnable_ = elasticPlanEnable; - setParameter("ElasticPlanEnable", elasticPlanEnable ? "true" : "false"); +bool CreateElasticPlanRequest::getElasticPlanEnable() const { + return elasticPlanEnable_; } -std::string CreateElasticPlanRequest::getElasticPlanTimeEnd()const -{ - return elasticPlanTimeEnd_; +void CreateElasticPlanRequest::setElasticPlanEnable(bool elasticPlanEnable) { + elasticPlanEnable_ = elasticPlanEnable; + setParameter(std::string("ElasticPlanEnable"), elasticPlanEnable ? "true" : "false"); } -void CreateElasticPlanRequest::setElasticPlanTimeEnd(const std::string& elasticPlanTimeEnd) -{ - elasticPlanTimeEnd_ = elasticPlanTimeEnd; - setParameter("ElasticPlanTimeEnd", elasticPlanTimeEnd); +std::string CreateElasticPlanRequest::getElasticPlanTimeEnd() const { + return elasticPlanTimeEnd_; } -std::string CreateElasticPlanRequest::getElasticPlanStartDay()const -{ - return elasticPlanStartDay_; +void CreateElasticPlanRequest::setElasticPlanTimeEnd(const std::string &elasticPlanTimeEnd) { + elasticPlanTimeEnd_ = elasticPlanTimeEnd; + setParameter(std::string("ElasticPlanTimeEnd"), elasticPlanTimeEnd); } -void CreateElasticPlanRequest::setElasticPlanStartDay(const std::string& elasticPlanStartDay) -{ - elasticPlanStartDay_ = elasticPlanStartDay; - setParameter("ElasticPlanStartDay", elasticPlanStartDay); +std::string CreateElasticPlanRequest::getElasticPlanStartDay() const { + return elasticPlanStartDay_; } -std::string CreateElasticPlanRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateElasticPlanRequest::setElasticPlanStartDay(const std::string &elasticPlanStartDay) { + elasticPlanStartDay_ = elasticPlanStartDay; + setParameter(std::string("ElasticPlanStartDay"), elasticPlanStartDay); } -void CreateElasticPlanRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CreateElasticPlanRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string CreateElasticPlanRequest::getDBClusterId()const -{ - return dBClusterId_; +void CreateElasticPlanRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreateElasticPlanRequest::setDBClusterId(const std::string& dBClusterId) -{ - dBClusterId_ = dBClusterId; - setParameter("DBClusterId", dBClusterId); +std::string CreateElasticPlanRequest::getDBClusterId() const { + return dBClusterId_; } -std::string CreateElasticPlanRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreateElasticPlanRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); } -void CreateElasticPlanRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CreateElasticPlanRequest::getOwnerAccount() const { + return ownerAccount_; } -long CreateElasticPlanRequest::getOwnerId()const -{ - return ownerId_; +void CreateElasticPlanRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreateElasticPlanRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CreateElasticPlanRequest::getOwnerId() const { + return ownerId_; } -std::string CreateElasticPlanRequest::getElasticPlanName()const -{ - return elasticPlanName_; +void CreateElasticPlanRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CreateElasticPlanRequest::setElasticPlanName(const std::string& elasticPlanName) -{ - elasticPlanName_ = elasticPlanName; - setParameter("ElasticPlanName", elasticPlanName); +std::string CreateElasticPlanRequest::getElasticPlanName() const { + return elasticPlanName_; } -std::string CreateElasticPlanRequest::getResourcePoolName()const -{ - return resourcePoolName_; +void CreateElasticPlanRequest::setElasticPlanName(const std::string &elasticPlanName) { + elasticPlanName_ = elasticPlanName; + setParameter(std::string("ElasticPlanName"), elasticPlanName); } -void CreateElasticPlanRequest::setResourcePoolName(const std::string& resourcePoolName) -{ - resourcePoolName_ = resourcePoolName; - setParameter("ResourcePoolName", resourcePoolName); +std::string CreateElasticPlanRequest::getResourcePoolName() const { + return resourcePoolName_; } -int CreateElasticPlanRequest::getElasticPlanNodeNum()const -{ - return elasticPlanNodeNum_; +void CreateElasticPlanRequest::setResourcePoolName(const std::string &resourcePoolName) { + resourcePoolName_ = resourcePoolName; + setParameter(std::string("ResourcePoolName"), resourcePoolName); } -void CreateElasticPlanRequest::setElasticPlanNodeNum(int elasticPlanNodeNum) -{ - elasticPlanNodeNum_ = elasticPlanNodeNum; - setParameter("ElasticPlanNodeNum", std::to_string(elasticPlanNodeNum)); +int CreateElasticPlanRequest::getElasticPlanNodeNum() const { + return elasticPlanNodeNum_; +} + +void CreateElasticPlanRequest::setElasticPlanNodeNum(int elasticPlanNodeNum) { + elasticPlanNodeNum_ = elasticPlanNodeNum; + setParameter(std::string("ElasticPlanNodeNum"), std::to_string(elasticPlanNodeNum)); } diff --git a/adb/src/model/DeleteAccountRequest.cc b/adb/src/model/DeleteAccountRequest.cc index 41883ebe4..e4345d65d 100644 --- a/adb/src/model/DeleteAccountRequest.cc +++ b/adb/src/model/DeleteAccountRequest.cc @@ -1,117 +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::Adb::Model::DeleteAccountRequest; - -DeleteAccountRequest::DeleteAccountRequest() : - RpcServiceRequest("adb", "2019-03-15", "DeleteAccount") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteAccountRequest::~DeleteAccountRequest() -{} - -long DeleteAccountRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Adb::Model::DeleteAccountRequest; + +DeleteAccountRequest::DeleteAccountRequest() + : RpcServiceRequest("adb", "2019-03-15", "DeleteAccount") { + setMethod(HttpRequest::Method::Post); } -void DeleteAccountRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteAccountRequest::~DeleteAccountRequest() {} + +long DeleteAccountRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteAccountRequest::getAccountType()const -{ - return accountType_; +void DeleteAccountRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteAccountRequest::setAccountType(const std::string& accountType) -{ - accountType_ = accountType; - setParameter("AccountType", accountType); +std::string DeleteAccountRequest::getAccountType() const { + return accountType_; } -std::string DeleteAccountRequest::getAccessKeyId()const -{ - return accessKeyId_; +void DeleteAccountRequest::setAccountType(const std::string &accountType) { + accountType_ = accountType; + setParameter(std::string("AccountType"), accountType); } -void DeleteAccountRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string DeleteAccountRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string DeleteAccountRequest::getAccountName()const -{ - return accountName_; +void DeleteAccountRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void DeleteAccountRequest::setAccountName(const std::string& accountName) -{ - accountName_ = accountName; - setParameter("AccountName", accountName); +std::string DeleteAccountRequest::getAccountName() const { + return accountName_; } -std::string DeleteAccountRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteAccountRequest::setAccountName(const std::string &accountName) { + accountName_ = accountName; + setParameter(std::string("AccountName"), accountName); } -void DeleteAccountRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteAccountRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteAccountRequest::getDBClusterId()const -{ - return dBClusterId_; +void DeleteAccountRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteAccountRequest::setDBClusterId(const std::string& dBClusterId) -{ - dBClusterId_ = dBClusterId; - setParameter("DBClusterId", dBClusterId); +std::string DeleteAccountRequest::getDBClusterId() const { + return dBClusterId_; } -std::string DeleteAccountRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteAccountRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); } -void DeleteAccountRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteAccountRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeleteAccountRequest::getOwnerId()const -{ - return ownerId_; +void DeleteAccountRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteAccountRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteAccountRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteAccountRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/adb/src/model/DeleteDBClusterRequest.cc b/adb/src/model/DeleteDBClusterRequest.cc index 14e098c41..9a6822505 100644 --- a/adb/src/model/DeleteDBClusterRequest.cc +++ b/adb/src/model/DeleteDBClusterRequest.cc @@ -1,95 +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::Adb::Model::DeleteDBClusterRequest; - -DeleteDBClusterRequest::DeleteDBClusterRequest() : - RpcServiceRequest("adb", "2019-03-15", "DeleteDBCluster") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteDBClusterRequest::~DeleteDBClusterRequest() -{} - -long DeleteDBClusterRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Adb::Model::DeleteDBClusterRequest; + +DeleteDBClusterRequest::DeleteDBClusterRequest() + : RpcServiceRequest("adb", "2019-03-15", "DeleteDBCluster") { + setMethod(HttpRequest::Method::Post); } -void DeleteDBClusterRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteDBClusterRequest::~DeleteDBClusterRequest() {} + +long DeleteDBClusterRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteDBClusterRequest::getAccessKeyId()const -{ - return accessKeyId_; +void DeleteDBClusterRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteDBClusterRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string DeleteDBClusterRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string DeleteDBClusterRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteDBClusterRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void DeleteDBClusterRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteDBClusterRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteDBClusterRequest::getDBClusterId()const -{ - return dBClusterId_; +void DeleteDBClusterRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteDBClusterRequest::setDBClusterId(const std::string& dBClusterId) -{ - dBClusterId_ = dBClusterId; - setParameter("DBClusterId", dBClusterId); +std::string DeleteDBClusterRequest::getDBClusterId() const { + return dBClusterId_; } -std::string DeleteDBClusterRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteDBClusterRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); } -void DeleteDBClusterRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteDBClusterRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeleteDBClusterRequest::getOwnerId()const -{ - return ownerId_; +void DeleteDBClusterRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteDBClusterRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteDBClusterRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteDBClusterRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/adb/src/model/DeleteDBResourceGroupRequest.cc b/adb/src/model/DeleteDBResourceGroupRequest.cc new file mode 100644 index 000000000..8cf7a1d3c --- /dev/null +++ b/adb/src/model/DeleteDBResourceGroupRequest.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::Adb::Model::DeleteDBResourceGroupRequest; + +DeleteDBResourceGroupRequest::DeleteDBResourceGroupRequest() + : RpcServiceRequest("adb", "2019-03-15", "DeleteDBResourceGroup") { + setMethod(HttpRequest::Method::Post); +} + +DeleteDBResourceGroupRequest::~DeleteDBResourceGroupRequest() {} + +long DeleteDBResourceGroupRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DeleteDBResourceGroupRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DeleteDBResourceGroupRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DeleteDBResourceGroupRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DeleteDBResourceGroupRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DeleteDBResourceGroupRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DeleteDBResourceGroupRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DeleteDBResourceGroupRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string DeleteDBResourceGroupRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DeleteDBResourceGroupRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DeleteDBResourceGroupRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteDBResourceGroupRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DeleteDBResourceGroupRequest::getGroupName() const { + return groupName_; +} + +void DeleteDBResourceGroupRequest::setGroupName(const std::string &groupName) { + groupName_ = groupName; + setParameter(std::string("GroupName"), groupName); +} + diff --git a/adb/src/model/DeleteDBResourceGroupResult.cc b/adb/src/model/DeleteDBResourceGroupResult.cc new file mode 100644 index 000000000..3b1683840 --- /dev/null +++ b/adb/src/model/DeleteDBResourceGroupResult.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::Adb; +using namespace AlibabaCloud::Adb::Model; + +DeleteDBResourceGroupResult::DeleteDBResourceGroupResult() : + ServiceResult() +{} + +DeleteDBResourceGroupResult::DeleteDBResourceGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteDBResourceGroupResult::~DeleteDBResourceGroupResult() +{} + +void DeleteDBResourceGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/adb/src/model/DeleteDBResourcePoolRequest.cc b/adb/src/model/DeleteDBResourcePoolRequest.cc index 513d6fc0d..c06e28deb 100644 --- a/adb/src/model/DeleteDBResourcePoolRequest.cc +++ b/adb/src/model/DeleteDBResourcePoolRequest.cc @@ -1,106 +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::Adb::Model::DeleteDBResourcePoolRequest; - -DeleteDBResourcePoolRequest::DeleteDBResourcePoolRequest() : - RpcServiceRequest("adb", "2019-03-15", "DeleteDBResourcePool") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteDBResourcePoolRequest::~DeleteDBResourcePoolRequest() -{} - -std::string DeleteDBResourcePoolRequest::getPoolName()const -{ - return poolName_; + */ + +#include + +using AlibabaCloud::Adb::Model::DeleteDBResourcePoolRequest; + +DeleteDBResourcePoolRequest::DeleteDBResourcePoolRequest() + : RpcServiceRequest("adb", "2019-03-15", "DeleteDBResourcePool") { + setMethod(HttpRequest::Method::Post); } -void DeleteDBResourcePoolRequest::setPoolName(const std::string& poolName) -{ - poolName_ = poolName; - setParameter("PoolName", poolName); +DeleteDBResourcePoolRequest::~DeleteDBResourcePoolRequest() {} + +std::string DeleteDBResourcePoolRequest::getPoolName() const { + return poolName_; } -long DeleteDBResourcePoolRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void DeleteDBResourcePoolRequest::setPoolName(const std::string &poolName) { + poolName_ = poolName; + setParameter(std::string("PoolName"), poolName); } -void DeleteDBResourcePoolRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long DeleteDBResourcePoolRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteDBResourcePoolRequest::getAccessKeyId()const -{ - return accessKeyId_; +void DeleteDBResourcePoolRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteDBResourcePoolRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string DeleteDBResourcePoolRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string DeleteDBResourcePoolRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteDBResourcePoolRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void DeleteDBResourcePoolRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteDBResourcePoolRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteDBResourcePoolRequest::getDBClusterId()const -{ - return dBClusterId_; +void DeleteDBResourcePoolRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteDBResourcePoolRequest::setDBClusterId(const std::string& dBClusterId) -{ - dBClusterId_ = dBClusterId; - setParameter("DBClusterId", dBClusterId); +std::string DeleteDBResourcePoolRequest::getDBClusterId() const { + return dBClusterId_; } -std::string DeleteDBResourcePoolRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteDBResourcePoolRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); } -void DeleteDBResourcePoolRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteDBResourcePoolRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeleteDBResourcePoolRequest::getOwnerId()const -{ - return ownerId_; +void DeleteDBResourcePoolRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteDBResourcePoolRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteDBResourcePoolRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteDBResourcePoolRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/adb/src/model/DeleteElasticPlanRequest.cc b/adb/src/model/DeleteElasticPlanRequest.cc index 46cbbef3a..262facc1e 100644 --- a/adb/src/model/DeleteElasticPlanRequest.cc +++ b/adb/src/model/DeleteElasticPlanRequest.cc @@ -1,106 +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::Adb::Model::DeleteElasticPlanRequest; - -DeleteElasticPlanRequest::DeleteElasticPlanRequest() : - RpcServiceRequest("adb", "2019-03-15", "DeleteElasticPlan") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteElasticPlanRequest::~DeleteElasticPlanRequest() -{} - -long DeleteElasticPlanRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Adb::Model::DeleteElasticPlanRequest; + +DeleteElasticPlanRequest::DeleteElasticPlanRequest() + : RpcServiceRequest("adb", "2019-03-15", "DeleteElasticPlan") { + setMethod(HttpRequest::Method::Post); } -void DeleteElasticPlanRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteElasticPlanRequest::~DeleteElasticPlanRequest() {} + +long DeleteElasticPlanRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteElasticPlanRequest::getAccessKeyId()const -{ - return accessKeyId_; +void DeleteElasticPlanRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteElasticPlanRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string DeleteElasticPlanRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string DeleteElasticPlanRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteElasticPlanRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void DeleteElasticPlanRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteElasticPlanRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteElasticPlanRequest::getDBClusterId()const -{ - return dBClusterId_; +void DeleteElasticPlanRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteElasticPlanRequest::setDBClusterId(const std::string& dBClusterId) -{ - dBClusterId_ = dBClusterId; - setParameter("DBClusterId", dBClusterId); +std::string DeleteElasticPlanRequest::getDBClusterId() const { + return dBClusterId_; } -std::string DeleteElasticPlanRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteElasticPlanRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); } -void DeleteElasticPlanRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteElasticPlanRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeleteElasticPlanRequest::getOwnerId()const -{ - return ownerId_; +void DeleteElasticPlanRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteElasticPlanRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteElasticPlanRequest::getOwnerId() const { + return ownerId_; } -std::string DeleteElasticPlanRequest::getElasticPlanName()const -{ - return elasticPlanName_; +void DeleteElasticPlanRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DeleteElasticPlanRequest::setElasticPlanName(const std::string& elasticPlanName) -{ - elasticPlanName_ = elasticPlanName; - setParameter("ElasticPlanName", elasticPlanName); +std::string DeleteElasticPlanRequest::getElasticPlanName() const { + return elasticPlanName_; +} + +void DeleteElasticPlanRequest::setElasticPlanName(const std::string &elasticPlanName) { + elasticPlanName_ = elasticPlanName; + setParameter(std::string("ElasticPlanName"), elasticPlanName); } diff --git a/adb/src/model/DescribeAccountsRequest.cc b/adb/src/model/DescribeAccountsRequest.cc index 5177a75f0..ef0fb4527 100644 --- a/adb/src/model/DescribeAccountsRequest.cc +++ b/adb/src/model/DescribeAccountsRequest.cc @@ -1,117 +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::Adb::Model::DescribeAccountsRequest; - -DescribeAccountsRequest::DescribeAccountsRequest() : - RpcServiceRequest("adb", "2019-03-15", "DescribeAccounts") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeAccountsRequest::~DescribeAccountsRequest() -{} - -long DescribeAccountsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Adb::Model::DescribeAccountsRequest; + +DescribeAccountsRequest::DescribeAccountsRequest() + : RpcServiceRequest("adb", "2019-03-15", "DescribeAccounts") { + setMethod(HttpRequest::Method::Post); } -void DescribeAccountsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeAccountsRequest::~DescribeAccountsRequest() {} + +long DescribeAccountsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeAccountsRequest::getAccountType()const -{ - return accountType_; +void DescribeAccountsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeAccountsRequest::setAccountType(const std::string& accountType) -{ - accountType_ = accountType; - setParameter("AccountType", accountType); +std::string DescribeAccountsRequest::getAccountType() const { + return accountType_; } -std::string DescribeAccountsRequest::getAccessKeyId()const -{ - return accessKeyId_; +void DescribeAccountsRequest::setAccountType(const std::string &accountType) { + accountType_ = accountType; + setParameter(std::string("AccountType"), accountType); } -void DescribeAccountsRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string DescribeAccountsRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string DescribeAccountsRequest::getAccountName()const -{ - return accountName_; +void DescribeAccountsRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void DescribeAccountsRequest::setAccountName(const std::string& accountName) -{ - accountName_ = accountName; - setParameter("AccountName", accountName); +std::string DescribeAccountsRequest::getAccountName() const { + return accountName_; } -std::string DescribeAccountsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeAccountsRequest::setAccountName(const std::string &accountName) { + accountName_ = accountName; + setParameter(std::string("AccountName"), accountName); } -void DescribeAccountsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeAccountsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeAccountsRequest::getDBClusterId()const -{ - return dBClusterId_; +void DescribeAccountsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeAccountsRequest::setDBClusterId(const std::string& dBClusterId) -{ - dBClusterId_ = dBClusterId; - setParameter("DBClusterId", dBClusterId); +std::string DescribeAccountsRequest::getDBClusterId() const { + return dBClusterId_; } -std::string DescribeAccountsRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeAccountsRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); } -void DescribeAccountsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeAccountsRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeAccountsRequest::getOwnerId()const -{ - return ownerId_; +void DescribeAccountsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeAccountsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeAccountsRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeAccountsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/adb/src/model/DescribeAccountsResult.cc b/adb/src/model/DescribeAccountsResult.cc index dde3b6d88..7a3672046 100644 --- a/adb/src/model/DescribeAccountsResult.cc +++ b/adb/src/model/DescribeAccountsResult.cc @@ -43,14 +43,14 @@ void DescribeAccountsResult::parse(const std::string &payload) for (auto valueAccountListDBAccount : allAccountListNode) { DBAccount accountListObject; - if(!valueAccountListDBAccount["AccountName"].isNull()) - accountListObject.accountName = valueAccountListDBAccount["AccountName"].asString(); if(!valueAccountListDBAccount["AccountStatus"].isNull()) accountListObject.accountStatus = valueAccountListDBAccount["AccountStatus"].asString(); if(!valueAccountListDBAccount["AccountDescription"].isNull()) accountListObject.accountDescription = valueAccountListDBAccount["AccountDescription"].asString(); if(!valueAccountListDBAccount["AccountType"].isNull()) accountListObject.accountType = valueAccountListDBAccount["AccountType"].asString(); + if(!valueAccountListDBAccount["AccountName"].isNull()) + accountListObject.accountName = valueAccountListDBAccount["AccountName"].asString(); accountList_.push_back(accountListObject); } diff --git a/adb/src/model/DescribeAllAccountsRequest.cc b/adb/src/model/DescribeAllAccountsRequest.cc index b6cd85c37..889821f0d 100644 --- a/adb/src/model/DescribeAllAccountsRequest.cc +++ b/adb/src/model/DescribeAllAccountsRequest.cc @@ -1,95 +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::Adb::Model::DescribeAllAccountsRequest; - -DescribeAllAccountsRequest::DescribeAllAccountsRequest() : - RpcServiceRequest("adb", "2019-03-15", "DescribeAllAccounts") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeAllAccountsRequest::~DescribeAllAccountsRequest() -{} - -long DescribeAllAccountsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Adb::Model::DescribeAllAccountsRequest; + +DescribeAllAccountsRequest::DescribeAllAccountsRequest() + : RpcServiceRequest("adb", "2019-03-15", "DescribeAllAccounts") { + setMethod(HttpRequest::Method::Post); } -void DescribeAllAccountsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeAllAccountsRequest::~DescribeAllAccountsRequest() {} + +long DescribeAllAccountsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeAllAccountsRequest::getAccessKeyId()const -{ - return accessKeyId_; +void DescribeAllAccountsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeAllAccountsRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string DescribeAllAccountsRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string DescribeAllAccountsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeAllAccountsRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void DescribeAllAccountsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeAllAccountsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeAllAccountsRequest::getDBClusterId()const -{ - return dBClusterId_; +void DescribeAllAccountsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeAllAccountsRequest::setDBClusterId(const std::string& dBClusterId) -{ - dBClusterId_ = dBClusterId; - setParameter("DBClusterId", dBClusterId); +std::string DescribeAllAccountsRequest::getDBClusterId() const { + return dBClusterId_; } -std::string DescribeAllAccountsRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeAllAccountsRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); } -void DescribeAllAccountsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeAllAccountsRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeAllAccountsRequest::getOwnerId()const -{ - return ownerId_; +void DescribeAllAccountsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeAllAccountsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeAllAccountsRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeAllAccountsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/adb/src/model/DescribeAllDataSourceRequest.cc b/adb/src/model/DescribeAllDataSourceRequest.cc index 9acb8a3fa..4db1ba516 100644 --- a/adb/src/model/DescribeAllDataSourceRequest.cc +++ b/adb/src/model/DescribeAllDataSourceRequest.cc @@ -1,117 +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::Adb::Model::DescribeAllDataSourceRequest; - -DescribeAllDataSourceRequest::DescribeAllDataSourceRequest() : - RpcServiceRequest("adb", "2019-03-15", "DescribeAllDataSource") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeAllDataSourceRequest::~DescribeAllDataSourceRequest() -{} - -long DescribeAllDataSourceRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Adb::Model::DescribeAllDataSourceRequest; + +DescribeAllDataSourceRequest::DescribeAllDataSourceRequest() + : RpcServiceRequest("adb", "2019-03-15", "DescribeAllDataSource") { + setMethod(HttpRequest::Method::Post); } -void DescribeAllDataSourceRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeAllDataSourceRequest::~DescribeAllDataSourceRequest() {} + +long DescribeAllDataSourceRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeAllDataSourceRequest::getAccessKeyId()const -{ - return accessKeyId_; +void DescribeAllDataSourceRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeAllDataSourceRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string DescribeAllDataSourceRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string DescribeAllDataSourceRequest::getTableName()const -{ - return tableName_; +void DescribeAllDataSourceRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void DescribeAllDataSourceRequest::setTableName(const std::string& tableName) -{ - tableName_ = tableName; - setParameter("TableName", tableName); +std::string DescribeAllDataSourceRequest::getTableName() const { + return tableName_; } -std::string DescribeAllDataSourceRequest::getSchemaName()const -{ - return schemaName_; +void DescribeAllDataSourceRequest::setTableName(const std::string &tableName) { + tableName_ = tableName; + setParameter(std::string("TableName"), tableName); } -void DescribeAllDataSourceRequest::setSchemaName(const std::string& schemaName) -{ - schemaName_ = schemaName; - setParameter("SchemaName", schemaName); +std::string DescribeAllDataSourceRequest::getSchemaName() const { + return schemaName_; } -std::string DescribeAllDataSourceRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeAllDataSourceRequest::setSchemaName(const std::string &schemaName) { + schemaName_ = schemaName; + setParameter(std::string("SchemaName"), schemaName); } -void DescribeAllDataSourceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeAllDataSourceRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeAllDataSourceRequest::getDBClusterId()const -{ - return dBClusterId_; +void DescribeAllDataSourceRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeAllDataSourceRequest::setDBClusterId(const std::string& dBClusterId) -{ - dBClusterId_ = dBClusterId; - setParameter("DBClusterId", dBClusterId); +std::string DescribeAllDataSourceRequest::getDBClusterId() const { + return dBClusterId_; } -std::string DescribeAllDataSourceRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeAllDataSourceRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); } -void DescribeAllDataSourceRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeAllDataSourceRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeAllDataSourceRequest::getOwnerId()const -{ - return ownerId_; +void DescribeAllDataSourceRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeAllDataSourceRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeAllDataSourceRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeAllDataSourceRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/adb/src/model/DescribeAllDataSourceResult.cc b/adb/src/model/DescribeAllDataSourceResult.cc index 2db2ff478..16335d6d4 100644 --- a/adb/src/model/DescribeAllDataSourceResult.cc +++ b/adb/src/model/DescribeAllDataSourceResult.cc @@ -39,6 +39,38 @@ void DescribeAllDataSourceResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + auto allTablesNode = value["Tables"]["Table"]; + for (auto valueTablesTable : allTablesNode) + { + Table tablesObject; + if(!valueTablesTable["TableName"].isNull()) + tablesObject.tableName = valueTablesTable["TableName"].asString(); + if(!valueTablesTable["DBClusterId"].isNull()) + tablesObject.dBClusterId = valueTablesTable["DBClusterId"].asString(); + if(!valueTablesTable["SchemaName"].isNull()) + tablesObject.schemaName = valueTablesTable["SchemaName"].asString(); + tables_.push_back(tablesObject); + } + auto allColumnsNode = value["Columns"]["Column"]; + for (auto valueColumnsColumn : allColumnsNode) + { + Column columnsObject; + if(!valueColumnsColumn["Type"].isNull()) + columnsObject.type = valueColumnsColumn["Type"].asString(); + if(!valueColumnsColumn["ColumnName"].isNull()) + columnsObject.columnName = valueColumnsColumn["ColumnName"].asString(); + if(!valueColumnsColumn["TableName"].isNull()) + columnsObject.tableName = valueColumnsColumn["TableName"].asString(); + if(!valueColumnsColumn["AutoIncrementColumn"].isNull()) + columnsObject.autoIncrementColumn = valueColumnsColumn["AutoIncrementColumn"].asString() == "true"; + if(!valueColumnsColumn["DBClusterId"].isNull()) + columnsObject.dBClusterId = valueColumnsColumn["DBClusterId"].asString(); + if(!valueColumnsColumn["PrimaryKey"].isNull()) + columnsObject.primaryKey = valueColumnsColumn["PrimaryKey"].asString() == "true"; + if(!valueColumnsColumn["SchemaName"].isNull()) + columnsObject.schemaName = valueColumnsColumn["SchemaName"].asString(); + columns_.push_back(columnsObject); + } auto allSchemasNode = value["Schemas"]["Schema"]; for (auto valueSchemasSchema : allSchemasNode) { @@ -49,38 +81,6 @@ void DescribeAllDataSourceResult::parse(const std::string &payload) schemasObject.schemaName = valueSchemasSchema["SchemaName"].asString(); schemas_.push_back(schemasObject); } - auto allTablesNode = value["Tables"]["Table"]; - for (auto valueTablesTable : allTablesNode) - { - Table tablesObject; - if(!valueTablesTable["DBClusterId"].isNull()) - tablesObject.dBClusterId = valueTablesTable["DBClusterId"].asString(); - if(!valueTablesTable["SchemaName"].isNull()) - tablesObject.schemaName = valueTablesTable["SchemaName"].asString(); - if(!valueTablesTable["TableName"].isNull()) - tablesObject.tableName = valueTablesTable["TableName"].asString(); - tables_.push_back(tablesObject); - } - auto allColumnsNode = value["Columns"]["Column"]; - for (auto valueColumnsColumn : allColumnsNode) - { - Column columnsObject; - if(!valueColumnsColumn["DBClusterId"].isNull()) - columnsObject.dBClusterId = valueColumnsColumn["DBClusterId"].asString(); - if(!valueColumnsColumn["SchemaName"].isNull()) - columnsObject.schemaName = valueColumnsColumn["SchemaName"].asString(); - if(!valueColumnsColumn["TableName"].isNull()) - columnsObject.tableName = valueColumnsColumn["TableName"].asString(); - if(!valueColumnsColumn["ColumnName"].isNull()) - columnsObject.columnName = valueColumnsColumn["ColumnName"].asString(); - if(!valueColumnsColumn["Type"].isNull()) - columnsObject.type = valueColumnsColumn["Type"].asString(); - if(!valueColumnsColumn["PrimaryKey"].isNull()) - columnsObject.primaryKey = valueColumnsColumn["PrimaryKey"].asString() == "true"; - if(!valueColumnsColumn["AutoIncrementColumn"].isNull()) - columnsObject.autoIncrementColumn = valueColumnsColumn["AutoIncrementColumn"].asString() == "true"; - columns_.push_back(columnsObject); - } } diff --git a/adb/src/model/DescribeAuditLogConfigRequest.cc b/adb/src/model/DescribeAuditLogConfigRequest.cc index 698ef620d..c4d439f49 100644 --- a/adb/src/model/DescribeAuditLogConfigRequest.cc +++ b/adb/src/model/DescribeAuditLogConfigRequest.cc @@ -1,106 +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::Adb::Model::DescribeAuditLogConfigRequest; - -DescribeAuditLogConfigRequest::DescribeAuditLogConfigRequest() : - RpcServiceRequest("adb", "2019-03-15", "DescribeAuditLogConfig") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeAuditLogConfigRequest::~DescribeAuditLogConfigRequest() -{} - -long DescribeAuditLogConfigRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Adb::Model::DescribeAuditLogConfigRequest; + +DescribeAuditLogConfigRequest::DescribeAuditLogConfigRequest() + : RpcServiceRequest("adb", "2019-03-15", "DescribeAuditLogConfig") { + setMethod(HttpRequest::Method::Post); } -void DescribeAuditLogConfigRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeAuditLogConfigRequest::~DescribeAuditLogConfigRequest() {} + +long DescribeAuditLogConfigRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeAuditLogConfigRequest::getAccessKeyId()const -{ - return accessKeyId_; +void DescribeAuditLogConfigRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeAuditLogConfigRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string DescribeAuditLogConfigRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeAuditLogConfigRequest::getRegionId()const -{ - return regionId_; +void DescribeAuditLogConfigRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeAuditLogConfigRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeAuditLogConfigRequest::getDBClusterId() const { + return dBClusterId_; } -std::string DescribeAuditLogConfigRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeAuditLogConfigRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); } -void DescribeAuditLogConfigRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeAuditLogConfigRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string DescribeAuditLogConfigRequest::getDBClusterId()const -{ - return dBClusterId_; +void DescribeAuditLogConfigRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeAuditLogConfigRequest::setDBClusterId(const std::string& dBClusterId) -{ - dBClusterId_ = dBClusterId; - setParameter("DBClusterId", dBClusterId); +long DescribeAuditLogConfigRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeAuditLogConfigRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeAuditLogConfigRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeAuditLogConfigRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeAuditLogConfigRequest::getAccessKeyId() const { + return accessKeyId_; } -long DescribeAuditLogConfigRequest::getOwnerId()const -{ - return ownerId_; +void DescribeAuditLogConfigRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void DescribeAuditLogConfigRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +std::string DescribeAuditLogConfigRequest::getRegionId() const { + return regionId_; +} + +void DescribeAuditLogConfigRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } diff --git a/adb/src/model/DescribeAuditLogRecordsRequest.cc b/adb/src/model/DescribeAuditLogRecordsRequest.cc index feaf2281b..9e264a225 100644 --- a/adb/src/model/DescribeAuditLogRecordsRequest.cc +++ b/adb/src/model/DescribeAuditLogRecordsRequest.cc @@ -1,227 +1,198 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::Adb::Model::DescribeAuditLogRecordsRequest; - -DescribeAuditLogRecordsRequest::DescribeAuditLogRecordsRequest() : - RpcServiceRequest("adb", "2019-03-15", "DescribeAuditLogRecords") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeAuditLogRecordsRequest::~DescribeAuditLogRecordsRequest() -{} - -long DescribeAuditLogRecordsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Adb::Model::DescribeAuditLogRecordsRequest; + +DescribeAuditLogRecordsRequest::DescribeAuditLogRecordsRequest() + : RpcServiceRequest("adb", "2019-03-15", "DescribeAuditLogRecords") { + setMethod(HttpRequest::Method::Post); } -void DescribeAuditLogRecordsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeAuditLogRecordsRequest::~DescribeAuditLogRecordsRequest() {} + +long DescribeAuditLogRecordsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeAuditLogRecordsRequest::getStartTime()const -{ - return startTime_; +void DescribeAuditLogRecordsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeAuditLogRecordsRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setParameter("StartTime", startTime); +std::string DescribeAuditLogRecordsRequest::getStartTime() const { + return startTime_; } -int DescribeAuditLogRecordsRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeAuditLogRecordsRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); } -void DescribeAuditLogRecordsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeAuditLogRecordsRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeAuditLogRecordsRequest::getAccessKeyId()const -{ - return accessKeyId_; +void DescribeAuditLogRecordsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeAuditLogRecordsRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string DescribeAuditLogRecordsRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string DescribeAuditLogRecordsRequest::getHostAddress()const -{ - return hostAddress_; +void DescribeAuditLogRecordsRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void DescribeAuditLogRecordsRequest::setHostAddress(const std::string& hostAddress) -{ - hostAddress_ = hostAddress; - setParameter("HostAddress", hostAddress); +std::string DescribeAuditLogRecordsRequest::getHostAddress() const { + return hostAddress_; } -std::string DescribeAuditLogRecordsRequest::getRegionId()const -{ - return regionId_; +void DescribeAuditLogRecordsRequest::setHostAddress(const std::string &hostAddress) { + hostAddress_ = hostAddress; + setParameter(std::string("HostAddress"), hostAddress); } -void DescribeAuditLogRecordsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeAuditLogRecordsRequest::getRegionId() const { + return regionId_; } -int DescribeAuditLogRecordsRequest::getPageSize()const -{ - return pageSize_; +void DescribeAuditLogRecordsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeAuditLogRecordsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeAuditLogRecordsRequest::getPageSize() const { + return pageSize_; } -std::string DescribeAuditLogRecordsRequest::getSqlType()const -{ - return sqlType_; +void DescribeAuditLogRecordsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeAuditLogRecordsRequest::setSqlType(const std::string& sqlType) -{ - sqlType_ = sqlType; - setParameter("SqlType", sqlType); +std::string DescribeAuditLogRecordsRequest::getOrder() const { + return order_; } -std::string DescribeAuditLogRecordsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeAuditLogRecordsRequest::setOrder(const std::string &order) { + order_ = order; + setParameter(std::string("Order"), order); } -void DescribeAuditLogRecordsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeAuditLogRecordsRequest::getSqlType() const { + return sqlType_; } -std::string DescribeAuditLogRecordsRequest::getDBClusterId()const -{ - return dBClusterId_; +void DescribeAuditLogRecordsRequest::setSqlType(const std::string &sqlType) { + sqlType_ = sqlType; + setParameter(std::string("SqlType"), sqlType); } -void DescribeAuditLogRecordsRequest::setDBClusterId(const std::string& dBClusterId) -{ - dBClusterId_ = dBClusterId; - setParameter("DBClusterId", dBClusterId); +std::string DescribeAuditLogRecordsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeAuditLogRecordsRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeAuditLogRecordsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeAuditLogRecordsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeAuditLogRecordsRequest::getDBClusterId() const { + return dBClusterId_; } -std::string DescribeAuditLogRecordsRequest::getQueryKeyword()const -{ - return queryKeyword_; +void DescribeAuditLogRecordsRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); } -void DescribeAuditLogRecordsRequest::setQueryKeyword(const std::string& queryKeyword) -{ - queryKeyword_ = queryKeyword; - setParameter("QueryKeyword", queryKeyword); +std::string DescribeAuditLogRecordsRequest::getQueryKeyword() const { + return queryKeyword_; } -std::string DescribeAuditLogRecordsRequest::getEndTime()const -{ - return endTime_; +void DescribeAuditLogRecordsRequest::setQueryKeyword(const std::string &queryKeyword) { + queryKeyword_ = queryKeyword; + setParameter(std::string("QueryKeyword"), queryKeyword); } -void DescribeAuditLogRecordsRequest::setEndTime(const std::string& endTime) -{ - endTime_ = endTime; - setParameter("EndTime", endTime); +std::string DescribeAuditLogRecordsRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeAuditLogRecordsRequest::getOwnerId()const -{ - return ownerId_; +void DescribeAuditLogRecordsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeAuditLogRecordsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +std::string DescribeAuditLogRecordsRequest::getEndTime() const { + return endTime_; } -std::string DescribeAuditLogRecordsRequest::getDBName()const -{ - return dBName_; +void DescribeAuditLogRecordsRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); } -void DescribeAuditLogRecordsRequest::setDBName(const std::string& dBName) -{ - dBName_ = dBName; - setParameter("DBName", dBName); +long DescribeAuditLogRecordsRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeAuditLogRecordsRequest::getSucceed()const -{ - return succeed_; +void DescribeAuditLogRecordsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeAuditLogRecordsRequest::setSucceed(const std::string& succeed) -{ - succeed_ = succeed; - setParameter("Succeed", succeed); +std::string DescribeAuditLogRecordsRequest::getDBName() const { + return dBName_; } -std::string DescribeAuditLogRecordsRequest::getUser()const -{ - return user_; +void DescribeAuditLogRecordsRequest::setDBName(const std::string &dBName) { + dBName_ = dBName; + setParameter(std::string("DBName"), dBName); } -void DescribeAuditLogRecordsRequest::setUser(const std::string& user) -{ - user_ = user; - setParameter("User", user); +std::string DescribeAuditLogRecordsRequest::getSucceed() const { + return succeed_; } -std::string DescribeAuditLogRecordsRequest::getOrderType()const -{ - return orderType_; +void DescribeAuditLogRecordsRequest::setSucceed(const std::string &succeed) { + succeed_ = succeed; + setParameter(std::string("Succeed"), succeed); } -void DescribeAuditLogRecordsRequest::setOrderType(const std::string& orderType) -{ - orderType_ = orderType; - setParameter("OrderType", orderType); +std::string DescribeAuditLogRecordsRequest::getUser() const { + return user_; +} + +void DescribeAuditLogRecordsRequest::setUser(const std::string &user) { + user_ = user; + setParameter(std::string("User"), user); +} + +std::string DescribeAuditLogRecordsRequest::getOrderType() const { + return orderType_; +} + +void DescribeAuditLogRecordsRequest::setOrderType(const std::string &orderType) { + orderType_ = orderType; + setParameter(std::string("OrderType"), orderType); } diff --git a/adb/src/model/DescribeAuditLogRecordsResult.cc b/adb/src/model/DescribeAuditLogRecordsResult.cc index dabaf982d..680ba8f04 100644 --- a/adb/src/model/DescribeAuditLogRecordsResult.cc +++ b/adb/src/model/DescribeAuditLogRecordsResult.cc @@ -45,30 +45,32 @@ void DescribeAuditLogRecordsResult::parse(const std::string &payload) SlowLogRecord itemsObject; if(!valueItemsSlowLogRecord["HostAddress"].isNull()) itemsObject.hostAddress = valueItemsSlowLogRecord["HostAddress"].asString(); - if(!valueItemsSlowLogRecord["DBName"].isNull()) - itemsObject.dBName = valueItemsSlowLogRecord["DBName"].asString(); - if(!valueItemsSlowLogRecord["SQLText"].isNull()) - itemsObject.sQLText = valueItemsSlowLogRecord["SQLText"].asString(); - if(!valueItemsSlowLogRecord["SQLType"].isNull()) - itemsObject.sQLType = valueItemsSlowLogRecord["SQLType"].asString(); - if(!valueItemsSlowLogRecord["ConnId"].isNull()) - itemsObject.connId = valueItemsSlowLogRecord["ConnId"].asString(); - if(!valueItemsSlowLogRecord["ExecuteTime"].isNull()) - itemsObject.executeTime = valueItemsSlowLogRecord["ExecuteTime"].asString(); if(!valueItemsSlowLogRecord["Succeed"].isNull()) itemsObject.succeed = valueItemsSlowLogRecord["Succeed"].asString(); + if(!valueItemsSlowLogRecord["SQLText"].isNull()) + itemsObject.sQLText = valueItemsSlowLogRecord["SQLText"].asString(); if(!valueItemsSlowLogRecord["TotalTime"].isNull()) itemsObject.totalTime = valueItemsSlowLogRecord["TotalTime"].asString(); + if(!valueItemsSlowLogRecord["ConnId"].isNull()) + itemsObject.connId = valueItemsSlowLogRecord["ConnId"].asString(); + if(!valueItemsSlowLogRecord["DBName"].isNull()) + itemsObject.dBName = valueItemsSlowLogRecord["DBName"].asString(); + if(!valueItemsSlowLogRecord["SQLType"].isNull()) + itemsObject.sQLType = valueItemsSlowLogRecord["SQLType"].asString(); + if(!valueItemsSlowLogRecord["ExecuteTime"].isNull()) + itemsObject.executeTime = valueItemsSlowLogRecord["ExecuteTime"].asString(); if(!valueItemsSlowLogRecord["ProcessID"].isNull()) itemsObject.processID = valueItemsSlowLogRecord["ProcessID"].asString(); + if(!valueItemsSlowLogRecord["User"].isNull()) + itemsObject.user = valueItemsSlowLogRecord["User"].asString(); items_.push_back(itemsObject); } if(!value["TotalCount"].isNull()) totalCount_ = value["TotalCount"].asString(); - if(!value["PageNumber"].isNull()) - pageNumber_ = value["PageNumber"].asString(); if(!value["PageSize"].isNull()) pageSize_ = value["PageSize"].asString(); + if(!value["PageNumber"].isNull()) + pageNumber_ = value["PageNumber"].asString(); if(!value["DBClusterId"].isNull()) dBClusterId_ = value["DBClusterId"].asString(); diff --git a/adb/src/model/DescribeAutoRenewAttributeRequest.cc b/adb/src/model/DescribeAutoRenewAttributeRequest.cc index 08e480df0..a3d06edd7 100644 --- a/adb/src/model/DescribeAutoRenewAttributeRequest.cc +++ b/adb/src/model/DescribeAutoRenewAttributeRequest.cc @@ -1,139 +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::Adb::Model::DescribeAutoRenewAttributeRequest; - -DescribeAutoRenewAttributeRequest::DescribeAutoRenewAttributeRequest() : - RpcServiceRequest("adb", "2019-03-15", "DescribeAutoRenewAttribute") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeAutoRenewAttributeRequest::~DescribeAutoRenewAttributeRequest() -{} - -long DescribeAutoRenewAttributeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Adb::Model::DescribeAutoRenewAttributeRequest; + +DescribeAutoRenewAttributeRequest::DescribeAutoRenewAttributeRequest() + : RpcServiceRequest("adb", "2019-03-15", "DescribeAutoRenewAttribute") { + setMethod(HttpRequest::Method::Post); } -void DescribeAutoRenewAttributeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeAutoRenewAttributeRequest::~DescribeAutoRenewAttributeRequest() {} + +long DescribeAutoRenewAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -int DescribeAutoRenewAttributeRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeAutoRenewAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeAutoRenewAttributeRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeAutoRenewAttributeRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeAutoRenewAttributeRequest::getAccessKeyId()const -{ - return accessKeyId_; +void DescribeAutoRenewAttributeRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeAutoRenewAttributeRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string DescribeAutoRenewAttributeRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string DescribeAutoRenewAttributeRequest::getResourceGroupId()const -{ - return resourceGroupId_; +void DescribeAutoRenewAttributeRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void DescribeAutoRenewAttributeRequest::setResourceGroupId(const std::string& resourceGroupId) -{ - resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); +std::string DescribeAutoRenewAttributeRequest::getResourceGroupId() const { + return resourceGroupId_; } -std::string DescribeAutoRenewAttributeRequest::getRegionId()const -{ - return regionId_; +void DescribeAutoRenewAttributeRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -void DescribeAutoRenewAttributeRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeAutoRenewAttributeRequest::getRegionId() const { + return regionId_; } -int DescribeAutoRenewAttributeRequest::getPageSize()const -{ - return pageSize_; +void DescribeAutoRenewAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeAutoRenewAttributeRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeAutoRenewAttributeRequest::getPageSize() const { + return pageSize_; } -std::string DescribeAutoRenewAttributeRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeAutoRenewAttributeRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeAutoRenewAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeAutoRenewAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeAutoRenewAttributeRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeAutoRenewAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeAutoRenewAttributeRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeAutoRenewAttributeRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeAutoRenewAttributeRequest::getOwnerId()const -{ - return ownerId_; +void DescribeAutoRenewAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeAutoRenewAttributeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeAutoRenewAttributeRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeAutoRenewAttributeRequest::getDBClusterIds()const -{ - return dBClusterIds_; +void DescribeAutoRenewAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeAutoRenewAttributeRequest::setDBClusterIds(const std::string& dBClusterIds) -{ - dBClusterIds_ = dBClusterIds; - setParameter("DBClusterIds", dBClusterIds); +std::string DescribeAutoRenewAttributeRequest::getDBClusterIds() const { + return dBClusterIds_; +} + +void DescribeAutoRenewAttributeRequest::setDBClusterIds(const std::string &dBClusterIds) { + dBClusterIds_ = dBClusterIds; + setParameter(std::string("DBClusterIds"), dBClusterIds); } diff --git a/adb/src/model/DescribeAutoRenewAttributeResult.cc b/adb/src/model/DescribeAutoRenewAttributeResult.cc index 2b94c830f..6108d7f83 100644 --- a/adb/src/model/DescribeAutoRenewAttributeResult.cc +++ b/adb/src/model/DescribeAutoRenewAttributeResult.cc @@ -45,24 +45,24 @@ void DescribeAutoRenewAttributeResult::parse(const std::string &payload) AutoRenewAttribute itemsObject; if(!valueItemsAutoRenewAttribute["DBClusterId"].isNull()) itemsObject.dBClusterId = valueItemsAutoRenewAttribute["DBClusterId"].asString(); - if(!valueItemsAutoRenewAttribute["RegionId"].isNull()) - itemsObject.regionId = valueItemsAutoRenewAttribute["RegionId"].asString(); - if(!valueItemsAutoRenewAttribute["AutoRenewEnabled"].isNull()) - itemsObject.autoRenewEnabled = valueItemsAutoRenewAttribute["AutoRenewEnabled"].asString() == "true"; - if(!valueItemsAutoRenewAttribute["Duration"].isNull()) - itemsObject.duration = std::stoi(valueItemsAutoRenewAttribute["Duration"].asString()); if(!valueItemsAutoRenewAttribute["PeriodUnit"].isNull()) itemsObject.periodUnit = valueItemsAutoRenewAttribute["PeriodUnit"].asString(); + if(!valueItemsAutoRenewAttribute["Duration"].isNull()) + itemsObject.duration = std::stoi(valueItemsAutoRenewAttribute["Duration"].asString()); if(!valueItemsAutoRenewAttribute["RenewalStatus"].isNull()) itemsObject.renewalStatus = valueItemsAutoRenewAttribute["RenewalStatus"].asString(); + if(!valueItemsAutoRenewAttribute["AutoRenewEnabled"].isNull()) + itemsObject.autoRenewEnabled = valueItemsAutoRenewAttribute["AutoRenewEnabled"].asString() == "true"; + if(!valueItemsAutoRenewAttribute["RegionId"].isNull()) + itemsObject.regionId = valueItemsAutoRenewAttribute["RegionId"].asString(); items_.push_back(itemsObject); } - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); 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()); } diff --git a/adb/src/model/DescribeAvailableResourceRequest.cc b/adb/src/model/DescribeAvailableResourceRequest.cc index fff7c6cdf..bb1680163 100644 --- a/adb/src/model/DescribeAvailableResourceRequest.cc +++ b/adb/src/model/DescribeAvailableResourceRequest.cc @@ -1,128 +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::Adb::Model::DescribeAvailableResourceRequest; - -DescribeAvailableResourceRequest::DescribeAvailableResourceRequest() : - RpcServiceRequest("adb", "2019-03-15", "DescribeAvailableResource") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeAvailableResourceRequest::~DescribeAvailableResourceRequest() -{} - -long DescribeAvailableResourceRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Adb::Model::DescribeAvailableResourceRequest; + +DescribeAvailableResourceRequest::DescribeAvailableResourceRequest() + : RpcServiceRequest("adb", "2019-03-15", "DescribeAvailableResource") { + setMethod(HttpRequest::Method::Post); } -void DescribeAvailableResourceRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeAvailableResourceRequest::~DescribeAvailableResourceRequest() {} + +long DescribeAvailableResourceRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeAvailableResourceRequest::getAccessKeyId()const -{ - return accessKeyId_; +void DescribeAvailableResourceRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeAvailableResourceRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string DescribeAvailableResourceRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string DescribeAvailableResourceRequest::getRegionId()const -{ - return regionId_; +void DescribeAvailableResourceRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void DescribeAvailableResourceRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeAvailableResourceRequest::getRegionId() const { + return regionId_; } -std::string DescribeAvailableResourceRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeAvailableResourceRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeAvailableResourceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeAvailableResourceRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeAvailableResourceRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeAvailableResourceRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeAvailableResourceRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeAvailableResourceRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeAvailableResourceRequest::getOwnerId()const -{ - return ownerId_; +void DescribeAvailableResourceRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeAvailableResourceRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeAvailableResourceRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeAvailableResourceRequest::getAcceptLanguage()const -{ - return acceptLanguage_; +void DescribeAvailableResourceRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeAvailableResourceRequest::setAcceptLanguage(const std::string& acceptLanguage) -{ - acceptLanguage_ = acceptLanguage; - setParameter("AcceptLanguage", acceptLanguage); +std::string DescribeAvailableResourceRequest::getAcceptLanguage() const { + return acceptLanguage_; } -std::string DescribeAvailableResourceRequest::getZoneId()const -{ - return zoneId_; +void DescribeAvailableResourceRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); } -void DescribeAvailableResourceRequest::setZoneId(const std::string& zoneId) -{ - zoneId_ = zoneId; - setParameter("ZoneId", zoneId); +std::string DescribeAvailableResourceRequest::getZoneId() const { + return zoneId_; } -std::string DescribeAvailableResourceRequest::getChargeType()const -{ - return chargeType_; +void DescribeAvailableResourceRequest::setZoneId(const std::string &zoneId) { + zoneId_ = zoneId; + setParameter(std::string("ZoneId"), zoneId); } -void DescribeAvailableResourceRequest::setChargeType(const std::string& chargeType) -{ - chargeType_ = chargeType; - setParameter("ChargeType", chargeType); +std::string DescribeAvailableResourceRequest::getChargeType() const { + return chargeType_; +} + +void DescribeAvailableResourceRequest::setChargeType(const std::string &chargeType) { + chargeType_ = chargeType; + setParameter(std::string("ChargeType"), chargeType); } diff --git a/adb/src/model/DescribeAvailableResourceResult.cc b/adb/src/model/DescribeAvailableResourceResult.cc index 11e564f14..c48cf2811 100644 --- a/adb/src/model/DescribeAvailableResourceResult.cc +++ b/adb/src/model/DescribeAvailableResourceResult.cc @@ -64,18 +64,18 @@ void DescribeAvailableResourceResult::parse(const std::string &payload) if(!valueAvailableZoneListAvailableZoneSupportedModeSupportedModeItemSupportedSerialListSupportedSerialListItemSupportedFlexibleResourceSupportedFlexibleResourceItem["StorageType"].isNull()) supportedFlexibleResourceObject.storageType = valueAvailableZoneListAvailableZoneSupportedModeSupportedModeItemSupportedSerialListSupportedSerialListItemSupportedFlexibleResourceSupportedFlexibleResourceItem["StorageType"].asString(); auto supportedElasticIOResourceNode = value["SupportedElasticIOResource"]; + if(!supportedElasticIOResourceNode["Step"].isNull()) + supportedFlexibleResourceObject.supportedElasticIOResource.step = supportedElasticIOResourceNode["Step"].asString(); if(!supportedElasticIOResourceNode["MinCount"].isNull()) supportedFlexibleResourceObject.supportedElasticIOResource.minCount = supportedElasticIOResourceNode["MinCount"].asString(); if(!supportedElasticIOResourceNode["MaxCount"].isNull()) supportedFlexibleResourceObject.supportedElasticIOResource.maxCount = supportedElasticIOResourceNode["MaxCount"].asString(); - if(!supportedElasticIOResourceNode["Step"].isNull()) - supportedFlexibleResourceObject.supportedElasticIOResource.step = supportedElasticIOResourceNode["Step"].asString(); - auto allSupportedStorageResource = value["SupportedStorageResource"]["SupportedStorageResource"]; - for (auto value : allSupportedStorageResource) - supportedFlexibleResourceObject.supportedStorageResource.push_back(value.asString()); auto allSupportedComputeResource = value["SupportedComputeResource"]["SupportedComputeResource"]; for (auto value : allSupportedComputeResource) supportedFlexibleResourceObject.supportedComputeResource.push_back(value.asString()); + auto allSupportedStorageResource = value["SupportedStorageResource"]["SupportedStorageResource"]; + for (auto value : allSupportedStorageResource) + supportedFlexibleResourceObject.supportedStorageResource.push_back(value.asString()); supportedSerialListObject.supportedFlexibleResource.push_back(supportedFlexibleResourceObject); } auto allSupportedInstanceClassListNode = valueAvailableZoneListAvailableZoneSupportedModeSupportedModeItemSupportedSerialListSupportedSerialListItem["SupportedInstanceClassList"]["SupportedInstanceClass"]; @@ -91,12 +91,12 @@ void DescribeAvailableResourceResult::parse(const std::string &payload) { AvailableZone::SupportedModeItem::SupportedSerialListItem::SupportedInstanceClass::SupportedNodeCount supportedNodeCountListObject; auto nodeCountNode = value["NodeCount"]; + if(!nodeCountNode["Step"].isNull()) + supportedNodeCountListObject.nodeCount.step = nodeCountNode["Step"].asString(); if(!nodeCountNode["MinCount"].isNull()) supportedNodeCountListObject.nodeCount.minCount = nodeCountNode["MinCount"].asString(); if(!nodeCountNode["MaxCount"].isNull()) supportedNodeCountListObject.nodeCount.maxCount = nodeCountNode["MaxCount"].asString(); - if(!nodeCountNode["Step"].isNull()) - supportedNodeCountListObject.nodeCount.step = nodeCountNode["Step"].asString(); auto allStorageSize = value["StorageSize"]["StorageSize"]; for (auto value : allStorageSize) supportedNodeCountListObject.storageSize.push_back(value.asString()); @@ -107,12 +107,12 @@ void DescribeAvailableResourceResult::parse(const std::string &payload) { AvailableZone::SupportedModeItem::SupportedSerialListItem::SupportedInstanceClass::SupportedExecutor supportedExecutorListObject; auto nodeCount1Node = value["NodeCount"]; + if(!nodeCount1Node["Step"].isNull()) + supportedExecutorListObject.nodeCount1.step = nodeCount1Node["Step"].asString(); if(!nodeCount1Node["MinCount"].isNull()) supportedExecutorListObject.nodeCount1.minCount = nodeCount1Node["MinCount"].asString(); if(!nodeCount1Node["MaxCount"].isNull()) supportedExecutorListObject.nodeCount1.maxCount = nodeCount1Node["MaxCount"].asString(); - if(!nodeCount1Node["Step"].isNull()) - supportedExecutorListObject.nodeCount1.step = nodeCount1Node["Step"].asString(); supportedInstanceClassListObject.supportedExecutorList.push_back(supportedExecutorListObject); } supportedSerialListObject.supportedInstanceClassList.push_back(supportedInstanceClassListObject); diff --git a/adb/src/model/DescribeBackupPolicyRequest.cc b/adb/src/model/DescribeBackupPolicyRequest.cc index 40d4e3e6b..c831ec3ed 100644 --- a/adb/src/model/DescribeBackupPolicyRequest.cc +++ b/adb/src/model/DescribeBackupPolicyRequest.cc @@ -1,95 +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::Adb::Model::DescribeBackupPolicyRequest; - -DescribeBackupPolicyRequest::DescribeBackupPolicyRequest() : - RpcServiceRequest("adb", "2019-03-15", "DescribeBackupPolicy") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeBackupPolicyRequest::~DescribeBackupPolicyRequest() -{} - -long DescribeBackupPolicyRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Adb::Model::DescribeBackupPolicyRequest; + +DescribeBackupPolicyRequest::DescribeBackupPolicyRequest() + : RpcServiceRequest("adb", "2019-03-15", "DescribeBackupPolicy") { + setMethod(HttpRequest::Method::Post); } -void DescribeBackupPolicyRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeBackupPolicyRequest::~DescribeBackupPolicyRequest() {} + +long DescribeBackupPolicyRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeBackupPolicyRequest::getAccessKeyId()const -{ - return accessKeyId_; +void DescribeBackupPolicyRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeBackupPolicyRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string DescribeBackupPolicyRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string DescribeBackupPolicyRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeBackupPolicyRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void DescribeBackupPolicyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeBackupPolicyRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeBackupPolicyRequest::getDBClusterId()const -{ - return dBClusterId_; +void DescribeBackupPolicyRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeBackupPolicyRequest::setDBClusterId(const std::string& dBClusterId) -{ - dBClusterId_ = dBClusterId; - setParameter("DBClusterId", dBClusterId); +std::string DescribeBackupPolicyRequest::getDBClusterId() const { + return dBClusterId_; } -std::string DescribeBackupPolicyRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeBackupPolicyRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); } -void DescribeBackupPolicyRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeBackupPolicyRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeBackupPolicyRequest::getOwnerId()const -{ - return ownerId_; +void DescribeBackupPolicyRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeBackupPolicyRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeBackupPolicyRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeBackupPolicyRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/adb/src/model/DescribeBackupPolicyResult.cc b/adb/src/model/DescribeBackupPolicyResult.cc index 7b9f88b94..7e5f64087 100644 --- a/adb/src/model/DescribeBackupPolicyResult.cc +++ b/adb/src/model/DescribeBackupPolicyResult.cc @@ -39,16 +39,16 @@ void DescribeBackupPolicyResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["BackupRetentionPeriod"].isNull()) - backupRetentionPeriod_ = std::stoi(value["BackupRetentionPeriod"].asString()); - if(!value["PreferredBackupTime"].isNull()) - preferredBackupTime_ = value["PreferredBackupTime"].asString(); if(!value["PreferredBackupPeriod"].isNull()) preferredBackupPeriod_ = value["PreferredBackupPeriod"].asString(); - if(!value["EnableBackupLog"].isNull()) - enableBackupLog_ = value["EnableBackupLog"].asString(); if(!value["LogBackupRetentionPeriod"].isNull()) logBackupRetentionPeriod_ = std::stoi(value["LogBackupRetentionPeriod"].asString()); + if(!value["PreferredBackupTime"].isNull()) + preferredBackupTime_ = value["PreferredBackupTime"].asString(); + if(!value["EnableBackupLog"].isNull()) + enableBackupLog_ = value["EnableBackupLog"].asString(); + if(!value["BackupRetentionPeriod"].isNull()) + backupRetentionPeriod_ = std::stoi(value["BackupRetentionPeriod"].asString()); } diff --git a/adb/src/model/DescribeBackupsRequest.cc b/adb/src/model/DescribeBackupsRequest.cc index ea16898db..47510c4cd 100644 --- a/adb/src/model/DescribeBackupsRequest.cc +++ b/adb/src/model/DescribeBackupsRequest.cc @@ -1,150 +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::Adb::Model::DescribeBackupsRequest; - -DescribeBackupsRequest::DescribeBackupsRequest() : - RpcServiceRequest("adb", "2019-03-15", "DescribeBackups") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeBackupsRequest::~DescribeBackupsRequest() -{} - -long DescribeBackupsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Adb::Model::DescribeBackupsRequest; + +DescribeBackupsRequest::DescribeBackupsRequest() + : RpcServiceRequest("adb", "2019-03-15", "DescribeBackups") { + setMethod(HttpRequest::Method::Post); } -void DescribeBackupsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeBackupsRequest::~DescribeBackupsRequest() {} + +long DescribeBackupsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeBackupsRequest::getStartTime()const -{ - return startTime_; +void DescribeBackupsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeBackupsRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setParameter("StartTime", startTime); +std::string DescribeBackupsRequest::getStartTime() const { + return startTime_; } -int DescribeBackupsRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeBackupsRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); } -void DescribeBackupsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeBackupsRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeBackupsRequest::getAccessKeyId()const -{ - return accessKeyId_; +void DescribeBackupsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeBackupsRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string DescribeBackupsRequest::getAccessKeyId() const { + return accessKeyId_; } -int DescribeBackupsRequest::getPageSize()const -{ - return pageSize_; +void DescribeBackupsRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void DescribeBackupsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeBackupsRequest::getPageSize() const { + return pageSize_; } -std::string DescribeBackupsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeBackupsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeBackupsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeBackupsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeBackupsRequest::getDBClusterId()const -{ - return dBClusterId_; +void DescribeBackupsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeBackupsRequest::setDBClusterId(const std::string& dBClusterId) -{ - dBClusterId_ = dBClusterId; - setParameter("DBClusterId", dBClusterId); +std::string DescribeBackupsRequest::getDBClusterId() const { + return dBClusterId_; } -std::string DescribeBackupsRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeBackupsRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); } -void DescribeBackupsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeBackupsRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string DescribeBackupsRequest::getBackupId()const -{ - return backupId_; +void DescribeBackupsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeBackupsRequest::setBackupId(const std::string& backupId) -{ - backupId_ = backupId; - setParameter("BackupId", backupId); +std::string DescribeBackupsRequest::getBackupId() const { + return backupId_; } -std::string DescribeBackupsRequest::getEndTime()const -{ - return endTime_; +void DescribeBackupsRequest::setBackupId(const std::string &backupId) { + backupId_ = backupId; + setParameter(std::string("BackupId"), backupId); } -void DescribeBackupsRequest::setEndTime(const std::string& endTime) -{ - endTime_ = endTime; - setParameter("EndTime", endTime); +std::string DescribeBackupsRequest::getEndTime() const { + return endTime_; } -long DescribeBackupsRequest::getOwnerId()const -{ - return ownerId_; +void DescribeBackupsRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); } -void DescribeBackupsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeBackupsRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeBackupsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/adb/src/model/DescribeBackupsResult.cc b/adb/src/model/DescribeBackupsResult.cc index 13da47ce2..bca8b795d 100644 --- a/adb/src/model/DescribeBackupsResult.cc +++ b/adb/src/model/DescribeBackupsResult.cc @@ -43,28 +43,28 @@ void DescribeBackupsResult::parse(const std::string &payload) for (auto valueItemsBackup : allItemsNode) { Backup itemsObject; - if(!valueItemsBackup["BackupId"].isNull()) - itemsObject.backupId = valueItemsBackup["BackupId"].asString(); if(!valueItemsBackup["DBClusterId"].isNull()) itemsObject.dBClusterId = valueItemsBackup["DBClusterId"].asString(); - if(!valueItemsBackup["BackupStartTime"].isNull()) - itemsObject.backupStartTime = valueItemsBackup["BackupStartTime"].asString(); - if(!valueItemsBackup["BackupEndTime"].isNull()) - itemsObject.backupEndTime = valueItemsBackup["BackupEndTime"].asString(); - if(!valueItemsBackup["BackupSize"].isNull()) - itemsObject.backupSize = std::stoi(valueItemsBackup["BackupSize"].asString()); - if(!valueItemsBackup["BackupMethod"].isNull()) - itemsObject.backupMethod = valueItemsBackup["BackupMethod"].asString(); if(!valueItemsBackup["BackupType"].isNull()) itemsObject.backupType = valueItemsBackup["BackupType"].asString(); + if(!valueItemsBackup["BackupStartTime"].isNull()) + itemsObject.backupStartTime = valueItemsBackup["BackupStartTime"].asString(); + if(!valueItemsBackup["BackupSize"].isNull()) + itemsObject.backupSize = std::stoi(valueItemsBackup["BackupSize"].asString()); + if(!valueItemsBackup["BackupEndTime"].isNull()) + itemsObject.backupEndTime = valueItemsBackup["BackupEndTime"].asString(); + if(!valueItemsBackup["BackupId"].isNull()) + itemsObject.backupId = valueItemsBackup["BackupId"].asString(); + if(!valueItemsBackup["BackupMethod"].isNull()) + itemsObject.backupMethod = valueItemsBackup["BackupMethod"].asString(); items_.push_back(itemsObject); } if(!value["TotalCount"].isNull()) totalCount_ = value["TotalCount"].asString(); - if(!value["PageNumber"].isNull()) - pageNumber_ = value["PageNumber"].asString(); if(!value["PageSize"].isNull()) pageSize_ = value["PageSize"].asString(); + if(!value["PageNumber"].isNull()) + pageNumber_ = value["PageNumber"].asString(); } diff --git a/adb/src/model/DescribeColumnsRequest.cc b/adb/src/model/DescribeColumnsRequest.cc index 3b4b983c0..349640c3b 100644 --- a/adb/src/model/DescribeColumnsRequest.cc +++ b/adb/src/model/DescribeColumnsRequest.cc @@ -1,117 +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::Adb::Model::DescribeColumnsRequest; - -DescribeColumnsRequest::DescribeColumnsRequest() : - RpcServiceRequest("adb", "2019-03-15", "DescribeColumns") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeColumnsRequest::~DescribeColumnsRequest() -{} - -long DescribeColumnsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Adb::Model::DescribeColumnsRequest; + +DescribeColumnsRequest::DescribeColumnsRequest() + : RpcServiceRequest("adb", "2019-03-15", "DescribeColumns") { + setMethod(HttpRequest::Method::Post); } -void DescribeColumnsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeColumnsRequest::~DescribeColumnsRequest() {} + +long DescribeColumnsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeColumnsRequest::getAccessKeyId()const -{ - return accessKeyId_; +void DescribeColumnsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeColumnsRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string DescribeColumnsRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string DescribeColumnsRequest::getTableName()const -{ - return tableName_; +void DescribeColumnsRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void DescribeColumnsRequest::setTableName(const std::string& tableName) -{ - tableName_ = tableName; - setParameter("TableName", tableName); +std::string DescribeColumnsRequest::getTableName() const { + return tableName_; } -std::string DescribeColumnsRequest::getSchemaName()const -{ - return schemaName_; +void DescribeColumnsRequest::setTableName(const std::string &tableName) { + tableName_ = tableName; + setParameter(std::string("TableName"), tableName); } -void DescribeColumnsRequest::setSchemaName(const std::string& schemaName) -{ - schemaName_ = schemaName; - setParameter("SchemaName", schemaName); +std::string DescribeColumnsRequest::getSchemaName() const { + return schemaName_; } -std::string DescribeColumnsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeColumnsRequest::setSchemaName(const std::string &schemaName) { + schemaName_ = schemaName; + setParameter(std::string("SchemaName"), schemaName); } -void DescribeColumnsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeColumnsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeColumnsRequest::getDBClusterId()const -{ - return dBClusterId_; +void DescribeColumnsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeColumnsRequest::setDBClusterId(const std::string& dBClusterId) -{ - dBClusterId_ = dBClusterId; - setParameter("DBClusterId", dBClusterId); +std::string DescribeColumnsRequest::getDBClusterId() const { + return dBClusterId_; } -std::string DescribeColumnsRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeColumnsRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); } -void DescribeColumnsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeColumnsRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeColumnsRequest::getOwnerId()const -{ - return ownerId_; +void DescribeColumnsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeColumnsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeColumnsRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeColumnsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/adb/src/model/DescribeColumnsResult.cc b/adb/src/model/DescribeColumnsResult.cc index 5957f7b84..f91a100aa 100644 --- a/adb/src/model/DescribeColumnsResult.cc +++ b/adb/src/model/DescribeColumnsResult.cc @@ -43,20 +43,20 @@ void DescribeColumnsResult::parse(const std::string &payload) for (auto valueItemsColumn : allItemsNode) { Column itemsObject; - if(!valueItemsColumn["DBClusterId"].isNull()) - itemsObject.dBClusterId = valueItemsColumn["DBClusterId"].asString(); - if(!valueItemsColumn["SchemaName"].isNull()) - itemsObject.schemaName = valueItemsColumn["SchemaName"].asString(); - if(!valueItemsColumn["TableName"].isNull()) - itemsObject.tableName = valueItemsColumn["TableName"].asString(); - if(!valueItemsColumn["ColumnName"].isNull()) - itemsObject.columnName = valueItemsColumn["ColumnName"].asString(); if(!valueItemsColumn["Type"].isNull()) itemsObject.type = valueItemsColumn["Type"].asString(); - if(!valueItemsColumn["PrimaryKey"].isNull()) - itemsObject.primaryKey = valueItemsColumn["PrimaryKey"].asString() == "true"; + if(!valueItemsColumn["ColumnName"].isNull()) + itemsObject.columnName = valueItemsColumn["ColumnName"].asString(); + if(!valueItemsColumn["TableName"].isNull()) + itemsObject.tableName = valueItemsColumn["TableName"].asString(); if(!valueItemsColumn["AutoIncrementColumn"].isNull()) itemsObject.autoIncrementColumn = valueItemsColumn["AutoIncrementColumn"].asString() == "true"; + if(!valueItemsColumn["DBClusterId"].isNull()) + itemsObject.dBClusterId = valueItemsColumn["DBClusterId"].asString(); + if(!valueItemsColumn["PrimaryKey"].isNull()) + itemsObject.primaryKey = valueItemsColumn["PrimaryKey"].asString() == "true"; + if(!valueItemsColumn["SchemaName"].isNull()) + itemsObject.schemaName = valueItemsColumn["SchemaName"].asString(); items_.push_back(itemsObject); } diff --git a/adb/src/model/DescribeConnectionCountRecordsRequest.cc b/adb/src/model/DescribeConnectionCountRecordsRequest.cc index 891d899eb..508192cc4 100644 --- a/adb/src/model/DescribeConnectionCountRecordsRequest.cc +++ b/adb/src/model/DescribeConnectionCountRecordsRequest.cc @@ -1,95 +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::Adb::Model::DescribeConnectionCountRecordsRequest; - -DescribeConnectionCountRecordsRequest::DescribeConnectionCountRecordsRequest() : - RpcServiceRequest("adb", "2019-03-15", "DescribeConnectionCountRecords") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeConnectionCountRecordsRequest::~DescribeConnectionCountRecordsRequest() -{} - -long DescribeConnectionCountRecordsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Adb::Model::DescribeConnectionCountRecordsRequest; + +DescribeConnectionCountRecordsRequest::DescribeConnectionCountRecordsRequest() + : RpcServiceRequest("adb", "2019-03-15", "DescribeConnectionCountRecords") { + setMethod(HttpRequest::Method::Post); } -void DescribeConnectionCountRecordsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeConnectionCountRecordsRequest::~DescribeConnectionCountRecordsRequest() {} + +long DescribeConnectionCountRecordsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeConnectionCountRecordsRequest::getAccessKeyId()const -{ - return accessKeyId_; +void DescribeConnectionCountRecordsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeConnectionCountRecordsRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string DescribeConnectionCountRecordsRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string DescribeConnectionCountRecordsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeConnectionCountRecordsRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void DescribeConnectionCountRecordsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeConnectionCountRecordsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeConnectionCountRecordsRequest::getDBClusterId()const -{ - return dBClusterId_; +void DescribeConnectionCountRecordsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeConnectionCountRecordsRequest::setDBClusterId(const std::string& dBClusterId) -{ - dBClusterId_ = dBClusterId; - setParameter("DBClusterId", dBClusterId); +std::string DescribeConnectionCountRecordsRequest::getDBClusterId() const { + return dBClusterId_; } -std::string DescribeConnectionCountRecordsRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeConnectionCountRecordsRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); } -void DescribeConnectionCountRecordsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeConnectionCountRecordsRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeConnectionCountRecordsRequest::getOwnerId()const -{ - return ownerId_; +void DescribeConnectionCountRecordsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeConnectionCountRecordsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeConnectionCountRecordsRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeConnectionCountRecordsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/adb/src/model/DescribeConnectionCountRecordsResult.cc b/adb/src/model/DescribeConnectionCountRecordsResult.cc index be0319bad..f12c644ad 100644 --- a/adb/src/model/DescribeConnectionCountRecordsResult.cc +++ b/adb/src/model/DescribeConnectionCountRecordsResult.cc @@ -39,16 +39,6 @@ void DescribeConnectionCountRecordsResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allUserRecordsNode = value["UserRecords"]["Users"]; - for (auto valueUserRecordsUsers : allUserRecordsNode) - { - Users userRecordsObject; - if(!valueUserRecordsUsers["User"].isNull()) - userRecordsObject.user = valueUserRecordsUsers["User"].asString(); - if(!valueUserRecordsUsers["Count"].isNull()) - userRecordsObject.count = std::stol(valueUserRecordsUsers["Count"].asString()); - userRecords_.push_back(userRecordsObject); - } auto allAccessIpRecordsNode = value["AccessIpRecords"]["AccessIps"]; for (auto valueAccessIpRecordsAccessIps : allAccessIpRecordsNode) { @@ -59,6 +49,16 @@ void DescribeConnectionCountRecordsResult::parse(const std::string &payload) accessIpRecordsObject.count = std::stol(valueAccessIpRecordsAccessIps["Count"].asString()); accessIpRecords_.push_back(accessIpRecordsObject); } + auto allUserRecordsNode = value["UserRecords"]["Users"]; + for (auto valueUserRecordsUsers : allUserRecordsNode) + { + Users userRecordsObject; + if(!valueUserRecordsUsers["User"].isNull()) + userRecordsObject.user = valueUserRecordsUsers["User"].asString(); + if(!valueUserRecordsUsers["Count"].isNull()) + userRecordsObject.count = std::stol(valueUserRecordsUsers["Count"].asString()); + userRecords_.push_back(userRecordsObject); + } if(!value["TotalCount"].isNull()) totalCount_ = value["TotalCount"].asString(); if(!value["DBClusterId"].isNull()) diff --git a/adb/src/model/DescribeDBClusterAccessWhiteListRequest.cc b/adb/src/model/DescribeDBClusterAccessWhiteListRequest.cc index b7241360c..1d7c44b6d 100644 --- a/adb/src/model/DescribeDBClusterAccessWhiteListRequest.cc +++ b/adb/src/model/DescribeDBClusterAccessWhiteListRequest.cc @@ -1,95 +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::Adb::Model::DescribeDBClusterAccessWhiteListRequest; - -DescribeDBClusterAccessWhiteListRequest::DescribeDBClusterAccessWhiteListRequest() : - RpcServiceRequest("adb", "2019-03-15", "DescribeDBClusterAccessWhiteList") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeDBClusterAccessWhiteListRequest::~DescribeDBClusterAccessWhiteListRequest() -{} - -long DescribeDBClusterAccessWhiteListRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Adb::Model::DescribeDBClusterAccessWhiteListRequest; + +DescribeDBClusterAccessWhiteListRequest::DescribeDBClusterAccessWhiteListRequest() + : RpcServiceRequest("adb", "2019-03-15", "DescribeDBClusterAccessWhiteList") { + setMethod(HttpRequest::Method::Post); } -void DescribeDBClusterAccessWhiteListRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeDBClusterAccessWhiteListRequest::~DescribeDBClusterAccessWhiteListRequest() {} + +long DescribeDBClusterAccessWhiteListRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeDBClusterAccessWhiteListRequest::getAccessKeyId()const -{ - return accessKeyId_; +void DescribeDBClusterAccessWhiteListRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeDBClusterAccessWhiteListRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string DescribeDBClusterAccessWhiteListRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string DescribeDBClusterAccessWhiteListRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeDBClusterAccessWhiteListRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void DescribeDBClusterAccessWhiteListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeDBClusterAccessWhiteListRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeDBClusterAccessWhiteListRequest::getDBClusterId()const -{ - return dBClusterId_; +void DescribeDBClusterAccessWhiteListRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeDBClusterAccessWhiteListRequest::setDBClusterId(const std::string& dBClusterId) -{ - dBClusterId_ = dBClusterId; - setParameter("DBClusterId", dBClusterId); +std::string DescribeDBClusterAccessWhiteListRequest::getDBClusterId() const { + return dBClusterId_; } -std::string DescribeDBClusterAccessWhiteListRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeDBClusterAccessWhiteListRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); } -void DescribeDBClusterAccessWhiteListRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeDBClusterAccessWhiteListRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeDBClusterAccessWhiteListRequest::getOwnerId()const -{ - return ownerId_; +void DescribeDBClusterAccessWhiteListRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeDBClusterAccessWhiteListRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeDBClusterAccessWhiteListRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeDBClusterAccessWhiteListRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/adb/src/model/DescribeDBClusterAccessWhiteListResult.cc b/adb/src/model/DescribeDBClusterAccessWhiteListResult.cc index e0013e87c..93d23a01f 100644 --- a/adb/src/model/DescribeDBClusterAccessWhiteListResult.cc +++ b/adb/src/model/DescribeDBClusterAccessWhiteListResult.cc @@ -43,12 +43,12 @@ void DescribeDBClusterAccessWhiteListResult::parse(const std::string &payload) for (auto valueItemsIPArray : allItemsNode) { IPArray itemsObject; - if(!valueItemsIPArray["DBClusterIPArrayName"].isNull()) - itemsObject.dBClusterIPArrayName = valueItemsIPArray["DBClusterIPArrayName"].asString(); - if(!valueItemsIPArray["SecurityIPList"].isNull()) - itemsObject.securityIPList = valueItemsIPArray["SecurityIPList"].asString(); if(!valueItemsIPArray["DBClusterIPArrayAttribute"].isNull()) itemsObject.dBClusterIPArrayAttribute = valueItemsIPArray["DBClusterIPArrayAttribute"].asString(); + if(!valueItemsIPArray["SecurityIPList"].isNull()) + itemsObject.securityIPList = valueItemsIPArray["SecurityIPList"].asString(); + if(!valueItemsIPArray["DBClusterIPArrayName"].isNull()) + itemsObject.dBClusterIPArrayName = valueItemsIPArray["DBClusterIPArrayName"].asString(); items_.push_back(itemsObject); } diff --git a/adb/src/model/DescribeDBClusterAttributeRequest.cc b/adb/src/model/DescribeDBClusterAttributeRequest.cc index c0206312a..f4a49a7f2 100644 --- a/adb/src/model/DescribeDBClusterAttributeRequest.cc +++ b/adb/src/model/DescribeDBClusterAttributeRequest.cc @@ -1,95 +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::Adb::Model::DescribeDBClusterAttributeRequest; - -DescribeDBClusterAttributeRequest::DescribeDBClusterAttributeRequest() : - RpcServiceRequest("adb", "2019-03-15", "DescribeDBClusterAttribute") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeDBClusterAttributeRequest::~DescribeDBClusterAttributeRequest() -{} - -long DescribeDBClusterAttributeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Adb::Model::DescribeDBClusterAttributeRequest; + +DescribeDBClusterAttributeRequest::DescribeDBClusterAttributeRequest() + : RpcServiceRequest("adb", "2019-03-15", "DescribeDBClusterAttribute") { + setMethod(HttpRequest::Method::Post); } -void DescribeDBClusterAttributeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeDBClusterAttributeRequest::~DescribeDBClusterAttributeRequest() {} + +long DescribeDBClusterAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeDBClusterAttributeRequest::getAccessKeyId()const -{ - return accessKeyId_; +void DescribeDBClusterAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeDBClusterAttributeRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string DescribeDBClusterAttributeRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string DescribeDBClusterAttributeRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeDBClusterAttributeRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void DescribeDBClusterAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeDBClusterAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeDBClusterAttributeRequest::getDBClusterId()const -{ - return dBClusterId_; +void DescribeDBClusterAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeDBClusterAttributeRequest::setDBClusterId(const std::string& dBClusterId) -{ - dBClusterId_ = dBClusterId; - setParameter("DBClusterId", dBClusterId); +std::string DescribeDBClusterAttributeRequest::getDBClusterId() const { + return dBClusterId_; } -std::string DescribeDBClusterAttributeRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeDBClusterAttributeRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); } -void DescribeDBClusterAttributeRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeDBClusterAttributeRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeDBClusterAttributeRequest::getOwnerId()const -{ - return ownerId_; +void DescribeDBClusterAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeDBClusterAttributeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeDBClusterAttributeRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeDBClusterAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/adb/src/model/DescribeDBClusterAttributeResult.cc b/adb/src/model/DescribeDBClusterAttributeResult.cc index 732886031..806f60666 100644 --- a/adb/src/model/DescribeDBClusterAttributeResult.cc +++ b/adb/src/model/DescribeDBClusterAttributeResult.cc @@ -43,84 +43,86 @@ void DescribeDBClusterAttributeResult::parse(const std::string &payload) for (auto valueItemsDBCluster : allItemsNode) { DBCluster itemsObject; - if(!valueItemsDBCluster["RegionId"].isNull()) - itemsObject.regionId = valueItemsDBCluster["RegionId"].asString(); - if(!valueItemsDBCluster["ZoneId"].isNull()) - itemsObject.zoneId = valueItemsDBCluster["ZoneId"].asString(); - if(!valueItemsDBCluster["DBClusterId"].isNull()) - itemsObject.dBClusterId = valueItemsDBCluster["DBClusterId"].asString(); - if(!valueItemsDBCluster["DBClusterType"].isNull()) - itemsObject.dBClusterType = valueItemsDBCluster["DBClusterType"].asString(); - if(!valueItemsDBCluster["DBClusterDescription"].isNull()) - itemsObject.dBClusterDescription = valueItemsDBCluster["DBClusterDescription"].asString(); - if(!valueItemsDBCluster["Category"].isNull()) - itemsObject.category = valueItemsDBCluster["Category"].asString(); - if(!valueItemsDBCluster["LockMode"].isNull()) - itemsObject.lockMode = valueItemsDBCluster["LockMode"].asString(); - if(!valueItemsDBCluster["LockReason"].isNull()) - itemsObject.lockReason = valueItemsDBCluster["LockReason"].asString(); - if(!valueItemsDBCluster["PayType"].isNull()) - itemsObject.payType = valueItemsDBCluster["PayType"].asString(); - if(!valueItemsDBCluster["DBVersion"].isNull()) - itemsObject.dBVersion = valueItemsDBCluster["DBVersion"].asString(); - if(!valueItemsDBCluster["DBClusterStatus"].isNull()) - itemsObject.dBClusterStatus = valueItemsDBCluster["DBClusterStatus"].asString(); - if(!valueItemsDBCluster["DBNodeStorage"].isNull()) - itemsObject.dBNodeStorage = std::stol(valueItemsDBCluster["DBNodeStorage"].asString()); - if(!valueItemsDBCluster["DBNodeClass"].isNull()) - itemsObject.dBNodeClass = valueItemsDBCluster["DBNodeClass"].asString(); - if(!valueItemsDBCluster["DBNodeCount"].isNull()) - itemsObject.dBNodeCount = std::stol(valueItemsDBCluster["DBNodeCount"].asString()); if(!valueItemsDBCluster["CreationTime"].isNull()) itemsObject.creationTime = valueItemsDBCluster["CreationTime"].asString(); - if(!valueItemsDBCluster["ExpireTime"].isNull()) - itemsObject.expireTime = valueItemsDBCluster["ExpireTime"].asString(); + if(!valueItemsDBCluster["EnableSpark"].isNull()) + itemsObject.enableSpark = valueItemsDBCluster["EnableSpark"].asString() == "true"; + if(!valueItemsDBCluster["DtsJobId"].isNull()) + itemsObject.dtsJobId = valueItemsDBCluster["DtsJobId"].asString(); + if(!valueItemsDBCluster["DBNodeCount"].isNull()) + itemsObject.dBNodeCount = std::stol(valueItemsDBCluster["DBNodeCount"].asString()); if(!valueItemsDBCluster["Expired"].isNull()) itemsObject.expired = valueItemsDBCluster["Expired"].asString(); if(!valueItemsDBCluster["MaintainTime"].isNull()) itemsObject.maintainTime = valueItemsDBCluster["MaintainTime"].asString(); - if(!valueItemsDBCluster["Engine"].isNull()) - itemsObject.engine = valueItemsDBCluster["Engine"].asString(); - if(!valueItemsDBCluster["VPCId"].isNull()) - itemsObject.vPCId = valueItemsDBCluster["VPCId"].asString(); - if(!valueItemsDBCluster["VSwitchId"].isNull()) - itemsObject.vSwitchId = valueItemsDBCluster["VSwitchId"].asString(); - if(!valueItemsDBCluster["VPCCloudInstanceId"].isNull()) - itemsObject.vPCCloudInstanceId = valueItemsDBCluster["VPCCloudInstanceId"].asString(); - if(!valueItemsDBCluster["CommodityCode"].isNull()) - itemsObject.commodityCode = valueItemsDBCluster["CommodityCode"].asString(); - if(!valueItemsDBCluster["DBClusterNetworkType"].isNull()) - itemsObject.dBClusterNetworkType = valueItemsDBCluster["DBClusterNetworkType"].asString(); - if(!valueItemsDBCluster["ConnectionString"].isNull()) - itemsObject.connectionString = valueItemsDBCluster["ConnectionString"].asString(); - if(!valueItemsDBCluster["Port"].isNull()) - itemsObject.port = std::stoi(valueItemsDBCluster["Port"].asString()); - if(!valueItemsDBCluster["RdsInstanceId"].isNull()) - itemsObject.rdsInstanceId = valueItemsDBCluster["RdsInstanceId"].asString(); - if(!valueItemsDBCluster["DtsJobId"].isNull()) - itemsObject.dtsJobId = valueItemsDBCluster["DtsJobId"].asString(); - if(!valueItemsDBCluster["ExecutorCount"].isNull()) - itemsObject.executorCount = valueItemsDBCluster["ExecutorCount"].asString(); + if(!valueItemsDBCluster["PayType"].isNull()) + itemsObject.payType = valueItemsDBCluster["PayType"].asString(); if(!valueItemsDBCluster["DiskType"].isNull()) itemsObject.diskType = valueItemsDBCluster["DiskType"].asString(); - if(!valueItemsDBCluster["ComputeResource"].isNull()) - itemsObject.computeResource = valueItemsDBCluster["ComputeResource"].asString(); - if(!valueItemsDBCluster["StorageResource"].isNull()) - itemsObject.storageResource = valueItemsDBCluster["StorageResource"].asString(); if(!valueItemsDBCluster["Mode"].isNull()) itemsObject.mode = valueItemsDBCluster["Mode"].asString(); - if(!valueItemsDBCluster["ResourceGroupId"].isNull()) - itemsObject.resourceGroupId = valueItemsDBCluster["ResourceGroupId"].asString(); - if(!valueItemsDBCluster["ElasticIOResource"].isNull()) - itemsObject.elasticIOResource = std::stoi(valueItemsDBCluster["ElasticIOResource"].asString()); + if(!valueItemsDBCluster["Port"].isNull()) + itemsObject.port = std::stoi(valueItemsDBCluster["Port"].asString()); + if(!valueItemsDBCluster["LockMode"].isNull()) + itemsObject.lockMode = valueItemsDBCluster["LockMode"].asString(); if(!valueItemsDBCluster["EngineVersion"].isNull()) itemsObject.engineVersion = valueItemsDBCluster["EngineVersion"].asString(); - if(!valueItemsDBCluster["UserENIStatus"].isNull()) - itemsObject.userENIStatus = valueItemsDBCluster["UserENIStatus"].asString() == "true"; - if(!valueItemsDBCluster["EnableSpark"].isNull()) - itemsObject.enableSpark = valueItemsDBCluster["EnableSpark"].asString() == "true"; if(!valueItemsDBCluster["EnableAirflow"].isNull()) itemsObject.enableAirflow = valueItemsDBCluster["EnableAirflow"].asString() == "true"; + if(!valueItemsDBCluster["ExecutorCount"].isNull()) + itemsObject.executorCount = valueItemsDBCluster["ExecutorCount"].asString(); + if(!valueItemsDBCluster["StorageResource"].isNull()) + itemsObject.storageResource = valueItemsDBCluster["StorageResource"].asString(); + if(!valueItemsDBCluster["DBClusterId"].isNull()) + itemsObject.dBClusterId = valueItemsDBCluster["DBClusterId"].asString(); + if(!valueItemsDBCluster["ConnectionString"].isNull()) + itemsObject.connectionString = valueItemsDBCluster["ConnectionString"].asString(); + if(!valueItemsDBCluster["RdsInstanceId"].isNull()) + itemsObject.rdsInstanceId = valueItemsDBCluster["RdsInstanceId"].asString(); + if(!valueItemsDBCluster["DBClusterType"].isNull()) + itemsObject.dBClusterType = valueItemsDBCluster["DBClusterType"].asString(); + if(!valueItemsDBCluster["CommodityCode"].isNull()) + itemsObject.commodityCode = valueItemsDBCluster["CommodityCode"].asString(); + if(!valueItemsDBCluster["ExpireTime"].isNull()) + itemsObject.expireTime = valueItemsDBCluster["ExpireTime"].asString(); + if(!valueItemsDBCluster["DBNodeStorage"].isNull()) + itemsObject.dBNodeStorage = std::stol(valueItemsDBCluster["DBNodeStorage"].asString()); + if(!valueItemsDBCluster["DBNodeClass"].isNull()) + itemsObject.dBNodeClass = valueItemsDBCluster["DBNodeClass"].asString(); + if(!valueItemsDBCluster["LockReason"].isNull()) + itemsObject.lockReason = valueItemsDBCluster["LockReason"].asString(); + if(!valueItemsDBCluster["VPCId"].isNull()) + itemsObject.vPCId = valueItemsDBCluster["VPCId"].asString(); + if(!valueItemsDBCluster["ComputeResource"].isNull()) + itemsObject.computeResource = valueItemsDBCluster["ComputeResource"].asString(); + if(!valueItemsDBCluster["RegionId"].isNull()) + itemsObject.regionId = valueItemsDBCluster["RegionId"].asString(); + if(!valueItemsDBCluster["ElasticIOResource"].isNull()) + itemsObject.elasticIOResource = std::stoi(valueItemsDBCluster["ElasticIOResource"].asString()); + if(!valueItemsDBCluster["VSwitchId"].isNull()) + itemsObject.vSwitchId = valueItemsDBCluster["VSwitchId"].asString(); + if(!valueItemsDBCluster["DBVersion"].isNull()) + itemsObject.dBVersion = valueItemsDBCluster["DBVersion"].asString(); + if(!valueItemsDBCluster["VPCCloudInstanceId"].isNull()) + itemsObject.vPCCloudInstanceId = valueItemsDBCluster["VPCCloudInstanceId"].asString(); + if(!valueItemsDBCluster["DBClusterStatus"].isNull()) + itemsObject.dBClusterStatus = valueItemsDBCluster["DBClusterStatus"].asString(); + if(!valueItemsDBCluster["ResourceGroupId"].isNull()) + itemsObject.resourceGroupId = valueItemsDBCluster["ResourceGroupId"].asString(); + if(!valueItemsDBCluster["DBClusterNetworkType"].isNull()) + itemsObject.dBClusterNetworkType = valueItemsDBCluster["DBClusterNetworkType"].asString(); + if(!valueItemsDBCluster["DBClusterDescription"].isNull()) + itemsObject.dBClusterDescription = valueItemsDBCluster["DBClusterDescription"].asString(); + if(!valueItemsDBCluster["UserENIStatus"].isNull()) + itemsObject.userENIStatus = valueItemsDBCluster["UserENIStatus"].asString() == "true"; + if(!valueItemsDBCluster["ZoneId"].isNull()) + itemsObject.zoneId = valueItemsDBCluster["ZoneId"].asString(); + if(!valueItemsDBCluster["Category"].isNull()) + itemsObject.category = valueItemsDBCluster["Category"].asString(); + if(!valueItemsDBCluster["Engine"].isNull()) + itemsObject.engine = valueItemsDBCluster["Engine"].asString(); + if(!valueItemsDBCluster["KmsId"].isNull()) + itemsObject.kmsId = valueItemsDBCluster["KmsId"].asString(); auto allTagsNode = valueItemsDBCluster["Tags"]["Tag"]; for (auto valueItemsDBClusterTagsTag : allTagsNode) { diff --git a/adb/src/model/DescribeDBClusterForecastRequest.cc b/adb/src/model/DescribeDBClusterForecastRequest.cc new file mode 100644 index 000000000..61d5d29bd --- /dev/null +++ b/adb/src/model/DescribeDBClusterForecastRequest.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::Adb::Model::DescribeDBClusterForecastRequest; + +DescribeDBClusterForecastRequest::DescribeDBClusterForecastRequest() + : RpcServiceRequest("adb", "2019-03-15", "DescribeDBClusterForecast") { + setMethod(HttpRequest::Method::Post); +} + +DescribeDBClusterForecastRequest::~DescribeDBClusterForecastRequest() {} + +std::string DescribeDBClusterForecastRequest::getMetricType() const { + return metricType_; +} + +void DescribeDBClusterForecastRequest::setMetricType(const std::string &metricType) { + metricType_ = metricType; + setParameter(std::string("MetricType"), metricType); +} + +std::string DescribeDBClusterForecastRequest::getRegionId() const { + return regionId_; +} + +void DescribeDBClusterForecastRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DescribeDBClusterForecastRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DescribeDBClusterForecastRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string DescribeDBClusterForecastRequest::getStartTime() const { + return startTime_; +} + +void DescribeDBClusterForecastRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); +} + diff --git a/adb/src/model/DescribeDBClusterForecastResult.cc b/adb/src/model/DescribeDBClusterForecastResult.cc new file mode 100644 index 000000000..30d994da1 --- /dev/null +++ b/adb/src/model/DescribeDBClusterForecastResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Adb; +using namespace AlibabaCloud::Adb::Model; + +DescribeDBClusterForecastResult::DescribeDBClusterForecastResult() : + ServiceResult() +{} + +DescribeDBClusterForecastResult::DescribeDBClusterForecastResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDBClusterForecastResult::~DescribeDBClusterForecastResult() +{} + +void DescribeDBClusterForecastResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allPerformancesNode = value["Performances"]["PerformancesItem"]; + for (auto valuePerformancesPerformancesItem : allPerformancesNode) + { + PerformancesItem performancesObject; + if(!valuePerformancesPerformancesItem["Key"].isNull()) + performancesObject.key = valuePerformancesPerformancesItem["Key"].asString(); + if(!valuePerformancesPerformancesItem["Unit"].isNull()) + performancesObject.unit = valuePerformancesPerformancesItem["Unit"].asString(); + auto allSeriesNode = valuePerformancesPerformancesItem["Series"]["SeriesItem"]; + for (auto valuePerformancesPerformancesItemSeriesSeriesItem : allSeriesNode) + { + PerformancesItem::SeriesItem seriesObject; + if(!valuePerformancesPerformancesItemSeriesSeriesItem["Name"].isNull()) + seriesObject.name = valuePerformancesPerformancesItemSeriesSeriesItem["Name"].asString(); + if(!valuePerformancesPerformancesItemSeriesSeriesItem["Values"].isNull()) + seriesObject.values = valuePerformancesPerformancesItemSeriesSeriesItem["Values"].asString(); + performancesObject.series.push_back(seriesObject); + } + performances_.push_back(performancesObject); + } + +} + +std::vector DescribeDBClusterForecastResult::getPerformances()const +{ + return performances_; +} + diff --git a/adb/src/model/DescribeDBClusterHealthReportRequest.cc b/adb/src/model/DescribeDBClusterHealthReportRequest.cc new file mode 100644 index 000000000..3a2cd51be --- /dev/null +++ b/adb/src/model/DescribeDBClusterHealthReportRequest.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::Adb::Model::DescribeDBClusterHealthReportRequest; + +DescribeDBClusterHealthReportRequest::DescribeDBClusterHealthReportRequest() + : RpcServiceRequest("adb", "2019-03-15", "DescribeDBClusterHealthReport") { + setMethod(HttpRequest::Method::Post); +} + +DescribeDBClusterHealthReportRequest::~DescribeDBClusterHealthReportRequest() {} + +std::string DescribeDBClusterHealthReportRequest::getRegionId() const { + return regionId_; +} + +void DescribeDBClusterHealthReportRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DescribeDBClusterHealthReportRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DescribeDBClusterHealthReportRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string DescribeDBClusterHealthReportRequest::getStartTime() const { + return startTime_; +} + +void DescribeDBClusterHealthReportRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); +} + diff --git a/adb/src/model/DescribeDBClusterHealthReportResult.cc b/adb/src/model/DescribeDBClusterHealthReportResult.cc new file mode 100644 index 000000000..459d5f4d4 --- /dev/null +++ b/adb/src/model/DescribeDBClusterHealthReportResult.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::Adb; +using namespace AlibabaCloud::Adb::Model; + +DescribeDBClusterHealthReportResult::DescribeDBClusterHealthReportResult() : + ServiceResult() +{} + +DescribeDBClusterHealthReportResult::DescribeDBClusterHealthReportResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDBClusterHealthReportResult::~DescribeDBClusterHealthReportResult() +{} + +void DescribeDBClusterHealthReportResult::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["Key"].isNull()) + itemsObject.key = valueItemsItemsItem["Key"].asString(); + if(!valueItemsItemsItem["Max"].isNull()) + itemsObject.max = valueItemsItemsItem["Max"].asString(); + if(!valueItemsItemsItem["Name"].isNull()) + itemsObject.name = valueItemsItemsItem["Name"].asString(); + if(!valueItemsItemsItem["Avg"].isNull()) + itemsObject.avg = valueItemsItemsItem["Avg"].asString(); + items_.push_back(itemsObject); + } + +} + +std::vector DescribeDBClusterHealthReportResult::getItems()const +{ + return items_; +} + diff --git a/adb/src/model/DescribeDBClusterNetInfoRequest.cc b/adb/src/model/DescribeDBClusterNetInfoRequest.cc index 6c5b0c67b..e847c9ae8 100644 --- a/adb/src/model/DescribeDBClusterNetInfoRequest.cc +++ b/adb/src/model/DescribeDBClusterNetInfoRequest.cc @@ -1,95 +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::Adb::Model::DescribeDBClusterNetInfoRequest; - -DescribeDBClusterNetInfoRequest::DescribeDBClusterNetInfoRequest() : - RpcServiceRequest("adb", "2019-03-15", "DescribeDBClusterNetInfo") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeDBClusterNetInfoRequest::~DescribeDBClusterNetInfoRequest() -{} - -long DescribeDBClusterNetInfoRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Adb::Model::DescribeDBClusterNetInfoRequest; + +DescribeDBClusterNetInfoRequest::DescribeDBClusterNetInfoRequest() + : RpcServiceRequest("adb", "2019-03-15", "DescribeDBClusterNetInfo") { + setMethod(HttpRequest::Method::Post); } -void DescribeDBClusterNetInfoRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeDBClusterNetInfoRequest::~DescribeDBClusterNetInfoRequest() {} + +long DescribeDBClusterNetInfoRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeDBClusterNetInfoRequest::getAccessKeyId()const -{ - return accessKeyId_; +void DescribeDBClusterNetInfoRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeDBClusterNetInfoRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string DescribeDBClusterNetInfoRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string DescribeDBClusterNetInfoRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeDBClusterNetInfoRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void DescribeDBClusterNetInfoRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeDBClusterNetInfoRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeDBClusterNetInfoRequest::getDBClusterId()const -{ - return dBClusterId_; +void DescribeDBClusterNetInfoRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeDBClusterNetInfoRequest::setDBClusterId(const std::string& dBClusterId) -{ - dBClusterId_ = dBClusterId; - setParameter("DBClusterId", dBClusterId); +std::string DescribeDBClusterNetInfoRequest::getDBClusterId() const { + return dBClusterId_; } -std::string DescribeDBClusterNetInfoRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeDBClusterNetInfoRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); } -void DescribeDBClusterNetInfoRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeDBClusterNetInfoRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeDBClusterNetInfoRequest::getOwnerId()const -{ - return ownerId_; +void DescribeDBClusterNetInfoRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeDBClusterNetInfoRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeDBClusterNetInfoRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeDBClusterNetInfoRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/adb/src/model/DescribeDBClusterNetInfoResult.cc b/adb/src/model/DescribeDBClusterNetInfoResult.cc index 7d1110fdf..7db4b7e46 100644 --- a/adb/src/model/DescribeDBClusterNetInfoResult.cc +++ b/adb/src/model/DescribeDBClusterNetInfoResult.cc @@ -43,18 +43,20 @@ void DescribeDBClusterNetInfoResult::parse(const std::string &payload) for (auto valueItemsAddress : allItemsNode) { Address itemsObject; + if(!valueItemsAddress["VSwitchId"].isNull()) + itemsObject.vSwitchId = valueItemsAddress["VSwitchId"].asString(); if(!valueItemsAddress["ConnectionString"].isNull()) itemsObject.connectionString = valueItemsAddress["ConnectionString"].asString(); - if(!valueItemsAddress["IPAddress"].isNull()) - itemsObject.iPAddress = valueItemsAddress["IPAddress"].asString(); if(!valueItemsAddress["NetType"].isNull()) itemsObject.netType = valueItemsAddress["NetType"].asString(); if(!valueItemsAddress["Port"].isNull()) itemsObject.port = valueItemsAddress["Port"].asString(); if(!valueItemsAddress["VPCId"].isNull()) itemsObject.vPCId = valueItemsAddress["VPCId"].asString(); - if(!valueItemsAddress["VSwitchId"].isNull()) - itemsObject.vSwitchId = valueItemsAddress["VSwitchId"].asString(); + if(!valueItemsAddress["IPAddress"].isNull()) + itemsObject.iPAddress = valueItemsAddress["IPAddress"].asString(); + if(!valueItemsAddress["ConnectionStringPrefix"].isNull()) + itemsObject.connectionStringPrefix = valueItemsAddress["ConnectionStringPrefix"].asString(); items_.push_back(itemsObject); } if(!value["ClusterNetworkType"].isNull()) diff --git a/adb/src/model/DescribeDBClusterPerformanceRequest.cc b/adb/src/model/DescribeDBClusterPerformanceRequest.cc index d3ab7cf8b..466aa84bb 100644 --- a/adb/src/model/DescribeDBClusterPerformanceRequest.cc +++ b/adb/src/model/DescribeDBClusterPerformanceRequest.cc @@ -1,128 +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::Adb::Model::DescribeDBClusterPerformanceRequest; - -DescribeDBClusterPerformanceRequest::DescribeDBClusterPerformanceRequest() : - RpcServiceRequest("adb", "2019-03-15", "DescribeDBClusterPerformance") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeDBClusterPerformanceRequest::~DescribeDBClusterPerformanceRequest() -{} - -long DescribeDBClusterPerformanceRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Adb::Model::DescribeDBClusterPerformanceRequest; + +DescribeDBClusterPerformanceRequest::DescribeDBClusterPerformanceRequest() + : RpcServiceRequest("adb", "2019-03-15", "DescribeDBClusterPerformance") { + setMethod(HttpRequest::Method::Post); } -void DescribeDBClusterPerformanceRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeDBClusterPerformanceRequest::~DescribeDBClusterPerformanceRequest() {} + +long DescribeDBClusterPerformanceRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeDBClusterPerformanceRequest::getStartTime()const -{ - return startTime_; +void DescribeDBClusterPerformanceRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeDBClusterPerformanceRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setParameter("StartTime", startTime); +std::string DescribeDBClusterPerformanceRequest::getStartTime() const { + return startTime_; } -std::string DescribeDBClusterPerformanceRequest::getAccessKeyId()const -{ - return accessKeyId_; +void DescribeDBClusterPerformanceRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); } -void DescribeDBClusterPerformanceRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string DescribeDBClusterPerformanceRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string DescribeDBClusterPerformanceRequest::getKey()const -{ - return key_; +void DescribeDBClusterPerformanceRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void DescribeDBClusterPerformanceRequest::setKey(const std::string& key) -{ - key_ = key; - setParameter("Key", key); +std::string DescribeDBClusterPerformanceRequest::getKey() const { + return key_; } -std::string DescribeDBClusterPerformanceRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeDBClusterPerformanceRequest::setKey(const std::string &key) { + key_ = key; + setParameter(std::string("Key"), key); } -void DescribeDBClusterPerformanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeDBClusterPerformanceRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeDBClusterPerformanceRequest::getDBClusterId()const -{ - return dBClusterId_; +void DescribeDBClusterPerformanceRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeDBClusterPerformanceRequest::setDBClusterId(const std::string& dBClusterId) -{ - dBClusterId_ = dBClusterId; - setParameter("DBClusterId", dBClusterId); +std::string DescribeDBClusterPerformanceRequest::getDBClusterId() const { + return dBClusterId_; } -std::string DescribeDBClusterPerformanceRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeDBClusterPerformanceRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); } -void DescribeDBClusterPerformanceRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeDBClusterPerformanceRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string DescribeDBClusterPerformanceRequest::getEndTime()const -{ - return endTime_; +void DescribeDBClusterPerformanceRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeDBClusterPerformanceRequest::setEndTime(const std::string& endTime) -{ - endTime_ = endTime; - setParameter("EndTime", endTime); +std::string DescribeDBClusterPerformanceRequest::getEndTime() const { + return endTime_; } -long DescribeDBClusterPerformanceRequest::getOwnerId()const -{ - return ownerId_; +void DescribeDBClusterPerformanceRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); } -void DescribeDBClusterPerformanceRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeDBClusterPerformanceRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeDBClusterPerformanceRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/adb/src/model/DescribeDBClusterPerformanceResult.cc b/adb/src/model/DescribeDBClusterPerformanceResult.cc index 4b6d58867..a1d84aff7 100644 --- a/adb/src/model/DescribeDBClusterPerformanceResult.cc +++ b/adb/src/model/DescribeDBClusterPerformanceResult.cc @@ -60,12 +60,12 @@ void DescribeDBClusterPerformanceResult::parse(const std::string &payload) } performances_.push_back(performancesObject); } - if(!value["DBClusterId"].isNull()) - dBClusterId_ = value["DBClusterId"].asString(); - if(!value["StartTime"].isNull()) - startTime_ = value["StartTime"].asString(); if(!value["EndTime"].isNull()) endTime_ = value["EndTime"].asString(); + if(!value["StartTime"].isNull()) + startTime_ = value["StartTime"].asString(); + if(!value["DBClusterId"].isNull()) + dBClusterId_ = value["DBClusterId"].asString(); } @@ -74,16 +74,16 @@ std::string DescribeDBClusterPerformanceResult::getEndTime()const return endTime_; } -std::string DescribeDBClusterPerformanceResult::getDBClusterId()const -{ - return dBClusterId_; -} - std::string DescribeDBClusterPerformanceResult::getStartTime()const { return startTime_; } +std::string DescribeDBClusterPerformanceResult::getDBClusterId()const +{ + return dBClusterId_; +} + std::vector DescribeDBClusterPerformanceResult::getPerformances()const { return performances_; diff --git a/adb/src/model/DescribeDBClusterResourcePoolPerformanceRequest.cc b/adb/src/model/DescribeDBClusterResourcePoolPerformanceRequest.cc index f249e3db9..0369813c1 100644 --- a/adb/src/model/DescribeDBClusterResourcePoolPerformanceRequest.cc +++ b/adb/src/model/DescribeDBClusterResourcePoolPerformanceRequest.cc @@ -1,139 +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::Adb::Model::DescribeDBClusterResourcePoolPerformanceRequest; - -DescribeDBClusterResourcePoolPerformanceRequest::DescribeDBClusterResourcePoolPerformanceRequest() : - RpcServiceRequest("adb", "2019-03-15", "DescribeDBClusterResourcePoolPerformance") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeDBClusterResourcePoolPerformanceRequest::~DescribeDBClusterResourcePoolPerformanceRequest() -{} - -long DescribeDBClusterResourcePoolPerformanceRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Adb::Model::DescribeDBClusterResourcePoolPerformanceRequest; + +DescribeDBClusterResourcePoolPerformanceRequest::DescribeDBClusterResourcePoolPerformanceRequest() + : RpcServiceRequest("adb", "2019-03-15", "DescribeDBClusterResourcePoolPerformance") { + setMethod(HttpRequest::Method::Post); } -void DescribeDBClusterResourcePoolPerformanceRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeDBClusterResourcePoolPerformanceRequest::~DescribeDBClusterResourcePoolPerformanceRequest() {} + +long DescribeDBClusterResourcePoolPerformanceRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeDBClusterResourcePoolPerformanceRequest::getStartTime()const -{ - return startTime_; +void DescribeDBClusterResourcePoolPerformanceRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeDBClusterResourcePoolPerformanceRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setParameter("StartTime", startTime); +std::string DescribeDBClusterResourcePoolPerformanceRequest::getStartTime() const { + return startTime_; } -std::string DescribeDBClusterResourcePoolPerformanceRequest::getAccessKeyId()const -{ - return accessKeyId_; +void DescribeDBClusterResourcePoolPerformanceRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); } -void DescribeDBClusterResourcePoolPerformanceRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string DescribeDBClusterResourcePoolPerformanceRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string DescribeDBClusterResourcePoolPerformanceRequest::getResourcePools()const -{ - return resourcePools_; +void DescribeDBClusterResourcePoolPerformanceRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void DescribeDBClusterResourcePoolPerformanceRequest::setResourcePools(const std::string& resourcePools) -{ - resourcePools_ = resourcePools; - setParameter("ResourcePools", resourcePools); +std::string DescribeDBClusterResourcePoolPerformanceRequest::getResourcePools() const { + return resourcePools_; } -std::string DescribeDBClusterResourcePoolPerformanceRequest::getKey()const -{ - return key_; +void DescribeDBClusterResourcePoolPerformanceRequest::setResourcePools(const std::string &resourcePools) { + resourcePools_ = resourcePools; + setParameter(std::string("ResourcePools"), resourcePools); } -void DescribeDBClusterResourcePoolPerformanceRequest::setKey(const std::string& key) -{ - key_ = key; - setParameter("Key", key); +std::string DescribeDBClusterResourcePoolPerformanceRequest::getKey() const { + return key_; } -std::string DescribeDBClusterResourcePoolPerformanceRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeDBClusterResourcePoolPerformanceRequest::setKey(const std::string &key) { + key_ = key; + setParameter(std::string("Key"), key); } -void DescribeDBClusterResourcePoolPerformanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeDBClusterResourcePoolPerformanceRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeDBClusterResourcePoolPerformanceRequest::getDBClusterId()const -{ - return dBClusterId_; +void DescribeDBClusterResourcePoolPerformanceRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeDBClusterResourcePoolPerformanceRequest::setDBClusterId(const std::string& dBClusterId) -{ - dBClusterId_ = dBClusterId; - setParameter("DBClusterId", dBClusterId); +std::string DescribeDBClusterResourcePoolPerformanceRequest::getDBClusterId() const { + return dBClusterId_; } -std::string DescribeDBClusterResourcePoolPerformanceRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeDBClusterResourcePoolPerformanceRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); } -void DescribeDBClusterResourcePoolPerformanceRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeDBClusterResourcePoolPerformanceRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string DescribeDBClusterResourcePoolPerformanceRequest::getEndTime()const -{ - return endTime_; +void DescribeDBClusterResourcePoolPerformanceRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeDBClusterResourcePoolPerformanceRequest::setEndTime(const std::string& endTime) -{ - endTime_ = endTime; - setParameter("EndTime", endTime); +std::string DescribeDBClusterResourcePoolPerformanceRequest::getEndTime() const { + return endTime_; } -long DescribeDBClusterResourcePoolPerformanceRequest::getOwnerId()const -{ - return ownerId_; +void DescribeDBClusterResourcePoolPerformanceRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); } -void DescribeDBClusterResourcePoolPerformanceRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeDBClusterResourcePoolPerformanceRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeDBClusterResourcePoolPerformanceRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/adb/src/model/DescribeDBClusterResourcePoolPerformanceResult.cc b/adb/src/model/DescribeDBClusterResourcePoolPerformanceResult.cc index b4a0e8634..9cdf358a9 100644 --- a/adb/src/model/DescribeDBClusterResourcePoolPerformanceResult.cc +++ b/adb/src/model/DescribeDBClusterResourcePoolPerformanceResult.cc @@ -68,12 +68,12 @@ void DescribeDBClusterResourcePoolPerformanceResult::parse(const std::string &pa } performances_.push_back(performancesObject); } - if(!value["DBClusterId"].isNull()) - dBClusterId_ = value["DBClusterId"].asString(); - if(!value["StartTime"].isNull()) - startTime_ = value["StartTime"].asString(); if(!value["EndTime"].isNull()) endTime_ = value["EndTime"].asString(); + if(!value["StartTime"].isNull()) + startTime_ = value["StartTime"].asString(); + if(!value["DBClusterId"].isNull()) + dBClusterId_ = value["DBClusterId"].asString(); } @@ -82,16 +82,16 @@ std::string DescribeDBClusterResourcePoolPerformanceResult::getEndTime()const return endTime_; } -std::string DescribeDBClusterResourcePoolPerformanceResult::getDBClusterId()const -{ - return dBClusterId_; -} - std::string DescribeDBClusterResourcePoolPerformanceResult::getStartTime()const { return startTime_; } +std::string DescribeDBClusterResourcePoolPerformanceResult::getDBClusterId()const +{ + return dBClusterId_; +} + std::vector DescribeDBClusterResourcePoolPerformanceResult::getPerformances()const { return performances_; diff --git a/adb/src/model/DescribeDBClustersRequest.cc b/adb/src/model/DescribeDBClustersRequest.cc index 11174815c..91d33d2d8 100644 --- a/adb/src/model/DescribeDBClustersRequest.cc +++ b/adb/src/model/DescribeDBClustersRequest.cc @@ -1,177 +1,149 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::Adb::Model::DescribeDBClustersRequest; - -DescribeDBClustersRequest::DescribeDBClustersRequest() : - RpcServiceRequest("adb", "2019-03-15", "DescribeDBClusters") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeDBClustersRequest::~DescribeDBClustersRequest() -{} - -long DescribeDBClustersRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Adb::Model::DescribeDBClustersRequest; + +DescribeDBClustersRequest::DescribeDBClustersRequest() + : RpcServiceRequest("adb", "2019-03-15", "DescribeDBClusters") { + setMethod(HttpRequest::Method::Post); } -void DescribeDBClustersRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeDBClustersRequest::~DescribeDBClustersRequest() {} + +long DescribeDBClustersRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeDBClustersRequest::getDBClusterDescription()const -{ - return dBClusterDescription_; +void DescribeDBClustersRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeDBClustersRequest::setDBClusterDescription(const std::string& dBClusterDescription) -{ - dBClusterDescription_ = dBClusterDescription; - setParameter("DBClusterDescription", dBClusterDescription); +std::string DescribeDBClustersRequest::getDBClusterDescription() const { + return dBClusterDescription_; } -std::string DescribeDBClustersRequest::getDBClusterStatus()const -{ - return dBClusterStatus_; +void DescribeDBClustersRequest::setDBClusterDescription(const std::string &dBClusterDescription) { + dBClusterDescription_ = dBClusterDescription; + setParameter(std::string("DBClusterDescription"), dBClusterDescription); } -void DescribeDBClustersRequest::setDBClusterStatus(const std::string& dBClusterStatus) -{ - dBClusterStatus_ = dBClusterStatus; - setParameter("DBClusterStatus", dBClusterStatus); +std::string DescribeDBClustersRequest::getDBClusterStatus() const { + return dBClusterStatus_; } -int DescribeDBClustersRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeDBClustersRequest::setDBClusterStatus(const std::string &dBClusterStatus) { + dBClusterStatus_ = dBClusterStatus; + setParameter(std::string("DBClusterStatus"), dBClusterStatus); } -void DescribeDBClustersRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeDBClustersRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeDBClustersRequest::getAccessKeyId()const -{ - return accessKeyId_; +void DescribeDBClustersRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeDBClustersRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string DescribeDBClustersRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string DescribeDBClustersRequest::getResourceGroupId()const -{ - return resourceGroupId_; +void DescribeDBClustersRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void DescribeDBClustersRequest::setResourceGroupId(const std::string& resourceGroupId) -{ - resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); +std::string DescribeDBClustersRequest::getResourceGroupId() const { + return resourceGroupId_; } -std::string DescribeDBClustersRequest::getRegionId()const -{ - return regionId_; +void DescribeDBClustersRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -void DescribeDBClustersRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeDBClustersRequest::getRegionId() const { + return regionId_; } -int DescribeDBClustersRequest::getPageSize()const -{ - return pageSize_; +void DescribeDBClustersRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeDBClustersRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeDBClustersRequest::getPageSize() const { + return pageSize_; } -std::vector DescribeDBClustersRequest::getTag()const -{ - return tag_; +void DescribeDBClustersRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeDBClustersRequest::setTag(const std::vector& tag) -{ - tag_ = tag; - for(int dep1 = 0; dep1!= tag.size(); dep1++) { - auto tagObj = tag.at(dep1); - std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); - setParameter(tagObjStr + ".Value", tagObj.value); - setParameter(tagObjStr + ".Key", tagObj.key); - } +std::vector DescribeDBClustersRequest::getTag() const { + return tag_; } -std::string DescribeDBClustersRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeDBClustersRequest::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); + } } -void DescribeDBClustersRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeDBClustersRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeDBClustersRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeDBClustersRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeDBClustersRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeDBClustersRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeDBClustersRequest::getOwnerId()const -{ - return ownerId_; +void DescribeDBClustersRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeDBClustersRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeDBClustersRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeDBClustersRequest::getDBClusterIds()const -{ - return dBClusterIds_; +void DescribeDBClustersRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeDBClustersRequest::setDBClusterIds(const std::string& dBClusterIds) -{ - dBClusterIds_ = dBClusterIds; - setParameter("DBClusterIds", dBClusterIds); +std::string DescribeDBClustersRequest::getDBClusterIds() const { + return dBClusterIds_; +} + +void DescribeDBClustersRequest::setDBClusterIds(const std::string &dBClusterIds) { + dBClusterIds_ = dBClusterIds; + setParameter(std::string("DBClusterIds"), dBClusterIds); } diff --git a/adb/src/model/DescribeDBClustersResult.cc b/adb/src/model/DescribeDBClustersResult.cc index 6b6c2404e..ab63a42d8 100644 --- a/adb/src/model/DescribeDBClustersResult.cc +++ b/adb/src/model/DescribeDBClustersResult.cc @@ -43,74 +43,74 @@ void DescribeDBClustersResult::parse(const std::string &payload) for (auto valueItemsDBCluster : allItemsNode) { DBCluster itemsObject; - if(!valueItemsDBCluster["DBClusterId"].isNull()) - itemsObject.dBClusterId = valueItemsDBCluster["DBClusterId"].asString(); - if(!valueItemsDBCluster["DBClusterType"].isNull()) - itemsObject.dBClusterType = valueItemsDBCluster["DBClusterType"].asString(); - if(!valueItemsDBCluster["DBClusterDescription"].isNull()) - itemsObject.dBClusterDescription = valueItemsDBCluster["DBClusterDescription"].asString(); - if(!valueItemsDBCluster["PayType"].isNull()) - itemsObject.payType = valueItemsDBCluster["PayType"].asString(); - if(!valueItemsDBCluster["RegionId"].isNull()) - itemsObject.regionId = valueItemsDBCluster["RegionId"].asString(); - if(!valueItemsDBCluster["ExpireTime"].isNull()) - itemsObject.expireTime = valueItemsDBCluster["ExpireTime"].asString(); + if(!valueItemsDBCluster["DtsJobId"].isNull()) + itemsObject.dtsJobId = valueItemsDBCluster["DtsJobId"].asString(); + if(!valueItemsDBCluster["DBNodeCount"].isNull()) + itemsObject.dBNodeCount = std::stol(valueItemsDBCluster["DBNodeCount"].asString()); if(!valueItemsDBCluster["Expired"].isNull()) itemsObject.expired = valueItemsDBCluster["Expired"].asString(); - if(!valueItemsDBCluster["DBClusterStatus"].isNull()) - itemsObject.dBClusterStatus = valueItemsDBCluster["DBClusterStatus"].asString(); - if(!valueItemsDBCluster["DBVersion"].isNull()) - itemsObject.dBVersion = valueItemsDBCluster["DBVersion"].asString(); - if(!valueItemsDBCluster["LockMode"].isNull()) - itemsObject.lockMode = valueItemsDBCluster["LockMode"].asString(); - if(!valueItemsDBCluster["LockReason"].isNull()) - itemsObject.lockReason = valueItemsDBCluster["LockReason"].asString(); if(!valueItemsDBCluster["CreateTime"].isNull()) itemsObject.createTime = valueItemsDBCluster["CreateTime"].asString(); + if(!valueItemsDBCluster["PayType"].isNull()) + itemsObject.payType = valueItemsDBCluster["PayType"].asString(); + if(!valueItemsDBCluster["DiskType"].isNull()) + itemsObject.diskType = valueItemsDBCluster["DiskType"].asString(); + if(!valueItemsDBCluster["Mode"].isNull()) + itemsObject.mode = valueItemsDBCluster["Mode"].asString(); + if(!valueItemsDBCluster["Port"].isNull()) + itemsObject.port = valueItemsDBCluster["Port"].asString(); + if(!valueItemsDBCluster["LockMode"].isNull()) + itemsObject.lockMode = valueItemsDBCluster["LockMode"].asString(); + if(!valueItemsDBCluster["StorageResource"].isNull()) + itemsObject.storageResource = valueItemsDBCluster["StorageResource"].asString(); + if(!valueItemsDBCluster["ExecutorCount"].isNull()) + itemsObject.executorCount = valueItemsDBCluster["ExecutorCount"].asString(); + if(!valueItemsDBCluster["DBClusterId"].isNull()) + itemsObject.dBClusterId = valueItemsDBCluster["DBClusterId"].asString(); + if(!valueItemsDBCluster["ConnectionString"].isNull()) + itemsObject.connectionString = valueItemsDBCluster["ConnectionString"].asString(); + if(!valueItemsDBCluster["RdsInstanceId"].isNull()) + itemsObject.rdsInstanceId = valueItemsDBCluster["RdsInstanceId"].asString(); + if(!valueItemsDBCluster["DBClusterType"].isNull()) + itemsObject.dBClusterType = valueItemsDBCluster["DBClusterType"].asString(); + if(!valueItemsDBCluster["CommodityCode"].isNull()) + itemsObject.commodityCode = valueItemsDBCluster["CommodityCode"].asString(); + if(!valueItemsDBCluster["ExpireTime"].isNull()) + itemsObject.expireTime = valueItemsDBCluster["ExpireTime"].asString(); if(!valueItemsDBCluster["DBNodeStorage"].isNull()) itemsObject.dBNodeStorage = std::stol(valueItemsDBCluster["DBNodeStorage"].asString()); if(!valueItemsDBCluster["DBNodeClass"].isNull()) itemsObject.dBNodeClass = valueItemsDBCluster["DBNodeClass"].asString(); - if(!valueItemsDBCluster["DBNodeCount"].isNull()) - itemsObject.dBNodeCount = std::stol(valueItemsDBCluster["DBNodeCount"].asString()); - if(!valueItemsDBCluster["CommodityCode"].isNull()) - itemsObject.commodityCode = valueItemsDBCluster["CommodityCode"].asString(); - if(!valueItemsDBCluster["Category"].isNull()) - itemsObject.category = valueItemsDBCluster["Category"].asString(); - if(!valueItemsDBCluster["RdsInstanceId"].isNull()) - itemsObject.rdsInstanceId = valueItemsDBCluster["RdsInstanceId"].asString(); - if(!valueItemsDBCluster["DtsJobId"].isNull()) - itemsObject.dtsJobId = valueItemsDBCluster["DtsJobId"].asString(); - if(!valueItemsDBCluster["ExecutorCount"].isNull()) - itemsObject.executorCount = valueItemsDBCluster["ExecutorCount"].asString(); - if(!valueItemsDBCluster["DiskType"].isNull()) - itemsObject.diskType = valueItemsDBCluster["DiskType"].asString(); - if(!valueItemsDBCluster["VPCCloudInstanceId"].isNull()) - itemsObject.vPCCloudInstanceId = valueItemsDBCluster["VPCCloudInstanceId"].asString(); - if(!valueItemsDBCluster["Engine"].isNull()) - itemsObject.engine = valueItemsDBCluster["Engine"].asString(); - if(!valueItemsDBCluster["DBClusterNetworkType"].isNull()) - itemsObject.dBClusterNetworkType = valueItemsDBCluster["DBClusterNetworkType"].asString(); + if(!valueItemsDBCluster["LockReason"].isNull()) + itemsObject.lockReason = valueItemsDBCluster["LockReason"].asString(); if(!valueItemsDBCluster["VPCId"].isNull()) itemsObject.vPCId = valueItemsDBCluster["VPCId"].asString(); - if(!valueItemsDBCluster["VSwitchId"].isNull()) - itemsObject.vSwitchId = valueItemsDBCluster["VSwitchId"].asString(); - if(!valueItemsDBCluster["ZoneId"].isNull()) - itemsObject.zoneId = valueItemsDBCluster["ZoneId"].asString(); - if(!valueItemsDBCluster["ConnectionString"].isNull()) - itemsObject.connectionString = valueItemsDBCluster["ConnectionString"].asString(); - if(!valueItemsDBCluster["Port"].isNull()) - itemsObject.port = valueItemsDBCluster["Port"].asString(); + if(!valueItemsDBCluster["RegionId"].isNull()) + itemsObject.regionId = valueItemsDBCluster["RegionId"].asString(); if(!valueItemsDBCluster["ComputeResource"].isNull()) itemsObject.computeResource = valueItemsDBCluster["ComputeResource"].asString(); - if(!valueItemsDBCluster["StorageResource"].isNull()) - itemsObject.storageResource = valueItemsDBCluster["StorageResource"].asString(); - if(!valueItemsDBCluster["Mode"].isNull()) - itemsObject.mode = valueItemsDBCluster["Mode"].asString(); - if(!valueItemsDBCluster["ResourceGroupId"].isNull()) - itemsObject.resourceGroupId = valueItemsDBCluster["ResourceGroupId"].asString(); if(!valueItemsDBCluster["ElasticIOResource"].isNull()) itemsObject.elasticIOResource = std::stoi(valueItemsDBCluster["ElasticIOResource"].asString()); + if(!valueItemsDBCluster["VSwitchId"].isNull()) + itemsObject.vSwitchId = valueItemsDBCluster["VSwitchId"].asString(); + if(!valueItemsDBCluster["DBVersion"].isNull()) + itemsObject.dBVersion = valueItemsDBCluster["DBVersion"].asString(); + if(!valueItemsDBCluster["VPCCloudInstanceId"].isNull()) + itemsObject.vPCCloudInstanceId = valueItemsDBCluster["VPCCloudInstanceId"].asString(); + if(!valueItemsDBCluster["DBClusterStatus"].isNull()) + itemsObject.dBClusterStatus = valueItemsDBCluster["DBClusterStatus"].asString(); + if(!valueItemsDBCluster["ResourceGroupId"].isNull()) + itemsObject.resourceGroupId = valueItemsDBCluster["ResourceGroupId"].asString(); + if(!valueItemsDBCluster["DBClusterNetworkType"].isNull()) + itemsObject.dBClusterNetworkType = valueItemsDBCluster["DBClusterNetworkType"].asString(); + if(!valueItemsDBCluster["DBClusterDescription"].isNull()) + itemsObject.dBClusterDescription = valueItemsDBCluster["DBClusterDescription"].asString(); + if(!valueItemsDBCluster["ZoneId"].isNull()) + itemsObject.zoneId = valueItemsDBCluster["ZoneId"].asString(); + if(!valueItemsDBCluster["Category"].isNull()) + itemsObject.category = valueItemsDBCluster["Category"].asString(); + if(!valueItemsDBCluster["Engine"].isNull()) + itemsObject.engine = valueItemsDBCluster["Engine"].asString(); auto allTagsNode = valueItemsDBCluster["Tags"]["Tag"]; for (auto valueItemsDBClusterTagsTag : allTagsNode) { @@ -123,12 +123,12 @@ void DescribeDBClustersResult::parse(const std::string &payload) } items_.push_back(itemsObject); } - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["TotalCount"].isNull()) totalCount_ = std::stoi(value["TotalCount"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); } diff --git a/adb/src/model/DescribeDBResourceGroupRequest.cc b/adb/src/model/DescribeDBResourceGroupRequest.cc new file mode 100644 index 000000000..37e493cfa --- /dev/null +++ b/adb/src/model/DescribeDBResourceGroupRequest.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::Adb::Model::DescribeDBResourceGroupRequest; + +DescribeDBResourceGroupRequest::DescribeDBResourceGroupRequest() + : RpcServiceRequest("adb", "2019-03-15", "DescribeDBResourceGroup") { + setMethod(HttpRequest::Method::Post); +} + +DescribeDBResourceGroupRequest::~DescribeDBResourceGroupRequest() {} + +long DescribeDBResourceGroupRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeDBResourceGroupRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribeDBResourceGroupRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeDBResourceGroupRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribeDBResourceGroupRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeDBResourceGroupRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeDBResourceGroupRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DescribeDBResourceGroupRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string DescribeDBResourceGroupRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeDBResourceGroupRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeDBResourceGroupRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeDBResourceGroupRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DescribeDBResourceGroupRequest::getGroupName() const { + return groupName_; +} + +void DescribeDBResourceGroupRequest::setGroupName(const std::string &groupName) { + groupName_ = groupName; + setParameter(std::string("GroupName"), groupName); +} + diff --git a/adb/src/model/DescribeDBResourceGroupResult.cc b/adb/src/model/DescribeDBResourceGroupResult.cc new file mode 100644 index 000000000..3f484bfa7 --- /dev/null +++ b/adb/src/model/DescribeDBResourceGroupResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Adb; +using namespace AlibabaCloud::Adb::Model; + +DescribeDBResourceGroupResult::DescribeDBResourceGroupResult() : + ServiceResult() +{} + +DescribeDBResourceGroupResult::DescribeDBResourceGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDBResourceGroupResult::~DescribeDBResourceGroupResult() +{} + +void DescribeDBResourceGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allGroupsInfoNode = value["GroupsInfo"]["PoolInfo"]; + for (auto valueGroupsInfoPoolInfo : allGroupsInfoNode) + { + PoolInfo groupsInfoObject; + if(!valueGroupsInfoPoolInfo["GroupType"].isNull()) + groupsInfoObject.groupType = valueGroupsInfoPoolInfo["GroupType"].asString(); + if(!valueGroupsInfoPoolInfo["UpdateTime"].isNull()) + groupsInfoObject.updateTime = valueGroupsInfoPoolInfo["UpdateTime"].asString(); + if(!valueGroupsInfoPoolInfo["GroupName"].isNull()) + groupsInfoObject.groupName = valueGroupsInfoPoolInfo["GroupName"].asString(); + if(!valueGroupsInfoPoolInfo["CreateTime"].isNull()) + groupsInfoObject.createTime = valueGroupsInfoPoolInfo["CreateTime"].asString(); + if(!valueGroupsInfoPoolInfo["GroupUsers"].isNull()) + groupsInfoObject.groupUsers = valueGroupsInfoPoolInfo["GroupUsers"].asString(); + if(!valueGroupsInfoPoolInfo["NodeNum"].isNull()) + groupsInfoObject.nodeNum = std::stoi(valueGroupsInfoPoolInfo["NodeNum"].asString()); + groupsInfo_.push_back(groupsInfoObject); + } + +} + +std::vector DescribeDBResourceGroupResult::getGroupsInfo()const +{ + return groupsInfo_; +} + diff --git a/adb/src/model/DescribeDBResourcePoolRequest.cc b/adb/src/model/DescribeDBResourcePoolRequest.cc index 8065c0b87..449f29a25 100644 --- a/adb/src/model/DescribeDBResourcePoolRequest.cc +++ b/adb/src/model/DescribeDBResourcePoolRequest.cc @@ -1,106 +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::Adb::Model::DescribeDBResourcePoolRequest; - -DescribeDBResourcePoolRequest::DescribeDBResourcePoolRequest() : - RpcServiceRequest("adb", "2019-03-15", "DescribeDBResourcePool") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeDBResourcePoolRequest::~DescribeDBResourcePoolRequest() -{} - -std::string DescribeDBResourcePoolRequest::getPoolName()const -{ - return poolName_; + */ + +#include + +using AlibabaCloud::Adb::Model::DescribeDBResourcePoolRequest; + +DescribeDBResourcePoolRequest::DescribeDBResourcePoolRequest() + : RpcServiceRequest("adb", "2019-03-15", "DescribeDBResourcePool") { + setMethod(HttpRequest::Method::Post); } -void DescribeDBResourcePoolRequest::setPoolName(const std::string& poolName) -{ - poolName_ = poolName; - setParameter("PoolName", poolName); +DescribeDBResourcePoolRequest::~DescribeDBResourcePoolRequest() {} + +std::string DescribeDBResourcePoolRequest::getPoolName() const { + return poolName_; } -long DescribeDBResourcePoolRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void DescribeDBResourcePoolRequest::setPoolName(const std::string &poolName) { + poolName_ = poolName; + setParameter(std::string("PoolName"), poolName); } -void DescribeDBResourcePoolRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long DescribeDBResourcePoolRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeDBResourcePoolRequest::getAccessKeyId()const -{ - return accessKeyId_; +void DescribeDBResourcePoolRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeDBResourcePoolRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string DescribeDBResourcePoolRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string DescribeDBResourcePoolRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeDBResourcePoolRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void DescribeDBResourcePoolRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeDBResourcePoolRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeDBResourcePoolRequest::getDBClusterId()const -{ - return dBClusterId_; +void DescribeDBResourcePoolRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeDBResourcePoolRequest::setDBClusterId(const std::string& dBClusterId) -{ - dBClusterId_ = dBClusterId; - setParameter("DBClusterId", dBClusterId); +std::string DescribeDBResourcePoolRequest::getDBClusterId() const { + return dBClusterId_; } -std::string DescribeDBResourcePoolRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeDBResourcePoolRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); } -void DescribeDBResourcePoolRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeDBResourcePoolRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeDBResourcePoolRequest::getOwnerId()const -{ - return ownerId_; +void DescribeDBResourcePoolRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeDBResourcePoolRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeDBResourcePoolRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeDBResourcePoolRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/adb/src/model/DescribeDBResourcePoolResult.cc b/adb/src/model/DescribeDBResourcePoolResult.cc index 9b4c95fa0..038e27c6d 100644 --- a/adb/src/model/DescribeDBResourcePoolResult.cc +++ b/adb/src/model/DescribeDBResourcePoolResult.cc @@ -43,18 +43,18 @@ void DescribeDBResourcePoolResult::parse(const std::string &payload) for (auto valuePoolsInfoPoolInfo : allPoolsInfoNode) { PoolInfo poolsInfoObject; - if(!valuePoolsInfoPoolInfo["PoolName"].isNull()) - poolsInfoObject.poolName = valuePoolsInfoPoolInfo["PoolName"].asString(); if(!valuePoolsInfoPoolInfo["QueryType"].isNull()) poolsInfoObject.queryType = valuePoolsInfoPoolInfo["QueryType"].asString(); - if(!valuePoolsInfoPoolInfo["NodeNum"].isNull()) - poolsInfoObject.nodeNum = std::stoi(valuePoolsInfoPoolInfo["NodeNum"].asString()); - if(!valuePoolsInfoPoolInfo["PoolUsers"].isNull()) - poolsInfoObject.poolUsers = valuePoolsInfoPoolInfo["PoolUsers"].asString(); - if(!valuePoolsInfoPoolInfo["CreateTime"].isNull()) - poolsInfoObject.createTime = valuePoolsInfoPoolInfo["CreateTime"].asString(); if(!valuePoolsInfoPoolInfo["UpdateTime"].isNull()) poolsInfoObject.updateTime = valuePoolsInfoPoolInfo["UpdateTime"].asString(); + if(!valuePoolsInfoPoolInfo["PoolName"].isNull()) + poolsInfoObject.poolName = valuePoolsInfoPoolInfo["PoolName"].asString(); + if(!valuePoolsInfoPoolInfo["CreateTime"].isNull()) + poolsInfoObject.createTime = valuePoolsInfoPoolInfo["CreateTime"].asString(); + if(!valuePoolsInfoPoolInfo["PoolUsers"].isNull()) + poolsInfoObject.poolUsers = valuePoolsInfoPoolInfo["PoolUsers"].asString(); + if(!valuePoolsInfoPoolInfo["NodeNum"].isNull()) + poolsInfoObject.nodeNum = std::stoi(valuePoolsInfoPoolInfo["NodeNum"].asString()); poolsInfo_.push_back(poolsInfoObject); } diff --git a/adb/src/model/DescribeDiagnosisDimensionsRequest.cc b/adb/src/model/DescribeDiagnosisDimensionsRequest.cc new file mode 100644 index 000000000..65c5aca5b --- /dev/null +++ b/adb/src/model/DescribeDiagnosisDimensionsRequest.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::Adb::Model::DescribeDiagnosisDimensionsRequest; + +DescribeDiagnosisDimensionsRequest::DescribeDiagnosisDimensionsRequest() + : RpcServiceRequest("adb", "2019-03-15", "DescribeDiagnosisDimensions") { + setMethod(HttpRequest::Method::Post); +} + +DescribeDiagnosisDimensionsRequest::~DescribeDiagnosisDimensionsRequest() {} + +std::string DescribeDiagnosisDimensionsRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DescribeDiagnosisDimensionsRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string DescribeDiagnosisDimensionsRequest::getQueryCondition() const { + return queryCondition_; +} + +void DescribeDiagnosisDimensionsRequest::setQueryCondition(const std::string &queryCondition) { + queryCondition_ = queryCondition; + setParameter(std::string("QueryCondition"), queryCondition); +} + +std::string DescribeDiagnosisDimensionsRequest::getEndTime() const { + return endTime_; +} + +void DescribeDiagnosisDimensionsRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); +} + +std::string DescribeDiagnosisDimensionsRequest::getStartTime() const { + return startTime_; +} + +void DescribeDiagnosisDimensionsRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); +} + +std::string DescribeDiagnosisDimensionsRequest::getRegionId() const { + return regionId_; +} + +void DescribeDiagnosisDimensionsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DescribeDiagnosisDimensionsRequest::getLang() const { + return lang_; +} + +void DescribeDiagnosisDimensionsRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); +} + diff --git a/adb/src/model/DescribeDiagnosisDimensionsResult.cc b/adb/src/model/DescribeDiagnosisDimensionsResult.cc new file mode 100644 index 000000000..0bb079869 --- /dev/null +++ b/adb/src/model/DescribeDiagnosisDimensionsResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Adb; +using namespace AlibabaCloud::Adb::Model; + +DescribeDiagnosisDimensionsResult::DescribeDiagnosisDimensionsResult() : + ServiceResult() +{} + +DescribeDiagnosisDimensionsResult::DescribeDiagnosisDimensionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDiagnosisDimensionsResult::~DescribeDiagnosisDimensionsResult() +{} + +void DescribeDiagnosisDimensionsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allClientIps = value["ClientIps"]["ClientIps"]; + for (const auto &item : allClientIps) + clientIps_.push_back(item.asString()); + auto allResourceGroups = value["ResourceGroups"]["ResourceGroups"]; + for (const auto &item : allResourceGroups) + resourceGroups_.push_back(item.asString()); + auto allUserNames = value["UserNames"]["UserNames"]; + for (const auto &item : allUserNames) + userNames_.push_back(item.asString()); + auto allDatabases = value["Databases"]["Databases"]; + for (const auto &item : allDatabases) + databases_.push_back(item.asString()); + +} + +std::vector DescribeDiagnosisDimensionsResult::getClientIps()const +{ + return clientIps_; +} + +std::vector DescribeDiagnosisDimensionsResult::getDatabases()const +{ + return databases_; +} + +std::vector DescribeDiagnosisDimensionsResult::getResourceGroups()const +{ + return resourceGroups_; +} + +std::vector DescribeDiagnosisDimensionsResult::getUserNames()const +{ + return userNames_; +} + diff --git a/adb/src/model/DescribeDiagnosisRecordsRequest.cc b/adb/src/model/DescribeDiagnosisRecordsRequest.cc new file mode 100644 index 000000000..fb65b22ad --- /dev/null +++ b/adb/src/model/DescribeDiagnosisRecordsRequest.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::Adb::Model::DescribeDiagnosisRecordsRequest; + +DescribeDiagnosisRecordsRequest::DescribeDiagnosisRecordsRequest() + : RpcServiceRequest("adb", "2019-03-15", "DescribeDiagnosisRecords") { + setMethod(HttpRequest::Method::Post); +} + +DescribeDiagnosisRecordsRequest::~DescribeDiagnosisRecordsRequest() {} + +std::string DescribeDiagnosisRecordsRequest::getQueryCondition() const { + return queryCondition_; +} + +void DescribeDiagnosisRecordsRequest::setQueryCondition(const std::string &queryCondition) { + queryCondition_ = queryCondition; + setParameter(std::string("QueryCondition"), queryCondition); +} + +std::string DescribeDiagnosisRecordsRequest::getStartTime() const { + return startTime_; +} + +void DescribeDiagnosisRecordsRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); +} + +std::string DescribeDiagnosisRecordsRequest::getRawStartTime() const { + return rawStartTime_; +} + +void DescribeDiagnosisRecordsRequest::setRawStartTime(const std::string &rawStartTime) { + rawStartTime_ = rawStartTime; + setParameter(std::string("RawStartTime"), rawStartTime); +} + +int DescribeDiagnosisRecordsRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeDiagnosisRecordsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string DescribeDiagnosisRecordsRequest::getRawEndTime() const { + return rawEndTime_; +} + +void DescribeDiagnosisRecordsRequest::setRawEndTime(const std::string &rawEndTime) { + rawEndTime_ = rawEndTime; + setParameter(std::string("RawEndTime"), rawEndTime); +} + +std::string DescribeDiagnosisRecordsRequest::getDatabase() const { + return database_; +} + +void DescribeDiagnosisRecordsRequest::setDatabase(const std::string &database) { + database_ = database; + setParameter(std::string("Database"), database); +} + +std::string DescribeDiagnosisRecordsRequest::getRegionId() const { + return regionId_; +} + +void DescribeDiagnosisRecordsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DescribeDiagnosisRecordsRequest::getClientIp() const { + return clientIp_; +} + +void DescribeDiagnosisRecordsRequest::setClientIp(const std::string &clientIp) { + clientIp_ = clientIp; + setParameter(std::string("ClientIp"), clientIp); +} + +int DescribeDiagnosisRecordsRequest::getPageSize() const { + return pageSize_; +} + +void DescribeDiagnosisRecordsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string DescribeDiagnosisRecordsRequest::getKeyword() const { + return keyword_; +} + +void DescribeDiagnosisRecordsRequest::setKeyword(const std::string &keyword) { + keyword_ = keyword; + setParameter(std::string("Keyword"), keyword); +} + +std::string DescribeDiagnosisRecordsRequest::getLang() const { + return lang_; +} + +void DescribeDiagnosisRecordsRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); +} + +std::string DescribeDiagnosisRecordsRequest::getOrder() const { + return order_; +} + +void DescribeDiagnosisRecordsRequest::setOrder(const std::string &order) { + order_ = order; + setParameter(std::string("Order"), order); +} + +long DescribeDiagnosisRecordsRequest::getMaxScanSize() const { + return maxScanSize_; +} + +void DescribeDiagnosisRecordsRequest::setMaxScanSize(long maxScanSize) { + maxScanSize_ = maxScanSize; + setParameter(std::string("MaxScanSize"), std::to_string(maxScanSize)); +} + +std::string DescribeDiagnosisRecordsRequest::getResourceGroup() const { + return resourceGroup_; +} + +void DescribeDiagnosisRecordsRequest::setResourceGroup(const std::string &resourceGroup) { + resourceGroup_ = resourceGroup; + setParameter(std::string("ResourceGroup"), resourceGroup); +} + +std::string DescribeDiagnosisRecordsRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DescribeDiagnosisRecordsRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +long DescribeDiagnosisRecordsRequest::getPatternId() const { + return patternId_; +} + +void DescribeDiagnosisRecordsRequest::setPatternId(long patternId) { + patternId_ = patternId; + setParameter(std::string("PatternId"), std::to_string(patternId)); +} + +std::string DescribeDiagnosisRecordsRequest::getEndTime() const { + return endTime_; +} + +void DescribeDiagnosisRecordsRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); +} + +long DescribeDiagnosisRecordsRequest::getMinPeakMemory() const { + return minPeakMemory_; +} + +void DescribeDiagnosisRecordsRequest::setMinPeakMemory(long minPeakMemory) { + minPeakMemory_ = minPeakMemory; + setParameter(std::string("MinPeakMemory"), std::to_string(minPeakMemory)); +} + +long DescribeDiagnosisRecordsRequest::getMinScanSize() const { + return minScanSize_; +} + +void DescribeDiagnosisRecordsRequest::setMinScanSize(long minScanSize) { + minScanSize_ = minScanSize; + setParameter(std::string("MinScanSize"), std::to_string(minScanSize)); +} + +long DescribeDiagnosisRecordsRequest::getMaxPeakMemory() const { + return maxPeakMemory_; +} + +void DescribeDiagnosisRecordsRequest::setMaxPeakMemory(long maxPeakMemory) { + maxPeakMemory_ = maxPeakMemory; + setParameter(std::string("MaxPeakMemory"), std::to_string(maxPeakMemory)); +} + +std::string DescribeDiagnosisRecordsRequest::getUserName() const { + return userName_; +} + +void DescribeDiagnosisRecordsRequest::setUserName(const std::string &userName) { + userName_ = userName; + setParameter(std::string("UserName"), userName); +} + diff --git a/adb/src/model/DescribeDiagnosisRecordsResult.cc b/adb/src/model/DescribeDiagnosisRecordsResult.cc new file mode 100644 index 000000000..5a7f5550a --- /dev/null +++ b/adb/src/model/DescribeDiagnosisRecordsResult.cc @@ -0,0 +1,122 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Adb; +using namespace AlibabaCloud::Adb::Model; + +DescribeDiagnosisRecordsResult::DescribeDiagnosisRecordsResult() : + ServiceResult() +{} + +DescribeDiagnosisRecordsResult::DescribeDiagnosisRecordsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDiagnosisRecordsResult::~DescribeDiagnosisRecordsResult() +{} + +void DescribeDiagnosisRecordsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allQuerysNode = value["Querys"]["Items"]; + for (auto valueQuerysItems : allQuerysNode) + { + Items querysObject; + if(!valueQuerysItems["SQL"].isNull()) + querysObject.sQL = valueQuerysItems["SQL"].asString(); + if(!valueQuerysItems["SQLTruncatedThreshold"].isNull()) + querysObject.sQLTruncatedThreshold = std::stol(valueQuerysItems["SQLTruncatedThreshold"].asString()); + if(!valueQuerysItems["Status"].isNull()) + querysObject.status = valueQuerysItems["Status"].asString(); + if(!valueQuerysItems["OutputDataSize"].isNull()) + querysObject.outputDataSize = std::stol(valueQuerysItems["OutputDataSize"].asString()); + if(!valueQuerysItems["Cost"].isNull()) + querysObject.cost = std::stol(valueQuerysItems["Cost"].asString()); + if(!valueQuerysItems["OutputRows"].isNull()) + querysObject.outputRows = std::stol(valueQuerysItems["OutputRows"].asString()); + if(!valueQuerysItems["RcHost"].isNull()) + querysObject.rcHost = valueQuerysItems["RcHost"].asString(); + if(!valueQuerysItems["ScanSize"].isNull()) + querysObject.scanSize = std::stol(valueQuerysItems["ScanSize"].asString()); + if(!valueQuerysItems["ProcessId"].isNull()) + querysObject.processId = valueQuerysItems["ProcessId"].asString(); + if(!valueQuerysItems["StartTime"].isNull()) + querysObject.startTime = std::stol(valueQuerysItems["StartTime"].asString()); + if(!valueQuerysItems["SQLTruncated"].isNull()) + querysObject.sQLTruncated = valueQuerysItems["SQLTruncated"].asString() == "true"; + if(!valueQuerysItems["Database"].isNull()) + querysObject.database = valueQuerysItems["Database"].asString(); + if(!valueQuerysItems["ScanRows"].isNull()) + querysObject.scanRows = std::stol(valueQuerysItems["ScanRows"].asString()); + if(!valueQuerysItems["ResourceCostRank"].isNull()) + querysObject.resourceCostRank = std::stoi(valueQuerysItems["ResourceCostRank"].asString()); + if(!valueQuerysItems["ClientIp"].isNull()) + querysObject.clientIp = valueQuerysItems["ClientIp"].asString(); + if(!valueQuerysItems["PeakMemory"].isNull()) + querysObject.peakMemory = std::stol(valueQuerysItems["PeakMemory"].asString()); + if(!valueQuerysItems["QueueTime"].isNull()) + querysObject.queueTime = std::stol(valueQuerysItems["QueueTime"].asString()); + if(!valueQuerysItems["ResourceGroup"].isNull()) + querysObject.resourceGroup = valueQuerysItems["ResourceGroup"].asString(); + if(!valueQuerysItems["UserName"].isNull()) + querysObject.userName = valueQuerysItems["UserName"].asString(); + if(!valueQuerysItems["ExecutionTime"].isNull()) + querysObject.executionTime = std::stol(valueQuerysItems["ExecutionTime"].asString()); + if(!valueQuerysItems["TotalPlanningTime"].isNull()) + querysObject.totalPlanningTime = std::stol(valueQuerysItems["TotalPlanningTime"].asString()); + if(!valueQuerysItems["EtlWriteRows"].isNull()) + querysObject.etlWriteRows = std::stol(valueQuerysItems["EtlWriteRows"].asString()); + if(!valueQuerysItems["TotalStages"].isNull()) + querysObject.totalStages = std::stoi(valueQuerysItems["TotalStages"].asString()); + querys_.push_back(querysObject); + } + 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 DescribeDiagnosisRecordsResult::getTotalCount()const +{ + return totalCount_; +} + +std::vector DescribeDiagnosisRecordsResult::getQuerys()const +{ + return querys_; +} + +int DescribeDiagnosisRecordsResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeDiagnosisRecordsResult::getPageNumber()const +{ + return pageNumber_; +} + diff --git a/adb/src/model/DescribeDownloadRecordsRequest.cc b/adb/src/model/DescribeDownloadRecordsRequest.cc new file mode 100644 index 000000000..7a6e561fa --- /dev/null +++ b/adb/src/model/DescribeDownloadRecordsRequest.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::Adb::Model::DescribeDownloadRecordsRequest; + +DescribeDownloadRecordsRequest::DescribeDownloadRecordsRequest() + : RpcServiceRequest("adb", "2019-03-15", "DescribeDownloadRecords") { + setMethod(HttpRequest::Method::Post); +} + +DescribeDownloadRecordsRequest::~DescribeDownloadRecordsRequest() {} + +std::string DescribeDownloadRecordsRequest::getRegionId() const { + return regionId_; +} + +void DescribeDownloadRecordsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DescribeDownloadRecordsRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DescribeDownloadRecordsRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string DescribeDownloadRecordsRequest::getLang() const { + return lang_; +} + +void DescribeDownloadRecordsRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); +} + diff --git a/adb/src/model/DescribeDownloadRecordsResult.cc b/adb/src/model/DescribeDownloadRecordsResult.cc new file mode 100644 index 000000000..4b748dfd3 --- /dev/null +++ b/adb/src/model/DescribeDownloadRecordsResult.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::Adb; +using namespace AlibabaCloud::Adb::Model; + +DescribeDownloadRecordsResult::DescribeDownloadRecordsResult() : + ServiceResult() +{} + +DescribeDownloadRecordsResult::DescribeDownloadRecordsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDownloadRecordsResult::~DescribeDownloadRecordsResult() +{} + +void DescribeDownloadRecordsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allRecordsNode = value["Records"]["Items"]; + for (auto valueRecordsItems : allRecordsNode) + { + Items recordsObject; + if(!valueRecordsItems["Status"].isNull()) + recordsObject.status = valueRecordsItems["Status"].asString(); + if(!valueRecordsItems["DownloadId"].isNull()) + recordsObject.downloadId = std::stol(valueRecordsItems["DownloadId"].asString()); + if(!valueRecordsItems["ExceptionMsg"].isNull()) + recordsObject.exceptionMsg = valueRecordsItems["ExceptionMsg"].asString(); + if(!valueRecordsItems["Url"].isNull()) + recordsObject.url = valueRecordsItems["Url"].asString(); + if(!valueRecordsItems["FileName"].isNull()) + recordsObject.fileName = valueRecordsItems["FileName"].asString(); + records_.push_back(recordsObject); + } + +} + +std::vector DescribeDownloadRecordsResult::getRecords()const +{ + return records_; +} + diff --git a/adb/src/model/DescribeElasticDailyPlanRequest.cc b/adb/src/model/DescribeElasticDailyPlanRequest.cc index dfc2311bf..f1bd2c694 100644 --- a/adb/src/model/DescribeElasticDailyPlanRequest.cc +++ b/adb/src/model/DescribeElasticDailyPlanRequest.cc @@ -1,139 +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::Adb::Model::DescribeElasticDailyPlanRequest; - -DescribeElasticDailyPlanRequest::DescribeElasticDailyPlanRequest() : - RpcServiceRequest("adb", "2019-03-15", "DescribeElasticDailyPlan") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeElasticDailyPlanRequest::~DescribeElasticDailyPlanRequest() -{} - -long DescribeElasticDailyPlanRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Adb::Model::DescribeElasticDailyPlanRequest; + +DescribeElasticDailyPlanRequest::DescribeElasticDailyPlanRequest() + : RpcServiceRequest("adb", "2019-03-15", "DescribeElasticDailyPlan") { + setMethod(HttpRequest::Method::Post); } -void DescribeElasticDailyPlanRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeElasticDailyPlanRequest::~DescribeElasticDailyPlanRequest() {} + +long DescribeElasticDailyPlanRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeElasticDailyPlanRequest::getElasticDailyPlanStatusList()const -{ - return elasticDailyPlanStatusList_; +void DescribeElasticDailyPlanRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeElasticDailyPlanRequest::setElasticDailyPlanStatusList(const std::string& elasticDailyPlanStatusList) -{ - elasticDailyPlanStatusList_ = elasticDailyPlanStatusList; - setParameter("ElasticDailyPlanStatusList", elasticDailyPlanStatusList); +std::string DescribeElasticDailyPlanRequest::getElasticDailyPlanStatusList() const { + return elasticDailyPlanStatusList_; } -std::string DescribeElasticDailyPlanRequest::getAccessKeyId()const -{ - return accessKeyId_; +void DescribeElasticDailyPlanRequest::setElasticDailyPlanStatusList(const std::string &elasticDailyPlanStatusList) { + elasticDailyPlanStatusList_ = elasticDailyPlanStatusList; + setParameter(std::string("ElasticDailyPlanStatusList"), elasticDailyPlanStatusList); } -void DescribeElasticDailyPlanRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string DescribeElasticDailyPlanRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string DescribeElasticDailyPlanRequest::getElasticDailyPlanDay()const -{ - return elasticDailyPlanDay_; +void DescribeElasticDailyPlanRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void DescribeElasticDailyPlanRequest::setElasticDailyPlanDay(const std::string& elasticDailyPlanDay) -{ - elasticDailyPlanDay_ = elasticDailyPlanDay; - setParameter("ElasticDailyPlanDay", elasticDailyPlanDay); +std::string DescribeElasticDailyPlanRequest::getElasticDailyPlanDay() const { + return elasticDailyPlanDay_; } -std::string DescribeElasticDailyPlanRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeElasticDailyPlanRequest::setElasticDailyPlanDay(const std::string &elasticDailyPlanDay) { + elasticDailyPlanDay_ = elasticDailyPlanDay; + setParameter(std::string("ElasticDailyPlanDay"), elasticDailyPlanDay); } -void DescribeElasticDailyPlanRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeElasticDailyPlanRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeElasticDailyPlanRequest::getDBClusterId()const -{ - return dBClusterId_; +void DescribeElasticDailyPlanRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeElasticDailyPlanRequest::setDBClusterId(const std::string& dBClusterId) -{ - dBClusterId_ = dBClusterId; - setParameter("DBClusterId", dBClusterId); +std::string DescribeElasticDailyPlanRequest::getDBClusterId() const { + return dBClusterId_; } -std::string DescribeElasticDailyPlanRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeElasticDailyPlanRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); } -void DescribeElasticDailyPlanRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeElasticDailyPlanRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeElasticDailyPlanRequest::getOwnerId()const -{ - return ownerId_; +void DescribeElasticDailyPlanRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeElasticDailyPlanRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeElasticDailyPlanRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeElasticDailyPlanRequest::getElasticPlanName()const -{ - return elasticPlanName_; +void DescribeElasticDailyPlanRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeElasticDailyPlanRequest::setElasticPlanName(const std::string& elasticPlanName) -{ - elasticPlanName_ = elasticPlanName; - setParameter("ElasticPlanName", elasticPlanName); +std::string DescribeElasticDailyPlanRequest::getElasticPlanName() const { + return elasticPlanName_; } -std::string DescribeElasticDailyPlanRequest::getResourcePoolName()const -{ - return resourcePoolName_; +void DescribeElasticDailyPlanRequest::setElasticPlanName(const std::string &elasticPlanName) { + elasticPlanName_ = elasticPlanName; + setParameter(std::string("ElasticPlanName"), elasticPlanName); } -void DescribeElasticDailyPlanRequest::setResourcePoolName(const std::string& resourcePoolName) -{ - resourcePoolName_ = resourcePoolName; - setParameter("ResourcePoolName", resourcePoolName); +std::string DescribeElasticDailyPlanRequest::getResourcePoolName() const { + return resourcePoolName_; +} + +void DescribeElasticDailyPlanRequest::setResourcePoolName(const std::string &resourcePoolName) { + resourcePoolName_ = resourcePoolName; + setParameter(std::string("ResourcePoolName"), resourcePoolName); } diff --git a/adb/src/model/DescribeElasticDailyPlanResult.cc b/adb/src/model/DescribeElasticDailyPlanResult.cc index 38c05703b..ea2cb4277 100644 --- a/adb/src/model/DescribeElasticDailyPlanResult.cc +++ b/adb/src/model/DescribeElasticDailyPlanResult.cc @@ -43,24 +43,24 @@ void DescribeElasticDailyPlanResult::parse(const std::string &payload) for (auto valueElasticDailyPlanListElasticDailyPlanInfo : allElasticDailyPlanListNode) { ElasticDailyPlanInfo elasticDailyPlanListObject; - if(!valueElasticDailyPlanListElasticDailyPlanInfo["PlanName"].isNull()) - elasticDailyPlanListObject.planName = valueElasticDailyPlanListElasticDailyPlanInfo["PlanName"].asString(); - if(!valueElasticDailyPlanListElasticDailyPlanInfo["ResourcePoolName"].isNull()) - elasticDailyPlanListObject.resourcePoolName = valueElasticDailyPlanListElasticDailyPlanInfo["ResourcePoolName"].asString(); - if(!valueElasticDailyPlanListElasticDailyPlanInfo["ElasticNodeNum"].isNull()) - elasticDailyPlanListObject.elasticNodeNum = std::stoi(valueElasticDailyPlanListElasticDailyPlanInfo["ElasticNodeNum"].asString()); - if(!valueElasticDailyPlanListElasticDailyPlanInfo["PlanStartTs"].isNull()) - elasticDailyPlanListObject.planStartTs = valueElasticDailyPlanListElasticDailyPlanInfo["PlanStartTs"].asString(); - if(!valueElasticDailyPlanListElasticDailyPlanInfo["PlanEndTs"].isNull()) - elasticDailyPlanListObject.planEndTs = valueElasticDailyPlanListElasticDailyPlanInfo["PlanEndTs"].asString(); - if(!valueElasticDailyPlanListElasticDailyPlanInfo["StartTs"].isNull()) - elasticDailyPlanListObject.startTs = valueElasticDailyPlanListElasticDailyPlanInfo["StartTs"].asString(); - if(!valueElasticDailyPlanListElasticDailyPlanInfo["EndTs"].isNull()) - elasticDailyPlanListObject.endTs = valueElasticDailyPlanListElasticDailyPlanInfo["EndTs"].asString(); - if(!valueElasticDailyPlanListElasticDailyPlanInfo["Day"].isNull()) - elasticDailyPlanListObject.day = valueElasticDailyPlanListElasticDailyPlanInfo["Day"].asString(); if(!valueElasticDailyPlanListElasticDailyPlanInfo["Status"].isNull()) elasticDailyPlanListObject.status = std::stoi(valueElasticDailyPlanListElasticDailyPlanInfo["Status"].asString()); + if(!valueElasticDailyPlanListElasticDailyPlanInfo["Day"].isNull()) + elasticDailyPlanListObject.day = valueElasticDailyPlanListElasticDailyPlanInfo["Day"].asString(); + if(!valueElasticDailyPlanListElasticDailyPlanInfo["ResourcePoolName"].isNull()) + elasticDailyPlanListObject.resourcePoolName = valueElasticDailyPlanListElasticDailyPlanInfo["ResourcePoolName"].asString(); + if(!valueElasticDailyPlanListElasticDailyPlanInfo["StartTs"].isNull()) + elasticDailyPlanListObject.startTs = valueElasticDailyPlanListElasticDailyPlanInfo["StartTs"].asString(); + if(!valueElasticDailyPlanListElasticDailyPlanInfo["PlanEndTs"].isNull()) + elasticDailyPlanListObject.planEndTs = valueElasticDailyPlanListElasticDailyPlanInfo["PlanEndTs"].asString(); + if(!valueElasticDailyPlanListElasticDailyPlanInfo["PlanStartTs"].isNull()) + elasticDailyPlanListObject.planStartTs = valueElasticDailyPlanListElasticDailyPlanInfo["PlanStartTs"].asString(); + if(!valueElasticDailyPlanListElasticDailyPlanInfo["ElasticNodeNum"].isNull()) + elasticDailyPlanListObject.elasticNodeNum = std::stoi(valueElasticDailyPlanListElasticDailyPlanInfo["ElasticNodeNum"].asString()); + if(!valueElasticDailyPlanListElasticDailyPlanInfo["EndTs"].isNull()) + elasticDailyPlanListObject.endTs = valueElasticDailyPlanListElasticDailyPlanInfo["EndTs"].asString(); + if(!valueElasticDailyPlanListElasticDailyPlanInfo["PlanName"].isNull()) + elasticDailyPlanListObject.planName = valueElasticDailyPlanListElasticDailyPlanInfo["PlanName"].asString(); elasticDailyPlanList_.push_back(elasticDailyPlanListObject); } diff --git a/adb/src/model/DescribeElasticPlanRequest.cc b/adb/src/model/DescribeElasticPlanRequest.cc index 6187f50bb..83899ca19 100644 --- a/adb/src/model/DescribeElasticPlanRequest.cc +++ b/adb/src/model/DescribeElasticPlanRequest.cc @@ -1,128 +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::Adb::Model::DescribeElasticPlanRequest; - -DescribeElasticPlanRequest::DescribeElasticPlanRequest() : - RpcServiceRequest("adb", "2019-03-15", "DescribeElasticPlan") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeElasticPlanRequest::~DescribeElasticPlanRequest() -{} - -long DescribeElasticPlanRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Adb::Model::DescribeElasticPlanRequest; + +DescribeElasticPlanRequest::DescribeElasticPlanRequest() + : RpcServiceRequest("adb", "2019-03-15", "DescribeElasticPlan") { + setMethod(HttpRequest::Method::Post); } -void DescribeElasticPlanRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeElasticPlanRequest::~DescribeElasticPlanRequest() {} + +long DescribeElasticPlanRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeElasticPlanRequest::getAccessKeyId()const -{ - return accessKeyId_; +void DescribeElasticPlanRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeElasticPlanRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string DescribeElasticPlanRequest::getAccessKeyId() const { + return accessKeyId_; } -bool DescribeElasticPlanRequest::getElasticPlanEnable()const -{ - return elasticPlanEnable_; +void DescribeElasticPlanRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void DescribeElasticPlanRequest::setElasticPlanEnable(bool elasticPlanEnable) -{ - elasticPlanEnable_ = elasticPlanEnable; - setParameter("ElasticPlanEnable", elasticPlanEnable ? "true" : "false"); +bool DescribeElasticPlanRequest::getElasticPlanEnable() const { + return elasticPlanEnable_; } -std::string DescribeElasticPlanRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeElasticPlanRequest::setElasticPlanEnable(bool elasticPlanEnable) { + elasticPlanEnable_ = elasticPlanEnable; + setParameter(std::string("ElasticPlanEnable"), elasticPlanEnable ? "true" : "false"); } -void DescribeElasticPlanRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeElasticPlanRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeElasticPlanRequest::getDBClusterId()const -{ - return dBClusterId_; +void DescribeElasticPlanRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeElasticPlanRequest::setDBClusterId(const std::string& dBClusterId) -{ - dBClusterId_ = dBClusterId; - setParameter("DBClusterId", dBClusterId); +std::string DescribeElasticPlanRequest::getDBClusterId() const { + return dBClusterId_; } -std::string DescribeElasticPlanRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeElasticPlanRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); } -void DescribeElasticPlanRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeElasticPlanRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeElasticPlanRequest::getOwnerId()const -{ - return ownerId_; +void DescribeElasticPlanRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeElasticPlanRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeElasticPlanRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeElasticPlanRequest::getElasticPlanName()const -{ - return elasticPlanName_; +void DescribeElasticPlanRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeElasticPlanRequest::setElasticPlanName(const std::string& elasticPlanName) -{ - elasticPlanName_ = elasticPlanName; - setParameter("ElasticPlanName", elasticPlanName); +std::string DescribeElasticPlanRequest::getElasticPlanName() const { + return elasticPlanName_; } -std::string DescribeElasticPlanRequest::getResourcePoolName()const -{ - return resourcePoolName_; +void DescribeElasticPlanRequest::setElasticPlanName(const std::string &elasticPlanName) { + elasticPlanName_ = elasticPlanName; + setParameter(std::string("ElasticPlanName"), elasticPlanName); } -void DescribeElasticPlanRequest::setResourcePoolName(const std::string& resourcePoolName) -{ - resourcePoolName_ = resourcePoolName; - setParameter("ResourcePoolName", resourcePoolName); +std::string DescribeElasticPlanRequest::getResourcePoolName() const { + return resourcePoolName_; +} + +void DescribeElasticPlanRequest::setResourcePoolName(const std::string &resourcePoolName) { + resourcePoolName_ = resourcePoolName; + setParameter(std::string("ResourcePoolName"), resourcePoolName); } diff --git a/adb/src/model/DescribeElasticPlanResult.cc b/adb/src/model/DescribeElasticPlanResult.cc index 59955a149..f517290c4 100644 --- a/adb/src/model/DescribeElasticPlanResult.cc +++ b/adb/src/model/DescribeElasticPlanResult.cc @@ -43,24 +43,24 @@ void DescribeElasticPlanResult::parse(const std::string &payload) for (auto valueElasticPlanListElasticPlanInfo : allElasticPlanListNode) { ElasticPlanInfo elasticPlanListObject; - if(!valueElasticPlanListElasticPlanInfo["PlanName"].isNull()) - elasticPlanListObject.planName = valueElasticPlanListElasticPlanInfo["PlanName"].asString(); - if(!valueElasticPlanListElasticPlanInfo["ResourcePoolName"].isNull()) - elasticPlanListObject.resourcePoolName = valueElasticPlanListElasticPlanInfo["ResourcePoolName"].asString(); - if(!valueElasticPlanListElasticPlanInfo["ElasticNodeNum"].isNull()) - elasticPlanListObject.elasticNodeNum = std::stoi(valueElasticPlanListElasticPlanInfo["ElasticNodeNum"].asString()); - if(!valueElasticPlanListElasticPlanInfo["StartTime"].isNull()) - elasticPlanListObject.startTime = valueElasticPlanListElasticPlanInfo["StartTime"].asString(); if(!valueElasticPlanListElasticPlanInfo["EndTime"].isNull()) elasticPlanListObject.endTime = valueElasticPlanListElasticPlanInfo["EndTime"].asString(); if(!valueElasticPlanListElasticPlanInfo["WeeklyRepeat"].isNull()) elasticPlanListObject.weeklyRepeat = valueElasticPlanListElasticPlanInfo["WeeklyRepeat"].asString(); + if(!valueElasticPlanListElasticPlanInfo["StartTime"].isNull()) + elasticPlanListObject.startTime = valueElasticPlanListElasticPlanInfo["StartTime"].asString(); + if(!valueElasticPlanListElasticPlanInfo["ResourcePoolName"].isNull()) + elasticPlanListObject.resourcePoolName = valueElasticPlanListElasticPlanInfo["ResourcePoolName"].asString(); if(!valueElasticPlanListElasticPlanInfo["StartDay"].isNull()) elasticPlanListObject.startDay = valueElasticPlanListElasticPlanInfo["StartDay"].asString(); - if(!valueElasticPlanListElasticPlanInfo["EndDay"].isNull()) - elasticPlanListObject.endDay = valueElasticPlanListElasticPlanInfo["EndDay"].asString(); + if(!valueElasticPlanListElasticPlanInfo["ElasticNodeNum"].isNull()) + elasticPlanListObject.elasticNodeNum = std::stoi(valueElasticPlanListElasticPlanInfo["ElasticNodeNum"].asString()); if(!valueElasticPlanListElasticPlanInfo["Enable"].isNull()) elasticPlanListObject.enable = valueElasticPlanListElasticPlanInfo["Enable"].asString() == "true"; + if(!valueElasticPlanListElasticPlanInfo["EndDay"].isNull()) + elasticPlanListObject.endDay = valueElasticPlanListElasticPlanInfo["EndDay"].asString(); + if(!valueElasticPlanListElasticPlanInfo["PlanName"].isNull()) + elasticPlanListObject.planName = valueElasticPlanListElasticPlanInfo["PlanName"].asString(); elasticPlanList_.push_back(elasticPlanListObject); } diff --git a/adb/src/model/DescribeInclinedTablesRequest.cc b/adb/src/model/DescribeInclinedTablesRequest.cc index fc892d155..2a8fd54a6 100644 --- a/adb/src/model/DescribeInclinedTablesRequest.cc +++ b/adb/src/model/DescribeInclinedTablesRequest.cc @@ -1,139 +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::Adb::Model::DescribeInclinedTablesRequest; - -DescribeInclinedTablesRequest::DescribeInclinedTablesRequest() : - RpcServiceRequest("adb", "2019-03-15", "DescribeInclinedTables") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeInclinedTablesRequest::~DescribeInclinedTablesRequest() -{} - -std::string DescribeInclinedTablesRequest::getTableType()const -{ - return tableType_; + */ + +#include + +using AlibabaCloud::Adb::Model::DescribeInclinedTablesRequest; + +DescribeInclinedTablesRequest::DescribeInclinedTablesRequest() + : RpcServiceRequest("adb", "2019-03-15", "DescribeInclinedTables") { + setMethod(HttpRequest::Method::Post); } -void DescribeInclinedTablesRequest::setTableType(const std::string& tableType) -{ - tableType_ = tableType; - setParameter("TableType", tableType); +DescribeInclinedTablesRequest::~DescribeInclinedTablesRequest() {} + +std::string DescribeInclinedTablesRequest::getTableType() const { + return tableType_; } -long DescribeInclinedTablesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void DescribeInclinedTablesRequest::setTableType(const std::string &tableType) { + tableType_ = tableType; + setParameter(std::string("TableType"), tableType); } -void DescribeInclinedTablesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long DescribeInclinedTablesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -int DescribeInclinedTablesRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeInclinedTablesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeInclinedTablesRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeInclinedTablesRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeInclinedTablesRequest::getAccessKeyId()const -{ - return accessKeyId_; +void DescribeInclinedTablesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeInclinedTablesRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string DescribeInclinedTablesRequest::getAccessKeyId() const { + return accessKeyId_; } -int DescribeInclinedTablesRequest::getPageSize()const -{ - return pageSize_; +void DescribeInclinedTablesRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void DescribeInclinedTablesRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeInclinedTablesRequest::getPageSize() const { + return pageSize_; } -std::string DescribeInclinedTablesRequest::getOrder()const -{ - return order_; +void DescribeInclinedTablesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeInclinedTablesRequest::setOrder(const std::string& order) -{ - order_ = order; - setParameter("Order", order); +std::string DescribeInclinedTablesRequest::getOrder() const { + return order_; } -std::string DescribeInclinedTablesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeInclinedTablesRequest::setOrder(const std::string &order) { + order_ = order; + setParameter(std::string("Order"), order); } -void DescribeInclinedTablesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeInclinedTablesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeInclinedTablesRequest::getDBClusterId()const -{ - return dBClusterId_; +void DescribeInclinedTablesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeInclinedTablesRequest::setDBClusterId(const std::string& dBClusterId) -{ - dBClusterId_ = dBClusterId; - setParameter("DBClusterId", dBClusterId); +std::string DescribeInclinedTablesRequest::getDBClusterId() const { + return dBClusterId_; } -std::string DescribeInclinedTablesRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeInclinedTablesRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); } -void DescribeInclinedTablesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeInclinedTablesRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeInclinedTablesRequest::getOwnerId()const -{ - return ownerId_; +void DescribeInclinedTablesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeInclinedTablesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeInclinedTablesRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeInclinedTablesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/adb/src/model/DescribeInclinedTablesResult.cc b/adb/src/model/DescribeInclinedTablesResult.cc index 7717cbd22..d54e47435 100644 --- a/adb/src/model/DescribeInclinedTablesResult.cc +++ b/adb/src/model/DescribeInclinedTablesResult.cc @@ -43,24 +43,24 @@ void DescribeInclinedTablesResult::parse(const std::string &payload) for (auto valueItemsTable : allItemsNode) { Table itemsObject; - if(!valueItemsTable["Schema"].isNull()) - itemsObject.schema = valueItemsTable["Schema"].asString(); - if(!valueItemsTable["Name"].isNull()) - itemsObject.name = valueItemsTable["Name"].asString(); if(!valueItemsTable["Type"].isNull()) itemsObject.type = valueItemsTable["Type"].asString(); + if(!valueItemsTable["Schema"].isNull()) + itemsObject.schema = valueItemsTable["Schema"].asString(); if(!valueItemsTable["Size"].isNull()) itemsObject.size = std::stol(valueItemsTable["Size"].asString()); + if(!valueItemsTable["Name"].isNull()) + itemsObject.name = valueItemsTable["Name"].asString(); if(!valueItemsTable["IsIncline"].isNull()) itemsObject.isIncline = valueItemsTable["IsIncline"].asString() == "true"; items_.push_back(itemsObject); } if(!value["TotalCount"].isNull()) totalCount_ = value["TotalCount"].asString(); - if(!value["PageNumber"].isNull()) - pageNumber_ = value["PageNumber"].asString(); if(!value["PageSize"].isNull()) pageSize_ = value["PageSize"].asString(); + if(!value["PageNumber"].isNull()) + pageNumber_ = value["PageNumber"].asString(); } diff --git a/adb/src/model/DescribeLoadTasksRecordsRequest.cc b/adb/src/model/DescribeLoadTasksRecordsRequest.cc index 2ab5f5983..ba9419e2a 100644 --- a/adb/src/model/DescribeLoadTasksRecordsRequest.cc +++ b/adb/src/model/DescribeLoadTasksRecordsRequest.cc @@ -1,183 +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::Adb::Model::DescribeLoadTasksRecordsRequest; - -DescribeLoadTasksRecordsRequest::DescribeLoadTasksRecordsRequest() : - RpcServiceRequest("adb", "2019-03-15", "DescribeLoadTasksRecords") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeLoadTasksRecordsRequest::~DescribeLoadTasksRecordsRequest() -{} - -long DescribeLoadTasksRecordsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Adb::Model::DescribeLoadTasksRecordsRequest; + +DescribeLoadTasksRecordsRequest::DescribeLoadTasksRecordsRequest() + : RpcServiceRequest("adb", "2019-03-15", "DescribeLoadTasksRecords") { + setMethod(HttpRequest::Method::Post); } -void DescribeLoadTasksRecordsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeLoadTasksRecordsRequest::~DescribeLoadTasksRecordsRequest() {} + +long DescribeLoadTasksRecordsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeLoadTasksRecordsRequest::getRange()const -{ - return range_; +void DescribeLoadTasksRecordsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeLoadTasksRecordsRequest::setRange(const std::string& range) -{ - range_ = range; - setParameter("Range", range); +std::string DescribeLoadTasksRecordsRequest::getRange() const { + return range_; } -std::string DescribeLoadTasksRecordsRequest::getStartTime()const -{ - return startTime_; +void DescribeLoadTasksRecordsRequest::setRange(const std::string &range) { + range_ = range; + setParameter(std::string("Range"), range); } -void DescribeLoadTasksRecordsRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setParameter("StartTime", startTime); +std::string DescribeLoadTasksRecordsRequest::getStartTime() const { + return startTime_; } -int DescribeLoadTasksRecordsRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeLoadTasksRecordsRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); } -void DescribeLoadTasksRecordsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeLoadTasksRecordsRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeLoadTasksRecordsRequest::getAccessKeyId()const -{ - return accessKeyId_; +void DescribeLoadTasksRecordsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeLoadTasksRecordsRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string DescribeLoadTasksRecordsRequest::getAccessKeyId() const { + return accessKeyId_; } -int DescribeLoadTasksRecordsRequest::getPageSize()const -{ - return pageSize_; +void DescribeLoadTasksRecordsRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void DescribeLoadTasksRecordsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeLoadTasksRecordsRequest::getPageSize() const { + return pageSize_; } -std::string DescribeLoadTasksRecordsRequest::getState()const -{ - return state_; +void DescribeLoadTasksRecordsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeLoadTasksRecordsRequest::setState(const std::string& state) -{ - state_ = state; - setParameter("State", state); +std::string DescribeLoadTasksRecordsRequest::getState() const { + return state_; } -std::string DescribeLoadTasksRecordsRequest::getOrder()const -{ - return order_; +void DescribeLoadTasksRecordsRequest::setState(const std::string &state) { + state_ = state; + setParameter(std::string("State"), state); } -void DescribeLoadTasksRecordsRequest::setOrder(const std::string& order) -{ - order_ = order; - setParameter("Order", order); +std::string DescribeLoadTasksRecordsRequest::getOrder() const { + return order_; } -std::string DescribeLoadTasksRecordsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeLoadTasksRecordsRequest::setOrder(const std::string &order) { + order_ = order; + setParameter(std::string("Order"), order); } -void DescribeLoadTasksRecordsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeLoadTasksRecordsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeLoadTasksRecordsRequest::getDBClusterId()const -{ - return dBClusterId_; +void DescribeLoadTasksRecordsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeLoadTasksRecordsRequest::setDBClusterId(const std::string& dBClusterId) -{ - dBClusterId_ = dBClusterId; - setParameter("DBClusterId", dBClusterId); +std::string DescribeLoadTasksRecordsRequest::getDBClusterId() const { + return dBClusterId_; } -std::string DescribeLoadTasksRecordsRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeLoadTasksRecordsRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); } -void DescribeLoadTasksRecordsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeLoadTasksRecordsRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string DescribeLoadTasksRecordsRequest::getEndTime()const -{ - return endTime_; +void DescribeLoadTasksRecordsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeLoadTasksRecordsRequest::setEndTime(const std::string& endTime) -{ - endTime_ = endTime; - setParameter("EndTime", endTime); +std::string DescribeLoadTasksRecordsRequest::getEndTime() const { + return endTime_; } -long DescribeLoadTasksRecordsRequest::getOwnerId()const -{ - return ownerId_; +void DescribeLoadTasksRecordsRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); } -void DescribeLoadTasksRecordsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeLoadTasksRecordsRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeLoadTasksRecordsRequest::getDBName()const -{ - return dBName_; +void DescribeLoadTasksRecordsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeLoadTasksRecordsRequest::setDBName(const std::string& dBName) -{ - dBName_ = dBName; - setParameter("DBName", dBName); +std::string DescribeLoadTasksRecordsRequest::getDBName() const { + return dBName_; +} + +void DescribeLoadTasksRecordsRequest::setDBName(const std::string &dBName) { + dBName_ = dBName; + setParameter(std::string("DBName"), dBName); } diff --git a/adb/src/model/DescribeLoadTasksRecordsResult.cc b/adb/src/model/DescribeLoadTasksRecordsResult.cc index bc47fdc8c..73f7b3740 100644 --- a/adb/src/model/DescribeLoadTasksRecordsResult.cc +++ b/adb/src/model/DescribeLoadTasksRecordsResult.cc @@ -43,22 +43,22 @@ void DescribeLoadTasksRecordsResult::parse(const std::string &payload) for (auto valueLoadTasksRecordsLoadTaskRecord : allLoadTasksRecordsNode) { LoadTaskRecord loadTasksRecordsObject; - if(!valueLoadTasksRecordsLoadTaskRecord["ProcessRows"].isNull()) - loadTasksRecordsObject.processRows = std::stol(valueLoadTasksRecordsLoadTaskRecord["ProcessRows"].asString()); + if(!valueLoadTasksRecordsLoadTaskRecord["Sql"].isNull()) + loadTasksRecordsObject.sql = valueLoadTasksRecordsLoadTaskRecord["Sql"].asString(); if(!valueLoadTasksRecordsLoadTaskRecord["State"].isNull()) loadTasksRecordsObject.state = valueLoadTasksRecordsLoadTaskRecord["State"].asString(); if(!valueLoadTasksRecordsLoadTaskRecord["CreateTime"].isNull()) loadTasksRecordsObject.createTime = valueLoadTasksRecordsLoadTaskRecord["CreateTime"].asString(); - if(!valueLoadTasksRecordsLoadTaskRecord["JobName"].isNull()) - loadTasksRecordsObject.jobName = valueLoadTasksRecordsLoadTaskRecord["JobName"].asString(); - if(!valueLoadTasksRecordsLoadTaskRecord["UpdateTime"].isNull()) - loadTasksRecordsObject.updateTime = valueLoadTasksRecordsLoadTaskRecord["UpdateTime"].asString(); if(!valueLoadTasksRecordsLoadTaskRecord["DBName"].isNull()) loadTasksRecordsObject.dBName = valueLoadTasksRecordsLoadTaskRecord["DBName"].asString(); if(!valueLoadTasksRecordsLoadTaskRecord["ProcessID"].isNull()) loadTasksRecordsObject.processID = valueLoadTasksRecordsLoadTaskRecord["ProcessID"].asString(); - if(!valueLoadTasksRecordsLoadTaskRecord["Sql"].isNull()) - loadTasksRecordsObject.sql = valueLoadTasksRecordsLoadTaskRecord["Sql"].asString(); + if(!valueLoadTasksRecordsLoadTaskRecord["UpdateTime"].isNull()) + loadTasksRecordsObject.updateTime = valueLoadTasksRecordsLoadTaskRecord["UpdateTime"].asString(); + if(!valueLoadTasksRecordsLoadTaskRecord["JobName"].isNull()) + loadTasksRecordsObject.jobName = valueLoadTasksRecordsLoadTaskRecord["JobName"].asString(); + if(!valueLoadTasksRecordsLoadTaskRecord["ProcessRows"].isNull()) + loadTasksRecordsObject.processRows = std::stol(valueLoadTasksRecordsLoadTaskRecord["ProcessRows"].asString()); loadTasksRecords_.push_back(loadTasksRecordsObject); } if(!value["TotalCount"].isNull()) diff --git a/adb/src/model/DescribeMaintenanceActionRequest.cc b/adb/src/model/DescribeMaintenanceActionRequest.cc new file mode 100644 index 000000000..96ded2973 --- /dev/null +++ b/adb/src/model/DescribeMaintenanceActionRequest.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::Adb::Model::DescribeMaintenanceActionRequest; + +DescribeMaintenanceActionRequest::DescribeMaintenanceActionRequest() + : RpcServiceRequest("adb", "2019-03-15", "DescribeMaintenanceAction") { + setMethod(HttpRequest::Method::Post); +} + +DescribeMaintenanceActionRequest::~DescribeMaintenanceActionRequest() {} + +long DescribeMaintenanceActionRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeMaintenanceActionRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +int DescribeMaintenanceActionRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeMaintenanceActionRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string DescribeMaintenanceActionRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeMaintenanceActionRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +int DescribeMaintenanceActionRequest::getIsHistory() const { + return isHistory_; +} + +void DescribeMaintenanceActionRequest::setIsHistory(int isHistory) { + isHistory_ = isHistory; + setParameter(std::string("IsHistory"), std::to_string(isHistory)); +} + +std::string DescribeMaintenanceActionRequest::getRegionId() const { + return regionId_; +} + +void DescribeMaintenanceActionRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +int DescribeMaintenanceActionRequest::getPageSize() const { + return pageSize_; +} + +void DescribeMaintenanceActionRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string DescribeMaintenanceActionRequest::getTaskType() const { + return taskType_; +} + +void DescribeMaintenanceActionRequest::setTaskType(const std::string &taskType) { + taskType_ = taskType; + setParameter(std::string("TaskType"), taskType); +} + +std::string DescribeMaintenanceActionRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeMaintenanceActionRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeMaintenanceActionRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeMaintenanceActionRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeMaintenanceActionRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeMaintenanceActionRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DescribeMaintenanceActionRequest::getRegion() const { + return region_; +} + +void DescribeMaintenanceActionRequest::setRegion(const std::string ®ion) { + region_ = region; + setParameter(std::string("Region"), region); +} + diff --git a/adb/src/model/DescribeMaintenanceActionResult.cc b/adb/src/model/DescribeMaintenanceActionResult.cc new file mode 100644 index 000000000..acc339292 --- /dev/null +++ b/adb/src/model/DescribeMaintenanceActionResult.cc @@ -0,0 +1,104 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Adb; +using namespace AlibabaCloud::Adb::Model; + +DescribeMaintenanceActionResult::DescribeMaintenanceActionResult() : + ServiceResult() +{} + +DescribeMaintenanceActionResult::DescribeMaintenanceActionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeMaintenanceActionResult::~DescribeMaintenanceActionResult() +{} + +void DescribeMaintenanceActionResult::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["Deadline"].isNull()) + itemsObject.deadline = valueItemsItemsItem["Deadline"].asString(); + if(!valueItemsItemsItem["PrepareInterval"].isNull()) + itemsObject.prepareInterval = valueItemsItemsItem["PrepareInterval"].asString(); + if(!valueItemsItemsItem["DBType"].isNull()) + itemsObject.dBType = valueItemsItemsItem["DBType"].asString(); + if(!valueItemsItemsItem["StartTime"].isNull()) + itemsObject.startTime = valueItemsItemsItem["StartTime"].asString(); + if(!valueItemsItemsItem["TaskType"].isNull()) + itemsObject.taskType = valueItemsItemsItem["TaskType"].asString(); + if(!valueItemsItemsItem["DBVersion"].isNull()) + itemsObject.dBVersion = valueItemsItemsItem["DBVersion"].asString(); + if(!valueItemsItemsItem["DBClusterId"].isNull()) + itemsObject.dBClusterId = valueItemsItemsItem["DBClusterId"].asString(); + if(!valueItemsItemsItem["ModifiedTime"].isNull()) + itemsObject.modifiedTime = valueItemsItemsItem["ModifiedTime"].asString(); + if(!valueItemsItemsItem["Region"].isNull()) + itemsObject.region = valueItemsItemsItem["Region"].asString(); + if(!valueItemsItemsItem["ResultInfo"].isNull()) + itemsObject.resultInfo = valueItemsItemsItem["ResultInfo"].asString(); + if(!valueItemsItemsItem["CreatedTime"].isNull()) + itemsObject.createdTime = valueItemsItemsItem["CreatedTime"].asString(); + if(!valueItemsItemsItem["Id"].isNull()) + itemsObject.id = std::stoi(valueItemsItemsItem["Id"].asString()); + if(!valueItemsItemsItem["SwitchTime"].isNull()) + itemsObject.switchTime = valueItemsItemsItem["SwitchTime"].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["TotalRecordCount"].isNull()) + totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString()); + +} + +int DescribeMaintenanceActionResult::getTotalRecordCount()const +{ + return totalRecordCount_; +} + +int DescribeMaintenanceActionResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeMaintenanceActionResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeMaintenanceActionResult::getItems()const +{ + return items_; +} + diff --git a/adb/src/model/DescribeOperatorPermissionRequest.cc b/adb/src/model/DescribeOperatorPermissionRequest.cc index 2f31c9a31..ce352b29d 100644 --- a/adb/src/model/DescribeOperatorPermissionRequest.cc +++ b/adb/src/model/DescribeOperatorPermissionRequest.cc @@ -1,95 +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::Adb::Model::DescribeOperatorPermissionRequest; - -DescribeOperatorPermissionRequest::DescribeOperatorPermissionRequest() : - RpcServiceRequest("adb", "2019-03-15", "DescribeOperatorPermission") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeOperatorPermissionRequest::~DescribeOperatorPermissionRequest() -{} - -long DescribeOperatorPermissionRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Adb::Model::DescribeOperatorPermissionRequest; + +DescribeOperatorPermissionRequest::DescribeOperatorPermissionRequest() + : RpcServiceRequest("adb", "2019-03-15", "DescribeOperatorPermission") { + setMethod(HttpRequest::Method::Post); } -void DescribeOperatorPermissionRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeOperatorPermissionRequest::~DescribeOperatorPermissionRequest() {} + +long DescribeOperatorPermissionRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeOperatorPermissionRequest::getAccessKeyId()const -{ - return accessKeyId_; +void DescribeOperatorPermissionRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeOperatorPermissionRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string DescribeOperatorPermissionRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string DescribeOperatorPermissionRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeOperatorPermissionRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void DescribeOperatorPermissionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeOperatorPermissionRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeOperatorPermissionRequest::getDBClusterId()const -{ - return dBClusterId_; +void DescribeOperatorPermissionRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeOperatorPermissionRequest::setDBClusterId(const std::string& dBClusterId) -{ - dBClusterId_ = dBClusterId; - setParameter("DBClusterId", dBClusterId); +std::string DescribeOperatorPermissionRequest::getDBClusterId() const { + return dBClusterId_; } -std::string DescribeOperatorPermissionRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeOperatorPermissionRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); } -void DescribeOperatorPermissionRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeOperatorPermissionRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeOperatorPermissionRequest::getOwnerId()const -{ - return ownerId_; +void DescribeOperatorPermissionRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeOperatorPermissionRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeOperatorPermissionRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeOperatorPermissionRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/adb/src/model/DescribeOperatorPermissionResult.cc b/adb/src/model/DescribeOperatorPermissionResult.cc index 5c76c3cd7..da8250464 100644 --- a/adb/src/model/DescribeOperatorPermissionResult.cc +++ b/adb/src/model/DescribeOperatorPermissionResult.cc @@ -39,10 +39,10 @@ void DescribeOperatorPermissionResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Privileges"].isNull()) - privileges_ = value["Privileges"].asString(); if(!value["CreatedTime"].isNull()) createdTime_ = value["CreatedTime"].asString(); + if(!value["Privileges"].isNull()) + privileges_ = value["Privileges"].asString(); if(!value["ExpiredTime"].isNull()) expiredTime_ = value["ExpiredTime"].asString(); if(!value["DBClusterId"].isNull()) diff --git a/adb/src/model/DescribePatternPerformanceRequest.cc b/adb/src/model/DescribePatternPerformanceRequest.cc new file mode 100644 index 000000000..f7e4e8a76 --- /dev/null +++ b/adb/src/model/DescribePatternPerformanceRequest.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::Adb::Model::DescribePatternPerformanceRequest; + +DescribePatternPerformanceRequest::DescribePatternPerformanceRequest() + : RpcServiceRequest("adb", "2019-03-15", "DescribePatternPerformance") { + setMethod(HttpRequest::Method::Post); +} + +DescribePatternPerformanceRequest::~DescribePatternPerformanceRequest() {} + +std::string DescribePatternPerformanceRequest::getRegionId() const { + return regionId_; +} + +void DescribePatternPerformanceRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DescribePatternPerformanceRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DescribePatternPerformanceRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string DescribePatternPerformanceRequest::getPatternId() const { + return patternId_; +} + +void DescribePatternPerformanceRequest::setPatternId(const std::string &patternId) { + patternId_ = patternId; + setParameter(std::string("PatternId"), patternId); +} + +std::string DescribePatternPerformanceRequest::getEndTime() const { + return endTime_; +} + +void DescribePatternPerformanceRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); +} + +std::string DescribePatternPerformanceRequest::getStartTime() const { + return startTime_; +} + +void DescribePatternPerformanceRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); +} + diff --git a/adb/src/model/DescribePatternPerformanceResult.cc b/adb/src/model/DescribePatternPerformanceResult.cc new file mode 100644 index 000000000..78dfbe462 --- /dev/null +++ b/adb/src/model/DescribePatternPerformanceResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Adb; +using namespace AlibabaCloud::Adb::Model; + +DescribePatternPerformanceResult::DescribePatternPerformanceResult() : + ServiceResult() +{} + +DescribePatternPerformanceResult::DescribePatternPerformanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribePatternPerformanceResult::~DescribePatternPerformanceResult() +{} + +void DescribePatternPerformanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allPerformancesNode = value["Performances"]["PerformanceItem"]; + for (auto valuePerformancesPerformanceItem : allPerformancesNode) + { + PerformanceItem performancesObject; + if(!valuePerformancesPerformanceItem["Key"].isNull()) + performancesObject.key = valuePerformancesPerformanceItem["Key"].asString(); + if(!valuePerformancesPerformanceItem["Unit"].isNull()) + performancesObject.unit = valuePerformancesPerformanceItem["Unit"].asString(); + auto allSeriesNode = valuePerformancesPerformanceItem["Series"]["SeriesItem"]; + for (auto valuePerformancesPerformanceItemSeriesSeriesItem : allSeriesNode) + { + PerformanceItem::SeriesItem seriesObject; + if(!valuePerformancesPerformanceItemSeriesSeriesItem["Name"].isNull()) + seriesObject.name = valuePerformancesPerformanceItemSeriesSeriesItem["Name"].asString(); + auto allValues = value["Values"]["values"]; + for (auto value : allValues) + seriesObject.values.push_back(value.asString()); + performancesObject.series.push_back(seriesObject); + } + performances_.push_back(performancesObject); + } + if(!value["EndTime"].isNull()) + endTime_ = value["EndTime"].asString(); + if(!value["StartTime"].isNull()) + startTime_ = value["StartTime"].asString(); + +} + +std::string DescribePatternPerformanceResult::getEndTime()const +{ + return endTime_; +} + +std::string DescribePatternPerformanceResult::getStartTime()const +{ + return startTime_; +} + +std::vector DescribePatternPerformanceResult::getPerformances()const +{ + return performances_; +} + diff --git a/adb/src/model/DescribeProcessListRequest.cc b/adb/src/model/DescribeProcessListRequest.cc index e2c398d0c..2d0301876 100644 --- a/adb/src/model/DescribeProcessListRequest.cc +++ b/adb/src/model/DescribeProcessListRequest.cc @@ -1,172 +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::Adb::Model::DescribeProcessListRequest; - -DescribeProcessListRequest::DescribeProcessListRequest() : - RpcServiceRequest("adb", "2019-03-15", "DescribeProcessList") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeProcessListRequest::~DescribeProcessListRequest() -{} - -long DescribeProcessListRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Adb::Model::DescribeProcessListRequest; + +DescribeProcessListRequest::DescribeProcessListRequest() + : RpcServiceRequest("adb", "2019-03-15", "DescribeProcessList") { + setMethod(HttpRequest::Method::Post); } -void DescribeProcessListRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeProcessListRequest::~DescribeProcessListRequest() {} + +long DescribeProcessListRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -int DescribeProcessListRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeProcessListRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeProcessListRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeProcessListRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeProcessListRequest::getAccessKeyId()const -{ - return accessKeyId_; +void DescribeProcessListRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeProcessListRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string DescribeProcessListRequest::getAccessKeyId() const { + return accessKeyId_; } -int DescribeProcessListRequest::getPageSize()const -{ - return pageSize_; +void DescribeProcessListRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void DescribeProcessListRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeProcessListRequest::getPageSize() const { + return pageSize_; } -bool DescribeProcessListRequest::getShowFull()const -{ - return showFull_; +void DescribeProcessListRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeProcessListRequest::setShowFull(bool showFull) -{ - showFull_ = showFull; - setParameter("ShowFull", showFull ? "true" : "false"); +bool DescribeProcessListRequest::getShowFull() const { + return showFull_; } -int DescribeProcessListRequest::getRunningTime()const -{ - return runningTime_; +void DescribeProcessListRequest::setShowFull(bool showFull) { + showFull_ = showFull; + setParameter(std::string("ShowFull"), showFull ? "true" : "false"); } -void DescribeProcessListRequest::setRunningTime(int runningTime) -{ - runningTime_ = runningTime; - setParameter("RunningTime", std::to_string(runningTime)); +int DescribeProcessListRequest::getRunningTime() const { + return runningTime_; } -std::string DescribeProcessListRequest::getKeyword()const -{ - return keyword_; +void DescribeProcessListRequest::setRunningTime(int runningTime) { + runningTime_ = runningTime; + setParameter(std::string("RunningTime"), std::to_string(runningTime)); } -void DescribeProcessListRequest::setKeyword(const std::string& keyword) -{ - keyword_ = keyword; - setParameter("Keyword", keyword); +std::string DescribeProcessListRequest::getKeyword() const { + return keyword_; } -std::string DescribeProcessListRequest::getOrder()const -{ - return order_; +void DescribeProcessListRequest::setKeyword(const std::string &keyword) { + keyword_ = keyword; + setParameter(std::string("Keyword"), keyword); } -void DescribeProcessListRequest::setOrder(const std::string& order) -{ - order_ = order; - setParameter("Order", order); +std::string DescribeProcessListRequest::getOrder() const { + return order_; } -std::string DescribeProcessListRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeProcessListRequest::setOrder(const std::string &order) { + order_ = order; + setParameter(std::string("Order"), order); } -void DescribeProcessListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeProcessListRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeProcessListRequest::getDBClusterId()const -{ - return dBClusterId_; +void DescribeProcessListRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeProcessListRequest::setDBClusterId(const std::string& dBClusterId) -{ - dBClusterId_ = dBClusterId; - setParameter("DBClusterId", dBClusterId); +std::string DescribeProcessListRequest::getDBClusterId() const { + return dBClusterId_; } -std::string DescribeProcessListRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeProcessListRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); } -void DescribeProcessListRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeProcessListRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeProcessListRequest::getOwnerId()const -{ - return ownerId_; +void DescribeProcessListRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeProcessListRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeProcessListRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeProcessListRequest::getUser()const -{ - return user_; +void DescribeProcessListRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeProcessListRequest::setUser(const std::string& user) -{ - user_ = user; - setParameter("User", user); +std::string DescribeProcessListRequest::getUser() const { + return user_; +} + +void DescribeProcessListRequest::setUser(const std::string &user) { + user_ = user; + setParameter(std::string("User"), user); } diff --git a/adb/src/model/DescribeProcessListResult.cc b/adb/src/model/DescribeProcessListResult.cc index f8abdf12f..287c32075 100644 --- a/adb/src/model/DescribeProcessListResult.cc +++ b/adb/src/model/DescribeProcessListResult.cc @@ -43,32 +43,32 @@ void DescribeProcessListResult::parse(const std::string &payload) for (auto valueItemsProcess : allItemsNode) { Process itemsObject; - if(!valueItemsProcess["Id"].isNull()) - itemsObject.id = std::stoi(valueItemsProcess["Id"].asString()); + if(!valueItemsProcess["StartTime"].isNull()) + itemsObject.startTime = valueItemsProcess["StartTime"].asString(); + if(!valueItemsProcess["Time"].isNull()) + itemsObject.time = std::stoi(valueItemsProcess["Time"].asString()); if(!valueItemsProcess["ProcessId"].isNull()) itemsObject.processId = valueItemsProcess["ProcessId"].asString(); - if(!valueItemsProcess["User"].isNull()) - itemsObject.user = valueItemsProcess["User"].asString(); if(!valueItemsProcess["Host"].isNull()) itemsObject.host = valueItemsProcess["Host"].asString(); if(!valueItemsProcess["DB"].isNull()) itemsObject.dB = valueItemsProcess["DB"].asString(); if(!valueItemsProcess["Command"].isNull()) itemsObject.command = valueItemsProcess["Command"].asString(); - if(!valueItemsProcess["Time"].isNull()) - itemsObject.time = std::stoi(valueItemsProcess["Time"].asString()); - if(!valueItemsProcess["StartTime"].isNull()) - itemsObject.startTime = valueItemsProcess["StartTime"].asString(); + if(!valueItemsProcess["User"].isNull()) + itemsObject.user = valueItemsProcess["User"].asString(); + if(!valueItemsProcess["Id"].isNull()) + itemsObject.id = std::stoi(valueItemsProcess["Id"].asString()); if(!valueItemsProcess["Info"].isNull()) itemsObject.info = valueItemsProcess["Info"].asString(); items_.push_back(itemsObject); } if(!value["TotalCount"].isNull()) totalCount_ = value["TotalCount"].asString(); - if(!value["PageNumber"].isNull()) - pageNumber_ = value["PageNumber"].asString(); if(!value["PageSize"].isNull()) pageSize_ = value["PageSize"].asString(); + if(!value["PageNumber"].isNull()) + pageNumber_ = value["PageNumber"].asString(); } diff --git a/adb/src/model/DescribeRegionsRequest.cc b/adb/src/model/DescribeRegionsRequest.cc index 1a16c6279..ed8608021 100644 --- a/adb/src/model/DescribeRegionsRequest.cc +++ b/adb/src/model/DescribeRegionsRequest.cc @@ -1,95 +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::Adb::Model::DescribeRegionsRequest; - -DescribeRegionsRequest::DescribeRegionsRequest() : - RpcServiceRequest("adb", "2019-03-15", "DescribeRegions") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeRegionsRequest::~DescribeRegionsRequest() -{} - -long DescribeRegionsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Adb::Model::DescribeRegionsRequest; + +DescribeRegionsRequest::DescribeRegionsRequest() + : RpcServiceRequest("adb", "2019-03-15", "DescribeRegions") { + setMethod(HttpRequest::Method::Post); } -void DescribeRegionsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeRegionsRequest::~DescribeRegionsRequest() {} + +long DescribeRegionsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeRegionsRequest::getAccessKeyId()const -{ - return accessKeyId_; +void DescribeRegionsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeRegionsRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string DescribeRegionsRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string DescribeRegionsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeRegionsRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void DescribeRegionsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeRegionsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeRegionsRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeRegionsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeRegionsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeRegionsRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeRegionsRequest::getOwnerId()const -{ - return ownerId_; +void DescribeRegionsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeRegionsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeRegionsRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeRegionsRequest::getAcceptLanguage()const -{ - return acceptLanguage_; +void DescribeRegionsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeRegionsRequest::setAcceptLanguage(const std::string& acceptLanguage) -{ - acceptLanguage_ = acceptLanguage; - setParameter("AcceptLanguage", acceptLanguage); +std::string DescribeRegionsRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void DescribeRegionsRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); } diff --git a/adb/src/model/DescribeRegionsResult.cc b/adb/src/model/DescribeRegionsResult.cc index 3f4ee91ec..cf9475fc0 100644 --- a/adb/src/model/DescribeRegionsResult.cc +++ b/adb/src/model/DescribeRegionsResult.cc @@ -43,12 +43,12 @@ void DescribeRegionsResult::parse(const std::string &payload) for (auto valueRegionsRegion : allRegionsNode) { Region regionsObject; - if(!valueRegionsRegion["RegionId"].isNull()) - regionsObject.regionId = valueRegionsRegion["RegionId"].asString(); - if(!valueRegionsRegion["LocalName"].isNull()) - regionsObject.localName = valueRegionsRegion["LocalName"].asString(); if(!valueRegionsRegion["RegionEndpoint"].isNull()) regionsObject.regionEndpoint = valueRegionsRegion["RegionEndpoint"].asString(); + if(!valueRegionsRegion["LocalName"].isNull()) + regionsObject.localName = valueRegionsRegion["LocalName"].asString(); + if(!valueRegionsRegion["RegionId"].isNull()) + regionsObject.regionId = valueRegionsRegion["RegionId"].asString(); auto allZonesNode = valueRegionsRegion["Zones"]["Zone"]; for (auto valueRegionsRegionZonesZone : allZonesNode) { diff --git a/adb/src/model/DescribeSQLPatternAttributeRequest.cc b/adb/src/model/DescribeSQLPatternAttributeRequest.cc new file mode 100644 index 000000000..1e9201d2b --- /dev/null +++ b/adb/src/model/DescribeSQLPatternAttributeRequest.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::Adb::Model::DescribeSQLPatternAttributeRequest; + +DescribeSQLPatternAttributeRequest::DescribeSQLPatternAttributeRequest() + : RpcServiceRequest("adb", "2019-03-15", "DescribeSQLPatternAttribute") { + setMethod(HttpRequest::Method::Post); +} + +DescribeSQLPatternAttributeRequest::~DescribeSQLPatternAttributeRequest() {} + +std::string DescribeSQLPatternAttributeRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DescribeSQLPatternAttributeRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +long DescribeSQLPatternAttributeRequest::getPatternId() const { + return patternId_; +} + +void DescribeSQLPatternAttributeRequest::setPatternId(long patternId) { + patternId_ = patternId; + setParameter(std::string("PatternId"), std::to_string(patternId)); +} + +std::string DescribeSQLPatternAttributeRequest::getEndTime() const { + return endTime_; +} + +void DescribeSQLPatternAttributeRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); +} + +std::string DescribeSQLPatternAttributeRequest::getStartTime() const { + return startTime_; +} + +void DescribeSQLPatternAttributeRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); +} + +std::string DescribeSQLPatternAttributeRequest::getRegionId() const { + return regionId_; +} + +void DescribeSQLPatternAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DescribeSQLPatternAttributeRequest::getLang() const { + return lang_; +} + +void DescribeSQLPatternAttributeRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); +} + diff --git a/adb/src/model/DescribeSQLPatternAttributeResult.cc b/adb/src/model/DescribeSQLPatternAttributeResult.cc new file mode 100644 index 000000000..0d8deb7cc --- /dev/null +++ b/adb/src/model/DescribeSQLPatternAttributeResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Adb; +using namespace AlibabaCloud::Adb::Model; + +DescribeSQLPatternAttributeResult::DescribeSQLPatternAttributeResult() : + ServiceResult() +{} + +DescribeSQLPatternAttributeResult::DescribeSQLPatternAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSQLPatternAttributeResult::~DescribeSQLPatternAttributeResult() +{} + +void DescribeSQLPatternAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto patternDetailNode = value["PatternDetail"]; + if(!patternDetailNode["SQLPattern"].isNull()) + patternDetail_.sQLPattern = patternDetailNode["SQLPattern"].asString(); + if(!patternDetailNode["QueryCount"].isNull()) + patternDetail_.queryCount = std::stol(patternDetailNode["QueryCount"].asString()); + if(!patternDetailNode["TotalQueryTime"].isNull()) + patternDetail_.totalQueryTime = patternDetailNode["TotalQueryTime"].asString(); + if(!patternDetailNode["AverageQueryTime"].isNull()) + patternDetail_.averageQueryTime = patternDetailNode["AverageQueryTime"].asString(); + if(!patternDetailNode["AverageMemory"].isNull()) + patternDetail_.averageMemory = patternDetailNode["AverageMemory"].asString(); + +} + +DescribeSQLPatternAttributeResult::PatternDetail DescribeSQLPatternAttributeResult::getPatternDetail()const +{ + return patternDetail_; +} + diff --git a/adb/src/model/DescribeSQLPatternsRequest.cc b/adb/src/model/DescribeSQLPatternsRequest.cc new file mode 100644 index 000000000..4ceb49d23 --- /dev/null +++ b/adb/src/model/DescribeSQLPatternsRequest.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::Adb::Model::DescribeSQLPatternsRequest; + +DescribeSQLPatternsRequest::DescribeSQLPatternsRequest() + : RpcServiceRequest("adb", "2019-03-15", "DescribeSQLPatterns") { + setMethod(HttpRequest::Method::Post); +} + +DescribeSQLPatternsRequest::~DescribeSQLPatternsRequest() {} + +std::string DescribeSQLPatternsRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DescribeSQLPatternsRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string DescribeSQLPatternsRequest::getEndTime() const { + return endTime_; +} + +void DescribeSQLPatternsRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); +} + +std::string DescribeSQLPatternsRequest::getStartTime() const { + return startTime_; +} + +void DescribeSQLPatternsRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); +} + +int DescribeSQLPatternsRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeSQLPatternsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string DescribeSQLPatternsRequest::getRegionId() const { + return regionId_; +} + +void DescribeSQLPatternsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +int DescribeSQLPatternsRequest::getPageSize() const { + return pageSize_; +} + +void DescribeSQLPatternsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string DescribeSQLPatternsRequest::getKeyword() const { + return keyword_; +} + +void DescribeSQLPatternsRequest::setKeyword(const std::string &keyword) { + keyword_ = keyword; + setParameter(std::string("Keyword"), keyword); +} + +std::string DescribeSQLPatternsRequest::getLang() const { + return lang_; +} + +void DescribeSQLPatternsRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); +} + +std::string DescribeSQLPatternsRequest::getOrder() const { + return order_; +} + +void DescribeSQLPatternsRequest::setOrder(const std::string &order) { + order_ = order; + setParameter(std::string("Order"), order); +} + diff --git a/adb/src/model/DescribeSQLPatternsResult.cc b/adb/src/model/DescribeSQLPatternsResult.cc new file mode 100644 index 000000000..df1e92135 --- /dev/null +++ b/adb/src/model/DescribeSQLPatternsResult.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::Adb; +using namespace AlibabaCloud::Adb::Model; + +DescribeSQLPatternsResult::DescribeSQLPatternsResult() : + ServiceResult() +{} + +DescribeSQLPatternsResult::DescribeSQLPatternsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSQLPatternsResult::~DescribeSQLPatternsResult() +{} + +void DescribeSQLPatternsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allPatternDetailsNode = value["PatternDetails"]["patternDetailsItem"]; + for (auto valuePatternDetailspatternDetailsItem : allPatternDetailsNode) + { + PatternDetailsItem patternDetailsObject; + if(!valuePatternDetailspatternDetailsItem["SQLPattern"].isNull()) + patternDetailsObject.sQLPattern = valuePatternDetailspatternDetailsItem["SQLPattern"].asString(); + if(!valuePatternDetailspatternDetailsItem["PatternId"].isNull()) + patternDetailsObject.patternId = valuePatternDetailspatternDetailsItem["PatternId"].asString(); + if(!valuePatternDetailspatternDetailsItem["User"].isNull()) + patternDetailsObject.user = valuePatternDetailspatternDetailsItem["User"].asString(); + if(!valuePatternDetailspatternDetailsItem["AccessIp"].isNull()) + patternDetailsObject.accessIp = valuePatternDetailspatternDetailsItem["AccessIp"].asString(); + if(!valuePatternDetailspatternDetailsItem["Tables"].isNull()) + patternDetailsObject.tables = valuePatternDetailspatternDetailsItem["Tables"].asString(); + if(!valuePatternDetailspatternDetailsItem["PatternCreationTime"].isNull()) + patternDetailsObject.patternCreationTime = valuePatternDetailspatternDetailsItem["PatternCreationTime"].asString(); + if(!valuePatternDetailspatternDetailsItem["AverageQueryTime"].isNull()) + patternDetailsObject.averageQueryTime = valuePatternDetailspatternDetailsItem["AverageQueryTime"].asString(); + if(!valuePatternDetailspatternDetailsItem["MaxQueryTime"].isNull()) + patternDetailsObject.maxQueryTime = std::stol(valuePatternDetailspatternDetailsItem["MaxQueryTime"].asString()); + if(!valuePatternDetailspatternDetailsItem["AverageExecutionTime"].isNull()) + patternDetailsObject.averageExecutionTime = valuePatternDetailspatternDetailsItem["AverageExecutionTime"].asString(); + if(!valuePatternDetailspatternDetailsItem["MaxExecutionTime"].isNull()) + patternDetailsObject.maxExecutionTime = std::stol(valuePatternDetailspatternDetailsItem["MaxExecutionTime"].asString()); + if(!valuePatternDetailspatternDetailsItem["AveragePeakMemory"].isNull()) + patternDetailsObject.averagePeakMemory = valuePatternDetailspatternDetailsItem["AveragePeakMemory"].asString(); + if(!valuePatternDetailspatternDetailsItem["MaxPeakMemory"].isNull()) + patternDetailsObject.maxPeakMemory = std::stol(valuePatternDetailspatternDetailsItem["MaxPeakMemory"].asString()); + if(!valuePatternDetailspatternDetailsItem["AverageScanSize"].isNull()) + patternDetailsObject.averageScanSize = valuePatternDetailspatternDetailsItem["AverageScanSize"].asString(); + if(!valuePatternDetailspatternDetailsItem["MaxScanSize"].isNull()) + patternDetailsObject.maxScanSize = std::stol(valuePatternDetailspatternDetailsItem["MaxScanSize"].asString()); + if(!valuePatternDetailspatternDetailsItem["QueryCount"].isNull()) + patternDetailsObject.queryCount = std::stol(valuePatternDetailspatternDetailsItem["QueryCount"].asString()); + if(!valuePatternDetailspatternDetailsItem["FailedCount"].isNull()) + patternDetailsObject.failedCount = std::stol(valuePatternDetailspatternDetailsItem["FailedCount"].asString()); + if(!valuePatternDetailspatternDetailsItem["Blockable"].isNull()) + patternDetailsObject.blockable = valuePatternDetailspatternDetailsItem["Blockable"].asString() == "true"; + patternDetails_.push_back(patternDetailsObject); + } + 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 DescribeSQLPatternsResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeSQLPatternsResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeSQLPatternsResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeSQLPatternsResult::getPatternDetails()const +{ + return patternDetails_; +} + diff --git a/adb/src/model/DescribeSQLPlanRequest.cc b/adb/src/model/DescribeSQLPlanRequest.cc index e45aabdab..a0e88f712 100644 --- a/adb/src/model/DescribeSQLPlanRequest.cc +++ b/adb/src/model/DescribeSQLPlanRequest.cc @@ -1,106 +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::Adb::Model::DescribeSQLPlanRequest; - -DescribeSQLPlanRequest::DescribeSQLPlanRequest() : - RpcServiceRequest("adb", "2019-03-15", "DescribeSQLPlan") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeSQLPlanRequest::~DescribeSQLPlanRequest() -{} - -long DescribeSQLPlanRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Adb::Model::DescribeSQLPlanRequest; + +DescribeSQLPlanRequest::DescribeSQLPlanRequest() + : RpcServiceRequest("adb", "2019-03-15", "DescribeSQLPlan") { + setMethod(HttpRequest::Method::Post); } -void DescribeSQLPlanRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeSQLPlanRequest::~DescribeSQLPlanRequest() {} + +long DescribeSQLPlanRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeSQLPlanRequest::getAccessKeyId()const -{ - return accessKeyId_; +void DescribeSQLPlanRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeSQLPlanRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string DescribeSQLPlanRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string DescribeSQLPlanRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeSQLPlanRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void DescribeSQLPlanRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeSQLPlanRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeSQLPlanRequest::getDBClusterId()const -{ - return dBClusterId_; +void DescribeSQLPlanRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeSQLPlanRequest::setDBClusterId(const std::string& dBClusterId) -{ - dBClusterId_ = dBClusterId; - setParameter("DBClusterId", dBClusterId); +std::string DescribeSQLPlanRequest::getDBClusterId() const { + return dBClusterId_; } -std::string DescribeSQLPlanRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeSQLPlanRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); } -void DescribeSQLPlanRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeSQLPlanRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeSQLPlanRequest::getOwnerId()const -{ - return ownerId_; +void DescribeSQLPlanRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeSQLPlanRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeSQLPlanRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeSQLPlanRequest::getProcessId()const -{ - return processId_; +void DescribeSQLPlanRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeSQLPlanRequest::setProcessId(const std::string& processId) -{ - processId_ = processId; - setParameter("ProcessId", processId); +std::string DescribeSQLPlanRequest::getProcessId() const { + return processId_; +} + +void DescribeSQLPlanRequest::setProcessId(const std::string &processId) { + processId_ = processId; + setParameter(std::string("ProcessId"), processId); } diff --git a/adb/src/model/DescribeSQLPlanResult.cc b/adb/src/model/DescribeSQLPlanResult.cc index a500b4868..fa4f4302d 100644 --- a/adb/src/model/DescribeSQLPlanResult.cc +++ b/adb/src/model/DescribeSQLPlanResult.cc @@ -43,71 +43,71 @@ void DescribeSQLPlanResult::parse(const std::string &payload) for (auto valueStageListSqlPlanStage : allStageListNode) { SqlPlanStage stageListObject; - if(!valueStageListSqlPlanStage["StageId"].isNull()) - stageListObject.stageId = std::stoi(valueStageListSqlPlanStage["StageId"].asString()); if(!valueStageListSqlPlanStage["State"].isNull()) stageListObject.state = valueStageListSqlPlanStage["State"].asString(); - if(!valueStageListSqlPlanStage["OperatorCost"].isNull()) - stageListObject.operatorCost = std::stol(valueStageListSqlPlanStage["OperatorCost"].asString()); - if(!valueStageListSqlPlanStage["PeakMemory"].isNull()) - stageListObject.peakMemory = std::stol(valueStageListSqlPlanStage["PeakMemory"].asString()); - if(!valueStageListSqlPlanStage["CPUTimeMin"].isNull()) - stageListObject.cPUTimeMin = std::stol(valueStageListSqlPlanStage["CPUTimeMin"].asString()); - if(!valueStageListSqlPlanStage["CPUTimeMax"].isNull()) - stageListObject.cPUTimeMax = std::stol(valueStageListSqlPlanStage["CPUTimeMax"].asString()); if(!valueStageListSqlPlanStage["CPUTimeAvg"].isNull()) stageListObject.cPUTimeAvg = std::stol(valueStageListSqlPlanStage["CPUTimeAvg"].asString()); - if(!valueStageListSqlPlanStage["InputSizeMin"].isNull()) - stageListObject.inputSizeMin = std::stol(valueStageListSqlPlanStage["InputSizeMin"].asString()); - if(!valueStageListSqlPlanStage["InputSizeMax"].isNull()) - stageListObject.inputSizeMax = std::stol(valueStageListSqlPlanStage["InputSizeMax"].asString()); - if(!valueStageListSqlPlanStage["InputSizeAvg"].isNull()) - stageListObject.inputSizeAvg = std::stol(valueStageListSqlPlanStage["InputSizeAvg"].asString()); - if(!valueStageListSqlPlanStage["ScanSizeMin"].isNull()) - stageListObject.scanSizeMin = std::stol(valueStageListSqlPlanStage["ScanSizeMin"].asString()); - if(!valueStageListSqlPlanStage["ScanSizeMax"].isNull()) - stageListObject.scanSizeMax = std::stol(valueStageListSqlPlanStage["ScanSizeMax"].asString()); - if(!valueStageListSqlPlanStage["ScanSizeAvg"].isNull()) - stageListObject.scanSizeAvg = std::stol(valueStageListSqlPlanStage["ScanSizeAvg"].asString()); - if(!valueStageListSqlPlanStage["ScanTimeMin"].isNull()) - stageListObject.scanTimeMin = std::stol(valueStageListSqlPlanStage["ScanTimeMin"].asString()); + if(!valueStageListSqlPlanStage["CPUTimeMax"].isNull()) + stageListObject.cPUTimeMax = std::stol(valueStageListSqlPlanStage["CPUTimeMax"].asString()); + if(!valueStageListSqlPlanStage["OperatorCost"].isNull()) + stageListObject.operatorCost = std::stol(valueStageListSqlPlanStage["OperatorCost"].asString()); if(!valueStageListSqlPlanStage["ScanTimeMax"].isNull()) stageListObject.scanTimeMax = std::stol(valueStageListSqlPlanStage["ScanTimeMax"].asString()); + if(!valueStageListSqlPlanStage["InputSizeMax"].isNull()) + stageListObject.inputSizeMax = std::stol(valueStageListSqlPlanStage["InputSizeMax"].asString()); + if(!valueStageListSqlPlanStage["StageId"].isNull()) + stageListObject.stageId = std::stoi(valueStageListSqlPlanStage["StageId"].asString()); + if(!valueStageListSqlPlanStage["ScanSizeMax"].isNull()) + stageListObject.scanSizeMax = std::stol(valueStageListSqlPlanStage["ScanSizeMax"].asString()); + if(!valueStageListSqlPlanStage["CPUTimeMin"].isNull()) + stageListObject.cPUTimeMin = std::stol(valueStageListSqlPlanStage["CPUTimeMin"].asString()); + if(!valueStageListSqlPlanStage["ScanTimeMin"].isNull()) + stageListObject.scanTimeMin = std::stol(valueStageListSqlPlanStage["ScanTimeMin"].asString()); + if(!valueStageListSqlPlanStage["ScanSizeMin"].isNull()) + stageListObject.scanSizeMin = std::stol(valueStageListSqlPlanStage["ScanSizeMin"].asString()); + if(!valueStageListSqlPlanStage["InputSizeMin"].isNull()) + stageListObject.inputSizeMin = std::stol(valueStageListSqlPlanStage["InputSizeMin"].asString()); + if(!valueStageListSqlPlanStage["PeakMemory"].isNull()) + stageListObject.peakMemory = std::stol(valueStageListSqlPlanStage["PeakMemory"].asString()); if(!valueStageListSqlPlanStage["ScanTimeAvg"].isNull()) stageListObject.scanTimeAvg = std::stol(valueStageListSqlPlanStage["ScanTimeAvg"].asString()); + if(!valueStageListSqlPlanStage["ScanSizeAvg"].isNull()) + stageListObject.scanSizeAvg = std::stol(valueStageListSqlPlanStage["ScanSizeAvg"].asString()); + if(!valueStageListSqlPlanStage["InputSizeAvg"].isNull()) + stageListObject.inputSizeAvg = std::stol(valueStageListSqlPlanStage["InputSizeAvg"].asString()); stageList_.push_back(stageListObject); } auto detailNode = value["Detail"]; if(!detailNode["SQL"].isNull()) detail_.sQL = detailNode["SQL"].asString(); - if(!detailNode["State"].isNull()) - detail_.state = detailNode["State"].asString(); - if(!detailNode["User"].isNull()) - detail_.user = detailNode["User"].asString(); - if(!detailNode["ClientIP"].isNull()) - detail_.clientIP = detailNode["ClientIP"].asString(); - if(!detailNode["Database"].isNull()) - detail_.database = detailNode["Database"].asString(); - if(!detailNode["TotalStage"].isNull()) - detail_.totalStage = std::stol(detailNode["TotalStage"].asString()); - if(!detailNode["TotalTask"].isNull()) - detail_.totalTask = std::stol(detailNode["TotalTask"].asString()); - if(!detailNode["OutputRows"].isNull()) - detail_.outputRows = std::stol(detailNode["OutputRows"].asString()); if(!detailNode["OutputSize"].isNull()) detail_.outputSize = std::stol(detailNode["OutputSize"].asString()); + if(!detailNode["State"].isNull()) + detail_.state = detailNode["State"].asString(); + if(!detailNode["OutputRows"].isNull()) + detail_.outputRows = std::stol(detailNode["OutputRows"].asString()); + if(!detailNode["User"].isNull()) + detail_.user = detailNode["User"].asString(); if(!detailNode["StartTime"].isNull()) detail_.startTime = detailNode["StartTime"].asString(); - if(!detailNode["TotalTime"].isNull()) - detail_.totalTime = std::stol(detailNode["TotalTime"].asString()); + if(!detailNode["TotalStage"].isNull()) + detail_.totalStage = std::stol(detailNode["TotalStage"].asString()); if(!detailNode["QueuedTime"].isNull()) detail_.queuedTime = std::stol(detailNode["QueuedTime"].asString()); + if(!detailNode["TotalTime"].isNull()) + detail_.totalTime = std::stol(detailNode["TotalTime"].asString()); + if(!detailNode["TotalTask"].isNull()) + detail_.totalTask = std::stol(detailNode["TotalTask"].asString()); + if(!detailNode["Database"].isNull()) + detail_.database = detailNode["Database"].asString(); + if(!detailNode["PeakMemory"].isNull()) + detail_.peakMemory = std::stol(detailNode["PeakMemory"].asString()); + if(!detailNode["ClientIP"].isNull()) + detail_.clientIP = detailNode["ClientIP"].asString(); if(!detailNode["PlanningTime"].isNull()) detail_.planningTime = std::stol(detailNode["PlanningTime"].asString()); if(!detailNode["CPUTime"].isNull()) detail_.cPUTime = std::stol(detailNode["CPUTime"].asString()); - if(!detailNode["PeakMemory"].isNull()) - detail_.peakMemory = std::stol(detailNode["PeakMemory"].asString()); if(!value["OriginInfo"].isNull()) originInfo_ = value["OriginInfo"].asString(); diff --git a/adb/src/model/DescribeSQLPlanTaskRequest.cc b/adb/src/model/DescribeSQLPlanTaskRequest.cc index fa66cacbb..73ab4075a 100644 --- a/adb/src/model/DescribeSQLPlanTaskRequest.cc +++ b/adb/src/model/DescribeSQLPlanTaskRequest.cc @@ -1,117 +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::Adb::Model::DescribeSQLPlanTaskRequest; - -DescribeSQLPlanTaskRequest::DescribeSQLPlanTaskRequest() : - RpcServiceRequest("adb", "2019-03-15", "DescribeSQLPlanTask") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeSQLPlanTaskRequest::~DescribeSQLPlanTaskRequest() -{} - -long DescribeSQLPlanTaskRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Adb::Model::DescribeSQLPlanTaskRequest; + +DescribeSQLPlanTaskRequest::DescribeSQLPlanTaskRequest() + : RpcServiceRequest("adb", "2019-03-15", "DescribeSQLPlanTask") { + setMethod(HttpRequest::Method::Post); } -void DescribeSQLPlanTaskRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeSQLPlanTaskRequest::~DescribeSQLPlanTaskRequest() {} + +long DescribeSQLPlanTaskRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeSQLPlanTaskRequest::getAccessKeyId()const -{ - return accessKeyId_; +void DescribeSQLPlanTaskRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeSQLPlanTaskRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string DescribeSQLPlanTaskRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string DescribeSQLPlanTaskRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeSQLPlanTaskRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void DescribeSQLPlanTaskRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeSQLPlanTaskRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeSQLPlanTaskRequest::getDBClusterId()const -{ - return dBClusterId_; +void DescribeSQLPlanTaskRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeSQLPlanTaskRequest::setDBClusterId(const std::string& dBClusterId) -{ - dBClusterId_ = dBClusterId; - setParameter("DBClusterId", dBClusterId); +std::string DescribeSQLPlanTaskRequest::getDBClusterId() const { + return dBClusterId_; } -std::string DescribeSQLPlanTaskRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeSQLPlanTaskRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); } -void DescribeSQLPlanTaskRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeSQLPlanTaskRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeSQLPlanTaskRequest::getOwnerId()const -{ - return ownerId_; +void DescribeSQLPlanTaskRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeSQLPlanTaskRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeSQLPlanTaskRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeSQLPlanTaskRequest::getProcessId()const -{ - return processId_; +void DescribeSQLPlanTaskRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeSQLPlanTaskRequest::setProcessId(const std::string& processId) -{ - processId_ = processId; - setParameter("ProcessId", processId); +std::string DescribeSQLPlanTaskRequest::getProcessId() const { + return processId_; } -std::string DescribeSQLPlanTaskRequest::getStageId()const -{ - return stageId_; +void DescribeSQLPlanTaskRequest::setProcessId(const std::string &processId) { + processId_ = processId; + setParameter(std::string("ProcessId"), processId); } -void DescribeSQLPlanTaskRequest::setStageId(const std::string& stageId) -{ - stageId_ = stageId; - setParameter("StageId", stageId); +std::string DescribeSQLPlanTaskRequest::getStageId() const { + return stageId_; +} + +void DescribeSQLPlanTaskRequest::setStageId(const std::string &stageId) { + stageId_ = stageId; + setParameter(std::string("StageId"), stageId); } diff --git a/adb/src/model/DescribeSQLPlanTaskResult.cc b/adb/src/model/DescribeSQLPlanTaskResult.cc index 8cefe816e..43f64978d 100644 --- a/adb/src/model/DescribeSQLPlanTaskResult.cc +++ b/adb/src/model/DescribeSQLPlanTaskResult.cc @@ -43,30 +43,30 @@ void DescribeSQLPlanTaskResult::parse(const std::string &payload) for (auto valueTaskListSqlPlanTask : allTaskListNode) { SqlPlanTask taskListObject; - if(!valueTaskListSqlPlanTask["TaskId"].isNull()) - taskListObject.taskId = std::stoi(valueTaskListSqlPlanTask["TaskId"].asString()); - if(!valueTaskListSqlPlanTask["State"].isNull()) - taskListObject.state = valueTaskListSqlPlanTask["State"].asString(); - if(!valueTaskListSqlPlanTask["ElapsedTime"].isNull()) - taskListObject.elapsedTime = std::stol(valueTaskListSqlPlanTask["ElapsedTime"].asString()); - if(!valueTaskListSqlPlanTask["PeakMemory"].isNull()) - taskListObject.peakMemory = std::stol(valueTaskListSqlPlanTask["PeakMemory"].asString()); - if(!valueTaskListSqlPlanTask["OperatorCost"].isNull()) - taskListObject.operatorCost = std::stol(valueTaskListSqlPlanTask["OperatorCost"].asString()); - if(!valueTaskListSqlPlanTask["InputRows"].isNull()) - taskListObject.inputRows = std::stol(valueTaskListSqlPlanTask["InputRows"].asString()); - if(!valueTaskListSqlPlanTask["InputSize"].isNull()) - taskListObject.inputSize = std::stol(valueTaskListSqlPlanTask["InputSize"].asString()); - if(!valueTaskListSqlPlanTask["OutputRows"].isNull()) - taskListObject.outputRows = std::stol(valueTaskListSqlPlanTask["OutputRows"].asString()); - if(!valueTaskListSqlPlanTask["OutputSize"].isNull()) - taskListObject.outputSize = std::stol(valueTaskListSqlPlanTask["OutputSize"].asString()); - if(!valueTaskListSqlPlanTask["ScanRows"].isNull()) - taskListObject.scanRows = std::stol(valueTaskListSqlPlanTask["ScanRows"].asString()); - if(!valueTaskListSqlPlanTask["ScanSize"].isNull()) - taskListObject.scanSize = std::stol(valueTaskListSqlPlanTask["ScanSize"].asString()); if(!valueTaskListSqlPlanTask["ScanCost"].isNull()) taskListObject.scanCost = std::stol(valueTaskListSqlPlanTask["ScanCost"].asString()); + if(!valueTaskListSqlPlanTask["OutputSize"].isNull()) + taskListObject.outputSize = std::stol(valueTaskListSqlPlanTask["OutputSize"].asString()); + if(!valueTaskListSqlPlanTask["InputSize"].isNull()) + taskListObject.inputSize = std::stol(valueTaskListSqlPlanTask["InputSize"].asString()); + if(!valueTaskListSqlPlanTask["State"].isNull()) + taskListObject.state = valueTaskListSqlPlanTask["State"].asString(); + if(!valueTaskListSqlPlanTask["OperatorCost"].isNull()) + taskListObject.operatorCost = std::stol(valueTaskListSqlPlanTask["OperatorCost"].asString()); + if(!valueTaskListSqlPlanTask["OutputRows"].isNull()) + taskListObject.outputRows = std::stol(valueTaskListSqlPlanTask["OutputRows"].asString()); + if(!valueTaskListSqlPlanTask["ScanSize"].isNull()) + taskListObject.scanSize = std::stol(valueTaskListSqlPlanTask["ScanSize"].asString()); + if(!valueTaskListSqlPlanTask["ElapsedTime"].isNull()) + taskListObject.elapsedTime = std::stol(valueTaskListSqlPlanTask["ElapsedTime"].asString()); + if(!valueTaskListSqlPlanTask["ScanRows"].isNull()) + taskListObject.scanRows = std::stol(valueTaskListSqlPlanTask["ScanRows"].asString()); + if(!valueTaskListSqlPlanTask["PeakMemory"].isNull()) + taskListObject.peakMemory = std::stol(valueTaskListSqlPlanTask["PeakMemory"].asString()); + if(!valueTaskListSqlPlanTask["TaskId"].isNull()) + taskListObject.taskId = std::stoi(valueTaskListSqlPlanTask["TaskId"].asString()); + if(!valueTaskListSqlPlanTask["InputRows"].isNull()) + taskListObject.inputRows = std::stol(valueTaskListSqlPlanTask["InputRows"].asString()); taskList_.push_back(taskListObject); } diff --git a/adb/src/model/DescribeSchemasRequest.cc b/adb/src/model/DescribeSchemasRequest.cc index 5cb05dab7..87cb13c13 100644 --- a/adb/src/model/DescribeSchemasRequest.cc +++ b/adb/src/model/DescribeSchemasRequest.cc @@ -1,95 +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::Adb::Model::DescribeSchemasRequest; - -DescribeSchemasRequest::DescribeSchemasRequest() : - RpcServiceRequest("adb", "2019-03-15", "DescribeSchemas") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeSchemasRequest::~DescribeSchemasRequest() -{} - -long DescribeSchemasRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Adb::Model::DescribeSchemasRequest; + +DescribeSchemasRequest::DescribeSchemasRequest() + : RpcServiceRequest("adb", "2019-03-15", "DescribeSchemas") { + setMethod(HttpRequest::Method::Post); } -void DescribeSchemasRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeSchemasRequest::~DescribeSchemasRequest() {} + +long DescribeSchemasRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeSchemasRequest::getAccessKeyId()const -{ - return accessKeyId_; +void DescribeSchemasRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeSchemasRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string DescribeSchemasRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string DescribeSchemasRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeSchemasRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void DescribeSchemasRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeSchemasRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeSchemasRequest::getDBClusterId()const -{ - return dBClusterId_; +void DescribeSchemasRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeSchemasRequest::setDBClusterId(const std::string& dBClusterId) -{ - dBClusterId_ = dBClusterId; - setParameter("DBClusterId", dBClusterId); +std::string DescribeSchemasRequest::getDBClusterId() const { + return dBClusterId_; } -std::string DescribeSchemasRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeSchemasRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); } -void DescribeSchemasRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeSchemasRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeSchemasRequest::getOwnerId()const -{ - return ownerId_; +void DescribeSchemasRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeSchemasRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeSchemasRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeSchemasRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/adb/src/model/DescribeSlowLogRecordsRequest.cc b/adb/src/model/DescribeSlowLogRecordsRequest.cc index 0e56bee9c..e06033238 100644 --- a/adb/src/model/DescribeSlowLogRecordsRequest.cc +++ b/adb/src/model/DescribeSlowLogRecordsRequest.cc @@ -1,194 +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::Adb::Model::DescribeSlowLogRecordsRequest; - -DescribeSlowLogRecordsRequest::DescribeSlowLogRecordsRequest() : - RpcServiceRequest("adb", "2019-03-15", "DescribeSlowLogRecords") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeSlowLogRecordsRequest::~DescribeSlowLogRecordsRequest() -{} - -long DescribeSlowLogRecordsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Adb::Model::DescribeSlowLogRecordsRequest; + +DescribeSlowLogRecordsRequest::DescribeSlowLogRecordsRequest() + : RpcServiceRequest("adb", "2019-03-15", "DescribeSlowLogRecords") { + setMethod(HttpRequest::Method::Post); } -void DescribeSlowLogRecordsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeSlowLogRecordsRequest::~DescribeSlowLogRecordsRequest() {} + +long DescribeSlowLogRecordsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeSlowLogRecordsRequest::getRange()const -{ - return range_; +void DescribeSlowLogRecordsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeSlowLogRecordsRequest::setRange(const std::string& range) -{ - range_ = range; - setParameter("Range", range); +std::string DescribeSlowLogRecordsRequest::getRange() const { + return range_; } -std::string DescribeSlowLogRecordsRequest::getStartTime()const -{ - return startTime_; +void DescribeSlowLogRecordsRequest::setRange(const std::string &range) { + range_ = range; + setParameter(std::string("Range"), range); } -void DescribeSlowLogRecordsRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setParameter("StartTime", startTime); +std::string DescribeSlowLogRecordsRequest::getStartTime() const { + return startTime_; } -int DescribeSlowLogRecordsRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeSlowLogRecordsRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); } -void DescribeSlowLogRecordsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeSlowLogRecordsRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeSlowLogRecordsRequest::getAccessKeyId()const -{ - return accessKeyId_; +void DescribeSlowLogRecordsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeSlowLogRecordsRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string DescribeSlowLogRecordsRequest::getAccessKeyId() const { + return accessKeyId_; } -int DescribeSlowLogRecordsRequest::getPageSize()const -{ - return pageSize_; +void DescribeSlowLogRecordsRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void DescribeSlowLogRecordsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeSlowLogRecordsRequest::getPageSize() const { + return pageSize_; } -std::string DescribeSlowLogRecordsRequest::getState()const -{ - return state_; +void DescribeSlowLogRecordsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeSlowLogRecordsRequest::setState(const std::string& state) -{ - state_ = state; - setParameter("State", state); +std::string DescribeSlowLogRecordsRequest::getState() const { + return state_; } -std::string DescribeSlowLogRecordsRequest::getOrder()const -{ - return order_; +void DescribeSlowLogRecordsRequest::setState(const std::string &state) { + state_ = state; + setParameter(std::string("State"), state); } -void DescribeSlowLogRecordsRequest::setOrder(const std::string& order) -{ - order_ = order; - setParameter("Order", order); +std::string DescribeSlowLogRecordsRequest::getOrder() const { + return order_; } -std::string DescribeSlowLogRecordsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeSlowLogRecordsRequest::setOrder(const std::string &order) { + order_ = order; + setParameter(std::string("Order"), order); } -void DescribeSlowLogRecordsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeSlowLogRecordsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeSlowLogRecordsRequest::getDBClusterId()const -{ - return dBClusterId_; +void DescribeSlowLogRecordsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeSlowLogRecordsRequest::setDBClusterId(const std::string& dBClusterId) -{ - dBClusterId_ = dBClusterId; - setParameter("DBClusterId", dBClusterId); +std::string DescribeSlowLogRecordsRequest::getDBClusterId() const { + return dBClusterId_; } -std::string DescribeSlowLogRecordsRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeSlowLogRecordsRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); } -void DescribeSlowLogRecordsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeSlowLogRecordsRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string DescribeSlowLogRecordsRequest::getEndTime()const -{ - return endTime_; +void DescribeSlowLogRecordsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeSlowLogRecordsRequest::setEndTime(const std::string& endTime) -{ - endTime_ = endTime; - setParameter("EndTime", endTime); +std::string DescribeSlowLogRecordsRequest::getEndTime() const { + return endTime_; } -long DescribeSlowLogRecordsRequest::getOwnerId()const -{ - return ownerId_; +void DescribeSlowLogRecordsRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); } -void DescribeSlowLogRecordsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeSlowLogRecordsRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeSlowLogRecordsRequest::getDBName()const -{ - return dBName_; +void DescribeSlowLogRecordsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeSlowLogRecordsRequest::setDBName(const std::string& dBName) -{ - dBName_ = dBName; - setParameter("DBName", dBName); +std::string DescribeSlowLogRecordsRequest::getDBName() const { + return dBName_; } -std::string DescribeSlowLogRecordsRequest::getProcessID()const -{ - return processID_; +void DescribeSlowLogRecordsRequest::setDBName(const std::string &dBName) { + dBName_ = dBName; + setParameter(std::string("DBName"), dBName); } -void DescribeSlowLogRecordsRequest::setProcessID(const std::string& processID) -{ - processID_ = processID; - setParameter("ProcessID", processID); +std::string DescribeSlowLogRecordsRequest::getProcessID() const { + return processID_; +} + +void DescribeSlowLogRecordsRequest::setProcessID(const std::string &processID) { + processID_ = processID; + setParameter(std::string("ProcessID"), processID); } diff --git a/adb/src/model/DescribeSlowLogRecordsResult.cc b/adb/src/model/DescribeSlowLogRecordsResult.cc index a686789dd..f98c8ff37 100644 --- a/adb/src/model/DescribeSlowLogRecordsResult.cc +++ b/adb/src/model/DescribeSlowLogRecordsResult.cc @@ -43,42 +43,42 @@ void DescribeSlowLogRecordsResult::parse(const std::string &payload) for (auto valueItemsSlowLogRecord : allItemsNode) { SlowLogRecord itemsObject; - if(!valueItemsSlowLogRecord["OutputSize"].isNull()) - itemsObject.outputSize = valueItemsSlowLogRecord["OutputSize"].asString(); - if(!valueItemsSlowLogRecord["UserName"].isNull()) - itemsObject.userName = valueItemsSlowLogRecord["UserName"].asString(); - if(!valueItemsSlowLogRecord["PeakMemoryUsage"].isNull()) - itemsObject.peakMemoryUsage = valueItemsSlowLogRecord["PeakMemoryUsage"].asString(); - if(!valueItemsSlowLogRecord["ExecutionStartTime"].isNull()) - itemsObject.executionStartTime = valueItemsSlowLogRecord["ExecutionStartTime"].asString(); - if(!valueItemsSlowLogRecord["ParseRowCounts"].isNull()) - itemsObject.parseRowCounts = std::stol(valueItemsSlowLogRecord["ParseRowCounts"].asString()); - if(!valueItemsSlowLogRecord["QueryTime"].isNull()) - itemsObject.queryTime = std::stol(valueItemsSlowLogRecord["QueryTime"].asString()); - if(!valueItemsSlowLogRecord["ScanTime"].isNull()) - itemsObject.scanTime = std::stol(valueItemsSlowLogRecord["ScanTime"].asString()); if(!valueItemsSlowLogRecord["HostAddress"].isNull()) itemsObject.hostAddress = valueItemsSlowLogRecord["HostAddress"].asString(); + if(!valueItemsSlowLogRecord["ScanTime"].isNull()) + itemsObject.scanTime = std::stol(valueItemsSlowLogRecord["ScanTime"].asString()); if(!valueItemsSlowLogRecord["SQLText"].isNull()) itemsObject.sQLText = valueItemsSlowLogRecord["SQLText"].asString(); - if(!valueItemsSlowLogRecord["WallTime"].isNull()) - itemsObject.wallTime = std::stol(valueItemsSlowLogRecord["WallTime"].asString()); - if(!valueItemsSlowLogRecord["ScanRows"].isNull()) - itemsObject.scanRows = std::stol(valueItemsSlowLogRecord["ScanRows"].asString()); + if(!valueItemsSlowLogRecord["OutputSize"].isNull()) + itemsObject.outputSize = valueItemsSlowLogRecord["OutputSize"].asString(); + if(!valueItemsSlowLogRecord["PeakMemoryUsage"].isNull()) + itemsObject.peakMemoryUsage = valueItemsSlowLogRecord["PeakMemoryUsage"].asString(); if(!valueItemsSlowLogRecord["State"].isNull()) itemsObject.state = valueItemsSlowLogRecord["State"].asString(); - if(!valueItemsSlowLogRecord["ReturnRowCounts"].isNull()) - itemsObject.returnRowCounts = std::stol(valueItemsSlowLogRecord["ReturnRowCounts"].asString()); - if(!valueItemsSlowLogRecord["PlanningTime"].isNull()) - itemsObject.planningTime = std::stol(valueItemsSlowLogRecord["PlanningTime"].asString()); - if(!valueItemsSlowLogRecord["DBName"].isNull()) - itemsObject.dBName = valueItemsSlowLogRecord["DBName"].asString(); - if(!valueItemsSlowLogRecord["QueueTime"].isNull()) - itemsObject.queueTime = std::stol(valueItemsSlowLogRecord["QueueTime"].asString()); - if(!valueItemsSlowLogRecord["ProcessID"].isNull()) - itemsObject.processID = valueItemsSlowLogRecord["ProcessID"].asString(); + if(!valueItemsSlowLogRecord["WallTime"].isNull()) + itemsObject.wallTime = std::stol(valueItemsSlowLogRecord["WallTime"].asString()); if(!valueItemsSlowLogRecord["ScanSize"].isNull()) itemsObject.scanSize = valueItemsSlowLogRecord["ScanSize"].asString(); + if(!valueItemsSlowLogRecord["ExecutionStartTime"].isNull()) + itemsObject.executionStartTime = valueItemsSlowLogRecord["ExecutionStartTime"].asString(); + if(!valueItemsSlowLogRecord["QueryTime"].isNull()) + itemsObject.queryTime = std::stol(valueItemsSlowLogRecord["QueryTime"].asString()); + if(!valueItemsSlowLogRecord["ReturnRowCounts"].isNull()) + itemsObject.returnRowCounts = std::stol(valueItemsSlowLogRecord["ReturnRowCounts"].asString()); + if(!valueItemsSlowLogRecord["ScanRows"].isNull()) + itemsObject.scanRows = std::stol(valueItemsSlowLogRecord["ScanRows"].asString()); + if(!valueItemsSlowLogRecord["ParseRowCounts"].isNull()) + itemsObject.parseRowCounts = std::stol(valueItemsSlowLogRecord["ParseRowCounts"].asString()); + if(!valueItemsSlowLogRecord["DBName"].isNull()) + itemsObject.dBName = valueItemsSlowLogRecord["DBName"].asString(); + if(!valueItemsSlowLogRecord["PlanningTime"].isNull()) + itemsObject.planningTime = std::stol(valueItemsSlowLogRecord["PlanningTime"].asString()); + if(!valueItemsSlowLogRecord["QueueTime"].isNull()) + itemsObject.queueTime = std::stol(valueItemsSlowLogRecord["QueueTime"].asString()); + if(!valueItemsSlowLogRecord["UserName"].isNull()) + itemsObject.userName = valueItemsSlowLogRecord["UserName"].asString(); + if(!valueItemsSlowLogRecord["ProcessID"].isNull()) + itemsObject.processID = valueItemsSlowLogRecord["ProcessID"].asString(); items_.push_back(itemsObject); } if(!value["TotalCount"].isNull()) diff --git a/adb/src/model/DescribeSlowLogTrendRequest.cc b/adb/src/model/DescribeSlowLogTrendRequest.cc index 63c56b111..896338ffb 100644 --- a/adb/src/model/DescribeSlowLogTrendRequest.cc +++ b/adb/src/model/DescribeSlowLogTrendRequest.cc @@ -1,128 +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::Adb::Model::DescribeSlowLogTrendRequest; - -DescribeSlowLogTrendRequest::DescribeSlowLogTrendRequest() : - RpcServiceRequest("adb", "2019-03-15", "DescribeSlowLogTrend") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeSlowLogTrendRequest::~DescribeSlowLogTrendRequest() -{} - -long DescribeSlowLogTrendRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Adb::Model::DescribeSlowLogTrendRequest; + +DescribeSlowLogTrendRequest::DescribeSlowLogTrendRequest() + : RpcServiceRequest("adb", "2019-03-15", "DescribeSlowLogTrend") { + setMethod(HttpRequest::Method::Post); } -void DescribeSlowLogTrendRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeSlowLogTrendRequest::~DescribeSlowLogTrendRequest() {} + +long DescribeSlowLogTrendRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeSlowLogTrendRequest::getStartTime()const -{ - return startTime_; +void DescribeSlowLogTrendRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeSlowLogTrendRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setParameter("StartTime", startTime); +std::string DescribeSlowLogTrendRequest::getStartTime() const { + return startTime_; } -std::string DescribeSlowLogTrendRequest::getAccessKeyId()const -{ - return accessKeyId_; +void DescribeSlowLogTrendRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); } -void DescribeSlowLogTrendRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string DescribeSlowLogTrendRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string DescribeSlowLogTrendRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeSlowLogTrendRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void DescribeSlowLogTrendRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeSlowLogTrendRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeSlowLogTrendRequest::getDBClusterId()const -{ - return dBClusterId_; +void DescribeSlowLogTrendRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeSlowLogTrendRequest::setDBClusterId(const std::string& dBClusterId) -{ - dBClusterId_ = dBClusterId; - setParameter("DBClusterId", dBClusterId); +std::string DescribeSlowLogTrendRequest::getDBClusterId() const { + return dBClusterId_; } -std::string DescribeSlowLogTrendRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeSlowLogTrendRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); } -void DescribeSlowLogTrendRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeSlowLogTrendRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string DescribeSlowLogTrendRequest::getEndTime()const -{ - return endTime_; +void DescribeSlowLogTrendRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeSlowLogTrendRequest::setEndTime(const std::string& endTime) -{ - endTime_ = endTime; - setParameter("EndTime", endTime); +std::string DescribeSlowLogTrendRequest::getEndTime() const { + return endTime_; } -long DescribeSlowLogTrendRequest::getOwnerId()const -{ - return ownerId_; +void DescribeSlowLogTrendRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); } -void DescribeSlowLogTrendRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeSlowLogTrendRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeSlowLogTrendRequest::getDBName()const -{ - return dBName_; +void DescribeSlowLogTrendRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeSlowLogTrendRequest::setDBName(const std::string& dBName) -{ - dBName_ = dBName; - setParameter("DBName", dBName); +std::string DescribeSlowLogTrendRequest::getDBName() const { + return dBName_; +} + +void DescribeSlowLogTrendRequest::setDBName(const std::string &dBName) { + dBName_ = dBName; + setParameter(std::string("DBName"), dBName); } diff --git a/adb/src/model/DescribeSlowLogTrendResult.cc b/adb/src/model/DescribeSlowLogTrendResult.cc index 7f89d8929..a0926ab4d 100644 --- a/adb/src/model/DescribeSlowLogTrendResult.cc +++ b/adb/src/model/DescribeSlowLogTrendResult.cc @@ -51,20 +51,20 @@ void DescribeSlowLogTrendResult::parse(const std::string &payload) for (auto valueItemsSlowLogTrendItemSeriesSeriesItem : allSeriesNode) { SlowLogTrendItem::SeriesItem seriesObject; - if(!valueItemsSlowLogTrendItemSeriesSeriesItem["Name"].isNull()) - seriesObject.name = valueItemsSlowLogTrendItemSeriesSeriesItem["Name"].asString(); if(!valueItemsSlowLogTrendItemSeriesSeriesItem["Values"].isNull()) seriesObject.values = valueItemsSlowLogTrendItemSeriesSeriesItem["Values"].asString(); + if(!valueItemsSlowLogTrendItemSeriesSeriesItem["Name"].isNull()) + seriesObject.name = valueItemsSlowLogTrendItemSeriesSeriesItem["Name"].asString(); itemsObject.series.push_back(seriesObject); } items_.push_back(itemsObject); } - if(!value["DBClusterId"].isNull()) - dBClusterId_ = value["DBClusterId"].asString(); - if(!value["StartTime"].isNull()) - startTime_ = value["StartTime"].asString(); if(!value["EndTime"].isNull()) endTime_ = value["EndTime"].asString(); + if(!value["StartTime"].isNull()) + startTime_ = value["StartTime"].asString(); + if(!value["DBClusterId"].isNull()) + dBClusterId_ = value["DBClusterId"].asString(); } @@ -73,16 +73,16 @@ std::string DescribeSlowLogTrendResult::getEndTime()const return endTime_; } -std::string DescribeSlowLogTrendResult::getDBClusterId()const -{ - return dBClusterId_; -} - std::string DescribeSlowLogTrendResult::getStartTime()const { return startTime_; } +std::string DescribeSlowLogTrendResult::getDBClusterId()const +{ + return dBClusterId_; +} + std::vector DescribeSlowLogTrendResult::getItems()const { return items_; diff --git a/adb/src/model/DescribeSqlPatternRequest.cc b/adb/src/model/DescribeSqlPatternRequest.cc new file mode 100644 index 000000000..b8aaca378 --- /dev/null +++ b/adb/src/model/DescribeSqlPatternRequest.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::Adb::Model::DescribeSqlPatternRequest; + +DescribeSqlPatternRequest::DescribeSqlPatternRequest() + : RpcServiceRequest("adb", "2019-03-15", "DescribeSqlPattern") { + setMethod(HttpRequest::Method::Post); +} + +DescribeSqlPatternRequest::~DescribeSqlPatternRequest() {} + +std::string DescribeSqlPatternRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DescribeSqlPatternRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string DescribeSqlPatternRequest::getSqlPattern() const { + return sqlPattern_; +} + +void DescribeSqlPatternRequest::setSqlPattern(const std::string &sqlPattern) { + sqlPattern_ = sqlPattern; + setParameter(std::string("SqlPattern"), sqlPattern); +} + +std::string DescribeSqlPatternRequest::getStartTime() const { + return startTime_; +} + +void DescribeSqlPatternRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); +} + +std::string DescribeSqlPatternRequest::getType() const { + return type_; +} + +void DescribeSqlPatternRequest::setType(const std::string &type) { + type_ = type; + setParameter(std::string("Type"), type); +} + +int DescribeSqlPatternRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeSqlPatternRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string DescribeSqlPatternRequest::getRegionId() const { + return regionId_; +} + +void DescribeSqlPatternRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +int DescribeSqlPatternRequest::getPageSize() const { + return pageSize_; +} + +void DescribeSqlPatternRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string DescribeSqlPatternRequest::getOrder() const { + return order_; +} + +void DescribeSqlPatternRequest::setOrder(const std::string &order) { + order_ = order; + setParameter(std::string("Order"), order); +} + diff --git a/adb/src/model/DescribeSqlPatternResult.cc b/adb/src/model/DescribeSqlPatternResult.cc new file mode 100644 index 000000000..6160c121e --- /dev/null +++ b/adb/src/model/DescribeSqlPatternResult.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 +#include + +using namespace AlibabaCloud::Adb; +using namespace AlibabaCloud::Adb::Model; + +DescribeSqlPatternResult::DescribeSqlPatternResult() : + ServiceResult() +{} + +DescribeSqlPatternResult::DescribeSqlPatternResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSqlPatternResult::~DescribeSqlPatternResult() +{} + +void DescribeSqlPatternResult::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["AvgStageCount"].isNull()) + itemsObject.avgStageCount = valueItemsItemsItem["AvgStageCount"].asString(); + if(!valueItemsItemsItem["MaxCpuTime"].isNull()) + itemsObject.maxCpuTime = valueItemsItemsItem["MaxCpuTime"].asString(); + if(!valueItemsItemsItem["AccessIP"].isNull()) + itemsObject.accessIP = valueItemsItemsItem["AccessIP"].asString(); + if(!valueItemsItemsItem["AvgScanSize"].isNull()) + itemsObject.avgScanSize = valueItemsItemsItem["AvgScanSize"].asString(); + if(!valueItemsItemsItem["MaxScanSize"].isNull()) + itemsObject.maxScanSize = valueItemsItemsItem["MaxScanSize"].asString(); + if(!valueItemsItemsItem["MaxPeakMemory"].isNull()) + itemsObject.maxPeakMemory = valueItemsItemsItem["MaxPeakMemory"].asString(); + if(!valueItemsItemsItem["AvgCpuTime"].isNull()) + itemsObject.avgCpuTime = valueItemsItemsItem["AvgCpuTime"].asString(); + if(!valueItemsItemsItem["User"].isNull()) + itemsObject.user = valueItemsItemsItem["User"].asString(); + if(!valueItemsItemsItem["AvgPeakMemory"].isNull()) + itemsObject.avgPeakMemory = valueItemsItemsItem["AvgPeakMemory"].asString(); + if(!valueItemsItemsItem["MaxStageCount"].isNull()) + itemsObject.maxStageCount = valueItemsItemsItem["MaxStageCount"].asString(); + if(!valueItemsItemsItem["MaxTaskCount"].isNull()) + itemsObject.maxTaskCount = valueItemsItemsItem["MaxTaskCount"].asString(); + if(!valueItemsItemsItem["InstanceName"].isNull()) + itemsObject.instanceName = valueItemsItemsItem["InstanceName"].asString(); + if(!valueItemsItemsItem["QueryCount"].isNull()) + itemsObject.queryCount = valueItemsItemsItem["QueryCount"].asString(); + if(!valueItemsItemsItem["ReportDate"].isNull()) + itemsObject.reportDate = valueItemsItemsItem["ReportDate"].asString(); + if(!valueItemsItemsItem["Pattern"].isNull()) + itemsObject.pattern = valueItemsItemsItem["Pattern"].asString(); + if(!valueItemsItemsItem["AvgTaskCount"].isNull()) + itemsObject.avgTaskCount = valueItemsItemsItem["AvgTaskCount"].asString(); + items_.push_back(itemsObject); + } + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int DescribeSqlPatternResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeSqlPatternResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeSqlPatternResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeSqlPatternResult::getItems()const +{ + return items_; +} + diff --git a/adb/src/model/DescribeTableAccessCountRequest.cc b/adb/src/model/DescribeTableAccessCountRequest.cc new file mode 100644 index 000000000..989b7e741 --- /dev/null +++ b/adb/src/model/DescribeTableAccessCountRequest.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::Adb::Model::DescribeTableAccessCountRequest; + +DescribeTableAccessCountRequest::DescribeTableAccessCountRequest() + : RpcServiceRequest("adb", "2019-03-15", "DescribeTableAccessCount") { + setMethod(HttpRequest::Method::Post); +} + +DescribeTableAccessCountRequest::~DescribeTableAccessCountRequest() {} + +std::string DescribeTableAccessCountRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DescribeTableAccessCountRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string DescribeTableAccessCountRequest::getStartTime() const { + return startTime_; +} + +void DescribeTableAccessCountRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); +} + +int DescribeTableAccessCountRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeTableAccessCountRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string DescribeTableAccessCountRequest::getRegionId() const { + return regionId_; +} + +void DescribeTableAccessCountRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +int DescribeTableAccessCountRequest::getPageSize() const { + return pageSize_; +} + +void DescribeTableAccessCountRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string DescribeTableAccessCountRequest::getTableName() const { + return tableName_; +} + +void DescribeTableAccessCountRequest::setTableName(const std::string &tableName) { + tableName_ = tableName; + setParameter(std::string("TableName"), tableName); +} + +std::string DescribeTableAccessCountRequest::getOrder() const { + return order_; +} + +void DescribeTableAccessCountRequest::setOrder(const std::string &order) { + order_ = order; + setParameter(std::string("Order"), order); +} + diff --git a/adb/src/model/DescribeTableAccessCountResult.cc b/adb/src/model/DescribeTableAccessCountResult.cc new file mode 100644 index 000000000..b60664d4c --- /dev/null +++ b/adb/src/model/DescribeTableAccessCountResult.cc @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Adb; +using namespace AlibabaCloud::Adb::Model; + +DescribeTableAccessCountResult::DescribeTableAccessCountResult() : + ServiceResult() +{} + +DescribeTableAccessCountResult::DescribeTableAccessCountResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeTableAccessCountResult::~DescribeTableAccessCountResult() +{} + +void DescribeTableAccessCountResult::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["ReportDate"].isNull()) + itemsObject.reportDate = valueItemsItemsItem["ReportDate"].asString(); + if(!valueItemsItemsItem["TableSchema"].isNull()) + itemsObject.tableSchema = valueItemsItemsItem["TableSchema"].asString(); + if(!valueItemsItemsItem["AccessCount"].isNull()) + itemsObject.accessCount = valueItemsItemsItem["AccessCount"].asString(); + if(!valueItemsItemsItem["TableName"].isNull()) + itemsObject.tableName = valueItemsItemsItem["TableName"].asString(); + if(!valueItemsItemsItem["InstanceName"].isNull()) + itemsObject.instanceName = valueItemsItemsItem["InstanceName"].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_ = std::stoi(value["TotalCount"].asString()); + +} + +int DescribeTableAccessCountResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeTableAccessCountResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeTableAccessCountResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeTableAccessCountResult::getItems()const +{ + return items_; +} + diff --git a/adb/src/model/DescribeTableDetailRequest.cc b/adb/src/model/DescribeTableDetailRequest.cc index ba9cd76dd..942ef3a0e 100644 --- a/adb/src/model/DescribeTableDetailRequest.cc +++ b/adb/src/model/DescribeTableDetailRequest.cc @@ -1,117 +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::Adb::Model::DescribeTableDetailRequest; - -DescribeTableDetailRequest::DescribeTableDetailRequest() : - RpcServiceRequest("adb", "2019-03-15", "DescribeTableDetail") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeTableDetailRequest::~DescribeTableDetailRequest() -{} - -long DescribeTableDetailRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Adb::Model::DescribeTableDetailRequest; + +DescribeTableDetailRequest::DescribeTableDetailRequest() + : RpcServiceRequest("adb", "2019-03-15", "DescribeTableDetail") { + setMethod(HttpRequest::Method::Post); } -void DescribeTableDetailRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeTableDetailRequest::~DescribeTableDetailRequest() {} + +long DescribeTableDetailRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeTableDetailRequest::getAccessKeyId()const -{ - return accessKeyId_; +void DescribeTableDetailRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeTableDetailRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string DescribeTableDetailRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string DescribeTableDetailRequest::getTableName()const -{ - return tableName_; +void DescribeTableDetailRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void DescribeTableDetailRequest::setTableName(const std::string& tableName) -{ - tableName_ = tableName; - setParameter("TableName", tableName); +std::string DescribeTableDetailRequest::getTableName() const { + return tableName_; } -std::string DescribeTableDetailRequest::getSchemaName()const -{ - return schemaName_; +void DescribeTableDetailRequest::setTableName(const std::string &tableName) { + tableName_ = tableName; + setParameter(std::string("TableName"), tableName); } -void DescribeTableDetailRequest::setSchemaName(const std::string& schemaName) -{ - schemaName_ = schemaName; - setParameter("SchemaName", schemaName); +std::string DescribeTableDetailRequest::getSchemaName() const { + return schemaName_; } -std::string DescribeTableDetailRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeTableDetailRequest::setSchemaName(const std::string &schemaName) { + schemaName_ = schemaName; + setParameter(std::string("SchemaName"), schemaName); } -void DescribeTableDetailRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeTableDetailRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeTableDetailRequest::getDBClusterId()const -{ - return dBClusterId_; +void DescribeTableDetailRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeTableDetailRequest::setDBClusterId(const std::string& dBClusterId) -{ - dBClusterId_ = dBClusterId; - setParameter("DBClusterId", dBClusterId); +std::string DescribeTableDetailRequest::getDBClusterId() const { + return dBClusterId_; } -std::string DescribeTableDetailRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeTableDetailRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); } -void DescribeTableDetailRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeTableDetailRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeTableDetailRequest::getOwnerId()const -{ - return ownerId_; +void DescribeTableDetailRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeTableDetailRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeTableDetailRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeTableDetailRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/adb/src/model/DescribeTableDetailResult.cc b/adb/src/model/DescribeTableDetailResult.cc index 094c0e7e6..7a2238587 100644 --- a/adb/src/model/DescribeTableDetailResult.cc +++ b/adb/src/model/DescribeTableDetailResult.cc @@ -43,10 +43,10 @@ void DescribeTableDetailResult::parse(const std::string &payload) for (auto valueItemsShard : allItemsNode) { Shard itemsObject; - if(!valueItemsShard["Id"].isNull()) - itemsObject.id = std::stoi(valueItemsShard["Id"].asString()); if(!valueItemsShard["Size"].isNull()) itemsObject.size = std::stol(valueItemsShard["Size"].asString()); + if(!valueItemsShard["Id"].isNull()) + itemsObject.id = std::stoi(valueItemsShard["Id"].asString()); items_.push_back(itemsObject); } if(!value["AvgSize"].isNull()) diff --git a/adb/src/model/DescribeTablePartitionDiagnoseRequest.cc b/adb/src/model/DescribeTablePartitionDiagnoseRequest.cc index a92bf1c0b..4756e38fe 100644 --- a/adb/src/model/DescribeTablePartitionDiagnoseRequest.cc +++ b/adb/src/model/DescribeTablePartitionDiagnoseRequest.cc @@ -1,128 +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::Adb::Model::DescribeTablePartitionDiagnoseRequest; - -DescribeTablePartitionDiagnoseRequest::DescribeTablePartitionDiagnoseRequest() : - RpcServiceRequest("adb", "2019-03-15", "DescribeTablePartitionDiagnose") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeTablePartitionDiagnoseRequest::~DescribeTablePartitionDiagnoseRequest() -{} - -long DescribeTablePartitionDiagnoseRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Adb::Model::DescribeTablePartitionDiagnoseRequest; + +DescribeTablePartitionDiagnoseRequest::DescribeTablePartitionDiagnoseRequest() + : RpcServiceRequest("adb", "2019-03-15", "DescribeTablePartitionDiagnose") { + setMethod(HttpRequest::Method::Post); } -void DescribeTablePartitionDiagnoseRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeTablePartitionDiagnoseRequest::~DescribeTablePartitionDiagnoseRequest() {} + +long DescribeTablePartitionDiagnoseRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -int DescribeTablePartitionDiagnoseRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeTablePartitionDiagnoseRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeTablePartitionDiagnoseRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeTablePartitionDiagnoseRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeTablePartitionDiagnoseRequest::getAccessKeyId()const -{ - return accessKeyId_; +void DescribeTablePartitionDiagnoseRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeTablePartitionDiagnoseRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string DescribeTablePartitionDiagnoseRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string DescribeTablePartitionDiagnoseRequest::getRegionId()const -{ - return regionId_; +void DescribeTablePartitionDiagnoseRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void DescribeTablePartitionDiagnoseRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeTablePartitionDiagnoseRequest::getRegionId() const { + return regionId_; } -int DescribeTablePartitionDiagnoseRequest::getPageSize()const -{ - return pageSize_; +void DescribeTablePartitionDiagnoseRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeTablePartitionDiagnoseRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeTablePartitionDiagnoseRequest::getPageSize() const { + return pageSize_; } -std::string DescribeTablePartitionDiagnoseRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeTablePartitionDiagnoseRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeTablePartitionDiagnoseRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeTablePartitionDiagnoseRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeTablePartitionDiagnoseRequest::getDBClusterId()const -{ - return dBClusterId_; +void DescribeTablePartitionDiagnoseRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeTablePartitionDiagnoseRequest::setDBClusterId(const std::string& dBClusterId) -{ - dBClusterId_ = dBClusterId; - setParameter("DBClusterId", dBClusterId); +std::string DescribeTablePartitionDiagnoseRequest::getDBClusterId() const { + return dBClusterId_; } -std::string DescribeTablePartitionDiagnoseRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeTablePartitionDiagnoseRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); } -void DescribeTablePartitionDiagnoseRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeTablePartitionDiagnoseRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeTablePartitionDiagnoseRequest::getOwnerId()const -{ - return ownerId_; +void DescribeTablePartitionDiagnoseRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeTablePartitionDiagnoseRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeTablePartitionDiagnoseRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeTablePartitionDiagnoseRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/adb/src/model/DescribeTablePartitionDiagnoseResult.cc b/adb/src/model/DescribeTablePartitionDiagnoseResult.cc index 6eed49b06..35025e9c1 100644 --- a/adb/src/model/DescribeTablePartitionDiagnoseResult.cc +++ b/adb/src/model/DescribeTablePartitionDiagnoseResult.cc @@ -45,12 +45,12 @@ void DescribeTablePartitionDiagnoseResult::parse(const std::string &payload) TablePartitionDiagnose itemsObject; if(!valueItemsTablePartitionDiagnose["TableName"].isNull()) itemsObject.tableName = valueItemsTablePartitionDiagnose["TableName"].asString(); - if(!valueItemsTablePartitionDiagnose["PartitionNumber"].isNull()) - itemsObject.partitionNumber = std::stoi(valueItemsTablePartitionDiagnose["PartitionNumber"].asString()); if(!valueItemsTablePartitionDiagnose["PartitionDetail"].isNull()) itemsObject.partitionDetail = valueItemsTablePartitionDiagnose["PartitionDetail"].asString(); if(!valueItemsTablePartitionDiagnose["SchemaName"].isNull()) itemsObject.schemaName = valueItemsTablePartitionDiagnose["SchemaName"].asString(); + if(!valueItemsTablePartitionDiagnose["PartitionNumber"].isNull()) + itemsObject.partitionNumber = std::stoi(valueItemsTablePartitionDiagnose["PartitionNumber"].asString()); items_.push_back(itemsObject); } if(!value["TotalCount"].isNull()) diff --git a/adb/src/model/DescribeTableStatisticsRequest.cc b/adb/src/model/DescribeTableStatisticsRequest.cc index e1459a09e..ddc935cab 100644 --- a/adb/src/model/DescribeTableStatisticsRequest.cc +++ b/adb/src/model/DescribeTableStatisticsRequest.cc @@ -1,128 +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::Adb::Model::DescribeTableStatisticsRequest; - -DescribeTableStatisticsRequest::DescribeTableStatisticsRequest() : - RpcServiceRequest("adb", "2019-03-15", "DescribeTableStatistics") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeTableStatisticsRequest::~DescribeTableStatisticsRequest() -{} - -long DescribeTableStatisticsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Adb::Model::DescribeTableStatisticsRequest; + +DescribeTableStatisticsRequest::DescribeTableStatisticsRequest() + : RpcServiceRequest("adb", "2019-03-15", "DescribeTableStatistics") { + setMethod(HttpRequest::Method::Post); } -void DescribeTableStatisticsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeTableStatisticsRequest::~DescribeTableStatisticsRequest() {} + +long DescribeTableStatisticsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -int DescribeTableStatisticsRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeTableStatisticsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeTableStatisticsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeTableStatisticsRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeTableStatisticsRequest::getAccessKeyId()const -{ - return accessKeyId_; +void DescribeTableStatisticsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeTableStatisticsRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string DescribeTableStatisticsRequest::getAccessKeyId() const { + return accessKeyId_; } -int DescribeTableStatisticsRequest::getPageSize()const -{ - return pageSize_; +void DescribeTableStatisticsRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void DescribeTableStatisticsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeTableStatisticsRequest::getPageSize() const { + return pageSize_; } -std::string DescribeTableStatisticsRequest::getOrder()const -{ - return order_; +void DescribeTableStatisticsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeTableStatisticsRequest::setOrder(const std::string& order) -{ - order_ = order; - setParameter("Order", order); +std::string DescribeTableStatisticsRequest::getOrder() const { + return order_; } -std::string DescribeTableStatisticsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeTableStatisticsRequest::setOrder(const std::string &order) { + order_ = order; + setParameter(std::string("Order"), order); } -void DescribeTableStatisticsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeTableStatisticsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeTableStatisticsRequest::getDBClusterId()const -{ - return dBClusterId_; +void DescribeTableStatisticsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeTableStatisticsRequest::setDBClusterId(const std::string& dBClusterId) -{ - dBClusterId_ = dBClusterId; - setParameter("DBClusterId", dBClusterId); +std::string DescribeTableStatisticsRequest::getDBClusterId() const { + return dBClusterId_; } -std::string DescribeTableStatisticsRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeTableStatisticsRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); } -void DescribeTableStatisticsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeTableStatisticsRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeTableStatisticsRequest::getOwnerId()const -{ - return ownerId_; +void DescribeTableStatisticsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeTableStatisticsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeTableStatisticsRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeTableStatisticsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/adb/src/model/DescribeTableStatisticsResult.cc b/adb/src/model/DescribeTableStatisticsResult.cc index ab7592526..1119929da 100644 --- a/adb/src/model/DescribeTableStatisticsResult.cc +++ b/adb/src/model/DescribeTableStatisticsResult.cc @@ -43,22 +43,22 @@ void DescribeTableStatisticsResult::parse(const std::string &payload) for (auto valueItemsTableStatisticRecords : allItemsNode) { TableStatisticRecords itemsObject; - if(!valueItemsTableStatisticRecords["TableName"].isNull()) - itemsObject.tableName = valueItemsTableStatisticRecords["TableName"].asString(); - if(!valueItemsTableStatisticRecords["ColdDataSize"].isNull()) - itemsObject.coldDataSize = std::stol(valueItemsTableStatisticRecords["ColdDataSize"].asString()); - if(!valueItemsTableStatisticRecords["DataSize"].isNull()) - itemsObject.dataSize = std::stol(valueItemsTableStatisticRecords["DataSize"].asString()); - if(!valueItemsTableStatisticRecords["PrimaryKeyIndexSize"].isNull()) - itemsObject.primaryKeyIndexSize = std::stol(valueItemsTableStatisticRecords["PrimaryKeyIndexSize"].asString()); - if(!valueItemsTableStatisticRecords["IndexSize"].isNull()) - itemsObject.indexSize = std::stol(valueItemsTableStatisticRecords["IndexSize"].asString()); - if(!valueItemsTableStatisticRecords["RowCount"].isNull()) - itemsObject.rowCount = std::stol(valueItemsTableStatisticRecords["RowCount"].asString()); - if(!valueItemsTableStatisticRecords["PartitionCount"].isNull()) - itemsObject.partitionCount = std::stol(valueItemsTableStatisticRecords["PartitionCount"].asString()); if(!valueItemsTableStatisticRecords["SchemaName"].isNull()) itemsObject.schemaName = valueItemsTableStatisticRecords["SchemaName"].asString(); + if(!valueItemsTableStatisticRecords["TableName"].isNull()) + itemsObject.tableName = valueItemsTableStatisticRecords["TableName"].asString(); + if(!valueItemsTableStatisticRecords["RowCount"].isNull()) + itemsObject.rowCount = std::stol(valueItemsTableStatisticRecords["RowCount"].asString()); + if(!valueItemsTableStatisticRecords["DataSize"].isNull()) + itemsObject.dataSize = std::stol(valueItemsTableStatisticRecords["DataSize"].asString()); + if(!valueItemsTableStatisticRecords["IndexSize"].isNull()) + itemsObject.indexSize = std::stol(valueItemsTableStatisticRecords["IndexSize"].asString()); + if(!valueItemsTableStatisticRecords["PrimaryKeyIndexSize"].isNull()) + itemsObject.primaryKeyIndexSize = std::stol(valueItemsTableStatisticRecords["PrimaryKeyIndexSize"].asString()); + if(!valueItemsTableStatisticRecords["PartitionCount"].isNull()) + itemsObject.partitionCount = std::stol(valueItemsTableStatisticRecords["PartitionCount"].asString()); + if(!valueItemsTableStatisticRecords["ColdDataSize"].isNull()) + itemsObject.coldDataSize = std::stol(valueItemsTableStatisticRecords["ColdDataSize"].asString()); items_.push_back(itemsObject); } if(!value["TotalCount"].isNull()) diff --git a/adb/src/model/DescribeTablesRequest.cc b/adb/src/model/DescribeTablesRequest.cc index de07fa889..def811763 100644 --- a/adb/src/model/DescribeTablesRequest.cc +++ b/adb/src/model/DescribeTablesRequest.cc @@ -1,106 +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::Adb::Model::DescribeTablesRequest; - -DescribeTablesRequest::DescribeTablesRequest() : - RpcServiceRequest("adb", "2019-03-15", "DescribeTables") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeTablesRequest::~DescribeTablesRequest() -{} - -long DescribeTablesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Adb::Model::DescribeTablesRequest; + +DescribeTablesRequest::DescribeTablesRequest() + : RpcServiceRequest("adb", "2019-03-15", "DescribeTables") { + setMethod(HttpRequest::Method::Post); } -void DescribeTablesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeTablesRequest::~DescribeTablesRequest() {} + +long DescribeTablesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeTablesRequest::getAccessKeyId()const -{ - return accessKeyId_; +void DescribeTablesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeTablesRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string DescribeTablesRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string DescribeTablesRequest::getSchemaName()const -{ - return schemaName_; +void DescribeTablesRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void DescribeTablesRequest::setSchemaName(const std::string& schemaName) -{ - schemaName_ = schemaName; - setParameter("SchemaName", schemaName); +std::string DescribeTablesRequest::getSchemaName() const { + return schemaName_; } -std::string DescribeTablesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeTablesRequest::setSchemaName(const std::string &schemaName) { + schemaName_ = schemaName; + setParameter(std::string("SchemaName"), schemaName); } -void DescribeTablesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeTablesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeTablesRequest::getDBClusterId()const -{ - return dBClusterId_; +void DescribeTablesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeTablesRequest::setDBClusterId(const std::string& dBClusterId) -{ - dBClusterId_ = dBClusterId; - setParameter("DBClusterId", dBClusterId); +std::string DescribeTablesRequest::getDBClusterId() const { + return dBClusterId_; } -std::string DescribeTablesRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeTablesRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); } -void DescribeTablesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeTablesRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeTablesRequest::getOwnerId()const -{ - return ownerId_; +void DescribeTablesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeTablesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeTablesRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeTablesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/adb/src/model/DescribeTablesResult.cc b/adb/src/model/DescribeTablesResult.cc index 2a1e6e270..1ea761eb4 100644 --- a/adb/src/model/DescribeTablesResult.cc +++ b/adb/src/model/DescribeTablesResult.cc @@ -43,12 +43,12 @@ void DescribeTablesResult::parse(const std::string &payload) for (auto valueItemsTable : allItemsNode) { Table itemsObject; + if(!valueItemsTable["TableName"].isNull()) + itemsObject.tableName = valueItemsTable["TableName"].asString(); if(!valueItemsTable["DBClusterId"].isNull()) itemsObject.dBClusterId = valueItemsTable["DBClusterId"].asString(); if(!valueItemsTable["SchemaName"].isNull()) itemsObject.schemaName = valueItemsTable["SchemaName"].asString(); - if(!valueItemsTable["TableName"].isNull()) - itemsObject.tableName = valueItemsTable["TableName"].asString(); items_.push_back(itemsObject); } diff --git a/adb/src/model/DescribeTaskInfoRequest.cc b/adb/src/model/DescribeTaskInfoRequest.cc index 22f803bd4..7512ee663 100644 --- a/adb/src/model/DescribeTaskInfoRequest.cc +++ b/adb/src/model/DescribeTaskInfoRequest.cc @@ -1,106 +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::Adb::Model::DescribeTaskInfoRequest; - -DescribeTaskInfoRequest::DescribeTaskInfoRequest() : - RpcServiceRequest("adb", "2019-03-15", "DescribeTaskInfo") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeTaskInfoRequest::~DescribeTaskInfoRequest() -{} - -long DescribeTaskInfoRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Adb::Model::DescribeTaskInfoRequest; + +DescribeTaskInfoRequest::DescribeTaskInfoRequest() + : RpcServiceRequest("adb", "2019-03-15", "DescribeTaskInfo") { + setMethod(HttpRequest::Method::Post); } -void DescribeTaskInfoRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeTaskInfoRequest::~DescribeTaskInfoRequest() {} + +long DescribeTaskInfoRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeTaskInfoRequest::getAccessKeyId()const -{ - return accessKeyId_; +void DescribeTaskInfoRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeTaskInfoRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string DescribeTaskInfoRequest::getAccessKeyId() const { + return accessKeyId_; } -int DescribeTaskInfoRequest::getTaskId()const -{ - return taskId_; +void DescribeTaskInfoRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void DescribeTaskInfoRequest::setTaskId(int taskId) -{ - taskId_ = taskId; - setParameter("TaskId", std::to_string(taskId)); +int DescribeTaskInfoRequest::getTaskId() const { + return taskId_; } -std::string DescribeTaskInfoRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeTaskInfoRequest::setTaskId(int taskId) { + taskId_ = taskId; + setParameter(std::string("TaskId"), std::to_string(taskId)); } -void DescribeTaskInfoRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeTaskInfoRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeTaskInfoRequest::getDBClusterId()const -{ - return dBClusterId_; +void DescribeTaskInfoRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeTaskInfoRequest::setDBClusterId(const std::string& dBClusterId) -{ - dBClusterId_ = dBClusterId; - setParameter("DBClusterId", dBClusterId); +std::string DescribeTaskInfoRequest::getDBClusterId() const { + return dBClusterId_; } -std::string DescribeTaskInfoRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeTaskInfoRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); } -void DescribeTaskInfoRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeTaskInfoRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeTaskInfoRequest::getOwnerId()const -{ - return ownerId_; +void DescribeTaskInfoRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeTaskInfoRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeTaskInfoRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeTaskInfoRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/adb/src/model/DescribeTaskInfoResult.cc b/adb/src/model/DescribeTaskInfoResult.cc index e571e79e4..3669e0a73 100644 --- a/adb/src/model/DescribeTaskInfoResult.cc +++ b/adb/src/model/DescribeTaskInfoResult.cc @@ -40,16 +40,16 @@ void DescribeTaskInfoResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto taskInfoNode = value["TaskInfo"]; - if(!taskInfoNode["TaskId"].isNull()) - taskInfo_.taskId = std::stoi(taskInfoNode["TaskId"].asString()); - if(!taskInfoNode["BeginTime"].isNull()) - taskInfo_.beginTime = taskInfoNode["BeginTime"].asString(); + if(!taskInfoNode["Status"].isNull()) + taskInfo_.status = taskInfoNode["Status"].asString(); if(!taskInfoNode["FinishTime"].isNull()) taskInfo_.finishTime = taskInfoNode["FinishTime"].asString(); if(!taskInfoNode["Progress"].isNull()) taskInfo_.progress = taskInfoNode["Progress"].asString(); - if(!taskInfoNode["Status"].isNull()) - taskInfo_.status = taskInfoNode["Status"].asString(); + if(!taskInfoNode["BeginTime"].isNull()) + taskInfo_.beginTime = taskInfoNode["BeginTime"].asString(); + if(!taskInfoNode["TaskId"].isNull()) + taskInfo_.taskId = std::stoi(taskInfoNode["TaskId"].asString()); } diff --git a/adb/src/model/DownloadDiagnosisRecordsRequest.cc b/adb/src/model/DownloadDiagnosisRecordsRequest.cc new file mode 100644 index 000000000..1a1810491 --- /dev/null +++ b/adb/src/model/DownloadDiagnosisRecordsRequest.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::Adb::Model::DownloadDiagnosisRecordsRequest; + +DownloadDiagnosisRecordsRequest::DownloadDiagnosisRecordsRequest() + : RpcServiceRequest("adb", "2019-03-15", "DownloadDiagnosisRecords") { + setMethod(HttpRequest::Method::Post); +} + +DownloadDiagnosisRecordsRequest::~DownloadDiagnosisRecordsRequest() {} + +long DownloadDiagnosisRecordsRequest::getMaxScanSize() const { + return maxScanSize_; +} + +void DownloadDiagnosisRecordsRequest::setMaxScanSize(long maxScanSize) { + maxScanSize_ = maxScanSize; + setParameter(std::string("MaxScanSize"), std::to_string(maxScanSize)); +} + +std::string DownloadDiagnosisRecordsRequest::getResourceGroup() const { + return resourceGroup_; +} + +void DownloadDiagnosisRecordsRequest::setResourceGroup(const std::string &resourceGroup) { + resourceGroup_ = resourceGroup; + setParameter(std::string("ResourceGroup"), resourceGroup); +} + +std::string DownloadDiagnosisRecordsRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DownloadDiagnosisRecordsRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string DownloadDiagnosisRecordsRequest::getQueryCondition() const { + return queryCondition_; +} + +void DownloadDiagnosisRecordsRequest::setQueryCondition(const std::string &queryCondition) { + queryCondition_ = queryCondition; + setParameter(std::string("QueryCondition"), queryCondition); +} + +std::string DownloadDiagnosisRecordsRequest::getEndTime() const { + return endTime_; +} + +void DownloadDiagnosisRecordsRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); +} + +std::string DownloadDiagnosisRecordsRequest::getStartTime() const { + return startTime_; +} + +void DownloadDiagnosisRecordsRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); +} + +std::string DownloadDiagnosisRecordsRequest::getRawStartTime() const { + return rawStartTime_; +} + +void DownloadDiagnosisRecordsRequest::setRawStartTime(const std::string &rawStartTime) { + rawStartTime_ = rawStartTime; + setParameter(std::string("RawStartTime"), rawStartTime); +} + +long DownloadDiagnosisRecordsRequest::getMinPeakMemory() const { + return minPeakMemory_; +} + +void DownloadDiagnosisRecordsRequest::setMinPeakMemory(long minPeakMemory) { + minPeakMemory_ = minPeakMemory; + setParameter(std::string("MinPeakMemory"), std::to_string(minPeakMemory)); +} + +std::string DownloadDiagnosisRecordsRequest::getRawEndTime() const { + return rawEndTime_; +} + +void DownloadDiagnosisRecordsRequest::setRawEndTime(const std::string &rawEndTime) { + rawEndTime_ = rawEndTime; + setParameter(std::string("RawEndTime"), rawEndTime); +} + +long DownloadDiagnosisRecordsRequest::getMinScanSize() const { + return minScanSize_; +} + +void DownloadDiagnosisRecordsRequest::setMinScanSize(long minScanSize) { + minScanSize_ = minScanSize; + setParameter(std::string("MinScanSize"), std::to_string(minScanSize)); +} + +std::string DownloadDiagnosisRecordsRequest::getDatabase() const { + return database_; +} + +void DownloadDiagnosisRecordsRequest::setDatabase(const std::string &database) { + database_ = database; + setParameter(std::string("Database"), database); +} + +std::string DownloadDiagnosisRecordsRequest::getRegionId() const { + return regionId_; +} + +void DownloadDiagnosisRecordsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DownloadDiagnosisRecordsRequest::getClientIp() const { + return clientIp_; +} + +void DownloadDiagnosisRecordsRequest::setClientIp(const std::string &clientIp) { + clientIp_ = clientIp; + setParameter(std::string("ClientIp"), clientIp); +} + +long DownloadDiagnosisRecordsRequest::getMaxPeakMemory() const { + return maxPeakMemory_; +} + +void DownloadDiagnosisRecordsRequest::setMaxPeakMemory(long maxPeakMemory) { + maxPeakMemory_ = maxPeakMemory; + setParameter(std::string("MaxPeakMemory"), std::to_string(maxPeakMemory)); +} + +std::string DownloadDiagnosisRecordsRequest::getKeyword() const { + return keyword_; +} + +void DownloadDiagnosisRecordsRequest::setKeyword(const std::string &keyword) { + keyword_ = keyword; + setParameter(std::string("Keyword"), keyword); +} + +std::string DownloadDiagnosisRecordsRequest::getLang() const { + return lang_; +} + +void DownloadDiagnosisRecordsRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); +} + +std::string DownloadDiagnosisRecordsRequest::getUserName() const { + return userName_; +} + +void DownloadDiagnosisRecordsRequest::setUserName(const std::string &userName) { + userName_ = userName; + setParameter(std::string("UserName"), userName); +} + diff --git a/adb/src/model/DownloadDiagnosisRecordsResult.cc b/adb/src/model/DownloadDiagnosisRecordsResult.cc new file mode 100644 index 000000000..6215c3d3d --- /dev/null +++ b/adb/src/model/DownloadDiagnosisRecordsResult.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::Adb; +using namespace AlibabaCloud::Adb::Model; + +DownloadDiagnosisRecordsResult::DownloadDiagnosisRecordsResult() : + ServiceResult() +{} + +DownloadDiagnosisRecordsResult::DownloadDiagnosisRecordsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DownloadDiagnosisRecordsResult::~DownloadDiagnosisRecordsResult() +{} + +void DownloadDiagnosisRecordsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["DownloadId"].isNull()) + downloadId_ = std::stoi(value["DownloadId"].asString()); + +} + +int DownloadDiagnosisRecordsResult::getDownloadId()const +{ + return downloadId_; +} + diff --git a/adb/src/model/GrantOperatorPermissionRequest.cc b/adb/src/model/GrantOperatorPermissionRequest.cc index e757398a2..9f4d3f75c 100644 --- a/adb/src/model/GrantOperatorPermissionRequest.cc +++ b/adb/src/model/GrantOperatorPermissionRequest.cc @@ -1,117 +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::Adb::Model::GrantOperatorPermissionRequest; - -GrantOperatorPermissionRequest::GrantOperatorPermissionRequest() : - RpcServiceRequest("adb", "2019-03-15", "GrantOperatorPermission") -{ - setMethod(HttpRequest::Method::Post); -} - -GrantOperatorPermissionRequest::~GrantOperatorPermissionRequest() -{} - -std::string GrantOperatorPermissionRequest::getPrivileges()const -{ - return privileges_; + */ + +#include + +using AlibabaCloud::Adb::Model::GrantOperatorPermissionRequest; + +GrantOperatorPermissionRequest::GrantOperatorPermissionRequest() + : RpcServiceRequest("adb", "2019-03-15", "GrantOperatorPermission") { + setMethod(HttpRequest::Method::Post); } -void GrantOperatorPermissionRequest::setPrivileges(const std::string& privileges) -{ - privileges_ = privileges; - setParameter("Privileges", privileges); +GrantOperatorPermissionRequest::~GrantOperatorPermissionRequest() {} + +std::string GrantOperatorPermissionRequest::getPrivileges() const { + return privileges_; } -long GrantOperatorPermissionRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void GrantOperatorPermissionRequest::setPrivileges(const std::string &privileges) { + privileges_ = privileges; + setParameter(std::string("Privileges"), privileges); } -void GrantOperatorPermissionRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long GrantOperatorPermissionRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string GrantOperatorPermissionRequest::getAccessKeyId()const -{ - return accessKeyId_; +void GrantOperatorPermissionRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void GrantOperatorPermissionRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string GrantOperatorPermissionRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string GrantOperatorPermissionRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void GrantOperatorPermissionRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void GrantOperatorPermissionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string GrantOperatorPermissionRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string GrantOperatorPermissionRequest::getDBClusterId()const -{ - return dBClusterId_; +void GrantOperatorPermissionRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void GrantOperatorPermissionRequest::setDBClusterId(const std::string& dBClusterId) -{ - dBClusterId_ = dBClusterId; - setParameter("DBClusterId", dBClusterId); +std::string GrantOperatorPermissionRequest::getDBClusterId() const { + return dBClusterId_; } -std::string GrantOperatorPermissionRequest::getOwnerAccount()const -{ - return ownerAccount_; +void GrantOperatorPermissionRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); } -void GrantOperatorPermissionRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string GrantOperatorPermissionRequest::getOwnerAccount() const { + return ownerAccount_; } -long GrantOperatorPermissionRequest::getOwnerId()const -{ - return ownerId_; +void GrantOperatorPermissionRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void GrantOperatorPermissionRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long GrantOperatorPermissionRequest::getOwnerId() const { + return ownerId_; } -std::string GrantOperatorPermissionRequest::getExpiredTime()const -{ - return expiredTime_; +void GrantOperatorPermissionRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void GrantOperatorPermissionRequest::setExpiredTime(const std::string& expiredTime) -{ - expiredTime_ = expiredTime; - setParameter("ExpiredTime", expiredTime); +std::string GrantOperatorPermissionRequest::getExpiredTime() const { + return expiredTime_; +} + +void GrantOperatorPermissionRequest::setExpiredTime(const std::string &expiredTime) { + expiredTime_ = expiredTime; + setParameter(std::string("ExpiredTime"), expiredTime); } diff --git a/adb/src/model/KillProcessRequest.cc b/adb/src/model/KillProcessRequest.cc index 2f462d6ea..a0cc030f1 100644 --- a/adb/src/model/KillProcessRequest.cc +++ b/adb/src/model/KillProcessRequest.cc @@ -1,106 +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::Adb::Model::KillProcessRequest; - -KillProcessRequest::KillProcessRequest() : - RpcServiceRequest("adb", "2019-03-15", "KillProcess") -{ - setMethod(HttpRequest::Method::Post); -} - -KillProcessRequest::~KillProcessRequest() -{} - -long KillProcessRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Adb::Model::KillProcessRequest; + +KillProcessRequest::KillProcessRequest() + : RpcServiceRequest("adb", "2019-03-15", "KillProcess") { + setMethod(HttpRequest::Method::Post); } -void KillProcessRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +KillProcessRequest::~KillProcessRequest() {} + +long KillProcessRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string KillProcessRequest::getAccessKeyId()const -{ - return accessKeyId_; +void KillProcessRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void KillProcessRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string KillProcessRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string KillProcessRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void KillProcessRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void KillProcessRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string KillProcessRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string KillProcessRequest::getDBClusterId()const -{ - return dBClusterId_; +void KillProcessRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void KillProcessRequest::setDBClusterId(const std::string& dBClusterId) -{ - dBClusterId_ = dBClusterId; - setParameter("DBClusterId", dBClusterId); +std::string KillProcessRequest::getDBClusterId() const { + return dBClusterId_; } -std::string KillProcessRequest::getOwnerAccount()const -{ - return ownerAccount_; +void KillProcessRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); } -void KillProcessRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string KillProcessRequest::getOwnerAccount() const { + return ownerAccount_; } -long KillProcessRequest::getOwnerId()const -{ - return ownerId_; +void KillProcessRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void KillProcessRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long KillProcessRequest::getOwnerId() const { + return ownerId_; } -std::string KillProcessRequest::getProcessId()const -{ - return processId_; +void KillProcessRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void KillProcessRequest::setProcessId(const std::string& processId) -{ - processId_ = processId; - setParameter("ProcessId", processId); +std::string KillProcessRequest::getProcessId() const { + return processId_; +} + +void KillProcessRequest::setProcessId(const std::string &processId) { + processId_ = processId; + setParameter(std::string("ProcessId"), processId); } diff --git a/adb/src/model/ListTagResourcesRequest.cc b/adb/src/model/ListTagResourcesRequest.cc index 2ce274edc..f57ac691e 100644 --- a/adb/src/model/ListTagResourcesRequest.cc +++ b/adb/src/model/ListTagResourcesRequest.cc @@ -1,146 +1,121 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::Adb::Model::ListTagResourcesRequest; - -ListTagResourcesRequest::ListTagResourcesRequest() : - RpcServiceRequest("adb", "2019-03-15", "ListTagResources") -{ - setMethod(HttpRequest::Method::Post); -} - -ListTagResourcesRequest::~ListTagResourcesRequest() -{} - -long ListTagResourcesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Adb::Model::ListTagResourcesRequest; + +ListTagResourcesRequest::ListTagResourcesRequest() + : RpcServiceRequest("adb", "2019-03-15", "ListTagResources") { + setMethod(HttpRequest::Method::Post); } -void ListTagResourcesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ListTagResourcesRequest::~ListTagResourcesRequest() {} + +long ListTagResourcesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ListTagResourcesRequest::getAccessKeyId()const -{ - return accessKeyId_; +void ListTagResourcesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ListTagResourcesRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string ListTagResourcesRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string ListTagResourcesRequest::getRegionId()const -{ - return regionId_; +void ListTagResourcesRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void ListTagResourcesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ListTagResourcesRequest::getRegionId() const { + return regionId_; } -std::string ListTagResourcesRequest::getNextToken()const -{ - return nextToken_; +void ListTagResourcesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ListTagResourcesRequest::setNextToken(const std::string& nextToken) -{ - nextToken_ = nextToken; - setParameter("NextToken", nextToken); +std::string ListTagResourcesRequest::getNextToken() const { + return nextToken_; } -std::vector ListTagResourcesRequest::getTag()const -{ - return tag_; +void ListTagResourcesRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); } -void ListTagResourcesRequest::setTag(const std::vector& tag) -{ - tag_ = tag; - for(int dep1 = 0; dep1!= tag.size(); dep1++) { - auto tagObj = tag.at(dep1); - std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); - setParameter(tagObjStr + ".Value", tagObj.value); - setParameter(tagObjStr + ".Key", tagObj.key); - } +std::vector ListTagResourcesRequest::getTag() const { + return tag_; } -std::vector ListTagResourcesRequest::getResourceId()const -{ - return resourceId_; +void ListTagResourcesRequest::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); + } } -void ListTagResourcesRequest::setResourceId(const std::vector& resourceId) -{ - resourceId_ = resourceId; - for(int dep1 = 0; dep1!= resourceId.size(); dep1++) { - setParameter("ResourceId."+ std::to_string(dep1), resourceId.at(dep1)); - } +std::vector ListTagResourcesRequest::getResourceId() const { + return resourceId_; } -std::string ListTagResourcesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ListTagResourcesRequest::setResourceId(const std::vector &resourceId) { + resourceId_ = resourceId; } -void ListTagResourcesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ListTagResourcesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ListTagResourcesRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ListTagResourcesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ListTagResourcesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ListTagResourcesRequest::getOwnerAccount() const { + return ownerAccount_; } -long ListTagResourcesRequest::getOwnerId()const -{ - return ownerId_; +void ListTagResourcesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ListTagResourcesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ListTagResourcesRequest::getOwnerId() const { + return ownerId_; } -std::string ListTagResourcesRequest::getResourceType()const -{ - return resourceType_; +void ListTagResourcesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ListTagResourcesRequest::setResourceType(const std::string& resourceType) -{ - resourceType_ = resourceType; - setParameter("ResourceType", resourceType); +std::string ListTagResourcesRequest::getResourceType() const { + return resourceType_; +} + +void ListTagResourcesRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); } diff --git a/adb/src/model/ListTagResourcesResult.cc b/adb/src/model/ListTagResourcesResult.cc index e336c81b3..8eef4ad13 100644 --- a/adb/src/model/ListTagResourcesResult.cc +++ b/adb/src/model/ListTagResourcesResult.cc @@ -43,14 +43,14 @@ void ListTagResourcesResult::parse(const std::string &payload) for (auto valueTagResourcesTagResource : allTagResourcesNode) { TagResource tagResourcesObject; - if(!valueTagResourcesTagResource["TagKey"].isNull()) - tagResourcesObject.tagKey = valueTagResourcesTagResource["TagKey"].asString(); - if(!valueTagResourcesTagResource["TagValue"].isNull()) - tagResourcesObject.tagValue = valueTagResourcesTagResource["TagValue"].asString(); 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()) diff --git a/adb/src/model/ModifyAccountDescriptionRequest.cc b/adb/src/model/ModifyAccountDescriptionRequest.cc index 3c626ff6f..f50b2c002 100644 --- a/adb/src/model/ModifyAccountDescriptionRequest.cc +++ b/adb/src/model/ModifyAccountDescriptionRequest.cc @@ -1,117 +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::Adb::Model::ModifyAccountDescriptionRequest; - -ModifyAccountDescriptionRequest::ModifyAccountDescriptionRequest() : - RpcServiceRequest("adb", "2019-03-15", "ModifyAccountDescription") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyAccountDescriptionRequest::~ModifyAccountDescriptionRequest() -{} - -long ModifyAccountDescriptionRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Adb::Model::ModifyAccountDescriptionRequest; + +ModifyAccountDescriptionRequest::ModifyAccountDescriptionRequest() + : RpcServiceRequest("adb", "2019-03-15", "ModifyAccountDescription") { + setMethod(HttpRequest::Method::Post); } -void ModifyAccountDescriptionRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyAccountDescriptionRequest::~ModifyAccountDescriptionRequest() {} + +long ModifyAccountDescriptionRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyAccountDescriptionRequest::getAccountDescription()const -{ - return accountDescription_; +void ModifyAccountDescriptionRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyAccountDescriptionRequest::setAccountDescription(const std::string& accountDescription) -{ - accountDescription_ = accountDescription; - setParameter("AccountDescription", accountDescription); +std::string ModifyAccountDescriptionRequest::getAccountDescription() const { + return accountDescription_; } -std::string ModifyAccountDescriptionRequest::getAccessKeyId()const -{ - return accessKeyId_; +void ModifyAccountDescriptionRequest::setAccountDescription(const std::string &accountDescription) { + accountDescription_ = accountDescription; + setParameter(std::string("AccountDescription"), accountDescription); } -void ModifyAccountDescriptionRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string ModifyAccountDescriptionRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string ModifyAccountDescriptionRequest::getAccountName()const -{ - return accountName_; +void ModifyAccountDescriptionRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void ModifyAccountDescriptionRequest::setAccountName(const std::string& accountName) -{ - accountName_ = accountName; - setParameter("AccountName", accountName); +std::string ModifyAccountDescriptionRequest::getAccountName() const { + return accountName_; } -std::string ModifyAccountDescriptionRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyAccountDescriptionRequest::setAccountName(const std::string &accountName) { + accountName_ = accountName; + setParameter(std::string("AccountName"), accountName); } -void ModifyAccountDescriptionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyAccountDescriptionRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyAccountDescriptionRequest::getDBClusterId()const -{ - return dBClusterId_; +void ModifyAccountDescriptionRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyAccountDescriptionRequest::setDBClusterId(const std::string& dBClusterId) -{ - dBClusterId_ = dBClusterId; - setParameter("DBClusterId", dBClusterId); +std::string ModifyAccountDescriptionRequest::getDBClusterId() const { + return dBClusterId_; } -std::string ModifyAccountDescriptionRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyAccountDescriptionRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); } -void ModifyAccountDescriptionRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyAccountDescriptionRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifyAccountDescriptionRequest::getOwnerId()const -{ - return ownerId_; +void ModifyAccountDescriptionRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyAccountDescriptionRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyAccountDescriptionRequest::getOwnerId() const { + return ownerId_; +} + +void ModifyAccountDescriptionRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/adb/src/model/ModifyAuditLogConfigRequest.cc b/adb/src/model/ModifyAuditLogConfigRequest.cc index dbea4e268..4cbfc2328 100644 --- a/adb/src/model/ModifyAuditLogConfigRequest.cc +++ b/adb/src/model/ModifyAuditLogConfigRequest.cc @@ -1,117 +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::Adb::Model::ModifyAuditLogConfigRequest; - -ModifyAuditLogConfigRequest::ModifyAuditLogConfigRequest() : - RpcServiceRequest("adb", "2019-03-15", "ModifyAuditLogConfig") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyAuditLogConfigRequest::~ModifyAuditLogConfigRequest() -{} - -long ModifyAuditLogConfigRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Adb::Model::ModifyAuditLogConfigRequest; + +ModifyAuditLogConfigRequest::ModifyAuditLogConfigRequest() + : RpcServiceRequest("adb", "2019-03-15", "ModifyAuditLogConfig") { + setMethod(HttpRequest::Method::Post); } -void ModifyAuditLogConfigRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyAuditLogConfigRequest::~ModifyAuditLogConfigRequest() {} + +long ModifyAuditLogConfigRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyAuditLogConfigRequest::getAccessKeyId()const -{ - return accessKeyId_; +void ModifyAuditLogConfigRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyAuditLogConfigRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string ModifyAuditLogConfigRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyAuditLogConfigRequest::getRegionId()const -{ - return regionId_; +void ModifyAuditLogConfigRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyAuditLogConfigRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyAuditLogConfigRequest::getDBClusterId() const { + return dBClusterId_; } -std::string ModifyAuditLogConfigRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyAuditLogConfigRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); } -void ModifyAuditLogConfigRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyAuditLogConfigRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string ModifyAuditLogConfigRequest::getDBClusterId()const -{ - return dBClusterId_; +void ModifyAuditLogConfigRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyAuditLogConfigRequest::setDBClusterId(const std::string& dBClusterId) -{ - dBClusterId_ = dBClusterId; - setParameter("DBClusterId", dBClusterId); +long ModifyAuditLogConfigRequest::getOwnerId() const { + return ownerId_; } -std::string ModifyAuditLogConfigRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyAuditLogConfigRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyAuditLogConfigRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyAuditLogConfigRequest::getAuditLogStatus() const { + return auditLogStatus_; } -long ModifyAuditLogConfigRequest::getOwnerId()const -{ - return ownerId_; +void ModifyAuditLogConfigRequest::setAuditLogStatus(const std::string &auditLogStatus) { + auditLogStatus_ = auditLogStatus; + setParameter(std::string("AuditLogStatus"), auditLogStatus); } -void ModifyAuditLogConfigRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +std::string ModifyAuditLogConfigRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string ModifyAuditLogConfigRequest::getAuditLogStatus()const -{ - return auditLogStatus_; +void ModifyAuditLogConfigRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void ModifyAuditLogConfigRequest::setAuditLogStatus(const std::string& auditLogStatus) -{ - auditLogStatus_ = auditLogStatus; - setParameter("AuditLogStatus", auditLogStatus); +std::string ModifyAuditLogConfigRequest::getRegionId() const { + return regionId_; +} + +void ModifyAuditLogConfigRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } diff --git a/adb/src/model/ModifyAuditLogConfigResult.cc b/adb/src/model/ModifyAuditLogConfigResult.cc index faeb07748..d6137dc30 100644 --- a/adb/src/model/ModifyAuditLogConfigResult.cc +++ b/adb/src/model/ModifyAuditLogConfigResult.cc @@ -39,6 +39,13 @@ void ModifyAuditLogConfigResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + if(!value["UpdateSucceed"].isNull()) + updateSucceed_ = value["UpdateSucceed"].asString() == "true"; } +bool ModifyAuditLogConfigResult::getUpdateSucceed()const +{ + return updateSucceed_; +} + diff --git a/adb/src/model/ModifyAutoRenewAttributeRequest.cc b/adb/src/model/ModifyAutoRenewAttributeRequest.cc index 04897cd05..b83583f42 100644 --- a/adb/src/model/ModifyAutoRenewAttributeRequest.cc +++ b/adb/src/model/ModifyAutoRenewAttributeRequest.cc @@ -1,139 +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::Adb::Model::ModifyAutoRenewAttributeRequest; - -ModifyAutoRenewAttributeRequest::ModifyAutoRenewAttributeRequest() : - RpcServiceRequest("adb", "2019-03-15", "ModifyAutoRenewAttribute") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyAutoRenewAttributeRequest::~ModifyAutoRenewAttributeRequest() -{} - -long ModifyAutoRenewAttributeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Adb::Model::ModifyAutoRenewAttributeRequest; + +ModifyAutoRenewAttributeRequest::ModifyAutoRenewAttributeRequest() + : RpcServiceRequest("adb", "2019-03-15", "ModifyAutoRenewAttribute") { + setMethod(HttpRequest::Method::Post); } -void ModifyAutoRenewAttributeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyAutoRenewAttributeRequest::~ModifyAutoRenewAttributeRequest() {} + +long ModifyAutoRenewAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyAutoRenewAttributeRequest::getAccessKeyId()const -{ - return accessKeyId_; +void ModifyAutoRenewAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyAutoRenewAttributeRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string ModifyAutoRenewAttributeRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string ModifyAutoRenewAttributeRequest::getDuration()const -{ - return duration_; +void ModifyAutoRenewAttributeRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void ModifyAutoRenewAttributeRequest::setDuration(const std::string& duration) -{ - duration_ = duration; - setParameter("Duration", duration); +std::string ModifyAutoRenewAttributeRequest::getDuration() const { + return duration_; } -std::string ModifyAutoRenewAttributeRequest::getRegionId()const -{ - return regionId_; +void ModifyAutoRenewAttributeRequest::setDuration(const std::string &duration) { + duration_ = duration; + setParameter(std::string("Duration"), duration); } -void ModifyAutoRenewAttributeRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyAutoRenewAttributeRequest::getRegionId() const { + return regionId_; } -std::string ModifyAutoRenewAttributeRequest::getRenewalStatus()const -{ - return renewalStatus_; +void ModifyAutoRenewAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyAutoRenewAttributeRequest::setRenewalStatus(const std::string& renewalStatus) -{ - renewalStatus_ = renewalStatus; - setParameter("RenewalStatus", renewalStatus); +std::string ModifyAutoRenewAttributeRequest::getRenewalStatus() const { + return renewalStatus_; } -std::string ModifyAutoRenewAttributeRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyAutoRenewAttributeRequest::setRenewalStatus(const std::string &renewalStatus) { + renewalStatus_ = renewalStatus; + setParameter(std::string("RenewalStatus"), renewalStatus); } -void ModifyAutoRenewAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyAutoRenewAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyAutoRenewAttributeRequest::getDBClusterId()const -{ - return dBClusterId_; +void ModifyAutoRenewAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyAutoRenewAttributeRequest::setDBClusterId(const std::string& dBClusterId) -{ - dBClusterId_ = dBClusterId; - setParameter("DBClusterId", dBClusterId); +std::string ModifyAutoRenewAttributeRequest::getDBClusterId() const { + return dBClusterId_; } -std::string ModifyAutoRenewAttributeRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyAutoRenewAttributeRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); } -void ModifyAutoRenewAttributeRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyAutoRenewAttributeRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifyAutoRenewAttributeRequest::getOwnerId()const -{ - return ownerId_; +void ModifyAutoRenewAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyAutoRenewAttributeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyAutoRenewAttributeRequest::getOwnerId() const { + return ownerId_; } -std::string ModifyAutoRenewAttributeRequest::getPeriodUnit()const -{ - return periodUnit_; +void ModifyAutoRenewAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyAutoRenewAttributeRequest::setPeriodUnit(const std::string& periodUnit) -{ - periodUnit_ = periodUnit; - setParameter("PeriodUnit", periodUnit); +std::string ModifyAutoRenewAttributeRequest::getPeriodUnit() const { + return periodUnit_; +} + +void ModifyAutoRenewAttributeRequest::setPeriodUnit(const std::string &periodUnit) { + periodUnit_ = periodUnit; + setParameter(std::string("PeriodUnit"), periodUnit); } diff --git a/adb/src/model/ModifyBackupPolicyRequest.cc b/adb/src/model/ModifyBackupPolicyRequest.cc index 97c6d112f..1d4fbf1d1 100644 --- a/adb/src/model/ModifyBackupPolicyRequest.cc +++ b/adb/src/model/ModifyBackupPolicyRequest.cc @@ -1,150 +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::Adb::Model::ModifyBackupPolicyRequest; - -ModifyBackupPolicyRequest::ModifyBackupPolicyRequest() : - RpcServiceRequest("adb", "2019-03-15", "ModifyBackupPolicy") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyBackupPolicyRequest::~ModifyBackupPolicyRequest() -{} - -long ModifyBackupPolicyRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Adb::Model::ModifyBackupPolicyRequest; + +ModifyBackupPolicyRequest::ModifyBackupPolicyRequest() + : RpcServiceRequest("adb", "2019-03-15", "ModifyBackupPolicy") { + setMethod(HttpRequest::Method::Post); } -void ModifyBackupPolicyRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyBackupPolicyRequest::~ModifyBackupPolicyRequest() {} + +long ModifyBackupPolicyRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyBackupPolicyRequest::getAccessKeyId()const -{ - return accessKeyId_; +void ModifyBackupPolicyRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyBackupPolicyRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string ModifyBackupPolicyRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string ModifyBackupPolicyRequest::getEnableBackupLog()const -{ - return enableBackupLog_; +void ModifyBackupPolicyRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void ModifyBackupPolicyRequest::setEnableBackupLog(const std::string& enableBackupLog) -{ - enableBackupLog_ = enableBackupLog; - setParameter("EnableBackupLog", enableBackupLog); +std::string ModifyBackupPolicyRequest::getEnableBackupLog() const { + return enableBackupLog_; } -std::string ModifyBackupPolicyRequest::getPreferredBackupPeriod()const -{ - return preferredBackupPeriod_; +void ModifyBackupPolicyRequest::setEnableBackupLog(const std::string &enableBackupLog) { + enableBackupLog_ = enableBackupLog; + setParameter(std::string("EnableBackupLog"), enableBackupLog); } -void ModifyBackupPolicyRequest::setPreferredBackupPeriod(const std::string& preferredBackupPeriod) -{ - preferredBackupPeriod_ = preferredBackupPeriod; - setParameter("PreferredBackupPeriod", preferredBackupPeriod); +std::string ModifyBackupPolicyRequest::getPreferredBackupPeriod() const { + return preferredBackupPeriod_; } -std::string ModifyBackupPolicyRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyBackupPolicyRequest::setPreferredBackupPeriod(const std::string &preferredBackupPeriod) { + preferredBackupPeriod_ = preferredBackupPeriod; + setParameter(std::string("PreferredBackupPeriod"), preferredBackupPeriod); } -void ModifyBackupPolicyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyBackupPolicyRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyBackupPolicyRequest::getDBClusterId()const -{ - return dBClusterId_; +void ModifyBackupPolicyRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyBackupPolicyRequest::setDBClusterId(const std::string& dBClusterId) -{ - dBClusterId_ = dBClusterId; - setParameter("DBClusterId", dBClusterId); +std::string ModifyBackupPolicyRequest::getDBClusterId() const { + return dBClusterId_; } -std::string ModifyBackupPolicyRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyBackupPolicyRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); } -void ModifyBackupPolicyRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyBackupPolicyRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifyBackupPolicyRequest::getOwnerId()const -{ - return ownerId_; +void ModifyBackupPolicyRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyBackupPolicyRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyBackupPolicyRequest::getOwnerId() const { + return ownerId_; } -std::string ModifyBackupPolicyRequest::getPreferredBackupTime()const -{ - return preferredBackupTime_; +void ModifyBackupPolicyRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyBackupPolicyRequest::setPreferredBackupTime(const std::string& preferredBackupTime) -{ - preferredBackupTime_ = preferredBackupTime; - setParameter("PreferredBackupTime", preferredBackupTime); +std::string ModifyBackupPolicyRequest::getPreferredBackupTime() const { + return preferredBackupTime_; } -std::string ModifyBackupPolicyRequest::getBackupRetentionPeriod()const -{ - return backupRetentionPeriod_; +void ModifyBackupPolicyRequest::setPreferredBackupTime(const std::string &preferredBackupTime) { + preferredBackupTime_ = preferredBackupTime; + setParameter(std::string("PreferredBackupTime"), preferredBackupTime); } -void ModifyBackupPolicyRequest::setBackupRetentionPeriod(const std::string& backupRetentionPeriod) -{ - backupRetentionPeriod_ = backupRetentionPeriod; - setParameter("BackupRetentionPeriod", backupRetentionPeriod); +std::string ModifyBackupPolicyRequest::getBackupRetentionPeriod() const { + return backupRetentionPeriod_; } -int ModifyBackupPolicyRequest::getLogBackupRetentionPeriod()const -{ - return logBackupRetentionPeriod_; +void ModifyBackupPolicyRequest::setBackupRetentionPeriod(const std::string &backupRetentionPeriod) { + backupRetentionPeriod_ = backupRetentionPeriod; + setParameter(std::string("BackupRetentionPeriod"), backupRetentionPeriod); } -void ModifyBackupPolicyRequest::setLogBackupRetentionPeriod(int logBackupRetentionPeriod) -{ - logBackupRetentionPeriod_ = logBackupRetentionPeriod; - setParameter("LogBackupRetentionPeriod", std::to_string(logBackupRetentionPeriod)); +int ModifyBackupPolicyRequest::getLogBackupRetentionPeriod() const { + return logBackupRetentionPeriod_; +} + +void ModifyBackupPolicyRequest::setLogBackupRetentionPeriod(int logBackupRetentionPeriod) { + logBackupRetentionPeriod_ = logBackupRetentionPeriod; + setParameter(std::string("LogBackupRetentionPeriod"), std::to_string(logBackupRetentionPeriod)); } diff --git a/adb/src/model/ModifyClusterConnectionStringRequest.cc b/adb/src/model/ModifyClusterConnectionStringRequest.cc index e2665d945..5073e305a 100644 --- a/adb/src/model/ModifyClusterConnectionStringRequest.cc +++ b/adb/src/model/ModifyClusterConnectionStringRequest.cc @@ -1,128 +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::Adb::Model::ModifyClusterConnectionStringRequest; - -ModifyClusterConnectionStringRequest::ModifyClusterConnectionStringRequest() : - RpcServiceRequest("adb", "2019-03-15", "ModifyClusterConnectionString") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyClusterConnectionStringRequest::~ModifyClusterConnectionStringRequest() -{} - -long ModifyClusterConnectionStringRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Adb::Model::ModifyClusterConnectionStringRequest; + +ModifyClusterConnectionStringRequest::ModifyClusterConnectionStringRequest() + : RpcServiceRequest("adb", "2019-03-15", "ModifyClusterConnectionString") { + setMethod(HttpRequest::Method::Post); } -void ModifyClusterConnectionStringRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyClusterConnectionStringRequest::~ModifyClusterConnectionStringRequest() {} + +long ModifyClusterConnectionStringRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyClusterConnectionStringRequest::getConnectionStringPrefix()const -{ - return connectionStringPrefix_; +void ModifyClusterConnectionStringRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyClusterConnectionStringRequest::setConnectionStringPrefix(const std::string& connectionStringPrefix) -{ - connectionStringPrefix_ = connectionStringPrefix; - setParameter("ConnectionStringPrefix", connectionStringPrefix); +std::string ModifyClusterConnectionStringRequest::getConnectionStringPrefix() const { + return connectionStringPrefix_; } -std::string ModifyClusterConnectionStringRequest::getAccessKeyId()const -{ - return accessKeyId_; +void ModifyClusterConnectionStringRequest::setConnectionStringPrefix(const std::string &connectionStringPrefix) { + connectionStringPrefix_ = connectionStringPrefix; + setParameter(std::string("ConnectionStringPrefix"), connectionStringPrefix); } -void ModifyClusterConnectionStringRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string ModifyClusterConnectionStringRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string ModifyClusterConnectionStringRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyClusterConnectionStringRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void ModifyClusterConnectionStringRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyClusterConnectionStringRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyClusterConnectionStringRequest::getDBClusterId()const -{ - return dBClusterId_; +void ModifyClusterConnectionStringRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyClusterConnectionStringRequest::setDBClusterId(const std::string& dBClusterId) -{ - dBClusterId_ = dBClusterId; - setParameter("DBClusterId", dBClusterId); +std::string ModifyClusterConnectionStringRequest::getDBClusterId() const { + return dBClusterId_; } -std::string ModifyClusterConnectionStringRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyClusterConnectionStringRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); } -void ModifyClusterConnectionStringRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyClusterConnectionStringRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifyClusterConnectionStringRequest::getOwnerId()const -{ - return ownerId_; +void ModifyClusterConnectionStringRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyClusterConnectionStringRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyClusterConnectionStringRequest::getOwnerId() const { + return ownerId_; } -std::string ModifyClusterConnectionStringRequest::getCurrentConnectionString()const -{ - return currentConnectionString_; +void ModifyClusterConnectionStringRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyClusterConnectionStringRequest::setCurrentConnectionString(const std::string& currentConnectionString) -{ - currentConnectionString_ = currentConnectionString; - setParameter("CurrentConnectionString", currentConnectionString); +std::string ModifyClusterConnectionStringRequest::getCurrentConnectionString() const { + return currentConnectionString_; } -int ModifyClusterConnectionStringRequest::getPort()const -{ - return port_; +void ModifyClusterConnectionStringRequest::setCurrentConnectionString(const std::string ¤tConnectionString) { + currentConnectionString_ = currentConnectionString; + setParameter(std::string("CurrentConnectionString"), currentConnectionString); } -void ModifyClusterConnectionStringRequest::setPort(int port) -{ - port_ = port; - setParameter("Port", std::to_string(port)); +int ModifyClusterConnectionStringRequest::getPort() const { + return port_; +} + +void ModifyClusterConnectionStringRequest::setPort(int port) { + port_ = port; + setParameter(std::string("Port"), std::to_string(port)); } diff --git a/adb/src/model/ModifyDBClusterAccessWhiteListRequest.cc b/adb/src/model/ModifyDBClusterAccessWhiteListRequest.cc index d85ae9e64..809b8fac6 100644 --- a/adb/src/model/ModifyDBClusterAccessWhiteListRequest.cc +++ b/adb/src/model/ModifyDBClusterAccessWhiteListRequest.cc @@ -1,139 +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::Adb::Model::ModifyDBClusterAccessWhiteListRequest; - -ModifyDBClusterAccessWhiteListRequest::ModifyDBClusterAccessWhiteListRequest() : - RpcServiceRequest("adb", "2019-03-15", "ModifyDBClusterAccessWhiteList") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyDBClusterAccessWhiteListRequest::~ModifyDBClusterAccessWhiteListRequest() -{} - -long ModifyDBClusterAccessWhiteListRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Adb::Model::ModifyDBClusterAccessWhiteListRequest; + +ModifyDBClusterAccessWhiteListRequest::ModifyDBClusterAccessWhiteListRequest() + : RpcServiceRequest("adb", "2019-03-15", "ModifyDBClusterAccessWhiteList") { + setMethod(HttpRequest::Method::Post); } -void ModifyDBClusterAccessWhiteListRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyDBClusterAccessWhiteListRequest::~ModifyDBClusterAccessWhiteListRequest() {} + +long ModifyDBClusterAccessWhiteListRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyDBClusterAccessWhiteListRequest::getSecurityIps()const -{ - return securityIps_; +void ModifyDBClusterAccessWhiteListRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyDBClusterAccessWhiteListRequest::setSecurityIps(const std::string& securityIps) -{ - securityIps_ = securityIps; - setParameter("SecurityIps", securityIps); +std::string ModifyDBClusterAccessWhiteListRequest::getSecurityIps() const { + return securityIps_; } -std::string ModifyDBClusterAccessWhiteListRequest::getDBClusterIPArrayAttribute()const -{ - return dBClusterIPArrayAttribute_; +void ModifyDBClusterAccessWhiteListRequest::setSecurityIps(const std::string &securityIps) { + securityIps_ = securityIps; + setParameter(std::string("SecurityIps"), securityIps); } -void ModifyDBClusterAccessWhiteListRequest::setDBClusterIPArrayAttribute(const std::string& dBClusterIPArrayAttribute) -{ - dBClusterIPArrayAttribute_ = dBClusterIPArrayAttribute; - setParameter("DBClusterIPArrayAttribute", dBClusterIPArrayAttribute); +std::string ModifyDBClusterAccessWhiteListRequest::getDBClusterIPArrayAttribute() const { + return dBClusterIPArrayAttribute_; } -std::string ModifyDBClusterAccessWhiteListRequest::getAccessKeyId()const -{ - return accessKeyId_; +void ModifyDBClusterAccessWhiteListRequest::setDBClusterIPArrayAttribute(const std::string &dBClusterIPArrayAttribute) { + dBClusterIPArrayAttribute_ = dBClusterIPArrayAttribute; + setParameter(std::string("DBClusterIPArrayAttribute"), dBClusterIPArrayAttribute); } -void ModifyDBClusterAccessWhiteListRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string ModifyDBClusterAccessWhiteListRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string ModifyDBClusterAccessWhiteListRequest::getModifyMode()const -{ - return modifyMode_; +void ModifyDBClusterAccessWhiteListRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void ModifyDBClusterAccessWhiteListRequest::setModifyMode(const std::string& modifyMode) -{ - modifyMode_ = modifyMode; - setParameter("ModifyMode", modifyMode); +std::string ModifyDBClusterAccessWhiteListRequest::getModifyMode() const { + return modifyMode_; } -std::string ModifyDBClusterAccessWhiteListRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyDBClusterAccessWhiteListRequest::setModifyMode(const std::string &modifyMode) { + modifyMode_ = modifyMode; + setParameter(std::string("ModifyMode"), modifyMode); } -void ModifyDBClusterAccessWhiteListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyDBClusterAccessWhiteListRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyDBClusterAccessWhiteListRequest::getDBClusterId()const -{ - return dBClusterId_; +void ModifyDBClusterAccessWhiteListRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyDBClusterAccessWhiteListRequest::setDBClusterId(const std::string& dBClusterId) -{ - dBClusterId_ = dBClusterId; - setParameter("DBClusterId", dBClusterId); +std::string ModifyDBClusterAccessWhiteListRequest::getDBClusterId() const { + return dBClusterId_; } -std::string ModifyDBClusterAccessWhiteListRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyDBClusterAccessWhiteListRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); } -void ModifyDBClusterAccessWhiteListRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyDBClusterAccessWhiteListRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifyDBClusterAccessWhiteListRequest::getOwnerId()const -{ - return ownerId_; +void ModifyDBClusterAccessWhiteListRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyDBClusterAccessWhiteListRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyDBClusterAccessWhiteListRequest::getOwnerId() const { + return ownerId_; } -std::string ModifyDBClusterAccessWhiteListRequest::getDBClusterIPArrayName()const -{ - return dBClusterIPArrayName_; +void ModifyDBClusterAccessWhiteListRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyDBClusterAccessWhiteListRequest::setDBClusterIPArrayName(const std::string& dBClusterIPArrayName) -{ - dBClusterIPArrayName_ = dBClusterIPArrayName; - setParameter("DBClusterIPArrayName", dBClusterIPArrayName); +std::string ModifyDBClusterAccessWhiteListRequest::getDBClusterIPArrayName() const { + return dBClusterIPArrayName_; +} + +void ModifyDBClusterAccessWhiteListRequest::setDBClusterIPArrayName(const std::string &dBClusterIPArrayName) { + dBClusterIPArrayName_ = dBClusterIPArrayName; + setParameter(std::string("DBClusterIPArrayName"), dBClusterIPArrayName); } diff --git a/adb/src/model/ModifyDBClusterAccessWhiteListResult.cc b/adb/src/model/ModifyDBClusterAccessWhiteListResult.cc index f99f770b7..213a6a911 100644 --- a/adb/src/model/ModifyDBClusterAccessWhiteListResult.cc +++ b/adb/src/model/ModifyDBClusterAccessWhiteListResult.cc @@ -39,10 +39,10 @@ void ModifyDBClusterAccessWhiteListResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["DBClusterId"].isNull()) - dBClusterId_ = value["DBClusterId"].asString(); if(!value["TaskId"].isNull()) taskId_ = std::stoi(value["TaskId"].asString()); + if(!value["DBClusterId"].isNull()) + dBClusterId_ = value["DBClusterId"].asString(); } diff --git a/adb/src/model/ModifyDBClusterDescriptionRequest.cc b/adb/src/model/ModifyDBClusterDescriptionRequest.cc index b05e2513a..e89014d07 100644 --- a/adb/src/model/ModifyDBClusterDescriptionRequest.cc +++ b/adb/src/model/ModifyDBClusterDescriptionRequest.cc @@ -1,106 +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::Adb::Model::ModifyDBClusterDescriptionRequest; - -ModifyDBClusterDescriptionRequest::ModifyDBClusterDescriptionRequest() : - RpcServiceRequest("adb", "2019-03-15", "ModifyDBClusterDescription") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyDBClusterDescriptionRequest::~ModifyDBClusterDescriptionRequest() -{} - -long ModifyDBClusterDescriptionRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Adb::Model::ModifyDBClusterDescriptionRequest; + +ModifyDBClusterDescriptionRequest::ModifyDBClusterDescriptionRequest() + : RpcServiceRequest("adb", "2019-03-15", "ModifyDBClusterDescription") { + setMethod(HttpRequest::Method::Post); } -void ModifyDBClusterDescriptionRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyDBClusterDescriptionRequest::~ModifyDBClusterDescriptionRequest() {} + +long ModifyDBClusterDescriptionRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyDBClusterDescriptionRequest::getDBClusterDescription()const -{ - return dBClusterDescription_; +void ModifyDBClusterDescriptionRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyDBClusterDescriptionRequest::setDBClusterDescription(const std::string& dBClusterDescription) -{ - dBClusterDescription_ = dBClusterDescription; - setParameter("DBClusterDescription", dBClusterDescription); +std::string ModifyDBClusterDescriptionRequest::getDBClusterDescription() const { + return dBClusterDescription_; } -std::string ModifyDBClusterDescriptionRequest::getAccessKeyId()const -{ - return accessKeyId_; +void ModifyDBClusterDescriptionRequest::setDBClusterDescription(const std::string &dBClusterDescription) { + dBClusterDescription_ = dBClusterDescription; + setParameter(std::string("DBClusterDescription"), dBClusterDescription); } -void ModifyDBClusterDescriptionRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string ModifyDBClusterDescriptionRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string ModifyDBClusterDescriptionRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyDBClusterDescriptionRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void ModifyDBClusterDescriptionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyDBClusterDescriptionRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyDBClusterDescriptionRequest::getDBClusterId()const -{ - return dBClusterId_; +void ModifyDBClusterDescriptionRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyDBClusterDescriptionRequest::setDBClusterId(const std::string& dBClusterId) -{ - dBClusterId_ = dBClusterId; - setParameter("DBClusterId", dBClusterId); +std::string ModifyDBClusterDescriptionRequest::getDBClusterId() const { + return dBClusterId_; } -std::string ModifyDBClusterDescriptionRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyDBClusterDescriptionRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); } -void ModifyDBClusterDescriptionRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyDBClusterDescriptionRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifyDBClusterDescriptionRequest::getOwnerId()const -{ - return ownerId_; +void ModifyDBClusterDescriptionRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyDBClusterDescriptionRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyDBClusterDescriptionRequest::getOwnerId() const { + return ownerId_; +} + +void ModifyDBClusterDescriptionRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/adb/src/model/ModifyDBClusterMaintainTimeRequest.cc b/adb/src/model/ModifyDBClusterMaintainTimeRequest.cc index e664afc65..6848a0dd9 100644 --- a/adb/src/model/ModifyDBClusterMaintainTimeRequest.cc +++ b/adb/src/model/ModifyDBClusterMaintainTimeRequest.cc @@ -1,106 +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::Adb::Model::ModifyDBClusterMaintainTimeRequest; - -ModifyDBClusterMaintainTimeRequest::ModifyDBClusterMaintainTimeRequest() : - RpcServiceRequest("adb", "2019-03-15", "ModifyDBClusterMaintainTime") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyDBClusterMaintainTimeRequest::~ModifyDBClusterMaintainTimeRequest() -{} - -long ModifyDBClusterMaintainTimeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Adb::Model::ModifyDBClusterMaintainTimeRequest; + +ModifyDBClusterMaintainTimeRequest::ModifyDBClusterMaintainTimeRequest() + : RpcServiceRequest("adb", "2019-03-15", "ModifyDBClusterMaintainTime") { + setMethod(HttpRequest::Method::Post); } -void ModifyDBClusterMaintainTimeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyDBClusterMaintainTimeRequest::~ModifyDBClusterMaintainTimeRequest() {} + +long ModifyDBClusterMaintainTimeRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyDBClusterMaintainTimeRequest::getAccessKeyId()const -{ - return accessKeyId_; +void ModifyDBClusterMaintainTimeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyDBClusterMaintainTimeRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string ModifyDBClusterMaintainTimeRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string ModifyDBClusterMaintainTimeRequest::getMaintainTime()const -{ - return maintainTime_; +void ModifyDBClusterMaintainTimeRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void ModifyDBClusterMaintainTimeRequest::setMaintainTime(const std::string& maintainTime) -{ - maintainTime_ = maintainTime; - setParameter("MaintainTime", maintainTime); +std::string ModifyDBClusterMaintainTimeRequest::getMaintainTime() const { + return maintainTime_; } -std::string ModifyDBClusterMaintainTimeRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyDBClusterMaintainTimeRequest::setMaintainTime(const std::string &maintainTime) { + maintainTime_ = maintainTime; + setParameter(std::string("MaintainTime"), maintainTime); } -void ModifyDBClusterMaintainTimeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyDBClusterMaintainTimeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyDBClusterMaintainTimeRequest::getDBClusterId()const -{ - return dBClusterId_; +void ModifyDBClusterMaintainTimeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyDBClusterMaintainTimeRequest::setDBClusterId(const std::string& dBClusterId) -{ - dBClusterId_ = dBClusterId; - setParameter("DBClusterId", dBClusterId); +std::string ModifyDBClusterMaintainTimeRequest::getDBClusterId() const { + return dBClusterId_; } -std::string ModifyDBClusterMaintainTimeRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyDBClusterMaintainTimeRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); } -void ModifyDBClusterMaintainTimeRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyDBClusterMaintainTimeRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifyDBClusterMaintainTimeRequest::getOwnerId()const -{ - return ownerId_; +void ModifyDBClusterMaintainTimeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyDBClusterMaintainTimeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyDBClusterMaintainTimeRequest::getOwnerId() const { + return ownerId_; +} + +void ModifyDBClusterMaintainTimeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/adb/src/model/ModifyDBClusterPayTypeRequest.cc b/adb/src/model/ModifyDBClusterPayTypeRequest.cc new file mode 100644 index 000000000..d77be8390 --- /dev/null +++ b/adb/src/model/ModifyDBClusterPayTypeRequest.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::Adb::Model::ModifyDBClusterPayTypeRequest; + +ModifyDBClusterPayTypeRequest::ModifyDBClusterPayTypeRequest() + : RpcServiceRequest("adb", "2019-03-15", "ModifyDBClusterPayType") { + setMethod(HttpRequest::Method::Post); +} + +ModifyDBClusterPayTypeRequest::~ModifyDBClusterPayTypeRequest() {} + +std::string ModifyDBClusterPayTypeRequest::getPeriod() const { + return period_; +} + +void ModifyDBClusterPayTypeRequest::setPeriod(const std::string &period) { + period_ = period; + setParameter(std::string("Period"), period); +} + +std::string ModifyDBClusterPayTypeRequest::getDbClusterId() const { + return dbClusterId_; +} + +void ModifyDBClusterPayTypeRequest::setDbClusterId(const std::string &dbClusterId) { + dbClusterId_ = dbClusterId; + setParameter(std::string("DbClusterId"), dbClusterId); +} + +std::string ModifyDBClusterPayTypeRequest::getUsedTime() const { + return usedTime_; +} + +void ModifyDBClusterPayTypeRequest::setUsedTime(const std::string &usedTime) { + usedTime_ = usedTime; + setParameter(std::string("UsedTime"), usedTime); +} + +std::string ModifyDBClusterPayTypeRequest::getPayType() const { + return payType_; +} + +void ModifyDBClusterPayTypeRequest::setPayType(const std::string &payType) { + payType_ = payType; + setParameter(std::string("PayType"), payType); +} + diff --git a/adb/src/model/ModifyDBClusterPayTypeResult.cc b/adb/src/model/ModifyDBClusterPayTypeResult.cc new file mode 100644 index 000000000..0d375e3d7 --- /dev/null +++ b/adb/src/model/ModifyDBClusterPayTypeResult.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::Adb; +using namespace AlibabaCloud::Adb::Model; + +ModifyDBClusterPayTypeResult::ModifyDBClusterPayTypeResult() : + ServiceResult() +{} + +ModifyDBClusterPayTypeResult::ModifyDBClusterPayTypeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDBClusterPayTypeResult::~ModifyDBClusterPayTypeResult() +{} + +void ModifyDBClusterPayTypeResult::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(); + if(!value["PayType"].isNull()) + payType_ = value["PayType"].asString(); + +} + +std::string ModifyDBClusterPayTypeResult::getDBClusterId()const +{ + return dBClusterId_; +} + +std::string ModifyDBClusterPayTypeResult::getPayType()const +{ + return payType_; +} + +std::string ModifyDBClusterPayTypeResult::getOrderId()const +{ + return orderId_; +} + diff --git a/adb/src/model/ModifyDBClusterRequest.cc b/adb/src/model/ModifyDBClusterRequest.cc index 441355631..1e2857da3 100644 --- a/adb/src/model/ModifyDBClusterRequest.cc +++ b/adb/src/model/ModifyDBClusterRequest.cc @@ -1,216 +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::Adb::Model::ModifyDBClusterRequest; - -ModifyDBClusterRequest::ModifyDBClusterRequest() : - RpcServiceRequest("adb", "2019-03-15", "ModifyDBCluster") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyDBClusterRequest::~ModifyDBClusterRequest() -{} - -long ModifyDBClusterRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Adb::Model::ModifyDBClusterRequest; + +ModifyDBClusterRequest::ModifyDBClusterRequest() + : RpcServiceRequest("adb", "2019-03-15", "ModifyDBCluster") { + setMethod(HttpRequest::Method::Post); } -void ModifyDBClusterRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyDBClusterRequest::~ModifyDBClusterRequest() {} + +long ModifyDBClusterRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyDBClusterRequest::getAccessKeyId()const -{ - return accessKeyId_; +void ModifyDBClusterRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyDBClusterRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string ModifyDBClusterRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string ModifyDBClusterRequest::getMode()const -{ - return mode_; +void ModifyDBClusterRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void ModifyDBClusterRequest::setMode(const std::string& mode) -{ - mode_ = mode; - setParameter("Mode", mode); +std::string ModifyDBClusterRequest::getMode() const { + return mode_; } -std::string ModifyDBClusterRequest::getStorageResource()const -{ - return storageResource_; +void ModifyDBClusterRequest::setMode(const std::string &mode) { + mode_ = mode; + setParameter(std::string("Mode"), mode); } -void ModifyDBClusterRequest::setStorageResource(const std::string& storageResource) -{ - storageResource_ = storageResource; - setParameter("StorageResource", storageResource); +std::string ModifyDBClusterRequest::getStorageResource() const { + return storageResource_; } -std::string ModifyDBClusterRequest::getDBNodeClass()const -{ - return dBNodeClass_; +void ModifyDBClusterRequest::setStorageResource(const std::string &storageResource) { + storageResource_ = storageResource; + setParameter(std::string("StorageResource"), storageResource); } -void ModifyDBClusterRequest::setDBNodeClass(const std::string& dBNodeClass) -{ - dBNodeClass_ = dBNodeClass; - setParameter("DBNodeClass", dBNodeClass); +std::string ModifyDBClusterRequest::getDBNodeClass() const { + return dBNodeClass_; } -std::string ModifyDBClusterRequest::getRegionId()const -{ - return regionId_; +void ModifyDBClusterRequest::setDBNodeClass(const std::string &dBNodeClass) { + dBNodeClass_ = dBNodeClass; + setParameter(std::string("DBNodeClass"), dBNodeClass); } -void ModifyDBClusterRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyDBClusterRequest::getRegionId() const { + return regionId_; } -std::string ModifyDBClusterRequest::getDBClusterCategory()const -{ - return dBClusterCategory_; +void ModifyDBClusterRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyDBClusterRequest::setDBClusterCategory(const std::string& dBClusterCategory) -{ - dBClusterCategory_ = dBClusterCategory; - setParameter("DBClusterCategory", dBClusterCategory); +std::string ModifyDBClusterRequest::getDBClusterCategory() const { + return dBClusterCategory_; } -std::string ModifyDBClusterRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyDBClusterRequest::setDBClusterCategory(const std::string &dBClusterCategory) { + dBClusterCategory_ = dBClusterCategory; + setParameter(std::string("DBClusterCategory"), dBClusterCategory); } -void ModifyDBClusterRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyDBClusterRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyDBClusterRequest::getDBClusterId()const -{ - return dBClusterId_; +void ModifyDBClusterRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyDBClusterRequest::setDBClusterId(const std::string& dBClusterId) -{ - dBClusterId_ = dBClusterId; - setParameter("DBClusterId", dBClusterId); +std::string ModifyDBClusterRequest::getDBClusterId() const { + return dBClusterId_; } -std::string ModifyDBClusterRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyDBClusterRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); } -void ModifyDBClusterRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyDBClusterRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifyDBClusterRequest::getOwnerId()const -{ - return ownerId_; +void ModifyDBClusterRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyDBClusterRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyDBClusterRequest::getOwnerId() const { + return ownerId_; } -std::string ModifyDBClusterRequest::getDBNodeGroupCount()const -{ - return dBNodeGroupCount_; +void ModifyDBClusterRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyDBClusterRequest::setDBNodeGroupCount(const std::string& dBNodeGroupCount) -{ - dBNodeGroupCount_ = dBNodeGroupCount; - setParameter("DBNodeGroupCount", dBNodeGroupCount); +std::string ModifyDBClusterRequest::getDBNodeGroupCount() const { + return dBNodeGroupCount_; } -std::string ModifyDBClusterRequest::getDBNodeStorage()const -{ - return dBNodeStorage_; +void ModifyDBClusterRequest::setDBNodeGroupCount(const std::string &dBNodeGroupCount) { + dBNodeGroupCount_ = dBNodeGroupCount; + setParameter(std::string("DBNodeGroupCount"), dBNodeGroupCount); } -void ModifyDBClusterRequest::setDBNodeStorage(const std::string& dBNodeStorage) -{ - dBNodeStorage_ = dBNodeStorage; - setParameter("DBNodeStorage", dBNodeStorage); +std::string ModifyDBClusterRequest::getDBNodeStorage() const { + return dBNodeStorage_; } -std::string ModifyDBClusterRequest::getExecutorCount()const -{ - return executorCount_; +void ModifyDBClusterRequest::setDBNodeStorage(const std::string &dBNodeStorage) { + dBNodeStorage_ = dBNodeStorage; + setParameter(std::string("DBNodeStorage"), dBNodeStorage); } -void ModifyDBClusterRequest::setExecutorCount(const std::string& executorCount) -{ - executorCount_ = executorCount; - setParameter("ExecutorCount", executorCount); +std::string ModifyDBClusterRequest::getExecutorCount() const { + return executorCount_; } -std::string ModifyDBClusterRequest::getModifyType()const -{ - return modifyType_; +void ModifyDBClusterRequest::setExecutorCount(const std::string &executorCount) { + executorCount_ = executorCount; + setParameter(std::string("ExecutorCount"), executorCount); } -void ModifyDBClusterRequest::setModifyType(const std::string& modifyType) -{ - modifyType_ = modifyType; - setParameter("ModifyType", modifyType); +std::string ModifyDBClusterRequest::getModifyType() const { + return modifyType_; } -std::string ModifyDBClusterRequest::getComputeResource()const -{ - return computeResource_; +void ModifyDBClusterRequest::setModifyType(const std::string &modifyType) { + modifyType_ = modifyType; + setParameter(std::string("ModifyType"), modifyType); } -void ModifyDBClusterRequest::setComputeResource(const std::string& computeResource) -{ - computeResource_ = computeResource; - setParameter("ComputeResource", computeResource); +std::string ModifyDBClusterRequest::getComputeResource() const { + return computeResource_; } -int ModifyDBClusterRequest::getElasticIOResource()const -{ - return elasticIOResource_; +void ModifyDBClusterRequest::setComputeResource(const std::string &computeResource) { + computeResource_ = computeResource; + setParameter(std::string("ComputeResource"), computeResource); } -void ModifyDBClusterRequest::setElasticIOResource(int elasticIOResource) -{ - elasticIOResource_ = elasticIOResource; - setParameter("ElasticIOResource", std::to_string(elasticIOResource)); +int ModifyDBClusterRequest::getElasticIOResource() const { + return elasticIOResource_; +} + +void ModifyDBClusterRequest::setElasticIOResource(int elasticIOResource) { + elasticIOResource_ = elasticIOResource; + setParameter(std::string("ElasticIOResource"), std::to_string(elasticIOResource)); } diff --git a/adb/src/model/ModifyDBClusterResourceGroupRequest.cc b/adb/src/model/ModifyDBClusterResourceGroupRequest.cc index f6b45a9f6..cc566bd8d 100644 --- a/adb/src/model/ModifyDBClusterResourceGroupRequest.cc +++ b/adb/src/model/ModifyDBClusterResourceGroupRequest.cc @@ -1,106 +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::Adb::Model::ModifyDBClusterResourceGroupRequest; - -ModifyDBClusterResourceGroupRequest::ModifyDBClusterResourceGroupRequest() : - RpcServiceRequest("adb", "2019-03-15", "ModifyDBClusterResourceGroup") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyDBClusterResourceGroupRequest::~ModifyDBClusterResourceGroupRequest() -{} - -long ModifyDBClusterResourceGroupRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Adb::Model::ModifyDBClusterResourceGroupRequest; + +ModifyDBClusterResourceGroupRequest::ModifyDBClusterResourceGroupRequest() + : RpcServiceRequest("adb", "2019-03-15", "ModifyDBClusterResourceGroup") { + setMethod(HttpRequest::Method::Post); } -void ModifyDBClusterResourceGroupRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyDBClusterResourceGroupRequest::~ModifyDBClusterResourceGroupRequest() {} + +long ModifyDBClusterResourceGroupRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyDBClusterResourceGroupRequest::getAccessKeyId()const -{ - return accessKeyId_; +void ModifyDBClusterResourceGroupRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyDBClusterResourceGroupRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string ModifyDBClusterResourceGroupRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string ModifyDBClusterResourceGroupRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyDBClusterResourceGroupRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void ModifyDBClusterResourceGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyDBClusterResourceGroupRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyDBClusterResourceGroupRequest::getDBClusterId()const -{ - return dBClusterId_; +void ModifyDBClusterResourceGroupRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyDBClusterResourceGroupRequest::setDBClusterId(const std::string& dBClusterId) -{ - dBClusterId_ = dBClusterId; - setParameter("DBClusterId", dBClusterId); +std::string ModifyDBClusterResourceGroupRequest::getDBClusterId() const { + return dBClusterId_; } -std::string ModifyDBClusterResourceGroupRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyDBClusterResourceGroupRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); } -void ModifyDBClusterResourceGroupRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyDBClusterResourceGroupRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifyDBClusterResourceGroupRequest::getOwnerId()const -{ - return ownerId_; +void ModifyDBClusterResourceGroupRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyDBClusterResourceGroupRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyDBClusterResourceGroupRequest::getOwnerId() const { + return ownerId_; } -std::string ModifyDBClusterResourceGroupRequest::getNewResourceGroupId()const -{ - return newResourceGroupId_; +void ModifyDBClusterResourceGroupRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyDBClusterResourceGroupRequest::setNewResourceGroupId(const std::string& newResourceGroupId) -{ - newResourceGroupId_ = newResourceGroupId; - setParameter("NewResourceGroupId", newResourceGroupId); +std::string ModifyDBClusterResourceGroupRequest::getNewResourceGroupId() const { + return newResourceGroupId_; +} + +void ModifyDBClusterResourceGroupRequest::setNewResourceGroupId(const std::string &newResourceGroupId) { + newResourceGroupId_ = newResourceGroupId; + setParameter(std::string("NewResourceGroupId"), newResourceGroupId); } diff --git a/adb/src/model/ModifyDBResourceGroupRequest.cc b/adb/src/model/ModifyDBResourceGroupRequest.cc new file mode 100644 index 000000000..5056cd589 --- /dev/null +++ b/adb/src/model/ModifyDBResourceGroupRequest.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::Adb::Model::ModifyDBResourceGroupRequest; + +ModifyDBResourceGroupRequest::ModifyDBResourceGroupRequest() + : RpcServiceRequest("adb", "2019-03-15", "ModifyDBResourceGroup") { + setMethod(HttpRequest::Method::Post); +} + +ModifyDBResourceGroupRequest::~ModifyDBResourceGroupRequest() {} + +long ModifyDBResourceGroupRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void ModifyDBResourceGroupRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +int ModifyDBResourceGroupRequest::getNodeNum() const { + return nodeNum_; +} + +void ModifyDBResourceGroupRequest::setNodeNum(int nodeNum) { + nodeNum_ = nodeNum; + setParameter(std::string("NodeNum"), std::to_string(nodeNum)); +} + +std::string ModifyDBResourceGroupRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ModifyDBResourceGroupRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string ModifyDBResourceGroupRequest::getGroupType() const { + return groupType_; +} + +void ModifyDBResourceGroupRequest::setGroupType(const std::string &groupType) { + groupType_ = groupType; + setParameter(std::string("GroupType"), groupType); +} + +std::string ModifyDBResourceGroupRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ModifyDBResourceGroupRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string ModifyDBResourceGroupRequest::getDBClusterId() const { + return dBClusterId_; +} + +void ModifyDBResourceGroupRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string ModifyDBResourceGroupRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ModifyDBResourceGroupRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long ModifyDBResourceGroupRequest::getOwnerId() const { + return ownerId_; +} + +void ModifyDBResourceGroupRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string ModifyDBResourceGroupRequest::getGroupName() const { + return groupName_; +} + +void ModifyDBResourceGroupRequest::setGroupName(const std::string &groupName) { + groupName_ = groupName; + setParameter(std::string("GroupName"), groupName); +} + diff --git a/adb/src/model/ModifyDBResourceGroupResult.cc b/adb/src/model/ModifyDBResourceGroupResult.cc new file mode 100644 index 000000000..8c5a11c16 --- /dev/null +++ b/adb/src/model/ModifyDBResourceGroupResult.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::Adb; +using namespace AlibabaCloud::Adb::Model; + +ModifyDBResourceGroupResult::ModifyDBResourceGroupResult() : + ServiceResult() +{} + +ModifyDBResourceGroupResult::ModifyDBResourceGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDBResourceGroupResult::~ModifyDBResourceGroupResult() +{} + +void ModifyDBResourceGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/adb/src/model/ModifyDBResourcePoolRequest.cc b/adb/src/model/ModifyDBResourcePoolRequest.cc index 739abcb56..b264445fd 100644 --- a/adb/src/model/ModifyDBResourcePoolRequest.cc +++ b/adb/src/model/ModifyDBResourcePoolRequest.cc @@ -1,128 +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::Adb::Model::ModifyDBResourcePoolRequest; - -ModifyDBResourcePoolRequest::ModifyDBResourcePoolRequest() : - RpcServiceRequest("adb", "2019-03-15", "ModifyDBResourcePool") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyDBResourcePoolRequest::~ModifyDBResourcePoolRequest() -{} - -std::string ModifyDBResourcePoolRequest::getPoolName()const -{ - return poolName_; + */ + +#include + +using AlibabaCloud::Adb::Model::ModifyDBResourcePoolRequest; + +ModifyDBResourcePoolRequest::ModifyDBResourcePoolRequest() + : RpcServiceRequest("adb", "2019-03-15", "ModifyDBResourcePool") { + setMethod(HttpRequest::Method::Post); } -void ModifyDBResourcePoolRequest::setPoolName(const std::string& poolName) -{ - poolName_ = poolName; - setParameter("PoolName", poolName); +ModifyDBResourcePoolRequest::~ModifyDBResourcePoolRequest() {} + +std::string ModifyDBResourcePoolRequest::getPoolName() const { + return poolName_; } -long ModifyDBResourcePoolRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void ModifyDBResourcePoolRequest::setPoolName(const std::string &poolName) { + poolName_ = poolName; + setParameter(std::string("PoolName"), poolName); } -void ModifyDBResourcePoolRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long ModifyDBResourcePoolRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -int ModifyDBResourcePoolRequest::getNodeNum()const -{ - return nodeNum_; +void ModifyDBResourcePoolRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyDBResourcePoolRequest::setNodeNum(int nodeNum) -{ - nodeNum_ = nodeNum; - setParameter("NodeNum", std::to_string(nodeNum)); +int ModifyDBResourcePoolRequest::getNodeNum() const { + return nodeNum_; } -std::string ModifyDBResourcePoolRequest::getAccessKeyId()const -{ - return accessKeyId_; +void ModifyDBResourcePoolRequest::setNodeNum(int nodeNum) { + nodeNum_ = nodeNum; + setParameter(std::string("NodeNum"), std::to_string(nodeNum)); } -void ModifyDBResourcePoolRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string ModifyDBResourcePoolRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string ModifyDBResourcePoolRequest::getQueryType()const -{ - return queryType_; +void ModifyDBResourcePoolRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void ModifyDBResourcePoolRequest::setQueryType(const std::string& queryType) -{ - queryType_ = queryType; - setParameter("QueryType", queryType); +std::string ModifyDBResourcePoolRequest::getQueryType() const { + return queryType_; } -std::string ModifyDBResourcePoolRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyDBResourcePoolRequest::setQueryType(const std::string &queryType) { + queryType_ = queryType; + setParameter(std::string("QueryType"), queryType); } -void ModifyDBResourcePoolRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyDBResourcePoolRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyDBResourcePoolRequest::getDBClusterId()const -{ - return dBClusterId_; +void ModifyDBResourcePoolRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyDBResourcePoolRequest::setDBClusterId(const std::string& dBClusterId) -{ - dBClusterId_ = dBClusterId; - setParameter("DBClusterId", dBClusterId); +std::string ModifyDBResourcePoolRequest::getDBClusterId() const { + return dBClusterId_; } -std::string ModifyDBResourcePoolRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyDBResourcePoolRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); } -void ModifyDBResourcePoolRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyDBResourcePoolRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifyDBResourcePoolRequest::getOwnerId()const -{ - return ownerId_; +void ModifyDBResourcePoolRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyDBResourcePoolRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyDBResourcePoolRequest::getOwnerId() const { + return ownerId_; +} + +void ModifyDBResourcePoolRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/adb/src/model/ModifyElasticPlanRequest.cc b/adb/src/model/ModifyElasticPlanRequest.cc index 994db13f0..85c58d883 100644 --- a/adb/src/model/ModifyElasticPlanRequest.cc +++ b/adb/src/model/ModifyElasticPlanRequest.cc @@ -1,194 +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::Adb::Model::ModifyElasticPlanRequest; - -ModifyElasticPlanRequest::ModifyElasticPlanRequest() : - RpcServiceRequest("adb", "2019-03-15", "ModifyElasticPlan") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyElasticPlanRequest::~ModifyElasticPlanRequest() -{} - -long ModifyElasticPlanRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Adb::Model::ModifyElasticPlanRequest; + +ModifyElasticPlanRequest::ModifyElasticPlanRequest() + : RpcServiceRequest("adb", "2019-03-15", "ModifyElasticPlan") { + setMethod(HttpRequest::Method::Post); } -void ModifyElasticPlanRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyElasticPlanRequest::~ModifyElasticPlanRequest() {} + +long ModifyElasticPlanRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyElasticPlanRequest::getElasticPlanTimeStart()const -{ - return elasticPlanTimeStart_; +void ModifyElasticPlanRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyElasticPlanRequest::setElasticPlanTimeStart(const std::string& elasticPlanTimeStart) -{ - elasticPlanTimeStart_ = elasticPlanTimeStart; - setParameter("ElasticPlanTimeStart", elasticPlanTimeStart); +std::string ModifyElasticPlanRequest::getElasticPlanTimeStart() const { + return elasticPlanTimeStart_; } -std::string ModifyElasticPlanRequest::getElasticPlanEndDay()const -{ - return elasticPlanEndDay_; +void ModifyElasticPlanRequest::setElasticPlanTimeStart(const std::string &elasticPlanTimeStart) { + elasticPlanTimeStart_ = elasticPlanTimeStart; + setParameter(std::string("ElasticPlanTimeStart"), elasticPlanTimeStart); } -void ModifyElasticPlanRequest::setElasticPlanEndDay(const std::string& elasticPlanEndDay) -{ - elasticPlanEndDay_ = elasticPlanEndDay; - setParameter("ElasticPlanEndDay", elasticPlanEndDay); +std::string ModifyElasticPlanRequest::getElasticPlanEndDay() const { + return elasticPlanEndDay_; } -std::string ModifyElasticPlanRequest::getElasticPlanWeeklyRepeat()const -{ - return elasticPlanWeeklyRepeat_; +void ModifyElasticPlanRequest::setElasticPlanEndDay(const std::string &elasticPlanEndDay) { + elasticPlanEndDay_ = elasticPlanEndDay; + setParameter(std::string("ElasticPlanEndDay"), elasticPlanEndDay); } -void ModifyElasticPlanRequest::setElasticPlanWeeklyRepeat(const std::string& elasticPlanWeeklyRepeat) -{ - elasticPlanWeeklyRepeat_ = elasticPlanWeeklyRepeat; - setParameter("ElasticPlanWeeklyRepeat", elasticPlanWeeklyRepeat); +std::string ModifyElasticPlanRequest::getElasticPlanWeeklyRepeat() const { + return elasticPlanWeeklyRepeat_; } -std::string ModifyElasticPlanRequest::getAccessKeyId()const -{ - return accessKeyId_; +void ModifyElasticPlanRequest::setElasticPlanWeeklyRepeat(const std::string &elasticPlanWeeklyRepeat) { + elasticPlanWeeklyRepeat_ = elasticPlanWeeklyRepeat; + setParameter(std::string("ElasticPlanWeeklyRepeat"), elasticPlanWeeklyRepeat); } -void ModifyElasticPlanRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string ModifyElasticPlanRequest::getAccessKeyId() const { + return accessKeyId_; } -bool ModifyElasticPlanRequest::getElasticPlanEnable()const -{ - return elasticPlanEnable_; +void ModifyElasticPlanRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void ModifyElasticPlanRequest::setElasticPlanEnable(bool elasticPlanEnable) -{ - elasticPlanEnable_ = elasticPlanEnable; - setParameter("ElasticPlanEnable", elasticPlanEnable ? "true" : "false"); +bool ModifyElasticPlanRequest::getElasticPlanEnable() const { + return elasticPlanEnable_; } -std::string ModifyElasticPlanRequest::getElasticPlanTimeEnd()const -{ - return elasticPlanTimeEnd_; +void ModifyElasticPlanRequest::setElasticPlanEnable(bool elasticPlanEnable) { + elasticPlanEnable_ = elasticPlanEnable; + setParameter(std::string("ElasticPlanEnable"), elasticPlanEnable ? "true" : "false"); } -void ModifyElasticPlanRequest::setElasticPlanTimeEnd(const std::string& elasticPlanTimeEnd) -{ - elasticPlanTimeEnd_ = elasticPlanTimeEnd; - setParameter("ElasticPlanTimeEnd", elasticPlanTimeEnd); +std::string ModifyElasticPlanRequest::getElasticPlanTimeEnd() const { + return elasticPlanTimeEnd_; } -std::string ModifyElasticPlanRequest::getElasticPlanStartDay()const -{ - return elasticPlanStartDay_; +void ModifyElasticPlanRequest::setElasticPlanTimeEnd(const std::string &elasticPlanTimeEnd) { + elasticPlanTimeEnd_ = elasticPlanTimeEnd; + setParameter(std::string("ElasticPlanTimeEnd"), elasticPlanTimeEnd); } -void ModifyElasticPlanRequest::setElasticPlanStartDay(const std::string& elasticPlanStartDay) -{ - elasticPlanStartDay_ = elasticPlanStartDay; - setParameter("ElasticPlanStartDay", elasticPlanStartDay); +std::string ModifyElasticPlanRequest::getElasticPlanStartDay() const { + return elasticPlanStartDay_; } -std::string ModifyElasticPlanRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyElasticPlanRequest::setElasticPlanStartDay(const std::string &elasticPlanStartDay) { + elasticPlanStartDay_ = elasticPlanStartDay; + setParameter(std::string("ElasticPlanStartDay"), elasticPlanStartDay); } -void ModifyElasticPlanRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyElasticPlanRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyElasticPlanRequest::getDBClusterId()const -{ - return dBClusterId_; +void ModifyElasticPlanRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyElasticPlanRequest::setDBClusterId(const std::string& dBClusterId) -{ - dBClusterId_ = dBClusterId; - setParameter("DBClusterId", dBClusterId); +std::string ModifyElasticPlanRequest::getDBClusterId() const { + return dBClusterId_; } -std::string ModifyElasticPlanRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyElasticPlanRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); } -void ModifyElasticPlanRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyElasticPlanRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifyElasticPlanRequest::getOwnerId()const -{ - return ownerId_; +void ModifyElasticPlanRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyElasticPlanRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyElasticPlanRequest::getOwnerId() const { + return ownerId_; } -std::string ModifyElasticPlanRequest::getElasticPlanName()const -{ - return elasticPlanName_; +void ModifyElasticPlanRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyElasticPlanRequest::setElasticPlanName(const std::string& elasticPlanName) -{ - elasticPlanName_ = elasticPlanName; - setParameter("ElasticPlanName", elasticPlanName); +std::string ModifyElasticPlanRequest::getElasticPlanName() const { + return elasticPlanName_; } -std::string ModifyElasticPlanRequest::getResourcePoolName()const -{ - return resourcePoolName_; +void ModifyElasticPlanRequest::setElasticPlanName(const std::string &elasticPlanName) { + elasticPlanName_ = elasticPlanName; + setParameter(std::string("ElasticPlanName"), elasticPlanName); } -void ModifyElasticPlanRequest::setResourcePoolName(const std::string& resourcePoolName) -{ - resourcePoolName_ = resourcePoolName; - setParameter("ResourcePoolName", resourcePoolName); +std::string ModifyElasticPlanRequest::getResourcePoolName() const { + return resourcePoolName_; } -int ModifyElasticPlanRequest::getElasticPlanNodeNum()const -{ - return elasticPlanNodeNum_; +void ModifyElasticPlanRequest::setResourcePoolName(const std::string &resourcePoolName) { + resourcePoolName_ = resourcePoolName; + setParameter(std::string("ResourcePoolName"), resourcePoolName); } -void ModifyElasticPlanRequest::setElasticPlanNodeNum(int elasticPlanNodeNum) -{ - elasticPlanNodeNum_ = elasticPlanNodeNum; - setParameter("ElasticPlanNodeNum", std::to_string(elasticPlanNodeNum)); +int ModifyElasticPlanRequest::getElasticPlanNodeNum() const { + return elasticPlanNodeNum_; +} + +void ModifyElasticPlanRequest::setElasticPlanNodeNum(int elasticPlanNodeNum) { + elasticPlanNodeNum_ = elasticPlanNodeNum; + setParameter(std::string("ElasticPlanNodeNum"), std::to_string(elasticPlanNodeNum)); } diff --git a/adb/src/model/ModifyLogBackupPolicyRequest.cc b/adb/src/model/ModifyLogBackupPolicyRequest.cc index 5208a4a0c..ff41eb67d 100644 --- a/adb/src/model/ModifyLogBackupPolicyRequest.cc +++ b/adb/src/model/ModifyLogBackupPolicyRequest.cc @@ -1,117 +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::Adb::Model::ModifyLogBackupPolicyRequest; - -ModifyLogBackupPolicyRequest::ModifyLogBackupPolicyRequest() : - RpcServiceRequest("adb", "2019-03-15", "ModifyLogBackupPolicy") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyLogBackupPolicyRequest::~ModifyLogBackupPolicyRequest() -{} - -long ModifyLogBackupPolicyRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Adb::Model::ModifyLogBackupPolicyRequest; + +ModifyLogBackupPolicyRequest::ModifyLogBackupPolicyRequest() + : RpcServiceRequest("adb", "2019-03-15", "ModifyLogBackupPolicy") { + setMethod(HttpRequest::Method::Post); } -void ModifyLogBackupPolicyRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyLogBackupPolicyRequest::~ModifyLogBackupPolicyRequest() {} + +long ModifyLogBackupPolicyRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyLogBackupPolicyRequest::getAccessKeyId()const -{ - return accessKeyId_; +void ModifyLogBackupPolicyRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyLogBackupPolicyRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string ModifyLogBackupPolicyRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string ModifyLogBackupPolicyRequest::getEnableBackupLog()const -{ - return enableBackupLog_; +void ModifyLogBackupPolicyRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void ModifyLogBackupPolicyRequest::setEnableBackupLog(const std::string& enableBackupLog) -{ - enableBackupLog_ = enableBackupLog; - setParameter("EnableBackupLog", enableBackupLog); +std::string ModifyLogBackupPolicyRequest::getEnableBackupLog() const { + return enableBackupLog_; } -std::string ModifyLogBackupPolicyRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyLogBackupPolicyRequest::setEnableBackupLog(const std::string &enableBackupLog) { + enableBackupLog_ = enableBackupLog; + setParameter(std::string("EnableBackupLog"), enableBackupLog); } -void ModifyLogBackupPolicyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyLogBackupPolicyRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyLogBackupPolicyRequest::getDBClusterId()const -{ - return dBClusterId_; +void ModifyLogBackupPolicyRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyLogBackupPolicyRequest::setDBClusterId(const std::string& dBClusterId) -{ - dBClusterId_ = dBClusterId; - setParameter("DBClusterId", dBClusterId); +std::string ModifyLogBackupPolicyRequest::getDBClusterId() const { + return dBClusterId_; } -std::string ModifyLogBackupPolicyRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyLogBackupPolicyRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); } -void ModifyLogBackupPolicyRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyLogBackupPolicyRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifyLogBackupPolicyRequest::getOwnerId()const -{ - return ownerId_; +void ModifyLogBackupPolicyRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyLogBackupPolicyRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyLogBackupPolicyRequest::getOwnerId() const { + return ownerId_; } -std::string ModifyLogBackupPolicyRequest::getLogBackupRetentionPeriod()const -{ - return logBackupRetentionPeriod_; +void ModifyLogBackupPolicyRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyLogBackupPolicyRequest::setLogBackupRetentionPeriod(const std::string& logBackupRetentionPeriod) -{ - logBackupRetentionPeriod_ = logBackupRetentionPeriod; - setParameter("LogBackupRetentionPeriod", logBackupRetentionPeriod); +std::string ModifyLogBackupPolicyRequest::getLogBackupRetentionPeriod() const { + return logBackupRetentionPeriod_; +} + +void ModifyLogBackupPolicyRequest::setLogBackupRetentionPeriod(const std::string &logBackupRetentionPeriod) { + logBackupRetentionPeriod_ = logBackupRetentionPeriod; + setParameter(std::string("LogBackupRetentionPeriod"), logBackupRetentionPeriod); } diff --git a/adb/src/model/ModifyMaintenanceActionRequest.cc b/adb/src/model/ModifyMaintenanceActionRequest.cc new file mode 100644 index 000000000..8f182169a --- /dev/null +++ b/adb/src/model/ModifyMaintenanceActionRequest.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::Adb::Model::ModifyMaintenanceActionRequest; + +ModifyMaintenanceActionRequest::ModifyMaintenanceActionRequest() + : RpcServiceRequest("adb", "2019-03-15", "ModifyMaintenanceAction") { + setMethod(HttpRequest::Method::Post); +} + +ModifyMaintenanceActionRequest::~ModifyMaintenanceActionRequest() {} + +long ModifyMaintenanceActionRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void ModifyMaintenanceActionRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string ModifyMaintenanceActionRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ModifyMaintenanceActionRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string ModifyMaintenanceActionRequest::getRegionId() const { + return regionId_; +} + +void ModifyMaintenanceActionRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string ModifyMaintenanceActionRequest::getSwitchTime() const { + return switchTime_; +} + +void ModifyMaintenanceActionRequest::setSwitchTime(const std::string &switchTime) { + switchTime_ = switchTime; + setParameter(std::string("SwitchTime"), switchTime); +} + +std::string ModifyMaintenanceActionRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ModifyMaintenanceActionRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string ModifyMaintenanceActionRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ModifyMaintenanceActionRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long ModifyMaintenanceActionRequest::getOwnerId() const { + return ownerId_; +} + +void ModifyMaintenanceActionRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string ModifyMaintenanceActionRequest::getIds() const { + return ids_; +} + +void ModifyMaintenanceActionRequest::setIds(const std::string &ids) { + ids_ = ids; + setParameter(std::string("Ids"), ids); +} + diff --git a/adb/src/model/ModifyMaintenanceActionResult.cc b/adb/src/model/ModifyMaintenanceActionResult.cc new file mode 100644 index 000000000..96442ab1b --- /dev/null +++ b/adb/src/model/ModifyMaintenanceActionResult.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::Adb; +using namespace AlibabaCloud::Adb::Model; + +ModifyMaintenanceActionResult::ModifyMaintenanceActionResult() : + ServiceResult() +{} + +ModifyMaintenanceActionResult::ModifyMaintenanceActionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyMaintenanceActionResult::~ModifyMaintenanceActionResult() +{} + +void ModifyMaintenanceActionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Ids"].isNull()) + ids_ = value["Ids"].asString(); + +} + +std::string ModifyMaintenanceActionResult::getIds()const +{ + return ids_; +} + diff --git a/adb/src/model/ReleaseClusterPublicConnectionRequest.cc b/adb/src/model/ReleaseClusterPublicConnectionRequest.cc index 5f2055adf..da6efeb3f 100644 --- a/adb/src/model/ReleaseClusterPublicConnectionRequest.cc +++ b/adb/src/model/ReleaseClusterPublicConnectionRequest.cc @@ -1,95 +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::Adb::Model::ReleaseClusterPublicConnectionRequest; - -ReleaseClusterPublicConnectionRequest::ReleaseClusterPublicConnectionRequest() : - RpcServiceRequest("adb", "2019-03-15", "ReleaseClusterPublicConnection") -{ - setMethod(HttpRequest::Method::Post); -} - -ReleaseClusterPublicConnectionRequest::~ReleaseClusterPublicConnectionRequest() -{} - -long ReleaseClusterPublicConnectionRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Adb::Model::ReleaseClusterPublicConnectionRequest; + +ReleaseClusterPublicConnectionRequest::ReleaseClusterPublicConnectionRequest() + : RpcServiceRequest("adb", "2019-03-15", "ReleaseClusterPublicConnection") { + setMethod(HttpRequest::Method::Post); } -void ReleaseClusterPublicConnectionRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ReleaseClusterPublicConnectionRequest::~ReleaseClusterPublicConnectionRequest() {} + +long ReleaseClusterPublicConnectionRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ReleaseClusterPublicConnectionRequest::getAccessKeyId()const -{ - return accessKeyId_; +void ReleaseClusterPublicConnectionRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ReleaseClusterPublicConnectionRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string ReleaseClusterPublicConnectionRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string ReleaseClusterPublicConnectionRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ReleaseClusterPublicConnectionRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void ReleaseClusterPublicConnectionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ReleaseClusterPublicConnectionRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ReleaseClusterPublicConnectionRequest::getDBClusterId()const -{ - return dBClusterId_; +void ReleaseClusterPublicConnectionRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ReleaseClusterPublicConnectionRequest::setDBClusterId(const std::string& dBClusterId) -{ - dBClusterId_ = dBClusterId; - setParameter("DBClusterId", dBClusterId); +std::string ReleaseClusterPublicConnectionRequest::getDBClusterId() const { + return dBClusterId_; } -std::string ReleaseClusterPublicConnectionRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ReleaseClusterPublicConnectionRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); } -void ReleaseClusterPublicConnectionRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ReleaseClusterPublicConnectionRequest::getOwnerAccount() const { + return ownerAccount_; } -long ReleaseClusterPublicConnectionRequest::getOwnerId()const -{ - return ownerId_; +void ReleaseClusterPublicConnectionRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ReleaseClusterPublicConnectionRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ReleaseClusterPublicConnectionRequest::getOwnerId() const { + return ownerId_; +} + +void ReleaseClusterPublicConnectionRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/adb/src/model/ResetAccountPasswordRequest.cc b/adb/src/model/ResetAccountPasswordRequest.cc index 396a86de9..16b55985c 100644 --- a/adb/src/model/ResetAccountPasswordRequest.cc +++ b/adb/src/model/ResetAccountPasswordRequest.cc @@ -1,128 +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::Adb::Model::ResetAccountPasswordRequest; - -ResetAccountPasswordRequest::ResetAccountPasswordRequest() : - RpcServiceRequest("adb", "2019-03-15", "ResetAccountPassword") -{ - setMethod(HttpRequest::Method::Post); -} - -ResetAccountPasswordRequest::~ResetAccountPasswordRequest() -{} - -long ResetAccountPasswordRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Adb::Model::ResetAccountPasswordRequest; + +ResetAccountPasswordRequest::ResetAccountPasswordRequest() + : RpcServiceRequest("adb", "2019-03-15", "ResetAccountPassword") { + setMethod(HttpRequest::Method::Post); } -void ResetAccountPasswordRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ResetAccountPasswordRequest::~ResetAccountPasswordRequest() {} + +long ResetAccountPasswordRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ResetAccountPasswordRequest::getAccountType()const -{ - return accountType_; +void ResetAccountPasswordRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ResetAccountPasswordRequest::setAccountType(const std::string& accountType) -{ - accountType_ = accountType; - setParameter("AccountType", accountType); +std::string ResetAccountPasswordRequest::getAccountType() const { + return accountType_; } -std::string ResetAccountPasswordRequest::getAccessKeyId()const -{ - return accessKeyId_; +void ResetAccountPasswordRequest::setAccountType(const std::string &accountType) { + accountType_ = accountType; + setParameter(std::string("AccountType"), accountType); } -void ResetAccountPasswordRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string ResetAccountPasswordRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string ResetAccountPasswordRequest::getAccountName()const -{ - return accountName_; +void ResetAccountPasswordRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void ResetAccountPasswordRequest::setAccountName(const std::string& accountName) -{ - accountName_ = accountName; - setParameter("AccountName", accountName); +std::string ResetAccountPasswordRequest::getAccountName() const { + return accountName_; } -std::string ResetAccountPasswordRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ResetAccountPasswordRequest::setAccountName(const std::string &accountName) { + accountName_ = accountName; + setParameter(std::string("AccountName"), accountName); } -void ResetAccountPasswordRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ResetAccountPasswordRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ResetAccountPasswordRequest::getDBClusterId()const -{ - return dBClusterId_; +void ResetAccountPasswordRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ResetAccountPasswordRequest::setDBClusterId(const std::string& dBClusterId) -{ - dBClusterId_ = dBClusterId; - setParameter("DBClusterId", dBClusterId); +std::string ResetAccountPasswordRequest::getDBClusterId() const { + return dBClusterId_; } -std::string ResetAccountPasswordRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ResetAccountPasswordRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); } -void ResetAccountPasswordRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ResetAccountPasswordRequest::getOwnerAccount() const { + return ownerAccount_; } -long ResetAccountPasswordRequest::getOwnerId()const -{ - return ownerId_; +void ResetAccountPasswordRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ResetAccountPasswordRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ResetAccountPasswordRequest::getOwnerId() const { + return ownerId_; } -std::string ResetAccountPasswordRequest::getAccountPassword()const -{ - return accountPassword_; +void ResetAccountPasswordRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ResetAccountPasswordRequest::setAccountPassword(const std::string& accountPassword) -{ - accountPassword_ = accountPassword; - setParameter("AccountPassword", accountPassword); +std::string ResetAccountPasswordRequest::getAccountPassword() const { + return accountPassword_; +} + +void ResetAccountPasswordRequest::setAccountPassword(const std::string &accountPassword) { + accountPassword_ = accountPassword; + setParameter(std::string("AccountPassword"), accountPassword); } diff --git a/adb/src/model/ResetAccountPasswordResult.cc b/adb/src/model/ResetAccountPasswordResult.cc index 54e5cdaa0..fdf1f0d68 100644 --- a/adb/src/model/ResetAccountPasswordResult.cc +++ b/adb/src/model/ResetAccountPasswordResult.cc @@ -39,10 +39,10 @@ void ResetAccountPasswordResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["DBClusterId"].isNull()) - dBClusterId_ = value["DBClusterId"].asString(); if(!value["TaskId"].isNull()) taskId_ = std::stoi(value["TaskId"].asString()); + if(!value["DBClusterId"].isNull()) + dBClusterId_ = value["DBClusterId"].asString(); } diff --git a/adb/src/model/RevokeOperatorPermissionRequest.cc b/adb/src/model/RevokeOperatorPermissionRequest.cc index c18c00563..f4c22a94a 100644 --- a/adb/src/model/RevokeOperatorPermissionRequest.cc +++ b/adb/src/model/RevokeOperatorPermissionRequest.cc @@ -1,95 +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::Adb::Model::RevokeOperatorPermissionRequest; - -RevokeOperatorPermissionRequest::RevokeOperatorPermissionRequest() : - RpcServiceRequest("adb", "2019-03-15", "RevokeOperatorPermission") -{ - setMethod(HttpRequest::Method::Post); -} - -RevokeOperatorPermissionRequest::~RevokeOperatorPermissionRequest() -{} - -long RevokeOperatorPermissionRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Adb::Model::RevokeOperatorPermissionRequest; + +RevokeOperatorPermissionRequest::RevokeOperatorPermissionRequest() + : RpcServiceRequest("adb", "2019-03-15", "RevokeOperatorPermission") { + setMethod(HttpRequest::Method::Post); } -void RevokeOperatorPermissionRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +RevokeOperatorPermissionRequest::~RevokeOperatorPermissionRequest() {} + +long RevokeOperatorPermissionRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string RevokeOperatorPermissionRequest::getAccessKeyId()const -{ - return accessKeyId_; +void RevokeOperatorPermissionRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void RevokeOperatorPermissionRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string RevokeOperatorPermissionRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string RevokeOperatorPermissionRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void RevokeOperatorPermissionRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void RevokeOperatorPermissionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string RevokeOperatorPermissionRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string RevokeOperatorPermissionRequest::getDBClusterId()const -{ - return dBClusterId_; +void RevokeOperatorPermissionRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void RevokeOperatorPermissionRequest::setDBClusterId(const std::string& dBClusterId) -{ - dBClusterId_ = dBClusterId; - setParameter("DBClusterId", dBClusterId); +std::string RevokeOperatorPermissionRequest::getDBClusterId() const { + return dBClusterId_; } -std::string RevokeOperatorPermissionRequest::getOwnerAccount()const -{ - return ownerAccount_; +void RevokeOperatorPermissionRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); } -void RevokeOperatorPermissionRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string RevokeOperatorPermissionRequest::getOwnerAccount() const { + return ownerAccount_; } -long RevokeOperatorPermissionRequest::getOwnerId()const -{ - return ownerId_; +void RevokeOperatorPermissionRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void RevokeOperatorPermissionRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long RevokeOperatorPermissionRequest::getOwnerId() const { + return ownerId_; +} + +void RevokeOperatorPermissionRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/adb/src/model/TagResourcesRequest.cc b/adb/src/model/TagResourcesRequest.cc index 7e8b31932..a8ee976f6 100644 --- a/adb/src/model/TagResourcesRequest.cc +++ b/adb/src/model/TagResourcesRequest.cc @@ -1,135 +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 - -using AlibabaCloud::Adb::Model::TagResourcesRequest; - -TagResourcesRequest::TagResourcesRequest() : - RpcServiceRequest("adb", "2019-03-15", "TagResources") -{ - setMethod(HttpRequest::Method::Post); -} - -TagResourcesRequest::~TagResourcesRequest() -{} - -long TagResourcesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Adb::Model::TagResourcesRequest; + +TagResourcesRequest::TagResourcesRequest() + : RpcServiceRequest("adb", "2019-03-15", "TagResources") { + setMethod(HttpRequest::Method::Post); } -void TagResourcesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +TagResourcesRequest::~TagResourcesRequest() {} + +long TagResourcesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string TagResourcesRequest::getAccessKeyId()const -{ - return accessKeyId_; +void TagResourcesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void TagResourcesRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string TagResourcesRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string TagResourcesRequest::getRegionId()const -{ - return regionId_; +void TagResourcesRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void TagResourcesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string TagResourcesRequest::getRegionId() const { + return regionId_; } -std::vector TagResourcesRequest::getTag()const -{ - return tag_; +void TagResourcesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void TagResourcesRequest::setTag(const std::vector& tag) -{ - tag_ = tag; - for(int dep1 = 0; dep1!= tag.size(); dep1++) { - auto tagObj = tag.at(dep1); - std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); - setParameter(tagObjStr + ".Value", tagObj.value); - setParameter(tagObjStr + ".Key", tagObj.key); - } +std::vector TagResourcesRequest::getTag() const { + return tag_; } -std::vector TagResourcesRequest::getResourceId()const -{ - return resourceId_; +void TagResourcesRequest::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); + } } -void TagResourcesRequest::setResourceId(const std::vector& resourceId) -{ - resourceId_ = resourceId; - for(int dep1 = 0; dep1!= resourceId.size(); dep1++) { - setParameter("ResourceId."+ std::to_string(dep1), resourceId.at(dep1)); - } +std::vector TagResourcesRequest::getResourceId() const { + return resourceId_; } -std::string TagResourcesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void TagResourcesRequest::setResourceId(const std::vector &resourceId) { + resourceId_ = resourceId; } -void TagResourcesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string TagResourcesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string TagResourcesRequest::getOwnerAccount()const -{ - return ownerAccount_; +void TagResourcesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void TagResourcesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string TagResourcesRequest::getOwnerAccount() const { + return ownerAccount_; } -long TagResourcesRequest::getOwnerId()const -{ - return ownerId_; +void TagResourcesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void TagResourcesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long TagResourcesRequest::getOwnerId() const { + return ownerId_; } -std::string TagResourcesRequest::getResourceType()const -{ - return resourceType_; +void TagResourcesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void TagResourcesRequest::setResourceType(const std::string& resourceType) -{ - resourceType_ = resourceType; - setParameter("ResourceType", resourceType); +std::string TagResourcesRequest::getResourceType() const { + return resourceType_; +} + +void TagResourcesRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); } diff --git a/adb/src/model/UnbindDBResourceGroupWithUserRequest.cc b/adb/src/model/UnbindDBResourceGroupWithUserRequest.cc new file mode 100644 index 000000000..54bb2978a --- /dev/null +++ b/adb/src/model/UnbindDBResourceGroupWithUserRequest.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::Adb::Model::UnbindDBResourceGroupWithUserRequest; + +UnbindDBResourceGroupWithUserRequest::UnbindDBResourceGroupWithUserRequest() + : RpcServiceRequest("adb", "2019-03-15", "UnbindDBResourceGroupWithUser") { + setMethod(HttpRequest::Method::Post); +} + +UnbindDBResourceGroupWithUserRequest::~UnbindDBResourceGroupWithUserRequest() {} + +long UnbindDBResourceGroupWithUserRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void UnbindDBResourceGroupWithUserRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string UnbindDBResourceGroupWithUserRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void UnbindDBResourceGroupWithUserRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string UnbindDBResourceGroupWithUserRequest::getGroupUser() const { + return groupUser_; +} + +void UnbindDBResourceGroupWithUserRequest::setGroupUser(const std::string &groupUser) { + groupUser_ = groupUser; + setParameter(std::string("GroupUser"), groupUser); +} + +std::string UnbindDBResourceGroupWithUserRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void UnbindDBResourceGroupWithUserRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string UnbindDBResourceGroupWithUserRequest::getDBClusterId() const { + return dBClusterId_; +} + +void UnbindDBResourceGroupWithUserRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string UnbindDBResourceGroupWithUserRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void UnbindDBResourceGroupWithUserRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long UnbindDBResourceGroupWithUserRequest::getOwnerId() const { + return ownerId_; +} + +void UnbindDBResourceGroupWithUserRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string UnbindDBResourceGroupWithUserRequest::getGroupName() const { + return groupName_; +} + +void UnbindDBResourceGroupWithUserRequest::setGroupName(const std::string &groupName) { + groupName_ = groupName; + setParameter(std::string("GroupName"), groupName); +} + diff --git a/adb/src/model/UnbindDBResourceGroupWithUserResult.cc b/adb/src/model/UnbindDBResourceGroupWithUserResult.cc new file mode 100644 index 000000000..74fadd7bb --- /dev/null +++ b/adb/src/model/UnbindDBResourceGroupWithUserResult.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::Adb; +using namespace AlibabaCloud::Adb::Model; + +UnbindDBResourceGroupWithUserResult::UnbindDBResourceGroupWithUserResult() : + ServiceResult() +{} + +UnbindDBResourceGroupWithUserResult::UnbindDBResourceGroupWithUserResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UnbindDBResourceGroupWithUserResult::~UnbindDBResourceGroupWithUserResult() +{} + +void UnbindDBResourceGroupWithUserResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/adb/src/model/UnbindDBResourcePoolWithUserRequest.cc b/adb/src/model/UnbindDBResourcePoolWithUserRequest.cc index f686dcdc3..c8d5601cb 100644 --- a/adb/src/model/UnbindDBResourcePoolWithUserRequest.cc +++ b/adb/src/model/UnbindDBResourcePoolWithUserRequest.cc @@ -1,117 +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::Adb::Model::UnbindDBResourcePoolWithUserRequest; - -UnbindDBResourcePoolWithUserRequest::UnbindDBResourcePoolWithUserRequest() : - RpcServiceRequest("adb", "2019-03-15", "UnbindDBResourcePoolWithUser") -{ - setMethod(HttpRequest::Method::Post); -} - -UnbindDBResourcePoolWithUserRequest::~UnbindDBResourcePoolWithUserRequest() -{} - -std::string UnbindDBResourcePoolWithUserRequest::getPoolName()const -{ - return poolName_; + */ + +#include + +using AlibabaCloud::Adb::Model::UnbindDBResourcePoolWithUserRequest; + +UnbindDBResourcePoolWithUserRequest::UnbindDBResourcePoolWithUserRequest() + : RpcServiceRequest("adb", "2019-03-15", "UnbindDBResourcePoolWithUser") { + setMethod(HttpRequest::Method::Post); } -void UnbindDBResourcePoolWithUserRequest::setPoolName(const std::string& poolName) -{ - poolName_ = poolName; - setParameter("PoolName", poolName); +UnbindDBResourcePoolWithUserRequest::~UnbindDBResourcePoolWithUserRequest() {} + +std::string UnbindDBResourcePoolWithUserRequest::getPoolName() const { + return poolName_; } -long UnbindDBResourcePoolWithUserRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void UnbindDBResourcePoolWithUserRequest::setPoolName(const std::string &poolName) { + poolName_ = poolName; + setParameter(std::string("PoolName"), poolName); } -void UnbindDBResourcePoolWithUserRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long UnbindDBResourcePoolWithUserRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string UnbindDBResourcePoolWithUserRequest::getPoolUser()const -{ - return poolUser_; +void UnbindDBResourcePoolWithUserRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void UnbindDBResourcePoolWithUserRequest::setPoolUser(const std::string& poolUser) -{ - poolUser_ = poolUser; - setParameter("PoolUser", poolUser); +std::string UnbindDBResourcePoolWithUserRequest::getPoolUser() const { + return poolUser_; } -std::string UnbindDBResourcePoolWithUserRequest::getAccessKeyId()const -{ - return accessKeyId_; +void UnbindDBResourcePoolWithUserRequest::setPoolUser(const std::string &poolUser) { + poolUser_ = poolUser; + setParameter(std::string("PoolUser"), poolUser); } -void UnbindDBResourcePoolWithUserRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string UnbindDBResourcePoolWithUserRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string UnbindDBResourcePoolWithUserRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void UnbindDBResourcePoolWithUserRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void UnbindDBResourcePoolWithUserRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string UnbindDBResourcePoolWithUserRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string UnbindDBResourcePoolWithUserRequest::getDBClusterId()const -{ - return dBClusterId_; +void UnbindDBResourcePoolWithUserRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void UnbindDBResourcePoolWithUserRequest::setDBClusterId(const std::string& dBClusterId) -{ - dBClusterId_ = dBClusterId; - setParameter("DBClusterId", dBClusterId); +std::string UnbindDBResourcePoolWithUserRequest::getDBClusterId() const { + return dBClusterId_; } -std::string UnbindDBResourcePoolWithUserRequest::getOwnerAccount()const -{ - return ownerAccount_; +void UnbindDBResourcePoolWithUserRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); } -void UnbindDBResourcePoolWithUserRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string UnbindDBResourcePoolWithUserRequest::getOwnerAccount() const { + return ownerAccount_; } -long UnbindDBResourcePoolWithUserRequest::getOwnerId()const -{ - return ownerId_; +void UnbindDBResourcePoolWithUserRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void UnbindDBResourcePoolWithUserRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long UnbindDBResourcePoolWithUserRequest::getOwnerId() const { + return ownerId_; +} + +void UnbindDBResourcePoolWithUserRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/adb/src/model/UntagResourcesRequest.cc b/adb/src/model/UntagResourcesRequest.cc index 18ec4a5c7..b0189b799 100644 --- a/adb/src/model/UntagResourcesRequest.cc +++ b/adb/src/model/UntagResourcesRequest.cc @@ -1,143 +1,115 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::Adb::Model::UntagResourcesRequest; - -UntagResourcesRequest::UntagResourcesRequest() : - RpcServiceRequest("adb", "2019-03-15", "UntagResources") -{ - setMethod(HttpRequest::Method::Post); -} - -UntagResourcesRequest::~UntagResourcesRequest() -{} - -long UntagResourcesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Adb::Model::UntagResourcesRequest; + +UntagResourcesRequest::UntagResourcesRequest() + : RpcServiceRequest("adb", "2019-03-15", "UntagResources") { + setMethod(HttpRequest::Method::Post); } -void UntagResourcesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +UntagResourcesRequest::~UntagResourcesRequest() {} + +long UntagResourcesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string UntagResourcesRequest::getAccessKeyId()const -{ - return accessKeyId_; +void UntagResourcesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void UntagResourcesRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string UntagResourcesRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string UntagResourcesRequest::getRegionId()const -{ - return regionId_; +void UntagResourcesRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void UntagResourcesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string UntagResourcesRequest::getRegionId() const { + return regionId_; } -bool UntagResourcesRequest::getAll()const -{ - return all_; +void UntagResourcesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void UntagResourcesRequest::setAll(bool all) -{ - all_ = all; - setParameter("All", all ? "true" : "false"); +bool UntagResourcesRequest::getAll() const { + return all_; } -std::vector UntagResourcesRequest::getResourceId()const -{ - return resourceId_; +void UntagResourcesRequest::setAll(bool all) { + all_ = all; + setParameter(std::string("All"), all ? "true" : "false"); } -void UntagResourcesRequest::setResourceId(const std::vector& resourceId) -{ - resourceId_ = resourceId; - for(int dep1 = 0; dep1!= resourceId.size(); dep1++) { - setParameter("ResourceId."+ std::to_string(dep1), resourceId.at(dep1)); - } +std::vector UntagResourcesRequest::getResourceId() const { + return resourceId_; } -std::string UntagResourcesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void UntagResourcesRequest::setResourceId(const std::vector &resourceId) { + resourceId_ = resourceId; } -void UntagResourcesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string UntagResourcesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string UntagResourcesRequest::getOwnerAccount()const -{ - return ownerAccount_; +void UntagResourcesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void UntagResourcesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string UntagResourcesRequest::getOwnerAccount() const { + return ownerAccount_; } -long UntagResourcesRequest::getOwnerId()const -{ - return ownerId_; +void UntagResourcesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void UntagResourcesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long UntagResourcesRequest::getOwnerId() const { + return ownerId_; } -std::string UntagResourcesRequest::getResourceType()const -{ - return resourceType_; +void UntagResourcesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void UntagResourcesRequest::setResourceType(const std::string& resourceType) -{ - resourceType_ = resourceType; - setParameter("ResourceType", resourceType); +std::string UntagResourcesRequest::getResourceType() const { + return resourceType_; } -std::vector UntagResourcesRequest::getTagKey()const -{ - return tagKey_; +void UntagResourcesRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); } -void UntagResourcesRequest::setTagKey(const std::vector& tagKey) -{ - tagKey_ = tagKey; - for(int dep1 = 0; dep1!= tagKey.size(); dep1++) { - setParameter("TagKey."+ std::to_string(dep1), tagKey.at(dep1)); - } +std::vector UntagResourcesRequest::getTagKey() const { + return tagKey_; +} + +void UntagResourcesRequest::setTagKey(const std::vector &tagKey) { + tagKey_ = tagKey; }