From 8ad84be9ba529726a1ecac732dfa4b96ae5a622d Mon Sep 17 00:00:00 2001 From: sdk-team Date: Wed, 8 Mar 2023 08:23:29 +0000 Subject: [PATCH] Modify Output Field. --- VERSION | 2 +- adb/CMakeLists.txt | 416 +-- adb/include/alibabacloud/adb/AdbClient.h | 832 +++--- .../AllocateClusterPublicConnectionRequest.h | 18 +- ...eSchemasRequest.h => BindAccountRequest.h} | 36 +- ...illProcessResult.h => BindAccountResult.h} | 14 +- .../BindDBResourceGroupWithUserRequest.h | 63 - .../model/BindDBResourcePoolWithUserRequest.h | 63 - ...ntsRequest.h => CheckBindRamUserRequest.h} | 33 +- ...ePoolResult.h => CheckBindRamUserResult.h} | 16 +- .../adb/model/CreateAccountRequest.h | 24 +- .../adb/model/CreateAccountResult.h | 4 - .../adb/model/CreateDBClusterRequest.h | 81 +- .../adb/model/CreateDBResourceGroupRequest.h | 33 +- .../adb/model/CreateDBResourcePoolRequest.h | 66 - .../adb/model/CreateElasticPlanRequest.h | 84 - .../adb/model/CreateOssSubDirectoryRequest.h | 45 + .../adb/model/CreateOssSubDirectoryResult.h | 64 + .../adb/model/CreateSparkTemplateRequest.h | 54 + ...erResult.h => CreateSparkTemplateResult.h} | 20 +- .../adb/model/DeleteAccountRequest.h | 21 +- .../adb/model/DeleteDBClusterRequest.h | 18 +- .../adb/model/DeleteDBClusterResult.h | 2 - .../adb/model/DeleteDBResourceGroupRequest.h | 18 +- .../adb/model/DeleteDBResourcePoolRequest.h | 60 - .../adb/model/DeleteElasticPlanRequest.h | 60 - .../adb/model/DeleteProcessInstanceRequest.h | 51 + ...Result.h => DeleteProcessInstanceResult.h} | 20 +- .../model/DeleteSparkTemplateFileRequest.h | 45 + ...sult.h => DeleteSparkTemplateFileResult.h} | 20 +- .../adb/model/DeleteSparkTemplateRequest.h | 45 + .../adb/model/DeleteSparkTemplateResult.h | 55 + .../adb/model/DescribeAccountsRequest.h | 24 +- .../adb/model/DescribeAccountsResult.h | 1 + .../model/DescribeAdbMySqlColumnsRequest.h | 51 + ...sult.h => DescribeAdbMySqlColumnsResult.h} | 40 +- .../model/DescribeAdbMySqlSchemasRequest.h | 45 + .../adb/model/DescribeAdbMySqlSchemasResult.h | 55 + ...uest.h => DescribeAdbMySqlTablesRequest.h} | 33 +- .../adb/model/DescribeAdbMySqlTablesResult.h | 57 + .../adb/model/DescribeAllDataSourceResult.h | 76 - ...quest.h => DescribeApsActionLogsRequest.h} | 63 +- ...Result.h => DescribeApsActionLogsResult.h} | 32 +- .../model/DescribeApsResourceGroupsRequest.h | 42 + .../model/DescribeApsResourceGroupsResult.h | 71 + .../model/DescribeAuditLogRecordsRequest.h | 3 + .../model/DescribeAutoRenewAttributeRequest.h | 69 - .../model/DescribeAvailableResourceRequest.h | 66 - .../model/DescribeAvailableResourceResult.h | 110 - ...> DescribeClusterAccessWhiteListRequest.h} | 21 +- ...=> DescribeClusterAccessWhiteListResult.h} | 14 +- ...uest.h => DescribeClusterNetInfoRequest.h} | 30 +- ...esult.h => DescribeClusterNetInfoResult.h} | 14 +- .../DescribeConnectionCountRecordsResult.h | 67 - .../DescribeDBClusterAccessWhiteListRequest.h | 57 - .../model/DescribeDBClusterAttributeRequest.h | 12 - .../model/DescribeDBClusterAttributeResult.h | 22 +- ...=> DescribeDBClusterHealthStatusRequest.h} | 18 +- .../DescribeDBClusterHealthStatusResult.h | 81 + .../DescribeDBClusterPerformanceRequest.h | 30 +- .../DescribeDBClusterPerformanceResult.h | 1 + ...eDBClusterResourcePoolPerformanceRequest.h | 69 - ...beDBClusterResourcePoolPerformanceResult.h | 73 - .../adb/model/DescribeDBClustersRequest.h | 19 - .../adb/model/DescribeDBClustersResult.h | 17 +- .../model/DescribeDBResourceGroupRequest.h | 18 +- .../adb/model/DescribeDBResourceGroupResult.h | 5 +- .../adb/model/DescribeDBResourcePoolRequest.h | 60 - .../model/DescribeDiagnosisRecordsRequest.h | 6 +- ...st.h => DescribeDiagnosisSQLInfoRequest.h} | 42 +- ...ult.h => DescribeDiagnosisSQLInfoResult.h} | 35 +- .../model/DescribeElasticDailyPlanRequest.h | 69 - .../model/DescribeElasticDailyPlanResult.h | 63 - .../adb/model/DescribeElasticPlanRequest.h | 66 - .../adb/model/DescribeElasticPlanResult.h | 63 - .../adb/model/DescribeInclinedTablesRequest.h | 69 - .../model/DescribeMaintenanceActionRequest.h | 72 - .../model/DescribeMaintenanceActionResult.h | 74 - .../model/DescribeOperatorPermissionResult.h | 57 - .../model/DescribePatternPerformanceRequest.h | 9 +- .../adb/model/DescribeProcessListRequest.h | 78 - .../adb/model/DescribeProcessListResult.h | 69 - .../adb/model/DescribeSQLPlanRequest.h | 60 - .../adb/model/DescribeSQLPlanResult.h | 92 - .../adb/model/DescribeSQLPlanTaskRequest.h | 63 - .../adb/model/DescribeSlowLogRecordsRequest.h | 84 - .../adb/model/DescribeSlowLogRecordsResult.h | 80 - .../adb/model/DescribeSlowLogTrendRequest.h | 66 - .../adb/model/DescribeSparkCodeLogRequest.h | 48 + ...lResult.h => DescribeSparkCodeLogResult.h} | 20 +- .../model/DescribeSparkCodeOutputRequest.h | 48 + .../adb/model/DescribeSparkCodeOutputResult.h | 55 + .../adb/model/DescribeSparkCodeWebUiRequest.h | 48 + ...esult.h => DescribeSparkCodeWebUiResult.h} | 26 +- .../DescribeTablePartitionDiagnoseRequest.h | 66 - .../DescribeTablePartitionDiagnoseResult.h | 70 - .../model/DescribeTableStatisticsRequest.h | 66 - .../adb/model/DescribeTableStatisticsResult.h | 70 - .../adb/model/DescribeTaskInfoRequest.h | 60 - .../adb/model/GetDatabaseObjectsRequest.h | 60 + ...endResult.h => GetDatabaseObjectsResult.h} | 48 +- .../GetLakehouseValidResourceGroupsRequest.h | 42 + .../GetLakehouseValidResourceGroupsResult.h | 71 + .../adb/model/GetSparkAppAttemptLogRequest.h | 45 + .../adb/model/GetSparkAppAttemptLogResult.h | 57 + .../adb/model/GetSparkAppInfoRequest.h | 42 + .../adb/model/GetSparkAppInfoResult.h | 75 + .../adb/model/GetSparkAppLogRequest.h | 45 + ...eTablesResult.h => GetSparkAppLogResult.h} | 24 +- .../adb/model/GetSparkAppMetricsRequest.h | 42 + ...ortResult.h => GetSparkAppMetricsResult.h} | 34 +- .../adb/model/GetSparkAppStateRequest.h | 42 + ...kInfoResult.h => GetSparkAppStateResult.h} | 30 +- .../model/GetSparkAppWebUiAddressRequest.h | 42 + .../adb/model/GetSparkAppWebUiAddressResult.h | 58 + .../adb/model/GetSparkConfigLogPathRequest.h | 42 + ...Result.h => GetSparkConfigLogPathResult.h} | 29 +- .../adb/model/GetSparkLogAnalyzeTaskRequest.h | 42 + .../adb/model/GetSparkLogAnalyzeTaskResult.h | 70 + .../adb/model/GetSparkSQLEngineStateRequest.h | 45 + .../adb/model/GetSparkSQLEngineStateResult.h | 62 + .../GetSparkTemplateFileContentRequest.h | 45 + ....h => GetSparkTemplateFileContentResult.h} | 30 +- ....h => GetSparkTemplateFolderTreeRequest.h} | 27 +- ...t.h => GetSparkTemplateFolderTreeResult.h} | 16 +- ...st.h => GetSparkTemplateFullTreeRequest.h} | 27 +- ...ult.h => GetSparkTemplateFullTreeResult.h} | 16 +- ...umnsRequest.h => GetTableColumnsRequest.h} | 45 +- .../adb/model/GetTableColumnsResult.h | 90 + ...leDetailRequest.h => GetTableDDLRequest.h} | 36 +- ...lasticPlanResult.h => GetTableDDLResult.h} | 16 +- .../adb/model/GetTableObjectsRequest.h | 69 + .../adb/model/GetTableObjectsResult.h | 76 + .../alibabacloud/adb/model/GetTableRequest.h | 51 + .../alibabacloud/adb/model/GetTableResult.h | 319 +++ ...ibeTablesRequest.h => GetViewDDLRequest.h} | 33 +- ...ElasticPlanResult.h => GetViewDDLResult.h} | 16 +- ...ourceRequest.h => GetViewObjectsRequest.h} | 51 +- .../adb/model/GetViewObjectsResult.h | 76 + .../model/GrantOperatorPermissionRequest.h | 63 - ...sticPlanResult.h => KillSparkAppRequest.h} | 69 +- ...beSchemasResult.h => KillSparkAppResult.h} | 25 +- .../model/KillSparkLogAnalyzeTaskRequest.h | 42 + .../adb/model/KillSparkLogAnalyzeTaskResult.h | 70 + .../adb/model/KillSparkSQLEngineRequest.h | 45 + ...oolResult.h => KillSparkSQLEngineResult.h} | 16 +- .../adb/model/ListSparkAppAttemptsRequest.h | 54 + .../adb/model/ListSparkAppAttemptsResult.h | 80 + .../adb/model/ListSparkAppsRequest.h | 57 + .../adb/model/ListSparkAppsResult.h | 88 + .../model/ListSparkLogAnalyzeTasksRequest.h | 48 + .../model/ListSparkLogAnalyzeTasksResult.h | 77 + .../model/ListSparkTemplateFileIdsRequest.h | 42 + ...ult.h => ListSparkTemplateFileIdsResult.h} | 16 +- .../adb/model/ListTagResourcesRequest.h | 73 - .../adb/model/ListTagResourcesResult.h | 60 - .../model/ModifyAccountDescriptionRequest.h | 18 +- .../model/ModifyAutoRenewAttributeRequest.h | 69 - ... => ModifyClusterAccessWhiteListRequest.h} | 24 +- ...h => ModifyClusterAccessWhiteListResult.h} | 14 +- .../ModifyClusterConnectionStringRequest.h | 12 - .../model/ModifyDBClusterDescriptionRequest.h | 18 +- .../ModifyDBClusterMaintainTimeRequest.h | 18 +- .../adb/model/ModifyDBClusterRequest.h | 30 - .../ModifyDBClusterResourceGroupRequest.h | 60 - .../ModifyDBClusterResourceGroupResult.h | 49 - .../adb/model/ModifyDBResourceGroupRequest.h | 33 +- .../adb/model/ModifyDBResourcePoolRequest.h | 66 - .../adb/model/ModifyElasticPlanRequest.h | 84 - .../adb/model/ModifyLogBackupPolicyRequest.h | 63 - .../model/ModifyMaintenanceActionRequest.h | 63 - .../adb/model/PreloadSparkAppMetricsRequest.h | 42 + .../adb/model/PreloadSparkAppMetricsResult.h | 64 + .../ReleaseClusterPublicConnectionRequest.h | 18 +- .../adb/model/ResetAccountPasswordRequest.h | 30 +- .../adb/model/ResetAccountPasswordResult.h | 4 - .../adb/model/SetSparkAppLogRootPathRequest.h | 48 + ...esult.h => SetSparkAppLogRootPathResult.h} | 31 +- .../adb/model/StartSparkSQLEngineRequest.h | 60 + ...tsResult.h => StartSparkSQLEngineResult.h} | 24 +- .../adb/model/SubmitSparkAppRequest.h | 63 + ...sourcesResult.h => SubmitSparkAppResult.h} | 23 +- .../model/SubmitSparkLogAnalyzeTaskRequest.h | 42 + ...lt.h => SubmitSparkLogAnalyzeTaskResult.h} | 46 +- .../adb/model/TagResourcesRequest.h | 70 - .../adb/model/UnbindAccountRequest.h | 48 + ...esourcesResult.h => UnbindAccountResult.h} | 14 +- .../UnbindDBResourceGroupWithUserRequest.h | 63 - .../UnbindDBResourceGroupWithUserResult.h | 49 - .../UnbindDBResourcePoolWithUserRequest.h | 63 - .../UnbindDBResourcePoolWithUserResult.h | 49 - .../adb/model/UntagResourcesRequest.h | 69 - .../model/UpdateSparkTemplateFileRequest.h | 51 + ...sult.h => UpdateSparkTemplateFileResult.h} | 22 +- adb/src/AdbClient.cc | 2502 +++++++++-------- .../AllocateClusterPublicConnectionRequest.cc | 48 +- adb/src/model/BindAccountRequest.cc | 63 + ...lProcessResult.cc => BindAccountResult.cc} | 10 +- .../BindDBResourceGroupWithUserRequest.cc | 99 - .../BindDBResourcePoolWithUserRequest.cc | 99 - adb/src/model/CheckBindRamUserRequest.cc | 54 + ...oolResult.cc => CheckBindRamUserResult.cc} | 17 +- adb/src/model/CreateAccountRequest.cc | 66 +- adb/src/model/CreateAccountResult.cc | 14 - adb/src/model/CreateDBClusterRequest.cc | 221 +- adb/src/model/CreateDBResourceGroupRequest.cc | 77 +- adb/src/model/CreateDBResourcePoolRequest.cc | 108 - adb/src/model/CreateElasticPlanRequest.cc | 162 -- adb/src/model/CreateOssSubDirectoryRequest.cc | 45 + adb/src/model/CreateOssSubDirectoryResult.cc | 79 + adb/src/model/CreateSparkTemplateRequest.cc | 72 + adb/src/model/CreateSparkTemplateResult.cc | 52 + adb/src/model/DeleteAccountRequest.cc | 57 +- adb/src/model/DeleteDBClusterRequest.cc | 48 +- adb/src/model/DeleteDBClusterResult.cc | 7 - adb/src/model/DeleteDBResourceGroupRequest.cc | 56 +- adb/src/model/DeleteDBResourcePoolRequest.cc | 90 - adb/src/model/DeleteElasticPlanRequest.cc | 90 - adb/src/model/DeleteProcessInstanceRequest.cc | 63 + ...sult.cc => DeleteProcessInstanceResult.cc} | 40 +- .../model/DeleteSparkTemplateFileRequest.cc | 45 + ...lt.cc => DeleteSparkTemplateFileResult.cc} | 19 +- adb/src/model/DeleteSparkTemplateRequest.cc | 45 + adb/src/model/DeleteSparkTemplateResult.cc | 52 + adb/src/model/DescribeAccountsRequest.cc | 58 +- adb/src/model/DescribeAccountsResult.cc | 6 +- .../model/DescribeAdbMySqlColumnsRequest.cc | 63 + .../model/DescribeAdbMySqlColumnsResult.cc | 96 + .../model/DescribeAdbMySqlSchemasRequest.cc | 45 + .../model/DescribeAdbMySqlSchemasResult.cc | 66 + .../model/DescribeAdbMySqlTablesRequest.cc | 54 + adb/src/model/DescribeAdbMySqlTablesResult.cc | 73 + adb/src/model/DescribeAllAccountsRequest.cc | 81 - adb/src/model/DescribeAllDataSourceRequest.cc | 99 - adb/src/model/DescribeAllDataSourceResult.cc | 101 - adb/src/model/DescribeApsActionLogsRequest.cc | 162 ++ adb/src/model/DescribeApsActionLogsResult.cc | 98 + .../model/DescribeApsResourceGroupsRequest.cc | 36 + .../model/DescribeApsResourceGroupsResult.cc | 92 + .../model/DescribeAuditLogConfigRequest.cc | 2 +- .../model/DescribeAuditLogRecordsRequest.cc | 11 +- .../DescribeAutoRenewAttributeRequest.cc | 117 - .../model/DescribeAutoRenewAttributeResult.cc | 88 - .../model/DescribeAvailableResourceRequest.cc | 108 - .../model/DescribeAvailableResourceResult.cc | 140 - adb/src/model/DescribeBackupPolicyRequest.cc | 2 +- adb/src/model/DescribeBackupsRequest.cc | 2 +- .../DescribeClusterAccessWhiteListRequest.cc | 54 + ...> DescribeClusterAccessWhiteListResult.cc} | 12 +- .../model/DescribeClusterNetInfoRequest.cc | 45 + ...ult.cc => DescribeClusterNetInfoResult.cc} | 14 +- adb/src/model/DescribeColumnsRequest.cc | 99 - adb/src/model/DescribeColumnsResult.cc | 69 - .../DescribeConnectionCountRecordsRequest.cc | 81 - .../DescribeConnectionCountRecordsResult.cc | 88 - ...DescribeDBClusterAccessWhiteListRequest.cc | 81 - .../DescribeDBClusterAttributeRequest.cc | 38 +- .../model/DescribeDBClusterAttributeResult.cc | 42 +- .../model/DescribeDBClusterForecastRequest.cc | 2 +- .../DescribeDBClusterHealthReportResult.cc | 63 - ...> DescribeDBClusterHealthStatusRequest.cc} | 28 +- .../DescribeDBClusterHealthStatusResult.cc | 99 + .../model/DescribeDBClusterNetInfoRequest.cc | 81 - .../DescribeDBClusterPerformanceRequest.cc | 84 +- .../DescribeDBClusterPerformanceResult.cc | 2 + ...DBClusterResourcePoolPerformanceRequest.cc | 117 - ...eDBClusterResourcePoolPerformanceResult.cc | 99 - adb/src/model/DescribeDBClustersRequest.cc | 52 +- adb/src/model/DescribeDBClustersResult.cc | 32 +- .../model/DescribeDBResourceGroupRequest.cc | 56 +- .../model/DescribeDBResourceGroupResult.cc | 18 +- .../model/DescribeDBResourcePoolRequest.cc | 90 - adb/src/model/DescribeDBResourcePoolResult.cc | 67 - .../DescribeDiagnosisDimensionsRequest.cc | 2 +- .../model/DescribeDiagnosisRecordsRequest.cc | 8 +- .../model/DescribeDiagnosisSQLInfoRequest.cc | 90 + .../model/DescribeDiagnosisSQLInfoResult.cc | 80 + .../model/DescribeDownloadRecordsRequest.cc | 2 +- .../model/DescribeElasticDailyPlanRequest.cc | 117 - .../model/DescribeElasticDailyPlanResult.cc | 73 - adb/src/model/DescribeElasticPlanRequest.cc | 108 - adb/src/model/DescribeElasticPlanResult.cc | 73 - .../model/DescribeInclinedTablesRequest.cc | 117 - adb/src/model/DescribeInclinedTablesResult.cc | 86 - .../model/DescribeLoadTasksRecordsRequest.cc | 153 - .../model/DescribeLoadTasksRecordsResult.cc | 99 - .../model/DescribeMaintenanceActionRequest.cc | 126 - .../model/DescribeMaintenanceActionResult.cc | 104 - .../DescribeOperatorPermissionRequest.cc | 81 - .../model/DescribeOperatorPermissionResult.cc | 72 - .../DescribePatternPerformanceRequest.cc | 29 +- adb/src/model/DescribeProcessListRequest.cc | 144 - adb/src/model/DescribeProcessListResult.cc | 94 - adb/src/model/DescribeRegionsRequest.cc | 2 +- .../DescribeSQLPatternAttributeRequest.cc | 2 +- adb/src/model/DescribeSQLPatternsRequest.cc | 2 +- adb/src/model/DescribeSQLPlanRequest.cc | 90 - adb/src/model/DescribeSQLPlanResult.cc | 130 - adb/src/model/DescribeSQLPlanTaskRequest.cc | 99 - adb/src/model/DescribeSQLPlanTaskResult.cc | 79 - adb/src/model/DescribeSchemasRequest.cc | 81 - .../model/DescribeSlowLogRecordsRequest.cc | 162 -- adb/src/model/DescribeSlowLogRecordsResult.cc | 119 - adb/src/model/DescribeSlowLogTrendRequest.cc | 108 - adb/src/model/DescribeSlowLogTrendResult.cc | 90 - adb/src/model/DescribeSparkCodeLogRequest.cc | 54 + ...esult.cc => DescribeSparkCodeLogResult.cc} | 31 +- .../model/DescribeSparkCodeOutputRequest.cc | 54 + .../model/DescribeSparkCodeOutputResult.cc | 65 + .../model/DescribeSparkCodeWebUiRequest.cc | 54 + ...ult.cc => DescribeSparkCodeWebUiResult.cc} | 34 +- adb/src/model/DescribeSqlPatternRequest.cc | 2 +- .../model/DescribeTableAccessCountRequest.cc | 2 +- adb/src/model/DescribeTableDetailRequest.cc | 99 - adb/src/model/DescribeTableDetailResult.cc | 66 - .../DescribeTablePartitionDiagnoseRequest.cc | 108 - .../DescribeTablePartitionDiagnoseResult.cc | 105 - .../model/DescribeTableStatisticsRequest.cc | 108 - .../model/DescribeTableStatisticsResult.cc | 99 - adb/src/model/DescribeTablesRequest.cc | 90 - adb/src/model/DescribeTablesResult.cc | 61 - adb/src/model/DescribeTaskInfoRequest.cc | 90 - adb/src/model/DescribeTaskInfoResult.cc | 60 - .../model/DownloadDiagnosisRecordsRequest.cc | 2 +- adb/src/model/GetDatabaseObjectsRequest.cc | 90 + adb/src/model/GetDatabaseObjectsResult.cc | 93 + .../GetLakehouseValidResourceGroupsRequest.cc | 36 + .../GetLakehouseValidResourceGroupsResult.cc | 92 + adb/src/model/GetSparkAppAttemptLogRequest.cc | 45 + ...sult.cc => GetSparkAppAttemptLogResult.cc} | 22 +- ...lanResult.cc => GetSparkAppInfoRequest.cc} | 58 +- adb/src/model/GetSparkAppInfoResult.cc | 85 + adb/src/model/GetSparkAppLogRequest.cc | 45 + ...urcesResult.cc => GetSparkAppLogResult.cc} | 22 +- adb/src/model/GetSparkAppMetricsRequest.cc | 36 + adb/src/model/GetSparkAppMetricsResult.cc | 63 + adb/src/model/GetSparkAppStateRequest.cc | 36 + adb/src/model/GetSparkAppStateResult.cc | 60 + .../model/GetSparkAppWebUiAddressRequest.cc | 36 + .../model/GetSparkAppWebUiAddressResult.cc | 58 + adb/src/model/GetSparkConfigLogPathRequest.cc | 36 + adb/src/model/GetSparkConfigLogPathResult.cc | 60 + .../model/GetSparkLogAnalyzeTaskRequest.cc | 36 + adb/src/model/GetSparkLogAnalyzeTaskResult.cc | 75 + .../model/GetSparkSQLEngineStateRequest.cc | 45 + adb/src/model/GetSparkSQLEngineStateResult.cc | 66 + .../GetSparkTemplateFileContentRequest.cc | 45 + .../GetSparkTemplateFileContentResult.cc | 60 + .../GetSparkTemplateFolderTreeRequest.cc | 36 + ...cc => GetSparkTemplateFolderTreeResult.cc} | 17 +- .../model/GetSparkTemplateFullTreeRequest.cc | 36 + ...t.cc => GetSparkTemplateFullTreeResult.cc} | 17 +- adb/src/model/GetTableColumnsRequest.cc | 90 + adb/src/model/GetTableColumnsResult.cc | 122 + adb/src/model/GetTableDDLRequest.cc | 63 + ...ttributeResult.cc => GetTableDDLResult.cc} | 17 +- adb/src/model/GetTableObjectsRequest.cc | 117 + adb/src/model/GetTableObjectsResult.cc | 101 + adb/src/model/GetTableRequest.cc | 63 + adb/src/model/GetTableResult.cc | 557 ++++ adb/src/model/GetViewDDLRequest.cc | 63 + ...ermissionResult.cc => GetViewDDLResult.cc} | 17 +- adb/src/model/GetViewObjectsRequest.cc | 108 + adb/src/model/GetViewObjectsResult.cc | 101 + .../model/GrantOperatorPermissionRequest.cc | 99 - adb/src/model/KillProcessRequest.cc | 90 - adb/src/model/KillSparkAppRequest.cc | 36 + ...ccountsResult.cc => KillSparkAppResult.cc} | 33 +- .../model/KillSparkLogAnalyzeTaskRequest.cc | 36 + .../model/KillSparkLogAnalyzeTaskResult.cc | 75 + adb/src/model/KillSparkSQLEngineRequest.cc | 45 + ...nResult.cc => KillSparkSQLEngineResult.cc} | 17 +- adb/src/model/ListSparkAppAttemptsRequest.cc | 72 + adb/src/model/ListSparkAppAttemptsResult.cc | 93 + adb/src/model/ListSparkAppsRequest.cc | 81 + adb/src/model/ListSparkAppsResult.cc | 118 + .../model/ListSparkLogAnalyzeTasksRequest.cc | 54 + .../model/ListSparkLogAnalyzeTasksResult.cc | 87 + .../model/ListSparkTemplateFileIdsRequest.cc | 36 + .../model/ListSparkTemplateFileIdsResult.cc | 52 + adb/src/model/ListTagResourcesRequest.cc | 121 - adb/src/model/ListTagResourcesResult.cc | 70 - .../model/ModifyAccountDescriptionRequest.cc | 48 +- adb/src/model/ModifyAuditLogConfigRequest.cc | 2 +- .../model/ModifyAutoRenewAttributeRequest.cc | 117 - adb/src/model/ModifyBackupPolicyRequest.cc | 2 +- .../ModifyClusterAccessWhiteListRequest.cc | 81 + ... => ModifyClusterAccessWhiteListResult.cc} | 14 +- .../ModifyClusterConnectionStringRequest.cc | 38 +- .../ModifyDBClusterAccessWhiteListRequest.cc | 117 - .../ModifyDBClusterDescriptionRequest.cc | 48 +- .../ModifyDBClusterMaintainTimeRequest.cc | 48 +- .../model/ModifyDBClusterPayTypeRequest.cc | 63 - adb/src/model/ModifyDBClusterRequest.cc | 92 +- .../ModifyDBClusterResourceGroupRequest.cc | 90 - .../ModifyDBClusterResourceGroupResult.cc | 44 - adb/src/model/ModifyDBResourceGroupRequest.cc | 77 +- adb/src/model/ModifyDBResourcePoolRequest.cc | 108 - adb/src/model/ModifyDBResourcePoolResult.cc | 44 - adb/src/model/ModifyElasticPlanRequest.cc | 162 -- adb/src/model/ModifyLogBackupPolicyRequest.cc | 99 - .../model/ModifyMaintenanceActionRequest.cc | 99 - ...lt.cc => PreloadSparkAppMetricsRequest.cc} | 58 +- adb/src/model/PreloadSparkAppMetricsResult.cc | 63 + .../ReleaseClusterPublicConnectionRequest.cc | 48 +- adb/src/model/ResetAccountPasswordRequest.cc | 76 +- adb/src/model/ResetAccountPasswordResult.cc | 14 - .../model/RevokeOperatorPermissionRequest.cc | 81 - .../model/SetSparkAppLogRootPathRequest.cc | 54 + adb/src/model/SetSparkAppLogRootPathResult.cc | 60 + adb/src/model/StartSparkSQLEngineRequest.cc | 90 + adb/src/model/StartSparkSQLEngineResult.cc | 56 + adb/src/model/SubmitSparkAppRequest.cc | 99 + adb/src/model/SubmitSparkAppResult.cc | 58 + .../model/SubmitSparkLogAnalyzeTaskRequest.cc | 36 + .../model/SubmitSparkLogAnalyzeTaskResult.cc | 75 + adb/src/model/TagResourcesRequest.cc | 112 - adb/src/model/UnbindAccountRequest.cc | 54 + ...ourcesResult.cc => UnbindAccountResult.cc} | 10 +- .../UnbindDBResourceGroupWithUserRequest.cc | 99 - .../UnbindDBResourceGroupWithUserResult.cc | 44 - .../UnbindDBResourcePoolWithUserRequest.cc | 99 - .../UnbindDBResourcePoolWithUserResult.cc | 44 - adb/src/model/UntagResourcesRequest.cc | 115 - .../model/UpdateSparkTemplateFileRequest.cc | 63 + ...lt.cc => UpdateSparkTemplateFileResult.cc} | 18 +- 426 files changed, 13137 insertions(+), 15409 deletions(-) rename adb/include/alibabacloud/adb/model/{DescribeSchemasRequest.h => BindAccountRequest.h} (58%) rename adb/include/alibabacloud/adb/model/{KillProcessResult.h => BindAccountResult.h} (74%) delete mode 100644 adb/include/alibabacloud/adb/model/BindDBResourceGroupWithUserRequest.h delete mode 100644 adb/include/alibabacloud/adb/model/BindDBResourcePoolWithUserRequest.h rename adb/include/alibabacloud/adb/model/{DescribeAllAccountsRequest.h => CheckBindRamUserRequest.h} (57%) rename adb/include/alibabacloud/adb/model/{CreateDBResourcePoolResult.h => CheckBindRamUserResult.h} (68%) delete mode 100644 adb/include/alibabacloud/adb/model/CreateDBResourcePoolRequest.h delete mode 100644 adb/include/alibabacloud/adb/model/CreateElasticPlanRequest.h create mode 100644 adb/include/alibabacloud/adb/model/CreateOssSubDirectoryRequest.h create mode 100644 adb/include/alibabacloud/adb/model/CreateOssSubDirectoryResult.h create mode 100644 adb/include/alibabacloud/adb/model/CreateSparkTemplateRequest.h rename adb/include/alibabacloud/adb/model/{BindDBResourceGroupWithUserResult.h => CreateSparkTemplateResult.h} (65%) delete mode 100644 adb/include/alibabacloud/adb/model/DeleteDBResourcePoolRequest.h delete mode 100644 adb/include/alibabacloud/adb/model/DeleteElasticPlanRequest.h create mode 100644 adb/include/alibabacloud/adb/model/DeleteProcessInstanceRequest.h rename adb/include/alibabacloud/adb/model/{ModifyLogBackupPolicyResult.h => DeleteProcessInstanceResult.h} (64%) create mode 100644 adb/include/alibabacloud/adb/model/DeleteSparkTemplateFileRequest.h rename adb/include/alibabacloud/adb/model/{GrantOperatorPermissionResult.h => DeleteSparkTemplateFileResult.h} (66%) create mode 100644 adb/include/alibabacloud/adb/model/DeleteSparkTemplateRequest.h create mode 100644 adb/include/alibabacloud/adb/model/DeleteSparkTemplateResult.h create mode 100644 adb/include/alibabacloud/adb/model/DescribeAdbMySqlColumnsRequest.h rename adb/include/alibabacloud/adb/model/{DescribeInclinedTablesResult.h => DescribeAdbMySqlColumnsResult.h} (54%) create mode 100644 adb/include/alibabacloud/adb/model/DescribeAdbMySqlSchemasRequest.h create mode 100644 adb/include/alibabacloud/adb/model/DescribeAdbMySqlSchemasResult.h rename adb/include/alibabacloud/adb/model/{ModifyDBClusterPayTypeRequest.h => DescribeAdbMySqlTablesRequest.h} (54%) create mode 100644 adb/include/alibabacloud/adb/model/DescribeAdbMySqlTablesResult.h delete mode 100644 adb/include/alibabacloud/adb/model/DescribeAllDataSourceResult.h rename adb/include/alibabacloud/adb/model/{DescribeLoadTasksRecordsRequest.h => DescribeApsActionLogsRequest.h} (67%) rename adb/include/alibabacloud/adb/model/{DescribeLoadTasksRecordsResult.h => DescribeApsActionLogsResult.h} (62%) create mode 100644 adb/include/alibabacloud/adb/model/DescribeApsResourceGroupsRequest.h create mode 100644 adb/include/alibabacloud/adb/model/DescribeApsResourceGroupsResult.h delete mode 100644 adb/include/alibabacloud/adb/model/DescribeAutoRenewAttributeRequest.h delete mode 100644 adb/include/alibabacloud/adb/model/DescribeAvailableResourceRequest.h delete mode 100644 adb/include/alibabacloud/adb/model/DescribeAvailableResourceResult.h rename adb/include/alibabacloud/adb/model/{DescribeConnectionCountRecordsRequest.h => DescribeClusterAccessWhiteListRequest.h} (66%) rename adb/include/alibabacloud/adb/model/{DescribeDBClusterAccessWhiteListResult.h => DescribeClusterAccessWhiteListResult.h} (70%) rename adb/include/alibabacloud/adb/model/{DescribeDBClusterNetInfoRequest.h => DescribeClusterNetInfoRequest.h} (57%) rename adb/include/alibabacloud/adb/model/{DescribeDBClusterNetInfoResult.h => DescribeClusterNetInfoResult.h} (75%) delete mode 100644 adb/include/alibabacloud/adb/model/DescribeConnectionCountRecordsResult.h delete mode 100644 adb/include/alibabacloud/adb/model/DescribeDBClusterAccessWhiteListRequest.h rename adb/include/alibabacloud/adb/model/{DescribeDBClusterHealthReportRequest.h => DescribeDBClusterHealthStatusRequest.h} (70%) create mode 100644 adb/include/alibabacloud/adb/model/DescribeDBClusterHealthStatusResult.h delete mode 100644 adb/include/alibabacloud/adb/model/DescribeDBClusterResourcePoolPerformanceRequest.h delete mode 100644 adb/include/alibabacloud/adb/model/DescribeDBClusterResourcePoolPerformanceResult.h delete mode 100644 adb/include/alibabacloud/adb/model/DescribeDBResourcePoolRequest.h rename adb/include/alibabacloud/adb/model/{KillProcessRequest.h => DescribeDiagnosisSQLInfoRequest.h} (54%) rename adb/include/alibabacloud/adb/model/{DescribeSQLPlanTaskResult.h => DescribeDiagnosisSQLInfoResult.h} (59%) delete mode 100644 adb/include/alibabacloud/adb/model/DescribeElasticDailyPlanRequest.h delete mode 100644 adb/include/alibabacloud/adb/model/DescribeElasticDailyPlanResult.h delete mode 100644 adb/include/alibabacloud/adb/model/DescribeElasticPlanRequest.h delete mode 100644 adb/include/alibabacloud/adb/model/DescribeElasticPlanResult.h delete mode 100644 adb/include/alibabacloud/adb/model/DescribeInclinedTablesRequest.h delete mode 100644 adb/include/alibabacloud/adb/model/DescribeMaintenanceActionRequest.h delete mode 100644 adb/include/alibabacloud/adb/model/DescribeMaintenanceActionResult.h delete mode 100644 adb/include/alibabacloud/adb/model/DescribeOperatorPermissionResult.h delete mode 100644 adb/include/alibabacloud/adb/model/DescribeProcessListRequest.h delete mode 100644 adb/include/alibabacloud/adb/model/DescribeProcessListResult.h delete mode 100644 adb/include/alibabacloud/adb/model/DescribeSQLPlanRequest.h delete mode 100644 adb/include/alibabacloud/adb/model/DescribeSQLPlanResult.h delete mode 100644 adb/include/alibabacloud/adb/model/DescribeSQLPlanTaskRequest.h delete mode 100644 adb/include/alibabacloud/adb/model/DescribeSlowLogRecordsRequest.h delete mode 100644 adb/include/alibabacloud/adb/model/DescribeSlowLogRecordsResult.h delete mode 100644 adb/include/alibabacloud/adb/model/DescribeSlowLogTrendRequest.h create mode 100644 adb/include/alibabacloud/adb/model/DescribeSparkCodeLogRequest.h rename adb/include/alibabacloud/adb/model/{ModifyDBResourcePoolResult.h => DescribeSparkCodeLogResult.h} (63%) create mode 100644 adb/include/alibabacloud/adb/model/DescribeSparkCodeOutputRequest.h create mode 100644 adb/include/alibabacloud/adb/model/DescribeSparkCodeOutputResult.h create mode 100644 adb/include/alibabacloud/adb/model/DescribeSparkCodeWebUiRequest.h rename adb/include/alibabacloud/adb/model/{ModifyDBClusterPayTypeResult.h => DescribeSparkCodeWebUiResult.h} (62%) delete mode 100644 adb/include/alibabacloud/adb/model/DescribeTablePartitionDiagnoseRequest.h delete mode 100644 adb/include/alibabacloud/adb/model/DescribeTablePartitionDiagnoseResult.h delete mode 100644 adb/include/alibabacloud/adb/model/DescribeTableStatisticsRequest.h delete mode 100644 adb/include/alibabacloud/adb/model/DescribeTableStatisticsResult.h delete mode 100644 adb/include/alibabacloud/adb/model/DescribeTaskInfoRequest.h create mode 100644 adb/include/alibabacloud/adb/model/GetDatabaseObjectsRequest.h rename adb/include/alibabacloud/adb/model/{DescribeSlowLogTrendResult.h => GetDatabaseObjectsResult.h} (51%) create mode 100644 adb/include/alibabacloud/adb/model/GetLakehouseValidResourceGroupsRequest.h create mode 100644 adb/include/alibabacloud/adb/model/GetLakehouseValidResourceGroupsResult.h create mode 100644 adb/include/alibabacloud/adb/model/GetSparkAppAttemptLogRequest.h create mode 100644 adb/include/alibabacloud/adb/model/GetSparkAppAttemptLogResult.h create mode 100644 adb/include/alibabacloud/adb/model/GetSparkAppInfoRequest.h create mode 100644 adb/include/alibabacloud/adb/model/GetSparkAppInfoResult.h create mode 100644 adb/include/alibabacloud/adb/model/GetSparkAppLogRequest.h rename adb/include/alibabacloud/adb/model/{DescribeTablesResult.h => GetSparkAppLogResult.h} (66%) create mode 100644 adb/include/alibabacloud/adb/model/GetSparkAppMetricsRequest.h rename adb/include/alibabacloud/adb/model/{DescribeDBClusterHealthReportResult.h => GetSparkAppMetricsResult.h} (58%) create mode 100644 adb/include/alibabacloud/adb/model/GetSparkAppStateRequest.h rename adb/include/alibabacloud/adb/model/{DescribeTaskInfoResult.h => GetSparkAppStateResult.h} (63%) create mode 100644 adb/include/alibabacloud/adb/model/GetSparkAppWebUiAddressRequest.h create mode 100644 adb/include/alibabacloud/adb/model/GetSparkAppWebUiAddressResult.h create mode 100644 adb/include/alibabacloud/adb/model/GetSparkConfigLogPathRequest.h rename adb/include/alibabacloud/adb/model/{DescribeTableDetailResult.h => GetSparkConfigLogPathResult.h} (60%) create mode 100644 adb/include/alibabacloud/adb/model/GetSparkLogAnalyzeTaskRequest.h create mode 100644 adb/include/alibabacloud/adb/model/GetSparkLogAnalyzeTaskResult.h create mode 100644 adb/include/alibabacloud/adb/model/GetSparkSQLEngineStateRequest.h create mode 100644 adb/include/alibabacloud/adb/model/GetSparkSQLEngineStateResult.h create mode 100644 adb/include/alibabacloud/adb/model/GetSparkTemplateFileContentRequest.h rename adb/include/alibabacloud/adb/model/{DescribeColumnsResult.h => GetSparkTemplateFileContentResult.h} (60%) rename adb/include/alibabacloud/adb/model/{DescribeOperatorPermissionRequest.h => GetSparkTemplateFolderTreeRequest.h} (53%) rename adb/include/alibabacloud/adb/model/{BindDBResourcePoolWithUserResult.h => GetSparkTemplateFolderTreeResult.h} (68%) rename adb/include/alibabacloud/adb/model/{RevokeOperatorPermissionRequest.h => GetSparkTemplateFullTreeRequest.h} (53%) rename adb/include/alibabacloud/adb/model/{ModifyAutoRenewAttributeResult.h => GetSparkTemplateFullTreeResult.h} (68%) rename adb/include/alibabacloud/adb/model/{DescribeColumnsRequest.h => GetTableColumnsRequest.h} (58%) create mode 100644 adb/include/alibabacloud/adb/model/GetTableColumnsResult.h rename adb/include/alibabacloud/adb/model/{DescribeTableDetailRequest.h => GetTableDDLRequest.h} (56%) rename adb/include/alibabacloud/adb/model/{CreateElasticPlanResult.h => GetTableDDLResult.h} (70%) create mode 100644 adb/include/alibabacloud/adb/model/GetTableObjectsRequest.h create mode 100644 adb/include/alibabacloud/adb/model/GetTableObjectsResult.h create mode 100644 adb/include/alibabacloud/adb/model/GetTableRequest.h create mode 100644 adb/include/alibabacloud/adb/model/GetTableResult.h rename adb/include/alibabacloud/adb/model/{DescribeTablesRequest.h => GetViewDDLRequest.h} (55%) rename adb/include/alibabacloud/adb/model/{ModifyElasticPlanResult.h => GetViewDDLResult.h} (70%) rename adb/include/alibabacloud/adb/model/{DescribeAllDataSourceRequest.h => GetViewObjectsRequest.h} (50%) create mode 100644 adb/include/alibabacloud/adb/model/GetViewObjectsResult.h delete mode 100644 adb/include/alibabacloud/adb/model/GrantOperatorPermissionRequest.h rename adb/include/alibabacloud/adb/model/{DeleteElasticPlanResult.h => KillSparkAppRequest.h} (52%) rename adb/include/alibabacloud/adb/model/{DescribeSchemasResult.h => KillSparkAppResult.h} (65%) create mode 100644 adb/include/alibabacloud/adb/model/KillSparkLogAnalyzeTaskRequest.h create mode 100644 adb/include/alibabacloud/adb/model/KillSparkLogAnalyzeTaskResult.h create mode 100644 adb/include/alibabacloud/adb/model/KillSparkSQLEngineRequest.h rename adb/include/alibabacloud/adb/model/{DeleteDBResourcePoolResult.h => KillSparkSQLEngineResult.h} (68%) create mode 100644 adb/include/alibabacloud/adb/model/ListSparkAppAttemptsRequest.h create mode 100644 adb/include/alibabacloud/adb/model/ListSparkAppAttemptsResult.h create mode 100644 adb/include/alibabacloud/adb/model/ListSparkAppsRequest.h create mode 100644 adb/include/alibabacloud/adb/model/ListSparkAppsResult.h create mode 100644 adb/include/alibabacloud/adb/model/ListSparkLogAnalyzeTasksRequest.h create mode 100644 adb/include/alibabacloud/adb/model/ListSparkLogAnalyzeTasksResult.h create mode 100644 adb/include/alibabacloud/adb/model/ListSparkTemplateFileIdsRequest.h rename adb/include/alibabacloud/adb/model/{RevokeOperatorPermissionResult.h => ListSparkTemplateFileIdsResult.h} (67%) delete mode 100644 adb/include/alibabacloud/adb/model/ListTagResourcesRequest.h delete mode 100644 adb/include/alibabacloud/adb/model/ListTagResourcesResult.h delete mode 100644 adb/include/alibabacloud/adb/model/ModifyAutoRenewAttributeRequest.h rename adb/include/alibabacloud/adb/model/{ModifyDBClusterAccessWhiteListRequest.h => ModifyClusterAccessWhiteListRequest.h} (65%) rename adb/include/alibabacloud/adb/model/{ModifyDBClusterAccessWhiteListResult.h => ModifyClusterAccessWhiteListResult.h} (68%) delete mode 100644 adb/include/alibabacloud/adb/model/ModifyDBClusterResourceGroupRequest.h delete mode 100644 adb/include/alibabacloud/adb/model/ModifyDBClusterResourceGroupResult.h delete mode 100644 adb/include/alibabacloud/adb/model/ModifyDBResourcePoolRequest.h delete mode 100644 adb/include/alibabacloud/adb/model/ModifyElasticPlanRequest.h delete mode 100644 adb/include/alibabacloud/adb/model/ModifyLogBackupPolicyRequest.h delete mode 100644 adb/include/alibabacloud/adb/model/ModifyMaintenanceActionRequest.h create mode 100644 adb/include/alibabacloud/adb/model/PreloadSparkAppMetricsRequest.h create mode 100644 adb/include/alibabacloud/adb/model/PreloadSparkAppMetricsResult.h create mode 100644 adb/include/alibabacloud/adb/model/SetSparkAppLogRootPathRequest.h rename adb/include/alibabacloud/adb/model/{DescribeDBResourcePoolResult.h => SetSparkAppLogRootPathResult.h} (59%) create mode 100644 adb/include/alibabacloud/adb/model/StartSparkSQLEngineRequest.h rename adb/include/alibabacloud/adb/model/{DescribeAllAccountsResult.h => StartSparkSQLEngineResult.h} (65%) create mode 100644 adb/include/alibabacloud/adb/model/SubmitSparkAppRequest.h rename adb/include/alibabacloud/adb/model/{UntagResourcesResult.h => SubmitSparkAppResult.h} (64%) create mode 100644 adb/include/alibabacloud/adb/model/SubmitSparkLogAnalyzeTaskRequest.h rename adb/include/alibabacloud/adb/model/{DescribeAutoRenewAttributeResult.h => SubmitSparkLogAnalyzeTaskResult.h} (52%) delete mode 100644 adb/include/alibabacloud/adb/model/TagResourcesRequest.h create mode 100644 adb/include/alibabacloud/adb/model/UnbindAccountRequest.h rename adb/include/alibabacloud/adb/model/{TagResourcesResult.h => UnbindAccountResult.h} (72%) delete mode 100644 adb/include/alibabacloud/adb/model/UnbindDBResourceGroupWithUserRequest.h delete mode 100644 adb/include/alibabacloud/adb/model/UnbindDBResourceGroupWithUserResult.h delete mode 100644 adb/include/alibabacloud/adb/model/UnbindDBResourcePoolWithUserRequest.h delete mode 100644 adb/include/alibabacloud/adb/model/UnbindDBResourcePoolWithUserResult.h delete mode 100644 adb/include/alibabacloud/adb/model/UntagResourcesRequest.h create mode 100644 adb/include/alibabacloud/adb/model/UpdateSparkTemplateFileRequest.h rename adb/include/alibabacloud/adb/model/{ModifyMaintenanceActionResult.h => UpdateSparkTemplateFileResult.h} (66%) create mode 100644 adb/src/model/BindAccountRequest.cc rename adb/src/model/{KillProcessResult.cc => BindAccountResult.cc} (78%) delete mode 100644 adb/src/model/BindDBResourceGroupWithUserRequest.cc delete mode 100644 adb/src/model/BindDBResourcePoolWithUserRequest.cc create mode 100644 adb/src/model/CheckBindRamUserRequest.cc rename adb/src/model/{CreateDBResourcePoolResult.cc => CheckBindRamUserResult.cc} (67%) delete mode 100644 adb/src/model/CreateDBResourcePoolRequest.cc delete mode 100644 adb/src/model/CreateElasticPlanRequest.cc create mode 100644 adb/src/model/CreateOssSubDirectoryRequest.cc create mode 100644 adb/src/model/CreateOssSubDirectoryResult.cc create mode 100644 adb/src/model/CreateSparkTemplateRequest.cc create mode 100644 adb/src/model/CreateSparkTemplateResult.cc delete mode 100644 adb/src/model/DeleteDBResourcePoolRequest.cc delete mode 100644 adb/src/model/DeleteElasticPlanRequest.cc create mode 100644 adb/src/model/DeleteProcessInstanceRequest.cc rename adb/src/model/{DescribeSchemasResult.cc => DeleteProcessInstanceResult.cc} (53%) create mode 100644 adb/src/model/DeleteSparkTemplateFileRequest.cc rename adb/src/model/{ModifyMaintenanceActionResult.cc => DeleteSparkTemplateFileResult.cc} (63%) create mode 100644 adb/src/model/DeleteSparkTemplateRequest.cc create mode 100644 adb/src/model/DeleteSparkTemplateResult.cc create mode 100644 adb/src/model/DescribeAdbMySqlColumnsRequest.cc create mode 100644 adb/src/model/DescribeAdbMySqlColumnsResult.cc create mode 100644 adb/src/model/DescribeAdbMySqlSchemasRequest.cc create mode 100644 adb/src/model/DescribeAdbMySqlSchemasResult.cc create mode 100644 adb/src/model/DescribeAdbMySqlTablesRequest.cc create mode 100644 adb/src/model/DescribeAdbMySqlTablesResult.cc delete mode 100644 adb/src/model/DescribeAllAccountsRequest.cc delete mode 100644 adb/src/model/DescribeAllDataSourceRequest.cc delete mode 100644 adb/src/model/DescribeAllDataSourceResult.cc create mode 100644 adb/src/model/DescribeApsActionLogsRequest.cc create mode 100644 adb/src/model/DescribeApsActionLogsResult.cc create mode 100644 adb/src/model/DescribeApsResourceGroupsRequest.cc create mode 100644 adb/src/model/DescribeApsResourceGroupsResult.cc delete mode 100644 adb/src/model/DescribeAutoRenewAttributeRequest.cc delete mode 100644 adb/src/model/DescribeAutoRenewAttributeResult.cc delete mode 100644 adb/src/model/DescribeAvailableResourceRequest.cc delete mode 100644 adb/src/model/DescribeAvailableResourceResult.cc create mode 100644 adb/src/model/DescribeClusterAccessWhiteListRequest.cc rename adb/src/model/{DescribeDBClusterAccessWhiteListResult.cc => DescribeClusterAccessWhiteListResult.cc} (73%) create mode 100644 adb/src/model/DescribeClusterNetInfoRequest.cc rename adb/src/model/{DescribeDBClusterNetInfoResult.cc => DescribeClusterNetInfoResult.cc} (79%) delete mode 100644 adb/src/model/DescribeColumnsRequest.cc delete mode 100644 adb/src/model/DescribeColumnsResult.cc delete mode 100644 adb/src/model/DescribeConnectionCountRecordsRequest.cc delete mode 100644 adb/src/model/DescribeConnectionCountRecordsResult.cc delete mode 100644 adb/src/model/DescribeDBClusterAccessWhiteListRequest.cc delete mode 100644 adb/src/model/DescribeDBClusterHealthReportResult.cc rename adb/src/model/{DescribeDBClusterHealthReportRequest.cc => DescribeDBClusterHealthStatusRequest.cc} (51%) create mode 100644 adb/src/model/DescribeDBClusterHealthStatusResult.cc delete mode 100644 adb/src/model/DescribeDBClusterNetInfoRequest.cc delete mode 100644 adb/src/model/DescribeDBClusterResourcePoolPerformanceRequest.cc delete mode 100644 adb/src/model/DescribeDBClusterResourcePoolPerformanceResult.cc delete mode 100644 adb/src/model/DescribeDBResourcePoolRequest.cc delete mode 100644 adb/src/model/DescribeDBResourcePoolResult.cc create mode 100644 adb/src/model/DescribeDiagnosisSQLInfoRequest.cc create mode 100644 adb/src/model/DescribeDiagnosisSQLInfoResult.cc delete mode 100644 adb/src/model/DescribeElasticDailyPlanRequest.cc delete mode 100644 adb/src/model/DescribeElasticDailyPlanResult.cc delete mode 100644 adb/src/model/DescribeElasticPlanRequest.cc delete mode 100644 adb/src/model/DescribeElasticPlanResult.cc delete mode 100644 adb/src/model/DescribeInclinedTablesRequest.cc delete mode 100644 adb/src/model/DescribeInclinedTablesResult.cc delete mode 100644 adb/src/model/DescribeLoadTasksRecordsRequest.cc delete mode 100644 adb/src/model/DescribeLoadTasksRecordsResult.cc delete mode 100644 adb/src/model/DescribeMaintenanceActionRequest.cc delete mode 100644 adb/src/model/DescribeMaintenanceActionResult.cc delete mode 100644 adb/src/model/DescribeOperatorPermissionRequest.cc delete mode 100644 adb/src/model/DescribeOperatorPermissionResult.cc delete mode 100644 adb/src/model/DescribeProcessListRequest.cc delete mode 100644 adb/src/model/DescribeProcessListResult.cc delete mode 100644 adb/src/model/DescribeSQLPlanRequest.cc delete mode 100644 adb/src/model/DescribeSQLPlanResult.cc delete mode 100644 adb/src/model/DescribeSQLPlanTaskRequest.cc delete mode 100644 adb/src/model/DescribeSQLPlanTaskResult.cc delete mode 100644 adb/src/model/DescribeSchemasRequest.cc delete mode 100644 adb/src/model/DescribeSlowLogRecordsRequest.cc delete mode 100644 adb/src/model/DescribeSlowLogRecordsResult.cc delete mode 100644 adb/src/model/DescribeSlowLogTrendRequest.cc delete mode 100644 adb/src/model/DescribeSlowLogTrendResult.cc create mode 100644 adb/src/model/DescribeSparkCodeLogRequest.cc rename adb/src/model/{DeleteDBResourcePoolResult.cc => DescribeSparkCodeLogResult.cc} (55%) create mode 100644 adb/src/model/DescribeSparkCodeOutputRequest.cc create mode 100644 adb/src/model/DescribeSparkCodeOutputResult.cc create mode 100644 adb/src/model/DescribeSparkCodeWebUiRequest.cc rename adb/src/model/{ModifyDBClusterPayTypeResult.cc => DescribeSparkCodeWebUiResult.cc} (54%) delete mode 100644 adb/src/model/DescribeTableDetailRequest.cc delete mode 100644 adb/src/model/DescribeTableDetailResult.cc delete mode 100644 adb/src/model/DescribeTablePartitionDiagnoseRequest.cc delete mode 100644 adb/src/model/DescribeTablePartitionDiagnoseResult.cc delete mode 100644 adb/src/model/DescribeTableStatisticsRequest.cc delete mode 100644 adb/src/model/DescribeTableStatisticsResult.cc delete mode 100644 adb/src/model/DescribeTablesRequest.cc delete mode 100644 adb/src/model/DescribeTablesResult.cc delete mode 100644 adb/src/model/DescribeTaskInfoRequest.cc delete mode 100644 adb/src/model/DescribeTaskInfoResult.cc create mode 100644 adb/src/model/GetDatabaseObjectsRequest.cc create mode 100644 adb/src/model/GetDatabaseObjectsResult.cc create mode 100644 adb/src/model/GetLakehouseValidResourceGroupsRequest.cc create mode 100644 adb/src/model/GetLakehouseValidResourceGroupsResult.cc create mode 100644 adb/src/model/GetSparkAppAttemptLogRequest.cc rename adb/src/model/{ModifyLogBackupPolicyResult.cc => GetSparkAppAttemptLogResult.cc} (56%) rename adb/src/model/{ModifyElasticPlanResult.cc => GetSparkAppInfoRequest.cc} (51%) create mode 100644 adb/src/model/GetSparkAppInfoResult.cc create mode 100644 adb/src/model/GetSparkAppLogRequest.cc rename adb/src/model/{UntagResourcesResult.cc => GetSparkAppLogResult.cc} (58%) create mode 100644 adb/src/model/GetSparkAppMetricsRequest.cc create mode 100644 adb/src/model/GetSparkAppMetricsResult.cc create mode 100644 adb/src/model/GetSparkAppStateRequest.cc create mode 100644 adb/src/model/GetSparkAppStateResult.cc create mode 100644 adb/src/model/GetSparkAppWebUiAddressRequest.cc create mode 100644 adb/src/model/GetSparkAppWebUiAddressResult.cc create mode 100644 adb/src/model/GetSparkConfigLogPathRequest.cc create mode 100644 adb/src/model/GetSparkConfigLogPathResult.cc create mode 100644 adb/src/model/GetSparkLogAnalyzeTaskRequest.cc create mode 100644 adb/src/model/GetSparkLogAnalyzeTaskResult.cc create mode 100644 adb/src/model/GetSparkSQLEngineStateRequest.cc create mode 100644 adb/src/model/GetSparkSQLEngineStateResult.cc create mode 100644 adb/src/model/GetSparkTemplateFileContentRequest.cc create mode 100644 adb/src/model/GetSparkTemplateFileContentResult.cc create mode 100644 adb/src/model/GetSparkTemplateFolderTreeRequest.cc rename adb/src/model/{BindDBResourcePoolWithUserResult.cc => GetSparkTemplateFolderTreeResult.cc} (67%) create mode 100644 adb/src/model/GetSparkTemplateFullTreeRequest.cc rename adb/src/model/{RevokeOperatorPermissionResult.cc => GetSparkTemplateFullTreeResult.cc} (67%) create mode 100644 adb/src/model/GetTableColumnsRequest.cc create mode 100644 adb/src/model/GetTableColumnsResult.cc create mode 100644 adb/src/model/GetTableDDLRequest.cc rename adb/src/model/{ModifyAutoRenewAttributeResult.cc => GetTableDDLResult.cc} (70%) create mode 100644 adb/src/model/GetTableObjectsRequest.cc create mode 100644 adb/src/model/GetTableObjectsResult.cc create mode 100644 adb/src/model/GetTableRequest.cc create mode 100644 adb/src/model/GetTableResult.cc create mode 100644 adb/src/model/GetViewDDLRequest.cc rename adb/src/model/{GrantOperatorPermissionResult.cc => GetViewDDLResult.cc} (70%) create mode 100644 adb/src/model/GetViewObjectsRequest.cc create mode 100644 adb/src/model/GetViewObjectsResult.cc delete mode 100644 adb/src/model/GrantOperatorPermissionRequest.cc delete mode 100644 adb/src/model/KillProcessRequest.cc create mode 100644 adb/src/model/KillSparkAppRequest.cc rename adb/src/model/{DescribeAllAccountsResult.cc => KillSparkAppResult.cc} (53%) create mode 100644 adb/src/model/KillSparkLogAnalyzeTaskRequest.cc create mode 100644 adb/src/model/KillSparkLogAnalyzeTaskResult.cc create mode 100644 adb/src/model/KillSparkSQLEngineRequest.cc rename adb/src/model/{CreateElasticPlanResult.cc => KillSparkSQLEngineResult.cc} (66%) create mode 100644 adb/src/model/ListSparkAppAttemptsRequest.cc create mode 100644 adb/src/model/ListSparkAppAttemptsResult.cc create mode 100644 adb/src/model/ListSparkAppsRequest.cc create mode 100644 adb/src/model/ListSparkAppsResult.cc create mode 100644 adb/src/model/ListSparkLogAnalyzeTasksRequest.cc create mode 100644 adb/src/model/ListSparkLogAnalyzeTasksResult.cc create mode 100644 adb/src/model/ListSparkTemplateFileIdsRequest.cc create mode 100644 adb/src/model/ListSparkTemplateFileIdsResult.cc delete mode 100644 adb/src/model/ListTagResourcesRequest.cc delete mode 100644 adb/src/model/ListTagResourcesResult.cc delete mode 100644 adb/src/model/ModifyAutoRenewAttributeRequest.cc create mode 100644 adb/src/model/ModifyClusterAccessWhiteListRequest.cc rename adb/src/model/{ModifyDBClusterAccessWhiteListResult.cc => ModifyClusterAccessWhiteListResult.cc} (67%) delete mode 100644 adb/src/model/ModifyDBClusterAccessWhiteListRequest.cc delete mode 100644 adb/src/model/ModifyDBClusterPayTypeRequest.cc delete mode 100644 adb/src/model/ModifyDBClusterResourceGroupRequest.cc delete mode 100644 adb/src/model/ModifyDBClusterResourceGroupResult.cc delete mode 100644 adb/src/model/ModifyDBResourcePoolRequest.cc delete mode 100644 adb/src/model/ModifyDBResourcePoolResult.cc delete mode 100644 adb/src/model/ModifyElasticPlanRequest.cc delete mode 100644 adb/src/model/ModifyLogBackupPolicyRequest.cc delete mode 100644 adb/src/model/ModifyMaintenanceActionRequest.cc rename adb/src/model/{DeleteElasticPlanResult.cc => PreloadSparkAppMetricsRequest.cc} (50%) create mode 100644 adb/src/model/PreloadSparkAppMetricsResult.cc delete mode 100644 adb/src/model/RevokeOperatorPermissionRequest.cc create mode 100644 adb/src/model/SetSparkAppLogRootPathRequest.cc create mode 100644 adb/src/model/SetSparkAppLogRootPathResult.cc create mode 100644 adb/src/model/StartSparkSQLEngineRequest.cc create mode 100644 adb/src/model/StartSparkSQLEngineResult.cc create mode 100644 adb/src/model/SubmitSparkAppRequest.cc create mode 100644 adb/src/model/SubmitSparkAppResult.cc create mode 100644 adb/src/model/SubmitSparkLogAnalyzeTaskRequest.cc create mode 100644 adb/src/model/SubmitSparkLogAnalyzeTaskResult.cc delete mode 100644 adb/src/model/TagResourcesRequest.cc create mode 100644 adb/src/model/UnbindAccountRequest.cc rename adb/src/model/{TagResourcesResult.cc => UnbindAccountResult.cc} (76%) delete mode 100644 adb/src/model/UnbindDBResourceGroupWithUserRequest.cc delete mode 100644 adb/src/model/UnbindDBResourceGroupWithUserResult.cc delete mode 100644 adb/src/model/UnbindDBResourcePoolWithUserRequest.cc delete mode 100644 adb/src/model/UnbindDBResourcePoolWithUserResult.cc delete mode 100644 adb/src/model/UntagResourcesRequest.cc create mode 100644 adb/src/model/UpdateSparkTemplateFileRequest.cc rename adb/src/model/{BindDBResourceGroupWithUserResult.cc => UpdateSparkTemplateFileResult.cc} (60%) diff --git a/VERSION b/VERSION index 6f940a097..ae3431925 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1493 \ No newline at end of file +1.36.1494 \ No newline at end of file diff --git a/adb/CMakeLists.txt b/adb/CMakeLists.txt index 1251c3dd8..d521545c1 100644 --- a/adb/CMakeLists.txt +++ b/adb/CMakeLists.txt @@ -23,355 +23,371 @@ 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/BindAccountRequest.h + include/alibabacloud/adb/model/BindAccountResult.h + include/alibabacloud/adb/model/CheckBindRamUserRequest.h + include/alibabacloud/adb/model/CheckBindRamUserResult.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 - include/alibabacloud/adb/model/CreateElasticPlanResult.h + include/alibabacloud/adb/model/CreateOssSubDirectoryRequest.h + include/alibabacloud/adb/model/CreateOssSubDirectoryResult.h + include/alibabacloud/adb/model/CreateSparkTemplateRequest.h + include/alibabacloud/adb/model/CreateSparkTemplateResult.h include/alibabacloud/adb/model/DeleteAccountRequest.h 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 - include/alibabacloud/adb/model/DeleteElasticPlanResult.h + include/alibabacloud/adb/model/DeleteProcessInstanceRequest.h + include/alibabacloud/adb/model/DeleteProcessInstanceResult.h + include/alibabacloud/adb/model/DeleteSparkTemplateRequest.h + include/alibabacloud/adb/model/DeleteSparkTemplateResult.h + include/alibabacloud/adb/model/DeleteSparkTemplateFileRequest.h + include/alibabacloud/adb/model/DeleteSparkTemplateFileResult.h include/alibabacloud/adb/model/DescribeAccountsRequest.h include/alibabacloud/adb/model/DescribeAccountsResult.h - include/alibabacloud/adb/model/DescribeAllAccountsRequest.h - include/alibabacloud/adb/model/DescribeAllAccountsResult.h - include/alibabacloud/adb/model/DescribeAllDataSourceRequest.h - include/alibabacloud/adb/model/DescribeAllDataSourceResult.h + include/alibabacloud/adb/model/DescribeAdbMySqlColumnsRequest.h + include/alibabacloud/adb/model/DescribeAdbMySqlColumnsResult.h + include/alibabacloud/adb/model/DescribeAdbMySqlSchemasRequest.h + include/alibabacloud/adb/model/DescribeAdbMySqlSchemasResult.h + include/alibabacloud/adb/model/DescribeAdbMySqlTablesRequest.h + include/alibabacloud/adb/model/DescribeAdbMySqlTablesResult.h + include/alibabacloud/adb/model/DescribeApsActionLogsRequest.h + include/alibabacloud/adb/model/DescribeApsActionLogsResult.h + include/alibabacloud/adb/model/DescribeApsResourceGroupsRequest.h + include/alibabacloud/adb/model/DescribeApsResourceGroupsResult.h include/alibabacloud/adb/model/DescribeAuditLogConfigRequest.h include/alibabacloud/adb/model/DescribeAuditLogConfigResult.h include/alibabacloud/adb/model/DescribeAuditLogRecordsRequest.h include/alibabacloud/adb/model/DescribeAuditLogRecordsResult.h - include/alibabacloud/adb/model/DescribeAutoRenewAttributeRequest.h - include/alibabacloud/adb/model/DescribeAutoRenewAttributeResult.h - include/alibabacloud/adb/model/DescribeAvailableResourceRequest.h - include/alibabacloud/adb/model/DescribeAvailableResourceResult.h include/alibabacloud/adb/model/DescribeBackupPolicyRequest.h include/alibabacloud/adb/model/DescribeBackupPolicyResult.h include/alibabacloud/adb/model/DescribeBackupsRequest.h include/alibabacloud/adb/model/DescribeBackupsResult.h - include/alibabacloud/adb/model/DescribeColumnsRequest.h - include/alibabacloud/adb/model/DescribeColumnsResult.h - include/alibabacloud/adb/model/DescribeConnectionCountRecordsRequest.h - include/alibabacloud/adb/model/DescribeConnectionCountRecordsResult.h - include/alibabacloud/adb/model/DescribeDBClusterAccessWhiteListRequest.h - include/alibabacloud/adb/model/DescribeDBClusterAccessWhiteListResult.h + include/alibabacloud/adb/model/DescribeClusterAccessWhiteListRequest.h + include/alibabacloud/adb/model/DescribeClusterAccessWhiteListResult.h + include/alibabacloud/adb/model/DescribeClusterNetInfoRequest.h + include/alibabacloud/adb/model/DescribeClusterNetInfoResult.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/DescribeDBClusterHealthStatusRequest.h + include/alibabacloud/adb/model/DescribeDBClusterHealthStatusResult.h include/alibabacloud/adb/model/DescribeDBClusterPerformanceRequest.h include/alibabacloud/adb/model/DescribeDBClusterPerformanceResult.h - include/alibabacloud/adb/model/DescribeDBClusterResourcePoolPerformanceRequest.h - 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/DescribeDiagnosisSQLInfoRequest.h + include/alibabacloud/adb/model/DescribeDiagnosisSQLInfoResult.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 - include/alibabacloud/adb/model/DescribeElasticPlanResult.h - include/alibabacloud/adb/model/DescribeInclinedTablesRequest.h - 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 - include/alibabacloud/adb/model/DescribeSQLPlanTaskResult.h - include/alibabacloud/adb/model/DescribeSchemasRequest.h - include/alibabacloud/adb/model/DescribeSchemasResult.h - include/alibabacloud/adb/model/DescribeSlowLogRecordsRequest.h - include/alibabacloud/adb/model/DescribeSlowLogRecordsResult.h - include/alibabacloud/adb/model/DescribeSlowLogTrendRequest.h - include/alibabacloud/adb/model/DescribeSlowLogTrendResult.h + include/alibabacloud/adb/model/DescribeSparkCodeLogRequest.h + include/alibabacloud/adb/model/DescribeSparkCodeLogResult.h + include/alibabacloud/adb/model/DescribeSparkCodeOutputRequest.h + include/alibabacloud/adb/model/DescribeSparkCodeOutputResult.h + include/alibabacloud/adb/model/DescribeSparkCodeWebUiRequest.h + include/alibabacloud/adb/model/DescribeSparkCodeWebUiResult.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 - include/alibabacloud/adb/model/DescribeTablePartitionDiagnoseResult.h - include/alibabacloud/adb/model/DescribeTableStatisticsRequest.h - include/alibabacloud/adb/model/DescribeTableStatisticsResult.h - include/alibabacloud/adb/model/DescribeTablesRequest.h - 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 - include/alibabacloud/adb/model/KillProcessResult.h - include/alibabacloud/adb/model/ListTagResourcesRequest.h - include/alibabacloud/adb/model/ListTagResourcesResult.h + include/alibabacloud/adb/model/GetDatabaseObjectsRequest.h + include/alibabacloud/adb/model/GetDatabaseObjectsResult.h + include/alibabacloud/adb/model/GetLakehouseValidResourceGroupsRequest.h + include/alibabacloud/adb/model/GetLakehouseValidResourceGroupsResult.h + include/alibabacloud/adb/model/GetSparkAppAttemptLogRequest.h + include/alibabacloud/adb/model/GetSparkAppAttemptLogResult.h + include/alibabacloud/adb/model/GetSparkAppInfoRequest.h + include/alibabacloud/adb/model/GetSparkAppInfoResult.h + include/alibabacloud/adb/model/GetSparkAppLogRequest.h + include/alibabacloud/adb/model/GetSparkAppLogResult.h + include/alibabacloud/adb/model/GetSparkAppMetricsRequest.h + include/alibabacloud/adb/model/GetSparkAppMetricsResult.h + include/alibabacloud/adb/model/GetSparkAppStateRequest.h + include/alibabacloud/adb/model/GetSparkAppStateResult.h + include/alibabacloud/adb/model/GetSparkAppWebUiAddressRequest.h + include/alibabacloud/adb/model/GetSparkAppWebUiAddressResult.h + include/alibabacloud/adb/model/GetSparkConfigLogPathRequest.h + include/alibabacloud/adb/model/GetSparkConfigLogPathResult.h + include/alibabacloud/adb/model/GetSparkLogAnalyzeTaskRequest.h + include/alibabacloud/adb/model/GetSparkLogAnalyzeTaskResult.h + include/alibabacloud/adb/model/GetSparkSQLEngineStateRequest.h + include/alibabacloud/adb/model/GetSparkSQLEngineStateResult.h + include/alibabacloud/adb/model/GetSparkTemplateFileContentRequest.h + include/alibabacloud/adb/model/GetSparkTemplateFileContentResult.h + include/alibabacloud/adb/model/GetSparkTemplateFolderTreeRequest.h + include/alibabacloud/adb/model/GetSparkTemplateFolderTreeResult.h + include/alibabacloud/adb/model/GetSparkTemplateFullTreeRequest.h + include/alibabacloud/adb/model/GetSparkTemplateFullTreeResult.h + include/alibabacloud/adb/model/GetTableRequest.h + include/alibabacloud/adb/model/GetTableResult.h + include/alibabacloud/adb/model/GetTableColumnsRequest.h + include/alibabacloud/adb/model/GetTableColumnsResult.h + include/alibabacloud/adb/model/GetTableDDLRequest.h + include/alibabacloud/adb/model/GetTableDDLResult.h + include/alibabacloud/adb/model/GetTableObjectsRequest.h + include/alibabacloud/adb/model/GetTableObjectsResult.h + include/alibabacloud/adb/model/GetViewDDLRequest.h + include/alibabacloud/adb/model/GetViewDDLResult.h + include/alibabacloud/adb/model/GetViewObjectsRequest.h + include/alibabacloud/adb/model/GetViewObjectsResult.h + include/alibabacloud/adb/model/KillSparkAppRequest.h + include/alibabacloud/adb/model/KillSparkAppResult.h + include/alibabacloud/adb/model/KillSparkLogAnalyzeTaskRequest.h + include/alibabacloud/adb/model/KillSparkLogAnalyzeTaskResult.h + include/alibabacloud/adb/model/KillSparkSQLEngineRequest.h + include/alibabacloud/adb/model/KillSparkSQLEngineResult.h + include/alibabacloud/adb/model/ListSparkAppAttemptsRequest.h + include/alibabacloud/adb/model/ListSparkAppAttemptsResult.h + include/alibabacloud/adb/model/ListSparkAppsRequest.h + include/alibabacloud/adb/model/ListSparkAppsResult.h + include/alibabacloud/adb/model/ListSparkLogAnalyzeTasksRequest.h + include/alibabacloud/adb/model/ListSparkLogAnalyzeTasksResult.h + include/alibabacloud/adb/model/ListSparkTemplateFileIdsRequest.h + include/alibabacloud/adb/model/ListSparkTemplateFileIdsResult.h include/alibabacloud/adb/model/ModifyAccountDescriptionRequest.h include/alibabacloud/adb/model/ModifyAccountDescriptionResult.h include/alibabacloud/adb/model/ModifyAuditLogConfigRequest.h include/alibabacloud/adb/model/ModifyAuditLogConfigResult.h - include/alibabacloud/adb/model/ModifyAutoRenewAttributeRequest.h - include/alibabacloud/adb/model/ModifyAutoRenewAttributeResult.h include/alibabacloud/adb/model/ModifyBackupPolicyRequest.h include/alibabacloud/adb/model/ModifyBackupPolicyResult.h + include/alibabacloud/adb/model/ModifyClusterAccessWhiteListRequest.h + include/alibabacloud/adb/model/ModifyClusterAccessWhiteListResult.h include/alibabacloud/adb/model/ModifyClusterConnectionStringRequest.h include/alibabacloud/adb/model/ModifyClusterConnectionStringResult.h include/alibabacloud/adb/model/ModifyDBClusterRequest.h include/alibabacloud/adb/model/ModifyDBClusterResult.h - include/alibabacloud/adb/model/ModifyDBClusterAccessWhiteListRequest.h - include/alibabacloud/adb/model/ModifyDBClusterAccessWhiteListResult.h include/alibabacloud/adb/model/ModifyDBClusterDescriptionRequest.h 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/PreloadSparkAppMetricsRequest.h + include/alibabacloud/adb/model/PreloadSparkAppMetricsResult.h include/alibabacloud/adb/model/ReleaseClusterPublicConnectionRequest.h include/alibabacloud/adb/model/ReleaseClusterPublicConnectionResult.h include/alibabacloud/adb/model/ResetAccountPasswordRequest.h include/alibabacloud/adb/model/ResetAccountPasswordResult.h - include/alibabacloud/adb/model/RevokeOperatorPermissionRequest.h - 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 - include/alibabacloud/adb/model/UntagResourcesResult.h ) + include/alibabacloud/adb/model/SetSparkAppLogRootPathRequest.h + include/alibabacloud/adb/model/SetSparkAppLogRootPathResult.h + include/alibabacloud/adb/model/StartSparkSQLEngineRequest.h + include/alibabacloud/adb/model/StartSparkSQLEngineResult.h + include/alibabacloud/adb/model/SubmitSparkAppRequest.h + include/alibabacloud/adb/model/SubmitSparkAppResult.h + include/alibabacloud/adb/model/SubmitSparkLogAnalyzeTaskRequest.h + include/alibabacloud/adb/model/SubmitSparkLogAnalyzeTaskResult.h + include/alibabacloud/adb/model/UnbindAccountRequest.h + include/alibabacloud/adb/model/UnbindAccountResult.h + include/alibabacloud/adb/model/UpdateSparkTemplateFileRequest.h + include/alibabacloud/adb/model/UpdateSparkTemplateFileResult.h ) 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/BindAccountRequest.cc + src/model/BindAccountResult.cc + src/model/CheckBindRamUserRequest.cc + src/model/CheckBindRamUserResult.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 - src/model/CreateElasticPlanResult.cc + src/model/CreateOssSubDirectoryRequest.cc + src/model/CreateOssSubDirectoryResult.cc + src/model/CreateSparkTemplateRequest.cc + src/model/CreateSparkTemplateResult.cc src/model/DeleteAccountRequest.cc 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 - src/model/DeleteElasticPlanResult.cc + src/model/DeleteProcessInstanceRequest.cc + src/model/DeleteProcessInstanceResult.cc + src/model/DeleteSparkTemplateRequest.cc + src/model/DeleteSparkTemplateResult.cc + src/model/DeleteSparkTemplateFileRequest.cc + src/model/DeleteSparkTemplateFileResult.cc src/model/DescribeAccountsRequest.cc src/model/DescribeAccountsResult.cc - src/model/DescribeAllAccountsRequest.cc - src/model/DescribeAllAccountsResult.cc - src/model/DescribeAllDataSourceRequest.cc - src/model/DescribeAllDataSourceResult.cc + src/model/DescribeAdbMySqlColumnsRequest.cc + src/model/DescribeAdbMySqlColumnsResult.cc + src/model/DescribeAdbMySqlSchemasRequest.cc + src/model/DescribeAdbMySqlSchemasResult.cc + src/model/DescribeAdbMySqlTablesRequest.cc + src/model/DescribeAdbMySqlTablesResult.cc + src/model/DescribeApsActionLogsRequest.cc + src/model/DescribeApsActionLogsResult.cc + src/model/DescribeApsResourceGroupsRequest.cc + src/model/DescribeApsResourceGroupsResult.cc src/model/DescribeAuditLogConfigRequest.cc src/model/DescribeAuditLogConfigResult.cc src/model/DescribeAuditLogRecordsRequest.cc src/model/DescribeAuditLogRecordsResult.cc - src/model/DescribeAutoRenewAttributeRequest.cc - src/model/DescribeAutoRenewAttributeResult.cc - src/model/DescribeAvailableResourceRequest.cc - src/model/DescribeAvailableResourceResult.cc src/model/DescribeBackupPolicyRequest.cc src/model/DescribeBackupPolicyResult.cc src/model/DescribeBackupsRequest.cc src/model/DescribeBackupsResult.cc - src/model/DescribeColumnsRequest.cc - src/model/DescribeColumnsResult.cc - src/model/DescribeConnectionCountRecordsRequest.cc - src/model/DescribeConnectionCountRecordsResult.cc - src/model/DescribeDBClusterAccessWhiteListRequest.cc - src/model/DescribeDBClusterAccessWhiteListResult.cc + src/model/DescribeClusterAccessWhiteListRequest.cc + src/model/DescribeClusterAccessWhiteListResult.cc + src/model/DescribeClusterNetInfoRequest.cc + src/model/DescribeClusterNetInfoResult.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/DescribeDBClusterHealthStatusRequest.cc + src/model/DescribeDBClusterHealthStatusResult.cc src/model/DescribeDBClusterPerformanceRequest.cc src/model/DescribeDBClusterPerformanceResult.cc - src/model/DescribeDBClusterResourcePoolPerformanceRequest.cc - 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/DescribeDiagnosisSQLInfoRequest.cc + src/model/DescribeDiagnosisSQLInfoResult.cc src/model/DescribeDownloadRecordsRequest.cc src/model/DescribeDownloadRecordsResult.cc - src/model/DescribeElasticDailyPlanRequest.cc - src/model/DescribeElasticDailyPlanResult.cc - src/model/DescribeElasticPlanRequest.cc - src/model/DescribeElasticPlanResult.cc - src/model/DescribeInclinedTablesRequest.cc - 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 - src/model/DescribeSQLPlanTaskResult.cc - src/model/DescribeSchemasRequest.cc - src/model/DescribeSchemasResult.cc - src/model/DescribeSlowLogRecordsRequest.cc - src/model/DescribeSlowLogRecordsResult.cc - src/model/DescribeSlowLogTrendRequest.cc - src/model/DescribeSlowLogTrendResult.cc + src/model/DescribeSparkCodeLogRequest.cc + src/model/DescribeSparkCodeLogResult.cc + src/model/DescribeSparkCodeOutputRequest.cc + src/model/DescribeSparkCodeOutputResult.cc + src/model/DescribeSparkCodeWebUiRequest.cc + src/model/DescribeSparkCodeWebUiResult.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 - src/model/DescribeTablePartitionDiagnoseResult.cc - src/model/DescribeTableStatisticsRequest.cc - src/model/DescribeTableStatisticsResult.cc - src/model/DescribeTablesRequest.cc - 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 - src/model/KillProcessResult.cc - src/model/ListTagResourcesRequest.cc - src/model/ListTagResourcesResult.cc + src/model/GetDatabaseObjectsRequest.cc + src/model/GetDatabaseObjectsResult.cc + src/model/GetLakehouseValidResourceGroupsRequest.cc + src/model/GetLakehouseValidResourceGroupsResult.cc + src/model/GetSparkAppAttemptLogRequest.cc + src/model/GetSparkAppAttemptLogResult.cc + src/model/GetSparkAppInfoRequest.cc + src/model/GetSparkAppInfoResult.cc + src/model/GetSparkAppLogRequest.cc + src/model/GetSparkAppLogResult.cc + src/model/GetSparkAppMetricsRequest.cc + src/model/GetSparkAppMetricsResult.cc + src/model/GetSparkAppStateRequest.cc + src/model/GetSparkAppStateResult.cc + src/model/GetSparkAppWebUiAddressRequest.cc + src/model/GetSparkAppWebUiAddressResult.cc + src/model/GetSparkConfigLogPathRequest.cc + src/model/GetSparkConfigLogPathResult.cc + src/model/GetSparkLogAnalyzeTaskRequest.cc + src/model/GetSparkLogAnalyzeTaskResult.cc + src/model/GetSparkSQLEngineStateRequest.cc + src/model/GetSparkSQLEngineStateResult.cc + src/model/GetSparkTemplateFileContentRequest.cc + src/model/GetSparkTemplateFileContentResult.cc + src/model/GetSparkTemplateFolderTreeRequest.cc + src/model/GetSparkTemplateFolderTreeResult.cc + src/model/GetSparkTemplateFullTreeRequest.cc + src/model/GetSparkTemplateFullTreeResult.cc + src/model/GetTableRequest.cc + src/model/GetTableResult.cc + src/model/GetTableColumnsRequest.cc + src/model/GetTableColumnsResult.cc + src/model/GetTableDDLRequest.cc + src/model/GetTableDDLResult.cc + src/model/GetTableObjectsRequest.cc + src/model/GetTableObjectsResult.cc + src/model/GetViewDDLRequest.cc + src/model/GetViewDDLResult.cc + src/model/GetViewObjectsRequest.cc + src/model/GetViewObjectsResult.cc + src/model/KillSparkAppRequest.cc + src/model/KillSparkAppResult.cc + src/model/KillSparkLogAnalyzeTaskRequest.cc + src/model/KillSparkLogAnalyzeTaskResult.cc + src/model/KillSparkSQLEngineRequest.cc + src/model/KillSparkSQLEngineResult.cc + src/model/ListSparkAppAttemptsRequest.cc + src/model/ListSparkAppAttemptsResult.cc + src/model/ListSparkAppsRequest.cc + src/model/ListSparkAppsResult.cc + src/model/ListSparkLogAnalyzeTasksRequest.cc + src/model/ListSparkLogAnalyzeTasksResult.cc + src/model/ListSparkTemplateFileIdsRequest.cc + src/model/ListSparkTemplateFileIdsResult.cc src/model/ModifyAccountDescriptionRequest.cc src/model/ModifyAccountDescriptionResult.cc src/model/ModifyAuditLogConfigRequest.cc src/model/ModifyAuditLogConfigResult.cc - src/model/ModifyAutoRenewAttributeRequest.cc - src/model/ModifyAutoRenewAttributeResult.cc src/model/ModifyBackupPolicyRequest.cc src/model/ModifyBackupPolicyResult.cc + src/model/ModifyClusterAccessWhiteListRequest.cc + src/model/ModifyClusterAccessWhiteListResult.cc src/model/ModifyClusterConnectionStringRequest.cc src/model/ModifyClusterConnectionStringResult.cc src/model/ModifyDBClusterRequest.cc src/model/ModifyDBClusterResult.cc - src/model/ModifyDBClusterAccessWhiteListRequest.cc - src/model/ModifyDBClusterAccessWhiteListResult.cc src/model/ModifyDBClusterDescriptionRequest.cc 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/PreloadSparkAppMetricsRequest.cc + src/model/PreloadSparkAppMetricsResult.cc src/model/ReleaseClusterPublicConnectionRequest.cc src/model/ReleaseClusterPublicConnectionResult.cc src/model/ResetAccountPasswordRequest.cc src/model/ResetAccountPasswordResult.cc - src/model/RevokeOperatorPermissionRequest.cc - 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 - src/model/UntagResourcesResult.cc ) + src/model/SetSparkAppLogRootPathRequest.cc + src/model/SetSparkAppLogRootPathResult.cc + src/model/StartSparkSQLEngineRequest.cc + src/model/StartSparkSQLEngineResult.cc + src/model/SubmitSparkAppRequest.cc + src/model/SubmitSparkAppResult.cc + src/model/SubmitSparkLogAnalyzeTaskRequest.cc + src/model/SubmitSparkLogAnalyzeTaskResult.cc + src/model/UnbindAccountRequest.cc + src/model/UnbindAccountResult.cc + src/model/UpdateSparkTemplateFileRequest.cc + src/model/UpdateSparkTemplateFileResult.cc ) add_library(adb ${LIB_TYPE} ${adb_public_header} diff --git a/adb/include/alibabacloud/adb/AdbClient.h b/adb/include/alibabacloud/adb/AdbClient.h index 9aa34a96a..4bdcd8868 100644 --- a/adb/include/alibabacloud/adb/AdbClient.h +++ b/adb/include/alibabacloud/adb/AdbClient.h @@ -24,178 +24,186 @@ #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/BindAccountRequest.h" +#include "model/BindAccountResult.h" +#include "model/CheckBindRamUserRequest.h" +#include "model/CheckBindRamUserResult.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" -#include "model/CreateElasticPlanResult.h" +#include "model/CreateOssSubDirectoryRequest.h" +#include "model/CreateOssSubDirectoryResult.h" +#include "model/CreateSparkTemplateRequest.h" +#include "model/CreateSparkTemplateResult.h" #include "model/DeleteAccountRequest.h" #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" -#include "model/DeleteElasticPlanResult.h" +#include "model/DeleteProcessInstanceRequest.h" +#include "model/DeleteProcessInstanceResult.h" +#include "model/DeleteSparkTemplateRequest.h" +#include "model/DeleteSparkTemplateResult.h" +#include "model/DeleteSparkTemplateFileRequest.h" +#include "model/DeleteSparkTemplateFileResult.h" #include "model/DescribeAccountsRequest.h" #include "model/DescribeAccountsResult.h" -#include "model/DescribeAllAccountsRequest.h" -#include "model/DescribeAllAccountsResult.h" -#include "model/DescribeAllDataSourceRequest.h" -#include "model/DescribeAllDataSourceResult.h" +#include "model/DescribeAdbMySqlColumnsRequest.h" +#include "model/DescribeAdbMySqlColumnsResult.h" +#include "model/DescribeAdbMySqlSchemasRequest.h" +#include "model/DescribeAdbMySqlSchemasResult.h" +#include "model/DescribeAdbMySqlTablesRequest.h" +#include "model/DescribeAdbMySqlTablesResult.h" +#include "model/DescribeApsActionLogsRequest.h" +#include "model/DescribeApsActionLogsResult.h" +#include "model/DescribeApsResourceGroupsRequest.h" +#include "model/DescribeApsResourceGroupsResult.h" #include "model/DescribeAuditLogConfigRequest.h" #include "model/DescribeAuditLogConfigResult.h" #include "model/DescribeAuditLogRecordsRequest.h" #include "model/DescribeAuditLogRecordsResult.h" -#include "model/DescribeAutoRenewAttributeRequest.h" -#include "model/DescribeAutoRenewAttributeResult.h" -#include "model/DescribeAvailableResourceRequest.h" -#include "model/DescribeAvailableResourceResult.h" #include "model/DescribeBackupPolicyRequest.h" #include "model/DescribeBackupPolicyResult.h" #include "model/DescribeBackupsRequest.h" #include "model/DescribeBackupsResult.h" -#include "model/DescribeColumnsRequest.h" -#include "model/DescribeColumnsResult.h" -#include "model/DescribeConnectionCountRecordsRequest.h" -#include "model/DescribeConnectionCountRecordsResult.h" -#include "model/DescribeDBClusterAccessWhiteListRequest.h" -#include "model/DescribeDBClusterAccessWhiteListResult.h" +#include "model/DescribeClusterAccessWhiteListRequest.h" +#include "model/DescribeClusterAccessWhiteListResult.h" +#include "model/DescribeClusterNetInfoRequest.h" +#include "model/DescribeClusterNetInfoResult.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/DescribeDBClusterHealthStatusRequest.h" +#include "model/DescribeDBClusterHealthStatusResult.h" #include "model/DescribeDBClusterPerformanceRequest.h" #include "model/DescribeDBClusterPerformanceResult.h" -#include "model/DescribeDBClusterResourcePoolPerformanceRequest.h" -#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/DescribeDiagnosisSQLInfoRequest.h" +#include "model/DescribeDiagnosisSQLInfoResult.h" #include "model/DescribeDownloadRecordsRequest.h" #include "model/DescribeDownloadRecordsResult.h" -#include "model/DescribeElasticDailyPlanRequest.h" -#include "model/DescribeElasticDailyPlanResult.h" -#include "model/DescribeElasticPlanRequest.h" -#include "model/DescribeElasticPlanResult.h" -#include "model/DescribeInclinedTablesRequest.h" -#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" -#include "model/DescribeSQLPlanTaskResult.h" -#include "model/DescribeSchemasRequest.h" -#include "model/DescribeSchemasResult.h" -#include "model/DescribeSlowLogRecordsRequest.h" -#include "model/DescribeSlowLogRecordsResult.h" -#include "model/DescribeSlowLogTrendRequest.h" -#include "model/DescribeSlowLogTrendResult.h" +#include "model/DescribeSparkCodeLogRequest.h" +#include "model/DescribeSparkCodeLogResult.h" +#include "model/DescribeSparkCodeOutputRequest.h" +#include "model/DescribeSparkCodeOutputResult.h" +#include "model/DescribeSparkCodeWebUiRequest.h" +#include "model/DescribeSparkCodeWebUiResult.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" -#include "model/DescribeTablePartitionDiagnoseResult.h" -#include "model/DescribeTableStatisticsRequest.h" -#include "model/DescribeTableStatisticsResult.h" -#include "model/DescribeTablesRequest.h" -#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" -#include "model/KillProcessResult.h" -#include "model/ListTagResourcesRequest.h" -#include "model/ListTagResourcesResult.h" +#include "model/GetDatabaseObjectsRequest.h" +#include "model/GetDatabaseObjectsResult.h" +#include "model/GetLakehouseValidResourceGroupsRequest.h" +#include "model/GetLakehouseValidResourceGroupsResult.h" +#include "model/GetSparkAppAttemptLogRequest.h" +#include "model/GetSparkAppAttemptLogResult.h" +#include "model/GetSparkAppInfoRequest.h" +#include "model/GetSparkAppInfoResult.h" +#include "model/GetSparkAppLogRequest.h" +#include "model/GetSparkAppLogResult.h" +#include "model/GetSparkAppMetricsRequest.h" +#include "model/GetSparkAppMetricsResult.h" +#include "model/GetSparkAppStateRequest.h" +#include "model/GetSparkAppStateResult.h" +#include "model/GetSparkAppWebUiAddressRequest.h" +#include "model/GetSparkAppWebUiAddressResult.h" +#include "model/GetSparkConfigLogPathRequest.h" +#include "model/GetSparkConfigLogPathResult.h" +#include "model/GetSparkLogAnalyzeTaskRequest.h" +#include "model/GetSparkLogAnalyzeTaskResult.h" +#include "model/GetSparkSQLEngineStateRequest.h" +#include "model/GetSparkSQLEngineStateResult.h" +#include "model/GetSparkTemplateFileContentRequest.h" +#include "model/GetSparkTemplateFileContentResult.h" +#include "model/GetSparkTemplateFolderTreeRequest.h" +#include "model/GetSparkTemplateFolderTreeResult.h" +#include "model/GetSparkTemplateFullTreeRequest.h" +#include "model/GetSparkTemplateFullTreeResult.h" +#include "model/GetTableRequest.h" +#include "model/GetTableResult.h" +#include "model/GetTableColumnsRequest.h" +#include "model/GetTableColumnsResult.h" +#include "model/GetTableDDLRequest.h" +#include "model/GetTableDDLResult.h" +#include "model/GetTableObjectsRequest.h" +#include "model/GetTableObjectsResult.h" +#include "model/GetViewDDLRequest.h" +#include "model/GetViewDDLResult.h" +#include "model/GetViewObjectsRequest.h" +#include "model/GetViewObjectsResult.h" +#include "model/KillSparkAppRequest.h" +#include "model/KillSparkAppResult.h" +#include "model/KillSparkLogAnalyzeTaskRequest.h" +#include "model/KillSparkLogAnalyzeTaskResult.h" +#include "model/KillSparkSQLEngineRequest.h" +#include "model/KillSparkSQLEngineResult.h" +#include "model/ListSparkAppAttemptsRequest.h" +#include "model/ListSparkAppAttemptsResult.h" +#include "model/ListSparkAppsRequest.h" +#include "model/ListSparkAppsResult.h" +#include "model/ListSparkLogAnalyzeTasksRequest.h" +#include "model/ListSparkLogAnalyzeTasksResult.h" +#include "model/ListSparkTemplateFileIdsRequest.h" +#include "model/ListSparkTemplateFileIdsResult.h" #include "model/ModifyAccountDescriptionRequest.h" #include "model/ModifyAccountDescriptionResult.h" #include "model/ModifyAuditLogConfigRequest.h" #include "model/ModifyAuditLogConfigResult.h" -#include "model/ModifyAutoRenewAttributeRequest.h" -#include "model/ModifyAutoRenewAttributeResult.h" #include "model/ModifyBackupPolicyRequest.h" #include "model/ModifyBackupPolicyResult.h" +#include "model/ModifyClusterAccessWhiteListRequest.h" +#include "model/ModifyClusterAccessWhiteListResult.h" #include "model/ModifyClusterConnectionStringRequest.h" #include "model/ModifyClusterConnectionStringResult.h" #include "model/ModifyDBClusterRequest.h" #include "model/ModifyDBClusterResult.h" -#include "model/ModifyDBClusterAccessWhiteListRequest.h" -#include "model/ModifyDBClusterAccessWhiteListResult.h" #include "model/ModifyDBClusterDescriptionRequest.h" #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/PreloadSparkAppMetricsRequest.h" +#include "model/PreloadSparkAppMetricsResult.h" #include "model/ReleaseClusterPublicConnectionRequest.h" #include "model/ReleaseClusterPublicConnectionResult.h" #include "model/ResetAccountPasswordRequest.h" #include "model/ResetAccountPasswordResult.h" -#include "model/RevokeOperatorPermissionRequest.h" -#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" -#include "model/UntagResourcesResult.h" +#include "model/SetSparkAppLogRootPathRequest.h" +#include "model/SetSparkAppLogRootPathResult.h" +#include "model/StartSparkSQLEngineRequest.h" +#include "model/StartSparkSQLEngineResult.h" +#include "model/SubmitSparkAppRequest.h" +#include "model/SubmitSparkAppResult.h" +#include "model/SubmitSparkLogAnalyzeTaskRequest.h" +#include "model/SubmitSparkLogAnalyzeTaskResult.h" +#include "model/UnbindAccountRequest.h" +#include "model/UnbindAccountResult.h" +#include "model/UpdateSparkTemplateFileRequest.h" +#include "model/UpdateSparkTemplateFileResult.h" namespace AlibabaCloud @@ -208,12 +216,12 @@ 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; + typedef Outcome BindAccountOutcome; + typedef std::future BindAccountOutcomeCallable; + typedef std::function&)> BindAccountAsyncHandler; + typedef Outcome CheckBindRamUserOutcome; + typedef std::future CheckBindRamUserOutcomeCallable; + typedef std::function&)> CheckBindRamUserAsyncHandler; typedef Outcome CreateAccountOutcome; typedef std::future CreateAccountOutcomeCallable; typedef std::function&)> CreateAccountAsyncHandler; @@ -223,12 +231,12 @@ namespace AlibabaCloud typedef Outcome CreateDBResourceGroupOutcome; typedef std::future CreateDBResourceGroupOutcomeCallable; typedef std::function&)> CreateDBResourceGroupAsyncHandler; - typedef Outcome CreateDBResourcePoolOutcome; - typedef std::future CreateDBResourcePoolOutcomeCallable; - typedef std::function&)> CreateDBResourcePoolAsyncHandler; - typedef Outcome CreateElasticPlanOutcome; - typedef std::future CreateElasticPlanOutcomeCallable; - typedef std::function&)> CreateElasticPlanAsyncHandler; + typedef Outcome CreateOssSubDirectoryOutcome; + typedef std::future CreateOssSubDirectoryOutcomeCallable; + typedef std::function&)> CreateOssSubDirectoryAsyncHandler; + typedef Outcome CreateSparkTemplateOutcome; + typedef std::future CreateSparkTemplateOutcomeCallable; + typedef std::function&)> CreateSparkTemplateAsyncHandler; typedef Outcome DeleteAccountOutcome; typedef std::future DeleteAccountOutcomeCallable; typedef std::function&)> DeleteAccountAsyncHandler; @@ -238,108 +246,84 @@ namespace AlibabaCloud typedef Outcome DeleteDBResourceGroupOutcome; typedef std::future DeleteDBResourceGroupOutcomeCallable; typedef std::function&)> DeleteDBResourceGroupAsyncHandler; - typedef Outcome DeleteDBResourcePoolOutcome; - typedef std::future DeleteDBResourcePoolOutcomeCallable; - typedef std::function&)> DeleteDBResourcePoolAsyncHandler; - typedef Outcome DeleteElasticPlanOutcome; - typedef std::future DeleteElasticPlanOutcomeCallable; - typedef std::function&)> DeleteElasticPlanAsyncHandler; + typedef Outcome DeleteProcessInstanceOutcome; + typedef std::future DeleteProcessInstanceOutcomeCallable; + typedef std::function&)> DeleteProcessInstanceAsyncHandler; + typedef Outcome DeleteSparkTemplateOutcome; + typedef std::future DeleteSparkTemplateOutcomeCallable; + typedef std::function&)> DeleteSparkTemplateAsyncHandler; + typedef Outcome DeleteSparkTemplateFileOutcome; + typedef std::future DeleteSparkTemplateFileOutcomeCallable; + typedef std::function&)> DeleteSparkTemplateFileAsyncHandler; typedef Outcome DescribeAccountsOutcome; typedef std::future DescribeAccountsOutcomeCallable; typedef std::function&)> DescribeAccountsAsyncHandler; - typedef Outcome DescribeAllAccountsOutcome; - typedef std::future DescribeAllAccountsOutcomeCallable; - typedef std::function&)> DescribeAllAccountsAsyncHandler; - typedef Outcome DescribeAllDataSourceOutcome; - typedef std::future DescribeAllDataSourceOutcomeCallable; - typedef std::function&)> DescribeAllDataSourceAsyncHandler; + typedef Outcome DescribeAdbMySqlColumnsOutcome; + typedef std::future DescribeAdbMySqlColumnsOutcomeCallable; + typedef std::function&)> DescribeAdbMySqlColumnsAsyncHandler; + typedef Outcome DescribeAdbMySqlSchemasOutcome; + typedef std::future DescribeAdbMySqlSchemasOutcomeCallable; + typedef std::function&)> DescribeAdbMySqlSchemasAsyncHandler; + typedef Outcome DescribeAdbMySqlTablesOutcome; + typedef std::future DescribeAdbMySqlTablesOutcomeCallable; + typedef std::function&)> DescribeAdbMySqlTablesAsyncHandler; + typedef Outcome DescribeApsActionLogsOutcome; + typedef std::future DescribeApsActionLogsOutcomeCallable; + typedef std::function&)> DescribeApsActionLogsAsyncHandler; + typedef Outcome DescribeApsResourceGroupsOutcome; + typedef std::future DescribeApsResourceGroupsOutcomeCallable; + typedef std::function&)> DescribeApsResourceGroupsAsyncHandler; typedef Outcome DescribeAuditLogConfigOutcome; typedef std::future DescribeAuditLogConfigOutcomeCallable; typedef std::function&)> DescribeAuditLogConfigAsyncHandler; typedef Outcome DescribeAuditLogRecordsOutcome; typedef std::future DescribeAuditLogRecordsOutcomeCallable; typedef std::function&)> DescribeAuditLogRecordsAsyncHandler; - typedef Outcome DescribeAutoRenewAttributeOutcome; - typedef std::future DescribeAutoRenewAttributeOutcomeCallable; - typedef std::function&)> DescribeAutoRenewAttributeAsyncHandler; - typedef Outcome DescribeAvailableResourceOutcome; - typedef std::future DescribeAvailableResourceOutcomeCallable; - typedef std::function&)> DescribeAvailableResourceAsyncHandler; typedef Outcome DescribeBackupPolicyOutcome; typedef std::future DescribeBackupPolicyOutcomeCallable; typedef std::function&)> DescribeBackupPolicyAsyncHandler; typedef Outcome DescribeBackupsOutcome; typedef std::future DescribeBackupsOutcomeCallable; typedef std::function&)> DescribeBackupsAsyncHandler; - typedef Outcome DescribeColumnsOutcome; - typedef std::future DescribeColumnsOutcomeCallable; - typedef std::function&)> DescribeColumnsAsyncHandler; - typedef Outcome DescribeConnectionCountRecordsOutcome; - typedef std::future DescribeConnectionCountRecordsOutcomeCallable; - typedef std::function&)> DescribeConnectionCountRecordsAsyncHandler; - typedef Outcome DescribeDBClusterAccessWhiteListOutcome; - typedef std::future DescribeDBClusterAccessWhiteListOutcomeCallable; - typedef std::function&)> DescribeDBClusterAccessWhiteListAsyncHandler; + typedef Outcome DescribeClusterAccessWhiteListOutcome; + typedef std::future DescribeClusterAccessWhiteListOutcomeCallable; + typedef std::function&)> DescribeClusterAccessWhiteListAsyncHandler; + typedef Outcome DescribeClusterNetInfoOutcome; + typedef std::future DescribeClusterNetInfoOutcomeCallable; + typedef std::function&)> DescribeClusterNetInfoAsyncHandler; 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; + typedef Outcome DescribeDBClusterHealthStatusOutcome; + typedef std::future DescribeDBClusterHealthStatusOutcomeCallable; + typedef std::function&)> DescribeDBClusterHealthStatusAsyncHandler; typedef Outcome DescribeDBClusterPerformanceOutcome; typedef std::future DescribeDBClusterPerformanceOutcomeCallable; typedef std::function&)> DescribeDBClusterPerformanceAsyncHandler; - typedef Outcome DescribeDBClusterResourcePoolPerformanceOutcome; - typedef std::future DescribeDBClusterResourcePoolPerformanceOutcomeCallable; - typedef std::function&)> DescribeDBClusterResourcePoolPerformanceAsyncHandler; 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 DescribeDiagnosisSQLInfoOutcome; + typedef std::future DescribeDiagnosisSQLInfoOutcomeCallable; + typedef std::function&)> DescribeDiagnosisSQLInfoAsyncHandler; typedef Outcome DescribeDownloadRecordsOutcome; typedef std::future DescribeDownloadRecordsOutcomeCallable; typedef std::function&)> DescribeDownloadRecordsAsyncHandler; - typedef Outcome DescribeElasticDailyPlanOutcome; - typedef std::future DescribeElasticDailyPlanOutcomeCallable; - typedef std::function&)> DescribeElasticDailyPlanAsyncHandler; - typedef Outcome DescribeElasticPlanOutcome; - typedef std::future DescribeElasticPlanOutcomeCallable; - typedef std::function&)> DescribeElasticPlanAsyncHandler; - typedef Outcome DescribeInclinedTablesOutcome; - typedef std::future DescribeInclinedTablesOutcomeCallable; - typedef std::function&)> DescribeInclinedTablesAsyncHandler; - 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; @@ -349,123 +333,159 @@ namespace AlibabaCloud typedef Outcome DescribeSQLPatternsOutcome; typedef std::future DescribeSQLPatternsOutcomeCallable; typedef std::function&)> DescribeSQLPatternsAsyncHandler; - typedef Outcome DescribeSQLPlanOutcome; - typedef std::future DescribeSQLPlanOutcomeCallable; - typedef std::function&)> DescribeSQLPlanAsyncHandler; - typedef Outcome DescribeSQLPlanTaskOutcome; - typedef std::future DescribeSQLPlanTaskOutcomeCallable; - typedef std::function&)> DescribeSQLPlanTaskAsyncHandler; - typedef Outcome DescribeSchemasOutcome; - typedef std::future DescribeSchemasOutcomeCallable; - typedef std::function&)> DescribeSchemasAsyncHandler; - typedef Outcome DescribeSlowLogRecordsOutcome; - typedef std::future DescribeSlowLogRecordsOutcomeCallable; - typedef std::function&)> DescribeSlowLogRecordsAsyncHandler; - typedef Outcome DescribeSlowLogTrendOutcome; - typedef std::future DescribeSlowLogTrendOutcomeCallable; - typedef std::function&)> DescribeSlowLogTrendAsyncHandler; + typedef Outcome DescribeSparkCodeLogOutcome; + typedef std::future DescribeSparkCodeLogOutcomeCallable; + typedef std::function&)> DescribeSparkCodeLogAsyncHandler; + typedef Outcome DescribeSparkCodeOutputOutcome; + typedef std::future DescribeSparkCodeOutputOutcomeCallable; + typedef std::function&)> DescribeSparkCodeOutputAsyncHandler; + typedef Outcome DescribeSparkCodeWebUiOutcome; + typedef std::future DescribeSparkCodeWebUiOutcomeCallable; + typedef std::function&)> DescribeSparkCodeWebUiAsyncHandler; 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; - typedef Outcome DescribeTablePartitionDiagnoseOutcome; - typedef std::future DescribeTablePartitionDiagnoseOutcomeCallable; - typedef std::function&)> DescribeTablePartitionDiagnoseAsyncHandler; - typedef Outcome DescribeTableStatisticsOutcome; - typedef std::future DescribeTableStatisticsOutcomeCallable; - typedef std::function&)> DescribeTableStatisticsAsyncHandler; - typedef Outcome DescribeTablesOutcome; - typedef std::future DescribeTablesOutcomeCallable; - typedef std::function&)> DescribeTablesAsyncHandler; - 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; - typedef Outcome KillProcessOutcome; - typedef std::future KillProcessOutcomeCallable; - typedef std::function&)> KillProcessAsyncHandler; - typedef Outcome ListTagResourcesOutcome; - typedef std::future ListTagResourcesOutcomeCallable; - typedef std::function&)> ListTagResourcesAsyncHandler; + typedef Outcome GetDatabaseObjectsOutcome; + typedef std::future GetDatabaseObjectsOutcomeCallable; + typedef std::function&)> GetDatabaseObjectsAsyncHandler; + typedef Outcome GetLakehouseValidResourceGroupsOutcome; + typedef std::future GetLakehouseValidResourceGroupsOutcomeCallable; + typedef std::function&)> GetLakehouseValidResourceGroupsAsyncHandler; + typedef Outcome GetSparkAppAttemptLogOutcome; + typedef std::future GetSparkAppAttemptLogOutcomeCallable; + typedef std::function&)> GetSparkAppAttemptLogAsyncHandler; + typedef Outcome GetSparkAppInfoOutcome; + typedef std::future GetSparkAppInfoOutcomeCallable; + typedef std::function&)> GetSparkAppInfoAsyncHandler; + typedef Outcome GetSparkAppLogOutcome; + typedef std::future GetSparkAppLogOutcomeCallable; + typedef std::function&)> GetSparkAppLogAsyncHandler; + typedef Outcome GetSparkAppMetricsOutcome; + typedef std::future GetSparkAppMetricsOutcomeCallable; + typedef std::function&)> GetSparkAppMetricsAsyncHandler; + typedef Outcome GetSparkAppStateOutcome; + typedef std::future GetSparkAppStateOutcomeCallable; + typedef std::function&)> GetSparkAppStateAsyncHandler; + typedef Outcome GetSparkAppWebUiAddressOutcome; + typedef std::future GetSparkAppWebUiAddressOutcomeCallable; + typedef std::function&)> GetSparkAppWebUiAddressAsyncHandler; + typedef Outcome GetSparkConfigLogPathOutcome; + typedef std::future GetSparkConfigLogPathOutcomeCallable; + typedef std::function&)> GetSparkConfigLogPathAsyncHandler; + typedef Outcome GetSparkLogAnalyzeTaskOutcome; + typedef std::future GetSparkLogAnalyzeTaskOutcomeCallable; + typedef std::function&)> GetSparkLogAnalyzeTaskAsyncHandler; + typedef Outcome GetSparkSQLEngineStateOutcome; + typedef std::future GetSparkSQLEngineStateOutcomeCallable; + typedef std::function&)> GetSparkSQLEngineStateAsyncHandler; + typedef Outcome GetSparkTemplateFileContentOutcome; + typedef std::future GetSparkTemplateFileContentOutcomeCallable; + typedef std::function&)> GetSparkTemplateFileContentAsyncHandler; + typedef Outcome GetSparkTemplateFolderTreeOutcome; + typedef std::future GetSparkTemplateFolderTreeOutcomeCallable; + typedef std::function&)> GetSparkTemplateFolderTreeAsyncHandler; + typedef Outcome GetSparkTemplateFullTreeOutcome; + typedef std::future GetSparkTemplateFullTreeOutcomeCallable; + typedef std::function&)> GetSparkTemplateFullTreeAsyncHandler; + typedef Outcome GetTableOutcome; + typedef std::future GetTableOutcomeCallable; + typedef std::function&)> GetTableAsyncHandler; + typedef Outcome GetTableColumnsOutcome; + typedef std::future GetTableColumnsOutcomeCallable; + typedef std::function&)> GetTableColumnsAsyncHandler; + typedef Outcome GetTableDDLOutcome; + typedef std::future GetTableDDLOutcomeCallable; + typedef std::function&)> GetTableDDLAsyncHandler; + typedef Outcome GetTableObjectsOutcome; + typedef std::future GetTableObjectsOutcomeCallable; + typedef std::function&)> GetTableObjectsAsyncHandler; + typedef Outcome GetViewDDLOutcome; + typedef std::future GetViewDDLOutcomeCallable; + typedef std::function&)> GetViewDDLAsyncHandler; + typedef Outcome GetViewObjectsOutcome; + typedef std::future GetViewObjectsOutcomeCallable; + typedef std::function&)> GetViewObjectsAsyncHandler; + typedef Outcome KillSparkAppOutcome; + typedef std::future KillSparkAppOutcomeCallable; + typedef std::function&)> KillSparkAppAsyncHandler; + typedef Outcome KillSparkLogAnalyzeTaskOutcome; + typedef std::future KillSparkLogAnalyzeTaskOutcomeCallable; + typedef std::function&)> KillSparkLogAnalyzeTaskAsyncHandler; + typedef Outcome KillSparkSQLEngineOutcome; + typedef std::future KillSparkSQLEngineOutcomeCallable; + typedef std::function&)> KillSparkSQLEngineAsyncHandler; + typedef Outcome ListSparkAppAttemptsOutcome; + typedef std::future ListSparkAppAttemptsOutcomeCallable; + typedef std::function&)> ListSparkAppAttemptsAsyncHandler; + typedef Outcome ListSparkAppsOutcome; + typedef std::future ListSparkAppsOutcomeCallable; + typedef std::function&)> ListSparkAppsAsyncHandler; + typedef Outcome ListSparkLogAnalyzeTasksOutcome; + typedef std::future ListSparkLogAnalyzeTasksOutcomeCallable; + typedef std::function&)> ListSparkLogAnalyzeTasksAsyncHandler; + typedef Outcome ListSparkTemplateFileIdsOutcome; + typedef std::future ListSparkTemplateFileIdsOutcomeCallable; + typedef std::function&)> ListSparkTemplateFileIdsAsyncHandler; typedef Outcome ModifyAccountDescriptionOutcome; typedef std::future ModifyAccountDescriptionOutcomeCallable; typedef std::function&)> ModifyAccountDescriptionAsyncHandler; typedef Outcome ModifyAuditLogConfigOutcome; typedef std::future ModifyAuditLogConfigOutcomeCallable; typedef std::function&)> ModifyAuditLogConfigAsyncHandler; - typedef Outcome ModifyAutoRenewAttributeOutcome; - typedef std::future ModifyAutoRenewAttributeOutcomeCallable; - typedef std::function&)> ModifyAutoRenewAttributeAsyncHandler; typedef Outcome ModifyBackupPolicyOutcome; typedef std::future ModifyBackupPolicyOutcomeCallable; typedef std::function&)> ModifyBackupPolicyAsyncHandler; + typedef Outcome ModifyClusterAccessWhiteListOutcome; + typedef std::future ModifyClusterAccessWhiteListOutcomeCallable; + typedef std::function&)> ModifyClusterAccessWhiteListAsyncHandler; typedef Outcome ModifyClusterConnectionStringOutcome; typedef std::future ModifyClusterConnectionStringOutcomeCallable; typedef std::function&)> ModifyClusterConnectionStringAsyncHandler; typedef Outcome ModifyDBClusterOutcome; typedef std::future ModifyDBClusterOutcomeCallable; typedef std::function&)> ModifyDBClusterAsyncHandler; - typedef Outcome ModifyDBClusterAccessWhiteListOutcome; - typedef std::future ModifyDBClusterAccessWhiteListOutcomeCallable; - typedef std::function&)> ModifyDBClusterAccessWhiteListAsyncHandler; typedef Outcome ModifyDBClusterDescriptionOutcome; typedef std::future ModifyDBClusterDescriptionOutcomeCallable; typedef std::function&)> ModifyDBClusterDescriptionAsyncHandler; 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; - typedef Outcome ModifyElasticPlanOutcome; - typedef std::future ModifyElasticPlanOutcomeCallable; - typedef std::function&)> ModifyElasticPlanAsyncHandler; - typedef Outcome ModifyLogBackupPolicyOutcome; - typedef std::future ModifyLogBackupPolicyOutcomeCallable; - typedef std::function&)> ModifyLogBackupPolicyAsyncHandler; - typedef Outcome ModifyMaintenanceActionOutcome; - typedef std::future ModifyMaintenanceActionOutcomeCallable; - typedef std::function&)> ModifyMaintenanceActionAsyncHandler; + typedef Outcome PreloadSparkAppMetricsOutcome; + typedef std::future PreloadSparkAppMetricsOutcomeCallable; + typedef std::function&)> PreloadSparkAppMetricsAsyncHandler; typedef Outcome ReleaseClusterPublicConnectionOutcome; typedef std::future ReleaseClusterPublicConnectionOutcomeCallable; typedef std::function&)> ReleaseClusterPublicConnectionAsyncHandler; typedef Outcome ResetAccountPasswordOutcome; typedef std::future ResetAccountPasswordOutcomeCallable; typedef std::function&)> ResetAccountPasswordAsyncHandler; - typedef Outcome RevokeOperatorPermissionOutcome; - typedef std::future RevokeOperatorPermissionOutcomeCallable; - typedef std::function&)> RevokeOperatorPermissionAsyncHandler; - 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; - typedef Outcome UntagResourcesOutcome; - typedef std::future UntagResourcesOutcomeCallable; - typedef std::function&)> UntagResourcesAsyncHandler; + typedef Outcome SetSparkAppLogRootPathOutcome; + typedef std::future SetSparkAppLogRootPathOutcomeCallable; + typedef std::function&)> SetSparkAppLogRootPathAsyncHandler; + typedef Outcome StartSparkSQLEngineOutcome; + typedef std::future StartSparkSQLEngineOutcomeCallable; + typedef std::function&)> StartSparkSQLEngineAsyncHandler; + typedef Outcome SubmitSparkAppOutcome; + typedef std::future SubmitSparkAppOutcomeCallable; + typedef std::function&)> SubmitSparkAppAsyncHandler; + typedef Outcome SubmitSparkLogAnalyzeTaskOutcome; + typedef std::future SubmitSparkLogAnalyzeTaskOutcomeCallable; + typedef std::function&)> SubmitSparkLogAnalyzeTaskAsyncHandler; + typedef Outcome UnbindAccountOutcome; + typedef std::future UnbindAccountOutcomeCallable; + typedef std::function&)> UnbindAccountAsyncHandler; + typedef Outcome UpdateSparkTemplateFileOutcome; + typedef std::future UpdateSparkTemplateFileOutcomeCallable; + typedef std::function&)> UpdateSparkTemplateFileAsyncHandler; AdbClient(const Credentials &credentials, const ClientConfiguration &configuration); AdbClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); @@ -474,12 +494,12 @@ 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; + BindAccountOutcome bindAccount(const Model::BindAccountRequest &request)const; + void bindAccountAsync(const Model::BindAccountRequest& request, const BindAccountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + BindAccountOutcomeCallable bindAccountCallable(const Model::BindAccountRequest& request) const; + CheckBindRamUserOutcome checkBindRamUser(const Model::CheckBindRamUserRequest &request)const; + void checkBindRamUserAsync(const Model::CheckBindRamUserRequest& request, const CheckBindRamUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CheckBindRamUserOutcomeCallable checkBindRamUserCallable(const Model::CheckBindRamUserRequest& request) const; CreateAccountOutcome createAccount(const Model::CreateAccountRequest &request)const; void createAccountAsync(const Model::CreateAccountRequest& request, const CreateAccountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateAccountOutcomeCallable createAccountCallable(const Model::CreateAccountRequest& request) const; @@ -489,12 +509,12 @@ namespace AlibabaCloud 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; - CreateElasticPlanOutcome createElasticPlan(const Model::CreateElasticPlanRequest &request)const; - void createElasticPlanAsync(const Model::CreateElasticPlanRequest& request, const CreateElasticPlanAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateElasticPlanOutcomeCallable createElasticPlanCallable(const Model::CreateElasticPlanRequest& request) const; + CreateOssSubDirectoryOutcome createOssSubDirectory(const Model::CreateOssSubDirectoryRequest &request)const; + void createOssSubDirectoryAsync(const Model::CreateOssSubDirectoryRequest& request, const CreateOssSubDirectoryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateOssSubDirectoryOutcomeCallable createOssSubDirectoryCallable(const Model::CreateOssSubDirectoryRequest& request) const; + CreateSparkTemplateOutcome createSparkTemplate(const Model::CreateSparkTemplateRequest &request)const; + void createSparkTemplateAsync(const Model::CreateSparkTemplateRequest& request, const CreateSparkTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateSparkTemplateOutcomeCallable createSparkTemplateCallable(const Model::CreateSparkTemplateRequest& request) const; DeleteAccountOutcome deleteAccount(const Model::DeleteAccountRequest &request)const; void deleteAccountAsync(const Model::DeleteAccountRequest& request, const DeleteAccountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteAccountOutcomeCallable deleteAccountCallable(const Model::DeleteAccountRequest& request) const; @@ -504,108 +524,84 @@ namespace AlibabaCloud 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; - DeleteElasticPlanOutcome deleteElasticPlan(const Model::DeleteElasticPlanRequest &request)const; - void deleteElasticPlanAsync(const Model::DeleteElasticPlanRequest& request, const DeleteElasticPlanAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteElasticPlanOutcomeCallable deleteElasticPlanCallable(const Model::DeleteElasticPlanRequest& request) const; + DeleteProcessInstanceOutcome deleteProcessInstance(const Model::DeleteProcessInstanceRequest &request)const; + void deleteProcessInstanceAsync(const Model::DeleteProcessInstanceRequest& request, const DeleteProcessInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteProcessInstanceOutcomeCallable deleteProcessInstanceCallable(const Model::DeleteProcessInstanceRequest& request) const; + DeleteSparkTemplateOutcome deleteSparkTemplate(const Model::DeleteSparkTemplateRequest &request)const; + void deleteSparkTemplateAsync(const Model::DeleteSparkTemplateRequest& request, const DeleteSparkTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteSparkTemplateOutcomeCallable deleteSparkTemplateCallable(const Model::DeleteSparkTemplateRequest& request) const; + DeleteSparkTemplateFileOutcome deleteSparkTemplateFile(const Model::DeleteSparkTemplateFileRequest &request)const; + void deleteSparkTemplateFileAsync(const Model::DeleteSparkTemplateFileRequest& request, const DeleteSparkTemplateFileAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteSparkTemplateFileOutcomeCallable deleteSparkTemplateFileCallable(const Model::DeleteSparkTemplateFileRequest& request) const; DescribeAccountsOutcome describeAccounts(const Model::DescribeAccountsRequest &request)const; void describeAccountsAsync(const Model::DescribeAccountsRequest& request, const DescribeAccountsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeAccountsOutcomeCallable describeAccountsCallable(const Model::DescribeAccountsRequest& request) const; - DescribeAllAccountsOutcome describeAllAccounts(const Model::DescribeAllAccountsRequest &request)const; - void describeAllAccountsAsync(const Model::DescribeAllAccountsRequest& request, const DescribeAllAccountsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeAllAccountsOutcomeCallable describeAllAccountsCallable(const Model::DescribeAllAccountsRequest& request) const; - DescribeAllDataSourceOutcome describeAllDataSource(const Model::DescribeAllDataSourceRequest &request)const; - void describeAllDataSourceAsync(const Model::DescribeAllDataSourceRequest& request, const DescribeAllDataSourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeAllDataSourceOutcomeCallable describeAllDataSourceCallable(const Model::DescribeAllDataSourceRequest& request) const; + DescribeAdbMySqlColumnsOutcome describeAdbMySqlColumns(const Model::DescribeAdbMySqlColumnsRequest &request)const; + void describeAdbMySqlColumnsAsync(const Model::DescribeAdbMySqlColumnsRequest& request, const DescribeAdbMySqlColumnsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAdbMySqlColumnsOutcomeCallable describeAdbMySqlColumnsCallable(const Model::DescribeAdbMySqlColumnsRequest& request) const; + DescribeAdbMySqlSchemasOutcome describeAdbMySqlSchemas(const Model::DescribeAdbMySqlSchemasRequest &request)const; + void describeAdbMySqlSchemasAsync(const Model::DescribeAdbMySqlSchemasRequest& request, const DescribeAdbMySqlSchemasAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAdbMySqlSchemasOutcomeCallable describeAdbMySqlSchemasCallable(const Model::DescribeAdbMySqlSchemasRequest& request) const; + DescribeAdbMySqlTablesOutcome describeAdbMySqlTables(const Model::DescribeAdbMySqlTablesRequest &request)const; + void describeAdbMySqlTablesAsync(const Model::DescribeAdbMySqlTablesRequest& request, const DescribeAdbMySqlTablesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAdbMySqlTablesOutcomeCallable describeAdbMySqlTablesCallable(const Model::DescribeAdbMySqlTablesRequest& request) const; + DescribeApsActionLogsOutcome describeApsActionLogs(const Model::DescribeApsActionLogsRequest &request)const; + void describeApsActionLogsAsync(const Model::DescribeApsActionLogsRequest& request, const DescribeApsActionLogsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeApsActionLogsOutcomeCallable describeApsActionLogsCallable(const Model::DescribeApsActionLogsRequest& request) const; + DescribeApsResourceGroupsOutcome describeApsResourceGroups(const Model::DescribeApsResourceGroupsRequest &request)const; + void describeApsResourceGroupsAsync(const Model::DescribeApsResourceGroupsRequest& request, const DescribeApsResourceGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeApsResourceGroupsOutcomeCallable describeApsResourceGroupsCallable(const Model::DescribeApsResourceGroupsRequest& request) const; DescribeAuditLogConfigOutcome describeAuditLogConfig(const Model::DescribeAuditLogConfigRequest &request)const; void describeAuditLogConfigAsync(const Model::DescribeAuditLogConfigRequest& request, const DescribeAuditLogConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeAuditLogConfigOutcomeCallable describeAuditLogConfigCallable(const Model::DescribeAuditLogConfigRequest& request) const; DescribeAuditLogRecordsOutcome describeAuditLogRecords(const Model::DescribeAuditLogRecordsRequest &request)const; void describeAuditLogRecordsAsync(const Model::DescribeAuditLogRecordsRequest& request, const DescribeAuditLogRecordsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeAuditLogRecordsOutcomeCallable describeAuditLogRecordsCallable(const Model::DescribeAuditLogRecordsRequest& request) const; - DescribeAutoRenewAttributeOutcome describeAutoRenewAttribute(const Model::DescribeAutoRenewAttributeRequest &request)const; - void describeAutoRenewAttributeAsync(const Model::DescribeAutoRenewAttributeRequest& request, const DescribeAutoRenewAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeAutoRenewAttributeOutcomeCallable describeAutoRenewAttributeCallable(const Model::DescribeAutoRenewAttributeRequest& request) const; - DescribeAvailableResourceOutcome describeAvailableResource(const Model::DescribeAvailableResourceRequest &request)const; - void describeAvailableResourceAsync(const Model::DescribeAvailableResourceRequest& request, const DescribeAvailableResourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeAvailableResourceOutcomeCallable describeAvailableResourceCallable(const Model::DescribeAvailableResourceRequest& request) const; DescribeBackupPolicyOutcome describeBackupPolicy(const Model::DescribeBackupPolicyRequest &request)const; void describeBackupPolicyAsync(const Model::DescribeBackupPolicyRequest& request, const DescribeBackupPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeBackupPolicyOutcomeCallable describeBackupPolicyCallable(const Model::DescribeBackupPolicyRequest& request) const; DescribeBackupsOutcome describeBackups(const Model::DescribeBackupsRequest &request)const; void describeBackupsAsync(const Model::DescribeBackupsRequest& request, const DescribeBackupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeBackupsOutcomeCallable describeBackupsCallable(const Model::DescribeBackupsRequest& request) const; - DescribeColumnsOutcome describeColumns(const Model::DescribeColumnsRequest &request)const; - void describeColumnsAsync(const Model::DescribeColumnsRequest& request, const DescribeColumnsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeColumnsOutcomeCallable describeColumnsCallable(const Model::DescribeColumnsRequest& request) const; - DescribeConnectionCountRecordsOutcome describeConnectionCountRecords(const Model::DescribeConnectionCountRecordsRequest &request)const; - void describeConnectionCountRecordsAsync(const Model::DescribeConnectionCountRecordsRequest& request, const DescribeConnectionCountRecordsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeConnectionCountRecordsOutcomeCallable describeConnectionCountRecordsCallable(const Model::DescribeConnectionCountRecordsRequest& request) const; - DescribeDBClusterAccessWhiteListOutcome describeDBClusterAccessWhiteList(const Model::DescribeDBClusterAccessWhiteListRequest &request)const; - void describeDBClusterAccessWhiteListAsync(const Model::DescribeDBClusterAccessWhiteListRequest& request, const DescribeDBClusterAccessWhiteListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeDBClusterAccessWhiteListOutcomeCallable describeDBClusterAccessWhiteListCallable(const Model::DescribeDBClusterAccessWhiteListRequest& request) const; + DescribeClusterAccessWhiteListOutcome describeClusterAccessWhiteList(const Model::DescribeClusterAccessWhiteListRequest &request)const; + void describeClusterAccessWhiteListAsync(const Model::DescribeClusterAccessWhiteListRequest& request, const DescribeClusterAccessWhiteListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeClusterAccessWhiteListOutcomeCallable describeClusterAccessWhiteListCallable(const Model::DescribeClusterAccessWhiteListRequest& request) const; + DescribeClusterNetInfoOutcome describeClusterNetInfo(const Model::DescribeClusterNetInfoRequest &request)const; + void describeClusterNetInfoAsync(const Model::DescribeClusterNetInfoRequest& request, const DescribeClusterNetInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeClusterNetInfoOutcomeCallable describeClusterNetInfoCallable(const Model::DescribeClusterNetInfoRequest& request) const; 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; + DescribeDBClusterHealthStatusOutcome describeDBClusterHealthStatus(const Model::DescribeDBClusterHealthStatusRequest &request)const; + void describeDBClusterHealthStatusAsync(const Model::DescribeDBClusterHealthStatusRequest& request, const DescribeDBClusterHealthStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDBClusterHealthStatusOutcomeCallable describeDBClusterHealthStatusCallable(const Model::DescribeDBClusterHealthStatusRequest& request) const; DescribeDBClusterPerformanceOutcome describeDBClusterPerformance(const Model::DescribeDBClusterPerformanceRequest &request)const; void describeDBClusterPerformanceAsync(const Model::DescribeDBClusterPerformanceRequest& request, const DescribeDBClusterPerformanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDBClusterPerformanceOutcomeCallable describeDBClusterPerformanceCallable(const Model::DescribeDBClusterPerformanceRequest& request) const; - DescribeDBClusterResourcePoolPerformanceOutcome describeDBClusterResourcePoolPerformance(const Model::DescribeDBClusterResourcePoolPerformanceRequest &request)const; - void describeDBClusterResourcePoolPerformanceAsync(const Model::DescribeDBClusterResourcePoolPerformanceRequest& request, const DescribeDBClusterResourcePoolPerformanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeDBClusterResourcePoolPerformanceOutcomeCallable describeDBClusterResourcePoolPerformanceCallable(const Model::DescribeDBClusterResourcePoolPerformanceRequest& request) const; DescribeDBClustersOutcome describeDBClusters(const Model::DescribeDBClustersRequest &request)const; void describeDBClustersAsync(const Model::DescribeDBClustersRequest& request, const DescribeDBClustersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDBClustersOutcomeCallable describeDBClustersCallable(const Model::DescribeDBClustersRequest& request) const; 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; + DescribeDiagnosisSQLInfoOutcome describeDiagnosisSQLInfo(const Model::DescribeDiagnosisSQLInfoRequest &request)const; + void describeDiagnosisSQLInfoAsync(const Model::DescribeDiagnosisSQLInfoRequest& request, const DescribeDiagnosisSQLInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDiagnosisSQLInfoOutcomeCallable describeDiagnosisSQLInfoCallable(const Model::DescribeDiagnosisSQLInfoRequest& 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; - DescribeElasticPlanOutcome describeElasticPlan(const Model::DescribeElasticPlanRequest &request)const; - void describeElasticPlanAsync(const Model::DescribeElasticPlanRequest& request, const DescribeElasticPlanAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeElasticPlanOutcomeCallable describeElasticPlanCallable(const Model::DescribeElasticPlanRequest& request) const; - DescribeInclinedTablesOutcome describeInclinedTables(const Model::DescribeInclinedTablesRequest &request)const; - void describeInclinedTablesAsync(const Model::DescribeInclinedTablesRequest& request, const DescribeInclinedTablesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeInclinedTablesOutcomeCallable describeInclinedTablesCallable(const Model::DescribeInclinedTablesRequest& request) const; - 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; @@ -615,123 +611,159 @@ namespace AlibabaCloud 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; - DescribeSQLPlanTaskOutcome describeSQLPlanTask(const Model::DescribeSQLPlanTaskRequest &request)const; - void describeSQLPlanTaskAsync(const Model::DescribeSQLPlanTaskRequest& request, const DescribeSQLPlanTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeSQLPlanTaskOutcomeCallable describeSQLPlanTaskCallable(const Model::DescribeSQLPlanTaskRequest& request) const; - DescribeSchemasOutcome describeSchemas(const Model::DescribeSchemasRequest &request)const; - void describeSchemasAsync(const Model::DescribeSchemasRequest& request, const DescribeSchemasAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeSchemasOutcomeCallable describeSchemasCallable(const Model::DescribeSchemasRequest& request) const; - DescribeSlowLogRecordsOutcome describeSlowLogRecords(const Model::DescribeSlowLogRecordsRequest &request)const; - void describeSlowLogRecordsAsync(const Model::DescribeSlowLogRecordsRequest& request, const DescribeSlowLogRecordsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeSlowLogRecordsOutcomeCallable describeSlowLogRecordsCallable(const Model::DescribeSlowLogRecordsRequest& request) const; - 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; + DescribeSparkCodeLogOutcome describeSparkCodeLog(const Model::DescribeSparkCodeLogRequest &request)const; + void describeSparkCodeLogAsync(const Model::DescribeSparkCodeLogRequest& request, const DescribeSparkCodeLogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSparkCodeLogOutcomeCallable describeSparkCodeLogCallable(const Model::DescribeSparkCodeLogRequest& request) const; + DescribeSparkCodeOutputOutcome describeSparkCodeOutput(const Model::DescribeSparkCodeOutputRequest &request)const; + void describeSparkCodeOutputAsync(const Model::DescribeSparkCodeOutputRequest& request, const DescribeSparkCodeOutputAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSparkCodeOutputOutcomeCallable describeSparkCodeOutputCallable(const Model::DescribeSparkCodeOutputRequest& request) const; + DescribeSparkCodeWebUiOutcome describeSparkCodeWebUi(const Model::DescribeSparkCodeWebUiRequest &request)const; + void describeSparkCodeWebUiAsync(const Model::DescribeSparkCodeWebUiRequest& request, const DescribeSparkCodeWebUiAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSparkCodeWebUiOutcomeCallable describeSparkCodeWebUiCallable(const Model::DescribeSparkCodeWebUiRequest& 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; - DescribeTablePartitionDiagnoseOutcome describeTablePartitionDiagnose(const Model::DescribeTablePartitionDiagnoseRequest &request)const; - void describeTablePartitionDiagnoseAsync(const Model::DescribeTablePartitionDiagnoseRequest& request, const DescribeTablePartitionDiagnoseAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeTablePartitionDiagnoseOutcomeCallable describeTablePartitionDiagnoseCallable(const Model::DescribeTablePartitionDiagnoseRequest& request) const; - DescribeTableStatisticsOutcome describeTableStatistics(const Model::DescribeTableStatisticsRequest &request)const; - void describeTableStatisticsAsync(const Model::DescribeTableStatisticsRequest& request, const DescribeTableStatisticsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeTableStatisticsOutcomeCallable describeTableStatisticsCallable(const Model::DescribeTableStatisticsRequest& request) const; - DescribeTablesOutcome describeTables(const Model::DescribeTablesRequest &request)const; - void describeTablesAsync(const Model::DescribeTablesRequest& request, const DescribeTablesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeTablesOutcomeCallable describeTablesCallable(const Model::DescribeTablesRequest& request) const; - 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; - KillProcessOutcome killProcess(const Model::KillProcessRequest &request)const; - void killProcessAsync(const Model::KillProcessRequest& request, const KillProcessAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - KillProcessOutcomeCallable killProcessCallable(const Model::KillProcessRequest& request) const; - ListTagResourcesOutcome listTagResources(const Model::ListTagResourcesRequest &request)const; - void listTagResourcesAsync(const Model::ListTagResourcesRequest& request, const ListTagResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListTagResourcesOutcomeCallable listTagResourcesCallable(const Model::ListTagResourcesRequest& request) const; + GetDatabaseObjectsOutcome getDatabaseObjects(const Model::GetDatabaseObjectsRequest &request)const; + void getDatabaseObjectsAsync(const Model::GetDatabaseObjectsRequest& request, const GetDatabaseObjectsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetDatabaseObjectsOutcomeCallable getDatabaseObjectsCallable(const Model::GetDatabaseObjectsRequest& request) const; + GetLakehouseValidResourceGroupsOutcome getLakehouseValidResourceGroups(const Model::GetLakehouseValidResourceGroupsRequest &request)const; + void getLakehouseValidResourceGroupsAsync(const Model::GetLakehouseValidResourceGroupsRequest& request, const GetLakehouseValidResourceGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetLakehouseValidResourceGroupsOutcomeCallable getLakehouseValidResourceGroupsCallable(const Model::GetLakehouseValidResourceGroupsRequest& request) const; + GetSparkAppAttemptLogOutcome getSparkAppAttemptLog(const Model::GetSparkAppAttemptLogRequest &request)const; + void getSparkAppAttemptLogAsync(const Model::GetSparkAppAttemptLogRequest& request, const GetSparkAppAttemptLogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetSparkAppAttemptLogOutcomeCallable getSparkAppAttemptLogCallable(const Model::GetSparkAppAttemptLogRequest& request) const; + GetSparkAppInfoOutcome getSparkAppInfo(const Model::GetSparkAppInfoRequest &request)const; + void getSparkAppInfoAsync(const Model::GetSparkAppInfoRequest& request, const GetSparkAppInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetSparkAppInfoOutcomeCallable getSparkAppInfoCallable(const Model::GetSparkAppInfoRequest& request) const; + GetSparkAppLogOutcome getSparkAppLog(const Model::GetSparkAppLogRequest &request)const; + void getSparkAppLogAsync(const Model::GetSparkAppLogRequest& request, const GetSparkAppLogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetSparkAppLogOutcomeCallable getSparkAppLogCallable(const Model::GetSparkAppLogRequest& request) const; + GetSparkAppMetricsOutcome getSparkAppMetrics(const Model::GetSparkAppMetricsRequest &request)const; + void getSparkAppMetricsAsync(const Model::GetSparkAppMetricsRequest& request, const GetSparkAppMetricsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetSparkAppMetricsOutcomeCallable getSparkAppMetricsCallable(const Model::GetSparkAppMetricsRequest& request) const; + GetSparkAppStateOutcome getSparkAppState(const Model::GetSparkAppStateRequest &request)const; + void getSparkAppStateAsync(const Model::GetSparkAppStateRequest& request, const GetSparkAppStateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetSparkAppStateOutcomeCallable getSparkAppStateCallable(const Model::GetSparkAppStateRequest& request) const; + GetSparkAppWebUiAddressOutcome getSparkAppWebUiAddress(const Model::GetSparkAppWebUiAddressRequest &request)const; + void getSparkAppWebUiAddressAsync(const Model::GetSparkAppWebUiAddressRequest& request, const GetSparkAppWebUiAddressAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetSparkAppWebUiAddressOutcomeCallable getSparkAppWebUiAddressCallable(const Model::GetSparkAppWebUiAddressRequest& request) const; + GetSparkConfigLogPathOutcome getSparkConfigLogPath(const Model::GetSparkConfigLogPathRequest &request)const; + void getSparkConfigLogPathAsync(const Model::GetSparkConfigLogPathRequest& request, const GetSparkConfigLogPathAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetSparkConfigLogPathOutcomeCallable getSparkConfigLogPathCallable(const Model::GetSparkConfigLogPathRequest& request) const; + GetSparkLogAnalyzeTaskOutcome getSparkLogAnalyzeTask(const Model::GetSparkLogAnalyzeTaskRequest &request)const; + void getSparkLogAnalyzeTaskAsync(const Model::GetSparkLogAnalyzeTaskRequest& request, const GetSparkLogAnalyzeTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetSparkLogAnalyzeTaskOutcomeCallable getSparkLogAnalyzeTaskCallable(const Model::GetSparkLogAnalyzeTaskRequest& request) const; + GetSparkSQLEngineStateOutcome getSparkSQLEngineState(const Model::GetSparkSQLEngineStateRequest &request)const; + void getSparkSQLEngineStateAsync(const Model::GetSparkSQLEngineStateRequest& request, const GetSparkSQLEngineStateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetSparkSQLEngineStateOutcomeCallable getSparkSQLEngineStateCallable(const Model::GetSparkSQLEngineStateRequest& request) const; + GetSparkTemplateFileContentOutcome getSparkTemplateFileContent(const Model::GetSparkTemplateFileContentRequest &request)const; + void getSparkTemplateFileContentAsync(const Model::GetSparkTemplateFileContentRequest& request, const GetSparkTemplateFileContentAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetSparkTemplateFileContentOutcomeCallable getSparkTemplateFileContentCallable(const Model::GetSparkTemplateFileContentRequest& request) const; + GetSparkTemplateFolderTreeOutcome getSparkTemplateFolderTree(const Model::GetSparkTemplateFolderTreeRequest &request)const; + void getSparkTemplateFolderTreeAsync(const Model::GetSparkTemplateFolderTreeRequest& request, const GetSparkTemplateFolderTreeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetSparkTemplateFolderTreeOutcomeCallable getSparkTemplateFolderTreeCallable(const Model::GetSparkTemplateFolderTreeRequest& request) const; + GetSparkTemplateFullTreeOutcome getSparkTemplateFullTree(const Model::GetSparkTemplateFullTreeRequest &request)const; + void getSparkTemplateFullTreeAsync(const Model::GetSparkTemplateFullTreeRequest& request, const GetSparkTemplateFullTreeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetSparkTemplateFullTreeOutcomeCallable getSparkTemplateFullTreeCallable(const Model::GetSparkTemplateFullTreeRequest& request) const; + GetTableOutcome getTable(const Model::GetTableRequest &request)const; + void getTableAsync(const Model::GetTableRequest& request, const GetTableAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetTableOutcomeCallable getTableCallable(const Model::GetTableRequest& request) const; + GetTableColumnsOutcome getTableColumns(const Model::GetTableColumnsRequest &request)const; + void getTableColumnsAsync(const Model::GetTableColumnsRequest& request, const GetTableColumnsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetTableColumnsOutcomeCallable getTableColumnsCallable(const Model::GetTableColumnsRequest& request) const; + GetTableDDLOutcome getTableDDL(const Model::GetTableDDLRequest &request)const; + void getTableDDLAsync(const Model::GetTableDDLRequest& request, const GetTableDDLAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetTableDDLOutcomeCallable getTableDDLCallable(const Model::GetTableDDLRequest& request) const; + GetTableObjectsOutcome getTableObjects(const Model::GetTableObjectsRequest &request)const; + void getTableObjectsAsync(const Model::GetTableObjectsRequest& request, const GetTableObjectsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetTableObjectsOutcomeCallable getTableObjectsCallable(const Model::GetTableObjectsRequest& request) const; + GetViewDDLOutcome getViewDDL(const Model::GetViewDDLRequest &request)const; + void getViewDDLAsync(const Model::GetViewDDLRequest& request, const GetViewDDLAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetViewDDLOutcomeCallable getViewDDLCallable(const Model::GetViewDDLRequest& request) const; + GetViewObjectsOutcome getViewObjects(const Model::GetViewObjectsRequest &request)const; + void getViewObjectsAsync(const Model::GetViewObjectsRequest& request, const GetViewObjectsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetViewObjectsOutcomeCallable getViewObjectsCallable(const Model::GetViewObjectsRequest& request) const; + KillSparkAppOutcome killSparkApp(const Model::KillSparkAppRequest &request)const; + void killSparkAppAsync(const Model::KillSparkAppRequest& request, const KillSparkAppAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + KillSparkAppOutcomeCallable killSparkAppCallable(const Model::KillSparkAppRequest& request) const; + KillSparkLogAnalyzeTaskOutcome killSparkLogAnalyzeTask(const Model::KillSparkLogAnalyzeTaskRequest &request)const; + void killSparkLogAnalyzeTaskAsync(const Model::KillSparkLogAnalyzeTaskRequest& request, const KillSparkLogAnalyzeTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + KillSparkLogAnalyzeTaskOutcomeCallable killSparkLogAnalyzeTaskCallable(const Model::KillSparkLogAnalyzeTaskRequest& request) const; + KillSparkSQLEngineOutcome killSparkSQLEngine(const Model::KillSparkSQLEngineRequest &request)const; + void killSparkSQLEngineAsync(const Model::KillSparkSQLEngineRequest& request, const KillSparkSQLEngineAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + KillSparkSQLEngineOutcomeCallable killSparkSQLEngineCallable(const Model::KillSparkSQLEngineRequest& request) const; + ListSparkAppAttemptsOutcome listSparkAppAttempts(const Model::ListSparkAppAttemptsRequest &request)const; + void listSparkAppAttemptsAsync(const Model::ListSparkAppAttemptsRequest& request, const ListSparkAppAttemptsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListSparkAppAttemptsOutcomeCallable listSparkAppAttemptsCallable(const Model::ListSparkAppAttemptsRequest& request) const; + ListSparkAppsOutcome listSparkApps(const Model::ListSparkAppsRequest &request)const; + void listSparkAppsAsync(const Model::ListSparkAppsRequest& request, const ListSparkAppsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListSparkAppsOutcomeCallable listSparkAppsCallable(const Model::ListSparkAppsRequest& request) const; + ListSparkLogAnalyzeTasksOutcome listSparkLogAnalyzeTasks(const Model::ListSparkLogAnalyzeTasksRequest &request)const; + void listSparkLogAnalyzeTasksAsync(const Model::ListSparkLogAnalyzeTasksRequest& request, const ListSparkLogAnalyzeTasksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListSparkLogAnalyzeTasksOutcomeCallable listSparkLogAnalyzeTasksCallable(const Model::ListSparkLogAnalyzeTasksRequest& request) const; + ListSparkTemplateFileIdsOutcome listSparkTemplateFileIds(const Model::ListSparkTemplateFileIdsRequest &request)const; + void listSparkTemplateFileIdsAsync(const Model::ListSparkTemplateFileIdsRequest& request, const ListSparkTemplateFileIdsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListSparkTemplateFileIdsOutcomeCallable listSparkTemplateFileIdsCallable(const Model::ListSparkTemplateFileIdsRequest& request) const; ModifyAccountDescriptionOutcome modifyAccountDescription(const Model::ModifyAccountDescriptionRequest &request)const; void modifyAccountDescriptionAsync(const Model::ModifyAccountDescriptionRequest& request, const ModifyAccountDescriptionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyAccountDescriptionOutcomeCallable modifyAccountDescriptionCallable(const Model::ModifyAccountDescriptionRequest& request) const; ModifyAuditLogConfigOutcome modifyAuditLogConfig(const Model::ModifyAuditLogConfigRequest &request)const; void modifyAuditLogConfigAsync(const Model::ModifyAuditLogConfigRequest& request, const ModifyAuditLogConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyAuditLogConfigOutcomeCallable modifyAuditLogConfigCallable(const Model::ModifyAuditLogConfigRequest& request) const; - ModifyAutoRenewAttributeOutcome modifyAutoRenewAttribute(const Model::ModifyAutoRenewAttributeRequest &request)const; - void modifyAutoRenewAttributeAsync(const Model::ModifyAutoRenewAttributeRequest& request, const ModifyAutoRenewAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyAutoRenewAttributeOutcomeCallable modifyAutoRenewAttributeCallable(const Model::ModifyAutoRenewAttributeRequest& request) const; ModifyBackupPolicyOutcome modifyBackupPolicy(const Model::ModifyBackupPolicyRequest &request)const; void modifyBackupPolicyAsync(const Model::ModifyBackupPolicyRequest& request, const ModifyBackupPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyBackupPolicyOutcomeCallable modifyBackupPolicyCallable(const Model::ModifyBackupPolicyRequest& request) const; + ModifyClusterAccessWhiteListOutcome modifyClusterAccessWhiteList(const Model::ModifyClusterAccessWhiteListRequest &request)const; + void modifyClusterAccessWhiteListAsync(const Model::ModifyClusterAccessWhiteListRequest& request, const ModifyClusterAccessWhiteListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyClusterAccessWhiteListOutcomeCallable modifyClusterAccessWhiteListCallable(const Model::ModifyClusterAccessWhiteListRequest& request) const; ModifyClusterConnectionStringOutcome modifyClusterConnectionString(const Model::ModifyClusterConnectionStringRequest &request)const; void modifyClusterConnectionStringAsync(const Model::ModifyClusterConnectionStringRequest& request, const ModifyClusterConnectionStringAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyClusterConnectionStringOutcomeCallable modifyClusterConnectionStringCallable(const Model::ModifyClusterConnectionStringRequest& request) const; ModifyDBClusterOutcome modifyDBCluster(const Model::ModifyDBClusterRequest &request)const; void modifyDBClusterAsync(const Model::ModifyDBClusterRequest& request, const ModifyDBClusterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyDBClusterOutcomeCallable modifyDBClusterCallable(const Model::ModifyDBClusterRequest& request) const; - ModifyDBClusterAccessWhiteListOutcome modifyDBClusterAccessWhiteList(const Model::ModifyDBClusterAccessWhiteListRequest &request)const; - void modifyDBClusterAccessWhiteListAsync(const Model::ModifyDBClusterAccessWhiteListRequest& request, const ModifyDBClusterAccessWhiteListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyDBClusterAccessWhiteListOutcomeCallable modifyDBClusterAccessWhiteListCallable(const Model::ModifyDBClusterAccessWhiteListRequest& request) const; ModifyDBClusterDescriptionOutcome modifyDBClusterDescription(const Model::ModifyDBClusterDescriptionRequest &request)const; void modifyDBClusterDescriptionAsync(const Model::ModifyDBClusterDescriptionRequest& request, const ModifyDBClusterDescriptionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyDBClusterDescriptionOutcomeCallable modifyDBClusterDescriptionCallable(const Model::ModifyDBClusterDescriptionRequest& request) const; 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; - ModifyElasticPlanOutcome modifyElasticPlan(const Model::ModifyElasticPlanRequest &request)const; - void modifyElasticPlanAsync(const Model::ModifyElasticPlanRequest& request, const ModifyElasticPlanAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyElasticPlanOutcomeCallable modifyElasticPlanCallable(const Model::ModifyElasticPlanRequest& request) const; - 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; + PreloadSparkAppMetricsOutcome preloadSparkAppMetrics(const Model::PreloadSparkAppMetricsRequest &request)const; + void preloadSparkAppMetricsAsync(const Model::PreloadSparkAppMetricsRequest& request, const PreloadSparkAppMetricsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PreloadSparkAppMetricsOutcomeCallable preloadSparkAppMetricsCallable(const Model::PreloadSparkAppMetricsRequest& 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; ResetAccountPasswordOutcome resetAccountPassword(const Model::ResetAccountPasswordRequest &request)const; void resetAccountPasswordAsync(const Model::ResetAccountPasswordRequest& request, const ResetAccountPasswordAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ResetAccountPasswordOutcomeCallable resetAccountPasswordCallable(const Model::ResetAccountPasswordRequest& request) const; - RevokeOperatorPermissionOutcome revokeOperatorPermission(const Model::RevokeOperatorPermissionRequest &request)const; - void revokeOperatorPermissionAsync(const Model::RevokeOperatorPermissionRequest& request, const RevokeOperatorPermissionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - RevokeOperatorPermissionOutcomeCallable revokeOperatorPermissionCallable(const Model::RevokeOperatorPermissionRequest& request) const; - 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; - UntagResourcesOutcome untagResources(const Model::UntagResourcesRequest &request)const; - void untagResourcesAsync(const Model::UntagResourcesRequest& request, const UntagResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - UntagResourcesOutcomeCallable untagResourcesCallable(const Model::UntagResourcesRequest& request) const; + SetSparkAppLogRootPathOutcome setSparkAppLogRootPath(const Model::SetSparkAppLogRootPathRequest &request)const; + void setSparkAppLogRootPathAsync(const Model::SetSparkAppLogRootPathRequest& request, const SetSparkAppLogRootPathAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetSparkAppLogRootPathOutcomeCallable setSparkAppLogRootPathCallable(const Model::SetSparkAppLogRootPathRequest& request) const; + StartSparkSQLEngineOutcome startSparkSQLEngine(const Model::StartSparkSQLEngineRequest &request)const; + void startSparkSQLEngineAsync(const Model::StartSparkSQLEngineRequest& request, const StartSparkSQLEngineAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StartSparkSQLEngineOutcomeCallable startSparkSQLEngineCallable(const Model::StartSparkSQLEngineRequest& request) const; + SubmitSparkAppOutcome submitSparkApp(const Model::SubmitSparkAppRequest &request)const; + void submitSparkAppAsync(const Model::SubmitSparkAppRequest& request, const SubmitSparkAppAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SubmitSparkAppOutcomeCallable submitSparkAppCallable(const Model::SubmitSparkAppRequest& request) const; + SubmitSparkLogAnalyzeTaskOutcome submitSparkLogAnalyzeTask(const Model::SubmitSparkLogAnalyzeTaskRequest &request)const; + void submitSparkLogAnalyzeTaskAsync(const Model::SubmitSparkLogAnalyzeTaskRequest& request, const SubmitSparkLogAnalyzeTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SubmitSparkLogAnalyzeTaskOutcomeCallable submitSparkLogAnalyzeTaskCallable(const Model::SubmitSparkLogAnalyzeTaskRequest& request) const; + UnbindAccountOutcome unbindAccount(const Model::UnbindAccountRequest &request)const; + void unbindAccountAsync(const Model::UnbindAccountRequest& request, const UnbindAccountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UnbindAccountOutcomeCallable unbindAccountCallable(const Model::UnbindAccountRequest& request) const; + UpdateSparkTemplateFileOutcome updateSparkTemplateFile(const Model::UpdateSparkTemplateFileRequest &request)const; + void updateSparkTemplateFileAsync(const Model::UpdateSparkTemplateFileRequest& request, const UpdateSparkTemplateFileAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateSparkTemplateFileOutcomeCallable updateSparkTemplateFileCallable(const Model::UpdateSparkTemplateFileRequest& request) const; private: std::shared_ptr endpointProvider_; diff --git a/adb/include/alibabacloud/adb/model/AllocateClusterPublicConnectionRequest.h b/adb/include/alibabacloud/adb/model/AllocateClusterPublicConnectionRequest.h index 640bc0b33..dbae4a981 100644 --- a/adb/include/alibabacloud/adb/model/AllocateClusterPublicConnectionRequest.h +++ b/adb/include/alibabacloud/adb/model/AllocateClusterPublicConnectionRequest.h @@ -30,29 +30,17 @@ class ALIBABACLOUD_ADB_EXPORT AllocateClusterPublicConnectionRequest : public Rp 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); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); private: - long resourceOwnerId_; std::string connectionStringPrefix_; - std::string accessKeyId_; - std::string resourceOwnerAccount_; std::string dBClusterId_; - std::string ownerAccount_; - long ownerId_; + std::string accessKeyId_; }; } // namespace Model } // namespace Adb diff --git a/adb/include/alibabacloud/adb/model/DescribeSchemasRequest.h b/adb/include/alibabacloud/adb/model/BindAccountRequest.h similarity index 58% rename from adb/include/alibabacloud/adb/model/DescribeSchemasRequest.h rename to adb/include/alibabacloud/adb/model/BindAccountRequest.h index 1f7b7c2c6..5f728c007 100644 --- a/adb/include/alibabacloud/adb/model/DescribeSchemasRequest.h +++ b/adb/include/alibabacloud/adb/model/BindAccountRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBESCHEMASREQUEST_H_ -#define ALIBABACLOUD_ADB_MODEL_DESCRIBESCHEMASREQUEST_H_ +#ifndef ALIBABACLOUD_ADB_MODEL_BINDACCOUNTREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_BINDACCOUNTREQUEST_H_ #include #include @@ -26,32 +26,26 @@ namespace AlibabaCloud { namespace Adb { namespace Model { -class ALIBABACLOUD_ADB_EXPORT DescribeSchemasRequest : public RpcServiceRequest { +class ALIBABACLOUD_ADB_EXPORT BindAccountRequest : 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); + BindAccountRequest(); + ~BindAccountRequest(); 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 getRamUser() const; + void setRamUser(const std::string &ramUser); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getAccountName() const; + void setAccountName(const std::string &accountName); private: - long resourceOwnerId_; - std::string accessKeyId_; - std::string resourceOwnerAccount_; std::string dBClusterId_; - std::string ownerAccount_; - long ownerId_; + std::string ramUser_; + std::string accessKeyId_; + std::string accountName_; }; } // namespace Model } // namespace Adb } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBESCHEMASREQUEST_H_ +#endif // !ALIBABACLOUD_ADB_MODEL_BINDACCOUNTREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/KillProcessResult.h b/adb/include/alibabacloud/adb/model/BindAccountResult.h similarity index 74% rename from adb/include/alibabacloud/adb/model/KillProcessResult.h rename to adb/include/alibabacloud/adb/model/BindAccountResult.h index c5dc9e014..55f6adfb7 100644 --- a/adb/include/alibabacloud/adb/model/KillProcessResult.h +++ b/adb/include/alibabacloud/adb/model/BindAccountResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_ADB_MODEL_KILLPROCESSRESULT_H_ -#define ALIBABACLOUD_ADB_MODEL_KILLPROCESSRESULT_H_ +#ifndef ALIBABACLOUD_ADB_MODEL_BINDACCOUNTRESULT_H_ +#define ALIBABACLOUD_ADB_MODEL_BINDACCOUNTRESULT_H_ #include #include @@ -29,14 +29,14 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_ADB_EXPORT KillProcessResult : public ServiceResult + class ALIBABACLOUD_ADB_EXPORT BindAccountResult : public ServiceResult { public: - KillProcessResult(); - explicit KillProcessResult(const std::string &payload); - ~KillProcessResult(); + BindAccountResult(); + explicit BindAccountResult(const std::string &payload); + ~BindAccountResult(); protected: void parse(const std::string &payload); @@ -46,4 +46,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_ADB_MODEL_KILLPROCESSRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_ADB_MODEL_BINDACCOUNTRESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/BindDBResourceGroupWithUserRequest.h b/adb/include/alibabacloud/adb/model/BindDBResourceGroupWithUserRequest.h deleted file mode 100644 index 85a6a9d44..000000000 --- a/adb/include/alibabacloud/adb/model/BindDBResourceGroupWithUserRequest.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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/BindDBResourcePoolWithUserRequest.h b/adb/include/alibabacloud/adb/model/BindDBResourcePoolWithUserRequest.h deleted file mode 100644 index 0396c5aa9..000000000 --- a/adb/include/alibabacloud/adb/model/BindDBResourcePoolWithUserRequest.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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/DescribeAllAccountsRequest.h b/adb/include/alibabacloud/adb/model/CheckBindRamUserRequest.h similarity index 57% rename from adb/include/alibabacloud/adb/model/DescribeAllAccountsRequest.h rename to adb/include/alibabacloud/adb/model/CheckBindRamUserRequest.h index 41084efe0..39bb02e88 100644 --- a/adb/include/alibabacloud/adb/model/DescribeAllAccountsRequest.h +++ b/adb/include/alibabacloud/adb/model/CheckBindRamUserRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBEALLACCOUNTSREQUEST_H_ -#define ALIBABACLOUD_ADB_MODEL_DESCRIBEALLACCOUNTSREQUEST_H_ +#ifndef ALIBABACLOUD_ADB_MODEL_CHECKBINDRAMUSERREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_CHECKBINDRAMUSERREQUEST_H_ #include #include @@ -26,32 +26,23 @@ namespace AlibabaCloud { namespace Adb { namespace Model { -class ALIBABACLOUD_ADB_EXPORT DescribeAllAccountsRequest : public RpcServiceRequest { +class ALIBABACLOUD_ADB_EXPORT CheckBindRamUserRequest : 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); + CheckBindRamUserRequest(); + ~CheckBindRamUserRequest(); 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 accessKeyId_; - 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_DESCRIBEALLACCOUNTSREQUEST_H_ +#endif // !ALIBABACLOUD_ADB_MODEL_CHECKBINDRAMUSERREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/CreateDBResourcePoolResult.h b/adb/include/alibabacloud/adb/model/CheckBindRamUserResult.h similarity index 68% rename from adb/include/alibabacloud/adb/model/CreateDBResourcePoolResult.h rename to adb/include/alibabacloud/adb/model/CheckBindRamUserResult.h index 3ffbc7f53..e233486ce 100644 --- a/adb/include/alibabacloud/adb/model/CreateDBResourcePoolResult.h +++ b/adb/include/alibabacloud/adb/model/CheckBindRamUserResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_ADB_MODEL_CREATEDBRESOURCEPOOLRESULT_H_ -#define ALIBABACLOUD_ADB_MODEL_CREATEDBRESOURCEPOOLRESULT_H_ +#ifndef ALIBABACLOUD_ADB_MODEL_CHECKBINDRAMUSERRESULT_H_ +#define ALIBABACLOUD_ADB_MODEL_CHECKBINDRAMUSERRESULT_H_ #include #include @@ -29,21 +29,23 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_ADB_EXPORT CreateDBResourcePoolResult : public ServiceResult + class ALIBABACLOUD_ADB_EXPORT CheckBindRamUserResult : public ServiceResult { public: - CreateDBResourcePoolResult(); - explicit CreateDBResourcePoolResult(const std::string &payload); - ~CreateDBResourcePoolResult(); + CheckBindRamUserResult(); + explicit CheckBindRamUserResult(const std::string &payload); + ~CheckBindRamUserResult(); + bool getResult()const; protected: void parse(const std::string &payload); private: + bool result_; }; } } } -#endif // !ALIBABACLOUD_ADB_MODEL_CREATEDBRESOURCEPOOLRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_ADB_MODEL_CHECKBINDRAMUSERRESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/CreateAccountRequest.h b/adb/include/alibabacloud/adb/model/CreateAccountRequest.h index 0ab3a6f15..16e4c6d58 100644 --- a/adb/include/alibabacloud/adb/model/CreateAccountRequest.h +++ b/adb/include/alibabacloud/adb/model/CreateAccountRequest.h @@ -30,38 +30,26 @@ class ALIBABACLOUD_ADB_EXPORT CreateAccountRequest : public RpcServiceRequest { public: CreateAccountRequest(); ~CreateAccountRequest(); - long getResourceOwnerId() const; - void setResourceOwnerId(long resourceOwnerId); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); 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); + std::string getAccountName() const; + void setAccountName(const std::string &accountName); private: - long resourceOwnerId_; + std::string dBClusterId_; 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_; + std::string accountName_; }; } // namespace Model } // namespace Adb diff --git a/adb/include/alibabacloud/adb/model/CreateAccountResult.h b/adb/include/alibabacloud/adb/model/CreateAccountResult.h index 6a75817ee..afe1ca869 100644 --- a/adb/include/alibabacloud/adb/model/CreateAccountResult.h +++ b/adb/include/alibabacloud/adb/model/CreateAccountResult.h @@ -37,14 +37,10 @@ namespace AlibabaCloud CreateAccountResult(); explicit CreateAccountResult(const std::string &payload); ~CreateAccountResult(); - int getTaskId()const; - std::string getDBClusterId()const; protected: void parse(const std::string &payload); private: - int taskId_; - std::string dBClusterId_; }; } diff --git a/adb/include/alibabacloud/adb/model/CreateDBClusterRequest.h b/adb/include/alibabacloud/adb/model/CreateDBClusterRequest.h index bcc8ecb3b..82e22fc8a 100644 --- a/adb/include/alibabacloud/adb/model/CreateDBClusterRequest.h +++ b/adb/include/alibabacloud/adb/model/CreateDBClusterRequest.h @@ -30,100 +30,49 @@ 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); + bool getEnableDefaultResourcePool() const; + void setEnableDefaultResourcePool(bool enableDefaultResourcePool); 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 getPeriod() const; + void setPeriod(const std::string &period); 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 getVSwitchId() const; + void setVSwitchId(const std::string &vSwitchId); std::string getVPCId() const; void setVPCId(const std::string &vPCId); + std::string getZoneId() const; + void setZoneId(const std::string &zoneId); + std::string getComputeResource() const; + void setComputeResource(const std::string &computeResource); 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_; + bool enableDefaultResourcePool_; 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 period_; std::string dBClusterVersion_; - std::string dBClusterClass_; std::string usedTime_; - std::string restoreType_; - std::string dBNodeStorage_; - std::string executorCount_; + std::string vSwitchId_; std::string vPCId_; + std::string zoneId_; + std::string computeResource_; std::string payType_; }; } // namespace Model diff --git a/adb/include/alibabacloud/adb/model/CreateDBResourceGroupRequest.h b/adb/include/alibabacloud/adb/model/CreateDBResourceGroupRequest.h index 358968f8b..4a22b8b8f 100644 --- a/adb/include/alibabacloud/adb/model/CreateDBResourceGroupRequest.h +++ b/adb/include/alibabacloud/adb/model/CreateDBResourceGroupRequest.h @@ -30,35 +30,26 @@ class ALIBABACLOUD_ADB_EXPORT CreateDBResourceGroupRequest : public RpcServiceRe public: CreateDBResourceGroupRequest(); ~CreateDBResourceGroupRequest(); - long getResourceOwnerId() const; - void setResourceOwnerId(long resourceOwnerId); - int getNodeNum() const; - void setNodeNum(int nodeNum); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getMinComputeResource() const; + void setMinComputeResource(const std::string &minComputeResource); + std::string getGroupName() const; + void setGroupName(const std::string &groupName); 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); + std::string getMaxComputeResource() const; + void setMaxComputeResource(const std::string &maxComputeResource); private: - long resourceOwnerId_; - int nodeNum_; + std::string dBClusterId_; + std::string minComputeResource_; + std::string groupName_; std::string accessKeyId_; std::string groupType_; - std::string resourceOwnerAccount_; - std::string dBClusterId_; - std::string ownerAccount_; - long ownerId_; - std::string groupName_; + std::string maxComputeResource_; }; } // namespace Model } // namespace Adb diff --git a/adb/include/alibabacloud/adb/model/CreateDBResourcePoolRequest.h b/adb/include/alibabacloud/adb/model/CreateDBResourcePoolRequest.h deleted file mode 100644 index e59b00144..000000000 --- a/adb/include/alibabacloud/adb/model/CreateDBResourcePoolRequest.h +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 deleted file mode 100644 index 7b99458f3..000000000 --- a/adb/include/alibabacloud/adb/model/CreateElasticPlanRequest.h +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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/CreateOssSubDirectoryRequest.h b/adb/include/alibabacloud/adb/model/CreateOssSubDirectoryRequest.h new file mode 100644 index 000000000..4da5e601b --- /dev/null +++ b/adb/include/alibabacloud/adb/model/CreateOssSubDirectoryRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_CREATEOSSSUBDIRECTORYREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_CREATEOSSSUBDIRECTORYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT CreateOssSubDirectoryRequest : public RpcServiceRequest { +public: + CreateOssSubDirectoryRequest(); + ~CreateOssSubDirectoryRequest(); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getPath() const; + void setPath(const std::string &path); + +private: + std::string dBClusterId_; + std::string path_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_CREATEOSSSUBDIRECTORYREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/CreateOssSubDirectoryResult.h b/adb/include/alibabacloud/adb/model/CreateOssSubDirectoryResult.h new file mode 100644 index 000000000..f51d75ba7 --- /dev/null +++ b/adb/include/alibabacloud/adb/model/CreateOssSubDirectoryResult.h @@ -0,0 +1,64 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_CREATEOSSSUBDIRECTORYRESULT_H_ +#define ALIBABACLOUD_ADB_MODEL_CREATEOSSSUBDIRECTORYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Adb + { + namespace Model + { + class ALIBABACLOUD_ADB_EXPORT CreateOssSubDirectoryResult : public ServiceResult + { + public: + struct Data + { + std::string requestId; + std::string eTag; + long clientCRC; + long serverCRC; + }; + + + CreateOssSubDirectoryResult(); + explicit CreateOssSubDirectoryResult(const std::string &payload); + ~CreateOssSubDirectoryResult(); + std::string getMessage()const; + long getHttpStatusCode()const; + Data getData()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + long httpStatusCode_; + Data data_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ADB_MODEL_CREATEOSSSUBDIRECTORYRESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/CreateSparkTemplateRequest.h b/adb/include/alibabacloud/adb/model/CreateSparkTemplateRequest.h new file mode 100644 index 000000000..f9575eb0f --- /dev/null +++ b/adb/include/alibabacloud/adb/model/CreateSparkTemplateRequest.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_CREATESPARKTEMPLATEREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_CREATESPARKTEMPLATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT CreateSparkTemplateRequest : public RpcServiceRequest { +public: + CreateSparkTemplateRequest(); + ~CreateSparkTemplateRequest(); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getAppType() const; + void setAppType(const std::string &appType); + std::string getType() const; + void setType(const std::string &type); + long getParentId() const; + void setParentId(long parentId); + std::string getName() const; + void setName(const std::string &name); + +private: + std::string dBClusterId_; + std::string appType_; + std::string type_; + long parentId_; + std::string name_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_CREATESPARKTEMPLATEREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/BindDBResourceGroupWithUserResult.h b/adb/include/alibabacloud/adb/model/CreateSparkTemplateResult.h similarity index 65% rename from adb/include/alibabacloud/adb/model/BindDBResourceGroupWithUserResult.h rename to adb/include/alibabacloud/adb/model/CreateSparkTemplateResult.h index 46b0c39c5..828020de2 100644 --- a/adb/include/alibabacloud/adb/model/BindDBResourceGroupWithUserResult.h +++ b/adb/include/alibabacloud/adb/model/CreateSparkTemplateResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_ADB_MODEL_BINDDBRESOURCEGROUPWITHUSERRESULT_H_ -#define ALIBABACLOUD_ADB_MODEL_BINDDBRESOURCEGROUPWITHUSERRESULT_H_ +#ifndef ALIBABACLOUD_ADB_MODEL_CREATESPARKTEMPLATERESULT_H_ +#define ALIBABACLOUD_ADB_MODEL_CREATESPARKTEMPLATERESULT_H_ #include #include @@ -29,21 +29,27 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_ADB_EXPORT BindDBResourceGroupWithUserResult : public ServiceResult + class ALIBABACLOUD_ADB_EXPORT CreateSparkTemplateResult : public ServiceResult { public: + struct Data + { + bool succeeded; + }; - BindDBResourceGroupWithUserResult(); - explicit BindDBResourceGroupWithUserResult(const std::string &payload); - ~BindDBResourceGroupWithUserResult(); + CreateSparkTemplateResult(); + explicit CreateSparkTemplateResult(const std::string &payload); + ~CreateSparkTemplateResult(); + Data getData()const; protected: void parse(const std::string &payload); private: + Data data_; }; } } } -#endif // !ALIBABACLOUD_ADB_MODEL_BINDDBRESOURCEGROUPWITHUSERRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_ADB_MODEL_CREATESPARKTEMPLATERESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/DeleteAccountRequest.h b/adb/include/alibabacloud/adb/model/DeleteAccountRequest.h index 749dd8f44..860a920a0 100644 --- a/adb/include/alibabacloud/adb/model/DeleteAccountRequest.h +++ b/adb/include/alibabacloud/adb/model/DeleteAccountRequest.h @@ -30,32 +30,17 @@ 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 getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); 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 dBClusterId_; std::string accessKeyId_; std::string accountName_; - std::string resourceOwnerAccount_; - std::string dBClusterId_; - std::string ownerAccount_; - long ownerId_; }; } // namespace Model } // namespace Adb diff --git a/adb/include/alibabacloud/adb/model/DeleteDBClusterRequest.h b/adb/include/alibabacloud/adb/model/DeleteDBClusterRequest.h index 2c11ccf24..8b55f34f1 100644 --- a/adb/include/alibabacloud/adb/model/DeleteDBClusterRequest.h +++ b/adb/include/alibabacloud/adb/model/DeleteDBClusterRequest.h @@ -30,26 +30,14 @@ 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); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); private: - long resourceOwnerId_; - std::string accessKeyId_; - std::string resourceOwnerAccount_; std::string dBClusterId_; - std::string ownerAccount_; - long ownerId_; + std::string accessKeyId_; }; } // namespace Model } // namespace Adb diff --git a/adb/include/alibabacloud/adb/model/DeleteDBClusterResult.h b/adb/include/alibabacloud/adb/model/DeleteDBClusterResult.h index 8d176a16c..d0edc9bfc 100644 --- a/adb/include/alibabacloud/adb/model/DeleteDBClusterResult.h +++ b/adb/include/alibabacloud/adb/model/DeleteDBClusterResult.h @@ -37,13 +37,11 @@ namespace AlibabaCloud DeleteDBClusterResult(); explicit DeleteDBClusterResult(const std::string &payload); ~DeleteDBClusterResult(); - int getTaskId()const; std::string getDBClusterId()const; protected: void parse(const std::string &payload); private: - int taskId_; std::string dBClusterId_; }; diff --git a/adb/include/alibabacloud/adb/model/DeleteDBResourceGroupRequest.h b/adb/include/alibabacloud/adb/model/DeleteDBResourceGroupRequest.h index 050cdd985..3a6004b3c 100644 --- a/adb/include/alibabacloud/adb/model/DeleteDBResourceGroupRequest.h +++ b/adb/include/alibabacloud/adb/model/DeleteDBResourceGroupRequest.h @@ -30,29 +30,17 @@ class ALIBABACLOUD_ADB_EXPORT DeleteDBResourceGroupRequest : public RpcServiceRe 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); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); private: - long resourceOwnerId_; - std::string accessKeyId_; - std::string resourceOwnerAccount_; std::string dBClusterId_; - std::string ownerAccount_; - long ownerId_; std::string groupName_; + std::string accessKeyId_; }; } // namespace Model } // namespace Adb diff --git a/adb/include/alibabacloud/adb/model/DeleteDBResourcePoolRequest.h b/adb/include/alibabacloud/adb/model/DeleteDBResourcePoolRequest.h deleted file mode 100644 index a0876f568..000000000 --- a/adb/include/alibabacloud/adb/model/DeleteDBResourcePoolRequest.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 deleted file mode 100644 index ecb78ac26..000000000 --- a/adb/include/alibabacloud/adb/model/DeleteElasticPlanRequest.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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/DeleteProcessInstanceRequest.h b/adb/include/alibabacloud/adb/model/DeleteProcessInstanceRequest.h new file mode 100644 index 000000000..b95520c87 --- /dev/null +++ b/adb/include/alibabacloud/adb/model/DeleteProcessInstanceRequest.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_DELETEPROCESSINSTANCEREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_DELETEPROCESSINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT DeleteProcessInstanceRequest : public RpcServiceRequest { +public: + DeleteProcessInstanceRequest(); + ~DeleteProcessInstanceRequest(); + long getProjectCode() const; + void setProjectCode(long projectCode); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + long getProcessInstanceId() const; + void setProcessInstanceId(long processInstanceId); + +private: + long projectCode_; + std::string regionId_; + std::string dBClusterId_; + long processInstanceId_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_DELETEPROCESSINSTANCEREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/ModifyLogBackupPolicyResult.h b/adb/include/alibabacloud/adb/model/DeleteProcessInstanceResult.h similarity index 64% rename from adb/include/alibabacloud/adb/model/ModifyLogBackupPolicyResult.h rename to adb/include/alibabacloud/adb/model/DeleteProcessInstanceResult.h index b300254ee..6013fda37 100644 --- a/adb/include/alibabacloud/adb/model/ModifyLogBackupPolicyResult.h +++ b/adb/include/alibabacloud/adb/model/DeleteProcessInstanceResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_ADB_MODEL_MODIFYLOGBACKUPPOLICYRESULT_H_ -#define ALIBABACLOUD_ADB_MODEL_MODIFYLOGBACKUPPOLICYRESULT_H_ +#ifndef ALIBABACLOUD_ADB_MODEL_DELETEPROCESSINSTANCERESULT_H_ +#define ALIBABACLOUD_ADB_MODEL_DELETEPROCESSINSTANCERESULT_H_ #include #include @@ -29,21 +29,27 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_ADB_EXPORT ModifyLogBackupPolicyResult : public ServiceResult + class ALIBABACLOUD_ADB_EXPORT DeleteProcessInstanceResult : public ServiceResult { public: - ModifyLogBackupPolicyResult(); - explicit ModifyLogBackupPolicyResult(const std::string &payload); - ~ModifyLogBackupPolicyResult(); + DeleteProcessInstanceResult(); + explicit DeleteProcessInstanceResult(const std::string &payload); + ~DeleteProcessInstanceResult(); + std::string getMessage()const; + bool getData()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: + std::string message_; + bool data_; + bool success_; }; } } } -#endif // !ALIBABACLOUD_ADB_MODEL_MODIFYLOGBACKUPPOLICYRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_ADB_MODEL_DELETEPROCESSINSTANCERESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/DeleteSparkTemplateFileRequest.h b/adb/include/alibabacloud/adb/model/DeleteSparkTemplateFileRequest.h new file mode 100644 index 000000000..a1668d951 --- /dev/null +++ b/adb/include/alibabacloud/adb/model/DeleteSparkTemplateFileRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_DELETESPARKTEMPLATEFILEREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_DELETESPARKTEMPLATEFILEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT DeleteSparkTemplateFileRequest : public RpcServiceRequest { +public: + DeleteSparkTemplateFileRequest(); + ~DeleteSparkTemplateFileRequest(); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + long getId() const; + void setId(long id); + +private: + std::string dBClusterId_; + long id_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_DELETESPARKTEMPLATEFILEREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/GrantOperatorPermissionResult.h b/adb/include/alibabacloud/adb/model/DeleteSparkTemplateFileResult.h similarity index 66% rename from adb/include/alibabacloud/adb/model/GrantOperatorPermissionResult.h rename to adb/include/alibabacloud/adb/model/DeleteSparkTemplateFileResult.h index 76519f3e8..0cf9e1390 100644 --- a/adb/include/alibabacloud/adb/model/GrantOperatorPermissionResult.h +++ b/adb/include/alibabacloud/adb/model/DeleteSparkTemplateFileResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_ADB_MODEL_GRANTOPERATORPERMISSIONRESULT_H_ -#define ALIBABACLOUD_ADB_MODEL_GRANTOPERATORPERMISSIONRESULT_H_ +#ifndef ALIBABACLOUD_ADB_MODEL_DELETESPARKTEMPLATEFILERESULT_H_ +#define ALIBABACLOUD_ADB_MODEL_DELETESPARKTEMPLATEFILERESULT_H_ #include #include @@ -29,21 +29,27 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_ADB_EXPORT GrantOperatorPermissionResult : public ServiceResult + class ALIBABACLOUD_ADB_EXPORT DeleteSparkTemplateFileResult : public ServiceResult { public: + struct Data + { + bool succeeded; + }; - GrantOperatorPermissionResult(); - explicit GrantOperatorPermissionResult(const std::string &payload); - ~GrantOperatorPermissionResult(); + DeleteSparkTemplateFileResult(); + explicit DeleteSparkTemplateFileResult(const std::string &payload); + ~DeleteSparkTemplateFileResult(); + Data getData()const; protected: void parse(const std::string &payload); private: + Data data_; }; } } } -#endif // !ALIBABACLOUD_ADB_MODEL_GRANTOPERATORPERMISSIONRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_ADB_MODEL_DELETESPARKTEMPLATEFILERESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/DeleteSparkTemplateRequest.h b/adb/include/alibabacloud/adb/model/DeleteSparkTemplateRequest.h new file mode 100644 index 000000000..5f6c2d8f0 --- /dev/null +++ b/adb/include/alibabacloud/adb/model/DeleteSparkTemplateRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_DELETESPARKTEMPLATEREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_DELETESPARKTEMPLATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT DeleteSparkTemplateRequest : public RpcServiceRequest { +public: + DeleteSparkTemplateRequest(); + ~DeleteSparkTemplateRequest(); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + long getId() const; + void setId(long id); + +private: + std::string dBClusterId_; + long id_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_DELETESPARKTEMPLATEREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/DeleteSparkTemplateResult.h b/adb/include/alibabacloud/adb/model/DeleteSparkTemplateResult.h new file mode 100644 index 000000000..7d85c6f8e --- /dev/null +++ b/adb/include/alibabacloud/adb/model/DeleteSparkTemplateResult.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_DELETESPARKTEMPLATERESULT_H_ +#define ALIBABACLOUD_ADB_MODEL_DELETESPARKTEMPLATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Adb + { + namespace Model + { + class ALIBABACLOUD_ADB_EXPORT DeleteSparkTemplateResult : public ServiceResult + { + public: + struct Data + { + bool succeeded; + }; + + + DeleteSparkTemplateResult(); + explicit DeleteSparkTemplateResult(const std::string &payload); + ~DeleteSparkTemplateResult(); + Data getData()const; + + protected: + void parse(const std::string &payload); + private: + Data data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ADB_MODEL_DELETESPARKTEMPLATERESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/DescribeAccountsRequest.h b/adb/include/alibabacloud/adb/model/DescribeAccountsRequest.h index dcee0b9f6..1cfdcffc5 100644 --- a/adb/include/alibabacloud/adb/model/DescribeAccountsRequest.h +++ b/adb/include/alibabacloud/adb/model/DescribeAccountsRequest.h @@ -30,32 +30,20 @@ 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 getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getOwnerId() const; + void setOwnerId(const std::string &ownerId); 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 dBClusterId_; + std::string ownerId_; std::string accessKeyId_; std::string accountName_; - std::string resourceOwnerAccount_; - std::string dBClusterId_; - std::string ownerAccount_; - long ownerId_; }; } // namespace Model } // namespace Adb diff --git a/adb/include/alibabacloud/adb/model/DescribeAccountsResult.h b/adb/include/alibabacloud/adb/model/DescribeAccountsResult.h index e0beebf15..99c3a724f 100644 --- a/adb/include/alibabacloud/adb/model/DescribeAccountsResult.h +++ b/adb/include/alibabacloud/adb/model/DescribeAccountsResult.h @@ -36,6 +36,7 @@ namespace AlibabaCloud { std::string accountDescription; std::string accountStatus; + std::string ramUsers; std::string accountType; std::string accountName; }; diff --git a/adb/include/alibabacloud/adb/model/DescribeAdbMySqlColumnsRequest.h b/adb/include/alibabacloud/adb/model/DescribeAdbMySqlColumnsRequest.h new file mode 100644 index 000000000..8373585b8 --- /dev/null +++ b/adb/include/alibabacloud/adb/model/DescribeAdbMySqlColumnsRequest.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_DESCRIBEADBMYSQLCOLUMNSREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBEADBMYSQLCOLUMNSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT DescribeAdbMySqlColumnsRequest : public RpcServiceRequest { +public: + DescribeAdbMySqlColumnsRequest(); + ~DescribeAdbMySqlColumnsRequest(); + std::string getSchema() const; + void setSchema(const std::string &schema); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getTableName() const; + void setTableName(const std::string &tableName); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + +private: + std::string schema_; + std::string regionId_; + std::string tableName_; + std::string dBClusterId_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEADBMYSQLCOLUMNSREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/DescribeInclinedTablesResult.h b/adb/include/alibabacloud/adb/model/DescribeAdbMySqlColumnsResult.h similarity index 54% rename from adb/include/alibabacloud/adb/model/DescribeInclinedTablesResult.h rename to adb/include/alibabacloud/adb/model/DescribeAdbMySqlColumnsResult.h index 1c399e35a..4b618a822 100644 --- a/adb/include/alibabacloud/adb/model/DescribeInclinedTablesResult.h +++ b/adb/include/alibabacloud/adb/model/DescribeAdbMySqlColumnsResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBEINCLINEDTABLESRESULT_H_ -#define ALIBABACLOUD_ADB_MODEL_DESCRIBEINCLINEDTABLESRESULT_H_ +#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBEADBMYSQLCOLUMNSRESULT_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBEADBMYSQLCOLUMNSRESULT_H_ #include #include @@ -29,37 +29,39 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_ADB_EXPORT DescribeInclinedTablesResult : public ServiceResult + class ALIBABACLOUD_ADB_EXPORT DescribeAdbMySqlColumnsResult : public ServiceResult { public: - struct Table + struct Column { + std::string comment; std::string type; - bool isIncline; - long size; - std::string schema; std::string name; }; - DescribeInclinedTablesResult(); - explicit DescribeInclinedTablesResult(const std::string &payload); - ~DescribeInclinedTablesResult(); - std::string getTotalCount()const; - std::string getPageSize()const; - std::string getPageNumber()const; - std::vector getItems()const; + DescribeAdbMySqlColumnsResult(); + explicit DescribeAdbMySqlColumnsResult(const std::string &payload); + ~DescribeAdbMySqlColumnsResult(); + std::string getTableName()const; + int getColumnCount()const; + std::string getMessage()const; + std::string getSchema()const; + std::vector getColumns()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: - std::string totalCount_; - std::string pageSize_; - std::string pageNumber_; - std::vector
items_; + std::string tableName_; + int columnCount_; + std::string message_; + std::string schema_; + std::vector columns_; + bool success_; }; } } } -#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEINCLINEDTABLESRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEADBMYSQLCOLUMNSRESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/DescribeAdbMySqlSchemasRequest.h b/adb/include/alibabacloud/adb/model/DescribeAdbMySqlSchemasRequest.h new file mode 100644 index 000000000..9fbd97544 --- /dev/null +++ b/adb/include/alibabacloud/adb/model/DescribeAdbMySqlSchemasRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBEADBMYSQLSCHEMASREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBEADBMYSQLSCHEMASREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT DescribeAdbMySqlSchemasRequest : public RpcServiceRequest { +public: + DescribeAdbMySqlSchemasRequest(); + ~DescribeAdbMySqlSchemasRequest(); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + +private: + std::string regionId_; + std::string dBClusterId_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEADBMYSQLSCHEMASREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/DescribeAdbMySqlSchemasResult.h b/adb/include/alibabacloud/adb/model/DescribeAdbMySqlSchemasResult.h new file mode 100644 index 000000000..b552ec6fb --- /dev/null +++ b/adb/include/alibabacloud/adb/model/DescribeAdbMySqlSchemasResult.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_DESCRIBEADBMYSQLSCHEMASRESULT_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBEADBMYSQLSCHEMASRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Adb + { + namespace Model + { + class ALIBABACLOUD_ADB_EXPORT DescribeAdbMySqlSchemasResult : public ServiceResult + { + public: + + + DescribeAdbMySqlSchemasResult(); + explicit DescribeAdbMySqlSchemasResult(const std::string &payload); + ~DescribeAdbMySqlSchemasResult(); + std::string getMessage()const; + std::vector getSchemas()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::vector schemas_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEADBMYSQLSCHEMASRESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/ModifyDBClusterPayTypeRequest.h b/adb/include/alibabacloud/adb/model/DescribeAdbMySqlTablesRequest.h similarity index 54% rename from adb/include/alibabacloud/adb/model/ModifyDBClusterPayTypeRequest.h rename to adb/include/alibabacloud/adb/model/DescribeAdbMySqlTablesRequest.h index 1ba974511..c7abf4e28 100644 --- a/adb/include/alibabacloud/adb/model/ModifyDBClusterPayTypeRequest.h +++ b/adb/include/alibabacloud/adb/model/DescribeAdbMySqlTablesRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_ADB_MODEL_MODIFYDBCLUSTERPAYTYPEREQUEST_H_ -#define ALIBABACLOUD_ADB_MODEL_MODIFYDBCLUSTERPAYTYPEREQUEST_H_ +#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBEADBMYSQLTABLESREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBEADBMYSQLTABLESREQUEST_H_ #include #include @@ -26,26 +26,23 @@ namespace AlibabaCloud { namespace Adb { namespace Model { -class ALIBABACLOUD_ADB_EXPORT ModifyDBClusterPayTypeRequest : public RpcServiceRequest { +class ALIBABACLOUD_ADB_EXPORT DescribeAdbMySqlTablesRequest : 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); + DescribeAdbMySqlTablesRequest(); + ~DescribeAdbMySqlTablesRequest(); + std::string getSchema() const; + void setSchema(const std::string &schema); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); private: - std::string period_; - std::string dbClusterId_; - std::string usedTime_; - std::string payType_; + std::string schema_; + std::string regionId_; + std::string dBClusterId_; }; } // namespace Model } // namespace Adb } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_ADB_MODEL_MODIFYDBCLUSTERPAYTYPEREQUEST_H_ +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEADBMYSQLTABLESREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/DescribeAdbMySqlTablesResult.h b/adb/include/alibabacloud/adb/model/DescribeAdbMySqlTablesResult.h new file mode 100644 index 000000000..a103f30b0 --- /dev/null +++ b/adb/include/alibabacloud/adb/model/DescribeAdbMySqlTablesResult.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_DESCRIBEADBMYSQLTABLESRESULT_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBEADBMYSQLTABLESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Adb + { + namespace Model + { + class ALIBABACLOUD_ADB_EXPORT DescribeAdbMySqlTablesResult : public ServiceResult + { + public: + + + DescribeAdbMySqlTablesResult(); + explicit DescribeAdbMySqlTablesResult(const std::string &payload); + ~DescribeAdbMySqlTablesResult(); + std::string getMessage()const; + std::string getSchema()const; + std::vector getTables()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string schema_; + std::vector tables_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEADBMYSQLTABLESRESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/DescribeAllDataSourceResult.h b/adb/include/alibabacloud/adb/model/DescribeAllDataSourceResult.h deleted file mode 100644 index 36a325902..000000000 --- a/adb/include/alibabacloud/adb/model/DescribeAllDataSourceResult.h +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBEALLDATASOURCERESULT_H_ -#define ALIBABACLOUD_ADB_MODEL_DESCRIBEALLDATASOURCERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Adb - { - namespace Model - { - class ALIBABACLOUD_ADB_EXPORT DescribeAllDataSourceResult : public ServiceResult - { - public: - struct Table - { - std::string tableName; - std::string dBClusterId; - std::string schemaName; - }; - struct Column - { - 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(); - explicit DescribeAllDataSourceResult(const std::string &payload); - ~DescribeAllDataSourceResult(); - std::vector
getTables()const; - std::vector getColumns()const; - std::vector getSchemas()const; - - protected: - void parse(const std::string &payload); - private: - std::vector
tables_; - std::vector columns_; - std::vector schemas_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEALLDATASOURCERESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/DescribeLoadTasksRecordsRequest.h b/adb/include/alibabacloud/adb/model/DescribeApsActionLogsRequest.h similarity index 67% rename from adb/include/alibabacloud/adb/model/DescribeLoadTasksRecordsRequest.h rename to adb/include/alibabacloud/adb/model/DescribeApsActionLogsRequest.h index b61425603..89961eed1 100644 --- a/adb/include/alibabacloud/adb/model/DescribeLoadTasksRecordsRequest.h +++ b/adb/include/alibabacloud/adb/model/DescribeApsActionLogsRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBELOADTASKSRECORDSREQUEST_H_ -#define ALIBABACLOUD_ADB_MODEL_DESCRIBELOADTASKSRECORDSREQUEST_H_ +#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBEAPSACTIONLOGSREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBEAPSACTIONLOGSREQUEST_H_ #include #include @@ -26,26 +26,12 @@ namespace AlibabaCloud { namespace Adb { namespace Model { -class ALIBABACLOUD_ADB_EXPORT DescribeLoadTasksRecordsRequest : public RpcServiceRequest { +class ALIBABACLOUD_ADB_EXPORT DescribeApsActionLogsRequest : public RpcServiceRequest { public: - DescribeLoadTasksRecordsRequest(); - ~DescribeLoadTasksRecordsRequest(); + DescribeApsActionLogsRequest(); + ~DescribeApsActionLogsRequest(); 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; @@ -54,28 +40,45 @@ public: void setOwnerAccount(const std::string &ownerAccount); std::string getEndTime() const; void setEndTime(const std::string &endTime); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); long getOwnerId() const; void setOwnerId(long ownerId); - std::string getDBName() const; - void setDBName(const std::string &dBName); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getStage() const; + void setStage(const std::string &stage); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getProxyUser() const; + void setProxyUser(const std::string &proxyUser); + std::string getWorkloadId() const; + void setWorkloadId(const std::string &workloadId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getState() const; + void setState(const std::string &state); + std::string getKeyword() const; + void setKeyword(const std::string &keyword); 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_; + std::string startTime_; long ownerId_; - std::string dBName_; + int pageNumber_; + std::string stage_; + std::string regionId_; + std::string proxyUser_; + std::string workloadId_; + int pageSize_; + std::string state_; + std::string keyword_; }; } // namespace Model } // namespace Adb } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBELOADTASKSRECORDSREQUEST_H_ +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEAPSACTIONLOGSREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/DescribeLoadTasksRecordsResult.h b/adb/include/alibabacloud/adb/model/DescribeApsActionLogsResult.h similarity index 62% rename from adb/include/alibabacloud/adb/model/DescribeLoadTasksRecordsResult.h rename to adb/include/alibabacloud/adb/model/DescribeApsActionLogsResult.h index 3e5b29eed..b3fb1b6b6 100644 --- a/adb/include/alibabacloud/adb/model/DescribeLoadTasksRecordsResult.h +++ b/adb/include/alibabacloud/adb/model/DescribeApsActionLogsResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBELOADTASKSRECORDSRESULT_H_ -#define ALIBABACLOUD_ADB_MODEL_DESCRIBELOADTASKSRECORDSRESULT_H_ +#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBEAPSACTIONLOGSRESULT_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBEAPSACTIONLOGSRESULT_H_ #include #include @@ -29,42 +29,40 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_ADB_EXPORT DescribeLoadTasksRecordsResult : public ServiceResult + class ALIBABACLOUD_ADB_EXPORT DescribeApsActionLogsResult : public ServiceResult { public: - struct LoadTaskRecord + struct SlowLogRecord { - long processRows; + std::string context; std::string state; - std::string createTime; - std::string updateTime; - std::string jobName; - std::string dBName; - std::string processID; - std::string sql; + std::string stage; + std::string time; }; - DescribeLoadTasksRecordsResult(); - explicit DescribeLoadTasksRecordsResult(const std::string &payload); - ~DescribeLoadTasksRecordsResult(); + DescribeApsActionLogsResult(); + explicit DescribeApsActionLogsResult(const std::string &payload); + ~DescribeApsActionLogsResult(); std::string getTotalCount()const; - std::vector getLoadTasksRecords()const; std::string getPageSize()const; + std::string getWorkloadId()const; std::string getPageNumber()const; std::string getDBClusterId()const; + std::vector getActionLogs()const; protected: void parse(const std::string &payload); private: std::string totalCount_; - std::vector loadTasksRecords_; std::string pageSize_; + std::string workloadId_; std::string pageNumber_; std::string dBClusterId_; + std::vector actionLogs_; }; } } } -#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBELOADTASKSRECORDSRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEAPSACTIONLOGSRESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/DescribeApsResourceGroupsRequest.h b/adb/include/alibabacloud/adb/model/DescribeApsResourceGroupsRequest.h new file mode 100644 index 000000000..0450e3f5e --- /dev/null +++ b/adb/include/alibabacloud/adb/model/DescribeApsResourceGroupsRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBEAPSRESOURCEGROUPSREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBEAPSRESOURCEGROUPSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT DescribeApsResourceGroupsRequest : public RpcServiceRequest { +public: + DescribeApsResourceGroupsRequest(); + ~DescribeApsResourceGroupsRequest(); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + +private: + std::string dBClusterId_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEAPSRESOURCEGROUPSREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/DescribeApsResourceGroupsResult.h b/adb/include/alibabacloud/adb/model/DescribeApsResourceGroupsResult.h new file mode 100644 index 000000000..95c4475db --- /dev/null +++ b/adb/include/alibabacloud/adb/model/DescribeApsResourceGroupsResult.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBEAPSRESOURCEGROUPSRESULT_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBEAPSRESOURCEGROUPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Adb + { + namespace Model + { + class ALIBABACLOUD_ADB_EXPORT DescribeApsResourceGroupsResult : public ServiceResult + { + public: + struct Data + { + struct ValidPoolsInfo + { + std::string groupName; + std::string groupType; + int minComputeResource; + bool available; + int maxComputeResource; + std::vector cuOptions; + }; + std::vector resourceGroups; + long step; + }; + + + DescribeApsResourceGroupsResult(); + explicit DescribeApsResourceGroupsResult(const std::string &payload); + ~DescribeApsResourceGroupsResult(); + std::string getMessage()const; + long getHttpStatusCode()const; + Data getData()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + long httpStatusCode_; + Data data_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEAPSRESOURCEGROUPSRESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/DescribeAuditLogRecordsRequest.h b/adb/include/alibabacloud/adb/model/DescribeAuditLogRecordsRequest.h index aecf1e307..6f89993c2 100644 --- a/adb/include/alibabacloud/adb/model/DescribeAuditLogRecordsRequest.h +++ b/adb/include/alibabacloud/adb/model/DescribeAuditLogRecordsRequest.h @@ -42,6 +42,8 @@ public: void setHostAddress(const std::string &hostAddress); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + std::string getProxyUser() const; + void setProxyUser(const std::string &proxyUser); int getPageSize() const; void setPageSize(int pageSize); std::string getOrder() const; @@ -76,6 +78,7 @@ private: std::string accessKeyId_; std::string hostAddress_; std::string regionId_; + std::string proxyUser_; int pageSize_; std::string order_; std::string sqlType_; diff --git a/adb/include/alibabacloud/adb/model/DescribeAutoRenewAttributeRequest.h b/adb/include/alibabacloud/adb/model/DescribeAutoRenewAttributeRequest.h deleted file mode 100644 index a2be521cb..000000000 --- a/adb/include/alibabacloud/adb/model/DescribeAutoRenewAttributeRequest.h +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 deleted file mode 100644 index cfa9c4e63..000000000 --- a/adb/include/alibabacloud/adb/model/DescribeAvailableResourceRequest.h +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 deleted file mode 100644 index 0f9912751..000000000 --- a/adb/include/alibabacloud/adb/model/DescribeAvailableResourceResult.h +++ /dev/null @@ -1,110 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBEAVAILABLERESOURCERESULT_H_ -#define ALIBABACLOUD_ADB_MODEL_DESCRIBEAVAILABLERESOURCERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Adb - { - namespace Model - { - class ALIBABACLOUD_ADB_EXPORT DescribeAvailableResourceResult : public ServiceResult - { - public: - struct AvailableZone - { - struct SupportedModeItem - { - struct SupportedSerialListItem - { - struct SupportedFlexibleResourceItem - { - struct SupportedElasticIOResource - { - std::string step; - std::string maxCount; - std::string minCount; - }; - std::string storageType; - SupportedElasticIOResource supportedElasticIOResource; - std::vector supportedStorageResource; - std::vector supportedComputeResource; - }; - struct SupportedInstanceClass - { - struct SupportedNodeCount - { - struct NodeCount - { - std::string step; - std::string maxCount; - std::string minCount; - }; - NodeCount nodeCount; - std::vector storageSize; - }; - struct SupportedExecutor - { - struct NodeCount1 - { - std::string step; - std::string maxCount; - std::string minCount; - }; - NodeCount1 nodeCount1; - }; - std::vector supportedExecutorList; - std::string instanceClass; - std::vector supportedNodeCountList; - std::string tips; - }; - std::string serial; - std::vector supportedFlexibleResource; - std::vector supportedInstanceClassList; - }; - std::string mode; - std::vector supportedSerialList; - }; - std::string zoneId; - std::vector supportedMode; - }; - - - DescribeAvailableResourceResult(); - explicit DescribeAvailableResourceResult(const std::string &payload); - ~DescribeAvailableResourceResult(); - std::string getRegionId()const; - std::vector getAvailableZoneList()const; - - protected: - void parse(const std::string &payload); - private: - std::string regionId_; - std::vector availableZoneList_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEAVAILABLERESOURCERESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/DescribeConnectionCountRecordsRequest.h b/adb/include/alibabacloud/adb/model/DescribeClusterAccessWhiteListRequest.h similarity index 66% rename from adb/include/alibabacloud/adb/model/DescribeConnectionCountRecordsRequest.h rename to adb/include/alibabacloud/adb/model/DescribeClusterAccessWhiteListRequest.h index 5f42410ab..2292aecff 100644 --- a/adb/include/alibabacloud/adb/model/DescribeConnectionCountRecordsRequest.h +++ b/adb/include/alibabacloud/adb/model/DescribeClusterAccessWhiteListRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBECONNECTIONCOUNTRECORDSREQUEST_H_ -#define ALIBABACLOUD_ADB_MODEL_DESCRIBECONNECTIONCOUNTRECORDSREQUEST_H_ +#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBECLUSTERACCESSWHITELISTREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBECLUSTERACCESSWHITELISTREQUEST_H_ #include #include @@ -26,32 +26,23 @@ namespace AlibabaCloud { namespace Adb { namespace Model { -class ALIBABACLOUD_ADB_EXPORT DescribeConnectionCountRecordsRequest : public RpcServiceRequest { +class ALIBABACLOUD_ADB_EXPORT DescribeClusterAccessWhiteListRequest : public RpcServiceRequest { public: - DescribeConnectionCountRecordsRequest(); - ~DescribeConnectionCountRecordsRequest(); - long getResourceOwnerId() const; - void setResourceOwnerId(long resourceOwnerId); + DescribeClusterAccessWhiteListRequest(); + ~DescribeClusterAccessWhiteListRequest(); 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_ +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBECLUSTERACCESSWHITELISTREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/DescribeDBClusterAccessWhiteListResult.h b/adb/include/alibabacloud/adb/model/DescribeClusterAccessWhiteListResult.h similarity index 70% rename from adb/include/alibabacloud/adb/model/DescribeDBClusterAccessWhiteListResult.h rename to adb/include/alibabacloud/adb/model/DescribeClusterAccessWhiteListResult.h index c7357c864..c38316ee6 100644 --- a/adb/include/alibabacloud/adb/model/DescribeDBClusterAccessWhiteListResult.h +++ b/adb/include/alibabacloud/adb/model/DescribeClusterAccessWhiteListResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBEDBCLUSTERACCESSWHITELISTRESULT_H_ -#define ALIBABACLOUD_ADB_MODEL_DESCRIBEDBCLUSTERACCESSWHITELISTRESULT_H_ +#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBECLUSTERACCESSWHITELISTRESULT_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBECLUSTERACCESSWHITELISTRESULT_H_ #include #include @@ -29,7 +29,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_ADB_EXPORT DescribeDBClusterAccessWhiteListResult : public ServiceResult + class ALIBABACLOUD_ADB_EXPORT DescribeClusterAccessWhiteListResult : public ServiceResult { public: struct IPArray @@ -40,9 +40,9 @@ namespace AlibabaCloud }; - DescribeDBClusterAccessWhiteListResult(); - explicit DescribeDBClusterAccessWhiteListResult(const std::string &payload); - ~DescribeDBClusterAccessWhiteListResult(); + DescribeClusterAccessWhiteListResult(); + explicit DescribeClusterAccessWhiteListResult(const std::string &payload); + ~DescribeClusterAccessWhiteListResult(); std::vector getItems()const; protected: @@ -54,4 +54,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEDBCLUSTERACCESSWHITELISTRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBECLUSTERACCESSWHITELISTRESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/DescribeDBClusterNetInfoRequest.h b/adb/include/alibabacloud/adb/model/DescribeClusterNetInfoRequest.h similarity index 57% rename from adb/include/alibabacloud/adb/model/DescribeDBClusterNetInfoRequest.h rename to adb/include/alibabacloud/adb/model/DescribeClusterNetInfoRequest.h index 9956eb014..b1e5a5639 100644 --- a/adb/include/alibabacloud/adb/model/DescribeDBClusterNetInfoRequest.h +++ b/adb/include/alibabacloud/adb/model/DescribeClusterNetInfoRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBEDBCLUSTERNETINFOREQUEST_H_ -#define ALIBABACLOUD_ADB_MODEL_DESCRIBEDBCLUSTERNETINFOREQUEST_H_ +#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBECLUSTERNETINFOREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBECLUSTERNETINFOREQUEST_H_ #include #include @@ -26,32 +26,20 @@ namespace AlibabaCloud { namespace Adb { namespace Model { -class ALIBABACLOUD_ADB_EXPORT DescribeDBClusterNetInfoRequest : public RpcServiceRequest { +class ALIBABACLOUD_ADB_EXPORT DescribeClusterNetInfoRequest : 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); + DescribeClusterNetInfoRequest(); + ~DescribeClusterNetInfoRequest(); 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); private: - long resourceOwnerId_; - std::string accessKeyId_; - std::string resourceOwnerAccount_; std::string dBClusterId_; - std::string ownerAccount_; - long ownerId_; + std::string accessKeyId_; }; } // namespace Model } // namespace Adb } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEDBCLUSTERNETINFOREQUEST_H_ +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBECLUSTERNETINFOREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/DescribeDBClusterNetInfoResult.h b/adb/include/alibabacloud/adb/model/DescribeClusterNetInfoResult.h similarity index 75% rename from adb/include/alibabacloud/adb/model/DescribeDBClusterNetInfoResult.h rename to adb/include/alibabacloud/adb/model/DescribeClusterNetInfoResult.h index fcba0c2bb..73b9aaead 100644 --- a/adb/include/alibabacloud/adb/model/DescribeDBClusterNetInfoResult.h +++ b/adb/include/alibabacloud/adb/model/DescribeClusterNetInfoResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBEDBCLUSTERNETINFORESULT_H_ -#define ALIBABACLOUD_ADB_MODEL_DESCRIBEDBCLUSTERNETINFORESULT_H_ +#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBECLUSTERNETINFORESULT_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBECLUSTERNETINFORESULT_H_ #include #include @@ -29,7 +29,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_ADB_EXPORT DescribeDBClusterNetInfoResult : public ServiceResult + class ALIBABACLOUD_ADB_EXPORT DescribeClusterNetInfoResult : public ServiceResult { public: struct Address @@ -44,9 +44,9 @@ namespace AlibabaCloud }; - DescribeDBClusterNetInfoResult(); - explicit DescribeDBClusterNetInfoResult(const std::string &payload); - ~DescribeDBClusterNetInfoResult(); + DescribeClusterNetInfoResult(); + explicit DescribeClusterNetInfoResult(const std::string &payload); + ~DescribeClusterNetInfoResult(); std::string getClusterNetworkType()const; std::vector
getItems()const; @@ -60,4 +60,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEDBCLUSTERNETINFORESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBECLUSTERNETINFORESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/DescribeConnectionCountRecordsResult.h b/adb/include/alibabacloud/adb/model/DescribeConnectionCountRecordsResult.h deleted file mode 100644 index a1d1df7c7..000000000 --- a/adb/include/alibabacloud/adb/model/DescribeConnectionCountRecordsResult.h +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBECONNECTIONCOUNTRECORDSRESULT_H_ -#define ALIBABACLOUD_ADB_MODEL_DESCRIBECONNECTIONCOUNTRECORDSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Adb - { - namespace Model - { - class ALIBABACLOUD_ADB_EXPORT DescribeConnectionCountRecordsResult : public ServiceResult - { - public: - struct AccessIps - { - std::string accessIp; - long count; - }; - struct Users - { - std::string user; - long count; - }; - - - DescribeConnectionCountRecordsResult(); - explicit DescribeConnectionCountRecordsResult(const std::string &payload); - ~DescribeConnectionCountRecordsResult(); - std::string getTotalCount()const; - std::vector getUserRecords()const; - std::string getDBClusterId()const; - std::vector getAccessIpRecords()const; - - protected: - void parse(const std::string &payload); - private: - std::string totalCount_; - std::vector userRecords_; - std::string dBClusterId_; - std::vector accessIpRecords_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBECONNECTIONCOUNTRECORDSRESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/DescribeDBClusterAccessWhiteListRequest.h b/adb/include/alibabacloud/adb/model/DescribeDBClusterAccessWhiteListRequest.h deleted file mode 100644 index 84b9b013a..000000000 --- a/adb/include/alibabacloud/adb/model/DescribeDBClusterAccessWhiteListRequest.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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/DescribeDBClusterAttributeRequest.h b/adb/include/alibabacloud/adb/model/DescribeDBClusterAttributeRequest.h index 715c6c614..8529a1c73 100644 --- a/adb/include/alibabacloud/adb/model/DescribeDBClusterAttributeRequest.h +++ b/adb/include/alibabacloud/adb/model/DescribeDBClusterAttributeRequest.h @@ -30,26 +30,14 @@ class ALIBABACLOUD_ADB_EXPORT DescribeDBClusterAttributeRequest : public RpcServ 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 diff --git a/adb/include/alibabacloud/adb/model/DescribeDBClusterAttributeResult.h b/adb/include/alibabacloud/adb/model/DescribeDBClusterAttributeResult.h index 7ba00b5d3..42338f4d4 100644 --- a/adb/include/alibabacloud/adb/model/DescribeDBClusterAttributeResult.h +++ b/adb/include/alibabacloud/adb/model/DescribeDBClusterAttributeResult.h @@ -34,30 +34,19 @@ namespace AlibabaCloud public: struct DBCluster { - struct Tag - { - std::string value; - std::string key; - }; std::string storageResource; - std::string category; std::string resourceGroupId; + std::string reservedACU; int port; std::string dBClusterId; std::string dBClusterNetworkType; std::string dBClusterType; - std::string diskType; - int elasticIOResource; std::string dBVersion; - std::string dtsJobId; - long dBNodeCount; std::string commodityCode; - std::string executorCount; + std::string computeResourceTotal; std::string lockReason; std::string maintainTime; - std::vector tags; std::string engine; - long dBNodeStorage; std::string engineVersion; bool userENIStatus; std::string zoneId; @@ -70,16 +59,11 @@ namespace AlibabaCloud std::string expired; std::string payType; std::string lockMode; - bool enableAirflow; - bool enableSpark; - std::string dBNodeClass; - std::string vPCCloudInstanceId; std::string creationTime; - std::string kmsId; std::string regionId; std::string connectionString; std::string expireTime; - std::string rdsInstanceId; + std::string storageResourceTotal; }; diff --git a/adb/include/alibabacloud/adb/model/DescribeDBClusterHealthReportRequest.h b/adb/include/alibabacloud/adb/model/DescribeDBClusterHealthStatusRequest.h similarity index 70% rename from adb/include/alibabacloud/adb/model/DescribeDBClusterHealthReportRequest.h rename to adb/include/alibabacloud/adb/model/DescribeDBClusterHealthStatusRequest.h index 1b1f62f0f..59d862993 100644 --- a/adb/include/alibabacloud/adb/model/DescribeDBClusterHealthReportRequest.h +++ b/adb/include/alibabacloud/adb/model/DescribeDBClusterHealthStatusRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBEDBCLUSTERHEALTHREPORTREQUEST_H_ -#define ALIBABACLOUD_ADB_MODEL_DESCRIBEDBCLUSTERHEALTHREPORTREQUEST_H_ +#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBEDBCLUSTERHEALTHSTATUSREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBEDBCLUSTERHEALTHSTATUSREQUEST_H_ #include #include @@ -26,23 +26,23 @@ namespace AlibabaCloud { namespace Adb { namespace Model { -class ALIBABACLOUD_ADB_EXPORT DescribeDBClusterHealthReportRequest : public RpcServiceRequest { +class ALIBABACLOUD_ADB_EXPORT DescribeDBClusterHealthStatusRequest : public RpcServiceRequest { public: - DescribeDBClusterHealthReportRequest(); - ~DescribeDBClusterHealthReportRequest(); + DescribeDBClusterHealthStatusRequest(); + ~DescribeDBClusterHealthStatusRequest(); 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); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); private: std::string regionId_; std::string dBClusterId_; - std::string startTime_; + std::string accessKeyId_; }; } // namespace Model } // namespace Adb } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEDBCLUSTERHEALTHREPORTREQUEST_H_ +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEDBCLUSTERHEALTHSTATUSREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/DescribeDBClusterHealthStatusResult.h b/adb/include/alibabacloud/adb/model/DescribeDBClusterHealthStatusResult.h new file mode 100644 index 000000000..2b0356c19 --- /dev/null +++ b/adb/include/alibabacloud/adb/model/DescribeDBClusterHealthStatusResult.h @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBEDBCLUSTERHEALTHSTATUSRESULT_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBEDBCLUSTERHEALTHSTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Adb + { + namespace Model + { + class ALIBABACLOUD_ADB_EXPORT DescribeDBClusterHealthStatusResult : public ServiceResult + { + public: + struct CS + { + std::string status; + long unavailableCount; + long activeCount; + long expectedCount; + long riskCount; + }; + struct Executor + { + std::string status; + long unavailableCount; + long activeCount; + long expectedCount; + long riskCount; + }; + struct Worker + { + std::string status; + long unavailableCount; + long activeCount; + long expectedCount; + long riskCount; + }; + + + DescribeDBClusterHealthStatusResult(); + explicit DescribeDBClusterHealthStatusResult(const std::string &payload); + ~DescribeDBClusterHealthStatusResult(); + CS getCS()const; + Executor getExecutor()const; + std::string getInstanceStatus()const; + Worker getWorker()const; + + protected: + void parse(const std::string &payload); + private: + CS cS_; + Executor executor_; + std::string instanceStatus_; + Worker worker_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEDBCLUSTERHEALTHSTATUSRESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/DescribeDBClusterPerformanceRequest.h b/adb/include/alibabacloud/adb/model/DescribeDBClusterPerformanceRequest.h index d1d525b03..4bf623d9a 100644 --- a/adb/include/alibabacloud/adb/model/DescribeDBClusterPerformanceRequest.h +++ b/adb/include/alibabacloud/adb/model/DescribeDBClusterPerformanceRequest.h @@ -30,35 +30,29 @@ class ALIBABACLOUD_ADB_EXPORT DescribeDBClusterPerformanceRequest : public RpcSe public: DescribeDBClusterPerformanceRequest(); ~DescribeDBClusterPerformanceRequest(); - long getResourceOwnerId() const; - void setResourceOwnerId(long resourceOwnerId); + 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); std::string getAccessKeyId() const; void setAccessKeyId(const std::string &accessKeyId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + 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 dBClusterId_; + std::string endTime_; std::string startTime_; std::string accessKeyId_; + std::string regionId_; + std::string resourcePools_; std::string key_; - std::string resourceOwnerAccount_; - std::string dBClusterId_; - std::string ownerAccount_; - std::string endTime_; - long ownerId_; }; } // namespace Model } // namespace Adb diff --git a/adb/include/alibabacloud/adb/model/DescribeDBClusterPerformanceResult.h b/adb/include/alibabacloud/adb/model/DescribeDBClusterPerformanceResult.h index 669057c9d..ce47cb1ca 100644 --- a/adb/include/alibabacloud/adb/model/DescribeDBClusterPerformanceResult.h +++ b/adb/include/alibabacloud/adb/model/DescribeDBClusterPerformanceResult.h @@ -37,6 +37,7 @@ namespace AlibabaCloud struct SeriesItem { std::vector values; + std::string tags; std::string name; }; std::vector series; diff --git a/adb/include/alibabacloud/adb/model/DescribeDBClusterResourcePoolPerformanceRequest.h b/adb/include/alibabacloud/adb/model/DescribeDBClusterResourcePoolPerformanceRequest.h deleted file mode 100644 index 3afca4faf..000000000 --- a/adb/include/alibabacloud/adb/model/DescribeDBClusterResourcePoolPerformanceRequest.h +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 deleted file mode 100644 index 7fbdcf4d3..000000000 --- a/adb/include/alibabacloud/adb/model/DescribeDBClusterResourcePoolPerformanceResult.h +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBEDBCLUSTERRESOURCEPOOLPERFORMANCERESULT_H_ -#define ALIBABACLOUD_ADB_MODEL_DESCRIBEDBCLUSTERRESOURCEPOOLPERFORMANCERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Adb - { - namespace Model - { - class ALIBABACLOUD_ADB_EXPORT DescribeDBClusterResourcePoolPerformanceResult : public ServiceResult - { - public: - struct PerformanceItem - { - struct ResourcePoolPerformancesItem - { - struct ResourcePoolSeriesItem - { - std::vector values; - std::string name; - }; - std::vector resourcePoolSeries; - std::string resourcePoolName; - }; - std::vector resourcePoolPerformances; - std::string unit; - std::string key; - }; - - - DescribeDBClusterResourcePoolPerformanceResult(); - explicit DescribeDBClusterResourcePoolPerformanceResult(const std::string &payload); - ~DescribeDBClusterResourcePoolPerformanceResult(); - std::string getEndTime()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 startTime_; - std::string dBClusterId_; - std::vector performances_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEDBCLUSTERRESOURCEPOOLPERFORMANCERESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/DescribeDBClustersRequest.h b/adb/include/alibabacloud/adb/model/DescribeDBClustersRequest.h index 9061cecf4..a7cc3b332 100644 --- a/adb/include/alibabacloud/adb/model/DescribeDBClustersRequest.h +++ b/adb/include/alibabacloud/adb/model/DescribeDBClustersRequest.h @@ -28,14 +28,8 @@ 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; @@ -50,19 +44,10 @@ public: 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_; @@ -70,10 +55,6 @@ private: std::string resourceGroupId_; std::string regionId_; int pageSize_; - std::vector tag_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; std::string dBClusterIds_; }; } // namespace Model diff --git a/adb/include/alibabacloud/adb/model/DescribeDBClustersResult.h b/adb/include/alibabacloud/adb/model/DescribeDBClustersResult.h index 62d85439c..80d8ad119 100644 --- a/adb/include/alibabacloud/adb/model/DescribeDBClustersResult.h +++ b/adb/include/alibabacloud/adb/model/DescribeDBClustersResult.h @@ -34,29 +34,17 @@ namespace AlibabaCloud public: struct DBCluster { - struct Tag - { - std::string value; - std::string key; - }; std::string storageResource; - std::string category; std::string resourceGroupId; + std::string reservedACU; std::string port; std::string dBClusterId; std::string dBClusterNetworkType; std::string dBClusterType; - std::string diskType; - int elasticIOResource; std::string dBVersion; - std::string dtsJobId; - long dBNodeCount; std::string commodityCode; - std::string executorCount; std::string lockReason; - std::vector tags; std::string engine; - long dBNodeStorage; std::string zoneId; std::string vPCId; std::string dBClusterStatus; @@ -68,12 +56,9 @@ namespace AlibabaCloud std::string expired; std::string payType; std::string lockMode; - std::string dBNodeClass; - std::string vPCCloudInstanceId; std::string regionId; 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 index 8b047edbf..39ada35fd 100644 --- a/adb/include/alibabacloud/adb/model/DescribeDBResourceGroupRequest.h +++ b/adb/include/alibabacloud/adb/model/DescribeDBResourceGroupRequest.h @@ -30,29 +30,23 @@ class ALIBABACLOUD_ADB_EXPORT DescribeDBResourceGroupRequest : public RpcService 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); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getGroupType() const; + void setGroupType(const std::string &groupType); private: - long resourceOwnerId_; - std::string accessKeyId_; std::string resourceOwnerAccount_; std::string dBClusterId_; - std::string ownerAccount_; - long ownerId_; std::string groupName_; + std::string accessKeyId_; + std::string groupType_; }; } // namespace Model } // namespace Adb diff --git a/adb/include/alibabacloud/adb/model/DescribeDBResourceGroupResult.h b/adb/include/alibabacloud/adb/model/DescribeDBResourceGroupResult.h index 2e6aaf551..c7657acee 100644 --- a/adb/include/alibabacloud/adb/model/DescribeDBResourceGroupResult.h +++ b/adb/include/alibabacloud/adb/model/DescribeDBResourceGroupResult.h @@ -35,11 +35,14 @@ namespace AlibabaCloud struct PoolInfo { std::string groupName; + std::string status; std::string groupType; - int nodeNum; + std::string minComputeResource; std::string createTime; std::string updateTime; + std::string maxComputeResource; std::string groupUsers; + std::string elasticMinComputeResource; }; diff --git a/adb/include/alibabacloud/adb/model/DescribeDBResourcePoolRequest.h b/adb/include/alibabacloud/adb/model/DescribeDBResourcePoolRequest.h deleted file mode 100644 index 1f806f7b6..000000000 --- a/adb/include/alibabacloud/adb/model/DescribeDBResourcePoolRequest.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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/DescribeDiagnosisRecordsRequest.h b/adb/include/alibabacloud/adb/model/DescribeDiagnosisRecordsRequest.h index 065b131e4..133e5370b 100644 --- a/adb/include/alibabacloud/adb/model/DescribeDiagnosisRecordsRequest.h +++ b/adb/include/alibabacloud/adb/model/DescribeDiagnosisRecordsRequest.h @@ -60,8 +60,8 @@ public: 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 getPatternId() const; + void setPatternId(const std::string &patternId); std::string getEndTime() const; void setEndTime(const std::string &endTime); long getMinPeakMemory() const; @@ -89,7 +89,7 @@ private: long maxScanSize_; std::string resourceGroup_; std::string dBClusterId_; - long patternId_; + std::string patternId_; std::string endTime_; long minPeakMemory_; long minScanSize_; diff --git a/adb/include/alibabacloud/adb/model/KillProcessRequest.h b/adb/include/alibabacloud/adb/model/DescribeDiagnosisSQLInfoRequest.h similarity index 54% rename from adb/include/alibabacloud/adb/model/KillProcessRequest.h rename to adb/include/alibabacloud/adb/model/DescribeDiagnosisSQLInfoRequest.h index 69a1f6f51..8ba56223f 100644 --- a/adb/include/alibabacloud/adb/model/KillProcessRequest.h +++ b/adb/include/alibabacloud/adb/model/DescribeDiagnosisSQLInfoRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_ADB_MODEL_KILLPROCESSREQUEST_H_ -#define ALIBABACLOUD_ADB_MODEL_KILLPROCESSREQUEST_H_ +#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBEDIAGNOSISSQLINFOREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBEDIAGNOSISSQLINFOREQUEST_H_ #include #include @@ -26,35 +26,35 @@ namespace AlibabaCloud { namespace Adb { namespace Model { -class ALIBABACLOUD_ADB_EXPORT KillProcessRequest : public RpcServiceRequest { +class ALIBABACLOUD_ADB_EXPORT DescribeDiagnosisSQLInfoRequest : 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); + DescribeDiagnosisSQLInfoRequest(); + ~DescribeDiagnosisSQLInfoRequest(); 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 getProcessState() const; + void setProcessState(const std::string &processState); + long getProcessStartTime() const; + void setProcessStartTime(long processStartTime); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); std::string getProcessId() const; void setProcessId(const std::string &processId); + std::string getProcessRcHost() const; + void setProcessRcHost(const std::string &processRcHost); + std::string getLang() const; + void setLang(const std::string &lang); private: - long resourceOwnerId_; - std::string accessKeyId_; - std::string resourceOwnerAccount_; std::string dBClusterId_; - std::string ownerAccount_; - long ownerId_; + std::string processState_; + long processStartTime_; + std::string regionId_; std::string processId_; + std::string processRcHost_; + std::string lang_; }; } // namespace Model } // namespace Adb } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_ADB_MODEL_KILLPROCESSREQUEST_H_ +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEDIAGNOSISSQLINFOREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/DescribeSQLPlanTaskResult.h b/adb/include/alibabacloud/adb/model/DescribeDiagnosisSQLInfoResult.h similarity index 59% rename from adb/include/alibabacloud/adb/model/DescribeSQLPlanTaskResult.h rename to adb/include/alibabacloud/adb/model/DescribeDiagnosisSQLInfoResult.h index 015bd165f..8577365b4 100644 --- a/adb/include/alibabacloud/adb/model/DescribeSQLPlanTaskResult.h +++ b/adb/include/alibabacloud/adb/model/DescribeDiagnosisSQLInfoResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBESQLPLANTASKRESULT_H_ -#define ALIBABACLOUD_ADB_MODEL_DESCRIBESQLPLANTASKRESULT_H_ +#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBEDIAGNOSISSQLINFORESULT_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBEDIAGNOSISSQLINFORESULT_H_ #include #include @@ -29,38 +29,37 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_ADB_EXPORT DescribeSQLPlanTaskResult : public ServiceResult + class ALIBABACLOUD_ADB_EXPORT DescribeDiagnosisSQLInfoResult : public ServiceResult { public: - struct SqlPlanTask + struct StageInfosItem { - long outputSize; - long scanRows; - int taskId; - long scanCost; - long inputSize; + double progress; std::string state; long peakMemory; - long operatorCost; + std::string stageId; long outputRows; - long elapsedTime; - long scanSize; + long operatorCost; + long inputDataSize; long inputRows; + long outputDataSize; }; - DescribeSQLPlanTaskResult(); - explicit DescribeSQLPlanTaskResult(const std::string &payload); - ~DescribeSQLPlanTaskResult(); - std::vector getTaskList()const; + DescribeDiagnosisSQLInfoResult(); + explicit DescribeDiagnosisSQLInfoResult(const std::string &payload); + ~DescribeDiagnosisSQLInfoResult(); + std::vector getStageInfos()const; + std::string getDiagnosisSQLInfo()const; protected: void parse(const std::string &payload); private: - std::vector taskList_; + std::vector stageInfos_; + std::string diagnosisSQLInfo_; }; } } } -#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBESQLPLANTASKRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEDIAGNOSISSQLINFORESULT_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 deleted file mode 100644 index ca576f269..000000000 --- a/adb/include/alibabacloud/adb/model/DescribeElasticDailyPlanRequest.h +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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/DescribeElasticDailyPlanResult.h b/adb/include/alibabacloud/adb/model/DescribeElasticDailyPlanResult.h deleted file mode 100644 index 1e25cf00c..000000000 --- a/adb/include/alibabacloud/adb/model/DescribeElasticDailyPlanResult.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBEELASTICDAILYPLANRESULT_H_ -#define ALIBABACLOUD_ADB_MODEL_DESCRIBEELASTICDAILYPLANRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Adb - { - namespace Model - { - class ALIBABACLOUD_ADB_EXPORT DescribeElasticDailyPlanResult : public ServiceResult - { - public: - struct ElasticDailyPlanInfo - { - int status; - std::string startTs; - std::string planEndTs; - std::string endTs; - int elasticNodeNum; - std::string resourcePoolName; - std::string planName; - std::string day; - std::string planStartTs; - }; - - - DescribeElasticDailyPlanResult(); - explicit DescribeElasticDailyPlanResult(const std::string &payload); - ~DescribeElasticDailyPlanResult(); - std::vector getElasticDailyPlanList()const; - - protected: - void parse(const std::string &payload); - private: - std::vector elasticDailyPlanList_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEELASTICDAILYPLANRESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/DescribeElasticPlanRequest.h b/adb/include/alibabacloud/adb/model/DescribeElasticPlanRequest.h deleted file mode 100644 index 43187c4a0..000000000 --- a/adb/include/alibabacloud/adb/model/DescribeElasticPlanRequest.h +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 deleted file mode 100644 index 62a265e23..000000000 --- a/adb/include/alibabacloud/adb/model/DescribeElasticPlanResult.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBEELASTICPLANRESULT_H_ -#define ALIBABACLOUD_ADB_MODEL_DESCRIBEELASTICPLANRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Adb - { - namespace Model - { - class ALIBABACLOUD_ADB_EXPORT DescribeElasticPlanResult : public ServiceResult - { - public: - struct ElasticPlanInfo - { - std::string weeklyRepeat; - std::string endTime; - std::string startTime; - int elasticNodeNum; - std::string resourcePoolName; - bool enable; - std::string endDay; - std::string startDay; - std::string planName; - }; - - - DescribeElasticPlanResult(); - explicit DescribeElasticPlanResult(const std::string &payload); - ~DescribeElasticPlanResult(); - std::vector getElasticPlanList()const; - - protected: - void parse(const std::string &payload); - private: - std::vector elasticPlanList_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEELASTICPLANRESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/DescribeInclinedTablesRequest.h b/adb/include/alibabacloud/adb/model/DescribeInclinedTablesRequest.h deleted file mode 100644 index 88deb0b60..000000000 --- a/adb/include/alibabacloud/adb/model/DescribeInclinedTablesRequest.h +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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/DescribeMaintenanceActionRequest.h b/adb/include/alibabacloud/adb/model/DescribeMaintenanceActionRequest.h deleted file mode 100644 index aa7eb848a..000000000 --- a/adb/include/alibabacloud/adb/model/DescribeMaintenanceActionRequest.h +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 deleted file mode 100644 index 5cac7a628..000000000 --- a/adb/include/alibabacloud/adb/model/DescribeMaintenanceActionResult.h +++ /dev/null @@ -1,74 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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/DescribeOperatorPermissionResult.h b/adb/include/alibabacloud/adb/model/DescribeOperatorPermissionResult.h deleted file mode 100644 index f3ed88447..000000000 --- a/adb/include/alibabacloud/adb/model/DescribeOperatorPermissionResult.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBEOPERATORPERMISSIONRESULT_H_ -#define ALIBABACLOUD_ADB_MODEL_DESCRIBEOPERATORPERMISSIONRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Adb - { - namespace Model - { - class ALIBABACLOUD_ADB_EXPORT DescribeOperatorPermissionResult : public ServiceResult - { - public: - - - DescribeOperatorPermissionResult(); - explicit DescribeOperatorPermissionResult(const std::string &payload); - ~DescribeOperatorPermissionResult(); - std::string getCreatedTime()const; - std::string getPrivileges()const; - std::string getExpiredTime()const; - std::string getDBClusterId()const; - - protected: - void parse(const std::string &payload); - private: - std::string createdTime_; - std::string privileges_; - std::string expiredTime_; - std::string dBClusterId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEOPERATORPERMISSIONRESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/DescribePatternPerformanceRequest.h b/adb/include/alibabacloud/adb/model/DescribePatternPerformanceRequest.h index ca2a680f1..3b6f62221 100644 --- a/adb/include/alibabacloud/adb/model/DescribePatternPerformanceRequest.h +++ b/adb/include/alibabacloud/adb/model/DescribePatternPerformanceRequest.h @@ -30,8 +30,6 @@ class ALIBABACLOUD_ADB_EXPORT DescribePatternPerformanceRequest : public RpcServ 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; @@ -40,13 +38,18 @@ public: 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 getKey() const; + void setKey(const std::string &key); private: - std::string regionId_; std::string dBClusterId_; std::string patternId_; std::string endTime_; std::string startTime_; + std::string regionId_; + std::string key_; }; } // namespace Model } // namespace Adb diff --git a/adb/include/alibabacloud/adb/model/DescribeProcessListRequest.h b/adb/include/alibabacloud/adb/model/DescribeProcessListRequest.h deleted file mode 100644 index f033bafcf..000000000 --- a/adb/include/alibabacloud/adb/model/DescribeProcessListRequest.h +++ /dev/null @@ -1,78 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 deleted file mode 100644 index b232f3257..000000000 --- a/adb/include/alibabacloud/adb/model/DescribeProcessListResult.h +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBEPROCESSLISTRESULT_H_ -#define ALIBABACLOUD_ADB_MODEL_DESCRIBEPROCESSLISTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Adb - { - namespace Model - { - class ALIBABACLOUD_ADB_EXPORT DescribeProcessListResult : public ServiceResult - { - public: - struct Process - { - std::string user; - std::string command; - std::string startTime; - int time; - std::string host; - std::string processId; - int id; - std::string info; - std::string dB; - }; - - - DescribeProcessListResult(); - explicit DescribeProcessListResult(const std::string &payload); - ~DescribeProcessListResult(); - std::string getTotalCount()const; - std::string getPageSize()const; - std::string getPageNumber()const; - std::vector getItems()const; - - protected: - void parse(const std::string &payload); - private: - std::string totalCount_; - std::string pageSize_; - std::string pageNumber_; - std::vector items_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEPROCESSLISTRESULT_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 deleted file mode 100644 index 36e34548c..000000000 --- a/adb/include/alibabacloud/adb/model/DescribeSQLPlanRequest.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 deleted file mode 100644 index 4e18f984f..000000000 --- a/adb/include/alibabacloud/adb/model/DescribeSQLPlanResult.h +++ /dev/null @@ -1,92 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBESQLPLANRESULT_H_ -#define ALIBABACLOUD_ADB_MODEL_DESCRIBESQLPLANRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Adb - { - namespace Model - { - class ALIBABACLOUD_ADB_EXPORT DescribeSQLPlanResult : public ServiceResult - { - public: - struct Detail - { - long totalTask; - long outputSize; - std::string user; - long totalStage; - long peakMemory; - std::string startTime; - std::string clientIP; - std::string sQL; - long cPUTime; - long queuedTime; - std::string state; - long totalTime; - std::string database; - long planningTime; - long outputRows; - }; - struct SqlPlanStage - { - long scanSizeMin; - long scanSizeAvg; - int stageId; - long peakMemory; - long cPUTimeMax; - long scanTimeMin; - long scanTimeAvg; - long inputSizeMax; - long scanSizeMax; - long inputSizeMin; - long inputSizeAvg; - std::string state; - long operatorCost; - long scanTimeMax; - long cPUTimeAvg; - long cPUTimeMin; - }; - - - DescribeSQLPlanResult(); - explicit DescribeSQLPlanResult(const std::string &payload); - ~DescribeSQLPlanResult(); - std::vector getStageList()const; - std::string getOriginInfo()const; - Detail getDetail()const; - - protected: - void parse(const std::string &payload); - private: - std::vector stageList_; - std::string originInfo_; - Detail detail_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBESQLPLANRESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/DescribeSQLPlanTaskRequest.h b/adb/include/alibabacloud/adb/model/DescribeSQLPlanTaskRequest.h deleted file mode 100644 index d5e74251e..000000000 --- a/adb/include/alibabacloud/adb/model/DescribeSQLPlanTaskRequest.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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/DescribeSlowLogRecordsRequest.h b/adb/include/alibabacloud/adb/model/DescribeSlowLogRecordsRequest.h deleted file mode 100644 index 95e65790f..000000000 --- a/adb/include/alibabacloud/adb/model/DescribeSlowLogRecordsRequest.h +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 deleted file mode 100644 index 22372c681..000000000 --- a/adb/include/alibabacloud/adb/model/DescribeSlowLogRecordsResult.h +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBESLOWLOGRECORDSRESULT_H_ -#define ALIBABACLOUD_ADB_MODEL_DESCRIBESLOWLOGRECORDSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Adb - { - namespace Model - { - class ALIBABACLOUD_ADB_EXPORT DescribeSlowLogRecordsResult : public ServiceResult - { - public: - struct SlowLogRecord - { - std::string outputSize; - std::string userName; - std::string peakMemoryUsage; - std::string executionStartTime; - long queryTime; - long parseRowCounts; - std::string hostAddress; - long scanTime; - std::string sQLText; - long wallTime; - long scanRows; - std::string state; - long returnRowCounts; - long planningTime; - std::string dBName; - long queueTime; - std::string scanSize; - std::string processID; - }; - - - DescribeSlowLogRecordsResult(); - explicit DescribeSlowLogRecordsResult(const std::string &payload); - ~DescribeSlowLogRecordsResult(); - std::string getTotalCount()const; - std::string getPageSize()const; - std::string getPageNumber()const; - std::string getDBClusterId()const; - std::vector getItems()const; - - protected: - void parse(const std::string &payload); - private: - std::string totalCount_; - std::string pageSize_; - std::string pageNumber_; - std::string dBClusterId_; - std::vector items_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBESLOWLOGRECORDSRESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/DescribeSlowLogTrendRequest.h b/adb/include/alibabacloud/adb/model/DescribeSlowLogTrendRequest.h deleted file mode 100644 index 4d5ddd277..000000000 --- a/adb/include/alibabacloud/adb/model/DescribeSlowLogTrendRequest.h +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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/DescribeSparkCodeLogRequest.h b/adb/include/alibabacloud/adb/model/DescribeSparkCodeLogRequest.h new file mode 100644 index 000000000..19964135e --- /dev/null +++ b/adb/include/alibabacloud/adb/model/DescribeSparkCodeLogRequest.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_DESCRIBESPARKCODELOGREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBESPARKCODELOGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT DescribeSparkCodeLogRequest : public RpcServiceRequest { +public: + DescribeSparkCodeLogRequest(); + ~DescribeSparkCodeLogRequest(); + long getJobId() const; + void setJobId(long jobId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + +private: + long jobId_; + std::string regionId_; + std::string dBClusterId_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBESPARKCODELOGREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/ModifyDBResourcePoolResult.h b/adb/include/alibabacloud/adb/model/DescribeSparkCodeLogResult.h similarity index 63% rename from adb/include/alibabacloud/adb/model/ModifyDBResourcePoolResult.h rename to adb/include/alibabacloud/adb/model/DescribeSparkCodeLogResult.h index 3ba99073f..68c3d8c5c 100644 --- a/adb/include/alibabacloud/adb/model/ModifyDBResourcePoolResult.h +++ b/adb/include/alibabacloud/adb/model/DescribeSparkCodeLogResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_ADB_MODEL_MODIFYDBRESOURCEPOOLRESULT_H_ -#define ALIBABACLOUD_ADB_MODEL_MODIFYDBRESOURCEPOOLRESULT_H_ +#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBESPARKCODELOGRESULT_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBESPARKCODELOGRESULT_H_ #include #include @@ -29,21 +29,27 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_ADB_EXPORT ModifyDBResourcePoolResult : public ServiceResult + class ALIBABACLOUD_ADB_EXPORT DescribeSparkCodeLogResult : public ServiceResult { public: - ModifyDBResourcePoolResult(); - explicit ModifyDBResourcePoolResult(const std::string &payload); - ~ModifyDBResourcePoolResult(); + DescribeSparkCodeLogResult(); + explicit DescribeSparkCodeLogResult(const std::string &payload); + ~DescribeSparkCodeLogResult(); + std::string getMessage()const; + std::string getLog()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: + std::string message_; + std::string log_; + bool success_; }; } } } -#endif // !ALIBABACLOUD_ADB_MODEL_MODIFYDBRESOURCEPOOLRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBESPARKCODELOGRESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/DescribeSparkCodeOutputRequest.h b/adb/include/alibabacloud/adb/model/DescribeSparkCodeOutputRequest.h new file mode 100644 index 000000000..cd83892bd --- /dev/null +++ b/adb/include/alibabacloud/adb/model/DescribeSparkCodeOutputRequest.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_DESCRIBESPARKCODEOUTPUTREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBESPARKCODEOUTPUTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT DescribeSparkCodeOutputRequest : public RpcServiceRequest { +public: + DescribeSparkCodeOutputRequest(); + ~DescribeSparkCodeOutputRequest(); + long getJobId() const; + void setJobId(long jobId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + +private: + long jobId_; + std::string regionId_; + std::string dBClusterId_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBESPARKCODEOUTPUTREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/DescribeSparkCodeOutputResult.h b/adb/include/alibabacloud/adb/model/DescribeSparkCodeOutputResult.h new file mode 100644 index 000000000..380d836b2 --- /dev/null +++ b/adb/include/alibabacloud/adb/model/DescribeSparkCodeOutputResult.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_DESCRIBESPARKCODEOUTPUTRESULT_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBESPARKCODEOUTPUTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Adb + { + namespace Model + { + class ALIBABACLOUD_ADB_EXPORT DescribeSparkCodeOutputResult : public ServiceResult + { + public: + + + DescribeSparkCodeOutputResult(); + explicit DescribeSparkCodeOutputResult(const std::string &payload); + ~DescribeSparkCodeOutputResult(); + std::string getMessage()const; + std::string getOutput()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string output_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBESPARKCODEOUTPUTRESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/DescribeSparkCodeWebUiRequest.h b/adb/include/alibabacloud/adb/model/DescribeSparkCodeWebUiRequest.h new file mode 100644 index 000000000..401506ac6 --- /dev/null +++ b/adb/include/alibabacloud/adb/model/DescribeSparkCodeWebUiRequest.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_DESCRIBESPARKCODEWEBUIREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBESPARKCODEWEBUIREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT DescribeSparkCodeWebUiRequest : public RpcServiceRequest { +public: + DescribeSparkCodeWebUiRequest(); + ~DescribeSparkCodeWebUiRequest(); + long getJobId() const; + void setJobId(long jobId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + +private: + long jobId_; + std::string regionId_; + std::string dBClusterId_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBESPARKCODEWEBUIREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/ModifyDBClusterPayTypeResult.h b/adb/include/alibabacloud/adb/model/DescribeSparkCodeWebUiResult.h similarity index 62% rename from adb/include/alibabacloud/adb/model/ModifyDBClusterPayTypeResult.h rename to adb/include/alibabacloud/adb/model/DescribeSparkCodeWebUiResult.h index 432844558..b0d36952b 100644 --- a/adb/include/alibabacloud/adb/model/ModifyDBClusterPayTypeResult.h +++ b/adb/include/alibabacloud/adb/model/DescribeSparkCodeWebUiResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_ADB_MODEL_MODIFYDBCLUSTERPAYTYPERESULT_H_ -#define ALIBABACLOUD_ADB_MODEL_MODIFYDBCLUSTERPAYTYPERESULT_H_ +#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBESPARKCODEWEBUIRESULT_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBESPARKCODEWEBUIRESULT_H_ #include #include @@ -29,27 +29,27 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_ADB_EXPORT ModifyDBClusterPayTypeResult : public ServiceResult + class ALIBABACLOUD_ADB_EXPORT DescribeSparkCodeWebUiResult : public ServiceResult { public: - ModifyDBClusterPayTypeResult(); - explicit ModifyDBClusterPayTypeResult(const std::string &payload); - ~ModifyDBClusterPayTypeResult(); - std::string getDBClusterId()const; - std::string getPayType()const; - std::string getOrderId()const; + DescribeSparkCodeWebUiResult(); + explicit DescribeSparkCodeWebUiResult(const std::string &payload); + ~DescribeSparkCodeWebUiResult(); + std::string getMessage()const; + bool getSuccess()const; + std::string getUrl()const; protected: void parse(const std::string &payload); private: - std::string dBClusterId_; - std::string payType_; - std::string orderId_; + std::string message_; + bool success_; + std::string url_; }; } } } -#endif // !ALIBABACLOUD_ADB_MODEL_MODIFYDBCLUSTERPAYTYPERESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBESPARKCODEWEBUIRESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/DescribeTablePartitionDiagnoseRequest.h b/adb/include/alibabacloud/adb/model/DescribeTablePartitionDiagnoseRequest.h deleted file mode 100644 index 28ddb6974..000000000 --- a/adb/include/alibabacloud/adb/model/DescribeTablePartitionDiagnoseRequest.h +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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/DescribeTablePartitionDiagnoseResult.h b/adb/include/alibabacloud/adb/model/DescribeTablePartitionDiagnoseResult.h deleted file mode 100644 index d2090522c..000000000 --- a/adb/include/alibabacloud/adb/model/DescribeTablePartitionDiagnoseResult.h +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBETABLEPARTITIONDIAGNOSERESULT_H_ -#define ALIBABACLOUD_ADB_MODEL_DESCRIBETABLEPARTITIONDIAGNOSERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Adb - { - namespace Model - { - class ALIBABACLOUD_ADB_EXPORT DescribeTablePartitionDiagnoseResult : public ServiceResult - { - public: - struct TablePartitionDiagnose - { - std::string tableName; - int partitionNumber; - std::string partitionDetail; - std::string schemaName; - }; - - - DescribeTablePartitionDiagnoseResult(); - explicit DescribeTablePartitionDiagnoseResult(const std::string &payload); - ~DescribeTablePartitionDiagnoseResult(); - int getTotalCount()const; - int getPageSize()const; - int getPageNumber()const; - std::string getDBClusterId()const; - long getSuggestMaxRecordsPerPartition()const; - std::vector getItems()const; - long getSuggestMinRecordsPerPartition()const; - - protected: - void parse(const std::string &payload); - private: - int totalCount_; - int pageSize_; - int pageNumber_; - std::string dBClusterId_; - long suggestMaxRecordsPerPartition_; - std::vector items_; - long suggestMinRecordsPerPartition_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBETABLEPARTITIONDIAGNOSERESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/DescribeTableStatisticsRequest.h b/adb/include/alibabacloud/adb/model/DescribeTableStatisticsRequest.h deleted file mode 100644 index d5ef1d84f..000000000 --- a/adb/include/alibabacloud/adb/model/DescribeTableStatisticsRequest.h +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 deleted file mode 100644 index 3e217ea31..000000000 --- a/adb/include/alibabacloud/adb/model/DescribeTableStatisticsResult.h +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBETABLESTATISTICSRESULT_H_ -#define ALIBABACLOUD_ADB_MODEL_DESCRIBETABLESTATISTICSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Adb - { - namespace Model - { - class ALIBABACLOUD_ADB_EXPORT DescribeTableStatisticsResult : public ServiceResult - { - public: - struct TableStatisticRecords - { - std::string tableName; - long coldDataSize; - long dataSize; - long primaryKeyIndexSize; - long rowCount; - long indexSize; - std::string schemaName; - long partitionCount; - }; - - - DescribeTableStatisticsResult(); - explicit DescribeTableStatisticsResult(const std::string &payload); - ~DescribeTableStatisticsResult(); - std::string getTotalCount()const; - std::string getPageSize()const; - std::string getPageNumber()const; - std::string getDBClusterId()const; - std::vector getItems()const; - - protected: - void parse(const std::string &payload); - private: - std::string totalCount_; - std::string pageSize_; - std::string pageNumber_; - std::string dBClusterId_; - std::vector items_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBETABLESTATISTICSRESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/DescribeTaskInfoRequest.h b/adb/include/alibabacloud/adb/model/DescribeTaskInfoRequest.h deleted file mode 100644 index ea103e172..000000000 --- a/adb/include/alibabacloud/adb/model/DescribeTaskInfoRequest.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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/GetDatabaseObjectsRequest.h b/adb/include/alibabacloud/adb/model/GetDatabaseObjectsRequest.h new file mode 100644 index 000000000..e7cff93c5 --- /dev/null +++ b/adb/include/alibabacloud/adb/model/GetDatabaseObjectsRequest.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_GETDATABASEOBJECTSREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_GETDATABASEOBJECTSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT GetDatabaseObjectsRequest : public RpcServiceRequest { +public: + GetDatabaseObjectsRequest(); + ~GetDatabaseObjectsRequest(); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getOrderBy() const; + void setOrderBy(const std::string &orderBy); + std::string getFilterOwner() const; + void setFilterOwner(const std::string &filterOwner); + std::string getFilterSchemaName() const; + void setFilterSchemaName(const std::string &filterSchemaName); + long getPageNumber() const; + void setPageNumber(long pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + long getPageSize() const; + void setPageSize(long pageSize); + +private: + std::string dBClusterId_; + std::string orderBy_; + std::string filterOwner_; + std::string filterSchemaName_; + long pageNumber_; + std::string regionId_; + long pageSize_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_GETDATABASEOBJECTSREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/DescribeSlowLogTrendResult.h b/adb/include/alibabacloud/adb/model/GetDatabaseObjectsResult.h similarity index 51% rename from adb/include/alibabacloud/adb/model/DescribeSlowLogTrendResult.h rename to adb/include/alibabacloud/adb/model/GetDatabaseObjectsResult.h index 10f073916..bae8ab654 100644 --- a/adb/include/alibabacloud/adb/model/DescribeSlowLogTrendResult.h +++ b/adb/include/alibabacloud/adb/model/GetDatabaseObjectsResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBESLOWLOGTRENDRESULT_H_ -#define ALIBABACLOUD_ADB_MODEL_DESCRIBESLOWLOGTRENDRESULT_H_ +#ifndef ALIBABACLOUD_ADB_MODEL_GETDATABASEOBJECTSRESULT_H_ +#define ALIBABACLOUD_ADB_MODEL_GETDATABASEOBJECTSRESULT_H_ #include #include @@ -29,40 +29,44 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_ADB_EXPORT DescribeSlowLogTrendResult : public ServiceResult + class ALIBABACLOUD_ADB_EXPORT GetDatabaseObjectsResult : public ServiceResult { public: - struct SlowLogTrendItem + struct Data { - struct SeriesItem + struct DataObject { - std::string values; - std::string name; + std::string owner; + std::string description; + std::string createTime; + std::string updateTime; + std::string schemaName; }; - std::vector series; - std::string unit; - std::string key; + long totalCount; + long pageSize; + long pageNumber; + std::vector databaseSummaryModels; }; - DescribeSlowLogTrendResult(); - explicit DescribeSlowLogTrendResult(const std::string &payload); - ~DescribeSlowLogTrendResult(); - std::string getEndTime()const; - std::string getStartTime()const; - std::string getDBClusterId()const; - std::vector getItems()const; + GetDatabaseObjectsResult(); + explicit GetDatabaseObjectsResult(const std::string &payload); + ~GetDatabaseObjectsResult(); + long getTotalCount()const; + long getPageSize()const; + long getPageNumber()const; + Data getData()const; protected: void parse(const std::string &payload); private: - std::string endTime_; - std::string startTime_; - std::string dBClusterId_; - std::vector items_; + long totalCount_; + long pageSize_; + long pageNumber_; + Data data_; }; } } } -#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBESLOWLOGTRENDRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_ADB_MODEL_GETDATABASEOBJECTSRESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/GetLakehouseValidResourceGroupsRequest.h b/adb/include/alibabacloud/adb/model/GetLakehouseValidResourceGroupsRequest.h new file mode 100644 index 000000000..2d917fadb --- /dev/null +++ b/adb/include/alibabacloud/adb/model/GetLakehouseValidResourceGroupsRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_GETLAKEHOUSEVALIDRESOURCEGROUPSREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_GETLAKEHOUSEVALIDRESOURCEGROUPSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT GetLakehouseValidResourceGroupsRequest : public RpcServiceRequest { +public: + GetLakehouseValidResourceGroupsRequest(); + ~GetLakehouseValidResourceGroupsRequest(); + std::string getGroupsInfo() const; + void setGroupsInfo(const std::string &groupsInfo); + +private: + std::string groupsInfo_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_GETLAKEHOUSEVALIDRESOURCEGROUPSREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/GetLakehouseValidResourceGroupsResult.h b/adb/include/alibabacloud/adb/model/GetLakehouseValidResourceGroupsResult.h new file mode 100644 index 000000000..fc1c594d5 --- /dev/null +++ b/adb/include/alibabacloud/adb/model/GetLakehouseValidResourceGroupsResult.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_GETLAKEHOUSEVALIDRESOURCEGROUPSRESULT_H_ +#define ALIBABACLOUD_ADB_MODEL_GETLAKEHOUSEVALIDRESOURCEGROUPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Adb + { + namespace Model + { + class ALIBABACLOUD_ADB_EXPORT GetLakehouseValidResourceGroupsResult : public ServiceResult + { + public: + struct Data + { + struct ValidPoolsInfoItem + { + std::string groupName; + std::string groupType; + std::string minComputeResource; + bool available; + std::string maxComputeResource; + std::vector cuOptions; + }; + long lakehouseMinComputeResource; + std::vector validPoolsInfo; + }; + + + GetLakehouseValidResourceGroupsResult(); + explicit GetLakehouseValidResourceGroupsResult(const std::string &payload); + ~GetLakehouseValidResourceGroupsResult(); + std::string getMessage()const; + long getHttpStatusCode()const; + Data getData()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + long httpStatusCode_; + Data data_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ADB_MODEL_GETLAKEHOUSEVALIDRESOURCEGROUPSRESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/GetSparkAppAttemptLogRequest.h b/adb/include/alibabacloud/adb/model/GetSparkAppAttemptLogRequest.h new file mode 100644 index 000000000..90ef56c60 --- /dev/null +++ b/adb/include/alibabacloud/adb/model/GetSparkAppAttemptLogRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_GETSPARKAPPATTEMPTLOGREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_GETSPARKAPPATTEMPTLOGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT GetSparkAppAttemptLogRequest : public RpcServiceRequest { +public: + GetSparkAppAttemptLogRequest(); + ~GetSparkAppAttemptLogRequest(); + long getLogLength() const; + void setLogLength(long logLength); + std::string getAttemptId() const; + void setAttemptId(const std::string &attemptId); + +private: + long logLength_; + std::string attemptId_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_GETSPARKAPPATTEMPTLOGREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/GetSparkAppAttemptLogResult.h b/adb/include/alibabacloud/adb/model/GetSparkAppAttemptLogResult.h new file mode 100644 index 000000000..9dddd28be --- /dev/null +++ b/adb/include/alibabacloud/adb/model/GetSparkAppAttemptLogResult.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_GETSPARKAPPATTEMPTLOGRESULT_H_ +#define ALIBABACLOUD_ADB_MODEL_GETSPARKAPPATTEMPTLOGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Adb + { + namespace Model + { + class ALIBABACLOUD_ADB_EXPORT GetSparkAppAttemptLogResult : public ServiceResult + { + public: + struct Data + { + std::string message; + std::string logContent; + std::string dBClusterId; + }; + + + GetSparkAppAttemptLogResult(); + explicit GetSparkAppAttemptLogResult(const std::string &payload); + ~GetSparkAppAttemptLogResult(); + Data getData()const; + + protected: + void parse(const std::string &payload); + private: + Data data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ADB_MODEL_GETSPARKAPPATTEMPTLOGRESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/GetSparkAppInfoRequest.h b/adb/include/alibabacloud/adb/model/GetSparkAppInfoRequest.h new file mode 100644 index 000000000..65fa62ce5 --- /dev/null +++ b/adb/include/alibabacloud/adb/model/GetSparkAppInfoRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_GETSPARKAPPINFOREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_GETSPARKAPPINFOREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT GetSparkAppInfoRequest : public RpcServiceRequest { +public: + GetSparkAppInfoRequest(); + ~GetSparkAppInfoRequest(); + std::string getAppId() const; + void setAppId(const std::string &appId); + +private: + std::string appId_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_GETSPARKAPPINFOREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/GetSparkAppInfoResult.h b/adb/include/alibabacloud/adb/model/GetSparkAppInfoResult.h new file mode 100644 index 000000000..1266238c7 --- /dev/null +++ b/adb/include/alibabacloud/adb/model/GetSparkAppInfoResult.h @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_GETSPARKAPPINFORESULT_H_ +#define ALIBABACLOUD_ADB_MODEL_GETSPARKAPPINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Adb + { + namespace Model + { + class ALIBABACLOUD_ADB_EXPORT GetSparkAppInfoResult : public ServiceResult + { + public: + struct Data + { + struct Detail + { + std::string lastAttemptId; + long durationInMillis; + long terminatedTimeInMillis; + std::string logRootPath; + std::string webUiAddress; + long submittedTimeInMillis; + std::string dBClusterId; + std::string data; + long estimateExecutionCpuTimeInSeconds; + long startedTimeInMillis; + long lastUpdatedTimeInMillis; + std::string resourceGroupName; + }; + std::string appId; + std::string message; + std::string state; + std::string dBClusterId; + Detail detail; + std::string appName; + }; + + + GetSparkAppInfoResult(); + explicit GetSparkAppInfoResult(const std::string &payload); + ~GetSparkAppInfoResult(); + Data getData()const; + + protected: + void parse(const std::string &payload); + private: + Data data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ADB_MODEL_GETSPARKAPPINFORESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/GetSparkAppLogRequest.h b/adb/include/alibabacloud/adb/model/GetSparkAppLogRequest.h new file mode 100644 index 000000000..3822e4aae --- /dev/null +++ b/adb/include/alibabacloud/adb/model/GetSparkAppLogRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_GETSPARKAPPLOGREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_GETSPARKAPPLOGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT GetSparkAppLogRequest : public RpcServiceRequest { +public: + GetSparkAppLogRequest(); + ~GetSparkAppLogRequest(); + std::string getAppId() const; + void setAppId(const std::string &appId); + long getLogLength() const; + void setLogLength(long logLength); + +private: + std::string appId_; + long logLength_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_GETSPARKAPPLOGREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/DescribeTablesResult.h b/adb/include/alibabacloud/adb/model/GetSparkAppLogResult.h similarity index 66% rename from adb/include/alibabacloud/adb/model/DescribeTablesResult.h rename to adb/include/alibabacloud/adb/model/GetSparkAppLogResult.h index 3ea215980..0fb525af3 100644 --- a/adb/include/alibabacloud/adb/model/DescribeTablesResult.h +++ b/adb/include/alibabacloud/adb/model/GetSparkAppLogResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBETABLESRESULT_H_ -#define ALIBABACLOUD_ADB_MODEL_DESCRIBETABLESRESULT_H_ +#ifndef ALIBABACLOUD_ADB_MODEL_GETSPARKAPPLOGRESULT_H_ +#define ALIBABACLOUD_ADB_MODEL_GETSPARKAPPLOGRESULT_H_ #include #include @@ -29,29 +29,29 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_ADB_EXPORT DescribeTablesResult : public ServiceResult + class ALIBABACLOUD_ADB_EXPORT GetSparkAppLogResult : public ServiceResult { public: - struct Table + struct Data { - std::string tableName; + std::string message; + std::string logContent; std::string dBClusterId; - std::string schemaName; }; - DescribeTablesResult(); - explicit DescribeTablesResult(const std::string &payload); - ~DescribeTablesResult(); - std::vector
getItems()const; + GetSparkAppLogResult(); + explicit GetSparkAppLogResult(const std::string &payload); + ~GetSparkAppLogResult(); + Data getData()const; protected: void parse(const std::string &payload); private: - std::vector
items_; + Data data_; }; } } } -#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBETABLESRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_ADB_MODEL_GETSPARKAPPLOGRESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/GetSparkAppMetricsRequest.h b/adb/include/alibabacloud/adb/model/GetSparkAppMetricsRequest.h new file mode 100644 index 000000000..37506c816 --- /dev/null +++ b/adb/include/alibabacloud/adb/model/GetSparkAppMetricsRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_GETSPARKAPPMETRICSREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_GETSPARKAPPMETRICSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT GetSparkAppMetricsRequest : public RpcServiceRequest { +public: + GetSparkAppMetricsRequest(); + ~GetSparkAppMetricsRequest(); + std::string getAppId() const; + void setAppId(const std::string &appId); + +private: + std::string appId_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_GETSPARKAPPMETRICSREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/DescribeDBClusterHealthReportResult.h b/adb/include/alibabacloud/adb/model/GetSparkAppMetricsResult.h similarity index 58% rename from adb/include/alibabacloud/adb/model/DescribeDBClusterHealthReportResult.h rename to adb/include/alibabacloud/adb/model/GetSparkAppMetricsResult.h index 8a8e31e98..b2f4b98d0 100644 --- a/adb/include/alibabacloud/adb/model/DescribeDBClusterHealthReportResult.h +++ b/adb/include/alibabacloud/adb/model/GetSparkAppMetricsResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBEDBCLUSTERHEALTHREPORTRESULT_H_ -#define ALIBABACLOUD_ADB_MODEL_DESCRIBEDBCLUSTERHEALTHREPORTRESULT_H_ +#ifndef ALIBABACLOUD_ADB_MODEL_GETSPARKAPPMETRICSRESULT_H_ +#define ALIBABACLOUD_ADB_MODEL_GETSPARKAPPMETRICSRESULT_H_ #include #include @@ -29,30 +29,36 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_ADB_EXPORT DescribeDBClusterHealthReportResult : public ServiceResult + class ALIBABACLOUD_ADB_EXPORT GetSparkAppMetricsResult : public ServiceResult { public: - struct ItemsItem + struct Data { - std::string avg; - std::string max; - std::string key; - std::string name; + struct ScanMetrics + { + long totalReadFileSizeInByte; + long outputRowsCount; + }; + std::string attemptId; + bool finished; + std::string appId; + std::string eventLogPath; + ScanMetrics scanMetrics; }; - DescribeDBClusterHealthReportResult(); - explicit DescribeDBClusterHealthReportResult(const std::string &payload); - ~DescribeDBClusterHealthReportResult(); - std::vector getItems()const; + GetSparkAppMetricsResult(); + explicit GetSparkAppMetricsResult(const std::string &payload); + ~GetSparkAppMetricsResult(); + Data getData()const; protected: void parse(const std::string &payload); private: - std::vector items_; + Data data_; }; } } } -#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEDBCLUSTERHEALTHREPORTRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_ADB_MODEL_GETSPARKAPPMETRICSRESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/GetSparkAppStateRequest.h b/adb/include/alibabacloud/adb/model/GetSparkAppStateRequest.h new file mode 100644 index 000000000..47f43743b --- /dev/null +++ b/adb/include/alibabacloud/adb/model/GetSparkAppStateRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_GETSPARKAPPSTATEREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_GETSPARKAPPSTATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT GetSparkAppStateRequest : public RpcServiceRequest { +public: + GetSparkAppStateRequest(); + ~GetSparkAppStateRequest(); + std::string getAppId() const; + void setAppId(const std::string &appId); + +private: + std::string appId_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_GETSPARKAPPSTATEREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/DescribeTaskInfoResult.h b/adb/include/alibabacloud/adb/model/GetSparkAppStateResult.h similarity index 63% rename from adb/include/alibabacloud/adb/model/DescribeTaskInfoResult.h rename to adb/include/alibabacloud/adb/model/GetSparkAppStateResult.h index 49cf6f463..30a7e2ff1 100644 --- a/adb/include/alibabacloud/adb/model/DescribeTaskInfoResult.h +++ b/adb/include/alibabacloud/adb/model/GetSparkAppStateResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBETASKINFORESULT_H_ -#define ALIBABACLOUD_ADB_MODEL_DESCRIBETASKINFORESULT_H_ +#ifndef ALIBABACLOUD_ADB_MODEL_GETSPARKAPPSTATERESULT_H_ +#define ALIBABACLOUD_ADB_MODEL_GETSPARKAPPSTATERESULT_H_ #include #include @@ -29,31 +29,31 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_ADB_EXPORT DescribeTaskInfoResult : public ServiceResult + class ALIBABACLOUD_ADB_EXPORT GetSparkAppStateResult : public ServiceResult { public: - struct TaskInfo + struct Data { - std::string status; - std::string progress; - int taskId; - std::string finishTime; - std::string beginTime; + std::string appId; + std::string message; + std::string state; + std::string dBClusterId; + std::string appName; }; - DescribeTaskInfoResult(); - explicit DescribeTaskInfoResult(const std::string &payload); - ~DescribeTaskInfoResult(); - TaskInfo getTaskInfo()const; + GetSparkAppStateResult(); + explicit GetSparkAppStateResult(const std::string &payload); + ~GetSparkAppStateResult(); + Data getData()const; protected: void parse(const std::string &payload); private: - TaskInfo taskInfo_; + Data data_; }; } } } -#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBETASKINFORESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_ADB_MODEL_GETSPARKAPPSTATERESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/GetSparkAppWebUiAddressRequest.h b/adb/include/alibabacloud/adb/model/GetSparkAppWebUiAddressRequest.h new file mode 100644 index 000000000..642004a76 --- /dev/null +++ b/adb/include/alibabacloud/adb/model/GetSparkAppWebUiAddressRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_GETSPARKAPPWEBUIADDRESSREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_GETSPARKAPPWEBUIADDRESSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT GetSparkAppWebUiAddressRequest : public RpcServiceRequest { +public: + GetSparkAppWebUiAddressRequest(); + ~GetSparkAppWebUiAddressRequest(); + std::string getAppId() const; + void setAppId(const std::string &appId); + +private: + std::string appId_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_GETSPARKAPPWEBUIADDRESSREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/GetSparkAppWebUiAddressResult.h b/adb/include/alibabacloud/adb/model/GetSparkAppWebUiAddressResult.h new file mode 100644 index 000000000..d1a70ea08 --- /dev/null +++ b/adb/include/alibabacloud/adb/model/GetSparkAppWebUiAddressResult.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_GETSPARKAPPWEBUIADDRESSRESULT_H_ +#define ALIBABACLOUD_ADB_MODEL_GETSPARKAPPWEBUIADDRESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Adb + { + namespace Model + { + class ALIBABACLOUD_ADB_EXPORT GetSparkAppWebUiAddressResult : public ServiceResult + { + public: + struct Data + { + std::string appId; + std::string webUiAddress; + long expirationTimeInMillis; + std::string dBClusterId; + }; + + + GetSparkAppWebUiAddressResult(); + explicit GetSparkAppWebUiAddressResult(const std::string &payload); + ~GetSparkAppWebUiAddressResult(); + Data getData()const; + + protected: + void parse(const std::string &payload); + private: + Data data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ADB_MODEL_GETSPARKAPPWEBUIADDRESSRESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/GetSparkConfigLogPathRequest.h b/adb/include/alibabacloud/adb/model/GetSparkConfigLogPathRequest.h new file mode 100644 index 000000000..55398cb91 --- /dev/null +++ b/adb/include/alibabacloud/adb/model/GetSparkConfigLogPathRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_GETSPARKCONFIGLOGPATHREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_GETSPARKCONFIGLOGPATHREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT GetSparkConfigLogPathRequest : public RpcServiceRequest { +public: + GetSparkConfigLogPathRequest(); + ~GetSparkConfigLogPathRequest(); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + +private: + std::string dBClusterId_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_GETSPARKCONFIGLOGPATHREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/DescribeTableDetailResult.h b/adb/include/alibabacloud/adb/model/GetSparkConfigLogPathResult.h similarity index 60% rename from adb/include/alibabacloud/adb/model/DescribeTableDetailResult.h rename to adb/include/alibabacloud/adb/model/GetSparkConfigLogPathResult.h index de9bacead..0cc9ef9f6 100644 --- a/adb/include/alibabacloud/adb/model/DescribeTableDetailResult.h +++ b/adb/include/alibabacloud/adb/model/GetSparkConfigLogPathResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBETABLEDETAILRESULT_H_ -#define ALIBABACLOUD_ADB_MODEL_DESCRIBETABLEDETAILRESULT_H_ +#ifndef ALIBABACLOUD_ADB_MODEL_GETSPARKCONFIGLOGPATHRESULT_H_ +#define ALIBABACLOUD_ADB_MODEL_GETSPARKCONFIGLOGPATHRESULT_H_ #include #include @@ -29,30 +29,31 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_ADB_EXPORT DescribeTableDetailResult : public ServiceResult + class ALIBABACLOUD_ADB_EXPORT GetSparkConfigLogPathResult : public ServiceResult { public: - struct Shard + struct Data { - long size; - int id; + std::string recordedLogPath; + std::string modifiedTimestamp; + std::string modifiedUid; + bool isLogPathExists; + std::string defaultLogPath; }; - DescribeTableDetailResult(); - explicit DescribeTableDetailResult(const std::string &payload); - ~DescribeTableDetailResult(); - long getAvgSize()const; - std::vector getItems()const; + GetSparkConfigLogPathResult(); + explicit GetSparkConfigLogPathResult(const std::string &payload); + ~GetSparkConfigLogPathResult(); + Data getData()const; protected: void parse(const std::string &payload); private: - long avgSize_; - std::vector items_; + Data data_; }; } } } -#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBETABLEDETAILRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_ADB_MODEL_GETSPARKCONFIGLOGPATHRESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/GetSparkLogAnalyzeTaskRequest.h b/adb/include/alibabacloud/adb/model/GetSparkLogAnalyzeTaskRequest.h new file mode 100644 index 000000000..de81fcf71 --- /dev/null +++ b/adb/include/alibabacloud/adb/model/GetSparkLogAnalyzeTaskRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_GETSPARKLOGANALYZETASKREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_GETSPARKLOGANALYZETASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT GetSparkLogAnalyzeTaskRequest : public RpcServiceRequest { +public: + GetSparkLogAnalyzeTaskRequest(); + ~GetSparkLogAnalyzeTaskRequest(); + long getTaskId() const; + void setTaskId(long taskId); + +private: + long taskId_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_GETSPARKLOGANALYZETASKREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/GetSparkLogAnalyzeTaskResult.h b/adb/include/alibabacloud/adb/model/GetSparkLogAnalyzeTaskResult.h new file mode 100644 index 000000000..ec0607543 --- /dev/null +++ b/adb/include/alibabacloud/adb/model/GetSparkLogAnalyzeTaskResult.h @@ -0,0 +1,70 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_GETSPARKLOGANALYZETASKRESULT_H_ +#define ALIBABACLOUD_ADB_MODEL_GETSPARKLOGANALYZETASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Adb + { + namespace Model + { + class ALIBABACLOUD_ADB_EXPORT GetSparkLogAnalyzeTaskResult : public ServiceResult + { + public: + struct Data + { + struct Result + { + std::string appErrorAdvice; + std::string appErrorLog; + std::string appErrorCode; + }; + long terminatedTimeInMillis; + long taskId; + std::string taskErrMsg; + long userId; + bool ruleMatched; + long submittedTimeInMillis; + std::string dBClusterId; + std::string taskState; + long startedTimeInMillis; + Result result; + }; + + + GetSparkLogAnalyzeTaskResult(); + explicit GetSparkLogAnalyzeTaskResult(const std::string &payload); + ~GetSparkLogAnalyzeTaskResult(); + Data getData()const; + + protected: + void parse(const std::string &payload); + private: + Data data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ADB_MODEL_GETSPARKLOGANALYZETASKRESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/GetSparkSQLEngineStateRequest.h b/adb/include/alibabacloud/adb/model/GetSparkSQLEngineStateRequest.h new file mode 100644 index 000000000..e066c7a41 --- /dev/null +++ b/adb/include/alibabacloud/adb/model/GetSparkSQLEngineStateRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_GETSPARKSQLENGINESTATEREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_GETSPARKSQLENGINESTATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT GetSparkSQLEngineStateRequest : public RpcServiceRequest { +public: + GetSparkSQLEngineStateRequest(); + ~GetSparkSQLEngineStateRequest(); + std::string getResourceGroupName() const; + void setResourceGroupName(const std::string &resourceGroupName); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + +private: + std::string resourceGroupName_; + std::string dBClusterId_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_GETSPARKSQLENGINESTATEREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/GetSparkSQLEngineStateResult.h b/adb/include/alibabacloud/adb/model/GetSparkSQLEngineStateResult.h new file mode 100644 index 000000000..7c61a8d21 --- /dev/null +++ b/adb/include/alibabacloud/adb/model/GetSparkSQLEngineStateResult.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_GETSPARKSQLENGINESTATERESULT_H_ +#define ALIBABACLOUD_ADB_MODEL_GETSPARKSQLENGINESTATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Adb + { + namespace Model + { + class ALIBABACLOUD_ADB_EXPORT GetSparkSQLEngineStateResult : public ServiceResult + { + public: + struct Data + { + std::string appId; + std::string minExecutor; + std::string maxExecutor; + std::string config; + std::string state; + std::string submittedTimeInMillis; + std::string slotNum; + std::string jars; + }; + + + GetSparkSQLEngineStateResult(); + explicit GetSparkSQLEngineStateResult(const std::string &payload); + ~GetSparkSQLEngineStateResult(); + Data getData()const; + + protected: + void parse(const std::string &payload); + private: + Data data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ADB_MODEL_GETSPARKSQLENGINESTATERESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/GetSparkTemplateFileContentRequest.h b/adb/include/alibabacloud/adb/model/GetSparkTemplateFileContentRequest.h new file mode 100644 index 000000000..06d265672 --- /dev/null +++ b/adb/include/alibabacloud/adb/model/GetSparkTemplateFileContentRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_GETSPARKTEMPLATEFILECONTENTREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_GETSPARKTEMPLATEFILECONTENTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT GetSparkTemplateFileContentRequest : public RpcServiceRequest { +public: + GetSparkTemplateFileContentRequest(); + ~GetSparkTemplateFileContentRequest(); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + long getId() const; + void setId(long id); + +private: + std::string dBClusterId_; + long id_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_GETSPARKTEMPLATEFILECONTENTREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/DescribeColumnsResult.h b/adb/include/alibabacloud/adb/model/GetSparkTemplateFileContentResult.h similarity index 60% rename from adb/include/alibabacloud/adb/model/DescribeColumnsResult.h rename to adb/include/alibabacloud/adb/model/GetSparkTemplateFileContentResult.h index 8937d345c..b2d35b4d3 100644 --- a/adb/include/alibabacloud/adb/model/DescribeColumnsResult.h +++ b/adb/include/alibabacloud/adb/model/GetSparkTemplateFileContentResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBECOLUMNSRESULT_H_ -#define ALIBABACLOUD_ADB_MODEL_DESCRIBECOLUMNSRESULT_H_ +#ifndef ALIBABACLOUD_ADB_MODEL_GETSPARKTEMPLATEFILECONTENTRESULT_H_ +#define ALIBABACLOUD_ADB_MODEL_GETSPARKTEMPLATEFILECONTENTRESULT_H_ #include #include @@ -29,33 +29,31 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_ADB_EXPORT DescribeColumnsResult : public ServiceResult + class ALIBABACLOUD_ADB_EXPORT GetSparkTemplateFileContentResult : public ServiceResult { public: - struct Column + struct Data { - std::string columnName; - std::string tableName; std::string type; - bool autoIncrementColumn; - std::string dBClusterId; - bool primaryKey; - std::string schemaName; + std::string content; + long id; + std::string appType; + std::string resourceGroupName; }; - DescribeColumnsResult(); - explicit DescribeColumnsResult(const std::string &payload); - ~DescribeColumnsResult(); - std::vector getItems()const; + GetSparkTemplateFileContentResult(); + explicit GetSparkTemplateFileContentResult(const std::string &payload); + ~GetSparkTemplateFileContentResult(); + Data getData()const; protected: void parse(const std::string &payload); private: - std::vector items_; + Data data_; }; } } } -#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBECOLUMNSRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_ADB_MODEL_GETSPARKTEMPLATEFILECONTENTRESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/DescribeOperatorPermissionRequest.h b/adb/include/alibabacloud/adb/model/GetSparkTemplateFolderTreeRequest.h similarity index 53% rename from adb/include/alibabacloud/adb/model/DescribeOperatorPermissionRequest.h rename to adb/include/alibabacloud/adb/model/GetSparkTemplateFolderTreeRequest.h index 2d5fbf42d..3fbf8c079 100644 --- a/adb/include/alibabacloud/adb/model/DescribeOperatorPermissionRequest.h +++ b/adb/include/alibabacloud/adb/model/GetSparkTemplateFolderTreeRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBEOPERATORPERMISSIONREQUEST_H_ -#define ALIBABACLOUD_ADB_MODEL_DESCRIBEOPERATORPERMISSIONREQUEST_H_ +#ifndef ALIBABACLOUD_ADB_MODEL_GETSPARKTEMPLATEFOLDERTREEREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_GETSPARKTEMPLATEFOLDERTREEREQUEST_H_ #include #include @@ -26,32 +26,17 @@ namespace AlibabaCloud { namespace Adb { namespace Model { -class ALIBABACLOUD_ADB_EXPORT DescribeOperatorPermissionRequest : public RpcServiceRequest { +class ALIBABACLOUD_ADB_EXPORT GetSparkTemplateFolderTreeRequest : 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); + GetSparkTemplateFolderTreeRequest(); + ~GetSparkTemplateFolderTreeRequest(); 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_ +#endif // !ALIBABACLOUD_ADB_MODEL_GETSPARKTEMPLATEFOLDERTREEREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/BindDBResourcePoolWithUserResult.h b/adb/include/alibabacloud/adb/model/GetSparkTemplateFolderTreeResult.h similarity index 68% rename from adb/include/alibabacloud/adb/model/BindDBResourcePoolWithUserResult.h rename to adb/include/alibabacloud/adb/model/GetSparkTemplateFolderTreeResult.h index 5bae286e8..6136a94ee 100644 --- a/adb/include/alibabacloud/adb/model/BindDBResourcePoolWithUserResult.h +++ b/adb/include/alibabacloud/adb/model/GetSparkTemplateFolderTreeResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_ADB_MODEL_BINDDBRESOURCEPOOLWITHUSERRESULT_H_ -#define ALIBABACLOUD_ADB_MODEL_BINDDBRESOURCEPOOLWITHUSERRESULT_H_ +#ifndef ALIBABACLOUD_ADB_MODEL_GETSPARKTEMPLATEFOLDERTREERESULT_H_ +#define ALIBABACLOUD_ADB_MODEL_GETSPARKTEMPLATEFOLDERTREERESULT_H_ #include #include @@ -29,21 +29,23 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_ADB_EXPORT BindDBResourcePoolWithUserResult : public ServiceResult + class ALIBABACLOUD_ADB_EXPORT GetSparkTemplateFolderTreeResult : public ServiceResult { public: - BindDBResourcePoolWithUserResult(); - explicit BindDBResourcePoolWithUserResult(const std::string &payload); - ~BindDBResourcePoolWithUserResult(); + GetSparkTemplateFolderTreeResult(); + explicit GetSparkTemplateFolderTreeResult(const std::string &payload); + ~GetSparkTemplateFolderTreeResult(); + std::string getData()const; protected: void parse(const std::string &payload); private: + std::string data_; }; } } } -#endif // !ALIBABACLOUD_ADB_MODEL_BINDDBRESOURCEPOOLWITHUSERRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_ADB_MODEL_GETSPARKTEMPLATEFOLDERTREERESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/RevokeOperatorPermissionRequest.h b/adb/include/alibabacloud/adb/model/GetSparkTemplateFullTreeRequest.h similarity index 53% rename from adb/include/alibabacloud/adb/model/RevokeOperatorPermissionRequest.h rename to adb/include/alibabacloud/adb/model/GetSparkTemplateFullTreeRequest.h index 5e1f50d8e..b944c311f 100644 --- a/adb/include/alibabacloud/adb/model/RevokeOperatorPermissionRequest.h +++ b/adb/include/alibabacloud/adb/model/GetSparkTemplateFullTreeRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_ADB_MODEL_REVOKEOPERATORPERMISSIONREQUEST_H_ -#define ALIBABACLOUD_ADB_MODEL_REVOKEOPERATORPERMISSIONREQUEST_H_ +#ifndef ALIBABACLOUD_ADB_MODEL_GETSPARKTEMPLATEFULLTREEREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_GETSPARKTEMPLATEFULLTREEREQUEST_H_ #include #include @@ -26,32 +26,17 @@ namespace AlibabaCloud { namespace Adb { namespace Model { -class ALIBABACLOUD_ADB_EXPORT RevokeOperatorPermissionRequest : public RpcServiceRequest { +class ALIBABACLOUD_ADB_EXPORT GetSparkTemplateFullTreeRequest : 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); + GetSparkTemplateFullTreeRequest(); + ~GetSparkTemplateFullTreeRequest(); 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_ +#endif // !ALIBABACLOUD_ADB_MODEL_GETSPARKTEMPLATEFULLTREEREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/ModifyAutoRenewAttributeResult.h b/adb/include/alibabacloud/adb/model/GetSparkTemplateFullTreeResult.h similarity index 68% rename from adb/include/alibabacloud/adb/model/ModifyAutoRenewAttributeResult.h rename to adb/include/alibabacloud/adb/model/GetSparkTemplateFullTreeResult.h index 3c4825455..29ffcad23 100644 --- a/adb/include/alibabacloud/adb/model/ModifyAutoRenewAttributeResult.h +++ b/adb/include/alibabacloud/adb/model/GetSparkTemplateFullTreeResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_ADB_MODEL_MODIFYAUTORENEWATTRIBUTERESULT_H_ -#define ALIBABACLOUD_ADB_MODEL_MODIFYAUTORENEWATTRIBUTERESULT_H_ +#ifndef ALIBABACLOUD_ADB_MODEL_GETSPARKTEMPLATEFULLTREERESULT_H_ +#define ALIBABACLOUD_ADB_MODEL_GETSPARKTEMPLATEFULLTREERESULT_H_ #include #include @@ -29,21 +29,23 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_ADB_EXPORT ModifyAutoRenewAttributeResult : public ServiceResult + class ALIBABACLOUD_ADB_EXPORT GetSparkTemplateFullTreeResult : public ServiceResult { public: - ModifyAutoRenewAttributeResult(); - explicit ModifyAutoRenewAttributeResult(const std::string &payload); - ~ModifyAutoRenewAttributeResult(); + GetSparkTemplateFullTreeResult(); + explicit GetSparkTemplateFullTreeResult(const std::string &payload); + ~GetSparkTemplateFullTreeResult(); + std::string getData()const; protected: void parse(const std::string &payload); private: + std::string data_; }; } } } -#endif // !ALIBABACLOUD_ADB_MODEL_MODIFYAUTORENEWATTRIBUTERESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_ADB_MODEL_GETSPARKTEMPLATEFULLTREERESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/DescribeColumnsRequest.h b/adb/include/alibabacloud/adb/model/GetTableColumnsRequest.h similarity index 58% rename from adb/include/alibabacloud/adb/model/DescribeColumnsRequest.h rename to adb/include/alibabacloud/adb/model/GetTableColumnsRequest.h index bb290d927..1bc0a60f4 100644 --- a/adb/include/alibabacloud/adb/model/DescribeColumnsRequest.h +++ b/adb/include/alibabacloud/adb/model/GetTableColumnsRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBECOLUMNSREQUEST_H_ -#define ALIBABACLOUD_ADB_MODEL_DESCRIBECOLUMNSREQUEST_H_ +#ifndef ALIBABACLOUD_ADB_MODEL_GETTABLECOLUMNSREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_GETTABLECOLUMNSREQUEST_H_ #include #include @@ -26,38 +26,35 @@ namespace AlibabaCloud { namespace Adb { namespace Model { -class ALIBABACLOUD_ADB_EXPORT DescribeColumnsRequest : public RpcServiceRequest { +class ALIBABACLOUD_ADB_EXPORT GetTableColumnsRequest : 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); + GetTableColumnsRequest(); + ~GetTableColumnsRequest(); 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); + std::string getColumnName() const; + void setColumnName(const std::string &columnName); + long getPageNumber() const; + void setPageNumber(long pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + long getPageSize() const; + void setPageSize(long pageSize); + std::string getTableName() const; + void setTableName(const std::string &tableName); private: - long resourceOwnerId_; - std::string accessKeyId_; - std::string tableName_; std::string schemaName_; - std::string resourceOwnerAccount_; std::string dBClusterId_; - std::string ownerAccount_; - long ownerId_; + std::string columnName_; + long pageNumber_; + std::string regionId_; + long pageSize_; + std::string tableName_; }; } // namespace Model } // namespace Adb } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBECOLUMNSREQUEST_H_ +#endif // !ALIBABACLOUD_ADB_MODEL_GETTABLECOLUMNSREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/GetTableColumnsResult.h b/adb/include/alibabacloud/adb/model/GetTableColumnsResult.h new file mode 100644 index 000000000..7bce253fc --- /dev/null +++ b/adb/include/alibabacloud/adb/model/GetTableColumnsResult.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_GETTABLECOLUMNSRESULT_H_ +#define ALIBABACLOUD_ADB_MODEL_GETTABLECOLUMNSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Adb + { + namespace Model + { + class ALIBABACLOUD_ADB_EXPORT GetTableColumnsResult : public ServiceResult + { + public: + struct Data + { + struct Table + { + struct ColumnsItem + { + bool distributeKey; + std::string columnName; + std::string tableName; + std::string type; + std::string description; + std::string createTime; + std::string updateTime; + bool partitionKey; + bool primaryKey; + std::string schemaName; + bool nullable; + }; + std::string tableName; + std::string owner; + std::string tableType; + std::string description; + std::string createTime; + std::string updateTime; + std::vector columns; + std::string schemaName; + std::string catalog; + }; + long totalCount; + Table table; + long pageSize; + long pageNumber; + }; + + + GetTableColumnsResult(); + explicit GetTableColumnsResult(const std::string &payload); + ~GetTableColumnsResult(); + long getTotalCount()const; + long getPageSize()const; + long getPageNumber()const; + Data getData()const; + + protected: + void parse(const std::string &payload); + private: + long totalCount_; + long pageSize_; + long pageNumber_; + Data data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ADB_MODEL_GETTABLECOLUMNSRESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/DescribeTableDetailRequest.h b/adb/include/alibabacloud/adb/model/GetTableDDLRequest.h similarity index 56% rename from adb/include/alibabacloud/adb/model/DescribeTableDetailRequest.h rename to adb/include/alibabacloud/adb/model/GetTableDDLRequest.h index 610220122..3b22ab65a 100644 --- a/adb/include/alibabacloud/adb/model/DescribeTableDetailRequest.h +++ b/adb/include/alibabacloud/adb/model/GetTableDDLRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBETABLEDETAILREQUEST_H_ -#define ALIBABACLOUD_ADB_MODEL_DESCRIBETABLEDETAILREQUEST_H_ +#ifndef ALIBABACLOUD_ADB_MODEL_GETTABLEDDLREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_GETTABLEDDLREQUEST_H_ #include #include @@ -26,38 +26,26 @@ namespace AlibabaCloud { namespace Adb { namespace Model { -class ALIBABACLOUD_ADB_EXPORT DescribeTableDetailRequest : public RpcServiceRequest { +class ALIBABACLOUD_ADB_EXPORT GetTableDDLRequest : 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); + GetTableDDLRequest(); + ~GetTableDDLRequest(); 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); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getTableName() const; + void setTableName(const std::string &tableName); private: - long resourceOwnerId_; - std::string accessKeyId_; - std::string tableName_; std::string schemaName_; - std::string resourceOwnerAccount_; std::string dBClusterId_; - std::string ownerAccount_; - long ownerId_; + std::string regionId_; + std::string tableName_; }; } // namespace Model } // namespace Adb } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBETABLEDETAILREQUEST_H_ +#endif // !ALIBABACLOUD_ADB_MODEL_GETTABLEDDLREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/CreateElasticPlanResult.h b/adb/include/alibabacloud/adb/model/GetTableDDLResult.h similarity index 70% rename from adb/include/alibabacloud/adb/model/CreateElasticPlanResult.h rename to adb/include/alibabacloud/adb/model/GetTableDDLResult.h index 23fd3cffb..8bbc31567 100644 --- a/adb/include/alibabacloud/adb/model/CreateElasticPlanResult.h +++ b/adb/include/alibabacloud/adb/model/GetTableDDLResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_ADB_MODEL_CREATEELASTICPLANRESULT_H_ -#define ALIBABACLOUD_ADB_MODEL_CREATEELASTICPLANRESULT_H_ +#ifndef ALIBABACLOUD_ADB_MODEL_GETTABLEDDLRESULT_H_ +#define ALIBABACLOUD_ADB_MODEL_GETTABLEDDLRESULT_H_ #include #include @@ -29,21 +29,23 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_ADB_EXPORT CreateElasticPlanResult : public ServiceResult + class ALIBABACLOUD_ADB_EXPORT GetTableDDLResult : public ServiceResult { public: - CreateElasticPlanResult(); - explicit CreateElasticPlanResult(const std::string &payload); - ~CreateElasticPlanResult(); + GetTableDDLResult(); + explicit GetTableDDLResult(const std::string &payload); + ~GetTableDDLResult(); + std::string getSQL()const; protected: void parse(const std::string &payload); private: + std::string sQL_; }; } } } -#endif // !ALIBABACLOUD_ADB_MODEL_CREATEELASTICPLANRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_ADB_MODEL_GETTABLEDDLRESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/GetTableObjectsRequest.h b/adb/include/alibabacloud/adb/model/GetTableObjectsRequest.h new file mode 100644 index 000000000..1803a1ac4 --- /dev/null +++ b/adb/include/alibabacloud/adb/model/GetTableObjectsRequest.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_GETTABLEOBJECTSREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_GETTABLEOBJECTSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT GetTableObjectsRequest : public RpcServiceRequest { +public: + GetTableObjectsRequest(); + ~GetTableObjectsRequest(); + long getPageNumber() const; + void setPageNumber(long pageNumber); + std::string getFilterTblType() const; + void setFilterTblType(const std::string &filterTblType); + std::string getFilterDescription() const; + void setFilterDescription(const std::string &filterDescription); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + long getPageSize() const; + void setPageSize(long pageSize); + std::string getFilterTblName() const; + void setFilterTblName(const std::string &filterTblName); + std::string getSchemaName() const; + void setSchemaName(const std::string &schemaName); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getOrderBy() const; + void setOrderBy(const std::string &orderBy); + std::string getFilterOwner() const; + void setFilterOwner(const std::string &filterOwner); + +private: + long pageNumber_; + std::string filterTblType_; + std::string filterDescription_; + std::string regionId_; + long pageSize_; + std::string filterTblName_; + std::string schemaName_; + std::string dBClusterId_; + std::string orderBy_; + std::string filterOwner_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_GETTABLEOBJECTSREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/GetTableObjectsResult.h b/adb/include/alibabacloud/adb/model/GetTableObjectsResult.h new file mode 100644 index 000000000..4b9871b08 --- /dev/null +++ b/adb/include/alibabacloud/adb/model/GetTableObjectsResult.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_GETTABLEOBJECTSRESULT_H_ +#define ALIBABACLOUD_ADB_MODEL_GETTABLEOBJECTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Adb + { + namespace Model + { + class ALIBABACLOUD_ADB_EXPORT GetTableObjectsResult : public ServiceResult + { + public: + struct Data + { + struct DataObject + { + std::string tableName; + std::string owner; + std::string tableType; + std::string description; + long tableSize; + std::string createTime; + std::string updateTime; + std::string schemaName; + std::string sQL; + }; + long totalCount; + long pageSize; + long pageNumber; + std::vector tableSummaryModels; + }; + + + GetTableObjectsResult(); + explicit GetTableObjectsResult(const std::string &payload); + ~GetTableObjectsResult(); + long getTotalCount()const; + long getPageSize()const; + long getPageNumber()const; + Data getData()const; + + protected: + void parse(const std::string &payload); + private: + long totalCount_; + long pageSize_; + long pageNumber_; + Data data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ADB_MODEL_GETTABLEOBJECTSRESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/GetTableRequest.h b/adb/include/alibabacloud/adb/model/GetTableRequest.h new file mode 100644 index 000000000..728942ed1 --- /dev/null +++ b/adb/include/alibabacloud/adb/model/GetTableRequest.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_GETTABLEREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_GETTABLEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT GetTableRequest : public RpcServiceRequest { +public: + GetTableRequest(); + ~GetTableRequest(); + std::string getDbName() const; + void setDbName(const std::string &dbName); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getTableName() const; + void setTableName(const std::string &tableName); + +private: + std::string dbName_; + std::string regionId_; + std::string dBClusterId_; + std::string tableName_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_GETTABLEREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/GetTableResult.h b/adb/include/alibabacloud/adb/model/GetTableResult.h new file mode 100644 index 000000000..d239041c9 --- /dev/null +++ b/adb/include/alibabacloud/adb/model/GetTableResult.h @@ -0,0 +1,319 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR 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_GETTABLERESULT_H_ +#define ALIBABACLOUD_ADB_MODEL_GETTABLERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Adb + { + namespace Model + { + class ALIBABACLOUD_ADB_EXPORT GetTableResult : public ServiceResult + { + public: + struct Table + { + struct Sd + { + struct SerDeInfo + { + std::string serializationLib; + std::string parameters; + long serDeId; + std::string name; + }; + bool storedAsSubDirectories; + std::string parameters; + std::string inputFormat; + SerDeInfo serDeInfo; + std::string outputFormat; + long sdId; + bool compressed; + long numBuckets; + std::string location; + }; + struct RouteEffectiveColumn + { + std::string physicalColumnName; + std::string compression; + std::string columnRawName; + bool compressFloatUseShort; + std::string encode; + std::string name; + std::string defaultValue; + std::string dataType; + bool isPartitionKey; + std::string tokenizer; + long pkPosition; + std::string comment; + std::string delimiter; + std::string valueType; + bool autoIncrement; + std::string createTime; + std::string onUpdate; + std::string databaseName; + bool primarykey; + long scale; + std::string tableName; + std::string type; + long ordinalPosition; + long precision; + std::string updateTime; + std::string mappedName; + bool nullable; + }; + struct PartitionKeysItem + { + std::string physicalColumnName; + std::string compression; + std::string columnRawName; + bool compressFloatUseShort; + std::string encode; + std::string name; + std::string defaultValue; + std::string dataType; + bool isPartitionKey; + std::string tokenizer; + long pkPosition; + std::string comment; + std::string delimiter; + std::string valueType; + bool autoIncrement; + std::string createTime; + std::string onUpdate; + std::string databaseName; + bool primarykey; + long scale; + std::string tableName; + std::string type; + long ordinalPosition; + long precision; + std::string updateTime; + std::string mappedName; + bool nullable; + }; + struct ColsItem + { + std::string physicalColumnName; + std::string compression; + std::string columnRawName; + bool compressFloatUseShort; + std::string encode; + std::string name; + std::string defaultValue; + std::string dataType; + bool isPartitionKey; + std::string tokenizer; + long pkPosition; + std::string comment; + std::string delimiter; + std::string valueType; + bool autoIncrement; + std::string createTime; + std::string onUpdate; + std::string databaseName; + bool primarykey; + long scale; + std::string tableName; + std::string type; + long ordinalPosition; + long precision; + std::string updateTime; + std::string mappedName; + bool nullable; + }; + struct DistributeColumnsItem + { + std::string physicalColumnName; + std::string compression; + std::string columnRawName; + bool compressFloatUseShort; + std::string encode; + std::string name; + std::string defaultValue; + std::string dataType; + bool isPartitionKey; + std::string tokenizer; + long pkPosition; + std::string comment; + std::string delimiter; + std::string valueType; + bool autoIncrement; + std::string createTime; + std::string onUpdate; + std::string databaseName; + bool primarykey; + long scale; + std::string tableName; + std::string type; + long ordinalPosition; + long precision; + std::string updateTime; + std::string mappedName; + bool nullable; + }; + struct RouteColumnsItem + { + std::string physicalColumnName; + std::string compression; + std::string columnRawName; + bool compressFloatUseShort; + std::string encode; + std::string name; + std::string defaultValue; + std::string dataType; + bool isPartitionKey; + std::string tokenizer; + long pkPosition; + std::string comment; + std::string delimiter; + std::string valueType; + bool autoIncrement; + std::string createTime; + std::string onUpdate; + std::string databaseName; + bool primarykey; + long scale; + std::string tableName; + std::string type; + long ordinalPosition; + long precision; + std::string updateTime; + std::string mappedName; + bool nullable; + }; + struct IndexesItem + { + struct IndexColumnsItem + { + std::string physicalColumnName; + std::string compression; + std::string columnRawName; + bool compressFloatUseShort; + std::string encode; + std::string name; + std::string defaultValue; + std::string dataType; + bool isPartitionKey; + std::string tokenizer; + long pkPosition; + std::string comment; + std::string delimiter; + std::string valueType; + bool autoIncrement; + std::string createTime; + std::string onUpdate; + std::string databaseName; + bool primarykey; + long scale; + std::string tableName; + std::string type; + long ordinalPosition; + long precision; + std::string updateTime; + std::string mappedName; + bool nullable; + }; + std::string indexName; + std::string options; + std::vector indexColumns; + std::string createTime; + std::string databaseName; + std::string updateTime; + std::vector columnOrds; + std::string physicalTableName; + std::string indexType; + }; + std::string compression; + std::string physicalDatabaseName; + std::string archiveType; + bool enableDfs; + long currentVersion; + std::string subpartitionType; + bool isFulltextDict; + std::string rawTableName; + std::string partitionColumn; + std::string rtModeType; + long tblId; + std::string viewExpandedText; + long maxColumnId; + std::vector partitionKeys; + std::string dbName; + bool isAllIndex; + std::vector distributeColumns; + long hotPartitionCount; + std::string comment; + std::string viewOriginalText; + long bucketCount; + std::string tableType; + std::string parameters; + bool rtIndexAll; + std::string createTime; + long previousVersion; + std::string physicalTableName; + std::string distributeType; + std::string storagePolicy; + std::vector indexes; + std::string partitionType; + std::string rtEngineType; + Sd sd; + std::string tableName; + std::vector cols; + bool temporary; + std::string routeType; + std::string viewSecurityMode; + long subpartitionCount; + long bucket; + RouteEffectiveColumn routeEffectiveColumn; + std::string updateTime; + bool dictEncode; + std::vector routeColumns; + std::string tableEngineName; + long blockSize; + long partitionCount; + std::string subpartitionColumn; + }; + + + GetTableResult(); + explicit GetTableResult(const std::string &payload); + ~GetTableResult(); + Table getTable()const; + std::string getMessage()const; + long getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + Table table_; + std::string message_; + long code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ADB_MODEL_GETTABLERESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/DescribeTablesRequest.h b/adb/include/alibabacloud/adb/model/GetViewDDLRequest.h similarity index 55% rename from adb/include/alibabacloud/adb/model/DescribeTablesRequest.h rename to adb/include/alibabacloud/adb/model/GetViewDDLRequest.h index 8e14d2fcf..a100cffb9 100644 --- a/adb/include/alibabacloud/adb/model/DescribeTablesRequest.h +++ b/adb/include/alibabacloud/adb/model/GetViewDDLRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBETABLESREQUEST_H_ -#define ALIBABACLOUD_ADB_MODEL_DESCRIBETABLESREQUEST_H_ +#ifndef ALIBABACLOUD_ADB_MODEL_GETVIEWDDLREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_GETVIEWDDLREQUEST_H_ #include #include @@ -26,35 +26,26 @@ namespace AlibabaCloud { namespace Adb { namespace Model { -class ALIBABACLOUD_ADB_EXPORT DescribeTablesRequest : public RpcServiceRequest { +class ALIBABACLOUD_ADB_EXPORT GetViewDDLRequest : public RpcServiceRequest { public: - DescribeTablesRequest(); - ~DescribeTablesRequest(); - long getResourceOwnerId() const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); + GetViewDDLRequest(); + ~GetViewDDLRequest(); std::string getSchemaName() const; void setSchemaName(const std::string &schemaName); - std::string getResourceOwnerAccount() const; - void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getViewName() const; + void setViewName(const std::string &viewName); 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 getRegionId() const; + void setRegionId(const std::string ®ionId); private: - long resourceOwnerId_; - std::string accessKeyId_; std::string schemaName_; - std::string resourceOwnerAccount_; + std::string viewName_; std::string dBClusterId_; - std::string ownerAccount_; - long ownerId_; + std::string regionId_; }; } // namespace Model } // namespace Adb } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBETABLESREQUEST_H_ +#endif // !ALIBABACLOUD_ADB_MODEL_GETVIEWDDLREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/ModifyElasticPlanResult.h b/adb/include/alibabacloud/adb/model/GetViewDDLResult.h similarity index 70% rename from adb/include/alibabacloud/adb/model/ModifyElasticPlanResult.h rename to adb/include/alibabacloud/adb/model/GetViewDDLResult.h index 83cb488a6..bee8dd066 100644 --- a/adb/include/alibabacloud/adb/model/ModifyElasticPlanResult.h +++ b/adb/include/alibabacloud/adb/model/GetViewDDLResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_ADB_MODEL_MODIFYELASTICPLANRESULT_H_ -#define ALIBABACLOUD_ADB_MODEL_MODIFYELASTICPLANRESULT_H_ +#ifndef ALIBABACLOUD_ADB_MODEL_GETVIEWDDLRESULT_H_ +#define ALIBABACLOUD_ADB_MODEL_GETVIEWDDLRESULT_H_ #include #include @@ -29,21 +29,23 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_ADB_EXPORT ModifyElasticPlanResult : public ServiceResult + class ALIBABACLOUD_ADB_EXPORT GetViewDDLResult : public ServiceResult { public: - ModifyElasticPlanResult(); - explicit ModifyElasticPlanResult(const std::string &payload); - ~ModifyElasticPlanResult(); + GetViewDDLResult(); + explicit GetViewDDLResult(const std::string &payload); + ~GetViewDDLResult(); + std::string getSQL()const; protected: void parse(const std::string &payload); private: + std::string sQL_; }; } } } -#endif // !ALIBABACLOUD_ADB_MODEL_MODIFYELASTICPLANRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_ADB_MODEL_GETVIEWDDLRESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/DescribeAllDataSourceRequest.h b/adb/include/alibabacloud/adb/model/GetViewObjectsRequest.h similarity index 50% rename from adb/include/alibabacloud/adb/model/DescribeAllDataSourceRequest.h rename to adb/include/alibabacloud/adb/model/GetViewObjectsRequest.h index 244b5d4d8..ff297318d 100644 --- a/adb/include/alibabacloud/adb/model/DescribeAllDataSourceRequest.h +++ b/adb/include/alibabacloud/adb/model/GetViewObjectsRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBEALLDATASOURCEREQUEST_H_ -#define ALIBABACLOUD_ADB_MODEL_DESCRIBEALLDATASOURCEREQUEST_H_ +#ifndef ALIBABACLOUD_ADB_MODEL_GETVIEWOBJECTSREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_GETVIEWOBJECTSREQUEST_H_ #include #include @@ -26,38 +26,41 @@ namespace AlibabaCloud { namespace Adb { namespace Model { -class ALIBABACLOUD_ADB_EXPORT DescribeAllDataSourceRequest : public RpcServiceRequest { +class ALIBABACLOUD_ADB_EXPORT GetViewObjectsRequest : 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); + GetViewObjectsRequest(); + ~GetViewObjectsRequest(); + long getPageNumber() const; + void setPageNumber(long pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + long getPageSize() const; + void setPageSize(long pageSize); + std::string getFilterViewName() const; + void setFilterViewName(const std::string &filterViewName); + std::string getFilterViewType() const; + void setFilterViewType(const std::string &filterViewType); 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); + std::string getOrderBy() const; + void setOrderBy(const std::string &orderBy); + std::string getFilterOwner() const; + void setFilterOwner(const std::string &filterOwner); private: - long resourceOwnerId_; - std::string accessKeyId_; - std::string tableName_; + long pageNumber_; + std::string regionId_; + long pageSize_; + std::string filterViewName_; + std::string filterViewType_; std::string schemaName_; - std::string resourceOwnerAccount_; std::string dBClusterId_; - std::string ownerAccount_; - long ownerId_; + std::string orderBy_; + std::string filterOwner_; }; } // namespace Model } // namespace Adb } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEALLDATASOURCEREQUEST_H_ +#endif // !ALIBABACLOUD_ADB_MODEL_GETVIEWOBJECTSREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/GetViewObjectsResult.h b/adb/include/alibabacloud/adb/model/GetViewObjectsResult.h new file mode 100644 index 000000000..bdc0d2105 --- /dev/null +++ b/adb/include/alibabacloud/adb/model/GetViewObjectsResult.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_GETVIEWOBJECTSRESULT_H_ +#define ALIBABACLOUD_ADB_MODEL_GETVIEWOBJECTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Adb + { + namespace Model + { + class ALIBABACLOUD_ADB_EXPORT GetViewObjectsResult : public ServiceResult + { + public: + struct Data + { + struct DataObject + { + std::string tableName; + std::string owner; + std::string tableType; + std::string description; + long tableSize; + std::string createTime; + std::string updateTime; + std::string schemaName; + std::string sQL; + }; + long totalCount; + long pageSize; + long pageNumber; + std::vector tableSummaryModels; + }; + + + GetViewObjectsResult(); + explicit GetViewObjectsResult(const std::string &payload); + ~GetViewObjectsResult(); + long getTotalCount()const; + long getPageSize()const; + long getPageNumber()const; + Data getData()const; + + protected: + void parse(const std::string &payload); + private: + long totalCount_; + long pageSize_; + long pageNumber_; + Data data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ADB_MODEL_GETVIEWOBJECTSRESULT_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 deleted file mode 100644 index 6af96e188..000000000 --- a/adb/include/alibabacloud/adb/model/GrantOperatorPermissionRequest.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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/DeleteElasticPlanResult.h b/adb/include/alibabacloud/adb/model/KillSparkAppRequest.h similarity index 52% rename from adb/include/alibabacloud/adb/model/DeleteElasticPlanResult.h rename to adb/include/alibabacloud/adb/model/KillSparkAppRequest.h index 7242abadb..802a2fbd1 100644 --- a/adb/include/alibabacloud/adb/model/DeleteElasticPlanResult.h +++ b/adb/include/alibabacloud/adb/model/KillSparkAppRequest.h @@ -1,49 +1,42 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ADB_MODEL_DELETEELASTICPLANRESULT_H_ -#define ALIBABACLOUD_ADB_MODEL_DELETEELASTICPLANRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Adb - { - namespace Model - { - class ALIBABACLOUD_ADB_EXPORT DeleteElasticPlanResult : public ServiceResult - { - public: - - - DeleteElasticPlanResult(); - explicit DeleteElasticPlanResult(const std::string &payload); - ~DeleteElasticPlanResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} -#endif // !ALIBABACLOUD_ADB_MODEL_DELETEELASTICPLANRESULT_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_KILLSPARKAPPREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_KILLSPARKAPPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT KillSparkAppRequest : public RpcServiceRequest { +public: + KillSparkAppRequest(); + ~KillSparkAppRequest(); + std::string getAppId() const; + void setAppId(const std::string &appId); + +private: + std::string appId_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_KILLSPARKAPPREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/DescribeSchemasResult.h b/adb/include/alibabacloud/adb/model/KillSparkAppResult.h similarity index 65% rename from adb/include/alibabacloud/adb/model/DescribeSchemasResult.h rename to adb/include/alibabacloud/adb/model/KillSparkAppResult.h index 50fa3a6e5..70f02daa7 100644 --- a/adb/include/alibabacloud/adb/model/DescribeSchemasResult.h +++ b/adb/include/alibabacloud/adb/model/KillSparkAppResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBESCHEMASRESULT_H_ -#define ALIBABACLOUD_ADB_MODEL_DESCRIBESCHEMASRESULT_H_ +#ifndef ALIBABACLOUD_ADB_MODEL_KILLSPARKAPPRESULT_H_ +#define ALIBABACLOUD_ADB_MODEL_KILLSPARKAPPRESULT_H_ #include #include @@ -29,28 +29,31 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_ADB_EXPORT DescribeSchemasResult : public ServiceResult + class ALIBABACLOUD_ADB_EXPORT KillSparkAppResult : public ServiceResult { public: - struct Schema + struct Data { + std::string appId; + std::string message; + std::string state; std::string dBClusterId; - std::string schemaName; + std::string appName; }; - DescribeSchemasResult(); - explicit DescribeSchemasResult(const std::string &payload); - ~DescribeSchemasResult(); - std::vector getItems()const; + KillSparkAppResult(); + explicit KillSparkAppResult(const std::string &payload); + ~KillSparkAppResult(); + Data getData()const; protected: void parse(const std::string &payload); private: - std::vector items_; + Data data_; }; } } } -#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBESCHEMASRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_ADB_MODEL_KILLSPARKAPPRESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/KillSparkLogAnalyzeTaskRequest.h b/adb/include/alibabacloud/adb/model/KillSparkLogAnalyzeTaskRequest.h new file mode 100644 index 000000000..37c8f7230 --- /dev/null +++ b/adb/include/alibabacloud/adb/model/KillSparkLogAnalyzeTaskRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_KILLSPARKLOGANALYZETASKREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_KILLSPARKLOGANALYZETASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT KillSparkLogAnalyzeTaskRequest : public RpcServiceRequest { +public: + KillSparkLogAnalyzeTaskRequest(); + ~KillSparkLogAnalyzeTaskRequest(); + long getTaskId() const; + void setTaskId(long taskId); + +private: + long taskId_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_KILLSPARKLOGANALYZETASKREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/KillSparkLogAnalyzeTaskResult.h b/adb/include/alibabacloud/adb/model/KillSparkLogAnalyzeTaskResult.h new file mode 100644 index 000000000..0514e37e1 --- /dev/null +++ b/adb/include/alibabacloud/adb/model/KillSparkLogAnalyzeTaskResult.h @@ -0,0 +1,70 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_KILLSPARKLOGANALYZETASKRESULT_H_ +#define ALIBABACLOUD_ADB_MODEL_KILLSPARKLOGANALYZETASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Adb + { + namespace Model + { + class ALIBABACLOUD_ADB_EXPORT KillSparkLogAnalyzeTaskResult : public ServiceResult + { + public: + struct Data + { + struct Result + { + std::string appErrorAdvice; + std::string appErrorLog; + std::string appErrorCode; + }; + long terminatedTimeInMillis; + long taskId; + std::string taskErrMsg; + long userId; + bool ruleMatched; + long submittedTimeInMillis; + std::string dBClusterId; + std::string taskState; + long startedTimeInMillis; + Result result; + }; + + + KillSparkLogAnalyzeTaskResult(); + explicit KillSparkLogAnalyzeTaskResult(const std::string &payload); + ~KillSparkLogAnalyzeTaskResult(); + Data getData()const; + + protected: + void parse(const std::string &payload); + private: + Data data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ADB_MODEL_KILLSPARKLOGANALYZETASKRESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/KillSparkSQLEngineRequest.h b/adb/include/alibabacloud/adb/model/KillSparkSQLEngineRequest.h new file mode 100644 index 000000000..331762367 --- /dev/null +++ b/adb/include/alibabacloud/adb/model/KillSparkSQLEngineRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_KILLSPARKSQLENGINEREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_KILLSPARKSQLENGINEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT KillSparkSQLEngineRequest : public RpcServiceRequest { +public: + KillSparkSQLEngineRequest(); + ~KillSparkSQLEngineRequest(); + std::string getResourceGroupName() const; + void setResourceGroupName(const std::string &resourceGroupName); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + +private: + std::string resourceGroupName_; + std::string dBClusterId_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_KILLSPARKSQLENGINEREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/DeleteDBResourcePoolResult.h b/adb/include/alibabacloud/adb/model/KillSparkSQLEngineResult.h similarity index 68% rename from adb/include/alibabacloud/adb/model/DeleteDBResourcePoolResult.h rename to adb/include/alibabacloud/adb/model/KillSparkSQLEngineResult.h index 0586b58fb..7aee3a26f 100644 --- a/adb/include/alibabacloud/adb/model/DeleteDBResourcePoolResult.h +++ b/adb/include/alibabacloud/adb/model/KillSparkSQLEngineResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_ADB_MODEL_DELETEDBRESOURCEPOOLRESULT_H_ -#define ALIBABACLOUD_ADB_MODEL_DELETEDBRESOURCEPOOLRESULT_H_ +#ifndef ALIBABACLOUD_ADB_MODEL_KILLSPARKSQLENGINERESULT_H_ +#define ALIBABACLOUD_ADB_MODEL_KILLSPARKSQLENGINERESULT_H_ #include #include @@ -29,21 +29,23 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_ADB_EXPORT DeleteDBResourcePoolResult : public ServiceResult + class ALIBABACLOUD_ADB_EXPORT KillSparkSQLEngineResult : public ServiceResult { public: - DeleteDBResourcePoolResult(); - explicit DeleteDBResourcePoolResult(const std::string &payload); - ~DeleteDBResourcePoolResult(); + KillSparkSQLEngineResult(); + explicit KillSparkSQLEngineResult(const std::string &payload); + ~KillSparkSQLEngineResult(); + bool getData()const; protected: void parse(const std::string &payload); private: + bool data_; }; } } } -#endif // !ALIBABACLOUD_ADB_MODEL_DELETEDBRESOURCEPOOLRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_ADB_MODEL_KILLSPARKSQLENGINERESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/ListSparkAppAttemptsRequest.h b/adb/include/alibabacloud/adb/model/ListSparkAppAttemptsRequest.h new file mode 100644 index 000000000..fc84a9e36 --- /dev/null +++ b/adb/include/alibabacloud/adb/model/ListSparkAppAttemptsRequest.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_LISTSPARKAPPATTEMPTSREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_LISTSPARKAPPATTEMPTSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT ListSparkAppAttemptsRequest : public RpcServiceRequest { +public: + ListSparkAppAttemptsRequest(); + ~ListSparkAppAttemptsRequest(); + std::string getOrderBy() const; + void setOrderBy(const std::string &orderBy); + std::string getFilters() const; + void setFilters(const std::string &filters); + long getPageNumber() const; + void setPageNumber(long pageNumber); + std::string getAppId() const; + void setAppId(const std::string &appId); + long getPageSize() const; + void setPageSize(long pageSize); + +private: + std::string orderBy_; + std::string filters_; + long pageNumber_; + std::string appId_; + long pageSize_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_LISTSPARKAPPATTEMPTSREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/ListSparkAppAttemptsResult.h b/adb/include/alibabacloud/adb/model/ListSparkAppAttemptsResult.h new file mode 100644 index 000000000..80ae7a38c --- /dev/null +++ b/adb/include/alibabacloud/adb/model/ListSparkAppAttemptsResult.h @@ -0,0 +1,80 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_LISTSPARKAPPATTEMPTSRESULT_H_ +#define ALIBABACLOUD_ADB_MODEL_LISTSPARKAPPATTEMPTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Adb + { + namespace Model + { + class ALIBABACLOUD_ADB_EXPORT ListSparkAppAttemptsResult : public ServiceResult + { + public: + struct Data + { + struct AttemptInfo + { + struct Detail + { + std::string lastAttemptId; + long durationInMillis; + long terminatedTimeInMillis; + std::string logRootPath; + std::string webUiAddress; + long submittedTimeInMillis; + std::string dBClusterId; + std::string data; + long estimateExecutionCpuTimeInSeconds; + long startedTimeInMillis; + long lastUpdatedTimeInMillis; + std::string resourceGroupName; + }; + std::string attemptId; + std::string message; + std::string state; + Detail detail; + }; + long totalCount; + long pageSize; + long pageNumber; + std::vector attemptInfoList; + }; + + + ListSparkAppAttemptsResult(); + explicit ListSparkAppAttemptsResult(const std::string &payload); + ~ListSparkAppAttemptsResult(); + Data getData()const; + + protected: + void parse(const std::string &payload); + private: + Data data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ADB_MODEL_LISTSPARKAPPATTEMPTSRESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/ListSparkAppsRequest.h b/adb/include/alibabacloud/adb/model/ListSparkAppsRequest.h new file mode 100644 index 000000000..8a18654a5 --- /dev/null +++ b/adb/include/alibabacloud/adb/model/ListSparkAppsRequest.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_LISTSPARKAPPSREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_LISTSPARKAPPSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT ListSparkAppsRequest : public RpcServiceRequest { +public: + ListSparkAppsRequest(); + ~ListSparkAppsRequest(); + std::string getResourceGroupName() const; + void setResourceGroupName(const std::string &resourceGroupName); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getOrderBy() const; + void setOrderBy(const std::string &orderBy); + std::string getFilters() const; + void setFilters(const std::string &filters); + long getPageNumber() const; + void setPageNumber(long pageNumber); + long getPageSize() const; + void setPageSize(long pageSize); + +private: + std::string resourceGroupName_; + std::string dBClusterId_; + std::string orderBy_; + std::string filters_; + long pageNumber_; + long pageSize_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_LISTSPARKAPPSREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/ListSparkAppsResult.h b/adb/include/alibabacloud/adb/model/ListSparkAppsResult.h new file mode 100644 index 000000000..11a98afe1 --- /dev/null +++ b/adb/include/alibabacloud/adb/model/ListSparkAppsResult.h @@ -0,0 +1,88 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_LISTSPARKAPPSRESULT_H_ +#define ALIBABACLOUD_ADB_MODEL_LISTSPARKAPPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Adb + { + namespace Model + { + class ALIBABACLOUD_ADB_EXPORT ListSparkAppsResult : public ServiceResult + { + public: + struct Data + { + struct AppInfo + { + struct Detail + { + std::string lastAttemptId; + long durationInMillis; + long terminatedTimeInMillis; + std::string logRootPath; + std::string webUiAddress; + long submittedTimeInMillis; + std::string dBClusterId; + std::string data; + long estimateExecutionCpuTimeInSeconds; + long startedTimeInMillis; + long lastUpdatedTimeInMillis; + std::string resourceGroupName; + }; + std::string appId; + std::string message; + std::string state; + std::string dBClusterId; + Detail detail; + std::string appName; + }; + long totalCount; + long pageSize; + long pageNumber; + std::vector appInfoList; + }; + + + ListSparkAppsResult(); + explicit ListSparkAppsResult(const std::string &payload); + ~ListSparkAppsResult(); + long getTotalCount()const; + long getPageSize()const; + long getPageNumber()const; + Data getData()const; + + protected: + void parse(const std::string &payload); + private: + long totalCount_; + long pageSize_; + long pageNumber_; + Data data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ADB_MODEL_LISTSPARKAPPSRESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/ListSparkLogAnalyzeTasksRequest.h b/adb/include/alibabacloud/adb/model/ListSparkLogAnalyzeTasksRequest.h new file mode 100644 index 000000000..8b8f3fd77 --- /dev/null +++ b/adb/include/alibabacloud/adb/model/ListSparkLogAnalyzeTasksRequest.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_LISTSPARKLOGANALYZETASKSREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_LISTSPARKLOGANALYZETASKSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT ListSparkLogAnalyzeTasksRequest : public RpcServiceRequest { +public: + ListSparkLogAnalyzeTasksRequest(); + ~ListSparkLogAnalyzeTasksRequest(); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + long getPageNumber() const; + void setPageNumber(long pageNumber); + long getPageSize() const; + void setPageSize(long pageSize); + +private: + std::string dBClusterId_; + long pageNumber_; + long pageSize_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_LISTSPARKLOGANALYZETASKSREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/ListSparkLogAnalyzeTasksResult.h b/adb/include/alibabacloud/adb/model/ListSparkLogAnalyzeTasksResult.h new file mode 100644 index 000000000..6387d7e80 --- /dev/null +++ b/adb/include/alibabacloud/adb/model/ListSparkLogAnalyzeTasksResult.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_LISTSPARKLOGANALYZETASKSRESULT_H_ +#define ALIBABACLOUD_ADB_MODEL_LISTSPARKLOGANALYZETASKSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Adb + { + namespace Model + { + class ALIBABACLOUD_ADB_EXPORT ListSparkLogAnalyzeTasksResult : public ServiceResult + { + public: + struct Data + { + struct Task + { + struct Result + { + std::string appErrorAdvice; + std::string appErrorLog; + std::string appErrorCode; + }; + long terminatedTimeInMillis; + long taskId; + std::string taskErrMsg; + long userId; + bool ruleMatched; + long submittedTimeInMillis; + std::string dBClusterId; + std::string taskState; + long startedTimeInMillis; + Result result; + }; + long totalCount; + long pageSize; + long pageNumber; + std::vector taskList; + }; + + + ListSparkLogAnalyzeTasksResult(); + explicit ListSparkLogAnalyzeTasksResult(const std::string &payload); + ~ListSparkLogAnalyzeTasksResult(); + Data getData()const; + + protected: + void parse(const std::string &payload); + private: + Data data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ADB_MODEL_LISTSPARKLOGANALYZETASKSRESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/ListSparkTemplateFileIdsRequest.h b/adb/include/alibabacloud/adb/model/ListSparkTemplateFileIdsRequest.h new file mode 100644 index 000000000..cf60884b1 --- /dev/null +++ b/adb/include/alibabacloud/adb/model/ListSparkTemplateFileIdsRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_LISTSPARKTEMPLATEFILEIDSREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_LISTSPARKTEMPLATEFILEIDSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT ListSparkTemplateFileIdsRequest : public RpcServiceRequest { +public: + ListSparkTemplateFileIdsRequest(); + ~ListSparkTemplateFileIdsRequest(); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + +private: + std::string dBClusterId_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_LISTSPARKTEMPLATEFILEIDSREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/RevokeOperatorPermissionResult.h b/adb/include/alibabacloud/adb/model/ListSparkTemplateFileIdsResult.h similarity index 67% rename from adb/include/alibabacloud/adb/model/RevokeOperatorPermissionResult.h rename to adb/include/alibabacloud/adb/model/ListSparkTemplateFileIdsResult.h index 6a4d14ee8..24fdcdab2 100644 --- a/adb/include/alibabacloud/adb/model/RevokeOperatorPermissionResult.h +++ b/adb/include/alibabacloud/adb/model/ListSparkTemplateFileIdsResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_ADB_MODEL_REVOKEOPERATORPERMISSIONRESULT_H_ -#define ALIBABACLOUD_ADB_MODEL_REVOKEOPERATORPERMISSIONRESULT_H_ +#ifndef ALIBABACLOUD_ADB_MODEL_LISTSPARKTEMPLATEFILEIDSRESULT_H_ +#define ALIBABACLOUD_ADB_MODEL_LISTSPARKTEMPLATEFILEIDSRESULT_H_ #include #include @@ -29,21 +29,23 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_ADB_EXPORT RevokeOperatorPermissionResult : public ServiceResult + class ALIBABACLOUD_ADB_EXPORT ListSparkTemplateFileIdsResult : public ServiceResult { public: - RevokeOperatorPermissionResult(); - explicit RevokeOperatorPermissionResult(const std::string &payload); - ~RevokeOperatorPermissionResult(); + ListSparkTemplateFileIdsResult(); + explicit ListSparkTemplateFileIdsResult(const std::string &payload); + ~ListSparkTemplateFileIdsResult(); + std::vector getData()const; protected: void parse(const std::string &payload); private: + std::vector data_; }; } } } -#endif // !ALIBABACLOUD_ADB_MODEL_REVOKEOPERATORPERMISSIONRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_ADB_MODEL_LISTSPARKTEMPLATEFILEIDSRESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/ListTagResourcesRequest.h b/adb/include/alibabacloud/adb/model/ListTagResourcesRequest.h deleted file mode 100644 index e32a9e48a..000000000 --- a/adb/include/alibabacloud/adb/model/ListTagResourcesRequest.h +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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/ListTagResourcesResult.h b/adb/include/alibabacloud/adb/model/ListTagResourcesResult.h deleted file mode 100644 index 047cd9120..000000000 --- a/adb/include/alibabacloud/adb/model/ListTagResourcesResult.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ADB_MODEL_LISTTAGRESOURCESRESULT_H_ -#define ALIBABACLOUD_ADB_MODEL_LISTTAGRESOURCESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Adb - { - namespace Model - { - class ALIBABACLOUD_ADB_EXPORT ListTagResourcesResult : public ServiceResult - { - public: - struct TagResource - { - std::string resourceId; - std::string tagKey; - std::string resourceType; - std::string tagValue; - }; - - - ListTagResourcesResult(); - explicit ListTagResourcesResult(const std::string &payload); - ~ListTagResourcesResult(); - std::string getNextToken()const; - std::vector getTagResources()const; - - protected: - void parse(const std::string &payload); - private: - std::string nextToken_; - std::vector tagResources_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ADB_MODEL_LISTTAGRESOURCESRESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/ModifyAccountDescriptionRequest.h b/adb/include/alibabacloud/adb/model/ModifyAccountDescriptionRequest.h index 9f7212f32..59a13f3e3 100644 --- a/adb/include/alibabacloud/adb/model/ModifyAccountDescriptionRequest.h +++ b/adb/include/alibabacloud/adb/model/ModifyAccountDescriptionRequest.h @@ -30,32 +30,20 @@ class ALIBABACLOUD_ADB_EXPORT ModifyAccountDescriptionRequest : public RpcServic public: ModifyAccountDescriptionRequest(); ~ModifyAccountDescriptionRequest(); - long getResourceOwnerId() const; - void setResourceOwnerId(long resourceOwnerId); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); 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 dBClusterId_; std::string accountDescription_; std::string accessKeyId_; std::string accountName_; - std::string resourceOwnerAccount_; - std::string dBClusterId_; - std::string ownerAccount_; - long ownerId_; }; } // namespace Model } // namespace Adb diff --git a/adb/include/alibabacloud/adb/model/ModifyAutoRenewAttributeRequest.h b/adb/include/alibabacloud/adb/model/ModifyAutoRenewAttributeRequest.h deleted file mode 100644 index 91114f573..000000000 --- a/adb/include/alibabacloud/adb/model/ModifyAutoRenewAttributeRequest.h +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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/ModifyDBClusterAccessWhiteListRequest.h b/adb/include/alibabacloud/adb/model/ModifyClusterAccessWhiteListRequest.h similarity index 65% rename from adb/include/alibabacloud/adb/model/ModifyDBClusterAccessWhiteListRequest.h rename to adb/include/alibabacloud/adb/model/ModifyClusterAccessWhiteListRequest.h index 7d12eb83d..586dc1689 100644 --- a/adb/include/alibabacloud/adb/model/ModifyDBClusterAccessWhiteListRequest.h +++ b/adb/include/alibabacloud/adb/model/ModifyClusterAccessWhiteListRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_ADB_MODEL_MODIFYDBCLUSTERACCESSWHITELISTREQUEST_H_ -#define ALIBABACLOUD_ADB_MODEL_MODIFYDBCLUSTERACCESSWHITELISTREQUEST_H_ +#ifndef ALIBABACLOUD_ADB_MODEL_MODIFYCLUSTERACCESSWHITELISTREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_MODIFYCLUSTERACCESSWHITELISTREQUEST_H_ #include #include @@ -26,12 +26,10 @@ namespace AlibabaCloud { namespace Adb { namespace Model { -class ALIBABACLOUD_ADB_EXPORT ModifyDBClusterAccessWhiteListRequest : public RpcServiceRequest { +class ALIBABACLOUD_ADB_EXPORT ModifyClusterAccessWhiteListRequest : public RpcServiceRequest { public: - ModifyDBClusterAccessWhiteListRequest(); - ~ModifyDBClusterAccessWhiteListRequest(); - long getResourceOwnerId() const; - void setResourceOwnerId(long resourceOwnerId); + ModifyClusterAccessWhiteListRequest(); + ~ModifyClusterAccessWhiteListRequest(); std::string getSecurityIps() const; void setSecurityIps(const std::string &securityIps); std::string getDBClusterIPArrayAttribute() const; @@ -40,30 +38,20 @@ public: 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_ +#endif // !ALIBABACLOUD_ADB_MODEL_MODIFYCLUSTERACCESSWHITELISTREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/ModifyDBClusterAccessWhiteListResult.h b/adb/include/alibabacloud/adb/model/ModifyClusterAccessWhiteListResult.h similarity index 68% rename from adb/include/alibabacloud/adb/model/ModifyDBClusterAccessWhiteListResult.h rename to adb/include/alibabacloud/adb/model/ModifyClusterAccessWhiteListResult.h index 69a7ef0f0..6f5e9ceec 100644 --- a/adb/include/alibabacloud/adb/model/ModifyDBClusterAccessWhiteListResult.h +++ b/adb/include/alibabacloud/adb/model/ModifyClusterAccessWhiteListResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_ADB_MODEL_MODIFYDBCLUSTERACCESSWHITELISTRESULT_H_ -#define ALIBABACLOUD_ADB_MODEL_MODIFYDBCLUSTERACCESSWHITELISTRESULT_H_ +#ifndef ALIBABACLOUD_ADB_MODEL_MODIFYCLUSTERACCESSWHITELISTRESULT_H_ +#define ALIBABACLOUD_ADB_MODEL_MODIFYCLUSTERACCESSWHITELISTRESULT_H_ #include #include @@ -29,14 +29,14 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_ADB_EXPORT ModifyDBClusterAccessWhiteListResult : public ServiceResult + class ALIBABACLOUD_ADB_EXPORT ModifyClusterAccessWhiteListResult : public ServiceResult { public: - ModifyDBClusterAccessWhiteListResult(); - explicit ModifyDBClusterAccessWhiteListResult(const std::string &payload); - ~ModifyDBClusterAccessWhiteListResult(); + ModifyClusterAccessWhiteListResult(); + explicit ModifyClusterAccessWhiteListResult(const std::string &payload); + ~ModifyClusterAccessWhiteListResult(); int getTaskId()const; std::string getDBClusterId()const; @@ -50,4 +50,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_ADB_MODEL_MODIFYDBCLUSTERACCESSWHITELISTRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_ADB_MODEL_MODIFYCLUSTERACCESSWHITELISTRESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/ModifyClusterConnectionStringRequest.h b/adb/include/alibabacloud/adb/model/ModifyClusterConnectionStringRequest.h index 143bd9e43..d5030f0c5 100644 --- a/adb/include/alibabacloud/adb/model/ModifyClusterConnectionStringRequest.h +++ b/adb/include/alibabacloud/adb/model/ModifyClusterConnectionStringRequest.h @@ -30,33 +30,21 @@ class ALIBABACLOUD_ADB_EXPORT ModifyClusterConnectionStringRequest : public RpcS 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_; }; diff --git a/adb/include/alibabacloud/adb/model/ModifyDBClusterDescriptionRequest.h b/adb/include/alibabacloud/adb/model/ModifyDBClusterDescriptionRequest.h index 6b9c799df..b936d0fad 100644 --- a/adb/include/alibabacloud/adb/model/ModifyDBClusterDescriptionRequest.h +++ b/adb/include/alibabacloud/adb/model/ModifyDBClusterDescriptionRequest.h @@ -30,29 +30,17 @@ class ALIBABACLOUD_ADB_EXPORT ModifyDBClusterDescriptionRequest : public RpcServ 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); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); private: - long resourceOwnerId_; std::string dBClusterDescription_; - std::string accessKeyId_; - std::string resourceOwnerAccount_; std::string dBClusterId_; - std::string ownerAccount_; - long ownerId_; + std::string accessKeyId_; }; } // namespace Model } // namespace Adb diff --git a/adb/include/alibabacloud/adb/model/ModifyDBClusterMaintainTimeRequest.h b/adb/include/alibabacloud/adb/model/ModifyDBClusterMaintainTimeRequest.h index b37f566f0..3fce76699 100644 --- a/adb/include/alibabacloud/adb/model/ModifyDBClusterMaintainTimeRequest.h +++ b/adb/include/alibabacloud/adb/model/ModifyDBClusterMaintainTimeRequest.h @@ -30,29 +30,17 @@ class ALIBABACLOUD_ADB_EXPORT ModifyDBClusterMaintainTimeRequest : public RpcSer public: ModifyDBClusterMaintainTimeRequest(); ~ModifyDBClusterMaintainTimeRequest(); - long getResourceOwnerId() const; - void setResourceOwnerId(long resourceOwnerId); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); 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 dBClusterId_; std::string accessKeyId_; std::string maintainTime_; - std::string resourceOwnerAccount_; - std::string dBClusterId_; - std::string ownerAccount_; - long ownerId_; }; } // namespace Model } // namespace Adb diff --git a/adb/include/alibabacloud/adb/model/ModifyDBClusterRequest.h b/adb/include/alibabacloud/adb/model/ModifyDBClusterRequest.h index d5dc1f0b8..a5a5b6ec4 100644 --- a/adb/include/alibabacloud/adb/model/ModifyDBClusterRequest.h +++ b/adb/include/alibabacloud/adb/model/ModifyDBClusterRequest.h @@ -30,20 +30,10 @@ 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; @@ -52,37 +42,17 @@ public: 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 diff --git a/adb/include/alibabacloud/adb/model/ModifyDBClusterResourceGroupRequest.h b/adb/include/alibabacloud/adb/model/ModifyDBClusterResourceGroupRequest.h deleted file mode 100644 index 9f4a6bb7f..000000000 --- a/adb/include/alibabacloud/adb/model/ModifyDBClusterResourceGroupRequest.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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/ModifyDBClusterResourceGroupResult.h b/adb/include/alibabacloud/adb/model/ModifyDBClusterResourceGroupResult.h deleted file mode 100644 index be0aec984..000000000 --- a/adb/include/alibabacloud/adb/model/ModifyDBClusterResourceGroupResult.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ADB_MODEL_MODIFYDBCLUSTERRESOURCEGROUPRESULT_H_ -#define ALIBABACLOUD_ADB_MODEL_MODIFYDBCLUSTERRESOURCEGROUPRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Adb - { - namespace Model - { - class ALIBABACLOUD_ADB_EXPORT ModifyDBClusterResourceGroupResult : public ServiceResult - { - public: - - - ModifyDBClusterResourceGroupResult(); - explicit ModifyDBClusterResourceGroupResult(const std::string &payload); - ~ModifyDBClusterResourceGroupResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} -#endif // !ALIBABACLOUD_ADB_MODEL_MODIFYDBCLUSTERRESOURCEGROUPRESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/ModifyDBResourceGroupRequest.h b/adb/include/alibabacloud/adb/model/ModifyDBResourceGroupRequest.h index 430203e3a..8c4bee160 100644 --- a/adb/include/alibabacloud/adb/model/ModifyDBResourceGroupRequest.h +++ b/adb/include/alibabacloud/adb/model/ModifyDBResourceGroupRequest.h @@ -30,35 +30,26 @@ class ALIBABACLOUD_ADB_EXPORT ModifyDBResourceGroupRequest : public RpcServiceRe public: ModifyDBResourceGroupRequest(); ~ModifyDBResourceGroupRequest(); - long getResourceOwnerId() const; - void setResourceOwnerId(long resourceOwnerId); - int getNodeNum() const; - void setNodeNum(int nodeNum); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getMinComputeResource() const; + void setMinComputeResource(const std::string &minComputeResource); + std::string getGroupName() const; + void setGroupName(const std::string &groupName); 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); + std::string getMaxComputeResource() const; + void setMaxComputeResource(const std::string &maxComputeResource); private: - long resourceOwnerId_; - int nodeNum_; + std::string dBClusterId_; + std::string minComputeResource_; + std::string groupName_; std::string accessKeyId_; std::string groupType_; - std::string resourceOwnerAccount_; - std::string dBClusterId_; - std::string ownerAccount_; - long ownerId_; - std::string groupName_; + std::string maxComputeResource_; }; } // namespace Model } // namespace Adb diff --git a/adb/include/alibabacloud/adb/model/ModifyDBResourcePoolRequest.h b/adb/include/alibabacloud/adb/model/ModifyDBResourcePoolRequest.h deleted file mode 100644 index 0c23d33b5..000000000 --- a/adb/include/alibabacloud/adb/model/ModifyDBResourcePoolRequest.h +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 deleted file mode 100644 index f4accc17e..000000000 --- a/adb/include/alibabacloud/adb/model/ModifyElasticPlanRequest.h +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 deleted file mode 100644 index b3aa4a9b2..000000000 --- a/adb/include/alibabacloud/adb/model/ModifyLogBackupPolicyRequest.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 deleted file mode 100644 index b7c4c3486..000000000 --- a/adb/include/alibabacloud/adb/model/ModifyMaintenanceActionRequest.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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/PreloadSparkAppMetricsRequest.h b/adb/include/alibabacloud/adb/model/PreloadSparkAppMetricsRequest.h new file mode 100644 index 000000000..36249b3fc --- /dev/null +++ b/adb/include/alibabacloud/adb/model/PreloadSparkAppMetricsRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_PRELOADSPARKAPPMETRICSREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_PRELOADSPARKAPPMETRICSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT PreloadSparkAppMetricsRequest : public RpcServiceRequest { +public: + PreloadSparkAppMetricsRequest(); + ~PreloadSparkAppMetricsRequest(); + std::string getAppId() const; + void setAppId(const std::string &appId); + +private: + std::string appId_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_PRELOADSPARKAPPMETRICSREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/PreloadSparkAppMetricsResult.h b/adb/include/alibabacloud/adb/model/PreloadSparkAppMetricsResult.h new file mode 100644 index 000000000..0d205921d --- /dev/null +++ b/adb/include/alibabacloud/adb/model/PreloadSparkAppMetricsResult.h @@ -0,0 +1,64 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_PRELOADSPARKAPPMETRICSRESULT_H_ +#define ALIBABACLOUD_ADB_MODEL_PRELOADSPARKAPPMETRICSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Adb + { + namespace Model + { + class ALIBABACLOUD_ADB_EXPORT PreloadSparkAppMetricsResult : public ServiceResult + { + public: + struct Data + { + struct ScanMetrics + { + long totalReadFileSizeInByte; + long outputRowsCount; + }; + std::string attemptId; + bool finished; + std::string appId; + std::string eventLogPath; + ScanMetrics scanMetrics; + }; + + + PreloadSparkAppMetricsResult(); + explicit PreloadSparkAppMetricsResult(const std::string &payload); + ~PreloadSparkAppMetricsResult(); + Data getData()const; + + protected: + void parse(const std::string &payload); + private: + Data data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ADB_MODEL_PRELOADSPARKAPPMETRICSRESULT_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 cd6861624..fdffdb2e7 100644 --- a/adb/include/alibabacloud/adb/model/ReleaseClusterPublicConnectionRequest.h +++ b/adb/include/alibabacloud/adb/model/ReleaseClusterPublicConnectionRequest.h @@ -30,26 +30,14 @@ class ALIBABACLOUD_ADB_EXPORT ReleaseClusterPublicConnectionRequest : public Rpc 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); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); private: - long resourceOwnerId_; - std::string accessKeyId_; - std::string resourceOwnerAccount_; std::string dBClusterId_; - std::string ownerAccount_; - long ownerId_; + std::string accessKeyId_; }; } // namespace Model } // namespace Adb diff --git a/adb/include/alibabacloud/adb/model/ResetAccountPasswordRequest.h b/adb/include/alibabacloud/adb/model/ResetAccountPasswordRequest.h index 921b41b07..68e9c2836 100644 --- a/adb/include/alibabacloud/adb/model/ResetAccountPasswordRequest.h +++ b/adb/include/alibabacloud/adb/model/ResetAccountPasswordRequest.h @@ -30,35 +30,23 @@ class ALIBABACLOUD_ADB_EXPORT ResetAccountPasswordRequest : public RpcServiceReq 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 getAccountDescription() const; + void setAccountDescription(const std::string &accountDescription); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); std::string getAccountPassword() const; void setAccountPassword(const std::string &accountPassword); + std::string getAccountName() const; + void setAccountName(const std::string &accountName); 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 accountDescription_; + std::string accessKeyId_; std::string accountPassword_; + std::string accountName_; }; } // namespace Model } // namespace Adb diff --git a/adb/include/alibabacloud/adb/model/ResetAccountPasswordResult.h b/adb/include/alibabacloud/adb/model/ResetAccountPasswordResult.h index 28182059c..ef11767b9 100644 --- a/adb/include/alibabacloud/adb/model/ResetAccountPasswordResult.h +++ b/adb/include/alibabacloud/adb/model/ResetAccountPasswordResult.h @@ -37,14 +37,10 @@ namespace AlibabaCloud ResetAccountPasswordResult(); explicit ResetAccountPasswordResult(const std::string &payload); ~ResetAccountPasswordResult(); - int getTaskId()const; - std::string getDBClusterId()const; protected: void parse(const std::string &payload); private: - int taskId_; - std::string dBClusterId_; }; } diff --git a/adb/include/alibabacloud/adb/model/SetSparkAppLogRootPathRequest.h b/adb/include/alibabacloud/adb/model/SetSparkAppLogRootPathRequest.h new file mode 100644 index 000000000..41db26d98 --- /dev/null +++ b/adb/include/alibabacloud/adb/model/SetSparkAppLogRootPathRequest.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_SETSPARKAPPLOGROOTPATHREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_SETSPARKAPPLOGROOTPATHREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT SetSparkAppLogRootPathRequest : public RpcServiceRequest { +public: + SetSparkAppLogRootPathRequest(); + ~SetSparkAppLogRootPathRequest(); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + bool getUseDefaultOss() const; + void setUseDefaultOss(bool useDefaultOss); + std::string getOssLogPath() const; + void setOssLogPath(const std::string &ossLogPath); + +private: + std::string dBClusterId_; + bool useDefaultOss_; + std::string ossLogPath_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_SETSPARKAPPLOGROOTPATHREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/DescribeDBResourcePoolResult.h b/adb/include/alibabacloud/adb/model/SetSparkAppLogRootPathResult.h similarity index 59% rename from adb/include/alibabacloud/adb/model/DescribeDBResourcePoolResult.h rename to adb/include/alibabacloud/adb/model/SetSparkAppLogRootPathResult.h index f2377f649..06fa274ff 100644 --- a/adb/include/alibabacloud/adb/model/DescribeDBResourcePoolResult.h +++ b/adb/include/alibabacloud/adb/model/SetSparkAppLogRootPathResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBEDBRESOURCEPOOLRESULT_H_ -#define ALIBABACLOUD_ADB_MODEL_DESCRIBEDBRESOURCEPOOLRESULT_H_ +#ifndef ALIBABACLOUD_ADB_MODEL_SETSPARKAPPLOGROOTPATHRESULT_H_ +#define ALIBABACLOUD_ADB_MODEL_SETSPARKAPPLOGROOTPATHRESULT_H_ #include #include @@ -29,32 +29,31 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_ADB_EXPORT DescribeDBResourcePoolResult : public ServiceResult + class ALIBABACLOUD_ADB_EXPORT SetSparkAppLogRootPathResult : public ServiceResult { public: - struct PoolInfo + struct Data { - int nodeNum; - std::string poolName; - std::string createTime; - std::string updateTime; - std::string poolUsers; - std::string queryType; + std::string recordedLogPath; + std::string modifiedTimestamp; + std::string modifiedUid; + bool isLogPathExists; + std::string defaultLogPath; }; - DescribeDBResourcePoolResult(); - explicit DescribeDBResourcePoolResult(const std::string &payload); - ~DescribeDBResourcePoolResult(); - std::vector getPoolsInfo()const; + SetSparkAppLogRootPathResult(); + explicit SetSparkAppLogRootPathResult(const std::string &payload); + ~SetSparkAppLogRootPathResult(); + Data getData()const; protected: void parse(const std::string &payload); private: - std::vector poolsInfo_; + Data data_; }; } } } -#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEDBRESOURCEPOOLRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_ADB_MODEL_SETSPARKAPPLOGROOTPATHRESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/StartSparkSQLEngineRequest.h b/adb/include/alibabacloud/adb/model/StartSparkSQLEngineRequest.h new file mode 100644 index 000000000..b08adde37 --- /dev/null +++ b/adb/include/alibabacloud/adb/model/StartSparkSQLEngineRequest.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_STARTSPARKSQLENGINEREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_STARTSPARKSQLENGINEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT StartSparkSQLEngineRequest : public RpcServiceRequest { +public: + StartSparkSQLEngineRequest(); + ~StartSparkSQLEngineRequest(); + std::string getResourceGroupName() const; + void setResourceGroupName(const std::string &resourceGroupName); + long getSlotNum() const; + void setSlotNum(long slotNum); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + long getMinExecutor() const; + void setMinExecutor(long minExecutor); + std::string getJars() const; + void setJars(const std::string &jars); + long getMaxExecutor() const; + void setMaxExecutor(long maxExecutor); + std::string getConfig() const; + void setConfig(const std::string &config); + +private: + std::string resourceGroupName_; + long slotNum_; + std::string dBClusterId_; + long minExecutor_; + std::string jars_; + long maxExecutor_; + std::string config_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_STARTSPARKSQLENGINEREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/DescribeAllAccountsResult.h b/adb/include/alibabacloud/adb/model/StartSparkSQLEngineResult.h similarity index 65% rename from adb/include/alibabacloud/adb/model/DescribeAllAccountsResult.h rename to adb/include/alibabacloud/adb/model/StartSparkSQLEngineResult.h index 629784f93..ab59c7a97 100644 --- a/adb/include/alibabacloud/adb/model/DescribeAllAccountsResult.h +++ b/adb/include/alibabacloud/adb/model/StartSparkSQLEngineResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBEALLACCOUNTSRESULT_H_ -#define ALIBABACLOUD_ADB_MODEL_DESCRIBEALLACCOUNTSRESULT_H_ +#ifndef ALIBABACLOUD_ADB_MODEL_STARTSPARKSQLENGINERESULT_H_ +#define ALIBABACLOUD_ADB_MODEL_STARTSPARKSQLENGINERESULT_H_ #include #include @@ -29,27 +29,29 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_ADB_EXPORT DescribeAllAccountsResult : public ServiceResult + class ALIBABACLOUD_ADB_EXPORT StartSparkSQLEngineResult : public ServiceResult { public: - struct AccountInfo + struct Data { - std::string user; + std::string appId; + std::string state; + std::string appName; }; - DescribeAllAccountsResult(); - explicit DescribeAllAccountsResult(const std::string &payload); - ~DescribeAllAccountsResult(); - std::vector getAccountList()const; + StartSparkSQLEngineResult(); + explicit StartSparkSQLEngineResult(const std::string &payload); + ~StartSparkSQLEngineResult(); + Data getData()const; protected: void parse(const std::string &payload); private: - std::vector accountList_; + Data data_; }; } } } -#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEALLACCOUNTSRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_ADB_MODEL_STARTSPARKSQLENGINERESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/SubmitSparkAppRequest.h b/adb/include/alibabacloud/adb/model/SubmitSparkAppRequest.h new file mode 100644 index 000000000..e4c02a28a --- /dev/null +++ b/adb/include/alibabacloud/adb/model/SubmitSparkAppRequest.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_SUBMITSPARKAPPREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_SUBMITSPARKAPPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT SubmitSparkAppRequest : public RpcServiceRequest { +public: + SubmitSparkAppRequest(); + ~SubmitSparkAppRequest(); + std::string getResourceGroupName() const; + void setResourceGroupName(const std::string &resourceGroupName); + std::string getAgentVersion() const; + void setAgentVersion(const std::string &agentVersion); + std::string getData() const; + void setData(const std::string &data); + std::string getAppName() const; + void setAppName(const std::string &appName); + long getTemplateFileId() const; + void setTemplateFileId(long templateFileId); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getAppType() const; + void setAppType(const std::string &appType); + std::string getAgentSource() const; + void setAgentSource(const std::string &agentSource); + +private: + std::string resourceGroupName_; + std::string agentVersion_; + std::string data_; + std::string appName_; + long templateFileId_; + std::string dBClusterId_; + std::string appType_; + std::string agentSource_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_SUBMITSPARKAPPREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/UntagResourcesResult.h b/adb/include/alibabacloud/adb/model/SubmitSparkAppResult.h similarity index 64% rename from adb/include/alibabacloud/adb/model/UntagResourcesResult.h rename to adb/include/alibabacloud/adb/model/SubmitSparkAppResult.h index 4284e2afd..a9e01cfe7 100644 --- a/adb/include/alibabacloud/adb/model/UntagResourcesResult.h +++ b/adb/include/alibabacloud/adb/model/SubmitSparkAppResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_ADB_MODEL_UNTAGRESOURCESRESULT_H_ -#define ALIBABACLOUD_ADB_MODEL_UNTAGRESOURCESRESULT_H_ +#ifndef ALIBABACLOUD_ADB_MODEL_SUBMITSPARKAPPRESULT_H_ +#define ALIBABACLOUD_ADB_MODEL_SUBMITSPARKAPPRESULT_H_ #include #include @@ -29,21 +29,30 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_ADB_EXPORT UntagResourcesResult : public ServiceResult + class ALIBABACLOUD_ADB_EXPORT SubmitSparkAppResult : public ServiceResult { public: + struct Data + { + std::string appId; + std::string message; + std::string state; + std::string appName; + }; - UntagResourcesResult(); - explicit UntagResourcesResult(const std::string &payload); - ~UntagResourcesResult(); + SubmitSparkAppResult(); + explicit SubmitSparkAppResult(const std::string &payload); + ~SubmitSparkAppResult(); + Data getData()const; protected: void parse(const std::string &payload); private: + Data data_; }; } } } -#endif // !ALIBABACLOUD_ADB_MODEL_UNTAGRESOURCESRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_ADB_MODEL_SUBMITSPARKAPPRESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/SubmitSparkLogAnalyzeTaskRequest.h b/adb/include/alibabacloud/adb/model/SubmitSparkLogAnalyzeTaskRequest.h new file mode 100644 index 000000000..3e0aaa5f4 --- /dev/null +++ b/adb/include/alibabacloud/adb/model/SubmitSparkLogAnalyzeTaskRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_SUBMITSPARKLOGANALYZETASKREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_SUBMITSPARKLOGANALYZETASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT SubmitSparkLogAnalyzeTaskRequest : public RpcServiceRequest { +public: + SubmitSparkLogAnalyzeTaskRequest(); + ~SubmitSparkLogAnalyzeTaskRequest(); + std::string getAppId() const; + void setAppId(const std::string &appId); + +private: + std::string appId_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_SUBMITSPARKLOGANALYZETASKREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/DescribeAutoRenewAttributeResult.h b/adb/include/alibabacloud/adb/model/SubmitSparkLogAnalyzeTaskResult.h similarity index 52% rename from adb/include/alibabacloud/adb/model/DescribeAutoRenewAttributeResult.h rename to adb/include/alibabacloud/adb/model/SubmitSparkLogAnalyzeTaskResult.h index 6c445c994..2f566e1c2 100644 --- a/adb/include/alibabacloud/adb/model/DescribeAutoRenewAttributeResult.h +++ b/adb/include/alibabacloud/adb/model/SubmitSparkLogAnalyzeTaskResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBEAUTORENEWATTRIBUTERESULT_H_ -#define ALIBABACLOUD_ADB_MODEL_DESCRIBEAUTORENEWATTRIBUTERESULT_H_ +#ifndef ALIBABACLOUD_ADB_MODEL_SUBMITSPARKLOGANALYZETASKRESULT_H_ +#define ALIBABACLOUD_ADB_MODEL_SUBMITSPARKLOGANALYZETASKRESULT_H_ #include #include @@ -29,38 +29,42 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_ADB_EXPORT DescribeAutoRenewAttributeResult : public ServiceResult + class ALIBABACLOUD_ADB_EXPORT SubmitSparkLogAnalyzeTaskResult : public ServiceResult { public: - struct AutoRenewAttribute + struct Data { - bool autoRenewEnabled; + struct Result + { + std::string appErrorAdvice; + std::string appErrorLog; + std::string appErrorCode; + }; + long terminatedTimeInMillis; + long taskId; + std::string taskErrMsg; + long userId; + bool ruleMatched; + long submittedTimeInMillis; std::string dBClusterId; - std::string renewalStatus; - int duration; - std::string regionId; - std::string periodUnit; + std::string taskState; + long startedTimeInMillis; + Result result; }; - DescribeAutoRenewAttributeResult(); - explicit DescribeAutoRenewAttributeResult(const std::string &payload); - ~DescribeAutoRenewAttributeResult(); - int getTotalRecordCount()const; - int getPageRecordCount()const; - int getPageNumber()const; - std::vector getItems()const; + SubmitSparkLogAnalyzeTaskResult(); + explicit SubmitSparkLogAnalyzeTaskResult(const std::string &payload); + ~SubmitSparkLogAnalyzeTaskResult(); + Data getData()const; protected: void parse(const std::string &payload); private: - int totalRecordCount_; - int pageRecordCount_; - int pageNumber_; - std::vector items_; + Data data_; }; } } } -#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEAUTORENEWATTRIBUTERESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_ADB_MODEL_SUBMITSPARKLOGANALYZETASKRESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/TagResourcesRequest.h b/adb/include/alibabacloud/adb/model/TagResourcesRequest.h deleted file mode 100644 index 447b579eb..000000000 --- a/adb/include/alibabacloud/adb/model/TagResourcesRequest.h +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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/UnbindAccountRequest.h b/adb/include/alibabacloud/adb/model/UnbindAccountRequest.h new file mode 100644 index 000000000..b57495357 --- /dev/null +++ b/adb/include/alibabacloud/adb/model/UnbindAccountRequest.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_UNBINDACCOUNTREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_UNBINDACCOUNTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT UnbindAccountRequest : public RpcServiceRequest { +public: + UnbindAccountRequest(); + ~UnbindAccountRequest(); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getAccountName() const; + void setAccountName(const std::string &accountName); + +private: + std::string dBClusterId_; + std::string accessKeyId_; + std::string accountName_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_UNBINDACCOUNTREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/TagResourcesResult.h b/adb/include/alibabacloud/adb/model/UnbindAccountResult.h similarity index 72% rename from adb/include/alibabacloud/adb/model/TagResourcesResult.h rename to adb/include/alibabacloud/adb/model/UnbindAccountResult.h index 81f90dcb3..dabb5bc8c 100644 --- a/adb/include/alibabacloud/adb/model/TagResourcesResult.h +++ b/adb/include/alibabacloud/adb/model/UnbindAccountResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_ADB_MODEL_TAGRESOURCESRESULT_H_ -#define ALIBABACLOUD_ADB_MODEL_TAGRESOURCESRESULT_H_ +#ifndef ALIBABACLOUD_ADB_MODEL_UNBINDACCOUNTRESULT_H_ +#define ALIBABACLOUD_ADB_MODEL_UNBINDACCOUNTRESULT_H_ #include #include @@ -29,14 +29,14 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_ADB_EXPORT TagResourcesResult : public ServiceResult + class ALIBABACLOUD_ADB_EXPORT UnbindAccountResult : public ServiceResult { public: - TagResourcesResult(); - explicit TagResourcesResult(const std::string &payload); - ~TagResourcesResult(); + UnbindAccountResult(); + explicit UnbindAccountResult(const std::string &payload); + ~UnbindAccountResult(); protected: void parse(const std::string &payload); @@ -46,4 +46,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_ADB_MODEL_TAGRESOURCESRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_ADB_MODEL_UNBINDACCOUNTRESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/UnbindDBResourceGroupWithUserRequest.h b/adb/include/alibabacloud/adb/model/UnbindDBResourceGroupWithUserRequest.h deleted file mode 100644 index 0f64297ec..000000000 --- a/adb/include/alibabacloud/adb/model/UnbindDBResourceGroupWithUserRequest.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 deleted file mode 100644 index bdfa029f3..000000000 --- a/adb/include/alibabacloud/adb/model/UnbindDBResourceGroupWithUserResult.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 deleted file mode 100644 index 802354ea2..000000000 --- a/adb/include/alibabacloud/adb/model/UnbindDBResourcePoolWithUserRequest.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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/UnbindDBResourcePoolWithUserResult.h b/adb/include/alibabacloud/adb/model/UnbindDBResourcePoolWithUserResult.h deleted file mode 100644 index f2f7fd1f6..000000000 --- a/adb/include/alibabacloud/adb/model/UnbindDBResourcePoolWithUserResult.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ADB_MODEL_UNBINDDBRESOURCEPOOLWITHUSERRESULT_H_ -#define ALIBABACLOUD_ADB_MODEL_UNBINDDBRESOURCEPOOLWITHUSERRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Adb - { - namespace Model - { - class ALIBABACLOUD_ADB_EXPORT UnbindDBResourcePoolWithUserResult : public ServiceResult - { - public: - - - UnbindDBResourcePoolWithUserResult(); - explicit UnbindDBResourcePoolWithUserResult(const std::string &payload); - ~UnbindDBResourcePoolWithUserResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} -#endif // !ALIBABACLOUD_ADB_MODEL_UNBINDDBRESOURCEPOOLWITHUSERRESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/UntagResourcesRequest.h b/adb/include/alibabacloud/adb/model/UntagResourcesRequest.h deleted file mode 100644 index 5dbd7158e..000000000 --- a/adb/include/alibabacloud/adb/model/UntagResourcesRequest.h +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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/include/alibabacloud/adb/model/UpdateSparkTemplateFileRequest.h b/adb/include/alibabacloud/adb/model/UpdateSparkTemplateFileRequest.h new file mode 100644 index 000000000..a0a0ee600 --- /dev/null +++ b/adb/include/alibabacloud/adb/model/UpdateSparkTemplateFileRequest.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_UPDATESPARKTEMPLATEFILEREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_UPDATESPARKTEMPLATEFILEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Adb { +namespace Model { +class ALIBABACLOUD_ADB_EXPORT UpdateSparkTemplateFileRequest : public RpcServiceRequest { +public: + UpdateSparkTemplateFileRequest(); + ~UpdateSparkTemplateFileRequest(); + std::string getResourceGroupName() const; + void setResourceGroupName(const std::string &resourceGroupName); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getContent() const; + void setContent(const std::string &content); + long getId() const; + void setId(long id); + +private: + std::string resourceGroupName_; + std::string dBClusterId_; + std::string content_; + long id_; +}; +} // namespace Model +} // namespace Adb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ADB_MODEL_UPDATESPARKTEMPLATEFILEREQUEST_H_ diff --git a/adb/include/alibabacloud/adb/model/ModifyMaintenanceActionResult.h b/adb/include/alibabacloud/adb/model/UpdateSparkTemplateFileResult.h similarity index 66% rename from adb/include/alibabacloud/adb/model/ModifyMaintenanceActionResult.h rename to adb/include/alibabacloud/adb/model/UpdateSparkTemplateFileResult.h index dc53c35ef..7f4acda6a 100644 --- a/adb/include/alibabacloud/adb/model/ModifyMaintenanceActionResult.h +++ b/adb/include/alibabacloud/adb/model/UpdateSparkTemplateFileResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_ADB_MODEL_MODIFYMAINTENANCEACTIONRESULT_H_ -#define ALIBABACLOUD_ADB_MODEL_MODIFYMAINTENANCEACTIONRESULT_H_ +#ifndef ALIBABACLOUD_ADB_MODEL_UPDATESPARKTEMPLATEFILERESULT_H_ +#define ALIBABACLOUD_ADB_MODEL_UPDATESPARKTEMPLATEFILERESULT_H_ #include #include @@ -29,23 +29,27 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_ADB_EXPORT ModifyMaintenanceActionResult : public ServiceResult + class ALIBABACLOUD_ADB_EXPORT UpdateSparkTemplateFileResult : public ServiceResult { public: + struct Data + { + bool succeeded; + }; - ModifyMaintenanceActionResult(); - explicit ModifyMaintenanceActionResult(const std::string &payload); - ~ModifyMaintenanceActionResult(); - std::string getIds()const; + UpdateSparkTemplateFileResult(); + explicit UpdateSparkTemplateFileResult(const std::string &payload); + ~UpdateSparkTemplateFileResult(); + Data getData()const; protected: void parse(const std::string &payload); private: - std::string ids_; + Data data_; }; } } } -#endif // !ALIBABACLOUD_ADB_MODEL_MODIFYMAINTENANCEACTIONRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_ADB_MODEL_UPDATESPARKTEMPLATEFILERESULT_H_ \ No newline at end of file diff --git a/adb/src/AdbClient.cc b/adb/src/AdbClient.cc index 193e97c7d..39b6262ac 100644 --- a/adb/src/AdbClient.cc +++ b/adb/src/AdbClient.cc @@ -87,72 +87,72 @@ AdbClient::AllocateClusterPublicConnectionOutcomeCallable AdbClient::allocateClu return task->get_future(); } -AdbClient::BindDBResourceGroupWithUserOutcome AdbClient::bindDBResourceGroupWithUser(const BindDBResourceGroupWithUserRequest &request) const +AdbClient::BindAccountOutcome AdbClient::bindAccount(const BindAccountRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return BindDBResourceGroupWithUserOutcome(endpointOutcome.error()); + return BindAccountOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return BindDBResourceGroupWithUserOutcome(BindDBResourceGroupWithUserResult(outcome.result())); + return BindAccountOutcome(BindAccountResult(outcome.result())); else - return BindDBResourceGroupWithUserOutcome(outcome.error()); + return BindAccountOutcome(outcome.error()); } -void AdbClient::bindDBResourceGroupWithUserAsync(const BindDBResourceGroupWithUserRequest& request, const BindDBResourceGroupWithUserAsyncHandler& handler, const std::shared_ptr& context) const +void AdbClient::bindAccountAsync(const BindAccountRequest& request, const BindAccountAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, bindDBResourceGroupWithUser(request), context); + handler(this, request, bindAccount(request), context); }; asyncExecute(new Runnable(fn)); } -AdbClient::BindDBResourceGroupWithUserOutcomeCallable AdbClient::bindDBResourceGroupWithUserCallable(const BindDBResourceGroupWithUserRequest &request) const +AdbClient::BindAccountOutcomeCallable AdbClient::bindAccountCallable(const BindAccountRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->bindDBResourceGroupWithUser(request); + return this->bindAccount(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -AdbClient::BindDBResourcePoolWithUserOutcome AdbClient::bindDBResourcePoolWithUser(const BindDBResourcePoolWithUserRequest &request) const +AdbClient::CheckBindRamUserOutcome AdbClient::checkBindRamUser(const CheckBindRamUserRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return BindDBResourcePoolWithUserOutcome(endpointOutcome.error()); + return CheckBindRamUserOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return BindDBResourcePoolWithUserOutcome(BindDBResourcePoolWithUserResult(outcome.result())); + return CheckBindRamUserOutcome(CheckBindRamUserResult(outcome.result())); else - return BindDBResourcePoolWithUserOutcome(outcome.error()); + return CheckBindRamUserOutcome(outcome.error()); } -void AdbClient::bindDBResourcePoolWithUserAsync(const BindDBResourcePoolWithUserRequest& request, const BindDBResourcePoolWithUserAsyncHandler& handler, const std::shared_ptr& context) const +void AdbClient::checkBindRamUserAsync(const CheckBindRamUserRequest& request, const CheckBindRamUserAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, bindDBResourcePoolWithUser(request), context); + handler(this, request, checkBindRamUser(request), context); }; asyncExecute(new Runnable(fn)); } -AdbClient::BindDBResourcePoolWithUserOutcomeCallable AdbClient::bindDBResourcePoolWithUserCallable(const BindDBResourcePoolWithUserRequest &request) const +AdbClient::CheckBindRamUserOutcomeCallable AdbClient::checkBindRamUserCallable(const CheckBindRamUserRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->bindDBResourcePoolWithUser(request); + return this->checkBindRamUser(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -267,72 +267,72 @@ AdbClient::CreateDBResourceGroupOutcomeCallable AdbClient::createDBResourceGroup return task->get_future(); } -AdbClient::CreateDBResourcePoolOutcome AdbClient::createDBResourcePool(const CreateDBResourcePoolRequest &request) const +AdbClient::CreateOssSubDirectoryOutcome AdbClient::createOssSubDirectory(const CreateOssSubDirectoryRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return CreateDBResourcePoolOutcome(endpointOutcome.error()); + return CreateOssSubDirectoryOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return CreateDBResourcePoolOutcome(CreateDBResourcePoolResult(outcome.result())); + return CreateOssSubDirectoryOutcome(CreateOssSubDirectoryResult(outcome.result())); else - return CreateDBResourcePoolOutcome(outcome.error()); + return CreateOssSubDirectoryOutcome(outcome.error()); } -void AdbClient::createDBResourcePoolAsync(const CreateDBResourcePoolRequest& request, const CreateDBResourcePoolAsyncHandler& handler, const std::shared_ptr& context) const +void AdbClient::createOssSubDirectoryAsync(const CreateOssSubDirectoryRequest& request, const CreateOssSubDirectoryAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, createDBResourcePool(request), context); + handler(this, request, createOssSubDirectory(request), context); }; asyncExecute(new Runnable(fn)); } -AdbClient::CreateDBResourcePoolOutcomeCallable AdbClient::createDBResourcePoolCallable(const CreateDBResourcePoolRequest &request) const +AdbClient::CreateOssSubDirectoryOutcomeCallable AdbClient::createOssSubDirectoryCallable(const CreateOssSubDirectoryRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->createDBResourcePool(request); + return this->createOssSubDirectory(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -AdbClient::CreateElasticPlanOutcome AdbClient::createElasticPlan(const CreateElasticPlanRequest &request) const +AdbClient::CreateSparkTemplateOutcome AdbClient::createSparkTemplate(const CreateSparkTemplateRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return CreateElasticPlanOutcome(endpointOutcome.error()); + return CreateSparkTemplateOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return CreateElasticPlanOutcome(CreateElasticPlanResult(outcome.result())); + return CreateSparkTemplateOutcome(CreateSparkTemplateResult(outcome.result())); else - return CreateElasticPlanOutcome(outcome.error()); + return CreateSparkTemplateOutcome(outcome.error()); } -void AdbClient::createElasticPlanAsync(const CreateElasticPlanRequest& request, const CreateElasticPlanAsyncHandler& handler, const std::shared_ptr& context) const +void AdbClient::createSparkTemplateAsync(const CreateSparkTemplateRequest& request, const CreateSparkTemplateAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, createElasticPlan(request), context); + handler(this, request, createSparkTemplate(request), context); }; asyncExecute(new Runnable(fn)); } -AdbClient::CreateElasticPlanOutcomeCallable AdbClient::createElasticPlanCallable(const CreateElasticPlanRequest &request) const +AdbClient::CreateSparkTemplateOutcomeCallable AdbClient::createSparkTemplateCallable(const CreateSparkTemplateRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->createElasticPlan(request); + return this->createSparkTemplate(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -447,72 +447,108 @@ AdbClient::DeleteDBResourceGroupOutcomeCallable AdbClient::deleteDBResourceGroup return task->get_future(); } -AdbClient::DeleteDBResourcePoolOutcome AdbClient::deleteDBResourcePool(const DeleteDBResourcePoolRequest &request) const +AdbClient::DeleteProcessInstanceOutcome AdbClient::deleteProcessInstance(const DeleteProcessInstanceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DeleteDBResourcePoolOutcome(endpointOutcome.error()); + return DeleteProcessInstanceOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DeleteDBResourcePoolOutcome(DeleteDBResourcePoolResult(outcome.result())); + return DeleteProcessInstanceOutcome(DeleteProcessInstanceResult(outcome.result())); else - return DeleteDBResourcePoolOutcome(outcome.error()); + return DeleteProcessInstanceOutcome(outcome.error()); } -void AdbClient::deleteDBResourcePoolAsync(const DeleteDBResourcePoolRequest& request, const DeleteDBResourcePoolAsyncHandler& handler, const std::shared_ptr& context) const +void AdbClient::deleteProcessInstanceAsync(const DeleteProcessInstanceRequest& request, const DeleteProcessInstanceAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, deleteDBResourcePool(request), context); + handler(this, request, deleteProcessInstance(request), context); }; asyncExecute(new Runnable(fn)); } -AdbClient::DeleteDBResourcePoolOutcomeCallable AdbClient::deleteDBResourcePoolCallable(const DeleteDBResourcePoolRequest &request) const +AdbClient::DeleteProcessInstanceOutcomeCallable AdbClient::deleteProcessInstanceCallable(const DeleteProcessInstanceRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->deleteDBResourcePool(request); + return this->deleteProcessInstance(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -AdbClient::DeleteElasticPlanOutcome AdbClient::deleteElasticPlan(const DeleteElasticPlanRequest &request) const +AdbClient::DeleteSparkTemplateOutcome AdbClient::deleteSparkTemplate(const DeleteSparkTemplateRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DeleteElasticPlanOutcome(endpointOutcome.error()); + return DeleteSparkTemplateOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DeleteElasticPlanOutcome(DeleteElasticPlanResult(outcome.result())); + return DeleteSparkTemplateOutcome(DeleteSparkTemplateResult(outcome.result())); else - return DeleteElasticPlanOutcome(outcome.error()); + return DeleteSparkTemplateOutcome(outcome.error()); } -void AdbClient::deleteElasticPlanAsync(const DeleteElasticPlanRequest& request, const DeleteElasticPlanAsyncHandler& handler, const std::shared_ptr& context) const +void AdbClient::deleteSparkTemplateAsync(const DeleteSparkTemplateRequest& request, const DeleteSparkTemplateAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, deleteElasticPlan(request), context); + handler(this, request, deleteSparkTemplate(request), context); }; asyncExecute(new Runnable(fn)); } -AdbClient::DeleteElasticPlanOutcomeCallable AdbClient::deleteElasticPlanCallable(const DeleteElasticPlanRequest &request) const +AdbClient::DeleteSparkTemplateOutcomeCallable AdbClient::deleteSparkTemplateCallable(const DeleteSparkTemplateRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->deleteElasticPlan(request); + return this->deleteSparkTemplate(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AdbClient::DeleteSparkTemplateFileOutcome AdbClient::deleteSparkTemplateFile(const DeleteSparkTemplateFileRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteSparkTemplateFileOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteSparkTemplateFileOutcome(DeleteSparkTemplateFileResult(outcome.result())); + else + return DeleteSparkTemplateFileOutcome(outcome.error()); +} + +void AdbClient::deleteSparkTemplateFileAsync(const DeleteSparkTemplateFileRequest& request, const DeleteSparkTemplateFileAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteSparkTemplateFile(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AdbClient::DeleteSparkTemplateFileOutcomeCallable AdbClient::deleteSparkTemplateFileCallable(const DeleteSparkTemplateFileRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteSparkTemplateFile(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -555,72 +591,180 @@ AdbClient::DescribeAccountsOutcomeCallable AdbClient::describeAccountsCallable(c return task->get_future(); } -AdbClient::DescribeAllAccountsOutcome AdbClient::describeAllAccounts(const DescribeAllAccountsRequest &request) const +AdbClient::DescribeAdbMySqlColumnsOutcome AdbClient::describeAdbMySqlColumns(const DescribeAdbMySqlColumnsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribeAllAccountsOutcome(endpointOutcome.error()); + return DescribeAdbMySqlColumnsOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribeAllAccountsOutcome(DescribeAllAccountsResult(outcome.result())); + return DescribeAdbMySqlColumnsOutcome(DescribeAdbMySqlColumnsResult(outcome.result())); else - return DescribeAllAccountsOutcome(outcome.error()); + return DescribeAdbMySqlColumnsOutcome(outcome.error()); } -void AdbClient::describeAllAccountsAsync(const DescribeAllAccountsRequest& request, const DescribeAllAccountsAsyncHandler& handler, const std::shared_ptr& context) const +void AdbClient::describeAdbMySqlColumnsAsync(const DescribeAdbMySqlColumnsRequest& request, const DescribeAdbMySqlColumnsAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describeAllAccounts(request), context); + handler(this, request, describeAdbMySqlColumns(request), context); }; asyncExecute(new Runnable(fn)); } -AdbClient::DescribeAllAccountsOutcomeCallable AdbClient::describeAllAccountsCallable(const DescribeAllAccountsRequest &request) const +AdbClient::DescribeAdbMySqlColumnsOutcomeCallable AdbClient::describeAdbMySqlColumnsCallable(const DescribeAdbMySqlColumnsRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->describeAllAccounts(request); + return this->describeAdbMySqlColumns(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -AdbClient::DescribeAllDataSourceOutcome AdbClient::describeAllDataSource(const DescribeAllDataSourceRequest &request) const +AdbClient::DescribeAdbMySqlSchemasOutcome AdbClient::describeAdbMySqlSchemas(const DescribeAdbMySqlSchemasRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribeAllDataSourceOutcome(endpointOutcome.error()); + return DescribeAdbMySqlSchemasOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribeAllDataSourceOutcome(DescribeAllDataSourceResult(outcome.result())); + return DescribeAdbMySqlSchemasOutcome(DescribeAdbMySqlSchemasResult(outcome.result())); else - return DescribeAllDataSourceOutcome(outcome.error()); + return DescribeAdbMySqlSchemasOutcome(outcome.error()); } -void AdbClient::describeAllDataSourceAsync(const DescribeAllDataSourceRequest& request, const DescribeAllDataSourceAsyncHandler& handler, const std::shared_ptr& context) const +void AdbClient::describeAdbMySqlSchemasAsync(const DescribeAdbMySqlSchemasRequest& request, const DescribeAdbMySqlSchemasAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describeAllDataSource(request), context); + handler(this, request, describeAdbMySqlSchemas(request), context); }; asyncExecute(new Runnable(fn)); } -AdbClient::DescribeAllDataSourceOutcomeCallable AdbClient::describeAllDataSourceCallable(const DescribeAllDataSourceRequest &request) const +AdbClient::DescribeAdbMySqlSchemasOutcomeCallable AdbClient::describeAdbMySqlSchemasCallable(const DescribeAdbMySqlSchemasRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->describeAllDataSource(request); + return this->describeAdbMySqlSchemas(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AdbClient::DescribeAdbMySqlTablesOutcome AdbClient::describeAdbMySqlTables(const DescribeAdbMySqlTablesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAdbMySqlTablesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAdbMySqlTablesOutcome(DescribeAdbMySqlTablesResult(outcome.result())); + else + return DescribeAdbMySqlTablesOutcome(outcome.error()); +} + +void AdbClient::describeAdbMySqlTablesAsync(const DescribeAdbMySqlTablesRequest& request, const DescribeAdbMySqlTablesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAdbMySqlTables(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AdbClient::DescribeAdbMySqlTablesOutcomeCallable AdbClient::describeAdbMySqlTablesCallable(const DescribeAdbMySqlTablesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAdbMySqlTables(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AdbClient::DescribeApsActionLogsOutcome AdbClient::describeApsActionLogs(const DescribeApsActionLogsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeApsActionLogsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeApsActionLogsOutcome(DescribeApsActionLogsResult(outcome.result())); + else + return DescribeApsActionLogsOutcome(outcome.error()); +} + +void AdbClient::describeApsActionLogsAsync(const DescribeApsActionLogsRequest& request, const DescribeApsActionLogsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeApsActionLogs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AdbClient::DescribeApsActionLogsOutcomeCallable AdbClient::describeApsActionLogsCallable(const DescribeApsActionLogsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeApsActionLogs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AdbClient::DescribeApsResourceGroupsOutcome AdbClient::describeApsResourceGroups(const DescribeApsResourceGroupsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeApsResourceGroupsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeApsResourceGroupsOutcome(DescribeApsResourceGroupsResult(outcome.result())); + else + return DescribeApsResourceGroupsOutcome(outcome.error()); +} + +void AdbClient::describeApsResourceGroupsAsync(const DescribeApsResourceGroupsRequest& request, const DescribeApsResourceGroupsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeApsResourceGroups(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AdbClient::DescribeApsResourceGroupsOutcomeCallable AdbClient::describeApsResourceGroupsCallable(const DescribeApsResourceGroupsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeApsResourceGroups(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -699,78 +843,6 @@ AdbClient::DescribeAuditLogRecordsOutcomeCallable AdbClient::describeAuditLogRec return task->get_future(); } -AdbClient::DescribeAutoRenewAttributeOutcome AdbClient::describeAutoRenewAttribute(const DescribeAutoRenewAttributeRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeAutoRenewAttributeOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeAutoRenewAttributeOutcome(DescribeAutoRenewAttributeResult(outcome.result())); - else - return DescribeAutoRenewAttributeOutcome(outcome.error()); -} - -void AdbClient::describeAutoRenewAttributeAsync(const DescribeAutoRenewAttributeRequest& request, const DescribeAutoRenewAttributeAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeAutoRenewAttribute(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -AdbClient::DescribeAutoRenewAttributeOutcomeCallable AdbClient::describeAutoRenewAttributeCallable(const DescribeAutoRenewAttributeRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeAutoRenewAttribute(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -AdbClient::DescribeAvailableResourceOutcome AdbClient::describeAvailableResource(const DescribeAvailableResourceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeAvailableResourceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeAvailableResourceOutcome(DescribeAvailableResourceResult(outcome.result())); - else - return DescribeAvailableResourceOutcome(outcome.error()); -} - -void AdbClient::describeAvailableResourceAsync(const DescribeAvailableResourceRequest& request, const DescribeAvailableResourceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeAvailableResource(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -AdbClient::DescribeAvailableResourceOutcomeCallable AdbClient::describeAvailableResourceCallable(const DescribeAvailableResourceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeAvailableResource(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - AdbClient::DescribeBackupPolicyOutcome AdbClient::describeBackupPolicy(const DescribeBackupPolicyRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -843,108 +915,72 @@ AdbClient::DescribeBackupsOutcomeCallable AdbClient::describeBackupsCallable(con return task->get_future(); } -AdbClient::DescribeColumnsOutcome AdbClient::describeColumns(const DescribeColumnsRequest &request) const +AdbClient::DescribeClusterAccessWhiteListOutcome AdbClient::describeClusterAccessWhiteList(const DescribeClusterAccessWhiteListRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribeColumnsOutcome(endpointOutcome.error()); + return DescribeClusterAccessWhiteListOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribeColumnsOutcome(DescribeColumnsResult(outcome.result())); + return DescribeClusterAccessWhiteListOutcome(DescribeClusterAccessWhiteListResult(outcome.result())); else - return DescribeColumnsOutcome(outcome.error()); + return DescribeClusterAccessWhiteListOutcome(outcome.error()); } -void AdbClient::describeColumnsAsync(const DescribeColumnsRequest& request, const DescribeColumnsAsyncHandler& handler, const std::shared_ptr& context) const +void AdbClient::describeClusterAccessWhiteListAsync(const DescribeClusterAccessWhiteListRequest& request, const DescribeClusterAccessWhiteListAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describeColumns(request), context); + handler(this, request, describeClusterAccessWhiteList(request), context); }; asyncExecute(new Runnable(fn)); } -AdbClient::DescribeColumnsOutcomeCallable AdbClient::describeColumnsCallable(const DescribeColumnsRequest &request) const +AdbClient::DescribeClusterAccessWhiteListOutcomeCallable AdbClient::describeClusterAccessWhiteListCallable(const DescribeClusterAccessWhiteListRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->describeColumns(request); + return this->describeClusterAccessWhiteList(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -AdbClient::DescribeConnectionCountRecordsOutcome AdbClient::describeConnectionCountRecords(const DescribeConnectionCountRecordsRequest &request) const +AdbClient::DescribeClusterNetInfoOutcome AdbClient::describeClusterNetInfo(const DescribeClusterNetInfoRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribeConnectionCountRecordsOutcome(endpointOutcome.error()); + return DescribeClusterNetInfoOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribeConnectionCountRecordsOutcome(DescribeConnectionCountRecordsResult(outcome.result())); + return DescribeClusterNetInfoOutcome(DescribeClusterNetInfoResult(outcome.result())); else - return DescribeConnectionCountRecordsOutcome(outcome.error()); + return DescribeClusterNetInfoOutcome(outcome.error()); } -void AdbClient::describeConnectionCountRecordsAsync(const DescribeConnectionCountRecordsRequest& request, const DescribeConnectionCountRecordsAsyncHandler& handler, const std::shared_ptr& context) const +void AdbClient::describeClusterNetInfoAsync(const DescribeClusterNetInfoRequest& request, const DescribeClusterNetInfoAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describeConnectionCountRecords(request), context); + handler(this, request, describeClusterNetInfo(request), context); }; asyncExecute(new Runnable(fn)); } -AdbClient::DescribeConnectionCountRecordsOutcomeCallable AdbClient::describeConnectionCountRecordsCallable(const DescribeConnectionCountRecordsRequest &request) const +AdbClient::DescribeClusterNetInfoOutcomeCallable AdbClient::describeClusterNetInfoCallable(const DescribeClusterNetInfoRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->describeConnectionCountRecords(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -AdbClient::DescribeDBClusterAccessWhiteListOutcome AdbClient::describeDBClusterAccessWhiteList(const DescribeDBClusterAccessWhiteListRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeDBClusterAccessWhiteListOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeDBClusterAccessWhiteListOutcome(DescribeDBClusterAccessWhiteListResult(outcome.result())); - else - return DescribeDBClusterAccessWhiteListOutcome(outcome.error()); -} - -void AdbClient::describeDBClusterAccessWhiteListAsync(const DescribeDBClusterAccessWhiteListRequest& request, const DescribeDBClusterAccessWhiteListAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeDBClusterAccessWhiteList(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -AdbClient::DescribeDBClusterAccessWhiteListOutcomeCallable AdbClient::describeDBClusterAccessWhiteListCallable(const DescribeDBClusterAccessWhiteListRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeDBClusterAccessWhiteList(request); + return this->describeClusterNetInfo(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -1023,72 +1059,36 @@ AdbClient::DescribeDBClusterForecastOutcomeCallable AdbClient::describeDBCluster return task->get_future(); } -AdbClient::DescribeDBClusterHealthReportOutcome AdbClient::describeDBClusterHealthReport(const DescribeDBClusterHealthReportRequest &request) const +AdbClient::DescribeDBClusterHealthStatusOutcome AdbClient::describeDBClusterHealthStatus(const DescribeDBClusterHealthStatusRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribeDBClusterHealthReportOutcome(endpointOutcome.error()); + return DescribeDBClusterHealthStatusOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribeDBClusterHealthReportOutcome(DescribeDBClusterHealthReportResult(outcome.result())); + return DescribeDBClusterHealthStatusOutcome(DescribeDBClusterHealthStatusResult(outcome.result())); else - return DescribeDBClusterHealthReportOutcome(outcome.error()); + return DescribeDBClusterHealthStatusOutcome(outcome.error()); } -void AdbClient::describeDBClusterHealthReportAsync(const DescribeDBClusterHealthReportRequest& request, const DescribeDBClusterHealthReportAsyncHandler& handler, const std::shared_ptr& context) const +void AdbClient::describeDBClusterHealthStatusAsync(const DescribeDBClusterHealthStatusRequest& request, const DescribeDBClusterHealthStatusAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describeDBClusterHealthReport(request), context); + handler(this, request, describeDBClusterHealthStatus(request), context); }; asyncExecute(new Runnable(fn)); } -AdbClient::DescribeDBClusterHealthReportOutcomeCallable AdbClient::describeDBClusterHealthReportCallable(const DescribeDBClusterHealthReportRequest &request) const +AdbClient::DescribeDBClusterHealthStatusOutcomeCallable AdbClient::describeDBClusterHealthStatusCallable(const DescribeDBClusterHealthStatusRequest &request) const { - auto task = std::make_shared>( + 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(); - if (!endpointOutcome.isSuccess()) - return DescribeDBClusterNetInfoOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeDBClusterNetInfoOutcome(DescribeDBClusterNetInfoResult(outcome.result())); - else - return DescribeDBClusterNetInfoOutcome(outcome.error()); -} - -void AdbClient::describeDBClusterNetInfoAsync(const DescribeDBClusterNetInfoRequest& request, const DescribeDBClusterNetInfoAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeDBClusterNetInfo(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -AdbClient::DescribeDBClusterNetInfoOutcomeCallable AdbClient::describeDBClusterNetInfoCallable(const DescribeDBClusterNetInfoRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeDBClusterNetInfo(request); + return this->describeDBClusterHealthStatus(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -1131,42 +1131,6 @@ AdbClient::DescribeDBClusterPerformanceOutcomeCallable AdbClient::describeDBClus return task->get_future(); } -AdbClient::DescribeDBClusterResourcePoolPerformanceOutcome AdbClient::describeDBClusterResourcePoolPerformance(const DescribeDBClusterResourcePoolPerformanceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeDBClusterResourcePoolPerformanceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeDBClusterResourcePoolPerformanceOutcome(DescribeDBClusterResourcePoolPerformanceResult(outcome.result())); - else - return DescribeDBClusterResourcePoolPerformanceOutcome(outcome.error()); -} - -void AdbClient::describeDBClusterResourcePoolPerformanceAsync(const DescribeDBClusterResourcePoolPerformanceRequest& request, const DescribeDBClusterResourcePoolPerformanceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeDBClusterResourcePoolPerformance(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -AdbClient::DescribeDBClusterResourcePoolPerformanceOutcomeCallable AdbClient::describeDBClusterResourcePoolPerformanceCallable(const DescribeDBClusterResourcePoolPerformanceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeDBClusterResourcePoolPerformance(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - AdbClient::DescribeDBClustersOutcome AdbClient::describeDBClusters(const DescribeDBClustersRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1239,42 +1203,6 @@ AdbClient::DescribeDBResourceGroupOutcomeCallable AdbClient::describeDBResourceG return task->get_future(); } -AdbClient::DescribeDBResourcePoolOutcome AdbClient::describeDBResourcePool(const DescribeDBResourcePoolRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeDBResourcePoolOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeDBResourcePoolOutcome(DescribeDBResourcePoolResult(outcome.result())); - else - return DescribeDBResourcePoolOutcome(outcome.error()); -} - -void AdbClient::describeDBResourcePoolAsync(const DescribeDBResourcePoolRequest& request, const DescribeDBResourcePoolAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeDBResourcePool(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -AdbClient::DescribeDBResourcePoolOutcomeCallable AdbClient::describeDBResourcePoolCallable(const DescribeDBResourcePoolRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeDBResourcePool(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - AdbClient::DescribeDiagnosisDimensionsOutcome AdbClient::describeDiagnosisDimensions(const DescribeDiagnosisDimensionsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1347,6 +1275,42 @@ AdbClient::DescribeDiagnosisRecordsOutcomeCallable AdbClient::describeDiagnosisR return task->get_future(); } +AdbClient::DescribeDiagnosisSQLInfoOutcome AdbClient::describeDiagnosisSQLInfo(const DescribeDiagnosisSQLInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDiagnosisSQLInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDiagnosisSQLInfoOutcome(DescribeDiagnosisSQLInfoResult(outcome.result())); + else + return DescribeDiagnosisSQLInfoOutcome(outcome.error()); +} + +void AdbClient::describeDiagnosisSQLInfoAsync(const DescribeDiagnosisSQLInfoRequest& request, const DescribeDiagnosisSQLInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDiagnosisSQLInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AdbClient::DescribeDiagnosisSQLInfoOutcomeCallable AdbClient::describeDiagnosisSQLInfoCallable(const DescribeDiagnosisSQLInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDiagnosisSQLInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AdbClient::DescribeDownloadRecordsOutcome AdbClient::describeDownloadRecords(const DescribeDownloadRecordsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1383,222 +1347,6 @@ AdbClient::DescribeDownloadRecordsOutcomeCallable AdbClient::describeDownloadRec return task->get_future(); } -AdbClient::DescribeElasticDailyPlanOutcome AdbClient::describeElasticDailyPlan(const DescribeElasticDailyPlanRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeElasticDailyPlanOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeElasticDailyPlanOutcome(DescribeElasticDailyPlanResult(outcome.result())); - else - return DescribeElasticDailyPlanOutcome(outcome.error()); -} - -void AdbClient::describeElasticDailyPlanAsync(const DescribeElasticDailyPlanRequest& request, const DescribeElasticDailyPlanAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeElasticDailyPlan(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -AdbClient::DescribeElasticDailyPlanOutcomeCallable AdbClient::describeElasticDailyPlanCallable(const DescribeElasticDailyPlanRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeElasticDailyPlan(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -AdbClient::DescribeElasticPlanOutcome AdbClient::describeElasticPlan(const DescribeElasticPlanRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeElasticPlanOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeElasticPlanOutcome(DescribeElasticPlanResult(outcome.result())); - else - return DescribeElasticPlanOutcome(outcome.error()); -} - -void AdbClient::describeElasticPlanAsync(const DescribeElasticPlanRequest& request, const DescribeElasticPlanAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeElasticPlan(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -AdbClient::DescribeElasticPlanOutcomeCallable AdbClient::describeElasticPlanCallable(const DescribeElasticPlanRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeElasticPlan(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -AdbClient::DescribeInclinedTablesOutcome AdbClient::describeInclinedTables(const DescribeInclinedTablesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeInclinedTablesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeInclinedTablesOutcome(DescribeInclinedTablesResult(outcome.result())); - else - return DescribeInclinedTablesOutcome(outcome.error()); -} - -void AdbClient::describeInclinedTablesAsync(const DescribeInclinedTablesRequest& request, const DescribeInclinedTablesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeInclinedTables(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -AdbClient::DescribeInclinedTablesOutcomeCallable AdbClient::describeInclinedTablesCallable(const DescribeInclinedTablesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeInclinedTables(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -AdbClient::DescribeLoadTasksRecordsOutcome AdbClient::describeLoadTasksRecords(const DescribeLoadTasksRecordsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeLoadTasksRecordsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeLoadTasksRecordsOutcome(DescribeLoadTasksRecordsResult(outcome.result())); - else - return DescribeLoadTasksRecordsOutcome(outcome.error()); -} - -void AdbClient::describeLoadTasksRecordsAsync(const DescribeLoadTasksRecordsRequest& request, const DescribeLoadTasksRecordsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeLoadTasksRecords(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -AdbClient::DescribeLoadTasksRecordsOutcomeCallable AdbClient::describeLoadTasksRecordsCallable(const DescribeLoadTasksRecordsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeLoadTasksRecords(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - 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(); - if (!endpointOutcome.isSuccess()) - return DescribeOperatorPermissionOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeOperatorPermissionOutcome(DescribeOperatorPermissionResult(outcome.result())); - else - return DescribeOperatorPermissionOutcome(outcome.error()); -} - -void AdbClient::describeOperatorPermissionAsync(const DescribeOperatorPermissionRequest& request, const DescribeOperatorPermissionAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeOperatorPermission(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -AdbClient::DescribeOperatorPermissionOutcomeCallable AdbClient::describeOperatorPermissionCallable(const DescribeOperatorPermissionRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeOperatorPermission(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - AdbClient::DescribePatternPerformanceOutcome AdbClient::describePatternPerformance(const DescribePatternPerformanceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1635,42 +1383,6 @@ AdbClient::DescribePatternPerformanceOutcomeCallable AdbClient::describePatternP return task->get_future(); } -AdbClient::DescribeProcessListOutcome AdbClient::describeProcessList(const DescribeProcessListRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeProcessListOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeProcessListOutcome(DescribeProcessListResult(outcome.result())); - else - return DescribeProcessListOutcome(outcome.error()); -} - -void AdbClient::describeProcessListAsync(const DescribeProcessListRequest& request, const DescribeProcessListAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeProcessList(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -AdbClient::DescribeProcessListOutcomeCallable AdbClient::describeProcessListCallable(const DescribeProcessListRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeProcessList(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - AdbClient::DescribeRegionsOutcome AdbClient::describeRegions(const DescribeRegionsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1779,180 +1491,108 @@ AdbClient::DescribeSQLPatternsOutcomeCallable AdbClient::describeSQLPatternsCall return task->get_future(); } -AdbClient::DescribeSQLPlanOutcome AdbClient::describeSQLPlan(const DescribeSQLPlanRequest &request) const +AdbClient::DescribeSparkCodeLogOutcome AdbClient::describeSparkCodeLog(const DescribeSparkCodeLogRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribeSQLPlanOutcome(endpointOutcome.error()); + return DescribeSparkCodeLogOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribeSQLPlanOutcome(DescribeSQLPlanResult(outcome.result())); + return DescribeSparkCodeLogOutcome(DescribeSparkCodeLogResult(outcome.result())); else - return DescribeSQLPlanOutcome(outcome.error()); + return DescribeSparkCodeLogOutcome(outcome.error()); } -void AdbClient::describeSQLPlanAsync(const DescribeSQLPlanRequest& request, const DescribeSQLPlanAsyncHandler& handler, const std::shared_ptr& context) const +void AdbClient::describeSparkCodeLogAsync(const DescribeSparkCodeLogRequest& request, const DescribeSparkCodeLogAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describeSQLPlan(request), context); + handler(this, request, describeSparkCodeLog(request), context); }; asyncExecute(new Runnable(fn)); } -AdbClient::DescribeSQLPlanOutcomeCallable AdbClient::describeSQLPlanCallable(const DescribeSQLPlanRequest &request) const +AdbClient::DescribeSparkCodeLogOutcomeCallable AdbClient::describeSparkCodeLogCallable(const DescribeSparkCodeLogRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->describeSQLPlan(request); + return this->describeSparkCodeLog(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -AdbClient::DescribeSQLPlanTaskOutcome AdbClient::describeSQLPlanTask(const DescribeSQLPlanTaskRequest &request) const +AdbClient::DescribeSparkCodeOutputOutcome AdbClient::describeSparkCodeOutput(const DescribeSparkCodeOutputRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribeSQLPlanTaskOutcome(endpointOutcome.error()); + return DescribeSparkCodeOutputOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribeSQLPlanTaskOutcome(DescribeSQLPlanTaskResult(outcome.result())); + return DescribeSparkCodeOutputOutcome(DescribeSparkCodeOutputResult(outcome.result())); else - return DescribeSQLPlanTaskOutcome(outcome.error()); + return DescribeSparkCodeOutputOutcome(outcome.error()); } -void AdbClient::describeSQLPlanTaskAsync(const DescribeSQLPlanTaskRequest& request, const DescribeSQLPlanTaskAsyncHandler& handler, const std::shared_ptr& context) const +void AdbClient::describeSparkCodeOutputAsync(const DescribeSparkCodeOutputRequest& request, const DescribeSparkCodeOutputAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describeSQLPlanTask(request), context); + handler(this, request, describeSparkCodeOutput(request), context); }; asyncExecute(new Runnable(fn)); } -AdbClient::DescribeSQLPlanTaskOutcomeCallable AdbClient::describeSQLPlanTaskCallable(const DescribeSQLPlanTaskRequest &request) const +AdbClient::DescribeSparkCodeOutputOutcomeCallable AdbClient::describeSparkCodeOutputCallable(const DescribeSparkCodeOutputRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->describeSQLPlanTask(request); + return this->describeSparkCodeOutput(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -AdbClient::DescribeSchemasOutcome AdbClient::describeSchemas(const DescribeSchemasRequest &request) const +AdbClient::DescribeSparkCodeWebUiOutcome AdbClient::describeSparkCodeWebUi(const DescribeSparkCodeWebUiRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribeSchemasOutcome(endpointOutcome.error()); + return DescribeSparkCodeWebUiOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribeSchemasOutcome(DescribeSchemasResult(outcome.result())); + return DescribeSparkCodeWebUiOutcome(DescribeSparkCodeWebUiResult(outcome.result())); else - return DescribeSchemasOutcome(outcome.error()); + return DescribeSparkCodeWebUiOutcome(outcome.error()); } -void AdbClient::describeSchemasAsync(const DescribeSchemasRequest& request, const DescribeSchemasAsyncHandler& handler, const std::shared_ptr& context) const +void AdbClient::describeSparkCodeWebUiAsync(const DescribeSparkCodeWebUiRequest& request, const DescribeSparkCodeWebUiAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describeSchemas(request), context); + handler(this, request, describeSparkCodeWebUi(request), context); }; asyncExecute(new Runnable(fn)); } -AdbClient::DescribeSchemasOutcomeCallable AdbClient::describeSchemasCallable(const DescribeSchemasRequest &request) const +AdbClient::DescribeSparkCodeWebUiOutcomeCallable AdbClient::describeSparkCodeWebUiCallable(const DescribeSparkCodeWebUiRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->describeSchemas(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -AdbClient::DescribeSlowLogRecordsOutcome AdbClient::describeSlowLogRecords(const DescribeSlowLogRecordsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeSlowLogRecordsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeSlowLogRecordsOutcome(DescribeSlowLogRecordsResult(outcome.result())); - else - return DescribeSlowLogRecordsOutcome(outcome.error()); -} - -void AdbClient::describeSlowLogRecordsAsync(const DescribeSlowLogRecordsRequest& request, const DescribeSlowLogRecordsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeSlowLogRecords(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -AdbClient::DescribeSlowLogRecordsOutcomeCallable AdbClient::describeSlowLogRecordsCallable(const DescribeSlowLogRecordsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeSlowLogRecords(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -AdbClient::DescribeSlowLogTrendOutcome AdbClient::describeSlowLogTrend(const DescribeSlowLogTrendRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeSlowLogTrendOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeSlowLogTrendOutcome(DescribeSlowLogTrendResult(outcome.result())); - else - return DescribeSlowLogTrendOutcome(outcome.error()); -} - -void AdbClient::describeSlowLogTrendAsync(const DescribeSlowLogTrendRequest& request, const DescribeSlowLogTrendAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeSlowLogTrend(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -AdbClient::DescribeSlowLogTrendOutcomeCallable AdbClient::describeSlowLogTrendCallable(const DescribeSlowLogTrendRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeSlowLogTrend(request); + return this->describeSparkCodeWebUi(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -2031,186 +1671,6 @@ AdbClient::DescribeTableAccessCountOutcomeCallable AdbClient::describeTableAcces return task->get_future(); } -AdbClient::DescribeTableDetailOutcome AdbClient::describeTableDetail(const DescribeTableDetailRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeTableDetailOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeTableDetailOutcome(DescribeTableDetailResult(outcome.result())); - else - return DescribeTableDetailOutcome(outcome.error()); -} - -void AdbClient::describeTableDetailAsync(const DescribeTableDetailRequest& request, const DescribeTableDetailAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeTableDetail(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -AdbClient::DescribeTableDetailOutcomeCallable AdbClient::describeTableDetailCallable(const DescribeTableDetailRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeTableDetail(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -AdbClient::DescribeTablePartitionDiagnoseOutcome AdbClient::describeTablePartitionDiagnose(const DescribeTablePartitionDiagnoseRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeTablePartitionDiagnoseOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeTablePartitionDiagnoseOutcome(DescribeTablePartitionDiagnoseResult(outcome.result())); - else - return DescribeTablePartitionDiagnoseOutcome(outcome.error()); -} - -void AdbClient::describeTablePartitionDiagnoseAsync(const DescribeTablePartitionDiagnoseRequest& request, const DescribeTablePartitionDiagnoseAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeTablePartitionDiagnose(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -AdbClient::DescribeTablePartitionDiagnoseOutcomeCallable AdbClient::describeTablePartitionDiagnoseCallable(const DescribeTablePartitionDiagnoseRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeTablePartitionDiagnose(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -AdbClient::DescribeTableStatisticsOutcome AdbClient::describeTableStatistics(const DescribeTableStatisticsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeTableStatisticsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeTableStatisticsOutcome(DescribeTableStatisticsResult(outcome.result())); - else - return DescribeTableStatisticsOutcome(outcome.error()); -} - -void AdbClient::describeTableStatisticsAsync(const DescribeTableStatisticsRequest& request, const DescribeTableStatisticsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeTableStatistics(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -AdbClient::DescribeTableStatisticsOutcomeCallable AdbClient::describeTableStatisticsCallable(const DescribeTableStatisticsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeTableStatistics(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -AdbClient::DescribeTablesOutcome AdbClient::describeTables(const DescribeTablesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeTablesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeTablesOutcome(DescribeTablesResult(outcome.result())); - else - return DescribeTablesOutcome(outcome.error()); -} - -void AdbClient::describeTablesAsync(const DescribeTablesRequest& request, const DescribeTablesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeTables(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -AdbClient::DescribeTablesOutcomeCallable AdbClient::describeTablesCallable(const DescribeTablesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeTables(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -AdbClient::DescribeTaskInfoOutcome AdbClient::describeTaskInfo(const DescribeTaskInfoRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeTaskInfoOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeTaskInfoOutcome(DescribeTaskInfoResult(outcome.result())); - else - return DescribeTaskInfoOutcome(outcome.error()); -} - -void AdbClient::describeTaskInfoAsync(const DescribeTaskInfoRequest& request, const DescribeTaskInfoAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeTaskInfo(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -AdbClient::DescribeTaskInfoOutcomeCallable AdbClient::describeTaskInfoCallable(const DescribeTaskInfoRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeTaskInfo(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - AdbClient::DownloadDiagnosisRecordsOutcome AdbClient::downloadDiagnosisRecords(const DownloadDiagnosisRecordsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2247,108 +1707,972 @@ AdbClient::DownloadDiagnosisRecordsOutcomeCallable AdbClient::downloadDiagnosisR return task->get_future(); } -AdbClient::GrantOperatorPermissionOutcome AdbClient::grantOperatorPermission(const GrantOperatorPermissionRequest &request) const +AdbClient::GetDatabaseObjectsOutcome AdbClient::getDatabaseObjects(const GetDatabaseObjectsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return GrantOperatorPermissionOutcome(endpointOutcome.error()); + return GetDatabaseObjectsOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return GrantOperatorPermissionOutcome(GrantOperatorPermissionResult(outcome.result())); + return GetDatabaseObjectsOutcome(GetDatabaseObjectsResult(outcome.result())); else - return GrantOperatorPermissionOutcome(outcome.error()); + return GetDatabaseObjectsOutcome(outcome.error()); } -void AdbClient::grantOperatorPermissionAsync(const GrantOperatorPermissionRequest& request, const GrantOperatorPermissionAsyncHandler& handler, const std::shared_ptr& context) const +void AdbClient::getDatabaseObjectsAsync(const GetDatabaseObjectsRequest& request, const GetDatabaseObjectsAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, grantOperatorPermission(request), context); + handler(this, request, getDatabaseObjects(request), context); }; asyncExecute(new Runnable(fn)); } -AdbClient::GrantOperatorPermissionOutcomeCallable AdbClient::grantOperatorPermissionCallable(const GrantOperatorPermissionRequest &request) const +AdbClient::GetDatabaseObjectsOutcomeCallable AdbClient::getDatabaseObjectsCallable(const GetDatabaseObjectsRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->grantOperatorPermission(request); + return this->getDatabaseObjects(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -AdbClient::KillProcessOutcome AdbClient::killProcess(const KillProcessRequest &request) const +AdbClient::GetLakehouseValidResourceGroupsOutcome AdbClient::getLakehouseValidResourceGroups(const GetLakehouseValidResourceGroupsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return KillProcessOutcome(endpointOutcome.error()); + return GetLakehouseValidResourceGroupsOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return KillProcessOutcome(KillProcessResult(outcome.result())); + return GetLakehouseValidResourceGroupsOutcome(GetLakehouseValidResourceGroupsResult(outcome.result())); else - return KillProcessOutcome(outcome.error()); + return GetLakehouseValidResourceGroupsOutcome(outcome.error()); } -void AdbClient::killProcessAsync(const KillProcessRequest& request, const KillProcessAsyncHandler& handler, const std::shared_ptr& context) const +void AdbClient::getLakehouseValidResourceGroupsAsync(const GetLakehouseValidResourceGroupsRequest& request, const GetLakehouseValidResourceGroupsAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, killProcess(request), context); + handler(this, request, getLakehouseValidResourceGroups(request), context); }; asyncExecute(new Runnable(fn)); } -AdbClient::KillProcessOutcomeCallable AdbClient::killProcessCallable(const KillProcessRequest &request) const +AdbClient::GetLakehouseValidResourceGroupsOutcomeCallable AdbClient::getLakehouseValidResourceGroupsCallable(const GetLakehouseValidResourceGroupsRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->killProcess(request); + return this->getLakehouseValidResourceGroups(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -AdbClient::ListTagResourcesOutcome AdbClient::listTagResources(const ListTagResourcesRequest &request) const +AdbClient::GetSparkAppAttemptLogOutcome AdbClient::getSparkAppAttemptLog(const GetSparkAppAttemptLogRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListTagResourcesOutcome(endpointOutcome.error()); + return GetSparkAppAttemptLogOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListTagResourcesOutcome(ListTagResourcesResult(outcome.result())); + return GetSparkAppAttemptLogOutcome(GetSparkAppAttemptLogResult(outcome.result())); else - return ListTagResourcesOutcome(outcome.error()); + return GetSparkAppAttemptLogOutcome(outcome.error()); } -void AdbClient::listTagResourcesAsync(const ListTagResourcesRequest& request, const ListTagResourcesAsyncHandler& handler, const std::shared_ptr& context) const +void AdbClient::getSparkAppAttemptLogAsync(const GetSparkAppAttemptLogRequest& request, const GetSparkAppAttemptLogAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listTagResources(request), context); + handler(this, request, getSparkAppAttemptLog(request), context); }; asyncExecute(new Runnable(fn)); } -AdbClient::ListTagResourcesOutcomeCallable AdbClient::listTagResourcesCallable(const ListTagResourcesRequest &request) const +AdbClient::GetSparkAppAttemptLogOutcomeCallable AdbClient::getSparkAppAttemptLogCallable(const GetSparkAppAttemptLogRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listTagResources(request); + return this->getSparkAppAttemptLog(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AdbClient::GetSparkAppInfoOutcome AdbClient::getSparkAppInfo(const GetSparkAppInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetSparkAppInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetSparkAppInfoOutcome(GetSparkAppInfoResult(outcome.result())); + else + return GetSparkAppInfoOutcome(outcome.error()); +} + +void AdbClient::getSparkAppInfoAsync(const GetSparkAppInfoRequest& request, const GetSparkAppInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getSparkAppInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AdbClient::GetSparkAppInfoOutcomeCallable AdbClient::getSparkAppInfoCallable(const GetSparkAppInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getSparkAppInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AdbClient::GetSparkAppLogOutcome AdbClient::getSparkAppLog(const GetSparkAppLogRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetSparkAppLogOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetSparkAppLogOutcome(GetSparkAppLogResult(outcome.result())); + else + return GetSparkAppLogOutcome(outcome.error()); +} + +void AdbClient::getSparkAppLogAsync(const GetSparkAppLogRequest& request, const GetSparkAppLogAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getSparkAppLog(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AdbClient::GetSparkAppLogOutcomeCallable AdbClient::getSparkAppLogCallable(const GetSparkAppLogRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getSparkAppLog(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AdbClient::GetSparkAppMetricsOutcome AdbClient::getSparkAppMetrics(const GetSparkAppMetricsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetSparkAppMetricsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetSparkAppMetricsOutcome(GetSparkAppMetricsResult(outcome.result())); + else + return GetSparkAppMetricsOutcome(outcome.error()); +} + +void AdbClient::getSparkAppMetricsAsync(const GetSparkAppMetricsRequest& request, const GetSparkAppMetricsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getSparkAppMetrics(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AdbClient::GetSparkAppMetricsOutcomeCallable AdbClient::getSparkAppMetricsCallable(const GetSparkAppMetricsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getSparkAppMetrics(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AdbClient::GetSparkAppStateOutcome AdbClient::getSparkAppState(const GetSparkAppStateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetSparkAppStateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetSparkAppStateOutcome(GetSparkAppStateResult(outcome.result())); + else + return GetSparkAppStateOutcome(outcome.error()); +} + +void AdbClient::getSparkAppStateAsync(const GetSparkAppStateRequest& request, const GetSparkAppStateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getSparkAppState(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AdbClient::GetSparkAppStateOutcomeCallable AdbClient::getSparkAppStateCallable(const GetSparkAppStateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getSparkAppState(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AdbClient::GetSparkAppWebUiAddressOutcome AdbClient::getSparkAppWebUiAddress(const GetSparkAppWebUiAddressRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetSparkAppWebUiAddressOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetSparkAppWebUiAddressOutcome(GetSparkAppWebUiAddressResult(outcome.result())); + else + return GetSparkAppWebUiAddressOutcome(outcome.error()); +} + +void AdbClient::getSparkAppWebUiAddressAsync(const GetSparkAppWebUiAddressRequest& request, const GetSparkAppWebUiAddressAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getSparkAppWebUiAddress(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AdbClient::GetSparkAppWebUiAddressOutcomeCallable AdbClient::getSparkAppWebUiAddressCallable(const GetSparkAppWebUiAddressRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getSparkAppWebUiAddress(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AdbClient::GetSparkConfigLogPathOutcome AdbClient::getSparkConfigLogPath(const GetSparkConfigLogPathRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetSparkConfigLogPathOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetSparkConfigLogPathOutcome(GetSparkConfigLogPathResult(outcome.result())); + else + return GetSparkConfigLogPathOutcome(outcome.error()); +} + +void AdbClient::getSparkConfigLogPathAsync(const GetSparkConfigLogPathRequest& request, const GetSparkConfigLogPathAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getSparkConfigLogPath(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AdbClient::GetSparkConfigLogPathOutcomeCallable AdbClient::getSparkConfigLogPathCallable(const GetSparkConfigLogPathRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getSparkConfigLogPath(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AdbClient::GetSparkLogAnalyzeTaskOutcome AdbClient::getSparkLogAnalyzeTask(const GetSparkLogAnalyzeTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetSparkLogAnalyzeTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetSparkLogAnalyzeTaskOutcome(GetSparkLogAnalyzeTaskResult(outcome.result())); + else + return GetSparkLogAnalyzeTaskOutcome(outcome.error()); +} + +void AdbClient::getSparkLogAnalyzeTaskAsync(const GetSparkLogAnalyzeTaskRequest& request, const GetSparkLogAnalyzeTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getSparkLogAnalyzeTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AdbClient::GetSparkLogAnalyzeTaskOutcomeCallable AdbClient::getSparkLogAnalyzeTaskCallable(const GetSparkLogAnalyzeTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getSparkLogAnalyzeTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AdbClient::GetSparkSQLEngineStateOutcome AdbClient::getSparkSQLEngineState(const GetSparkSQLEngineStateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetSparkSQLEngineStateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetSparkSQLEngineStateOutcome(GetSparkSQLEngineStateResult(outcome.result())); + else + return GetSparkSQLEngineStateOutcome(outcome.error()); +} + +void AdbClient::getSparkSQLEngineStateAsync(const GetSparkSQLEngineStateRequest& request, const GetSparkSQLEngineStateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getSparkSQLEngineState(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AdbClient::GetSparkSQLEngineStateOutcomeCallable AdbClient::getSparkSQLEngineStateCallable(const GetSparkSQLEngineStateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getSparkSQLEngineState(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AdbClient::GetSparkTemplateFileContentOutcome AdbClient::getSparkTemplateFileContent(const GetSparkTemplateFileContentRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetSparkTemplateFileContentOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetSparkTemplateFileContentOutcome(GetSparkTemplateFileContentResult(outcome.result())); + else + return GetSparkTemplateFileContentOutcome(outcome.error()); +} + +void AdbClient::getSparkTemplateFileContentAsync(const GetSparkTemplateFileContentRequest& request, const GetSparkTemplateFileContentAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getSparkTemplateFileContent(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AdbClient::GetSparkTemplateFileContentOutcomeCallable AdbClient::getSparkTemplateFileContentCallable(const GetSparkTemplateFileContentRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getSparkTemplateFileContent(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AdbClient::GetSparkTemplateFolderTreeOutcome AdbClient::getSparkTemplateFolderTree(const GetSparkTemplateFolderTreeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetSparkTemplateFolderTreeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetSparkTemplateFolderTreeOutcome(GetSparkTemplateFolderTreeResult(outcome.result())); + else + return GetSparkTemplateFolderTreeOutcome(outcome.error()); +} + +void AdbClient::getSparkTemplateFolderTreeAsync(const GetSparkTemplateFolderTreeRequest& request, const GetSparkTemplateFolderTreeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getSparkTemplateFolderTree(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AdbClient::GetSparkTemplateFolderTreeOutcomeCallable AdbClient::getSparkTemplateFolderTreeCallable(const GetSparkTemplateFolderTreeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getSparkTemplateFolderTree(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AdbClient::GetSparkTemplateFullTreeOutcome AdbClient::getSparkTemplateFullTree(const GetSparkTemplateFullTreeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetSparkTemplateFullTreeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetSparkTemplateFullTreeOutcome(GetSparkTemplateFullTreeResult(outcome.result())); + else + return GetSparkTemplateFullTreeOutcome(outcome.error()); +} + +void AdbClient::getSparkTemplateFullTreeAsync(const GetSparkTemplateFullTreeRequest& request, const GetSparkTemplateFullTreeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getSparkTemplateFullTree(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AdbClient::GetSparkTemplateFullTreeOutcomeCallable AdbClient::getSparkTemplateFullTreeCallable(const GetSparkTemplateFullTreeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getSparkTemplateFullTree(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AdbClient::GetTableOutcome AdbClient::getTable(const GetTableRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetTableOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetTableOutcome(GetTableResult(outcome.result())); + else + return GetTableOutcome(outcome.error()); +} + +void AdbClient::getTableAsync(const GetTableRequest& request, const GetTableAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getTable(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AdbClient::GetTableOutcomeCallable AdbClient::getTableCallable(const GetTableRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getTable(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AdbClient::GetTableColumnsOutcome AdbClient::getTableColumns(const GetTableColumnsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetTableColumnsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetTableColumnsOutcome(GetTableColumnsResult(outcome.result())); + else + return GetTableColumnsOutcome(outcome.error()); +} + +void AdbClient::getTableColumnsAsync(const GetTableColumnsRequest& request, const GetTableColumnsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getTableColumns(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AdbClient::GetTableColumnsOutcomeCallable AdbClient::getTableColumnsCallable(const GetTableColumnsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getTableColumns(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AdbClient::GetTableDDLOutcome AdbClient::getTableDDL(const GetTableDDLRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetTableDDLOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetTableDDLOutcome(GetTableDDLResult(outcome.result())); + else + return GetTableDDLOutcome(outcome.error()); +} + +void AdbClient::getTableDDLAsync(const GetTableDDLRequest& request, const GetTableDDLAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getTableDDL(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AdbClient::GetTableDDLOutcomeCallable AdbClient::getTableDDLCallable(const GetTableDDLRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getTableDDL(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AdbClient::GetTableObjectsOutcome AdbClient::getTableObjects(const GetTableObjectsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetTableObjectsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetTableObjectsOutcome(GetTableObjectsResult(outcome.result())); + else + return GetTableObjectsOutcome(outcome.error()); +} + +void AdbClient::getTableObjectsAsync(const GetTableObjectsRequest& request, const GetTableObjectsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getTableObjects(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AdbClient::GetTableObjectsOutcomeCallable AdbClient::getTableObjectsCallable(const GetTableObjectsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getTableObjects(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AdbClient::GetViewDDLOutcome AdbClient::getViewDDL(const GetViewDDLRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetViewDDLOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetViewDDLOutcome(GetViewDDLResult(outcome.result())); + else + return GetViewDDLOutcome(outcome.error()); +} + +void AdbClient::getViewDDLAsync(const GetViewDDLRequest& request, const GetViewDDLAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getViewDDL(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AdbClient::GetViewDDLOutcomeCallable AdbClient::getViewDDLCallable(const GetViewDDLRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getViewDDL(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AdbClient::GetViewObjectsOutcome AdbClient::getViewObjects(const GetViewObjectsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetViewObjectsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetViewObjectsOutcome(GetViewObjectsResult(outcome.result())); + else + return GetViewObjectsOutcome(outcome.error()); +} + +void AdbClient::getViewObjectsAsync(const GetViewObjectsRequest& request, const GetViewObjectsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getViewObjects(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AdbClient::GetViewObjectsOutcomeCallable AdbClient::getViewObjectsCallable(const GetViewObjectsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getViewObjects(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AdbClient::KillSparkAppOutcome AdbClient::killSparkApp(const KillSparkAppRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return KillSparkAppOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return KillSparkAppOutcome(KillSparkAppResult(outcome.result())); + else + return KillSparkAppOutcome(outcome.error()); +} + +void AdbClient::killSparkAppAsync(const KillSparkAppRequest& request, const KillSparkAppAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, killSparkApp(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AdbClient::KillSparkAppOutcomeCallable AdbClient::killSparkAppCallable(const KillSparkAppRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->killSparkApp(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AdbClient::KillSparkLogAnalyzeTaskOutcome AdbClient::killSparkLogAnalyzeTask(const KillSparkLogAnalyzeTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return KillSparkLogAnalyzeTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return KillSparkLogAnalyzeTaskOutcome(KillSparkLogAnalyzeTaskResult(outcome.result())); + else + return KillSparkLogAnalyzeTaskOutcome(outcome.error()); +} + +void AdbClient::killSparkLogAnalyzeTaskAsync(const KillSparkLogAnalyzeTaskRequest& request, const KillSparkLogAnalyzeTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, killSparkLogAnalyzeTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AdbClient::KillSparkLogAnalyzeTaskOutcomeCallable AdbClient::killSparkLogAnalyzeTaskCallable(const KillSparkLogAnalyzeTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->killSparkLogAnalyzeTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AdbClient::KillSparkSQLEngineOutcome AdbClient::killSparkSQLEngine(const KillSparkSQLEngineRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return KillSparkSQLEngineOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return KillSparkSQLEngineOutcome(KillSparkSQLEngineResult(outcome.result())); + else + return KillSparkSQLEngineOutcome(outcome.error()); +} + +void AdbClient::killSparkSQLEngineAsync(const KillSparkSQLEngineRequest& request, const KillSparkSQLEngineAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, killSparkSQLEngine(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AdbClient::KillSparkSQLEngineOutcomeCallable AdbClient::killSparkSQLEngineCallable(const KillSparkSQLEngineRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->killSparkSQLEngine(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AdbClient::ListSparkAppAttemptsOutcome AdbClient::listSparkAppAttempts(const ListSparkAppAttemptsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListSparkAppAttemptsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListSparkAppAttemptsOutcome(ListSparkAppAttemptsResult(outcome.result())); + else + return ListSparkAppAttemptsOutcome(outcome.error()); +} + +void AdbClient::listSparkAppAttemptsAsync(const ListSparkAppAttemptsRequest& request, const ListSparkAppAttemptsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listSparkAppAttempts(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AdbClient::ListSparkAppAttemptsOutcomeCallable AdbClient::listSparkAppAttemptsCallable(const ListSparkAppAttemptsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listSparkAppAttempts(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AdbClient::ListSparkAppsOutcome AdbClient::listSparkApps(const ListSparkAppsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListSparkAppsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListSparkAppsOutcome(ListSparkAppsResult(outcome.result())); + else + return ListSparkAppsOutcome(outcome.error()); +} + +void AdbClient::listSparkAppsAsync(const ListSparkAppsRequest& request, const ListSparkAppsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listSparkApps(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AdbClient::ListSparkAppsOutcomeCallable AdbClient::listSparkAppsCallable(const ListSparkAppsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listSparkApps(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AdbClient::ListSparkLogAnalyzeTasksOutcome AdbClient::listSparkLogAnalyzeTasks(const ListSparkLogAnalyzeTasksRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListSparkLogAnalyzeTasksOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListSparkLogAnalyzeTasksOutcome(ListSparkLogAnalyzeTasksResult(outcome.result())); + else + return ListSparkLogAnalyzeTasksOutcome(outcome.error()); +} + +void AdbClient::listSparkLogAnalyzeTasksAsync(const ListSparkLogAnalyzeTasksRequest& request, const ListSparkLogAnalyzeTasksAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listSparkLogAnalyzeTasks(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AdbClient::ListSparkLogAnalyzeTasksOutcomeCallable AdbClient::listSparkLogAnalyzeTasksCallable(const ListSparkLogAnalyzeTasksRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listSparkLogAnalyzeTasks(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AdbClient::ListSparkTemplateFileIdsOutcome AdbClient::listSparkTemplateFileIds(const ListSparkTemplateFileIdsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListSparkTemplateFileIdsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListSparkTemplateFileIdsOutcome(ListSparkTemplateFileIdsResult(outcome.result())); + else + return ListSparkTemplateFileIdsOutcome(outcome.error()); +} + +void AdbClient::listSparkTemplateFileIdsAsync(const ListSparkTemplateFileIdsRequest& request, const ListSparkTemplateFileIdsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listSparkTemplateFileIds(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AdbClient::ListSparkTemplateFileIdsOutcomeCallable AdbClient::listSparkTemplateFileIdsCallable(const ListSparkTemplateFileIdsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listSparkTemplateFileIds(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -2427,42 +2751,6 @@ AdbClient::ModifyAuditLogConfigOutcomeCallable AdbClient::modifyAuditLogConfigCa return task->get_future(); } -AdbClient::ModifyAutoRenewAttributeOutcome AdbClient::modifyAutoRenewAttribute(const ModifyAutoRenewAttributeRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyAutoRenewAttributeOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyAutoRenewAttributeOutcome(ModifyAutoRenewAttributeResult(outcome.result())); - else - return ModifyAutoRenewAttributeOutcome(outcome.error()); -} - -void AdbClient::modifyAutoRenewAttributeAsync(const ModifyAutoRenewAttributeRequest& request, const ModifyAutoRenewAttributeAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyAutoRenewAttribute(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -AdbClient::ModifyAutoRenewAttributeOutcomeCallable AdbClient::modifyAutoRenewAttributeCallable(const ModifyAutoRenewAttributeRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyAutoRenewAttribute(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - AdbClient::ModifyBackupPolicyOutcome AdbClient::modifyBackupPolicy(const ModifyBackupPolicyRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2499,6 +2787,42 @@ AdbClient::ModifyBackupPolicyOutcomeCallable AdbClient::modifyBackupPolicyCallab return task->get_future(); } +AdbClient::ModifyClusterAccessWhiteListOutcome AdbClient::modifyClusterAccessWhiteList(const ModifyClusterAccessWhiteListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyClusterAccessWhiteListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyClusterAccessWhiteListOutcome(ModifyClusterAccessWhiteListResult(outcome.result())); + else + return ModifyClusterAccessWhiteListOutcome(outcome.error()); +} + +void AdbClient::modifyClusterAccessWhiteListAsync(const ModifyClusterAccessWhiteListRequest& request, const ModifyClusterAccessWhiteListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyClusterAccessWhiteList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AdbClient::ModifyClusterAccessWhiteListOutcomeCallable AdbClient::modifyClusterAccessWhiteListCallable(const ModifyClusterAccessWhiteListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyClusterAccessWhiteList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AdbClient::ModifyClusterConnectionStringOutcome AdbClient::modifyClusterConnectionString(const ModifyClusterConnectionStringRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2571,42 +2895,6 @@ AdbClient::ModifyDBClusterOutcomeCallable AdbClient::modifyDBClusterCallable(con return task->get_future(); } -AdbClient::ModifyDBClusterAccessWhiteListOutcome AdbClient::modifyDBClusterAccessWhiteList(const ModifyDBClusterAccessWhiteListRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyDBClusterAccessWhiteListOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyDBClusterAccessWhiteListOutcome(ModifyDBClusterAccessWhiteListResult(outcome.result())); - else - return ModifyDBClusterAccessWhiteListOutcome(outcome.error()); -} - -void AdbClient::modifyDBClusterAccessWhiteListAsync(const ModifyDBClusterAccessWhiteListRequest& request, const ModifyDBClusterAccessWhiteListAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyDBClusterAccessWhiteList(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -AdbClient::ModifyDBClusterAccessWhiteListOutcomeCallable AdbClient::modifyDBClusterAccessWhiteListCallable(const ModifyDBClusterAccessWhiteListRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyDBClusterAccessWhiteList(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - AdbClient::ModifyDBClusterDescriptionOutcome AdbClient::modifyDBClusterDescription(const ModifyDBClusterDescriptionRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2679,78 +2967,6 @@ 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(); - if (!endpointOutcome.isSuccess()) - return ModifyDBClusterResourceGroupOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyDBClusterResourceGroupOutcome(ModifyDBClusterResourceGroupResult(outcome.result())); - else - return ModifyDBClusterResourceGroupOutcome(outcome.error()); -} - -void AdbClient::modifyDBClusterResourceGroupAsync(const ModifyDBClusterResourceGroupRequest& request, const ModifyDBClusterResourceGroupAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyDBClusterResourceGroup(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -AdbClient::ModifyDBClusterResourceGroupOutcomeCallable AdbClient::modifyDBClusterResourceGroupCallable(const ModifyDBClusterResourceGroupRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyDBClusterResourceGroup(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - AdbClient::ModifyDBResourceGroupOutcome AdbClient::modifyDBResourceGroup(const ModifyDBResourceGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2787,144 +3003,36 @@ AdbClient::ModifyDBResourceGroupOutcomeCallable AdbClient::modifyDBResourceGroup return task->get_future(); } -AdbClient::ModifyDBResourcePoolOutcome AdbClient::modifyDBResourcePool(const ModifyDBResourcePoolRequest &request) const +AdbClient::PreloadSparkAppMetricsOutcome AdbClient::preloadSparkAppMetrics(const PreloadSparkAppMetricsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ModifyDBResourcePoolOutcome(endpointOutcome.error()); + return PreloadSparkAppMetricsOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ModifyDBResourcePoolOutcome(ModifyDBResourcePoolResult(outcome.result())); + return PreloadSparkAppMetricsOutcome(PreloadSparkAppMetricsResult(outcome.result())); else - return ModifyDBResourcePoolOutcome(outcome.error()); + return PreloadSparkAppMetricsOutcome(outcome.error()); } -void AdbClient::modifyDBResourcePoolAsync(const ModifyDBResourcePoolRequest& request, const ModifyDBResourcePoolAsyncHandler& handler, const std::shared_ptr& context) const +void AdbClient::preloadSparkAppMetricsAsync(const PreloadSparkAppMetricsRequest& request, const PreloadSparkAppMetricsAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, modifyDBResourcePool(request), context); + handler(this, request, preloadSparkAppMetrics(request), context); }; asyncExecute(new Runnable(fn)); } -AdbClient::ModifyDBResourcePoolOutcomeCallable AdbClient::modifyDBResourcePoolCallable(const ModifyDBResourcePoolRequest &request) const +AdbClient::PreloadSparkAppMetricsOutcomeCallable AdbClient::preloadSparkAppMetricsCallable(const PreloadSparkAppMetricsRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->modifyDBResourcePool(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -AdbClient::ModifyElasticPlanOutcome AdbClient::modifyElasticPlan(const ModifyElasticPlanRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyElasticPlanOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyElasticPlanOutcome(ModifyElasticPlanResult(outcome.result())); - else - return ModifyElasticPlanOutcome(outcome.error()); -} - -void AdbClient::modifyElasticPlanAsync(const ModifyElasticPlanRequest& request, const ModifyElasticPlanAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyElasticPlan(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -AdbClient::ModifyElasticPlanOutcomeCallable AdbClient::modifyElasticPlanCallable(const ModifyElasticPlanRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyElasticPlan(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -AdbClient::ModifyLogBackupPolicyOutcome AdbClient::modifyLogBackupPolicy(const ModifyLogBackupPolicyRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyLogBackupPolicyOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyLogBackupPolicyOutcome(ModifyLogBackupPolicyResult(outcome.result())); - else - return ModifyLogBackupPolicyOutcome(outcome.error()); -} - -void AdbClient::modifyLogBackupPolicyAsync(const ModifyLogBackupPolicyRequest& request, const ModifyLogBackupPolicyAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyLogBackupPolicy(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -AdbClient::ModifyLogBackupPolicyOutcomeCallable AdbClient::modifyLogBackupPolicyCallable(const ModifyLogBackupPolicyRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyLogBackupPolicy(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - 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); + return this->preloadSparkAppMetrics(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -3003,180 +3111,216 @@ AdbClient::ResetAccountPasswordOutcomeCallable AdbClient::resetAccountPasswordCa return task->get_future(); } -AdbClient::RevokeOperatorPermissionOutcome AdbClient::revokeOperatorPermission(const RevokeOperatorPermissionRequest &request) const +AdbClient::SetSparkAppLogRootPathOutcome AdbClient::setSparkAppLogRootPath(const SetSparkAppLogRootPathRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return RevokeOperatorPermissionOutcome(endpointOutcome.error()); + return SetSparkAppLogRootPathOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return RevokeOperatorPermissionOutcome(RevokeOperatorPermissionResult(outcome.result())); + return SetSparkAppLogRootPathOutcome(SetSparkAppLogRootPathResult(outcome.result())); else - return RevokeOperatorPermissionOutcome(outcome.error()); + return SetSparkAppLogRootPathOutcome(outcome.error()); } -void AdbClient::revokeOperatorPermissionAsync(const RevokeOperatorPermissionRequest& request, const RevokeOperatorPermissionAsyncHandler& handler, const std::shared_ptr& context) const +void AdbClient::setSparkAppLogRootPathAsync(const SetSparkAppLogRootPathRequest& request, const SetSparkAppLogRootPathAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, revokeOperatorPermission(request), context); + handler(this, request, setSparkAppLogRootPath(request), context); }; asyncExecute(new Runnable(fn)); } -AdbClient::RevokeOperatorPermissionOutcomeCallable AdbClient::revokeOperatorPermissionCallable(const RevokeOperatorPermissionRequest &request) const +AdbClient::SetSparkAppLogRootPathOutcomeCallable AdbClient::setSparkAppLogRootPathCallable(const SetSparkAppLogRootPathRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->revokeOperatorPermission(request); + return this->setSparkAppLogRootPath(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -AdbClient::TagResourcesOutcome AdbClient::tagResources(const TagResourcesRequest &request) const +AdbClient::StartSparkSQLEngineOutcome AdbClient::startSparkSQLEngine(const StartSparkSQLEngineRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return TagResourcesOutcome(endpointOutcome.error()); + return StartSparkSQLEngineOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return TagResourcesOutcome(TagResourcesResult(outcome.result())); + return StartSparkSQLEngineOutcome(StartSparkSQLEngineResult(outcome.result())); else - return TagResourcesOutcome(outcome.error()); + return StartSparkSQLEngineOutcome(outcome.error()); } -void AdbClient::tagResourcesAsync(const TagResourcesRequest& request, const TagResourcesAsyncHandler& handler, const std::shared_ptr& context) const +void AdbClient::startSparkSQLEngineAsync(const StartSparkSQLEngineRequest& request, const StartSparkSQLEngineAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, tagResources(request), context); + handler(this, request, startSparkSQLEngine(request), context); }; asyncExecute(new Runnable(fn)); } -AdbClient::TagResourcesOutcomeCallable AdbClient::tagResourcesCallable(const TagResourcesRequest &request) const +AdbClient::StartSparkSQLEngineOutcomeCallable AdbClient::startSparkSQLEngineCallable(const StartSparkSQLEngineRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->tagResources(request); + return this->startSparkSQLEngine(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -AdbClient::UnbindDBResourceGroupWithUserOutcome AdbClient::unbindDBResourceGroupWithUser(const UnbindDBResourceGroupWithUserRequest &request) const +AdbClient::SubmitSparkAppOutcome AdbClient::submitSparkApp(const SubmitSparkAppRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return UnbindDBResourceGroupWithUserOutcome(endpointOutcome.error()); + return SubmitSparkAppOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return UnbindDBResourceGroupWithUserOutcome(UnbindDBResourceGroupWithUserResult(outcome.result())); + return SubmitSparkAppOutcome(SubmitSparkAppResult(outcome.result())); else - return UnbindDBResourceGroupWithUserOutcome(outcome.error()); + return SubmitSparkAppOutcome(outcome.error()); } -void AdbClient::unbindDBResourceGroupWithUserAsync(const UnbindDBResourceGroupWithUserRequest& request, const UnbindDBResourceGroupWithUserAsyncHandler& handler, const std::shared_ptr& context) const +void AdbClient::submitSparkAppAsync(const SubmitSparkAppRequest& request, const SubmitSparkAppAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, unbindDBResourceGroupWithUser(request), context); + handler(this, request, submitSparkApp(request), context); }; asyncExecute(new Runnable(fn)); } -AdbClient::UnbindDBResourceGroupWithUserOutcomeCallable AdbClient::unbindDBResourceGroupWithUserCallable(const UnbindDBResourceGroupWithUserRequest &request) const +AdbClient::SubmitSparkAppOutcomeCallable AdbClient::submitSparkAppCallable(const SubmitSparkAppRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->unbindDBResourceGroupWithUser(request); + return this->submitSparkApp(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -AdbClient::UnbindDBResourcePoolWithUserOutcome AdbClient::unbindDBResourcePoolWithUser(const UnbindDBResourcePoolWithUserRequest &request) const +AdbClient::SubmitSparkLogAnalyzeTaskOutcome AdbClient::submitSparkLogAnalyzeTask(const SubmitSparkLogAnalyzeTaskRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return UnbindDBResourcePoolWithUserOutcome(endpointOutcome.error()); + return SubmitSparkLogAnalyzeTaskOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return UnbindDBResourcePoolWithUserOutcome(UnbindDBResourcePoolWithUserResult(outcome.result())); + return SubmitSparkLogAnalyzeTaskOutcome(SubmitSparkLogAnalyzeTaskResult(outcome.result())); else - return UnbindDBResourcePoolWithUserOutcome(outcome.error()); + return SubmitSparkLogAnalyzeTaskOutcome(outcome.error()); } -void AdbClient::unbindDBResourcePoolWithUserAsync(const UnbindDBResourcePoolWithUserRequest& request, const UnbindDBResourcePoolWithUserAsyncHandler& handler, const std::shared_ptr& context) const +void AdbClient::submitSparkLogAnalyzeTaskAsync(const SubmitSparkLogAnalyzeTaskRequest& request, const SubmitSparkLogAnalyzeTaskAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, unbindDBResourcePoolWithUser(request), context); + handler(this, request, submitSparkLogAnalyzeTask(request), context); }; asyncExecute(new Runnable(fn)); } -AdbClient::UnbindDBResourcePoolWithUserOutcomeCallable AdbClient::unbindDBResourcePoolWithUserCallable(const UnbindDBResourcePoolWithUserRequest &request) const +AdbClient::SubmitSparkLogAnalyzeTaskOutcomeCallable AdbClient::submitSparkLogAnalyzeTaskCallable(const SubmitSparkLogAnalyzeTaskRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->unbindDBResourcePoolWithUser(request); + return this->submitSparkLogAnalyzeTask(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -AdbClient::UntagResourcesOutcome AdbClient::untagResources(const UntagResourcesRequest &request) const +AdbClient::UnbindAccountOutcome AdbClient::unbindAccount(const UnbindAccountRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return UntagResourcesOutcome(endpointOutcome.error()); + return UnbindAccountOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return UntagResourcesOutcome(UntagResourcesResult(outcome.result())); + return UnbindAccountOutcome(UnbindAccountResult(outcome.result())); else - return UntagResourcesOutcome(outcome.error()); + return UnbindAccountOutcome(outcome.error()); } -void AdbClient::untagResourcesAsync(const UntagResourcesRequest& request, const UntagResourcesAsyncHandler& handler, const std::shared_ptr& context) const +void AdbClient::unbindAccountAsync(const UnbindAccountRequest& request, const UnbindAccountAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, untagResources(request), context); + handler(this, request, unbindAccount(request), context); }; asyncExecute(new Runnable(fn)); } -AdbClient::UntagResourcesOutcomeCallable AdbClient::untagResourcesCallable(const UntagResourcesRequest &request) const +AdbClient::UnbindAccountOutcomeCallable AdbClient::unbindAccountCallable(const UnbindAccountRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->untagResources(request); + return this->unbindAccount(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AdbClient::UpdateSparkTemplateFileOutcome AdbClient::updateSparkTemplateFile(const UpdateSparkTemplateFileRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateSparkTemplateFileOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateSparkTemplateFileOutcome(UpdateSparkTemplateFileResult(outcome.result())); + else + return UpdateSparkTemplateFileOutcome(outcome.error()); +} + +void AdbClient::updateSparkTemplateFileAsync(const UpdateSparkTemplateFileRequest& request, const UpdateSparkTemplateFileAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateSparkTemplateFile(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AdbClient::UpdateSparkTemplateFileOutcomeCallable AdbClient::updateSparkTemplateFileCallable(const UpdateSparkTemplateFileRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateSparkTemplateFile(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); diff --git a/adb/src/model/AllocateClusterPublicConnectionRequest.cc b/adb/src/model/AllocateClusterPublicConnectionRequest.cc index 426a0995f..5715cebe3 100644 --- a/adb/src/model/AllocateClusterPublicConnectionRequest.cc +++ b/adb/src/model/AllocateClusterPublicConnectionRequest.cc @@ -19,21 +19,12 @@ using AlibabaCloud::Adb::Model::AllocateClusterPublicConnectionRequest; AllocateClusterPublicConnectionRequest::AllocateClusterPublicConnectionRequest() - : RpcServiceRequest("adb", "2019-03-15", "AllocateClusterPublicConnection") { + : RpcServiceRequest("adb", "2021-12-01", "AllocateClusterPublicConnection") { setMethod(HttpRequest::Method::Post); } AllocateClusterPublicConnectionRequest::~AllocateClusterPublicConnectionRequest() {} -long AllocateClusterPublicConnectionRequest::getResourceOwnerId() const { - return resourceOwnerId_; -} - -void AllocateClusterPublicConnectionRequest::setResourceOwnerId(long resourceOwnerId) { - resourceOwnerId_ = resourceOwnerId; - setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); -} - std::string AllocateClusterPublicConnectionRequest::getConnectionStringPrefix() const { return connectionStringPrefix_; } @@ -43,24 +34,6 @@ void AllocateClusterPublicConnectionRequest::setConnectionStringPrefix(const std setParameter(std::string("ConnectionStringPrefix"), connectionStringPrefix); } -std::string AllocateClusterPublicConnectionRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void AllocateClusterPublicConnectionRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string AllocateClusterPublicConnectionRequest::getResourceOwnerAccount() const { - return resourceOwnerAccount_; -} - -void AllocateClusterPublicConnectionRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); -} - std::string AllocateClusterPublicConnectionRequest::getDBClusterId() const { return dBClusterId_; } @@ -70,21 +43,12 @@ void AllocateClusterPublicConnectionRequest::setDBClusterId(const std::string &d setParameter(std::string("DBClusterId"), dBClusterId); } -std::string AllocateClusterPublicConnectionRequest::getOwnerAccount() const { - return ownerAccount_; +std::string AllocateClusterPublicConnectionRequest::getAccessKeyId() const { + return accessKeyId_; } -void AllocateClusterPublicConnectionRequest::setOwnerAccount(const std::string &ownerAccount) { - ownerAccount_ = ownerAccount; - setParameter(std::string("OwnerAccount"), ownerAccount); -} - -long AllocateClusterPublicConnectionRequest::getOwnerId() const { - return ownerId_; -} - -void AllocateClusterPublicConnectionRequest::setOwnerId(long ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), std::to_string(ownerId)); +void AllocateClusterPublicConnectionRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/adb/src/model/BindAccountRequest.cc b/adb/src/model/BindAccountRequest.cc new file mode 100644 index 000000000..ac0b48606 --- /dev/null +++ b/adb/src/model/BindAccountRequest.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::BindAccountRequest; + +BindAccountRequest::BindAccountRequest() + : RpcServiceRequest("adb", "2021-12-01", "BindAccount") { + setMethod(HttpRequest::Method::Post); +} + +BindAccountRequest::~BindAccountRequest() {} + +std::string BindAccountRequest::getDBClusterId() const { + return dBClusterId_; +} + +void BindAccountRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string BindAccountRequest::getRamUser() const { + return ramUser_; +} + +void BindAccountRequest::setRamUser(const std::string &ramUser) { + ramUser_ = ramUser; + setParameter(std::string("RamUser"), ramUser); +} + +std::string BindAccountRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void BindAccountRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string BindAccountRequest::getAccountName() const { + return accountName_; +} + +void BindAccountRequest::setAccountName(const std::string &accountName) { + accountName_ = accountName; + setParameter(std::string("AccountName"), accountName); +} + diff --git a/adb/src/model/KillProcessResult.cc b/adb/src/model/BindAccountResult.cc similarity index 78% rename from adb/src/model/KillProcessResult.cc rename to adb/src/model/BindAccountResult.cc index ada411bde..625651bf1 100644 --- a/adb/src/model/KillProcessResult.cc +++ b/adb/src/model/BindAccountResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Adb; using namespace AlibabaCloud::Adb::Model; -KillProcessResult::KillProcessResult() : +BindAccountResult::BindAccountResult() : ServiceResult() {} -KillProcessResult::KillProcessResult(const std::string &payload) : +BindAccountResult::BindAccountResult(const std::string &payload) : ServiceResult() { parse(payload); } -KillProcessResult::~KillProcessResult() +BindAccountResult::~BindAccountResult() {} -void KillProcessResult::parse(const std::string &payload) +void BindAccountResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; diff --git a/adb/src/model/BindDBResourceGroupWithUserRequest.cc b/adb/src/model/BindDBResourceGroupWithUserRequest.cc deleted file mode 100644 index 16a6f0f0e..000000000 --- a/adb/src/model/BindDBResourceGroupWithUserRequest.cc +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::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/BindDBResourcePoolWithUserRequest.cc b/adb/src/model/BindDBResourcePoolWithUserRequest.cc deleted file mode 100644 index 9f2d87947..000000000 --- a/adb/src/model/BindDBResourcePoolWithUserRequest.cc +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Adb::Model::BindDBResourcePoolWithUserRequest; - -BindDBResourcePoolWithUserRequest::BindDBResourcePoolWithUserRequest() - : RpcServiceRequest("adb", "2019-03-15", "BindDBResourcePoolWithUser") { - setMethod(HttpRequest::Method::Post); -} - -BindDBResourcePoolWithUserRequest::~BindDBResourcePoolWithUserRequest() {} - -std::string BindDBResourcePoolWithUserRequest::getPoolName() const { - return poolName_; -} - -void BindDBResourcePoolWithUserRequest::setPoolName(const std::string &poolName) { - poolName_ = poolName; - setParameter(std::string("PoolName"), poolName); -} - -long BindDBResourcePoolWithUserRequest::getResourceOwnerId() const { - return resourceOwnerId_; -} - -void BindDBResourcePoolWithUserRequest::setResourceOwnerId(long resourceOwnerId) { - resourceOwnerId_ = resourceOwnerId; - setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); -} - -std::string BindDBResourcePoolWithUserRequest::getPoolUser() const { - return poolUser_; -} - -void BindDBResourcePoolWithUserRequest::setPoolUser(const std::string &poolUser) { - poolUser_ = poolUser; - setParameter(std::string("PoolUser"), poolUser); -} - -std::string BindDBResourcePoolWithUserRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void BindDBResourcePoolWithUserRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string BindDBResourcePoolWithUserRequest::getResourceOwnerAccount() const { - return resourceOwnerAccount_; -} - -void BindDBResourcePoolWithUserRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); -} - -std::string BindDBResourcePoolWithUserRequest::getDBClusterId() const { - return dBClusterId_; -} - -void BindDBResourcePoolWithUserRequest::setDBClusterId(const std::string &dBClusterId) { - dBClusterId_ = dBClusterId; - setParameter(std::string("DBClusterId"), dBClusterId); -} - -std::string BindDBResourcePoolWithUserRequest::getOwnerAccount() const { - return ownerAccount_; -} - -void BindDBResourcePoolWithUserRequest::setOwnerAccount(const std::string &ownerAccount) { - ownerAccount_ = ownerAccount; - setParameter(std::string("OwnerAccount"), ownerAccount); -} - -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/CheckBindRamUserRequest.cc b/adb/src/model/CheckBindRamUserRequest.cc new file mode 100644 index 000000000..ea4370f6c --- /dev/null +++ b/adb/src/model/CheckBindRamUserRequest.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::CheckBindRamUserRequest; + +CheckBindRamUserRequest::CheckBindRamUserRequest() + : RpcServiceRequest("adb", "2021-12-01", "CheckBindRamUser") { + setMethod(HttpRequest::Method::Post); +} + +CheckBindRamUserRequest::~CheckBindRamUserRequest() {} + +std::string CheckBindRamUserRequest::getDBClusterId() const { + return dBClusterId_; +} + +void CheckBindRamUserRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string CheckBindRamUserRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void CheckBindRamUserRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string CheckBindRamUserRequest::getRegionId() const { + return regionId_; +} + +void CheckBindRamUserRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + diff --git a/adb/src/model/CreateDBResourcePoolResult.cc b/adb/src/model/CheckBindRamUserResult.cc similarity index 67% rename from adb/src/model/CreateDBResourcePoolResult.cc rename to adb/src/model/CheckBindRamUserResult.cc index c29ab7213..0f21d4a2a 100644 --- a/adb/src/model/CreateDBResourcePoolResult.cc +++ b/adb/src/model/CheckBindRamUserResult.cc @@ -14,31 +14,38 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Adb; using namespace AlibabaCloud::Adb::Model; -CreateDBResourcePoolResult::CreateDBResourcePoolResult() : +CheckBindRamUserResult::CheckBindRamUserResult() : ServiceResult() {} -CreateDBResourcePoolResult::CreateDBResourcePoolResult(const std::string &payload) : +CheckBindRamUserResult::CheckBindRamUserResult(const std::string &payload) : ServiceResult() { parse(payload); } -CreateDBResourcePoolResult::~CreateDBResourcePoolResult() +CheckBindRamUserResult::~CheckBindRamUserResult() {} -void CreateDBResourcePoolResult::parse(const std::string &payload) +void CheckBindRamUserResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + if(!value["Result"].isNull()) + result_ = value["Result"].asString() == "true"; } +bool CheckBindRamUserResult::getResult()const +{ + return result_; +} + diff --git a/adb/src/model/CreateAccountRequest.cc b/adb/src/model/CreateAccountRequest.cc index 9bde8d09a..19f4698d4 100644 --- a/adb/src/model/CreateAccountRequest.cc +++ b/adb/src/model/CreateAccountRequest.cc @@ -19,19 +19,19 @@ using AlibabaCloud::Adb::Model::CreateAccountRequest; CreateAccountRequest::CreateAccountRequest() - : RpcServiceRequest("adb", "2019-03-15", "CreateAccount") { + : RpcServiceRequest("adb", "2021-12-01", "CreateAccount") { setMethod(HttpRequest::Method::Post); } CreateAccountRequest::~CreateAccountRequest() {} -long CreateAccountRequest::getResourceOwnerId() const { - return resourceOwnerId_; +std::string CreateAccountRequest::getDBClusterId() const { + return dBClusterId_; } -void CreateAccountRequest::setResourceOwnerId(long resourceOwnerId) { - resourceOwnerId_ = resourceOwnerId; - setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +void CreateAccountRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); } std::string CreateAccountRequest::getAccountType() const { @@ -61,51 +61,6 @@ void CreateAccountRequest::setAccessKeyId(const std::string &accessKeyId) { setParameter(std::string("AccessKeyId"), accessKeyId); } -std::string CreateAccountRequest::getAccountName() const { - return accountName_; -} - -void CreateAccountRequest::setAccountName(const std::string &accountName) { - accountName_ = accountName; - setParameter(std::string("AccountName"), accountName); -} - -std::string CreateAccountRequest::getResourceOwnerAccount() const { - return resourceOwnerAccount_; -} - -void CreateAccountRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); -} - -std::string CreateAccountRequest::getDBClusterId() const { - return dBClusterId_; -} - -void CreateAccountRequest::setDBClusterId(const std::string &dBClusterId) { - dBClusterId_ = dBClusterId; - setParameter(std::string("DBClusterId"), dBClusterId); -} - -std::string CreateAccountRequest::getOwnerAccount() const { - return ownerAccount_; -} - -void CreateAccountRequest::setOwnerAccount(const std::string &ownerAccount) { - ownerAccount_ = ownerAccount; - setParameter(std::string("OwnerAccount"), ownerAccount); -} - -long CreateAccountRequest::getOwnerId() const { - return ownerId_; -} - -void CreateAccountRequest::setOwnerId(long ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), std::to_string(ownerId)); -} - std::string CreateAccountRequest::getAccountPassword() const { return accountPassword_; } @@ -115,3 +70,12 @@ void CreateAccountRequest::setAccountPassword(const std::string &accountPassword setParameter(std::string("AccountPassword"), accountPassword); } +std::string CreateAccountRequest::getAccountName() const { + return accountName_; +} + +void CreateAccountRequest::setAccountName(const std::string &accountName) { + accountName_ = accountName; + setParameter(std::string("AccountName"), accountName); +} + diff --git a/adb/src/model/CreateAccountResult.cc b/adb/src/model/CreateAccountResult.cc index 38b2d7c65..2c737a516 100644 --- a/adb/src/model/CreateAccountResult.cc +++ b/adb/src/model/CreateAccountResult.cc @@ -39,20 +39,6 @@ void CreateAccountResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["TaskId"].isNull()) - taskId_ = std::stoi(value["TaskId"].asString()); - if(!value["DBClusterId"].isNull()) - dBClusterId_ = value["DBClusterId"].asString(); } -int CreateAccountResult::getTaskId()const -{ - return taskId_; -} - -std::string CreateAccountResult::getDBClusterId()const -{ - return dBClusterId_; -} - diff --git a/adb/src/model/CreateDBClusterRequest.cc b/adb/src/model/CreateDBClusterRequest.cc index 0ccc25481..dc5a7284a 100644 --- a/adb/src/model/CreateDBClusterRequest.cc +++ b/adb/src/model/CreateDBClusterRequest.cc @@ -19,21 +19,12 @@ using AlibabaCloud::Adb::Model::CreateDBClusterRequest; CreateDBClusterRequest::CreateDBClusterRequest() - : RpcServiceRequest("adb", "2019-03-15", "CreateDBCluster") { + : RpcServiceRequest("adb", "2021-12-01", "CreateDBCluster") { setMethod(HttpRequest::Method::Post); } CreateDBClusterRequest::~CreateDBClusterRequest() {} -long CreateDBClusterRequest::getResourceOwnerId() const { - return resourceOwnerId_; -} - -void CreateDBClusterRequest::setResourceOwnerId(long resourceOwnerId) { - resourceOwnerId_ = resourceOwnerId; - setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); -} - std::string CreateDBClusterRequest::getDBClusterDescription() const { return dBClusterDescription_; } @@ -43,121 +34,13 @@ void CreateDBClusterRequest::setDBClusterDescription(const std::string &dBCluste setParameter(std::string("DBClusterDescription"), dBClusterDescription); } -std::string CreateDBClusterRequest::getStorageType() const { - return storageType_; +bool CreateDBClusterRequest::getEnableDefaultResourcePool() const { + return enableDefaultResourcePool_; } -void CreateDBClusterRequest::setStorageType(const std::string &storageType) { - storageType_ = storageType; - setParameter(std::string("StorageType"), storageType); -} - -std::string CreateDBClusterRequest::getMode() const { - return mode_; -} - -void CreateDBClusterRequest::setMode(const std::string &mode) { - mode_ = mode; - setParameter(std::string("Mode"), mode); -} - -std::string CreateDBClusterRequest::getResourceGroupId() const { - return resourceGroupId_; -} - -void CreateDBClusterRequest::setResourceGroupId(const std::string &resourceGroupId) { - resourceGroupId_ = resourceGroupId; - setParameter(std::string("ResourceGroupId"), resourceGroupId); -} - -std::string CreateDBClusterRequest::getPeriod() const { - return period_; -} - -void CreateDBClusterRequest::setPeriod(const std::string &period) { - period_ = period; - setParameter(std::string("Period"), period); -} - -std::string CreateDBClusterRequest::getBackupSetID() const { - return backupSetID_; -} - -void CreateDBClusterRequest::setBackupSetID(const std::string &backupSetID) { - backupSetID_ = backupSetID; - setParameter(std::string("BackupSetID"), backupSetID); -} - -long CreateDBClusterRequest::getOwnerId() const { - return ownerId_; -} - -void CreateDBClusterRequest::setOwnerId(long ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), std::to_string(ownerId)); -} - -std::string CreateDBClusterRequest::getDBNodeGroupCount() const { - return dBNodeGroupCount_; -} - -void CreateDBClusterRequest::setDBNodeGroupCount(const std::string &dBNodeGroupCount) { - dBNodeGroupCount_ = dBNodeGroupCount; - setParameter(std::string("DBNodeGroupCount"), dBNodeGroupCount); -} - -std::string CreateDBClusterRequest::getVSwitchId() const { - return vSwitchId_; -} - -void CreateDBClusterRequest::setVSwitchId(const std::string &vSwitchId) { - vSwitchId_ = vSwitchId; - setParameter(std::string("VSwitchId"), vSwitchId); -} - -std::string CreateDBClusterRequest::getZoneId() const { - return zoneId_; -} - -void CreateDBClusterRequest::setZoneId(const std::string &zoneId) { - zoneId_ = zoneId; - setParameter(std::string("ZoneId"), zoneId); -} - -std::string CreateDBClusterRequest::getComputeResource() const { - return computeResource_; -} - -void CreateDBClusterRequest::setComputeResource(const std::string &computeResource) { - computeResource_ = computeResource; - setParameter(std::string("ComputeResource"), computeResource); -} - -std::string CreateDBClusterRequest::getElasticIOResource() const { - return elasticIOResource_; -} - -void CreateDBClusterRequest::setElasticIOResource(const std::string &elasticIOResource) { - elasticIOResource_ = elasticIOResource; - setParameter(std::string("ElasticIOResource"), elasticIOResource); -} - -std::string CreateDBClusterRequest::getSourceDBInstanceName() const { - return sourceDBInstanceName_; -} - -void CreateDBClusterRequest::setSourceDBInstanceName(const std::string &sourceDBInstanceName) { - sourceDBInstanceName_ = sourceDBInstanceName; - setParameter(std::string("SourceDBInstanceName"), sourceDBInstanceName); -} - -std::string CreateDBClusterRequest::getClientToken() const { - return clientToken_; -} - -void CreateDBClusterRequest::setClientToken(const std::string &clientToken) { - clientToken_ = clientToken; - setParameter(std::string("ClientToken"), clientToken); +void CreateDBClusterRequest::setEnableDefaultResourcePool(bool enableDefaultResourcePool) { + enableDefaultResourcePool_ = enableDefaultResourcePool; + setParameter(std::string("EnableDefaultResourcePool"), enableDefaultResourcePool ? "true" : "false"); } std::string CreateDBClusterRequest::getAccessKeyId() const { @@ -187,15 +70,6 @@ void CreateDBClusterRequest::setRegionId(const std::string ®ionId) { setParameter(std::string("RegionId"), regionId); } -std::string CreateDBClusterRequest::getDBClusterCategory() const { - return dBClusterCategory_; -} - -void CreateDBClusterRequest::setDBClusterCategory(const std::string &dBClusterCategory) { - dBClusterCategory_ = dBClusterCategory; - setParameter(std::string("DBClusterCategory"), dBClusterCategory); -} - std::string CreateDBClusterRequest::getDBClusterNetworkType() const { return dBClusterNetworkType_; } @@ -205,31 +79,13 @@ void CreateDBClusterRequest::setDBClusterNetworkType(const std::string &dBCluste setParameter(std::string("DBClusterNetworkType"), dBClusterNetworkType); } -std::string CreateDBClusterRequest::getRestoreTime() const { - return restoreTime_; +std::string CreateDBClusterRequest::getPeriod() const { + return period_; } -void CreateDBClusterRequest::setRestoreTime(const std::string &restoreTime) { - restoreTime_ = restoreTime; - setParameter(std::string("RestoreTime"), restoreTime); -} - -std::string CreateDBClusterRequest::getResourceOwnerAccount() const { - return resourceOwnerAccount_; -} - -void CreateDBClusterRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); -} - -std::string CreateDBClusterRequest::getOwnerAccount() const { - return ownerAccount_; -} - -void CreateDBClusterRequest::setOwnerAccount(const std::string &ownerAccount) { - ownerAccount_ = ownerAccount; - setParameter(std::string("OwnerAccount"), ownerAccount); +void CreateDBClusterRequest::setPeriod(const std::string &period) { + period_ = period; + setParameter(std::string("Period"), period); } std::string CreateDBClusterRequest::getDBClusterVersion() const { @@ -241,15 +97,6 @@ void CreateDBClusterRequest::setDBClusterVersion(const std::string &dBClusterVer setParameter(std::string("DBClusterVersion"), dBClusterVersion); } -std::string CreateDBClusterRequest::getDBClusterClass() const { - return dBClusterClass_; -} - -void CreateDBClusterRequest::setDBClusterClass(const std::string &dBClusterClass) { - dBClusterClass_ = dBClusterClass; - setParameter(std::string("DBClusterClass"), dBClusterClass); -} - std::string CreateDBClusterRequest::getUsedTime() const { return usedTime_; } @@ -259,31 +106,13 @@ void CreateDBClusterRequest::setUsedTime(const std::string &usedTime) { setParameter(std::string("UsedTime"), usedTime); } -std::string CreateDBClusterRequest::getRestoreType() const { - return restoreType_; +std::string CreateDBClusterRequest::getVSwitchId() const { + return vSwitchId_; } -void CreateDBClusterRequest::setRestoreType(const std::string &restoreType) { - restoreType_ = restoreType; - setParameter(std::string("RestoreType"), restoreType); -} - -std::string CreateDBClusterRequest::getDBNodeStorage() const { - return dBNodeStorage_; -} - -void CreateDBClusterRequest::setDBNodeStorage(const std::string &dBNodeStorage) { - dBNodeStorage_ = dBNodeStorage; - setParameter(std::string("DBNodeStorage"), dBNodeStorage); -} - -std::string CreateDBClusterRequest::getExecutorCount() const { - return executorCount_; -} - -void CreateDBClusterRequest::setExecutorCount(const std::string &executorCount) { - executorCount_ = executorCount; - setParameter(std::string("ExecutorCount"), executorCount); +void CreateDBClusterRequest::setVSwitchId(const std::string &vSwitchId) { + vSwitchId_ = vSwitchId; + setParameter(std::string("VSwitchId"), vSwitchId); } std::string CreateDBClusterRequest::getVPCId() const { @@ -295,6 +124,24 @@ void CreateDBClusterRequest::setVPCId(const std::string &vPCId) { setParameter(std::string("VPCId"), vPCId); } +std::string CreateDBClusterRequest::getZoneId() const { + return zoneId_; +} + +void CreateDBClusterRequest::setZoneId(const std::string &zoneId) { + zoneId_ = zoneId; + setParameter(std::string("ZoneId"), zoneId); +} + +std::string CreateDBClusterRequest::getComputeResource() const { + return computeResource_; +} + +void CreateDBClusterRequest::setComputeResource(const std::string &computeResource) { + computeResource_ = computeResource; + setParameter(std::string("ComputeResource"), computeResource); +} + std::string CreateDBClusterRequest::getPayType() const { return payType_; } diff --git a/adb/src/model/CreateDBResourceGroupRequest.cc b/adb/src/model/CreateDBResourceGroupRequest.cc index d33d86507..66af1b455 100644 --- a/adb/src/model/CreateDBResourceGroupRequest.cc +++ b/adb/src/model/CreateDBResourceGroupRequest.cc @@ -19,28 +19,37 @@ using AlibabaCloud::Adb::Model::CreateDBResourceGroupRequest; CreateDBResourceGroupRequest::CreateDBResourceGroupRequest() - : RpcServiceRequest("adb", "2019-03-15", "CreateDBResourceGroup") { + : RpcServiceRequest("adb", "2021-12-01", "CreateDBResourceGroup") { setMethod(HttpRequest::Method::Post); } CreateDBResourceGroupRequest::~CreateDBResourceGroupRequest() {} -long CreateDBResourceGroupRequest::getResourceOwnerId() const { - return resourceOwnerId_; +std::string CreateDBResourceGroupRequest::getDBClusterId() const { + return dBClusterId_; } -void CreateDBResourceGroupRequest::setResourceOwnerId(long resourceOwnerId) { - resourceOwnerId_ = resourceOwnerId; - setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +void CreateDBResourceGroupRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); } -int CreateDBResourceGroupRequest::getNodeNum() const { - return nodeNum_; +std::string CreateDBResourceGroupRequest::getMinComputeResource() const { + return minComputeResource_; } -void CreateDBResourceGroupRequest::setNodeNum(int nodeNum) { - nodeNum_ = nodeNum; - setParameter(std::string("NodeNum"), std::to_string(nodeNum)); +void CreateDBResourceGroupRequest::setMinComputeResource(const std::string &minComputeResource) { + minComputeResource_ = minComputeResource; + setParameter(std::string("MinComputeResource"), minComputeResource); +} + +std::string CreateDBResourceGroupRequest::getGroupName() const { + return groupName_; +} + +void CreateDBResourceGroupRequest::setGroupName(const std::string &groupName) { + groupName_ = groupName; + setParameter(std::string("GroupName"), groupName); } std::string CreateDBResourceGroupRequest::getAccessKeyId() const { @@ -61,48 +70,12 @@ void CreateDBResourceGroupRequest::setGroupType(const std::string &groupType) { setParameter(std::string("GroupType"), groupType); } -std::string CreateDBResourceGroupRequest::getResourceOwnerAccount() const { - return resourceOwnerAccount_; +std::string CreateDBResourceGroupRequest::getMaxComputeResource() const { + return maxComputeResource_; } -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); +void CreateDBResourceGroupRequest::setMaxComputeResource(const std::string &maxComputeResource) { + maxComputeResource_ = maxComputeResource; + setParameter(std::string("MaxComputeResource"), maxComputeResource); } diff --git a/adb/src/model/CreateDBResourcePoolRequest.cc b/adb/src/model/CreateDBResourcePoolRequest.cc deleted file mode 100644 index 8566182f4..000000000 --- a/adb/src/model/CreateDBResourcePoolRequest.cc +++ /dev/null @@ -1,108 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Adb::Model::CreateDBResourcePoolRequest; - -CreateDBResourcePoolRequest::CreateDBResourcePoolRequest() - : RpcServiceRequest("adb", "2019-03-15", "CreateDBResourcePool") { - setMethod(HttpRequest::Method::Post); -} - -CreateDBResourcePoolRequest::~CreateDBResourcePoolRequest() {} - -std::string CreateDBResourcePoolRequest::getPoolName() const { - return poolName_; -} - -void CreateDBResourcePoolRequest::setPoolName(const std::string &poolName) { - poolName_ = poolName; - setParameter(std::string("PoolName"), poolName); -} - -long CreateDBResourcePoolRequest::getResourceOwnerId() const { - return resourceOwnerId_; -} - -void CreateDBResourcePoolRequest::setResourceOwnerId(long resourceOwnerId) { - resourceOwnerId_ = resourceOwnerId; - setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); -} - -int CreateDBResourcePoolRequest::getNodeNum() const { - return nodeNum_; -} - -void CreateDBResourcePoolRequest::setNodeNum(int nodeNum) { - nodeNum_ = nodeNum; - setParameter(std::string("NodeNum"), std::to_string(nodeNum)); -} - -std::string CreateDBResourcePoolRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void CreateDBResourcePoolRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string CreateDBResourcePoolRequest::getQueryType() const { - return queryType_; -} - -void CreateDBResourcePoolRequest::setQueryType(const std::string &queryType) { - queryType_ = queryType; - setParameter(std::string("QueryType"), queryType); -} - -std::string CreateDBResourcePoolRequest::getResourceOwnerAccount() const { - return resourceOwnerAccount_; -} - -void CreateDBResourcePoolRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); -} - -std::string CreateDBResourcePoolRequest::getDBClusterId() const { - return dBClusterId_; -} - -void CreateDBResourcePoolRequest::setDBClusterId(const std::string &dBClusterId) { - dBClusterId_ = dBClusterId; - setParameter(std::string("DBClusterId"), dBClusterId); -} - -std::string CreateDBResourcePoolRequest::getOwnerAccount() const { - return ownerAccount_; -} - -void CreateDBResourcePoolRequest::setOwnerAccount(const std::string &ownerAccount) { - ownerAccount_ = ownerAccount; - setParameter(std::string("OwnerAccount"), ownerAccount); -} - -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 deleted file mode 100644 index e92923895..000000000 --- a/adb/src/model/CreateElasticPlanRequest.cc +++ /dev/null @@ -1,162 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Adb::Model::CreateElasticPlanRequest; - -CreateElasticPlanRequest::CreateElasticPlanRequest() - : RpcServiceRequest("adb", "2019-03-15", "CreateElasticPlan") { - setMethod(HttpRequest::Method::Post); -} - -CreateElasticPlanRequest::~CreateElasticPlanRequest() {} - -long CreateElasticPlanRequest::getResourceOwnerId() const { - return resourceOwnerId_; -} - -void CreateElasticPlanRequest::setResourceOwnerId(long resourceOwnerId) { - resourceOwnerId_ = resourceOwnerId; - setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); -} - -std::string CreateElasticPlanRequest::getElasticPlanTimeStart() const { - return elasticPlanTimeStart_; -} - -void CreateElasticPlanRequest::setElasticPlanTimeStart(const std::string &elasticPlanTimeStart) { - elasticPlanTimeStart_ = elasticPlanTimeStart; - setParameter(std::string("ElasticPlanTimeStart"), elasticPlanTimeStart); -} - -std::string CreateElasticPlanRequest::getElasticPlanEndDay() const { - return elasticPlanEndDay_; -} - -void CreateElasticPlanRequest::setElasticPlanEndDay(const std::string &elasticPlanEndDay) { - elasticPlanEndDay_ = elasticPlanEndDay; - setParameter(std::string("ElasticPlanEndDay"), elasticPlanEndDay); -} - -std::string CreateElasticPlanRequest::getElasticPlanWeeklyRepeat() const { - return elasticPlanWeeklyRepeat_; -} - -void CreateElasticPlanRequest::setElasticPlanWeeklyRepeat(const std::string &elasticPlanWeeklyRepeat) { - elasticPlanWeeklyRepeat_ = elasticPlanWeeklyRepeat; - setParameter(std::string("ElasticPlanWeeklyRepeat"), elasticPlanWeeklyRepeat); -} - -std::string CreateElasticPlanRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void CreateElasticPlanRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -bool CreateElasticPlanRequest::getElasticPlanEnable() const { - return elasticPlanEnable_; -} - -void CreateElasticPlanRequest::setElasticPlanEnable(bool elasticPlanEnable) { - elasticPlanEnable_ = elasticPlanEnable; - setParameter(std::string("ElasticPlanEnable"), elasticPlanEnable ? "true" : "false"); -} - -std::string CreateElasticPlanRequest::getElasticPlanTimeEnd() const { - return elasticPlanTimeEnd_; -} - -void CreateElasticPlanRequest::setElasticPlanTimeEnd(const std::string &elasticPlanTimeEnd) { - elasticPlanTimeEnd_ = elasticPlanTimeEnd; - setParameter(std::string("ElasticPlanTimeEnd"), elasticPlanTimeEnd); -} - -std::string CreateElasticPlanRequest::getElasticPlanStartDay() const { - return elasticPlanStartDay_; -} - -void CreateElasticPlanRequest::setElasticPlanStartDay(const std::string &elasticPlanStartDay) { - elasticPlanStartDay_ = elasticPlanStartDay; - setParameter(std::string("ElasticPlanStartDay"), elasticPlanStartDay); -} - -std::string CreateElasticPlanRequest::getResourceOwnerAccount() const { - return resourceOwnerAccount_; -} - -void CreateElasticPlanRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); -} - -std::string CreateElasticPlanRequest::getDBClusterId() const { - return dBClusterId_; -} - -void CreateElasticPlanRequest::setDBClusterId(const std::string &dBClusterId) { - dBClusterId_ = dBClusterId; - setParameter(std::string("DBClusterId"), dBClusterId); -} - -std::string CreateElasticPlanRequest::getOwnerAccount() const { - return ownerAccount_; -} - -void CreateElasticPlanRequest::setOwnerAccount(const std::string &ownerAccount) { - ownerAccount_ = ownerAccount; - setParameter(std::string("OwnerAccount"), ownerAccount); -} - -long CreateElasticPlanRequest::getOwnerId() const { - return ownerId_; -} - -void CreateElasticPlanRequest::setOwnerId(long ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), std::to_string(ownerId)); -} - -std::string CreateElasticPlanRequest::getElasticPlanName() const { - return elasticPlanName_; -} - -void CreateElasticPlanRequest::setElasticPlanName(const std::string &elasticPlanName) { - elasticPlanName_ = elasticPlanName; - setParameter(std::string("ElasticPlanName"), elasticPlanName); -} - -std::string CreateElasticPlanRequest::getResourcePoolName() const { - return resourcePoolName_; -} - -void CreateElasticPlanRequest::setResourcePoolName(const std::string &resourcePoolName) { - resourcePoolName_ = resourcePoolName; - setParameter(std::string("ResourcePoolName"), resourcePoolName); -} - -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/CreateOssSubDirectoryRequest.cc b/adb/src/model/CreateOssSubDirectoryRequest.cc new file mode 100644 index 000000000..3fcbee03c --- /dev/null +++ b/adb/src/model/CreateOssSubDirectoryRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Adb::Model::CreateOssSubDirectoryRequest; + +CreateOssSubDirectoryRequest::CreateOssSubDirectoryRequest() + : RpcServiceRequest("adb", "2021-12-01", "CreateOssSubDirectory") { + setMethod(HttpRequest::Method::Post); +} + +CreateOssSubDirectoryRequest::~CreateOssSubDirectoryRequest() {} + +std::string CreateOssSubDirectoryRequest::getDBClusterId() const { + return dBClusterId_; +} + +void CreateOssSubDirectoryRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setBodyParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string CreateOssSubDirectoryRequest::getPath() const { + return path_; +} + +void CreateOssSubDirectoryRequest::setPath(const std::string &path) { + path_ = path; + setBodyParameter(std::string("Path"), path); +} + diff --git a/adb/src/model/CreateOssSubDirectoryResult.cc b/adb/src/model/CreateOssSubDirectoryResult.cc new file mode 100644 index 000000000..94e37c2fb --- /dev/null +++ b/adb/src/model/CreateOssSubDirectoryResult.cc @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Adb; +using namespace AlibabaCloud::Adb::Model; + +CreateOssSubDirectoryResult::CreateOssSubDirectoryResult() : + ServiceResult() +{} + +CreateOssSubDirectoryResult::CreateOssSubDirectoryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateOssSubDirectoryResult::~CreateOssSubDirectoryResult() +{} + +void CreateOssSubDirectoryResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["ClientCRC"].isNull()) + data_.clientCRC = std::stol(dataNode["ClientCRC"].asString()); + if(!dataNode["ETag"].isNull()) + data_.eTag = dataNode["ETag"].asString(); + if(!dataNode["RequestId"].isNull()) + data_.requestId = dataNode["RequestId"].asString(); + if(!dataNode["ServerCRC"].isNull()) + data_.serverCRC = std::stol(dataNode["ServerCRC"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stol(value["HttpStatusCode"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string CreateOssSubDirectoryResult::getMessage()const +{ + return message_; +} + +long CreateOssSubDirectoryResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +CreateOssSubDirectoryResult::Data CreateOssSubDirectoryResult::getData()const +{ + return data_; +} + +bool CreateOssSubDirectoryResult::getSuccess()const +{ + return success_; +} + diff --git a/adb/src/model/CreateSparkTemplateRequest.cc b/adb/src/model/CreateSparkTemplateRequest.cc new file mode 100644 index 000000000..681f6778c --- /dev/null +++ b/adb/src/model/CreateSparkTemplateRequest.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::CreateSparkTemplateRequest; + +CreateSparkTemplateRequest::CreateSparkTemplateRequest() + : RpcServiceRequest("adb", "2021-12-01", "CreateSparkTemplate") { + setMethod(HttpRequest::Method::Post); +} + +CreateSparkTemplateRequest::~CreateSparkTemplateRequest() {} + +std::string CreateSparkTemplateRequest::getDBClusterId() const { + return dBClusterId_; +} + +void CreateSparkTemplateRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setBodyParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string CreateSparkTemplateRequest::getAppType() const { + return appType_; +} + +void CreateSparkTemplateRequest::setAppType(const std::string &appType) { + appType_ = appType; + setBodyParameter(std::string("AppType"), appType); +} + +std::string CreateSparkTemplateRequest::getType() const { + return type_; +} + +void CreateSparkTemplateRequest::setType(const std::string &type) { + type_ = type; + setBodyParameter(std::string("Type"), type); +} + +long CreateSparkTemplateRequest::getParentId() const { + return parentId_; +} + +void CreateSparkTemplateRequest::setParentId(long parentId) { + parentId_ = parentId; + setBodyParameter(std::string("ParentId"), std::to_string(parentId)); +} + +std::string CreateSparkTemplateRequest::getName() const { + return name_; +} + +void CreateSparkTemplateRequest::setName(const std::string &name) { + name_ = name; + setBodyParameter(std::string("Name"), name); +} + diff --git a/adb/src/model/CreateSparkTemplateResult.cc b/adb/src/model/CreateSparkTemplateResult.cc new file mode 100644 index 000000000..02417bed4 --- /dev/null +++ b/adb/src/model/CreateSparkTemplateResult.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Adb; +using namespace AlibabaCloud::Adb::Model; + +CreateSparkTemplateResult::CreateSparkTemplateResult() : + ServiceResult() +{} + +CreateSparkTemplateResult::CreateSparkTemplateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateSparkTemplateResult::~CreateSparkTemplateResult() +{} + +void CreateSparkTemplateResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Succeeded"].isNull()) + data_.succeeded = dataNode["Succeeded"].asString() == "true"; + +} + +CreateSparkTemplateResult::Data CreateSparkTemplateResult::getData()const +{ + return data_; +} + diff --git a/adb/src/model/DeleteAccountRequest.cc b/adb/src/model/DeleteAccountRequest.cc index e4345d65d..f622c20a5 100644 --- a/adb/src/model/DeleteAccountRequest.cc +++ b/adb/src/model/DeleteAccountRequest.cc @@ -19,28 +19,19 @@ using AlibabaCloud::Adb::Model::DeleteAccountRequest; DeleteAccountRequest::DeleteAccountRequest() - : RpcServiceRequest("adb", "2019-03-15", "DeleteAccount") { + : RpcServiceRequest("adb", "2021-12-01", "DeleteAccount") { setMethod(HttpRequest::Method::Post); } DeleteAccountRequest::~DeleteAccountRequest() {} -long DeleteAccountRequest::getResourceOwnerId() const { - return resourceOwnerId_; +std::string DeleteAccountRequest::getDBClusterId() const { + return dBClusterId_; } -void DeleteAccountRequest::setResourceOwnerId(long resourceOwnerId) { - resourceOwnerId_ = resourceOwnerId; - setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); -} - -std::string DeleteAccountRequest::getAccountType() const { - return accountType_; -} - -void DeleteAccountRequest::setAccountType(const std::string &accountType) { - accountType_ = accountType; - setParameter(std::string("AccountType"), accountType); +void DeleteAccountRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); } std::string DeleteAccountRequest::getAccessKeyId() const { @@ -61,39 +52,3 @@ void DeleteAccountRequest::setAccountName(const std::string &accountName) { setParameter(std::string("AccountName"), accountName); } -std::string DeleteAccountRequest::getResourceOwnerAccount() const { - return resourceOwnerAccount_; -} - -void DeleteAccountRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); -} - -std::string DeleteAccountRequest::getDBClusterId() const { - return dBClusterId_; -} - -void DeleteAccountRequest::setDBClusterId(const std::string &dBClusterId) { - dBClusterId_ = dBClusterId; - setParameter(std::string("DBClusterId"), dBClusterId); -} - -std::string DeleteAccountRequest::getOwnerAccount() const { - return ownerAccount_; -} - -void DeleteAccountRequest::setOwnerAccount(const std::string &ownerAccount) { - ownerAccount_ = ownerAccount; - setParameter(std::string("OwnerAccount"), ownerAccount); -} - -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 9a6822505..e79073f4e 100644 --- a/adb/src/model/DeleteDBClusterRequest.cc +++ b/adb/src/model/DeleteDBClusterRequest.cc @@ -19,19 +19,19 @@ using AlibabaCloud::Adb::Model::DeleteDBClusterRequest; DeleteDBClusterRequest::DeleteDBClusterRequest() - : RpcServiceRequest("adb", "2019-03-15", "DeleteDBCluster") { + : RpcServiceRequest("adb", "2021-12-01", "DeleteDBCluster") { setMethod(HttpRequest::Method::Post); } DeleteDBClusterRequest::~DeleteDBClusterRequest() {} -long DeleteDBClusterRequest::getResourceOwnerId() const { - return resourceOwnerId_; +std::string DeleteDBClusterRequest::getDBClusterId() const { + return dBClusterId_; } -void DeleteDBClusterRequest::setResourceOwnerId(long resourceOwnerId) { - resourceOwnerId_ = resourceOwnerId; - setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +void DeleteDBClusterRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); } std::string DeleteDBClusterRequest::getAccessKeyId() const { @@ -43,39 +43,3 @@ void DeleteDBClusterRequest::setAccessKeyId(const std::string &accessKeyId) { setParameter(std::string("AccessKeyId"), accessKeyId); } -std::string DeleteDBClusterRequest::getResourceOwnerAccount() const { - return resourceOwnerAccount_; -} - -void DeleteDBClusterRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); -} - -std::string DeleteDBClusterRequest::getDBClusterId() const { - return dBClusterId_; -} - -void DeleteDBClusterRequest::setDBClusterId(const std::string &dBClusterId) { - dBClusterId_ = dBClusterId; - setParameter(std::string("DBClusterId"), dBClusterId); -} - -std::string DeleteDBClusterRequest::getOwnerAccount() const { - return ownerAccount_; -} - -void DeleteDBClusterRequest::setOwnerAccount(const std::string &ownerAccount) { - ownerAccount_ = ownerAccount; - setParameter(std::string("OwnerAccount"), ownerAccount); -} - -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/DeleteDBClusterResult.cc b/adb/src/model/DeleteDBClusterResult.cc index 7a9b713f6..e8a3cee0e 100644 --- a/adb/src/model/DeleteDBClusterResult.cc +++ b/adb/src/model/DeleteDBClusterResult.cc @@ -39,18 +39,11 @@ void DeleteDBClusterResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["TaskId"].isNull()) - taskId_ = std::stoi(value["TaskId"].asString()); if(!value["DBClusterId"].isNull()) dBClusterId_ = value["DBClusterId"].asString(); } -int DeleteDBClusterResult::getTaskId()const -{ - return taskId_; -} - std::string DeleteDBClusterResult::getDBClusterId()const { return dBClusterId_; diff --git a/adb/src/model/DeleteDBResourceGroupRequest.cc b/adb/src/model/DeleteDBResourceGroupRequest.cc index 8cf7a1d3c..7f3b7f68e 100644 --- a/adb/src/model/DeleteDBResourceGroupRequest.cc +++ b/adb/src/model/DeleteDBResourceGroupRequest.cc @@ -19,39 +19,12 @@ using AlibabaCloud::Adb::Model::DeleteDBResourceGroupRequest; DeleteDBResourceGroupRequest::DeleteDBResourceGroupRequest() - : RpcServiceRequest("adb", "2019-03-15", "DeleteDBResourceGroup") { + : RpcServiceRequest("adb", "2021-12-01", "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_; } @@ -61,24 +34,6 @@ void DeleteDBResourceGroupRequest::setDBClusterId(const std::string &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_; } @@ -88,3 +43,12 @@ void DeleteDBResourceGroupRequest::setGroupName(const std::string &groupName) { setParameter(std::string("GroupName"), groupName); } +std::string DeleteDBResourceGroupRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DeleteDBResourceGroupRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + diff --git a/adb/src/model/DeleteDBResourcePoolRequest.cc b/adb/src/model/DeleteDBResourcePoolRequest.cc deleted file mode 100644 index c06e28deb..000000000 --- a/adb/src/model/DeleteDBResourcePoolRequest.cc +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Adb::Model::DeleteDBResourcePoolRequest; - -DeleteDBResourcePoolRequest::DeleteDBResourcePoolRequest() - : RpcServiceRequest("adb", "2019-03-15", "DeleteDBResourcePool") { - setMethod(HttpRequest::Method::Post); -} - -DeleteDBResourcePoolRequest::~DeleteDBResourcePoolRequest() {} - -std::string DeleteDBResourcePoolRequest::getPoolName() const { - return poolName_; -} - -void DeleteDBResourcePoolRequest::setPoolName(const std::string &poolName) { - poolName_ = poolName; - setParameter(std::string("PoolName"), poolName); -} - -long DeleteDBResourcePoolRequest::getResourceOwnerId() const { - return resourceOwnerId_; -} - -void DeleteDBResourcePoolRequest::setResourceOwnerId(long resourceOwnerId) { - resourceOwnerId_ = resourceOwnerId; - setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); -} - -std::string DeleteDBResourcePoolRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void DeleteDBResourcePoolRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string DeleteDBResourcePoolRequest::getResourceOwnerAccount() const { - return resourceOwnerAccount_; -} - -void DeleteDBResourcePoolRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); -} - -std::string DeleteDBResourcePoolRequest::getDBClusterId() const { - return dBClusterId_; -} - -void DeleteDBResourcePoolRequest::setDBClusterId(const std::string &dBClusterId) { - dBClusterId_ = dBClusterId; - setParameter(std::string("DBClusterId"), dBClusterId); -} - -std::string DeleteDBResourcePoolRequest::getOwnerAccount() const { - return ownerAccount_; -} - -void DeleteDBResourcePoolRequest::setOwnerAccount(const std::string &ownerAccount) { - ownerAccount_ = ownerAccount; - setParameter(std::string("OwnerAccount"), ownerAccount); -} - -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 deleted file mode 100644 index 262facc1e..000000000 --- a/adb/src/model/DeleteElasticPlanRequest.cc +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Adb::Model::DeleteElasticPlanRequest; - -DeleteElasticPlanRequest::DeleteElasticPlanRequest() - : RpcServiceRequest("adb", "2019-03-15", "DeleteElasticPlan") { - setMethod(HttpRequest::Method::Post); -} - -DeleteElasticPlanRequest::~DeleteElasticPlanRequest() {} - -long DeleteElasticPlanRequest::getResourceOwnerId() const { - return resourceOwnerId_; -} - -void DeleteElasticPlanRequest::setResourceOwnerId(long resourceOwnerId) { - resourceOwnerId_ = resourceOwnerId; - setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); -} - -std::string DeleteElasticPlanRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void DeleteElasticPlanRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string DeleteElasticPlanRequest::getResourceOwnerAccount() const { - return resourceOwnerAccount_; -} - -void DeleteElasticPlanRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); -} - -std::string DeleteElasticPlanRequest::getDBClusterId() const { - return dBClusterId_; -} - -void DeleteElasticPlanRequest::setDBClusterId(const std::string &dBClusterId) { - dBClusterId_ = dBClusterId; - setParameter(std::string("DBClusterId"), dBClusterId); -} - -std::string DeleteElasticPlanRequest::getOwnerAccount() const { - return ownerAccount_; -} - -void DeleteElasticPlanRequest::setOwnerAccount(const std::string &ownerAccount) { - ownerAccount_ = ownerAccount; - setParameter(std::string("OwnerAccount"), ownerAccount); -} - -long DeleteElasticPlanRequest::getOwnerId() const { - return ownerId_; -} - -void DeleteElasticPlanRequest::setOwnerId(long ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), std::to_string(ownerId)); -} - -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/DeleteProcessInstanceRequest.cc b/adb/src/model/DeleteProcessInstanceRequest.cc new file mode 100644 index 000000000..04b8fbfb6 --- /dev/null +++ b/adb/src/model/DeleteProcessInstanceRequest.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::DeleteProcessInstanceRequest; + +DeleteProcessInstanceRequest::DeleteProcessInstanceRequest() + : RpcServiceRequest("adb", "2021-12-01", "DeleteProcessInstance") { + setMethod(HttpRequest::Method::Post); +} + +DeleteProcessInstanceRequest::~DeleteProcessInstanceRequest() {} + +long DeleteProcessInstanceRequest::getProjectCode() const { + return projectCode_; +} + +void DeleteProcessInstanceRequest::setProjectCode(long projectCode) { + projectCode_ = projectCode; + setParameter(std::string("ProjectCode"), std::to_string(projectCode)); +} + +std::string DeleteProcessInstanceRequest::getRegionId() const { + return regionId_; +} + +void DeleteProcessInstanceRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DeleteProcessInstanceRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DeleteProcessInstanceRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +long DeleteProcessInstanceRequest::getProcessInstanceId() const { + return processInstanceId_; +} + +void DeleteProcessInstanceRequest::setProcessInstanceId(long processInstanceId) { + processInstanceId_ = processInstanceId; + setParameter(std::string("ProcessInstanceId"), std::to_string(processInstanceId)); +} + diff --git a/adb/src/model/DescribeSchemasResult.cc b/adb/src/model/DeleteProcessInstanceResult.cc similarity index 53% rename from adb/src/model/DescribeSchemasResult.cc rename to adb/src/model/DeleteProcessInstanceResult.cc index bd969be57..8022e4109 100644 --- a/adb/src/model/DescribeSchemasResult.cc +++ b/adb/src/model/DeleteProcessInstanceResult.cc @@ -14,46 +14,52 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Adb; using namespace AlibabaCloud::Adb::Model; -DescribeSchemasResult::DescribeSchemasResult() : +DeleteProcessInstanceResult::DeleteProcessInstanceResult() : ServiceResult() {} -DescribeSchemasResult::DescribeSchemasResult(const std::string &payload) : +DeleteProcessInstanceResult::DeleteProcessInstanceResult(const std::string &payload) : ServiceResult() { parse(payload); } -DescribeSchemasResult::~DescribeSchemasResult() +DeleteProcessInstanceResult::~DeleteProcessInstanceResult() {} -void DescribeSchemasResult::parse(const std::string &payload) +void DeleteProcessInstanceResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allItemsNode = value["Items"]["Schema"]; - for (auto valueItemsSchema : allItemsNode) - { - Schema itemsObject; - if(!valueItemsSchema["DBClusterId"].isNull()) - itemsObject.dBClusterId = valueItemsSchema["DBClusterId"].asString(); - if(!valueItemsSchema["SchemaName"].isNull()) - itemsObject.schemaName = valueItemsSchema["SchemaName"].asString(); - items_.push_back(itemsObject); - } + if(!value["Data"].isNull()) + data_ = value["Data"].asString() == "true"; + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } -std::vector DescribeSchemasResult::getItems()const +std::string DeleteProcessInstanceResult::getMessage()const { - return items_; + return message_; +} + +bool DeleteProcessInstanceResult::getData()const +{ + return data_; +} + +bool DeleteProcessInstanceResult::getSuccess()const +{ + return success_; } diff --git a/adb/src/model/DeleteSparkTemplateFileRequest.cc b/adb/src/model/DeleteSparkTemplateFileRequest.cc new file mode 100644 index 000000000..a0cf5c3bc --- /dev/null +++ b/adb/src/model/DeleteSparkTemplateFileRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Adb::Model::DeleteSparkTemplateFileRequest; + +DeleteSparkTemplateFileRequest::DeleteSparkTemplateFileRequest() + : RpcServiceRequest("adb", "2021-12-01", "DeleteSparkTemplateFile") { + setMethod(HttpRequest::Method::Post); +} + +DeleteSparkTemplateFileRequest::~DeleteSparkTemplateFileRequest() {} + +std::string DeleteSparkTemplateFileRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DeleteSparkTemplateFileRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setBodyParameter(std::string("DBClusterId"), dBClusterId); +} + +long DeleteSparkTemplateFileRequest::getId() const { + return id_; +} + +void DeleteSparkTemplateFileRequest::setId(long id) { + id_ = id; + setBodyParameter(std::string("Id"), std::to_string(id)); +} + diff --git a/adb/src/model/ModifyMaintenanceActionResult.cc b/adb/src/model/DeleteSparkTemplateFileResult.cc similarity index 63% rename from adb/src/model/ModifyMaintenanceActionResult.cc rename to adb/src/model/DeleteSparkTemplateFileResult.cc index 96442ab1b..f8bb667fb 100644 --- a/adb/src/model/ModifyMaintenanceActionResult.cc +++ b/adb/src/model/DeleteSparkTemplateFileResult.cc @@ -14,38 +14,39 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Adb; using namespace AlibabaCloud::Adb::Model; -ModifyMaintenanceActionResult::ModifyMaintenanceActionResult() : +DeleteSparkTemplateFileResult::DeleteSparkTemplateFileResult() : ServiceResult() {} -ModifyMaintenanceActionResult::ModifyMaintenanceActionResult(const std::string &payload) : +DeleteSparkTemplateFileResult::DeleteSparkTemplateFileResult(const std::string &payload) : ServiceResult() { parse(payload); } -ModifyMaintenanceActionResult::~ModifyMaintenanceActionResult() +DeleteSparkTemplateFileResult::~DeleteSparkTemplateFileResult() {} -void ModifyMaintenanceActionResult::parse(const std::string &payload) +void DeleteSparkTemplateFileResult::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(); + auto dataNode = value["Data"]; + if(!dataNode["Succeeded"].isNull()) + data_.succeeded = dataNode["Succeeded"].asString() == "true"; } -std::string ModifyMaintenanceActionResult::getIds()const +DeleteSparkTemplateFileResult::Data DeleteSparkTemplateFileResult::getData()const { - return ids_; + return data_; } diff --git a/adb/src/model/DeleteSparkTemplateRequest.cc b/adb/src/model/DeleteSparkTemplateRequest.cc new file mode 100644 index 000000000..82f6ebf2f --- /dev/null +++ b/adb/src/model/DeleteSparkTemplateRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Adb::Model::DeleteSparkTemplateRequest; + +DeleteSparkTemplateRequest::DeleteSparkTemplateRequest() + : RpcServiceRequest("adb", "2021-12-01", "DeleteSparkTemplate") { + setMethod(HttpRequest::Method::Post); +} + +DeleteSparkTemplateRequest::~DeleteSparkTemplateRequest() {} + +std::string DeleteSparkTemplateRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DeleteSparkTemplateRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setBodyParameter(std::string("DBClusterId"), dBClusterId); +} + +long DeleteSparkTemplateRequest::getId() const { + return id_; +} + +void DeleteSparkTemplateRequest::setId(long id) { + id_ = id; + setBodyParameter(std::string("Id"), std::to_string(id)); +} + diff --git a/adb/src/model/DeleteSparkTemplateResult.cc b/adb/src/model/DeleteSparkTemplateResult.cc new file mode 100644 index 000000000..60de63575 --- /dev/null +++ b/adb/src/model/DeleteSparkTemplateResult.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Adb; +using namespace AlibabaCloud::Adb::Model; + +DeleteSparkTemplateResult::DeleteSparkTemplateResult() : + ServiceResult() +{} + +DeleteSparkTemplateResult::DeleteSparkTemplateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteSparkTemplateResult::~DeleteSparkTemplateResult() +{} + +void DeleteSparkTemplateResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Succeeded"].isNull()) + data_.succeeded = dataNode["Succeeded"].asString() == "true"; + +} + +DeleteSparkTemplateResult::Data DeleteSparkTemplateResult::getData()const +{ + return data_; +} + diff --git a/adb/src/model/DescribeAccountsRequest.cc b/adb/src/model/DescribeAccountsRequest.cc index ef0fb4527..d66744af6 100644 --- a/adb/src/model/DescribeAccountsRequest.cc +++ b/adb/src/model/DescribeAccountsRequest.cc @@ -19,28 +19,28 @@ using AlibabaCloud::Adb::Model::DescribeAccountsRequest; DescribeAccountsRequest::DescribeAccountsRequest() - : RpcServiceRequest("adb", "2019-03-15", "DescribeAccounts") { + : RpcServiceRequest("adb", "2021-12-01", "DescribeAccounts") { setMethod(HttpRequest::Method::Post); } DescribeAccountsRequest::~DescribeAccountsRequest() {} -long DescribeAccountsRequest::getResourceOwnerId() const { - return resourceOwnerId_; +std::string DescribeAccountsRequest::getDBClusterId() const { + return dBClusterId_; } -void DescribeAccountsRequest::setResourceOwnerId(long resourceOwnerId) { - resourceOwnerId_ = resourceOwnerId; - setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +void DescribeAccountsRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); } -std::string DescribeAccountsRequest::getAccountType() const { - return accountType_; +std::string DescribeAccountsRequest::getOwnerId() const { + return ownerId_; } -void DescribeAccountsRequest::setAccountType(const std::string &accountType) { - accountType_ = accountType; - setParameter(std::string("AccountType"), accountType); +void DescribeAccountsRequest::setOwnerId(const std::string &ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), ownerId); } std::string DescribeAccountsRequest::getAccessKeyId() const { @@ -61,39 +61,3 @@ void DescribeAccountsRequest::setAccountName(const std::string &accountName) { setParameter(std::string("AccountName"), accountName); } -std::string DescribeAccountsRequest::getResourceOwnerAccount() const { - return resourceOwnerAccount_; -} - -void DescribeAccountsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); -} - -std::string DescribeAccountsRequest::getDBClusterId() const { - return dBClusterId_; -} - -void DescribeAccountsRequest::setDBClusterId(const std::string &dBClusterId) { - dBClusterId_ = dBClusterId; - setParameter(std::string("DBClusterId"), dBClusterId); -} - -std::string DescribeAccountsRequest::getOwnerAccount() const { - return ownerAccount_; -} - -void DescribeAccountsRequest::setOwnerAccount(const std::string &ownerAccount) { - ownerAccount_ = ownerAccount; - setParameter(std::string("OwnerAccount"), ownerAccount); -} - -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 7a3672046..2002fa664 100644 --- a/adb/src/model/DescribeAccountsResult.cc +++ b/adb/src/model/DescribeAccountsResult.cc @@ -43,14 +43,16 @@ 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["RamUsers"].isNull()) + accountListObject.ramUsers = valueAccountListDBAccount["RamUsers"].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/DescribeAdbMySqlColumnsRequest.cc b/adb/src/model/DescribeAdbMySqlColumnsRequest.cc new file mode 100644 index 000000000..29880fca9 --- /dev/null +++ b/adb/src/model/DescribeAdbMySqlColumnsRequest.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::DescribeAdbMySqlColumnsRequest; + +DescribeAdbMySqlColumnsRequest::DescribeAdbMySqlColumnsRequest() + : RpcServiceRequest("adb", "2021-12-01", "DescribeAdbMySqlColumns") { + setMethod(HttpRequest::Method::Post); +} + +DescribeAdbMySqlColumnsRequest::~DescribeAdbMySqlColumnsRequest() {} + +std::string DescribeAdbMySqlColumnsRequest::getSchema() const { + return schema_; +} + +void DescribeAdbMySqlColumnsRequest::setSchema(const std::string &schema) { + schema_ = schema; + setParameter(std::string("Schema"), schema); +} + +std::string DescribeAdbMySqlColumnsRequest::getRegionId() const { + return regionId_; +} + +void DescribeAdbMySqlColumnsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DescribeAdbMySqlColumnsRequest::getTableName() const { + return tableName_; +} + +void DescribeAdbMySqlColumnsRequest::setTableName(const std::string &tableName) { + tableName_ = tableName; + setParameter(std::string("TableName"), tableName); +} + +std::string DescribeAdbMySqlColumnsRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DescribeAdbMySqlColumnsRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + diff --git a/adb/src/model/DescribeAdbMySqlColumnsResult.cc b/adb/src/model/DescribeAdbMySqlColumnsResult.cc new file mode 100644 index 000000000..4de40cd74 --- /dev/null +++ b/adb/src/model/DescribeAdbMySqlColumnsResult.cc @@ -0,0 +1,96 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Adb; +using namespace AlibabaCloud::Adb::Model; + +DescribeAdbMySqlColumnsResult::DescribeAdbMySqlColumnsResult() : + ServiceResult() +{} + +DescribeAdbMySqlColumnsResult::DescribeAdbMySqlColumnsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAdbMySqlColumnsResult::~DescribeAdbMySqlColumnsResult() +{} + +void DescribeAdbMySqlColumnsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allColumnsNode = value["Columns"]["Column"]; + for (auto valueColumnsColumn : allColumnsNode) + { + Column columnsObject; + if(!valueColumnsColumn["Type"].isNull()) + columnsObject.type = valueColumnsColumn["Type"].asString(); + if(!valueColumnsColumn["Name"].isNull()) + columnsObject.name = valueColumnsColumn["Name"].asString(); + if(!valueColumnsColumn["Comment"].isNull()) + columnsObject.comment = valueColumnsColumn["Comment"].asString(); + columns_.push_back(columnsObject); + } + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Schema"].isNull()) + schema_ = value["Schema"].asString(); + if(!value["TableName"].isNull()) + tableName_ = value["TableName"].asString(); + if(!value["ColumnCount"].isNull()) + columnCount_ = std::stoi(value["ColumnCount"].asString()); + +} + +std::string DescribeAdbMySqlColumnsResult::getTableName()const +{ + return tableName_; +} + +int DescribeAdbMySqlColumnsResult::getColumnCount()const +{ + return columnCount_; +} + +std::string DescribeAdbMySqlColumnsResult::getMessage()const +{ + return message_; +} + +std::string DescribeAdbMySqlColumnsResult::getSchema()const +{ + return schema_; +} + +std::vector DescribeAdbMySqlColumnsResult::getColumns()const +{ + return columns_; +} + +bool DescribeAdbMySqlColumnsResult::getSuccess()const +{ + return success_; +} + diff --git a/adb/src/model/DescribeAdbMySqlSchemasRequest.cc b/adb/src/model/DescribeAdbMySqlSchemasRequest.cc new file mode 100644 index 000000000..b1fe34ab4 --- /dev/null +++ b/adb/src/model/DescribeAdbMySqlSchemasRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Adb::Model::DescribeAdbMySqlSchemasRequest; + +DescribeAdbMySqlSchemasRequest::DescribeAdbMySqlSchemasRequest() + : RpcServiceRequest("adb", "2021-12-01", "DescribeAdbMySqlSchemas") { + setMethod(HttpRequest::Method::Post); +} + +DescribeAdbMySqlSchemasRequest::~DescribeAdbMySqlSchemasRequest() {} + +std::string DescribeAdbMySqlSchemasRequest::getRegionId() const { + return regionId_; +} + +void DescribeAdbMySqlSchemasRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DescribeAdbMySqlSchemasRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DescribeAdbMySqlSchemasRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + diff --git a/adb/src/model/DescribeAdbMySqlSchemasResult.cc b/adb/src/model/DescribeAdbMySqlSchemasResult.cc new file mode 100644 index 000000000..22b448ca0 --- /dev/null +++ b/adb/src/model/DescribeAdbMySqlSchemasResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Adb; +using namespace AlibabaCloud::Adb::Model; + +DescribeAdbMySqlSchemasResult::DescribeAdbMySqlSchemasResult() : + ServiceResult() +{} + +DescribeAdbMySqlSchemasResult::DescribeAdbMySqlSchemasResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAdbMySqlSchemasResult::~DescribeAdbMySqlSchemasResult() +{} + +void DescribeAdbMySqlSchemasResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allSchemas = value["Schemas"]["Schema"]; + for (const auto &item : allSchemas) + schemas_.push_back(item.asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string DescribeAdbMySqlSchemasResult::getMessage()const +{ + return message_; +} + +std::vector DescribeAdbMySqlSchemasResult::getSchemas()const +{ + return schemas_; +} + +bool DescribeAdbMySqlSchemasResult::getSuccess()const +{ + return success_; +} + diff --git a/adb/src/model/DescribeAdbMySqlTablesRequest.cc b/adb/src/model/DescribeAdbMySqlTablesRequest.cc new file mode 100644 index 000000000..38b86c8d0 --- /dev/null +++ b/adb/src/model/DescribeAdbMySqlTablesRequest.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::DescribeAdbMySqlTablesRequest; + +DescribeAdbMySqlTablesRequest::DescribeAdbMySqlTablesRequest() + : RpcServiceRequest("adb", "2021-12-01", "DescribeAdbMySqlTables") { + setMethod(HttpRequest::Method::Post); +} + +DescribeAdbMySqlTablesRequest::~DescribeAdbMySqlTablesRequest() {} + +std::string DescribeAdbMySqlTablesRequest::getSchema() const { + return schema_; +} + +void DescribeAdbMySqlTablesRequest::setSchema(const std::string &schema) { + schema_ = schema; + setParameter(std::string("Schema"), schema); +} + +std::string DescribeAdbMySqlTablesRequest::getRegionId() const { + return regionId_; +} + +void DescribeAdbMySqlTablesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DescribeAdbMySqlTablesRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DescribeAdbMySqlTablesRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + diff --git a/adb/src/model/DescribeAdbMySqlTablesResult.cc b/adb/src/model/DescribeAdbMySqlTablesResult.cc new file mode 100644 index 000000000..67b0e872d --- /dev/null +++ b/adb/src/model/DescribeAdbMySqlTablesResult.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Adb; +using namespace AlibabaCloud::Adb::Model; + +DescribeAdbMySqlTablesResult::DescribeAdbMySqlTablesResult() : + ServiceResult() +{} + +DescribeAdbMySqlTablesResult::DescribeAdbMySqlTablesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAdbMySqlTablesResult::~DescribeAdbMySqlTablesResult() +{} + +void DescribeAdbMySqlTablesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allTables = value["Tables"]["Table"]; + for (const auto &item : allTables) + tables_.push_back(item.asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Schema"].isNull()) + schema_ = value["Schema"].asString(); + +} + +std::string DescribeAdbMySqlTablesResult::getMessage()const +{ + return message_; +} + +std::string DescribeAdbMySqlTablesResult::getSchema()const +{ + return schema_; +} + +std::vector DescribeAdbMySqlTablesResult::getTables()const +{ + return tables_; +} + +bool DescribeAdbMySqlTablesResult::getSuccess()const +{ + return success_; +} + diff --git a/adb/src/model/DescribeAllAccountsRequest.cc b/adb/src/model/DescribeAllAccountsRequest.cc deleted file mode 100644 index 889821f0d..000000000 --- a/adb/src/model/DescribeAllAccountsRequest.cc +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#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_; -} - -void DescribeAllAccountsRequest::setResourceOwnerId(long resourceOwnerId) { - resourceOwnerId_ = resourceOwnerId; - setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); -} - -std::string DescribeAllAccountsRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void DescribeAllAccountsRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string DescribeAllAccountsRequest::getResourceOwnerAccount() const { - return resourceOwnerAccount_; -} - -void DescribeAllAccountsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); -} - -std::string DescribeAllAccountsRequest::getDBClusterId() const { - return dBClusterId_; -} - -void DescribeAllAccountsRequest::setDBClusterId(const std::string &dBClusterId) { - dBClusterId_ = dBClusterId; - setParameter(std::string("DBClusterId"), dBClusterId); -} - -std::string DescribeAllAccountsRequest::getOwnerAccount() const { - return ownerAccount_; -} - -void DescribeAllAccountsRequest::setOwnerAccount(const std::string &ownerAccount) { - ownerAccount_ = ownerAccount; - setParameter(std::string("OwnerAccount"), ownerAccount); -} - -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 deleted file mode 100644 index 4db1ba516..000000000 --- a/adb/src/model/DescribeAllDataSourceRequest.cc +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Adb::Model::DescribeAllDataSourceRequest; - -DescribeAllDataSourceRequest::DescribeAllDataSourceRequest() - : RpcServiceRequest("adb", "2019-03-15", "DescribeAllDataSource") { - setMethod(HttpRequest::Method::Post); -} - -DescribeAllDataSourceRequest::~DescribeAllDataSourceRequest() {} - -long DescribeAllDataSourceRequest::getResourceOwnerId() const { - return resourceOwnerId_; -} - -void DescribeAllDataSourceRequest::setResourceOwnerId(long resourceOwnerId) { - resourceOwnerId_ = resourceOwnerId; - setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); -} - -std::string DescribeAllDataSourceRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void DescribeAllDataSourceRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string DescribeAllDataSourceRequest::getTableName() const { - return tableName_; -} - -void DescribeAllDataSourceRequest::setTableName(const std::string &tableName) { - tableName_ = tableName; - setParameter(std::string("TableName"), tableName); -} - -std::string DescribeAllDataSourceRequest::getSchemaName() const { - return schemaName_; -} - -void DescribeAllDataSourceRequest::setSchemaName(const std::string &schemaName) { - schemaName_ = schemaName; - setParameter(std::string("SchemaName"), schemaName); -} - -std::string DescribeAllDataSourceRequest::getResourceOwnerAccount() const { - return resourceOwnerAccount_; -} - -void DescribeAllDataSourceRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); -} - -std::string DescribeAllDataSourceRequest::getDBClusterId() const { - return dBClusterId_; -} - -void DescribeAllDataSourceRequest::setDBClusterId(const std::string &dBClusterId) { - dBClusterId_ = dBClusterId; - setParameter(std::string("DBClusterId"), dBClusterId); -} - -std::string DescribeAllDataSourceRequest::getOwnerAccount() const { - return ownerAccount_; -} - -void DescribeAllDataSourceRequest::setOwnerAccount(const std::string &ownerAccount) { - ownerAccount_ = ownerAccount; - setParameter(std::string("OwnerAccount"), ownerAccount); -} - -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 deleted file mode 100644 index 16335d6d4..000000000 --- a/adb/src/model/DescribeAllDataSourceResult.cc +++ /dev/null @@ -1,101 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Adb; -using namespace AlibabaCloud::Adb::Model; - -DescribeAllDataSourceResult::DescribeAllDataSourceResult() : - ServiceResult() -{} - -DescribeAllDataSourceResult::DescribeAllDataSourceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeAllDataSourceResult::~DescribeAllDataSourceResult() -{} - -void DescribeAllDataSourceResult::parse(const std::string &payload) -{ - Json::Reader reader; - 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) - { - Schema schemasObject; - if(!valueSchemasSchema["DBClusterId"].isNull()) - schemasObject.dBClusterId = valueSchemasSchema["DBClusterId"].asString(); - if(!valueSchemasSchema["SchemaName"].isNull()) - schemasObject.schemaName = valueSchemasSchema["SchemaName"].asString(); - schemas_.push_back(schemasObject); - } - -} - -std::vector DescribeAllDataSourceResult::getTables()const -{ - return tables_; -} - -std::vector DescribeAllDataSourceResult::getColumns()const -{ - return columns_; -} - -std::vector DescribeAllDataSourceResult::getSchemas()const -{ - return schemas_; -} - diff --git a/adb/src/model/DescribeApsActionLogsRequest.cc b/adb/src/model/DescribeApsActionLogsRequest.cc new file mode 100644 index 000000000..8d34a8368 --- /dev/null +++ b/adb/src/model/DescribeApsActionLogsRequest.cc @@ -0,0 +1,162 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Adb::Model::DescribeApsActionLogsRequest; + +DescribeApsActionLogsRequest::DescribeApsActionLogsRequest() + : RpcServiceRequest("adb", "2021-12-01", "DescribeApsActionLogs") { + setMethod(HttpRequest::Method::Post); +} + +DescribeApsActionLogsRequest::~DescribeApsActionLogsRequest() {} + +long DescribeApsActionLogsRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeApsActionLogsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribeApsActionLogsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeApsActionLogsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeApsActionLogsRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DescribeApsActionLogsRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string DescribeApsActionLogsRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeApsActionLogsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +std::string DescribeApsActionLogsRequest::getEndTime() const { + return endTime_; +} + +void DescribeApsActionLogsRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); +} + +std::string DescribeApsActionLogsRequest::getStartTime() const { + return startTime_; +} + +void DescribeApsActionLogsRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); +} + +long DescribeApsActionLogsRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeApsActionLogsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +int DescribeApsActionLogsRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeApsActionLogsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string DescribeApsActionLogsRequest::getStage() const { + return stage_; +} + +void DescribeApsActionLogsRequest::setStage(const std::string &stage) { + stage_ = stage; + setParameter(std::string("Stage"), stage); +} + +std::string DescribeApsActionLogsRequest::getRegionId() const { + return regionId_; +} + +void DescribeApsActionLogsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DescribeApsActionLogsRequest::getProxyUser() const { + return proxyUser_; +} + +void DescribeApsActionLogsRequest::setProxyUser(const std::string &proxyUser) { + proxyUser_ = proxyUser; + setParameter(std::string("ProxyUser"), proxyUser); +} + +std::string DescribeApsActionLogsRequest::getWorkloadId() const { + return workloadId_; +} + +void DescribeApsActionLogsRequest::setWorkloadId(const std::string &workloadId) { + workloadId_ = workloadId; + setParameter(std::string("WorkloadId"), workloadId); +} + +int DescribeApsActionLogsRequest::getPageSize() const { + return pageSize_; +} + +void DescribeApsActionLogsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string DescribeApsActionLogsRequest::getState() const { + return state_; +} + +void DescribeApsActionLogsRequest::setState(const std::string &state) { + state_ = state; + setParameter(std::string("State"), state); +} + +std::string DescribeApsActionLogsRequest::getKeyword() const { + return keyword_; +} + +void DescribeApsActionLogsRequest::setKeyword(const std::string &keyword) { + keyword_ = keyword; + setParameter(std::string("Keyword"), keyword); +} + diff --git a/adb/src/model/DescribeApsActionLogsResult.cc b/adb/src/model/DescribeApsActionLogsResult.cc new file mode 100644 index 000000000..1976afce9 --- /dev/null +++ b/adb/src/model/DescribeApsActionLogsResult.cc @@ -0,0 +1,98 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Adb; +using namespace AlibabaCloud::Adb::Model; + +DescribeApsActionLogsResult::DescribeApsActionLogsResult() : + ServiceResult() +{} + +DescribeApsActionLogsResult::DescribeApsActionLogsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeApsActionLogsResult::~DescribeApsActionLogsResult() +{} + +void DescribeApsActionLogsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allActionLogsNode = value["ActionLogs"]["SlowLogRecord"]; + for (auto valueActionLogsSlowLogRecord : allActionLogsNode) + { + SlowLogRecord actionLogsObject; + if(!valueActionLogsSlowLogRecord["Time"].isNull()) + actionLogsObject.time = valueActionLogsSlowLogRecord["Time"].asString(); + if(!valueActionLogsSlowLogRecord["Stage"].isNull()) + actionLogsObject.stage = valueActionLogsSlowLogRecord["Stage"].asString(); + if(!valueActionLogsSlowLogRecord["State"].isNull()) + actionLogsObject.state = valueActionLogsSlowLogRecord["State"].asString(); + if(!valueActionLogsSlowLogRecord["Context"].isNull()) + actionLogsObject.context = valueActionLogsSlowLogRecord["Context"].asString(); + actionLogs_.push_back(actionLogsObject); + } + if(!value["DBClusterId"].isNull()) + dBClusterId_ = value["DBClusterId"].asString(); + if(!value["WorkloadId"].isNull()) + workloadId_ = value["WorkloadId"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = value["TotalCount"].asString(); + if(!value["PageSize"].isNull()) + pageSize_ = value["PageSize"].asString(); + if(!value["PageNumber"].isNull()) + pageNumber_ = value["PageNumber"].asString(); + +} + +std::string DescribeApsActionLogsResult::getTotalCount()const +{ + return totalCount_; +} + +std::string DescribeApsActionLogsResult::getPageSize()const +{ + return pageSize_; +} + +std::string DescribeApsActionLogsResult::getWorkloadId()const +{ + return workloadId_; +} + +std::string DescribeApsActionLogsResult::getPageNumber()const +{ + return pageNumber_; +} + +std::string DescribeApsActionLogsResult::getDBClusterId()const +{ + return dBClusterId_; +} + +std::vector DescribeApsActionLogsResult::getActionLogs()const +{ + return actionLogs_; +} + diff --git a/adb/src/model/DescribeApsResourceGroupsRequest.cc b/adb/src/model/DescribeApsResourceGroupsRequest.cc new file mode 100644 index 000000000..cafd7f696 --- /dev/null +++ b/adb/src/model/DescribeApsResourceGroupsRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Adb::Model::DescribeApsResourceGroupsRequest; + +DescribeApsResourceGroupsRequest::DescribeApsResourceGroupsRequest() + : RpcServiceRequest("adb", "2021-12-01", "DescribeApsResourceGroups") { + setMethod(HttpRequest::Method::Post); +} + +DescribeApsResourceGroupsRequest::~DescribeApsResourceGroupsRequest() {} + +std::string DescribeApsResourceGroupsRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DescribeApsResourceGroupsRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setBodyParameter(std::string("DBClusterId"), dBClusterId); +} + diff --git a/adb/src/model/DescribeApsResourceGroupsResult.cc b/adb/src/model/DescribeApsResourceGroupsResult.cc new file mode 100644 index 000000000..66f13a4dc --- /dev/null +++ b/adb/src/model/DescribeApsResourceGroupsResult.cc @@ -0,0 +1,92 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Adb; +using namespace AlibabaCloud::Adb::Model; + +DescribeApsResourceGroupsResult::DescribeApsResourceGroupsResult() : + ServiceResult() +{} + +DescribeApsResourceGroupsResult::DescribeApsResourceGroupsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeApsResourceGroupsResult::~DescribeApsResourceGroupsResult() +{} + +void DescribeApsResourceGroupsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Step"].isNull()) + data_.step = std::stol(dataNode["Step"].asString()); + auto allResourceGroupsNode = dataNode["ResourceGroups"]["validPoolsInfo"]; + for (auto dataNodeResourceGroupsvalidPoolsInfo : allResourceGroupsNode) + { + Data::ValidPoolsInfo validPoolsInfoObject; + if(!dataNodeResourceGroupsvalidPoolsInfo["MaxComputeResource"].isNull()) + validPoolsInfoObject.maxComputeResource = std::stoi(dataNodeResourceGroupsvalidPoolsInfo["MaxComputeResource"].asString()); + if(!dataNodeResourceGroupsvalidPoolsInfo["MinComputeResource"].isNull()) + validPoolsInfoObject.minComputeResource = std::stoi(dataNodeResourceGroupsvalidPoolsInfo["MinComputeResource"].asString()); + if(!dataNodeResourceGroupsvalidPoolsInfo["GroupName"].isNull()) + validPoolsInfoObject.groupName = dataNodeResourceGroupsvalidPoolsInfo["GroupName"].asString(); + if(!dataNodeResourceGroupsvalidPoolsInfo["GroupType"].isNull()) + validPoolsInfoObject.groupType = dataNodeResourceGroupsvalidPoolsInfo["GroupType"].asString(); + if(!dataNodeResourceGroupsvalidPoolsInfo["Available"].isNull()) + validPoolsInfoObject.available = dataNodeResourceGroupsvalidPoolsInfo["Available"].asString() == "true"; + auto allCuOptions = value["CuOptions"]["cuOptions"]; + for (auto value : allCuOptions) + validPoolsInfoObject.cuOptions.push_back(value.asString()); + data_.resourceGroups.push_back(validPoolsInfoObject); + } + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stol(value["HttpStatusCode"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string DescribeApsResourceGroupsResult::getMessage()const +{ + return message_; +} + +long DescribeApsResourceGroupsResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +DescribeApsResourceGroupsResult::Data DescribeApsResourceGroupsResult::getData()const +{ + return data_; +} + +bool DescribeApsResourceGroupsResult::getSuccess()const +{ + return success_; +} + diff --git a/adb/src/model/DescribeAuditLogConfigRequest.cc b/adb/src/model/DescribeAuditLogConfigRequest.cc index c4d439f49..165705de4 100644 --- a/adb/src/model/DescribeAuditLogConfigRequest.cc +++ b/adb/src/model/DescribeAuditLogConfigRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Adb::Model::DescribeAuditLogConfigRequest; DescribeAuditLogConfigRequest::DescribeAuditLogConfigRequest() - : RpcServiceRequest("adb", "2019-03-15", "DescribeAuditLogConfig") { + : RpcServiceRequest("adb", "2021-12-01", "DescribeAuditLogConfig") { setMethod(HttpRequest::Method::Post); } diff --git a/adb/src/model/DescribeAuditLogRecordsRequest.cc b/adb/src/model/DescribeAuditLogRecordsRequest.cc index 9e264a225..6b70c8354 100644 --- a/adb/src/model/DescribeAuditLogRecordsRequest.cc +++ b/adb/src/model/DescribeAuditLogRecordsRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Adb::Model::DescribeAuditLogRecordsRequest; DescribeAuditLogRecordsRequest::DescribeAuditLogRecordsRequest() - : RpcServiceRequest("adb", "2019-03-15", "DescribeAuditLogRecords") { + : RpcServiceRequest("adb", "2021-12-01", "DescribeAuditLogRecords") { setMethod(HttpRequest::Method::Post); } @@ -79,6 +79,15 @@ void DescribeAuditLogRecordsRequest::setRegionId(const std::string ®ionId) { setParameter(std::string("RegionId"), regionId); } +std::string DescribeAuditLogRecordsRequest::getProxyUser() const { + return proxyUser_; +} + +void DescribeAuditLogRecordsRequest::setProxyUser(const std::string &proxyUser) { + proxyUser_ = proxyUser; + setParameter(std::string("ProxyUser"), proxyUser); +} + int DescribeAuditLogRecordsRequest::getPageSize() const { return pageSize_; } diff --git a/adb/src/model/DescribeAutoRenewAttributeRequest.cc b/adb/src/model/DescribeAutoRenewAttributeRequest.cc deleted file mode 100644 index a3d06edd7..000000000 --- a/adb/src/model/DescribeAutoRenewAttributeRequest.cc +++ /dev/null @@ -1,117 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Adb::Model::DescribeAutoRenewAttributeRequest; - -DescribeAutoRenewAttributeRequest::DescribeAutoRenewAttributeRequest() - : RpcServiceRequest("adb", "2019-03-15", "DescribeAutoRenewAttribute") { - setMethod(HttpRequest::Method::Post); -} - -DescribeAutoRenewAttributeRequest::~DescribeAutoRenewAttributeRequest() {} - -long DescribeAutoRenewAttributeRequest::getResourceOwnerId() const { - return resourceOwnerId_; -} - -void DescribeAutoRenewAttributeRequest::setResourceOwnerId(long resourceOwnerId) { - resourceOwnerId_ = resourceOwnerId; - setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); -} - -int DescribeAutoRenewAttributeRequest::getPageNumber() const { - return pageNumber_; -} - -void DescribeAutoRenewAttributeRequest::setPageNumber(int pageNumber) { - pageNumber_ = pageNumber; - setParameter(std::string("PageNumber"), std::to_string(pageNumber)); -} - -std::string DescribeAutoRenewAttributeRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void DescribeAutoRenewAttributeRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string DescribeAutoRenewAttributeRequest::getResourceGroupId() const { - return resourceGroupId_; -} - -void DescribeAutoRenewAttributeRequest::setResourceGroupId(const std::string &resourceGroupId) { - resourceGroupId_ = resourceGroupId; - setParameter(std::string("ResourceGroupId"), resourceGroupId); -} - -std::string DescribeAutoRenewAttributeRequest::getRegionId() const { - return regionId_; -} - -void DescribeAutoRenewAttributeRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - -int DescribeAutoRenewAttributeRequest::getPageSize() const { - return pageSize_; -} - -void DescribeAutoRenewAttributeRequest::setPageSize(int pageSize) { - pageSize_ = pageSize; - setParameter(std::string("PageSize"), std::to_string(pageSize)); -} - -std::string DescribeAutoRenewAttributeRequest::getResourceOwnerAccount() const { - return resourceOwnerAccount_; -} - -void DescribeAutoRenewAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); -} - -std::string DescribeAutoRenewAttributeRequest::getOwnerAccount() const { - return ownerAccount_; -} - -void DescribeAutoRenewAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { - ownerAccount_ = ownerAccount; - setParameter(std::string("OwnerAccount"), ownerAccount); -} - -long DescribeAutoRenewAttributeRequest::getOwnerId() const { - return ownerId_; -} - -void DescribeAutoRenewAttributeRequest::setOwnerId(long ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), std::to_string(ownerId)); -} - -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 deleted file mode 100644 index 6108d7f83..000000000 --- a/adb/src/model/DescribeAutoRenewAttributeResult.cc +++ /dev/null @@ -1,88 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Adb; -using namespace AlibabaCloud::Adb::Model; - -DescribeAutoRenewAttributeResult::DescribeAutoRenewAttributeResult() : - ServiceResult() -{} - -DescribeAutoRenewAttributeResult::DescribeAutoRenewAttributeResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeAutoRenewAttributeResult::~DescribeAutoRenewAttributeResult() -{} - -void DescribeAutoRenewAttributeResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allItemsNode = value["Items"]["AutoRenewAttribute"]; - for (auto valueItemsAutoRenewAttribute : allItemsNode) - { - AutoRenewAttribute itemsObject; - if(!valueItemsAutoRenewAttribute["DBClusterId"].isNull()) - itemsObject.dBClusterId = valueItemsAutoRenewAttribute["DBClusterId"].asString(); - if(!valueItemsAutoRenewAttribute["PeriodUnit"].isNull()) - itemsObject.periodUnit = valueItemsAutoRenewAttribute["PeriodUnit"].asString(); - if(!valueItemsAutoRenewAttribute["Duration"].isNull()) - itemsObject.duration = std::stoi(valueItemsAutoRenewAttribute["Duration"].asString()); - if(!valueItemsAutoRenewAttribute["RenewalStatus"].isNull()) - itemsObject.renewalStatus = valueItemsAutoRenewAttribute["RenewalStatus"].asString(); - if(!valueItemsAutoRenewAttribute["AutoRenewEnabled"].isNull()) - itemsObject.autoRenewEnabled = valueItemsAutoRenewAttribute["AutoRenewEnabled"].asString() == "true"; - if(!valueItemsAutoRenewAttribute["RegionId"].isNull()) - itemsObject.regionId = valueItemsAutoRenewAttribute["RegionId"].asString(); - items_.push_back(itemsObject); - } - if(!value["TotalRecordCount"].isNull()) - totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString()); - if(!value["PageRecordCount"].isNull()) - pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); - -} - -int DescribeAutoRenewAttributeResult::getTotalRecordCount()const -{ - return totalRecordCount_; -} - -int DescribeAutoRenewAttributeResult::getPageRecordCount()const -{ - return pageRecordCount_; -} - -int DescribeAutoRenewAttributeResult::getPageNumber()const -{ - return pageNumber_; -} - -std::vector DescribeAutoRenewAttributeResult::getItems()const -{ - return items_; -} - diff --git a/adb/src/model/DescribeAvailableResourceRequest.cc b/adb/src/model/DescribeAvailableResourceRequest.cc deleted file mode 100644 index bb1680163..000000000 --- a/adb/src/model/DescribeAvailableResourceRequest.cc +++ /dev/null @@ -1,108 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Adb::Model::DescribeAvailableResourceRequest; - -DescribeAvailableResourceRequest::DescribeAvailableResourceRequest() - : RpcServiceRequest("adb", "2019-03-15", "DescribeAvailableResource") { - setMethod(HttpRequest::Method::Post); -} - -DescribeAvailableResourceRequest::~DescribeAvailableResourceRequest() {} - -long DescribeAvailableResourceRequest::getResourceOwnerId() const { - return resourceOwnerId_; -} - -void DescribeAvailableResourceRequest::setResourceOwnerId(long resourceOwnerId) { - resourceOwnerId_ = resourceOwnerId; - setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); -} - -std::string DescribeAvailableResourceRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void DescribeAvailableResourceRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string DescribeAvailableResourceRequest::getRegionId() const { - return regionId_; -} - -void DescribeAvailableResourceRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - -std::string DescribeAvailableResourceRequest::getResourceOwnerAccount() const { - return resourceOwnerAccount_; -} - -void DescribeAvailableResourceRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); -} - -std::string DescribeAvailableResourceRequest::getOwnerAccount() const { - return ownerAccount_; -} - -void DescribeAvailableResourceRequest::setOwnerAccount(const std::string &ownerAccount) { - ownerAccount_ = ownerAccount; - setParameter(std::string("OwnerAccount"), ownerAccount); -} - -long DescribeAvailableResourceRequest::getOwnerId() const { - return ownerId_; -} - -void DescribeAvailableResourceRequest::setOwnerId(long ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), std::to_string(ownerId)); -} - -std::string DescribeAvailableResourceRequest::getAcceptLanguage() const { - return acceptLanguage_; -} - -void DescribeAvailableResourceRequest::setAcceptLanguage(const std::string &acceptLanguage) { - acceptLanguage_ = acceptLanguage; - setParameter(std::string("AcceptLanguage"), acceptLanguage); -} - -std::string DescribeAvailableResourceRequest::getZoneId() const { - return zoneId_; -} - -void DescribeAvailableResourceRequest::setZoneId(const std::string &zoneId) { - zoneId_ = zoneId; - setParameter(std::string("ZoneId"), zoneId); -} - -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 deleted file mode 100644 index c48cf2811..000000000 --- a/adb/src/model/DescribeAvailableResourceResult.cc +++ /dev/null @@ -1,140 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Adb; -using namespace AlibabaCloud::Adb::Model; - -DescribeAvailableResourceResult::DescribeAvailableResourceResult() : - ServiceResult() -{} - -DescribeAvailableResourceResult::DescribeAvailableResourceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeAvailableResourceResult::~DescribeAvailableResourceResult() -{} - -void DescribeAvailableResourceResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allAvailableZoneListNode = value["AvailableZoneList"]["AvailableZone"]; - for (auto valueAvailableZoneListAvailableZone : allAvailableZoneListNode) - { - AvailableZone availableZoneListObject; - if(!valueAvailableZoneListAvailableZone["ZoneId"].isNull()) - availableZoneListObject.zoneId = valueAvailableZoneListAvailableZone["ZoneId"].asString(); - auto allSupportedModeNode = valueAvailableZoneListAvailableZone["SupportedMode"]["SupportedModeItem"]; - for (auto valueAvailableZoneListAvailableZoneSupportedModeSupportedModeItem : allSupportedModeNode) - { - AvailableZone::SupportedModeItem supportedModeObject; - if(!valueAvailableZoneListAvailableZoneSupportedModeSupportedModeItem["Mode"].isNull()) - supportedModeObject.mode = valueAvailableZoneListAvailableZoneSupportedModeSupportedModeItem["Mode"].asString(); - auto allSupportedSerialListNode = valueAvailableZoneListAvailableZoneSupportedModeSupportedModeItem["SupportedSerialList"]["SupportedSerialListItem"]; - for (auto valueAvailableZoneListAvailableZoneSupportedModeSupportedModeItemSupportedSerialListSupportedSerialListItem : allSupportedSerialListNode) - { - AvailableZone::SupportedModeItem::SupportedSerialListItem supportedSerialListObject; - if(!valueAvailableZoneListAvailableZoneSupportedModeSupportedModeItemSupportedSerialListSupportedSerialListItem["Serial"].isNull()) - supportedSerialListObject.serial = valueAvailableZoneListAvailableZoneSupportedModeSupportedModeItemSupportedSerialListSupportedSerialListItem["Serial"].asString(); - auto allSupportedFlexibleResourceNode = valueAvailableZoneListAvailableZoneSupportedModeSupportedModeItemSupportedSerialListSupportedSerialListItem["SupportedFlexibleResource"]["SupportedFlexibleResourceItem"]; - for (auto valueAvailableZoneListAvailableZoneSupportedModeSupportedModeItemSupportedSerialListSupportedSerialListItemSupportedFlexibleResourceSupportedFlexibleResourceItem : allSupportedFlexibleResourceNode) - { - AvailableZone::SupportedModeItem::SupportedSerialListItem::SupportedFlexibleResourceItem supportedFlexibleResourceObject; - 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(); - 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"]; - for (auto valueAvailableZoneListAvailableZoneSupportedModeSupportedModeItemSupportedSerialListSupportedSerialListItemSupportedInstanceClassListSupportedInstanceClass : allSupportedInstanceClassListNode) - { - AvailableZone::SupportedModeItem::SupportedSerialListItem::SupportedInstanceClass supportedInstanceClassListObject; - if(!valueAvailableZoneListAvailableZoneSupportedModeSupportedModeItemSupportedSerialListSupportedSerialListItemSupportedInstanceClassListSupportedInstanceClass["InstanceClass"].isNull()) - supportedInstanceClassListObject.instanceClass = valueAvailableZoneListAvailableZoneSupportedModeSupportedModeItemSupportedSerialListSupportedSerialListItemSupportedInstanceClassListSupportedInstanceClass["InstanceClass"].asString(); - if(!valueAvailableZoneListAvailableZoneSupportedModeSupportedModeItemSupportedSerialListSupportedSerialListItemSupportedInstanceClassListSupportedInstanceClass["Tips"].isNull()) - supportedInstanceClassListObject.tips = valueAvailableZoneListAvailableZoneSupportedModeSupportedModeItemSupportedSerialListSupportedSerialListItemSupportedInstanceClassListSupportedInstanceClass["Tips"].asString(); - auto allSupportedNodeCountListNode = valueAvailableZoneListAvailableZoneSupportedModeSupportedModeItemSupportedSerialListSupportedSerialListItemSupportedInstanceClassListSupportedInstanceClass["SupportedNodeCountList"]["SupportedNodeCount"]; - for (auto valueAvailableZoneListAvailableZoneSupportedModeSupportedModeItemSupportedSerialListSupportedSerialListItemSupportedInstanceClassListSupportedInstanceClassSupportedNodeCountListSupportedNodeCount : allSupportedNodeCountListNode) - { - 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(); - auto allStorageSize = value["StorageSize"]["StorageSize"]; - for (auto value : allStorageSize) - supportedNodeCountListObject.storageSize.push_back(value.asString()); - supportedInstanceClassListObject.supportedNodeCountList.push_back(supportedNodeCountListObject); - } - auto allSupportedExecutorListNode = valueAvailableZoneListAvailableZoneSupportedModeSupportedModeItemSupportedSerialListSupportedSerialListItemSupportedInstanceClassListSupportedInstanceClass["SupportedExecutorList"]["SupportedExecutor"]; - for (auto valueAvailableZoneListAvailableZoneSupportedModeSupportedModeItemSupportedSerialListSupportedSerialListItemSupportedInstanceClassListSupportedInstanceClassSupportedExecutorListSupportedExecutor : allSupportedExecutorListNode) - { - 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(); - supportedInstanceClassListObject.supportedExecutorList.push_back(supportedExecutorListObject); - } - supportedSerialListObject.supportedInstanceClassList.push_back(supportedInstanceClassListObject); - } - supportedModeObject.supportedSerialList.push_back(supportedSerialListObject); - } - availableZoneListObject.supportedMode.push_back(supportedModeObject); - } - availableZoneList_.push_back(availableZoneListObject); - } - if(!value["RegionId"].isNull()) - regionId_ = value["RegionId"].asString(); - -} - -std::string DescribeAvailableResourceResult::getRegionId()const -{ - return regionId_; -} - -std::vector DescribeAvailableResourceResult::getAvailableZoneList()const -{ - return availableZoneList_; -} - diff --git a/adb/src/model/DescribeBackupPolicyRequest.cc b/adb/src/model/DescribeBackupPolicyRequest.cc index c831ec3ed..fb707bc85 100644 --- a/adb/src/model/DescribeBackupPolicyRequest.cc +++ b/adb/src/model/DescribeBackupPolicyRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Adb::Model::DescribeBackupPolicyRequest; DescribeBackupPolicyRequest::DescribeBackupPolicyRequest() - : RpcServiceRequest("adb", "2019-03-15", "DescribeBackupPolicy") { + : RpcServiceRequest("adb", "2021-12-01", "DescribeBackupPolicy") { setMethod(HttpRequest::Method::Post); } diff --git a/adb/src/model/DescribeBackupsRequest.cc b/adb/src/model/DescribeBackupsRequest.cc index 47510c4cd..376d69124 100644 --- a/adb/src/model/DescribeBackupsRequest.cc +++ b/adb/src/model/DescribeBackupsRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Adb::Model::DescribeBackupsRequest; DescribeBackupsRequest::DescribeBackupsRequest() - : RpcServiceRequest("adb", "2019-03-15", "DescribeBackups") { + : RpcServiceRequest("adb", "2021-12-01", "DescribeBackups") { setMethod(HttpRequest::Method::Post); } diff --git a/adb/src/model/DescribeClusterAccessWhiteListRequest.cc b/adb/src/model/DescribeClusterAccessWhiteListRequest.cc new file mode 100644 index 000000000..b59ff9fab --- /dev/null +++ b/adb/src/model/DescribeClusterAccessWhiteListRequest.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::DescribeClusterAccessWhiteListRequest; + +DescribeClusterAccessWhiteListRequest::DescribeClusterAccessWhiteListRequest() + : RpcServiceRequest("adb", "2021-12-01", "DescribeClusterAccessWhiteList") { + setMethod(HttpRequest::Method::Post); +} + +DescribeClusterAccessWhiteListRequest::~DescribeClusterAccessWhiteListRequest() {} + +std::string DescribeClusterAccessWhiteListRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeClusterAccessWhiteListRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribeClusterAccessWhiteListRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeClusterAccessWhiteListRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeClusterAccessWhiteListRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DescribeClusterAccessWhiteListRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + diff --git a/adb/src/model/DescribeDBClusterAccessWhiteListResult.cc b/adb/src/model/DescribeClusterAccessWhiteListResult.cc similarity index 73% rename from adb/src/model/DescribeDBClusterAccessWhiteListResult.cc rename to adb/src/model/DescribeClusterAccessWhiteListResult.cc index 93d23a01f..15972b257 100644 --- a/adb/src/model/DescribeDBClusterAccessWhiteListResult.cc +++ b/adb/src/model/DescribeClusterAccessWhiteListResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Adb; using namespace AlibabaCloud::Adb::Model; -DescribeDBClusterAccessWhiteListResult::DescribeDBClusterAccessWhiteListResult() : +DescribeClusterAccessWhiteListResult::DescribeClusterAccessWhiteListResult() : ServiceResult() {} -DescribeDBClusterAccessWhiteListResult::DescribeDBClusterAccessWhiteListResult(const std::string &payload) : +DescribeClusterAccessWhiteListResult::DescribeClusterAccessWhiteListResult(const std::string &payload) : ServiceResult() { parse(payload); } -DescribeDBClusterAccessWhiteListResult::~DescribeDBClusterAccessWhiteListResult() +DescribeClusterAccessWhiteListResult::~DescribeClusterAccessWhiteListResult() {} -void DescribeDBClusterAccessWhiteListResult::parse(const std::string &payload) +void DescribeClusterAccessWhiteListResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; @@ -54,7 +54,7 @@ void DescribeDBClusterAccessWhiteListResult::parse(const std::string &payload) } -std::vector DescribeDBClusterAccessWhiteListResult::getItems()const +std::vector DescribeClusterAccessWhiteListResult::getItems()const { return items_; } diff --git a/adb/src/model/DescribeClusterNetInfoRequest.cc b/adb/src/model/DescribeClusterNetInfoRequest.cc new file mode 100644 index 000000000..8da0b7099 --- /dev/null +++ b/adb/src/model/DescribeClusterNetInfoRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Adb::Model::DescribeClusterNetInfoRequest; + +DescribeClusterNetInfoRequest::DescribeClusterNetInfoRequest() + : RpcServiceRequest("adb", "2021-12-01", "DescribeClusterNetInfo") { + setMethod(HttpRequest::Method::Post); +} + +DescribeClusterNetInfoRequest::~DescribeClusterNetInfoRequest() {} + +std::string DescribeClusterNetInfoRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DescribeClusterNetInfoRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string DescribeClusterNetInfoRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeClusterNetInfoRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + diff --git a/adb/src/model/DescribeDBClusterNetInfoResult.cc b/adb/src/model/DescribeClusterNetInfoResult.cc similarity index 79% rename from adb/src/model/DescribeDBClusterNetInfoResult.cc rename to adb/src/model/DescribeClusterNetInfoResult.cc index 7db4b7e46..1e9eb7524 100644 --- a/adb/src/model/DescribeDBClusterNetInfoResult.cc +++ b/adb/src/model/DescribeClusterNetInfoResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Adb; using namespace AlibabaCloud::Adb::Model; -DescribeDBClusterNetInfoResult::DescribeDBClusterNetInfoResult() : +DescribeClusterNetInfoResult::DescribeClusterNetInfoResult() : ServiceResult() {} -DescribeDBClusterNetInfoResult::DescribeDBClusterNetInfoResult(const std::string &payload) : +DescribeClusterNetInfoResult::DescribeClusterNetInfoResult(const std::string &payload) : ServiceResult() { parse(payload); } -DescribeDBClusterNetInfoResult::~DescribeDBClusterNetInfoResult() +DescribeClusterNetInfoResult::~DescribeClusterNetInfoResult() {} -void DescribeDBClusterNetInfoResult::parse(const std::string &payload) +void DescribeClusterNetInfoResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; @@ -64,12 +64,12 @@ void DescribeDBClusterNetInfoResult::parse(const std::string &payload) } -std::string DescribeDBClusterNetInfoResult::getClusterNetworkType()const +std::string DescribeClusterNetInfoResult::getClusterNetworkType()const { return clusterNetworkType_; } -std::vector DescribeDBClusterNetInfoResult::getItems()const +std::vector DescribeClusterNetInfoResult::getItems()const { return items_; } diff --git a/adb/src/model/DescribeColumnsRequest.cc b/adb/src/model/DescribeColumnsRequest.cc deleted file mode 100644 index 349640c3b..000000000 --- a/adb/src/model/DescribeColumnsRequest.cc +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Adb::Model::DescribeColumnsRequest; - -DescribeColumnsRequest::DescribeColumnsRequest() - : RpcServiceRequest("adb", "2019-03-15", "DescribeColumns") { - setMethod(HttpRequest::Method::Post); -} - -DescribeColumnsRequest::~DescribeColumnsRequest() {} - -long DescribeColumnsRequest::getResourceOwnerId() const { - return resourceOwnerId_; -} - -void DescribeColumnsRequest::setResourceOwnerId(long resourceOwnerId) { - resourceOwnerId_ = resourceOwnerId; - setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); -} - -std::string DescribeColumnsRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void DescribeColumnsRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string DescribeColumnsRequest::getTableName() const { - return tableName_; -} - -void DescribeColumnsRequest::setTableName(const std::string &tableName) { - tableName_ = tableName; - setParameter(std::string("TableName"), tableName); -} - -std::string DescribeColumnsRequest::getSchemaName() const { - return schemaName_; -} - -void DescribeColumnsRequest::setSchemaName(const std::string &schemaName) { - schemaName_ = schemaName; - setParameter(std::string("SchemaName"), schemaName); -} - -std::string DescribeColumnsRequest::getResourceOwnerAccount() const { - return resourceOwnerAccount_; -} - -void DescribeColumnsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); -} - -std::string DescribeColumnsRequest::getDBClusterId() const { - return dBClusterId_; -} - -void DescribeColumnsRequest::setDBClusterId(const std::string &dBClusterId) { - dBClusterId_ = dBClusterId; - setParameter(std::string("DBClusterId"), dBClusterId); -} - -std::string DescribeColumnsRequest::getOwnerAccount() const { - return ownerAccount_; -} - -void DescribeColumnsRequest::setOwnerAccount(const std::string &ownerAccount) { - ownerAccount_ = ownerAccount; - setParameter(std::string("OwnerAccount"), ownerAccount); -} - -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 deleted file mode 100644 index f91a100aa..000000000 --- a/adb/src/model/DescribeColumnsResult.cc +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Adb; -using namespace AlibabaCloud::Adb::Model; - -DescribeColumnsResult::DescribeColumnsResult() : - ServiceResult() -{} - -DescribeColumnsResult::DescribeColumnsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeColumnsResult::~DescribeColumnsResult() -{} - -void DescribeColumnsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allItemsNode = value["Items"]["Column"]; - for (auto valueItemsColumn : allItemsNode) - { - Column itemsObject; - if(!valueItemsColumn["Type"].isNull()) - itemsObject.type = valueItemsColumn["Type"].asString(); - 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); - } - -} - -std::vector DescribeColumnsResult::getItems()const -{ - return items_; -} - diff --git a/adb/src/model/DescribeConnectionCountRecordsRequest.cc b/adb/src/model/DescribeConnectionCountRecordsRequest.cc deleted file mode 100644 index 508192cc4..000000000 --- a/adb/src/model/DescribeConnectionCountRecordsRequest.cc +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#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_; -} - -void DescribeConnectionCountRecordsRequest::setResourceOwnerId(long resourceOwnerId) { - resourceOwnerId_ = resourceOwnerId; - setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); -} - -std::string DescribeConnectionCountRecordsRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void DescribeConnectionCountRecordsRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string DescribeConnectionCountRecordsRequest::getResourceOwnerAccount() const { - return resourceOwnerAccount_; -} - -void DescribeConnectionCountRecordsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); -} - -std::string DescribeConnectionCountRecordsRequest::getDBClusterId() const { - return dBClusterId_; -} - -void DescribeConnectionCountRecordsRequest::setDBClusterId(const std::string &dBClusterId) { - dBClusterId_ = dBClusterId; - setParameter(std::string("DBClusterId"), dBClusterId); -} - -std::string DescribeConnectionCountRecordsRequest::getOwnerAccount() const { - return ownerAccount_; -} - -void DescribeConnectionCountRecordsRequest::setOwnerAccount(const std::string &ownerAccount) { - ownerAccount_ = ownerAccount; - setParameter(std::string("OwnerAccount"), ownerAccount); -} - -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 deleted file mode 100644 index f12c644ad..000000000 --- a/adb/src/model/DescribeConnectionCountRecordsResult.cc +++ /dev/null @@ -1,88 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Adb; -using namespace AlibabaCloud::Adb::Model; - -DescribeConnectionCountRecordsResult::DescribeConnectionCountRecordsResult() : - ServiceResult() -{} - -DescribeConnectionCountRecordsResult::DescribeConnectionCountRecordsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeConnectionCountRecordsResult::~DescribeConnectionCountRecordsResult() -{} - -void DescribeConnectionCountRecordsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allAccessIpRecordsNode = value["AccessIpRecords"]["AccessIps"]; - for (auto valueAccessIpRecordsAccessIps : allAccessIpRecordsNode) - { - AccessIps accessIpRecordsObject; - if(!valueAccessIpRecordsAccessIps["AccessIp"].isNull()) - accessIpRecordsObject.accessIp = valueAccessIpRecordsAccessIps["AccessIp"].asString(); - if(!valueAccessIpRecordsAccessIps["Count"].isNull()) - 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()) - dBClusterId_ = value["DBClusterId"].asString(); - -} - -std::string DescribeConnectionCountRecordsResult::getTotalCount()const -{ - return totalCount_; -} - -std::vector DescribeConnectionCountRecordsResult::getUserRecords()const -{ - return userRecords_; -} - -std::string DescribeConnectionCountRecordsResult::getDBClusterId()const -{ - return dBClusterId_; -} - -std::vector DescribeConnectionCountRecordsResult::getAccessIpRecords()const -{ - return accessIpRecords_; -} - diff --git a/adb/src/model/DescribeDBClusterAccessWhiteListRequest.cc b/adb/src/model/DescribeDBClusterAccessWhiteListRequest.cc deleted file mode 100644 index 1d7c44b6d..000000000 --- a/adb/src/model/DescribeDBClusterAccessWhiteListRequest.cc +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#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_; -} - -void DescribeDBClusterAccessWhiteListRequest::setResourceOwnerId(long resourceOwnerId) { - resourceOwnerId_ = resourceOwnerId; - setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); -} - -std::string DescribeDBClusterAccessWhiteListRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void DescribeDBClusterAccessWhiteListRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string DescribeDBClusterAccessWhiteListRequest::getResourceOwnerAccount() const { - return resourceOwnerAccount_; -} - -void DescribeDBClusterAccessWhiteListRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); -} - -std::string DescribeDBClusterAccessWhiteListRequest::getDBClusterId() const { - return dBClusterId_; -} - -void DescribeDBClusterAccessWhiteListRequest::setDBClusterId(const std::string &dBClusterId) { - dBClusterId_ = dBClusterId; - setParameter(std::string("DBClusterId"), dBClusterId); -} - -std::string DescribeDBClusterAccessWhiteListRequest::getOwnerAccount() const { - return ownerAccount_; -} - -void DescribeDBClusterAccessWhiteListRequest::setOwnerAccount(const std::string &ownerAccount) { - ownerAccount_ = ownerAccount; - setParameter(std::string("OwnerAccount"), ownerAccount); -} - -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/DescribeDBClusterAttributeRequest.cc b/adb/src/model/DescribeDBClusterAttributeRequest.cc index f4a49a7f2..6719c205e 100644 --- a/adb/src/model/DescribeDBClusterAttributeRequest.cc +++ b/adb/src/model/DescribeDBClusterAttributeRequest.cc @@ -19,21 +19,12 @@ using AlibabaCloud::Adb::Model::DescribeDBClusterAttributeRequest; DescribeDBClusterAttributeRequest::DescribeDBClusterAttributeRequest() - : RpcServiceRequest("adb", "2019-03-15", "DescribeDBClusterAttribute") { + : RpcServiceRequest("adb", "2021-12-01", "DescribeDBClusterAttribute") { setMethod(HttpRequest::Method::Post); } DescribeDBClusterAttributeRequest::~DescribeDBClusterAttributeRequest() {} -long DescribeDBClusterAttributeRequest::getResourceOwnerId() const { - return resourceOwnerId_; -} - -void DescribeDBClusterAttributeRequest::setResourceOwnerId(long resourceOwnerId) { - resourceOwnerId_ = resourceOwnerId; - setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); -} - std::string DescribeDBClusterAttributeRequest::getAccessKeyId() const { return accessKeyId_; } @@ -43,15 +34,6 @@ void DescribeDBClusterAttributeRequest::setAccessKeyId(const std::string &access setParameter(std::string("AccessKeyId"), accessKeyId); } -std::string DescribeDBClusterAttributeRequest::getResourceOwnerAccount() const { - return resourceOwnerAccount_; -} - -void DescribeDBClusterAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); -} - std::string DescribeDBClusterAttributeRequest::getDBClusterId() const { return dBClusterId_; } @@ -61,21 +43,3 @@ void DescribeDBClusterAttributeRequest::setDBClusterId(const std::string &dBClus setParameter(std::string("DBClusterId"), dBClusterId); } -std::string DescribeDBClusterAttributeRequest::getOwnerAccount() const { - return ownerAccount_; -} - -void DescribeDBClusterAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { - ownerAccount_ = ownerAccount; - setParameter(std::string("OwnerAccount"), ownerAccount); -} - -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 806f60666..5ad0465ba 100644 --- a/adb/src/model/DescribeDBClusterAttributeResult.cc +++ b/adb/src/model/DescribeDBClusterAttributeResult.cc @@ -45,20 +45,12 @@ void DescribeDBClusterAttributeResult::parse(const std::string &payload) DBCluster itemsObject; if(!valueItemsDBCluster["CreationTime"].isNull()) itemsObject.creationTime = valueItemsDBCluster["CreationTime"].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["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()) @@ -67,28 +59,18 @@ void DescribeDBClusterAttributeResult::parse(const std::string &payload) itemsObject.lockMode = valueItemsDBCluster["LockMode"].asString(); if(!valueItemsDBCluster["EngineVersion"].isNull()) itemsObject.engineVersion = valueItemsDBCluster["EngineVersion"].asString(); - 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()) @@ -97,14 +79,10 @@ void DescribeDBClusterAttributeResult::parse(const std::string &payload) 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()) @@ -117,22 +95,14 @@ void DescribeDBClusterAttributeResult::parse(const std::string &payload) 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) - { - DBCluster::Tag tagsObject; - if(!valueItemsDBClusterTagsTag["Key"].isNull()) - tagsObject.key = valueItemsDBClusterTagsTag["Key"].asString(); - if(!valueItemsDBClusterTagsTag["Value"].isNull()) - tagsObject.value = valueItemsDBClusterTagsTag["Value"].asString(); - itemsObject.tags.push_back(tagsObject); - } + if(!valueItemsDBCluster["ReservedACU"].isNull()) + itemsObject.reservedACU = valueItemsDBCluster["ReservedACU"].asString(); + if(!valueItemsDBCluster["ComputeResourceTotal"].isNull()) + itemsObject.computeResourceTotal = valueItemsDBCluster["ComputeResourceTotal"].asString(); + if(!valueItemsDBCluster["StorageResourceTotal"].isNull()) + itemsObject.storageResourceTotal = valueItemsDBCluster["StorageResourceTotal"].asString(); items_.push_back(itemsObject); } diff --git a/adb/src/model/DescribeDBClusterForecastRequest.cc b/adb/src/model/DescribeDBClusterForecastRequest.cc index 61d5d29bd..c0d107b3a 100644 --- a/adb/src/model/DescribeDBClusterForecastRequest.cc +++ b/adb/src/model/DescribeDBClusterForecastRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Adb::Model::DescribeDBClusterForecastRequest; DescribeDBClusterForecastRequest::DescribeDBClusterForecastRequest() - : RpcServiceRequest("adb", "2019-03-15", "DescribeDBClusterForecast") { + : RpcServiceRequest("adb", "2021-12-01", "DescribeDBClusterForecast") { setMethod(HttpRequest::Method::Post); } diff --git a/adb/src/model/DescribeDBClusterHealthReportResult.cc b/adb/src/model/DescribeDBClusterHealthReportResult.cc deleted file mode 100644 index 459d5f4d4..000000000 --- a/adb/src/model/DescribeDBClusterHealthReportResult.cc +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#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/DescribeDBClusterHealthReportRequest.cc b/adb/src/model/DescribeDBClusterHealthStatusRequest.cc similarity index 51% rename from adb/src/model/DescribeDBClusterHealthReportRequest.cc rename to adb/src/model/DescribeDBClusterHealthStatusRequest.cc index 3a2cd51be..69a03db6f 100644 --- a/adb/src/model/DescribeDBClusterHealthReportRequest.cc +++ b/adb/src/model/DescribeDBClusterHealthStatusRequest.cc @@ -14,41 +14,41 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::Adb::Model::DescribeDBClusterHealthReportRequest; +using AlibabaCloud::Adb::Model::DescribeDBClusterHealthStatusRequest; -DescribeDBClusterHealthReportRequest::DescribeDBClusterHealthReportRequest() - : RpcServiceRequest("adb", "2019-03-15", "DescribeDBClusterHealthReport") { +DescribeDBClusterHealthStatusRequest::DescribeDBClusterHealthStatusRequest() + : RpcServiceRequest("adb", "2021-12-01", "DescribeDBClusterHealthStatus") { setMethod(HttpRequest::Method::Post); } -DescribeDBClusterHealthReportRequest::~DescribeDBClusterHealthReportRequest() {} +DescribeDBClusterHealthStatusRequest::~DescribeDBClusterHealthStatusRequest() {} -std::string DescribeDBClusterHealthReportRequest::getRegionId() const { +std::string DescribeDBClusterHealthStatusRequest::getRegionId() const { return regionId_; } -void DescribeDBClusterHealthReportRequest::setRegionId(const std::string ®ionId) { +void DescribeDBClusterHealthStatusRequest::setRegionId(const std::string ®ionId) { regionId_ = regionId; setParameter(std::string("RegionId"), regionId); } -std::string DescribeDBClusterHealthReportRequest::getDBClusterId() const { +std::string DescribeDBClusterHealthStatusRequest::getDBClusterId() const { return dBClusterId_; } -void DescribeDBClusterHealthReportRequest::setDBClusterId(const std::string &dBClusterId) { +void DescribeDBClusterHealthStatusRequest::setDBClusterId(const std::string &dBClusterId) { dBClusterId_ = dBClusterId; setParameter(std::string("DBClusterId"), dBClusterId); } -std::string DescribeDBClusterHealthReportRequest::getStartTime() const { - return startTime_; +std::string DescribeDBClusterHealthStatusRequest::getAccessKeyId() const { + return accessKeyId_; } -void DescribeDBClusterHealthReportRequest::setStartTime(const std::string &startTime) { - startTime_ = startTime; - setParameter(std::string("StartTime"), startTime); +void DescribeDBClusterHealthStatusRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/adb/src/model/DescribeDBClusterHealthStatusResult.cc b/adb/src/model/DescribeDBClusterHealthStatusResult.cc new file mode 100644 index 000000000..4a025cc02 --- /dev/null +++ b/adb/src/model/DescribeDBClusterHealthStatusResult.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 +#include + +using namespace AlibabaCloud::Adb; +using namespace AlibabaCloud::Adb::Model; + +DescribeDBClusterHealthStatusResult::DescribeDBClusterHealthStatusResult() : + ServiceResult() +{} + +DescribeDBClusterHealthStatusResult::DescribeDBClusterHealthStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDBClusterHealthStatusResult::~DescribeDBClusterHealthStatusResult() +{} + +void DescribeDBClusterHealthStatusResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto cSNode = value["CS"]; + if(!cSNode["ActiveCount"].isNull()) + cS_.activeCount = std::stol(cSNode["ActiveCount"].asString()); + if(!cSNode["UnavailableCount"].isNull()) + cS_.unavailableCount = std::stol(cSNode["UnavailableCount"].asString()); + if(!cSNode["RiskCount"].isNull()) + cS_.riskCount = std::stol(cSNode["RiskCount"].asString()); + if(!cSNode["ExpectedCount"].isNull()) + cS_.expectedCount = std::stol(cSNode["ExpectedCount"].asString()); + if(!cSNode["Status"].isNull()) + cS_.status = cSNode["Status"].asString(); + auto executorNode = value["Executor"]; + if(!executorNode["ActiveCount"].isNull()) + executor_.activeCount = std::stol(executorNode["ActiveCount"].asString()); + if(!executorNode["UnavailableCount"].isNull()) + executor_.unavailableCount = std::stol(executorNode["UnavailableCount"].asString()); + if(!executorNode["RiskCount"].isNull()) + executor_.riskCount = std::stol(executorNode["RiskCount"].asString()); + if(!executorNode["ExpectedCount"].isNull()) + executor_.expectedCount = std::stol(executorNode["ExpectedCount"].asString()); + if(!executorNode["Status"].isNull()) + executor_.status = executorNode["Status"].asString(); + auto workerNode = value["Worker"]; + if(!workerNode["ActiveCount"].isNull()) + worker_.activeCount = std::stol(workerNode["ActiveCount"].asString()); + if(!workerNode["UnavailableCount"].isNull()) + worker_.unavailableCount = std::stol(workerNode["UnavailableCount"].asString()); + if(!workerNode["RiskCount"].isNull()) + worker_.riskCount = std::stol(workerNode["RiskCount"].asString()); + if(!workerNode["ExpectedCount"].isNull()) + worker_.expectedCount = std::stol(workerNode["ExpectedCount"].asString()); + if(!workerNode["Status"].isNull()) + worker_.status = workerNode["Status"].asString(); + if(!value["InstanceStatus"].isNull()) + instanceStatus_ = value["InstanceStatus"].asString(); + +} + +DescribeDBClusterHealthStatusResult::CS DescribeDBClusterHealthStatusResult::getCS()const +{ + return cS_; +} + +DescribeDBClusterHealthStatusResult::Executor DescribeDBClusterHealthStatusResult::getExecutor()const +{ + return executor_; +} + +std::string DescribeDBClusterHealthStatusResult::getInstanceStatus()const +{ + return instanceStatus_; +} + +DescribeDBClusterHealthStatusResult::Worker DescribeDBClusterHealthStatusResult::getWorker()const +{ + return worker_; +} + diff --git a/adb/src/model/DescribeDBClusterNetInfoRequest.cc b/adb/src/model/DescribeDBClusterNetInfoRequest.cc deleted file mode 100644 index e847c9ae8..000000000 --- a/adb/src/model/DescribeDBClusterNetInfoRequest.cc +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#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_; -} - -void DescribeDBClusterNetInfoRequest::setResourceOwnerId(long resourceOwnerId) { - resourceOwnerId_ = resourceOwnerId; - setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); -} - -std::string DescribeDBClusterNetInfoRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void DescribeDBClusterNetInfoRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string DescribeDBClusterNetInfoRequest::getResourceOwnerAccount() const { - return resourceOwnerAccount_; -} - -void DescribeDBClusterNetInfoRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); -} - -std::string DescribeDBClusterNetInfoRequest::getDBClusterId() const { - return dBClusterId_; -} - -void DescribeDBClusterNetInfoRequest::setDBClusterId(const std::string &dBClusterId) { - dBClusterId_ = dBClusterId; - setParameter(std::string("DBClusterId"), dBClusterId); -} - -std::string DescribeDBClusterNetInfoRequest::getOwnerAccount() const { - return ownerAccount_; -} - -void DescribeDBClusterNetInfoRequest::setOwnerAccount(const std::string &ownerAccount) { - ownerAccount_ = ownerAccount; - setParameter(std::string("OwnerAccount"), ownerAccount); -} - -long DescribeDBClusterNetInfoRequest::getOwnerId() const { - return ownerId_; -} - -void DescribeDBClusterNetInfoRequest::setOwnerId(long ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), std::to_string(ownerId)); -} - diff --git a/adb/src/model/DescribeDBClusterPerformanceRequest.cc b/adb/src/model/DescribeDBClusterPerformanceRequest.cc index 466aa84bb..d3ec7e7a6 100644 --- a/adb/src/model/DescribeDBClusterPerformanceRequest.cc +++ b/adb/src/model/DescribeDBClusterPerformanceRequest.cc @@ -19,19 +19,28 @@ using AlibabaCloud::Adb::Model::DescribeDBClusterPerformanceRequest; DescribeDBClusterPerformanceRequest::DescribeDBClusterPerformanceRequest() - : RpcServiceRequest("adb", "2019-03-15", "DescribeDBClusterPerformance") { + : RpcServiceRequest("adb", "2021-12-01", "DescribeDBClusterPerformance") { setMethod(HttpRequest::Method::Post); } DescribeDBClusterPerformanceRequest::~DescribeDBClusterPerformanceRequest() {} -long DescribeDBClusterPerformanceRequest::getResourceOwnerId() const { - return resourceOwnerId_; +std::string DescribeDBClusterPerformanceRequest::getDBClusterId() const { + return dBClusterId_; } -void DescribeDBClusterPerformanceRequest::setResourceOwnerId(long resourceOwnerId) { - resourceOwnerId_ = resourceOwnerId; - setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +void DescribeDBClusterPerformanceRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string DescribeDBClusterPerformanceRequest::getEndTime() const { + return endTime_; +} + +void DescribeDBClusterPerformanceRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); } std::string DescribeDBClusterPerformanceRequest::getStartTime() const { @@ -52,6 +61,24 @@ void DescribeDBClusterPerformanceRequest::setAccessKeyId(const std::string &acce setParameter(std::string("AccessKeyId"), accessKeyId); } +std::string DescribeDBClusterPerformanceRequest::getRegionId() const { + return regionId_; +} + +void DescribeDBClusterPerformanceRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DescribeDBClusterPerformanceRequest::getResourcePools() const { + return resourcePools_; +} + +void DescribeDBClusterPerformanceRequest::setResourcePools(const std::string &resourcePools) { + resourcePools_ = resourcePools; + setParameter(std::string("ResourcePools"), resourcePools); +} + std::string DescribeDBClusterPerformanceRequest::getKey() const { return key_; } @@ -61,48 +88,3 @@ void DescribeDBClusterPerformanceRequest::setKey(const std::string &key) { setParameter(std::string("Key"), key); } -std::string DescribeDBClusterPerformanceRequest::getResourceOwnerAccount() const { - return resourceOwnerAccount_; -} - -void DescribeDBClusterPerformanceRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); -} - -std::string DescribeDBClusterPerformanceRequest::getDBClusterId() const { - return dBClusterId_; -} - -void DescribeDBClusterPerformanceRequest::setDBClusterId(const std::string &dBClusterId) { - dBClusterId_ = dBClusterId; - setParameter(std::string("DBClusterId"), dBClusterId); -} - -std::string DescribeDBClusterPerformanceRequest::getOwnerAccount() const { - return ownerAccount_; -} - -void DescribeDBClusterPerformanceRequest::setOwnerAccount(const std::string &ownerAccount) { - ownerAccount_ = ownerAccount; - setParameter(std::string("OwnerAccount"), ownerAccount); -} - -std::string DescribeDBClusterPerformanceRequest::getEndTime() const { - return endTime_; -} - -void DescribeDBClusterPerformanceRequest::setEndTime(const std::string &endTime) { - endTime_ = endTime; - setParameter(std::string("EndTime"), endTime); -} - -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 a1d84aff7..b21460d16 100644 --- a/adb/src/model/DescribeDBClusterPerformanceResult.cc +++ b/adb/src/model/DescribeDBClusterPerformanceResult.cc @@ -53,6 +53,8 @@ void DescribeDBClusterPerformanceResult::parse(const std::string &payload) PerformanceItem::SeriesItem seriesObject; if(!valuePerformancesPerformanceItemSeriesSeriesItem["Name"].isNull()) seriesObject.name = valuePerformancesPerformanceItemSeriesSeriesItem["Name"].asString(); + if(!valuePerformancesPerformanceItemSeriesSeriesItem["Tags"].isNull()) + seriesObject.tags = valuePerformancesPerformanceItemSeriesSeriesItem["Tags"].asString(); auto allValues = value["Values"]["Values"]; for (auto value : allValues) seriesObject.values.push_back(value.asString()); diff --git a/adb/src/model/DescribeDBClusterResourcePoolPerformanceRequest.cc b/adb/src/model/DescribeDBClusterResourcePoolPerformanceRequest.cc deleted file mode 100644 index 0369813c1..000000000 --- a/adb/src/model/DescribeDBClusterResourcePoolPerformanceRequest.cc +++ /dev/null @@ -1,117 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Adb::Model::DescribeDBClusterResourcePoolPerformanceRequest; - -DescribeDBClusterResourcePoolPerformanceRequest::DescribeDBClusterResourcePoolPerformanceRequest() - : RpcServiceRequest("adb", "2019-03-15", "DescribeDBClusterResourcePoolPerformance") { - setMethod(HttpRequest::Method::Post); -} - -DescribeDBClusterResourcePoolPerformanceRequest::~DescribeDBClusterResourcePoolPerformanceRequest() {} - -long DescribeDBClusterResourcePoolPerformanceRequest::getResourceOwnerId() const { - return resourceOwnerId_; -} - -void DescribeDBClusterResourcePoolPerformanceRequest::setResourceOwnerId(long resourceOwnerId) { - resourceOwnerId_ = resourceOwnerId; - setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); -} - -std::string DescribeDBClusterResourcePoolPerformanceRequest::getStartTime() const { - return startTime_; -} - -void DescribeDBClusterResourcePoolPerformanceRequest::setStartTime(const std::string &startTime) { - startTime_ = startTime; - setParameter(std::string("StartTime"), startTime); -} - -std::string DescribeDBClusterResourcePoolPerformanceRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void DescribeDBClusterResourcePoolPerformanceRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string DescribeDBClusterResourcePoolPerformanceRequest::getResourcePools() const { - return resourcePools_; -} - -void DescribeDBClusterResourcePoolPerformanceRequest::setResourcePools(const std::string &resourcePools) { - resourcePools_ = resourcePools; - setParameter(std::string("ResourcePools"), resourcePools); -} - -std::string DescribeDBClusterResourcePoolPerformanceRequest::getKey() const { - return key_; -} - -void DescribeDBClusterResourcePoolPerformanceRequest::setKey(const std::string &key) { - key_ = key; - setParameter(std::string("Key"), key); -} - -std::string DescribeDBClusterResourcePoolPerformanceRequest::getResourceOwnerAccount() const { - return resourceOwnerAccount_; -} - -void DescribeDBClusterResourcePoolPerformanceRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); -} - -std::string DescribeDBClusterResourcePoolPerformanceRequest::getDBClusterId() const { - return dBClusterId_; -} - -void DescribeDBClusterResourcePoolPerformanceRequest::setDBClusterId(const std::string &dBClusterId) { - dBClusterId_ = dBClusterId; - setParameter(std::string("DBClusterId"), dBClusterId); -} - -std::string DescribeDBClusterResourcePoolPerformanceRequest::getOwnerAccount() const { - return ownerAccount_; -} - -void DescribeDBClusterResourcePoolPerformanceRequest::setOwnerAccount(const std::string &ownerAccount) { - ownerAccount_ = ownerAccount; - setParameter(std::string("OwnerAccount"), ownerAccount); -} - -std::string DescribeDBClusterResourcePoolPerformanceRequest::getEndTime() const { - return endTime_; -} - -void DescribeDBClusterResourcePoolPerformanceRequest::setEndTime(const std::string &endTime) { - endTime_ = endTime; - setParameter(std::string("EndTime"), endTime); -} - -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 deleted file mode 100644 index 9cdf358a9..000000000 --- a/adb/src/model/DescribeDBClusterResourcePoolPerformanceResult.cc +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Adb; -using namespace AlibabaCloud::Adb::Model; - -DescribeDBClusterResourcePoolPerformanceResult::DescribeDBClusterResourcePoolPerformanceResult() : - ServiceResult() -{} - -DescribeDBClusterResourcePoolPerformanceResult::DescribeDBClusterResourcePoolPerformanceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeDBClusterResourcePoolPerformanceResult::~DescribeDBClusterResourcePoolPerformanceResult() -{} - -void DescribeDBClusterResourcePoolPerformanceResult::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 allResourcePoolPerformancesNode = valuePerformancesPerformanceItem["ResourcePoolPerformances"]["ResourcePoolPerformancesItem"]; - for (auto valuePerformancesPerformanceItemResourcePoolPerformancesResourcePoolPerformancesItem : allResourcePoolPerformancesNode) - { - PerformanceItem::ResourcePoolPerformancesItem resourcePoolPerformancesObject; - if(!valuePerformancesPerformanceItemResourcePoolPerformancesResourcePoolPerformancesItem["ResourcePoolName"].isNull()) - resourcePoolPerformancesObject.resourcePoolName = valuePerformancesPerformanceItemResourcePoolPerformancesResourcePoolPerformancesItem["ResourcePoolName"].asString(); - auto allResourcePoolSeriesNode = valuePerformancesPerformanceItemResourcePoolPerformancesResourcePoolPerformancesItem["ResourcePoolSeries"]["ResourcePoolSeriesItem"]; - for (auto valuePerformancesPerformanceItemResourcePoolPerformancesResourcePoolPerformancesItemResourcePoolSeriesResourcePoolSeriesItem : allResourcePoolSeriesNode) - { - PerformanceItem::ResourcePoolPerformancesItem::ResourcePoolSeriesItem resourcePoolSeriesObject; - if(!valuePerformancesPerformanceItemResourcePoolPerformancesResourcePoolPerformancesItemResourcePoolSeriesResourcePoolSeriesItem["Name"].isNull()) - resourcePoolSeriesObject.name = valuePerformancesPerformanceItemResourcePoolPerformancesResourcePoolPerformancesItemResourcePoolSeriesResourcePoolSeriesItem["Name"].asString(); - auto allValues = value["Values"]["Values"]; - for (auto value : allValues) - resourcePoolSeriesObject.values.push_back(value.asString()); - resourcePoolPerformancesObject.resourcePoolSeries.push_back(resourcePoolSeriesObject); - } - performancesObject.resourcePoolPerformances.push_back(resourcePoolPerformancesObject); - } - performances_.push_back(performancesObject); - } - if(!value["EndTime"].isNull()) - endTime_ = value["EndTime"].asString(); - if(!value["StartTime"].isNull()) - startTime_ = value["StartTime"].asString(); - if(!value["DBClusterId"].isNull()) - dBClusterId_ = value["DBClusterId"].asString(); - -} - -std::string DescribeDBClusterResourcePoolPerformanceResult::getEndTime()const -{ - return endTime_; -} - -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 91d33d2d8..250630b4a 100644 --- a/adb/src/model/DescribeDBClustersRequest.cc +++ b/adb/src/model/DescribeDBClustersRequest.cc @@ -19,21 +19,12 @@ using AlibabaCloud::Adb::Model::DescribeDBClustersRequest; DescribeDBClustersRequest::DescribeDBClustersRequest() - : RpcServiceRequest("adb", "2019-03-15", "DescribeDBClusters") { + : RpcServiceRequest("adb", "2021-12-01", "DescribeDBClusters") { setMethod(HttpRequest::Method::Post); } DescribeDBClustersRequest::~DescribeDBClustersRequest() {} -long DescribeDBClustersRequest::getResourceOwnerId() const { - return resourceOwnerId_; -} - -void DescribeDBClustersRequest::setResourceOwnerId(long resourceOwnerId) { - resourceOwnerId_ = resourceOwnerId; - setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); -} - std::string DescribeDBClustersRequest::getDBClusterDescription() const { return dBClusterDescription_; } @@ -97,47 +88,6 @@ void DescribeDBClustersRequest::setPageSize(int pageSize) { setParameter(std::string("PageSize"), std::to_string(pageSize)); } -std::vector DescribeDBClustersRequest::getTag() const { - return tag_; -} - -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); - } -} - -std::string DescribeDBClustersRequest::getResourceOwnerAccount() const { - return resourceOwnerAccount_; -} - -void DescribeDBClustersRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); -} - -std::string DescribeDBClustersRequest::getOwnerAccount() const { - return ownerAccount_; -} - -void DescribeDBClustersRequest::setOwnerAccount(const std::string &ownerAccount) { - ownerAccount_ = ownerAccount; - setParameter(std::string("OwnerAccount"), ownerAccount); -} - -long DescribeDBClustersRequest::getOwnerId() const { - return ownerId_; -} - -void DescribeDBClustersRequest::setOwnerId(long ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), std::to_string(ownerId)); -} - std::string DescribeDBClustersRequest::getDBClusterIds() const { return dBClusterIds_; } diff --git a/adb/src/model/DescribeDBClustersResult.cc b/adb/src/model/DescribeDBClustersResult.cc index ab63a42d8..81777f94a 100644 --- a/adb/src/model/DescribeDBClustersResult.cc +++ b/adb/src/model/DescribeDBClustersResult.cc @@ -43,18 +43,12 @@ void DescribeDBClustersResult::parse(const std::string &payload) for (auto valueItemsDBCluster : allItemsNode) { DBCluster itemsObject; - 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["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()) @@ -63,24 +57,16 @@ void DescribeDBClustersResult::parse(const std::string &payload) 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["LockReason"].isNull()) itemsObject.lockReason = valueItemsDBCluster["LockReason"].asString(); if(!valueItemsDBCluster["VPCId"].isNull()) @@ -89,14 +75,10 @@ void DescribeDBClustersResult::parse(const std::string &payload) itemsObject.regionId = valueItemsDBCluster["RegionId"].asString(); if(!valueItemsDBCluster["ComputeResource"].isNull()) itemsObject.computeResource = valueItemsDBCluster["ComputeResource"].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()) @@ -107,20 +89,10 @@ void DescribeDBClustersResult::parse(const std::string &payload) 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) - { - DBCluster::Tag tagsObject; - if(!valueItemsDBClusterTagsTag["Key"].isNull()) - tagsObject.key = valueItemsDBClusterTagsTag["Key"].asString(); - if(!valueItemsDBClusterTagsTag["Value"].isNull()) - tagsObject.value = valueItemsDBClusterTagsTag["Value"].asString(); - itemsObject.tags.push_back(tagsObject); - } + if(!valueItemsDBCluster["ReservedACU"].isNull()) + itemsObject.reservedACU = valueItemsDBCluster["ReservedACU"].asString(); items_.push_back(itemsObject); } if(!value["TotalCount"].isNull()) diff --git a/adb/src/model/DescribeDBResourceGroupRequest.cc b/adb/src/model/DescribeDBResourceGroupRequest.cc index 37e493cfa..46c6b2b58 100644 --- a/adb/src/model/DescribeDBResourceGroupRequest.cc +++ b/adb/src/model/DescribeDBResourceGroupRequest.cc @@ -19,30 +19,12 @@ using AlibabaCloud::Adb::Model::DescribeDBResourceGroupRequest; DescribeDBResourceGroupRequest::DescribeDBResourceGroupRequest() - : RpcServiceRequest("adb", "2019-03-15", "DescribeDBResourceGroup") { + : RpcServiceRequest("adb", "2021-12-01", "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_; } @@ -61,24 +43,6 @@ void DescribeDBResourceGroupRequest::setDBClusterId(const std::string &dBCluster 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_; } @@ -88,3 +52,21 @@ void DescribeDBResourceGroupRequest::setGroupName(const std::string &groupName) setParameter(std::string("GroupName"), groupName); } +std::string DescribeDBResourceGroupRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeDBResourceGroupRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribeDBResourceGroupRequest::getGroupType() const { + return groupType_; +} + +void DescribeDBResourceGroupRequest::setGroupType(const std::string &groupType) { + groupType_ = groupType; + setParameter(std::string("GroupType"), groupType); +} + diff --git a/adb/src/model/DescribeDBResourceGroupResult.cc b/adb/src/model/DescribeDBResourceGroupResult.cc index 3f484bfa7..e2f550c73 100644 --- a/adb/src/model/DescribeDBResourceGroupResult.cc +++ b/adb/src/model/DescribeDBResourceGroupResult.cc @@ -45,16 +45,22 @@ void DescribeDBResourceGroupResult::parse(const std::string &payload) 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["MinComputeResource"].isNull()) + groupsInfoObject.minComputeResource = valueGroupsInfoPoolInfo["MinComputeResource"].asString(); + if(!valueGroupsInfoPoolInfo["MaxComputeResource"].isNull()) + groupsInfoObject.maxComputeResource = valueGroupsInfoPoolInfo["MaxComputeResource"].asString(); + if(!valueGroupsInfoPoolInfo["ElasticMinComputeResource"].isNull()) + groupsInfoObject.elasticMinComputeResource = valueGroupsInfoPoolInfo["ElasticMinComputeResource"].asString(); if(!valueGroupsInfoPoolInfo["GroupUsers"].isNull()) groupsInfoObject.groupUsers = valueGroupsInfoPoolInfo["GroupUsers"].asString(); - if(!valueGroupsInfoPoolInfo["NodeNum"].isNull()) - groupsInfoObject.nodeNum = std::stoi(valueGroupsInfoPoolInfo["NodeNum"].asString()); + if(!valueGroupsInfoPoolInfo["CreateTime"].isNull()) + groupsInfoObject.createTime = valueGroupsInfoPoolInfo["CreateTime"].asString(); + if(!valueGroupsInfoPoolInfo["UpdateTime"].isNull()) + groupsInfoObject.updateTime = valueGroupsInfoPoolInfo["UpdateTime"].asString(); + if(!valueGroupsInfoPoolInfo["Status"].isNull()) + groupsInfoObject.status = valueGroupsInfoPoolInfo["Status"].asString(); groupsInfo_.push_back(groupsInfoObject); } diff --git a/adb/src/model/DescribeDBResourcePoolRequest.cc b/adb/src/model/DescribeDBResourcePoolRequest.cc deleted file mode 100644 index 449f29a25..000000000 --- a/adb/src/model/DescribeDBResourcePoolRequest.cc +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Adb::Model::DescribeDBResourcePoolRequest; - -DescribeDBResourcePoolRequest::DescribeDBResourcePoolRequest() - : RpcServiceRequest("adb", "2019-03-15", "DescribeDBResourcePool") { - setMethod(HttpRequest::Method::Post); -} - -DescribeDBResourcePoolRequest::~DescribeDBResourcePoolRequest() {} - -std::string DescribeDBResourcePoolRequest::getPoolName() const { - return poolName_; -} - -void DescribeDBResourcePoolRequest::setPoolName(const std::string &poolName) { - poolName_ = poolName; - setParameter(std::string("PoolName"), poolName); -} - -long DescribeDBResourcePoolRequest::getResourceOwnerId() const { - return resourceOwnerId_; -} - -void DescribeDBResourcePoolRequest::setResourceOwnerId(long resourceOwnerId) { - resourceOwnerId_ = resourceOwnerId; - setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); -} - -std::string DescribeDBResourcePoolRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void DescribeDBResourcePoolRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string DescribeDBResourcePoolRequest::getResourceOwnerAccount() const { - return resourceOwnerAccount_; -} - -void DescribeDBResourcePoolRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); -} - -std::string DescribeDBResourcePoolRequest::getDBClusterId() const { - return dBClusterId_; -} - -void DescribeDBResourcePoolRequest::setDBClusterId(const std::string &dBClusterId) { - dBClusterId_ = dBClusterId; - setParameter(std::string("DBClusterId"), dBClusterId); -} - -std::string DescribeDBResourcePoolRequest::getOwnerAccount() const { - return ownerAccount_; -} - -void DescribeDBResourcePoolRequest::setOwnerAccount(const std::string &ownerAccount) { - ownerAccount_ = ownerAccount; - setParameter(std::string("OwnerAccount"), ownerAccount); -} - -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 deleted file mode 100644 index 038e27c6d..000000000 --- a/adb/src/model/DescribeDBResourcePoolResult.cc +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Adb; -using namespace AlibabaCloud::Adb::Model; - -DescribeDBResourcePoolResult::DescribeDBResourcePoolResult() : - ServiceResult() -{} - -DescribeDBResourcePoolResult::DescribeDBResourcePoolResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeDBResourcePoolResult::~DescribeDBResourcePoolResult() -{} - -void DescribeDBResourcePoolResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allPoolsInfoNode = value["PoolsInfo"]["PoolInfo"]; - for (auto valuePoolsInfoPoolInfo : allPoolsInfoNode) - { - PoolInfo poolsInfoObject; - if(!valuePoolsInfoPoolInfo["QueryType"].isNull()) - poolsInfoObject.queryType = valuePoolsInfoPoolInfo["QueryType"].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); - } - -} - -std::vector DescribeDBResourcePoolResult::getPoolsInfo()const -{ - return poolsInfo_; -} - diff --git a/adb/src/model/DescribeDiagnosisDimensionsRequest.cc b/adb/src/model/DescribeDiagnosisDimensionsRequest.cc index 65c5aca5b..a2a117250 100644 --- a/adb/src/model/DescribeDiagnosisDimensionsRequest.cc +++ b/adb/src/model/DescribeDiagnosisDimensionsRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Adb::Model::DescribeDiagnosisDimensionsRequest; DescribeDiagnosisDimensionsRequest::DescribeDiagnosisDimensionsRequest() - : RpcServiceRequest("adb", "2019-03-15", "DescribeDiagnosisDimensions") { + : RpcServiceRequest("adb", "2021-12-01", "DescribeDiagnosisDimensions") { setMethod(HttpRequest::Method::Post); } diff --git a/adb/src/model/DescribeDiagnosisRecordsRequest.cc b/adb/src/model/DescribeDiagnosisRecordsRequest.cc index fb65b22ad..008eb0881 100644 --- a/adb/src/model/DescribeDiagnosisRecordsRequest.cc +++ b/adb/src/model/DescribeDiagnosisRecordsRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Adb::Model::DescribeDiagnosisRecordsRequest; DescribeDiagnosisRecordsRequest::DescribeDiagnosisRecordsRequest() - : RpcServiceRequest("adb", "2019-03-15", "DescribeDiagnosisRecords") { + : RpcServiceRequest("adb", "2021-12-01", "DescribeDiagnosisRecords") { setMethod(HttpRequest::Method::Post); } @@ -160,13 +160,13 @@ void DescribeDiagnosisRecordsRequest::setDBClusterId(const std::string &dBCluste setParameter(std::string("DBClusterId"), dBClusterId); } -long DescribeDiagnosisRecordsRequest::getPatternId() const { +std::string DescribeDiagnosisRecordsRequest::getPatternId() const { return patternId_; } -void DescribeDiagnosisRecordsRequest::setPatternId(long patternId) { +void DescribeDiagnosisRecordsRequest::setPatternId(const std::string &patternId) { patternId_ = patternId; - setParameter(std::string("PatternId"), std::to_string(patternId)); + setParameter(std::string("PatternId"), patternId); } std::string DescribeDiagnosisRecordsRequest::getEndTime() const { diff --git a/adb/src/model/DescribeDiagnosisSQLInfoRequest.cc b/adb/src/model/DescribeDiagnosisSQLInfoRequest.cc new file mode 100644 index 000000000..a09b56794 --- /dev/null +++ b/adb/src/model/DescribeDiagnosisSQLInfoRequest.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::DescribeDiagnosisSQLInfoRequest; + +DescribeDiagnosisSQLInfoRequest::DescribeDiagnosisSQLInfoRequest() + : RpcServiceRequest("adb", "2021-12-01", "DescribeDiagnosisSQLInfo") { + setMethod(HttpRequest::Method::Get); +} + +DescribeDiagnosisSQLInfoRequest::~DescribeDiagnosisSQLInfoRequest() {} + +std::string DescribeDiagnosisSQLInfoRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DescribeDiagnosisSQLInfoRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string DescribeDiagnosisSQLInfoRequest::getProcessState() const { + return processState_; +} + +void DescribeDiagnosisSQLInfoRequest::setProcessState(const std::string &processState) { + processState_ = processState; + setParameter(std::string("ProcessState"), processState); +} + +long DescribeDiagnosisSQLInfoRequest::getProcessStartTime() const { + return processStartTime_; +} + +void DescribeDiagnosisSQLInfoRequest::setProcessStartTime(long processStartTime) { + processStartTime_ = processStartTime; + setParameter(std::string("ProcessStartTime"), std::to_string(processStartTime)); +} + +std::string DescribeDiagnosisSQLInfoRequest::getRegionId() const { + return regionId_; +} + +void DescribeDiagnosisSQLInfoRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DescribeDiagnosisSQLInfoRequest::getProcessId() const { + return processId_; +} + +void DescribeDiagnosisSQLInfoRequest::setProcessId(const std::string &processId) { + processId_ = processId; + setParameter(std::string("ProcessId"), processId); +} + +std::string DescribeDiagnosisSQLInfoRequest::getProcessRcHost() const { + return processRcHost_; +} + +void DescribeDiagnosisSQLInfoRequest::setProcessRcHost(const std::string &processRcHost) { + processRcHost_ = processRcHost; + setParameter(std::string("ProcessRcHost"), processRcHost); +} + +std::string DescribeDiagnosisSQLInfoRequest::getLang() const { + return lang_; +} + +void DescribeDiagnosisSQLInfoRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); +} + diff --git a/adb/src/model/DescribeDiagnosisSQLInfoResult.cc b/adb/src/model/DescribeDiagnosisSQLInfoResult.cc new file mode 100644 index 000000000..64488308b --- /dev/null +++ b/adb/src/model/DescribeDiagnosisSQLInfoResult.cc @@ -0,0 +1,80 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Adb; +using namespace AlibabaCloud::Adb::Model; + +DescribeDiagnosisSQLInfoResult::DescribeDiagnosisSQLInfoResult() : + ServiceResult() +{} + +DescribeDiagnosisSQLInfoResult::DescribeDiagnosisSQLInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDiagnosisSQLInfoResult::~DescribeDiagnosisSQLInfoResult() +{} + +void DescribeDiagnosisSQLInfoResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allStageInfosNode = value["StageInfos"]["StageInfosItem"]; + for (auto valueStageInfosStageInfosItem : allStageInfosNode) + { + StageInfosItem stageInfosObject; + if(!valueStageInfosStageInfosItem["InputRows"].isNull()) + stageInfosObject.inputRows = std::stol(valueStageInfosStageInfosItem["InputRows"].asString()); + if(!valueStageInfosStageInfosItem["InputDataSize"].isNull()) + stageInfosObject.inputDataSize = std::stol(valueStageInfosStageInfosItem["InputDataSize"].asString()); + if(!valueStageInfosStageInfosItem["OutputRows"].isNull()) + stageInfosObject.outputRows = std::stol(valueStageInfosStageInfosItem["OutputRows"].asString()); + if(!valueStageInfosStageInfosItem["OutputDataSize"].isNull()) + stageInfosObject.outputDataSize = std::stol(valueStageInfosStageInfosItem["OutputDataSize"].asString()); + if(!valueStageInfosStageInfosItem["PeakMemory"].isNull()) + stageInfosObject.peakMemory = std::stol(valueStageInfosStageInfosItem["PeakMemory"].asString()); + if(!valueStageInfosStageInfosItem["OperatorCost"].isNull()) + stageInfosObject.operatorCost = std::stol(valueStageInfosStageInfosItem["OperatorCost"].asString()); + if(!valueStageInfosStageInfosItem["StageId"].isNull()) + stageInfosObject.stageId = valueStageInfosStageInfosItem["StageId"].asString(); + if(!valueStageInfosStageInfosItem["State"].isNull()) + stageInfosObject.state = valueStageInfosStageInfosItem["State"].asString(); + if(!valueStageInfosStageInfosItem["Progress"].isNull()) + stageInfosObject.progress = valueStageInfosStageInfosItem["Progress"].asString(); + stageInfos_.push_back(stageInfosObject); + } + if(!value["DiagnosisSQLInfo"].isNull()) + diagnosisSQLInfo_ = value["DiagnosisSQLInfo"].asString(); + +} + +std::vector DescribeDiagnosisSQLInfoResult::getStageInfos()const +{ + return stageInfos_; +} + +std::string DescribeDiagnosisSQLInfoResult::getDiagnosisSQLInfo()const +{ + return diagnosisSQLInfo_; +} + diff --git a/adb/src/model/DescribeDownloadRecordsRequest.cc b/adb/src/model/DescribeDownloadRecordsRequest.cc index 7a6e561fa..3da86ef84 100644 --- a/adb/src/model/DescribeDownloadRecordsRequest.cc +++ b/adb/src/model/DescribeDownloadRecordsRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Adb::Model::DescribeDownloadRecordsRequest; DescribeDownloadRecordsRequest::DescribeDownloadRecordsRequest() - : RpcServiceRequest("adb", "2019-03-15", "DescribeDownloadRecords") { + : RpcServiceRequest("adb", "2021-12-01", "DescribeDownloadRecords") { setMethod(HttpRequest::Method::Post); } diff --git a/adb/src/model/DescribeElasticDailyPlanRequest.cc b/adb/src/model/DescribeElasticDailyPlanRequest.cc deleted file mode 100644 index f1bd2c694..000000000 --- a/adb/src/model/DescribeElasticDailyPlanRequest.cc +++ /dev/null @@ -1,117 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Adb::Model::DescribeElasticDailyPlanRequest; - -DescribeElasticDailyPlanRequest::DescribeElasticDailyPlanRequest() - : RpcServiceRequest("adb", "2019-03-15", "DescribeElasticDailyPlan") { - setMethod(HttpRequest::Method::Post); -} - -DescribeElasticDailyPlanRequest::~DescribeElasticDailyPlanRequest() {} - -long DescribeElasticDailyPlanRequest::getResourceOwnerId() const { - return resourceOwnerId_; -} - -void DescribeElasticDailyPlanRequest::setResourceOwnerId(long resourceOwnerId) { - resourceOwnerId_ = resourceOwnerId; - setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); -} - -std::string DescribeElasticDailyPlanRequest::getElasticDailyPlanStatusList() const { - return elasticDailyPlanStatusList_; -} - -void DescribeElasticDailyPlanRequest::setElasticDailyPlanStatusList(const std::string &elasticDailyPlanStatusList) { - elasticDailyPlanStatusList_ = elasticDailyPlanStatusList; - setParameter(std::string("ElasticDailyPlanStatusList"), elasticDailyPlanStatusList); -} - -std::string DescribeElasticDailyPlanRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void DescribeElasticDailyPlanRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string DescribeElasticDailyPlanRequest::getElasticDailyPlanDay() const { - return elasticDailyPlanDay_; -} - -void DescribeElasticDailyPlanRequest::setElasticDailyPlanDay(const std::string &elasticDailyPlanDay) { - elasticDailyPlanDay_ = elasticDailyPlanDay; - setParameter(std::string("ElasticDailyPlanDay"), elasticDailyPlanDay); -} - -std::string DescribeElasticDailyPlanRequest::getResourceOwnerAccount() const { - return resourceOwnerAccount_; -} - -void DescribeElasticDailyPlanRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); -} - -std::string DescribeElasticDailyPlanRequest::getDBClusterId() const { - return dBClusterId_; -} - -void DescribeElasticDailyPlanRequest::setDBClusterId(const std::string &dBClusterId) { - dBClusterId_ = dBClusterId; - setParameter(std::string("DBClusterId"), dBClusterId); -} - -std::string DescribeElasticDailyPlanRequest::getOwnerAccount() const { - return ownerAccount_; -} - -void DescribeElasticDailyPlanRequest::setOwnerAccount(const std::string &ownerAccount) { - ownerAccount_ = ownerAccount; - setParameter(std::string("OwnerAccount"), ownerAccount); -} - -long DescribeElasticDailyPlanRequest::getOwnerId() const { - return ownerId_; -} - -void DescribeElasticDailyPlanRequest::setOwnerId(long ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), std::to_string(ownerId)); -} - -std::string DescribeElasticDailyPlanRequest::getElasticPlanName() const { - return elasticPlanName_; -} - -void DescribeElasticDailyPlanRequest::setElasticPlanName(const std::string &elasticPlanName) { - elasticPlanName_ = elasticPlanName; - setParameter(std::string("ElasticPlanName"), elasticPlanName); -} - -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 deleted file mode 100644 index ea2cb4277..000000000 --- a/adb/src/model/DescribeElasticDailyPlanResult.cc +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Adb; -using namespace AlibabaCloud::Adb::Model; - -DescribeElasticDailyPlanResult::DescribeElasticDailyPlanResult() : - ServiceResult() -{} - -DescribeElasticDailyPlanResult::DescribeElasticDailyPlanResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeElasticDailyPlanResult::~DescribeElasticDailyPlanResult() -{} - -void DescribeElasticDailyPlanResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allElasticDailyPlanListNode = value["ElasticDailyPlanList"]["ElasticDailyPlanInfo"]; - for (auto valueElasticDailyPlanListElasticDailyPlanInfo : allElasticDailyPlanListNode) - { - ElasticDailyPlanInfo elasticDailyPlanListObject; - 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); - } - -} - -std::vector DescribeElasticDailyPlanResult::getElasticDailyPlanList()const -{ - return elasticDailyPlanList_; -} - diff --git a/adb/src/model/DescribeElasticPlanRequest.cc b/adb/src/model/DescribeElasticPlanRequest.cc deleted file mode 100644 index 83899ca19..000000000 --- a/adb/src/model/DescribeElasticPlanRequest.cc +++ /dev/null @@ -1,108 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Adb::Model::DescribeElasticPlanRequest; - -DescribeElasticPlanRequest::DescribeElasticPlanRequest() - : RpcServiceRequest("adb", "2019-03-15", "DescribeElasticPlan") { - setMethod(HttpRequest::Method::Post); -} - -DescribeElasticPlanRequest::~DescribeElasticPlanRequest() {} - -long DescribeElasticPlanRequest::getResourceOwnerId() const { - return resourceOwnerId_; -} - -void DescribeElasticPlanRequest::setResourceOwnerId(long resourceOwnerId) { - resourceOwnerId_ = resourceOwnerId; - setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); -} - -std::string DescribeElasticPlanRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void DescribeElasticPlanRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -bool DescribeElasticPlanRequest::getElasticPlanEnable() const { - return elasticPlanEnable_; -} - -void DescribeElasticPlanRequest::setElasticPlanEnable(bool elasticPlanEnable) { - elasticPlanEnable_ = elasticPlanEnable; - setParameter(std::string("ElasticPlanEnable"), elasticPlanEnable ? "true" : "false"); -} - -std::string DescribeElasticPlanRequest::getResourceOwnerAccount() const { - return resourceOwnerAccount_; -} - -void DescribeElasticPlanRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); -} - -std::string DescribeElasticPlanRequest::getDBClusterId() const { - return dBClusterId_; -} - -void DescribeElasticPlanRequest::setDBClusterId(const std::string &dBClusterId) { - dBClusterId_ = dBClusterId; - setParameter(std::string("DBClusterId"), dBClusterId); -} - -std::string DescribeElasticPlanRequest::getOwnerAccount() const { - return ownerAccount_; -} - -void DescribeElasticPlanRequest::setOwnerAccount(const std::string &ownerAccount) { - ownerAccount_ = ownerAccount; - setParameter(std::string("OwnerAccount"), ownerAccount); -} - -long DescribeElasticPlanRequest::getOwnerId() const { - return ownerId_; -} - -void DescribeElasticPlanRequest::setOwnerId(long ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), std::to_string(ownerId)); -} - -std::string DescribeElasticPlanRequest::getElasticPlanName() const { - return elasticPlanName_; -} - -void DescribeElasticPlanRequest::setElasticPlanName(const std::string &elasticPlanName) { - elasticPlanName_ = elasticPlanName; - setParameter(std::string("ElasticPlanName"), elasticPlanName); -} - -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 deleted file mode 100644 index f517290c4..000000000 --- a/adb/src/model/DescribeElasticPlanResult.cc +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Adb; -using namespace AlibabaCloud::Adb::Model; - -DescribeElasticPlanResult::DescribeElasticPlanResult() : - ServiceResult() -{} - -DescribeElasticPlanResult::DescribeElasticPlanResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeElasticPlanResult::~DescribeElasticPlanResult() -{} - -void DescribeElasticPlanResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allElasticPlanListNode = value["ElasticPlanList"]["ElasticPlanInfo"]; - for (auto valueElasticPlanListElasticPlanInfo : allElasticPlanListNode) - { - ElasticPlanInfo elasticPlanListObject; - 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["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); - } - -} - -std::vector DescribeElasticPlanResult::getElasticPlanList()const -{ - return elasticPlanList_; -} - diff --git a/adb/src/model/DescribeInclinedTablesRequest.cc b/adb/src/model/DescribeInclinedTablesRequest.cc deleted file mode 100644 index 2a8fd54a6..000000000 --- a/adb/src/model/DescribeInclinedTablesRequest.cc +++ /dev/null @@ -1,117 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Adb::Model::DescribeInclinedTablesRequest; - -DescribeInclinedTablesRequest::DescribeInclinedTablesRequest() - : RpcServiceRequest("adb", "2019-03-15", "DescribeInclinedTables") { - setMethod(HttpRequest::Method::Post); -} - -DescribeInclinedTablesRequest::~DescribeInclinedTablesRequest() {} - -std::string DescribeInclinedTablesRequest::getTableType() const { - return tableType_; -} - -void DescribeInclinedTablesRequest::setTableType(const std::string &tableType) { - tableType_ = tableType; - setParameter(std::string("TableType"), tableType); -} - -long DescribeInclinedTablesRequest::getResourceOwnerId() const { - return resourceOwnerId_; -} - -void DescribeInclinedTablesRequest::setResourceOwnerId(long resourceOwnerId) { - resourceOwnerId_ = resourceOwnerId; - setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); -} - -int DescribeInclinedTablesRequest::getPageNumber() const { - return pageNumber_; -} - -void DescribeInclinedTablesRequest::setPageNumber(int pageNumber) { - pageNumber_ = pageNumber; - setParameter(std::string("PageNumber"), std::to_string(pageNumber)); -} - -std::string DescribeInclinedTablesRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void DescribeInclinedTablesRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -int DescribeInclinedTablesRequest::getPageSize() const { - return pageSize_; -} - -void DescribeInclinedTablesRequest::setPageSize(int pageSize) { - pageSize_ = pageSize; - setParameter(std::string("PageSize"), std::to_string(pageSize)); -} - -std::string DescribeInclinedTablesRequest::getOrder() const { - return order_; -} - -void DescribeInclinedTablesRequest::setOrder(const std::string &order) { - order_ = order; - setParameter(std::string("Order"), order); -} - -std::string DescribeInclinedTablesRequest::getResourceOwnerAccount() const { - return resourceOwnerAccount_; -} - -void DescribeInclinedTablesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); -} - -std::string DescribeInclinedTablesRequest::getDBClusterId() const { - return dBClusterId_; -} - -void DescribeInclinedTablesRequest::setDBClusterId(const std::string &dBClusterId) { - dBClusterId_ = dBClusterId; - setParameter(std::string("DBClusterId"), dBClusterId); -} - -std::string DescribeInclinedTablesRequest::getOwnerAccount() const { - return ownerAccount_; -} - -void DescribeInclinedTablesRequest::setOwnerAccount(const std::string &ownerAccount) { - ownerAccount_ = ownerAccount; - setParameter(std::string("OwnerAccount"), ownerAccount); -} - -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 deleted file mode 100644 index d54e47435..000000000 --- a/adb/src/model/DescribeInclinedTablesResult.cc +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Adb; -using namespace AlibabaCloud::Adb::Model; - -DescribeInclinedTablesResult::DescribeInclinedTablesResult() : - ServiceResult() -{} - -DescribeInclinedTablesResult::DescribeInclinedTablesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeInclinedTablesResult::~DescribeInclinedTablesResult() -{} - -void DescribeInclinedTablesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allItemsNode = value["Items"]["Table"]; - for (auto valueItemsTable : allItemsNode) - { - Table itemsObject; - 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["PageSize"].isNull()) - pageSize_ = value["PageSize"].asString(); - if(!value["PageNumber"].isNull()) - pageNumber_ = value["PageNumber"].asString(); - -} - -std::string DescribeInclinedTablesResult::getTotalCount()const -{ - return totalCount_; -} - -std::string DescribeInclinedTablesResult::getPageSize()const -{ - return pageSize_; -} - -std::string DescribeInclinedTablesResult::getPageNumber()const -{ - return pageNumber_; -} - -std::vector DescribeInclinedTablesResult::getItems()const -{ - return items_; -} - diff --git a/adb/src/model/DescribeLoadTasksRecordsRequest.cc b/adb/src/model/DescribeLoadTasksRecordsRequest.cc deleted file mode 100644 index ba9419e2a..000000000 --- a/adb/src/model/DescribeLoadTasksRecordsRequest.cc +++ /dev/null @@ -1,153 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Adb::Model::DescribeLoadTasksRecordsRequest; - -DescribeLoadTasksRecordsRequest::DescribeLoadTasksRecordsRequest() - : RpcServiceRequest("adb", "2019-03-15", "DescribeLoadTasksRecords") { - setMethod(HttpRequest::Method::Post); -} - -DescribeLoadTasksRecordsRequest::~DescribeLoadTasksRecordsRequest() {} - -long DescribeLoadTasksRecordsRequest::getResourceOwnerId() const { - return resourceOwnerId_; -} - -void DescribeLoadTasksRecordsRequest::setResourceOwnerId(long resourceOwnerId) { - resourceOwnerId_ = resourceOwnerId; - setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); -} - -std::string DescribeLoadTasksRecordsRequest::getRange() const { - return range_; -} - -void DescribeLoadTasksRecordsRequest::setRange(const std::string &range) { - range_ = range; - setParameter(std::string("Range"), range); -} - -std::string DescribeLoadTasksRecordsRequest::getStartTime() const { - return startTime_; -} - -void DescribeLoadTasksRecordsRequest::setStartTime(const std::string &startTime) { - startTime_ = startTime; - setParameter(std::string("StartTime"), startTime); -} - -int DescribeLoadTasksRecordsRequest::getPageNumber() const { - return pageNumber_; -} - -void DescribeLoadTasksRecordsRequest::setPageNumber(int pageNumber) { - pageNumber_ = pageNumber; - setParameter(std::string("PageNumber"), std::to_string(pageNumber)); -} - -std::string DescribeLoadTasksRecordsRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void DescribeLoadTasksRecordsRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -int DescribeLoadTasksRecordsRequest::getPageSize() const { - return pageSize_; -} - -void DescribeLoadTasksRecordsRequest::setPageSize(int pageSize) { - pageSize_ = pageSize; - setParameter(std::string("PageSize"), std::to_string(pageSize)); -} - -std::string DescribeLoadTasksRecordsRequest::getState() const { - return state_; -} - -void DescribeLoadTasksRecordsRequest::setState(const std::string &state) { - state_ = state; - setParameter(std::string("State"), state); -} - -std::string DescribeLoadTasksRecordsRequest::getOrder() const { - return order_; -} - -void DescribeLoadTasksRecordsRequest::setOrder(const std::string &order) { - order_ = order; - setParameter(std::string("Order"), order); -} - -std::string DescribeLoadTasksRecordsRequest::getResourceOwnerAccount() const { - return resourceOwnerAccount_; -} - -void DescribeLoadTasksRecordsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); -} - -std::string DescribeLoadTasksRecordsRequest::getDBClusterId() const { - return dBClusterId_; -} - -void DescribeLoadTasksRecordsRequest::setDBClusterId(const std::string &dBClusterId) { - dBClusterId_ = dBClusterId; - setParameter(std::string("DBClusterId"), dBClusterId); -} - -std::string DescribeLoadTasksRecordsRequest::getOwnerAccount() const { - return ownerAccount_; -} - -void DescribeLoadTasksRecordsRequest::setOwnerAccount(const std::string &ownerAccount) { - ownerAccount_ = ownerAccount; - setParameter(std::string("OwnerAccount"), ownerAccount); -} - -std::string DescribeLoadTasksRecordsRequest::getEndTime() const { - return endTime_; -} - -void DescribeLoadTasksRecordsRequest::setEndTime(const std::string &endTime) { - endTime_ = endTime; - setParameter(std::string("EndTime"), endTime); -} - -long DescribeLoadTasksRecordsRequest::getOwnerId() const { - return ownerId_; -} - -void DescribeLoadTasksRecordsRequest::setOwnerId(long ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), std::to_string(ownerId)); -} - -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 deleted file mode 100644 index 73f7b3740..000000000 --- a/adb/src/model/DescribeLoadTasksRecordsResult.cc +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Adb; -using namespace AlibabaCloud::Adb::Model; - -DescribeLoadTasksRecordsResult::DescribeLoadTasksRecordsResult() : - ServiceResult() -{} - -DescribeLoadTasksRecordsResult::DescribeLoadTasksRecordsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeLoadTasksRecordsResult::~DescribeLoadTasksRecordsResult() -{} - -void DescribeLoadTasksRecordsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allLoadTasksRecordsNode = value["LoadTasksRecords"]["LoadTaskRecord"]; - for (auto valueLoadTasksRecordsLoadTaskRecord : allLoadTasksRecordsNode) - { - LoadTaskRecord loadTasksRecordsObject; - 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["DBName"].isNull()) - loadTasksRecordsObject.dBName = valueLoadTasksRecordsLoadTaskRecord["DBName"].asString(); - if(!valueLoadTasksRecordsLoadTaskRecord["ProcessID"].isNull()) - loadTasksRecordsObject.processID = valueLoadTasksRecordsLoadTaskRecord["ProcessID"].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()) - totalCount_ = value["TotalCount"].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(); - -} - -std::string DescribeLoadTasksRecordsResult::getTotalCount()const -{ - return totalCount_; -} - -std::vector DescribeLoadTasksRecordsResult::getLoadTasksRecords()const -{ - return loadTasksRecords_; -} - -std::string DescribeLoadTasksRecordsResult::getPageSize()const -{ - return pageSize_; -} - -std::string DescribeLoadTasksRecordsResult::getPageNumber()const -{ - return pageNumber_; -} - -std::string DescribeLoadTasksRecordsResult::getDBClusterId()const -{ - return dBClusterId_; -} - diff --git a/adb/src/model/DescribeMaintenanceActionRequest.cc b/adb/src/model/DescribeMaintenanceActionRequest.cc deleted file mode 100644 index 96ded2973..000000000 --- a/adb/src/model/DescribeMaintenanceActionRequest.cc +++ /dev/null @@ -1,126 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::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 deleted file mode 100644 index acc339292..000000000 --- a/adb/src/model/DescribeMaintenanceActionResult.cc +++ /dev/null @@ -1,104 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#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 deleted file mode 100644 index ce352b29d..000000000 --- a/adb/src/model/DescribeOperatorPermissionRequest.cc +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#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_; -} - -void DescribeOperatorPermissionRequest::setResourceOwnerId(long resourceOwnerId) { - resourceOwnerId_ = resourceOwnerId; - setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); -} - -std::string DescribeOperatorPermissionRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void DescribeOperatorPermissionRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string DescribeOperatorPermissionRequest::getResourceOwnerAccount() const { - return resourceOwnerAccount_; -} - -void DescribeOperatorPermissionRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); -} - -std::string DescribeOperatorPermissionRequest::getDBClusterId() const { - return dBClusterId_; -} - -void DescribeOperatorPermissionRequest::setDBClusterId(const std::string &dBClusterId) { - dBClusterId_ = dBClusterId; - setParameter(std::string("DBClusterId"), dBClusterId); -} - -std::string DescribeOperatorPermissionRequest::getOwnerAccount() const { - return ownerAccount_; -} - -void DescribeOperatorPermissionRequest::setOwnerAccount(const std::string &ownerAccount) { - ownerAccount_ = ownerAccount; - setParameter(std::string("OwnerAccount"), ownerAccount); -} - -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 deleted file mode 100644 index da8250464..000000000 --- a/adb/src/model/DescribeOperatorPermissionResult.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Adb; -using namespace AlibabaCloud::Adb::Model; - -DescribeOperatorPermissionResult::DescribeOperatorPermissionResult() : - ServiceResult() -{} - -DescribeOperatorPermissionResult::DescribeOperatorPermissionResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeOperatorPermissionResult::~DescribeOperatorPermissionResult() -{} - -void DescribeOperatorPermissionResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].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()) - dBClusterId_ = value["DBClusterId"].asString(); - -} - -std::string DescribeOperatorPermissionResult::getCreatedTime()const -{ - return createdTime_; -} - -std::string DescribeOperatorPermissionResult::getPrivileges()const -{ - return privileges_; -} - -std::string DescribeOperatorPermissionResult::getExpiredTime()const -{ - return expiredTime_; -} - -std::string DescribeOperatorPermissionResult::getDBClusterId()const -{ - return dBClusterId_; -} - diff --git a/adb/src/model/DescribePatternPerformanceRequest.cc b/adb/src/model/DescribePatternPerformanceRequest.cc index f7e4e8a76..1d06ec097 100644 --- a/adb/src/model/DescribePatternPerformanceRequest.cc +++ b/adb/src/model/DescribePatternPerformanceRequest.cc @@ -19,21 +19,12 @@ using AlibabaCloud::Adb::Model::DescribePatternPerformanceRequest; DescribePatternPerformanceRequest::DescribePatternPerformanceRequest() - : RpcServiceRequest("adb", "2019-03-15", "DescribePatternPerformance") { + : RpcServiceRequest("adb", "2021-12-01", "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_; } @@ -70,3 +61,21 @@ void DescribePatternPerformanceRequest::setStartTime(const std::string &startTim setParameter(std::string("StartTime"), startTime); } +std::string DescribePatternPerformanceRequest::getRegionId() const { + return regionId_; +} + +void DescribePatternPerformanceRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DescribePatternPerformanceRequest::getKey() const { + return key_; +} + +void DescribePatternPerformanceRequest::setKey(const std::string &key) { + key_ = key; + setParameter(std::string("Key"), key); +} + diff --git a/adb/src/model/DescribeProcessListRequest.cc b/adb/src/model/DescribeProcessListRequest.cc deleted file mode 100644 index 2d0301876..000000000 --- a/adb/src/model/DescribeProcessListRequest.cc +++ /dev/null @@ -1,144 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Adb::Model::DescribeProcessListRequest; - -DescribeProcessListRequest::DescribeProcessListRequest() - : RpcServiceRequest("adb", "2019-03-15", "DescribeProcessList") { - setMethod(HttpRequest::Method::Post); -} - -DescribeProcessListRequest::~DescribeProcessListRequest() {} - -long DescribeProcessListRequest::getResourceOwnerId() const { - return resourceOwnerId_; -} - -void DescribeProcessListRequest::setResourceOwnerId(long resourceOwnerId) { - resourceOwnerId_ = resourceOwnerId; - setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); -} - -int DescribeProcessListRequest::getPageNumber() const { - return pageNumber_; -} - -void DescribeProcessListRequest::setPageNumber(int pageNumber) { - pageNumber_ = pageNumber; - setParameter(std::string("PageNumber"), std::to_string(pageNumber)); -} - -std::string DescribeProcessListRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void DescribeProcessListRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -int DescribeProcessListRequest::getPageSize() const { - return pageSize_; -} - -void DescribeProcessListRequest::setPageSize(int pageSize) { - pageSize_ = pageSize; - setParameter(std::string("PageSize"), std::to_string(pageSize)); -} - -bool DescribeProcessListRequest::getShowFull() const { - return showFull_; -} - -void DescribeProcessListRequest::setShowFull(bool showFull) { - showFull_ = showFull; - setParameter(std::string("ShowFull"), showFull ? "true" : "false"); -} - -int DescribeProcessListRequest::getRunningTime() const { - return runningTime_; -} - -void DescribeProcessListRequest::setRunningTime(int runningTime) { - runningTime_ = runningTime; - setParameter(std::string("RunningTime"), std::to_string(runningTime)); -} - -std::string DescribeProcessListRequest::getKeyword() const { - return keyword_; -} - -void DescribeProcessListRequest::setKeyword(const std::string &keyword) { - keyword_ = keyword; - setParameter(std::string("Keyword"), keyword); -} - -std::string DescribeProcessListRequest::getOrder() const { - return order_; -} - -void DescribeProcessListRequest::setOrder(const std::string &order) { - order_ = order; - setParameter(std::string("Order"), order); -} - -std::string DescribeProcessListRequest::getResourceOwnerAccount() const { - return resourceOwnerAccount_; -} - -void DescribeProcessListRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); -} - -std::string DescribeProcessListRequest::getDBClusterId() const { - return dBClusterId_; -} - -void DescribeProcessListRequest::setDBClusterId(const std::string &dBClusterId) { - dBClusterId_ = dBClusterId; - setParameter(std::string("DBClusterId"), dBClusterId); -} - -std::string DescribeProcessListRequest::getOwnerAccount() const { - return ownerAccount_; -} - -void DescribeProcessListRequest::setOwnerAccount(const std::string &ownerAccount) { - ownerAccount_ = ownerAccount; - setParameter(std::string("OwnerAccount"), ownerAccount); -} - -long DescribeProcessListRequest::getOwnerId() const { - return ownerId_; -} - -void DescribeProcessListRequest::setOwnerId(long ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), std::to_string(ownerId)); -} - -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 deleted file mode 100644 index 287c32075..000000000 --- a/adb/src/model/DescribeProcessListResult.cc +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Adb; -using namespace AlibabaCloud::Adb::Model; - -DescribeProcessListResult::DescribeProcessListResult() : - ServiceResult() -{} - -DescribeProcessListResult::DescribeProcessListResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeProcessListResult::~DescribeProcessListResult() -{} - -void DescribeProcessListResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allItemsNode = value["Items"]["Process"]; - for (auto valueItemsProcess : allItemsNode) - { - Process itemsObject; - 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["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["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["PageSize"].isNull()) - pageSize_ = value["PageSize"].asString(); - if(!value["PageNumber"].isNull()) - pageNumber_ = value["PageNumber"].asString(); - -} - -std::string DescribeProcessListResult::getTotalCount()const -{ - return totalCount_; -} - -std::string DescribeProcessListResult::getPageSize()const -{ - return pageSize_; -} - -std::string DescribeProcessListResult::getPageNumber()const -{ - return pageNumber_; -} - -std::vector DescribeProcessListResult::getItems()const -{ - return items_; -} - diff --git a/adb/src/model/DescribeRegionsRequest.cc b/adb/src/model/DescribeRegionsRequest.cc index ed8608021..2c21ade76 100644 --- a/adb/src/model/DescribeRegionsRequest.cc +++ b/adb/src/model/DescribeRegionsRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Adb::Model::DescribeRegionsRequest; DescribeRegionsRequest::DescribeRegionsRequest() - : RpcServiceRequest("adb", "2019-03-15", "DescribeRegions") { + : RpcServiceRequest("adb", "2021-12-01", "DescribeRegions") { setMethod(HttpRequest::Method::Post); } diff --git a/adb/src/model/DescribeSQLPatternAttributeRequest.cc b/adb/src/model/DescribeSQLPatternAttributeRequest.cc index 1e9201d2b..76caa6003 100644 --- a/adb/src/model/DescribeSQLPatternAttributeRequest.cc +++ b/adb/src/model/DescribeSQLPatternAttributeRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Adb::Model::DescribeSQLPatternAttributeRequest; DescribeSQLPatternAttributeRequest::DescribeSQLPatternAttributeRequest() - : RpcServiceRequest("adb", "2019-03-15", "DescribeSQLPatternAttribute") { + : RpcServiceRequest("adb", "2021-12-01", "DescribeSQLPatternAttribute") { setMethod(HttpRequest::Method::Post); } diff --git a/adb/src/model/DescribeSQLPatternsRequest.cc b/adb/src/model/DescribeSQLPatternsRequest.cc index 4ceb49d23..1df485d35 100644 --- a/adb/src/model/DescribeSQLPatternsRequest.cc +++ b/adb/src/model/DescribeSQLPatternsRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Adb::Model::DescribeSQLPatternsRequest; DescribeSQLPatternsRequest::DescribeSQLPatternsRequest() - : RpcServiceRequest("adb", "2019-03-15", "DescribeSQLPatterns") { + : RpcServiceRequest("adb", "2021-12-01", "DescribeSQLPatterns") { setMethod(HttpRequest::Method::Post); } diff --git a/adb/src/model/DescribeSQLPlanRequest.cc b/adb/src/model/DescribeSQLPlanRequest.cc deleted file mode 100644 index a0e88f712..000000000 --- a/adb/src/model/DescribeSQLPlanRequest.cc +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Adb::Model::DescribeSQLPlanRequest; - -DescribeSQLPlanRequest::DescribeSQLPlanRequest() - : RpcServiceRequest("adb", "2019-03-15", "DescribeSQLPlan") { - setMethod(HttpRequest::Method::Post); -} - -DescribeSQLPlanRequest::~DescribeSQLPlanRequest() {} - -long DescribeSQLPlanRequest::getResourceOwnerId() const { - return resourceOwnerId_; -} - -void DescribeSQLPlanRequest::setResourceOwnerId(long resourceOwnerId) { - resourceOwnerId_ = resourceOwnerId; - setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); -} - -std::string DescribeSQLPlanRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void DescribeSQLPlanRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string DescribeSQLPlanRequest::getResourceOwnerAccount() const { - return resourceOwnerAccount_; -} - -void DescribeSQLPlanRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); -} - -std::string DescribeSQLPlanRequest::getDBClusterId() const { - return dBClusterId_; -} - -void DescribeSQLPlanRequest::setDBClusterId(const std::string &dBClusterId) { - dBClusterId_ = dBClusterId; - setParameter(std::string("DBClusterId"), dBClusterId); -} - -std::string DescribeSQLPlanRequest::getOwnerAccount() const { - return ownerAccount_; -} - -void DescribeSQLPlanRequest::setOwnerAccount(const std::string &ownerAccount) { - ownerAccount_ = ownerAccount; - setParameter(std::string("OwnerAccount"), ownerAccount); -} - -long DescribeSQLPlanRequest::getOwnerId() const { - return ownerId_; -} - -void DescribeSQLPlanRequest::setOwnerId(long ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), std::to_string(ownerId)); -} - -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 deleted file mode 100644 index fa4f4302d..000000000 --- a/adb/src/model/DescribeSQLPlanResult.cc +++ /dev/null @@ -1,130 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Adb; -using namespace AlibabaCloud::Adb::Model; - -DescribeSQLPlanResult::DescribeSQLPlanResult() : - ServiceResult() -{} - -DescribeSQLPlanResult::DescribeSQLPlanResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeSQLPlanResult::~DescribeSQLPlanResult() -{} - -void DescribeSQLPlanResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allStageListNode = value["StageList"]["SqlPlanStage"]; - for (auto valueStageListSqlPlanStage : allStageListNode) - { - SqlPlanStage stageListObject; - if(!valueStageListSqlPlanStage["State"].isNull()) - stageListObject.state = valueStageListSqlPlanStage["State"].asString(); - if(!valueStageListSqlPlanStage["CPUTimeAvg"].isNull()) - stageListObject.cPUTimeAvg = std::stol(valueStageListSqlPlanStage["CPUTimeAvg"].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["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["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(!value["OriginInfo"].isNull()) - originInfo_ = value["OriginInfo"].asString(); - -} - -std::vector DescribeSQLPlanResult::getStageList()const -{ - return stageList_; -} - -std::string DescribeSQLPlanResult::getOriginInfo()const -{ - return originInfo_; -} - -DescribeSQLPlanResult::Detail DescribeSQLPlanResult::getDetail()const -{ - return detail_; -} - diff --git a/adb/src/model/DescribeSQLPlanTaskRequest.cc b/adb/src/model/DescribeSQLPlanTaskRequest.cc deleted file mode 100644 index 73ab4075a..000000000 --- a/adb/src/model/DescribeSQLPlanTaskRequest.cc +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Adb::Model::DescribeSQLPlanTaskRequest; - -DescribeSQLPlanTaskRequest::DescribeSQLPlanTaskRequest() - : RpcServiceRequest("adb", "2019-03-15", "DescribeSQLPlanTask") { - setMethod(HttpRequest::Method::Post); -} - -DescribeSQLPlanTaskRequest::~DescribeSQLPlanTaskRequest() {} - -long DescribeSQLPlanTaskRequest::getResourceOwnerId() const { - return resourceOwnerId_; -} - -void DescribeSQLPlanTaskRequest::setResourceOwnerId(long resourceOwnerId) { - resourceOwnerId_ = resourceOwnerId; - setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); -} - -std::string DescribeSQLPlanTaskRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void DescribeSQLPlanTaskRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string DescribeSQLPlanTaskRequest::getResourceOwnerAccount() const { - return resourceOwnerAccount_; -} - -void DescribeSQLPlanTaskRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); -} - -std::string DescribeSQLPlanTaskRequest::getDBClusterId() const { - return dBClusterId_; -} - -void DescribeSQLPlanTaskRequest::setDBClusterId(const std::string &dBClusterId) { - dBClusterId_ = dBClusterId; - setParameter(std::string("DBClusterId"), dBClusterId); -} - -std::string DescribeSQLPlanTaskRequest::getOwnerAccount() const { - return ownerAccount_; -} - -void DescribeSQLPlanTaskRequest::setOwnerAccount(const std::string &ownerAccount) { - ownerAccount_ = ownerAccount; - setParameter(std::string("OwnerAccount"), ownerAccount); -} - -long DescribeSQLPlanTaskRequest::getOwnerId() const { - return ownerId_; -} - -void DescribeSQLPlanTaskRequest::setOwnerId(long ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), std::to_string(ownerId)); -} - -std::string DescribeSQLPlanTaskRequest::getProcessId() const { - return processId_; -} - -void DescribeSQLPlanTaskRequest::setProcessId(const std::string &processId) { - processId_ = processId; - setParameter(std::string("ProcessId"), processId); -} - -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 deleted file mode 100644 index 43f64978d..000000000 --- a/adb/src/model/DescribeSQLPlanTaskResult.cc +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Adb; -using namespace AlibabaCloud::Adb::Model; - -DescribeSQLPlanTaskResult::DescribeSQLPlanTaskResult() : - ServiceResult() -{} - -DescribeSQLPlanTaskResult::DescribeSQLPlanTaskResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeSQLPlanTaskResult::~DescribeSQLPlanTaskResult() -{} - -void DescribeSQLPlanTaskResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allTaskListNode = value["TaskList"]["SqlPlanTask"]; - for (auto valueTaskListSqlPlanTask : allTaskListNode) - { - SqlPlanTask taskListObject; - 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); - } - -} - -std::vector DescribeSQLPlanTaskResult::getTaskList()const -{ - return taskList_; -} - diff --git a/adb/src/model/DescribeSchemasRequest.cc b/adb/src/model/DescribeSchemasRequest.cc deleted file mode 100644 index 87cb13c13..000000000 --- a/adb/src/model/DescribeSchemasRequest.cc +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#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_; -} - -void DescribeSchemasRequest::setResourceOwnerId(long resourceOwnerId) { - resourceOwnerId_ = resourceOwnerId; - setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); -} - -std::string DescribeSchemasRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void DescribeSchemasRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string DescribeSchemasRequest::getResourceOwnerAccount() const { - return resourceOwnerAccount_; -} - -void DescribeSchemasRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); -} - -std::string DescribeSchemasRequest::getDBClusterId() const { - return dBClusterId_; -} - -void DescribeSchemasRequest::setDBClusterId(const std::string &dBClusterId) { - dBClusterId_ = dBClusterId; - setParameter(std::string("DBClusterId"), dBClusterId); -} - -std::string DescribeSchemasRequest::getOwnerAccount() const { - return ownerAccount_; -} - -void DescribeSchemasRequest::setOwnerAccount(const std::string &ownerAccount) { - ownerAccount_ = ownerAccount; - setParameter(std::string("OwnerAccount"), ownerAccount); -} - -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 deleted file mode 100644 index e06033238..000000000 --- a/adb/src/model/DescribeSlowLogRecordsRequest.cc +++ /dev/null @@ -1,162 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Adb::Model::DescribeSlowLogRecordsRequest; - -DescribeSlowLogRecordsRequest::DescribeSlowLogRecordsRequest() - : RpcServiceRequest("adb", "2019-03-15", "DescribeSlowLogRecords") { - setMethod(HttpRequest::Method::Post); -} - -DescribeSlowLogRecordsRequest::~DescribeSlowLogRecordsRequest() {} - -long DescribeSlowLogRecordsRequest::getResourceOwnerId() const { - return resourceOwnerId_; -} - -void DescribeSlowLogRecordsRequest::setResourceOwnerId(long resourceOwnerId) { - resourceOwnerId_ = resourceOwnerId; - setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); -} - -std::string DescribeSlowLogRecordsRequest::getRange() const { - return range_; -} - -void DescribeSlowLogRecordsRequest::setRange(const std::string &range) { - range_ = range; - setParameter(std::string("Range"), range); -} - -std::string DescribeSlowLogRecordsRequest::getStartTime() const { - return startTime_; -} - -void DescribeSlowLogRecordsRequest::setStartTime(const std::string &startTime) { - startTime_ = startTime; - setParameter(std::string("StartTime"), startTime); -} - -int DescribeSlowLogRecordsRequest::getPageNumber() const { - return pageNumber_; -} - -void DescribeSlowLogRecordsRequest::setPageNumber(int pageNumber) { - pageNumber_ = pageNumber; - setParameter(std::string("PageNumber"), std::to_string(pageNumber)); -} - -std::string DescribeSlowLogRecordsRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void DescribeSlowLogRecordsRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -int DescribeSlowLogRecordsRequest::getPageSize() const { - return pageSize_; -} - -void DescribeSlowLogRecordsRequest::setPageSize(int pageSize) { - pageSize_ = pageSize; - setParameter(std::string("PageSize"), std::to_string(pageSize)); -} - -std::string DescribeSlowLogRecordsRequest::getState() const { - return state_; -} - -void DescribeSlowLogRecordsRequest::setState(const std::string &state) { - state_ = state; - setParameter(std::string("State"), state); -} - -std::string DescribeSlowLogRecordsRequest::getOrder() const { - return order_; -} - -void DescribeSlowLogRecordsRequest::setOrder(const std::string &order) { - order_ = order; - setParameter(std::string("Order"), order); -} - -std::string DescribeSlowLogRecordsRequest::getResourceOwnerAccount() const { - return resourceOwnerAccount_; -} - -void DescribeSlowLogRecordsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); -} - -std::string DescribeSlowLogRecordsRequest::getDBClusterId() const { - return dBClusterId_; -} - -void DescribeSlowLogRecordsRequest::setDBClusterId(const std::string &dBClusterId) { - dBClusterId_ = dBClusterId; - setParameter(std::string("DBClusterId"), dBClusterId); -} - -std::string DescribeSlowLogRecordsRequest::getOwnerAccount() const { - return ownerAccount_; -} - -void DescribeSlowLogRecordsRequest::setOwnerAccount(const std::string &ownerAccount) { - ownerAccount_ = ownerAccount; - setParameter(std::string("OwnerAccount"), ownerAccount); -} - -std::string DescribeSlowLogRecordsRequest::getEndTime() const { - return endTime_; -} - -void DescribeSlowLogRecordsRequest::setEndTime(const std::string &endTime) { - endTime_ = endTime; - setParameter(std::string("EndTime"), endTime); -} - -long DescribeSlowLogRecordsRequest::getOwnerId() const { - return ownerId_; -} - -void DescribeSlowLogRecordsRequest::setOwnerId(long ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), std::to_string(ownerId)); -} - -std::string DescribeSlowLogRecordsRequest::getDBName() const { - return dBName_; -} - -void DescribeSlowLogRecordsRequest::setDBName(const std::string &dBName) { - dBName_ = dBName; - setParameter(std::string("DBName"), dBName); -} - -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 deleted file mode 100644 index f98c8ff37..000000000 --- a/adb/src/model/DescribeSlowLogRecordsResult.cc +++ /dev/null @@ -1,119 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Adb; -using namespace AlibabaCloud::Adb::Model; - -DescribeSlowLogRecordsResult::DescribeSlowLogRecordsResult() : - ServiceResult() -{} - -DescribeSlowLogRecordsResult::DescribeSlowLogRecordsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeSlowLogRecordsResult::~DescribeSlowLogRecordsResult() -{} - -void DescribeSlowLogRecordsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allItemsNode = value["Items"]["SlowLogRecord"]; - for (auto valueItemsSlowLogRecord : allItemsNode) - { - SlowLogRecord itemsObject; - 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["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["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()) - totalCount_ = value["TotalCount"].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(); - -} - -std::string DescribeSlowLogRecordsResult::getTotalCount()const -{ - return totalCount_; -} - -std::string DescribeSlowLogRecordsResult::getPageSize()const -{ - return pageSize_; -} - -std::string DescribeSlowLogRecordsResult::getPageNumber()const -{ - return pageNumber_; -} - -std::string DescribeSlowLogRecordsResult::getDBClusterId()const -{ - return dBClusterId_; -} - -std::vector DescribeSlowLogRecordsResult::getItems()const -{ - return items_; -} - diff --git a/adb/src/model/DescribeSlowLogTrendRequest.cc b/adb/src/model/DescribeSlowLogTrendRequest.cc deleted file mode 100644 index 896338ffb..000000000 --- a/adb/src/model/DescribeSlowLogTrendRequest.cc +++ /dev/null @@ -1,108 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Adb::Model::DescribeSlowLogTrendRequest; - -DescribeSlowLogTrendRequest::DescribeSlowLogTrendRequest() - : RpcServiceRequest("adb", "2019-03-15", "DescribeSlowLogTrend") { - setMethod(HttpRequest::Method::Post); -} - -DescribeSlowLogTrendRequest::~DescribeSlowLogTrendRequest() {} - -long DescribeSlowLogTrendRequest::getResourceOwnerId() const { - return resourceOwnerId_; -} - -void DescribeSlowLogTrendRequest::setResourceOwnerId(long resourceOwnerId) { - resourceOwnerId_ = resourceOwnerId; - setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); -} - -std::string DescribeSlowLogTrendRequest::getStartTime() const { - return startTime_; -} - -void DescribeSlowLogTrendRequest::setStartTime(const std::string &startTime) { - startTime_ = startTime; - setParameter(std::string("StartTime"), startTime); -} - -std::string DescribeSlowLogTrendRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void DescribeSlowLogTrendRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string DescribeSlowLogTrendRequest::getResourceOwnerAccount() const { - return resourceOwnerAccount_; -} - -void DescribeSlowLogTrendRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); -} - -std::string DescribeSlowLogTrendRequest::getDBClusterId() const { - return dBClusterId_; -} - -void DescribeSlowLogTrendRequest::setDBClusterId(const std::string &dBClusterId) { - dBClusterId_ = dBClusterId; - setParameter(std::string("DBClusterId"), dBClusterId); -} - -std::string DescribeSlowLogTrendRequest::getOwnerAccount() const { - return ownerAccount_; -} - -void DescribeSlowLogTrendRequest::setOwnerAccount(const std::string &ownerAccount) { - ownerAccount_ = ownerAccount; - setParameter(std::string("OwnerAccount"), ownerAccount); -} - -std::string DescribeSlowLogTrendRequest::getEndTime() const { - return endTime_; -} - -void DescribeSlowLogTrendRequest::setEndTime(const std::string &endTime) { - endTime_ = endTime; - setParameter(std::string("EndTime"), endTime); -} - -long DescribeSlowLogTrendRequest::getOwnerId() const { - return ownerId_; -} - -void DescribeSlowLogTrendRequest::setOwnerId(long ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), std::to_string(ownerId)); -} - -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 deleted file mode 100644 index a0926ab4d..000000000 --- a/adb/src/model/DescribeSlowLogTrendResult.cc +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Adb; -using namespace AlibabaCloud::Adb::Model; - -DescribeSlowLogTrendResult::DescribeSlowLogTrendResult() : - ServiceResult() -{} - -DescribeSlowLogTrendResult::DescribeSlowLogTrendResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeSlowLogTrendResult::~DescribeSlowLogTrendResult() -{} - -void DescribeSlowLogTrendResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allItemsNode = value["Items"]["SlowLogTrendItem"]; - for (auto valueItemsSlowLogTrendItem : allItemsNode) - { - SlowLogTrendItem itemsObject; - if(!valueItemsSlowLogTrendItem["Key"].isNull()) - itemsObject.key = valueItemsSlowLogTrendItem["Key"].asString(); - if(!valueItemsSlowLogTrendItem["Unit"].isNull()) - itemsObject.unit = valueItemsSlowLogTrendItem["Unit"].asString(); - auto allSeriesNode = valueItemsSlowLogTrendItem["Series"]["SeriesItem"]; - for (auto valueItemsSlowLogTrendItemSeriesSeriesItem : allSeriesNode) - { - SlowLogTrendItem::SeriesItem seriesObject; - 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["EndTime"].isNull()) - endTime_ = value["EndTime"].asString(); - if(!value["StartTime"].isNull()) - startTime_ = value["StartTime"].asString(); - if(!value["DBClusterId"].isNull()) - dBClusterId_ = value["DBClusterId"].asString(); - -} - -std::string DescribeSlowLogTrendResult::getEndTime()const -{ - return endTime_; -} - -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/DescribeSparkCodeLogRequest.cc b/adb/src/model/DescribeSparkCodeLogRequest.cc new file mode 100644 index 000000000..52cc6c2c4 --- /dev/null +++ b/adb/src/model/DescribeSparkCodeLogRequest.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::DescribeSparkCodeLogRequest; + +DescribeSparkCodeLogRequest::DescribeSparkCodeLogRequest() + : RpcServiceRequest("adb", "2021-12-01", "DescribeSparkCodeLog") { + setMethod(HttpRequest::Method::Post); +} + +DescribeSparkCodeLogRequest::~DescribeSparkCodeLogRequest() {} + +long DescribeSparkCodeLogRequest::getJobId() const { + return jobId_; +} + +void DescribeSparkCodeLogRequest::setJobId(long jobId) { + jobId_ = jobId; + setParameter(std::string("JobId"), std::to_string(jobId)); +} + +std::string DescribeSparkCodeLogRequest::getRegionId() const { + return regionId_; +} + +void DescribeSparkCodeLogRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DescribeSparkCodeLogRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DescribeSparkCodeLogRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + diff --git a/adb/src/model/DeleteDBResourcePoolResult.cc b/adb/src/model/DescribeSparkCodeLogResult.cc similarity index 55% rename from adb/src/model/DeleteDBResourcePoolResult.cc rename to adb/src/model/DescribeSparkCodeLogResult.cc index 931316e8a..183e217d0 100644 --- a/adb/src/model/DeleteDBResourcePoolResult.cc +++ b/adb/src/model/DescribeSparkCodeLogResult.cc @@ -14,31 +14,52 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Adb; using namespace AlibabaCloud::Adb::Model; -DeleteDBResourcePoolResult::DeleteDBResourcePoolResult() : +DescribeSparkCodeLogResult::DescribeSparkCodeLogResult() : ServiceResult() {} -DeleteDBResourcePoolResult::DeleteDBResourcePoolResult(const std::string &payload) : +DescribeSparkCodeLogResult::DescribeSparkCodeLogResult(const std::string &payload) : ServiceResult() { parse(payload); } -DeleteDBResourcePoolResult::~DeleteDBResourcePoolResult() +DescribeSparkCodeLogResult::~DescribeSparkCodeLogResult() {} -void DeleteDBResourcePoolResult::parse(const std::string &payload) +void DescribeSparkCodeLogResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Log"].isNull()) + log_ = value["Log"].asString(); } +std::string DescribeSparkCodeLogResult::getMessage()const +{ + return message_; +} + +std::string DescribeSparkCodeLogResult::getLog()const +{ + return log_; +} + +bool DescribeSparkCodeLogResult::getSuccess()const +{ + return success_; +} + diff --git a/adb/src/model/DescribeSparkCodeOutputRequest.cc b/adb/src/model/DescribeSparkCodeOutputRequest.cc new file mode 100644 index 000000000..462ef6b44 --- /dev/null +++ b/adb/src/model/DescribeSparkCodeOutputRequest.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::DescribeSparkCodeOutputRequest; + +DescribeSparkCodeOutputRequest::DescribeSparkCodeOutputRequest() + : RpcServiceRequest("adb", "2021-12-01", "DescribeSparkCodeOutput") { + setMethod(HttpRequest::Method::Post); +} + +DescribeSparkCodeOutputRequest::~DescribeSparkCodeOutputRequest() {} + +long DescribeSparkCodeOutputRequest::getJobId() const { + return jobId_; +} + +void DescribeSparkCodeOutputRequest::setJobId(long jobId) { + jobId_ = jobId; + setParameter(std::string("JobId"), std::to_string(jobId)); +} + +std::string DescribeSparkCodeOutputRequest::getRegionId() const { + return regionId_; +} + +void DescribeSparkCodeOutputRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DescribeSparkCodeOutputRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DescribeSparkCodeOutputRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + diff --git a/adb/src/model/DescribeSparkCodeOutputResult.cc b/adb/src/model/DescribeSparkCodeOutputResult.cc new file mode 100644 index 000000000..6c79977e5 --- /dev/null +++ b/adb/src/model/DescribeSparkCodeOutputResult.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; + +DescribeSparkCodeOutputResult::DescribeSparkCodeOutputResult() : + ServiceResult() +{} + +DescribeSparkCodeOutputResult::DescribeSparkCodeOutputResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSparkCodeOutputResult::~DescribeSparkCodeOutputResult() +{} + +void DescribeSparkCodeOutputResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Output"].isNull()) + output_ = value["Output"].asString(); + +} + +std::string DescribeSparkCodeOutputResult::getMessage()const +{ + return message_; +} + +std::string DescribeSparkCodeOutputResult::getOutput()const +{ + return output_; +} + +bool DescribeSparkCodeOutputResult::getSuccess()const +{ + return success_; +} + diff --git a/adb/src/model/DescribeSparkCodeWebUiRequest.cc b/adb/src/model/DescribeSparkCodeWebUiRequest.cc new file mode 100644 index 000000000..a1303d038 --- /dev/null +++ b/adb/src/model/DescribeSparkCodeWebUiRequest.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::DescribeSparkCodeWebUiRequest; + +DescribeSparkCodeWebUiRequest::DescribeSparkCodeWebUiRequest() + : RpcServiceRequest("adb", "2021-12-01", "DescribeSparkCodeWebUi") { + setMethod(HttpRequest::Method::Post); +} + +DescribeSparkCodeWebUiRequest::~DescribeSparkCodeWebUiRequest() {} + +long DescribeSparkCodeWebUiRequest::getJobId() const { + return jobId_; +} + +void DescribeSparkCodeWebUiRequest::setJobId(long jobId) { + jobId_ = jobId; + setParameter(std::string("JobId"), std::to_string(jobId)); +} + +std::string DescribeSparkCodeWebUiRequest::getRegionId() const { + return regionId_; +} + +void DescribeSparkCodeWebUiRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DescribeSparkCodeWebUiRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DescribeSparkCodeWebUiRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + diff --git a/adb/src/model/ModifyDBClusterPayTypeResult.cc b/adb/src/model/DescribeSparkCodeWebUiResult.cc similarity index 54% rename from adb/src/model/ModifyDBClusterPayTypeResult.cc rename to adb/src/model/DescribeSparkCodeWebUiResult.cc index 0d375e3d7..44a338977 100644 --- a/adb/src/model/ModifyDBClusterPayTypeResult.cc +++ b/adb/src/model/DescribeSparkCodeWebUiResult.cc @@ -14,52 +14,52 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Adb; using namespace AlibabaCloud::Adb::Model; -ModifyDBClusterPayTypeResult::ModifyDBClusterPayTypeResult() : +DescribeSparkCodeWebUiResult::DescribeSparkCodeWebUiResult() : ServiceResult() {} -ModifyDBClusterPayTypeResult::ModifyDBClusterPayTypeResult(const std::string &payload) : +DescribeSparkCodeWebUiResult::DescribeSparkCodeWebUiResult(const std::string &payload) : ServiceResult() { parse(payload); } -ModifyDBClusterPayTypeResult::~ModifyDBClusterPayTypeResult() +DescribeSparkCodeWebUiResult::~DescribeSparkCodeWebUiResult() {} -void ModifyDBClusterPayTypeResult::parse(const std::string &payload) +void DescribeSparkCodeWebUiResult::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(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Url"].isNull()) + url_ = value["Url"].asString(); } -std::string ModifyDBClusterPayTypeResult::getDBClusterId()const +std::string DescribeSparkCodeWebUiResult::getMessage()const { - return dBClusterId_; + return message_; } -std::string ModifyDBClusterPayTypeResult::getPayType()const +bool DescribeSparkCodeWebUiResult::getSuccess()const { - return payType_; + return success_; } -std::string ModifyDBClusterPayTypeResult::getOrderId()const +std::string DescribeSparkCodeWebUiResult::getUrl()const { - return orderId_; + return url_; } diff --git a/adb/src/model/DescribeSqlPatternRequest.cc b/adb/src/model/DescribeSqlPatternRequest.cc index b8aaca378..371db42f1 100644 --- a/adb/src/model/DescribeSqlPatternRequest.cc +++ b/adb/src/model/DescribeSqlPatternRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Adb::Model::DescribeSqlPatternRequest; DescribeSqlPatternRequest::DescribeSqlPatternRequest() - : RpcServiceRequest("adb", "2019-03-15", "DescribeSqlPattern") { + : RpcServiceRequest("adb", "2021-12-01", "DescribeSqlPattern") { setMethod(HttpRequest::Method::Post); } diff --git a/adb/src/model/DescribeTableAccessCountRequest.cc b/adb/src/model/DescribeTableAccessCountRequest.cc index 989b7e741..3ed420da7 100644 --- a/adb/src/model/DescribeTableAccessCountRequest.cc +++ b/adb/src/model/DescribeTableAccessCountRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Adb::Model::DescribeTableAccessCountRequest; DescribeTableAccessCountRequest::DescribeTableAccessCountRequest() - : RpcServiceRequest("adb", "2019-03-15", "DescribeTableAccessCount") { + : RpcServiceRequest("adb", "2021-12-01", "DescribeTableAccessCount") { setMethod(HttpRequest::Method::Post); } diff --git a/adb/src/model/DescribeTableDetailRequest.cc b/adb/src/model/DescribeTableDetailRequest.cc deleted file mode 100644 index 942ef3a0e..000000000 --- a/adb/src/model/DescribeTableDetailRequest.cc +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Adb::Model::DescribeTableDetailRequest; - -DescribeTableDetailRequest::DescribeTableDetailRequest() - : RpcServiceRequest("adb", "2019-03-15", "DescribeTableDetail") { - setMethod(HttpRequest::Method::Post); -} - -DescribeTableDetailRequest::~DescribeTableDetailRequest() {} - -long DescribeTableDetailRequest::getResourceOwnerId() const { - return resourceOwnerId_; -} - -void DescribeTableDetailRequest::setResourceOwnerId(long resourceOwnerId) { - resourceOwnerId_ = resourceOwnerId; - setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); -} - -std::string DescribeTableDetailRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void DescribeTableDetailRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string DescribeTableDetailRequest::getTableName() const { - return tableName_; -} - -void DescribeTableDetailRequest::setTableName(const std::string &tableName) { - tableName_ = tableName; - setParameter(std::string("TableName"), tableName); -} - -std::string DescribeTableDetailRequest::getSchemaName() const { - return schemaName_; -} - -void DescribeTableDetailRequest::setSchemaName(const std::string &schemaName) { - schemaName_ = schemaName; - setParameter(std::string("SchemaName"), schemaName); -} - -std::string DescribeTableDetailRequest::getResourceOwnerAccount() const { - return resourceOwnerAccount_; -} - -void DescribeTableDetailRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); -} - -std::string DescribeTableDetailRequest::getDBClusterId() const { - return dBClusterId_; -} - -void DescribeTableDetailRequest::setDBClusterId(const std::string &dBClusterId) { - dBClusterId_ = dBClusterId; - setParameter(std::string("DBClusterId"), dBClusterId); -} - -std::string DescribeTableDetailRequest::getOwnerAccount() const { - return ownerAccount_; -} - -void DescribeTableDetailRequest::setOwnerAccount(const std::string &ownerAccount) { - ownerAccount_ = ownerAccount; - setParameter(std::string("OwnerAccount"), ownerAccount); -} - -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 deleted file mode 100644 index 7a2238587..000000000 --- a/adb/src/model/DescribeTableDetailResult.cc +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Adb; -using namespace AlibabaCloud::Adb::Model; - -DescribeTableDetailResult::DescribeTableDetailResult() : - ServiceResult() -{} - -DescribeTableDetailResult::DescribeTableDetailResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeTableDetailResult::~DescribeTableDetailResult() -{} - -void DescribeTableDetailResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allItemsNode = value["Items"]["Shard"]; - for (auto valueItemsShard : allItemsNode) - { - Shard itemsObject; - 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()) - avgSize_ = std::stol(value["AvgSize"].asString()); - -} - -long DescribeTableDetailResult::getAvgSize()const -{ - return avgSize_; -} - -std::vector DescribeTableDetailResult::getItems()const -{ - return items_; -} - diff --git a/adb/src/model/DescribeTablePartitionDiagnoseRequest.cc b/adb/src/model/DescribeTablePartitionDiagnoseRequest.cc deleted file mode 100644 index 4756e38fe..000000000 --- a/adb/src/model/DescribeTablePartitionDiagnoseRequest.cc +++ /dev/null @@ -1,108 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Adb::Model::DescribeTablePartitionDiagnoseRequest; - -DescribeTablePartitionDiagnoseRequest::DescribeTablePartitionDiagnoseRequest() - : RpcServiceRequest("adb", "2019-03-15", "DescribeTablePartitionDiagnose") { - setMethod(HttpRequest::Method::Post); -} - -DescribeTablePartitionDiagnoseRequest::~DescribeTablePartitionDiagnoseRequest() {} - -long DescribeTablePartitionDiagnoseRequest::getResourceOwnerId() const { - return resourceOwnerId_; -} - -void DescribeTablePartitionDiagnoseRequest::setResourceOwnerId(long resourceOwnerId) { - resourceOwnerId_ = resourceOwnerId; - setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); -} - -int DescribeTablePartitionDiagnoseRequest::getPageNumber() const { - return pageNumber_; -} - -void DescribeTablePartitionDiagnoseRequest::setPageNumber(int pageNumber) { - pageNumber_ = pageNumber; - setParameter(std::string("PageNumber"), std::to_string(pageNumber)); -} - -std::string DescribeTablePartitionDiagnoseRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void DescribeTablePartitionDiagnoseRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string DescribeTablePartitionDiagnoseRequest::getRegionId() const { - return regionId_; -} - -void DescribeTablePartitionDiagnoseRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - -int DescribeTablePartitionDiagnoseRequest::getPageSize() const { - return pageSize_; -} - -void DescribeTablePartitionDiagnoseRequest::setPageSize(int pageSize) { - pageSize_ = pageSize; - setParameter(std::string("PageSize"), std::to_string(pageSize)); -} - -std::string DescribeTablePartitionDiagnoseRequest::getResourceOwnerAccount() const { - return resourceOwnerAccount_; -} - -void DescribeTablePartitionDiagnoseRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); -} - -std::string DescribeTablePartitionDiagnoseRequest::getDBClusterId() const { - return dBClusterId_; -} - -void DescribeTablePartitionDiagnoseRequest::setDBClusterId(const std::string &dBClusterId) { - dBClusterId_ = dBClusterId; - setParameter(std::string("DBClusterId"), dBClusterId); -} - -std::string DescribeTablePartitionDiagnoseRequest::getOwnerAccount() const { - return ownerAccount_; -} - -void DescribeTablePartitionDiagnoseRequest::setOwnerAccount(const std::string &ownerAccount) { - ownerAccount_ = ownerAccount; - setParameter(std::string("OwnerAccount"), ownerAccount); -} - -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 deleted file mode 100644 index 35025e9c1..000000000 --- a/adb/src/model/DescribeTablePartitionDiagnoseResult.cc +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Adb; -using namespace AlibabaCloud::Adb::Model; - -DescribeTablePartitionDiagnoseResult::DescribeTablePartitionDiagnoseResult() : - ServiceResult() -{} - -DescribeTablePartitionDiagnoseResult::DescribeTablePartitionDiagnoseResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeTablePartitionDiagnoseResult::~DescribeTablePartitionDiagnoseResult() -{} - -void DescribeTablePartitionDiagnoseResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allItemsNode = value["Items"]["TablePartitionDiagnose"]; - for (auto valueItemsTablePartitionDiagnose : allItemsNode) - { - TablePartitionDiagnose itemsObject; - if(!valueItemsTablePartitionDiagnose["TableName"].isNull()) - itemsObject.tableName = valueItemsTablePartitionDiagnose["TableName"].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()) - 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()); - if(!value["DBClusterId"].isNull()) - dBClusterId_ = value["DBClusterId"].asString(); - if(!value["SuggestMaxRecordsPerPartition"].isNull()) - suggestMaxRecordsPerPartition_ = std::stol(value["SuggestMaxRecordsPerPartition"].asString()); - if(!value["SuggestMinRecordsPerPartition"].isNull()) - suggestMinRecordsPerPartition_ = std::stol(value["SuggestMinRecordsPerPartition"].asString()); - -} - -int DescribeTablePartitionDiagnoseResult::getTotalCount()const -{ - return totalCount_; -} - -int DescribeTablePartitionDiagnoseResult::getPageSize()const -{ - return pageSize_; -} - -int DescribeTablePartitionDiagnoseResult::getPageNumber()const -{ - return pageNumber_; -} - -std::string DescribeTablePartitionDiagnoseResult::getDBClusterId()const -{ - return dBClusterId_; -} - -long DescribeTablePartitionDiagnoseResult::getSuggestMaxRecordsPerPartition()const -{ - return suggestMaxRecordsPerPartition_; -} - -std::vector DescribeTablePartitionDiagnoseResult::getItems()const -{ - return items_; -} - -long DescribeTablePartitionDiagnoseResult::getSuggestMinRecordsPerPartition()const -{ - return suggestMinRecordsPerPartition_; -} - diff --git a/adb/src/model/DescribeTableStatisticsRequest.cc b/adb/src/model/DescribeTableStatisticsRequest.cc deleted file mode 100644 index ddc935cab..000000000 --- a/adb/src/model/DescribeTableStatisticsRequest.cc +++ /dev/null @@ -1,108 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Adb::Model::DescribeTableStatisticsRequest; - -DescribeTableStatisticsRequest::DescribeTableStatisticsRequest() - : RpcServiceRequest("adb", "2019-03-15", "DescribeTableStatistics") { - setMethod(HttpRequest::Method::Post); -} - -DescribeTableStatisticsRequest::~DescribeTableStatisticsRequest() {} - -long DescribeTableStatisticsRequest::getResourceOwnerId() const { - return resourceOwnerId_; -} - -void DescribeTableStatisticsRequest::setResourceOwnerId(long resourceOwnerId) { - resourceOwnerId_ = resourceOwnerId; - setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); -} - -int DescribeTableStatisticsRequest::getPageNumber() const { - return pageNumber_; -} - -void DescribeTableStatisticsRequest::setPageNumber(int pageNumber) { - pageNumber_ = pageNumber; - setParameter(std::string("PageNumber"), std::to_string(pageNumber)); -} - -std::string DescribeTableStatisticsRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void DescribeTableStatisticsRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -int DescribeTableStatisticsRequest::getPageSize() const { - return pageSize_; -} - -void DescribeTableStatisticsRequest::setPageSize(int pageSize) { - pageSize_ = pageSize; - setParameter(std::string("PageSize"), std::to_string(pageSize)); -} - -std::string DescribeTableStatisticsRequest::getOrder() const { - return order_; -} - -void DescribeTableStatisticsRequest::setOrder(const std::string &order) { - order_ = order; - setParameter(std::string("Order"), order); -} - -std::string DescribeTableStatisticsRequest::getResourceOwnerAccount() const { - return resourceOwnerAccount_; -} - -void DescribeTableStatisticsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); -} - -std::string DescribeTableStatisticsRequest::getDBClusterId() const { - return dBClusterId_; -} - -void DescribeTableStatisticsRequest::setDBClusterId(const std::string &dBClusterId) { - dBClusterId_ = dBClusterId; - setParameter(std::string("DBClusterId"), dBClusterId); -} - -std::string DescribeTableStatisticsRequest::getOwnerAccount() const { - return ownerAccount_; -} - -void DescribeTableStatisticsRequest::setOwnerAccount(const std::string &ownerAccount) { - ownerAccount_ = ownerAccount; - setParameter(std::string("OwnerAccount"), ownerAccount); -} - -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 deleted file mode 100644 index 1119929da..000000000 --- a/adb/src/model/DescribeTableStatisticsResult.cc +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Adb; -using namespace AlibabaCloud::Adb::Model; - -DescribeTableStatisticsResult::DescribeTableStatisticsResult() : - ServiceResult() -{} - -DescribeTableStatisticsResult::DescribeTableStatisticsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeTableStatisticsResult::~DescribeTableStatisticsResult() -{} - -void DescribeTableStatisticsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allItemsNode = value["Items"]["TableStatisticRecords"]; - for (auto valueItemsTableStatisticRecords : allItemsNode) - { - TableStatisticRecords itemsObject; - 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()) - totalCount_ = value["TotalCount"].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(); - -} - -std::string DescribeTableStatisticsResult::getTotalCount()const -{ - return totalCount_; -} - -std::string DescribeTableStatisticsResult::getPageSize()const -{ - return pageSize_; -} - -std::string DescribeTableStatisticsResult::getPageNumber()const -{ - return pageNumber_; -} - -std::string DescribeTableStatisticsResult::getDBClusterId()const -{ - return dBClusterId_; -} - -std::vector DescribeTableStatisticsResult::getItems()const -{ - return items_; -} - diff --git a/adb/src/model/DescribeTablesRequest.cc b/adb/src/model/DescribeTablesRequest.cc deleted file mode 100644 index def811763..000000000 --- a/adb/src/model/DescribeTablesRequest.cc +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Adb::Model::DescribeTablesRequest; - -DescribeTablesRequest::DescribeTablesRequest() - : RpcServiceRequest("adb", "2019-03-15", "DescribeTables") { - setMethod(HttpRequest::Method::Post); -} - -DescribeTablesRequest::~DescribeTablesRequest() {} - -long DescribeTablesRequest::getResourceOwnerId() const { - return resourceOwnerId_; -} - -void DescribeTablesRequest::setResourceOwnerId(long resourceOwnerId) { - resourceOwnerId_ = resourceOwnerId; - setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); -} - -std::string DescribeTablesRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void DescribeTablesRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string DescribeTablesRequest::getSchemaName() const { - return schemaName_; -} - -void DescribeTablesRequest::setSchemaName(const std::string &schemaName) { - schemaName_ = schemaName; - setParameter(std::string("SchemaName"), schemaName); -} - -std::string DescribeTablesRequest::getResourceOwnerAccount() const { - return resourceOwnerAccount_; -} - -void DescribeTablesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); -} - -std::string DescribeTablesRequest::getDBClusterId() const { - return dBClusterId_; -} - -void DescribeTablesRequest::setDBClusterId(const std::string &dBClusterId) { - dBClusterId_ = dBClusterId; - setParameter(std::string("DBClusterId"), dBClusterId); -} - -std::string DescribeTablesRequest::getOwnerAccount() const { - return ownerAccount_; -} - -void DescribeTablesRequest::setOwnerAccount(const std::string &ownerAccount) { - ownerAccount_ = ownerAccount; - setParameter(std::string("OwnerAccount"), ownerAccount); -} - -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 deleted file mode 100644 index 1ea761eb4..000000000 --- a/adb/src/model/DescribeTablesResult.cc +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Adb; -using namespace AlibabaCloud::Adb::Model; - -DescribeTablesResult::DescribeTablesResult() : - ServiceResult() -{} - -DescribeTablesResult::DescribeTablesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeTablesResult::~DescribeTablesResult() -{} - -void DescribeTablesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allItemsNode = value["Items"]["Table"]; - 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(); - items_.push_back(itemsObject); - } - -} - -std::vector DescribeTablesResult::getItems()const -{ - return items_; -} - diff --git a/adb/src/model/DescribeTaskInfoRequest.cc b/adb/src/model/DescribeTaskInfoRequest.cc deleted file mode 100644 index 7512ee663..000000000 --- a/adb/src/model/DescribeTaskInfoRequest.cc +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Adb::Model::DescribeTaskInfoRequest; - -DescribeTaskInfoRequest::DescribeTaskInfoRequest() - : RpcServiceRequest("adb", "2019-03-15", "DescribeTaskInfo") { - setMethod(HttpRequest::Method::Post); -} - -DescribeTaskInfoRequest::~DescribeTaskInfoRequest() {} - -long DescribeTaskInfoRequest::getResourceOwnerId() const { - return resourceOwnerId_; -} - -void DescribeTaskInfoRequest::setResourceOwnerId(long resourceOwnerId) { - resourceOwnerId_ = resourceOwnerId; - setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); -} - -std::string DescribeTaskInfoRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void DescribeTaskInfoRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -int DescribeTaskInfoRequest::getTaskId() const { - return taskId_; -} - -void DescribeTaskInfoRequest::setTaskId(int taskId) { - taskId_ = taskId; - setParameter(std::string("TaskId"), std::to_string(taskId)); -} - -std::string DescribeTaskInfoRequest::getResourceOwnerAccount() const { - return resourceOwnerAccount_; -} - -void DescribeTaskInfoRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); -} - -std::string DescribeTaskInfoRequest::getDBClusterId() const { - return dBClusterId_; -} - -void DescribeTaskInfoRequest::setDBClusterId(const std::string &dBClusterId) { - dBClusterId_ = dBClusterId; - setParameter(std::string("DBClusterId"), dBClusterId); -} - -std::string DescribeTaskInfoRequest::getOwnerAccount() const { - return ownerAccount_; -} - -void DescribeTaskInfoRequest::setOwnerAccount(const std::string &ownerAccount) { - ownerAccount_ = ownerAccount; - setParameter(std::string("OwnerAccount"), ownerAccount); -} - -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 deleted file mode 100644 index 3669e0a73..000000000 --- a/adb/src/model/DescribeTaskInfoResult.cc +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Adb; -using namespace AlibabaCloud::Adb::Model; - -DescribeTaskInfoResult::DescribeTaskInfoResult() : - ServiceResult() -{} - -DescribeTaskInfoResult::DescribeTaskInfoResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeTaskInfoResult::~DescribeTaskInfoResult() -{} - -void DescribeTaskInfoResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto taskInfoNode = value["TaskInfo"]; - 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["BeginTime"].isNull()) - taskInfo_.beginTime = taskInfoNode["BeginTime"].asString(); - if(!taskInfoNode["TaskId"].isNull()) - taskInfo_.taskId = std::stoi(taskInfoNode["TaskId"].asString()); - -} - -DescribeTaskInfoResult::TaskInfo DescribeTaskInfoResult::getTaskInfo()const -{ - return taskInfo_; -} - diff --git a/adb/src/model/DownloadDiagnosisRecordsRequest.cc b/adb/src/model/DownloadDiagnosisRecordsRequest.cc index 1a1810491..9d1508d33 100644 --- a/adb/src/model/DownloadDiagnosisRecordsRequest.cc +++ b/adb/src/model/DownloadDiagnosisRecordsRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Adb::Model::DownloadDiagnosisRecordsRequest; DownloadDiagnosisRecordsRequest::DownloadDiagnosisRecordsRequest() - : RpcServiceRequest("adb", "2019-03-15", "DownloadDiagnosisRecords") { + : RpcServiceRequest("adb", "2021-12-01", "DownloadDiagnosisRecords") { setMethod(HttpRequest::Method::Post); } diff --git a/adb/src/model/GetDatabaseObjectsRequest.cc b/adb/src/model/GetDatabaseObjectsRequest.cc new file mode 100644 index 000000000..40f291bf5 --- /dev/null +++ b/adb/src/model/GetDatabaseObjectsRequest.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::GetDatabaseObjectsRequest; + +GetDatabaseObjectsRequest::GetDatabaseObjectsRequest() + : RpcServiceRequest("adb", "2021-12-01", "GetDatabaseObjects") { + setMethod(HttpRequest::Method::Post); +} + +GetDatabaseObjectsRequest::~GetDatabaseObjectsRequest() {} + +std::string GetDatabaseObjectsRequest::getDBClusterId() const { + return dBClusterId_; +} + +void GetDatabaseObjectsRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string GetDatabaseObjectsRequest::getOrderBy() const { + return orderBy_; +} + +void GetDatabaseObjectsRequest::setOrderBy(const std::string &orderBy) { + orderBy_ = orderBy; + setParameter(std::string("OrderBy"), orderBy); +} + +std::string GetDatabaseObjectsRequest::getFilterOwner() const { + return filterOwner_; +} + +void GetDatabaseObjectsRequest::setFilterOwner(const std::string &filterOwner) { + filterOwner_ = filterOwner; + setParameter(std::string("FilterOwner"), filterOwner); +} + +std::string GetDatabaseObjectsRequest::getFilterSchemaName() const { + return filterSchemaName_; +} + +void GetDatabaseObjectsRequest::setFilterSchemaName(const std::string &filterSchemaName) { + filterSchemaName_ = filterSchemaName; + setParameter(std::string("FilterSchemaName"), filterSchemaName); +} + +long GetDatabaseObjectsRequest::getPageNumber() const { + return pageNumber_; +} + +void GetDatabaseObjectsRequest::setPageNumber(long pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string GetDatabaseObjectsRequest::getRegionId() const { + return regionId_; +} + +void GetDatabaseObjectsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +long GetDatabaseObjectsRequest::getPageSize() const { + return pageSize_; +} + +void GetDatabaseObjectsRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + diff --git a/adb/src/model/GetDatabaseObjectsResult.cc b/adb/src/model/GetDatabaseObjectsResult.cc new file mode 100644 index 000000000..df2ef68ab --- /dev/null +++ b/adb/src/model/GetDatabaseObjectsResult.cc @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Adb; +using namespace AlibabaCloud::Adb::Model; + +GetDatabaseObjectsResult::GetDatabaseObjectsResult() : + ServiceResult() +{} + +GetDatabaseObjectsResult::GetDatabaseObjectsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetDatabaseObjectsResult::~GetDatabaseObjectsResult() +{} + +void GetDatabaseObjectsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["PageNumber"].isNull()) + data_.pageNumber = std::stol(dataNode["PageNumber"].asString()); + if(!dataNode["PageSize"].isNull()) + data_.pageSize = std::stol(dataNode["PageSize"].asString()); + if(!dataNode["TotalCount"].isNull()) + data_.totalCount = std::stol(dataNode["TotalCount"].asString()); + auto allDatabaseSummaryModelsNode = dataNode["DatabaseSummaryModels"]["dataObject"]; + for (auto dataNodeDatabaseSummaryModelsdataObject : allDatabaseSummaryModelsNode) + { + Data::DataObject dataObjectObject; + if(!dataNodeDatabaseSummaryModelsdataObject["Owner"].isNull()) + dataObjectObject.owner = dataNodeDatabaseSummaryModelsdataObject["Owner"].asString(); + if(!dataNodeDatabaseSummaryModelsdataObject["SchemaName"].isNull()) + dataObjectObject.schemaName = dataNodeDatabaseSummaryModelsdataObject["SchemaName"].asString(); + if(!dataNodeDatabaseSummaryModelsdataObject["Description"].isNull()) + dataObjectObject.description = dataNodeDatabaseSummaryModelsdataObject["Description"].asString(); + if(!dataNodeDatabaseSummaryModelsdataObject["CreateTime"].isNull()) + dataObjectObject.createTime = dataNodeDatabaseSummaryModelsdataObject["CreateTime"].asString(); + if(!dataNodeDatabaseSummaryModelsdataObject["UpdateTime"].isNull()) + dataObjectObject.updateTime = dataNodeDatabaseSummaryModelsdataObject["UpdateTime"].asString(); + data_.databaseSummaryModels.push_back(dataObjectObject); + } + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stol(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stol(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stol(value["TotalCount"].asString()); + +} + +long GetDatabaseObjectsResult::getTotalCount()const +{ + return totalCount_; +} + +long GetDatabaseObjectsResult::getPageSize()const +{ + return pageSize_; +} + +long GetDatabaseObjectsResult::getPageNumber()const +{ + return pageNumber_; +} + +GetDatabaseObjectsResult::Data GetDatabaseObjectsResult::getData()const +{ + return data_; +} + diff --git a/adb/src/model/GetLakehouseValidResourceGroupsRequest.cc b/adb/src/model/GetLakehouseValidResourceGroupsRequest.cc new file mode 100644 index 000000000..554a164b4 --- /dev/null +++ b/adb/src/model/GetLakehouseValidResourceGroupsRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Adb::Model::GetLakehouseValidResourceGroupsRequest; + +GetLakehouseValidResourceGroupsRequest::GetLakehouseValidResourceGroupsRequest() + : RpcServiceRequest("adb", "2021-12-01", "GetLakehouseValidResourceGroups") { + setMethod(HttpRequest::Method::Post); +} + +GetLakehouseValidResourceGroupsRequest::~GetLakehouseValidResourceGroupsRequest() {} + +std::string GetLakehouseValidResourceGroupsRequest::getGroupsInfo() const { + return groupsInfo_; +} + +void GetLakehouseValidResourceGroupsRequest::setGroupsInfo(const std::string &groupsInfo) { + groupsInfo_ = groupsInfo; + setParameter(std::string("GroupsInfo"), groupsInfo); +} + diff --git a/adb/src/model/GetLakehouseValidResourceGroupsResult.cc b/adb/src/model/GetLakehouseValidResourceGroupsResult.cc new file mode 100644 index 000000000..28cd418c8 --- /dev/null +++ b/adb/src/model/GetLakehouseValidResourceGroupsResult.cc @@ -0,0 +1,92 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Adb; +using namespace AlibabaCloud::Adb::Model; + +GetLakehouseValidResourceGroupsResult::GetLakehouseValidResourceGroupsResult() : + ServiceResult() +{} + +GetLakehouseValidResourceGroupsResult::GetLakehouseValidResourceGroupsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetLakehouseValidResourceGroupsResult::~GetLakehouseValidResourceGroupsResult() +{} + +void GetLakehouseValidResourceGroupsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["LakehouseMinComputeResource"].isNull()) + data_.lakehouseMinComputeResource = std::stol(dataNode["LakehouseMinComputeResource"].asString()); + auto allValidPoolsInfoNode = dataNode["ValidPoolsInfo"]["validPoolsInfoItem"]; + for (auto dataNodeValidPoolsInfovalidPoolsInfoItem : allValidPoolsInfoNode) + { + Data::ValidPoolsInfoItem validPoolsInfoItemObject; + if(!dataNodeValidPoolsInfovalidPoolsInfoItem["MaxComputeResource"].isNull()) + validPoolsInfoItemObject.maxComputeResource = dataNodeValidPoolsInfovalidPoolsInfoItem["MaxComputeResource"].asString(); + if(!dataNodeValidPoolsInfovalidPoolsInfoItem["MinComputeResource"].isNull()) + validPoolsInfoItemObject.minComputeResource = dataNodeValidPoolsInfovalidPoolsInfoItem["MinComputeResource"].asString(); + if(!dataNodeValidPoolsInfovalidPoolsInfoItem["GroupName"].isNull()) + validPoolsInfoItemObject.groupName = dataNodeValidPoolsInfovalidPoolsInfoItem["GroupName"].asString(); + if(!dataNodeValidPoolsInfovalidPoolsInfoItem["GroupType"].isNull()) + validPoolsInfoItemObject.groupType = dataNodeValidPoolsInfovalidPoolsInfoItem["GroupType"].asString(); + if(!dataNodeValidPoolsInfovalidPoolsInfoItem["Available"].isNull()) + validPoolsInfoItemObject.available = dataNodeValidPoolsInfovalidPoolsInfoItem["Available"].asString() == "true"; + auto allCuOptions = value["CuOptions"]["cuOptions"]; + for (auto value : allCuOptions) + validPoolsInfoItemObject.cuOptions.push_back(value.asString()); + data_.validPoolsInfo.push_back(validPoolsInfoItemObject); + } + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stol(value["HttpStatusCode"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string GetLakehouseValidResourceGroupsResult::getMessage()const +{ + return message_; +} + +long GetLakehouseValidResourceGroupsResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +GetLakehouseValidResourceGroupsResult::Data GetLakehouseValidResourceGroupsResult::getData()const +{ + return data_; +} + +bool GetLakehouseValidResourceGroupsResult::getSuccess()const +{ + return success_; +} + diff --git a/adb/src/model/GetSparkAppAttemptLogRequest.cc b/adb/src/model/GetSparkAppAttemptLogRequest.cc new file mode 100644 index 000000000..879bbcfab --- /dev/null +++ b/adb/src/model/GetSparkAppAttemptLogRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Adb::Model::GetSparkAppAttemptLogRequest; + +GetSparkAppAttemptLogRequest::GetSparkAppAttemptLogRequest() + : RpcServiceRequest("adb", "2021-12-01", "GetSparkAppAttemptLog") { + setMethod(HttpRequest::Method::Post); +} + +GetSparkAppAttemptLogRequest::~GetSparkAppAttemptLogRequest() {} + +long GetSparkAppAttemptLogRequest::getLogLength() const { + return logLength_; +} + +void GetSparkAppAttemptLogRequest::setLogLength(long logLength) { + logLength_ = logLength; + setBodyParameter(std::string("LogLength"), std::to_string(logLength)); +} + +std::string GetSparkAppAttemptLogRequest::getAttemptId() const { + return attemptId_; +} + +void GetSparkAppAttemptLogRequest::setAttemptId(const std::string &attemptId) { + attemptId_ = attemptId; + setBodyParameter(std::string("AttemptId"), attemptId); +} + diff --git a/adb/src/model/ModifyLogBackupPolicyResult.cc b/adb/src/model/GetSparkAppAttemptLogResult.cc similarity index 56% rename from adb/src/model/ModifyLogBackupPolicyResult.cc rename to adb/src/model/GetSparkAppAttemptLogResult.cc index 4be399723..c9ef6ea58 100644 --- a/adb/src/model/ModifyLogBackupPolicyResult.cc +++ b/adb/src/model/GetSparkAppAttemptLogResult.cc @@ -14,31 +14,43 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Adb; using namespace AlibabaCloud::Adb::Model; -ModifyLogBackupPolicyResult::ModifyLogBackupPolicyResult() : +GetSparkAppAttemptLogResult::GetSparkAppAttemptLogResult() : ServiceResult() {} -ModifyLogBackupPolicyResult::ModifyLogBackupPolicyResult(const std::string &payload) : +GetSparkAppAttemptLogResult::GetSparkAppAttemptLogResult(const std::string &payload) : ServiceResult() { parse(payload); } -ModifyLogBackupPolicyResult::~ModifyLogBackupPolicyResult() +GetSparkAppAttemptLogResult::~GetSparkAppAttemptLogResult() {} -void ModifyLogBackupPolicyResult::parse(const std::string &payload) +void GetSparkAppAttemptLogResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["LogContent"].isNull()) + data_.logContent = dataNode["LogContent"].asString(); + if(!dataNode["Message"].isNull()) + data_.message = dataNode["Message"].asString(); + if(!dataNode["DBClusterId"].isNull()) + data_.dBClusterId = dataNode["DBClusterId"].asString(); } +GetSparkAppAttemptLogResult::Data GetSparkAppAttemptLogResult::getData()const +{ + return data_; +} + diff --git a/adb/src/model/ModifyElasticPlanResult.cc b/adb/src/model/GetSparkAppInfoRequest.cc similarity index 51% rename from adb/src/model/ModifyElasticPlanResult.cc rename to adb/src/model/GetSparkAppInfoRequest.cc index e973983d5..44776b3b8 100644 --- a/adb/src/model/ModifyElasticPlanResult.cc +++ b/adb/src/model/GetSparkAppInfoRequest.cc @@ -1,44 +1,36 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Adb; -using namespace AlibabaCloud::Adb::Model; - -ModifyElasticPlanResult::ModifyElasticPlanResult() : - ServiceResult() -{} - -ModifyElasticPlanResult::ModifyElasticPlanResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyElasticPlanResult::~ModifyElasticPlanResult() -{} - -void ModifyElasticPlanResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - -} - + */ + +#include + +using AlibabaCloud::Adb::Model::GetSparkAppInfoRequest; + +GetSparkAppInfoRequest::GetSparkAppInfoRequest() + : RpcServiceRequest("adb", "2021-12-01", "GetSparkAppInfo") { + setMethod(HttpRequest::Method::Post); +} + +GetSparkAppInfoRequest::~GetSparkAppInfoRequest() {} + +std::string GetSparkAppInfoRequest::getAppId() const { + return appId_; +} + +void GetSparkAppInfoRequest::setAppId(const std::string &appId) { + appId_ = appId; + setBodyParameter(std::string("AppId"), appId); +} + diff --git a/adb/src/model/GetSparkAppInfoResult.cc b/adb/src/model/GetSparkAppInfoResult.cc new file mode 100644 index 000000000..8d313a5ad --- /dev/null +++ b/adb/src/model/GetSparkAppInfoResult.cc @@ -0,0 +1,85 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Adb; +using namespace AlibabaCloud::Adb::Model; + +GetSparkAppInfoResult::GetSparkAppInfoResult() : + ServiceResult() +{} + +GetSparkAppInfoResult::GetSparkAppInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetSparkAppInfoResult::~GetSparkAppInfoResult() +{} + +void GetSparkAppInfoResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["AppId"].isNull()) + data_.appId = dataNode["AppId"].asString(); + if(!dataNode["AppName"].isNull()) + data_.appName = dataNode["AppName"].asString(); + if(!dataNode["State"].isNull()) + data_.state = dataNode["State"].asString(); + if(!dataNode["Message"].isNull()) + data_.message = dataNode["Message"].asString(); + if(!dataNode["DBClusterId"].isNull()) + data_.dBClusterId = dataNode["DBClusterId"].asString(); + auto detailNode = dataNode["Detail"]; + if(!detailNode["Data"].isNull()) + data_.detail.data = detailNode["Data"].asString(); + if(!detailNode["EstimateExecutionCpuTimeInSeconds"].isNull()) + data_.detail.estimateExecutionCpuTimeInSeconds = std::stol(detailNode["EstimateExecutionCpuTimeInSeconds"].asString()); + if(!detailNode["LogRootPath"].isNull()) + data_.detail.logRootPath = detailNode["LogRootPath"].asString(); + if(!detailNode["LastAttemptId"].isNull()) + data_.detail.lastAttemptId = detailNode["LastAttemptId"].asString(); + if(!detailNode["WebUiAddress"].isNull()) + data_.detail.webUiAddress = detailNode["WebUiAddress"].asString(); + if(!detailNode["SubmittedTimeInMillis"].isNull()) + data_.detail.submittedTimeInMillis = std::stol(detailNode["SubmittedTimeInMillis"].asString()); + if(!detailNode["StartedTimeInMillis"].isNull()) + data_.detail.startedTimeInMillis = std::stol(detailNode["StartedTimeInMillis"].asString()); + if(!detailNode["LastUpdatedTimeInMillis"].isNull()) + data_.detail.lastUpdatedTimeInMillis = std::stol(detailNode["LastUpdatedTimeInMillis"].asString()); + if(!detailNode["TerminatedTimeInMillis"].isNull()) + data_.detail.terminatedTimeInMillis = std::stol(detailNode["TerminatedTimeInMillis"].asString()); + if(!detailNode["DBClusterId"].isNull()) + data_.detail.dBClusterId = detailNode["DBClusterId"].asString(); + if(!detailNode["ResourceGroupName"].isNull()) + data_.detail.resourceGroupName = detailNode["ResourceGroupName"].asString(); + if(!detailNode["DurationInMillis"].isNull()) + data_.detail.durationInMillis = std::stol(detailNode["DurationInMillis"].asString()); + +} + +GetSparkAppInfoResult::Data GetSparkAppInfoResult::getData()const +{ + return data_; +} + diff --git a/adb/src/model/GetSparkAppLogRequest.cc b/adb/src/model/GetSparkAppLogRequest.cc new file mode 100644 index 000000000..721eec9c4 --- /dev/null +++ b/adb/src/model/GetSparkAppLogRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Adb::Model::GetSparkAppLogRequest; + +GetSparkAppLogRequest::GetSparkAppLogRequest() + : RpcServiceRequest("adb", "2021-12-01", "GetSparkAppLog") { + setMethod(HttpRequest::Method::Post); +} + +GetSparkAppLogRequest::~GetSparkAppLogRequest() {} + +std::string GetSparkAppLogRequest::getAppId() const { + return appId_; +} + +void GetSparkAppLogRequest::setAppId(const std::string &appId) { + appId_ = appId; + setBodyParameter(std::string("AppId"), appId); +} + +long GetSparkAppLogRequest::getLogLength() const { + return logLength_; +} + +void GetSparkAppLogRequest::setLogLength(long logLength) { + logLength_ = logLength; + setBodyParameter(std::string("LogLength"), std::to_string(logLength)); +} + diff --git a/adb/src/model/UntagResourcesResult.cc b/adb/src/model/GetSparkAppLogResult.cc similarity index 58% rename from adb/src/model/UntagResourcesResult.cc rename to adb/src/model/GetSparkAppLogResult.cc index cea5ecd06..dab3e9020 100644 --- a/adb/src/model/UntagResourcesResult.cc +++ b/adb/src/model/GetSparkAppLogResult.cc @@ -14,31 +14,43 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Adb; using namespace AlibabaCloud::Adb::Model; -UntagResourcesResult::UntagResourcesResult() : +GetSparkAppLogResult::GetSparkAppLogResult() : ServiceResult() {} -UntagResourcesResult::UntagResourcesResult(const std::string &payload) : +GetSparkAppLogResult::GetSparkAppLogResult(const std::string &payload) : ServiceResult() { parse(payload); } -UntagResourcesResult::~UntagResourcesResult() +GetSparkAppLogResult::~GetSparkAppLogResult() {} -void UntagResourcesResult::parse(const std::string &payload) +void GetSparkAppLogResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["LogContent"].isNull()) + data_.logContent = dataNode["LogContent"].asString(); + if(!dataNode["Message"].isNull()) + data_.message = dataNode["Message"].asString(); + if(!dataNode["DBClusterId"].isNull()) + data_.dBClusterId = dataNode["DBClusterId"].asString(); } +GetSparkAppLogResult::Data GetSparkAppLogResult::getData()const +{ + return data_; +} + diff --git a/adb/src/model/GetSparkAppMetricsRequest.cc b/adb/src/model/GetSparkAppMetricsRequest.cc new file mode 100644 index 000000000..7586bcd16 --- /dev/null +++ b/adb/src/model/GetSparkAppMetricsRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Adb::Model::GetSparkAppMetricsRequest; + +GetSparkAppMetricsRequest::GetSparkAppMetricsRequest() + : RpcServiceRequest("adb", "2021-12-01", "GetSparkAppMetrics") { + setMethod(HttpRequest::Method::Post); +} + +GetSparkAppMetricsRequest::~GetSparkAppMetricsRequest() {} + +std::string GetSparkAppMetricsRequest::getAppId() const { + return appId_; +} + +void GetSparkAppMetricsRequest::setAppId(const std::string &appId) { + appId_ = appId; + setBodyParameter(std::string("AppId"), appId); +} + diff --git a/adb/src/model/GetSparkAppMetricsResult.cc b/adb/src/model/GetSparkAppMetricsResult.cc new file mode 100644 index 000000000..3251aec77 --- /dev/null +++ b/adb/src/model/GetSparkAppMetricsResult.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; + +GetSparkAppMetricsResult::GetSparkAppMetricsResult() : + ServiceResult() +{} + +GetSparkAppMetricsResult::GetSparkAppMetricsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetSparkAppMetricsResult::~GetSparkAppMetricsResult() +{} + +void GetSparkAppMetricsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["AppId"].isNull()) + data_.appId = dataNode["AppId"].asString(); + if(!dataNode["AttemptId"].isNull()) + data_.attemptId = dataNode["AttemptId"].asString(); + if(!dataNode["Finished"].isNull()) + data_.finished = dataNode["Finished"].asString() == "true"; + if(!dataNode["EventLogPath"].isNull()) + data_.eventLogPath = dataNode["EventLogPath"].asString(); + auto scanMetricsNode = dataNode["ScanMetrics"]; + if(!scanMetricsNode["OutputRowsCount"].isNull()) + data_.scanMetrics.outputRowsCount = std::stol(scanMetricsNode["OutputRowsCount"].asString()); + if(!scanMetricsNode["TotalReadFileSizeInByte"].isNull()) + data_.scanMetrics.totalReadFileSizeInByte = std::stol(scanMetricsNode["TotalReadFileSizeInByte"].asString()); + +} + +GetSparkAppMetricsResult::Data GetSparkAppMetricsResult::getData()const +{ + return data_; +} + diff --git a/adb/src/model/GetSparkAppStateRequest.cc b/adb/src/model/GetSparkAppStateRequest.cc new file mode 100644 index 000000000..1bf6c091d --- /dev/null +++ b/adb/src/model/GetSparkAppStateRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Adb::Model::GetSparkAppStateRequest; + +GetSparkAppStateRequest::GetSparkAppStateRequest() + : RpcServiceRequest("adb", "2021-12-01", "GetSparkAppState") { + setMethod(HttpRequest::Method::Post); +} + +GetSparkAppStateRequest::~GetSparkAppStateRequest() {} + +std::string GetSparkAppStateRequest::getAppId() const { + return appId_; +} + +void GetSparkAppStateRequest::setAppId(const std::string &appId) { + appId_ = appId; + setBodyParameter(std::string("AppId"), appId); +} + diff --git a/adb/src/model/GetSparkAppStateResult.cc b/adb/src/model/GetSparkAppStateResult.cc new file mode 100644 index 000000000..72af15fa1 --- /dev/null +++ b/adb/src/model/GetSparkAppStateResult.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; + +GetSparkAppStateResult::GetSparkAppStateResult() : + ServiceResult() +{} + +GetSparkAppStateResult::GetSparkAppStateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetSparkAppStateResult::~GetSparkAppStateResult() +{} + +void GetSparkAppStateResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["AppId"].isNull()) + data_.appId = dataNode["AppId"].asString(); + if(!dataNode["AppName"].isNull()) + data_.appName = dataNode["AppName"].asString(); + if(!dataNode["Message"].isNull()) + data_.message = dataNode["Message"].asString(); + if(!dataNode["State"].isNull()) + data_.state = dataNode["State"].asString(); + if(!dataNode["DBClusterId"].isNull()) + data_.dBClusterId = dataNode["DBClusterId"].asString(); + +} + +GetSparkAppStateResult::Data GetSparkAppStateResult::getData()const +{ + return data_; +} + diff --git a/adb/src/model/GetSparkAppWebUiAddressRequest.cc b/adb/src/model/GetSparkAppWebUiAddressRequest.cc new file mode 100644 index 000000000..812cf892b --- /dev/null +++ b/adb/src/model/GetSparkAppWebUiAddressRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Adb::Model::GetSparkAppWebUiAddressRequest; + +GetSparkAppWebUiAddressRequest::GetSparkAppWebUiAddressRequest() + : RpcServiceRequest("adb", "2021-12-01", "GetSparkAppWebUiAddress") { + setMethod(HttpRequest::Method::Post); +} + +GetSparkAppWebUiAddressRequest::~GetSparkAppWebUiAddressRequest() {} + +std::string GetSparkAppWebUiAddressRequest::getAppId() const { + return appId_; +} + +void GetSparkAppWebUiAddressRequest::setAppId(const std::string &appId) { + appId_ = appId; + setBodyParameter(std::string("AppId"), appId); +} + diff --git a/adb/src/model/GetSparkAppWebUiAddressResult.cc b/adb/src/model/GetSparkAppWebUiAddressResult.cc new file mode 100644 index 000000000..0d8b7e72e --- /dev/null +++ b/adb/src/model/GetSparkAppWebUiAddressResult.cc @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Adb; +using namespace AlibabaCloud::Adb::Model; + +GetSparkAppWebUiAddressResult::GetSparkAppWebUiAddressResult() : + ServiceResult() +{} + +GetSparkAppWebUiAddressResult::GetSparkAppWebUiAddressResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetSparkAppWebUiAddressResult::~GetSparkAppWebUiAddressResult() +{} + +void GetSparkAppWebUiAddressResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["AppId"].isNull()) + data_.appId = dataNode["AppId"].asString(); + if(!dataNode["ExpirationTimeInMillis"].isNull()) + data_.expirationTimeInMillis = std::stol(dataNode["ExpirationTimeInMillis"].asString()); + if(!dataNode["WebUiAddress"].isNull()) + data_.webUiAddress = dataNode["WebUiAddress"].asString(); + if(!dataNode["DBClusterId"].isNull()) + data_.dBClusterId = dataNode["DBClusterId"].asString(); + +} + +GetSparkAppWebUiAddressResult::Data GetSparkAppWebUiAddressResult::getData()const +{ + return data_; +} + diff --git a/adb/src/model/GetSparkConfigLogPathRequest.cc b/adb/src/model/GetSparkConfigLogPathRequest.cc new file mode 100644 index 000000000..ce7b1581c --- /dev/null +++ b/adb/src/model/GetSparkConfigLogPathRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Adb::Model::GetSparkConfigLogPathRequest; + +GetSparkConfigLogPathRequest::GetSparkConfigLogPathRequest() + : RpcServiceRequest("adb", "2021-12-01", "GetSparkConfigLogPath") { + setMethod(HttpRequest::Method::Post); +} + +GetSparkConfigLogPathRequest::~GetSparkConfigLogPathRequest() {} + +std::string GetSparkConfigLogPathRequest::getDBClusterId() const { + return dBClusterId_; +} + +void GetSparkConfigLogPathRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setBodyParameter(std::string("DBClusterId"), dBClusterId); +} + diff --git a/adb/src/model/GetSparkConfigLogPathResult.cc b/adb/src/model/GetSparkConfigLogPathResult.cc new file mode 100644 index 000000000..a2e5c8fc4 --- /dev/null +++ b/adb/src/model/GetSparkConfigLogPathResult.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; + +GetSparkConfigLogPathResult::GetSparkConfigLogPathResult() : + ServiceResult() +{} + +GetSparkConfigLogPathResult::GetSparkConfigLogPathResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetSparkConfigLogPathResult::~GetSparkConfigLogPathResult() +{} + +void GetSparkConfigLogPathResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["IsLogPathExists"].isNull()) + data_.isLogPathExists = dataNode["IsLogPathExists"].asString() == "true"; + if(!dataNode["RecordedLogPath"].isNull()) + data_.recordedLogPath = dataNode["RecordedLogPath"].asString(); + if(!dataNode["ModifiedUid"].isNull()) + data_.modifiedUid = dataNode["ModifiedUid"].asString(); + if(!dataNode["ModifiedTimestamp"].isNull()) + data_.modifiedTimestamp = dataNode["ModifiedTimestamp"].asString(); + if(!dataNode["DefaultLogPath"].isNull()) + data_.defaultLogPath = dataNode["DefaultLogPath"].asString(); + +} + +GetSparkConfigLogPathResult::Data GetSparkConfigLogPathResult::getData()const +{ + return data_; +} + diff --git a/adb/src/model/GetSparkLogAnalyzeTaskRequest.cc b/adb/src/model/GetSparkLogAnalyzeTaskRequest.cc new file mode 100644 index 000000000..d23d7a9bf --- /dev/null +++ b/adb/src/model/GetSparkLogAnalyzeTaskRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Adb::Model::GetSparkLogAnalyzeTaskRequest; + +GetSparkLogAnalyzeTaskRequest::GetSparkLogAnalyzeTaskRequest() + : RpcServiceRequest("adb", "2021-12-01", "GetSparkLogAnalyzeTask") { + setMethod(HttpRequest::Method::Post); +} + +GetSparkLogAnalyzeTaskRequest::~GetSparkLogAnalyzeTaskRequest() {} + +long GetSparkLogAnalyzeTaskRequest::getTaskId() const { + return taskId_; +} + +void GetSparkLogAnalyzeTaskRequest::setTaskId(long taskId) { + taskId_ = taskId; + setBodyParameter(std::string("TaskId"), std::to_string(taskId)); +} + diff --git a/adb/src/model/GetSparkLogAnalyzeTaskResult.cc b/adb/src/model/GetSparkLogAnalyzeTaskResult.cc new file mode 100644 index 000000000..f817256c4 --- /dev/null +++ b/adb/src/model/GetSparkLogAnalyzeTaskResult.cc @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Adb; +using namespace AlibabaCloud::Adb::Model; + +GetSparkLogAnalyzeTaskResult::GetSparkLogAnalyzeTaskResult() : + ServiceResult() +{} + +GetSparkLogAnalyzeTaskResult::GetSparkLogAnalyzeTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetSparkLogAnalyzeTaskResult::~GetSparkLogAnalyzeTaskResult() +{} + +void GetSparkLogAnalyzeTaskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["TaskId"].isNull()) + data_.taskId = std::stol(dataNode["TaskId"].asString()); + if(!dataNode["UserId"].isNull()) + data_.userId = std::stol(dataNode["UserId"].asString()); + if(!dataNode["SubmittedTimeInMillis"].isNull()) + data_.submittedTimeInMillis = std::stol(dataNode["SubmittedTimeInMillis"].asString()); + if(!dataNode["TerminatedTimeInMillis"].isNull()) + data_.terminatedTimeInMillis = std::stol(dataNode["TerminatedTimeInMillis"].asString()); + if(!dataNode["TaskState"].isNull()) + data_.taskState = dataNode["TaskState"].asString(); + if(!dataNode["StartedTimeInMillis"].isNull()) + data_.startedTimeInMillis = std::stol(dataNode["StartedTimeInMillis"].asString()); + if(!dataNode["RuleMatched"].isNull()) + data_.ruleMatched = dataNode["RuleMatched"].asString() == "true"; + if(!dataNode["TaskErrMsg"].isNull()) + data_.taskErrMsg = dataNode["TaskErrMsg"].asString(); + if(!dataNode["DBClusterId"].isNull()) + data_.dBClusterId = dataNode["DBClusterId"].asString(); + auto resultNode = dataNode["Result"]; + if(!resultNode["AppErrorCode"].isNull()) + data_.result.appErrorCode = resultNode["AppErrorCode"].asString(); + if(!resultNode["AppErrorLog"].isNull()) + data_.result.appErrorLog = resultNode["AppErrorLog"].asString(); + if(!resultNode["AppErrorAdvice"].isNull()) + data_.result.appErrorAdvice = resultNode["AppErrorAdvice"].asString(); + +} + +GetSparkLogAnalyzeTaskResult::Data GetSparkLogAnalyzeTaskResult::getData()const +{ + return data_; +} + diff --git a/adb/src/model/GetSparkSQLEngineStateRequest.cc b/adb/src/model/GetSparkSQLEngineStateRequest.cc new file mode 100644 index 000000000..a5ac0a58a --- /dev/null +++ b/adb/src/model/GetSparkSQLEngineStateRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Adb::Model::GetSparkSQLEngineStateRequest; + +GetSparkSQLEngineStateRequest::GetSparkSQLEngineStateRequest() + : RpcServiceRequest("adb", "2021-12-01", "GetSparkSQLEngineState") { + setMethod(HttpRequest::Method::Post); +} + +GetSparkSQLEngineStateRequest::~GetSparkSQLEngineStateRequest() {} + +std::string GetSparkSQLEngineStateRequest::getResourceGroupName() const { + return resourceGroupName_; +} + +void GetSparkSQLEngineStateRequest::setResourceGroupName(const std::string &resourceGroupName) { + resourceGroupName_ = resourceGroupName; + setBodyParameter(std::string("ResourceGroupName"), resourceGroupName); +} + +std::string GetSparkSQLEngineStateRequest::getDBClusterId() const { + return dBClusterId_; +} + +void GetSparkSQLEngineStateRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setBodyParameter(std::string("DBClusterId"), dBClusterId); +} + diff --git a/adb/src/model/GetSparkSQLEngineStateResult.cc b/adb/src/model/GetSparkSQLEngineStateResult.cc new file mode 100644 index 000000000..8bd9a5dda --- /dev/null +++ b/adb/src/model/GetSparkSQLEngineStateResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Adb; +using namespace AlibabaCloud::Adb::Model; + +GetSparkSQLEngineStateResult::GetSparkSQLEngineStateResult() : + ServiceResult() +{} + +GetSparkSQLEngineStateResult::GetSparkSQLEngineStateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetSparkSQLEngineStateResult::~GetSparkSQLEngineStateResult() +{} + +void GetSparkSQLEngineStateResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["AppId"].isNull()) + data_.appId = dataNode["AppId"].asString(); + if(!dataNode["MinExecutor"].isNull()) + data_.minExecutor = dataNode["MinExecutor"].asString(); + if(!dataNode["MaxExecutor"].isNull()) + data_.maxExecutor = dataNode["MaxExecutor"].asString(); + if(!dataNode["Jars"].isNull()) + data_.jars = dataNode["Jars"].asString(); + if(!dataNode["SlotNum"].isNull()) + data_.slotNum = dataNode["SlotNum"].asString(); + if(!dataNode["Config"].isNull()) + data_.config = dataNode["Config"].asString(); + if(!dataNode["State"].isNull()) + data_.state = dataNode["State"].asString(); + if(!dataNode["SubmittedTimeInMillis"].isNull()) + data_.submittedTimeInMillis = dataNode["SubmittedTimeInMillis"].asString(); + +} + +GetSparkSQLEngineStateResult::Data GetSparkSQLEngineStateResult::getData()const +{ + return data_; +} + diff --git a/adb/src/model/GetSparkTemplateFileContentRequest.cc b/adb/src/model/GetSparkTemplateFileContentRequest.cc new file mode 100644 index 000000000..53b512010 --- /dev/null +++ b/adb/src/model/GetSparkTemplateFileContentRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Adb::Model::GetSparkTemplateFileContentRequest; + +GetSparkTemplateFileContentRequest::GetSparkTemplateFileContentRequest() + : RpcServiceRequest("adb", "2021-12-01", "GetSparkTemplateFileContent") { + setMethod(HttpRequest::Method::Post); +} + +GetSparkTemplateFileContentRequest::~GetSparkTemplateFileContentRequest() {} + +std::string GetSparkTemplateFileContentRequest::getDBClusterId() const { + return dBClusterId_; +} + +void GetSparkTemplateFileContentRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setBodyParameter(std::string("DBClusterId"), dBClusterId); +} + +long GetSparkTemplateFileContentRequest::getId() const { + return id_; +} + +void GetSparkTemplateFileContentRequest::setId(long id) { + id_ = id; + setBodyParameter(std::string("Id"), std::to_string(id)); +} + diff --git a/adb/src/model/GetSparkTemplateFileContentResult.cc b/adb/src/model/GetSparkTemplateFileContentResult.cc new file mode 100644 index 000000000..339236888 --- /dev/null +++ b/adb/src/model/GetSparkTemplateFileContentResult.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; + +GetSparkTemplateFileContentResult::GetSparkTemplateFileContentResult() : + ServiceResult() +{} + +GetSparkTemplateFileContentResult::GetSparkTemplateFileContentResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetSparkTemplateFileContentResult::~GetSparkTemplateFileContentResult() +{} + +void GetSparkTemplateFileContentResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["AppType"].isNull()) + data_.appType = dataNode["AppType"].asString(); + if(!dataNode["Content"].isNull()) + data_.content = dataNode["Content"].asString(); + if(!dataNode["Id"].isNull()) + data_.id = std::stol(dataNode["Id"].asString()); + if(!dataNode["Type"].isNull()) + data_.type = dataNode["Type"].asString(); + if(!dataNode["ResourceGroupName"].isNull()) + data_.resourceGroupName = dataNode["ResourceGroupName"].asString(); + +} + +GetSparkTemplateFileContentResult::Data GetSparkTemplateFileContentResult::getData()const +{ + return data_; +} + diff --git a/adb/src/model/GetSparkTemplateFolderTreeRequest.cc b/adb/src/model/GetSparkTemplateFolderTreeRequest.cc new file mode 100644 index 000000000..bb1e4a1d5 --- /dev/null +++ b/adb/src/model/GetSparkTemplateFolderTreeRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Adb::Model::GetSparkTemplateFolderTreeRequest; + +GetSparkTemplateFolderTreeRequest::GetSparkTemplateFolderTreeRequest() + : RpcServiceRequest("adb", "2021-12-01", "GetSparkTemplateFolderTree") { + setMethod(HttpRequest::Method::Post); +} + +GetSparkTemplateFolderTreeRequest::~GetSparkTemplateFolderTreeRequest() {} + +std::string GetSparkTemplateFolderTreeRequest::getDBClusterId() const { + return dBClusterId_; +} + +void GetSparkTemplateFolderTreeRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setBodyParameter(std::string("DBClusterId"), dBClusterId); +} + diff --git a/adb/src/model/BindDBResourcePoolWithUserResult.cc b/adb/src/model/GetSparkTemplateFolderTreeResult.cc similarity index 67% rename from adb/src/model/BindDBResourcePoolWithUserResult.cc rename to adb/src/model/GetSparkTemplateFolderTreeResult.cc index 98e95291f..2886c0965 100644 --- a/adb/src/model/BindDBResourcePoolWithUserResult.cc +++ b/adb/src/model/GetSparkTemplateFolderTreeResult.cc @@ -14,31 +14,38 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Adb; using namespace AlibabaCloud::Adb::Model; -BindDBResourcePoolWithUserResult::BindDBResourcePoolWithUserResult() : +GetSparkTemplateFolderTreeResult::GetSparkTemplateFolderTreeResult() : ServiceResult() {} -BindDBResourcePoolWithUserResult::BindDBResourcePoolWithUserResult(const std::string &payload) : +GetSparkTemplateFolderTreeResult::GetSparkTemplateFolderTreeResult(const std::string &payload) : ServiceResult() { parse(payload); } -BindDBResourcePoolWithUserResult::~BindDBResourcePoolWithUserResult() +GetSparkTemplateFolderTreeResult::~GetSparkTemplateFolderTreeResult() {} -void BindDBResourcePoolWithUserResult::parse(const std::string &payload) +void GetSparkTemplateFolderTreeResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); } +std::string GetSparkTemplateFolderTreeResult::getData()const +{ + return data_; +} + diff --git a/adb/src/model/GetSparkTemplateFullTreeRequest.cc b/adb/src/model/GetSparkTemplateFullTreeRequest.cc new file mode 100644 index 000000000..313d9b8a5 --- /dev/null +++ b/adb/src/model/GetSparkTemplateFullTreeRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Adb::Model::GetSparkTemplateFullTreeRequest; + +GetSparkTemplateFullTreeRequest::GetSparkTemplateFullTreeRequest() + : RpcServiceRequest("adb", "2021-12-01", "GetSparkTemplateFullTree") { + setMethod(HttpRequest::Method::Post); +} + +GetSparkTemplateFullTreeRequest::~GetSparkTemplateFullTreeRequest() {} + +std::string GetSparkTemplateFullTreeRequest::getDBClusterId() const { + return dBClusterId_; +} + +void GetSparkTemplateFullTreeRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setBodyParameter(std::string("DBClusterId"), dBClusterId); +} + diff --git a/adb/src/model/RevokeOperatorPermissionResult.cc b/adb/src/model/GetSparkTemplateFullTreeResult.cc similarity index 67% rename from adb/src/model/RevokeOperatorPermissionResult.cc rename to adb/src/model/GetSparkTemplateFullTreeResult.cc index 74eea4edc..10a11893c 100644 --- a/adb/src/model/RevokeOperatorPermissionResult.cc +++ b/adb/src/model/GetSparkTemplateFullTreeResult.cc @@ -14,31 +14,38 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Adb; using namespace AlibabaCloud::Adb::Model; -RevokeOperatorPermissionResult::RevokeOperatorPermissionResult() : +GetSparkTemplateFullTreeResult::GetSparkTemplateFullTreeResult() : ServiceResult() {} -RevokeOperatorPermissionResult::RevokeOperatorPermissionResult(const std::string &payload) : +GetSparkTemplateFullTreeResult::GetSparkTemplateFullTreeResult(const std::string &payload) : ServiceResult() { parse(payload); } -RevokeOperatorPermissionResult::~RevokeOperatorPermissionResult() +GetSparkTemplateFullTreeResult::~GetSparkTemplateFullTreeResult() {} -void RevokeOperatorPermissionResult::parse(const std::string &payload) +void GetSparkTemplateFullTreeResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); } +std::string GetSparkTemplateFullTreeResult::getData()const +{ + return data_; +} + diff --git a/adb/src/model/GetTableColumnsRequest.cc b/adb/src/model/GetTableColumnsRequest.cc new file mode 100644 index 000000000..c64b72100 --- /dev/null +++ b/adb/src/model/GetTableColumnsRequest.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::GetTableColumnsRequest; + +GetTableColumnsRequest::GetTableColumnsRequest() + : RpcServiceRequest("adb", "2021-12-01", "GetTableColumns") { + setMethod(HttpRequest::Method::Post); +} + +GetTableColumnsRequest::~GetTableColumnsRequest() {} + +std::string GetTableColumnsRequest::getSchemaName() const { + return schemaName_; +} + +void GetTableColumnsRequest::setSchemaName(const std::string &schemaName) { + schemaName_ = schemaName; + setParameter(std::string("SchemaName"), schemaName); +} + +std::string GetTableColumnsRequest::getDBClusterId() const { + return dBClusterId_; +} + +void GetTableColumnsRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string GetTableColumnsRequest::getColumnName() const { + return columnName_; +} + +void GetTableColumnsRequest::setColumnName(const std::string &columnName) { + columnName_ = columnName; + setParameter(std::string("ColumnName"), columnName); +} + +long GetTableColumnsRequest::getPageNumber() const { + return pageNumber_; +} + +void GetTableColumnsRequest::setPageNumber(long pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string GetTableColumnsRequest::getRegionId() const { + return regionId_; +} + +void GetTableColumnsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +long GetTableColumnsRequest::getPageSize() const { + return pageSize_; +} + +void GetTableColumnsRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string GetTableColumnsRequest::getTableName() const { + return tableName_; +} + +void GetTableColumnsRequest::setTableName(const std::string &tableName) { + tableName_ = tableName; + setParameter(std::string("TableName"), tableName); +} + diff --git a/adb/src/model/GetTableColumnsResult.cc b/adb/src/model/GetTableColumnsResult.cc new file mode 100644 index 000000000..0a3e4c649 --- /dev/null +++ b/adb/src/model/GetTableColumnsResult.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; + +GetTableColumnsResult::GetTableColumnsResult() : + ServiceResult() +{} + +GetTableColumnsResult::GetTableColumnsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetTableColumnsResult::~GetTableColumnsResult() +{} + +void GetTableColumnsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["PageNumber"].isNull()) + data_.pageNumber = std::stol(dataNode["PageNumber"].asString()); + if(!dataNode["PageSize"].isNull()) + data_.pageSize = std::stol(dataNode["PageSize"].asString()); + if(!dataNode["TotalCount"].isNull()) + data_.totalCount = std::stol(dataNode["TotalCount"].asString()); + auto tableNode = dataNode["Table"]; + if(!tableNode["SchemaName"].isNull()) + data_.table.schemaName = tableNode["SchemaName"].asString(); + if(!tableNode["TableName"].isNull()) + data_.table.tableName = tableNode["TableName"].asString(); + if(!tableNode["TableType"].isNull()) + data_.table.tableType = tableNode["TableType"].asString(); + if(!tableNode["CreateTime"].isNull()) + data_.table.createTime = tableNode["CreateTime"].asString(); + if(!tableNode["UpdateTime"].isNull()) + data_.table.updateTime = tableNode["UpdateTime"].asString(); + if(!tableNode["Description"].isNull()) + data_.table.description = tableNode["Description"].asString(); + if(!tableNode["Owner"].isNull()) + data_.table.owner = tableNode["Owner"].asString(); + if(!tableNode["Catalog"].isNull()) + data_.table.catalog = tableNode["Catalog"].asString(); + auto allColumnsNode = tableNode["Columns"]["ColumnsItem"]; + for (auto tableNodeColumnsColumnsItem : allColumnsNode) + { + Data::Table::ColumnsItem columnsItemObject; + if(!tableNodeColumnsColumnsItem["ColumnName"].isNull()) + columnsItemObject.columnName = tableNodeColumnsColumnsItem["ColumnName"].asString(); + if(!tableNodeColumnsColumnsItem["Type"].isNull()) + columnsItemObject.type = tableNodeColumnsColumnsItem["Type"].asString(); + if(!tableNodeColumnsColumnsItem["Description"].isNull()) + columnsItemObject.description = tableNodeColumnsColumnsItem["Description"].asString(); + if(!tableNodeColumnsColumnsItem["SchemaName"].isNull()) + columnsItemObject.schemaName = tableNodeColumnsColumnsItem["SchemaName"].asString(); + if(!tableNodeColumnsColumnsItem["TableName"].isNull()) + columnsItemObject.tableName = tableNodeColumnsColumnsItem["TableName"].asString(); + if(!tableNodeColumnsColumnsItem["CreateTime"].isNull()) + columnsItemObject.createTime = tableNodeColumnsColumnsItem["CreateTime"].asString(); + if(!tableNodeColumnsColumnsItem["UpdateTime"].isNull()) + columnsItemObject.updateTime = tableNodeColumnsColumnsItem["UpdateTime"].asString(); + if(!tableNodeColumnsColumnsItem["PartitionKey"].isNull()) + columnsItemObject.partitionKey = tableNodeColumnsColumnsItem["PartitionKey"].asString() == "true"; + if(!tableNodeColumnsColumnsItem["Nullable"].isNull()) + columnsItemObject.nullable = tableNodeColumnsColumnsItem["Nullable"].asString() == "true"; + if(!tableNodeColumnsColumnsItem["PrimaryKey"].isNull()) + columnsItemObject.primaryKey = tableNodeColumnsColumnsItem["PrimaryKey"].asString() == "true"; + if(!tableNodeColumnsColumnsItem["DistributeKey"].isNull()) + columnsItemObject.distributeKey = tableNodeColumnsColumnsItem["DistributeKey"].asString() == "true"; + data_.table.columns.push_back(columnsItemObject); + } + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stol(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stol(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stol(value["TotalCount"].asString()); + +} + +long GetTableColumnsResult::getTotalCount()const +{ + return totalCount_; +} + +long GetTableColumnsResult::getPageSize()const +{ + return pageSize_; +} + +long GetTableColumnsResult::getPageNumber()const +{ + return pageNumber_; +} + +GetTableColumnsResult::Data GetTableColumnsResult::getData()const +{ + return data_; +} + diff --git a/adb/src/model/GetTableDDLRequest.cc b/adb/src/model/GetTableDDLRequest.cc new file mode 100644 index 000000000..b4fb7cfaa --- /dev/null +++ b/adb/src/model/GetTableDDLRequest.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::GetTableDDLRequest; + +GetTableDDLRequest::GetTableDDLRequest() + : RpcServiceRequest("adb", "2021-12-01", "GetTableDDL") { + setMethod(HttpRequest::Method::Post); +} + +GetTableDDLRequest::~GetTableDDLRequest() {} + +std::string GetTableDDLRequest::getSchemaName() const { + return schemaName_; +} + +void GetTableDDLRequest::setSchemaName(const std::string &schemaName) { + schemaName_ = schemaName; + setParameter(std::string("SchemaName"), schemaName); +} + +std::string GetTableDDLRequest::getDBClusterId() const { + return dBClusterId_; +} + +void GetTableDDLRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string GetTableDDLRequest::getRegionId() const { + return regionId_; +} + +void GetTableDDLRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string GetTableDDLRequest::getTableName() const { + return tableName_; +} + +void GetTableDDLRequest::setTableName(const std::string &tableName) { + tableName_ = tableName; + setParameter(std::string("TableName"), tableName); +} + diff --git a/adb/src/model/ModifyAutoRenewAttributeResult.cc b/adb/src/model/GetTableDDLResult.cc similarity index 70% rename from adb/src/model/ModifyAutoRenewAttributeResult.cc rename to adb/src/model/GetTableDDLResult.cc index 5eee87b85..45458ee1f 100644 --- a/adb/src/model/ModifyAutoRenewAttributeResult.cc +++ b/adb/src/model/GetTableDDLResult.cc @@ -14,31 +14,38 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Adb; using namespace AlibabaCloud::Adb::Model; -ModifyAutoRenewAttributeResult::ModifyAutoRenewAttributeResult() : +GetTableDDLResult::GetTableDDLResult() : ServiceResult() {} -ModifyAutoRenewAttributeResult::ModifyAutoRenewAttributeResult(const std::string &payload) : +GetTableDDLResult::GetTableDDLResult(const std::string &payload) : ServiceResult() { parse(payload); } -ModifyAutoRenewAttributeResult::~ModifyAutoRenewAttributeResult() +GetTableDDLResult::~GetTableDDLResult() {} -void ModifyAutoRenewAttributeResult::parse(const std::string &payload) +void GetTableDDLResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + if(!value["SQL"].isNull()) + sQL_ = value["SQL"].asString(); } +std::string GetTableDDLResult::getSQL()const +{ + return sQL_; +} + diff --git a/adb/src/model/GetTableObjectsRequest.cc b/adb/src/model/GetTableObjectsRequest.cc new file mode 100644 index 000000000..072372a23 --- /dev/null +++ b/adb/src/model/GetTableObjectsRequest.cc @@ -0,0 +1,117 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Adb::Model::GetTableObjectsRequest; + +GetTableObjectsRequest::GetTableObjectsRequest() + : RpcServiceRequest("adb", "2021-12-01", "GetTableObjects") { + setMethod(HttpRequest::Method::Post); +} + +GetTableObjectsRequest::~GetTableObjectsRequest() {} + +long GetTableObjectsRequest::getPageNumber() const { + return pageNumber_; +} + +void GetTableObjectsRequest::setPageNumber(long pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string GetTableObjectsRequest::getFilterTblType() const { + return filterTblType_; +} + +void GetTableObjectsRequest::setFilterTblType(const std::string &filterTblType) { + filterTblType_ = filterTblType; + setParameter(std::string("FilterTblType"), filterTblType); +} + +std::string GetTableObjectsRequest::getFilterDescription() const { + return filterDescription_; +} + +void GetTableObjectsRequest::setFilterDescription(const std::string &filterDescription) { + filterDescription_ = filterDescription; + setParameter(std::string("FilterDescription"), filterDescription); +} + +std::string GetTableObjectsRequest::getRegionId() const { + return regionId_; +} + +void GetTableObjectsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +long GetTableObjectsRequest::getPageSize() const { + return pageSize_; +} + +void GetTableObjectsRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string GetTableObjectsRequest::getFilterTblName() const { + return filterTblName_; +} + +void GetTableObjectsRequest::setFilterTblName(const std::string &filterTblName) { + filterTblName_ = filterTblName; + setParameter(std::string("FilterTblName"), filterTblName); +} + +std::string GetTableObjectsRequest::getSchemaName() const { + return schemaName_; +} + +void GetTableObjectsRequest::setSchemaName(const std::string &schemaName) { + schemaName_ = schemaName; + setParameter(std::string("SchemaName"), schemaName); +} + +std::string GetTableObjectsRequest::getDBClusterId() const { + return dBClusterId_; +} + +void GetTableObjectsRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string GetTableObjectsRequest::getOrderBy() const { + return orderBy_; +} + +void GetTableObjectsRequest::setOrderBy(const std::string &orderBy) { + orderBy_ = orderBy; + setParameter(std::string("OrderBy"), orderBy); +} + +std::string GetTableObjectsRequest::getFilterOwner() const { + return filterOwner_; +} + +void GetTableObjectsRequest::setFilterOwner(const std::string &filterOwner) { + filterOwner_ = filterOwner; + setParameter(std::string("FilterOwner"), filterOwner); +} + diff --git a/adb/src/model/GetTableObjectsResult.cc b/adb/src/model/GetTableObjectsResult.cc new file mode 100644 index 000000000..4c802f7a2 --- /dev/null +++ b/adb/src/model/GetTableObjectsResult.cc @@ -0,0 +1,101 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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; + +GetTableObjectsResult::GetTableObjectsResult() : + ServiceResult() +{} + +GetTableObjectsResult::GetTableObjectsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetTableObjectsResult::~GetTableObjectsResult() +{} + +void GetTableObjectsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["PageNumber"].isNull()) + data_.pageNumber = std::stol(dataNode["PageNumber"].asString()); + if(!dataNode["PageSize"].isNull()) + data_.pageSize = std::stol(dataNode["PageSize"].asString()); + if(!dataNode["TotalCount"].isNull()) + data_.totalCount = std::stol(dataNode["TotalCount"].asString()); + auto allTableSummaryModelsNode = dataNode["TableSummaryModels"]["dataObject"]; + for (auto dataNodeTableSummaryModelsdataObject : allTableSummaryModelsNode) + { + Data::DataObject dataObjectObject; + if(!dataNodeTableSummaryModelsdataObject["SchemaName"].isNull()) + dataObjectObject.schemaName = dataNodeTableSummaryModelsdataObject["SchemaName"].asString(); + if(!dataNodeTableSummaryModelsdataObject["TableName"].isNull()) + dataObjectObject.tableName = dataNodeTableSummaryModelsdataObject["TableName"].asString(); + if(!dataNodeTableSummaryModelsdataObject["TableType"].isNull()) + dataObjectObject.tableType = dataNodeTableSummaryModelsdataObject["TableType"].asString(); + if(!dataNodeTableSummaryModelsdataObject["TableSize"].isNull()) + dataObjectObject.tableSize = std::stol(dataNodeTableSummaryModelsdataObject["TableSize"].asString()); + if(!dataNodeTableSummaryModelsdataObject["CreateTime"].isNull()) + dataObjectObject.createTime = dataNodeTableSummaryModelsdataObject["CreateTime"].asString(); + if(!dataNodeTableSummaryModelsdataObject["UpdateTime"].isNull()) + dataObjectObject.updateTime = dataNodeTableSummaryModelsdataObject["UpdateTime"].asString(); + if(!dataNodeTableSummaryModelsdataObject["SQL"].isNull()) + dataObjectObject.sQL = dataNodeTableSummaryModelsdataObject["SQL"].asString(); + if(!dataNodeTableSummaryModelsdataObject["Description"].isNull()) + dataObjectObject.description = dataNodeTableSummaryModelsdataObject["Description"].asString(); + if(!dataNodeTableSummaryModelsdataObject["Owner"].isNull()) + dataObjectObject.owner = dataNodeTableSummaryModelsdataObject["Owner"].asString(); + data_.tableSummaryModels.push_back(dataObjectObject); + } + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stol(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stol(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stol(value["TotalCount"].asString()); + +} + +long GetTableObjectsResult::getTotalCount()const +{ + return totalCount_; +} + +long GetTableObjectsResult::getPageSize()const +{ + return pageSize_; +} + +long GetTableObjectsResult::getPageNumber()const +{ + return pageNumber_; +} + +GetTableObjectsResult::Data GetTableObjectsResult::getData()const +{ + return data_; +} + diff --git a/adb/src/model/GetTableRequest.cc b/adb/src/model/GetTableRequest.cc new file mode 100644 index 000000000..9f707bd86 --- /dev/null +++ b/adb/src/model/GetTableRequest.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::GetTableRequest; + +GetTableRequest::GetTableRequest() + : RpcServiceRequest("adb", "2021-12-01", "GetTable") { + setMethod(HttpRequest::Method::Post); +} + +GetTableRequest::~GetTableRequest() {} + +std::string GetTableRequest::getDbName() const { + return dbName_; +} + +void GetTableRequest::setDbName(const std::string &dbName) { + dbName_ = dbName; + setParameter(std::string("DbName"), dbName); +} + +std::string GetTableRequest::getRegionId() const { + return regionId_; +} + +void GetTableRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string GetTableRequest::getDBClusterId() const { + return dBClusterId_; +} + +void GetTableRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string GetTableRequest::getTableName() const { + return tableName_; +} + +void GetTableRequest::setTableName(const std::string &tableName) { + tableName_ = tableName; + setParameter(std::string("TableName"), tableName); +} + diff --git a/adb/src/model/GetTableResult.cc b/adb/src/model/GetTableResult.cc new file mode 100644 index 000000000..60fae8462 --- /dev/null +++ b/adb/src/model/GetTableResult.cc @@ -0,0 +1,557 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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; + +GetTableResult::GetTableResult() : + ServiceResult() +{} + +GetTableResult::GetTableResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetTableResult::~GetTableResult() +{} + +void GetTableResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto tableNode = value["Table"]; + if(!tableNode["TblId"].isNull()) + table_.tblId = std::stol(tableNode["TblId"].asString()); + if(!tableNode["DbName"].isNull()) + table_.dbName = tableNode["DbName"].asString(); + if(!tableNode["TableName"].isNull()) + table_.tableName = tableNode["TableName"].asString(); + if(!tableNode["TableType"].isNull()) + table_.tableType = tableNode["TableType"].asString(); + if(!tableNode["Parameters"].isNull()) + table_.parameters = tableNode["Parameters"].asString(); + if(!tableNode["CreateTime"].isNull()) + table_.createTime = tableNode["CreateTime"].asString(); + if(!tableNode["ViewOriginalText"].isNull()) + table_.viewOriginalText = tableNode["ViewOriginalText"].asString(); + if(!tableNode["ViewExpandedText"].isNull()) + table_.viewExpandedText = tableNode["ViewExpandedText"].asString(); + if(!tableNode["Temporary"].isNull()) + table_.temporary = tableNode["Temporary"].asString() == "true"; + if(!tableNode["Comment"].isNull()) + table_.comment = tableNode["Comment"].asString(); + if(!tableNode["PhysicalTableName"].isNull()) + table_.physicalTableName = tableNode["PhysicalTableName"].asString(); + if(!tableNode["PhysicalDatabaseName"].isNull()) + table_.physicalDatabaseName = tableNode["PhysicalDatabaseName"].asString(); + if(!tableNode["DistributeType"].isNull()) + table_.distributeType = tableNode["DistributeType"].asString(); + if(!tableNode["PartitionType"].isNull()) + table_.partitionType = tableNode["PartitionType"].asString(); + if(!tableNode["PartitionColumn"].isNull()) + table_.partitionColumn = tableNode["PartitionColumn"].asString(); + if(!tableNode["PartitionCount"].isNull()) + table_.partitionCount = std::stol(tableNode["PartitionCount"].asString()); + if(!tableNode["PreviousVersion"].isNull()) + table_.previousVersion = std::stol(tableNode["PreviousVersion"].asString()); + if(!tableNode["CurrentVersion"].isNull()) + table_.currentVersion = std::stol(tableNode["CurrentVersion"].asString()); + if(!tableNode["UpdateTime"].isNull()) + table_.updateTime = tableNode["UpdateTime"].asString(); + if(!tableNode["TableEngineName"].isNull()) + table_.tableEngineName = tableNode["TableEngineName"].asString(); + if(!tableNode["IsAllIndex"].isNull()) + table_.isAllIndex = tableNode["IsAllIndex"].asString() == "true"; + if(!tableNode["BlockSize"].isNull()) + table_.blockSize = std::stol(tableNode["BlockSize"].asString()); + if(!tableNode["Compression"].isNull()) + table_.compression = tableNode["Compression"].asString(); + if(!tableNode["RawTableName"].isNull()) + table_.rawTableName = tableNode["RawTableName"].asString(); + if(!tableNode["SubpartitionType"].isNull()) + table_.subpartitionType = tableNode["SubpartitionType"].asString(); + if(!tableNode["SubpartitionColumn"].isNull()) + table_.subpartitionColumn = tableNode["SubpartitionColumn"].asString(); + if(!tableNode["SubpartitionCount"].isNull()) + table_.subpartitionCount = std::stol(tableNode["SubpartitionCount"].asString()); + if(!tableNode["ArchiveType"].isNull()) + table_.archiveType = tableNode["ArchiveType"].asString(); + if(!tableNode["MaxColumnId"].isNull()) + table_.maxColumnId = std::stol(tableNode["MaxColumnId"].asString()); + if(!tableNode["EnableDfs"].isNull()) + table_.enableDfs = tableNode["EnableDfs"].asString() == "true"; + if(!tableNode["StoragePolicy"].isNull()) + table_.storagePolicy = tableNode["StoragePolicy"].asString(); + if(!tableNode["HotPartitionCount"].isNull()) + table_.hotPartitionCount = std::stol(tableNode["HotPartitionCount"].asString()); + if(!tableNode["IsFulltextDict"].isNull()) + table_.isFulltextDict = tableNode["IsFulltextDict"].asString() == "true"; + if(!tableNode["RtIndexAll"].isNull()) + table_.rtIndexAll = tableNode["RtIndexAll"].asString() == "true"; + if(!tableNode["RtEngineType"].isNull()) + table_.rtEngineType = tableNode["RtEngineType"].asString(); + if(!tableNode["RtModeType"].isNull()) + table_.rtModeType = tableNode["RtModeType"].asString(); + if(!tableNode["RouteType"].isNull()) + table_.routeType = tableNode["RouteType"].asString(); + if(!tableNode["DictEncode"].isNull()) + table_.dictEncode = tableNode["DictEncode"].asString() == "true"; + if(!tableNode["BucketCount"].isNull()) + table_.bucketCount = std::stol(tableNode["BucketCount"].asString()); + if(!tableNode["Bucket"].isNull()) + table_.bucket = std::stol(tableNode["Bucket"].asString()); + if(!tableNode["ViewSecurityMode"].isNull()) + table_.viewSecurityMode = tableNode["ViewSecurityMode"].asString(); + auto allPartitionKeysNode = tableNode["PartitionKeys"]["PartitionKeysItem"]; + for (auto tableNodePartitionKeysPartitionKeysItem : allPartitionKeysNode) + { + Table::PartitionKeysItem partitionKeysItemObject; + if(!tableNodePartitionKeysPartitionKeysItem["Name"].isNull()) + partitionKeysItemObject.name = tableNodePartitionKeysPartitionKeysItem["Name"].asString(); + if(!tableNodePartitionKeysPartitionKeysItem["Type"].isNull()) + partitionKeysItemObject.type = tableNodePartitionKeysPartitionKeysItem["Type"].asString(); + if(!tableNodePartitionKeysPartitionKeysItem["Comment"].isNull()) + partitionKeysItemObject.comment = tableNodePartitionKeysPartitionKeysItem["Comment"].asString(); + if(!tableNodePartitionKeysPartitionKeysItem["DatabaseName"].isNull()) + partitionKeysItemObject.databaseName = tableNodePartitionKeysPartitionKeysItem["DatabaseName"].asString(); + if(!tableNodePartitionKeysPartitionKeysItem["TableName"].isNull()) + partitionKeysItemObject.tableName = tableNodePartitionKeysPartitionKeysItem["TableName"].asString(); + if(!tableNodePartitionKeysPartitionKeysItem["MappedName"].isNull()) + partitionKeysItemObject.mappedName = tableNodePartitionKeysPartitionKeysItem["MappedName"].asString(); + if(!tableNodePartitionKeysPartitionKeysItem["DataType"].isNull()) + partitionKeysItemObject.dataType = tableNodePartitionKeysPartitionKeysItem["DataType"].asString(); + if(!tableNodePartitionKeysPartitionKeysItem["CreateTime"].isNull()) + partitionKeysItemObject.createTime = tableNodePartitionKeysPartitionKeysItem["CreateTime"].asString(); + if(!tableNodePartitionKeysPartitionKeysItem["UpdateTime"].isNull()) + partitionKeysItemObject.updateTime = tableNodePartitionKeysPartitionKeysItem["UpdateTime"].asString(); + if(!tableNodePartitionKeysPartitionKeysItem["PkPosition"].isNull()) + partitionKeysItemObject.pkPosition = std::stol(tableNodePartitionKeysPartitionKeysItem["PkPosition"].asString()); + if(!tableNodePartitionKeysPartitionKeysItem["IsPartitionKey"].isNull()) + partitionKeysItemObject.isPartitionKey = tableNodePartitionKeysPartitionKeysItem["IsPartitionKey"].asString() == "true"; + if(!tableNodePartitionKeysPartitionKeysItem["OrdinalPosition"].isNull()) + partitionKeysItemObject.ordinalPosition = std::stol(tableNodePartitionKeysPartitionKeysItem["OrdinalPosition"].asString()); + if(!tableNodePartitionKeysPartitionKeysItem["ColumnRawName"].isNull()) + partitionKeysItemObject.columnRawName = tableNodePartitionKeysPartitionKeysItem["ColumnRawName"].asString(); + if(!tableNodePartitionKeysPartitionKeysItem["PhysicalColumnName"].isNull()) + partitionKeysItemObject.physicalColumnName = tableNodePartitionKeysPartitionKeysItem["PhysicalColumnName"].asString(); + if(!tableNodePartitionKeysPartitionKeysItem["Nullable"].isNull()) + partitionKeysItemObject.nullable = tableNodePartitionKeysPartitionKeysItem["Nullable"].asString() == "true"; + if(!tableNodePartitionKeysPartitionKeysItem["AutoIncrement"].isNull()) + partitionKeysItemObject.autoIncrement = tableNodePartitionKeysPartitionKeysItem["AutoIncrement"].asString() == "true"; + if(!tableNodePartitionKeysPartitionKeysItem["Precision"].isNull()) + partitionKeysItemObject.precision = std::stol(tableNodePartitionKeysPartitionKeysItem["Precision"].asString()); + if(!tableNodePartitionKeysPartitionKeysItem["Scale"].isNull()) + partitionKeysItemObject.scale = std::stol(tableNodePartitionKeysPartitionKeysItem["Scale"].asString()); + if(!tableNodePartitionKeysPartitionKeysItem["Primarykey"].isNull()) + partitionKeysItemObject.primarykey = tableNodePartitionKeysPartitionKeysItem["Primarykey"].asString() == "true"; + if(!tableNodePartitionKeysPartitionKeysItem["DefaultValue"].isNull()) + partitionKeysItemObject.defaultValue = tableNodePartitionKeysPartitionKeysItem["DefaultValue"].asString(); + if(!tableNodePartitionKeysPartitionKeysItem["Tokenizer"].isNull()) + partitionKeysItemObject.tokenizer = tableNodePartitionKeysPartitionKeysItem["Tokenizer"].asString(); + if(!tableNodePartitionKeysPartitionKeysItem["Encode"].isNull()) + partitionKeysItemObject.encode = tableNodePartitionKeysPartitionKeysItem["Encode"].asString(); + if(!tableNodePartitionKeysPartitionKeysItem["Compression"].isNull()) + partitionKeysItemObject.compression = tableNodePartitionKeysPartitionKeysItem["Compression"].asString(); + if(!tableNodePartitionKeysPartitionKeysItem["Delimiter"].isNull()) + partitionKeysItemObject.delimiter = tableNodePartitionKeysPartitionKeysItem["Delimiter"].asString(); + if(!tableNodePartitionKeysPartitionKeysItem["ValueType"].isNull()) + partitionKeysItemObject.valueType = tableNodePartitionKeysPartitionKeysItem["ValueType"].asString(); + if(!tableNodePartitionKeysPartitionKeysItem["CompressFloatUseShort"].isNull()) + partitionKeysItemObject.compressFloatUseShort = tableNodePartitionKeysPartitionKeysItem["CompressFloatUseShort"].asString() == "true"; + if(!tableNodePartitionKeysPartitionKeysItem["OnUpdate"].isNull()) + partitionKeysItemObject.onUpdate = tableNodePartitionKeysPartitionKeysItem["OnUpdate"].asString(); + table_.partitionKeys.push_back(partitionKeysItemObject); + } + auto allColsNode = tableNode["Cols"]["ColsItem"]; + for (auto tableNodeColsColsItem : allColsNode) + { + Table::ColsItem colsItemObject; + if(!tableNodeColsColsItem["Name"].isNull()) + colsItemObject.name = tableNodeColsColsItem["Name"].asString(); + if(!tableNodeColsColsItem["Type"].isNull()) + colsItemObject.type = tableNodeColsColsItem["Type"].asString(); + if(!tableNodeColsColsItem["Comment"].isNull()) + colsItemObject.comment = tableNodeColsColsItem["Comment"].asString(); + if(!tableNodeColsColsItem["DatabaseName"].isNull()) + colsItemObject.databaseName = tableNodeColsColsItem["DatabaseName"].asString(); + if(!tableNodeColsColsItem["TableName"].isNull()) + colsItemObject.tableName = tableNodeColsColsItem["TableName"].asString(); + if(!tableNodeColsColsItem["MappedName"].isNull()) + colsItemObject.mappedName = tableNodeColsColsItem["MappedName"].asString(); + if(!tableNodeColsColsItem["DataType"].isNull()) + colsItemObject.dataType = tableNodeColsColsItem["DataType"].asString(); + if(!tableNodeColsColsItem["CreateTime"].isNull()) + colsItemObject.createTime = tableNodeColsColsItem["CreateTime"].asString(); + if(!tableNodeColsColsItem["UpdateTime"].isNull()) + colsItemObject.updateTime = tableNodeColsColsItem["UpdateTime"].asString(); + if(!tableNodeColsColsItem["PkPosition"].isNull()) + colsItemObject.pkPosition = std::stol(tableNodeColsColsItem["PkPosition"].asString()); + if(!tableNodeColsColsItem["IsPartitionKey"].isNull()) + colsItemObject.isPartitionKey = tableNodeColsColsItem["IsPartitionKey"].asString() == "true"; + if(!tableNodeColsColsItem["OrdinalPosition"].isNull()) + colsItemObject.ordinalPosition = std::stol(tableNodeColsColsItem["OrdinalPosition"].asString()); + if(!tableNodeColsColsItem["ColumnRawName"].isNull()) + colsItemObject.columnRawName = tableNodeColsColsItem["ColumnRawName"].asString(); + if(!tableNodeColsColsItem["PhysicalColumnName"].isNull()) + colsItemObject.physicalColumnName = tableNodeColsColsItem["PhysicalColumnName"].asString(); + if(!tableNodeColsColsItem["Nullable"].isNull()) + colsItemObject.nullable = tableNodeColsColsItem["Nullable"].asString() == "true"; + if(!tableNodeColsColsItem["AutoIncrement"].isNull()) + colsItemObject.autoIncrement = tableNodeColsColsItem["AutoIncrement"].asString() == "true"; + if(!tableNodeColsColsItem["Precision"].isNull()) + colsItemObject.precision = std::stol(tableNodeColsColsItem["Precision"].asString()); + if(!tableNodeColsColsItem["Scale"].isNull()) + colsItemObject.scale = std::stol(tableNodeColsColsItem["Scale"].asString()); + if(!tableNodeColsColsItem["Primarykey"].isNull()) + colsItemObject.primarykey = tableNodeColsColsItem["Primarykey"].asString() == "true"; + if(!tableNodeColsColsItem["DefaultValue"].isNull()) + colsItemObject.defaultValue = tableNodeColsColsItem["DefaultValue"].asString(); + if(!tableNodeColsColsItem["Tokenizer"].isNull()) + colsItemObject.tokenizer = tableNodeColsColsItem["Tokenizer"].asString(); + if(!tableNodeColsColsItem["Encode"].isNull()) + colsItemObject.encode = tableNodeColsColsItem["Encode"].asString(); + if(!tableNodeColsColsItem["Compression"].isNull()) + colsItemObject.compression = tableNodeColsColsItem["Compression"].asString(); + if(!tableNodeColsColsItem["Delimiter"].isNull()) + colsItemObject.delimiter = tableNodeColsColsItem["Delimiter"].asString(); + if(!tableNodeColsColsItem["ValueType"].isNull()) + colsItemObject.valueType = tableNodeColsColsItem["ValueType"].asString(); + if(!tableNodeColsColsItem["CompressFloatUseShort"].isNull()) + colsItemObject.compressFloatUseShort = tableNodeColsColsItem["CompressFloatUseShort"].asString() == "true"; + if(!tableNodeColsColsItem["OnUpdate"].isNull()) + colsItemObject.onUpdate = tableNodeColsColsItem["OnUpdate"].asString(); + table_.cols.push_back(colsItemObject); + } + auto allDistributeColumnsNode = tableNode["DistributeColumns"]["DistributeColumnsItem"]; + for (auto tableNodeDistributeColumnsDistributeColumnsItem : allDistributeColumnsNode) + { + Table::DistributeColumnsItem distributeColumnsItemObject; + if(!tableNodeDistributeColumnsDistributeColumnsItem["Name"].isNull()) + distributeColumnsItemObject.name = tableNodeDistributeColumnsDistributeColumnsItem["Name"].asString(); + if(!tableNodeDistributeColumnsDistributeColumnsItem["Type"].isNull()) + distributeColumnsItemObject.type = tableNodeDistributeColumnsDistributeColumnsItem["Type"].asString(); + if(!tableNodeDistributeColumnsDistributeColumnsItem["Comment"].isNull()) + distributeColumnsItemObject.comment = tableNodeDistributeColumnsDistributeColumnsItem["Comment"].asString(); + if(!tableNodeDistributeColumnsDistributeColumnsItem["DatabaseName"].isNull()) + distributeColumnsItemObject.databaseName = tableNodeDistributeColumnsDistributeColumnsItem["DatabaseName"].asString(); + if(!tableNodeDistributeColumnsDistributeColumnsItem["TableName"].isNull()) + distributeColumnsItemObject.tableName = tableNodeDistributeColumnsDistributeColumnsItem["TableName"].asString(); + if(!tableNodeDistributeColumnsDistributeColumnsItem["MappedName"].isNull()) + distributeColumnsItemObject.mappedName = tableNodeDistributeColumnsDistributeColumnsItem["MappedName"].asString(); + if(!tableNodeDistributeColumnsDistributeColumnsItem["DataType"].isNull()) + distributeColumnsItemObject.dataType = tableNodeDistributeColumnsDistributeColumnsItem["DataType"].asString(); + if(!tableNodeDistributeColumnsDistributeColumnsItem["CreateTime"].isNull()) + distributeColumnsItemObject.createTime = tableNodeDistributeColumnsDistributeColumnsItem["CreateTime"].asString(); + if(!tableNodeDistributeColumnsDistributeColumnsItem["UpdateTime"].isNull()) + distributeColumnsItemObject.updateTime = tableNodeDistributeColumnsDistributeColumnsItem["UpdateTime"].asString(); + if(!tableNodeDistributeColumnsDistributeColumnsItem["PkPosition"].isNull()) + distributeColumnsItemObject.pkPosition = std::stol(tableNodeDistributeColumnsDistributeColumnsItem["PkPosition"].asString()); + if(!tableNodeDistributeColumnsDistributeColumnsItem["IsPartitionKey"].isNull()) + distributeColumnsItemObject.isPartitionKey = tableNodeDistributeColumnsDistributeColumnsItem["IsPartitionKey"].asString() == "true"; + if(!tableNodeDistributeColumnsDistributeColumnsItem["OrdinalPosition"].isNull()) + distributeColumnsItemObject.ordinalPosition = std::stol(tableNodeDistributeColumnsDistributeColumnsItem["OrdinalPosition"].asString()); + if(!tableNodeDistributeColumnsDistributeColumnsItem["ColumnRawName"].isNull()) + distributeColumnsItemObject.columnRawName = tableNodeDistributeColumnsDistributeColumnsItem["ColumnRawName"].asString(); + if(!tableNodeDistributeColumnsDistributeColumnsItem["PhysicalColumnName"].isNull()) + distributeColumnsItemObject.physicalColumnName = tableNodeDistributeColumnsDistributeColumnsItem["PhysicalColumnName"].asString(); + if(!tableNodeDistributeColumnsDistributeColumnsItem["Nullable"].isNull()) + distributeColumnsItemObject.nullable = tableNodeDistributeColumnsDistributeColumnsItem["Nullable"].asString() == "true"; + if(!tableNodeDistributeColumnsDistributeColumnsItem["AutoIncrement"].isNull()) + distributeColumnsItemObject.autoIncrement = tableNodeDistributeColumnsDistributeColumnsItem["AutoIncrement"].asString() == "true"; + if(!tableNodeDistributeColumnsDistributeColumnsItem["Precision"].isNull()) + distributeColumnsItemObject.precision = std::stol(tableNodeDistributeColumnsDistributeColumnsItem["Precision"].asString()); + if(!tableNodeDistributeColumnsDistributeColumnsItem["Scale"].isNull()) + distributeColumnsItemObject.scale = std::stol(tableNodeDistributeColumnsDistributeColumnsItem["Scale"].asString()); + if(!tableNodeDistributeColumnsDistributeColumnsItem["Primarykey"].isNull()) + distributeColumnsItemObject.primarykey = tableNodeDistributeColumnsDistributeColumnsItem["Primarykey"].asString() == "true"; + if(!tableNodeDistributeColumnsDistributeColumnsItem["DefaultValue"].isNull()) + distributeColumnsItemObject.defaultValue = tableNodeDistributeColumnsDistributeColumnsItem["DefaultValue"].asString(); + if(!tableNodeDistributeColumnsDistributeColumnsItem["Tokenizer"].isNull()) + distributeColumnsItemObject.tokenizer = tableNodeDistributeColumnsDistributeColumnsItem["Tokenizer"].asString(); + if(!tableNodeDistributeColumnsDistributeColumnsItem["Encode"].isNull()) + distributeColumnsItemObject.encode = tableNodeDistributeColumnsDistributeColumnsItem["Encode"].asString(); + if(!tableNodeDistributeColumnsDistributeColumnsItem["Compression"].isNull()) + distributeColumnsItemObject.compression = tableNodeDistributeColumnsDistributeColumnsItem["Compression"].asString(); + if(!tableNodeDistributeColumnsDistributeColumnsItem["Delimiter"].isNull()) + distributeColumnsItemObject.delimiter = tableNodeDistributeColumnsDistributeColumnsItem["Delimiter"].asString(); + if(!tableNodeDistributeColumnsDistributeColumnsItem["ValueType"].isNull()) + distributeColumnsItemObject.valueType = tableNodeDistributeColumnsDistributeColumnsItem["ValueType"].asString(); + if(!tableNodeDistributeColumnsDistributeColumnsItem["CompressFloatUseShort"].isNull()) + distributeColumnsItemObject.compressFloatUseShort = tableNodeDistributeColumnsDistributeColumnsItem["CompressFloatUseShort"].asString() == "true"; + if(!tableNodeDistributeColumnsDistributeColumnsItem["OnUpdate"].isNull()) + distributeColumnsItemObject.onUpdate = tableNodeDistributeColumnsDistributeColumnsItem["OnUpdate"].asString(); + table_.distributeColumns.push_back(distributeColumnsItemObject); + } + auto allRouteColumnsNode = tableNode["RouteColumns"]["RouteColumnsItem"]; + for (auto tableNodeRouteColumnsRouteColumnsItem : allRouteColumnsNode) + { + Table::RouteColumnsItem routeColumnsItemObject; + if(!tableNodeRouteColumnsRouteColumnsItem["Name"].isNull()) + routeColumnsItemObject.name = tableNodeRouteColumnsRouteColumnsItem["Name"].asString(); + if(!tableNodeRouteColumnsRouteColumnsItem["Type"].isNull()) + routeColumnsItemObject.type = tableNodeRouteColumnsRouteColumnsItem["Type"].asString(); + if(!tableNodeRouteColumnsRouteColumnsItem["Comment"].isNull()) + routeColumnsItemObject.comment = tableNodeRouteColumnsRouteColumnsItem["Comment"].asString(); + if(!tableNodeRouteColumnsRouteColumnsItem["DatabaseName"].isNull()) + routeColumnsItemObject.databaseName = tableNodeRouteColumnsRouteColumnsItem["DatabaseName"].asString(); + if(!tableNodeRouteColumnsRouteColumnsItem["TableName"].isNull()) + routeColumnsItemObject.tableName = tableNodeRouteColumnsRouteColumnsItem["TableName"].asString(); + if(!tableNodeRouteColumnsRouteColumnsItem["MappedName"].isNull()) + routeColumnsItemObject.mappedName = tableNodeRouteColumnsRouteColumnsItem["MappedName"].asString(); + if(!tableNodeRouteColumnsRouteColumnsItem["DataType"].isNull()) + routeColumnsItemObject.dataType = tableNodeRouteColumnsRouteColumnsItem["DataType"].asString(); + if(!tableNodeRouteColumnsRouteColumnsItem["CreateTime"].isNull()) + routeColumnsItemObject.createTime = tableNodeRouteColumnsRouteColumnsItem["CreateTime"].asString(); + if(!tableNodeRouteColumnsRouteColumnsItem["UpdateTime"].isNull()) + routeColumnsItemObject.updateTime = tableNodeRouteColumnsRouteColumnsItem["UpdateTime"].asString(); + if(!tableNodeRouteColumnsRouteColumnsItem["PkPosition"].isNull()) + routeColumnsItemObject.pkPosition = std::stol(tableNodeRouteColumnsRouteColumnsItem["PkPosition"].asString()); + if(!tableNodeRouteColumnsRouteColumnsItem["IsPartitionKey"].isNull()) + routeColumnsItemObject.isPartitionKey = tableNodeRouteColumnsRouteColumnsItem["IsPartitionKey"].asString() == "true"; + if(!tableNodeRouteColumnsRouteColumnsItem["OrdinalPosition"].isNull()) + routeColumnsItemObject.ordinalPosition = std::stol(tableNodeRouteColumnsRouteColumnsItem["OrdinalPosition"].asString()); + if(!tableNodeRouteColumnsRouteColumnsItem["ColumnRawName"].isNull()) + routeColumnsItemObject.columnRawName = tableNodeRouteColumnsRouteColumnsItem["ColumnRawName"].asString(); + if(!tableNodeRouteColumnsRouteColumnsItem["PhysicalColumnName"].isNull()) + routeColumnsItemObject.physicalColumnName = tableNodeRouteColumnsRouteColumnsItem["PhysicalColumnName"].asString(); + if(!tableNodeRouteColumnsRouteColumnsItem["Nullable"].isNull()) + routeColumnsItemObject.nullable = tableNodeRouteColumnsRouteColumnsItem["Nullable"].asString() == "true"; + if(!tableNodeRouteColumnsRouteColumnsItem["AutoIncrement"].isNull()) + routeColumnsItemObject.autoIncrement = tableNodeRouteColumnsRouteColumnsItem["AutoIncrement"].asString() == "true"; + if(!tableNodeRouteColumnsRouteColumnsItem["Precision"].isNull()) + routeColumnsItemObject.precision = std::stol(tableNodeRouteColumnsRouteColumnsItem["Precision"].asString()); + if(!tableNodeRouteColumnsRouteColumnsItem["Scale"].isNull()) + routeColumnsItemObject.scale = std::stol(tableNodeRouteColumnsRouteColumnsItem["Scale"].asString()); + if(!tableNodeRouteColumnsRouteColumnsItem["Primarykey"].isNull()) + routeColumnsItemObject.primarykey = tableNodeRouteColumnsRouteColumnsItem["Primarykey"].asString() == "true"; + if(!tableNodeRouteColumnsRouteColumnsItem["DefaultValue"].isNull()) + routeColumnsItemObject.defaultValue = tableNodeRouteColumnsRouteColumnsItem["DefaultValue"].asString(); + if(!tableNodeRouteColumnsRouteColumnsItem["Tokenizer"].isNull()) + routeColumnsItemObject.tokenizer = tableNodeRouteColumnsRouteColumnsItem["Tokenizer"].asString(); + if(!tableNodeRouteColumnsRouteColumnsItem["Encode"].isNull()) + routeColumnsItemObject.encode = tableNodeRouteColumnsRouteColumnsItem["Encode"].asString(); + if(!tableNodeRouteColumnsRouteColumnsItem["Compression"].isNull()) + routeColumnsItemObject.compression = tableNodeRouteColumnsRouteColumnsItem["Compression"].asString(); + if(!tableNodeRouteColumnsRouteColumnsItem["Delimiter"].isNull()) + routeColumnsItemObject.delimiter = tableNodeRouteColumnsRouteColumnsItem["Delimiter"].asString(); + if(!tableNodeRouteColumnsRouteColumnsItem["ValueType"].isNull()) + routeColumnsItemObject.valueType = tableNodeRouteColumnsRouteColumnsItem["ValueType"].asString(); + if(!tableNodeRouteColumnsRouteColumnsItem["CompressFloatUseShort"].isNull()) + routeColumnsItemObject.compressFloatUseShort = tableNodeRouteColumnsRouteColumnsItem["CompressFloatUseShort"].asString() == "true"; + if(!tableNodeRouteColumnsRouteColumnsItem["OnUpdate"].isNull()) + routeColumnsItemObject.onUpdate = tableNodeRouteColumnsRouteColumnsItem["OnUpdate"].asString(); + table_.routeColumns.push_back(routeColumnsItemObject); + } + auto allIndexesNode = tableNode["Indexes"]["IndexesItem"]; + for (auto tableNodeIndexesIndexesItem : allIndexesNode) + { + Table::IndexesItem indexesItemObject; + if(!tableNodeIndexesIndexesItem["DatabaseName"].isNull()) + indexesItemObject.databaseName = tableNodeIndexesIndexesItem["DatabaseName"].asString(); + if(!tableNodeIndexesIndexesItem["PhysicalTableName"].isNull()) + indexesItemObject.physicalTableName = tableNodeIndexesIndexesItem["PhysicalTableName"].asString(); + if(!tableNodeIndexesIndexesItem["IndexName"].isNull()) + indexesItemObject.indexName = tableNodeIndexesIndexesItem["IndexName"].asString(); + if(!tableNodeIndexesIndexesItem["IndexType"].isNull()) + indexesItemObject.indexType = tableNodeIndexesIndexesItem["IndexType"].asString(); + if(!tableNodeIndexesIndexesItem["Options"].isNull()) + indexesItemObject.options = tableNodeIndexesIndexesItem["Options"].asString(); + if(!tableNodeIndexesIndexesItem["CreateTime"].isNull()) + indexesItemObject.createTime = tableNodeIndexesIndexesItem["CreateTime"].asString(); + if(!tableNodeIndexesIndexesItem["UpdateTime"].isNull()) + indexesItemObject.updateTime = tableNodeIndexesIndexesItem["UpdateTime"].asString(); + auto allIndexColumnsNode = tableNodeIndexesIndexesItem["IndexColumns"]["IndexColumnsItem"]; + for (auto tableNodeIndexesIndexesItemIndexColumnsIndexColumnsItem : allIndexColumnsNode) + { + Table::IndexesItem::IndexColumnsItem indexColumnsObject; + if(!tableNodeIndexesIndexesItemIndexColumnsIndexColumnsItem["Name"].isNull()) + indexColumnsObject.name = tableNodeIndexesIndexesItemIndexColumnsIndexColumnsItem["Name"].asString(); + if(!tableNodeIndexesIndexesItemIndexColumnsIndexColumnsItem["Type"].isNull()) + indexColumnsObject.type = tableNodeIndexesIndexesItemIndexColumnsIndexColumnsItem["Type"].asString(); + if(!tableNodeIndexesIndexesItemIndexColumnsIndexColumnsItem["Comment"].isNull()) + indexColumnsObject.comment = tableNodeIndexesIndexesItemIndexColumnsIndexColumnsItem["Comment"].asString(); + if(!tableNodeIndexesIndexesItemIndexColumnsIndexColumnsItem["DatabaseName"].isNull()) + indexColumnsObject.databaseName = tableNodeIndexesIndexesItemIndexColumnsIndexColumnsItem["DatabaseName"].asString(); + if(!tableNodeIndexesIndexesItemIndexColumnsIndexColumnsItem["TableName"].isNull()) + indexColumnsObject.tableName = tableNodeIndexesIndexesItemIndexColumnsIndexColumnsItem["TableName"].asString(); + if(!tableNodeIndexesIndexesItemIndexColumnsIndexColumnsItem["MappedName"].isNull()) + indexColumnsObject.mappedName = tableNodeIndexesIndexesItemIndexColumnsIndexColumnsItem["MappedName"].asString(); + if(!tableNodeIndexesIndexesItemIndexColumnsIndexColumnsItem["DataType"].isNull()) + indexColumnsObject.dataType = tableNodeIndexesIndexesItemIndexColumnsIndexColumnsItem["DataType"].asString(); + if(!tableNodeIndexesIndexesItemIndexColumnsIndexColumnsItem["CreateTime"].isNull()) + indexColumnsObject.createTime = tableNodeIndexesIndexesItemIndexColumnsIndexColumnsItem["CreateTime"].asString(); + if(!tableNodeIndexesIndexesItemIndexColumnsIndexColumnsItem["UpdateTime"].isNull()) + indexColumnsObject.updateTime = tableNodeIndexesIndexesItemIndexColumnsIndexColumnsItem["UpdateTime"].asString(); + if(!tableNodeIndexesIndexesItemIndexColumnsIndexColumnsItem["PkPosition"].isNull()) + indexColumnsObject.pkPosition = std::stol(tableNodeIndexesIndexesItemIndexColumnsIndexColumnsItem["PkPosition"].asString()); + if(!tableNodeIndexesIndexesItemIndexColumnsIndexColumnsItem["IsPartitionKey"].isNull()) + indexColumnsObject.isPartitionKey = tableNodeIndexesIndexesItemIndexColumnsIndexColumnsItem["IsPartitionKey"].asString() == "true"; + if(!tableNodeIndexesIndexesItemIndexColumnsIndexColumnsItem["OrdinalPosition"].isNull()) + indexColumnsObject.ordinalPosition = std::stol(tableNodeIndexesIndexesItemIndexColumnsIndexColumnsItem["OrdinalPosition"].asString()); + if(!tableNodeIndexesIndexesItemIndexColumnsIndexColumnsItem["ColumnRawName"].isNull()) + indexColumnsObject.columnRawName = tableNodeIndexesIndexesItemIndexColumnsIndexColumnsItem["ColumnRawName"].asString(); + if(!tableNodeIndexesIndexesItemIndexColumnsIndexColumnsItem["PhysicalColumnName"].isNull()) + indexColumnsObject.physicalColumnName = tableNodeIndexesIndexesItemIndexColumnsIndexColumnsItem["PhysicalColumnName"].asString(); + if(!tableNodeIndexesIndexesItemIndexColumnsIndexColumnsItem["Nullable"].isNull()) + indexColumnsObject.nullable = tableNodeIndexesIndexesItemIndexColumnsIndexColumnsItem["Nullable"].asString() == "true"; + if(!tableNodeIndexesIndexesItemIndexColumnsIndexColumnsItem["AutoIncrement"].isNull()) + indexColumnsObject.autoIncrement = tableNodeIndexesIndexesItemIndexColumnsIndexColumnsItem["AutoIncrement"].asString() == "true"; + if(!tableNodeIndexesIndexesItemIndexColumnsIndexColumnsItem["Precision"].isNull()) + indexColumnsObject.precision = std::stol(tableNodeIndexesIndexesItemIndexColumnsIndexColumnsItem["Precision"].asString()); + if(!tableNodeIndexesIndexesItemIndexColumnsIndexColumnsItem["Scale"].isNull()) + indexColumnsObject.scale = std::stol(tableNodeIndexesIndexesItemIndexColumnsIndexColumnsItem["Scale"].asString()); + if(!tableNodeIndexesIndexesItemIndexColumnsIndexColumnsItem["Primarykey"].isNull()) + indexColumnsObject.primarykey = tableNodeIndexesIndexesItemIndexColumnsIndexColumnsItem["Primarykey"].asString() == "true"; + if(!tableNodeIndexesIndexesItemIndexColumnsIndexColumnsItem["DefaultValue"].isNull()) + indexColumnsObject.defaultValue = tableNodeIndexesIndexesItemIndexColumnsIndexColumnsItem["DefaultValue"].asString(); + if(!tableNodeIndexesIndexesItemIndexColumnsIndexColumnsItem["Tokenizer"].isNull()) + indexColumnsObject.tokenizer = tableNodeIndexesIndexesItemIndexColumnsIndexColumnsItem["Tokenizer"].asString(); + if(!tableNodeIndexesIndexesItemIndexColumnsIndexColumnsItem["Encode"].isNull()) + indexColumnsObject.encode = tableNodeIndexesIndexesItemIndexColumnsIndexColumnsItem["Encode"].asString(); + if(!tableNodeIndexesIndexesItemIndexColumnsIndexColumnsItem["Compression"].isNull()) + indexColumnsObject.compression = tableNodeIndexesIndexesItemIndexColumnsIndexColumnsItem["Compression"].asString(); + if(!tableNodeIndexesIndexesItemIndexColumnsIndexColumnsItem["Delimiter"].isNull()) + indexColumnsObject.delimiter = tableNodeIndexesIndexesItemIndexColumnsIndexColumnsItem["Delimiter"].asString(); + if(!tableNodeIndexesIndexesItemIndexColumnsIndexColumnsItem["ValueType"].isNull()) + indexColumnsObject.valueType = tableNodeIndexesIndexesItemIndexColumnsIndexColumnsItem["ValueType"].asString(); + if(!tableNodeIndexesIndexesItemIndexColumnsIndexColumnsItem["CompressFloatUseShort"].isNull()) + indexColumnsObject.compressFloatUseShort = tableNodeIndexesIndexesItemIndexColumnsIndexColumnsItem["CompressFloatUseShort"].asString() == "true"; + if(!tableNodeIndexesIndexesItemIndexColumnsIndexColumnsItem["OnUpdate"].isNull()) + indexColumnsObject.onUpdate = tableNodeIndexesIndexesItemIndexColumnsIndexColumnsItem["OnUpdate"].asString(); + indexesItemObject.indexColumns.push_back(indexColumnsObject); + } + auto allColumnOrds = value["ColumnOrds"]["null"]; + for (auto value : allColumnOrds) + indexesItemObject.columnOrds.push_back(value.asString()); + table_.indexes.push_back(indexesItemObject); + } + auto sdNode = tableNode["Sd"]; + if(!sdNode["SdId"].isNull()) + table_.sd.sdId = std::stol(sdNode["SdId"].asString()); + if(!sdNode["Location"].isNull()) + table_.sd.location = sdNode["Location"].asString(); + if(!sdNode["InputFormat"].isNull()) + table_.sd.inputFormat = sdNode["InputFormat"].asString(); + if(!sdNode["OutputFormat"].isNull()) + table_.sd.outputFormat = sdNode["OutputFormat"].asString(); + if(!sdNode["Compressed"].isNull()) + table_.sd.compressed = sdNode["Compressed"].asString() == "true"; + if(!sdNode["NumBuckets"].isNull()) + table_.sd.numBuckets = std::stol(sdNode["NumBuckets"].asString()); + if(!sdNode["Parameters"].isNull()) + table_.sd.parameters = sdNode["Parameters"].asString(); + if(!sdNode["StoredAsSubDirectories"].isNull()) + table_.sd.storedAsSubDirectories = sdNode["StoredAsSubDirectories"].asString() == "true"; + auto serDeInfoNode = sdNode["SerDeInfo"]; + if(!serDeInfoNode["SerDeId"].isNull()) + table_.sd.serDeInfo.serDeId = std::stol(serDeInfoNode["SerDeId"].asString()); + if(!serDeInfoNode["Name"].isNull()) + table_.sd.serDeInfo.name = serDeInfoNode["Name"].asString(); + if(!serDeInfoNode["Parameters"].isNull()) + table_.sd.serDeInfo.parameters = serDeInfoNode["Parameters"].asString(); + if(!serDeInfoNode["SerializationLib"].isNull()) + table_.sd.serDeInfo.serializationLib = serDeInfoNode["SerializationLib"].asString(); + auto routeEffectiveColumnNode = tableNode["RouteEffectiveColumn"]; + if(!routeEffectiveColumnNode["Name"].isNull()) + table_.routeEffectiveColumn.name = routeEffectiveColumnNode["Name"].asString(); + if(!routeEffectiveColumnNode["Type"].isNull()) + table_.routeEffectiveColumn.type = routeEffectiveColumnNode["Type"].asString(); + if(!routeEffectiveColumnNode["Comment"].isNull()) + table_.routeEffectiveColumn.comment = routeEffectiveColumnNode["Comment"].asString(); + if(!routeEffectiveColumnNode["DatabaseName"].isNull()) + table_.routeEffectiveColumn.databaseName = routeEffectiveColumnNode["DatabaseName"].asString(); + if(!routeEffectiveColumnNode["TableName"].isNull()) + table_.routeEffectiveColumn.tableName = routeEffectiveColumnNode["TableName"].asString(); + if(!routeEffectiveColumnNode["MappedName"].isNull()) + table_.routeEffectiveColumn.mappedName = routeEffectiveColumnNode["MappedName"].asString(); + if(!routeEffectiveColumnNode["DataType"].isNull()) + table_.routeEffectiveColumn.dataType = routeEffectiveColumnNode["DataType"].asString(); + if(!routeEffectiveColumnNode["CreateTime"].isNull()) + table_.routeEffectiveColumn.createTime = routeEffectiveColumnNode["CreateTime"].asString(); + if(!routeEffectiveColumnNode["UpdateTime"].isNull()) + table_.routeEffectiveColumn.updateTime = routeEffectiveColumnNode["UpdateTime"].asString(); + if(!routeEffectiveColumnNode["PkPosition"].isNull()) + table_.routeEffectiveColumn.pkPosition = std::stol(routeEffectiveColumnNode["PkPosition"].asString()); + if(!routeEffectiveColumnNode["IsPartitionKey"].isNull()) + table_.routeEffectiveColumn.isPartitionKey = routeEffectiveColumnNode["IsPartitionKey"].asString() == "true"; + if(!routeEffectiveColumnNode["OrdinalPosition"].isNull()) + table_.routeEffectiveColumn.ordinalPosition = std::stol(routeEffectiveColumnNode["OrdinalPosition"].asString()); + if(!routeEffectiveColumnNode["ColumnRawName"].isNull()) + table_.routeEffectiveColumn.columnRawName = routeEffectiveColumnNode["ColumnRawName"].asString(); + if(!routeEffectiveColumnNode["PhysicalColumnName"].isNull()) + table_.routeEffectiveColumn.physicalColumnName = routeEffectiveColumnNode["PhysicalColumnName"].asString(); + if(!routeEffectiveColumnNode["Nullable"].isNull()) + table_.routeEffectiveColumn.nullable = routeEffectiveColumnNode["Nullable"].asString() == "true"; + if(!routeEffectiveColumnNode["AutoIncrement"].isNull()) + table_.routeEffectiveColumn.autoIncrement = routeEffectiveColumnNode["AutoIncrement"].asString() == "true"; + if(!routeEffectiveColumnNode["Precision"].isNull()) + table_.routeEffectiveColumn.precision = std::stol(routeEffectiveColumnNode["Precision"].asString()); + if(!routeEffectiveColumnNode["Scale"].isNull()) + table_.routeEffectiveColumn.scale = std::stol(routeEffectiveColumnNode["Scale"].asString()); + if(!routeEffectiveColumnNode["Primarykey"].isNull()) + table_.routeEffectiveColumn.primarykey = routeEffectiveColumnNode["Primarykey"].asString() == "true"; + if(!routeEffectiveColumnNode["DefaultValue"].isNull()) + table_.routeEffectiveColumn.defaultValue = routeEffectiveColumnNode["DefaultValue"].asString(); + if(!routeEffectiveColumnNode["Tokenizer"].isNull()) + table_.routeEffectiveColumn.tokenizer = routeEffectiveColumnNode["Tokenizer"].asString(); + if(!routeEffectiveColumnNode["Encode"].isNull()) + table_.routeEffectiveColumn.encode = routeEffectiveColumnNode["Encode"].asString(); + if(!routeEffectiveColumnNode["Compression"].isNull()) + table_.routeEffectiveColumn.compression = routeEffectiveColumnNode["Compression"].asString(); + if(!routeEffectiveColumnNode["Delimiter"].isNull()) + table_.routeEffectiveColumn.delimiter = routeEffectiveColumnNode["Delimiter"].asString(); + if(!routeEffectiveColumnNode["ValueType"].isNull()) + table_.routeEffectiveColumn.valueType = routeEffectiveColumnNode["ValueType"].asString(); + if(!routeEffectiveColumnNode["CompressFloatUseShort"].isNull()) + table_.routeEffectiveColumn.compressFloatUseShort = routeEffectiveColumnNode["CompressFloatUseShort"].asString() == "true"; + if(!routeEffectiveColumnNode["OnUpdate"].isNull()) + table_.routeEffectiveColumn.onUpdate = routeEffectiveColumnNode["OnUpdate"].asString(); + if(!value["Code"].isNull()) + code_ = std::stol(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +GetTableResult::Table GetTableResult::getTable()const +{ + return table_; +} + +std::string GetTableResult::getMessage()const +{ + return message_; +} + +long GetTableResult::getCode()const +{ + return code_; +} + +bool GetTableResult::getSuccess()const +{ + return success_; +} + diff --git a/adb/src/model/GetViewDDLRequest.cc b/adb/src/model/GetViewDDLRequest.cc new file mode 100644 index 000000000..bf0f48c77 --- /dev/null +++ b/adb/src/model/GetViewDDLRequest.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::GetViewDDLRequest; + +GetViewDDLRequest::GetViewDDLRequest() + : RpcServiceRequest("adb", "2021-12-01", "GetViewDDL") { + setMethod(HttpRequest::Method::Post); +} + +GetViewDDLRequest::~GetViewDDLRequest() {} + +std::string GetViewDDLRequest::getSchemaName() const { + return schemaName_; +} + +void GetViewDDLRequest::setSchemaName(const std::string &schemaName) { + schemaName_ = schemaName; + setParameter(std::string("SchemaName"), schemaName); +} + +std::string GetViewDDLRequest::getViewName() const { + return viewName_; +} + +void GetViewDDLRequest::setViewName(const std::string &viewName) { + viewName_ = viewName; + setParameter(std::string("ViewName"), viewName); +} + +std::string GetViewDDLRequest::getDBClusterId() const { + return dBClusterId_; +} + +void GetViewDDLRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string GetViewDDLRequest::getRegionId() const { + return regionId_; +} + +void GetViewDDLRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + diff --git a/adb/src/model/GrantOperatorPermissionResult.cc b/adb/src/model/GetViewDDLResult.cc similarity index 70% rename from adb/src/model/GrantOperatorPermissionResult.cc rename to adb/src/model/GetViewDDLResult.cc index 3b0b46a9a..7c6f8d544 100644 --- a/adb/src/model/GrantOperatorPermissionResult.cc +++ b/adb/src/model/GetViewDDLResult.cc @@ -14,31 +14,38 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Adb; using namespace AlibabaCloud::Adb::Model; -GrantOperatorPermissionResult::GrantOperatorPermissionResult() : +GetViewDDLResult::GetViewDDLResult() : ServiceResult() {} -GrantOperatorPermissionResult::GrantOperatorPermissionResult(const std::string &payload) : +GetViewDDLResult::GetViewDDLResult(const std::string &payload) : ServiceResult() { parse(payload); } -GrantOperatorPermissionResult::~GrantOperatorPermissionResult() +GetViewDDLResult::~GetViewDDLResult() {} -void GrantOperatorPermissionResult::parse(const std::string &payload) +void GetViewDDLResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + if(!value["SQL"].isNull()) + sQL_ = value["SQL"].asString(); } +std::string GetViewDDLResult::getSQL()const +{ + return sQL_; +} + diff --git a/adb/src/model/GetViewObjectsRequest.cc b/adb/src/model/GetViewObjectsRequest.cc new file mode 100644 index 000000000..4d695a01d --- /dev/null +++ b/adb/src/model/GetViewObjectsRequest.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::GetViewObjectsRequest; + +GetViewObjectsRequest::GetViewObjectsRequest() + : RpcServiceRequest("adb", "2021-12-01", "GetViewObjects") { + setMethod(HttpRequest::Method::Post); +} + +GetViewObjectsRequest::~GetViewObjectsRequest() {} + +long GetViewObjectsRequest::getPageNumber() const { + return pageNumber_; +} + +void GetViewObjectsRequest::setPageNumber(long pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string GetViewObjectsRequest::getRegionId() const { + return regionId_; +} + +void GetViewObjectsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +long GetViewObjectsRequest::getPageSize() const { + return pageSize_; +} + +void GetViewObjectsRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string GetViewObjectsRequest::getFilterViewName() const { + return filterViewName_; +} + +void GetViewObjectsRequest::setFilterViewName(const std::string &filterViewName) { + filterViewName_ = filterViewName; + setParameter(std::string("FilterViewName"), filterViewName); +} + +std::string GetViewObjectsRequest::getFilterViewType() const { + return filterViewType_; +} + +void GetViewObjectsRequest::setFilterViewType(const std::string &filterViewType) { + filterViewType_ = filterViewType; + setParameter(std::string("FilterViewType"), filterViewType); +} + +std::string GetViewObjectsRequest::getSchemaName() const { + return schemaName_; +} + +void GetViewObjectsRequest::setSchemaName(const std::string &schemaName) { + schemaName_ = schemaName; + setParameter(std::string("SchemaName"), schemaName); +} + +std::string GetViewObjectsRequest::getDBClusterId() const { + return dBClusterId_; +} + +void GetViewObjectsRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string GetViewObjectsRequest::getOrderBy() const { + return orderBy_; +} + +void GetViewObjectsRequest::setOrderBy(const std::string &orderBy) { + orderBy_ = orderBy; + setParameter(std::string("OrderBy"), orderBy); +} + +std::string GetViewObjectsRequest::getFilterOwner() const { + return filterOwner_; +} + +void GetViewObjectsRequest::setFilterOwner(const std::string &filterOwner) { + filterOwner_ = filterOwner; + setParameter(std::string("FilterOwner"), filterOwner); +} + diff --git a/adb/src/model/GetViewObjectsResult.cc b/adb/src/model/GetViewObjectsResult.cc new file mode 100644 index 000000000..0b8f7b376 --- /dev/null +++ b/adb/src/model/GetViewObjectsResult.cc @@ -0,0 +1,101 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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; + +GetViewObjectsResult::GetViewObjectsResult() : + ServiceResult() +{} + +GetViewObjectsResult::GetViewObjectsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetViewObjectsResult::~GetViewObjectsResult() +{} + +void GetViewObjectsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["PageNumber"].isNull()) + data_.pageNumber = std::stol(dataNode["PageNumber"].asString()); + if(!dataNode["PageSize"].isNull()) + data_.pageSize = std::stol(dataNode["PageSize"].asString()); + if(!dataNode["TotalCount"].isNull()) + data_.totalCount = std::stol(dataNode["TotalCount"].asString()); + auto allTableSummaryModelsNode = dataNode["TableSummaryModels"]["dataObject"]; + for (auto dataNodeTableSummaryModelsdataObject : allTableSummaryModelsNode) + { + Data::DataObject dataObjectObject; + if(!dataNodeTableSummaryModelsdataObject["SchemaName"].isNull()) + dataObjectObject.schemaName = dataNodeTableSummaryModelsdataObject["SchemaName"].asString(); + if(!dataNodeTableSummaryModelsdataObject["TableName"].isNull()) + dataObjectObject.tableName = dataNodeTableSummaryModelsdataObject["TableName"].asString(); + if(!dataNodeTableSummaryModelsdataObject["TableType"].isNull()) + dataObjectObject.tableType = dataNodeTableSummaryModelsdataObject["TableType"].asString(); + if(!dataNodeTableSummaryModelsdataObject["TableSize"].isNull()) + dataObjectObject.tableSize = std::stol(dataNodeTableSummaryModelsdataObject["TableSize"].asString()); + if(!dataNodeTableSummaryModelsdataObject["CreateTime"].isNull()) + dataObjectObject.createTime = dataNodeTableSummaryModelsdataObject["CreateTime"].asString(); + if(!dataNodeTableSummaryModelsdataObject["UpdateTime"].isNull()) + dataObjectObject.updateTime = dataNodeTableSummaryModelsdataObject["UpdateTime"].asString(); + if(!dataNodeTableSummaryModelsdataObject["SQL"].isNull()) + dataObjectObject.sQL = dataNodeTableSummaryModelsdataObject["SQL"].asString(); + if(!dataNodeTableSummaryModelsdataObject["Description"].isNull()) + dataObjectObject.description = dataNodeTableSummaryModelsdataObject["Description"].asString(); + if(!dataNodeTableSummaryModelsdataObject["Owner"].isNull()) + dataObjectObject.owner = dataNodeTableSummaryModelsdataObject["Owner"].asString(); + data_.tableSummaryModels.push_back(dataObjectObject); + } + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stol(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stol(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stol(value["TotalCount"].asString()); + +} + +long GetViewObjectsResult::getTotalCount()const +{ + return totalCount_; +} + +long GetViewObjectsResult::getPageSize()const +{ + return pageSize_; +} + +long GetViewObjectsResult::getPageNumber()const +{ + return pageNumber_; +} + +GetViewObjectsResult::Data GetViewObjectsResult::getData()const +{ + return data_; +} + diff --git a/adb/src/model/GrantOperatorPermissionRequest.cc b/adb/src/model/GrantOperatorPermissionRequest.cc deleted file mode 100644 index 9f4d3f75c..000000000 --- a/adb/src/model/GrantOperatorPermissionRequest.cc +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Adb::Model::GrantOperatorPermissionRequest; - -GrantOperatorPermissionRequest::GrantOperatorPermissionRequest() - : RpcServiceRequest("adb", "2019-03-15", "GrantOperatorPermission") { - setMethod(HttpRequest::Method::Post); -} - -GrantOperatorPermissionRequest::~GrantOperatorPermissionRequest() {} - -std::string GrantOperatorPermissionRequest::getPrivileges() const { - return privileges_; -} - -void GrantOperatorPermissionRequest::setPrivileges(const std::string &privileges) { - privileges_ = privileges; - setParameter(std::string("Privileges"), privileges); -} - -long GrantOperatorPermissionRequest::getResourceOwnerId() const { - return resourceOwnerId_; -} - -void GrantOperatorPermissionRequest::setResourceOwnerId(long resourceOwnerId) { - resourceOwnerId_ = resourceOwnerId; - setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); -} - -std::string GrantOperatorPermissionRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void GrantOperatorPermissionRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string GrantOperatorPermissionRequest::getResourceOwnerAccount() const { - return resourceOwnerAccount_; -} - -void GrantOperatorPermissionRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); -} - -std::string GrantOperatorPermissionRequest::getDBClusterId() const { - return dBClusterId_; -} - -void GrantOperatorPermissionRequest::setDBClusterId(const std::string &dBClusterId) { - dBClusterId_ = dBClusterId; - setParameter(std::string("DBClusterId"), dBClusterId); -} - -std::string GrantOperatorPermissionRequest::getOwnerAccount() const { - return ownerAccount_; -} - -void GrantOperatorPermissionRequest::setOwnerAccount(const std::string &ownerAccount) { - ownerAccount_ = ownerAccount; - setParameter(std::string("OwnerAccount"), ownerAccount); -} - -long GrantOperatorPermissionRequest::getOwnerId() const { - return ownerId_; -} - -void GrantOperatorPermissionRequest::setOwnerId(long ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), std::to_string(ownerId)); -} - -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 deleted file mode 100644 index a0cc030f1..000000000 --- a/adb/src/model/KillProcessRequest.cc +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Adb::Model::KillProcessRequest; - -KillProcessRequest::KillProcessRequest() - : RpcServiceRequest("adb", "2019-03-15", "KillProcess") { - setMethod(HttpRequest::Method::Post); -} - -KillProcessRequest::~KillProcessRequest() {} - -long KillProcessRequest::getResourceOwnerId() const { - return resourceOwnerId_; -} - -void KillProcessRequest::setResourceOwnerId(long resourceOwnerId) { - resourceOwnerId_ = resourceOwnerId; - setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); -} - -std::string KillProcessRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void KillProcessRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string KillProcessRequest::getResourceOwnerAccount() const { - return resourceOwnerAccount_; -} - -void KillProcessRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); -} - -std::string KillProcessRequest::getDBClusterId() const { - return dBClusterId_; -} - -void KillProcessRequest::setDBClusterId(const std::string &dBClusterId) { - dBClusterId_ = dBClusterId; - setParameter(std::string("DBClusterId"), dBClusterId); -} - -std::string KillProcessRequest::getOwnerAccount() const { - return ownerAccount_; -} - -void KillProcessRequest::setOwnerAccount(const std::string &ownerAccount) { - ownerAccount_ = ownerAccount; - setParameter(std::string("OwnerAccount"), ownerAccount); -} - -long KillProcessRequest::getOwnerId() const { - return ownerId_; -} - -void KillProcessRequest::setOwnerId(long ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), std::to_string(ownerId)); -} - -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/KillSparkAppRequest.cc b/adb/src/model/KillSparkAppRequest.cc new file mode 100644 index 000000000..99c7a033e --- /dev/null +++ b/adb/src/model/KillSparkAppRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Adb::Model::KillSparkAppRequest; + +KillSparkAppRequest::KillSparkAppRequest() + : RpcServiceRequest("adb", "2021-12-01", "KillSparkApp") { + setMethod(HttpRequest::Method::Post); +} + +KillSparkAppRequest::~KillSparkAppRequest() {} + +std::string KillSparkAppRequest::getAppId() const { + return appId_; +} + +void KillSparkAppRequest::setAppId(const std::string &appId) { + appId_ = appId; + setBodyParameter(std::string("AppId"), appId); +} + diff --git a/adb/src/model/DescribeAllAccountsResult.cc b/adb/src/model/KillSparkAppResult.cc similarity index 53% rename from adb/src/model/DescribeAllAccountsResult.cc rename to adb/src/model/KillSparkAppResult.cc index 4c4c95057..d567a3f9f 100644 --- a/adb/src/model/DescribeAllAccountsResult.cc +++ b/adb/src/model/KillSparkAppResult.cc @@ -14,44 +14,47 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Adb; using namespace AlibabaCloud::Adb::Model; -DescribeAllAccountsResult::DescribeAllAccountsResult() : +KillSparkAppResult::KillSparkAppResult() : ServiceResult() {} -DescribeAllAccountsResult::DescribeAllAccountsResult(const std::string &payload) : +KillSparkAppResult::KillSparkAppResult(const std::string &payload) : ServiceResult() { parse(payload); } -DescribeAllAccountsResult::~DescribeAllAccountsResult() +KillSparkAppResult::~KillSparkAppResult() {} -void DescribeAllAccountsResult::parse(const std::string &payload) +void KillSparkAppResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allAccountListNode = value["AccountList"]["AccountInfo"]; - for (auto valueAccountListAccountInfo : allAccountListNode) - { - AccountInfo accountListObject; - if(!valueAccountListAccountInfo["User"].isNull()) - accountListObject.user = valueAccountListAccountInfo["User"].asString(); - accountList_.push_back(accountListObject); - } + auto dataNode = value["Data"]; + if(!dataNode["AppId"].isNull()) + data_.appId = dataNode["AppId"].asString(); + if(!dataNode["AppName"].isNull()) + data_.appName = dataNode["AppName"].asString(); + if(!dataNode["Message"].isNull()) + data_.message = dataNode["Message"].asString(); + if(!dataNode["State"].isNull()) + data_.state = dataNode["State"].asString(); + if(!dataNode["DBClusterId"].isNull()) + data_.dBClusterId = dataNode["DBClusterId"].asString(); } -std::vector DescribeAllAccountsResult::getAccountList()const +KillSparkAppResult::Data KillSparkAppResult::getData()const { - return accountList_; + return data_; } diff --git a/adb/src/model/KillSparkLogAnalyzeTaskRequest.cc b/adb/src/model/KillSparkLogAnalyzeTaskRequest.cc new file mode 100644 index 000000000..5182f95d8 --- /dev/null +++ b/adb/src/model/KillSparkLogAnalyzeTaskRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Adb::Model::KillSparkLogAnalyzeTaskRequest; + +KillSparkLogAnalyzeTaskRequest::KillSparkLogAnalyzeTaskRequest() + : RpcServiceRequest("adb", "2021-12-01", "KillSparkLogAnalyzeTask") { + setMethod(HttpRequest::Method::Post); +} + +KillSparkLogAnalyzeTaskRequest::~KillSparkLogAnalyzeTaskRequest() {} + +long KillSparkLogAnalyzeTaskRequest::getTaskId() const { + return taskId_; +} + +void KillSparkLogAnalyzeTaskRequest::setTaskId(long taskId) { + taskId_ = taskId; + setBodyParameter(std::string("TaskId"), std::to_string(taskId)); +} + diff --git a/adb/src/model/KillSparkLogAnalyzeTaskResult.cc b/adb/src/model/KillSparkLogAnalyzeTaskResult.cc new file mode 100644 index 000000000..b73e8ae52 --- /dev/null +++ b/adb/src/model/KillSparkLogAnalyzeTaskResult.cc @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Adb; +using namespace AlibabaCloud::Adb::Model; + +KillSparkLogAnalyzeTaskResult::KillSparkLogAnalyzeTaskResult() : + ServiceResult() +{} + +KillSparkLogAnalyzeTaskResult::KillSparkLogAnalyzeTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +KillSparkLogAnalyzeTaskResult::~KillSparkLogAnalyzeTaskResult() +{} + +void KillSparkLogAnalyzeTaskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["TaskId"].isNull()) + data_.taskId = std::stol(dataNode["TaskId"].asString()); + if(!dataNode["UserId"].isNull()) + data_.userId = std::stol(dataNode["UserId"].asString()); + if(!dataNode["SubmittedTimeInMillis"].isNull()) + data_.submittedTimeInMillis = std::stol(dataNode["SubmittedTimeInMillis"].asString()); + if(!dataNode["TerminatedTimeInMillis"].isNull()) + data_.terminatedTimeInMillis = std::stol(dataNode["TerminatedTimeInMillis"].asString()); + if(!dataNode["TaskState"].isNull()) + data_.taskState = dataNode["TaskState"].asString(); + if(!dataNode["StartedTimeInMillis"].isNull()) + data_.startedTimeInMillis = std::stol(dataNode["StartedTimeInMillis"].asString()); + if(!dataNode["RuleMatched"].isNull()) + data_.ruleMatched = dataNode["RuleMatched"].asString() == "true"; + if(!dataNode["TaskErrMsg"].isNull()) + data_.taskErrMsg = dataNode["TaskErrMsg"].asString(); + if(!dataNode["DBClusterId"].isNull()) + data_.dBClusterId = dataNode["DBClusterId"].asString(); + auto resultNode = dataNode["Result"]; + if(!resultNode["AppErrorCode"].isNull()) + data_.result.appErrorCode = resultNode["AppErrorCode"].asString(); + if(!resultNode["AppErrorLog"].isNull()) + data_.result.appErrorLog = resultNode["AppErrorLog"].asString(); + if(!resultNode["AppErrorAdvice"].isNull()) + data_.result.appErrorAdvice = resultNode["AppErrorAdvice"].asString(); + +} + +KillSparkLogAnalyzeTaskResult::Data KillSparkLogAnalyzeTaskResult::getData()const +{ + return data_; +} + diff --git a/adb/src/model/KillSparkSQLEngineRequest.cc b/adb/src/model/KillSparkSQLEngineRequest.cc new file mode 100644 index 000000000..ed8046ddf --- /dev/null +++ b/adb/src/model/KillSparkSQLEngineRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Adb::Model::KillSparkSQLEngineRequest; + +KillSparkSQLEngineRequest::KillSparkSQLEngineRequest() + : RpcServiceRequest("adb", "2021-12-01", "KillSparkSQLEngine") { + setMethod(HttpRequest::Method::Post); +} + +KillSparkSQLEngineRequest::~KillSparkSQLEngineRequest() {} + +std::string KillSparkSQLEngineRequest::getResourceGroupName() const { + return resourceGroupName_; +} + +void KillSparkSQLEngineRequest::setResourceGroupName(const std::string &resourceGroupName) { + resourceGroupName_ = resourceGroupName; + setBodyParameter(std::string("ResourceGroupName"), resourceGroupName); +} + +std::string KillSparkSQLEngineRequest::getDBClusterId() const { + return dBClusterId_; +} + +void KillSparkSQLEngineRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setBodyParameter(std::string("DBClusterId"), dBClusterId); +} + diff --git a/adb/src/model/CreateElasticPlanResult.cc b/adb/src/model/KillSparkSQLEngineResult.cc similarity index 66% rename from adb/src/model/CreateElasticPlanResult.cc rename to adb/src/model/KillSparkSQLEngineResult.cc index 501c4ffe2..a5a798286 100644 --- a/adb/src/model/CreateElasticPlanResult.cc +++ b/adb/src/model/KillSparkSQLEngineResult.cc @@ -14,31 +14,38 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Adb; using namespace AlibabaCloud::Adb::Model; -CreateElasticPlanResult::CreateElasticPlanResult() : +KillSparkSQLEngineResult::KillSparkSQLEngineResult() : ServiceResult() {} -CreateElasticPlanResult::CreateElasticPlanResult(const std::string &payload) : +KillSparkSQLEngineResult::KillSparkSQLEngineResult(const std::string &payload) : ServiceResult() { parse(payload); } -CreateElasticPlanResult::~CreateElasticPlanResult() +KillSparkSQLEngineResult::~KillSparkSQLEngineResult() {} -void CreateElasticPlanResult::parse(const std::string &payload) +void KillSparkSQLEngineResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + if(!value["Data"].isNull()) + data_ = value["Data"].asString() == "true"; } +bool KillSparkSQLEngineResult::getData()const +{ + return data_; +} + diff --git a/adb/src/model/ListSparkAppAttemptsRequest.cc b/adb/src/model/ListSparkAppAttemptsRequest.cc new file mode 100644 index 000000000..78f02c48a --- /dev/null +++ b/adb/src/model/ListSparkAppAttemptsRequest.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::ListSparkAppAttemptsRequest; + +ListSparkAppAttemptsRequest::ListSparkAppAttemptsRequest() + : RpcServiceRequest("adb", "2021-12-01", "ListSparkAppAttempts") { + setMethod(HttpRequest::Method::Post); +} + +ListSparkAppAttemptsRequest::~ListSparkAppAttemptsRequest() {} + +std::string ListSparkAppAttemptsRequest::getOrderBy() const { + return orderBy_; +} + +void ListSparkAppAttemptsRequest::setOrderBy(const std::string &orderBy) { + orderBy_ = orderBy; + setParameter(std::string("OrderBy"), orderBy); +} + +std::string ListSparkAppAttemptsRequest::getFilters() const { + return filters_; +} + +void ListSparkAppAttemptsRequest::setFilters(const std::string &filters) { + filters_ = filters; + setParameter(std::string("Filters"), filters); +} + +long ListSparkAppAttemptsRequest::getPageNumber() const { + return pageNumber_; +} + +void ListSparkAppAttemptsRequest::setPageNumber(long pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string ListSparkAppAttemptsRequest::getAppId() const { + return appId_; +} + +void ListSparkAppAttemptsRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); +} + +long ListSparkAppAttemptsRequest::getPageSize() const { + return pageSize_; +} + +void ListSparkAppAttemptsRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + diff --git a/adb/src/model/ListSparkAppAttemptsResult.cc b/adb/src/model/ListSparkAppAttemptsResult.cc new file mode 100644 index 000000000..e11a2df78 --- /dev/null +++ b/adb/src/model/ListSparkAppAttemptsResult.cc @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Adb; +using namespace AlibabaCloud::Adb::Model; + +ListSparkAppAttemptsResult::ListSparkAppAttemptsResult() : + ServiceResult() +{} + +ListSparkAppAttemptsResult::ListSparkAppAttemptsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListSparkAppAttemptsResult::~ListSparkAppAttemptsResult() +{} + +void ListSparkAppAttemptsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["PageNumber"].isNull()) + data_.pageNumber = std::stol(dataNode["PageNumber"].asString()); + if(!dataNode["PageSize"].isNull()) + data_.pageSize = std::stol(dataNode["PageSize"].asString()); + if(!dataNode["TotalCount"].isNull()) + data_.totalCount = std::stol(dataNode["TotalCount"].asString()); + auto allAttemptInfoListNode = dataNode["AttemptInfoList"]["AttemptInfo"]; + for (auto dataNodeAttemptInfoListAttemptInfo : allAttemptInfoListNode) + { + Data::AttemptInfo attemptInfoObject; + if(!dataNodeAttemptInfoListAttemptInfo["AttemptId"].isNull()) + attemptInfoObject.attemptId = dataNodeAttemptInfoListAttemptInfo["AttemptId"].asString(); + if(!dataNodeAttemptInfoListAttemptInfo["State"].isNull()) + attemptInfoObject.state = dataNodeAttemptInfoListAttemptInfo["State"].asString(); + if(!dataNodeAttemptInfoListAttemptInfo["Message"].isNull()) + attemptInfoObject.message = dataNodeAttemptInfoListAttemptInfo["Message"].asString(); + auto detailNode = value["Detail"]; + if(!detailNode["Data"].isNull()) + attemptInfoObject.detail.data = detailNode["Data"].asString(); + if(!detailNode["EstimateExecutionCpuTimeInSeconds"].isNull()) + attemptInfoObject.detail.estimateExecutionCpuTimeInSeconds = std::stol(detailNode["EstimateExecutionCpuTimeInSeconds"].asString()); + if(!detailNode["LogRootPath"].isNull()) + attemptInfoObject.detail.logRootPath = detailNode["LogRootPath"].asString(); + if(!detailNode["LastAttemptId"].isNull()) + attemptInfoObject.detail.lastAttemptId = detailNode["LastAttemptId"].asString(); + if(!detailNode["WebUiAddress"].isNull()) + attemptInfoObject.detail.webUiAddress = detailNode["WebUiAddress"].asString(); + if(!detailNode["SubmittedTimeInMillis"].isNull()) + attemptInfoObject.detail.submittedTimeInMillis = std::stol(detailNode["SubmittedTimeInMillis"].asString()); + if(!detailNode["StartedTimeInMillis"].isNull()) + attemptInfoObject.detail.startedTimeInMillis = std::stol(detailNode["StartedTimeInMillis"].asString()); + if(!detailNode["LastUpdatedTimeInMillis"].isNull()) + attemptInfoObject.detail.lastUpdatedTimeInMillis = std::stol(detailNode["LastUpdatedTimeInMillis"].asString()); + if(!detailNode["TerminatedTimeInMillis"].isNull()) + attemptInfoObject.detail.terminatedTimeInMillis = std::stol(detailNode["TerminatedTimeInMillis"].asString()); + if(!detailNode["DBClusterId"].isNull()) + attemptInfoObject.detail.dBClusterId = detailNode["DBClusterId"].asString(); + if(!detailNode["ResourceGroupName"].isNull()) + attemptInfoObject.detail.resourceGroupName = detailNode["ResourceGroupName"].asString(); + if(!detailNode["DurationInMillis"].isNull()) + attemptInfoObject.detail.durationInMillis = std::stol(detailNode["DurationInMillis"].asString()); + data_.attemptInfoList.push_back(attemptInfoObject); + } + +} + +ListSparkAppAttemptsResult::Data ListSparkAppAttemptsResult::getData()const +{ + return data_; +} + diff --git a/adb/src/model/ListSparkAppsRequest.cc b/adb/src/model/ListSparkAppsRequest.cc new file mode 100644 index 000000000..919cb9bd4 --- /dev/null +++ b/adb/src/model/ListSparkAppsRequest.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::ListSparkAppsRequest; + +ListSparkAppsRequest::ListSparkAppsRequest() + : RpcServiceRequest("adb", "2021-12-01", "ListSparkApps") { + setMethod(HttpRequest::Method::Post); +} + +ListSparkAppsRequest::~ListSparkAppsRequest() {} + +std::string ListSparkAppsRequest::getResourceGroupName() const { + return resourceGroupName_; +} + +void ListSparkAppsRequest::setResourceGroupName(const std::string &resourceGroupName) { + resourceGroupName_ = resourceGroupName; + setParameter(std::string("ResourceGroupName"), resourceGroupName); +} + +std::string ListSparkAppsRequest::getDBClusterId() const { + return dBClusterId_; +} + +void ListSparkAppsRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string ListSparkAppsRequest::getOrderBy() const { + return orderBy_; +} + +void ListSparkAppsRequest::setOrderBy(const std::string &orderBy) { + orderBy_ = orderBy; + setParameter(std::string("OrderBy"), orderBy); +} + +std::string ListSparkAppsRequest::getFilters() const { + return filters_; +} + +void ListSparkAppsRequest::setFilters(const std::string &filters) { + filters_ = filters; + setParameter(std::string("Filters"), filters); +} + +long ListSparkAppsRequest::getPageNumber() const { + return pageNumber_; +} + +void ListSparkAppsRequest::setPageNumber(long pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +long ListSparkAppsRequest::getPageSize() const { + return pageSize_; +} + +void ListSparkAppsRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + diff --git a/adb/src/model/ListSparkAppsResult.cc b/adb/src/model/ListSparkAppsResult.cc new file mode 100644 index 000000000..53a3ef3a3 --- /dev/null +++ b/adb/src/model/ListSparkAppsResult.cc @@ -0,0 +1,118 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Adb; +using namespace AlibabaCloud::Adb::Model; + +ListSparkAppsResult::ListSparkAppsResult() : + ServiceResult() +{} + +ListSparkAppsResult::ListSparkAppsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListSparkAppsResult::~ListSparkAppsResult() +{} + +void ListSparkAppsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["PageNumber"].isNull()) + data_.pageNumber = std::stol(dataNode["PageNumber"].asString()); + if(!dataNode["PageSize"].isNull()) + data_.pageSize = std::stol(dataNode["PageSize"].asString()); + if(!dataNode["TotalCount"].isNull()) + data_.totalCount = std::stol(dataNode["TotalCount"].asString()); + auto allAppInfoListNode = dataNode["AppInfoList"]["AppInfo"]; + for (auto dataNodeAppInfoListAppInfo : allAppInfoListNode) + { + Data::AppInfo appInfoObject; + if(!dataNodeAppInfoListAppInfo["AppId"].isNull()) + appInfoObject.appId = dataNodeAppInfoListAppInfo["AppId"].asString(); + if(!dataNodeAppInfoListAppInfo["AppName"].isNull()) + appInfoObject.appName = dataNodeAppInfoListAppInfo["AppName"].asString(); + if(!dataNodeAppInfoListAppInfo["State"].isNull()) + appInfoObject.state = dataNodeAppInfoListAppInfo["State"].asString(); + if(!dataNodeAppInfoListAppInfo["Message"].isNull()) + appInfoObject.message = dataNodeAppInfoListAppInfo["Message"].asString(); + if(!dataNodeAppInfoListAppInfo["DBClusterId"].isNull()) + appInfoObject.dBClusterId = dataNodeAppInfoListAppInfo["DBClusterId"].asString(); + auto detailNode = value["Detail"]; + if(!detailNode["Data"].isNull()) + appInfoObject.detail.data = detailNode["Data"].asString(); + if(!detailNode["EstimateExecutionCpuTimeInSeconds"].isNull()) + appInfoObject.detail.estimateExecutionCpuTimeInSeconds = std::stol(detailNode["EstimateExecutionCpuTimeInSeconds"].asString()); + if(!detailNode["LogRootPath"].isNull()) + appInfoObject.detail.logRootPath = detailNode["LogRootPath"].asString(); + if(!detailNode["LastAttemptId"].isNull()) + appInfoObject.detail.lastAttemptId = detailNode["LastAttemptId"].asString(); + if(!detailNode["WebUiAddress"].isNull()) + appInfoObject.detail.webUiAddress = detailNode["WebUiAddress"].asString(); + if(!detailNode["SubmittedTimeInMillis"].isNull()) + appInfoObject.detail.submittedTimeInMillis = std::stol(detailNode["SubmittedTimeInMillis"].asString()); + if(!detailNode["StartedTimeInMillis"].isNull()) + appInfoObject.detail.startedTimeInMillis = std::stol(detailNode["StartedTimeInMillis"].asString()); + if(!detailNode["LastUpdatedTimeInMillis"].isNull()) + appInfoObject.detail.lastUpdatedTimeInMillis = std::stol(detailNode["LastUpdatedTimeInMillis"].asString()); + if(!detailNode["TerminatedTimeInMillis"].isNull()) + appInfoObject.detail.terminatedTimeInMillis = std::stol(detailNode["TerminatedTimeInMillis"].asString()); + if(!detailNode["DBClusterId"].isNull()) + appInfoObject.detail.dBClusterId = detailNode["DBClusterId"].asString(); + if(!detailNode["ResourceGroupName"].isNull()) + appInfoObject.detail.resourceGroupName = detailNode["ResourceGroupName"].asString(); + if(!detailNode["DurationInMillis"].isNull()) + appInfoObject.detail.durationInMillis = std::stol(detailNode["DurationInMillis"].asString()); + data_.appInfoList.push_back(appInfoObject); + } + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stol(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stol(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stol(value["TotalCount"].asString()); + +} + +long ListSparkAppsResult::getTotalCount()const +{ + return totalCount_; +} + +long ListSparkAppsResult::getPageSize()const +{ + return pageSize_; +} + +long ListSparkAppsResult::getPageNumber()const +{ + return pageNumber_; +} + +ListSparkAppsResult::Data ListSparkAppsResult::getData()const +{ + return data_; +} + diff --git a/adb/src/model/ListSparkLogAnalyzeTasksRequest.cc b/adb/src/model/ListSparkLogAnalyzeTasksRequest.cc new file mode 100644 index 000000000..aa2bd040e --- /dev/null +++ b/adb/src/model/ListSparkLogAnalyzeTasksRequest.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::ListSparkLogAnalyzeTasksRequest; + +ListSparkLogAnalyzeTasksRequest::ListSparkLogAnalyzeTasksRequest() + : RpcServiceRequest("adb", "2021-12-01", "ListSparkLogAnalyzeTasks") { + setMethod(HttpRequest::Method::Post); +} + +ListSparkLogAnalyzeTasksRequest::~ListSparkLogAnalyzeTasksRequest() {} + +std::string ListSparkLogAnalyzeTasksRequest::getDBClusterId() const { + return dBClusterId_; +} + +void ListSparkLogAnalyzeTasksRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setBodyParameter(std::string("DBClusterId"), dBClusterId); +} + +long ListSparkLogAnalyzeTasksRequest::getPageNumber() const { + return pageNumber_; +} + +void ListSparkLogAnalyzeTasksRequest::setPageNumber(long pageNumber) { + pageNumber_ = pageNumber; + setBodyParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +long ListSparkLogAnalyzeTasksRequest::getPageSize() const { + return pageSize_; +} + +void ListSparkLogAnalyzeTasksRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setBodyParameter(std::string("PageSize"), std::to_string(pageSize)); +} + diff --git a/adb/src/model/ListSparkLogAnalyzeTasksResult.cc b/adb/src/model/ListSparkLogAnalyzeTasksResult.cc new file mode 100644 index 000000000..873c73210 --- /dev/null +++ b/adb/src/model/ListSparkLogAnalyzeTasksResult.cc @@ -0,0 +1,87 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Adb; +using namespace AlibabaCloud::Adb::Model; + +ListSparkLogAnalyzeTasksResult::ListSparkLogAnalyzeTasksResult() : + ServiceResult() +{} + +ListSparkLogAnalyzeTasksResult::ListSparkLogAnalyzeTasksResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListSparkLogAnalyzeTasksResult::~ListSparkLogAnalyzeTasksResult() +{} + +void ListSparkLogAnalyzeTasksResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["PageNumber"].isNull()) + data_.pageNumber = std::stol(dataNode["PageNumber"].asString()); + if(!dataNode["PageSize"].isNull()) + data_.pageSize = std::stol(dataNode["PageSize"].asString()); + if(!dataNode["TotalCount"].isNull()) + data_.totalCount = std::stol(dataNode["TotalCount"].asString()); + auto allTaskListNode = dataNode["TaskList"]["Task"]; + for (auto dataNodeTaskListTask : allTaskListNode) + { + Data::Task taskObject; + if(!dataNodeTaskListTask["TaskId"].isNull()) + taskObject.taskId = std::stol(dataNodeTaskListTask["TaskId"].asString()); + if(!dataNodeTaskListTask["UserId"].isNull()) + taskObject.userId = std::stol(dataNodeTaskListTask["UserId"].asString()); + if(!dataNodeTaskListTask["SubmittedTimeInMillis"].isNull()) + taskObject.submittedTimeInMillis = std::stol(dataNodeTaskListTask["SubmittedTimeInMillis"].asString()); + if(!dataNodeTaskListTask["TerminatedTimeInMillis"].isNull()) + taskObject.terminatedTimeInMillis = std::stol(dataNodeTaskListTask["TerminatedTimeInMillis"].asString()); + if(!dataNodeTaskListTask["TaskState"].isNull()) + taskObject.taskState = dataNodeTaskListTask["TaskState"].asString(); + if(!dataNodeTaskListTask["StartedTimeInMillis"].isNull()) + taskObject.startedTimeInMillis = std::stol(dataNodeTaskListTask["StartedTimeInMillis"].asString()); + if(!dataNodeTaskListTask["RuleMatched"].isNull()) + taskObject.ruleMatched = dataNodeTaskListTask["RuleMatched"].asString() == "true"; + if(!dataNodeTaskListTask["TaskErrMsg"].isNull()) + taskObject.taskErrMsg = dataNodeTaskListTask["TaskErrMsg"].asString(); + if(!dataNodeTaskListTask["DBClusterId"].isNull()) + taskObject.dBClusterId = dataNodeTaskListTask["DBClusterId"].asString(); + auto resultNode = value["Result"]; + if(!resultNode["AppErrorCode"].isNull()) + taskObject.result.appErrorCode = resultNode["AppErrorCode"].asString(); + if(!resultNode["AppErrorLog"].isNull()) + taskObject.result.appErrorLog = resultNode["AppErrorLog"].asString(); + if(!resultNode["AppErrorAdvice"].isNull()) + taskObject.result.appErrorAdvice = resultNode["AppErrorAdvice"].asString(); + data_.taskList.push_back(taskObject); + } + +} + +ListSparkLogAnalyzeTasksResult::Data ListSparkLogAnalyzeTasksResult::getData()const +{ + return data_; +} + diff --git a/adb/src/model/ListSparkTemplateFileIdsRequest.cc b/adb/src/model/ListSparkTemplateFileIdsRequest.cc new file mode 100644 index 000000000..2f5bde7b0 --- /dev/null +++ b/adb/src/model/ListSparkTemplateFileIdsRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Adb::Model::ListSparkTemplateFileIdsRequest; + +ListSparkTemplateFileIdsRequest::ListSparkTemplateFileIdsRequest() + : RpcServiceRequest("adb", "2021-12-01", "ListSparkTemplateFileIds") { + setMethod(HttpRequest::Method::Post); +} + +ListSparkTemplateFileIdsRequest::~ListSparkTemplateFileIdsRequest() {} + +std::string ListSparkTemplateFileIdsRequest::getDBClusterId() const { + return dBClusterId_; +} + +void ListSparkTemplateFileIdsRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setBodyParameter(std::string("DBClusterId"), dBClusterId); +} + diff --git a/adb/src/model/ListSparkTemplateFileIdsResult.cc b/adb/src/model/ListSparkTemplateFileIdsResult.cc new file mode 100644 index 000000000..cce7ad5c9 --- /dev/null +++ b/adb/src/model/ListSparkTemplateFileIdsResult.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Adb; +using namespace AlibabaCloud::Adb::Model; + +ListSparkTemplateFileIdsResult::ListSparkTemplateFileIdsResult() : + ServiceResult() +{} + +ListSparkTemplateFileIdsResult::ListSparkTemplateFileIdsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListSparkTemplateFileIdsResult::~ListSparkTemplateFileIdsResult() +{} + +void ListSparkTemplateFileIdsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allData = value["Data"]["TemplateIds"]; + for (const auto &item : allData) + data_.push_back(item.asString()); + +} + +std::vector ListSparkTemplateFileIdsResult::getData()const +{ + return data_; +} + diff --git a/adb/src/model/ListTagResourcesRequest.cc b/adb/src/model/ListTagResourcesRequest.cc deleted file mode 100644 index f57ac691e..000000000 --- a/adb/src/model/ListTagResourcesRequest.cc +++ /dev/null @@ -1,121 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Adb::Model::ListTagResourcesRequest; - -ListTagResourcesRequest::ListTagResourcesRequest() - : RpcServiceRequest("adb", "2019-03-15", "ListTagResources") { - setMethod(HttpRequest::Method::Post); -} - -ListTagResourcesRequest::~ListTagResourcesRequest() {} - -long ListTagResourcesRequest::getResourceOwnerId() const { - return resourceOwnerId_; -} - -void ListTagResourcesRequest::setResourceOwnerId(long resourceOwnerId) { - resourceOwnerId_ = resourceOwnerId; - setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); -} - -std::string ListTagResourcesRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void ListTagResourcesRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string ListTagResourcesRequest::getRegionId() const { - return regionId_; -} - -void ListTagResourcesRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - -std::string ListTagResourcesRequest::getNextToken() const { - return nextToken_; -} - -void ListTagResourcesRequest::setNextToken(const std::string &nextToken) { - nextToken_ = nextToken; - setParameter(std::string("NextToken"), nextToken); -} - -std::vector ListTagResourcesRequest::getTag() const { - return tag_; -} - -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); - } -} - -std::vector ListTagResourcesRequest::getResourceId() const { - return resourceId_; -} - -void ListTagResourcesRequest::setResourceId(const std::vector &resourceId) { - resourceId_ = resourceId; -} - -std::string ListTagResourcesRequest::getResourceOwnerAccount() const { - return resourceOwnerAccount_; -} - -void ListTagResourcesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); -} - -std::string ListTagResourcesRequest::getOwnerAccount() const { - return ownerAccount_; -} - -void ListTagResourcesRequest::setOwnerAccount(const std::string &ownerAccount) { - ownerAccount_ = ownerAccount; - setParameter(std::string("OwnerAccount"), ownerAccount); -} - -long ListTagResourcesRequest::getOwnerId() const { - return ownerId_; -} - -void ListTagResourcesRequest::setOwnerId(long ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), std::to_string(ownerId)); -} - -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 deleted file mode 100644 index 8eef4ad13..000000000 --- a/adb/src/model/ListTagResourcesResult.cc +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Adb; -using namespace AlibabaCloud::Adb::Model; - -ListTagResourcesResult::ListTagResourcesResult() : - ServiceResult() -{} - -ListTagResourcesResult::ListTagResourcesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListTagResourcesResult::~ListTagResourcesResult() -{} - -void ListTagResourcesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allTagResourcesNode = value["TagResources"]["TagResource"]; - for (auto valueTagResourcesTagResource : allTagResourcesNode) - { - TagResource tagResourcesObject; - if(!valueTagResourcesTagResource["ResourceType"].isNull()) - tagResourcesObject.resourceType = valueTagResourcesTagResource["ResourceType"].asString(); - if(!valueTagResourcesTagResource["TagValue"].isNull()) - tagResourcesObject.tagValue = valueTagResourcesTagResource["TagValue"].asString(); - if(!valueTagResourcesTagResource["ResourceId"].isNull()) - tagResourcesObject.resourceId = valueTagResourcesTagResource["ResourceId"].asString(); - if(!valueTagResourcesTagResource["TagKey"].isNull()) - tagResourcesObject.tagKey = valueTagResourcesTagResource["TagKey"].asString(); - tagResources_.push_back(tagResourcesObject); - } - if(!value["NextToken"].isNull()) - nextToken_ = value["NextToken"].asString(); - -} - -std::string ListTagResourcesResult::getNextToken()const -{ - return nextToken_; -} - -std::vector ListTagResourcesResult::getTagResources()const -{ - return tagResources_; -} - diff --git a/adb/src/model/ModifyAccountDescriptionRequest.cc b/adb/src/model/ModifyAccountDescriptionRequest.cc index f50b2c002..37355b498 100644 --- a/adb/src/model/ModifyAccountDescriptionRequest.cc +++ b/adb/src/model/ModifyAccountDescriptionRequest.cc @@ -19,19 +19,19 @@ using AlibabaCloud::Adb::Model::ModifyAccountDescriptionRequest; ModifyAccountDescriptionRequest::ModifyAccountDescriptionRequest() - : RpcServiceRequest("adb", "2019-03-15", "ModifyAccountDescription") { + : RpcServiceRequest("adb", "2021-12-01", "ModifyAccountDescription") { setMethod(HttpRequest::Method::Post); } ModifyAccountDescriptionRequest::~ModifyAccountDescriptionRequest() {} -long ModifyAccountDescriptionRequest::getResourceOwnerId() const { - return resourceOwnerId_; +std::string ModifyAccountDescriptionRequest::getDBClusterId() const { + return dBClusterId_; } -void ModifyAccountDescriptionRequest::setResourceOwnerId(long resourceOwnerId) { - resourceOwnerId_ = resourceOwnerId; - setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +void ModifyAccountDescriptionRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); } std::string ModifyAccountDescriptionRequest::getAccountDescription() const { @@ -61,39 +61,3 @@ void ModifyAccountDescriptionRequest::setAccountName(const std::string &accountN setParameter(std::string("AccountName"), accountName); } -std::string ModifyAccountDescriptionRequest::getResourceOwnerAccount() const { - return resourceOwnerAccount_; -} - -void ModifyAccountDescriptionRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); -} - -std::string ModifyAccountDescriptionRequest::getDBClusterId() const { - return dBClusterId_; -} - -void ModifyAccountDescriptionRequest::setDBClusterId(const std::string &dBClusterId) { - dBClusterId_ = dBClusterId; - setParameter(std::string("DBClusterId"), dBClusterId); -} - -std::string ModifyAccountDescriptionRequest::getOwnerAccount() const { - return ownerAccount_; -} - -void ModifyAccountDescriptionRequest::setOwnerAccount(const std::string &ownerAccount) { - ownerAccount_ = ownerAccount; - setParameter(std::string("OwnerAccount"), ownerAccount); -} - -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 4cbfc2328..dc9bd84ed 100644 --- a/adb/src/model/ModifyAuditLogConfigRequest.cc +++ b/adb/src/model/ModifyAuditLogConfigRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Adb::Model::ModifyAuditLogConfigRequest; ModifyAuditLogConfigRequest::ModifyAuditLogConfigRequest() - : RpcServiceRequest("adb", "2019-03-15", "ModifyAuditLogConfig") { + : RpcServiceRequest("adb", "2021-12-01", "ModifyAuditLogConfig") { setMethod(HttpRequest::Method::Post); } diff --git a/adb/src/model/ModifyAutoRenewAttributeRequest.cc b/adb/src/model/ModifyAutoRenewAttributeRequest.cc deleted file mode 100644 index b83583f42..000000000 --- a/adb/src/model/ModifyAutoRenewAttributeRequest.cc +++ /dev/null @@ -1,117 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Adb::Model::ModifyAutoRenewAttributeRequest; - -ModifyAutoRenewAttributeRequest::ModifyAutoRenewAttributeRequest() - : RpcServiceRequest("adb", "2019-03-15", "ModifyAutoRenewAttribute") { - setMethod(HttpRequest::Method::Post); -} - -ModifyAutoRenewAttributeRequest::~ModifyAutoRenewAttributeRequest() {} - -long ModifyAutoRenewAttributeRequest::getResourceOwnerId() const { - return resourceOwnerId_; -} - -void ModifyAutoRenewAttributeRequest::setResourceOwnerId(long resourceOwnerId) { - resourceOwnerId_ = resourceOwnerId; - setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); -} - -std::string ModifyAutoRenewAttributeRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void ModifyAutoRenewAttributeRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string ModifyAutoRenewAttributeRequest::getDuration() const { - return duration_; -} - -void ModifyAutoRenewAttributeRequest::setDuration(const std::string &duration) { - duration_ = duration; - setParameter(std::string("Duration"), duration); -} - -std::string ModifyAutoRenewAttributeRequest::getRegionId() const { - return regionId_; -} - -void ModifyAutoRenewAttributeRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - -std::string ModifyAutoRenewAttributeRequest::getRenewalStatus() const { - return renewalStatus_; -} - -void ModifyAutoRenewAttributeRequest::setRenewalStatus(const std::string &renewalStatus) { - renewalStatus_ = renewalStatus; - setParameter(std::string("RenewalStatus"), renewalStatus); -} - -std::string ModifyAutoRenewAttributeRequest::getResourceOwnerAccount() const { - return resourceOwnerAccount_; -} - -void ModifyAutoRenewAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); -} - -std::string ModifyAutoRenewAttributeRequest::getDBClusterId() const { - return dBClusterId_; -} - -void ModifyAutoRenewAttributeRequest::setDBClusterId(const std::string &dBClusterId) { - dBClusterId_ = dBClusterId; - setParameter(std::string("DBClusterId"), dBClusterId); -} - -std::string ModifyAutoRenewAttributeRequest::getOwnerAccount() const { - return ownerAccount_; -} - -void ModifyAutoRenewAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { - ownerAccount_ = ownerAccount; - setParameter(std::string("OwnerAccount"), ownerAccount); -} - -long ModifyAutoRenewAttributeRequest::getOwnerId() const { - return ownerId_; -} - -void ModifyAutoRenewAttributeRequest::setOwnerId(long ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), std::to_string(ownerId)); -} - -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 1d4fbf1d1..99ca69638 100644 --- a/adb/src/model/ModifyBackupPolicyRequest.cc +++ b/adb/src/model/ModifyBackupPolicyRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Adb::Model::ModifyBackupPolicyRequest; ModifyBackupPolicyRequest::ModifyBackupPolicyRequest() - : RpcServiceRequest("adb", "2019-03-15", "ModifyBackupPolicy") { + : RpcServiceRequest("adb", "2021-12-01", "ModifyBackupPolicy") { setMethod(HttpRequest::Method::Post); } diff --git a/adb/src/model/ModifyClusterAccessWhiteListRequest.cc b/adb/src/model/ModifyClusterAccessWhiteListRequest.cc new file mode 100644 index 000000000..559d24ebb --- /dev/null +++ b/adb/src/model/ModifyClusterAccessWhiteListRequest.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::ModifyClusterAccessWhiteListRequest; + +ModifyClusterAccessWhiteListRequest::ModifyClusterAccessWhiteListRequest() + : RpcServiceRequest("adb", "2021-12-01", "ModifyClusterAccessWhiteList") { + setMethod(HttpRequest::Method::Post); +} + +ModifyClusterAccessWhiteListRequest::~ModifyClusterAccessWhiteListRequest() {} + +std::string ModifyClusterAccessWhiteListRequest::getSecurityIps() const { + return securityIps_; +} + +void ModifyClusterAccessWhiteListRequest::setSecurityIps(const std::string &securityIps) { + securityIps_ = securityIps; + setParameter(std::string("SecurityIps"), securityIps); +} + +std::string ModifyClusterAccessWhiteListRequest::getDBClusterIPArrayAttribute() const { + return dBClusterIPArrayAttribute_; +} + +void ModifyClusterAccessWhiteListRequest::setDBClusterIPArrayAttribute(const std::string &dBClusterIPArrayAttribute) { + dBClusterIPArrayAttribute_ = dBClusterIPArrayAttribute; + setParameter(std::string("DBClusterIPArrayAttribute"), dBClusterIPArrayAttribute); +} + +std::string ModifyClusterAccessWhiteListRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ModifyClusterAccessWhiteListRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string ModifyClusterAccessWhiteListRequest::getModifyMode() const { + return modifyMode_; +} + +void ModifyClusterAccessWhiteListRequest::setModifyMode(const std::string &modifyMode) { + modifyMode_ = modifyMode; + setParameter(std::string("ModifyMode"), modifyMode); +} + +std::string ModifyClusterAccessWhiteListRequest::getDBClusterId() const { + return dBClusterId_; +} + +void ModifyClusterAccessWhiteListRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string ModifyClusterAccessWhiteListRequest::getDBClusterIPArrayName() const { + return dBClusterIPArrayName_; +} + +void ModifyClusterAccessWhiteListRequest::setDBClusterIPArrayName(const std::string &dBClusterIPArrayName) { + dBClusterIPArrayName_ = dBClusterIPArrayName; + setParameter(std::string("DBClusterIPArrayName"), dBClusterIPArrayName); +} + diff --git a/adb/src/model/ModifyDBClusterAccessWhiteListResult.cc b/adb/src/model/ModifyClusterAccessWhiteListResult.cc similarity index 67% rename from adb/src/model/ModifyDBClusterAccessWhiteListResult.cc rename to adb/src/model/ModifyClusterAccessWhiteListResult.cc index 213a6a911..1c4d706b7 100644 --- a/adb/src/model/ModifyDBClusterAccessWhiteListResult.cc +++ b/adb/src/model/ModifyClusterAccessWhiteListResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Adb; using namespace AlibabaCloud::Adb::Model; -ModifyDBClusterAccessWhiteListResult::ModifyDBClusterAccessWhiteListResult() : +ModifyClusterAccessWhiteListResult::ModifyClusterAccessWhiteListResult() : ServiceResult() {} -ModifyDBClusterAccessWhiteListResult::ModifyDBClusterAccessWhiteListResult(const std::string &payload) : +ModifyClusterAccessWhiteListResult::ModifyClusterAccessWhiteListResult(const std::string &payload) : ServiceResult() { parse(payload); } -ModifyDBClusterAccessWhiteListResult::~ModifyDBClusterAccessWhiteListResult() +ModifyClusterAccessWhiteListResult::~ModifyClusterAccessWhiteListResult() {} -void ModifyDBClusterAccessWhiteListResult::parse(const std::string &payload) +void ModifyClusterAccessWhiteListResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; @@ -46,12 +46,12 @@ void ModifyDBClusterAccessWhiteListResult::parse(const std::string &payload) } -int ModifyDBClusterAccessWhiteListResult::getTaskId()const +int ModifyClusterAccessWhiteListResult::getTaskId()const { return taskId_; } -std::string ModifyDBClusterAccessWhiteListResult::getDBClusterId()const +std::string ModifyClusterAccessWhiteListResult::getDBClusterId()const { return dBClusterId_; } diff --git a/adb/src/model/ModifyClusterConnectionStringRequest.cc b/adb/src/model/ModifyClusterConnectionStringRequest.cc index 5073e305a..a6fb6c6ce 100644 --- a/adb/src/model/ModifyClusterConnectionStringRequest.cc +++ b/adb/src/model/ModifyClusterConnectionStringRequest.cc @@ -19,21 +19,12 @@ using AlibabaCloud::Adb::Model::ModifyClusterConnectionStringRequest; ModifyClusterConnectionStringRequest::ModifyClusterConnectionStringRequest() - : RpcServiceRequest("adb", "2019-03-15", "ModifyClusterConnectionString") { + : RpcServiceRequest("adb", "2021-12-01", "ModifyClusterConnectionString") { setMethod(HttpRequest::Method::Post); } ModifyClusterConnectionStringRequest::~ModifyClusterConnectionStringRequest() {} -long ModifyClusterConnectionStringRequest::getResourceOwnerId() const { - return resourceOwnerId_; -} - -void ModifyClusterConnectionStringRequest::setResourceOwnerId(long resourceOwnerId) { - resourceOwnerId_ = resourceOwnerId; - setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); -} - std::string ModifyClusterConnectionStringRequest::getConnectionStringPrefix() const { return connectionStringPrefix_; } @@ -52,15 +43,6 @@ void ModifyClusterConnectionStringRequest::setAccessKeyId(const std::string &acc setParameter(std::string("AccessKeyId"), accessKeyId); } -std::string ModifyClusterConnectionStringRequest::getResourceOwnerAccount() const { - return resourceOwnerAccount_; -} - -void ModifyClusterConnectionStringRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); -} - std::string ModifyClusterConnectionStringRequest::getDBClusterId() const { return dBClusterId_; } @@ -70,24 +52,6 @@ void ModifyClusterConnectionStringRequest::setDBClusterId(const std::string &dBC setParameter(std::string("DBClusterId"), dBClusterId); } -std::string ModifyClusterConnectionStringRequest::getOwnerAccount() const { - return ownerAccount_; -} - -void ModifyClusterConnectionStringRequest::setOwnerAccount(const std::string &ownerAccount) { - ownerAccount_ = ownerAccount; - setParameter(std::string("OwnerAccount"), ownerAccount); -} - -long ModifyClusterConnectionStringRequest::getOwnerId() const { - return ownerId_; -} - -void ModifyClusterConnectionStringRequest::setOwnerId(long ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), std::to_string(ownerId)); -} - std::string ModifyClusterConnectionStringRequest::getCurrentConnectionString() const { return currentConnectionString_; } diff --git a/adb/src/model/ModifyDBClusterAccessWhiteListRequest.cc b/adb/src/model/ModifyDBClusterAccessWhiteListRequest.cc deleted file mode 100644 index 809b8fac6..000000000 --- a/adb/src/model/ModifyDBClusterAccessWhiteListRequest.cc +++ /dev/null @@ -1,117 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Adb::Model::ModifyDBClusterAccessWhiteListRequest; - -ModifyDBClusterAccessWhiteListRequest::ModifyDBClusterAccessWhiteListRequest() - : RpcServiceRequest("adb", "2019-03-15", "ModifyDBClusterAccessWhiteList") { - setMethod(HttpRequest::Method::Post); -} - -ModifyDBClusterAccessWhiteListRequest::~ModifyDBClusterAccessWhiteListRequest() {} - -long ModifyDBClusterAccessWhiteListRequest::getResourceOwnerId() const { - return resourceOwnerId_; -} - -void ModifyDBClusterAccessWhiteListRequest::setResourceOwnerId(long resourceOwnerId) { - resourceOwnerId_ = resourceOwnerId; - setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); -} - -std::string ModifyDBClusterAccessWhiteListRequest::getSecurityIps() const { - return securityIps_; -} - -void ModifyDBClusterAccessWhiteListRequest::setSecurityIps(const std::string &securityIps) { - securityIps_ = securityIps; - setParameter(std::string("SecurityIps"), securityIps); -} - -std::string ModifyDBClusterAccessWhiteListRequest::getDBClusterIPArrayAttribute() const { - return dBClusterIPArrayAttribute_; -} - -void ModifyDBClusterAccessWhiteListRequest::setDBClusterIPArrayAttribute(const std::string &dBClusterIPArrayAttribute) { - dBClusterIPArrayAttribute_ = dBClusterIPArrayAttribute; - setParameter(std::string("DBClusterIPArrayAttribute"), dBClusterIPArrayAttribute); -} - -std::string ModifyDBClusterAccessWhiteListRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void ModifyDBClusterAccessWhiteListRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string ModifyDBClusterAccessWhiteListRequest::getModifyMode() const { - return modifyMode_; -} - -void ModifyDBClusterAccessWhiteListRequest::setModifyMode(const std::string &modifyMode) { - modifyMode_ = modifyMode; - setParameter(std::string("ModifyMode"), modifyMode); -} - -std::string ModifyDBClusterAccessWhiteListRequest::getResourceOwnerAccount() const { - return resourceOwnerAccount_; -} - -void ModifyDBClusterAccessWhiteListRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); -} - -std::string ModifyDBClusterAccessWhiteListRequest::getDBClusterId() const { - return dBClusterId_; -} - -void ModifyDBClusterAccessWhiteListRequest::setDBClusterId(const std::string &dBClusterId) { - dBClusterId_ = dBClusterId; - setParameter(std::string("DBClusterId"), dBClusterId); -} - -std::string ModifyDBClusterAccessWhiteListRequest::getOwnerAccount() const { - return ownerAccount_; -} - -void ModifyDBClusterAccessWhiteListRequest::setOwnerAccount(const std::string &ownerAccount) { - ownerAccount_ = ownerAccount; - setParameter(std::string("OwnerAccount"), ownerAccount); -} - -long ModifyDBClusterAccessWhiteListRequest::getOwnerId() const { - return ownerId_; -} - -void ModifyDBClusterAccessWhiteListRequest::setOwnerId(long ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), std::to_string(ownerId)); -} - -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/ModifyDBClusterDescriptionRequest.cc b/adb/src/model/ModifyDBClusterDescriptionRequest.cc index e89014d07..76de30402 100644 --- a/adb/src/model/ModifyDBClusterDescriptionRequest.cc +++ b/adb/src/model/ModifyDBClusterDescriptionRequest.cc @@ -19,21 +19,12 @@ using AlibabaCloud::Adb::Model::ModifyDBClusterDescriptionRequest; ModifyDBClusterDescriptionRequest::ModifyDBClusterDescriptionRequest() - : RpcServiceRequest("adb", "2019-03-15", "ModifyDBClusterDescription") { + : RpcServiceRequest("adb", "2021-12-01", "ModifyDBClusterDescription") { setMethod(HttpRequest::Method::Post); } ModifyDBClusterDescriptionRequest::~ModifyDBClusterDescriptionRequest() {} -long ModifyDBClusterDescriptionRequest::getResourceOwnerId() const { - return resourceOwnerId_; -} - -void ModifyDBClusterDescriptionRequest::setResourceOwnerId(long resourceOwnerId) { - resourceOwnerId_ = resourceOwnerId; - setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); -} - std::string ModifyDBClusterDescriptionRequest::getDBClusterDescription() const { return dBClusterDescription_; } @@ -43,24 +34,6 @@ void ModifyDBClusterDescriptionRequest::setDBClusterDescription(const std::strin setParameter(std::string("DBClusterDescription"), dBClusterDescription); } -std::string ModifyDBClusterDescriptionRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void ModifyDBClusterDescriptionRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string ModifyDBClusterDescriptionRequest::getResourceOwnerAccount() const { - return resourceOwnerAccount_; -} - -void ModifyDBClusterDescriptionRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); -} - std::string ModifyDBClusterDescriptionRequest::getDBClusterId() const { return dBClusterId_; } @@ -70,21 +43,12 @@ void ModifyDBClusterDescriptionRequest::setDBClusterId(const std::string &dBClus setParameter(std::string("DBClusterId"), dBClusterId); } -std::string ModifyDBClusterDescriptionRequest::getOwnerAccount() const { - return ownerAccount_; +std::string ModifyDBClusterDescriptionRequest::getAccessKeyId() const { + return accessKeyId_; } -void ModifyDBClusterDescriptionRequest::setOwnerAccount(const std::string &ownerAccount) { - ownerAccount_ = ownerAccount; - setParameter(std::string("OwnerAccount"), ownerAccount); -} - -long ModifyDBClusterDescriptionRequest::getOwnerId() const { - return ownerId_; -} - -void ModifyDBClusterDescriptionRequest::setOwnerId(long ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), std::to_string(ownerId)); +void ModifyDBClusterDescriptionRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/adb/src/model/ModifyDBClusterMaintainTimeRequest.cc b/adb/src/model/ModifyDBClusterMaintainTimeRequest.cc index 6848a0dd9..3df09e226 100644 --- a/adb/src/model/ModifyDBClusterMaintainTimeRequest.cc +++ b/adb/src/model/ModifyDBClusterMaintainTimeRequest.cc @@ -19,19 +19,19 @@ using AlibabaCloud::Adb::Model::ModifyDBClusterMaintainTimeRequest; ModifyDBClusterMaintainTimeRequest::ModifyDBClusterMaintainTimeRequest() - : RpcServiceRequest("adb", "2019-03-15", "ModifyDBClusterMaintainTime") { + : RpcServiceRequest("adb", "2021-12-01", "ModifyDBClusterMaintainTime") { setMethod(HttpRequest::Method::Post); } ModifyDBClusterMaintainTimeRequest::~ModifyDBClusterMaintainTimeRequest() {} -long ModifyDBClusterMaintainTimeRequest::getResourceOwnerId() const { - return resourceOwnerId_; +std::string ModifyDBClusterMaintainTimeRequest::getDBClusterId() const { + return dBClusterId_; } -void ModifyDBClusterMaintainTimeRequest::setResourceOwnerId(long resourceOwnerId) { - resourceOwnerId_ = resourceOwnerId; - setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +void ModifyDBClusterMaintainTimeRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); } std::string ModifyDBClusterMaintainTimeRequest::getAccessKeyId() const { @@ -52,39 +52,3 @@ void ModifyDBClusterMaintainTimeRequest::setMaintainTime(const std::string &main setParameter(std::string("MaintainTime"), maintainTime); } -std::string ModifyDBClusterMaintainTimeRequest::getResourceOwnerAccount() const { - return resourceOwnerAccount_; -} - -void ModifyDBClusterMaintainTimeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); -} - -std::string ModifyDBClusterMaintainTimeRequest::getDBClusterId() const { - return dBClusterId_; -} - -void ModifyDBClusterMaintainTimeRequest::setDBClusterId(const std::string &dBClusterId) { - dBClusterId_ = dBClusterId; - setParameter(std::string("DBClusterId"), dBClusterId); -} - -std::string ModifyDBClusterMaintainTimeRequest::getOwnerAccount() const { - return ownerAccount_; -} - -void ModifyDBClusterMaintainTimeRequest::setOwnerAccount(const std::string &ownerAccount) { - ownerAccount_ = ownerAccount; - setParameter(std::string("OwnerAccount"), ownerAccount); -} - -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 deleted file mode 100644 index d77be8390..000000000 --- a/adb/src/model/ModifyDBClusterPayTypeRequest.cc +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::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/ModifyDBClusterRequest.cc b/adb/src/model/ModifyDBClusterRequest.cc index 1e2857da3..de65deb5e 100644 --- a/adb/src/model/ModifyDBClusterRequest.cc +++ b/adb/src/model/ModifyDBClusterRequest.cc @@ -19,39 +19,12 @@ using AlibabaCloud::Adb::Model::ModifyDBClusterRequest; ModifyDBClusterRequest::ModifyDBClusterRequest() - : RpcServiceRequest("adb", "2019-03-15", "ModifyDBCluster") { + : RpcServiceRequest("adb", "2021-12-01", "ModifyDBCluster") { setMethod(HttpRequest::Method::Post); } ModifyDBClusterRequest::~ModifyDBClusterRequest() {} -long ModifyDBClusterRequest::getResourceOwnerId() const { - return resourceOwnerId_; -} - -void ModifyDBClusterRequest::setResourceOwnerId(long resourceOwnerId) { - resourceOwnerId_ = resourceOwnerId; - setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); -} - -std::string ModifyDBClusterRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void ModifyDBClusterRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string ModifyDBClusterRequest::getMode() const { - return mode_; -} - -void ModifyDBClusterRequest::setMode(const std::string &mode) { - mode_ = mode; - setParameter(std::string("Mode"), mode); -} - std::string ModifyDBClusterRequest::getStorageResource() const { return storageResource_; } @@ -61,15 +34,6 @@ void ModifyDBClusterRequest::setStorageResource(const std::string &storageResour setParameter(std::string("StorageResource"), storageResource); } -std::string ModifyDBClusterRequest::getDBNodeClass() const { - return dBNodeClass_; -} - -void ModifyDBClusterRequest::setDBNodeClass(const std::string &dBNodeClass) { - dBNodeClass_ = dBNodeClass; - setParameter(std::string("DBNodeClass"), dBNodeClass); -} - std::string ModifyDBClusterRequest::getRegionId() const { return regionId_; } @@ -79,15 +43,6 @@ void ModifyDBClusterRequest::setRegionId(const std::string ®ionId) { setParameter(std::string("RegionId"), regionId); } -std::string ModifyDBClusterRequest::getDBClusterCategory() const { - return dBClusterCategory_; -} - -void ModifyDBClusterRequest::setDBClusterCategory(const std::string &dBClusterCategory) { - dBClusterCategory_ = dBClusterCategory; - setParameter(std::string("DBClusterCategory"), dBClusterCategory); -} - std::string ModifyDBClusterRequest::getResourceOwnerAccount() const { return resourceOwnerAccount_; } @@ -124,42 +79,6 @@ void ModifyDBClusterRequest::setOwnerId(long ownerId) { setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -std::string ModifyDBClusterRequest::getDBNodeGroupCount() const { - return dBNodeGroupCount_; -} - -void ModifyDBClusterRequest::setDBNodeGroupCount(const std::string &dBNodeGroupCount) { - dBNodeGroupCount_ = dBNodeGroupCount; - setParameter(std::string("DBNodeGroupCount"), dBNodeGroupCount); -} - -std::string ModifyDBClusterRequest::getDBNodeStorage() const { - return dBNodeStorage_; -} - -void ModifyDBClusterRequest::setDBNodeStorage(const std::string &dBNodeStorage) { - dBNodeStorage_ = dBNodeStorage; - setParameter(std::string("DBNodeStorage"), dBNodeStorage); -} - -std::string ModifyDBClusterRequest::getExecutorCount() const { - return executorCount_; -} - -void ModifyDBClusterRequest::setExecutorCount(const std::string &executorCount) { - executorCount_ = executorCount; - setParameter(std::string("ExecutorCount"), executorCount); -} - -std::string ModifyDBClusterRequest::getModifyType() const { - return modifyType_; -} - -void ModifyDBClusterRequest::setModifyType(const std::string &modifyType) { - modifyType_ = modifyType; - setParameter(std::string("ModifyType"), modifyType); -} - std::string ModifyDBClusterRequest::getComputeResource() const { return computeResource_; } @@ -169,12 +88,3 @@ void ModifyDBClusterRequest::setComputeResource(const std::string &computeResour setParameter(std::string("ComputeResource"), computeResource); } -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 deleted file mode 100644 index cc566bd8d..000000000 --- a/adb/src/model/ModifyDBClusterResourceGroupRequest.cc +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Adb::Model::ModifyDBClusterResourceGroupRequest; - -ModifyDBClusterResourceGroupRequest::ModifyDBClusterResourceGroupRequest() - : RpcServiceRequest("adb", "2019-03-15", "ModifyDBClusterResourceGroup") { - setMethod(HttpRequest::Method::Post); -} - -ModifyDBClusterResourceGroupRequest::~ModifyDBClusterResourceGroupRequest() {} - -long ModifyDBClusterResourceGroupRequest::getResourceOwnerId() const { - return resourceOwnerId_; -} - -void ModifyDBClusterResourceGroupRequest::setResourceOwnerId(long resourceOwnerId) { - resourceOwnerId_ = resourceOwnerId; - setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); -} - -std::string ModifyDBClusterResourceGroupRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void ModifyDBClusterResourceGroupRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string ModifyDBClusterResourceGroupRequest::getResourceOwnerAccount() const { - return resourceOwnerAccount_; -} - -void ModifyDBClusterResourceGroupRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); -} - -std::string ModifyDBClusterResourceGroupRequest::getDBClusterId() const { - return dBClusterId_; -} - -void ModifyDBClusterResourceGroupRequest::setDBClusterId(const std::string &dBClusterId) { - dBClusterId_ = dBClusterId; - setParameter(std::string("DBClusterId"), dBClusterId); -} - -std::string ModifyDBClusterResourceGroupRequest::getOwnerAccount() const { - return ownerAccount_; -} - -void ModifyDBClusterResourceGroupRequest::setOwnerAccount(const std::string &ownerAccount) { - ownerAccount_ = ownerAccount; - setParameter(std::string("OwnerAccount"), ownerAccount); -} - -long ModifyDBClusterResourceGroupRequest::getOwnerId() const { - return ownerId_; -} - -void ModifyDBClusterResourceGroupRequest::setOwnerId(long ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), std::to_string(ownerId)); -} - -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/ModifyDBClusterResourceGroupResult.cc b/adb/src/model/ModifyDBClusterResourceGroupResult.cc deleted file mode 100644 index 46968f8d9..000000000 --- a/adb/src/model/ModifyDBClusterResourceGroupResult.cc +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Adb; -using namespace AlibabaCloud::Adb::Model; - -ModifyDBClusterResourceGroupResult::ModifyDBClusterResourceGroupResult() : - ServiceResult() -{} - -ModifyDBClusterResourceGroupResult::ModifyDBClusterResourceGroupResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyDBClusterResourceGroupResult::~ModifyDBClusterResourceGroupResult() -{} - -void ModifyDBClusterResourceGroupResult::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/ModifyDBResourceGroupRequest.cc b/adb/src/model/ModifyDBResourceGroupRequest.cc index 5056cd589..81919d059 100644 --- a/adb/src/model/ModifyDBResourceGroupRequest.cc +++ b/adb/src/model/ModifyDBResourceGroupRequest.cc @@ -19,28 +19,37 @@ using AlibabaCloud::Adb::Model::ModifyDBResourceGroupRequest; ModifyDBResourceGroupRequest::ModifyDBResourceGroupRequest() - : RpcServiceRequest("adb", "2019-03-15", "ModifyDBResourceGroup") { + : RpcServiceRequest("adb", "2021-12-01", "ModifyDBResourceGroup") { setMethod(HttpRequest::Method::Post); } ModifyDBResourceGroupRequest::~ModifyDBResourceGroupRequest() {} -long ModifyDBResourceGroupRequest::getResourceOwnerId() const { - return resourceOwnerId_; +std::string ModifyDBResourceGroupRequest::getDBClusterId() const { + return dBClusterId_; } -void ModifyDBResourceGroupRequest::setResourceOwnerId(long resourceOwnerId) { - resourceOwnerId_ = resourceOwnerId; - setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +void ModifyDBResourceGroupRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); } -int ModifyDBResourceGroupRequest::getNodeNum() const { - return nodeNum_; +std::string ModifyDBResourceGroupRequest::getMinComputeResource() const { + return minComputeResource_; } -void ModifyDBResourceGroupRequest::setNodeNum(int nodeNum) { - nodeNum_ = nodeNum; - setParameter(std::string("NodeNum"), std::to_string(nodeNum)); +void ModifyDBResourceGroupRequest::setMinComputeResource(const std::string &minComputeResource) { + minComputeResource_ = minComputeResource; + setParameter(std::string("MinComputeResource"), minComputeResource); +} + +std::string ModifyDBResourceGroupRequest::getGroupName() const { + return groupName_; +} + +void ModifyDBResourceGroupRequest::setGroupName(const std::string &groupName) { + groupName_ = groupName; + setParameter(std::string("GroupName"), groupName); } std::string ModifyDBResourceGroupRequest::getAccessKeyId() const { @@ -61,48 +70,12 @@ void ModifyDBResourceGroupRequest::setGroupType(const std::string &groupType) { setParameter(std::string("GroupType"), groupType); } -std::string ModifyDBResourceGroupRequest::getResourceOwnerAccount() const { - return resourceOwnerAccount_; +std::string ModifyDBResourceGroupRequest::getMaxComputeResource() const { + return maxComputeResource_; } -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); +void ModifyDBResourceGroupRequest::setMaxComputeResource(const std::string &maxComputeResource) { + maxComputeResource_ = maxComputeResource; + setParameter(std::string("MaxComputeResource"), maxComputeResource); } diff --git a/adb/src/model/ModifyDBResourcePoolRequest.cc b/adb/src/model/ModifyDBResourcePoolRequest.cc deleted file mode 100644 index b264445fd..000000000 --- a/adb/src/model/ModifyDBResourcePoolRequest.cc +++ /dev/null @@ -1,108 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Adb::Model::ModifyDBResourcePoolRequest; - -ModifyDBResourcePoolRequest::ModifyDBResourcePoolRequest() - : RpcServiceRequest("adb", "2019-03-15", "ModifyDBResourcePool") { - setMethod(HttpRequest::Method::Post); -} - -ModifyDBResourcePoolRequest::~ModifyDBResourcePoolRequest() {} - -std::string ModifyDBResourcePoolRequest::getPoolName() const { - return poolName_; -} - -void ModifyDBResourcePoolRequest::setPoolName(const std::string &poolName) { - poolName_ = poolName; - setParameter(std::string("PoolName"), poolName); -} - -long ModifyDBResourcePoolRequest::getResourceOwnerId() const { - return resourceOwnerId_; -} - -void ModifyDBResourcePoolRequest::setResourceOwnerId(long resourceOwnerId) { - resourceOwnerId_ = resourceOwnerId; - setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); -} - -int ModifyDBResourcePoolRequest::getNodeNum() const { - return nodeNum_; -} - -void ModifyDBResourcePoolRequest::setNodeNum(int nodeNum) { - nodeNum_ = nodeNum; - setParameter(std::string("NodeNum"), std::to_string(nodeNum)); -} - -std::string ModifyDBResourcePoolRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void ModifyDBResourcePoolRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string ModifyDBResourcePoolRequest::getQueryType() const { - return queryType_; -} - -void ModifyDBResourcePoolRequest::setQueryType(const std::string &queryType) { - queryType_ = queryType; - setParameter(std::string("QueryType"), queryType); -} - -std::string ModifyDBResourcePoolRequest::getResourceOwnerAccount() const { - return resourceOwnerAccount_; -} - -void ModifyDBResourcePoolRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); -} - -std::string ModifyDBResourcePoolRequest::getDBClusterId() const { - return dBClusterId_; -} - -void ModifyDBResourcePoolRequest::setDBClusterId(const std::string &dBClusterId) { - dBClusterId_ = dBClusterId; - setParameter(std::string("DBClusterId"), dBClusterId); -} - -std::string ModifyDBResourcePoolRequest::getOwnerAccount() const { - return ownerAccount_; -} - -void ModifyDBResourcePoolRequest::setOwnerAccount(const std::string &ownerAccount) { - ownerAccount_ = ownerAccount; - setParameter(std::string("OwnerAccount"), ownerAccount); -} - -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/ModifyDBResourcePoolResult.cc b/adb/src/model/ModifyDBResourcePoolResult.cc deleted file mode 100644 index eeb70fab0..000000000 --- a/adb/src/model/ModifyDBResourcePoolResult.cc +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Adb; -using namespace AlibabaCloud::Adb::Model; - -ModifyDBResourcePoolResult::ModifyDBResourcePoolResult() : - ServiceResult() -{} - -ModifyDBResourcePoolResult::ModifyDBResourcePoolResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyDBResourcePoolResult::~ModifyDBResourcePoolResult() -{} - -void ModifyDBResourcePoolResult::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/ModifyElasticPlanRequest.cc b/adb/src/model/ModifyElasticPlanRequest.cc deleted file mode 100644 index 85c58d883..000000000 --- a/adb/src/model/ModifyElasticPlanRequest.cc +++ /dev/null @@ -1,162 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Adb::Model::ModifyElasticPlanRequest; - -ModifyElasticPlanRequest::ModifyElasticPlanRequest() - : RpcServiceRequest("adb", "2019-03-15", "ModifyElasticPlan") { - setMethod(HttpRequest::Method::Post); -} - -ModifyElasticPlanRequest::~ModifyElasticPlanRequest() {} - -long ModifyElasticPlanRequest::getResourceOwnerId() const { - return resourceOwnerId_; -} - -void ModifyElasticPlanRequest::setResourceOwnerId(long resourceOwnerId) { - resourceOwnerId_ = resourceOwnerId; - setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); -} - -std::string ModifyElasticPlanRequest::getElasticPlanTimeStart() const { - return elasticPlanTimeStart_; -} - -void ModifyElasticPlanRequest::setElasticPlanTimeStart(const std::string &elasticPlanTimeStart) { - elasticPlanTimeStart_ = elasticPlanTimeStart; - setParameter(std::string("ElasticPlanTimeStart"), elasticPlanTimeStart); -} - -std::string ModifyElasticPlanRequest::getElasticPlanEndDay() const { - return elasticPlanEndDay_; -} - -void ModifyElasticPlanRequest::setElasticPlanEndDay(const std::string &elasticPlanEndDay) { - elasticPlanEndDay_ = elasticPlanEndDay; - setParameter(std::string("ElasticPlanEndDay"), elasticPlanEndDay); -} - -std::string ModifyElasticPlanRequest::getElasticPlanWeeklyRepeat() const { - return elasticPlanWeeklyRepeat_; -} - -void ModifyElasticPlanRequest::setElasticPlanWeeklyRepeat(const std::string &elasticPlanWeeklyRepeat) { - elasticPlanWeeklyRepeat_ = elasticPlanWeeklyRepeat; - setParameter(std::string("ElasticPlanWeeklyRepeat"), elasticPlanWeeklyRepeat); -} - -std::string ModifyElasticPlanRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void ModifyElasticPlanRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -bool ModifyElasticPlanRequest::getElasticPlanEnable() const { - return elasticPlanEnable_; -} - -void ModifyElasticPlanRequest::setElasticPlanEnable(bool elasticPlanEnable) { - elasticPlanEnable_ = elasticPlanEnable; - setParameter(std::string("ElasticPlanEnable"), elasticPlanEnable ? "true" : "false"); -} - -std::string ModifyElasticPlanRequest::getElasticPlanTimeEnd() const { - return elasticPlanTimeEnd_; -} - -void ModifyElasticPlanRequest::setElasticPlanTimeEnd(const std::string &elasticPlanTimeEnd) { - elasticPlanTimeEnd_ = elasticPlanTimeEnd; - setParameter(std::string("ElasticPlanTimeEnd"), elasticPlanTimeEnd); -} - -std::string ModifyElasticPlanRequest::getElasticPlanStartDay() const { - return elasticPlanStartDay_; -} - -void ModifyElasticPlanRequest::setElasticPlanStartDay(const std::string &elasticPlanStartDay) { - elasticPlanStartDay_ = elasticPlanStartDay; - setParameter(std::string("ElasticPlanStartDay"), elasticPlanStartDay); -} - -std::string ModifyElasticPlanRequest::getResourceOwnerAccount() const { - return resourceOwnerAccount_; -} - -void ModifyElasticPlanRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); -} - -std::string ModifyElasticPlanRequest::getDBClusterId() const { - return dBClusterId_; -} - -void ModifyElasticPlanRequest::setDBClusterId(const std::string &dBClusterId) { - dBClusterId_ = dBClusterId; - setParameter(std::string("DBClusterId"), dBClusterId); -} - -std::string ModifyElasticPlanRequest::getOwnerAccount() const { - return ownerAccount_; -} - -void ModifyElasticPlanRequest::setOwnerAccount(const std::string &ownerAccount) { - ownerAccount_ = ownerAccount; - setParameter(std::string("OwnerAccount"), ownerAccount); -} - -long ModifyElasticPlanRequest::getOwnerId() const { - return ownerId_; -} - -void ModifyElasticPlanRequest::setOwnerId(long ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), std::to_string(ownerId)); -} - -std::string ModifyElasticPlanRequest::getElasticPlanName() const { - return elasticPlanName_; -} - -void ModifyElasticPlanRequest::setElasticPlanName(const std::string &elasticPlanName) { - elasticPlanName_ = elasticPlanName; - setParameter(std::string("ElasticPlanName"), elasticPlanName); -} - -std::string ModifyElasticPlanRequest::getResourcePoolName() const { - return resourcePoolName_; -} - -void ModifyElasticPlanRequest::setResourcePoolName(const std::string &resourcePoolName) { - resourcePoolName_ = resourcePoolName; - setParameter(std::string("ResourcePoolName"), resourcePoolName); -} - -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 deleted file mode 100644 index ff41eb67d..000000000 --- a/adb/src/model/ModifyLogBackupPolicyRequest.cc +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Adb::Model::ModifyLogBackupPolicyRequest; - -ModifyLogBackupPolicyRequest::ModifyLogBackupPolicyRequest() - : RpcServiceRequest("adb", "2019-03-15", "ModifyLogBackupPolicy") { - setMethod(HttpRequest::Method::Post); -} - -ModifyLogBackupPolicyRequest::~ModifyLogBackupPolicyRequest() {} - -long ModifyLogBackupPolicyRequest::getResourceOwnerId() const { - return resourceOwnerId_; -} - -void ModifyLogBackupPolicyRequest::setResourceOwnerId(long resourceOwnerId) { - resourceOwnerId_ = resourceOwnerId; - setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); -} - -std::string ModifyLogBackupPolicyRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void ModifyLogBackupPolicyRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string ModifyLogBackupPolicyRequest::getEnableBackupLog() const { - return enableBackupLog_; -} - -void ModifyLogBackupPolicyRequest::setEnableBackupLog(const std::string &enableBackupLog) { - enableBackupLog_ = enableBackupLog; - setParameter(std::string("EnableBackupLog"), enableBackupLog); -} - -std::string ModifyLogBackupPolicyRequest::getResourceOwnerAccount() const { - return resourceOwnerAccount_; -} - -void ModifyLogBackupPolicyRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); -} - -std::string ModifyLogBackupPolicyRequest::getDBClusterId() const { - return dBClusterId_; -} - -void ModifyLogBackupPolicyRequest::setDBClusterId(const std::string &dBClusterId) { - dBClusterId_ = dBClusterId; - setParameter(std::string("DBClusterId"), dBClusterId); -} - -std::string ModifyLogBackupPolicyRequest::getOwnerAccount() const { - return ownerAccount_; -} - -void ModifyLogBackupPolicyRequest::setOwnerAccount(const std::string &ownerAccount) { - ownerAccount_ = ownerAccount; - setParameter(std::string("OwnerAccount"), ownerAccount); -} - -long ModifyLogBackupPolicyRequest::getOwnerId() const { - return ownerId_; -} - -void ModifyLogBackupPolicyRequest::setOwnerId(long ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), std::to_string(ownerId)); -} - -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 deleted file mode 100644 index 8f182169a..000000000 --- a/adb/src/model/ModifyMaintenanceActionRequest.cc +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::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/DeleteElasticPlanResult.cc b/adb/src/model/PreloadSparkAppMetricsRequest.cc similarity index 50% rename from adb/src/model/DeleteElasticPlanResult.cc rename to adb/src/model/PreloadSparkAppMetricsRequest.cc index b6323e9d9..0a12c0601 100644 --- a/adb/src/model/DeleteElasticPlanResult.cc +++ b/adb/src/model/PreloadSparkAppMetricsRequest.cc @@ -1,44 +1,36 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Adb; -using namespace AlibabaCloud::Adb::Model; - -DeleteElasticPlanResult::DeleteElasticPlanResult() : - ServiceResult() -{} - -DeleteElasticPlanResult::DeleteElasticPlanResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteElasticPlanResult::~DeleteElasticPlanResult() -{} - -void DeleteElasticPlanResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - -} - + */ + +#include + +using AlibabaCloud::Adb::Model::PreloadSparkAppMetricsRequest; + +PreloadSparkAppMetricsRequest::PreloadSparkAppMetricsRequest() + : RpcServiceRequest("adb", "2021-12-01", "PreloadSparkAppMetrics") { + setMethod(HttpRequest::Method::Post); +} + +PreloadSparkAppMetricsRequest::~PreloadSparkAppMetricsRequest() {} + +std::string PreloadSparkAppMetricsRequest::getAppId() const { + return appId_; +} + +void PreloadSparkAppMetricsRequest::setAppId(const std::string &appId) { + appId_ = appId; + setBodyParameter(std::string("AppId"), appId); +} + diff --git a/adb/src/model/PreloadSparkAppMetricsResult.cc b/adb/src/model/PreloadSparkAppMetricsResult.cc new file mode 100644 index 000000000..6a00b4962 --- /dev/null +++ b/adb/src/model/PreloadSparkAppMetricsResult.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; + +PreloadSparkAppMetricsResult::PreloadSparkAppMetricsResult() : + ServiceResult() +{} + +PreloadSparkAppMetricsResult::PreloadSparkAppMetricsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PreloadSparkAppMetricsResult::~PreloadSparkAppMetricsResult() +{} + +void PreloadSparkAppMetricsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["AppId"].isNull()) + data_.appId = dataNode["AppId"].asString(); + if(!dataNode["AttemptId"].isNull()) + data_.attemptId = dataNode["AttemptId"].asString(); + if(!dataNode["Finished"].isNull()) + data_.finished = dataNode["Finished"].asString() == "true"; + if(!dataNode["EventLogPath"].isNull()) + data_.eventLogPath = dataNode["EventLogPath"].asString(); + auto scanMetricsNode = dataNode["ScanMetrics"]; + if(!scanMetricsNode["OutputRowsCount"].isNull()) + data_.scanMetrics.outputRowsCount = std::stol(scanMetricsNode["OutputRowsCount"].asString()); + if(!scanMetricsNode["TotalReadFileSizeInByte"].isNull()) + data_.scanMetrics.totalReadFileSizeInByte = std::stol(scanMetricsNode["TotalReadFileSizeInByte"].asString()); + +} + +PreloadSparkAppMetricsResult::Data PreloadSparkAppMetricsResult::getData()const +{ + return data_; +} + diff --git a/adb/src/model/ReleaseClusterPublicConnectionRequest.cc b/adb/src/model/ReleaseClusterPublicConnectionRequest.cc index da6efeb3f..b14adcd6f 100644 --- a/adb/src/model/ReleaseClusterPublicConnectionRequest.cc +++ b/adb/src/model/ReleaseClusterPublicConnectionRequest.cc @@ -19,19 +19,19 @@ using AlibabaCloud::Adb::Model::ReleaseClusterPublicConnectionRequest; ReleaseClusterPublicConnectionRequest::ReleaseClusterPublicConnectionRequest() - : RpcServiceRequest("adb", "2019-03-15", "ReleaseClusterPublicConnection") { + : RpcServiceRequest("adb", "2021-12-01", "ReleaseClusterPublicConnection") { setMethod(HttpRequest::Method::Post); } ReleaseClusterPublicConnectionRequest::~ReleaseClusterPublicConnectionRequest() {} -long ReleaseClusterPublicConnectionRequest::getResourceOwnerId() const { - return resourceOwnerId_; +std::string ReleaseClusterPublicConnectionRequest::getDBClusterId() const { + return dBClusterId_; } -void ReleaseClusterPublicConnectionRequest::setResourceOwnerId(long resourceOwnerId) { - resourceOwnerId_ = resourceOwnerId; - setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +void ReleaseClusterPublicConnectionRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); } std::string ReleaseClusterPublicConnectionRequest::getAccessKeyId() const { @@ -43,39 +43,3 @@ void ReleaseClusterPublicConnectionRequest::setAccessKeyId(const std::string &ac setParameter(std::string("AccessKeyId"), accessKeyId); } -std::string ReleaseClusterPublicConnectionRequest::getResourceOwnerAccount() const { - return resourceOwnerAccount_; -} - -void ReleaseClusterPublicConnectionRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); -} - -std::string ReleaseClusterPublicConnectionRequest::getDBClusterId() const { - return dBClusterId_; -} - -void ReleaseClusterPublicConnectionRequest::setDBClusterId(const std::string &dBClusterId) { - dBClusterId_ = dBClusterId; - setParameter(std::string("DBClusterId"), dBClusterId); -} - -std::string ReleaseClusterPublicConnectionRequest::getOwnerAccount() const { - return ownerAccount_; -} - -void ReleaseClusterPublicConnectionRequest::setOwnerAccount(const std::string &ownerAccount) { - ownerAccount_ = ownerAccount; - setParameter(std::string("OwnerAccount"), ownerAccount); -} - -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 16b55985c..dd8c50861 100644 --- a/adb/src/model/ResetAccountPasswordRequest.cc +++ b/adb/src/model/ResetAccountPasswordRequest.cc @@ -19,28 +19,28 @@ using AlibabaCloud::Adb::Model::ResetAccountPasswordRequest; ResetAccountPasswordRequest::ResetAccountPasswordRequest() - : RpcServiceRequest("adb", "2019-03-15", "ResetAccountPassword") { + : RpcServiceRequest("adb", "2021-12-01", "ResetAccountPassword") { setMethod(HttpRequest::Method::Post); } ResetAccountPasswordRequest::~ResetAccountPasswordRequest() {} -long ResetAccountPasswordRequest::getResourceOwnerId() const { - return resourceOwnerId_; +std::string ResetAccountPasswordRequest::getDBClusterId() const { + return dBClusterId_; } -void ResetAccountPasswordRequest::setResourceOwnerId(long resourceOwnerId) { - resourceOwnerId_ = resourceOwnerId; - setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +void ResetAccountPasswordRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); } -std::string ResetAccountPasswordRequest::getAccountType() const { - return accountType_; +std::string ResetAccountPasswordRequest::getAccountDescription() const { + return accountDescription_; } -void ResetAccountPasswordRequest::setAccountType(const std::string &accountType) { - accountType_ = accountType; - setParameter(std::string("AccountType"), accountType); +void ResetAccountPasswordRequest::setAccountDescription(const std::string &accountDescription) { + accountDescription_ = accountDescription; + setParameter(std::string("AccountDescription"), accountDescription); } std::string ResetAccountPasswordRequest::getAccessKeyId() const { @@ -52,51 +52,6 @@ void ResetAccountPasswordRequest::setAccessKeyId(const std::string &accessKeyId) setParameter(std::string("AccessKeyId"), accessKeyId); } -std::string ResetAccountPasswordRequest::getAccountName() const { - return accountName_; -} - -void ResetAccountPasswordRequest::setAccountName(const std::string &accountName) { - accountName_ = accountName; - setParameter(std::string("AccountName"), accountName); -} - -std::string ResetAccountPasswordRequest::getResourceOwnerAccount() const { - return resourceOwnerAccount_; -} - -void ResetAccountPasswordRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); -} - -std::string ResetAccountPasswordRequest::getDBClusterId() const { - return dBClusterId_; -} - -void ResetAccountPasswordRequest::setDBClusterId(const std::string &dBClusterId) { - dBClusterId_ = dBClusterId; - setParameter(std::string("DBClusterId"), dBClusterId); -} - -std::string ResetAccountPasswordRequest::getOwnerAccount() const { - return ownerAccount_; -} - -void ResetAccountPasswordRequest::setOwnerAccount(const std::string &ownerAccount) { - ownerAccount_ = ownerAccount; - setParameter(std::string("OwnerAccount"), ownerAccount); -} - -long ResetAccountPasswordRequest::getOwnerId() const { - return ownerId_; -} - -void ResetAccountPasswordRequest::setOwnerId(long ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), std::to_string(ownerId)); -} - std::string ResetAccountPasswordRequest::getAccountPassword() const { return accountPassword_; } @@ -106,3 +61,12 @@ void ResetAccountPasswordRequest::setAccountPassword(const std::string &accountP setParameter(std::string("AccountPassword"), accountPassword); } +std::string ResetAccountPasswordRequest::getAccountName() const { + return accountName_; +} + +void ResetAccountPasswordRequest::setAccountName(const std::string &accountName) { + accountName_ = accountName; + setParameter(std::string("AccountName"), accountName); +} + diff --git a/adb/src/model/ResetAccountPasswordResult.cc b/adb/src/model/ResetAccountPasswordResult.cc index fdf1f0d68..d015e1c03 100644 --- a/adb/src/model/ResetAccountPasswordResult.cc +++ b/adb/src/model/ResetAccountPasswordResult.cc @@ -39,20 +39,6 @@ void ResetAccountPasswordResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["TaskId"].isNull()) - taskId_ = std::stoi(value["TaskId"].asString()); - if(!value["DBClusterId"].isNull()) - dBClusterId_ = value["DBClusterId"].asString(); } -int ResetAccountPasswordResult::getTaskId()const -{ - return taskId_; -} - -std::string ResetAccountPasswordResult::getDBClusterId()const -{ - return dBClusterId_; -} - diff --git a/adb/src/model/RevokeOperatorPermissionRequest.cc b/adb/src/model/RevokeOperatorPermissionRequest.cc deleted file mode 100644 index f4c22a94a..000000000 --- a/adb/src/model/RevokeOperatorPermissionRequest.cc +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#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_; -} - -void RevokeOperatorPermissionRequest::setResourceOwnerId(long resourceOwnerId) { - resourceOwnerId_ = resourceOwnerId; - setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); -} - -std::string RevokeOperatorPermissionRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void RevokeOperatorPermissionRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string RevokeOperatorPermissionRequest::getResourceOwnerAccount() const { - return resourceOwnerAccount_; -} - -void RevokeOperatorPermissionRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); -} - -std::string RevokeOperatorPermissionRequest::getDBClusterId() const { - return dBClusterId_; -} - -void RevokeOperatorPermissionRequest::setDBClusterId(const std::string &dBClusterId) { - dBClusterId_ = dBClusterId; - setParameter(std::string("DBClusterId"), dBClusterId); -} - -std::string RevokeOperatorPermissionRequest::getOwnerAccount() const { - return ownerAccount_; -} - -void RevokeOperatorPermissionRequest::setOwnerAccount(const std::string &ownerAccount) { - ownerAccount_ = ownerAccount; - setParameter(std::string("OwnerAccount"), ownerAccount); -} - -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/SetSparkAppLogRootPathRequest.cc b/adb/src/model/SetSparkAppLogRootPathRequest.cc new file mode 100644 index 000000000..9b1287855 --- /dev/null +++ b/adb/src/model/SetSparkAppLogRootPathRequest.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::SetSparkAppLogRootPathRequest; + +SetSparkAppLogRootPathRequest::SetSparkAppLogRootPathRequest() + : RpcServiceRequest("adb", "2021-12-01", "SetSparkAppLogRootPath") { + setMethod(HttpRequest::Method::Post); +} + +SetSparkAppLogRootPathRequest::~SetSparkAppLogRootPathRequest() {} + +std::string SetSparkAppLogRootPathRequest::getDBClusterId() const { + return dBClusterId_; +} + +void SetSparkAppLogRootPathRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setBodyParameter(std::string("DBClusterId"), dBClusterId); +} + +bool SetSparkAppLogRootPathRequest::getUseDefaultOss() const { + return useDefaultOss_; +} + +void SetSparkAppLogRootPathRequest::setUseDefaultOss(bool useDefaultOss) { + useDefaultOss_ = useDefaultOss; + setBodyParameter(std::string("UseDefaultOss"), useDefaultOss ? "true" : "false"); +} + +std::string SetSparkAppLogRootPathRequest::getOssLogPath() const { + return ossLogPath_; +} + +void SetSparkAppLogRootPathRequest::setOssLogPath(const std::string &ossLogPath) { + ossLogPath_ = ossLogPath; + setBodyParameter(std::string("OssLogPath"), ossLogPath); +} + diff --git a/adb/src/model/SetSparkAppLogRootPathResult.cc b/adb/src/model/SetSparkAppLogRootPathResult.cc new file mode 100644 index 000000000..29b1fbc1a --- /dev/null +++ b/adb/src/model/SetSparkAppLogRootPathResult.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; + +SetSparkAppLogRootPathResult::SetSparkAppLogRootPathResult() : + ServiceResult() +{} + +SetSparkAppLogRootPathResult::SetSparkAppLogRootPathResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SetSparkAppLogRootPathResult::~SetSparkAppLogRootPathResult() +{} + +void SetSparkAppLogRootPathResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["IsLogPathExists"].isNull()) + data_.isLogPathExists = dataNode["IsLogPathExists"].asString() == "true"; + if(!dataNode["RecordedLogPath"].isNull()) + data_.recordedLogPath = dataNode["RecordedLogPath"].asString(); + if(!dataNode["ModifiedUid"].isNull()) + data_.modifiedUid = dataNode["ModifiedUid"].asString(); + if(!dataNode["ModifiedTimestamp"].isNull()) + data_.modifiedTimestamp = dataNode["ModifiedTimestamp"].asString(); + if(!dataNode["DefaultLogPath"].isNull()) + data_.defaultLogPath = dataNode["DefaultLogPath"].asString(); + +} + +SetSparkAppLogRootPathResult::Data SetSparkAppLogRootPathResult::getData()const +{ + return data_; +} + diff --git a/adb/src/model/StartSparkSQLEngineRequest.cc b/adb/src/model/StartSparkSQLEngineRequest.cc new file mode 100644 index 000000000..fe80d4ccf --- /dev/null +++ b/adb/src/model/StartSparkSQLEngineRequest.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::StartSparkSQLEngineRequest; + +StartSparkSQLEngineRequest::StartSparkSQLEngineRequest() + : RpcServiceRequest("adb", "2021-12-01", "StartSparkSQLEngine") { + setMethod(HttpRequest::Method::Post); +} + +StartSparkSQLEngineRequest::~StartSparkSQLEngineRequest() {} + +std::string StartSparkSQLEngineRequest::getResourceGroupName() const { + return resourceGroupName_; +} + +void StartSparkSQLEngineRequest::setResourceGroupName(const std::string &resourceGroupName) { + resourceGroupName_ = resourceGroupName; + setBodyParameter(std::string("ResourceGroupName"), resourceGroupName); +} + +long StartSparkSQLEngineRequest::getSlotNum() const { + return slotNum_; +} + +void StartSparkSQLEngineRequest::setSlotNum(long slotNum) { + slotNum_ = slotNum; + setBodyParameter(std::string("SlotNum"), std::to_string(slotNum)); +} + +std::string StartSparkSQLEngineRequest::getDBClusterId() const { + return dBClusterId_; +} + +void StartSparkSQLEngineRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setBodyParameter(std::string("DBClusterId"), dBClusterId); +} + +long StartSparkSQLEngineRequest::getMinExecutor() const { + return minExecutor_; +} + +void StartSparkSQLEngineRequest::setMinExecutor(long minExecutor) { + minExecutor_ = minExecutor; + setBodyParameter(std::string("MinExecutor"), std::to_string(minExecutor)); +} + +std::string StartSparkSQLEngineRequest::getJars() const { + return jars_; +} + +void StartSparkSQLEngineRequest::setJars(const std::string &jars) { + jars_ = jars; + setBodyParameter(std::string("Jars"), jars); +} + +long StartSparkSQLEngineRequest::getMaxExecutor() const { + return maxExecutor_; +} + +void StartSparkSQLEngineRequest::setMaxExecutor(long maxExecutor) { + maxExecutor_ = maxExecutor; + setBodyParameter(std::string("MaxExecutor"), std::to_string(maxExecutor)); +} + +std::string StartSparkSQLEngineRequest::getConfig() const { + return config_; +} + +void StartSparkSQLEngineRequest::setConfig(const std::string &config) { + config_ = config; + setBodyParameter(std::string("Config"), config); +} + diff --git a/adb/src/model/StartSparkSQLEngineResult.cc b/adb/src/model/StartSparkSQLEngineResult.cc new file mode 100644 index 000000000..a553f8d6d --- /dev/null +++ b/adb/src/model/StartSparkSQLEngineResult.cc @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Adb; +using namespace AlibabaCloud::Adb::Model; + +StartSparkSQLEngineResult::StartSparkSQLEngineResult() : + ServiceResult() +{} + +StartSparkSQLEngineResult::StartSparkSQLEngineResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StartSparkSQLEngineResult::~StartSparkSQLEngineResult() +{} + +void StartSparkSQLEngineResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["AppId"].isNull()) + data_.appId = dataNode["AppId"].asString(); + if(!dataNode["State"].isNull()) + data_.state = dataNode["State"].asString(); + if(!dataNode["AppName"].isNull()) + data_.appName = dataNode["AppName"].asString(); + +} + +StartSparkSQLEngineResult::Data StartSparkSQLEngineResult::getData()const +{ + return data_; +} + diff --git a/adb/src/model/SubmitSparkAppRequest.cc b/adb/src/model/SubmitSparkAppRequest.cc new file mode 100644 index 000000000..aa23651cd --- /dev/null +++ b/adb/src/model/SubmitSparkAppRequest.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::SubmitSparkAppRequest; + +SubmitSparkAppRequest::SubmitSparkAppRequest() + : RpcServiceRequest("adb", "2021-12-01", "SubmitSparkApp") { + setMethod(HttpRequest::Method::Post); +} + +SubmitSparkAppRequest::~SubmitSparkAppRequest() {} + +std::string SubmitSparkAppRequest::getResourceGroupName() const { + return resourceGroupName_; +} + +void SubmitSparkAppRequest::setResourceGroupName(const std::string &resourceGroupName) { + resourceGroupName_ = resourceGroupName; + setBodyParameter(std::string("ResourceGroupName"), resourceGroupName); +} + +std::string SubmitSparkAppRequest::getAgentVersion() const { + return agentVersion_; +} + +void SubmitSparkAppRequest::setAgentVersion(const std::string &agentVersion) { + agentVersion_ = agentVersion; + setBodyParameter(std::string("AgentVersion"), agentVersion); +} + +std::string SubmitSparkAppRequest::getData() const { + return data_; +} + +void SubmitSparkAppRequest::setData(const std::string &data) { + data_ = data; + setBodyParameter(std::string("Data"), data); +} + +std::string SubmitSparkAppRequest::getAppName() const { + return appName_; +} + +void SubmitSparkAppRequest::setAppName(const std::string &appName) { + appName_ = appName; + setBodyParameter(std::string("AppName"), appName); +} + +long SubmitSparkAppRequest::getTemplateFileId() const { + return templateFileId_; +} + +void SubmitSparkAppRequest::setTemplateFileId(long templateFileId) { + templateFileId_ = templateFileId; + setBodyParameter(std::string("TemplateFileId"), std::to_string(templateFileId)); +} + +std::string SubmitSparkAppRequest::getDBClusterId() const { + return dBClusterId_; +} + +void SubmitSparkAppRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setBodyParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string SubmitSparkAppRequest::getAppType() const { + return appType_; +} + +void SubmitSparkAppRequest::setAppType(const std::string &appType) { + appType_ = appType; + setBodyParameter(std::string("AppType"), appType); +} + +std::string SubmitSparkAppRequest::getAgentSource() const { + return agentSource_; +} + +void SubmitSparkAppRequest::setAgentSource(const std::string &agentSource) { + agentSource_ = agentSource; + setBodyParameter(std::string("AgentSource"), agentSource); +} + diff --git a/adb/src/model/SubmitSparkAppResult.cc b/adb/src/model/SubmitSparkAppResult.cc new file mode 100644 index 000000000..e1f361763 --- /dev/null +++ b/adb/src/model/SubmitSparkAppResult.cc @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Adb; +using namespace AlibabaCloud::Adb::Model; + +SubmitSparkAppResult::SubmitSparkAppResult() : + ServiceResult() +{} + +SubmitSparkAppResult::SubmitSparkAppResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SubmitSparkAppResult::~SubmitSparkAppResult() +{} + +void SubmitSparkAppResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["AppId"].isNull()) + data_.appId = dataNode["AppId"].asString(); + if(!dataNode["AppName"].isNull()) + data_.appName = dataNode["AppName"].asString(); + if(!dataNode["Message"].isNull()) + data_.message = dataNode["Message"].asString(); + if(!dataNode["State"].isNull()) + data_.state = dataNode["State"].asString(); + +} + +SubmitSparkAppResult::Data SubmitSparkAppResult::getData()const +{ + return data_; +} + diff --git a/adb/src/model/SubmitSparkLogAnalyzeTaskRequest.cc b/adb/src/model/SubmitSparkLogAnalyzeTaskRequest.cc new file mode 100644 index 000000000..aad41d4ec --- /dev/null +++ b/adb/src/model/SubmitSparkLogAnalyzeTaskRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Adb::Model::SubmitSparkLogAnalyzeTaskRequest; + +SubmitSparkLogAnalyzeTaskRequest::SubmitSparkLogAnalyzeTaskRequest() + : RpcServiceRequest("adb", "2021-12-01", "SubmitSparkLogAnalyzeTask") { + setMethod(HttpRequest::Method::Post); +} + +SubmitSparkLogAnalyzeTaskRequest::~SubmitSparkLogAnalyzeTaskRequest() {} + +std::string SubmitSparkLogAnalyzeTaskRequest::getAppId() const { + return appId_; +} + +void SubmitSparkLogAnalyzeTaskRequest::setAppId(const std::string &appId) { + appId_ = appId; + setBodyParameter(std::string("AppId"), appId); +} + diff --git a/adb/src/model/SubmitSparkLogAnalyzeTaskResult.cc b/adb/src/model/SubmitSparkLogAnalyzeTaskResult.cc new file mode 100644 index 000000000..4da288dda --- /dev/null +++ b/adb/src/model/SubmitSparkLogAnalyzeTaskResult.cc @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Adb; +using namespace AlibabaCloud::Adb::Model; + +SubmitSparkLogAnalyzeTaskResult::SubmitSparkLogAnalyzeTaskResult() : + ServiceResult() +{} + +SubmitSparkLogAnalyzeTaskResult::SubmitSparkLogAnalyzeTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SubmitSparkLogAnalyzeTaskResult::~SubmitSparkLogAnalyzeTaskResult() +{} + +void SubmitSparkLogAnalyzeTaskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["TaskId"].isNull()) + data_.taskId = std::stol(dataNode["TaskId"].asString()); + if(!dataNode["UserId"].isNull()) + data_.userId = std::stol(dataNode["UserId"].asString()); + if(!dataNode["SubmittedTimeInMillis"].isNull()) + data_.submittedTimeInMillis = std::stol(dataNode["SubmittedTimeInMillis"].asString()); + if(!dataNode["TerminatedTimeInMillis"].isNull()) + data_.terminatedTimeInMillis = std::stol(dataNode["TerminatedTimeInMillis"].asString()); + if(!dataNode["TaskState"].isNull()) + data_.taskState = dataNode["TaskState"].asString(); + if(!dataNode["StartedTimeInMillis"].isNull()) + data_.startedTimeInMillis = std::stol(dataNode["StartedTimeInMillis"].asString()); + if(!dataNode["RuleMatched"].isNull()) + data_.ruleMatched = dataNode["RuleMatched"].asString() == "true"; + if(!dataNode["TaskErrMsg"].isNull()) + data_.taskErrMsg = dataNode["TaskErrMsg"].asString(); + if(!dataNode["DBClusterId"].isNull()) + data_.dBClusterId = dataNode["DBClusterId"].asString(); + auto resultNode = dataNode["Result"]; + if(!resultNode["AppErrorCode"].isNull()) + data_.result.appErrorCode = resultNode["AppErrorCode"].asString(); + if(!resultNode["AppErrorLog"].isNull()) + data_.result.appErrorLog = resultNode["AppErrorLog"].asString(); + if(!resultNode["AppErrorAdvice"].isNull()) + data_.result.appErrorAdvice = resultNode["AppErrorAdvice"].asString(); + +} + +SubmitSparkLogAnalyzeTaskResult::Data SubmitSparkLogAnalyzeTaskResult::getData()const +{ + return data_; +} + diff --git a/adb/src/model/TagResourcesRequest.cc b/adb/src/model/TagResourcesRequest.cc deleted file mode 100644 index a8ee976f6..000000000 --- a/adb/src/model/TagResourcesRequest.cc +++ /dev/null @@ -1,112 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Adb::Model::TagResourcesRequest; - -TagResourcesRequest::TagResourcesRequest() - : RpcServiceRequest("adb", "2019-03-15", "TagResources") { - setMethod(HttpRequest::Method::Post); -} - -TagResourcesRequest::~TagResourcesRequest() {} - -long TagResourcesRequest::getResourceOwnerId() const { - return resourceOwnerId_; -} - -void TagResourcesRequest::setResourceOwnerId(long resourceOwnerId) { - resourceOwnerId_ = resourceOwnerId; - setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); -} - -std::string TagResourcesRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void TagResourcesRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string TagResourcesRequest::getRegionId() const { - return regionId_; -} - -void TagResourcesRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - -std::vector TagResourcesRequest::getTag() const { - return tag_; -} - -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); - } -} - -std::vector TagResourcesRequest::getResourceId() const { - return resourceId_; -} - -void TagResourcesRequest::setResourceId(const std::vector &resourceId) { - resourceId_ = resourceId; -} - -std::string TagResourcesRequest::getResourceOwnerAccount() const { - return resourceOwnerAccount_; -} - -void TagResourcesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); -} - -std::string TagResourcesRequest::getOwnerAccount() const { - return ownerAccount_; -} - -void TagResourcesRequest::setOwnerAccount(const std::string &ownerAccount) { - ownerAccount_ = ownerAccount; - setParameter(std::string("OwnerAccount"), ownerAccount); -} - -long TagResourcesRequest::getOwnerId() const { - return ownerId_; -} - -void TagResourcesRequest::setOwnerId(long ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), std::to_string(ownerId)); -} - -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/UnbindAccountRequest.cc b/adb/src/model/UnbindAccountRequest.cc new file mode 100644 index 000000000..652f365e6 --- /dev/null +++ b/adb/src/model/UnbindAccountRequest.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::UnbindAccountRequest; + +UnbindAccountRequest::UnbindAccountRequest() + : RpcServiceRequest("adb", "2021-12-01", "UnbindAccount") { + setMethod(HttpRequest::Method::Post); +} + +UnbindAccountRequest::~UnbindAccountRequest() {} + +std::string UnbindAccountRequest::getDBClusterId() const { + return dBClusterId_; +} + +void UnbindAccountRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string UnbindAccountRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void UnbindAccountRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string UnbindAccountRequest::getAccountName() const { + return accountName_; +} + +void UnbindAccountRequest::setAccountName(const std::string &accountName) { + accountName_ = accountName; + setParameter(std::string("AccountName"), accountName); +} + diff --git a/adb/src/model/TagResourcesResult.cc b/adb/src/model/UnbindAccountResult.cc similarity index 76% rename from adb/src/model/TagResourcesResult.cc rename to adb/src/model/UnbindAccountResult.cc index 256259393..3d5c742df 100644 --- a/adb/src/model/TagResourcesResult.cc +++ b/adb/src/model/UnbindAccountResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Adb; using namespace AlibabaCloud::Adb::Model; -TagResourcesResult::TagResourcesResult() : +UnbindAccountResult::UnbindAccountResult() : ServiceResult() {} -TagResourcesResult::TagResourcesResult(const std::string &payload) : +UnbindAccountResult::UnbindAccountResult(const std::string &payload) : ServiceResult() { parse(payload); } -TagResourcesResult::~TagResourcesResult() +UnbindAccountResult::~UnbindAccountResult() {} -void TagResourcesResult::parse(const std::string &payload) +void UnbindAccountResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; diff --git a/adb/src/model/UnbindDBResourceGroupWithUserRequest.cc b/adb/src/model/UnbindDBResourceGroupWithUserRequest.cc deleted file mode 100644 index 54bb2978a..000000000 --- a/adb/src/model/UnbindDBResourceGroupWithUserRequest.cc +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::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 deleted file mode 100644 index 74fadd7bb..000000000 --- a/adb/src/model/UnbindDBResourceGroupWithUserResult.cc +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#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 deleted file mode 100644 index c8d5601cb..000000000 --- a/adb/src/model/UnbindDBResourcePoolWithUserRequest.cc +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Adb::Model::UnbindDBResourcePoolWithUserRequest; - -UnbindDBResourcePoolWithUserRequest::UnbindDBResourcePoolWithUserRequest() - : RpcServiceRequest("adb", "2019-03-15", "UnbindDBResourcePoolWithUser") { - setMethod(HttpRequest::Method::Post); -} - -UnbindDBResourcePoolWithUserRequest::~UnbindDBResourcePoolWithUserRequest() {} - -std::string UnbindDBResourcePoolWithUserRequest::getPoolName() const { - return poolName_; -} - -void UnbindDBResourcePoolWithUserRequest::setPoolName(const std::string &poolName) { - poolName_ = poolName; - setParameter(std::string("PoolName"), poolName); -} - -long UnbindDBResourcePoolWithUserRequest::getResourceOwnerId() const { - return resourceOwnerId_; -} - -void UnbindDBResourcePoolWithUserRequest::setResourceOwnerId(long resourceOwnerId) { - resourceOwnerId_ = resourceOwnerId; - setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); -} - -std::string UnbindDBResourcePoolWithUserRequest::getPoolUser() const { - return poolUser_; -} - -void UnbindDBResourcePoolWithUserRequest::setPoolUser(const std::string &poolUser) { - poolUser_ = poolUser; - setParameter(std::string("PoolUser"), poolUser); -} - -std::string UnbindDBResourcePoolWithUserRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void UnbindDBResourcePoolWithUserRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string UnbindDBResourcePoolWithUserRequest::getResourceOwnerAccount() const { - return resourceOwnerAccount_; -} - -void UnbindDBResourcePoolWithUserRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); -} - -std::string UnbindDBResourcePoolWithUserRequest::getDBClusterId() const { - return dBClusterId_; -} - -void UnbindDBResourcePoolWithUserRequest::setDBClusterId(const std::string &dBClusterId) { - dBClusterId_ = dBClusterId; - setParameter(std::string("DBClusterId"), dBClusterId); -} - -std::string UnbindDBResourcePoolWithUserRequest::getOwnerAccount() const { - return ownerAccount_; -} - -void UnbindDBResourcePoolWithUserRequest::setOwnerAccount(const std::string &ownerAccount) { - ownerAccount_ = ownerAccount; - setParameter(std::string("OwnerAccount"), ownerAccount); -} - -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/UnbindDBResourcePoolWithUserResult.cc b/adb/src/model/UnbindDBResourcePoolWithUserResult.cc deleted file mode 100644 index 879e29a8d..000000000 --- a/adb/src/model/UnbindDBResourcePoolWithUserResult.cc +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Adb; -using namespace AlibabaCloud::Adb::Model; - -UnbindDBResourcePoolWithUserResult::UnbindDBResourcePoolWithUserResult() : - ServiceResult() -{} - -UnbindDBResourcePoolWithUserResult::UnbindDBResourcePoolWithUserResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -UnbindDBResourcePoolWithUserResult::~UnbindDBResourcePoolWithUserResult() -{} - -void UnbindDBResourcePoolWithUserResult::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/UntagResourcesRequest.cc b/adb/src/model/UntagResourcesRequest.cc deleted file mode 100644 index b0189b799..000000000 --- a/adb/src/model/UntagResourcesRequest.cc +++ /dev/null @@ -1,115 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Adb::Model::UntagResourcesRequest; - -UntagResourcesRequest::UntagResourcesRequest() - : RpcServiceRequest("adb", "2019-03-15", "UntagResources") { - setMethod(HttpRequest::Method::Post); -} - -UntagResourcesRequest::~UntagResourcesRequest() {} - -long UntagResourcesRequest::getResourceOwnerId() const { - return resourceOwnerId_; -} - -void UntagResourcesRequest::setResourceOwnerId(long resourceOwnerId) { - resourceOwnerId_ = resourceOwnerId; - setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); -} - -std::string UntagResourcesRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void UntagResourcesRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string UntagResourcesRequest::getRegionId() const { - return regionId_; -} - -void UntagResourcesRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - -bool UntagResourcesRequest::getAll() const { - return all_; -} - -void UntagResourcesRequest::setAll(bool all) { - all_ = all; - setParameter(std::string("All"), all ? "true" : "false"); -} - -std::vector UntagResourcesRequest::getResourceId() const { - return resourceId_; -} - -void UntagResourcesRequest::setResourceId(const std::vector &resourceId) { - resourceId_ = resourceId; -} - -std::string UntagResourcesRequest::getResourceOwnerAccount() const { - return resourceOwnerAccount_; -} - -void UntagResourcesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); -} - -std::string UntagResourcesRequest::getOwnerAccount() const { - return ownerAccount_; -} - -void UntagResourcesRequest::setOwnerAccount(const std::string &ownerAccount) { - ownerAccount_ = ownerAccount; - setParameter(std::string("OwnerAccount"), ownerAccount); -} - -long UntagResourcesRequest::getOwnerId() const { - return ownerId_; -} - -void UntagResourcesRequest::setOwnerId(long ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), std::to_string(ownerId)); -} - -std::string UntagResourcesRequest::getResourceType() const { - return resourceType_; -} - -void UntagResourcesRequest::setResourceType(const std::string &resourceType) { - resourceType_ = resourceType; - setParameter(std::string("ResourceType"), resourceType); -} - -std::vector UntagResourcesRequest::getTagKey() const { - return tagKey_; -} - -void UntagResourcesRequest::setTagKey(const std::vector &tagKey) { - tagKey_ = tagKey; -} - diff --git a/adb/src/model/UpdateSparkTemplateFileRequest.cc b/adb/src/model/UpdateSparkTemplateFileRequest.cc new file mode 100644 index 000000000..95a536507 --- /dev/null +++ b/adb/src/model/UpdateSparkTemplateFileRequest.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::UpdateSparkTemplateFileRequest; + +UpdateSparkTemplateFileRequest::UpdateSparkTemplateFileRequest() + : RpcServiceRequest("adb", "2021-12-01", "UpdateSparkTemplateFile") { + setMethod(HttpRequest::Method::Post); +} + +UpdateSparkTemplateFileRequest::~UpdateSparkTemplateFileRequest() {} + +std::string UpdateSparkTemplateFileRequest::getResourceGroupName() const { + return resourceGroupName_; +} + +void UpdateSparkTemplateFileRequest::setResourceGroupName(const std::string &resourceGroupName) { + resourceGroupName_ = resourceGroupName; + setBodyParameter(std::string("ResourceGroupName"), resourceGroupName); +} + +std::string UpdateSparkTemplateFileRequest::getDBClusterId() const { + return dBClusterId_; +} + +void UpdateSparkTemplateFileRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setBodyParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string UpdateSparkTemplateFileRequest::getContent() const { + return content_; +} + +void UpdateSparkTemplateFileRequest::setContent(const std::string &content) { + content_ = content; + setBodyParameter(std::string("Content"), content); +} + +long UpdateSparkTemplateFileRequest::getId() const { + return id_; +} + +void UpdateSparkTemplateFileRequest::setId(long id) { + id_ = id; + setBodyParameter(std::string("Id"), std::to_string(id)); +} + diff --git a/adb/src/model/BindDBResourceGroupWithUserResult.cc b/adb/src/model/UpdateSparkTemplateFileResult.cc similarity index 60% rename from adb/src/model/BindDBResourceGroupWithUserResult.cc rename to adb/src/model/UpdateSparkTemplateFileResult.cc index 306fd4c58..442422530 100644 --- a/adb/src/model/BindDBResourceGroupWithUserResult.cc +++ b/adb/src/model/UpdateSparkTemplateFileResult.cc @@ -14,31 +14,39 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Adb; using namespace AlibabaCloud::Adb::Model; -BindDBResourceGroupWithUserResult::BindDBResourceGroupWithUserResult() : +UpdateSparkTemplateFileResult::UpdateSparkTemplateFileResult() : ServiceResult() {} -BindDBResourceGroupWithUserResult::BindDBResourceGroupWithUserResult(const std::string &payload) : +UpdateSparkTemplateFileResult::UpdateSparkTemplateFileResult(const std::string &payload) : ServiceResult() { parse(payload); } -BindDBResourceGroupWithUserResult::~BindDBResourceGroupWithUserResult() +UpdateSparkTemplateFileResult::~UpdateSparkTemplateFileResult() {} -void BindDBResourceGroupWithUserResult::parse(const std::string &payload) +void UpdateSparkTemplateFileResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Succeeded"].isNull()) + data_.succeeded = dataNode["Succeeded"].asString() == "true"; } +UpdateSparkTemplateFileResult::Data UpdateSparkTemplateFileResult::getData()const +{ + return data_; +} +