diff --git a/VERSION b/VERSION index 4b78655e9..41f17baaa 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1707 \ No newline at end of file +1.36.1708 \ No newline at end of file diff --git a/gpdb/CMakeLists.txt b/gpdb/CMakeLists.txt index ebb8f14ea..64d8b9bb8 100644 --- a/gpdb/CMakeLists.txt +++ b/gpdb/CMakeLists.txt @@ -21,54 +21,102 @@ set(gpdb_public_header include/alibabacloud/gpdb/GpdbExport.h ) set(gpdb_public_header_model - include/alibabacloud/gpdb/model/AddBuDBInstanceRelationRequest.h - include/alibabacloud/gpdb/model/AddBuDBInstanceRelationResult.h include/alibabacloud/gpdb/model/AllocateInstancePublicConnectionRequest.h include/alibabacloud/gpdb/model/AllocateInstancePublicConnectionResult.h include/alibabacloud/gpdb/model/CheckServiceLinkedRoleRequest.h include/alibabacloud/gpdb/model/CheckServiceLinkedRoleResult.h include/alibabacloud/gpdb/model/CreateAccountRequest.h include/alibabacloud/gpdb/model/CreateAccountResult.h + include/alibabacloud/gpdb/model/CreateCollectionRequest.h + include/alibabacloud/gpdb/model/CreateCollectionResult.h include/alibabacloud/gpdb/model/CreateDBInstanceRequest.h include/alibabacloud/gpdb/model/CreateDBInstanceResult.h - include/alibabacloud/gpdb/model/CreateECSDBInstanceRequest.h - include/alibabacloud/gpdb/model/CreateECSDBInstanceResult.h + include/alibabacloud/gpdb/model/CreateDBInstancePlanRequest.h + include/alibabacloud/gpdb/model/CreateDBInstancePlanResult.h + include/alibabacloud/gpdb/model/CreateNamespaceRequest.h + include/alibabacloud/gpdb/model/CreateNamespaceResult.h + include/alibabacloud/gpdb/model/CreateSampleDataRequest.h + include/alibabacloud/gpdb/model/CreateSampleDataResult.h include/alibabacloud/gpdb/model/CreateServiceLinkedRoleRequest.h include/alibabacloud/gpdb/model/CreateServiceLinkedRoleResult.h + include/alibabacloud/gpdb/model/CreateVectorIndexRequest.h + include/alibabacloud/gpdb/model/CreateVectorIndexResult.h + include/alibabacloud/gpdb/model/DeleteCollectionRequest.h + include/alibabacloud/gpdb/model/DeleteCollectionResult.h + include/alibabacloud/gpdb/model/DeleteCollectionDataRequest.h + include/alibabacloud/gpdb/model/DeleteCollectionDataResult.h include/alibabacloud/gpdb/model/DeleteDBInstanceRequest.h include/alibabacloud/gpdb/model/DeleteDBInstanceResult.h - include/alibabacloud/gpdb/model/DeleteDatabaseRequest.h - include/alibabacloud/gpdb/model/DeleteDatabaseResult.h + include/alibabacloud/gpdb/model/DeleteDBInstancePlanRequest.h + include/alibabacloud/gpdb/model/DeleteDBInstancePlanResult.h + include/alibabacloud/gpdb/model/DeleteNamespaceRequest.h + include/alibabacloud/gpdb/model/DeleteNamespaceResult.h + include/alibabacloud/gpdb/model/DeleteVectorIndexRequest.h + include/alibabacloud/gpdb/model/DeleteVectorIndexResult.h include/alibabacloud/gpdb/model/DescribeAccountsRequest.h include/alibabacloud/gpdb/model/DescribeAccountsResult.h include/alibabacloud/gpdb/model/DescribeAvailableResourcesRequest.h include/alibabacloud/gpdb/model/DescribeAvailableResourcesResult.h include/alibabacloud/gpdb/model/DescribeBackupPolicyRequest.h include/alibabacloud/gpdb/model/DescribeBackupPolicyResult.h + include/alibabacloud/gpdb/model/DescribeCollectionRequest.h + include/alibabacloud/gpdb/model/DescribeCollectionResult.h + include/alibabacloud/gpdb/model/DescribeDBClusterNodeRequest.h + include/alibabacloud/gpdb/model/DescribeDBClusterNodeResult.h include/alibabacloud/gpdb/model/DescribeDBClusterPerformanceRequest.h include/alibabacloud/gpdb/model/DescribeDBClusterPerformanceResult.h include/alibabacloud/gpdb/model/DescribeDBInstanceAttributeRequest.h include/alibabacloud/gpdb/model/DescribeDBInstanceAttributeResult.h + include/alibabacloud/gpdb/model/DescribeDBInstanceDataBloatRequest.h + include/alibabacloud/gpdb/model/DescribeDBInstanceDataBloatResult.h + include/alibabacloud/gpdb/model/DescribeDBInstanceDataSkewRequest.h + include/alibabacloud/gpdb/model/DescribeDBInstanceDataSkewResult.h + include/alibabacloud/gpdb/model/DescribeDBInstanceDiagnosisSummaryRequest.h + include/alibabacloud/gpdb/model/DescribeDBInstanceDiagnosisSummaryResult.h + include/alibabacloud/gpdb/model/DescribeDBInstanceErrorLogRequest.h + include/alibabacloud/gpdb/model/DescribeDBInstanceErrorLogResult.h include/alibabacloud/gpdb/model/DescribeDBInstanceIPArrayListRequest.h include/alibabacloud/gpdb/model/DescribeDBInstanceIPArrayListResult.h + include/alibabacloud/gpdb/model/DescribeDBInstanceIndexUsageRequest.h + include/alibabacloud/gpdb/model/DescribeDBInstanceIndexUsageResult.h include/alibabacloud/gpdb/model/DescribeDBInstanceNetInfoRequest.h include/alibabacloud/gpdb/model/DescribeDBInstanceNetInfoResult.h - include/alibabacloud/gpdb/model/DescribeDBInstanceOnECSAttributeRequest.h - include/alibabacloud/gpdb/model/DescribeDBInstanceOnECSAttributeResult.h include/alibabacloud/gpdb/model/DescribeDBInstancePerformanceRequest.h include/alibabacloud/gpdb/model/DescribeDBInstancePerformanceResult.h - include/alibabacloud/gpdb/model/DescribeDBInstanceSQLPatternsRequest.h - include/alibabacloud/gpdb/model/DescribeDBInstanceSQLPatternsResult.h + include/alibabacloud/gpdb/model/DescribeDBInstancePlansRequest.h + include/alibabacloud/gpdb/model/DescribeDBInstancePlansResult.h include/alibabacloud/gpdb/model/DescribeDBInstanceSSLRequest.h include/alibabacloud/gpdb/model/DescribeDBInstanceSSLResult.h include/alibabacloud/gpdb/model/DescribeDBInstancesRequest.h include/alibabacloud/gpdb/model/DescribeDBInstancesResult.h include/alibabacloud/gpdb/model/DescribeDataBackupsRequest.h include/alibabacloud/gpdb/model/DescribeDataBackupsResult.h + include/alibabacloud/gpdb/model/DescribeDataReDistributeInfoRequest.h + include/alibabacloud/gpdb/model/DescribeDataReDistributeInfoResult.h + include/alibabacloud/gpdb/model/DescribeDataShareInstancesRequest.h + include/alibabacloud/gpdb/model/DescribeDataShareInstancesResult.h + include/alibabacloud/gpdb/model/DescribeDataSharePerformanceRequest.h + include/alibabacloud/gpdb/model/DescribeDataSharePerformanceResult.h + include/alibabacloud/gpdb/model/DescribeDiagnosisDimensionsRequest.h + include/alibabacloud/gpdb/model/DescribeDiagnosisDimensionsResult.h + include/alibabacloud/gpdb/model/DescribeDiagnosisMonitorPerformanceRequest.h + include/alibabacloud/gpdb/model/DescribeDiagnosisMonitorPerformanceResult.h + include/alibabacloud/gpdb/model/DescribeDiagnosisRecordsRequest.h + include/alibabacloud/gpdb/model/DescribeDiagnosisRecordsResult.h + include/alibabacloud/gpdb/model/DescribeDiagnosisSQLInfoRequest.h + include/alibabacloud/gpdb/model/DescribeDiagnosisSQLInfoResult.h + include/alibabacloud/gpdb/model/DescribeDownloadRecordsRequest.h + include/alibabacloud/gpdb/model/DescribeDownloadRecordsResult.h + include/alibabacloud/gpdb/model/DescribeDownloadSQLLogsRequest.h + include/alibabacloud/gpdb/model/DescribeDownloadSQLLogsResult.h + include/alibabacloud/gpdb/model/DescribeHealthStatusRequest.h + include/alibabacloud/gpdb/model/DescribeHealthStatusResult.h include/alibabacloud/gpdb/model/DescribeLogBackupsRequest.h include/alibabacloud/gpdb/model/DescribeLogBackupsResult.h include/alibabacloud/gpdb/model/DescribeModifyParameterLogRequest.h include/alibabacloud/gpdb/model/DescribeModifyParameterLogResult.h + include/alibabacloud/gpdb/model/DescribeNamespaceRequest.h + include/alibabacloud/gpdb/model/DescribeNamespaceResult.h include/alibabacloud/gpdb/model/DescribeParametersRequest.h include/alibabacloud/gpdb/model/DescribeParametersResult.h include/alibabacloud/gpdb/model/DescribeRdsVSwitchsRequest.h @@ -77,48 +125,50 @@ set(gpdb_public_header_model include/alibabacloud/gpdb/model/DescribeRdsVpcsResult.h include/alibabacloud/gpdb/model/DescribeRegionsRequest.h include/alibabacloud/gpdb/model/DescribeRegionsResult.h - include/alibabacloud/gpdb/model/DescribeResourceUsageRequest.h - include/alibabacloud/gpdb/model/DescribeResourceUsageResult.h - include/alibabacloud/gpdb/model/DescribeSQLCollectorPolicyRequest.h - include/alibabacloud/gpdb/model/DescribeSQLCollectorPolicyResult.h - include/alibabacloud/gpdb/model/DescribeSQLLogByQueryIdRequest.h - include/alibabacloud/gpdb/model/DescribeSQLLogByQueryIdResult.h include/alibabacloud/gpdb/model/DescribeSQLLogCountRequest.h include/alibabacloud/gpdb/model/DescribeSQLLogCountResult.h - include/alibabacloud/gpdb/model/DescribeSQLLogFilesRequest.h - include/alibabacloud/gpdb/model/DescribeSQLLogFilesResult.h - include/alibabacloud/gpdb/model/DescribeSQLLogRecordsRequest.h - include/alibabacloud/gpdb/model/DescribeSQLLogRecordsResult.h - include/alibabacloud/gpdb/model/DescribeSQLLogsRequest.h - include/alibabacloud/gpdb/model/DescribeSQLLogsResult.h - include/alibabacloud/gpdb/model/DescribeSQLLogsOnSliceRequest.h - include/alibabacloud/gpdb/model/DescribeSQLLogsOnSliceResult.h - include/alibabacloud/gpdb/model/DescribeSlowLogRecordsRequest.h - include/alibabacloud/gpdb/model/DescribeSlowLogRecordsResult.h - include/alibabacloud/gpdb/model/DescribeSlowSQLLogsRequest.h - include/alibabacloud/gpdb/model/DescribeSlowSQLLogsResult.h - include/alibabacloud/gpdb/model/DescribeSpecificationRequest.h - include/alibabacloud/gpdb/model/DescribeSpecificationResult.h + include/alibabacloud/gpdb/model/DescribeSQLLogsV2Request.h + include/alibabacloud/gpdb/model/DescribeSQLLogsV2Result.h + include/alibabacloud/gpdb/model/DescribeSampleDataRequest.h + include/alibabacloud/gpdb/model/DescribeSampleDataResult.h + include/alibabacloud/gpdb/model/DescribeSupportFeaturesRequest.h + include/alibabacloud/gpdb/model/DescribeSupportFeaturesResult.h include/alibabacloud/gpdb/model/DescribeTagsRequest.h include/alibabacloud/gpdb/model/DescribeTagsResult.h include/alibabacloud/gpdb/model/DescribeUserEncryptionKeyListRequest.h include/alibabacloud/gpdb/model/DescribeUserEncryptionKeyListResult.h + include/alibabacloud/gpdb/model/DescribeWaitingSQLInfoRequest.h + include/alibabacloud/gpdb/model/DescribeWaitingSQLInfoResult.h + include/alibabacloud/gpdb/model/DescribeWaitingSQLRecordsRequest.h + include/alibabacloud/gpdb/model/DescribeWaitingSQLRecordsResult.h + include/alibabacloud/gpdb/model/DownloadDiagnosisRecordsRequest.h + include/alibabacloud/gpdb/model/DownloadDiagnosisRecordsResult.h + include/alibabacloud/gpdb/model/DownloadSQLLogsRecordsRequest.h + include/alibabacloud/gpdb/model/DownloadSQLLogsRecordsResult.h + include/alibabacloud/gpdb/model/GrantCollectionRequest.h + include/alibabacloud/gpdb/model/GrantCollectionResult.h + include/alibabacloud/gpdb/model/InitVectorDatabaseRequest.h + include/alibabacloud/gpdb/model/InitVectorDatabaseResult.h + include/alibabacloud/gpdb/model/ListCollectionsRequest.h + include/alibabacloud/gpdb/model/ListCollectionsResult.h + include/alibabacloud/gpdb/model/ListNamespacesRequest.h + include/alibabacloud/gpdb/model/ListNamespacesResult.h include/alibabacloud/gpdb/model/ListTagResourcesRequest.h include/alibabacloud/gpdb/model/ListTagResourcesResult.h include/alibabacloud/gpdb/model/ModifyAccountDescriptionRequest.h include/alibabacloud/gpdb/model/ModifyAccountDescriptionResult.h include/alibabacloud/gpdb/model/ModifyBackupPolicyRequest.h include/alibabacloud/gpdb/model/ModifyBackupPolicyResult.h - include/alibabacloud/gpdb/model/ModifyDBInstanceConnectionModeRequest.h - include/alibabacloud/gpdb/model/ModifyDBInstanceConnectionModeResult.h + include/alibabacloud/gpdb/model/ModifyDBInstanceConfigRequest.h + include/alibabacloud/gpdb/model/ModifyDBInstanceConfigResult.h include/alibabacloud/gpdb/model/ModifyDBInstanceConnectionStringRequest.h include/alibabacloud/gpdb/model/ModifyDBInstanceConnectionStringResult.h include/alibabacloud/gpdb/model/ModifyDBInstanceDescriptionRequest.h include/alibabacloud/gpdb/model/ModifyDBInstanceDescriptionResult.h include/alibabacloud/gpdb/model/ModifyDBInstanceMaintainTimeRequest.h include/alibabacloud/gpdb/model/ModifyDBInstanceMaintainTimeResult.h - include/alibabacloud/gpdb/model/ModifyDBInstanceNetworkTypeRequest.h - include/alibabacloud/gpdb/model/ModifyDBInstanceNetworkTypeResult.h + include/alibabacloud/gpdb/model/ModifyDBInstanceResourceGroupRequest.h + include/alibabacloud/gpdb/model/ModifyDBInstanceResourceGroupResult.h include/alibabacloud/gpdb/model/ModifyDBInstanceSSLRequest.h include/alibabacloud/gpdb/model/ModifyDBInstanceSSLResult.h include/alibabacloud/gpdb/model/ModifyParametersRequest.h @@ -127,73 +177,141 @@ set(gpdb_public_header_model include/alibabacloud/gpdb/model/ModifySQLCollectorPolicyResult.h include/alibabacloud/gpdb/model/ModifySecurityIpsRequest.h include/alibabacloud/gpdb/model/ModifySecurityIpsResult.h + include/alibabacloud/gpdb/model/ModifyVectorConfigurationRequest.h + include/alibabacloud/gpdb/model/ModifyVectorConfigurationResult.h + include/alibabacloud/gpdb/model/PauseInstanceRequest.h + include/alibabacloud/gpdb/model/PauseInstanceResult.h + include/alibabacloud/gpdb/model/QueryCollectionDataRequest.h + include/alibabacloud/gpdb/model/QueryCollectionDataResult.h + include/alibabacloud/gpdb/model/RebalanceDBInstanceRequest.h + include/alibabacloud/gpdb/model/RebalanceDBInstanceResult.h include/alibabacloud/gpdb/model/ReleaseInstancePublicConnectionRequest.h include/alibabacloud/gpdb/model/ReleaseInstancePublicConnectionResult.h include/alibabacloud/gpdb/model/ResetAccountPasswordRequest.h include/alibabacloud/gpdb/model/ResetAccountPasswordResult.h include/alibabacloud/gpdb/model/RestartDBInstanceRequest.h include/alibabacloud/gpdb/model/RestartDBInstanceResult.h + include/alibabacloud/gpdb/model/ResumeInstanceRequest.h + include/alibabacloud/gpdb/model/ResumeInstanceResult.h + include/alibabacloud/gpdb/model/SetDBInstancePlanStatusRequest.h + include/alibabacloud/gpdb/model/SetDBInstancePlanStatusResult.h + include/alibabacloud/gpdb/model/SetDataShareInstanceRequest.h + include/alibabacloud/gpdb/model/SetDataShareInstanceResult.h include/alibabacloud/gpdb/model/SwitchDBInstanceNetTypeRequest.h include/alibabacloud/gpdb/model/SwitchDBInstanceNetTypeResult.h include/alibabacloud/gpdb/model/TagResourcesRequest.h include/alibabacloud/gpdb/model/TagResourcesResult.h + include/alibabacloud/gpdb/model/UnloadSampleDataRequest.h + include/alibabacloud/gpdb/model/UnloadSampleDataResult.h include/alibabacloud/gpdb/model/UntagResourcesRequest.h include/alibabacloud/gpdb/model/UntagResourcesResult.h + include/alibabacloud/gpdb/model/UpdateDBInstancePlanRequest.h + include/alibabacloud/gpdb/model/UpdateDBInstancePlanResult.h include/alibabacloud/gpdb/model/UpgradeDBInstanceRequest.h include/alibabacloud/gpdb/model/UpgradeDBInstanceResult.h include/alibabacloud/gpdb/model/UpgradeDBVersionRequest.h - include/alibabacloud/gpdb/model/UpgradeDBVersionResult.h ) + include/alibabacloud/gpdb/model/UpgradeDBVersionResult.h + include/alibabacloud/gpdb/model/UpsertCollectionDataRequest.h + include/alibabacloud/gpdb/model/UpsertCollectionDataResult.h ) set(gpdb_src src/GpdbClient.cc - src/model/AddBuDBInstanceRelationRequest.cc - src/model/AddBuDBInstanceRelationResult.cc src/model/AllocateInstancePublicConnectionRequest.cc src/model/AllocateInstancePublicConnectionResult.cc src/model/CheckServiceLinkedRoleRequest.cc src/model/CheckServiceLinkedRoleResult.cc src/model/CreateAccountRequest.cc src/model/CreateAccountResult.cc + src/model/CreateCollectionRequest.cc + src/model/CreateCollectionResult.cc src/model/CreateDBInstanceRequest.cc src/model/CreateDBInstanceResult.cc - src/model/CreateECSDBInstanceRequest.cc - src/model/CreateECSDBInstanceResult.cc + src/model/CreateDBInstancePlanRequest.cc + src/model/CreateDBInstancePlanResult.cc + src/model/CreateNamespaceRequest.cc + src/model/CreateNamespaceResult.cc + src/model/CreateSampleDataRequest.cc + src/model/CreateSampleDataResult.cc src/model/CreateServiceLinkedRoleRequest.cc src/model/CreateServiceLinkedRoleResult.cc + src/model/CreateVectorIndexRequest.cc + src/model/CreateVectorIndexResult.cc + src/model/DeleteCollectionRequest.cc + src/model/DeleteCollectionResult.cc + src/model/DeleteCollectionDataRequest.cc + src/model/DeleteCollectionDataResult.cc src/model/DeleteDBInstanceRequest.cc src/model/DeleteDBInstanceResult.cc - src/model/DeleteDatabaseRequest.cc - src/model/DeleteDatabaseResult.cc + src/model/DeleteDBInstancePlanRequest.cc + src/model/DeleteDBInstancePlanResult.cc + src/model/DeleteNamespaceRequest.cc + src/model/DeleteNamespaceResult.cc + src/model/DeleteVectorIndexRequest.cc + src/model/DeleteVectorIndexResult.cc src/model/DescribeAccountsRequest.cc src/model/DescribeAccountsResult.cc src/model/DescribeAvailableResourcesRequest.cc src/model/DescribeAvailableResourcesResult.cc src/model/DescribeBackupPolicyRequest.cc src/model/DescribeBackupPolicyResult.cc + src/model/DescribeCollectionRequest.cc + src/model/DescribeCollectionResult.cc + src/model/DescribeDBClusterNodeRequest.cc + src/model/DescribeDBClusterNodeResult.cc src/model/DescribeDBClusterPerformanceRequest.cc src/model/DescribeDBClusterPerformanceResult.cc src/model/DescribeDBInstanceAttributeRequest.cc src/model/DescribeDBInstanceAttributeResult.cc + src/model/DescribeDBInstanceDataBloatRequest.cc + src/model/DescribeDBInstanceDataBloatResult.cc + src/model/DescribeDBInstanceDataSkewRequest.cc + src/model/DescribeDBInstanceDataSkewResult.cc + src/model/DescribeDBInstanceDiagnosisSummaryRequest.cc + src/model/DescribeDBInstanceDiagnosisSummaryResult.cc + src/model/DescribeDBInstanceErrorLogRequest.cc + src/model/DescribeDBInstanceErrorLogResult.cc src/model/DescribeDBInstanceIPArrayListRequest.cc src/model/DescribeDBInstanceIPArrayListResult.cc + src/model/DescribeDBInstanceIndexUsageRequest.cc + src/model/DescribeDBInstanceIndexUsageResult.cc src/model/DescribeDBInstanceNetInfoRequest.cc src/model/DescribeDBInstanceNetInfoResult.cc - src/model/DescribeDBInstanceOnECSAttributeRequest.cc - src/model/DescribeDBInstanceOnECSAttributeResult.cc src/model/DescribeDBInstancePerformanceRequest.cc src/model/DescribeDBInstancePerformanceResult.cc - src/model/DescribeDBInstanceSQLPatternsRequest.cc - src/model/DescribeDBInstanceSQLPatternsResult.cc + src/model/DescribeDBInstancePlansRequest.cc + src/model/DescribeDBInstancePlansResult.cc src/model/DescribeDBInstanceSSLRequest.cc src/model/DescribeDBInstanceSSLResult.cc src/model/DescribeDBInstancesRequest.cc src/model/DescribeDBInstancesResult.cc src/model/DescribeDataBackupsRequest.cc src/model/DescribeDataBackupsResult.cc + src/model/DescribeDataReDistributeInfoRequest.cc + src/model/DescribeDataReDistributeInfoResult.cc + src/model/DescribeDataShareInstancesRequest.cc + src/model/DescribeDataShareInstancesResult.cc + src/model/DescribeDataSharePerformanceRequest.cc + src/model/DescribeDataSharePerformanceResult.cc + src/model/DescribeDiagnosisDimensionsRequest.cc + src/model/DescribeDiagnosisDimensionsResult.cc + src/model/DescribeDiagnosisMonitorPerformanceRequest.cc + src/model/DescribeDiagnosisMonitorPerformanceResult.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/DescribeDownloadSQLLogsRequest.cc + src/model/DescribeDownloadSQLLogsResult.cc + src/model/DescribeHealthStatusRequest.cc + src/model/DescribeHealthStatusResult.cc src/model/DescribeLogBackupsRequest.cc src/model/DescribeLogBackupsResult.cc src/model/DescribeModifyParameterLogRequest.cc src/model/DescribeModifyParameterLogResult.cc + src/model/DescribeNamespaceRequest.cc + src/model/DescribeNamespaceResult.cc src/model/DescribeParametersRequest.cc src/model/DescribeParametersResult.cc src/model/DescribeRdsVSwitchsRequest.cc @@ -202,48 +320,50 @@ set(gpdb_src src/model/DescribeRdsVpcsResult.cc src/model/DescribeRegionsRequest.cc src/model/DescribeRegionsResult.cc - src/model/DescribeResourceUsageRequest.cc - src/model/DescribeResourceUsageResult.cc - src/model/DescribeSQLCollectorPolicyRequest.cc - src/model/DescribeSQLCollectorPolicyResult.cc - src/model/DescribeSQLLogByQueryIdRequest.cc - src/model/DescribeSQLLogByQueryIdResult.cc src/model/DescribeSQLLogCountRequest.cc src/model/DescribeSQLLogCountResult.cc - src/model/DescribeSQLLogFilesRequest.cc - src/model/DescribeSQLLogFilesResult.cc - src/model/DescribeSQLLogRecordsRequest.cc - src/model/DescribeSQLLogRecordsResult.cc - src/model/DescribeSQLLogsRequest.cc - src/model/DescribeSQLLogsResult.cc - src/model/DescribeSQLLogsOnSliceRequest.cc - src/model/DescribeSQLLogsOnSliceResult.cc - src/model/DescribeSlowLogRecordsRequest.cc - src/model/DescribeSlowLogRecordsResult.cc - src/model/DescribeSlowSQLLogsRequest.cc - src/model/DescribeSlowSQLLogsResult.cc - src/model/DescribeSpecificationRequest.cc - src/model/DescribeSpecificationResult.cc + src/model/DescribeSQLLogsV2Request.cc + src/model/DescribeSQLLogsV2Result.cc + src/model/DescribeSampleDataRequest.cc + src/model/DescribeSampleDataResult.cc + src/model/DescribeSupportFeaturesRequest.cc + src/model/DescribeSupportFeaturesResult.cc src/model/DescribeTagsRequest.cc src/model/DescribeTagsResult.cc src/model/DescribeUserEncryptionKeyListRequest.cc src/model/DescribeUserEncryptionKeyListResult.cc + src/model/DescribeWaitingSQLInfoRequest.cc + src/model/DescribeWaitingSQLInfoResult.cc + src/model/DescribeWaitingSQLRecordsRequest.cc + src/model/DescribeWaitingSQLRecordsResult.cc + src/model/DownloadDiagnosisRecordsRequest.cc + src/model/DownloadDiagnosisRecordsResult.cc + src/model/DownloadSQLLogsRecordsRequest.cc + src/model/DownloadSQLLogsRecordsResult.cc + src/model/GrantCollectionRequest.cc + src/model/GrantCollectionResult.cc + src/model/InitVectorDatabaseRequest.cc + src/model/InitVectorDatabaseResult.cc + src/model/ListCollectionsRequest.cc + src/model/ListCollectionsResult.cc + src/model/ListNamespacesRequest.cc + src/model/ListNamespacesResult.cc src/model/ListTagResourcesRequest.cc src/model/ListTagResourcesResult.cc src/model/ModifyAccountDescriptionRequest.cc src/model/ModifyAccountDescriptionResult.cc src/model/ModifyBackupPolicyRequest.cc src/model/ModifyBackupPolicyResult.cc - src/model/ModifyDBInstanceConnectionModeRequest.cc - src/model/ModifyDBInstanceConnectionModeResult.cc + src/model/ModifyDBInstanceConfigRequest.cc + src/model/ModifyDBInstanceConfigResult.cc src/model/ModifyDBInstanceConnectionStringRequest.cc src/model/ModifyDBInstanceConnectionStringResult.cc src/model/ModifyDBInstanceDescriptionRequest.cc src/model/ModifyDBInstanceDescriptionResult.cc src/model/ModifyDBInstanceMaintainTimeRequest.cc src/model/ModifyDBInstanceMaintainTimeResult.cc - src/model/ModifyDBInstanceNetworkTypeRequest.cc - src/model/ModifyDBInstanceNetworkTypeResult.cc + src/model/ModifyDBInstanceResourceGroupRequest.cc + src/model/ModifyDBInstanceResourceGroupResult.cc src/model/ModifyDBInstanceSSLRequest.cc src/model/ModifyDBInstanceSSLResult.cc src/model/ModifyParametersRequest.cc @@ -252,22 +372,42 @@ set(gpdb_src src/model/ModifySQLCollectorPolicyResult.cc src/model/ModifySecurityIpsRequest.cc src/model/ModifySecurityIpsResult.cc + src/model/ModifyVectorConfigurationRequest.cc + src/model/ModifyVectorConfigurationResult.cc + src/model/PauseInstanceRequest.cc + src/model/PauseInstanceResult.cc + src/model/QueryCollectionDataRequest.cc + src/model/QueryCollectionDataResult.cc + src/model/RebalanceDBInstanceRequest.cc + src/model/RebalanceDBInstanceResult.cc src/model/ReleaseInstancePublicConnectionRequest.cc src/model/ReleaseInstancePublicConnectionResult.cc src/model/ResetAccountPasswordRequest.cc src/model/ResetAccountPasswordResult.cc src/model/RestartDBInstanceRequest.cc src/model/RestartDBInstanceResult.cc + src/model/ResumeInstanceRequest.cc + src/model/ResumeInstanceResult.cc + src/model/SetDBInstancePlanStatusRequest.cc + src/model/SetDBInstancePlanStatusResult.cc + src/model/SetDataShareInstanceRequest.cc + src/model/SetDataShareInstanceResult.cc src/model/SwitchDBInstanceNetTypeRequest.cc src/model/SwitchDBInstanceNetTypeResult.cc src/model/TagResourcesRequest.cc src/model/TagResourcesResult.cc + src/model/UnloadSampleDataRequest.cc + src/model/UnloadSampleDataResult.cc src/model/UntagResourcesRequest.cc src/model/UntagResourcesResult.cc + src/model/UpdateDBInstancePlanRequest.cc + src/model/UpdateDBInstancePlanResult.cc src/model/UpgradeDBInstanceRequest.cc src/model/UpgradeDBInstanceResult.cc src/model/UpgradeDBVersionRequest.cc - src/model/UpgradeDBVersionResult.cc ) + src/model/UpgradeDBVersionResult.cc + src/model/UpsertCollectionDataRequest.cc + src/model/UpsertCollectionDataResult.cc ) add_library(gpdb ${LIB_TYPE} ${gpdb_public_header} diff --git a/gpdb/include/alibabacloud/gpdb/GpdbClient.h b/gpdb/include/alibabacloud/gpdb/GpdbClient.h index 18494431a..737097d83 100644 --- a/gpdb/include/alibabacloud/gpdb/GpdbClient.h +++ b/gpdb/include/alibabacloud/gpdb/GpdbClient.h @@ -22,54 +22,102 @@ #include #include #include "GpdbExport.h" -#include "model/AddBuDBInstanceRelationRequest.h" -#include "model/AddBuDBInstanceRelationResult.h" #include "model/AllocateInstancePublicConnectionRequest.h" #include "model/AllocateInstancePublicConnectionResult.h" #include "model/CheckServiceLinkedRoleRequest.h" #include "model/CheckServiceLinkedRoleResult.h" #include "model/CreateAccountRequest.h" #include "model/CreateAccountResult.h" +#include "model/CreateCollectionRequest.h" +#include "model/CreateCollectionResult.h" #include "model/CreateDBInstanceRequest.h" #include "model/CreateDBInstanceResult.h" -#include "model/CreateECSDBInstanceRequest.h" -#include "model/CreateECSDBInstanceResult.h" +#include "model/CreateDBInstancePlanRequest.h" +#include "model/CreateDBInstancePlanResult.h" +#include "model/CreateNamespaceRequest.h" +#include "model/CreateNamespaceResult.h" +#include "model/CreateSampleDataRequest.h" +#include "model/CreateSampleDataResult.h" #include "model/CreateServiceLinkedRoleRequest.h" #include "model/CreateServiceLinkedRoleResult.h" +#include "model/CreateVectorIndexRequest.h" +#include "model/CreateVectorIndexResult.h" +#include "model/DeleteCollectionRequest.h" +#include "model/DeleteCollectionResult.h" +#include "model/DeleteCollectionDataRequest.h" +#include "model/DeleteCollectionDataResult.h" #include "model/DeleteDBInstanceRequest.h" #include "model/DeleteDBInstanceResult.h" -#include "model/DeleteDatabaseRequest.h" -#include "model/DeleteDatabaseResult.h" +#include "model/DeleteDBInstancePlanRequest.h" +#include "model/DeleteDBInstancePlanResult.h" +#include "model/DeleteNamespaceRequest.h" +#include "model/DeleteNamespaceResult.h" +#include "model/DeleteVectorIndexRequest.h" +#include "model/DeleteVectorIndexResult.h" #include "model/DescribeAccountsRequest.h" #include "model/DescribeAccountsResult.h" #include "model/DescribeAvailableResourcesRequest.h" #include "model/DescribeAvailableResourcesResult.h" #include "model/DescribeBackupPolicyRequest.h" #include "model/DescribeBackupPolicyResult.h" +#include "model/DescribeCollectionRequest.h" +#include "model/DescribeCollectionResult.h" +#include "model/DescribeDBClusterNodeRequest.h" +#include "model/DescribeDBClusterNodeResult.h" #include "model/DescribeDBClusterPerformanceRequest.h" #include "model/DescribeDBClusterPerformanceResult.h" #include "model/DescribeDBInstanceAttributeRequest.h" #include "model/DescribeDBInstanceAttributeResult.h" +#include "model/DescribeDBInstanceDataBloatRequest.h" +#include "model/DescribeDBInstanceDataBloatResult.h" +#include "model/DescribeDBInstanceDataSkewRequest.h" +#include "model/DescribeDBInstanceDataSkewResult.h" +#include "model/DescribeDBInstanceDiagnosisSummaryRequest.h" +#include "model/DescribeDBInstanceDiagnosisSummaryResult.h" +#include "model/DescribeDBInstanceErrorLogRequest.h" +#include "model/DescribeDBInstanceErrorLogResult.h" #include "model/DescribeDBInstanceIPArrayListRequest.h" #include "model/DescribeDBInstanceIPArrayListResult.h" +#include "model/DescribeDBInstanceIndexUsageRequest.h" +#include "model/DescribeDBInstanceIndexUsageResult.h" #include "model/DescribeDBInstanceNetInfoRequest.h" #include "model/DescribeDBInstanceNetInfoResult.h" -#include "model/DescribeDBInstanceOnECSAttributeRequest.h" -#include "model/DescribeDBInstanceOnECSAttributeResult.h" #include "model/DescribeDBInstancePerformanceRequest.h" #include "model/DescribeDBInstancePerformanceResult.h" -#include "model/DescribeDBInstanceSQLPatternsRequest.h" -#include "model/DescribeDBInstanceSQLPatternsResult.h" +#include "model/DescribeDBInstancePlansRequest.h" +#include "model/DescribeDBInstancePlansResult.h" #include "model/DescribeDBInstanceSSLRequest.h" #include "model/DescribeDBInstanceSSLResult.h" #include "model/DescribeDBInstancesRequest.h" #include "model/DescribeDBInstancesResult.h" #include "model/DescribeDataBackupsRequest.h" #include "model/DescribeDataBackupsResult.h" +#include "model/DescribeDataReDistributeInfoRequest.h" +#include "model/DescribeDataReDistributeInfoResult.h" +#include "model/DescribeDataShareInstancesRequest.h" +#include "model/DescribeDataShareInstancesResult.h" +#include "model/DescribeDataSharePerformanceRequest.h" +#include "model/DescribeDataSharePerformanceResult.h" +#include "model/DescribeDiagnosisDimensionsRequest.h" +#include "model/DescribeDiagnosisDimensionsResult.h" +#include "model/DescribeDiagnosisMonitorPerformanceRequest.h" +#include "model/DescribeDiagnosisMonitorPerformanceResult.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/DescribeDownloadSQLLogsRequest.h" +#include "model/DescribeDownloadSQLLogsResult.h" +#include "model/DescribeHealthStatusRequest.h" +#include "model/DescribeHealthStatusResult.h" #include "model/DescribeLogBackupsRequest.h" #include "model/DescribeLogBackupsResult.h" #include "model/DescribeModifyParameterLogRequest.h" #include "model/DescribeModifyParameterLogResult.h" +#include "model/DescribeNamespaceRequest.h" +#include "model/DescribeNamespaceResult.h" #include "model/DescribeParametersRequest.h" #include "model/DescribeParametersResult.h" #include "model/DescribeRdsVSwitchsRequest.h" @@ -78,48 +126,50 @@ #include "model/DescribeRdsVpcsResult.h" #include "model/DescribeRegionsRequest.h" #include "model/DescribeRegionsResult.h" -#include "model/DescribeResourceUsageRequest.h" -#include "model/DescribeResourceUsageResult.h" -#include "model/DescribeSQLCollectorPolicyRequest.h" -#include "model/DescribeSQLCollectorPolicyResult.h" -#include "model/DescribeSQLLogByQueryIdRequest.h" -#include "model/DescribeSQLLogByQueryIdResult.h" #include "model/DescribeSQLLogCountRequest.h" #include "model/DescribeSQLLogCountResult.h" -#include "model/DescribeSQLLogFilesRequest.h" -#include "model/DescribeSQLLogFilesResult.h" -#include "model/DescribeSQLLogRecordsRequest.h" -#include "model/DescribeSQLLogRecordsResult.h" -#include "model/DescribeSQLLogsRequest.h" -#include "model/DescribeSQLLogsResult.h" -#include "model/DescribeSQLLogsOnSliceRequest.h" -#include "model/DescribeSQLLogsOnSliceResult.h" -#include "model/DescribeSlowLogRecordsRequest.h" -#include "model/DescribeSlowLogRecordsResult.h" -#include "model/DescribeSlowSQLLogsRequest.h" -#include "model/DescribeSlowSQLLogsResult.h" -#include "model/DescribeSpecificationRequest.h" -#include "model/DescribeSpecificationResult.h" +#include "model/DescribeSQLLogsV2Request.h" +#include "model/DescribeSQLLogsV2Result.h" +#include "model/DescribeSampleDataRequest.h" +#include "model/DescribeSampleDataResult.h" +#include "model/DescribeSupportFeaturesRequest.h" +#include "model/DescribeSupportFeaturesResult.h" #include "model/DescribeTagsRequest.h" #include "model/DescribeTagsResult.h" #include "model/DescribeUserEncryptionKeyListRequest.h" #include "model/DescribeUserEncryptionKeyListResult.h" +#include "model/DescribeWaitingSQLInfoRequest.h" +#include "model/DescribeWaitingSQLInfoResult.h" +#include "model/DescribeWaitingSQLRecordsRequest.h" +#include "model/DescribeWaitingSQLRecordsResult.h" +#include "model/DownloadDiagnosisRecordsRequest.h" +#include "model/DownloadDiagnosisRecordsResult.h" +#include "model/DownloadSQLLogsRecordsRequest.h" +#include "model/DownloadSQLLogsRecordsResult.h" +#include "model/GrantCollectionRequest.h" +#include "model/GrantCollectionResult.h" +#include "model/InitVectorDatabaseRequest.h" +#include "model/InitVectorDatabaseResult.h" +#include "model/ListCollectionsRequest.h" +#include "model/ListCollectionsResult.h" +#include "model/ListNamespacesRequest.h" +#include "model/ListNamespacesResult.h" #include "model/ListTagResourcesRequest.h" #include "model/ListTagResourcesResult.h" #include "model/ModifyAccountDescriptionRequest.h" #include "model/ModifyAccountDescriptionResult.h" #include "model/ModifyBackupPolicyRequest.h" #include "model/ModifyBackupPolicyResult.h" -#include "model/ModifyDBInstanceConnectionModeRequest.h" -#include "model/ModifyDBInstanceConnectionModeResult.h" +#include "model/ModifyDBInstanceConfigRequest.h" +#include "model/ModifyDBInstanceConfigResult.h" #include "model/ModifyDBInstanceConnectionStringRequest.h" #include "model/ModifyDBInstanceConnectionStringResult.h" #include "model/ModifyDBInstanceDescriptionRequest.h" #include "model/ModifyDBInstanceDescriptionResult.h" #include "model/ModifyDBInstanceMaintainTimeRequest.h" #include "model/ModifyDBInstanceMaintainTimeResult.h" -#include "model/ModifyDBInstanceNetworkTypeRequest.h" -#include "model/ModifyDBInstanceNetworkTypeResult.h" +#include "model/ModifyDBInstanceResourceGroupRequest.h" +#include "model/ModifyDBInstanceResourceGroupResult.h" #include "model/ModifyDBInstanceSSLRequest.h" #include "model/ModifyDBInstanceSSLResult.h" #include "model/ModifyParametersRequest.h" @@ -128,22 +178,42 @@ #include "model/ModifySQLCollectorPolicyResult.h" #include "model/ModifySecurityIpsRequest.h" #include "model/ModifySecurityIpsResult.h" +#include "model/ModifyVectorConfigurationRequest.h" +#include "model/ModifyVectorConfigurationResult.h" +#include "model/PauseInstanceRequest.h" +#include "model/PauseInstanceResult.h" +#include "model/QueryCollectionDataRequest.h" +#include "model/QueryCollectionDataResult.h" +#include "model/RebalanceDBInstanceRequest.h" +#include "model/RebalanceDBInstanceResult.h" #include "model/ReleaseInstancePublicConnectionRequest.h" #include "model/ReleaseInstancePublicConnectionResult.h" #include "model/ResetAccountPasswordRequest.h" #include "model/ResetAccountPasswordResult.h" #include "model/RestartDBInstanceRequest.h" #include "model/RestartDBInstanceResult.h" +#include "model/ResumeInstanceRequest.h" +#include "model/ResumeInstanceResult.h" +#include "model/SetDBInstancePlanStatusRequest.h" +#include "model/SetDBInstancePlanStatusResult.h" +#include "model/SetDataShareInstanceRequest.h" +#include "model/SetDataShareInstanceResult.h" #include "model/SwitchDBInstanceNetTypeRequest.h" #include "model/SwitchDBInstanceNetTypeResult.h" #include "model/TagResourcesRequest.h" #include "model/TagResourcesResult.h" +#include "model/UnloadSampleDataRequest.h" +#include "model/UnloadSampleDataResult.h" #include "model/UntagResourcesRequest.h" #include "model/UntagResourcesResult.h" +#include "model/UpdateDBInstancePlanRequest.h" +#include "model/UpdateDBInstancePlanResult.h" #include "model/UpgradeDBInstanceRequest.h" #include "model/UpgradeDBInstanceResult.h" #include "model/UpgradeDBVersionRequest.h" #include "model/UpgradeDBVersionResult.h" +#include "model/UpsertCollectionDataRequest.h" +#include "model/UpsertCollectionDataResult.h" namespace AlibabaCloud @@ -153,9 +223,6 @@ namespace AlibabaCloud class ALIBABACLOUD_GPDB_EXPORT GpdbClient : public RpcServiceClient { public: - typedef Outcome AddBuDBInstanceRelationOutcome; - typedef std::future AddBuDBInstanceRelationOutcomeCallable; - typedef std::function&)> AddBuDBInstanceRelationAsyncHandler; typedef Outcome AllocateInstancePublicConnectionOutcome; typedef std::future AllocateInstancePublicConnectionOutcomeCallable; typedef std::function&)> AllocateInstancePublicConnectionAsyncHandler; @@ -165,21 +232,45 @@ namespace AlibabaCloud typedef Outcome CreateAccountOutcome; typedef std::future CreateAccountOutcomeCallable; typedef std::function&)> CreateAccountAsyncHandler; + typedef Outcome CreateCollectionOutcome; + typedef std::future CreateCollectionOutcomeCallable; + typedef std::function&)> CreateCollectionAsyncHandler; typedef Outcome CreateDBInstanceOutcome; typedef std::future CreateDBInstanceOutcomeCallable; typedef std::function&)> CreateDBInstanceAsyncHandler; - typedef Outcome CreateECSDBInstanceOutcome; - typedef std::future CreateECSDBInstanceOutcomeCallable; - typedef std::function&)> CreateECSDBInstanceAsyncHandler; + typedef Outcome CreateDBInstancePlanOutcome; + typedef std::future CreateDBInstancePlanOutcomeCallable; + typedef std::function&)> CreateDBInstancePlanAsyncHandler; + typedef Outcome CreateNamespaceOutcome; + typedef std::future CreateNamespaceOutcomeCallable; + typedef std::function&)> CreateNamespaceAsyncHandler; + typedef Outcome CreateSampleDataOutcome; + typedef std::future CreateSampleDataOutcomeCallable; + typedef std::function&)> CreateSampleDataAsyncHandler; typedef Outcome CreateServiceLinkedRoleOutcome; typedef std::future CreateServiceLinkedRoleOutcomeCallable; typedef std::function&)> CreateServiceLinkedRoleAsyncHandler; + typedef Outcome CreateVectorIndexOutcome; + typedef std::future CreateVectorIndexOutcomeCallable; + typedef std::function&)> CreateVectorIndexAsyncHandler; + typedef Outcome DeleteCollectionOutcome; + typedef std::future DeleteCollectionOutcomeCallable; + typedef std::function&)> DeleteCollectionAsyncHandler; + typedef Outcome DeleteCollectionDataOutcome; + typedef std::future DeleteCollectionDataOutcomeCallable; + typedef std::function&)> DeleteCollectionDataAsyncHandler; typedef Outcome DeleteDBInstanceOutcome; typedef std::future DeleteDBInstanceOutcomeCallable; typedef std::function&)> DeleteDBInstanceAsyncHandler; - typedef Outcome DeleteDatabaseOutcome; - typedef std::future DeleteDatabaseOutcomeCallable; - typedef std::function&)> DeleteDatabaseAsyncHandler; + typedef Outcome DeleteDBInstancePlanOutcome; + typedef std::future DeleteDBInstancePlanOutcomeCallable; + typedef std::function&)> DeleteDBInstancePlanAsyncHandler; + typedef Outcome DeleteNamespaceOutcome; + typedef std::future DeleteNamespaceOutcomeCallable; + typedef std::function&)> DeleteNamespaceAsyncHandler; + typedef Outcome DeleteVectorIndexOutcome; + typedef std::future DeleteVectorIndexOutcomeCallable; + typedef std::function&)> DeleteVectorIndexAsyncHandler; typedef Outcome DescribeAccountsOutcome; typedef std::future DescribeAccountsOutcomeCallable; typedef std::function&)> DescribeAccountsAsyncHandler; @@ -189,27 +280,45 @@ namespace AlibabaCloud typedef Outcome DescribeBackupPolicyOutcome; typedef std::future DescribeBackupPolicyOutcomeCallable; typedef std::function&)> DescribeBackupPolicyAsyncHandler; + typedef Outcome DescribeCollectionOutcome; + typedef std::future DescribeCollectionOutcomeCallable; + typedef std::function&)> DescribeCollectionAsyncHandler; + typedef Outcome DescribeDBClusterNodeOutcome; + typedef std::future DescribeDBClusterNodeOutcomeCallable; + typedef std::function&)> DescribeDBClusterNodeAsyncHandler; typedef Outcome DescribeDBClusterPerformanceOutcome; typedef std::future DescribeDBClusterPerformanceOutcomeCallable; typedef std::function&)> DescribeDBClusterPerformanceAsyncHandler; typedef Outcome DescribeDBInstanceAttributeOutcome; typedef std::future DescribeDBInstanceAttributeOutcomeCallable; typedef std::function&)> DescribeDBInstanceAttributeAsyncHandler; + typedef Outcome DescribeDBInstanceDataBloatOutcome; + typedef std::future DescribeDBInstanceDataBloatOutcomeCallable; + typedef std::function&)> DescribeDBInstanceDataBloatAsyncHandler; + typedef Outcome DescribeDBInstanceDataSkewOutcome; + typedef std::future DescribeDBInstanceDataSkewOutcomeCallable; + typedef std::function&)> DescribeDBInstanceDataSkewAsyncHandler; + typedef Outcome DescribeDBInstanceDiagnosisSummaryOutcome; + typedef std::future DescribeDBInstanceDiagnosisSummaryOutcomeCallable; + typedef std::function&)> DescribeDBInstanceDiagnosisSummaryAsyncHandler; + typedef Outcome DescribeDBInstanceErrorLogOutcome; + typedef std::future DescribeDBInstanceErrorLogOutcomeCallable; + typedef std::function&)> DescribeDBInstanceErrorLogAsyncHandler; typedef Outcome DescribeDBInstanceIPArrayListOutcome; typedef std::future DescribeDBInstanceIPArrayListOutcomeCallable; typedef std::function&)> DescribeDBInstanceIPArrayListAsyncHandler; + typedef Outcome DescribeDBInstanceIndexUsageOutcome; + typedef std::future DescribeDBInstanceIndexUsageOutcomeCallable; + typedef std::function&)> DescribeDBInstanceIndexUsageAsyncHandler; typedef Outcome DescribeDBInstanceNetInfoOutcome; typedef std::future DescribeDBInstanceNetInfoOutcomeCallable; typedef std::function&)> DescribeDBInstanceNetInfoAsyncHandler; - typedef Outcome DescribeDBInstanceOnECSAttributeOutcome; - typedef std::future DescribeDBInstanceOnECSAttributeOutcomeCallable; - typedef std::function&)> DescribeDBInstanceOnECSAttributeAsyncHandler; typedef Outcome DescribeDBInstancePerformanceOutcome; typedef std::future DescribeDBInstancePerformanceOutcomeCallable; typedef std::function&)> DescribeDBInstancePerformanceAsyncHandler; - typedef Outcome DescribeDBInstanceSQLPatternsOutcome; - typedef std::future DescribeDBInstanceSQLPatternsOutcomeCallable; - typedef std::function&)> DescribeDBInstanceSQLPatternsAsyncHandler; + typedef Outcome DescribeDBInstancePlansOutcome; + typedef std::future DescribeDBInstancePlansOutcomeCallable; + typedef std::function&)> DescribeDBInstancePlansAsyncHandler; typedef Outcome DescribeDBInstanceSSLOutcome; typedef std::future DescribeDBInstanceSSLOutcomeCallable; typedef std::function&)> DescribeDBInstanceSSLAsyncHandler; @@ -219,12 +328,45 @@ namespace AlibabaCloud typedef Outcome DescribeDataBackupsOutcome; typedef std::future DescribeDataBackupsOutcomeCallable; typedef std::function&)> DescribeDataBackupsAsyncHandler; + typedef Outcome DescribeDataReDistributeInfoOutcome; + typedef std::future DescribeDataReDistributeInfoOutcomeCallable; + typedef std::function&)> DescribeDataReDistributeInfoAsyncHandler; + typedef Outcome DescribeDataShareInstancesOutcome; + typedef std::future DescribeDataShareInstancesOutcomeCallable; + typedef std::function&)> DescribeDataShareInstancesAsyncHandler; + typedef Outcome DescribeDataSharePerformanceOutcome; + typedef std::future DescribeDataSharePerformanceOutcomeCallable; + typedef std::function&)> DescribeDataSharePerformanceAsyncHandler; + typedef Outcome DescribeDiagnosisDimensionsOutcome; + typedef std::future DescribeDiagnosisDimensionsOutcomeCallable; + typedef std::function&)> DescribeDiagnosisDimensionsAsyncHandler; + typedef Outcome DescribeDiagnosisMonitorPerformanceOutcome; + typedef std::future DescribeDiagnosisMonitorPerformanceOutcomeCallable; + typedef std::function&)> DescribeDiagnosisMonitorPerformanceAsyncHandler; + 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 DescribeDownloadSQLLogsOutcome; + typedef std::future DescribeDownloadSQLLogsOutcomeCallable; + typedef std::function&)> DescribeDownloadSQLLogsAsyncHandler; + typedef Outcome DescribeHealthStatusOutcome; + typedef std::future DescribeHealthStatusOutcomeCallable; + typedef std::function&)> DescribeHealthStatusAsyncHandler; typedef Outcome DescribeLogBackupsOutcome; typedef std::future DescribeLogBackupsOutcomeCallable; typedef std::function&)> DescribeLogBackupsAsyncHandler; typedef Outcome DescribeModifyParameterLogOutcome; typedef std::future DescribeModifyParameterLogOutcomeCallable; typedef std::function&)> DescribeModifyParameterLogAsyncHandler; + typedef Outcome DescribeNamespaceOutcome; + typedef std::future DescribeNamespaceOutcomeCallable; + typedef std::function&)> DescribeNamespaceAsyncHandler; typedef Outcome DescribeParametersOutcome; typedef std::future DescribeParametersOutcomeCallable; typedef std::function&)> DescribeParametersAsyncHandler; @@ -237,45 +379,48 @@ namespace AlibabaCloud typedef Outcome DescribeRegionsOutcome; typedef std::future DescribeRegionsOutcomeCallable; typedef std::function&)> DescribeRegionsAsyncHandler; - typedef Outcome DescribeResourceUsageOutcome; - typedef std::future DescribeResourceUsageOutcomeCallable; - typedef std::function&)> DescribeResourceUsageAsyncHandler; - typedef Outcome DescribeSQLCollectorPolicyOutcome; - typedef std::future DescribeSQLCollectorPolicyOutcomeCallable; - typedef std::function&)> DescribeSQLCollectorPolicyAsyncHandler; - typedef Outcome DescribeSQLLogByQueryIdOutcome; - typedef std::future DescribeSQLLogByQueryIdOutcomeCallable; - typedef std::function&)> DescribeSQLLogByQueryIdAsyncHandler; typedef Outcome DescribeSQLLogCountOutcome; typedef std::future DescribeSQLLogCountOutcomeCallable; typedef std::function&)> DescribeSQLLogCountAsyncHandler; - typedef Outcome DescribeSQLLogFilesOutcome; - typedef std::future DescribeSQLLogFilesOutcomeCallable; - typedef std::function&)> DescribeSQLLogFilesAsyncHandler; - typedef Outcome DescribeSQLLogRecordsOutcome; - typedef std::future DescribeSQLLogRecordsOutcomeCallable; - typedef std::function&)> DescribeSQLLogRecordsAsyncHandler; - typedef Outcome DescribeSQLLogsOutcome; - typedef std::future DescribeSQLLogsOutcomeCallable; - typedef std::function&)> DescribeSQLLogsAsyncHandler; - typedef Outcome DescribeSQLLogsOnSliceOutcome; - typedef std::future DescribeSQLLogsOnSliceOutcomeCallable; - typedef std::function&)> DescribeSQLLogsOnSliceAsyncHandler; - typedef Outcome DescribeSlowLogRecordsOutcome; - typedef std::future DescribeSlowLogRecordsOutcomeCallable; - typedef std::function&)> DescribeSlowLogRecordsAsyncHandler; - typedef Outcome DescribeSlowSQLLogsOutcome; - typedef std::future DescribeSlowSQLLogsOutcomeCallable; - typedef std::function&)> DescribeSlowSQLLogsAsyncHandler; - typedef Outcome DescribeSpecificationOutcome; - typedef std::future DescribeSpecificationOutcomeCallable; - typedef std::function&)> DescribeSpecificationAsyncHandler; + typedef Outcome DescribeSQLLogsV2Outcome; + typedef std::future DescribeSQLLogsV2OutcomeCallable; + typedef std::function&)> DescribeSQLLogsV2AsyncHandler; + typedef Outcome DescribeSampleDataOutcome; + typedef std::future DescribeSampleDataOutcomeCallable; + typedef std::function&)> DescribeSampleDataAsyncHandler; + typedef Outcome DescribeSupportFeaturesOutcome; + typedef std::future DescribeSupportFeaturesOutcomeCallable; + typedef std::function&)> DescribeSupportFeaturesAsyncHandler; typedef Outcome DescribeTagsOutcome; typedef std::future DescribeTagsOutcomeCallable; typedef std::function&)> DescribeTagsAsyncHandler; typedef Outcome DescribeUserEncryptionKeyListOutcome; typedef std::future DescribeUserEncryptionKeyListOutcomeCallable; typedef std::function&)> DescribeUserEncryptionKeyListAsyncHandler; + typedef Outcome DescribeWaitingSQLInfoOutcome; + typedef std::future DescribeWaitingSQLInfoOutcomeCallable; + typedef std::function&)> DescribeWaitingSQLInfoAsyncHandler; + typedef Outcome DescribeWaitingSQLRecordsOutcome; + typedef std::future DescribeWaitingSQLRecordsOutcomeCallable; + typedef std::function&)> DescribeWaitingSQLRecordsAsyncHandler; + typedef Outcome DownloadDiagnosisRecordsOutcome; + typedef std::future DownloadDiagnosisRecordsOutcomeCallable; + typedef std::function&)> DownloadDiagnosisRecordsAsyncHandler; + typedef Outcome DownloadSQLLogsRecordsOutcome; + typedef std::future DownloadSQLLogsRecordsOutcomeCallable; + typedef std::function&)> DownloadSQLLogsRecordsAsyncHandler; + typedef Outcome GrantCollectionOutcome; + typedef std::future GrantCollectionOutcomeCallable; + typedef std::function&)> GrantCollectionAsyncHandler; + typedef Outcome InitVectorDatabaseOutcome; + typedef std::future InitVectorDatabaseOutcomeCallable; + typedef std::function&)> InitVectorDatabaseAsyncHandler; + typedef Outcome ListCollectionsOutcome; + typedef std::future ListCollectionsOutcomeCallable; + typedef std::function&)> ListCollectionsAsyncHandler; + typedef Outcome ListNamespacesOutcome; + typedef std::future ListNamespacesOutcomeCallable; + typedef std::function&)> ListNamespacesAsyncHandler; typedef Outcome ListTagResourcesOutcome; typedef std::future ListTagResourcesOutcomeCallable; typedef std::function&)> ListTagResourcesAsyncHandler; @@ -285,9 +430,9 @@ namespace AlibabaCloud typedef Outcome ModifyBackupPolicyOutcome; typedef std::future ModifyBackupPolicyOutcomeCallable; typedef std::function&)> ModifyBackupPolicyAsyncHandler; - typedef Outcome ModifyDBInstanceConnectionModeOutcome; - typedef std::future ModifyDBInstanceConnectionModeOutcomeCallable; - typedef std::function&)> ModifyDBInstanceConnectionModeAsyncHandler; + typedef Outcome ModifyDBInstanceConfigOutcome; + typedef std::future ModifyDBInstanceConfigOutcomeCallable; + typedef std::function&)> ModifyDBInstanceConfigAsyncHandler; typedef Outcome ModifyDBInstanceConnectionStringOutcome; typedef std::future ModifyDBInstanceConnectionStringOutcomeCallable; typedef std::function&)> ModifyDBInstanceConnectionStringAsyncHandler; @@ -297,9 +442,9 @@ namespace AlibabaCloud typedef Outcome ModifyDBInstanceMaintainTimeOutcome; typedef std::future ModifyDBInstanceMaintainTimeOutcomeCallable; typedef std::function&)> ModifyDBInstanceMaintainTimeAsyncHandler; - typedef Outcome ModifyDBInstanceNetworkTypeOutcome; - typedef std::future ModifyDBInstanceNetworkTypeOutcomeCallable; - typedef std::function&)> ModifyDBInstanceNetworkTypeAsyncHandler; + typedef Outcome ModifyDBInstanceResourceGroupOutcome; + typedef std::future ModifyDBInstanceResourceGroupOutcomeCallable; + typedef std::function&)> ModifyDBInstanceResourceGroupAsyncHandler; typedef Outcome ModifyDBInstanceSSLOutcome; typedef std::future ModifyDBInstanceSSLOutcomeCallable; typedef std::function&)> ModifyDBInstanceSSLAsyncHandler; @@ -312,6 +457,18 @@ namespace AlibabaCloud typedef Outcome ModifySecurityIpsOutcome; typedef std::future ModifySecurityIpsOutcomeCallable; typedef std::function&)> ModifySecurityIpsAsyncHandler; + typedef Outcome ModifyVectorConfigurationOutcome; + typedef std::future ModifyVectorConfigurationOutcomeCallable; + typedef std::function&)> ModifyVectorConfigurationAsyncHandler; + typedef Outcome PauseInstanceOutcome; + typedef std::future PauseInstanceOutcomeCallable; + typedef std::function&)> PauseInstanceAsyncHandler; + typedef Outcome QueryCollectionDataOutcome; + typedef std::future QueryCollectionDataOutcomeCallable; + typedef std::function&)> QueryCollectionDataAsyncHandler; + typedef Outcome RebalanceDBInstanceOutcome; + typedef std::future RebalanceDBInstanceOutcomeCallable; + typedef std::function&)> RebalanceDBInstanceAsyncHandler; typedef Outcome ReleaseInstancePublicConnectionOutcome; typedef std::future ReleaseInstancePublicConnectionOutcomeCallable; typedef std::function&)> ReleaseInstancePublicConnectionAsyncHandler; @@ -321,29 +478,44 @@ namespace AlibabaCloud typedef Outcome RestartDBInstanceOutcome; typedef std::future RestartDBInstanceOutcomeCallable; typedef std::function&)> RestartDBInstanceAsyncHandler; + typedef Outcome ResumeInstanceOutcome; + typedef std::future ResumeInstanceOutcomeCallable; + typedef std::function&)> ResumeInstanceAsyncHandler; + typedef Outcome SetDBInstancePlanStatusOutcome; + typedef std::future SetDBInstancePlanStatusOutcomeCallable; + typedef std::function&)> SetDBInstancePlanStatusAsyncHandler; + typedef Outcome SetDataShareInstanceOutcome; + typedef std::future SetDataShareInstanceOutcomeCallable; + typedef std::function&)> SetDataShareInstanceAsyncHandler; typedef Outcome SwitchDBInstanceNetTypeOutcome; typedef std::future SwitchDBInstanceNetTypeOutcomeCallable; typedef std::function&)> SwitchDBInstanceNetTypeAsyncHandler; typedef Outcome TagResourcesOutcome; typedef std::future TagResourcesOutcomeCallable; typedef std::function&)> TagResourcesAsyncHandler; + typedef Outcome UnloadSampleDataOutcome; + typedef std::future UnloadSampleDataOutcomeCallable; + typedef std::function&)> UnloadSampleDataAsyncHandler; typedef Outcome UntagResourcesOutcome; typedef std::future UntagResourcesOutcomeCallable; typedef std::function&)> UntagResourcesAsyncHandler; + typedef Outcome UpdateDBInstancePlanOutcome; + typedef std::future UpdateDBInstancePlanOutcomeCallable; + typedef std::function&)> UpdateDBInstancePlanAsyncHandler; typedef Outcome UpgradeDBInstanceOutcome; typedef std::future UpgradeDBInstanceOutcomeCallable; typedef std::function&)> UpgradeDBInstanceAsyncHandler; typedef Outcome UpgradeDBVersionOutcome; typedef std::future UpgradeDBVersionOutcomeCallable; typedef std::function&)> UpgradeDBVersionAsyncHandler; + typedef Outcome UpsertCollectionDataOutcome; + typedef std::future UpsertCollectionDataOutcomeCallable; + typedef std::function&)> UpsertCollectionDataAsyncHandler; GpdbClient(const Credentials &credentials, const ClientConfiguration &configuration); GpdbClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); GpdbClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); ~GpdbClient(); - AddBuDBInstanceRelationOutcome addBuDBInstanceRelation(const Model::AddBuDBInstanceRelationRequest &request)const; - void addBuDBInstanceRelationAsync(const Model::AddBuDBInstanceRelationRequest& request, const AddBuDBInstanceRelationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - AddBuDBInstanceRelationOutcomeCallable addBuDBInstanceRelationCallable(const Model::AddBuDBInstanceRelationRequest& request) const; AllocateInstancePublicConnectionOutcome allocateInstancePublicConnection(const Model::AllocateInstancePublicConnectionRequest &request)const; void allocateInstancePublicConnectionAsync(const Model::AllocateInstancePublicConnectionRequest& request, const AllocateInstancePublicConnectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AllocateInstancePublicConnectionOutcomeCallable allocateInstancePublicConnectionCallable(const Model::AllocateInstancePublicConnectionRequest& request) const; @@ -353,21 +525,45 @@ namespace AlibabaCloud CreateAccountOutcome createAccount(const Model::CreateAccountRequest &request)const; void createAccountAsync(const Model::CreateAccountRequest& request, const CreateAccountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateAccountOutcomeCallable createAccountCallable(const Model::CreateAccountRequest& request) const; + CreateCollectionOutcome createCollection(const Model::CreateCollectionRequest &request)const; + void createCollectionAsync(const Model::CreateCollectionRequest& request, const CreateCollectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateCollectionOutcomeCallable createCollectionCallable(const Model::CreateCollectionRequest& request) const; CreateDBInstanceOutcome createDBInstance(const Model::CreateDBInstanceRequest &request)const; void createDBInstanceAsync(const Model::CreateDBInstanceRequest& request, const CreateDBInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateDBInstanceOutcomeCallable createDBInstanceCallable(const Model::CreateDBInstanceRequest& request) const; - CreateECSDBInstanceOutcome createECSDBInstance(const Model::CreateECSDBInstanceRequest &request)const; - void createECSDBInstanceAsync(const Model::CreateECSDBInstanceRequest& request, const CreateECSDBInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateECSDBInstanceOutcomeCallable createECSDBInstanceCallable(const Model::CreateECSDBInstanceRequest& request) const; + CreateDBInstancePlanOutcome createDBInstancePlan(const Model::CreateDBInstancePlanRequest &request)const; + void createDBInstancePlanAsync(const Model::CreateDBInstancePlanRequest& request, const CreateDBInstancePlanAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateDBInstancePlanOutcomeCallable createDBInstancePlanCallable(const Model::CreateDBInstancePlanRequest& request) const; + CreateNamespaceOutcome createNamespace(const Model::CreateNamespaceRequest &request)const; + void createNamespaceAsync(const Model::CreateNamespaceRequest& request, const CreateNamespaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateNamespaceOutcomeCallable createNamespaceCallable(const Model::CreateNamespaceRequest& request) const; + CreateSampleDataOutcome createSampleData(const Model::CreateSampleDataRequest &request)const; + void createSampleDataAsync(const Model::CreateSampleDataRequest& request, const CreateSampleDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateSampleDataOutcomeCallable createSampleDataCallable(const Model::CreateSampleDataRequest& request) const; CreateServiceLinkedRoleOutcome createServiceLinkedRole(const Model::CreateServiceLinkedRoleRequest &request)const; void createServiceLinkedRoleAsync(const Model::CreateServiceLinkedRoleRequest& request, const CreateServiceLinkedRoleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateServiceLinkedRoleOutcomeCallable createServiceLinkedRoleCallable(const Model::CreateServiceLinkedRoleRequest& request) const; + CreateVectorIndexOutcome createVectorIndex(const Model::CreateVectorIndexRequest &request)const; + void createVectorIndexAsync(const Model::CreateVectorIndexRequest& request, const CreateVectorIndexAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateVectorIndexOutcomeCallable createVectorIndexCallable(const Model::CreateVectorIndexRequest& request) const; + DeleteCollectionOutcome deleteCollection(const Model::DeleteCollectionRequest &request)const; + void deleteCollectionAsync(const Model::DeleteCollectionRequest& request, const DeleteCollectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteCollectionOutcomeCallable deleteCollectionCallable(const Model::DeleteCollectionRequest& request) const; + DeleteCollectionDataOutcome deleteCollectionData(const Model::DeleteCollectionDataRequest &request)const; + void deleteCollectionDataAsync(const Model::DeleteCollectionDataRequest& request, const DeleteCollectionDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteCollectionDataOutcomeCallable deleteCollectionDataCallable(const Model::DeleteCollectionDataRequest& request) const; DeleteDBInstanceOutcome deleteDBInstance(const Model::DeleteDBInstanceRequest &request)const; void deleteDBInstanceAsync(const Model::DeleteDBInstanceRequest& request, const DeleteDBInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteDBInstanceOutcomeCallable deleteDBInstanceCallable(const Model::DeleteDBInstanceRequest& request) const; - DeleteDatabaseOutcome deleteDatabase(const Model::DeleteDatabaseRequest &request)const; - void deleteDatabaseAsync(const Model::DeleteDatabaseRequest& request, const DeleteDatabaseAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteDatabaseOutcomeCallable deleteDatabaseCallable(const Model::DeleteDatabaseRequest& request) const; + DeleteDBInstancePlanOutcome deleteDBInstancePlan(const Model::DeleteDBInstancePlanRequest &request)const; + void deleteDBInstancePlanAsync(const Model::DeleteDBInstancePlanRequest& request, const DeleteDBInstancePlanAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteDBInstancePlanOutcomeCallable deleteDBInstancePlanCallable(const Model::DeleteDBInstancePlanRequest& request) const; + DeleteNamespaceOutcome deleteNamespace(const Model::DeleteNamespaceRequest &request)const; + void deleteNamespaceAsync(const Model::DeleteNamespaceRequest& request, const DeleteNamespaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteNamespaceOutcomeCallable deleteNamespaceCallable(const Model::DeleteNamespaceRequest& request) const; + DeleteVectorIndexOutcome deleteVectorIndex(const Model::DeleteVectorIndexRequest &request)const; + void deleteVectorIndexAsync(const Model::DeleteVectorIndexRequest& request, const DeleteVectorIndexAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteVectorIndexOutcomeCallable deleteVectorIndexCallable(const Model::DeleteVectorIndexRequest& 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; @@ -377,27 +573,45 @@ namespace AlibabaCloud 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; + DescribeCollectionOutcome describeCollection(const Model::DescribeCollectionRequest &request)const; + void describeCollectionAsync(const Model::DescribeCollectionRequest& request, const DescribeCollectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeCollectionOutcomeCallable describeCollectionCallable(const Model::DescribeCollectionRequest& request) const; + DescribeDBClusterNodeOutcome describeDBClusterNode(const Model::DescribeDBClusterNodeRequest &request)const; + void describeDBClusterNodeAsync(const Model::DescribeDBClusterNodeRequest& request, const DescribeDBClusterNodeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDBClusterNodeOutcomeCallable describeDBClusterNodeCallable(const Model::DescribeDBClusterNodeRequest& 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; DescribeDBInstanceAttributeOutcome describeDBInstanceAttribute(const Model::DescribeDBInstanceAttributeRequest &request)const; void describeDBInstanceAttributeAsync(const Model::DescribeDBInstanceAttributeRequest& request, const DescribeDBInstanceAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDBInstanceAttributeOutcomeCallable describeDBInstanceAttributeCallable(const Model::DescribeDBInstanceAttributeRequest& request) const; + DescribeDBInstanceDataBloatOutcome describeDBInstanceDataBloat(const Model::DescribeDBInstanceDataBloatRequest &request)const; + void describeDBInstanceDataBloatAsync(const Model::DescribeDBInstanceDataBloatRequest& request, const DescribeDBInstanceDataBloatAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDBInstanceDataBloatOutcomeCallable describeDBInstanceDataBloatCallable(const Model::DescribeDBInstanceDataBloatRequest& request) const; + DescribeDBInstanceDataSkewOutcome describeDBInstanceDataSkew(const Model::DescribeDBInstanceDataSkewRequest &request)const; + void describeDBInstanceDataSkewAsync(const Model::DescribeDBInstanceDataSkewRequest& request, const DescribeDBInstanceDataSkewAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDBInstanceDataSkewOutcomeCallable describeDBInstanceDataSkewCallable(const Model::DescribeDBInstanceDataSkewRequest& request) const; + DescribeDBInstanceDiagnosisSummaryOutcome describeDBInstanceDiagnosisSummary(const Model::DescribeDBInstanceDiagnosisSummaryRequest &request)const; + void describeDBInstanceDiagnosisSummaryAsync(const Model::DescribeDBInstanceDiagnosisSummaryRequest& request, const DescribeDBInstanceDiagnosisSummaryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDBInstanceDiagnosisSummaryOutcomeCallable describeDBInstanceDiagnosisSummaryCallable(const Model::DescribeDBInstanceDiagnosisSummaryRequest& request) const; + DescribeDBInstanceErrorLogOutcome describeDBInstanceErrorLog(const Model::DescribeDBInstanceErrorLogRequest &request)const; + void describeDBInstanceErrorLogAsync(const Model::DescribeDBInstanceErrorLogRequest& request, const DescribeDBInstanceErrorLogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDBInstanceErrorLogOutcomeCallable describeDBInstanceErrorLogCallable(const Model::DescribeDBInstanceErrorLogRequest& request) const; DescribeDBInstanceIPArrayListOutcome describeDBInstanceIPArrayList(const Model::DescribeDBInstanceIPArrayListRequest &request)const; void describeDBInstanceIPArrayListAsync(const Model::DescribeDBInstanceIPArrayListRequest& request, const DescribeDBInstanceIPArrayListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDBInstanceIPArrayListOutcomeCallable describeDBInstanceIPArrayListCallable(const Model::DescribeDBInstanceIPArrayListRequest& request) const; + DescribeDBInstanceIndexUsageOutcome describeDBInstanceIndexUsage(const Model::DescribeDBInstanceIndexUsageRequest &request)const; + void describeDBInstanceIndexUsageAsync(const Model::DescribeDBInstanceIndexUsageRequest& request, const DescribeDBInstanceIndexUsageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDBInstanceIndexUsageOutcomeCallable describeDBInstanceIndexUsageCallable(const Model::DescribeDBInstanceIndexUsageRequest& request) const; DescribeDBInstanceNetInfoOutcome describeDBInstanceNetInfo(const Model::DescribeDBInstanceNetInfoRequest &request)const; void describeDBInstanceNetInfoAsync(const Model::DescribeDBInstanceNetInfoRequest& request, const DescribeDBInstanceNetInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDBInstanceNetInfoOutcomeCallable describeDBInstanceNetInfoCallable(const Model::DescribeDBInstanceNetInfoRequest& request) const; - DescribeDBInstanceOnECSAttributeOutcome describeDBInstanceOnECSAttribute(const Model::DescribeDBInstanceOnECSAttributeRequest &request)const; - void describeDBInstanceOnECSAttributeAsync(const Model::DescribeDBInstanceOnECSAttributeRequest& request, const DescribeDBInstanceOnECSAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeDBInstanceOnECSAttributeOutcomeCallable describeDBInstanceOnECSAttributeCallable(const Model::DescribeDBInstanceOnECSAttributeRequest& request) const; DescribeDBInstancePerformanceOutcome describeDBInstancePerformance(const Model::DescribeDBInstancePerformanceRequest &request)const; void describeDBInstancePerformanceAsync(const Model::DescribeDBInstancePerformanceRequest& request, const DescribeDBInstancePerformanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDBInstancePerformanceOutcomeCallable describeDBInstancePerformanceCallable(const Model::DescribeDBInstancePerformanceRequest& request) const; - DescribeDBInstanceSQLPatternsOutcome describeDBInstanceSQLPatterns(const Model::DescribeDBInstanceSQLPatternsRequest &request)const; - void describeDBInstanceSQLPatternsAsync(const Model::DescribeDBInstanceSQLPatternsRequest& request, const DescribeDBInstanceSQLPatternsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeDBInstanceSQLPatternsOutcomeCallable describeDBInstanceSQLPatternsCallable(const Model::DescribeDBInstanceSQLPatternsRequest& request) const; + DescribeDBInstancePlansOutcome describeDBInstancePlans(const Model::DescribeDBInstancePlansRequest &request)const; + void describeDBInstancePlansAsync(const Model::DescribeDBInstancePlansRequest& request, const DescribeDBInstancePlansAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDBInstancePlansOutcomeCallable describeDBInstancePlansCallable(const Model::DescribeDBInstancePlansRequest& request) const; DescribeDBInstanceSSLOutcome describeDBInstanceSSL(const Model::DescribeDBInstanceSSLRequest &request)const; void describeDBInstanceSSLAsync(const Model::DescribeDBInstanceSSLRequest& request, const DescribeDBInstanceSSLAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDBInstanceSSLOutcomeCallable describeDBInstanceSSLCallable(const Model::DescribeDBInstanceSSLRequest& request) const; @@ -407,12 +621,45 @@ namespace AlibabaCloud DescribeDataBackupsOutcome describeDataBackups(const Model::DescribeDataBackupsRequest &request)const; void describeDataBackupsAsync(const Model::DescribeDataBackupsRequest& request, const DescribeDataBackupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDataBackupsOutcomeCallable describeDataBackupsCallable(const Model::DescribeDataBackupsRequest& request) const; + DescribeDataReDistributeInfoOutcome describeDataReDistributeInfo(const Model::DescribeDataReDistributeInfoRequest &request)const; + void describeDataReDistributeInfoAsync(const Model::DescribeDataReDistributeInfoRequest& request, const DescribeDataReDistributeInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDataReDistributeInfoOutcomeCallable describeDataReDistributeInfoCallable(const Model::DescribeDataReDistributeInfoRequest& request) const; + DescribeDataShareInstancesOutcome describeDataShareInstances(const Model::DescribeDataShareInstancesRequest &request)const; + void describeDataShareInstancesAsync(const Model::DescribeDataShareInstancesRequest& request, const DescribeDataShareInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDataShareInstancesOutcomeCallable describeDataShareInstancesCallable(const Model::DescribeDataShareInstancesRequest& request) const; + DescribeDataSharePerformanceOutcome describeDataSharePerformance(const Model::DescribeDataSharePerformanceRequest &request)const; + void describeDataSharePerformanceAsync(const Model::DescribeDataSharePerformanceRequest& request, const DescribeDataSharePerformanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDataSharePerformanceOutcomeCallable describeDataSharePerformanceCallable(const Model::DescribeDataSharePerformanceRequest& 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; + DescribeDiagnosisMonitorPerformanceOutcome describeDiagnosisMonitorPerformance(const Model::DescribeDiagnosisMonitorPerformanceRequest &request)const; + void describeDiagnosisMonitorPerformanceAsync(const Model::DescribeDiagnosisMonitorPerformanceRequest& request, const DescribeDiagnosisMonitorPerformanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDiagnosisMonitorPerformanceOutcomeCallable describeDiagnosisMonitorPerformanceCallable(const Model::DescribeDiagnosisMonitorPerformanceRequest& 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; + DescribeDownloadSQLLogsOutcome describeDownloadSQLLogs(const Model::DescribeDownloadSQLLogsRequest &request)const; + void describeDownloadSQLLogsAsync(const Model::DescribeDownloadSQLLogsRequest& request, const DescribeDownloadSQLLogsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDownloadSQLLogsOutcomeCallable describeDownloadSQLLogsCallable(const Model::DescribeDownloadSQLLogsRequest& request) const; + DescribeHealthStatusOutcome describeHealthStatus(const Model::DescribeHealthStatusRequest &request)const; + void describeHealthStatusAsync(const Model::DescribeHealthStatusRequest& request, const DescribeHealthStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeHealthStatusOutcomeCallable describeHealthStatusCallable(const Model::DescribeHealthStatusRequest& request) const; DescribeLogBackupsOutcome describeLogBackups(const Model::DescribeLogBackupsRequest &request)const; void describeLogBackupsAsync(const Model::DescribeLogBackupsRequest& request, const DescribeLogBackupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeLogBackupsOutcomeCallable describeLogBackupsCallable(const Model::DescribeLogBackupsRequest& request) const; DescribeModifyParameterLogOutcome describeModifyParameterLog(const Model::DescribeModifyParameterLogRequest &request)const; void describeModifyParameterLogAsync(const Model::DescribeModifyParameterLogRequest& request, const DescribeModifyParameterLogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeModifyParameterLogOutcomeCallable describeModifyParameterLogCallable(const Model::DescribeModifyParameterLogRequest& request) const; + DescribeNamespaceOutcome describeNamespace(const Model::DescribeNamespaceRequest &request)const; + void describeNamespaceAsync(const Model::DescribeNamespaceRequest& request, const DescribeNamespaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeNamespaceOutcomeCallable describeNamespaceCallable(const Model::DescribeNamespaceRequest& request) const; DescribeParametersOutcome describeParameters(const Model::DescribeParametersRequest &request)const; void describeParametersAsync(const Model::DescribeParametersRequest& request, const DescribeParametersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeParametersOutcomeCallable describeParametersCallable(const Model::DescribeParametersRequest& request) const; @@ -425,45 +672,48 @@ namespace AlibabaCloud 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; - DescribeResourceUsageOutcome describeResourceUsage(const Model::DescribeResourceUsageRequest &request)const; - void describeResourceUsageAsync(const Model::DescribeResourceUsageRequest& request, const DescribeResourceUsageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeResourceUsageOutcomeCallable describeResourceUsageCallable(const Model::DescribeResourceUsageRequest& request) const; - DescribeSQLCollectorPolicyOutcome describeSQLCollectorPolicy(const Model::DescribeSQLCollectorPolicyRequest &request)const; - void describeSQLCollectorPolicyAsync(const Model::DescribeSQLCollectorPolicyRequest& request, const DescribeSQLCollectorPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeSQLCollectorPolicyOutcomeCallable describeSQLCollectorPolicyCallable(const Model::DescribeSQLCollectorPolicyRequest& request) const; - DescribeSQLLogByQueryIdOutcome describeSQLLogByQueryId(const Model::DescribeSQLLogByQueryIdRequest &request)const; - void describeSQLLogByQueryIdAsync(const Model::DescribeSQLLogByQueryIdRequest& request, const DescribeSQLLogByQueryIdAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeSQLLogByQueryIdOutcomeCallable describeSQLLogByQueryIdCallable(const Model::DescribeSQLLogByQueryIdRequest& request) const; DescribeSQLLogCountOutcome describeSQLLogCount(const Model::DescribeSQLLogCountRequest &request)const; void describeSQLLogCountAsync(const Model::DescribeSQLLogCountRequest& request, const DescribeSQLLogCountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeSQLLogCountOutcomeCallable describeSQLLogCountCallable(const Model::DescribeSQLLogCountRequest& request) const; - DescribeSQLLogFilesOutcome describeSQLLogFiles(const Model::DescribeSQLLogFilesRequest &request)const; - void describeSQLLogFilesAsync(const Model::DescribeSQLLogFilesRequest& request, const DescribeSQLLogFilesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeSQLLogFilesOutcomeCallable describeSQLLogFilesCallable(const Model::DescribeSQLLogFilesRequest& request) const; - DescribeSQLLogRecordsOutcome describeSQLLogRecords(const Model::DescribeSQLLogRecordsRequest &request)const; - void describeSQLLogRecordsAsync(const Model::DescribeSQLLogRecordsRequest& request, const DescribeSQLLogRecordsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeSQLLogRecordsOutcomeCallable describeSQLLogRecordsCallable(const Model::DescribeSQLLogRecordsRequest& request) const; - DescribeSQLLogsOutcome describeSQLLogs(const Model::DescribeSQLLogsRequest &request)const; - void describeSQLLogsAsync(const Model::DescribeSQLLogsRequest& request, const DescribeSQLLogsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeSQLLogsOutcomeCallable describeSQLLogsCallable(const Model::DescribeSQLLogsRequest& request) const; - DescribeSQLLogsOnSliceOutcome describeSQLLogsOnSlice(const Model::DescribeSQLLogsOnSliceRequest &request)const; - void describeSQLLogsOnSliceAsync(const Model::DescribeSQLLogsOnSliceRequest& request, const DescribeSQLLogsOnSliceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeSQLLogsOnSliceOutcomeCallable describeSQLLogsOnSliceCallable(const Model::DescribeSQLLogsOnSliceRequest& 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; - DescribeSlowSQLLogsOutcome describeSlowSQLLogs(const Model::DescribeSlowSQLLogsRequest &request)const; - void describeSlowSQLLogsAsync(const Model::DescribeSlowSQLLogsRequest& request, const DescribeSlowSQLLogsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeSlowSQLLogsOutcomeCallable describeSlowSQLLogsCallable(const Model::DescribeSlowSQLLogsRequest& request) const; - DescribeSpecificationOutcome describeSpecification(const Model::DescribeSpecificationRequest &request)const; - void describeSpecificationAsync(const Model::DescribeSpecificationRequest& request, const DescribeSpecificationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeSpecificationOutcomeCallable describeSpecificationCallable(const Model::DescribeSpecificationRequest& request) const; + DescribeSQLLogsV2Outcome describeSQLLogsV2(const Model::DescribeSQLLogsV2Request &request)const; + void describeSQLLogsV2Async(const Model::DescribeSQLLogsV2Request& request, const DescribeSQLLogsV2AsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSQLLogsV2OutcomeCallable describeSQLLogsV2Callable(const Model::DescribeSQLLogsV2Request& request) const; + DescribeSampleDataOutcome describeSampleData(const Model::DescribeSampleDataRequest &request)const; + void describeSampleDataAsync(const Model::DescribeSampleDataRequest& request, const DescribeSampleDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSampleDataOutcomeCallable describeSampleDataCallable(const Model::DescribeSampleDataRequest& request) const; + DescribeSupportFeaturesOutcome describeSupportFeatures(const Model::DescribeSupportFeaturesRequest &request)const; + void describeSupportFeaturesAsync(const Model::DescribeSupportFeaturesRequest& request, const DescribeSupportFeaturesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSupportFeaturesOutcomeCallable describeSupportFeaturesCallable(const Model::DescribeSupportFeaturesRequest& request) const; DescribeTagsOutcome describeTags(const Model::DescribeTagsRequest &request)const; void describeTagsAsync(const Model::DescribeTagsRequest& request, const DescribeTagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeTagsOutcomeCallable describeTagsCallable(const Model::DescribeTagsRequest& request) const; DescribeUserEncryptionKeyListOutcome describeUserEncryptionKeyList(const Model::DescribeUserEncryptionKeyListRequest &request)const; void describeUserEncryptionKeyListAsync(const Model::DescribeUserEncryptionKeyListRequest& request, const DescribeUserEncryptionKeyListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeUserEncryptionKeyListOutcomeCallable describeUserEncryptionKeyListCallable(const Model::DescribeUserEncryptionKeyListRequest& request) const; + DescribeWaitingSQLInfoOutcome describeWaitingSQLInfo(const Model::DescribeWaitingSQLInfoRequest &request)const; + void describeWaitingSQLInfoAsync(const Model::DescribeWaitingSQLInfoRequest& request, const DescribeWaitingSQLInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeWaitingSQLInfoOutcomeCallable describeWaitingSQLInfoCallable(const Model::DescribeWaitingSQLInfoRequest& request) const; + DescribeWaitingSQLRecordsOutcome describeWaitingSQLRecords(const Model::DescribeWaitingSQLRecordsRequest &request)const; + void describeWaitingSQLRecordsAsync(const Model::DescribeWaitingSQLRecordsRequest& request, const DescribeWaitingSQLRecordsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeWaitingSQLRecordsOutcomeCallable describeWaitingSQLRecordsCallable(const Model::DescribeWaitingSQLRecordsRequest& 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; + DownloadSQLLogsRecordsOutcome downloadSQLLogsRecords(const Model::DownloadSQLLogsRecordsRequest &request)const; + void downloadSQLLogsRecordsAsync(const Model::DownloadSQLLogsRecordsRequest& request, const DownloadSQLLogsRecordsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DownloadSQLLogsRecordsOutcomeCallable downloadSQLLogsRecordsCallable(const Model::DownloadSQLLogsRecordsRequest& request) const; + GrantCollectionOutcome grantCollection(const Model::GrantCollectionRequest &request)const; + void grantCollectionAsync(const Model::GrantCollectionRequest& request, const GrantCollectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GrantCollectionOutcomeCallable grantCollectionCallable(const Model::GrantCollectionRequest& request) const; + InitVectorDatabaseOutcome initVectorDatabase(const Model::InitVectorDatabaseRequest &request)const; + void initVectorDatabaseAsync(const Model::InitVectorDatabaseRequest& request, const InitVectorDatabaseAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + InitVectorDatabaseOutcomeCallable initVectorDatabaseCallable(const Model::InitVectorDatabaseRequest& request) const; + ListCollectionsOutcome listCollections(const Model::ListCollectionsRequest &request)const; + void listCollectionsAsync(const Model::ListCollectionsRequest& request, const ListCollectionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListCollectionsOutcomeCallable listCollectionsCallable(const Model::ListCollectionsRequest& request) const; + ListNamespacesOutcome listNamespaces(const Model::ListNamespacesRequest &request)const; + void listNamespacesAsync(const Model::ListNamespacesRequest& request, const ListNamespacesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListNamespacesOutcomeCallable listNamespacesCallable(const Model::ListNamespacesRequest& 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; @@ -473,9 +723,9 @@ namespace AlibabaCloud 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; - ModifyDBInstanceConnectionModeOutcome modifyDBInstanceConnectionMode(const Model::ModifyDBInstanceConnectionModeRequest &request)const; - void modifyDBInstanceConnectionModeAsync(const Model::ModifyDBInstanceConnectionModeRequest& request, const ModifyDBInstanceConnectionModeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyDBInstanceConnectionModeOutcomeCallable modifyDBInstanceConnectionModeCallable(const Model::ModifyDBInstanceConnectionModeRequest& request) const; + ModifyDBInstanceConfigOutcome modifyDBInstanceConfig(const Model::ModifyDBInstanceConfigRequest &request)const; + void modifyDBInstanceConfigAsync(const Model::ModifyDBInstanceConfigRequest& request, const ModifyDBInstanceConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDBInstanceConfigOutcomeCallable modifyDBInstanceConfigCallable(const Model::ModifyDBInstanceConfigRequest& request) const; ModifyDBInstanceConnectionStringOutcome modifyDBInstanceConnectionString(const Model::ModifyDBInstanceConnectionStringRequest &request)const; void modifyDBInstanceConnectionStringAsync(const Model::ModifyDBInstanceConnectionStringRequest& request, const ModifyDBInstanceConnectionStringAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyDBInstanceConnectionStringOutcomeCallable modifyDBInstanceConnectionStringCallable(const Model::ModifyDBInstanceConnectionStringRequest& request) const; @@ -485,9 +735,9 @@ namespace AlibabaCloud ModifyDBInstanceMaintainTimeOutcome modifyDBInstanceMaintainTime(const Model::ModifyDBInstanceMaintainTimeRequest &request)const; void modifyDBInstanceMaintainTimeAsync(const Model::ModifyDBInstanceMaintainTimeRequest& request, const ModifyDBInstanceMaintainTimeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyDBInstanceMaintainTimeOutcomeCallable modifyDBInstanceMaintainTimeCallable(const Model::ModifyDBInstanceMaintainTimeRequest& request) const; - ModifyDBInstanceNetworkTypeOutcome modifyDBInstanceNetworkType(const Model::ModifyDBInstanceNetworkTypeRequest &request)const; - void modifyDBInstanceNetworkTypeAsync(const Model::ModifyDBInstanceNetworkTypeRequest& request, const ModifyDBInstanceNetworkTypeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyDBInstanceNetworkTypeOutcomeCallable modifyDBInstanceNetworkTypeCallable(const Model::ModifyDBInstanceNetworkTypeRequest& request) const; + ModifyDBInstanceResourceGroupOutcome modifyDBInstanceResourceGroup(const Model::ModifyDBInstanceResourceGroupRequest &request)const; + void modifyDBInstanceResourceGroupAsync(const Model::ModifyDBInstanceResourceGroupRequest& request, const ModifyDBInstanceResourceGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDBInstanceResourceGroupOutcomeCallable modifyDBInstanceResourceGroupCallable(const Model::ModifyDBInstanceResourceGroupRequest& request) const; ModifyDBInstanceSSLOutcome modifyDBInstanceSSL(const Model::ModifyDBInstanceSSLRequest &request)const; void modifyDBInstanceSSLAsync(const Model::ModifyDBInstanceSSLRequest& request, const ModifyDBInstanceSSLAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyDBInstanceSSLOutcomeCallable modifyDBInstanceSSLCallable(const Model::ModifyDBInstanceSSLRequest& request) const; @@ -500,6 +750,18 @@ namespace AlibabaCloud ModifySecurityIpsOutcome modifySecurityIps(const Model::ModifySecurityIpsRequest &request)const; void modifySecurityIpsAsync(const Model::ModifySecurityIpsRequest& request, const ModifySecurityIpsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifySecurityIpsOutcomeCallable modifySecurityIpsCallable(const Model::ModifySecurityIpsRequest& request) const; + ModifyVectorConfigurationOutcome modifyVectorConfiguration(const Model::ModifyVectorConfigurationRequest &request)const; + void modifyVectorConfigurationAsync(const Model::ModifyVectorConfigurationRequest& request, const ModifyVectorConfigurationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyVectorConfigurationOutcomeCallable modifyVectorConfigurationCallable(const Model::ModifyVectorConfigurationRequest& request) const; + PauseInstanceOutcome pauseInstance(const Model::PauseInstanceRequest &request)const; + void pauseInstanceAsync(const Model::PauseInstanceRequest& request, const PauseInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PauseInstanceOutcomeCallable pauseInstanceCallable(const Model::PauseInstanceRequest& request) const; + QueryCollectionDataOutcome queryCollectionData(const Model::QueryCollectionDataRequest &request)const; + void queryCollectionDataAsync(const Model::QueryCollectionDataRequest& request, const QueryCollectionDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryCollectionDataOutcomeCallable queryCollectionDataCallable(const Model::QueryCollectionDataRequest& request) const; + RebalanceDBInstanceOutcome rebalanceDBInstance(const Model::RebalanceDBInstanceRequest &request)const; + void rebalanceDBInstanceAsync(const Model::RebalanceDBInstanceRequest& request, const RebalanceDBInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RebalanceDBInstanceOutcomeCallable rebalanceDBInstanceCallable(const Model::RebalanceDBInstanceRequest& request) const; ReleaseInstancePublicConnectionOutcome releaseInstancePublicConnection(const Model::ReleaseInstancePublicConnectionRequest &request)const; void releaseInstancePublicConnectionAsync(const Model::ReleaseInstancePublicConnectionRequest& request, const ReleaseInstancePublicConnectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ReleaseInstancePublicConnectionOutcomeCallable releaseInstancePublicConnectionCallable(const Model::ReleaseInstancePublicConnectionRequest& request) const; @@ -509,21 +771,39 @@ namespace AlibabaCloud RestartDBInstanceOutcome restartDBInstance(const Model::RestartDBInstanceRequest &request)const; void restartDBInstanceAsync(const Model::RestartDBInstanceRequest& request, const RestartDBInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RestartDBInstanceOutcomeCallable restartDBInstanceCallable(const Model::RestartDBInstanceRequest& request) const; + ResumeInstanceOutcome resumeInstance(const Model::ResumeInstanceRequest &request)const; + void resumeInstanceAsync(const Model::ResumeInstanceRequest& request, const ResumeInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ResumeInstanceOutcomeCallable resumeInstanceCallable(const Model::ResumeInstanceRequest& request) const; + SetDBInstancePlanStatusOutcome setDBInstancePlanStatus(const Model::SetDBInstancePlanStatusRequest &request)const; + void setDBInstancePlanStatusAsync(const Model::SetDBInstancePlanStatusRequest& request, const SetDBInstancePlanStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetDBInstancePlanStatusOutcomeCallable setDBInstancePlanStatusCallable(const Model::SetDBInstancePlanStatusRequest& request) const; + SetDataShareInstanceOutcome setDataShareInstance(const Model::SetDataShareInstanceRequest &request)const; + void setDataShareInstanceAsync(const Model::SetDataShareInstanceRequest& request, const SetDataShareInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetDataShareInstanceOutcomeCallable setDataShareInstanceCallable(const Model::SetDataShareInstanceRequest& request) const; SwitchDBInstanceNetTypeOutcome switchDBInstanceNetType(const Model::SwitchDBInstanceNetTypeRequest &request)const; void switchDBInstanceNetTypeAsync(const Model::SwitchDBInstanceNetTypeRequest& request, const SwitchDBInstanceNetTypeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SwitchDBInstanceNetTypeOutcomeCallable switchDBInstanceNetTypeCallable(const Model::SwitchDBInstanceNetTypeRequest& 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; + UnloadSampleDataOutcome unloadSampleData(const Model::UnloadSampleDataRequest &request)const; + void unloadSampleDataAsync(const Model::UnloadSampleDataRequest& request, const UnloadSampleDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UnloadSampleDataOutcomeCallable unloadSampleDataCallable(const Model::UnloadSampleDataRequest& 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; + UpdateDBInstancePlanOutcome updateDBInstancePlan(const Model::UpdateDBInstancePlanRequest &request)const; + void updateDBInstancePlanAsync(const Model::UpdateDBInstancePlanRequest& request, const UpdateDBInstancePlanAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateDBInstancePlanOutcomeCallable updateDBInstancePlanCallable(const Model::UpdateDBInstancePlanRequest& request) const; UpgradeDBInstanceOutcome upgradeDBInstance(const Model::UpgradeDBInstanceRequest &request)const; void upgradeDBInstanceAsync(const Model::UpgradeDBInstanceRequest& request, const UpgradeDBInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpgradeDBInstanceOutcomeCallable upgradeDBInstanceCallable(const Model::UpgradeDBInstanceRequest& request) const; UpgradeDBVersionOutcome upgradeDBVersion(const Model::UpgradeDBVersionRequest &request)const; void upgradeDBVersionAsync(const Model::UpgradeDBVersionRequest& request, const UpgradeDBVersionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpgradeDBVersionOutcomeCallable upgradeDBVersionCallable(const Model::UpgradeDBVersionRequest& request) const; + UpsertCollectionDataOutcome upsertCollectionData(const Model::UpsertCollectionDataRequest &request)const; + void upsertCollectionDataAsync(const Model::UpsertCollectionDataRequest& request, const UpsertCollectionDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpsertCollectionDataOutcomeCallable upsertCollectionDataCallable(const Model::UpsertCollectionDataRequest& request) const; private: std::shared_ptr endpointProvider_; diff --git a/gpdb/include/alibabacloud/gpdb/model/CreateAccountRequest.h b/gpdb/include/alibabacloud/gpdb/model/CreateAccountRequest.h index c86f4fda1..958bef569 100644 --- a/gpdb/include/alibabacloud/gpdb/model/CreateAccountRequest.h +++ b/gpdb/include/alibabacloud/gpdb/model/CreateAccountRequest.h @@ -34,6 +34,8 @@ public: void setAccountDescription(const std::string &accountDescription); std::string getAccessKeyId() const; void setAccessKeyId(const std::string &accessKeyId); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); std::string getAccountName() const; void setAccountName(const std::string &accountName); std::string getDBInstanceId() const; @@ -48,6 +50,7 @@ public: private: std::string accountDescription_; std::string accessKeyId_; + std::string resourceGroupId_; std::string accountName_; std::string dBInstanceId_; long ownerId_; diff --git a/gpdb/include/alibabacloud/gpdb/model/CreateCollectionRequest.h b/gpdb/include/alibabacloud/gpdb/model/CreateCollectionRequest.h new file mode 100644 index 000000000..d14a0713a --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/CreateCollectionRequest.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_GPDB_MODEL_CREATECOLLECTIONREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_CREATECOLLECTIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Gpdb { +namespace Model { +class ALIBABACLOUD_GPDB_EXPORT CreateCollectionRequest : public RpcServiceRequest { +public: + CreateCollectionRequest(); + ~CreateCollectionRequest(); + std::string getMetadata() const; + void setMetadata(const std::string &metadata); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getFullTextRetrievalFields() const; + void setFullTextRetrievalFields(const std::string &fullTextRetrievalFields); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getManagerAccount() const; + void setManagerAccount(const std::string &managerAccount); + std::string getDBInstanceId() const; + void setDBInstanceId(const std::string &dBInstanceId); + long getDimension() const; + void setDimension(long dimension); + std::string getManagerAccountPassword() const; + void setManagerAccountPassword(const std::string &managerAccountPassword); + std::string getCollection() const; + void setCollection(const std::string &collection); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getParser() const; + void setParser(const std::string &parser); + std::string get_Namespace() const; + void set_Namespace(const std::string &_namespace); + +private: + std::string metadata_; + std::string accessKeyId_; + std::string fullTextRetrievalFields_; + std::string regionId_; + std::string managerAccount_; + std::string dBInstanceId_; + long dimension_; + std::string managerAccountPassword_; + std::string collection_; + long ownerId_; + std::string parser_; + std::string _namespace_; +}; +} // namespace Model +} // namespace Gpdb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GPDB_MODEL_CREATECOLLECTIONREQUEST_H_ diff --git a/gpdb/include/alibabacloud/gpdb/model/CreateCollectionResult.h b/gpdb/include/alibabacloud/gpdb/model/CreateCollectionResult.h new file mode 100644 index 000000000..1723b7706 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/CreateCollectionResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GPDB_MODEL_CREATECOLLECTIONRESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_CREATECOLLECTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT CreateCollectionResult : public ServiceResult + { + public: + + + CreateCollectionResult(); + explicit CreateCollectionResult(const std::string &payload); + ~CreateCollectionResult(); + std::string getStatus()const; + std::string getMessage()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + std::string message_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_CREATECOLLECTIONRESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/CreateDBInstancePlanRequest.h b/gpdb/include/alibabacloud/gpdb/model/CreateDBInstancePlanRequest.h new file mode 100644 index 000000000..ab5fc2afb --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/CreateDBInstancePlanRequest.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_GPDB_MODEL_CREATEDBINSTANCEPLANREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_CREATEDBINSTANCEPLANREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Gpdb { +namespace Model { +class ALIBABACLOUD_GPDB_EXPORT CreateDBInstancePlanRequest : public RpcServiceRequest { +public: + CreateDBInstancePlanRequest(); + ~CreateDBInstancePlanRequest(); + std::string getPlanType() const; + void setPlanType(const std::string &planType); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getPlanStartDate() const; + void setPlanStartDate(const std::string &planStartDate); + std::string getPlanConfig() const; + void setPlanConfig(const std::string &planConfig); + std::string getPlanName() const; + void setPlanName(const std::string &planName); + std::string getDBInstanceId() const; + void setDBInstanceId(const std::string &dBInstanceId); + std::string getPlanDesc() const; + void setPlanDesc(const std::string &planDesc); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getPlanEndDate() const; + void setPlanEndDate(const std::string &planEndDate); + std::string getPlanScheduleType() const; + void setPlanScheduleType(const std::string &planScheduleType); + +private: + std::string planType_; + std::string accessKeyId_; + std::string planStartDate_; + std::string planConfig_; + std::string planName_; + std::string dBInstanceId_; + std::string planDesc_; + long ownerId_; + std::string planEndDate_; + std::string planScheduleType_; +}; +} // namespace Model +} // namespace Gpdb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GPDB_MODEL_CREATEDBINSTANCEPLANREQUEST_H_ diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeResourceUsageResult.h b/gpdb/include/alibabacloud/gpdb/model/CreateDBInstancePlanResult.h similarity index 60% rename from gpdb/include/alibabacloud/gpdb/model/DescribeResourceUsageResult.h rename to gpdb/include/alibabacloud/gpdb/model/CreateDBInstancePlanResult.h index 18dde44cd..0be68253a 100644 --- a/gpdb/include/alibabacloud/gpdb/model/DescribeResourceUsageResult.h +++ b/gpdb/include/alibabacloud/gpdb/model/CreateDBInstancePlanResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_GPDB_MODEL_DESCRIBERESOURCEUSAGERESULT_H_ -#define ALIBABACLOUD_GPDB_MODEL_DESCRIBERESOURCEUSAGERESULT_H_ +#ifndef ALIBABACLOUD_GPDB_MODEL_CREATEDBINSTANCEPLANRESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_CREATEDBINSTANCEPLANRESULT_H_ #include #include @@ -29,33 +29,29 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_GPDB_EXPORT DescribeResourceUsageResult : public ServiceResult + class ALIBABACLOUD_GPDB_EXPORT CreateDBInstancePlanResult : public ServiceResult { public: - DescribeResourceUsageResult(); - explicit DescribeResourceUsageResult(const std::string &payload); - ~DescribeResourceUsageResult(); - long getLogSize()const; + CreateDBInstancePlanResult(); + explicit CreateDBInstancePlanResult(const std::string &payload); + ~CreateDBInstancePlanResult(); + std::string getStatus()const; std::string getDBInstanceId()const; - long getDataSize()const; - long getBackupSize()const; - long getDiskUsed()const; - std::string getEngine()const; + std::string getPlanId()const; + std::string getErrorMessage()const; protected: void parse(const std::string &payload); private: - long logSize_; + std::string status_; std::string dBInstanceId_; - long dataSize_; - long backupSize_; - long diskUsed_; - std::string engine_; + std::string planId_; + std::string errorMessage_; }; } } } -#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBERESOURCEUSAGERESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_GPDB_MODEL_CREATEDBINSTANCEPLANRESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/CreateDBInstanceRequest.h b/gpdb/include/alibabacloud/gpdb/model/CreateDBInstanceRequest.h index 6082387e0..e04849702 100644 --- a/gpdb/include/alibabacloud/gpdb/model/CreateDBInstanceRequest.h +++ b/gpdb/include/alibabacloud/gpdb/model/CreateDBInstanceRequest.h @@ -28,28 +28,38 @@ namespace Gpdb { namespace Model { class ALIBABACLOUD_GPDB_EXPORT CreateDBInstanceRequest : public RpcServiceRequest { public: + struct Tag { + std::string value; + std::string key; + }; CreateDBInstanceRequest(); ~CreateDBInstanceRequest(); - std::string getClientToken() const; - void setClientToken(const std::string &clientToken); std::string getEngineVersion() const; void setEngineVersion(const std::string &engineVersion); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - std::string getEngine() const; - void setEngine(const std::string &engine); + std::string getDBInstanceCategory() const; + void setDBInstanceCategory(const std::string &dBInstanceCategory); + std::string getStorageType() const; + void setStorageType(const std::string &storageType); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getEncryptionType() const; + void setEncryptionType(const std::string &encryptionType); std::string getDBInstanceDescription() const; void setDBInstanceDescription(const std::string &dBInstanceDescription); - std::string getDBInstanceGroupCount() const; - void setDBInstanceGroupCount(const std::string &dBInstanceGroupCount); + std::string getServerlessMode() const; + void setServerlessMode(const std::string &serverlessMode); + std::vector getTag() const; + void setTag(const std::vector &tag); std::string getPeriod() const; void setPeriod(const std::string &period); + std::string getVectorConfigurationStatus() const; + void setVectorConfigurationStatus(const std::string &vectorConfigurationStatus); + std::string getEncryptionKey() const; + void setEncryptionKey(const std::string &encryptionKey); long getOwnerId() const; void setOwnerId(long ownerId); - std::string getUsedTime() const; - void setUsedTime(const std::string &usedTime); + std::string getSegDiskPerformanceLevel() const; + void setSegDiskPerformanceLevel(const std::string &segDiskPerformanceLevel); std::string getDBInstanceClass() const; void setDBInstanceClass(const std::string &dBInstanceClass); std::string getSecurityIPList() const; @@ -58,34 +68,82 @@ public: void setVSwitchId(const std::string &vSwitchId); std::string getPrivateIpAddress() const; void setPrivateIpAddress(const std::string &privateIpAddress); - std::string getVPCId() const; - void setVPCId(const std::string &vPCId); std::string getZoneId() const; void setZoneId(const std::string &zoneId); - std::string getPayType() const; - void setPayType(const std::string &payType); std::string getInstanceNetworkType() const; void setInstanceNetworkType(const std::string &instanceNetworkType); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getInstanceSpec() const; + void setInstanceSpec(const std::string &instanceSpec); + long getStorageSize() const; + void setStorageSize(long storageSize); + std::string getSegStorageType() const; + void setSegStorageType(const std::string &segStorageType); + std::string getMasterNodeNum() const; + void setMasterNodeNum(const std::string &masterNodeNum); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getSegNodeNum() const; + void setSegNodeNum(const std::string &segNodeNum); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getEngine() const; + void setEngine(const std::string &engine); + bool getCreateSampleData() const; + void setCreateSampleData(bool createSampleData); + std::string getDBInstanceGroupCount() const; + void setDBInstanceGroupCount(const std::string &dBInstanceGroupCount); + std::string getDBInstanceMode() const; + void setDBInstanceMode(const std::string &dBInstanceMode); + std::string getUsedTime() const; + void setUsedTime(const std::string &usedTime); + std::string getVPCId() const; + void setVPCId(const std::string &vPCId); + int getServerlessResource() const; + void setServerlessResource(int serverlessResource); + int getIdleTime() const; + void setIdleTime(int idleTime); + std::string getPayType() const; + void setPayType(const std::string &payType); private: - std::string clientToken_; std::string engineVersion_; - std::string accessKeyId_; - std::string regionId_; - std::string engine_; + std::string dBInstanceCategory_; + std::string storageType_; + std::string resourceGroupId_; + std::string encryptionType_; std::string dBInstanceDescription_; - std::string dBInstanceGroupCount_; + std::string serverlessMode_; + std::vector tag_; std::string period_; + std::string vectorConfigurationStatus_; + std::string encryptionKey_; long ownerId_; - std::string usedTime_; + std::string segDiskPerformanceLevel_; std::string dBInstanceClass_; std::string securityIPList_; std::string vSwitchId_; std::string privateIpAddress_; - std::string vPCId_; std::string zoneId_; - std::string payType_; std::string instanceNetworkType_; + std::string clientToken_; + std::string instanceSpec_; + long storageSize_; + std::string segStorageType_; + std::string masterNodeNum_; + std::string accessKeyId_; + std::string segNodeNum_; + std::string regionId_; + std::string engine_; + bool createSampleData_; + std::string dBInstanceGroupCount_; + std::string dBInstanceMode_; + std::string usedTime_; + std::string vPCId_; + int serverlessResource_; + int idleTime_; + std::string payType_; }; } // namespace Model } // namespace Gpdb diff --git a/gpdb/include/alibabacloud/gpdb/model/CreateECSDBInstanceRequest.h b/gpdb/include/alibabacloud/gpdb/model/CreateECSDBInstanceRequest.h deleted file mode 100644 index 805e36446..000000000 --- a/gpdb/include/alibabacloud/gpdb/model/CreateECSDBInstanceRequest.h +++ /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. - */ - -#ifndef ALIBABACLOUD_GPDB_MODEL_CREATEECSDBINSTANCEREQUEST_H_ -#define ALIBABACLOUD_GPDB_MODEL_CREATEECSDBINSTANCEREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Gpdb { -namespace Model { -class ALIBABACLOUD_GPDB_EXPORT CreateECSDBInstanceRequest : public RpcServiceRequest { -public: - CreateECSDBInstanceRequest(); - ~CreateECSDBInstanceRequest(); - std::string getEngineVersion() const; - void setEngineVersion(const std::string &engineVersion); - std::string getDBInstanceCategory() const; - void setDBInstanceCategory(const std::string &dBInstanceCategory); - std::string getEncryptionType() const; - void setEncryptionType(const std::string &encryptionType); - std::string getDBInstanceDescription() const; - void setDBInstanceDescription(const std::string &dBInstanceDescription); - std::string getPeriod() const; - void setPeriod(const std::string &period); - std::string getBackupId() const; - void setBackupId(const std::string &backupId); - std::string getEncryptionKey() const; - void setEncryptionKey(const std::string &encryptionKey); - long getOwnerId() const; - void setOwnerId(long ownerId); - std::string getSecurityIPList() const; - void setSecurityIPList(const std::string &securityIPList); - std::string getVSwitchId() const; - void setVSwitchId(const std::string &vSwitchId); - std::string getPrivateIpAddress() const; - void setPrivateIpAddress(const std::string &privateIpAddress); - std::string getZoneId() const; - void setZoneId(const std::string &zoneId); - std::string getInstanceNetworkType() const; - void setInstanceNetworkType(const std::string &instanceNetworkType); - std::string getClientToken() const; - void setClientToken(const std::string &clientToken); - std::string getInstanceSpec() const; - void setInstanceSpec(const std::string &instanceSpec); - int getStorageSize() const; - void setStorageSize(int storageSize); - std::string getSegStorageType() const; - void setSegStorageType(const std::string &segStorageType); - int getMasterNodeNum() const; - void setMasterNodeNum(int masterNodeNum); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); - int getSegNodeNum() const; - void setSegNodeNum(int segNodeNum); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - std::string getEngine() const; - void setEngine(const std::string &engine); - std::string getUsedTime() const; - void setUsedTime(const std::string &usedTime); - std::string getVPCId() const; - void setVPCId(const std::string &vPCId); - std::string getPayType() const; - void setPayType(const std::string &payType); - std::string getSrcDbInstanceName() const; - void setSrcDbInstanceName(const std::string &srcDbInstanceName); - -private: - std::string engineVersion_; - std::string dBInstanceCategory_; - std::string encryptionType_; - std::string dBInstanceDescription_; - std::string period_; - std::string backupId_; - std::string encryptionKey_; - long ownerId_; - std::string securityIPList_; - std::string vSwitchId_; - std::string privateIpAddress_; - std::string zoneId_; - std::string instanceNetworkType_; - std::string clientToken_; - std::string instanceSpec_; - int storageSize_; - std::string segStorageType_; - int masterNodeNum_; - std::string accessKeyId_; - int segNodeNum_; - std::string regionId_; - std::string engine_; - std::string usedTime_; - std::string vPCId_; - std::string payType_; - std::string srcDbInstanceName_; -}; -} // namespace Model -} // namespace Gpdb -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_GPDB_MODEL_CREATEECSDBINSTANCEREQUEST_H_ diff --git a/gpdb/include/alibabacloud/gpdb/model/CreateNamespaceRequest.h b/gpdb/include/alibabacloud/gpdb/model/CreateNamespaceRequest.h new file mode 100644 index 000000000..35098e087 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/CreateNamespaceRequest.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_GPDB_MODEL_CREATENAMESPACEREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_CREATENAMESPACEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Gpdb { +namespace Model { +class ALIBABACLOUD_GPDB_EXPORT CreateNamespaceRequest : public RpcServiceRequest { +public: + CreateNamespaceRequest(); + ~CreateNamespaceRequest(); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getManagerAccount() const; + void setManagerAccount(const std::string &managerAccount); + std::string getDBInstanceId() const; + void setDBInstanceId(const std::string &dBInstanceId); + std::string getManagerAccountPassword() const; + void setManagerAccountPassword(const std::string &managerAccountPassword); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getNamespacePassword() const; + void setNamespacePassword(const std::string &namespacePassword); + std::string get_Namespace() const; + void set_Namespace(const std::string &_namespace); + +private: + std::string accessKeyId_; + std::string regionId_; + std::string managerAccount_; + std::string dBInstanceId_; + std::string managerAccountPassword_; + long ownerId_; + std::string namespacePassword_; + std::string _namespace_; +}; +} // namespace Model +} // namespace Gpdb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GPDB_MODEL_CREATENAMESPACEREQUEST_H_ diff --git a/gpdb/include/alibabacloud/gpdb/model/CreateNamespaceResult.h b/gpdb/include/alibabacloud/gpdb/model/CreateNamespaceResult.h new file mode 100644 index 000000000..d36614ad8 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/CreateNamespaceResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GPDB_MODEL_CREATENAMESPACERESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_CREATENAMESPACERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT CreateNamespaceResult : public ServiceResult + { + public: + + + CreateNamespaceResult(); + explicit CreateNamespaceResult(const std::string &payload); + ~CreateNamespaceResult(); + std::string getStatus()const; + std::string getMessage()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + std::string message_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_CREATENAMESPACERESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstanceOnECSAttributeRequest.h b/gpdb/include/alibabacloud/gpdb/model/CreateSampleDataRequest.h similarity index 73% rename from gpdb/include/alibabacloud/gpdb/model/DescribeDBInstanceOnECSAttributeRequest.h rename to gpdb/include/alibabacloud/gpdb/model/CreateSampleDataRequest.h index ce425c0ad..b1b15c2ef 100644 --- a/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstanceOnECSAttributeRequest.h +++ b/gpdb/include/alibabacloud/gpdb/model/CreateSampleDataRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_GPDB_MODEL_DESCRIBEDBINSTANCEONECSATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_GPDB_MODEL_DESCRIBEDBINSTANCEONECSATTRIBUTEREQUEST_H_ +#ifndef ALIBABACLOUD_GPDB_MODEL_CREATESAMPLEDATAREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_CREATESAMPLEDATAREQUEST_H_ #include #include @@ -26,10 +26,10 @@ namespace AlibabaCloud { namespace Gpdb { namespace Model { -class ALIBABACLOUD_GPDB_EXPORT DescribeDBInstanceOnECSAttributeRequest : public RpcServiceRequest { +class ALIBABACLOUD_GPDB_EXPORT CreateSampleDataRequest : public RpcServiceRequest { public: - DescribeDBInstanceOnECSAttributeRequest(); - ~DescribeDBInstanceOnECSAttributeRequest(); + CreateSampleDataRequest(); + ~CreateSampleDataRequest(); std::string getAccessKeyId() const; void setAccessKeyId(const std::string &accessKeyId); std::string getDBInstanceId() const; @@ -45,4 +45,4 @@ private: } // namespace Model } // namespace Gpdb } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBEDBINSTANCEONECSATTRIBUTEREQUEST_H_ +#endif // !ALIBABACLOUD_GPDB_MODEL_CREATESAMPLEDATAREQUEST_H_ diff --git a/gpdb/include/alibabacloud/gpdb/model/CreateECSDBInstanceResult.h b/gpdb/include/alibabacloud/gpdb/model/CreateSampleDataResult.h similarity index 62% rename from gpdb/include/alibabacloud/gpdb/model/CreateECSDBInstanceResult.h rename to gpdb/include/alibabacloud/gpdb/model/CreateSampleDataResult.h index 55b57cb05..6c1fb5e71 100644 --- a/gpdb/include/alibabacloud/gpdb/model/CreateECSDBInstanceResult.h +++ b/gpdb/include/alibabacloud/gpdb/model/CreateSampleDataResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_GPDB_MODEL_CREATEECSDBINSTANCERESULT_H_ -#define ALIBABACLOUD_GPDB_MODEL_CREATEECSDBINSTANCERESULT_H_ +#ifndef ALIBABACLOUD_GPDB_MODEL_CREATESAMPLEDATARESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_CREATESAMPLEDATARESULT_H_ #include #include @@ -29,29 +29,27 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_GPDB_EXPORT CreateECSDBInstanceResult : public ServiceResult + class ALIBABACLOUD_GPDB_EXPORT CreateSampleDataResult : public ServiceResult { public: - CreateECSDBInstanceResult(); - explicit CreateECSDBInstanceResult(const std::string &payload); - ~CreateECSDBInstanceResult(); + CreateSampleDataResult(); + explicit CreateSampleDataResult(const std::string &payload); + ~CreateSampleDataResult(); + bool getStatus()const; std::string getDBInstanceId()const; - std::string getPort()const; - std::string getConnectionString()const; - std::string getOrderId()const; + std::string getErrorMessage()const; protected: void parse(const std::string &payload); private: + bool status_; std::string dBInstanceId_; - std::string port_; - std::string connectionString_; - std::string orderId_; + std::string errorMessage_; }; } } } -#endif // !ALIBABACLOUD_GPDB_MODEL_CREATEECSDBINSTANCERESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_GPDB_MODEL_CREATESAMPLEDATARESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/CreateVectorIndexRequest.h b/gpdb/include/alibabacloud/gpdb/model/CreateVectorIndexRequest.h new file mode 100644 index 000000000..f8823ce83 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/CreateVectorIndexRequest.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_GPDB_MODEL_CREATEVECTORINDEXREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_CREATEVECTORINDEXREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Gpdb { +namespace Model { +class ALIBABACLOUD_GPDB_EXPORT CreateVectorIndexRequest : public RpcServiceRequest { +public: + CreateVectorIndexRequest(); + ~CreateVectorIndexRequest(); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getManagerAccount() const; + void setManagerAccount(const std::string &managerAccount); + std::string getDBInstanceId() const; + void setDBInstanceId(const std::string &dBInstanceId); + int getDimension() const; + void setDimension(int dimension); + std::string getManagerAccountPassword() const; + void setManagerAccountPassword(const std::string &managerAccountPassword); + std::string getCollection() const; + void setCollection(const std::string &collection); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string get_Namespace() const; + void set_Namespace(const std::string &_namespace); + std::string getMetrics() const; + void setMetrics(const std::string &metrics); + +private: + std::string accessKeyId_; + std::string regionId_; + std::string managerAccount_; + std::string dBInstanceId_; + int dimension_; + std::string managerAccountPassword_; + std::string collection_; + long ownerId_; + std::string _namespace_; + std::string metrics_; +}; +} // namespace Model +} // namespace Gpdb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GPDB_MODEL_CREATEVECTORINDEXREQUEST_H_ diff --git a/gpdb/include/alibabacloud/gpdb/model/CreateVectorIndexResult.h b/gpdb/include/alibabacloud/gpdb/model/CreateVectorIndexResult.h new file mode 100644 index 000000000..7a6ceaf70 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/CreateVectorIndexResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GPDB_MODEL_CREATEVECTORINDEXRESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_CREATEVECTORINDEXRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT CreateVectorIndexResult : public ServiceResult + { + public: + + + CreateVectorIndexResult(); + explicit CreateVectorIndexResult(const std::string &payload); + ~CreateVectorIndexResult(); + std::string getStatus()const; + std::string getMessage()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + std::string message_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_CREATEVECTORINDEXRESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/DeleteCollectionDataRequest.h b/gpdb/include/alibabacloud/gpdb/model/DeleteCollectionDataRequest.h new file mode 100644 index 000000000..59c365242 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/DeleteCollectionDataRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GPDB_MODEL_DELETECOLLECTIONDATAREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_DELETECOLLECTIONDATAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Gpdb { +namespace Model { +class ALIBABACLOUD_GPDB_EXPORT DeleteCollectionDataRequest : public RpcServiceRequest { +public: + DeleteCollectionDataRequest(); + ~DeleteCollectionDataRequest(); + std::string getCollectionDataFilter() const; + void setCollectionDataFilter(const std::string &collectionDataFilter); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getCollectionData() const; + void setCollectionData(const std::string &collectionData); + std::string getDBInstanceId() const; + void setDBInstanceId(const std::string &dBInstanceId); + std::string getCollection() const; + void setCollection(const std::string &collection); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getNamespacePassword() const; + void setNamespacePassword(const std::string &namespacePassword); + std::string get_Namespace() const; + void set_Namespace(const std::string &_namespace); + +private: + std::string collectionDataFilter_; + std::string accessKeyId_; + std::string regionId_; + std::string collectionData_; + std::string dBInstanceId_; + std::string collection_; + long ownerId_; + std::string namespacePassword_; + std::string _namespace_; +}; +} // namespace Model +} // namespace Gpdb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GPDB_MODEL_DELETECOLLECTIONDATAREQUEST_H_ diff --git a/gpdb/include/alibabacloud/gpdb/model/DeleteCollectionDataResult.h b/gpdb/include/alibabacloud/gpdb/model/DeleteCollectionDataResult.h new file mode 100644 index 000000000..098259e04 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/DeleteCollectionDataResult.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_GPDB_MODEL_DELETECOLLECTIONDATARESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_DELETECOLLECTIONDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT DeleteCollectionDataResult : public ServiceResult + { + public: + + + DeleteCollectionDataResult(); + explicit DeleteCollectionDataResult(const std::string &payload); + ~DeleteCollectionDataResult(); + std::string getStatus()const; + std::string getMessage()const; + long getAppliedRows()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + std::string message_; + long appliedRows_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_DELETECOLLECTIONDATARESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/DeleteCollectionRequest.h b/gpdb/include/alibabacloud/gpdb/model/DeleteCollectionRequest.h new file mode 100644 index 000000000..7d69c5b90 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/DeleteCollectionRequest.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_GPDB_MODEL_DELETECOLLECTIONREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_DELETECOLLECTIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Gpdb { +namespace Model { +class ALIBABACLOUD_GPDB_EXPORT DeleteCollectionRequest : public RpcServiceRequest { +public: + DeleteCollectionRequest(); + ~DeleteCollectionRequest(); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getDBInstanceId() const; + void setDBInstanceId(const std::string &dBInstanceId); + std::string getCollection() const; + void setCollection(const std::string &collection); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getNamespacePassword() const; + void setNamespacePassword(const std::string &namespacePassword); + std::string get_Namespace() const; + void set_Namespace(const std::string &_namespace); + +private: + std::string accessKeyId_; + std::string regionId_; + std::string dBInstanceId_; + std::string collection_; + long ownerId_; + std::string namespacePassword_; + std::string _namespace_; +}; +} // namespace Model +} // namespace Gpdb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GPDB_MODEL_DELETECOLLECTIONREQUEST_H_ diff --git a/gpdb/include/alibabacloud/gpdb/model/DeleteCollectionResult.h b/gpdb/include/alibabacloud/gpdb/model/DeleteCollectionResult.h new file mode 100644 index 000000000..813b3574a --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/DeleteCollectionResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GPDB_MODEL_DELETECOLLECTIONRESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_DELETECOLLECTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT DeleteCollectionResult : public ServiceResult + { + public: + + + DeleteCollectionResult(); + explicit DeleteCollectionResult(const std::string &payload); + ~DeleteCollectionResult(); + std::string getStatus()const; + std::string getMessage()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + std::string message_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_DELETECOLLECTIONRESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/DeleteDBInstancePlanRequest.h b/gpdb/include/alibabacloud/gpdb/model/DeleteDBInstancePlanRequest.h new file mode 100644 index 000000000..ea350a7e2 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/DeleteDBInstancePlanRequest.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_GPDB_MODEL_DELETEDBINSTANCEPLANREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_DELETEDBINSTANCEPLANREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Gpdb { +namespace Model { +class ALIBABACLOUD_GPDB_EXPORT DeleteDBInstancePlanRequest : public RpcServiceRequest { +public: + DeleteDBInstancePlanRequest(); + ~DeleteDBInstancePlanRequest(); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getDBInstanceId() const; + void setDBInstanceId(const std::string &dBInstanceId); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getPlanId() const; + void setPlanId(const std::string &planId); + +private: + std::string accessKeyId_; + std::string dBInstanceId_; + long ownerId_; + std::string planId_; +}; +} // namespace Model +} // namespace Gpdb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GPDB_MODEL_DELETEDBINSTANCEPLANREQUEST_H_ diff --git a/gpdb/include/alibabacloud/gpdb/model/DeleteDBInstancePlanResult.h b/gpdb/include/alibabacloud/gpdb/model/DeleteDBInstancePlanResult.h new file mode 100644 index 000000000..48d610935 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/DeleteDBInstancePlanResult.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_GPDB_MODEL_DELETEDBINSTANCEPLANRESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_DELETEDBINSTANCEPLANRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT DeleteDBInstancePlanResult : public ServiceResult + { + public: + + + DeleteDBInstancePlanResult(); + explicit DeleteDBInstancePlanResult(const std::string &payload); + ~DeleteDBInstancePlanResult(); + std::string getStatus()const; + std::string getDBInstanceId()const; + std::string getPlanId()const; + std::string getErrorMessage()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + std::string dBInstanceId_; + std::string planId_; + std::string errorMessage_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_DELETEDBINSTANCEPLANRESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/DeleteDBInstanceRequest.h b/gpdb/include/alibabacloud/gpdb/model/DeleteDBInstanceRequest.h index 5cab168ed..12ad1c406 100644 --- a/gpdb/include/alibabacloud/gpdb/model/DeleteDBInstanceRequest.h +++ b/gpdb/include/alibabacloud/gpdb/model/DeleteDBInstanceRequest.h @@ -34,6 +34,8 @@ public: void setClientToken(const std::string &clientToken); std::string getAccessKeyId() const; void setAccessKeyId(const std::string &accessKeyId); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); std::string getDBInstanceId() const; void setDBInstanceId(const std::string &dBInstanceId); long getOwnerId() const; @@ -42,6 +44,7 @@ public: private: std::string clientToken_; std::string accessKeyId_; + std::string resourceGroupId_; std::string dBInstanceId_; long ownerId_; }; diff --git a/gpdb/include/alibabacloud/gpdb/model/DeleteNamespaceRequest.h b/gpdb/include/alibabacloud/gpdb/model/DeleteNamespaceRequest.h new file mode 100644 index 000000000..74eb29696 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/DeleteNamespaceRequest.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_GPDB_MODEL_DELETENAMESPACEREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_DELETENAMESPACEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Gpdb { +namespace Model { +class ALIBABACLOUD_GPDB_EXPORT DeleteNamespaceRequest : public RpcServiceRequest { +public: + DeleteNamespaceRequest(); + ~DeleteNamespaceRequest(); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getManagerAccount() const; + void setManagerAccount(const std::string &managerAccount); + std::string getDBInstanceId() const; + void setDBInstanceId(const std::string &dBInstanceId); + std::string getManagerAccountPassword() const; + void setManagerAccountPassword(const std::string &managerAccountPassword); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string get_Namespace() const; + void set_Namespace(const std::string &_namespace); + +private: + std::string accessKeyId_; + std::string regionId_; + std::string managerAccount_; + std::string dBInstanceId_; + std::string managerAccountPassword_; + long ownerId_; + std::string _namespace_; +}; +} // namespace Model +} // namespace Gpdb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GPDB_MODEL_DELETENAMESPACEREQUEST_H_ diff --git a/gpdb/include/alibabacloud/gpdb/model/DeleteNamespaceResult.h b/gpdb/include/alibabacloud/gpdb/model/DeleteNamespaceResult.h new file mode 100644 index 000000000..3af05ac1b --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/DeleteNamespaceResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GPDB_MODEL_DELETENAMESPACERESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_DELETENAMESPACERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT DeleteNamespaceResult : public ServiceResult + { + public: + + + DeleteNamespaceResult(); + explicit DeleteNamespaceResult(const std::string &payload); + ~DeleteNamespaceResult(); + std::string getStatus()const; + std::string getMessage()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + std::string message_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_DELETENAMESPACERESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/DeleteVectorIndexRequest.h b/gpdb/include/alibabacloud/gpdb/model/DeleteVectorIndexRequest.h new file mode 100644 index 000000000..0dead73ab --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/DeleteVectorIndexRequest.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_GPDB_MODEL_DELETEVECTORINDEXREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_DELETEVECTORINDEXREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Gpdb { +namespace Model { +class ALIBABACLOUD_GPDB_EXPORT DeleteVectorIndexRequest : public RpcServiceRequest { +public: + DeleteVectorIndexRequest(); + ~DeleteVectorIndexRequest(); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getManagerAccount() const; + void setManagerAccount(const std::string &managerAccount); + std::string getDBInstanceId() const; + void setDBInstanceId(const std::string &dBInstanceId); + std::string getManagerAccountPassword() const; + void setManagerAccountPassword(const std::string &managerAccountPassword); + std::string getCollection() const; + void setCollection(const std::string &collection); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string get_Namespace() const; + void set_Namespace(const std::string &_namespace); + +private: + std::string accessKeyId_; + std::string regionId_; + std::string managerAccount_; + std::string dBInstanceId_; + std::string managerAccountPassword_; + std::string collection_; + long ownerId_; + std::string _namespace_; +}; +} // namespace Model +} // namespace Gpdb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GPDB_MODEL_DELETEVECTORINDEXREQUEST_H_ diff --git a/gpdb/include/alibabacloud/gpdb/model/DeleteVectorIndexResult.h b/gpdb/include/alibabacloud/gpdb/model/DeleteVectorIndexResult.h new file mode 100644 index 000000000..8b57da506 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/DeleteVectorIndexResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GPDB_MODEL_DELETEVECTORINDEXRESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_DELETEVECTORINDEXRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT DeleteVectorIndexResult : public ServiceResult + { + public: + + + DeleteVectorIndexResult(); + explicit DeleteVectorIndexResult(const std::string &payload); + ~DeleteVectorIndexResult(); + std::string getStatus()const; + std::string getMessage()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + std::string message_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_DELETEVECTORINDEXRESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeAvailableResourcesResult.h b/gpdb/include/alibabacloud/gpdb/model/DescribeAvailableResourcesResult.h index 19722e854..45a1da467 100644 --- a/gpdb/include/alibabacloud/gpdb/model/DescribeAvailableResourcesResult.h +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeAvailableResourcesResult.h @@ -53,6 +53,7 @@ namespace AlibabaCloud std::string displayClass; std::string description; std::string storageType; + std::string category; NodeCount nodeCount; StorageSize storageSize; std::string instanceClass; diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeCollectionRequest.h b/gpdb/include/alibabacloud/gpdb/model/DescribeCollectionRequest.h new file mode 100644 index 000000000..5a4f69177 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeCollectionRequest.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_GPDB_MODEL_DESCRIBECOLLECTIONREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_DESCRIBECOLLECTIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Gpdb { +namespace Model { +class ALIBABACLOUD_GPDB_EXPORT DescribeCollectionRequest : public RpcServiceRequest { +public: + DescribeCollectionRequest(); + ~DescribeCollectionRequest(); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getDBInstanceId() const; + void setDBInstanceId(const std::string &dBInstanceId); + std::string getCollection() const; + void setCollection(const std::string &collection); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getNamespacePassword() const; + void setNamespacePassword(const std::string &namespacePassword); + std::string get_Namespace() const; + void set_Namespace(const std::string &_namespace); + +private: + std::string accessKeyId_; + std::string regionId_; + std::string dBInstanceId_; + std::string collection_; + long ownerId_; + std::string namespacePassword_; + std::string _namespace_; +}; +} // namespace Model +} // namespace Gpdb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBECOLLECTIONREQUEST_H_ diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeCollectionResult.h b/gpdb/include/alibabacloud/gpdb/model/DescribeCollectionResult.h new file mode 100644 index 000000000..cc918b07f --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeCollectionResult.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_GPDB_MODEL_DESCRIBECOLLECTIONRESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_DESCRIBECOLLECTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT DescribeCollectionResult : public ServiceResult + { + public: + + + DescribeCollectionResult(); + explicit DescribeCollectionResult(const std::string &payload); + ~DescribeCollectionResult(); + std::string getStatus()const; + std::string getMetrics()const; + std::string getMessage()const; + std::string getDBInstanceId()const; + std::string getMetadata()const; + std::string get_Namespace()const; + int getDimension()const; + std::string getRegionId()const; + std::string getFullTextRetrievalFields()const; + std::string getParser()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + std::string metrics_; + std::string message_; + std::string dBInstanceId_; + std::string metadata_; + std::string _namespace_; + int dimension_; + std::string regionId_; + std::string fullTextRetrievalFields_; + std::string parser_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBECOLLECTIONRESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeDBClusterNodeRequest.h b/gpdb/include/alibabacloud/gpdb/model/DescribeDBClusterNodeRequest.h new file mode 100644 index 000000000..449e0c07b --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeDBClusterNodeRequest.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_GPDB_MODEL_DESCRIBEDBCLUSTERNODEREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_DESCRIBEDBCLUSTERNODEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Gpdb { +namespace Model { +class ALIBABACLOUD_GPDB_EXPORT DescribeDBClusterNodeRequest : public RpcServiceRequest { +public: + DescribeDBClusterNodeRequest(); + ~DescribeDBClusterNodeRequest(); + std::string getNodeType() const; + void setNodeType(const std::string &nodeType); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getDBInstanceId() const; + void setDBInstanceId(const std::string &dBInstanceId); + +private: + std::string nodeType_; + std::string accessKeyId_; + std::string dBInstanceId_; +}; +} // namespace Model +} // namespace Gpdb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBEDBCLUSTERNODEREQUEST_H_ diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeDBClusterNodeResult.h b/gpdb/include/alibabacloud/gpdb/model/DescribeDBClusterNodeResult.h new file mode 100644 index 000000000..b6078e713 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeDBClusterNodeResult.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_GPDB_MODEL_DESCRIBEDBCLUSTERNODERESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_DESCRIBEDBCLUSTERNODERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT DescribeDBClusterNodeResult : public ServiceResult + { + public: + struct Node + { + std::string name; + }; + + + DescribeDBClusterNodeResult(); + explicit DescribeDBClusterNodeResult(const std::string &payload); + ~DescribeDBClusterNodeResult(); + std::string getDBClusterId()const; + std::vector getNodes()const; + + protected: + void parse(const std::string &payload); + private: + std::string dBClusterId_; + std::vector nodes_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBEDBCLUSTERNODERESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeDBClusterPerformanceRequest.h b/gpdb/include/alibabacloud/gpdb/model/DescribeDBClusterPerformanceRequest.h index d4e9b4f15..7ec6e938c 100644 --- a/gpdb/include/alibabacloud/gpdb/model/DescribeDBClusterPerformanceRequest.h +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeDBClusterPerformanceRequest.h @@ -30,6 +30,8 @@ class ALIBABACLOUD_GPDB_EXPORT DescribeDBClusterPerformanceRequest : public RpcS public: DescribeDBClusterPerformanceRequest(); ~DescribeDBClusterPerformanceRequest(); + std::string getNodeType() const; + void setNodeType(const std::string &nodeType); std::string getStartTime() const; void setStartTime(const std::string &startTime); std::string getAccessKeyId() const; @@ -40,13 +42,17 @@ public: void setKey(const std::string &key); std::string getEndTime() const; void setEndTime(const std::string &endTime); + std::string getNodes() const; + void setNodes(const std::string &nodes); private: + std::string nodeType_; std::string startTime_; std::string accessKeyId_; std::string dBInstanceId_; std::string key_; std::string endTime_; + std::string nodes_; }; } // namespace Model } // namespace Gpdb diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstanceAttributeRequest.h b/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstanceAttributeRequest.h index 0ce1f971f..bc1e0bb69 100644 --- a/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstanceAttributeRequest.h +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstanceAttributeRequest.h @@ -32,6 +32,8 @@ public: ~DescribeDBInstanceAttributeRequest(); std::string getAccessKeyId() const; void setAccessKeyId(const std::string &accessKeyId); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); std::string getDBInstanceId() const; void setDBInstanceId(const std::string &dBInstanceId); long getOwnerId() const; @@ -39,6 +41,7 @@ public: private: std::string accessKeyId_; + std::string resourceGroupId_; std::string dBInstanceId_; long ownerId_; }; diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstanceAttributeResult.h b/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstanceAttributeResult.h index 8da4f415f..927abdf22 100644 --- a/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstanceAttributeResult.h +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstanceAttributeResult.h @@ -42,6 +42,7 @@ namespace AlibabaCloud int masterNodeNum; long dBInstanceMemory; int cpuCoresPerNode; + std::string resourceGroupId; std::string port; int segNodeNum; int memoryPerNode; @@ -51,6 +52,7 @@ namespace AlibabaCloud std::string dBInstanceCategory; std::string dBInstanceId; long dBInstanceStorage; + int serverlessResource; std::string lockReason; std::string availabilityValue; std::vector tags; @@ -59,6 +61,7 @@ namespace AlibabaCloud int segmentCounts; std::string encryptionType; long dBInstanceDiskMBPS; + std::string serverlessMode; std::string storageType; std::string engineVersion; std::string dBInstanceStatus; @@ -66,6 +69,8 @@ namespace AlibabaCloud int dBInstanceCpuCores; std::string dBInstanceClass; std::string vSwitchId; + std::string startTime; + std::string coreVersion; std::string payType; std::string lockMode; std::string vpcId; @@ -75,11 +80,14 @@ namespace AlibabaCloud int cpuCores; std::string connectionString; std::string expireTime; + std::string segDiskPerformanceLevel; std::string dBInstanceNetType; + int idleTime; std::string encryptionKey; bool supportRestore; std::string hostType; std::string maintainEndTime; + std::string vectorConfigurationStatus; std::string securityIPList; std::string maintainStartTime; std::string memoryUnit; @@ -91,6 +99,7 @@ namespace AlibabaCloud int storagePerNode; std::string dBInstanceMode; std::string regionId; + std::string runningTime; }; diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeSQLLogFilesRequest.h b/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstanceDataBloatRequest.h similarity index 73% rename from gpdb/include/alibabacloud/gpdb/model/DescribeSQLLogFilesRequest.h rename to gpdb/include/alibabacloud/gpdb/model/DescribeDBInstanceDataBloatRequest.h index b6df56a57..188050684 100644 --- a/gpdb/include/alibabacloud/gpdb/model/DescribeSQLLogFilesRequest.h +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstanceDataBloatRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_GPDB_MODEL_DESCRIBESQLLOGFILESREQUEST_H_ -#define ALIBABACLOUD_GPDB_MODEL_DESCRIBESQLLOGFILESREQUEST_H_ +#ifndef ALIBABACLOUD_GPDB_MODEL_DESCRIBEDBINSTANCEDATABLOATREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_DESCRIBEDBINSTANCEDATABLOATREQUEST_H_ #include #include @@ -26,10 +26,10 @@ namespace AlibabaCloud { namespace Gpdb { namespace Model { -class ALIBABACLOUD_GPDB_EXPORT DescribeSQLLogFilesRequest : public RpcServiceRequest { +class ALIBABACLOUD_GPDB_EXPORT DescribeDBInstanceDataBloatRequest : public RpcServiceRequest { public: - DescribeSQLLogFilesRequest(); - ~DescribeSQLLogFilesRequest(); + DescribeDBInstanceDataBloatRequest(); + ~DescribeDBInstanceDataBloatRequest(); int getPageNumber() const; void setPageNumber(int pageNumber); std::string getAccessKeyId() const; @@ -38,17 +38,14 @@ public: void setPageSize(int pageSize); std::string getDBInstanceId() const; void setDBInstanceId(const std::string &dBInstanceId); - std::string getFileName() const; - void setFileName(const std::string &fileName); private: int pageNumber_; std::string accessKeyId_; int pageSize_; std::string dBInstanceId_; - std::string fileName_; }; } // namespace Model } // namespace Gpdb } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBESQLLOGFILESREQUEST_H_ +#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBEDBINSTANCEDATABLOATREQUEST_H_ diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstanceDataBloatResult.h b/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstanceDataBloatResult.h new file mode 100644 index 000000000..930105738 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstanceDataBloatResult.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_GPDB_MODEL_DESCRIBEDBINSTANCEDATABLOATRESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_DESCRIBEDBINSTANCEDATABLOATRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT DescribeDBInstanceDataBloatResult : public ServiceResult + { + public: + struct ItemsItem + { + std::string expectTableSize; + std::string tableName; + std::string storageType; + std::string databaseName; + int sequence; + std::string bloatCeoff; + std::string realTableSize; + std::string timeLastUpdated; + std::string schemaName; + std::string bloatSize; + std::string timeLastVacuumed; + std::string suggestedAction; + }; + + + DescribeDBInstanceDataBloatResult(); + explicit DescribeDBInstanceDataBloatResult(const std::string &payload); + ~DescribeDBInstanceDataBloatResult(); + int getTotalCount()const; + int getPageNumber()const; + std::vector getItems()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageNumber_; + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBEDBINSTANCEDATABLOATRESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstanceDataSkewRequest.h b/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstanceDataSkewRequest.h new file mode 100644 index 000000000..24f40fd92 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstanceDataSkewRequest.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_GPDB_MODEL_DESCRIBEDBINSTANCEDATASKEWREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_DESCRIBEDBINSTANCEDATASKEWREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Gpdb { +namespace Model { +class ALIBABACLOUD_GPDB_EXPORT DescribeDBInstanceDataSkewRequest : public RpcServiceRequest { +public: + DescribeDBInstanceDataSkewRequest(); + ~DescribeDBInstanceDataSkewRequest(); + 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 getDBInstanceId() const; + void setDBInstanceId(const std::string &dBInstanceId); + +private: + int pageNumber_; + std::string accessKeyId_; + int pageSize_; + std::string dBInstanceId_; +}; +} // namespace Model +} // namespace Gpdb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBEDBINSTANCEDATASKEWREQUEST_H_ diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeSQLLogsOnSliceResult.h b/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstanceDataSkewResult.h similarity index 53% rename from gpdb/include/alibabacloud/gpdb/model/DescribeSQLLogsOnSliceResult.h rename to gpdb/include/alibabacloud/gpdb/model/DescribeDBInstanceDataSkewResult.h index d0cde782f..a1c634c06 100644 --- a/gpdb/include/alibabacloud/gpdb/model/DescribeSQLLogsOnSliceResult.h +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstanceDataSkewResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_GPDB_MODEL_DESCRIBESQLLOGSONSLICERESULT_H_ -#define ALIBABACLOUD_GPDB_MODEL_DESCRIBESQLLOGSONSLICERESULT_H_ +#ifndef ALIBABACLOUD_GPDB_MODEL_DESCRIBEDBINSTANCEDATASKEWRESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_DESCRIBEDBINSTANCEDATASKEWRESULT_H_ #include #include @@ -29,38 +29,39 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_GPDB_EXPORT DescribeSQLLogsOnSliceResult : public ServiceResult + class ALIBABACLOUD_GPDB_EXPORT DescribeDBInstanceDataSkewResult : public ServiceResult { public: - struct SQLLogsSliceItem + struct ItemsItem { - float executeCost; - std::string segmentName; - std::string segmentId; - long returnRowCounts; - float peakMemory; - std::string executeStatus; - std::string operationExecuteEndTime; - std::string operationExecuteTime; + std::string distributeKey; + std::string tableName; + std::string owner; + std::string tableSkew; + std::string tableSize; + std::string databaseName; + int sequence; + std::string timeLastUpdated; + std::string schemaName; }; - DescribeSQLLogsOnSliceResult(); - explicit DescribeSQLLogsOnSliceResult(const std::string &payload); - ~DescribeSQLLogsOnSliceResult(); - int getPageRecordCount()const; - std::vector getSliceLogItems()const; + DescribeDBInstanceDataSkewResult(); + explicit DescribeDBInstanceDataSkewResult(const std::string &payload); + ~DescribeDBInstanceDataSkewResult(); + int getTotalCount()const; int getPageNumber()const; + std::vector getItems()const; protected: void parse(const std::string &payload); private: - int pageRecordCount_; - std::vector sliceLogItems_; + int totalCount_; int pageNumber_; + std::vector items_; }; } } } -#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBESQLLOGSONSLICERESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBEDBINSTANCEDATASKEWRESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeSlowLogRecordsRequest.h b/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstanceDiagnosisSummaryRequest.h similarity index 61% rename from gpdb/include/alibabacloud/gpdb/model/DescribeSlowLogRecordsRequest.h rename to gpdb/include/alibabacloud/gpdb/model/DescribeDBInstanceDiagnosisSummaryRequest.h index c5cf8c445..31d0c6125 100644 --- a/gpdb/include/alibabacloud/gpdb/model/DescribeSlowLogRecordsRequest.h +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstanceDiagnosisSummaryRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_GPDB_MODEL_DESCRIBESLOWLOGRECORDSREQUEST_H_ -#define ALIBABACLOUD_GPDB_MODEL_DESCRIBESLOWLOGRECORDSREQUEST_H_ +#ifndef ALIBABACLOUD_GPDB_MODEL_DESCRIBEDBINSTANCEDIAGNOSISSUMMARYREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_DESCRIBEDBINSTANCEDIAGNOSISSUMMARYREQUEST_H_ #include #include @@ -26,12 +26,12 @@ namespace AlibabaCloud { namespace Gpdb { namespace Model { -class ALIBABACLOUD_GPDB_EXPORT DescribeSlowLogRecordsRequest : public RpcServiceRequest { +class ALIBABACLOUD_GPDB_EXPORT DescribeDBInstanceDiagnosisSummaryRequest : public RpcServiceRequest { public: - DescribeSlowLogRecordsRequest(); - ~DescribeSlowLogRecordsRequest(); - std::string getStartTime() const; - void setStartTime(const std::string &startTime); + DescribeDBInstanceDiagnosisSummaryRequest(); + ~DescribeDBInstanceDiagnosisSummaryRequest(); + std::string getStartStatus() const; + void setStartStatus(const std::string &startStatus); int getPageNumber() const; void setPageNumber(int pageNumber); std::string getAccessKeyId() const; @@ -40,24 +40,21 @@ public: void setPageSize(int pageSize); std::string getDBInstanceId() const; void setDBInstanceId(const std::string &dBInstanceId); - long getSQLId() const; - void setSQLId(long sQLId); - std::string getEndTime() const; - void setEndTime(const std::string &endTime); - std::string getDBName() const; - void setDBName(const std::string &dBName); + std::string getSyncMode() const; + void setSyncMode(const std::string &syncMode); + std::string getRolePreferd() const; + void setRolePreferd(const std::string &rolePreferd); private: - std::string startTime_; + std::string startStatus_; int pageNumber_; std::string accessKeyId_; int pageSize_; std::string dBInstanceId_; - long sQLId_; - std::string endTime_; - std::string dBName_; + std::string syncMode_; + std::string rolePreferd_; }; } // namespace Model } // namespace Gpdb } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBESLOWLOGRECORDSREQUEST_H_ +#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBEDBINSTANCEDIAGNOSISSUMMARYREQUEST_H_ diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstanceDiagnosisSummaryResult.h b/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstanceDiagnosisSummaryResult.h new file mode 100644 index 000000000..9893e8c5b --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstanceDiagnosisSummaryResult.h @@ -0,0 +1,91 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GPDB_MODEL_DESCRIBEDBINSTANCEDIAGNOSISSUMMARYRESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_DESCRIBEDBINSTANCEDIAGNOSISSUMMARYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT DescribeDBInstanceDiagnosisSummaryResult : public ServiceResult + { + public: + struct MasterStatusInfo + { + int normalNodeNum; + int exceptionNodeNum; + int preferredNodeNum; + int syncedNodeNum; + int notSyncingNodeNum; + int notPreferredNodeNum; + }; + struct SegmentStatusInfo + { + int normalNodeNum; + int exceptionNodeNum; + int preferredNodeNum; + int syncedNodeNum; + int notSyncingNodeNum; + int notPreferredNodeNum; + }; + struct ItemsItem + { + std::string nodeRole; + std::string nodeName; + std::string nodeType; + std::string hostname; + std::string nodeID; + std::string nodeReplicationMode; + std::string nodeAddress; + std::string nodePort; + std::string nodePreferredRole; + std::string nodeCID; + std::string nodeStatus; + }; + + + DescribeDBInstanceDiagnosisSummaryResult(); + explicit DescribeDBInstanceDiagnosisSummaryResult(const std::string &payload); + ~DescribeDBInstanceDiagnosisSummaryResult(); + SegmentStatusInfo getSegmentStatusInfo()const; + std::string getTotalCount()const; + MasterStatusInfo getMasterStatusInfo()const; + std::string getPageNumber()const; + std::vector getItems()const; + + protected: + void parse(const std::string &payload); + private: + SegmentStatusInfo segmentStatusInfo_; + std::string totalCount_; + MasterStatusInfo masterStatusInfo_; + std::string pageNumber_; + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBEDBINSTANCEDIAGNOSISSUMMARYRESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeSQLLogRecordsRequest.h b/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstanceErrorLogRequest.h similarity index 69% rename from gpdb/include/alibabacloud/gpdb/model/DescribeSQLLogRecordsRequest.h rename to gpdb/include/alibabacloud/gpdb/model/DescribeDBInstanceErrorLogRequest.h index 426d81449..f0a63f045 100644 --- a/gpdb/include/alibabacloud/gpdb/model/DescribeSQLLogRecordsRequest.h +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstanceErrorLogRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_GPDB_MODEL_DESCRIBESQLLOGRECORDSREQUEST_H_ -#define ALIBABACLOUD_GPDB_MODEL_DESCRIBESQLLOGRECORDSREQUEST_H_ +#ifndef ALIBABACLOUD_GPDB_MODEL_DESCRIBEDBINSTANCEERRORLOGREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_DESCRIBEDBINSTANCEERRORLOGREQUEST_H_ #include #include @@ -26,14 +26,14 @@ namespace AlibabaCloud { namespace Gpdb { namespace Model { -class ALIBABACLOUD_GPDB_EXPORT DescribeSQLLogRecordsRequest : public RpcServiceRequest { +class ALIBABACLOUD_GPDB_EXPORT DescribeDBInstanceErrorLogRequest : public RpcServiceRequest { public: - DescribeSQLLogRecordsRequest(); - ~DescribeSQLLogRecordsRequest(); + DescribeDBInstanceErrorLogRequest(); + ~DescribeDBInstanceErrorLogRequest(); + std::string getKeywords() const; + void setKeywords(const std::string &keywords); std::string getStartTime() const; void setStartTime(const std::string &startTime); - std::string getQueryKeywords() const; - void setQueryKeywords(const std::string &queryKeywords); int getPageNumber() const; void setPageNumber(int pageNumber); std::string getAccessKeyId() const; @@ -42,28 +42,31 @@ public: void setDatabase(const std::string &database); int getPageSize() const; void setPageSize(int pageSize); + std::string getHost() const; + void setHost(const std::string &host); std::string getDBInstanceId() const; void setDBInstanceId(const std::string &dBInstanceId); std::string getEndTime() const; void setEndTime(const std::string &endTime); - std::string getForm() const; - void setForm(const std::string &form); + std::string getLogLevel() const; + void setLogLevel(const std::string &logLevel); std::string getUser() const; void setUser(const std::string &user); private: + std::string keywords_; std::string startTime_; - std::string queryKeywords_; int pageNumber_; std::string accessKeyId_; std::string database_; int pageSize_; + std::string host_; std::string dBInstanceId_; std::string endTime_; - std::string form_; + std::string logLevel_; std::string user_; }; } // namespace Model } // namespace Gpdb } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBESQLLOGRECORDSREQUEST_H_ +#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBEDBINSTANCEERRORLOGREQUEST_H_ diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeSQLLogRecordsResult.h b/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstanceErrorLogResult.h similarity index 53% rename from gpdb/include/alibabacloud/gpdb/model/DescribeSQLLogRecordsResult.h rename to gpdb/include/alibabacloud/gpdb/model/DescribeDBInstanceErrorLogResult.h index 220d6e384..61235ca80 100644 --- a/gpdb/include/alibabacloud/gpdb/model/DescribeSQLLogRecordsResult.h +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstanceErrorLogResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_GPDB_MODEL_DESCRIBESQLLOGRECORDSRESULT_H_ -#define ALIBABACLOUD_GPDB_MODEL_DESCRIBESQLLOGRECORDSRESULT_H_ +#ifndef ALIBABACLOUD_GPDB_MODEL_DESCRIBEDBINSTANCEERRORLOGRESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_DESCRIBEDBINSTANCEERRORLOGRESULT_H_ #include #include @@ -29,40 +29,36 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_GPDB_EXPORT DescribeSQLLogRecordsResult : public ServiceResult + class ALIBABACLOUD_GPDB_EXPORT DescribeDBInstanceErrorLogResult : public ServiceResult { public: - struct SQLRecord + struct ItemsItem { - std::string executeTime; - std::string threadID; - long returnRowCounts; - std::string dBName; - long totalExecutionTimes; - std::string hostAddress; - std::string sQLText; - std::string accountName; + std::string user; + std::string database; + std::string logContext; + long time; + std::string host; + std::string logLevel; }; - DescribeSQLLogRecordsResult(); - explicit DescribeSQLLogRecordsResult(const std::string &payload); - ~DescribeSQLLogRecordsResult(); - int getTotalRecordCount()const; - int getPageRecordCount()const; + DescribeDBInstanceErrorLogResult(); + explicit DescribeDBInstanceErrorLogResult(const std::string &payload); + ~DescribeDBInstanceErrorLogResult(); + int getTotalCount()const; int getPageNumber()const; - std::vector getItems()const; + std::vector getItems()const; protected: void parse(const std::string &payload); private: - int totalRecordCount_; - int pageRecordCount_; + int totalCount_; int pageNumber_; - std::vector items_; + std::vector items_; }; } } } -#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBESQLLOGRECORDSRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBEDBINSTANCEERRORLOGRESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstanceIPArrayListRequest.h b/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstanceIPArrayListRequest.h index afec1c1c9..ea5eab621 100644 --- a/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstanceIPArrayListRequest.h +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstanceIPArrayListRequest.h @@ -32,11 +32,14 @@ public: ~DescribeDBInstanceIPArrayListRequest(); std::string getAccessKeyId() const; void setAccessKeyId(const std::string &accessKeyId); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); std::string getDBInstanceId() const; void setDBInstanceId(const std::string &dBInstanceId); private: std::string accessKeyId_; + std::string resourceGroupId_; std::string dBInstanceId_; }; } // namespace Model diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstanceIndexUsageRequest.h b/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstanceIndexUsageRequest.h new file mode 100644 index 000000000..3a0fdace9 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstanceIndexUsageRequest.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_GPDB_MODEL_DESCRIBEDBINSTANCEINDEXUSAGEREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_DESCRIBEDBINSTANCEINDEXUSAGEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Gpdb { +namespace Model { +class ALIBABACLOUD_GPDB_EXPORT DescribeDBInstanceIndexUsageRequest : public RpcServiceRequest { +public: + DescribeDBInstanceIndexUsageRequest(); + ~DescribeDBInstanceIndexUsageRequest(); + 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 getDBInstanceId() const; + void setDBInstanceId(const std::string &dBInstanceId); + +private: + int pageNumber_; + std::string accessKeyId_; + int pageSize_; + std::string dBInstanceId_; +}; +} // namespace Model +} // namespace Gpdb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBEDBINSTANCEINDEXUSAGEREQUEST_H_ diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstanceIndexUsageResult.h b/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstanceIndexUsageResult.h new file mode 100644 index 000000000..1c76694f0 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstanceIndexUsageResult.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GPDB_MODEL_DESCRIBEDBINSTANCEINDEXUSAGERESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_DESCRIBEDBINSTANCEINDEXUSAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT DescribeDBInstanceIndexUsageResult : public ServiceResult + { + public: + struct ItemsItem + { + std::string indexName; + std::string tableName; + std::string parentTableName; + bool isPartitionTable; + std::string databaseName; + int indexScanTimes; + std::string indexSize; + std::string indexDef; + std::string timeLastUpdated; + std::string schemaName; + }; + + + DescribeDBInstanceIndexUsageResult(); + explicit DescribeDBInstanceIndexUsageResult(const std::string &payload); + ~DescribeDBInstanceIndexUsageResult(); + int getTotalCount()const; + int getPageNumber()const; + std::vector getItems()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageNumber_; + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBEDBINSTANCEINDEXUSAGERESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstanceNetInfoRequest.h b/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstanceNetInfoRequest.h index dc332e643..625246e25 100644 --- a/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstanceNetInfoRequest.h +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstanceNetInfoRequest.h @@ -30,12 +30,15 @@ class ALIBABACLOUD_GPDB_EXPORT DescribeDBInstanceNetInfoRequest : public RpcServ public: DescribeDBInstanceNetInfoRequest(); ~DescribeDBInstanceNetInfoRequest(); + std::string getConnectionString() const; + void setConnectionString(const std::string &connectionString); std::string getAccessKeyId() const; void setAccessKeyId(const std::string &accessKeyId); std::string getDBInstanceId() const; void setDBInstanceId(const std::string &dBInstanceId); private: + std::string connectionString_; std::string accessKeyId_; std::string dBInstanceId_; }; diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstanceOnECSAttributeResult.h b/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstanceOnECSAttributeResult.h deleted file mode 100644 index b749c2c52..000000000 --- a/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstanceOnECSAttributeResult.h +++ /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. - */ - -#ifndef ALIBABACLOUD_GPDB_MODEL_DESCRIBEDBINSTANCEONECSATTRIBUTERESULT_H_ -#define ALIBABACLOUD_GPDB_MODEL_DESCRIBEDBINSTANCEONECSATTRIBUTERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Gpdb - { - namespace Model - { - class ALIBABACLOUD_GPDB_EXPORT DescribeDBInstanceOnECSAttributeResult : public ServiceResult - { - public: - struct DBInstanceAttribute - { - struct Tag - { - std::string value; - std::string key; - }; - int masterNodeNum; - std::string port; - int segNodeNum; - std::string encryptionKey; - std::string instanceNetworkType; - bool supportRestore; - std::string dBInstanceCategory; - std::string dBInstanceId; - std::vector tags; - std::string dBInstanceDescription; - std::string engine; - std::string encryptionType; - int memorySize; - std::string storageType; - std::string engineVersion; - std::string dBInstanceStatus; - std::string zoneId; - std::string dBInstanceClass; - std::string vSwitchId; - int storageSize; - std::string minorVersion; - std::string payType; - std::string lockMode; - std::string vpcId; - std::string creationTime; - std::string instanceDeployType; - std::string connectionMode; - int cpuCores; - std::string regionId; - std::string connectionString; - std::string expireTime; - }; - - - DescribeDBInstanceOnECSAttributeResult(); - explicit DescribeDBInstanceOnECSAttributeResult(const std::string &payload); - ~DescribeDBInstanceOnECSAttributeResult(); - std::vector getItems()const; - - protected: - void parse(const std::string &payload); - private: - std::vector items_; - - }; - } - } -} -#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBEDBINSTANCEONECSATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstancePerformanceRequest.h b/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstancePerformanceRequest.h index 4f11b7291..4ed3974e4 100644 --- a/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstancePerformanceRequest.h +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstancePerformanceRequest.h @@ -34,6 +34,8 @@ public: void setStartTime(const std::string &startTime); std::string getAccessKeyId() const; void setAccessKeyId(const std::string &accessKeyId); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); std::string getDBInstanceId() const; void setDBInstanceId(const std::string &dBInstanceId); std::string getKey() const; @@ -44,6 +46,7 @@ public: private: std::string startTime_; std::string accessKeyId_; + std::string resourceGroupId_; std::string dBInstanceId_; std::string key_; std::string endTime_; diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstancePlansRequest.h b/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstancePlansRequest.h new file mode 100644 index 000000000..db99199a0 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstancePlansRequest.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_GPDB_MODEL_DESCRIBEDBINSTANCEPLANSREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_DESCRIBEDBINSTANCEPLANSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Gpdb { +namespace Model { +class ALIBABACLOUD_GPDB_EXPORT DescribeDBInstancePlansRequest : public RpcServiceRequest { +public: + DescribeDBInstancePlansRequest(); + ~DescribeDBInstancePlansRequest(); + std::string getPlanType() const; + void setPlanType(const std::string &planType); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getPlanCreateDate() const; + void setPlanCreateDate(const std::string &planCreateDate); + std::string getDBInstanceId() const; + void setDBInstanceId(const std::string &dBInstanceId); + std::string getPlanDesc() const; + void setPlanDesc(const std::string &planDesc); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getPlanScheduleType() const; + void setPlanScheduleType(const std::string &planScheduleType); + std::string getPlanId() const; + void setPlanId(const std::string &planId); + +private: + std::string planType_; + std::string accessKeyId_; + std::string planCreateDate_; + std::string dBInstanceId_; + std::string planDesc_; + long ownerId_; + std::string planScheduleType_; + std::string planId_; +}; +} // namespace Model +} // namespace Gpdb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBEDBINSTANCEPLANSREQUEST_H_ diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeSlowLogRecordsResult.h b/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstancePlansResult.h similarity index 54% rename from gpdb/include/alibabacloud/gpdb/model/DescribeSlowLogRecordsResult.h rename to gpdb/include/alibabacloud/gpdb/model/DescribeDBInstancePlansResult.h index 5517bdb41..88bfdd225 100644 --- a/gpdb/include/alibabacloud/gpdb/model/DescribeSlowLogRecordsResult.h +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstancePlansResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_GPDB_MODEL_DESCRIBESLOWLOGRECORDSRESULT_H_ -#define ALIBABACLOUD_GPDB_MODEL_DESCRIBESLOWLOGRECORDSRESULT_H_ +#ifndef ALIBABACLOUD_GPDB_MODEL_DESCRIBEDBINSTANCEPLANSRESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_DESCRIBEDBINSTANCEPLANSRESULT_H_ #include #include @@ -29,42 +29,46 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_GPDB_EXPORT DescribeSlowLogRecordsResult : public ServiceResult + class ALIBABACLOUD_GPDB_EXPORT DescribeDBInstancePlansResult : public ServiceResult { public: - struct SQLSlowRecord + struct PlanList { - long queryTimes; - std::string executionStartTime; - long returnRowCounts; - long lockTimes; - std::string dBName; - long parseRowCounts; - std::string hostAddress; - std::string sQLText; + std::string dBInstanceId; + std::string planId; + std::string planScheduleType; + std::string planEndDate; + std::string planType; + std::string planDesc; + std::string planName; + std::string planStartDate; + std::string planConfig; + std::string planStatus; }; - DescribeSlowLogRecordsResult(); - explicit DescribeSlowLogRecordsResult(const std::string &payload); - ~DescribeSlowLogRecordsResult(); + DescribeDBInstancePlansResult(); + explicit DescribeDBInstancePlansResult(const std::string &payload); + ~DescribeDBInstancePlansResult(); + std::string getStatus()const; int getTotalRecordCount()const; int getPageRecordCount()const; int getPageNumber()const; - std::vector getItems()const; - std::string getEngine()const; + std::vector getItems()const; + std::string getErrorMessage()const; protected: void parse(const std::string &payload); private: + std::string status_; int totalRecordCount_; int pageRecordCount_; int pageNumber_; - std::vector items_; - std::string engine_; + std::vector items_; + std::string errorMessage_; }; } } } -#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBESLOWLOGRECORDSRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBEDBINSTANCEPLANSRESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstancesRequest.h b/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstancesRequest.h index 10afe0239..64caff1fb 100644 --- a/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstancesRequest.h +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstancesRequest.h @@ -42,6 +42,8 @@ public: 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; @@ -66,6 +68,7 @@ private: std::vector dBInstanceStatuses_; int pageNumber_; std::string accessKeyId_; + std::string resourceGroupId_; std::string regionId_; int pageSize_; std::string dBInstanceDescription_; diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstancesResult.h b/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstancesResult.h index 169176a39..3efbfa92b 100644 --- a/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstancesResult.h +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstancesResult.h @@ -40,6 +40,7 @@ namespace AlibabaCloud std::string key; }; int masterNodeNum; + std::string resourceGroupId; std::string dBInstanceNetType; std::string segNodeNum; std::string instanceNetworkType; @@ -49,6 +50,7 @@ namespace AlibabaCloud std::vector tags; std::string engine; std::string dBInstanceDescription; + std::string serverlessMode; std::string storageType; std::string engineVersion; std::string dBInstanceStatus; diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeDataReDistributeInfoRequest.h b/gpdb/include/alibabacloud/gpdb/model/DescribeDataReDistributeInfoRequest.h new file mode 100644 index 000000000..f41850503 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeDataReDistributeInfoRequest.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_GPDB_MODEL_DESCRIBEDATAREDISTRIBUTEINFOREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_DESCRIBEDATAREDISTRIBUTEINFOREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Gpdb { +namespace Model { +class ALIBABACLOUD_GPDB_EXPORT DescribeDataReDistributeInfoRequest : public RpcServiceRequest { +public: + DescribeDataReDistributeInfoRequest(); + ~DescribeDataReDistributeInfoRequest(); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getDBInstanceId() const; + void setDBInstanceId(const std::string &dBInstanceId); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + std::string accessKeyId_; + std::string dBInstanceId_; + long ownerId_; +}; +} // namespace Model +} // namespace Gpdb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBEDATAREDISTRIBUTEINFOREQUEST_H_ diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeDataReDistributeInfoResult.h b/gpdb/include/alibabacloud/gpdb/model/DescribeDataReDistributeInfoResult.h new file mode 100644 index 000000000..17798adb4 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeDataReDistributeInfoResult.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_GPDB_MODEL_DESCRIBEDATAREDISTRIBUTEINFORESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_DESCRIBEDATAREDISTRIBUTEINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT DescribeDataReDistributeInfoResult : public ServiceResult + { + public: + struct DataReDistributeInfo + { + std::string status; + std::string type; + long progress; + std::string message; + std::string startTime; + std::string remainTime; + }; + + + DescribeDataReDistributeInfoResult(); + explicit DescribeDataReDistributeInfoResult(const std::string &payload); + ~DescribeDataReDistributeInfoResult(); + DataReDistributeInfo getDataReDistributeInfo()const; + + protected: + void parse(const std::string &payload); + private: + DataReDistributeInfo dataReDistributeInfo_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBEDATAREDISTRIBUTEINFORESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeDataShareInstancesRequest.h b/gpdb/include/alibabacloud/gpdb/model/DescribeDataShareInstancesRequest.h new file mode 100644 index 000000000..1f0634d9c --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeDataShareInstancesRequest.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_GPDB_MODEL_DESCRIBEDATASHAREINSTANCESREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_DESCRIBEDATASHAREINSTANCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Gpdb { +namespace Model { +class ALIBABACLOUD_GPDB_EXPORT DescribeDataShareInstancesRequest : public RpcServiceRequest { +public: + DescribeDataShareInstancesRequest(); + ~DescribeDataShareInstancesRequest(); + 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 getSearchValue() const; + void setSearchValue(const std::string &searchValue); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + int pageNumber_; + std::string accessKeyId_; + std::string resourceGroupId_; + std::string regionId_; + int pageSize_; + std::string searchValue_; + long ownerId_; +}; +} // namespace Model +} // namespace Gpdb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBEDATASHAREINSTANCESREQUEST_H_ diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeSQLLogFilesResult.h b/gpdb/include/alibabacloud/gpdb/model/DescribeDataShareInstancesResult.h similarity index 60% rename from gpdb/include/alibabacloud/gpdb/model/DescribeSQLLogFilesResult.h rename to gpdb/include/alibabacloud/gpdb/model/DescribeDataShareInstancesResult.h index 68c2c3776..99c40ad66 100644 --- a/gpdb/include/alibabacloud/gpdb/model/DescribeSQLLogFilesResult.h +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeDataShareInstancesResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_GPDB_MODEL_DESCRIBESQLLOGFILESRESULT_H_ -#define ALIBABACLOUD_GPDB_MODEL_DESCRIBESQLLOGFILESRESULT_H_ +#ifndef ALIBABACLOUD_GPDB_MODEL_DESCRIBEDATASHAREINSTANCESRESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_DESCRIBEDATASHAREINSTANCESRESULT_H_ #include #include @@ -29,27 +29,27 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_GPDB_EXPORT DescribeSQLLogFilesResult : public ServiceResult + class ALIBABACLOUD_GPDB_EXPORT DescribeDataShareInstancesResult : public ServiceResult { public: - struct LogFile + struct DBInstance { - std::string logStartTime; - std::string logStatus; - std::string logSize; - std::string logDownloadURL; - std::string fileID; - std::string logEndTime; + std::string description; + std::string zoneId; + std::string dBInstanceId; + std::string dBInstanceMode; + std::string regionId; + std::string dataShareStatus; }; - DescribeSQLLogFilesResult(); - explicit DescribeSQLLogFilesResult(const std::string &payload); - ~DescribeSQLLogFilesResult(); + DescribeDataShareInstancesResult(); + explicit DescribeDataShareInstancesResult(const std::string &payload); + ~DescribeDataShareInstancesResult(); int getTotalRecordCount()const; int getPageRecordCount()const; int getPageNumber()const; - std::vector getItems()const; + std::vector getItems()const; protected: void parse(const std::string &payload); @@ -57,10 +57,10 @@ namespace AlibabaCloud int totalRecordCount_; int pageRecordCount_; int pageNumber_; - std::vector items_; + std::vector items_; }; } } } -#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBESQLLOGFILESRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBEDATASHAREINSTANCESRESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeDataSharePerformanceRequest.h b/gpdb/include/alibabacloud/gpdb/model/DescribeDataSharePerformanceRequest.h new file mode 100644 index 000000000..e8b29ad47 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeDataSharePerformanceRequest.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_GPDB_MODEL_DESCRIBEDATASHAREPERFORMANCEREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_DESCRIBEDATASHAREPERFORMANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Gpdb { +namespace Model { +class ALIBABACLOUD_GPDB_EXPORT DescribeDataSharePerformanceRequest : public RpcServiceRequest { +public: + DescribeDataSharePerformanceRequest(); + ~DescribeDataSharePerformanceRequest(); + 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 getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getKey() const; + void setKey(const std::string &key); + +private: + std::string endTime_; + std::string startTime_; + std::string accessKeyId_; + std::string resourceGroupId_; + std::string regionId_; + std::string key_; +}; +} // namespace Model +} // namespace Gpdb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBEDATASHAREPERFORMANCEREQUEST_H_ diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstanceSQLPatternsResult.h b/gpdb/include/alibabacloud/gpdb/model/DescribeDataSharePerformanceResult.h similarity index 57% rename from gpdb/include/alibabacloud/gpdb/model/DescribeDBInstanceSQLPatternsResult.h rename to gpdb/include/alibabacloud/gpdb/model/DescribeDataSharePerformanceResult.h index 0c6e9c950..99f94f3cb 100644 --- a/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstanceSQLPatternsResult.h +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeDataSharePerformanceResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_GPDB_MODEL_DESCRIBEDBINSTANCESQLPATTERNSRESULT_H_ -#define ALIBABACLOUD_GPDB_MODEL_DESCRIBEDBINSTANCESQLPATTERNSRESULT_H_ +#ifndef ALIBABACLOUD_GPDB_MODEL_DESCRIBEDATASHAREPERFORMANCERESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_DESCRIBEDATASHAREPERFORMANCERESULT_H_ #include #include @@ -29,34 +29,44 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_GPDB_EXPORT DescribeDBInstanceSQLPatternsResult : public ServiceResult + class ALIBABACLOUD_GPDB_EXPORT DescribeDataSharePerformanceResult : public ServiceResult { public: - struct Pattern + struct PerformanceItem { - std::string values; + struct SeriesItem + { + struct ValuesItem + { + std::vector point; + }; + std::vector values; + std::string name; + }; + std::vector series; + std::string unit; std::string name; }; - DescribeDBInstanceSQLPatternsResult(); - explicit DescribeDBInstanceSQLPatternsResult(const std::string &payload); - ~DescribeDBInstanceSQLPatternsResult(); + DescribeDataSharePerformanceResult(); + explicit DescribeDataSharePerformanceResult(const std::string &payload); + ~DescribeDataSharePerformanceResult(); + std::vector getPerformanceKeys()const; std::string getEndTime()const; std::string getStartTime()const; std::string getDBClusterId()const; - std::vector getPatterns()const; protected: void parse(const std::string &payload); private: + std::vector performanceKeys_; std::string endTime_; std::string startTime_; std::string dBClusterId_; - std::vector patterns_; }; } } } -#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBEDBINSTANCESQLPATTERNSRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBEDATASHAREPERFORMANCERESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeDiagnosisDimensionsRequest.h b/gpdb/include/alibabacloud/gpdb/model/DescribeDiagnosisDimensionsRequest.h new file mode 100644 index 000000000..d864603db --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeDiagnosisDimensionsRequest.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_GPDB_MODEL_DESCRIBEDIAGNOSISDIMENSIONSREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_DESCRIBEDIAGNOSISDIMENSIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Gpdb { +namespace Model { +class ALIBABACLOUD_GPDB_EXPORT DescribeDiagnosisDimensionsRequest : public RpcServiceRequest { +public: + DescribeDiagnosisDimensionsRequest(); + ~DescribeDiagnosisDimensionsRequest(); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getDBInstanceId() const; + void setDBInstanceId(const std::string &dBInstanceId); + +private: + std::string accessKeyId_; + std::string dBInstanceId_; +}; +} // namespace Model +} // namespace Gpdb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBEDIAGNOSISDIMENSIONSREQUEST_H_ diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeDiagnosisDimensionsResult.h b/gpdb/include/alibabacloud/gpdb/model/DescribeDiagnosisDimensionsResult.h new file mode 100644 index 000000000..cba50be99 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeDiagnosisDimensionsResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GPDB_MODEL_DESCRIBEDIAGNOSISDIMENSIONSRESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_DESCRIBEDIAGNOSISDIMENSIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT DescribeDiagnosisDimensionsResult : public ServiceResult + { + public: + + + DescribeDiagnosisDimensionsResult(); + explicit DescribeDiagnosisDimensionsResult(const std::string &payload); + ~DescribeDiagnosisDimensionsResult(); + std::vector getDatabases()const; + std::vector getUserNames()const; + + protected: + void parse(const std::string &payload); + private: + std::vector databases_; + std::vector userNames_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBEDIAGNOSISDIMENSIONSRESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstanceSQLPatternsRequest.h b/gpdb/include/alibabacloud/gpdb/model/DescribeDiagnosisMonitorPerformanceRequest.h similarity index 69% rename from gpdb/include/alibabacloud/gpdb/model/DescribeDBInstanceSQLPatternsRequest.h rename to gpdb/include/alibabacloud/gpdb/model/DescribeDiagnosisMonitorPerformanceRequest.h index 0fbf7ade7..e47451bec 100644 --- a/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstanceSQLPatternsRequest.h +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeDiagnosisMonitorPerformanceRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_GPDB_MODEL_DESCRIBEDBINSTANCESQLPATTERNSREQUEST_H_ -#define ALIBABACLOUD_GPDB_MODEL_DESCRIBEDBINSTANCESQLPATTERNSREQUEST_H_ +#ifndef ALIBABACLOUD_GPDB_MODEL_DESCRIBEDIAGNOSISMONITORPERFORMANCEREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_DESCRIBEDIAGNOSISMONITORPERFORMANCEREQUEST_H_ #include #include @@ -26,20 +26,18 @@ namespace AlibabaCloud { namespace Gpdb { namespace Model { -class ALIBABACLOUD_GPDB_EXPORT DescribeDBInstanceSQLPatternsRequest : public RpcServiceRequest { +class ALIBABACLOUD_GPDB_EXPORT DescribeDiagnosisMonitorPerformanceRequest : public RpcServiceRequest { public: - DescribeDBInstanceSQLPatternsRequest(); - ~DescribeDBInstanceSQLPatternsRequest(); + DescribeDiagnosisMonitorPerformanceRequest(); + ~DescribeDiagnosisMonitorPerformanceRequest(); + std::string getQueryCondition() const; + void setQueryCondition(const std::string &queryCondition); std::string getStartTime() const; void setStartTime(const std::string &startTime); - std::string getQueryKeywords() const; - void setQueryKeywords(const std::string &queryKeywords); std::string getAccessKeyId() const; void setAccessKeyId(const std::string &accessKeyId); std::string getDatabase() const; void setDatabase(const std::string &database); - std::string getSourceIP() const; - void setSourceIP(const std::string &sourceIP); std::string getDBInstanceId() const; void setDBInstanceId(const std::string &dBInstanceId); std::string getEndTime() const; @@ -48,11 +46,10 @@ public: void setUser(const std::string &user); private: + std::string queryCondition_; std::string startTime_; - std::string queryKeywords_; std::string accessKeyId_; std::string database_; - std::string sourceIP_; std::string dBInstanceId_; std::string endTime_; std::string user_; @@ -60,4 +57,4 @@ private: } // namespace Model } // namespace Gpdb } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBEDBINSTANCESQLPATTERNSREQUEST_H_ +#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBEDIAGNOSISMONITORPERFORMANCEREQUEST_H_ diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeDiagnosisMonitorPerformanceResult.h b/gpdb/include/alibabacloud/gpdb/model/DescribeDiagnosisMonitorPerformanceResult.h new file mode 100644 index 000000000..a85222597 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeDiagnosisMonitorPerformanceResult.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_GPDB_MODEL_DESCRIBEDIAGNOSISMONITORPERFORMANCERESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_DESCRIBEDIAGNOSISMONITORPERFORMANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT DescribeDiagnosisMonitorPerformanceResult : public ServiceResult + { + public: + struct Item + { + std::string status; + std::string user; + std::string queryID; + long startTime; + std::string database; + int cost; + }; + + + DescribeDiagnosisMonitorPerformanceResult(); + explicit DescribeDiagnosisMonitorPerformanceResult(const std::string &payload); + ~DescribeDiagnosisMonitorPerformanceResult(); + bool getPerformancesTruncated()const; + std::vector getPerformances()const; + int getPerformancesThreshold()const; + + protected: + void parse(const std::string &payload); + private: + bool performancesTruncated_; + std::vector performances_; + int performancesThreshold_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBEDIAGNOSISMONITORPERFORMANCERESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeDiagnosisRecordsRequest.h b/gpdb/include/alibabacloud/gpdb/model/DescribeDiagnosisRecordsRequest.h new file mode 100644 index 000000000..45ed5fb76 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeDiagnosisRecordsRequest.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GPDB_MODEL_DESCRIBEDIAGNOSISRECORDSREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_DESCRIBEDIAGNOSISRECORDSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Gpdb { +namespace Model { +class ALIBABACLOUD_GPDB_EXPORT DescribeDiagnosisRecordsRequest : public RpcServiceRequest { +public: + DescribeDiagnosisRecordsRequest(); + ~DescribeDiagnosisRecordsRequest(); + std::string getQueryCondition() const; + void setQueryCondition(const std::string &queryCondition); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getDatabase() const; + void setDatabase(const std::string &database); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getDBInstanceId() const; + void setDBInstanceId(const std::string &dBInstanceId); + std::string getKeyword() const; + void setKeyword(const std::string &keyword); + std::string getOrder() const; + void setOrder(const std::string &order); + std::string getEndTime() const; + void setEndTime(const std::string &endTime); + std::string getUser() const; + void setUser(const std::string &user); + +private: + std::string queryCondition_; + std::string startTime_; + int pageNumber_; + std::string accessKeyId_; + std::string database_; + int pageSize_; + std::string dBInstanceId_; + std::string keyword_; + std::string order_; + std::string endTime_; + std::string user_; +}; +} // namespace Model +} // namespace Gpdb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBEDIAGNOSISRECORDSREQUEST_H_ diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeSlowSQLLogsResult.h b/gpdb/include/alibabacloud/gpdb/model/DescribeDiagnosisRecordsResult.h similarity index 55% rename from gpdb/include/alibabacloud/gpdb/model/DescribeSlowSQLLogsResult.h rename to gpdb/include/alibabacloud/gpdb/model/DescribeDiagnosisRecordsResult.h index b5a24c2c9..22714dfc3 100644 --- a/gpdb/include/alibabacloud/gpdb/model/DescribeSlowSQLLogsResult.h +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeDiagnosisRecordsResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_GPDB_MODEL_DESCRIBESLOWSQLLOGSRESULT_H_ -#define ALIBABACLOUD_GPDB_MODEL_DESCRIBESLOWSQLLOGSRESULT_H_ +#ifndef ALIBABACLOUD_GPDB_MODEL_DESCRIBEDIAGNOSISRECORDSRESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_DESCRIBEDIAGNOSISRECORDSRESULT_H_ #include #include @@ -29,40 +29,35 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_GPDB_EXPORT DescribeSlowSQLLogsResult : public ServiceResult + class ALIBABACLOUD_GPDB_EXPORT DescribeDiagnosisRecordsResult : public ServiceResult { public: struct Item { - float executeCost; - std::string sQLPlan; - std::string dBRole; - std::string queryId; - int sourcePort; - std::string sQLText; - std::string sourceIP; - long returnRowCounts; - std::string dBName; - std::string operationType; - long scanRowCounts; - std::string operationClass; - std::string executeState; - std::string operationExecuteTime; - std::string accountName; + std::string status; + std::string sQLStmt; + std::string user; + int sQLTruncatedThreshold; + std::string queryID; + long startTime; + std::string database; + int duration; + bool sQLTruncated; + std::string sessionID; }; - DescribeSlowSQLLogsResult(); - explicit DescribeSlowSQLLogsResult(const std::string &payload); - ~DescribeSlowSQLLogsResult(); - int getPageRecordCount()const; + DescribeDiagnosisRecordsResult(); + explicit DescribeDiagnosisRecordsResult(const std::string &payload); + ~DescribeDiagnosisRecordsResult(); + int getTotalCount()const; int getPageNumber()const; std::vector getItems()const; protected: void parse(const std::string &payload); private: - int pageRecordCount_; + int totalCount_; int pageNumber_; std::vector items_; @@ -70,4 +65,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBESLOWSQLLOGSRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBEDIAGNOSISRECORDSRESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeDiagnosisSQLInfoRequest.h b/gpdb/include/alibabacloud/gpdb/model/DescribeDiagnosisSQLInfoRequest.h new file mode 100644 index 000000000..c7d16f162 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeDiagnosisSQLInfoRequest.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_GPDB_MODEL_DESCRIBEDIAGNOSISSQLINFOREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_DESCRIBEDIAGNOSISSQLINFOREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Gpdb { +namespace Model { +class ALIBABACLOUD_GPDB_EXPORT DescribeDiagnosisSQLInfoRequest : public RpcServiceRequest { +public: + DescribeDiagnosisSQLInfoRequest(); + ~DescribeDiagnosisSQLInfoRequest(); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getDatabase() const; + void setDatabase(const std::string &database); + std::string getDBInstanceId() const; + void setDBInstanceId(const std::string &dBInstanceId); + std::string getQueryID() const; + void setQueryID(const std::string &queryID); + +private: + std::string accessKeyId_; + std::string database_; + std::string dBInstanceId_; + std::string queryID_; +}; +} // namespace Model +} // namespace Gpdb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBEDIAGNOSISSQLINFOREQUEST_H_ diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeDiagnosisSQLInfoResult.h b/gpdb/include/alibabacloud/gpdb/model/DescribeDiagnosisSQLInfoResult.h new file mode 100644 index 000000000..17717ba7d --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeDiagnosisSQLInfoResult.h @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GPDB_MODEL_DESCRIBEDIAGNOSISSQLINFORESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_DESCRIBEDIAGNOSISSQLINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT DescribeDiagnosisSQLInfoResult : public ServiceResult + { + public: + + + DescribeDiagnosisSQLInfoResult(); + explicit DescribeDiagnosisSQLInfoResult(const std::string &payload); + ~DescribeDiagnosisSQLInfoResult(); + std::string getStatus()const; + std::string getTextPlan()const; + std::string getSortedMetrics()const; + std::string getMaxOutputRows()const; + std::string getSQLStmt()const; + std::string getUser()const; + std::string getQueryID()const; + long getStartTime()const; + std::string getDatabase()const; + int getDuration()const; + std::string getQueryPlan()const; + std::string getSessionID()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + std::string textPlan_; + std::string sortedMetrics_; + std::string maxOutputRows_; + std::string sQLStmt_; + std::string user_; + std::string queryID_; + long startTime_; + std::string database_; + int duration_; + std::string queryPlan_; + std::string sessionID_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBEDIAGNOSISSQLINFORESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeResourceUsageRequest.h b/gpdb/include/alibabacloud/gpdb/model/DescribeDownloadRecordsRequest.h similarity index 74% rename from gpdb/include/alibabacloud/gpdb/model/DescribeResourceUsageRequest.h rename to gpdb/include/alibabacloud/gpdb/model/DescribeDownloadRecordsRequest.h index 8ff36e4f1..ad3b401de 100644 --- a/gpdb/include/alibabacloud/gpdb/model/DescribeResourceUsageRequest.h +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeDownloadRecordsRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_GPDB_MODEL_DESCRIBERESOURCEUSAGEREQUEST_H_ -#define ALIBABACLOUD_GPDB_MODEL_DESCRIBERESOURCEUSAGEREQUEST_H_ +#ifndef ALIBABACLOUD_GPDB_MODEL_DESCRIBEDOWNLOADRECORDSREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_DESCRIBEDOWNLOADRECORDSREQUEST_H_ #include #include @@ -26,10 +26,10 @@ namespace AlibabaCloud { namespace Gpdb { namespace Model { -class ALIBABACLOUD_GPDB_EXPORT DescribeResourceUsageRequest : public RpcServiceRequest { +class ALIBABACLOUD_GPDB_EXPORT DescribeDownloadRecordsRequest : public RpcServiceRequest { public: - DescribeResourceUsageRequest(); - ~DescribeResourceUsageRequest(); + DescribeDownloadRecordsRequest(); + ~DescribeDownloadRecordsRequest(); std::string getAccessKeyId() const; void setAccessKeyId(const std::string &accessKeyId); std::string getDBInstanceId() const; @@ -42,4 +42,4 @@ private: } // namespace Model } // namespace Gpdb } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBERESOURCEUSAGEREQUEST_H_ +#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBEDOWNLOADRECORDSREQUEST_H_ diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeDownloadRecordsResult.h b/gpdb/include/alibabacloud/gpdb/model/DescribeDownloadRecordsResult.h new file mode 100644 index 000000000..bf28c4514 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeDownloadRecordsResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GPDB_MODEL_DESCRIBEDOWNLOADRECORDSRESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_DESCRIBEDOWNLOADRECORDSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT DescribeDownloadRecordsResult : public ServiceResult + { + public: + struct Item + { + std::string status; + std::string fileName; + std::string exceptionMsg; + long downloadId; + std::string downloadUrl; + }; + + + DescribeDownloadRecordsResult(); + explicit DescribeDownloadRecordsResult(const std::string &payload); + ~DescribeDownloadRecordsResult(); + std::vector getRecords()const; + + protected: + void parse(const std::string &payload); + private: + std::vector records_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBEDOWNLOADRECORDSRESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeSQLCollectorPolicyRequest.h b/gpdb/include/alibabacloud/gpdb/model/DescribeDownloadSQLLogsRequest.h similarity index 74% rename from gpdb/include/alibabacloud/gpdb/model/DescribeSQLCollectorPolicyRequest.h rename to gpdb/include/alibabacloud/gpdb/model/DescribeDownloadSQLLogsRequest.h index 7511d8019..dc802612f 100644 --- a/gpdb/include/alibabacloud/gpdb/model/DescribeSQLCollectorPolicyRequest.h +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeDownloadSQLLogsRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_GPDB_MODEL_DESCRIBESQLCOLLECTORPOLICYREQUEST_H_ -#define ALIBABACLOUD_GPDB_MODEL_DESCRIBESQLCOLLECTORPOLICYREQUEST_H_ +#ifndef ALIBABACLOUD_GPDB_MODEL_DESCRIBEDOWNLOADSQLLOGSREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_DESCRIBEDOWNLOADSQLLOGSREQUEST_H_ #include #include @@ -26,10 +26,10 @@ namespace AlibabaCloud { namespace Gpdb { namespace Model { -class ALIBABACLOUD_GPDB_EXPORT DescribeSQLCollectorPolicyRequest : public RpcServiceRequest { +class ALIBABACLOUD_GPDB_EXPORT DescribeDownloadSQLLogsRequest : public RpcServiceRequest { public: - DescribeSQLCollectorPolicyRequest(); - ~DescribeSQLCollectorPolicyRequest(); + DescribeDownloadSQLLogsRequest(); + ~DescribeDownloadSQLLogsRequest(); std::string getAccessKeyId() const; void setAccessKeyId(const std::string &accessKeyId); std::string getDBInstanceId() const; @@ -42,4 +42,4 @@ private: } // namespace Model } // namespace Gpdb } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBESQLCOLLECTORPOLICYREQUEST_H_ +#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBEDOWNLOADSQLLOGSREQUEST_H_ diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeDownloadSQLLogsResult.h b/gpdb/include/alibabacloud/gpdb/model/DescribeDownloadSQLLogsResult.h new file mode 100644 index 000000000..8fa738b26 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeDownloadSQLLogsResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GPDB_MODEL_DESCRIBEDOWNLOADSQLLOGSRESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_DESCRIBEDOWNLOADSQLLOGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT DescribeDownloadSQLLogsResult : public ServiceResult + { + public: + struct Item + { + std::string status; + std::string fileName; + std::string exceptionMsg; + long downloadId; + std::string downloadUrl; + }; + + + DescribeDownloadSQLLogsResult(); + explicit DescribeDownloadSQLLogsResult(const std::string &payload); + ~DescribeDownloadSQLLogsResult(); + std::vector getRecords()const; + + protected: + void parse(const std::string &payload); + private: + std::vector records_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBEDOWNLOADSQLLOGSRESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeSQLLogByQueryIdRequest.h b/gpdb/include/alibabacloud/gpdb/model/DescribeHealthStatusRequest.h similarity index 70% rename from gpdb/include/alibabacloud/gpdb/model/DescribeSQLLogByQueryIdRequest.h rename to gpdb/include/alibabacloud/gpdb/model/DescribeHealthStatusRequest.h index c125fdefe..d304a4ebe 100644 --- a/gpdb/include/alibabacloud/gpdb/model/DescribeSQLLogByQueryIdRequest.h +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeHealthStatusRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_GPDB_MODEL_DESCRIBESQLLOGBYQUERYIDREQUEST_H_ -#define ALIBABACLOUD_GPDB_MODEL_DESCRIBESQLLOGBYQUERYIDREQUEST_H_ +#ifndef ALIBABACLOUD_GPDB_MODEL_DESCRIBEHEALTHSTATUSREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_DESCRIBEHEALTHSTATUSREQUEST_H_ #include #include @@ -26,23 +26,23 @@ namespace AlibabaCloud { namespace Gpdb { namespace Model { -class ALIBABACLOUD_GPDB_EXPORT DescribeSQLLogByQueryIdRequest : public RpcServiceRequest { +class ALIBABACLOUD_GPDB_EXPORT DescribeHealthStatusRequest : public RpcServiceRequest { public: - DescribeSQLLogByQueryIdRequest(); - ~DescribeSQLLogByQueryIdRequest(); + DescribeHealthStatusRequest(); + ~DescribeHealthStatusRequest(); std::string getAccessKeyId() const; void setAccessKeyId(const std::string &accessKeyId); std::string getDBInstanceId() const; void setDBInstanceId(const std::string &dBInstanceId); - std::string getQueryId() const; - void setQueryId(const std::string &queryId); + std::string getKey() const; + void setKey(const std::string &key); private: std::string accessKeyId_; std::string dBInstanceId_; - std::string queryId_; + std::string key_; }; } // namespace Model } // namespace Gpdb } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBESQLLOGBYQUERYIDREQUEST_H_ +#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBEHEALTHSTATUSREQUEST_H_ diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeHealthStatusResult.h b/gpdb/include/alibabacloud/gpdb/model/DescribeHealthStatusResult.h new file mode 100644 index 000000000..cdd28e61c --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeHealthStatusResult.h @@ -0,0 +1,143 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GPDB_MODEL_DESCRIBEHEALTHSTATUSRESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_DESCRIBEHEALTHSTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT DescribeHealthStatusResult : public ServiceResult + { + public: + struct Status + { + struct Adbpg_status + { + std::string status; + float value; + }; + struct Adbpg_connection_status + { + std::string status; + float value; + }; + struct Adbpg_disk_status + { + std::string status; + float value; + }; + struct Adbpg_disk_usage_percent + { + std::string status; + float value; + }; + struct Adbpg_master_disk_usage_percent_max + { + std::string status; + float value; + }; + struct Adbgp_segment_disk_usage_percent_max + { + std::string status; + float value; + }; + struct Node_master_status + { + std::string status; + float value; + }; + struct Node_segment_disk_status + { + std::string status; + float value; + }; + struct Node_master_connection_status + { + std::string status; + float value; + }; + struct Node_segment_connection_status + { + std::string status; + float value; + }; + struct Adbpg_master_status + { + std::string status; + float value; + }; + struct Adbpg_segment_status + { + std::string status; + float value; + }; + struct Adbpg_instance_total_data_gb + { + float value; + }; + struct Adbpg_instance_hot_data_gb + { + float value; + }; + struct Adbpg_instance_cold_data_gb + { + float value; + }; + Adbpg_instance_cold_data_gb adbpg_instance_cold_data_gb; + Node_master_connection_status node_master_connection_status; + Node_master_status node_master_status; + Node_segment_connection_status node_segment_connection_status; + Adbpg_segment_status adbpg_segment_status; + Adbpg_disk_usage_percent adbpg_disk_usage_percent; + Node_segment_disk_status node_segment_disk_status; + Adbpg_master_status adbpg_master_status; + Adbpg_status adbpg_status; + Adbgp_segment_disk_usage_percent_max adbgp_segment_disk_usage_percent_max; + Adbpg_instance_hot_data_gb adbpg_instance_hot_data_gb; + Adbpg_instance_total_data_gb adbpg_instance_total_data_gb; + Adbpg_disk_status adbpg_disk_status; + Adbpg_master_disk_usage_percent_max adbpg_master_disk_usage_percent_max; + Adbpg_connection_status adbpg_connection_status; + }; + + + DescribeHealthStatusResult(); + explicit DescribeHealthStatusResult(const std::string &payload); + ~DescribeHealthStatusResult(); + Status getStatus()const; + std::string getDBClusterId()const; + + protected: + void parse(const std::string &payload); + private: + Status status_; + std::string dBClusterId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBEHEALTHSTATUSRESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeNamespaceRequest.h b/gpdb/include/alibabacloud/gpdb/model/DescribeNamespaceRequest.h new file mode 100644 index 000000000..53b1ca1bb --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeNamespaceRequest.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_GPDB_MODEL_DESCRIBENAMESPACEREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_DESCRIBENAMESPACEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Gpdb { +namespace Model { +class ALIBABACLOUD_GPDB_EXPORT DescribeNamespaceRequest : public RpcServiceRequest { +public: + DescribeNamespaceRequest(); + ~DescribeNamespaceRequest(); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getManagerAccount() const; + void setManagerAccount(const std::string &managerAccount); + std::string getDBInstanceId() const; + void setDBInstanceId(const std::string &dBInstanceId); + std::string getManagerAccountPassword() const; + void setManagerAccountPassword(const std::string &managerAccountPassword); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string get_Namespace() const; + void set_Namespace(const std::string &_namespace); + +private: + std::string accessKeyId_; + std::string regionId_; + std::string managerAccount_; + std::string dBInstanceId_; + std::string managerAccountPassword_; + long ownerId_; + std::string _namespace_; +}; +} // namespace Model +} // namespace Gpdb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBENAMESPACEREQUEST_H_ diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeNamespaceResult.h b/gpdb/include/alibabacloud/gpdb/model/DescribeNamespaceResult.h new file mode 100644 index 000000000..9420cbd3d --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeNamespaceResult.h @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GPDB_MODEL_DESCRIBENAMESPACERESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_DESCRIBENAMESPACERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT DescribeNamespaceResult : public ServiceResult + { + public: + + + DescribeNamespaceResult(); + explicit DescribeNamespaceResult(const std::string &payload); + ~DescribeNamespaceResult(); + std::string getStatus()const; + std::string getMessage()const; + std::string getDBInstanceId()const; + std::string get_Namespace()const; + std::string getRegionId()const; + std::string getNamespaceInfo()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + std::string message_; + std::string dBInstanceId_; + std::string _namespace_; + std::string regionId_; + std::string namespaceInfo_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBENAMESPACERESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeRdsVSwitchsRequest.h b/gpdb/include/alibabacloud/gpdb/model/DescribeRdsVSwitchsRequest.h index 1b46a6991..1db0b38f8 100644 --- a/gpdb/include/alibabacloud/gpdb/model/DescribeRdsVSwitchsRequest.h +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeRdsVSwitchsRequest.h @@ -34,6 +34,8 @@ public: void setResourceOwnerId(long resourceOwnerId); std::string getAccessKeyId() const; void setAccessKeyId(const std::string &accessKeyId); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); std::string getSecurityToken() const; void setSecurityToken(const std::string &securityToken); std::string getRegionId() const; @@ -52,6 +54,7 @@ public: private: long resourceOwnerId_; std::string accessKeyId_; + std::string resourceGroupId_; std::string securityToken_; std::string regionId_; std::string resourceOwnerAccount_; diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeRdsVpcsRequest.h b/gpdb/include/alibabacloud/gpdb/model/DescribeRdsVpcsRequest.h index 9a178ec94..f78ed0c46 100644 --- a/gpdb/include/alibabacloud/gpdb/model/DescribeRdsVpcsRequest.h +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeRdsVpcsRequest.h @@ -34,6 +34,8 @@ public: void setResourceOwnerId(long resourceOwnerId); std::string getAccessKeyId() const; void setAccessKeyId(const std::string &accessKeyId); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); std::string getSecurityToken() const; void setSecurityToken(const std::string &securityToken); std::string getRegionId() const; @@ -50,6 +52,7 @@ public: private: long resourceOwnerId_; std::string accessKeyId_; + std::string resourceGroupId_; std::string securityToken_; std::string regionId_; std::string resourceOwnerAccount_; diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeSQLLogByQueryIdResult.h b/gpdb/include/alibabacloud/gpdb/model/DescribeSQLLogByQueryIdResult.h deleted file mode 100644 index 1ce6abe85..000000000 --- a/gpdb/include/alibabacloud/gpdb/model/DescribeSQLLogByQueryIdResult.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_GPDB_MODEL_DESCRIBESQLLOGBYQUERYIDRESULT_H_ -#define ALIBABACLOUD_GPDB_MODEL_DESCRIBESQLLOGBYQUERYIDRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Gpdb - { - namespace Model - { - class ALIBABACLOUD_GPDB_EXPORT DescribeSQLLogByQueryIdResult : public ServiceResult - { - public: - struct SQLLog - { - float executeCost; - std::string sQLPlan; - std::string dBRole; - std::string queryId; - int sourcePort; - std::string sQLText; - std::string sourceIP; - long returnRowCounts; - std::vector sliceIds; - std::string dBName; - std::string operationType; - long scanRowCounts; - std::string operationClass; - std::string executeState; - std::string operationExecuteTime; - std::string accountName; - }; - - - DescribeSQLLogByQueryIdResult(); - explicit DescribeSQLLogByQueryIdResult(const std::string &payload); - ~DescribeSQLLogByQueryIdResult(); - std::vector getItems()const; - - protected: - void parse(const std::string &payload); - private: - std::vector items_; - - }; - } - } -} -#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBESQLLOGBYQUERYIDRESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeSQLLogsOnSliceRequest.h b/gpdb/include/alibabacloud/gpdb/model/DescribeSQLLogsOnSliceRequest.h deleted file mode 100644 index 9875398a3..000000000 --- a/gpdb/include/alibabacloud/gpdb/model/DescribeSQLLogsOnSliceRequest.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_GPDB_MODEL_DESCRIBESQLLOGSONSLICEREQUEST_H_ -#define ALIBABACLOUD_GPDB_MODEL_DESCRIBESQLLOGSONSLICEREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Gpdb { -namespace Model { -class ALIBABACLOUD_GPDB_EXPORT DescribeSQLLogsOnSliceRequest : public RpcServiceRequest { -public: - DescribeSQLLogsOnSliceRequest(); - ~DescribeSQLLogsOnSliceRequest(); - std::string getSliceId() const; - void setSliceId(const std::string &sliceId); - int getPageNumber() const; - void setPageNumber(int pageNumber); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); - std::string getMinExecuteCost() const; - void setMinExecuteCost(const std::string &minExecuteCost); - int getPageSize() const; - void setPageSize(int pageSize); - std::string getDBInstanceId() const; - void setDBInstanceId(const std::string &dBInstanceId); - std::string getMaxExecuteCost() const; - void setMaxExecuteCost(const std::string &maxExecuteCost); - std::string getExecuteState() const; - void setExecuteState(const std::string &executeState); - std::string getQueryId() const; - void setQueryId(const std::string &queryId); - -private: - std::string sliceId_; - int pageNumber_; - std::string accessKeyId_; - std::string minExecuteCost_; - int pageSize_; - std::string dBInstanceId_; - std::string maxExecuteCost_; - std::string executeState_; - std::string queryId_; -}; -} // namespace Model -} // namespace Gpdb -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBESQLLOGSONSLICEREQUEST_H_ diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeSlowSQLLogsRequest.h b/gpdb/include/alibabacloud/gpdb/model/DescribeSQLLogsV2Request.h similarity index 71% rename from gpdb/include/alibabacloud/gpdb/model/DescribeSlowSQLLogsRequest.h rename to gpdb/include/alibabacloud/gpdb/model/DescribeSQLLogsV2Request.h index c93ab55a4..96752ae78 100644 --- a/gpdb/include/alibabacloud/gpdb/model/DescribeSlowSQLLogsRequest.h +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeSQLLogsV2Request.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_GPDB_MODEL_DESCRIBESLOWSQLLOGSREQUEST_H_ -#define ALIBABACLOUD_GPDB_MODEL_DESCRIBESLOWSQLLOGSREQUEST_H_ +#ifndef ALIBABACLOUD_GPDB_MODEL_DESCRIBESQLLOGSV2REQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_DESCRIBESQLLOGSV2REQUEST_H_ #include #include @@ -26,30 +26,36 @@ namespace AlibabaCloud { namespace Gpdb { namespace Model { -class ALIBABACLOUD_GPDB_EXPORT DescribeSlowSQLLogsRequest : public RpcServiceRequest { +class ALIBABACLOUD_GPDB_EXPORT DescribeSQLLogsV2Request : public RpcServiceRequest { public: - DescribeSlowSQLLogsRequest(); - ~DescribeSlowSQLLogsRequest(); + DescribeSQLLogsV2Request(); + ~DescribeSQLLogsV2Request(); std::string getStartTime() const; void setStartTime(const std::string &startTime); std::string getQueryKeywords() const; void setQueryKeywords(const std::string &queryKeywords); - int getPageNumber() const; - void setPageNumber(int pageNumber); + std::string getPageNumber() const; + void setPageNumber(const std::string &pageNumber); std::string getAccessKeyId() const; void setAccessKeyId(const std::string &accessKeyId); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); std::string getDatabase() const; void setDatabase(const std::string &database); std::string getSourceIP() const; void setSourceIP(const std::string &sourceIP); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); std::string getMinExecuteCost() const; void setMinExecuteCost(const std::string &minExecuteCost); - int getPageSize() const; - void setPageSize(int pageSize); + std::string getPageSize() const; + void setPageSize(const std::string &pageSize); std::string getDBInstanceId() const; void setDBInstanceId(const std::string &dBInstanceId); std::string getMaxExecuteCost() const; void setMaxExecuteCost(const std::string &maxExecuteCost); + std::string getExecuteCost() const; + void setExecuteCost(const std::string &executeCost); std::string getExecuteState() const; void setExecuteState(const std::string &executeState); std::string getEndTime() const; @@ -64,14 +70,17 @@ public: private: std::string startTime_; std::string queryKeywords_; - int pageNumber_; + std::string pageNumber_; std::string accessKeyId_; + std::string resourceGroupId_; std::string database_; std::string sourceIP_; + std::string regionId_; std::string minExecuteCost_; - int pageSize_; + std::string pageSize_; std::string dBInstanceId_; std::string maxExecuteCost_; + std::string executeCost_; std::string executeState_; std::string endTime_; std::string operationType_; @@ -81,4 +90,4 @@ private: } // namespace Model } // namespace Gpdb } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBESLOWSQLLOGSREQUEST_H_ +#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBESQLLOGSV2REQUEST_H_ diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeSQLLogsResult.h b/gpdb/include/alibabacloud/gpdb/model/DescribeSQLLogsV2Result.h similarity index 79% rename from gpdb/include/alibabacloud/gpdb/model/DescribeSQLLogsResult.h rename to gpdb/include/alibabacloud/gpdb/model/DescribeSQLLogsV2Result.h index dc5ebea7a..743d43e75 100644 --- a/gpdb/include/alibabacloud/gpdb/model/DescribeSQLLogsResult.h +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeSQLLogsV2Result.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_GPDB_MODEL_DESCRIBESQLLOGSRESULT_H_ -#define ALIBABACLOUD_GPDB_MODEL_DESCRIBESQLLOGSRESULT_H_ +#ifndef ALIBABACLOUD_GPDB_MODEL_DESCRIBESQLLOGSV2RESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_DESCRIBESQLLOGSV2RESULT_H_ #include #include @@ -29,13 +29,12 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_GPDB_EXPORT DescribeSQLLogsResult : public ServiceResult + class ALIBABACLOUD_GPDB_EXPORT DescribeSQLLogsV2Result : public ServiceResult { public: struct Item { float executeCost; - std::string sQLPlan; std::string dBRole; int sourcePort; std::string sQLText; @@ -51,9 +50,9 @@ namespace AlibabaCloud }; - DescribeSQLLogsResult(); - explicit DescribeSQLLogsResult(const std::string &payload); - ~DescribeSQLLogsResult(); + DescribeSQLLogsV2Result(); + explicit DescribeSQLLogsV2Result(const std::string &payload); + ~DescribeSQLLogsV2Result(); int getPageRecordCount()const; int getPageNumber()const; std::vector getItems()const; @@ -69,4 +68,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBESQLLOGSRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBESQLLOGSV2RESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeSampleDataRequest.h b/gpdb/include/alibabacloud/gpdb/model/DescribeSampleDataRequest.h new file mode 100644 index 000000000..cbda380a1 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeSampleDataRequest.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_GPDB_MODEL_DESCRIBESAMPLEDATAREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_DESCRIBESAMPLEDATAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Gpdb { +namespace Model { +class ALIBABACLOUD_GPDB_EXPORT DescribeSampleDataRequest : public RpcServiceRequest { +public: + DescribeSampleDataRequest(); + ~DescribeSampleDataRequest(); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getDBInstanceId() const; + void setDBInstanceId(const std::string &dBInstanceId); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + std::string accessKeyId_; + std::string dBInstanceId_; + long ownerId_; +}; +} // namespace Model +} // namespace Gpdb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBESAMPLEDATAREQUEST_H_ diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeSQLCollectorPolicyResult.h b/gpdb/include/alibabacloud/gpdb/model/DescribeSampleDataResult.h similarity index 65% rename from gpdb/include/alibabacloud/gpdb/model/DescribeSQLCollectorPolicyResult.h rename to gpdb/include/alibabacloud/gpdb/model/DescribeSampleDataResult.h index 634913db1..e43a08c31 100644 --- a/gpdb/include/alibabacloud/gpdb/model/DescribeSQLCollectorPolicyResult.h +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeSampleDataResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_GPDB_MODEL_DESCRIBESQLCOLLECTORPOLICYRESULT_H_ -#define ALIBABACLOUD_GPDB_MODEL_DESCRIBESQLCOLLECTORPOLICYRESULT_H_ +#ifndef ALIBABACLOUD_GPDB_MODEL_DESCRIBESAMPLEDATARESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_DESCRIBESAMPLEDATARESULT_H_ #include #include @@ -29,23 +29,27 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_GPDB_EXPORT DescribeSQLCollectorPolicyResult : public ServiceResult + class ALIBABACLOUD_GPDB_EXPORT DescribeSampleDataResult : public ServiceResult { public: - DescribeSQLCollectorPolicyResult(); - explicit DescribeSQLCollectorPolicyResult(const std::string &payload); - ~DescribeSQLCollectorPolicyResult(); - std::string getSQLCollectorStatus()const; + DescribeSampleDataResult(); + explicit DescribeSampleDataResult(const std::string &payload); + ~DescribeSampleDataResult(); + std::string getDBInstanceId()const; + bool getHasSampleData()const; + std::string getErrorMessage()const; protected: void parse(const std::string &payload); private: - std::string sQLCollectorStatus_; + std::string dBInstanceId_; + bool hasSampleData_; + std::string errorMessage_; }; } } } -#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBESQLCOLLECTORPOLICYRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBESAMPLEDATARESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeSpecificationResult.h b/gpdb/include/alibabacloud/gpdb/model/DescribeSpecificationResult.h deleted file mode 100644 index 1d76bde31..000000000 --- a/gpdb/include/alibabacloud/gpdb/model/DescribeSpecificationResult.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_GPDB_MODEL_DESCRIBESPECIFICATIONRESULT_H_ -#define ALIBABACLOUD_GPDB_MODEL_DESCRIBESPECIFICATIONRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Gpdb - { - namespace Model - { - class ALIBABACLOUD_GPDB_EXPORT DescribeSpecificationResult : public ServiceResult - { - public: - struct StorageNoticeItem - { - std::string value; - std::string text; - }; - struct DBInstanceClassItem - { - std::string value; - std::string text; - }; - struct DBInstanceGroupCountItem - { - std::string value; - std::string text; - }; - - - DescribeSpecificationResult(); - explicit DescribeSpecificationResult(const std::string &payload); - ~DescribeSpecificationResult(); - std::vector getStorageNotice()const; - std::vector getDBInstanceClass()const; - std::vector getDBInstanceGroupCount()const; - - protected: - void parse(const std::string &payload); - private: - std::vector storageNotice_; - std::vector dBInstanceClass_; - std::vector dBInstanceGroupCount_; - - }; - } - } -} -#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBESPECIFICATIONRESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/AddBuDBInstanceRelationRequest.h b/gpdb/include/alibabacloud/gpdb/model/DescribeSupportFeaturesRequest.h similarity index 72% rename from gpdb/include/alibabacloud/gpdb/model/AddBuDBInstanceRelationRequest.h rename to gpdb/include/alibabacloud/gpdb/model/DescribeSupportFeaturesRequest.h index 4e9c3232b..c526f907f 100644 --- a/gpdb/include/alibabacloud/gpdb/model/AddBuDBInstanceRelationRequest.h +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeSupportFeaturesRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_GPDB_MODEL_ADDBUDBINSTANCERELATIONREQUEST_H_ -#define ALIBABACLOUD_GPDB_MODEL_ADDBUDBINSTANCERELATIONREQUEST_H_ +#ifndef ALIBABACLOUD_GPDB_MODEL_DESCRIBESUPPORTFEATURESREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_DESCRIBESUPPORTFEATURESREQUEST_H_ #include #include @@ -26,26 +26,23 @@ namespace AlibabaCloud { namespace Gpdb { namespace Model { -class ALIBABACLOUD_GPDB_EXPORT AddBuDBInstanceRelationRequest : public RpcServiceRequest { +class ALIBABACLOUD_GPDB_EXPORT DescribeSupportFeaturesRequest : public RpcServiceRequest { public: - AddBuDBInstanceRelationRequest(); - ~AddBuDBInstanceRelationRequest(); + DescribeSupportFeaturesRequest(); + ~DescribeSupportFeaturesRequest(); std::string getAccessKeyId() const; void setAccessKeyId(const std::string &accessKeyId); std::string getDBInstanceId() const; void setDBInstanceId(const std::string &dBInstanceId); long getOwnerId() const; void setOwnerId(long ownerId); - std::string getBusinessUnit() const; - void setBusinessUnit(const std::string &businessUnit); private: std::string accessKeyId_; std::string dBInstanceId_; long ownerId_; - std::string businessUnit_; }; } // namespace Model } // namespace Gpdb } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_GPDB_MODEL_ADDBUDBINSTANCERELATIONREQUEST_H_ +#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBESUPPORTFEATURESREQUEST_H_ diff --git a/gpdb/include/alibabacloud/gpdb/model/AddBuDBInstanceRelationResult.h b/gpdb/include/alibabacloud/gpdb/model/DescribeSupportFeaturesResult.h similarity index 64% rename from gpdb/include/alibabacloud/gpdb/model/AddBuDBInstanceRelationResult.h rename to gpdb/include/alibabacloud/gpdb/model/DescribeSupportFeaturesResult.h index 11e0c87c6..2abf8eb9f 100644 --- a/gpdb/include/alibabacloud/gpdb/model/AddBuDBInstanceRelationResult.h +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeSupportFeaturesResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_GPDB_MODEL_ADDBUDBINSTANCERELATIONRESULT_H_ -#define ALIBABACLOUD_GPDB_MODEL_ADDBUDBINSTANCERELATIONRESULT_H_ +#ifndef ALIBABACLOUD_GPDB_MODEL_DESCRIBESUPPORTFEATURESRESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_DESCRIBESUPPORTFEATURESRESULT_H_ #include #include @@ -29,25 +29,25 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_GPDB_EXPORT AddBuDBInstanceRelationResult : public ServiceResult + class ALIBABACLOUD_GPDB_EXPORT DescribeSupportFeaturesResult : public ServiceResult { public: - AddBuDBInstanceRelationResult(); - explicit AddBuDBInstanceRelationResult(const std::string &payload); - ~AddBuDBInstanceRelationResult(); - std::string getBusinessUnit()const; - std::string getDBInstanceName()const; + DescribeSupportFeaturesResult(); + explicit DescribeSupportFeaturesResult(const std::string &payload); + ~DescribeSupportFeaturesResult(); + std::string getDBInstanceId()const; + std::string getSupportFeatureList()const; protected: void parse(const std::string &payload); private: - std::string businessUnit_; - std::string dBInstanceName_; + std::string dBInstanceId_; + std::string supportFeatureList_; }; } } } -#endif // !ALIBABACLOUD_GPDB_MODEL_ADDBUDBINSTANCERELATIONRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBESUPPORTFEATURESRESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeTagsRequest.h b/gpdb/include/alibabacloud/gpdb/model/DescribeTagsRequest.h index 04f20260a..3d585ed3c 100644 --- a/gpdb/include/alibabacloud/gpdb/model/DescribeTagsRequest.h +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeTagsRequest.h @@ -34,6 +34,8 @@ public: void setResourceOwnerId(long resourceOwnerId); std::string getAccessKeyId() const; void setAccessKeyId(const std::string &accessKeyId); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); std::string getRegionId() const; void setRegionId(const std::string ®ionId); std::string getResourceOwnerAccount() const; @@ -48,6 +50,7 @@ public: private: long resourceOwnerId_; std::string accessKeyId_; + std::string resourceGroupId_; std::string regionId_; std::string resourceOwnerAccount_; std::string ownerAccount_; diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeWaitingSQLInfoRequest.h b/gpdb/include/alibabacloud/gpdb/model/DescribeWaitingSQLInfoRequest.h new file mode 100644 index 000000000..40adf1174 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeWaitingSQLInfoRequest.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_GPDB_MODEL_DESCRIBEWAITINGSQLINFOREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_DESCRIBEWAITINGSQLINFOREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Gpdb { +namespace Model { +class ALIBABACLOUD_GPDB_EXPORT DescribeWaitingSQLInfoRequest : public RpcServiceRequest { +public: + DescribeWaitingSQLInfoRequest(); + ~DescribeWaitingSQLInfoRequest(); + std::string getPID() const; + void setPID(const std::string &pID); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getDatabase() const; + void setDatabase(const std::string &database); + std::string getDBInstanceId() const; + void setDBInstanceId(const std::string &dBInstanceId); + +private: + std::string pID_; + std::string accessKeyId_; + std::string database_; + std::string dBInstanceId_; +}; +} // namespace Model +} // namespace Gpdb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBEWAITINGSQLINFOREQUEST_H_ diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeWaitingSQLInfoResult.h b/gpdb/include/alibabacloud/gpdb/model/DescribeWaitingSQLInfoResult.h new file mode 100644 index 000000000..0a9d7cb7c --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeWaitingSQLInfoResult.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GPDB_MODEL_DESCRIBEWAITINGSQLINFORESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_DESCRIBEWAITINGSQLINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT DescribeWaitingSQLInfoResult : public ServiceResult + { + public: + struct Item + { + std::string blockedBySQLStmt; + std::string grantLocks; + std::string blockedByPID; + std::string sQLStmt; + std::string user; + std::string blockedByUser; + std::string blockedByApplication; + std::string pID; + std::string application; + std::string notGrantLocks; + }; + + + DescribeWaitingSQLInfoResult(); + explicit DescribeWaitingSQLInfoResult(const std::string &payload); + ~DescribeWaitingSQLInfoResult(); + std::string getDatabase()const; + std::vector getItems()const; + + protected: + void parse(const std::string &payload); + private: + std::string database_; + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBEWAITINGSQLINFORESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeWaitingSQLRecordsRequest.h b/gpdb/include/alibabacloud/gpdb/model/DescribeWaitingSQLRecordsRequest.h new file mode 100644 index 000000000..afe93ba00 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeWaitingSQLRecordsRequest.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GPDB_MODEL_DESCRIBEWAITINGSQLRECORDSREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_DESCRIBEWAITINGSQLRECORDSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Gpdb { +namespace Model { +class ALIBABACLOUD_GPDB_EXPORT DescribeWaitingSQLRecordsRequest : public RpcServiceRequest { +public: + DescribeWaitingSQLRecordsRequest(); + ~DescribeWaitingSQLRecordsRequest(); + std::string getQueryCondition() const; + void setQueryCondition(const std::string &queryCondition); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getDatabase() const; + void setDatabase(const std::string &database); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getDBInstanceId() const; + void setDBInstanceId(const std::string &dBInstanceId); + std::string getKeyword() const; + void setKeyword(const std::string &keyword); + std::string getOrder() const; + void setOrder(const std::string &order); + std::string getEndTime() const; + void setEndTime(const std::string &endTime); + std::string getUser() const; + void setUser(const std::string &user); + +private: + std::string queryCondition_; + std::string startTime_; + int pageNumber_; + std::string accessKeyId_; + std::string database_; + int pageSize_; + std::string dBInstanceId_; + std::string keyword_; + std::string order_; + std::string endTime_; + std::string user_; +}; +} // namespace Model +} // namespace Gpdb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBEWAITINGSQLRECORDSREQUEST_H_ diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeWaitingSQLRecordsResult.h b/gpdb/include/alibabacloud/gpdb/model/DescribeWaitingSQLRecordsResult.h new file mode 100644 index 000000000..fad2bf0ac --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeWaitingSQLRecordsResult.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GPDB_MODEL_DESCRIBEWAITINGSQLRECORDSRESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_DESCRIBEWAITINGSQLRECORDSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT DescribeWaitingSQLRecordsResult : public ServiceResult + { + public: + struct Item + { + std::string status; + std::string sQLStmt; + std::string user; + long waitingTime; + long startTime; + std::string database; + std::string pID; + std::string sessionID; + }; + + + DescribeWaitingSQLRecordsResult(); + explicit DescribeWaitingSQLRecordsResult(const std::string &payload); + ~DescribeWaitingSQLRecordsResult(); + int getTotalCount()const; + int getPageNumber()const; + std::vector getItems()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageNumber_; + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBEWAITINGSQLRECORDSRESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/DownloadDiagnosisRecordsRequest.h b/gpdb/include/alibabacloud/gpdb/model/DownloadDiagnosisRecordsRequest.h new file mode 100644 index 000000000..2925cd7df --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/DownloadDiagnosisRecordsRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GPDB_MODEL_DOWNLOADDIAGNOSISRECORDSREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_DOWNLOADDIAGNOSISRECORDSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Gpdb { +namespace Model { +class ALIBABACLOUD_GPDB_EXPORT DownloadDiagnosisRecordsRequest : public RpcServiceRequest { +public: + DownloadDiagnosisRecordsRequest(); + ~DownloadDiagnosisRecordsRequest(); + std::string getQueryCondition() const; + void setQueryCondition(const std::string &queryCondition); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getDatabase() const; + void setDatabase(const std::string &database); + std::string getDBInstanceId() const; + void setDBInstanceId(const std::string &dBInstanceId); + std::string getLang() const; + void setLang(const std::string &lang); + std::string getEndTime() const; + void setEndTime(const std::string &endTime); + std::string getUser() const; + void setUser(const std::string &user); + +private: + std::string queryCondition_; + std::string startTime_; + std::string accessKeyId_; + std::string resourceGroupId_; + std::string database_; + std::string dBInstanceId_; + std::string lang_; + std::string endTime_; + std::string user_; +}; +} // namespace Model +} // namespace Gpdb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GPDB_MODEL_DOWNLOADDIAGNOSISRECORDSREQUEST_H_ diff --git a/gpdb/include/alibabacloud/gpdb/model/DownloadDiagnosisRecordsResult.h b/gpdb/include/alibabacloud/gpdb/model/DownloadDiagnosisRecordsResult.h new file mode 100644 index 000000000..b527b61a1 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/DownloadDiagnosisRecordsResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GPDB_MODEL_DOWNLOADDIAGNOSISRECORDSRESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_DOWNLOADDIAGNOSISRECORDSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT DownloadDiagnosisRecordsResult : public ServiceResult + { + public: + + + DownloadDiagnosisRecordsResult(); + explicit DownloadDiagnosisRecordsResult(const std::string &payload); + ~DownloadDiagnosisRecordsResult(); + std::string getDBInstanceId()const; + std::string getDownloadId()const; + + protected: + void parse(const std::string &payload); + private: + std::string dBInstanceId_; + std::string downloadId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_DOWNLOADDIAGNOSISRECORDSRESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeSQLLogsRequest.h b/gpdb/include/alibabacloud/gpdb/model/DownloadSQLLogsRecordsRequest.h similarity index 83% rename from gpdb/include/alibabacloud/gpdb/model/DescribeSQLLogsRequest.h rename to gpdb/include/alibabacloud/gpdb/model/DownloadSQLLogsRecordsRequest.h index 60dbd8a2e..b2edacd9b 100644 --- a/gpdb/include/alibabacloud/gpdb/model/DescribeSQLLogsRequest.h +++ b/gpdb/include/alibabacloud/gpdb/model/DownloadSQLLogsRecordsRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_GPDB_MODEL_DESCRIBESQLLOGSREQUEST_H_ -#define ALIBABACLOUD_GPDB_MODEL_DESCRIBESQLLOGSREQUEST_H_ +#ifndef ALIBABACLOUD_GPDB_MODEL_DOWNLOADSQLLOGSRECORDSREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_DOWNLOADSQLLOGSRECORDSREQUEST_H_ #include #include @@ -26,10 +26,10 @@ namespace AlibabaCloud { namespace Gpdb { namespace Model { -class ALIBABACLOUD_GPDB_EXPORT DescribeSQLLogsRequest : public RpcServiceRequest { +class ALIBABACLOUD_GPDB_EXPORT DownloadSQLLogsRecordsRequest : public RpcServiceRequest { public: - DescribeSQLLogsRequest(); - ~DescribeSQLLogsRequest(); + DownloadSQLLogsRecordsRequest(); + ~DownloadSQLLogsRecordsRequest(); std::string getStartTime() const; void setStartTime(const std::string &startTime); std::string getQueryKeywords() const; @@ -48,6 +48,8 @@ public: void setPageSize(int pageSize); std::string getDBInstanceId() const; void setDBInstanceId(const std::string &dBInstanceId); + std::string getLang() const; + void setLang(const std::string &lang); std::string getMaxExecuteCost() const; void setMaxExecuteCost(const std::string &maxExecuteCost); std::string getExecuteCost() const; @@ -73,6 +75,7 @@ private: std::string minExecuteCost_; int pageSize_; std::string dBInstanceId_; + std::string lang_; std::string maxExecuteCost_; std::string executeCost_; std::string executeState_; @@ -84,4 +87,4 @@ private: } // namespace Model } // namespace Gpdb } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBESQLLOGSREQUEST_H_ +#endif // !ALIBABACLOUD_GPDB_MODEL_DOWNLOADSQLLOGSRECORDSREQUEST_H_ diff --git a/gpdb/include/alibabacloud/gpdb/model/ModifyDBInstanceConnectionModeResult.h b/gpdb/include/alibabacloud/gpdb/model/DownloadSQLLogsRecordsResult.h similarity index 66% rename from gpdb/include/alibabacloud/gpdb/model/ModifyDBInstanceConnectionModeResult.h rename to gpdb/include/alibabacloud/gpdb/model/DownloadSQLLogsRecordsResult.h index 6f8618267..8e618f4ba 100644 --- a/gpdb/include/alibabacloud/gpdb/model/ModifyDBInstanceConnectionModeResult.h +++ b/gpdb/include/alibabacloud/gpdb/model/DownloadSQLLogsRecordsResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_GPDB_MODEL_MODIFYDBINSTANCECONNECTIONMODERESULT_H_ -#define ALIBABACLOUD_GPDB_MODEL_MODIFYDBINSTANCECONNECTIONMODERESULT_H_ +#ifndef ALIBABACLOUD_GPDB_MODEL_DOWNLOADSQLLOGSRECORDSRESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_DOWNLOADSQLLOGSRECORDSRESULT_H_ #include #include @@ -29,21 +29,23 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_GPDB_EXPORT ModifyDBInstanceConnectionModeResult : public ServiceResult + class ALIBABACLOUD_GPDB_EXPORT DownloadSQLLogsRecordsResult : public ServiceResult { public: - ModifyDBInstanceConnectionModeResult(); - explicit ModifyDBInstanceConnectionModeResult(const std::string &payload); - ~ModifyDBInstanceConnectionModeResult(); + DownloadSQLLogsRecordsResult(); + explicit DownloadSQLLogsRecordsResult(const std::string &payload); + ~DownloadSQLLogsRecordsResult(); + long getDownloadId()const; protected: void parse(const std::string &payload); private: + long downloadId_; }; } } } -#endif // !ALIBABACLOUD_GPDB_MODEL_MODIFYDBINSTANCECONNECTIONMODERESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_GPDB_MODEL_DOWNLOADSQLLOGSRECORDSRESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/GrantCollectionRequest.h b/gpdb/include/alibabacloud/gpdb/model/GrantCollectionRequest.h new file mode 100644 index 000000000..5b94f8f6a --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/GrantCollectionRequest.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_GPDB_MODEL_GRANTCOLLECTIONREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_GRANTCOLLECTIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Gpdb { +namespace Model { +class ALIBABACLOUD_GPDB_EXPORT GrantCollectionRequest : public RpcServiceRequest { +public: + GrantCollectionRequest(); + ~GrantCollectionRequest(); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getGrantType() const; + void setGrantType(const std::string &grantType); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getManagerAccount() const; + void setManagerAccount(const std::string &managerAccount); + std::string getDBInstanceId() const; + void setDBInstanceId(const std::string &dBInstanceId); + std::string getManagerAccountPassword() const; + void setManagerAccountPassword(const std::string &managerAccountPassword); + std::string getCollection() const; + void setCollection(const std::string &collection); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getGrantToNamespace() const; + void setGrantToNamespace(const std::string &grantToNamespace); + std::string get_Namespace() const; + void set_Namespace(const std::string &_namespace); + +private: + std::string accessKeyId_; + std::string grantType_; + std::string regionId_; + std::string managerAccount_; + std::string dBInstanceId_; + std::string managerAccountPassword_; + std::string collection_; + long ownerId_; + std::string grantToNamespace_; + std::string _namespace_; +}; +} // namespace Model +} // namespace Gpdb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GPDB_MODEL_GRANTCOLLECTIONREQUEST_H_ diff --git a/gpdb/include/alibabacloud/gpdb/model/GrantCollectionResult.h b/gpdb/include/alibabacloud/gpdb/model/GrantCollectionResult.h new file mode 100644 index 000000000..beea3f8a3 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/GrantCollectionResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GPDB_MODEL_GRANTCOLLECTIONRESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_GRANTCOLLECTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT GrantCollectionResult : public ServiceResult + { + public: + + + GrantCollectionResult(); + explicit GrantCollectionResult(const std::string &payload); + ~GrantCollectionResult(); + std::string getStatus()const; + std::string getMessage()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + std::string message_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_GRANTCOLLECTIONRESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/InitVectorDatabaseRequest.h b/gpdb/include/alibabacloud/gpdb/model/InitVectorDatabaseRequest.h new file mode 100644 index 000000000..ed8da523e --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/InitVectorDatabaseRequest.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_GPDB_MODEL_INITVECTORDATABASEREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_INITVECTORDATABASEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Gpdb { +namespace Model { +class ALIBABACLOUD_GPDB_EXPORT InitVectorDatabaseRequest : public RpcServiceRequest { +public: + InitVectorDatabaseRequest(); + ~InitVectorDatabaseRequest(); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getManagerAccount() const; + void setManagerAccount(const std::string &managerAccount); + std::string getDBInstanceId() const; + void setDBInstanceId(const std::string &dBInstanceId); + std::string getManagerAccountPassword() const; + void setManagerAccountPassword(const std::string &managerAccountPassword); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + std::string accessKeyId_; + std::string regionId_; + std::string managerAccount_; + std::string dBInstanceId_; + std::string managerAccountPassword_; + long ownerId_; +}; +} // namespace Model +} // namespace Gpdb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GPDB_MODEL_INITVECTORDATABASEREQUEST_H_ diff --git a/gpdb/include/alibabacloud/gpdb/model/InitVectorDatabaseResult.h b/gpdb/include/alibabacloud/gpdb/model/InitVectorDatabaseResult.h new file mode 100644 index 000000000..7ac4d4433 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/InitVectorDatabaseResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GPDB_MODEL_INITVECTORDATABASERESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_INITVECTORDATABASERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT InitVectorDatabaseResult : public ServiceResult + { + public: + + + InitVectorDatabaseResult(); + explicit InitVectorDatabaseResult(const std::string &payload); + ~InitVectorDatabaseResult(); + std::string getStatus()const; + std::string getMessage()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + std::string message_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_INITVECTORDATABASERESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/ListCollectionsRequest.h b/gpdb/include/alibabacloud/gpdb/model/ListCollectionsRequest.h new file mode 100644 index 000000000..67701ad88 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/ListCollectionsRequest.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_GPDB_MODEL_LISTCOLLECTIONSREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_LISTCOLLECTIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Gpdb { +namespace Model { +class ALIBABACLOUD_GPDB_EXPORT ListCollectionsRequest : public RpcServiceRequest { +public: + ListCollectionsRequest(); + ~ListCollectionsRequest(); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getDBInstanceId() const; + void setDBInstanceId(const std::string &dBInstanceId); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getNamespacePassword() const; + void setNamespacePassword(const std::string &namespacePassword); + std::string get_Namespace() const; + void set_Namespace(const std::string &_namespace); + +private: + std::string accessKeyId_; + std::string regionId_; + std::string dBInstanceId_; + long ownerId_; + std::string namespacePassword_; + std::string _namespace_; +}; +} // namespace Model +} // namespace Gpdb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GPDB_MODEL_LISTCOLLECTIONSREQUEST_H_ diff --git a/gpdb/include/alibabacloud/gpdb/model/ListCollectionsResult.h b/gpdb/include/alibabacloud/gpdb/model/ListCollectionsResult.h new file mode 100644 index 000000000..5b7a49a59 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/ListCollectionsResult.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_GPDB_MODEL_LISTCOLLECTIONSRESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_LISTCOLLECTIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT ListCollectionsResult : public ServiceResult + { + public: + + + ListCollectionsResult(); + explicit ListCollectionsResult(const std::string &payload); + ~ListCollectionsResult(); + std::string getStatus()const; + std::string getMessage()const; + std::string getDBInstanceId()const; + std::string get_Namespace()const; + int getCount()const; + std::string getRegionId()const; + std::vector getCollections()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + std::string message_; + std::string dBInstanceId_; + std::string _namespace_; + int count_; + std::string regionId_; + std::vector collections_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_LISTCOLLECTIONSRESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/ListNamespacesRequest.h b/gpdb/include/alibabacloud/gpdb/model/ListNamespacesRequest.h new file mode 100644 index 000000000..593cf2d5e --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/ListNamespacesRequest.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_GPDB_MODEL_LISTNAMESPACESREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_LISTNAMESPACESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Gpdb { +namespace Model { +class ALIBABACLOUD_GPDB_EXPORT ListNamespacesRequest : public RpcServiceRequest { +public: + ListNamespacesRequest(); + ~ListNamespacesRequest(); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getManagerAccount() const; + void setManagerAccount(const std::string &managerAccount); + std::string getDBInstanceId() const; + void setDBInstanceId(const std::string &dBInstanceId); + std::string getManagerAccountPassword() const; + void setManagerAccountPassword(const std::string &managerAccountPassword); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + std::string accessKeyId_; + std::string regionId_; + std::string managerAccount_; + std::string dBInstanceId_; + std::string managerAccountPassword_; + long ownerId_; +}; +} // namespace Model +} // namespace Gpdb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GPDB_MODEL_LISTNAMESPACESREQUEST_H_ diff --git a/gpdb/include/alibabacloud/gpdb/model/ListNamespacesResult.h b/gpdb/include/alibabacloud/gpdb/model/ListNamespacesResult.h new file mode 100644 index 000000000..1c17439b8 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/ListNamespacesResult.h @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GPDB_MODEL_LISTNAMESPACESRESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_LISTNAMESPACESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT ListNamespacesResult : public ServiceResult + { + public: + + + ListNamespacesResult(); + explicit ListNamespacesResult(const std::string &payload); + ~ListNamespacesResult(); + std::string getStatus()const; + std::vector getNamespaces()const; + std::string getMessage()const; + std::string getDBInstanceId()const; + int getCount()const; + std::string getRegionId()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + std::vector namespaces_; + std::string message_; + std::string dBInstanceId_; + int count_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_LISTNAMESPACESRESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/ModifyDBInstanceConfigRequest.h b/gpdb/include/alibabacloud/gpdb/model/ModifyDBInstanceConfigRequest.h new file mode 100644 index 000000000..eef01cce7 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/ModifyDBInstanceConfigRequest.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_GPDB_MODEL_MODIFYDBINSTANCECONFIGREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_MODIFYDBINSTANCECONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Gpdb { +namespace Model { +class ALIBABACLOUD_GPDB_EXPORT ModifyDBInstanceConfigRequest : public RpcServiceRequest { +public: + ModifyDBInstanceConfigRequest(); + ~ModifyDBInstanceConfigRequest(); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getDBInstanceId() const; + void setDBInstanceId(const std::string &dBInstanceId); + std::string getDBInstanceDescription() const; + void setDBInstanceDescription(const std::string &dBInstanceDescription); + int getServerlessResource() const; + void setServerlessResource(int serverlessResource); + int getIdleTime() const; + void setIdleTime(int idleTime); + +private: + std::string accessKeyId_; + std::string resourceGroupId_; + std::string dBInstanceId_; + std::string dBInstanceDescription_; + int serverlessResource_; + int idleTime_; +}; +} // namespace Model +} // namespace Gpdb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GPDB_MODEL_MODIFYDBINSTANCECONFIGREQUEST_H_ diff --git a/gpdb/include/alibabacloud/gpdb/model/ModifyDBInstanceConfigResult.h b/gpdb/include/alibabacloud/gpdb/model/ModifyDBInstanceConfigResult.h new file mode 100644 index 000000000..89a3fad67 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/ModifyDBInstanceConfigResult.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_GPDB_MODEL_MODIFYDBINSTANCECONFIGRESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_MODIFYDBINSTANCECONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT ModifyDBInstanceConfigResult : public ServiceResult + { + public: + + + ModifyDBInstanceConfigResult(); + explicit ModifyDBInstanceConfigResult(const std::string &payload); + ~ModifyDBInstanceConfigResult(); + bool getStatus()const; + std::string getErrorMessage()const; + std::string getDbInstanceId()const; + + protected: + void parse(const std::string &payload); + private: + bool status_; + std::string errorMessage_; + std::string dbInstanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_MODIFYDBINSTANCECONFIGRESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/ModifyDBInstanceConnectionModeRequest.h b/gpdb/include/alibabacloud/gpdb/model/ModifyDBInstanceConnectionModeRequest.h deleted file mode 100644 index 6416d9245..000000000 --- a/gpdb/include/alibabacloud/gpdb/model/ModifyDBInstanceConnectionModeRequest.h +++ /dev/null @@ -1,48 +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_GPDB_MODEL_MODIFYDBINSTANCECONNECTIONMODEREQUEST_H_ -#define ALIBABACLOUD_GPDB_MODEL_MODIFYDBINSTANCECONNECTIONMODEREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Gpdb { -namespace Model { -class ALIBABACLOUD_GPDB_EXPORT ModifyDBInstanceConnectionModeRequest : public RpcServiceRequest { -public: - ModifyDBInstanceConnectionModeRequest(); - ~ModifyDBInstanceConnectionModeRequest(); - std::string getConnectionMode() const; - void setConnectionMode(const std::string &connectionMode); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); - std::string getDBInstanceId() const; - void setDBInstanceId(const std::string &dBInstanceId); - -private: - std::string connectionMode_; - std::string accessKeyId_; - std::string dBInstanceId_; -}; -} // namespace Model -} // namespace Gpdb -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_GPDB_MODEL_MODIFYDBINSTANCECONNECTIONMODEREQUEST_H_ diff --git a/gpdb/include/alibabacloud/gpdb/model/ModifyDBInstanceDescriptionRequest.h b/gpdb/include/alibabacloud/gpdb/model/ModifyDBInstanceDescriptionRequest.h index ae54ef65f..3c8809682 100644 --- a/gpdb/include/alibabacloud/gpdb/model/ModifyDBInstanceDescriptionRequest.h +++ b/gpdb/include/alibabacloud/gpdb/model/ModifyDBInstanceDescriptionRequest.h @@ -32,6 +32,8 @@ public: ~ModifyDBInstanceDescriptionRequest(); std::string getAccessKeyId() const; void setAccessKeyId(const std::string &accessKeyId); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); std::string getDBInstanceId() const; void setDBInstanceId(const std::string &dBInstanceId); std::string getDBInstanceDescription() const; @@ -39,6 +41,7 @@ public: private: std::string accessKeyId_; + std::string resourceGroupId_; std::string dBInstanceId_; std::string dBInstanceDescription_; }; diff --git a/gpdb/include/alibabacloud/gpdb/model/ModifyDBInstanceMaintainTimeRequest.h b/gpdb/include/alibabacloud/gpdb/model/ModifyDBInstanceMaintainTimeRequest.h index 700ff8c1f..4a7fc8dd8 100644 --- a/gpdb/include/alibabacloud/gpdb/model/ModifyDBInstanceMaintainTimeRequest.h +++ b/gpdb/include/alibabacloud/gpdb/model/ModifyDBInstanceMaintainTimeRequest.h @@ -34,6 +34,8 @@ public: void setStartTime(const std::string &startTime); std::string getAccessKeyId() const; void setAccessKeyId(const std::string &accessKeyId); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); std::string getDBInstanceId() const; void setDBInstanceId(const std::string &dBInstanceId); std::string getEndTime() const; @@ -42,6 +44,7 @@ public: private: std::string startTime_; std::string accessKeyId_; + std::string resourceGroupId_; std::string dBInstanceId_; std::string endTime_; }; diff --git a/gpdb/include/alibabacloud/gpdb/model/ModifyDBInstanceNetworkTypeRequest.h b/gpdb/include/alibabacloud/gpdb/model/ModifyDBInstanceNetworkTypeRequest.h deleted file mode 100644 index 736ca1d27..000000000 --- a/gpdb/include/alibabacloud/gpdb/model/ModifyDBInstanceNetworkTypeRequest.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_GPDB_MODEL_MODIFYDBINSTANCENETWORKTYPEREQUEST_H_ -#define ALIBABACLOUD_GPDB_MODEL_MODIFYDBINSTANCENETWORKTYPEREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Gpdb { -namespace Model { -class ALIBABACLOUD_GPDB_EXPORT ModifyDBInstanceNetworkTypeRequest : public RpcServiceRequest { -public: - ModifyDBInstanceNetworkTypeRequest(); - ~ModifyDBInstanceNetworkTypeRequest(); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); - std::string getDBInstanceId() const; - void setDBInstanceId(const std::string &dBInstanceId); - std::string getVSwitchId() const; - void setVSwitchId(const std::string &vSwitchId); - std::string getPrivateIpAddress() const; - void setPrivateIpAddress(const std::string &privateIpAddress); - std::string getVPCId() const; - void setVPCId(const std::string &vPCId); - std::string getInstanceNetworkType() const; - void setInstanceNetworkType(const std::string &instanceNetworkType); - -private: - std::string accessKeyId_; - std::string dBInstanceId_; - std::string vSwitchId_; - std::string privateIpAddress_; - std::string vPCId_; - std::string instanceNetworkType_; -}; -} // namespace Model -} // namespace Gpdb -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_GPDB_MODEL_MODIFYDBINSTANCENETWORKTYPEREQUEST_H_ diff --git a/gpdb/include/alibabacloud/gpdb/model/ModifyDBInstanceResourceGroupRequest.h b/gpdb/include/alibabacloud/gpdb/model/ModifyDBInstanceResourceGroupRequest.h new file mode 100644 index 000000000..0f68760b6 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/ModifyDBInstanceResourceGroupRequest.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_GPDB_MODEL_MODIFYDBINSTANCERESOURCEGROUPREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_MODIFYDBINSTANCERESOURCEGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Gpdb { +namespace Model { +class ALIBABACLOUD_GPDB_EXPORT ModifyDBInstanceResourceGroupRequest : public RpcServiceRequest { +public: + ModifyDBInstanceResourceGroupRequest(); + ~ModifyDBInstanceResourceGroupRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getDBInstanceId() const; + void setDBInstanceId(const std::string &dBInstanceId); + 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 getNewResourceGroupId() const; + void setNewResourceGroupId(const std::string &newResourceGroupId); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string resourceGroupId_; + std::string dBInstanceId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string newResourceGroupId_; +}; +} // namespace Model +} // namespace Gpdb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GPDB_MODEL_MODIFYDBINSTANCERESOURCEGROUPREQUEST_H_ diff --git a/gpdb/include/alibabacloud/gpdb/model/ModifyDBInstanceNetworkTypeResult.h b/gpdb/include/alibabacloud/gpdb/model/ModifyDBInstanceResourceGroupResult.h similarity index 66% rename from gpdb/include/alibabacloud/gpdb/model/ModifyDBInstanceNetworkTypeResult.h rename to gpdb/include/alibabacloud/gpdb/model/ModifyDBInstanceResourceGroupResult.h index 9af087fef..9b8f6a0b4 100644 --- a/gpdb/include/alibabacloud/gpdb/model/ModifyDBInstanceNetworkTypeResult.h +++ b/gpdb/include/alibabacloud/gpdb/model/ModifyDBInstanceResourceGroupResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_GPDB_MODEL_MODIFYDBINSTANCENETWORKTYPERESULT_H_ -#define ALIBABACLOUD_GPDB_MODEL_MODIFYDBINSTANCENETWORKTYPERESULT_H_ +#ifndef ALIBABACLOUD_GPDB_MODEL_MODIFYDBINSTANCERESOURCEGROUPRESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_MODIFYDBINSTANCERESOURCEGROUPRESULT_H_ #include #include @@ -29,14 +29,14 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_GPDB_EXPORT ModifyDBInstanceNetworkTypeResult : public ServiceResult + class ALIBABACLOUD_GPDB_EXPORT ModifyDBInstanceResourceGroupResult : public ServiceResult { public: - ModifyDBInstanceNetworkTypeResult(); - explicit ModifyDBInstanceNetworkTypeResult(const std::string &payload); - ~ModifyDBInstanceNetworkTypeResult(); + ModifyDBInstanceResourceGroupResult(); + explicit ModifyDBInstanceResourceGroupResult(const std::string &payload); + ~ModifyDBInstanceResourceGroupResult(); protected: void parse(const std::string &payload); @@ -46,4 +46,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_GPDB_MODEL_MODIFYDBINSTANCENETWORKTYPERESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_GPDB_MODEL_MODIFYDBINSTANCERESOURCEGROUPRESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/ModifySecurityIpsRequest.h b/gpdb/include/alibabacloud/gpdb/model/ModifySecurityIpsRequest.h index 62cdb1f6b..2bed55264 100644 --- a/gpdb/include/alibabacloud/gpdb/model/ModifySecurityIpsRequest.h +++ b/gpdb/include/alibabacloud/gpdb/model/ModifySecurityIpsRequest.h @@ -34,8 +34,12 @@ public: void setDBInstanceIPArrayName(const std::string &dBInstanceIPArrayName); std::string getAccessKeyId() const; void setAccessKeyId(const std::string &accessKeyId); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); std::string getDBInstanceId() const; void setDBInstanceId(const std::string &dBInstanceId); + std::string getModifyMode() const; + void setModifyMode(const std::string &modifyMode); std::string getSecurityIPList() const; void setSecurityIPList(const std::string &securityIPList); std::string getDBInstanceIPArrayAttribute() const; @@ -44,7 +48,9 @@ public: private: std::string dBInstanceIPArrayName_; std::string accessKeyId_; + std::string resourceGroupId_; std::string dBInstanceId_; + std::string modifyMode_; std::string securityIPList_; std::string dBInstanceIPArrayAttribute_; }; diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeSpecificationRequest.h b/gpdb/include/alibabacloud/gpdb/model/ModifyVectorConfigurationRequest.h similarity index 64% rename from gpdb/include/alibabacloud/gpdb/model/DescribeSpecificationRequest.h rename to gpdb/include/alibabacloud/gpdb/model/ModifyVectorConfigurationRequest.h index 714a8aeca..b68918f9e 100644 --- a/gpdb/include/alibabacloud/gpdb/model/DescribeSpecificationRequest.h +++ b/gpdb/include/alibabacloud/gpdb/model/ModifyVectorConfigurationRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_GPDB_MODEL_DESCRIBESPECIFICATIONREQUEST_H_ -#define ALIBABACLOUD_GPDB_MODEL_DESCRIBESPECIFICATIONREQUEST_H_ +#ifndef ALIBABACLOUD_GPDB_MODEL_MODIFYVECTORCONFIGURATIONREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_MODIFYVECTORCONFIGURATIONREQUEST_H_ #include #include @@ -26,32 +26,26 @@ namespace AlibabaCloud { namespace Gpdb { namespace Model { -class ALIBABACLOUD_GPDB_EXPORT DescribeSpecificationRequest : public RpcServiceRequest { +class ALIBABACLOUD_GPDB_EXPORT ModifyVectorConfigurationRequest : public RpcServiceRequest { public: - DescribeSpecificationRequest(); - ~DescribeSpecificationRequest(); - std::string getStorageType() const; - void setStorageType(const std::string &storageType); + ModifyVectorConfigurationRequest(); + ~ModifyVectorConfigurationRequest(); std::string getAccessKeyId() const; void setAccessKeyId(const std::string &accessKeyId); - int getCpuCores() const; - void setCpuCores(int cpuCores); std::string getDBInstanceId() const; void setDBInstanceId(const std::string &dBInstanceId); - int getTotalNodeNum() const; - void setTotalNodeNum(int totalNodeNum); + std::string getVectorConfigurationStatus() const; + void setVectorConfigurationStatus(const std::string &vectorConfigurationStatus); long getOwnerId() const; void setOwnerId(long ownerId); private: - std::string storageType_; std::string accessKeyId_; - int cpuCores_; std::string dBInstanceId_; - int totalNodeNum_; + std::string vectorConfigurationStatus_; long ownerId_; }; } // namespace Model } // namespace Gpdb } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBESPECIFICATIONREQUEST_H_ +#endif // !ALIBABACLOUD_GPDB_MODEL_MODIFYVECTORCONFIGURATIONREQUEST_H_ diff --git a/gpdb/include/alibabacloud/gpdb/model/ModifyVectorConfigurationResult.h b/gpdb/include/alibabacloud/gpdb/model/ModifyVectorConfigurationResult.h new file mode 100644 index 000000000..f26821deb --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/ModifyVectorConfigurationResult.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_GPDB_MODEL_MODIFYVECTORCONFIGURATIONRESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_MODIFYVECTORCONFIGURATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT ModifyVectorConfigurationResult : public ServiceResult + { + public: + + + ModifyVectorConfigurationResult(); + explicit ModifyVectorConfigurationResult(const std::string &payload); + ~ModifyVectorConfigurationResult(); + bool getStatus()const; + std::string getDBInstanceId()const; + std::string getErrorMessage()const; + + protected: + void parse(const std::string &payload); + private: + bool status_; + std::string dBInstanceId_; + std::string errorMessage_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_MODIFYVECTORCONFIGURATIONRESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/PauseInstanceRequest.h b/gpdb/include/alibabacloud/gpdb/model/PauseInstanceRequest.h new file mode 100644 index 000000000..3fbe866b6 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/PauseInstanceRequest.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_GPDB_MODEL_PAUSEINSTANCEREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_PAUSEINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Gpdb { +namespace Model { +class ALIBABACLOUD_GPDB_EXPORT PauseInstanceRequest : public RpcServiceRequest { +public: + PauseInstanceRequest(); + ~PauseInstanceRequest(); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getDBInstanceId() const; + void setDBInstanceId(const std::string &dBInstanceId); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + std::string accessKeyId_; + std::string dBInstanceId_; + long ownerId_; +}; +} // namespace Model +} // namespace Gpdb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GPDB_MODEL_PAUSEINSTANCEREQUEST_H_ diff --git a/gpdb/include/alibabacloud/gpdb/model/PauseInstanceResult.h b/gpdb/include/alibabacloud/gpdb/model/PauseInstanceResult.h new file mode 100644 index 000000000..ef69d8936 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/PauseInstanceResult.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_GPDB_MODEL_PAUSEINSTANCERESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_PAUSEINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT PauseInstanceResult : public ServiceResult + { + public: + + + PauseInstanceResult(); + explicit PauseInstanceResult(const std::string &payload); + ~PauseInstanceResult(); + bool getStatus()const; + std::string getDBInstanceId()const; + std::string getErrorMessage()const; + + protected: + void parse(const std::string &payload); + private: + bool status_; + std::string dBInstanceId_; + std::string errorMessage_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_PAUSEINSTANCERESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/QueryCollectionDataRequest.h b/gpdb/include/alibabacloud/gpdb/model/QueryCollectionDataRequest.h new file mode 100644 index 000000000..e568c85ad --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/QueryCollectionDataRequest.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GPDB_MODEL_QUERYCOLLECTIONDATAREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_QUERYCOLLECTIONDATAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Gpdb { +namespace Model { +class ALIBABACLOUD_GPDB_EXPORT QueryCollectionDataRequest : public RpcServiceRequest { +public: + QueryCollectionDataRequest(); + ~QueryCollectionDataRequest(); + long getTopK() const; + void setTopK(long topK); + std::string getContent() const; + void setContent(const std::string &content); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getDBInstanceId() const; + void setDBInstanceId(const std::string &dBInstanceId); + std::vector getVector() const; + void setVector(const std::vector &vector); + std::string getCollection() const; + void setCollection(const std::string &collection); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getNamespacePassword() const; + void setNamespacePassword(const std::string &namespacePassword); + std::string getFilter() const; + void setFilter(const std::string &filter); + std::string get_Namespace() const; + void set_Namespace(const std::string &_namespace); + +private: + long topK_; + std::string content_; + std::string accessKeyId_; + std::string regionId_; + std::string dBInstanceId_; + std::vector vector_; + std::string collection_; + long ownerId_; + std::string namespacePassword_; + std::string filter_; + std::string _namespace_; +}; +} // namespace Model +} // namespace Gpdb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GPDB_MODEL_QUERYCOLLECTIONDATAREQUEST_H_ diff --git a/gpdb/include/alibabacloud/gpdb/model/QueryCollectionDataResult.h b/gpdb/include/alibabacloud/gpdb/model/QueryCollectionDataResult.h new file mode 100644 index 000000000..93cb25e29 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/QueryCollectionDataResult.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_GPDB_MODEL_QUERYCOLLECTIONDATARESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_QUERYCOLLECTIONDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT QueryCollectionDataResult : public ServiceResult + { + public: + struct Match + { + double similarity; + std::string metadata; + std::vector values; + std::string id; + }; + + + QueryCollectionDataResult(); + explicit QueryCollectionDataResult(const std::string &payload); + ~QueryCollectionDataResult(); + std::string getStatus()const; + std::vector getMatches()const; + std::string getMessage()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + std::vector matches_; + std::string message_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_QUERYCOLLECTIONDATARESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/RebalanceDBInstanceRequest.h b/gpdb/include/alibabacloud/gpdb/model/RebalanceDBInstanceRequest.h new file mode 100644 index 000000000..f018ca25f --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/RebalanceDBInstanceRequest.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_GPDB_MODEL_REBALANCEDBINSTANCEREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_REBALANCEDBINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Gpdb { +namespace Model { +class ALIBABACLOUD_GPDB_EXPORT RebalanceDBInstanceRequest : public RpcServiceRequest { +public: + RebalanceDBInstanceRequest(); + ~RebalanceDBInstanceRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getDBInstanceId() const; + void setDBInstanceId(const std::string &dBInstanceId); + +private: + std::string clientToken_; + std::string accessKeyId_; + std::string dBInstanceId_; +}; +} // namespace Model +} // namespace Gpdb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GPDB_MODEL_REBALANCEDBINSTANCEREQUEST_H_ diff --git a/gpdb/include/alibabacloud/gpdb/model/DeleteDatabaseResult.h b/gpdb/include/alibabacloud/gpdb/model/RebalanceDBInstanceResult.h similarity index 70% rename from gpdb/include/alibabacloud/gpdb/model/DeleteDatabaseResult.h rename to gpdb/include/alibabacloud/gpdb/model/RebalanceDBInstanceResult.h index 2c7661149..277656b65 100644 --- a/gpdb/include/alibabacloud/gpdb/model/DeleteDatabaseResult.h +++ b/gpdb/include/alibabacloud/gpdb/model/RebalanceDBInstanceResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_GPDB_MODEL_DELETEDATABASERESULT_H_ -#define ALIBABACLOUD_GPDB_MODEL_DELETEDATABASERESULT_H_ +#ifndef ALIBABACLOUD_GPDB_MODEL_REBALANCEDBINSTANCERESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_REBALANCEDBINSTANCERESULT_H_ #include #include @@ -29,14 +29,14 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_GPDB_EXPORT DeleteDatabaseResult : public ServiceResult + class ALIBABACLOUD_GPDB_EXPORT RebalanceDBInstanceResult : public ServiceResult { public: - DeleteDatabaseResult(); - explicit DeleteDatabaseResult(const std::string &payload); - ~DeleteDatabaseResult(); + RebalanceDBInstanceResult(); + explicit RebalanceDBInstanceResult(const std::string &payload); + ~RebalanceDBInstanceResult(); protected: void parse(const std::string &payload); @@ -46,4 +46,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_GPDB_MODEL_DELETEDATABASERESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_GPDB_MODEL_REBALANCEDBINSTANCERESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/DeleteDatabaseRequest.h b/gpdb/include/alibabacloud/gpdb/model/ResumeInstanceRequest.h similarity index 73% rename from gpdb/include/alibabacloud/gpdb/model/DeleteDatabaseRequest.h rename to gpdb/include/alibabacloud/gpdb/model/ResumeInstanceRequest.h index 24ee41fc2..91bd829aa 100644 --- a/gpdb/include/alibabacloud/gpdb/model/DeleteDatabaseRequest.h +++ b/gpdb/include/alibabacloud/gpdb/model/ResumeInstanceRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_GPDB_MODEL_DELETEDATABASEREQUEST_H_ -#define ALIBABACLOUD_GPDB_MODEL_DELETEDATABASEREQUEST_H_ +#ifndef ALIBABACLOUD_GPDB_MODEL_RESUMEINSTANCEREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_RESUMEINSTANCEREQUEST_H_ #include #include @@ -26,23 +26,23 @@ namespace AlibabaCloud { namespace Gpdb { namespace Model { -class ALIBABACLOUD_GPDB_EXPORT DeleteDatabaseRequest : public RpcServiceRequest { +class ALIBABACLOUD_GPDB_EXPORT ResumeInstanceRequest : public RpcServiceRequest { public: - DeleteDatabaseRequest(); - ~DeleteDatabaseRequest(); + ResumeInstanceRequest(); + ~ResumeInstanceRequest(); std::string getAccessKeyId() const; void setAccessKeyId(const std::string &accessKeyId); std::string getDBInstanceId() const; void setDBInstanceId(const std::string &dBInstanceId); - std::string getDBName() const; - void setDBName(const std::string &dBName); + long getOwnerId() const; + void setOwnerId(long ownerId); private: std::string accessKeyId_; std::string dBInstanceId_; - std::string dBName_; + long ownerId_; }; } // namespace Model } // namespace Gpdb } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_GPDB_MODEL_DELETEDATABASEREQUEST_H_ +#endif // !ALIBABACLOUD_GPDB_MODEL_RESUMEINSTANCEREQUEST_H_ diff --git a/gpdb/include/alibabacloud/gpdb/model/ResumeInstanceResult.h b/gpdb/include/alibabacloud/gpdb/model/ResumeInstanceResult.h new file mode 100644 index 000000000..ee942c2a3 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/ResumeInstanceResult.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_GPDB_MODEL_RESUMEINSTANCERESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_RESUMEINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT ResumeInstanceResult : public ServiceResult + { + public: + + + ResumeInstanceResult(); + explicit ResumeInstanceResult(const std::string &payload); + ~ResumeInstanceResult(); + bool getStatus()const; + std::string getDBInstanceId()const; + std::string getErrorMessage()const; + + protected: + void parse(const std::string &payload); + private: + bool status_; + std::string dBInstanceId_; + std::string errorMessage_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_RESUMEINSTANCERESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/SetDBInstancePlanStatusRequest.h b/gpdb/include/alibabacloud/gpdb/model/SetDBInstancePlanStatusRequest.h new file mode 100644 index 000000000..15d1a6aa3 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/SetDBInstancePlanStatusRequest.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_GPDB_MODEL_SETDBINSTANCEPLANSTATUSREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_SETDBINSTANCEPLANSTATUSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Gpdb { +namespace Model { +class ALIBABACLOUD_GPDB_EXPORT SetDBInstancePlanStatusRequest : public RpcServiceRequest { +public: + SetDBInstancePlanStatusRequest(); + ~SetDBInstancePlanStatusRequest(); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getPlanStatus() const; + void setPlanStatus(const std::string &planStatus); + std::string getDBInstanceId() const; + void setDBInstanceId(const std::string &dBInstanceId); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getPlanId() const; + void setPlanId(const std::string &planId); + +private: + std::string accessKeyId_; + std::string planStatus_; + std::string dBInstanceId_; + long ownerId_; + std::string planId_; +}; +} // namespace Model +} // namespace Gpdb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GPDB_MODEL_SETDBINSTANCEPLANSTATUSREQUEST_H_ diff --git a/gpdb/include/alibabacloud/gpdb/model/SetDBInstancePlanStatusResult.h b/gpdb/include/alibabacloud/gpdb/model/SetDBInstancePlanStatusResult.h new file mode 100644 index 000000000..4fb7b3496 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/SetDBInstancePlanStatusResult.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_GPDB_MODEL_SETDBINSTANCEPLANSTATUSRESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_SETDBINSTANCEPLANSTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT SetDBInstancePlanStatusResult : public ServiceResult + { + public: + + + SetDBInstancePlanStatusResult(); + explicit SetDBInstancePlanStatusResult(const std::string &payload); + ~SetDBInstancePlanStatusResult(); + std::string getStatus()const; + std::string getPlanId()const; + std::string getErrorMessage()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + std::string planId_; + std::string errorMessage_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_SETDBINSTANCEPLANSTATUSRESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/SetDataShareInstanceRequest.h b/gpdb/include/alibabacloud/gpdb/model/SetDataShareInstanceRequest.h new file mode 100644 index 000000000..494ab5638 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/SetDataShareInstanceRequest.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_GPDB_MODEL_SETDATASHAREINSTANCEREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_SETDATASHAREINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Gpdb { +namespace Model { +class ALIBABACLOUD_GPDB_EXPORT SetDataShareInstanceRequest : public RpcServiceRequest { +public: + SetDataShareInstanceRequest(); + ~SetDataShareInstanceRequest(); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::vector getInstanceList() const; + void setInstanceList(const std::vector &instanceList); + std::string getOperationType() const; + void setOperationType(const std::string &operationType); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + std::string accessKeyId_; + std::string regionId_; + std::vector instanceList_; + std::string operationType_; + long ownerId_; +}; +} // namespace Model +} // namespace Gpdb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GPDB_MODEL_SETDATASHAREINSTANCEREQUEST_H_ diff --git a/gpdb/include/alibabacloud/gpdb/model/SetDataShareInstanceResult.h b/gpdb/include/alibabacloud/gpdb/model/SetDataShareInstanceResult.h new file mode 100644 index 000000000..7a1937579 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/SetDataShareInstanceResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GPDB_MODEL_SETDATASHAREINSTANCERESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_SETDATASHAREINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT SetDataShareInstanceResult : public ServiceResult + { + public: + + + SetDataShareInstanceResult(); + explicit SetDataShareInstanceResult(const std::string &payload); + ~SetDataShareInstanceResult(); + std::string getStatus()const; + std::string getErrMessage()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + std::string errMessage_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_SETDATASHAREINSTANCERESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/UnloadSampleDataRequest.h b/gpdb/include/alibabacloud/gpdb/model/UnloadSampleDataRequest.h new file mode 100644 index 000000000..661e6517e --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/UnloadSampleDataRequest.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_GPDB_MODEL_UNLOADSAMPLEDATAREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_UNLOADSAMPLEDATAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Gpdb { +namespace Model { +class ALIBABACLOUD_GPDB_EXPORT UnloadSampleDataRequest : public RpcServiceRequest { +public: + UnloadSampleDataRequest(); + ~UnloadSampleDataRequest(); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getDBInstanceId() const; + void setDBInstanceId(const std::string &dBInstanceId); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + std::string accessKeyId_; + std::string dBInstanceId_; + long ownerId_; +}; +} // namespace Model +} // namespace Gpdb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GPDB_MODEL_UNLOADSAMPLEDATAREQUEST_H_ diff --git a/gpdb/include/alibabacloud/gpdb/model/UnloadSampleDataResult.h b/gpdb/include/alibabacloud/gpdb/model/UnloadSampleDataResult.h new file mode 100644 index 000000000..136e1da2b --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/UnloadSampleDataResult.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_GPDB_MODEL_UNLOADSAMPLEDATARESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_UNLOADSAMPLEDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT UnloadSampleDataResult : public ServiceResult + { + public: + + + UnloadSampleDataResult(); + explicit UnloadSampleDataResult(const std::string &payload); + ~UnloadSampleDataResult(); + bool getStatus()const; + std::string getDBInstanceId()const; + std::string getErrorMessage()const; + + protected: + void parse(const std::string &payload); + private: + bool status_; + std::string dBInstanceId_; + std::string errorMessage_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_UNLOADSAMPLEDATARESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/UpdateDBInstancePlanRequest.h b/gpdb/include/alibabacloud/gpdb/model/UpdateDBInstancePlanRequest.h new file mode 100644 index 000000000..9c139e82c --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/UpdateDBInstancePlanRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GPDB_MODEL_UPDATEDBINSTANCEPLANREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_UPDATEDBINSTANCEPLANREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Gpdb { +namespace Model { +class ALIBABACLOUD_GPDB_EXPORT UpdateDBInstancePlanRequest : public RpcServiceRequest { +public: + UpdateDBInstancePlanRequest(); + ~UpdateDBInstancePlanRequest(); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getPlanStartDate() const; + void setPlanStartDate(const std::string &planStartDate); + std::string getPlanConfig() const; + void setPlanConfig(const std::string &planConfig); + std::string getPlanName() const; + void setPlanName(const std::string &planName); + std::string getDBInstanceId() const; + void setDBInstanceId(const std::string &dBInstanceId); + std::string getPlanDesc() const; + void setPlanDesc(const std::string &planDesc); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getPlanEndDate() const; + void setPlanEndDate(const std::string &planEndDate); + std::string getPlanId() const; + void setPlanId(const std::string &planId); + +private: + std::string accessKeyId_; + std::string planStartDate_; + std::string planConfig_; + std::string planName_; + std::string dBInstanceId_; + std::string planDesc_; + long ownerId_; + std::string planEndDate_; + std::string planId_; +}; +} // namespace Model +} // namespace Gpdb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GPDB_MODEL_UPDATEDBINSTANCEPLANREQUEST_H_ diff --git a/gpdb/include/alibabacloud/gpdb/model/UpdateDBInstancePlanResult.h b/gpdb/include/alibabacloud/gpdb/model/UpdateDBInstancePlanResult.h new file mode 100644 index 000000000..67201e1b7 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/UpdateDBInstancePlanResult.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_GPDB_MODEL_UPDATEDBINSTANCEPLANRESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_UPDATEDBINSTANCEPLANRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT UpdateDBInstancePlanResult : public ServiceResult + { + public: + + + UpdateDBInstancePlanResult(); + explicit UpdateDBInstancePlanResult(const std::string &payload); + ~UpdateDBInstancePlanResult(); + std::string getStatus()const; + std::string getDBInstanceId()const; + std::string getPlanId()const; + std::string getErrorMessage()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + std::string dBInstanceId_; + std::string planId_; + std::string errorMessage_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_UPDATEDBINSTANCEPLANRESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/UpgradeDBInstanceRequest.h b/gpdb/include/alibabacloud/gpdb/model/UpgradeDBInstanceRequest.h index c6e65a78c..0702f891f 100644 --- a/gpdb/include/alibabacloud/gpdb/model/UpgradeDBInstanceRequest.h +++ b/gpdb/include/alibabacloud/gpdb/model/UpgradeDBInstanceRequest.h @@ -30,8 +30,22 @@ class ALIBABACLOUD_GPDB_EXPORT UpgradeDBInstanceRequest : public RpcServiceReque public: UpgradeDBInstanceRequest(); ~UpgradeDBInstanceRequest(); + std::string getInstanceSpec() const; + void setInstanceSpec(const std::string &instanceSpec); + std::string getStorageSize() const; + void setStorageSize(const std::string &storageSize); + std::string getSegStorageType() const; + void setSegStorageType(const std::string &segStorageType); + std::string getMasterNodeNum() const; + void setMasterNodeNum(const std::string &masterNodeNum); + long getUpgradeType() const; + void setUpgradeType(long upgradeType); std::string getAccessKeyId() const; void setAccessKeyId(const std::string &accessKeyId); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getSegNodeNum() const; + void setSegNodeNum(const std::string &segNodeNum); std::string getRegionId() const; void setRegionId(const std::string ®ionId); std::string getDBInstanceId() const; @@ -40,17 +54,27 @@ public: void setDBInstanceGroupCount(const std::string &dBInstanceGroupCount); long getOwnerId() const; void setOwnerId(long ownerId); + std::string getSegDiskPerformanceLevel() const; + void setSegDiskPerformanceLevel(const std::string &segDiskPerformanceLevel); std::string getDBInstanceClass() const; void setDBInstanceClass(const std::string &dBInstanceClass); std::string getPayType() const; void setPayType(const std::string &payType); private: + std::string instanceSpec_; + std::string storageSize_; + std::string segStorageType_; + std::string masterNodeNum_; + long upgradeType_; std::string accessKeyId_; + std::string resourceGroupId_; + std::string segNodeNum_; std::string regionId_; std::string dBInstanceId_; std::string dBInstanceGroupCount_; long ownerId_; + std::string segDiskPerformanceLevel_; std::string dBInstanceClass_; std::string payType_; }; diff --git a/gpdb/include/alibabacloud/gpdb/model/UpsertCollectionDataRequest.h b/gpdb/include/alibabacloud/gpdb/model/UpsertCollectionDataRequest.h new file mode 100644 index 000000000..a379c7fbd --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/UpsertCollectionDataRequest.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_GPDB_MODEL_UPSERTCOLLECTIONDATAREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_UPSERTCOLLECTIONDATAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Gpdb { +namespace Model { +class ALIBABACLOUD_GPDB_EXPORT UpsertCollectionDataRequest : public RpcServiceRequest { +public: + struct Rows { + std::map metadata; + double double; + std::vector vector; + std::string id; + }; + UpsertCollectionDataRequest(); + ~UpsertCollectionDataRequest(); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getDBInstanceId() const; + void setDBInstanceId(const std::string &dBInstanceId); + std::string getCollection() const; + void setCollection(const std::string &collection); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::vector getRows() const; + void setRows(const std::vector &rows); + std::string getNamespacePassword() const; + void setNamespacePassword(const std::string &namespacePassword); + std::string get_Namespace() const; + void set_Namespace(const std::string &_namespace); + +private: + std::string accessKeyId_; + std::string regionId_; + std::string dBInstanceId_; + std::string collection_; + long ownerId_; + std::vector rows_; + std::string namespacePassword_; + std::string _namespace_; +}; +} // namespace Model +} // namespace Gpdb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_GPDB_MODEL_UPSERTCOLLECTIONDATAREQUEST_H_ diff --git a/gpdb/include/alibabacloud/gpdb/model/UpsertCollectionDataResult.h b/gpdb/include/alibabacloud/gpdb/model/UpsertCollectionDataResult.h new file mode 100644 index 000000000..f04107fa2 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/UpsertCollectionDataResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GPDB_MODEL_UPSERTCOLLECTIONDATARESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_UPSERTCOLLECTIONDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT UpsertCollectionDataResult : public ServiceResult + { + public: + + + UpsertCollectionDataResult(); + explicit UpsertCollectionDataResult(const std::string &payload); + ~UpsertCollectionDataResult(); + std::string getStatus()const; + std::string getMessage()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + std::string message_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_UPSERTCOLLECTIONDATARESULT_H_ \ No newline at end of file diff --git a/gpdb/src/GpdbClient.cc b/gpdb/src/GpdbClient.cc index 70b39aff9..4860c87a3 100644 --- a/gpdb/src/GpdbClient.cc +++ b/gpdb/src/GpdbClient.cc @@ -51,42 +51,6 @@ GpdbClient::GpdbClient(const std::string & accessKeyId, const std::string & acce GpdbClient::~GpdbClient() {} -GpdbClient::AddBuDBInstanceRelationOutcome GpdbClient::addBuDBInstanceRelation(const AddBuDBInstanceRelationRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return AddBuDBInstanceRelationOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return AddBuDBInstanceRelationOutcome(AddBuDBInstanceRelationResult(outcome.result())); - else - return AddBuDBInstanceRelationOutcome(outcome.error()); -} - -void GpdbClient::addBuDBInstanceRelationAsync(const AddBuDBInstanceRelationRequest& request, const AddBuDBInstanceRelationAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, addBuDBInstanceRelation(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -GpdbClient::AddBuDBInstanceRelationOutcomeCallable GpdbClient::addBuDBInstanceRelationCallable(const AddBuDBInstanceRelationRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->addBuDBInstanceRelation(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - GpdbClient::AllocateInstancePublicConnectionOutcome GpdbClient::allocateInstancePublicConnection(const AllocateInstancePublicConnectionRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -195,6 +159,42 @@ GpdbClient::CreateAccountOutcomeCallable GpdbClient::createAccountCallable(const return task->get_future(); } +GpdbClient::CreateCollectionOutcome GpdbClient::createCollection(const CreateCollectionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateCollectionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateCollectionOutcome(CreateCollectionResult(outcome.result())); + else + return CreateCollectionOutcome(outcome.error()); +} + +void GpdbClient::createCollectionAsync(const CreateCollectionRequest& request, const CreateCollectionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createCollection(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GpdbClient::CreateCollectionOutcomeCallable GpdbClient::createCollectionCallable(const CreateCollectionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createCollection(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + GpdbClient::CreateDBInstanceOutcome GpdbClient::createDBInstance(const CreateDBInstanceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -231,36 +231,108 @@ GpdbClient::CreateDBInstanceOutcomeCallable GpdbClient::createDBInstanceCallable return task->get_future(); } -GpdbClient::CreateECSDBInstanceOutcome GpdbClient::createECSDBInstance(const CreateECSDBInstanceRequest &request) const +GpdbClient::CreateDBInstancePlanOutcome GpdbClient::createDBInstancePlan(const CreateDBInstancePlanRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return CreateECSDBInstanceOutcome(endpointOutcome.error()); + return CreateDBInstancePlanOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return CreateECSDBInstanceOutcome(CreateECSDBInstanceResult(outcome.result())); + return CreateDBInstancePlanOutcome(CreateDBInstancePlanResult(outcome.result())); else - return CreateECSDBInstanceOutcome(outcome.error()); + return CreateDBInstancePlanOutcome(outcome.error()); } -void GpdbClient::createECSDBInstanceAsync(const CreateECSDBInstanceRequest& request, const CreateECSDBInstanceAsyncHandler& handler, const std::shared_ptr& context) const +void GpdbClient::createDBInstancePlanAsync(const CreateDBInstancePlanRequest& request, const CreateDBInstancePlanAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, createECSDBInstance(request), context); + handler(this, request, createDBInstancePlan(request), context); }; asyncExecute(new Runnable(fn)); } -GpdbClient::CreateECSDBInstanceOutcomeCallable GpdbClient::createECSDBInstanceCallable(const CreateECSDBInstanceRequest &request) const +GpdbClient::CreateDBInstancePlanOutcomeCallable GpdbClient::createDBInstancePlanCallable(const CreateDBInstancePlanRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->createECSDBInstance(request); + return this->createDBInstancePlan(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GpdbClient::CreateNamespaceOutcome GpdbClient::createNamespace(const CreateNamespaceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateNamespaceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateNamespaceOutcome(CreateNamespaceResult(outcome.result())); + else + return CreateNamespaceOutcome(outcome.error()); +} + +void GpdbClient::createNamespaceAsync(const CreateNamespaceRequest& request, const CreateNamespaceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createNamespace(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GpdbClient::CreateNamespaceOutcomeCallable GpdbClient::createNamespaceCallable(const CreateNamespaceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createNamespace(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GpdbClient::CreateSampleDataOutcome GpdbClient::createSampleData(const CreateSampleDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateSampleDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateSampleDataOutcome(CreateSampleDataResult(outcome.result())); + else + return CreateSampleDataOutcome(outcome.error()); +} + +void GpdbClient::createSampleDataAsync(const CreateSampleDataRequest& request, const CreateSampleDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createSampleData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GpdbClient::CreateSampleDataOutcomeCallable GpdbClient::createSampleDataCallable(const CreateSampleDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createSampleData(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -303,6 +375,114 @@ GpdbClient::CreateServiceLinkedRoleOutcomeCallable GpdbClient::createServiceLink return task->get_future(); } +GpdbClient::CreateVectorIndexOutcome GpdbClient::createVectorIndex(const CreateVectorIndexRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateVectorIndexOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateVectorIndexOutcome(CreateVectorIndexResult(outcome.result())); + else + return CreateVectorIndexOutcome(outcome.error()); +} + +void GpdbClient::createVectorIndexAsync(const CreateVectorIndexRequest& request, const CreateVectorIndexAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createVectorIndex(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GpdbClient::CreateVectorIndexOutcomeCallable GpdbClient::createVectorIndexCallable(const CreateVectorIndexRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createVectorIndex(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GpdbClient::DeleteCollectionOutcome GpdbClient::deleteCollection(const DeleteCollectionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteCollectionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteCollectionOutcome(DeleteCollectionResult(outcome.result())); + else + return DeleteCollectionOutcome(outcome.error()); +} + +void GpdbClient::deleteCollectionAsync(const DeleteCollectionRequest& request, const DeleteCollectionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteCollection(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GpdbClient::DeleteCollectionOutcomeCallable GpdbClient::deleteCollectionCallable(const DeleteCollectionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteCollection(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GpdbClient::DeleteCollectionDataOutcome GpdbClient::deleteCollectionData(const DeleteCollectionDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteCollectionDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteCollectionDataOutcome(DeleteCollectionDataResult(outcome.result())); + else + return DeleteCollectionDataOutcome(outcome.error()); +} + +void GpdbClient::deleteCollectionDataAsync(const DeleteCollectionDataRequest& request, const DeleteCollectionDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteCollectionData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GpdbClient::DeleteCollectionDataOutcomeCallable GpdbClient::deleteCollectionDataCallable(const DeleteCollectionDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteCollectionData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + GpdbClient::DeleteDBInstanceOutcome GpdbClient::deleteDBInstance(const DeleteDBInstanceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -339,36 +519,108 @@ GpdbClient::DeleteDBInstanceOutcomeCallable GpdbClient::deleteDBInstanceCallable return task->get_future(); } -GpdbClient::DeleteDatabaseOutcome GpdbClient::deleteDatabase(const DeleteDatabaseRequest &request) const +GpdbClient::DeleteDBInstancePlanOutcome GpdbClient::deleteDBInstancePlan(const DeleteDBInstancePlanRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DeleteDatabaseOutcome(endpointOutcome.error()); + return DeleteDBInstancePlanOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DeleteDatabaseOutcome(DeleteDatabaseResult(outcome.result())); + return DeleteDBInstancePlanOutcome(DeleteDBInstancePlanResult(outcome.result())); else - return DeleteDatabaseOutcome(outcome.error()); + return DeleteDBInstancePlanOutcome(outcome.error()); } -void GpdbClient::deleteDatabaseAsync(const DeleteDatabaseRequest& request, const DeleteDatabaseAsyncHandler& handler, const std::shared_ptr& context) const +void GpdbClient::deleteDBInstancePlanAsync(const DeleteDBInstancePlanRequest& request, const DeleteDBInstancePlanAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, deleteDatabase(request), context); + handler(this, request, deleteDBInstancePlan(request), context); }; asyncExecute(new Runnable(fn)); } -GpdbClient::DeleteDatabaseOutcomeCallable GpdbClient::deleteDatabaseCallable(const DeleteDatabaseRequest &request) const +GpdbClient::DeleteDBInstancePlanOutcomeCallable GpdbClient::deleteDBInstancePlanCallable(const DeleteDBInstancePlanRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->deleteDatabase(request); + return this->deleteDBInstancePlan(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GpdbClient::DeleteNamespaceOutcome GpdbClient::deleteNamespace(const DeleteNamespaceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteNamespaceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteNamespaceOutcome(DeleteNamespaceResult(outcome.result())); + else + return DeleteNamespaceOutcome(outcome.error()); +} + +void GpdbClient::deleteNamespaceAsync(const DeleteNamespaceRequest& request, const DeleteNamespaceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteNamespace(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GpdbClient::DeleteNamespaceOutcomeCallable GpdbClient::deleteNamespaceCallable(const DeleteNamespaceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteNamespace(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GpdbClient::DeleteVectorIndexOutcome GpdbClient::deleteVectorIndex(const DeleteVectorIndexRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteVectorIndexOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteVectorIndexOutcome(DeleteVectorIndexResult(outcome.result())); + else + return DeleteVectorIndexOutcome(outcome.error()); +} + +void GpdbClient::deleteVectorIndexAsync(const DeleteVectorIndexRequest& request, const DeleteVectorIndexAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteVectorIndex(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GpdbClient::DeleteVectorIndexOutcomeCallable GpdbClient::deleteVectorIndexCallable(const DeleteVectorIndexRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteVectorIndex(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -483,6 +735,78 @@ GpdbClient::DescribeBackupPolicyOutcomeCallable GpdbClient::describeBackupPolicy return task->get_future(); } +GpdbClient::DescribeCollectionOutcome GpdbClient::describeCollection(const DescribeCollectionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeCollectionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeCollectionOutcome(DescribeCollectionResult(outcome.result())); + else + return DescribeCollectionOutcome(outcome.error()); +} + +void GpdbClient::describeCollectionAsync(const DescribeCollectionRequest& request, const DescribeCollectionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeCollection(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GpdbClient::DescribeCollectionOutcomeCallable GpdbClient::describeCollectionCallable(const DescribeCollectionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeCollection(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GpdbClient::DescribeDBClusterNodeOutcome GpdbClient::describeDBClusterNode(const DescribeDBClusterNodeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDBClusterNodeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDBClusterNodeOutcome(DescribeDBClusterNodeResult(outcome.result())); + else + return DescribeDBClusterNodeOutcome(outcome.error()); +} + +void GpdbClient::describeDBClusterNodeAsync(const DescribeDBClusterNodeRequest& request, const DescribeDBClusterNodeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDBClusterNode(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GpdbClient::DescribeDBClusterNodeOutcomeCallable GpdbClient::describeDBClusterNodeCallable(const DescribeDBClusterNodeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDBClusterNode(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + GpdbClient::DescribeDBClusterPerformanceOutcome GpdbClient::describeDBClusterPerformance(const DescribeDBClusterPerformanceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -555,6 +879,150 @@ GpdbClient::DescribeDBInstanceAttributeOutcomeCallable GpdbClient::describeDBIns return task->get_future(); } +GpdbClient::DescribeDBInstanceDataBloatOutcome GpdbClient::describeDBInstanceDataBloat(const DescribeDBInstanceDataBloatRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDBInstanceDataBloatOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDBInstanceDataBloatOutcome(DescribeDBInstanceDataBloatResult(outcome.result())); + else + return DescribeDBInstanceDataBloatOutcome(outcome.error()); +} + +void GpdbClient::describeDBInstanceDataBloatAsync(const DescribeDBInstanceDataBloatRequest& request, const DescribeDBInstanceDataBloatAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDBInstanceDataBloat(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GpdbClient::DescribeDBInstanceDataBloatOutcomeCallable GpdbClient::describeDBInstanceDataBloatCallable(const DescribeDBInstanceDataBloatRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDBInstanceDataBloat(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GpdbClient::DescribeDBInstanceDataSkewOutcome GpdbClient::describeDBInstanceDataSkew(const DescribeDBInstanceDataSkewRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDBInstanceDataSkewOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDBInstanceDataSkewOutcome(DescribeDBInstanceDataSkewResult(outcome.result())); + else + return DescribeDBInstanceDataSkewOutcome(outcome.error()); +} + +void GpdbClient::describeDBInstanceDataSkewAsync(const DescribeDBInstanceDataSkewRequest& request, const DescribeDBInstanceDataSkewAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDBInstanceDataSkew(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GpdbClient::DescribeDBInstanceDataSkewOutcomeCallable GpdbClient::describeDBInstanceDataSkewCallable(const DescribeDBInstanceDataSkewRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDBInstanceDataSkew(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GpdbClient::DescribeDBInstanceDiagnosisSummaryOutcome GpdbClient::describeDBInstanceDiagnosisSummary(const DescribeDBInstanceDiagnosisSummaryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDBInstanceDiagnosisSummaryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDBInstanceDiagnosisSummaryOutcome(DescribeDBInstanceDiagnosisSummaryResult(outcome.result())); + else + return DescribeDBInstanceDiagnosisSummaryOutcome(outcome.error()); +} + +void GpdbClient::describeDBInstanceDiagnosisSummaryAsync(const DescribeDBInstanceDiagnosisSummaryRequest& request, const DescribeDBInstanceDiagnosisSummaryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDBInstanceDiagnosisSummary(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GpdbClient::DescribeDBInstanceDiagnosisSummaryOutcomeCallable GpdbClient::describeDBInstanceDiagnosisSummaryCallable(const DescribeDBInstanceDiagnosisSummaryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDBInstanceDiagnosisSummary(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GpdbClient::DescribeDBInstanceErrorLogOutcome GpdbClient::describeDBInstanceErrorLog(const DescribeDBInstanceErrorLogRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDBInstanceErrorLogOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDBInstanceErrorLogOutcome(DescribeDBInstanceErrorLogResult(outcome.result())); + else + return DescribeDBInstanceErrorLogOutcome(outcome.error()); +} + +void GpdbClient::describeDBInstanceErrorLogAsync(const DescribeDBInstanceErrorLogRequest& request, const DescribeDBInstanceErrorLogAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDBInstanceErrorLog(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GpdbClient::DescribeDBInstanceErrorLogOutcomeCallable GpdbClient::describeDBInstanceErrorLogCallable(const DescribeDBInstanceErrorLogRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDBInstanceErrorLog(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + GpdbClient::DescribeDBInstanceIPArrayListOutcome GpdbClient::describeDBInstanceIPArrayList(const DescribeDBInstanceIPArrayListRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -591,6 +1059,42 @@ GpdbClient::DescribeDBInstanceIPArrayListOutcomeCallable GpdbClient::describeDBI return task->get_future(); } +GpdbClient::DescribeDBInstanceIndexUsageOutcome GpdbClient::describeDBInstanceIndexUsage(const DescribeDBInstanceIndexUsageRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDBInstanceIndexUsageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDBInstanceIndexUsageOutcome(DescribeDBInstanceIndexUsageResult(outcome.result())); + else + return DescribeDBInstanceIndexUsageOutcome(outcome.error()); +} + +void GpdbClient::describeDBInstanceIndexUsageAsync(const DescribeDBInstanceIndexUsageRequest& request, const DescribeDBInstanceIndexUsageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDBInstanceIndexUsage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GpdbClient::DescribeDBInstanceIndexUsageOutcomeCallable GpdbClient::describeDBInstanceIndexUsageCallable(const DescribeDBInstanceIndexUsageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDBInstanceIndexUsage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + GpdbClient::DescribeDBInstanceNetInfoOutcome GpdbClient::describeDBInstanceNetInfo(const DescribeDBInstanceNetInfoRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -627,42 +1131,6 @@ GpdbClient::DescribeDBInstanceNetInfoOutcomeCallable GpdbClient::describeDBInsta return task->get_future(); } -GpdbClient::DescribeDBInstanceOnECSAttributeOutcome GpdbClient::describeDBInstanceOnECSAttribute(const DescribeDBInstanceOnECSAttributeRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeDBInstanceOnECSAttributeOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeDBInstanceOnECSAttributeOutcome(DescribeDBInstanceOnECSAttributeResult(outcome.result())); - else - return DescribeDBInstanceOnECSAttributeOutcome(outcome.error()); -} - -void GpdbClient::describeDBInstanceOnECSAttributeAsync(const DescribeDBInstanceOnECSAttributeRequest& request, const DescribeDBInstanceOnECSAttributeAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeDBInstanceOnECSAttribute(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -GpdbClient::DescribeDBInstanceOnECSAttributeOutcomeCallable GpdbClient::describeDBInstanceOnECSAttributeCallable(const DescribeDBInstanceOnECSAttributeRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeDBInstanceOnECSAttribute(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - GpdbClient::DescribeDBInstancePerformanceOutcome GpdbClient::describeDBInstancePerformance(const DescribeDBInstancePerformanceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -699,36 +1167,36 @@ GpdbClient::DescribeDBInstancePerformanceOutcomeCallable GpdbClient::describeDBI return task->get_future(); } -GpdbClient::DescribeDBInstanceSQLPatternsOutcome GpdbClient::describeDBInstanceSQLPatterns(const DescribeDBInstanceSQLPatternsRequest &request) const +GpdbClient::DescribeDBInstancePlansOutcome GpdbClient::describeDBInstancePlans(const DescribeDBInstancePlansRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribeDBInstanceSQLPatternsOutcome(endpointOutcome.error()); + return DescribeDBInstancePlansOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribeDBInstanceSQLPatternsOutcome(DescribeDBInstanceSQLPatternsResult(outcome.result())); + return DescribeDBInstancePlansOutcome(DescribeDBInstancePlansResult(outcome.result())); else - return DescribeDBInstanceSQLPatternsOutcome(outcome.error()); + return DescribeDBInstancePlansOutcome(outcome.error()); } -void GpdbClient::describeDBInstanceSQLPatternsAsync(const DescribeDBInstanceSQLPatternsRequest& request, const DescribeDBInstanceSQLPatternsAsyncHandler& handler, const std::shared_ptr& context) const +void GpdbClient::describeDBInstancePlansAsync(const DescribeDBInstancePlansRequest& request, const DescribeDBInstancePlansAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describeDBInstanceSQLPatterns(request), context); + handler(this, request, describeDBInstancePlans(request), context); }; asyncExecute(new Runnable(fn)); } -GpdbClient::DescribeDBInstanceSQLPatternsOutcomeCallable GpdbClient::describeDBInstanceSQLPatternsCallable(const DescribeDBInstanceSQLPatternsRequest &request) const +GpdbClient::DescribeDBInstancePlansOutcomeCallable GpdbClient::describeDBInstancePlansCallable(const DescribeDBInstancePlansRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->describeDBInstanceSQLPatterns(request); + return this->describeDBInstancePlans(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -843,6 +1311,366 @@ GpdbClient::DescribeDataBackupsOutcomeCallable GpdbClient::describeDataBackupsCa return task->get_future(); } +GpdbClient::DescribeDataReDistributeInfoOutcome GpdbClient::describeDataReDistributeInfo(const DescribeDataReDistributeInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDataReDistributeInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDataReDistributeInfoOutcome(DescribeDataReDistributeInfoResult(outcome.result())); + else + return DescribeDataReDistributeInfoOutcome(outcome.error()); +} + +void GpdbClient::describeDataReDistributeInfoAsync(const DescribeDataReDistributeInfoRequest& request, const DescribeDataReDistributeInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDataReDistributeInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GpdbClient::DescribeDataReDistributeInfoOutcomeCallable GpdbClient::describeDataReDistributeInfoCallable(const DescribeDataReDistributeInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDataReDistributeInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GpdbClient::DescribeDataShareInstancesOutcome GpdbClient::describeDataShareInstances(const DescribeDataShareInstancesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDataShareInstancesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDataShareInstancesOutcome(DescribeDataShareInstancesResult(outcome.result())); + else + return DescribeDataShareInstancesOutcome(outcome.error()); +} + +void GpdbClient::describeDataShareInstancesAsync(const DescribeDataShareInstancesRequest& request, const DescribeDataShareInstancesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDataShareInstances(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GpdbClient::DescribeDataShareInstancesOutcomeCallable GpdbClient::describeDataShareInstancesCallable(const DescribeDataShareInstancesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDataShareInstances(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GpdbClient::DescribeDataSharePerformanceOutcome GpdbClient::describeDataSharePerformance(const DescribeDataSharePerformanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDataSharePerformanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDataSharePerformanceOutcome(DescribeDataSharePerformanceResult(outcome.result())); + else + return DescribeDataSharePerformanceOutcome(outcome.error()); +} + +void GpdbClient::describeDataSharePerformanceAsync(const DescribeDataSharePerformanceRequest& request, const DescribeDataSharePerformanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDataSharePerformance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GpdbClient::DescribeDataSharePerformanceOutcomeCallable GpdbClient::describeDataSharePerformanceCallable(const DescribeDataSharePerformanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDataSharePerformance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GpdbClient::DescribeDiagnosisDimensionsOutcome GpdbClient::describeDiagnosisDimensions(const DescribeDiagnosisDimensionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDiagnosisDimensionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDiagnosisDimensionsOutcome(DescribeDiagnosisDimensionsResult(outcome.result())); + else + return DescribeDiagnosisDimensionsOutcome(outcome.error()); +} + +void GpdbClient::describeDiagnosisDimensionsAsync(const DescribeDiagnosisDimensionsRequest& request, const DescribeDiagnosisDimensionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDiagnosisDimensions(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GpdbClient::DescribeDiagnosisDimensionsOutcomeCallable GpdbClient::describeDiagnosisDimensionsCallable(const DescribeDiagnosisDimensionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDiagnosisDimensions(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GpdbClient::DescribeDiagnosisMonitorPerformanceOutcome GpdbClient::describeDiagnosisMonitorPerformance(const DescribeDiagnosisMonitorPerformanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDiagnosisMonitorPerformanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDiagnosisMonitorPerformanceOutcome(DescribeDiagnosisMonitorPerformanceResult(outcome.result())); + else + return DescribeDiagnosisMonitorPerformanceOutcome(outcome.error()); +} + +void GpdbClient::describeDiagnosisMonitorPerformanceAsync(const DescribeDiagnosisMonitorPerformanceRequest& request, const DescribeDiagnosisMonitorPerformanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDiagnosisMonitorPerformance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GpdbClient::DescribeDiagnosisMonitorPerformanceOutcomeCallable GpdbClient::describeDiagnosisMonitorPerformanceCallable(const DescribeDiagnosisMonitorPerformanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDiagnosisMonitorPerformance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GpdbClient::DescribeDiagnosisRecordsOutcome GpdbClient::describeDiagnosisRecords(const DescribeDiagnosisRecordsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDiagnosisRecordsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDiagnosisRecordsOutcome(DescribeDiagnosisRecordsResult(outcome.result())); + else + return DescribeDiagnosisRecordsOutcome(outcome.error()); +} + +void GpdbClient::describeDiagnosisRecordsAsync(const DescribeDiagnosisRecordsRequest& request, const DescribeDiagnosisRecordsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDiagnosisRecords(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GpdbClient::DescribeDiagnosisRecordsOutcomeCallable GpdbClient::describeDiagnosisRecordsCallable(const DescribeDiagnosisRecordsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDiagnosisRecords(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GpdbClient::DescribeDiagnosisSQLInfoOutcome GpdbClient::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 GpdbClient::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)); +} + +GpdbClient::DescribeDiagnosisSQLInfoOutcomeCallable GpdbClient::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(); +} + +GpdbClient::DescribeDownloadRecordsOutcome GpdbClient::describeDownloadRecords(const DescribeDownloadRecordsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDownloadRecordsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDownloadRecordsOutcome(DescribeDownloadRecordsResult(outcome.result())); + else + return DescribeDownloadRecordsOutcome(outcome.error()); +} + +void GpdbClient::describeDownloadRecordsAsync(const DescribeDownloadRecordsRequest& request, const DescribeDownloadRecordsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDownloadRecords(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GpdbClient::DescribeDownloadRecordsOutcomeCallable GpdbClient::describeDownloadRecordsCallable(const DescribeDownloadRecordsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDownloadRecords(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GpdbClient::DescribeDownloadSQLLogsOutcome GpdbClient::describeDownloadSQLLogs(const DescribeDownloadSQLLogsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDownloadSQLLogsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDownloadSQLLogsOutcome(DescribeDownloadSQLLogsResult(outcome.result())); + else + return DescribeDownloadSQLLogsOutcome(outcome.error()); +} + +void GpdbClient::describeDownloadSQLLogsAsync(const DescribeDownloadSQLLogsRequest& request, const DescribeDownloadSQLLogsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDownloadSQLLogs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GpdbClient::DescribeDownloadSQLLogsOutcomeCallable GpdbClient::describeDownloadSQLLogsCallable(const DescribeDownloadSQLLogsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDownloadSQLLogs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GpdbClient::DescribeHealthStatusOutcome GpdbClient::describeHealthStatus(const DescribeHealthStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeHealthStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeHealthStatusOutcome(DescribeHealthStatusResult(outcome.result())); + else + return DescribeHealthStatusOutcome(outcome.error()); +} + +void GpdbClient::describeHealthStatusAsync(const DescribeHealthStatusRequest& request, const DescribeHealthStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeHealthStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GpdbClient::DescribeHealthStatusOutcomeCallable GpdbClient::describeHealthStatusCallable(const DescribeHealthStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeHealthStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + GpdbClient::DescribeLogBackupsOutcome GpdbClient::describeLogBackups(const DescribeLogBackupsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -915,6 +1743,42 @@ GpdbClient::DescribeModifyParameterLogOutcomeCallable GpdbClient::describeModify return task->get_future(); } +GpdbClient::DescribeNamespaceOutcome GpdbClient::describeNamespace(const DescribeNamespaceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeNamespaceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeNamespaceOutcome(DescribeNamespaceResult(outcome.result())); + else + return DescribeNamespaceOutcome(outcome.error()); +} + +void GpdbClient::describeNamespaceAsync(const DescribeNamespaceRequest& request, const DescribeNamespaceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeNamespace(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GpdbClient::DescribeNamespaceOutcomeCallable GpdbClient::describeNamespaceCallable(const DescribeNamespaceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeNamespace(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + GpdbClient::DescribeParametersOutcome GpdbClient::describeParameters(const DescribeParametersRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1059,114 +1923,6 @@ GpdbClient::DescribeRegionsOutcomeCallable GpdbClient::describeRegionsCallable(c return task->get_future(); } -GpdbClient::DescribeResourceUsageOutcome GpdbClient::describeResourceUsage(const DescribeResourceUsageRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeResourceUsageOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeResourceUsageOutcome(DescribeResourceUsageResult(outcome.result())); - else - return DescribeResourceUsageOutcome(outcome.error()); -} - -void GpdbClient::describeResourceUsageAsync(const DescribeResourceUsageRequest& request, const DescribeResourceUsageAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeResourceUsage(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -GpdbClient::DescribeResourceUsageOutcomeCallable GpdbClient::describeResourceUsageCallable(const DescribeResourceUsageRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeResourceUsage(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -GpdbClient::DescribeSQLCollectorPolicyOutcome GpdbClient::describeSQLCollectorPolicy(const DescribeSQLCollectorPolicyRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeSQLCollectorPolicyOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeSQLCollectorPolicyOutcome(DescribeSQLCollectorPolicyResult(outcome.result())); - else - return DescribeSQLCollectorPolicyOutcome(outcome.error()); -} - -void GpdbClient::describeSQLCollectorPolicyAsync(const DescribeSQLCollectorPolicyRequest& request, const DescribeSQLCollectorPolicyAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeSQLCollectorPolicy(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -GpdbClient::DescribeSQLCollectorPolicyOutcomeCallable GpdbClient::describeSQLCollectorPolicyCallable(const DescribeSQLCollectorPolicyRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeSQLCollectorPolicy(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -GpdbClient::DescribeSQLLogByQueryIdOutcome GpdbClient::describeSQLLogByQueryId(const DescribeSQLLogByQueryIdRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeSQLLogByQueryIdOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeSQLLogByQueryIdOutcome(DescribeSQLLogByQueryIdResult(outcome.result())); - else - return DescribeSQLLogByQueryIdOutcome(outcome.error()); -} - -void GpdbClient::describeSQLLogByQueryIdAsync(const DescribeSQLLogByQueryIdRequest& request, const DescribeSQLLogByQueryIdAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeSQLLogByQueryId(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -GpdbClient::DescribeSQLLogByQueryIdOutcomeCallable GpdbClient::describeSQLLogByQueryIdCallable(const DescribeSQLLogByQueryIdRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeSQLLogByQueryId(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - GpdbClient::DescribeSQLLogCountOutcome GpdbClient::describeSQLLogCount(const DescribeSQLLogCountRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1203,252 +1959,108 @@ GpdbClient::DescribeSQLLogCountOutcomeCallable GpdbClient::describeSQLLogCountCa return task->get_future(); } -GpdbClient::DescribeSQLLogFilesOutcome GpdbClient::describeSQLLogFiles(const DescribeSQLLogFilesRequest &request) const +GpdbClient::DescribeSQLLogsV2Outcome GpdbClient::describeSQLLogsV2(const DescribeSQLLogsV2Request &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribeSQLLogFilesOutcome(endpointOutcome.error()); + return DescribeSQLLogsV2Outcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribeSQLLogFilesOutcome(DescribeSQLLogFilesResult(outcome.result())); + return DescribeSQLLogsV2Outcome(DescribeSQLLogsV2Result(outcome.result())); else - return DescribeSQLLogFilesOutcome(outcome.error()); + return DescribeSQLLogsV2Outcome(outcome.error()); } -void GpdbClient::describeSQLLogFilesAsync(const DescribeSQLLogFilesRequest& request, const DescribeSQLLogFilesAsyncHandler& handler, const std::shared_ptr& context) const +void GpdbClient::describeSQLLogsV2Async(const DescribeSQLLogsV2Request& request, const DescribeSQLLogsV2AsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describeSQLLogFiles(request), context); + handler(this, request, describeSQLLogsV2(request), context); }; asyncExecute(new Runnable(fn)); } -GpdbClient::DescribeSQLLogFilesOutcomeCallable GpdbClient::describeSQLLogFilesCallable(const DescribeSQLLogFilesRequest &request) const +GpdbClient::DescribeSQLLogsV2OutcomeCallable GpdbClient::describeSQLLogsV2Callable(const DescribeSQLLogsV2Request &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->describeSQLLogFiles(request); + return this->describeSQLLogsV2(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -GpdbClient::DescribeSQLLogRecordsOutcome GpdbClient::describeSQLLogRecords(const DescribeSQLLogRecordsRequest &request) const +GpdbClient::DescribeSampleDataOutcome GpdbClient::describeSampleData(const DescribeSampleDataRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribeSQLLogRecordsOutcome(endpointOutcome.error()); + return DescribeSampleDataOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribeSQLLogRecordsOutcome(DescribeSQLLogRecordsResult(outcome.result())); + return DescribeSampleDataOutcome(DescribeSampleDataResult(outcome.result())); else - return DescribeSQLLogRecordsOutcome(outcome.error()); + return DescribeSampleDataOutcome(outcome.error()); } -void GpdbClient::describeSQLLogRecordsAsync(const DescribeSQLLogRecordsRequest& request, const DescribeSQLLogRecordsAsyncHandler& handler, const std::shared_ptr& context) const +void GpdbClient::describeSampleDataAsync(const DescribeSampleDataRequest& request, const DescribeSampleDataAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describeSQLLogRecords(request), context); + handler(this, request, describeSampleData(request), context); }; asyncExecute(new Runnable(fn)); } -GpdbClient::DescribeSQLLogRecordsOutcomeCallable GpdbClient::describeSQLLogRecordsCallable(const DescribeSQLLogRecordsRequest &request) const +GpdbClient::DescribeSampleDataOutcomeCallable GpdbClient::describeSampleDataCallable(const DescribeSampleDataRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->describeSQLLogRecords(request); + return this->describeSampleData(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -GpdbClient::DescribeSQLLogsOutcome GpdbClient::describeSQLLogs(const DescribeSQLLogsRequest &request) const +GpdbClient::DescribeSupportFeaturesOutcome GpdbClient::describeSupportFeatures(const DescribeSupportFeaturesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribeSQLLogsOutcome(endpointOutcome.error()); + return DescribeSupportFeaturesOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribeSQLLogsOutcome(DescribeSQLLogsResult(outcome.result())); + return DescribeSupportFeaturesOutcome(DescribeSupportFeaturesResult(outcome.result())); else - return DescribeSQLLogsOutcome(outcome.error()); + return DescribeSupportFeaturesOutcome(outcome.error()); } -void GpdbClient::describeSQLLogsAsync(const DescribeSQLLogsRequest& request, const DescribeSQLLogsAsyncHandler& handler, const std::shared_ptr& context) const +void GpdbClient::describeSupportFeaturesAsync(const DescribeSupportFeaturesRequest& request, const DescribeSupportFeaturesAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describeSQLLogs(request), context); + handler(this, request, describeSupportFeatures(request), context); }; asyncExecute(new Runnable(fn)); } -GpdbClient::DescribeSQLLogsOutcomeCallable GpdbClient::describeSQLLogsCallable(const DescribeSQLLogsRequest &request) const +GpdbClient::DescribeSupportFeaturesOutcomeCallable GpdbClient::describeSupportFeaturesCallable(const DescribeSupportFeaturesRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->describeSQLLogs(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -GpdbClient::DescribeSQLLogsOnSliceOutcome GpdbClient::describeSQLLogsOnSlice(const DescribeSQLLogsOnSliceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeSQLLogsOnSliceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeSQLLogsOnSliceOutcome(DescribeSQLLogsOnSliceResult(outcome.result())); - else - return DescribeSQLLogsOnSliceOutcome(outcome.error()); -} - -void GpdbClient::describeSQLLogsOnSliceAsync(const DescribeSQLLogsOnSliceRequest& request, const DescribeSQLLogsOnSliceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeSQLLogsOnSlice(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -GpdbClient::DescribeSQLLogsOnSliceOutcomeCallable GpdbClient::describeSQLLogsOnSliceCallable(const DescribeSQLLogsOnSliceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeSQLLogsOnSlice(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -GpdbClient::DescribeSlowLogRecordsOutcome GpdbClient::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 GpdbClient::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)); -} - -GpdbClient::DescribeSlowLogRecordsOutcomeCallable GpdbClient::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(); -} - -GpdbClient::DescribeSlowSQLLogsOutcome GpdbClient::describeSlowSQLLogs(const DescribeSlowSQLLogsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeSlowSQLLogsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeSlowSQLLogsOutcome(DescribeSlowSQLLogsResult(outcome.result())); - else - return DescribeSlowSQLLogsOutcome(outcome.error()); -} - -void GpdbClient::describeSlowSQLLogsAsync(const DescribeSlowSQLLogsRequest& request, const DescribeSlowSQLLogsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeSlowSQLLogs(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -GpdbClient::DescribeSlowSQLLogsOutcomeCallable GpdbClient::describeSlowSQLLogsCallable(const DescribeSlowSQLLogsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeSlowSQLLogs(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -GpdbClient::DescribeSpecificationOutcome GpdbClient::describeSpecification(const DescribeSpecificationRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeSpecificationOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeSpecificationOutcome(DescribeSpecificationResult(outcome.result())); - else - return DescribeSpecificationOutcome(outcome.error()); -} - -void GpdbClient::describeSpecificationAsync(const DescribeSpecificationRequest& request, const DescribeSpecificationAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeSpecification(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -GpdbClient::DescribeSpecificationOutcomeCallable GpdbClient::describeSpecificationCallable(const DescribeSpecificationRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeSpecification(request); + return this->describeSupportFeatures(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -1527,6 +2139,294 @@ GpdbClient::DescribeUserEncryptionKeyListOutcomeCallable GpdbClient::describeUse return task->get_future(); } +GpdbClient::DescribeWaitingSQLInfoOutcome GpdbClient::describeWaitingSQLInfo(const DescribeWaitingSQLInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeWaitingSQLInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeWaitingSQLInfoOutcome(DescribeWaitingSQLInfoResult(outcome.result())); + else + return DescribeWaitingSQLInfoOutcome(outcome.error()); +} + +void GpdbClient::describeWaitingSQLInfoAsync(const DescribeWaitingSQLInfoRequest& request, const DescribeWaitingSQLInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeWaitingSQLInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GpdbClient::DescribeWaitingSQLInfoOutcomeCallable GpdbClient::describeWaitingSQLInfoCallable(const DescribeWaitingSQLInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeWaitingSQLInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GpdbClient::DescribeWaitingSQLRecordsOutcome GpdbClient::describeWaitingSQLRecords(const DescribeWaitingSQLRecordsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeWaitingSQLRecordsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeWaitingSQLRecordsOutcome(DescribeWaitingSQLRecordsResult(outcome.result())); + else + return DescribeWaitingSQLRecordsOutcome(outcome.error()); +} + +void GpdbClient::describeWaitingSQLRecordsAsync(const DescribeWaitingSQLRecordsRequest& request, const DescribeWaitingSQLRecordsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeWaitingSQLRecords(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GpdbClient::DescribeWaitingSQLRecordsOutcomeCallable GpdbClient::describeWaitingSQLRecordsCallable(const DescribeWaitingSQLRecordsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeWaitingSQLRecords(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GpdbClient::DownloadDiagnosisRecordsOutcome GpdbClient::downloadDiagnosisRecords(const DownloadDiagnosisRecordsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DownloadDiagnosisRecordsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DownloadDiagnosisRecordsOutcome(DownloadDiagnosisRecordsResult(outcome.result())); + else + return DownloadDiagnosisRecordsOutcome(outcome.error()); +} + +void GpdbClient::downloadDiagnosisRecordsAsync(const DownloadDiagnosisRecordsRequest& request, const DownloadDiagnosisRecordsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, downloadDiagnosisRecords(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GpdbClient::DownloadDiagnosisRecordsOutcomeCallable GpdbClient::downloadDiagnosisRecordsCallable(const DownloadDiagnosisRecordsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->downloadDiagnosisRecords(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GpdbClient::DownloadSQLLogsRecordsOutcome GpdbClient::downloadSQLLogsRecords(const DownloadSQLLogsRecordsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DownloadSQLLogsRecordsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DownloadSQLLogsRecordsOutcome(DownloadSQLLogsRecordsResult(outcome.result())); + else + return DownloadSQLLogsRecordsOutcome(outcome.error()); +} + +void GpdbClient::downloadSQLLogsRecordsAsync(const DownloadSQLLogsRecordsRequest& request, const DownloadSQLLogsRecordsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, downloadSQLLogsRecords(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GpdbClient::DownloadSQLLogsRecordsOutcomeCallable GpdbClient::downloadSQLLogsRecordsCallable(const DownloadSQLLogsRecordsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->downloadSQLLogsRecords(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GpdbClient::GrantCollectionOutcome GpdbClient::grantCollection(const GrantCollectionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GrantCollectionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GrantCollectionOutcome(GrantCollectionResult(outcome.result())); + else + return GrantCollectionOutcome(outcome.error()); +} + +void GpdbClient::grantCollectionAsync(const GrantCollectionRequest& request, const GrantCollectionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, grantCollection(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GpdbClient::GrantCollectionOutcomeCallable GpdbClient::grantCollectionCallable(const GrantCollectionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->grantCollection(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GpdbClient::InitVectorDatabaseOutcome GpdbClient::initVectorDatabase(const InitVectorDatabaseRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return InitVectorDatabaseOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return InitVectorDatabaseOutcome(InitVectorDatabaseResult(outcome.result())); + else + return InitVectorDatabaseOutcome(outcome.error()); +} + +void GpdbClient::initVectorDatabaseAsync(const InitVectorDatabaseRequest& request, const InitVectorDatabaseAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, initVectorDatabase(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GpdbClient::InitVectorDatabaseOutcomeCallable GpdbClient::initVectorDatabaseCallable(const InitVectorDatabaseRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->initVectorDatabase(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GpdbClient::ListCollectionsOutcome GpdbClient::listCollections(const ListCollectionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListCollectionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListCollectionsOutcome(ListCollectionsResult(outcome.result())); + else + return ListCollectionsOutcome(outcome.error()); +} + +void GpdbClient::listCollectionsAsync(const ListCollectionsRequest& request, const ListCollectionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listCollections(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GpdbClient::ListCollectionsOutcomeCallable GpdbClient::listCollectionsCallable(const ListCollectionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listCollections(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GpdbClient::ListNamespacesOutcome GpdbClient::listNamespaces(const ListNamespacesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListNamespacesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListNamespacesOutcome(ListNamespacesResult(outcome.result())); + else + return ListNamespacesOutcome(outcome.error()); +} + +void GpdbClient::listNamespacesAsync(const ListNamespacesRequest& request, const ListNamespacesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listNamespaces(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GpdbClient::ListNamespacesOutcomeCallable GpdbClient::listNamespacesCallable(const ListNamespacesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listNamespaces(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + GpdbClient::ListTagResourcesOutcome GpdbClient::listTagResources(const ListTagResourcesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1635,36 +2535,36 @@ GpdbClient::ModifyBackupPolicyOutcomeCallable GpdbClient::modifyBackupPolicyCall return task->get_future(); } -GpdbClient::ModifyDBInstanceConnectionModeOutcome GpdbClient::modifyDBInstanceConnectionMode(const ModifyDBInstanceConnectionModeRequest &request) const +GpdbClient::ModifyDBInstanceConfigOutcome GpdbClient::modifyDBInstanceConfig(const ModifyDBInstanceConfigRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ModifyDBInstanceConnectionModeOutcome(endpointOutcome.error()); + return ModifyDBInstanceConfigOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ModifyDBInstanceConnectionModeOutcome(ModifyDBInstanceConnectionModeResult(outcome.result())); + return ModifyDBInstanceConfigOutcome(ModifyDBInstanceConfigResult(outcome.result())); else - return ModifyDBInstanceConnectionModeOutcome(outcome.error()); + return ModifyDBInstanceConfigOutcome(outcome.error()); } -void GpdbClient::modifyDBInstanceConnectionModeAsync(const ModifyDBInstanceConnectionModeRequest& request, const ModifyDBInstanceConnectionModeAsyncHandler& handler, const std::shared_ptr& context) const +void GpdbClient::modifyDBInstanceConfigAsync(const ModifyDBInstanceConfigRequest& request, const ModifyDBInstanceConfigAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, modifyDBInstanceConnectionMode(request), context); + handler(this, request, modifyDBInstanceConfig(request), context); }; asyncExecute(new Runnable(fn)); } -GpdbClient::ModifyDBInstanceConnectionModeOutcomeCallable GpdbClient::modifyDBInstanceConnectionModeCallable(const ModifyDBInstanceConnectionModeRequest &request) const +GpdbClient::ModifyDBInstanceConfigOutcomeCallable GpdbClient::modifyDBInstanceConfigCallable(const ModifyDBInstanceConfigRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->modifyDBInstanceConnectionMode(request); + return this->modifyDBInstanceConfig(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -1779,36 +2679,36 @@ GpdbClient::ModifyDBInstanceMaintainTimeOutcomeCallable GpdbClient::modifyDBInst return task->get_future(); } -GpdbClient::ModifyDBInstanceNetworkTypeOutcome GpdbClient::modifyDBInstanceNetworkType(const ModifyDBInstanceNetworkTypeRequest &request) const +GpdbClient::ModifyDBInstanceResourceGroupOutcome GpdbClient::modifyDBInstanceResourceGroup(const ModifyDBInstanceResourceGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ModifyDBInstanceNetworkTypeOutcome(endpointOutcome.error()); + return ModifyDBInstanceResourceGroupOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ModifyDBInstanceNetworkTypeOutcome(ModifyDBInstanceNetworkTypeResult(outcome.result())); + return ModifyDBInstanceResourceGroupOutcome(ModifyDBInstanceResourceGroupResult(outcome.result())); else - return ModifyDBInstanceNetworkTypeOutcome(outcome.error()); + return ModifyDBInstanceResourceGroupOutcome(outcome.error()); } -void GpdbClient::modifyDBInstanceNetworkTypeAsync(const ModifyDBInstanceNetworkTypeRequest& request, const ModifyDBInstanceNetworkTypeAsyncHandler& handler, const std::shared_ptr& context) const +void GpdbClient::modifyDBInstanceResourceGroupAsync(const ModifyDBInstanceResourceGroupRequest& request, const ModifyDBInstanceResourceGroupAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, modifyDBInstanceNetworkType(request), context); + handler(this, request, modifyDBInstanceResourceGroup(request), context); }; asyncExecute(new Runnable(fn)); } -GpdbClient::ModifyDBInstanceNetworkTypeOutcomeCallable GpdbClient::modifyDBInstanceNetworkTypeCallable(const ModifyDBInstanceNetworkTypeRequest &request) const +GpdbClient::ModifyDBInstanceResourceGroupOutcomeCallable GpdbClient::modifyDBInstanceResourceGroupCallable(const ModifyDBInstanceResourceGroupRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->modifyDBInstanceNetworkType(request); + return this->modifyDBInstanceResourceGroup(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -1959,6 +2859,150 @@ GpdbClient::ModifySecurityIpsOutcomeCallable GpdbClient::modifySecurityIpsCallab return task->get_future(); } +GpdbClient::ModifyVectorConfigurationOutcome GpdbClient::modifyVectorConfiguration(const ModifyVectorConfigurationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyVectorConfigurationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyVectorConfigurationOutcome(ModifyVectorConfigurationResult(outcome.result())); + else + return ModifyVectorConfigurationOutcome(outcome.error()); +} + +void GpdbClient::modifyVectorConfigurationAsync(const ModifyVectorConfigurationRequest& request, const ModifyVectorConfigurationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyVectorConfiguration(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GpdbClient::ModifyVectorConfigurationOutcomeCallable GpdbClient::modifyVectorConfigurationCallable(const ModifyVectorConfigurationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyVectorConfiguration(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GpdbClient::PauseInstanceOutcome GpdbClient::pauseInstance(const PauseInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PauseInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PauseInstanceOutcome(PauseInstanceResult(outcome.result())); + else + return PauseInstanceOutcome(outcome.error()); +} + +void GpdbClient::pauseInstanceAsync(const PauseInstanceRequest& request, const PauseInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, pauseInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GpdbClient::PauseInstanceOutcomeCallable GpdbClient::pauseInstanceCallable(const PauseInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->pauseInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GpdbClient::QueryCollectionDataOutcome GpdbClient::queryCollectionData(const QueryCollectionDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryCollectionDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryCollectionDataOutcome(QueryCollectionDataResult(outcome.result())); + else + return QueryCollectionDataOutcome(outcome.error()); +} + +void GpdbClient::queryCollectionDataAsync(const QueryCollectionDataRequest& request, const QueryCollectionDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryCollectionData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GpdbClient::QueryCollectionDataOutcomeCallable GpdbClient::queryCollectionDataCallable(const QueryCollectionDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryCollectionData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GpdbClient::RebalanceDBInstanceOutcome GpdbClient::rebalanceDBInstance(const RebalanceDBInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RebalanceDBInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RebalanceDBInstanceOutcome(RebalanceDBInstanceResult(outcome.result())); + else + return RebalanceDBInstanceOutcome(outcome.error()); +} + +void GpdbClient::rebalanceDBInstanceAsync(const RebalanceDBInstanceRequest& request, const RebalanceDBInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, rebalanceDBInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GpdbClient::RebalanceDBInstanceOutcomeCallable GpdbClient::rebalanceDBInstanceCallable(const RebalanceDBInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->rebalanceDBInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + GpdbClient::ReleaseInstancePublicConnectionOutcome GpdbClient::releaseInstancePublicConnection(const ReleaseInstancePublicConnectionRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2067,6 +3111,114 @@ GpdbClient::RestartDBInstanceOutcomeCallable GpdbClient::restartDBInstanceCallab return task->get_future(); } +GpdbClient::ResumeInstanceOutcome GpdbClient::resumeInstance(const ResumeInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ResumeInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ResumeInstanceOutcome(ResumeInstanceResult(outcome.result())); + else + return ResumeInstanceOutcome(outcome.error()); +} + +void GpdbClient::resumeInstanceAsync(const ResumeInstanceRequest& request, const ResumeInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, resumeInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GpdbClient::ResumeInstanceOutcomeCallable GpdbClient::resumeInstanceCallable(const ResumeInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->resumeInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GpdbClient::SetDBInstancePlanStatusOutcome GpdbClient::setDBInstancePlanStatus(const SetDBInstancePlanStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetDBInstancePlanStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetDBInstancePlanStatusOutcome(SetDBInstancePlanStatusResult(outcome.result())); + else + return SetDBInstancePlanStatusOutcome(outcome.error()); +} + +void GpdbClient::setDBInstancePlanStatusAsync(const SetDBInstancePlanStatusRequest& request, const SetDBInstancePlanStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setDBInstancePlanStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GpdbClient::SetDBInstancePlanStatusOutcomeCallable GpdbClient::setDBInstancePlanStatusCallable(const SetDBInstancePlanStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setDBInstancePlanStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GpdbClient::SetDataShareInstanceOutcome GpdbClient::setDataShareInstance(const SetDataShareInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetDataShareInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetDataShareInstanceOutcome(SetDataShareInstanceResult(outcome.result())); + else + return SetDataShareInstanceOutcome(outcome.error()); +} + +void GpdbClient::setDataShareInstanceAsync(const SetDataShareInstanceRequest& request, const SetDataShareInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setDataShareInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GpdbClient::SetDataShareInstanceOutcomeCallable GpdbClient::setDataShareInstanceCallable(const SetDataShareInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setDataShareInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + GpdbClient::SwitchDBInstanceNetTypeOutcome GpdbClient::switchDBInstanceNetType(const SwitchDBInstanceNetTypeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2139,6 +3291,42 @@ GpdbClient::TagResourcesOutcomeCallable GpdbClient::tagResourcesCallable(const T return task->get_future(); } +GpdbClient::UnloadSampleDataOutcome GpdbClient::unloadSampleData(const UnloadSampleDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UnloadSampleDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UnloadSampleDataOutcome(UnloadSampleDataResult(outcome.result())); + else + return UnloadSampleDataOutcome(outcome.error()); +} + +void GpdbClient::unloadSampleDataAsync(const UnloadSampleDataRequest& request, const UnloadSampleDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, unloadSampleData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GpdbClient::UnloadSampleDataOutcomeCallable GpdbClient::unloadSampleDataCallable(const UnloadSampleDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->unloadSampleData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + GpdbClient::UntagResourcesOutcome GpdbClient::untagResources(const UntagResourcesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2175,6 +3363,42 @@ GpdbClient::UntagResourcesOutcomeCallable GpdbClient::untagResourcesCallable(con return task->get_future(); } +GpdbClient::UpdateDBInstancePlanOutcome GpdbClient::updateDBInstancePlan(const UpdateDBInstancePlanRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateDBInstancePlanOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateDBInstancePlanOutcome(UpdateDBInstancePlanResult(outcome.result())); + else + return UpdateDBInstancePlanOutcome(outcome.error()); +} + +void GpdbClient::updateDBInstancePlanAsync(const UpdateDBInstancePlanRequest& request, const UpdateDBInstancePlanAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateDBInstancePlan(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GpdbClient::UpdateDBInstancePlanOutcomeCallable GpdbClient::updateDBInstancePlanCallable(const UpdateDBInstancePlanRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateDBInstancePlan(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + GpdbClient::UpgradeDBInstanceOutcome GpdbClient::upgradeDBInstance(const UpgradeDBInstanceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2247,3 +3471,39 @@ GpdbClient::UpgradeDBVersionOutcomeCallable GpdbClient::upgradeDBVersionCallable return task->get_future(); } +GpdbClient::UpsertCollectionDataOutcome GpdbClient::upsertCollectionData(const UpsertCollectionDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpsertCollectionDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpsertCollectionDataOutcome(UpsertCollectionDataResult(outcome.result())); + else + return UpsertCollectionDataOutcome(outcome.error()); +} + +void GpdbClient::upsertCollectionDataAsync(const UpsertCollectionDataRequest& request, const UpsertCollectionDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, upsertCollectionData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GpdbClient::UpsertCollectionDataOutcomeCallable GpdbClient::upsertCollectionDataCallable(const UpsertCollectionDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->upsertCollectionData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/gpdb/src/model/AddBuDBInstanceRelationRequest.cc b/gpdb/src/model/AddBuDBInstanceRelationRequest.cc deleted file mode 100644 index a8ea5f8ee..000000000 --- a/gpdb/src/model/AddBuDBInstanceRelationRequest.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::Gpdb::Model::AddBuDBInstanceRelationRequest; - -AddBuDBInstanceRelationRequest::AddBuDBInstanceRelationRequest() - : RpcServiceRequest("gpdb", "2016-05-03", "AddBuDBInstanceRelation") { - setMethod(HttpRequest::Method::Post); -} - -AddBuDBInstanceRelationRequest::~AddBuDBInstanceRelationRequest() {} - -std::string AddBuDBInstanceRelationRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void AddBuDBInstanceRelationRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string AddBuDBInstanceRelationRequest::getDBInstanceId() const { - return dBInstanceId_; -} - -void AddBuDBInstanceRelationRequest::setDBInstanceId(const std::string &dBInstanceId) { - dBInstanceId_ = dBInstanceId; - setParameter(std::string("DBInstanceId"), dBInstanceId); -} - -long AddBuDBInstanceRelationRequest::getOwnerId() const { - return ownerId_; -} - -void AddBuDBInstanceRelationRequest::setOwnerId(long ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), std::to_string(ownerId)); -} - -std::string AddBuDBInstanceRelationRequest::getBusinessUnit() const { - return businessUnit_; -} - -void AddBuDBInstanceRelationRequest::setBusinessUnit(const std::string &businessUnit) { - businessUnit_ = businessUnit; - setParameter(std::string("BusinessUnit"), businessUnit); -} - diff --git a/gpdb/src/model/CreateAccountRequest.cc b/gpdb/src/model/CreateAccountRequest.cc index ba17df6ff..8e1f451df 100644 --- a/gpdb/src/model/CreateAccountRequest.cc +++ b/gpdb/src/model/CreateAccountRequest.cc @@ -43,6 +43,15 @@ void CreateAccountRequest::setAccessKeyId(const std::string &accessKeyId) { setParameter(std::string("AccessKeyId"), accessKeyId); } +std::string CreateAccountRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void CreateAccountRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + std::string CreateAccountRequest::getAccountName() const { return accountName_; } diff --git a/gpdb/src/model/CreateCollectionRequest.cc b/gpdb/src/model/CreateCollectionRequest.cc new file mode 100644 index 000000000..00cf16c44 --- /dev/null +++ b/gpdb/src/model/CreateCollectionRequest.cc @@ -0,0 +1,135 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Gpdb::Model::CreateCollectionRequest; + +CreateCollectionRequest::CreateCollectionRequest() + : RpcServiceRequest("gpdb", "2016-05-03", "CreateCollection") { + setMethod(HttpRequest::Method::Post); +} + +CreateCollectionRequest::~CreateCollectionRequest() {} + +std::string CreateCollectionRequest::getMetadata() const { + return metadata_; +} + +void CreateCollectionRequest::setMetadata(const std::string &metadata) { + metadata_ = metadata; + setParameter(std::string("Metadata"), metadata); +} + +std::string CreateCollectionRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void CreateCollectionRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string CreateCollectionRequest::getFullTextRetrievalFields() const { + return fullTextRetrievalFields_; +} + +void CreateCollectionRequest::setFullTextRetrievalFields(const std::string &fullTextRetrievalFields) { + fullTextRetrievalFields_ = fullTextRetrievalFields; + setParameter(std::string("FullTextRetrievalFields"), fullTextRetrievalFields); +} + +std::string CreateCollectionRequest::getRegionId() const { + return regionId_; +} + +void CreateCollectionRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string CreateCollectionRequest::getManagerAccount() const { + return managerAccount_; +} + +void CreateCollectionRequest::setManagerAccount(const std::string &managerAccount) { + managerAccount_ = managerAccount; + setParameter(std::string("ManagerAccount"), managerAccount); +} + +std::string CreateCollectionRequest::getDBInstanceId() const { + return dBInstanceId_; +} + +void CreateCollectionRequest::setDBInstanceId(const std::string &dBInstanceId) { + dBInstanceId_ = dBInstanceId; + setParameter(std::string("DBInstanceId"), dBInstanceId); +} + +long CreateCollectionRequest::getDimension() const { + return dimension_; +} + +void CreateCollectionRequest::setDimension(long dimension) { + dimension_ = dimension; + setParameter(std::string("Dimension"), std::to_string(dimension)); +} + +std::string CreateCollectionRequest::getManagerAccountPassword() const { + return managerAccountPassword_; +} + +void CreateCollectionRequest::setManagerAccountPassword(const std::string &managerAccountPassword) { + managerAccountPassword_ = managerAccountPassword; + setParameter(std::string("ManagerAccountPassword"), managerAccountPassword); +} + +std::string CreateCollectionRequest::getCollection() const { + return collection_; +} + +void CreateCollectionRequest::setCollection(const std::string &collection) { + collection_ = collection; + setParameter(std::string("Collection"), collection); +} + +long CreateCollectionRequest::getOwnerId() const { + return ownerId_; +} + +void CreateCollectionRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string CreateCollectionRequest::getParser() const { + return parser_; +} + +void CreateCollectionRequest::setParser(const std::string &parser) { + parser_ = parser; + setParameter(std::string("Parser"), parser); +} + +std::string CreateCollectionRequest::get_Namespace() const { + return _namespace_; +} + +void CreateCollectionRequest::set_Namespace(const std::string &_namespace) { + _namespace_ = _namespace; + setParameter(std::string("Namespace"), _namespace); +} + diff --git a/gpdb/src/model/CreateCollectionResult.cc b/gpdb/src/model/CreateCollectionResult.cc new file mode 100644 index 000000000..5e1638003 --- /dev/null +++ b/gpdb/src/model/CreateCollectionResult.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::Gpdb; +using namespace AlibabaCloud::Gpdb::Model; + +CreateCollectionResult::CreateCollectionResult() : + ServiceResult() +{} + +CreateCollectionResult::CreateCollectionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateCollectionResult::~CreateCollectionResult() +{} + +void CreateCollectionResult::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["Status"].isNull()) + status_ = value["Status"].asString(); + +} + +std::string CreateCollectionResult::getStatus()const +{ + return status_; +} + +std::string CreateCollectionResult::getMessage()const +{ + return message_; +} + diff --git a/gpdb/src/model/CreateDBInstancePlanRequest.cc b/gpdb/src/model/CreateDBInstancePlanRequest.cc new file mode 100644 index 000000000..69ae0c4bf --- /dev/null +++ b/gpdb/src/model/CreateDBInstancePlanRequest.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::Gpdb::Model::CreateDBInstancePlanRequest; + +CreateDBInstancePlanRequest::CreateDBInstancePlanRequest() + : RpcServiceRequest("gpdb", "2016-05-03", "CreateDBInstancePlan") { + setMethod(HttpRequest::Method::Post); +} + +CreateDBInstancePlanRequest::~CreateDBInstancePlanRequest() {} + +std::string CreateDBInstancePlanRequest::getPlanType() const { + return planType_; +} + +void CreateDBInstancePlanRequest::setPlanType(const std::string &planType) { + planType_ = planType; + setParameter(std::string("PlanType"), planType); +} + +std::string CreateDBInstancePlanRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void CreateDBInstancePlanRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string CreateDBInstancePlanRequest::getPlanStartDate() const { + return planStartDate_; +} + +void CreateDBInstancePlanRequest::setPlanStartDate(const std::string &planStartDate) { + planStartDate_ = planStartDate; + setParameter(std::string("PlanStartDate"), planStartDate); +} + +std::string CreateDBInstancePlanRequest::getPlanConfig() const { + return planConfig_; +} + +void CreateDBInstancePlanRequest::setPlanConfig(const std::string &planConfig) { + planConfig_ = planConfig; + setParameter(std::string("PlanConfig"), planConfig); +} + +std::string CreateDBInstancePlanRequest::getPlanName() const { + return planName_; +} + +void CreateDBInstancePlanRequest::setPlanName(const std::string &planName) { + planName_ = planName; + setParameter(std::string("PlanName"), planName); +} + +std::string CreateDBInstancePlanRequest::getDBInstanceId() const { + return dBInstanceId_; +} + +void CreateDBInstancePlanRequest::setDBInstanceId(const std::string &dBInstanceId) { + dBInstanceId_ = dBInstanceId; + setParameter(std::string("DBInstanceId"), dBInstanceId); +} + +std::string CreateDBInstancePlanRequest::getPlanDesc() const { + return planDesc_; +} + +void CreateDBInstancePlanRequest::setPlanDesc(const std::string &planDesc) { + planDesc_ = planDesc; + setParameter(std::string("PlanDesc"), planDesc); +} + +long CreateDBInstancePlanRequest::getOwnerId() const { + return ownerId_; +} + +void CreateDBInstancePlanRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string CreateDBInstancePlanRequest::getPlanEndDate() const { + return planEndDate_; +} + +void CreateDBInstancePlanRequest::setPlanEndDate(const std::string &planEndDate) { + planEndDate_ = planEndDate; + setParameter(std::string("PlanEndDate"), planEndDate); +} + +std::string CreateDBInstancePlanRequest::getPlanScheduleType() const { + return planScheduleType_; +} + +void CreateDBInstancePlanRequest::setPlanScheduleType(const std::string &planScheduleType) { + planScheduleType_ = planScheduleType; + setParameter(std::string("PlanScheduleType"), planScheduleType); +} + diff --git a/gpdb/src/model/CreateECSDBInstanceResult.cc b/gpdb/src/model/CreateDBInstancePlanResult.cc similarity index 54% rename from gpdb/src/model/CreateECSDBInstanceResult.cc rename to gpdb/src/model/CreateDBInstancePlanResult.cc index 7935c2c4a..597b49f93 100644 --- a/gpdb/src/model/CreateECSDBInstanceResult.cc +++ b/gpdb/src/model/CreateDBInstancePlanResult.cc @@ -14,59 +14,59 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Gpdb; using namespace AlibabaCloud::Gpdb::Model; -CreateECSDBInstanceResult::CreateECSDBInstanceResult() : +CreateDBInstancePlanResult::CreateDBInstancePlanResult() : ServiceResult() {} -CreateECSDBInstanceResult::CreateECSDBInstanceResult(const std::string &payload) : +CreateDBInstancePlanResult::CreateDBInstancePlanResult(const std::string &payload) : ServiceResult() { parse(payload); } -CreateECSDBInstanceResult::~CreateECSDBInstanceResult() +CreateDBInstancePlanResult::~CreateDBInstancePlanResult() {} -void CreateECSDBInstanceResult::parse(const std::string &payload) +void CreateDBInstancePlanResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); if(!value["DBInstanceId"].isNull()) dBInstanceId_ = value["DBInstanceId"].asString(); - if(!value["Port"].isNull()) - port_ = value["Port"].asString(); - if(!value["ConnectionString"].isNull()) - connectionString_ = value["ConnectionString"].asString(); - if(!value["OrderId"].isNull()) - orderId_ = value["OrderId"].asString(); + if(!value["PlanId"].isNull()) + planId_ = value["PlanId"].asString(); } -std::string CreateECSDBInstanceResult::getDBInstanceId()const +std::string CreateDBInstancePlanResult::getStatus()const +{ + return status_; +} + +std::string CreateDBInstancePlanResult::getDBInstanceId()const { return dBInstanceId_; } -std::string CreateECSDBInstanceResult::getPort()const +std::string CreateDBInstancePlanResult::getPlanId()const { - return port_; + return planId_; } -std::string CreateECSDBInstanceResult::getConnectionString()const +std::string CreateDBInstancePlanResult::getErrorMessage()const { - return connectionString_; -} - -std::string CreateECSDBInstanceResult::getOrderId()const -{ - return orderId_; + return errorMessage_; } diff --git a/gpdb/src/model/CreateDBInstanceRequest.cc b/gpdb/src/model/CreateDBInstanceRequest.cc index 9ee01cbfa..4f365aff7 100644 --- a/gpdb/src/model/CreateDBInstanceRequest.cc +++ b/gpdb/src/model/CreateDBInstanceRequest.cc @@ -25,15 +25,6 @@ CreateDBInstanceRequest::CreateDBInstanceRequest() CreateDBInstanceRequest::~CreateDBInstanceRequest() {} -std::string CreateDBInstanceRequest::getClientToken() const { - return clientToken_; -} - -void CreateDBInstanceRequest::setClientToken(const std::string &clientToken) { - clientToken_ = clientToken; - setParameter(std::string("ClientToken"), clientToken); -} - std::string CreateDBInstanceRequest::getEngineVersion() const { return engineVersion_; } @@ -43,31 +34,40 @@ void CreateDBInstanceRequest::setEngineVersion(const std::string &engineVersion) setParameter(std::string("EngineVersion"), engineVersion); } -std::string CreateDBInstanceRequest::getAccessKeyId() const { - return accessKeyId_; +std::string CreateDBInstanceRequest::getDBInstanceCategory() const { + return dBInstanceCategory_; } -void CreateDBInstanceRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); +void CreateDBInstanceRequest::setDBInstanceCategory(const std::string &dBInstanceCategory) { + dBInstanceCategory_ = dBInstanceCategory; + setParameter(std::string("DBInstanceCategory"), dBInstanceCategory); } -std::string CreateDBInstanceRequest::getRegionId() const { - return regionId_; +std::string CreateDBInstanceRequest::getStorageType() const { + return storageType_; } -void CreateDBInstanceRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); +void CreateDBInstanceRequest::setStorageType(const std::string &storageType) { + storageType_ = storageType; + setParameter(std::string("StorageType"), storageType); } -std::string CreateDBInstanceRequest::getEngine() const { - return engine_; +std::string CreateDBInstanceRequest::getResourceGroupId() const { + return resourceGroupId_; } -void CreateDBInstanceRequest::setEngine(const std::string &engine) { - engine_ = engine; - setParameter(std::string("Engine"), engine); +void CreateDBInstanceRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + +std::string CreateDBInstanceRequest::getEncryptionType() const { + return encryptionType_; +} + +void CreateDBInstanceRequest::setEncryptionType(const std::string &encryptionType) { + encryptionType_ = encryptionType; + setParameter(std::string("EncryptionType"), encryptionType); } std::string CreateDBInstanceRequest::getDBInstanceDescription() const { @@ -79,13 +79,27 @@ void CreateDBInstanceRequest::setDBInstanceDescription(const std::string &dBInst setParameter(std::string("DBInstanceDescription"), dBInstanceDescription); } -std::string CreateDBInstanceRequest::getDBInstanceGroupCount() const { - return dBInstanceGroupCount_; +std::string CreateDBInstanceRequest::getServerlessMode() const { + return serverlessMode_; } -void CreateDBInstanceRequest::setDBInstanceGroupCount(const std::string &dBInstanceGroupCount) { - dBInstanceGroupCount_ = dBInstanceGroupCount; - setParameter(std::string("DBInstanceGroupCount"), dBInstanceGroupCount); +void CreateDBInstanceRequest::setServerlessMode(const std::string &serverlessMode) { + serverlessMode_ = serverlessMode; + setParameter(std::string("ServerlessMode"), serverlessMode); +} + +std::vector CreateDBInstanceRequest::getTag() const { + return tag_; +} + +void CreateDBInstanceRequest::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 CreateDBInstanceRequest::getPeriod() const { @@ -97,6 +111,24 @@ void CreateDBInstanceRequest::setPeriod(const std::string &period) { setParameter(std::string("Period"), period); } +std::string CreateDBInstanceRequest::getVectorConfigurationStatus() const { + return vectorConfigurationStatus_; +} + +void CreateDBInstanceRequest::setVectorConfigurationStatus(const std::string &vectorConfigurationStatus) { + vectorConfigurationStatus_ = vectorConfigurationStatus; + setParameter(std::string("VectorConfigurationStatus"), vectorConfigurationStatus); +} + +std::string CreateDBInstanceRequest::getEncryptionKey() const { + return encryptionKey_; +} + +void CreateDBInstanceRequest::setEncryptionKey(const std::string &encryptionKey) { + encryptionKey_ = encryptionKey; + setParameter(std::string("EncryptionKey"), encryptionKey); +} + long CreateDBInstanceRequest::getOwnerId() const { return ownerId_; } @@ -106,13 +138,13 @@ void CreateDBInstanceRequest::setOwnerId(long ownerId) { setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -std::string CreateDBInstanceRequest::getUsedTime() const { - return usedTime_; +std::string CreateDBInstanceRequest::getSegDiskPerformanceLevel() const { + return segDiskPerformanceLevel_; } -void CreateDBInstanceRequest::setUsedTime(const std::string &usedTime) { - usedTime_ = usedTime; - setParameter(std::string("UsedTime"), usedTime); +void CreateDBInstanceRequest::setSegDiskPerformanceLevel(const std::string &segDiskPerformanceLevel) { + segDiskPerformanceLevel_ = segDiskPerformanceLevel; + setParameter(std::string("SegDiskPerformanceLevel"), segDiskPerformanceLevel); } std::string CreateDBInstanceRequest::getDBInstanceClass() const { @@ -151,15 +183,6 @@ void CreateDBInstanceRequest::setPrivateIpAddress(const std::string &privateIpAd setParameter(std::string("PrivateIpAddress"), privateIpAddress); } -std::string CreateDBInstanceRequest::getVPCId() const { - return vPCId_; -} - -void CreateDBInstanceRequest::setVPCId(const std::string &vPCId) { - vPCId_ = vPCId; - setParameter(std::string("VPCId"), vPCId); -} - std::string CreateDBInstanceRequest::getZoneId() const { return zoneId_; } @@ -169,15 +192,6 @@ void CreateDBInstanceRequest::setZoneId(const std::string &zoneId) { setParameter(std::string("ZoneId"), zoneId); } -std::string CreateDBInstanceRequest::getPayType() const { - return payType_; -} - -void CreateDBInstanceRequest::setPayType(const std::string &payType) { - payType_ = payType; - setParameter(std::string("PayType"), payType); -} - std::string CreateDBInstanceRequest::getInstanceNetworkType() const { return instanceNetworkType_; } @@ -187,3 +201,156 @@ void CreateDBInstanceRequest::setInstanceNetworkType(const std::string &instance setParameter(std::string("InstanceNetworkType"), instanceNetworkType); } +std::string CreateDBInstanceRequest::getClientToken() const { + return clientToken_; +} + +void CreateDBInstanceRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string CreateDBInstanceRequest::getInstanceSpec() const { + return instanceSpec_; +} + +void CreateDBInstanceRequest::setInstanceSpec(const std::string &instanceSpec) { + instanceSpec_ = instanceSpec; + setParameter(std::string("InstanceSpec"), instanceSpec); +} + +long CreateDBInstanceRequest::getStorageSize() const { + return storageSize_; +} + +void CreateDBInstanceRequest::setStorageSize(long storageSize) { + storageSize_ = storageSize; + setParameter(std::string("StorageSize"), std::to_string(storageSize)); +} + +std::string CreateDBInstanceRequest::getSegStorageType() const { + return segStorageType_; +} + +void CreateDBInstanceRequest::setSegStorageType(const std::string &segStorageType) { + segStorageType_ = segStorageType; + setParameter(std::string("SegStorageType"), segStorageType); +} + +std::string CreateDBInstanceRequest::getMasterNodeNum() const { + return masterNodeNum_; +} + +void CreateDBInstanceRequest::setMasterNodeNum(const std::string &masterNodeNum) { + masterNodeNum_ = masterNodeNum; + setParameter(std::string("MasterNodeNum"), masterNodeNum); +} + +std::string CreateDBInstanceRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void CreateDBInstanceRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string CreateDBInstanceRequest::getSegNodeNum() const { + return segNodeNum_; +} + +void CreateDBInstanceRequest::setSegNodeNum(const std::string &segNodeNum) { + segNodeNum_ = segNodeNum; + setParameter(std::string("SegNodeNum"), segNodeNum); +} + +std::string CreateDBInstanceRequest::getRegionId() const { + return regionId_; +} + +void CreateDBInstanceRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string CreateDBInstanceRequest::getEngine() const { + return engine_; +} + +void CreateDBInstanceRequest::setEngine(const std::string &engine) { + engine_ = engine; + setParameter(std::string("Engine"), engine); +} + +bool CreateDBInstanceRequest::getCreateSampleData() const { + return createSampleData_; +} + +void CreateDBInstanceRequest::setCreateSampleData(bool createSampleData) { + createSampleData_ = createSampleData; + setParameter(std::string("CreateSampleData"), createSampleData ? "true" : "false"); +} + +std::string CreateDBInstanceRequest::getDBInstanceGroupCount() const { + return dBInstanceGroupCount_; +} + +void CreateDBInstanceRequest::setDBInstanceGroupCount(const std::string &dBInstanceGroupCount) { + dBInstanceGroupCount_ = dBInstanceGroupCount; + setParameter(std::string("DBInstanceGroupCount"), dBInstanceGroupCount); +} + +std::string CreateDBInstanceRequest::getDBInstanceMode() const { + return dBInstanceMode_; +} + +void CreateDBInstanceRequest::setDBInstanceMode(const std::string &dBInstanceMode) { + dBInstanceMode_ = dBInstanceMode; + setParameter(std::string("DBInstanceMode"), dBInstanceMode); +} + +std::string CreateDBInstanceRequest::getUsedTime() const { + return usedTime_; +} + +void CreateDBInstanceRequest::setUsedTime(const std::string &usedTime) { + usedTime_ = usedTime; + setParameter(std::string("UsedTime"), usedTime); +} + +std::string CreateDBInstanceRequest::getVPCId() const { + return vPCId_; +} + +void CreateDBInstanceRequest::setVPCId(const std::string &vPCId) { + vPCId_ = vPCId; + setParameter(std::string("VPCId"), vPCId); +} + +int CreateDBInstanceRequest::getServerlessResource() const { + return serverlessResource_; +} + +void CreateDBInstanceRequest::setServerlessResource(int serverlessResource) { + serverlessResource_ = serverlessResource; + setParameter(std::string("ServerlessResource"), std::to_string(serverlessResource)); +} + +int CreateDBInstanceRequest::getIdleTime() const { + return idleTime_; +} + +void CreateDBInstanceRequest::setIdleTime(int idleTime) { + idleTime_ = idleTime; + setParameter(std::string("IdleTime"), std::to_string(idleTime)); +} + +std::string CreateDBInstanceRequest::getPayType() const { + return payType_; +} + +void CreateDBInstanceRequest::setPayType(const std::string &payType) { + payType_ = payType; + setParameter(std::string("PayType"), payType); +} + diff --git a/gpdb/src/model/CreateECSDBInstanceRequest.cc b/gpdb/src/model/CreateECSDBInstanceRequest.cc deleted file mode 100644 index c92b4f273..000000000 --- a/gpdb/src/model/CreateECSDBInstanceRequest.cc +++ /dev/null @@ -1,261 +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::Gpdb::Model::CreateECSDBInstanceRequest; - -CreateECSDBInstanceRequest::CreateECSDBInstanceRequest() - : RpcServiceRequest("gpdb", "2016-05-03", "CreateECSDBInstance") { - setMethod(HttpRequest::Method::Post); -} - -CreateECSDBInstanceRequest::~CreateECSDBInstanceRequest() {} - -std::string CreateECSDBInstanceRequest::getEngineVersion() const { - return engineVersion_; -} - -void CreateECSDBInstanceRequest::setEngineVersion(const std::string &engineVersion) { - engineVersion_ = engineVersion; - setParameter(std::string("EngineVersion"), engineVersion); -} - -std::string CreateECSDBInstanceRequest::getDBInstanceCategory() const { - return dBInstanceCategory_; -} - -void CreateECSDBInstanceRequest::setDBInstanceCategory(const std::string &dBInstanceCategory) { - dBInstanceCategory_ = dBInstanceCategory; - setParameter(std::string("DBInstanceCategory"), dBInstanceCategory); -} - -std::string CreateECSDBInstanceRequest::getEncryptionType() const { - return encryptionType_; -} - -void CreateECSDBInstanceRequest::setEncryptionType(const std::string &encryptionType) { - encryptionType_ = encryptionType; - setParameter(std::string("EncryptionType"), encryptionType); -} - -std::string CreateECSDBInstanceRequest::getDBInstanceDescription() const { - return dBInstanceDescription_; -} - -void CreateECSDBInstanceRequest::setDBInstanceDescription(const std::string &dBInstanceDescription) { - dBInstanceDescription_ = dBInstanceDescription; - setParameter(std::string("DBInstanceDescription"), dBInstanceDescription); -} - -std::string CreateECSDBInstanceRequest::getPeriod() const { - return period_; -} - -void CreateECSDBInstanceRequest::setPeriod(const std::string &period) { - period_ = period; - setParameter(std::string("Period"), period); -} - -std::string CreateECSDBInstanceRequest::getBackupId() const { - return backupId_; -} - -void CreateECSDBInstanceRequest::setBackupId(const std::string &backupId) { - backupId_ = backupId; - setParameter(std::string("BackupId"), backupId); -} - -std::string CreateECSDBInstanceRequest::getEncryptionKey() const { - return encryptionKey_; -} - -void CreateECSDBInstanceRequest::setEncryptionKey(const std::string &encryptionKey) { - encryptionKey_ = encryptionKey; - setParameter(std::string("EncryptionKey"), encryptionKey); -} - -long CreateECSDBInstanceRequest::getOwnerId() const { - return ownerId_; -} - -void CreateECSDBInstanceRequest::setOwnerId(long ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), std::to_string(ownerId)); -} - -std::string CreateECSDBInstanceRequest::getSecurityIPList() const { - return securityIPList_; -} - -void CreateECSDBInstanceRequest::setSecurityIPList(const std::string &securityIPList) { - securityIPList_ = securityIPList; - setParameter(std::string("SecurityIPList"), securityIPList); -} - -std::string CreateECSDBInstanceRequest::getVSwitchId() const { - return vSwitchId_; -} - -void CreateECSDBInstanceRequest::setVSwitchId(const std::string &vSwitchId) { - vSwitchId_ = vSwitchId; - setParameter(std::string("VSwitchId"), vSwitchId); -} - -std::string CreateECSDBInstanceRequest::getPrivateIpAddress() const { - return privateIpAddress_; -} - -void CreateECSDBInstanceRequest::setPrivateIpAddress(const std::string &privateIpAddress) { - privateIpAddress_ = privateIpAddress; - setParameter(std::string("PrivateIpAddress"), privateIpAddress); -} - -std::string CreateECSDBInstanceRequest::getZoneId() const { - return zoneId_; -} - -void CreateECSDBInstanceRequest::setZoneId(const std::string &zoneId) { - zoneId_ = zoneId; - setParameter(std::string("ZoneId"), zoneId); -} - -std::string CreateECSDBInstanceRequest::getInstanceNetworkType() const { - return instanceNetworkType_; -} - -void CreateECSDBInstanceRequest::setInstanceNetworkType(const std::string &instanceNetworkType) { - instanceNetworkType_ = instanceNetworkType; - setParameter(std::string("InstanceNetworkType"), instanceNetworkType); -} - -std::string CreateECSDBInstanceRequest::getClientToken() const { - return clientToken_; -} - -void CreateECSDBInstanceRequest::setClientToken(const std::string &clientToken) { - clientToken_ = clientToken; - setParameter(std::string("ClientToken"), clientToken); -} - -std::string CreateECSDBInstanceRequest::getInstanceSpec() const { - return instanceSpec_; -} - -void CreateECSDBInstanceRequest::setInstanceSpec(const std::string &instanceSpec) { - instanceSpec_ = instanceSpec; - setParameter(std::string("InstanceSpec"), instanceSpec); -} - -int CreateECSDBInstanceRequest::getStorageSize() const { - return storageSize_; -} - -void CreateECSDBInstanceRequest::setStorageSize(int storageSize) { - storageSize_ = storageSize; - setParameter(std::string("StorageSize"), std::to_string(storageSize)); -} - -std::string CreateECSDBInstanceRequest::getSegStorageType() const { - return segStorageType_; -} - -void CreateECSDBInstanceRequest::setSegStorageType(const std::string &segStorageType) { - segStorageType_ = segStorageType; - setParameter(std::string("SegStorageType"), segStorageType); -} - -int CreateECSDBInstanceRequest::getMasterNodeNum() const { - return masterNodeNum_; -} - -void CreateECSDBInstanceRequest::setMasterNodeNum(int masterNodeNum) { - masterNodeNum_ = masterNodeNum; - setParameter(std::string("MasterNodeNum"), std::to_string(masterNodeNum)); -} - -std::string CreateECSDBInstanceRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void CreateECSDBInstanceRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -int CreateECSDBInstanceRequest::getSegNodeNum() const { - return segNodeNum_; -} - -void CreateECSDBInstanceRequest::setSegNodeNum(int segNodeNum) { - segNodeNum_ = segNodeNum; - setParameter(std::string("SegNodeNum"), std::to_string(segNodeNum)); -} - -std::string CreateECSDBInstanceRequest::getRegionId() const { - return regionId_; -} - -void CreateECSDBInstanceRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - -std::string CreateECSDBInstanceRequest::getEngine() const { - return engine_; -} - -void CreateECSDBInstanceRequest::setEngine(const std::string &engine) { - engine_ = engine; - setParameter(std::string("Engine"), engine); -} - -std::string CreateECSDBInstanceRequest::getUsedTime() const { - return usedTime_; -} - -void CreateECSDBInstanceRequest::setUsedTime(const std::string &usedTime) { - usedTime_ = usedTime; - setParameter(std::string("UsedTime"), usedTime); -} - -std::string CreateECSDBInstanceRequest::getVPCId() const { - return vPCId_; -} - -void CreateECSDBInstanceRequest::setVPCId(const std::string &vPCId) { - vPCId_ = vPCId; - setParameter(std::string("VPCId"), vPCId); -} - -std::string CreateECSDBInstanceRequest::getPayType() const { - return payType_; -} - -void CreateECSDBInstanceRequest::setPayType(const std::string &payType) { - payType_ = payType; - setParameter(std::string("PayType"), payType); -} - -std::string CreateECSDBInstanceRequest::getSrcDbInstanceName() const { - return srcDbInstanceName_; -} - -void CreateECSDBInstanceRequest::setSrcDbInstanceName(const std::string &srcDbInstanceName) { - srcDbInstanceName_ = srcDbInstanceName; - setParameter(std::string("SrcDbInstanceName"), srcDbInstanceName); -} - diff --git a/gpdb/src/model/CreateNamespaceRequest.cc b/gpdb/src/model/CreateNamespaceRequest.cc new file mode 100644 index 000000000..c048a119d --- /dev/null +++ b/gpdb/src/model/CreateNamespaceRequest.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::Gpdb::Model::CreateNamespaceRequest; + +CreateNamespaceRequest::CreateNamespaceRequest() + : RpcServiceRequest("gpdb", "2016-05-03", "CreateNamespace") { + setMethod(HttpRequest::Method::Post); +} + +CreateNamespaceRequest::~CreateNamespaceRequest() {} + +std::string CreateNamespaceRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void CreateNamespaceRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string CreateNamespaceRequest::getRegionId() const { + return regionId_; +} + +void CreateNamespaceRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string CreateNamespaceRequest::getManagerAccount() const { + return managerAccount_; +} + +void CreateNamespaceRequest::setManagerAccount(const std::string &managerAccount) { + managerAccount_ = managerAccount; + setParameter(std::string("ManagerAccount"), managerAccount); +} + +std::string CreateNamespaceRequest::getDBInstanceId() const { + return dBInstanceId_; +} + +void CreateNamespaceRequest::setDBInstanceId(const std::string &dBInstanceId) { + dBInstanceId_ = dBInstanceId; + setParameter(std::string("DBInstanceId"), dBInstanceId); +} + +std::string CreateNamespaceRequest::getManagerAccountPassword() const { + return managerAccountPassword_; +} + +void CreateNamespaceRequest::setManagerAccountPassword(const std::string &managerAccountPassword) { + managerAccountPassword_ = managerAccountPassword; + setParameter(std::string("ManagerAccountPassword"), managerAccountPassword); +} + +long CreateNamespaceRequest::getOwnerId() const { + return ownerId_; +} + +void CreateNamespaceRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string CreateNamespaceRequest::getNamespacePassword() const { + return namespacePassword_; +} + +void CreateNamespaceRequest::setNamespacePassword(const std::string &namespacePassword) { + namespacePassword_ = namespacePassword; + setParameter(std::string("NamespacePassword"), namespacePassword); +} + +std::string CreateNamespaceRequest::get_Namespace() const { + return _namespace_; +} + +void CreateNamespaceRequest::set_Namespace(const std::string &_namespace) { + _namespace_ = _namespace; + setParameter(std::string("Namespace"), _namespace); +} + diff --git a/gpdb/src/model/DescribeSQLCollectorPolicyResult.cc b/gpdb/src/model/CreateNamespaceResult.cc similarity index 61% rename from gpdb/src/model/DescribeSQLCollectorPolicyResult.cc rename to gpdb/src/model/CreateNamespaceResult.cc index d62297c65..c93105934 100644 --- a/gpdb/src/model/DescribeSQLCollectorPolicyResult.cc +++ b/gpdb/src/model/CreateNamespaceResult.cc @@ -14,38 +14,45 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Gpdb; using namespace AlibabaCloud::Gpdb::Model; -DescribeSQLCollectorPolicyResult::DescribeSQLCollectorPolicyResult() : +CreateNamespaceResult::CreateNamespaceResult() : ServiceResult() {} -DescribeSQLCollectorPolicyResult::DescribeSQLCollectorPolicyResult(const std::string &payload) : +CreateNamespaceResult::CreateNamespaceResult(const std::string &payload) : ServiceResult() { parse(payload); } -DescribeSQLCollectorPolicyResult::~DescribeSQLCollectorPolicyResult() +CreateNamespaceResult::~CreateNamespaceResult() {} -void DescribeSQLCollectorPolicyResult::parse(const std::string &payload) +void CreateNamespaceResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["SQLCollectorStatus"].isNull()) - sQLCollectorStatus_ = value["SQLCollectorStatus"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); } -std::string DescribeSQLCollectorPolicyResult::getSQLCollectorStatus()const +std::string CreateNamespaceResult::getStatus()const { - return sQLCollectorStatus_; + return status_; +} + +std::string CreateNamespaceResult::getMessage()const +{ + return message_; } diff --git a/gpdb/src/model/DescribeDBInstanceOnECSAttributeRequest.cc b/gpdb/src/model/CreateSampleDataRequest.cc similarity index 52% rename from gpdb/src/model/DescribeDBInstanceOnECSAttributeRequest.cc rename to gpdb/src/model/CreateSampleDataRequest.cc index 9dfa8c233..117361245 100644 --- a/gpdb/src/model/DescribeDBInstanceOnECSAttributeRequest.cc +++ b/gpdb/src/model/CreateSampleDataRequest.cc @@ -14,40 +14,40 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::Gpdb::Model::DescribeDBInstanceOnECSAttributeRequest; +using AlibabaCloud::Gpdb::Model::CreateSampleDataRequest; -DescribeDBInstanceOnECSAttributeRequest::DescribeDBInstanceOnECSAttributeRequest() - : RpcServiceRequest("gpdb", "2016-05-03", "DescribeDBInstanceOnECSAttribute") { +CreateSampleDataRequest::CreateSampleDataRequest() + : RpcServiceRequest("gpdb", "2016-05-03", "CreateSampleData") { setMethod(HttpRequest::Method::Post); } -DescribeDBInstanceOnECSAttributeRequest::~DescribeDBInstanceOnECSAttributeRequest() {} +CreateSampleDataRequest::~CreateSampleDataRequest() {} -std::string DescribeDBInstanceOnECSAttributeRequest::getAccessKeyId() const { +std::string CreateSampleDataRequest::getAccessKeyId() const { return accessKeyId_; } -void DescribeDBInstanceOnECSAttributeRequest::setAccessKeyId(const std::string &accessKeyId) { +void CreateSampleDataRequest::setAccessKeyId(const std::string &accessKeyId) { accessKeyId_ = accessKeyId; setParameter(std::string("AccessKeyId"), accessKeyId); } -std::string DescribeDBInstanceOnECSAttributeRequest::getDBInstanceId() const { +std::string CreateSampleDataRequest::getDBInstanceId() const { return dBInstanceId_; } -void DescribeDBInstanceOnECSAttributeRequest::setDBInstanceId(const std::string &dBInstanceId) { +void CreateSampleDataRequest::setDBInstanceId(const std::string &dBInstanceId) { dBInstanceId_ = dBInstanceId; setParameter(std::string("DBInstanceId"), dBInstanceId); } -long DescribeDBInstanceOnECSAttributeRequest::getOwnerId() const { +long CreateSampleDataRequest::getOwnerId() const { return ownerId_; } -void DescribeDBInstanceOnECSAttributeRequest::setOwnerId(long ownerId) { +void CreateSampleDataRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/gpdb/src/model/CreateSampleDataResult.cc b/gpdb/src/model/CreateSampleDataResult.cc new file mode 100644 index 000000000..ac83b2489 --- /dev/null +++ b/gpdb/src/model/CreateSampleDataResult.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::Gpdb; +using namespace AlibabaCloud::Gpdb::Model; + +CreateSampleDataResult::CreateSampleDataResult() : + ServiceResult() +{} + +CreateSampleDataResult::CreateSampleDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateSampleDataResult::~CreateSampleDataResult() +{} + +void CreateSampleDataResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Status"].isNull()) + status_ = value["Status"].asString() == "true"; + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["DBInstanceId"].isNull()) + dBInstanceId_ = value["DBInstanceId"].asString(); + +} + +bool CreateSampleDataResult::getStatus()const +{ + return status_; +} + +std::string CreateSampleDataResult::getDBInstanceId()const +{ + return dBInstanceId_; +} + +std::string CreateSampleDataResult::getErrorMessage()const +{ + return errorMessage_; +} + diff --git a/gpdb/src/model/CreateVectorIndexRequest.cc b/gpdb/src/model/CreateVectorIndexRequest.cc new file mode 100644 index 000000000..4ad2b5608 --- /dev/null +++ b/gpdb/src/model/CreateVectorIndexRequest.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::Gpdb::Model::CreateVectorIndexRequest; + +CreateVectorIndexRequest::CreateVectorIndexRequest() + : RpcServiceRequest("gpdb", "2016-05-03", "CreateVectorIndex") { + setMethod(HttpRequest::Method::Post); +} + +CreateVectorIndexRequest::~CreateVectorIndexRequest() {} + +std::string CreateVectorIndexRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void CreateVectorIndexRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string CreateVectorIndexRequest::getRegionId() const { + return regionId_; +} + +void CreateVectorIndexRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string CreateVectorIndexRequest::getManagerAccount() const { + return managerAccount_; +} + +void CreateVectorIndexRequest::setManagerAccount(const std::string &managerAccount) { + managerAccount_ = managerAccount; + setParameter(std::string("ManagerAccount"), managerAccount); +} + +std::string CreateVectorIndexRequest::getDBInstanceId() const { + return dBInstanceId_; +} + +void CreateVectorIndexRequest::setDBInstanceId(const std::string &dBInstanceId) { + dBInstanceId_ = dBInstanceId; + setParameter(std::string("DBInstanceId"), dBInstanceId); +} + +int CreateVectorIndexRequest::getDimension() const { + return dimension_; +} + +void CreateVectorIndexRequest::setDimension(int dimension) { + dimension_ = dimension; + setParameter(std::string("Dimension"), std::to_string(dimension)); +} + +std::string CreateVectorIndexRequest::getManagerAccountPassword() const { + return managerAccountPassword_; +} + +void CreateVectorIndexRequest::setManagerAccountPassword(const std::string &managerAccountPassword) { + managerAccountPassword_ = managerAccountPassword; + setParameter(std::string("ManagerAccountPassword"), managerAccountPassword); +} + +std::string CreateVectorIndexRequest::getCollection() const { + return collection_; +} + +void CreateVectorIndexRequest::setCollection(const std::string &collection) { + collection_ = collection; + setParameter(std::string("Collection"), collection); +} + +long CreateVectorIndexRequest::getOwnerId() const { + return ownerId_; +} + +void CreateVectorIndexRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string CreateVectorIndexRequest::get_Namespace() const { + return _namespace_; +} + +void CreateVectorIndexRequest::set_Namespace(const std::string &_namespace) { + _namespace_ = _namespace; + setParameter(std::string("Namespace"), _namespace); +} + +std::string CreateVectorIndexRequest::getMetrics() const { + return metrics_; +} + +void CreateVectorIndexRequest::setMetrics(const std::string &metrics) { + metrics_ = metrics; + setParameter(std::string("Metrics"), metrics); +} + diff --git a/gpdb/src/model/CreateVectorIndexResult.cc b/gpdb/src/model/CreateVectorIndexResult.cc new file mode 100644 index 000000000..848919f10 --- /dev/null +++ b/gpdb/src/model/CreateVectorIndexResult.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::Gpdb; +using namespace AlibabaCloud::Gpdb::Model; + +CreateVectorIndexResult::CreateVectorIndexResult() : + ServiceResult() +{} + +CreateVectorIndexResult::CreateVectorIndexResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateVectorIndexResult::~CreateVectorIndexResult() +{} + +void CreateVectorIndexResult::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["Status"].isNull()) + status_ = value["Status"].asString(); + +} + +std::string CreateVectorIndexResult::getStatus()const +{ + return status_; +} + +std::string CreateVectorIndexResult::getMessage()const +{ + return message_; +} + diff --git a/gpdb/src/model/DeleteCollectionDataRequest.cc b/gpdb/src/model/DeleteCollectionDataRequest.cc new file mode 100644 index 000000000..5335e50e8 --- /dev/null +++ b/gpdb/src/model/DeleteCollectionDataRequest.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::Gpdb::Model::DeleteCollectionDataRequest; + +DeleteCollectionDataRequest::DeleteCollectionDataRequest() + : RpcServiceRequest("gpdb", "2016-05-03", "DeleteCollectionData") { + setMethod(HttpRequest::Method::Post); +} + +DeleteCollectionDataRequest::~DeleteCollectionDataRequest() {} + +std::string DeleteCollectionDataRequest::getCollectionDataFilter() const { + return collectionDataFilter_; +} + +void DeleteCollectionDataRequest::setCollectionDataFilter(const std::string &collectionDataFilter) { + collectionDataFilter_ = collectionDataFilter; + setParameter(std::string("CollectionDataFilter"), collectionDataFilter); +} + +std::string DeleteCollectionDataRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DeleteCollectionDataRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DeleteCollectionDataRequest::getRegionId() const { + return regionId_; +} + +void DeleteCollectionDataRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DeleteCollectionDataRequest::getCollectionData() const { + return collectionData_; +} + +void DeleteCollectionDataRequest::setCollectionData(const std::string &collectionData) { + collectionData_ = collectionData; + setParameter(std::string("CollectionData"), collectionData); +} + +std::string DeleteCollectionDataRequest::getDBInstanceId() const { + return dBInstanceId_; +} + +void DeleteCollectionDataRequest::setDBInstanceId(const std::string &dBInstanceId) { + dBInstanceId_ = dBInstanceId; + setParameter(std::string("DBInstanceId"), dBInstanceId); +} + +std::string DeleteCollectionDataRequest::getCollection() const { + return collection_; +} + +void DeleteCollectionDataRequest::setCollection(const std::string &collection) { + collection_ = collection; + setParameter(std::string("Collection"), collection); +} + +long DeleteCollectionDataRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteCollectionDataRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DeleteCollectionDataRequest::getNamespacePassword() const { + return namespacePassword_; +} + +void DeleteCollectionDataRequest::setNamespacePassword(const std::string &namespacePassword) { + namespacePassword_ = namespacePassword; + setParameter(std::string("NamespacePassword"), namespacePassword); +} + +std::string DeleteCollectionDataRequest::get_Namespace() const { + return _namespace_; +} + +void DeleteCollectionDataRequest::set_Namespace(const std::string &_namespace) { + _namespace_ = _namespace; + setParameter(std::string("Namespace"), _namespace); +} + diff --git a/gpdb/src/model/DeleteCollectionDataResult.cc b/gpdb/src/model/DeleteCollectionDataResult.cc new file mode 100644 index 000000000..15e9ba86b --- /dev/null +++ b/gpdb/src/model/DeleteCollectionDataResult.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::Gpdb; +using namespace AlibabaCloud::Gpdb::Model; + +DeleteCollectionDataResult::DeleteCollectionDataResult() : + ServiceResult() +{} + +DeleteCollectionDataResult::DeleteCollectionDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteCollectionDataResult::~DeleteCollectionDataResult() +{} + +void DeleteCollectionDataResult::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["Status"].isNull()) + status_ = value["Status"].asString(); + if(!value["AppliedRows"].isNull()) + appliedRows_ = std::stol(value["AppliedRows"].asString()); + +} + +std::string DeleteCollectionDataResult::getStatus()const +{ + return status_; +} + +std::string DeleteCollectionDataResult::getMessage()const +{ + return message_; +} + +long DeleteCollectionDataResult::getAppliedRows()const +{ + return appliedRows_; +} + diff --git a/gpdb/src/model/DeleteCollectionRequest.cc b/gpdb/src/model/DeleteCollectionRequest.cc new file mode 100644 index 000000000..387055c2a --- /dev/null +++ b/gpdb/src/model/DeleteCollectionRequest.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::Gpdb::Model::DeleteCollectionRequest; + +DeleteCollectionRequest::DeleteCollectionRequest() + : RpcServiceRequest("gpdb", "2016-05-03", "DeleteCollection") { + setMethod(HttpRequest::Method::Post); +} + +DeleteCollectionRequest::~DeleteCollectionRequest() {} + +std::string DeleteCollectionRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DeleteCollectionRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DeleteCollectionRequest::getRegionId() const { + return regionId_; +} + +void DeleteCollectionRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DeleteCollectionRequest::getDBInstanceId() const { + return dBInstanceId_; +} + +void DeleteCollectionRequest::setDBInstanceId(const std::string &dBInstanceId) { + dBInstanceId_ = dBInstanceId; + setParameter(std::string("DBInstanceId"), dBInstanceId); +} + +std::string DeleteCollectionRequest::getCollection() const { + return collection_; +} + +void DeleteCollectionRequest::setCollection(const std::string &collection) { + collection_ = collection; + setParameter(std::string("Collection"), collection); +} + +long DeleteCollectionRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteCollectionRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DeleteCollectionRequest::getNamespacePassword() const { + return namespacePassword_; +} + +void DeleteCollectionRequest::setNamespacePassword(const std::string &namespacePassword) { + namespacePassword_ = namespacePassword; + setParameter(std::string("NamespacePassword"), namespacePassword); +} + +std::string DeleteCollectionRequest::get_Namespace() const { + return _namespace_; +} + +void DeleteCollectionRequest::set_Namespace(const std::string &_namespace) { + _namespace_ = _namespace; + setParameter(std::string("Namespace"), _namespace); +} + diff --git a/gpdb/src/model/DeleteCollectionResult.cc b/gpdb/src/model/DeleteCollectionResult.cc new file mode 100644 index 000000000..4363b23e0 --- /dev/null +++ b/gpdb/src/model/DeleteCollectionResult.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::Gpdb; +using namespace AlibabaCloud::Gpdb::Model; + +DeleteCollectionResult::DeleteCollectionResult() : + ServiceResult() +{} + +DeleteCollectionResult::DeleteCollectionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteCollectionResult::~DeleteCollectionResult() +{} + +void DeleteCollectionResult::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["Status"].isNull()) + status_ = value["Status"].asString(); + +} + +std::string DeleteCollectionResult::getStatus()const +{ + return status_; +} + +std::string DeleteCollectionResult::getMessage()const +{ + return message_; +} + diff --git a/gpdb/src/model/DeleteDBInstancePlanRequest.cc b/gpdb/src/model/DeleteDBInstancePlanRequest.cc new file mode 100644 index 000000000..46e5fa727 --- /dev/null +++ b/gpdb/src/model/DeleteDBInstancePlanRequest.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::Gpdb::Model::DeleteDBInstancePlanRequest; + +DeleteDBInstancePlanRequest::DeleteDBInstancePlanRequest() + : RpcServiceRequest("gpdb", "2016-05-03", "DeleteDBInstancePlan") { + setMethod(HttpRequest::Method::Post); +} + +DeleteDBInstancePlanRequest::~DeleteDBInstancePlanRequest() {} + +std::string DeleteDBInstancePlanRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DeleteDBInstancePlanRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DeleteDBInstancePlanRequest::getDBInstanceId() const { + return dBInstanceId_; +} + +void DeleteDBInstancePlanRequest::setDBInstanceId(const std::string &dBInstanceId) { + dBInstanceId_ = dBInstanceId; + setParameter(std::string("DBInstanceId"), dBInstanceId); +} + +long DeleteDBInstancePlanRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteDBInstancePlanRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DeleteDBInstancePlanRequest::getPlanId() const { + return planId_; +} + +void DeleteDBInstancePlanRequest::setPlanId(const std::string &planId) { + planId_ = planId; + setParameter(std::string("PlanId"), planId); +} + diff --git a/gpdb/src/model/DeleteDBInstancePlanResult.cc b/gpdb/src/model/DeleteDBInstancePlanResult.cc new file mode 100644 index 000000000..4ae36ee43 --- /dev/null +++ b/gpdb/src/model/DeleteDBInstancePlanResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Gpdb; +using namespace AlibabaCloud::Gpdb::Model; + +DeleteDBInstancePlanResult::DeleteDBInstancePlanResult() : + ServiceResult() +{} + +DeleteDBInstancePlanResult::DeleteDBInstancePlanResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteDBInstancePlanResult::~DeleteDBInstancePlanResult() +{} + +void DeleteDBInstancePlanResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["PlanId"].isNull()) + planId_ = value["PlanId"].asString(); + if(!value["DBInstanceId"].isNull()) + dBInstanceId_ = value["DBInstanceId"].asString(); + +} + +std::string DeleteDBInstancePlanResult::getStatus()const +{ + return status_; +} + +std::string DeleteDBInstancePlanResult::getDBInstanceId()const +{ + return dBInstanceId_; +} + +std::string DeleteDBInstancePlanResult::getPlanId()const +{ + return planId_; +} + +std::string DeleteDBInstancePlanResult::getErrorMessage()const +{ + return errorMessage_; +} + diff --git a/gpdb/src/model/DeleteDBInstanceRequest.cc b/gpdb/src/model/DeleteDBInstanceRequest.cc index 7b1901b7c..291b7d07f 100644 --- a/gpdb/src/model/DeleteDBInstanceRequest.cc +++ b/gpdb/src/model/DeleteDBInstanceRequest.cc @@ -43,6 +43,15 @@ void DeleteDBInstanceRequest::setAccessKeyId(const std::string &accessKeyId) { setParameter(std::string("AccessKeyId"), accessKeyId); } +std::string DeleteDBInstanceRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void DeleteDBInstanceRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + std::string DeleteDBInstanceRequest::getDBInstanceId() const { return dBInstanceId_; } diff --git a/gpdb/src/model/DeleteNamespaceRequest.cc b/gpdb/src/model/DeleteNamespaceRequest.cc new file mode 100644 index 000000000..47e3fd69c --- /dev/null +++ b/gpdb/src/model/DeleteNamespaceRequest.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::Gpdb::Model::DeleteNamespaceRequest; + +DeleteNamespaceRequest::DeleteNamespaceRequest() + : RpcServiceRequest("gpdb", "2016-05-03", "DeleteNamespace") { + setMethod(HttpRequest::Method::Post); +} + +DeleteNamespaceRequest::~DeleteNamespaceRequest() {} + +std::string DeleteNamespaceRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DeleteNamespaceRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DeleteNamespaceRequest::getRegionId() const { + return regionId_; +} + +void DeleteNamespaceRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DeleteNamespaceRequest::getManagerAccount() const { + return managerAccount_; +} + +void DeleteNamespaceRequest::setManagerAccount(const std::string &managerAccount) { + managerAccount_ = managerAccount; + setParameter(std::string("ManagerAccount"), managerAccount); +} + +std::string DeleteNamespaceRequest::getDBInstanceId() const { + return dBInstanceId_; +} + +void DeleteNamespaceRequest::setDBInstanceId(const std::string &dBInstanceId) { + dBInstanceId_ = dBInstanceId; + setParameter(std::string("DBInstanceId"), dBInstanceId); +} + +std::string DeleteNamespaceRequest::getManagerAccountPassword() const { + return managerAccountPassword_; +} + +void DeleteNamespaceRequest::setManagerAccountPassword(const std::string &managerAccountPassword) { + managerAccountPassword_ = managerAccountPassword; + setParameter(std::string("ManagerAccountPassword"), managerAccountPassword); +} + +long DeleteNamespaceRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteNamespaceRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DeleteNamespaceRequest::get_Namespace() const { + return _namespace_; +} + +void DeleteNamespaceRequest::set_Namespace(const std::string &_namespace) { + _namespace_ = _namespace; + setParameter(std::string("Namespace"), _namespace); +} + diff --git a/gpdb/src/model/DeleteNamespaceResult.cc b/gpdb/src/model/DeleteNamespaceResult.cc new file mode 100644 index 000000000..8549de9aa --- /dev/null +++ b/gpdb/src/model/DeleteNamespaceResult.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::Gpdb; +using namespace AlibabaCloud::Gpdb::Model; + +DeleteNamespaceResult::DeleteNamespaceResult() : + ServiceResult() +{} + +DeleteNamespaceResult::DeleteNamespaceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteNamespaceResult::~DeleteNamespaceResult() +{} + +void DeleteNamespaceResult::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["Status"].isNull()) + status_ = value["Status"].asString(); + +} + +std::string DeleteNamespaceResult::getStatus()const +{ + return status_; +} + +std::string DeleteNamespaceResult::getMessage()const +{ + return message_; +} + diff --git a/gpdb/src/model/DeleteVectorIndexRequest.cc b/gpdb/src/model/DeleteVectorIndexRequest.cc new file mode 100644 index 000000000..0d6e2ccc3 --- /dev/null +++ b/gpdb/src/model/DeleteVectorIndexRequest.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::Gpdb::Model::DeleteVectorIndexRequest; + +DeleteVectorIndexRequest::DeleteVectorIndexRequest() + : RpcServiceRequest("gpdb", "2016-05-03", "DeleteVectorIndex") { + setMethod(HttpRequest::Method::Post); +} + +DeleteVectorIndexRequest::~DeleteVectorIndexRequest() {} + +std::string DeleteVectorIndexRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DeleteVectorIndexRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DeleteVectorIndexRequest::getRegionId() const { + return regionId_; +} + +void DeleteVectorIndexRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DeleteVectorIndexRequest::getManagerAccount() const { + return managerAccount_; +} + +void DeleteVectorIndexRequest::setManagerAccount(const std::string &managerAccount) { + managerAccount_ = managerAccount; + setParameter(std::string("ManagerAccount"), managerAccount); +} + +std::string DeleteVectorIndexRequest::getDBInstanceId() const { + return dBInstanceId_; +} + +void DeleteVectorIndexRequest::setDBInstanceId(const std::string &dBInstanceId) { + dBInstanceId_ = dBInstanceId; + setParameter(std::string("DBInstanceId"), dBInstanceId); +} + +std::string DeleteVectorIndexRequest::getManagerAccountPassword() const { + return managerAccountPassword_; +} + +void DeleteVectorIndexRequest::setManagerAccountPassword(const std::string &managerAccountPassword) { + managerAccountPassword_ = managerAccountPassword; + setParameter(std::string("ManagerAccountPassword"), managerAccountPassword); +} + +std::string DeleteVectorIndexRequest::getCollection() const { + return collection_; +} + +void DeleteVectorIndexRequest::setCollection(const std::string &collection) { + collection_ = collection; + setParameter(std::string("Collection"), collection); +} + +long DeleteVectorIndexRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteVectorIndexRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DeleteVectorIndexRequest::get_Namespace() const { + return _namespace_; +} + +void DeleteVectorIndexRequest::set_Namespace(const std::string &_namespace) { + _namespace_ = _namespace; + setParameter(std::string("Namespace"), _namespace); +} + diff --git a/gpdb/src/model/DeleteVectorIndexResult.cc b/gpdb/src/model/DeleteVectorIndexResult.cc new file mode 100644 index 000000000..00889d8b7 --- /dev/null +++ b/gpdb/src/model/DeleteVectorIndexResult.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::Gpdb; +using namespace AlibabaCloud::Gpdb::Model; + +DeleteVectorIndexResult::DeleteVectorIndexResult() : + ServiceResult() +{} + +DeleteVectorIndexResult::DeleteVectorIndexResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteVectorIndexResult::~DeleteVectorIndexResult() +{} + +void DeleteVectorIndexResult::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["Status"].isNull()) + status_ = value["Status"].asString(); + +} + +std::string DeleteVectorIndexResult::getStatus()const +{ + return status_; +} + +std::string DeleteVectorIndexResult::getMessage()const +{ + return message_; +} + diff --git a/gpdb/src/model/DescribeAvailableResourcesResult.cc b/gpdb/src/model/DescribeAvailableResourcesResult.cc index c31e73e73..081620918 100644 --- a/gpdb/src/model/DescribeAvailableResourcesResult.cc +++ b/gpdb/src/model/DescribeAvailableResourcesResult.cc @@ -65,6 +65,8 @@ void DescribeAvailableResourcesResult::parse(const std::string &payload) supportedInstanceClassesObject.instanceClass = valueResourcesResourceSupportedEnginesSupportedEngineSupportedInstanceClassesSupportedInstanceClass["InstanceClass"].asString(); if(!valueResourcesResourceSupportedEnginesSupportedEngineSupportedInstanceClassesSupportedInstanceClass["StorageType"].isNull()) supportedInstanceClassesObject.storageType = valueResourcesResourceSupportedEnginesSupportedEngineSupportedInstanceClassesSupportedInstanceClass["StorageType"].asString(); + if(!valueResourcesResourceSupportedEnginesSupportedEngineSupportedInstanceClassesSupportedInstanceClass["Category"].isNull()) + supportedInstanceClassesObject.category = valueResourcesResourceSupportedEnginesSupportedEngineSupportedInstanceClassesSupportedInstanceClass["Category"].asString(); auto nodeCountNode = value["NodeCount"]; if(!nodeCountNode["Step"].isNull()) supportedInstanceClassesObject.nodeCount.step = nodeCountNode["Step"].asString(); diff --git a/gpdb/src/model/DescribeCollectionRequest.cc b/gpdb/src/model/DescribeCollectionRequest.cc new file mode 100644 index 000000000..702f90016 --- /dev/null +++ b/gpdb/src/model/DescribeCollectionRequest.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::Gpdb::Model::DescribeCollectionRequest; + +DescribeCollectionRequest::DescribeCollectionRequest() + : RpcServiceRequest("gpdb", "2016-05-03", "DescribeCollection") { + setMethod(HttpRequest::Method::Post); +} + +DescribeCollectionRequest::~DescribeCollectionRequest() {} + +std::string DescribeCollectionRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeCollectionRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribeCollectionRequest::getRegionId() const { + return regionId_; +} + +void DescribeCollectionRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DescribeCollectionRequest::getDBInstanceId() const { + return dBInstanceId_; +} + +void DescribeCollectionRequest::setDBInstanceId(const std::string &dBInstanceId) { + dBInstanceId_ = dBInstanceId; + setParameter(std::string("DBInstanceId"), dBInstanceId); +} + +std::string DescribeCollectionRequest::getCollection() const { + return collection_; +} + +void DescribeCollectionRequest::setCollection(const std::string &collection) { + collection_ = collection; + setParameter(std::string("Collection"), collection); +} + +long DescribeCollectionRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeCollectionRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DescribeCollectionRequest::getNamespacePassword() const { + return namespacePassword_; +} + +void DescribeCollectionRequest::setNamespacePassword(const std::string &namespacePassword) { + namespacePassword_ = namespacePassword; + setParameter(std::string("NamespacePassword"), namespacePassword); +} + +std::string DescribeCollectionRequest::get_Namespace() const { + return _namespace_; +} + +void DescribeCollectionRequest::set_Namespace(const std::string &_namespace) { + _namespace_ = _namespace; + setParameter(std::string("Namespace"), _namespace); +} + diff --git a/gpdb/src/model/DescribeCollectionResult.cc b/gpdb/src/model/DescribeCollectionResult.cc new file mode 100644 index 000000000..ae3935737 --- /dev/null +++ b/gpdb/src/model/DescribeCollectionResult.cc @@ -0,0 +1,114 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Gpdb; +using namespace AlibabaCloud::Gpdb::Model; + +DescribeCollectionResult::DescribeCollectionResult() : + ServiceResult() +{} + +DescribeCollectionResult::DescribeCollectionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeCollectionResult::~DescribeCollectionResult() +{} + +void DescribeCollectionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Dimension"].isNull()) + dimension_ = std::stoi(value["Dimension"].asString()); + if(!value["FullTextRetrievalFields"].isNull()) + fullTextRetrievalFields_ = value["FullTextRetrievalFields"].asString(); + if(!value["Metadata"].isNull()) + metadata_ = value["Metadata"].asString(); + if(!value["Metrics"].isNull()) + metrics_ = value["Metrics"].asString(); + if(!value["Parser"].isNull()) + parser_ = value["Parser"].asString(); + if(!value["DBInstanceId"].isNull()) + dBInstanceId_ = value["DBInstanceId"].asString(); + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + if(!value["Namespace"].isNull()) + _namespace_ = value["Namespace"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + +} + +std::string DescribeCollectionResult::getStatus()const +{ + return status_; +} + +std::string DescribeCollectionResult::getMetrics()const +{ + return metrics_; +} + +std::string DescribeCollectionResult::getMessage()const +{ + return message_; +} + +std::string DescribeCollectionResult::getDBInstanceId()const +{ + return dBInstanceId_; +} + +std::string DescribeCollectionResult::getMetadata()const +{ + return metadata_; +} + +std::string DescribeCollectionResult::get_Namespace()const +{ + return _namespace_; +} + +int DescribeCollectionResult::getDimension()const +{ + return dimension_; +} + +std::string DescribeCollectionResult::getRegionId()const +{ + return regionId_; +} + +std::string DescribeCollectionResult::getFullTextRetrievalFields()const +{ + return fullTextRetrievalFields_; +} + +std::string DescribeCollectionResult::getParser()const +{ + return parser_; +} + diff --git a/gpdb/src/model/DescribeDBClusterNodeRequest.cc b/gpdb/src/model/DescribeDBClusterNodeRequest.cc new file mode 100644 index 000000000..91801a884 --- /dev/null +++ b/gpdb/src/model/DescribeDBClusterNodeRequest.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::Gpdb::Model::DescribeDBClusterNodeRequest; + +DescribeDBClusterNodeRequest::DescribeDBClusterNodeRequest() + : RpcServiceRequest("gpdb", "2016-05-03", "DescribeDBClusterNode") { + setMethod(HttpRequest::Method::Post); +} + +DescribeDBClusterNodeRequest::~DescribeDBClusterNodeRequest() {} + +std::string DescribeDBClusterNodeRequest::getNodeType() const { + return nodeType_; +} + +void DescribeDBClusterNodeRequest::setNodeType(const std::string &nodeType) { + nodeType_ = nodeType; + setParameter(std::string("NodeType"), nodeType); +} + +std::string DescribeDBClusterNodeRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeDBClusterNodeRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribeDBClusterNodeRequest::getDBInstanceId() const { + return dBInstanceId_; +} + +void DescribeDBClusterNodeRequest::setDBInstanceId(const std::string &dBInstanceId) { + dBInstanceId_ = dBInstanceId; + setParameter(std::string("DBInstanceId"), dBInstanceId); +} + diff --git a/gpdb/src/model/DescribeDBClusterNodeResult.cc b/gpdb/src/model/DescribeDBClusterNodeResult.cc new file mode 100644 index 000000000..aac9a8016 --- /dev/null +++ b/gpdb/src/model/DescribeDBClusterNodeResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Gpdb; +using namespace AlibabaCloud::Gpdb::Model; + +DescribeDBClusterNodeResult::DescribeDBClusterNodeResult() : + ServiceResult() +{} + +DescribeDBClusterNodeResult::DescribeDBClusterNodeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDBClusterNodeResult::~DescribeDBClusterNodeResult() +{} + +void DescribeDBClusterNodeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allNodesNode = value["Nodes"]["Node"]; + for (auto valueNodesNode : allNodesNode) + { + Node nodesObject; + if(!valueNodesNode["Name"].isNull()) + nodesObject.name = valueNodesNode["Name"].asString(); + nodes_.push_back(nodesObject); + } + if(!value["DBClusterId"].isNull()) + dBClusterId_ = value["DBClusterId"].asString(); + +} + +std::string DescribeDBClusterNodeResult::getDBClusterId()const +{ + return dBClusterId_; +} + +std::vector DescribeDBClusterNodeResult::getNodes()const +{ + return nodes_; +} + diff --git a/gpdb/src/model/DescribeDBClusterPerformanceRequest.cc b/gpdb/src/model/DescribeDBClusterPerformanceRequest.cc index abcd1f72a..71f3aab4a 100644 --- a/gpdb/src/model/DescribeDBClusterPerformanceRequest.cc +++ b/gpdb/src/model/DescribeDBClusterPerformanceRequest.cc @@ -25,6 +25,15 @@ DescribeDBClusterPerformanceRequest::DescribeDBClusterPerformanceRequest() DescribeDBClusterPerformanceRequest::~DescribeDBClusterPerformanceRequest() {} +std::string DescribeDBClusterPerformanceRequest::getNodeType() const { + return nodeType_; +} + +void DescribeDBClusterPerformanceRequest::setNodeType(const std::string &nodeType) { + nodeType_ = nodeType; + setParameter(std::string("NodeType"), nodeType); +} + std::string DescribeDBClusterPerformanceRequest::getStartTime() const { return startTime_; } @@ -70,3 +79,12 @@ void DescribeDBClusterPerformanceRequest::setEndTime(const std::string &endTime) setParameter(std::string("EndTime"), endTime); } +std::string DescribeDBClusterPerformanceRequest::getNodes() const { + return nodes_; +} + +void DescribeDBClusterPerformanceRequest::setNodes(const std::string &nodes) { + nodes_ = nodes; + setParameter(std::string("Nodes"), nodes); +} + diff --git a/gpdb/src/model/DescribeDBInstanceAttributeRequest.cc b/gpdb/src/model/DescribeDBInstanceAttributeRequest.cc index ec3a4a9f4..4edc6baf0 100644 --- a/gpdb/src/model/DescribeDBInstanceAttributeRequest.cc +++ b/gpdb/src/model/DescribeDBInstanceAttributeRequest.cc @@ -34,6 +34,15 @@ void DescribeDBInstanceAttributeRequest::setAccessKeyId(const std::string &acces setParameter(std::string("AccessKeyId"), accessKeyId); } +std::string DescribeDBInstanceAttributeRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void DescribeDBInstanceAttributeRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + std::string DescribeDBInstanceAttributeRequest::getDBInstanceId() const { return dBInstanceId_; } diff --git a/gpdb/src/model/DescribeDBInstanceAttributeResult.cc b/gpdb/src/model/DescribeDBInstanceAttributeResult.cc index 6a4471fd5..28c31db28 100644 --- a/gpdb/src/model/DescribeDBInstanceAttributeResult.cc +++ b/gpdb/src/model/DescribeDBInstanceAttributeResult.cc @@ -145,6 +145,24 @@ void DescribeDBInstanceAttributeResult::parse(const std::string &payload) itemsObject.encryptionKey = valueItemsDBInstanceAttribute["EncryptionKey"].asString(); if(!valueItemsDBInstanceAttribute["EncryptionType"].isNull()) itemsObject.encryptionType = valueItemsDBInstanceAttribute["EncryptionType"].asString(); + if(!valueItemsDBInstanceAttribute["CoreVersion"].isNull()) + itemsObject.coreVersion = valueItemsDBInstanceAttribute["CoreVersion"].asString(); + if(!valueItemsDBInstanceAttribute["RunningTime"].isNull()) + itemsObject.runningTime = valueItemsDBInstanceAttribute["RunningTime"].asString(); + if(!valueItemsDBInstanceAttribute["StartTime"].isNull()) + itemsObject.startTime = valueItemsDBInstanceAttribute["StartTime"].asString(); + if(!valueItemsDBInstanceAttribute["ResourceGroupId"].isNull()) + itemsObject.resourceGroupId = valueItemsDBInstanceAttribute["ResourceGroupId"].asString(); + if(!valueItemsDBInstanceAttribute["ServerlessResource"].isNull()) + itemsObject.serverlessResource = std::stoi(valueItemsDBInstanceAttribute["ServerlessResource"].asString()); + if(!valueItemsDBInstanceAttribute["IdleTime"].isNull()) + itemsObject.idleTime = std::stoi(valueItemsDBInstanceAttribute["IdleTime"].asString()); + if(!valueItemsDBInstanceAttribute["ServerlessMode"].isNull()) + itemsObject.serverlessMode = valueItemsDBInstanceAttribute["ServerlessMode"].asString(); + if(!valueItemsDBInstanceAttribute["SegDiskPerformanceLevel"].isNull()) + itemsObject.segDiskPerformanceLevel = valueItemsDBInstanceAttribute["SegDiskPerformanceLevel"].asString(); + if(!valueItemsDBInstanceAttribute["VectorConfigurationStatus"].isNull()) + itemsObject.vectorConfigurationStatus = valueItemsDBInstanceAttribute["VectorConfigurationStatus"].asString(); auto allTagsNode = valueItemsDBInstanceAttribute["Tags"]["Tag"]; for (auto valueItemsDBInstanceAttributeTagsTag : allTagsNode) { diff --git a/gpdb/src/model/DescribeDBInstanceDataBloatRequest.cc b/gpdb/src/model/DescribeDBInstanceDataBloatRequest.cc new file mode 100644 index 000000000..0aebabb30 --- /dev/null +++ b/gpdb/src/model/DescribeDBInstanceDataBloatRequest.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::Gpdb::Model::DescribeDBInstanceDataBloatRequest; + +DescribeDBInstanceDataBloatRequest::DescribeDBInstanceDataBloatRequest() + : RpcServiceRequest("gpdb", "2016-05-03", "DescribeDBInstanceDataBloat") { + setMethod(HttpRequest::Method::Post); +} + +DescribeDBInstanceDataBloatRequest::~DescribeDBInstanceDataBloatRequest() {} + +int DescribeDBInstanceDataBloatRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeDBInstanceDataBloatRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string DescribeDBInstanceDataBloatRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeDBInstanceDataBloatRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +int DescribeDBInstanceDataBloatRequest::getPageSize() const { + return pageSize_; +} + +void DescribeDBInstanceDataBloatRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string DescribeDBInstanceDataBloatRequest::getDBInstanceId() const { + return dBInstanceId_; +} + +void DescribeDBInstanceDataBloatRequest::setDBInstanceId(const std::string &dBInstanceId) { + dBInstanceId_ = dBInstanceId; + setParameter(std::string("DBInstanceId"), dBInstanceId); +} + diff --git a/gpdb/src/model/DescribeDBInstanceDataBloatResult.cc b/gpdb/src/model/DescribeDBInstanceDataBloatResult.cc new file mode 100644 index 000000000..530cf85cb --- /dev/null +++ b/gpdb/src/model/DescribeDBInstanceDataBloatResult.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::Gpdb; +using namespace AlibabaCloud::Gpdb::Model; + +DescribeDBInstanceDataBloatResult::DescribeDBInstanceDataBloatResult() : + ServiceResult() +{} + +DescribeDBInstanceDataBloatResult::DescribeDBInstanceDataBloatResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDBInstanceDataBloatResult::~DescribeDBInstanceDataBloatResult() +{} + +void DescribeDBInstanceDataBloatResult::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["Sequence"].isNull()) + itemsObject.sequence = std::stoi(valueItemsItemsItem["Sequence"].asString()); + if(!valueItemsItemsItem["DatabaseName"].isNull()) + itemsObject.databaseName = valueItemsItemsItem["DatabaseName"].asString(); + if(!valueItemsItemsItem["SchemaName"].isNull()) + itemsObject.schemaName = valueItemsItemsItem["SchemaName"].asString(); + if(!valueItemsItemsItem["TableName"].isNull()) + itemsObject.tableName = valueItemsItemsItem["TableName"].asString(); + if(!valueItemsItemsItem["StorageType"].isNull()) + itemsObject.storageType = valueItemsItemsItem["StorageType"].asString(); + if(!valueItemsItemsItem["ExpectTableSize"].isNull()) + itemsObject.expectTableSize = valueItemsItemsItem["ExpectTableSize"].asString(); + if(!valueItemsItemsItem["RealTableSize"].isNull()) + itemsObject.realTableSize = valueItemsItemsItem["RealTableSize"].asString(); + if(!valueItemsItemsItem["BloatSize"].isNull()) + itemsObject.bloatSize = valueItemsItemsItem["BloatSize"].asString(); + if(!valueItemsItemsItem["BloatCeoff"].isNull()) + itemsObject.bloatCeoff = valueItemsItemsItem["BloatCeoff"].asString(); + if(!valueItemsItemsItem["SuggestedAction"].isNull()) + itemsObject.suggestedAction = valueItemsItemsItem["SuggestedAction"].asString(); + if(!valueItemsItemsItem["TimeLastVacuumed"].isNull()) + itemsObject.timeLastVacuumed = valueItemsItemsItem["TimeLastVacuumed"].asString(); + if(!valueItemsItemsItem["TimeLastUpdated"].isNull()) + itemsObject.timeLastUpdated = valueItemsItemsItem["TimeLastUpdated"].asString(); + items_.push_back(itemsObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + +} + +int DescribeDBInstanceDataBloatResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeDBInstanceDataBloatResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeDBInstanceDataBloatResult::getItems()const +{ + return items_; +} + diff --git a/gpdb/src/model/DescribeDBInstanceDataSkewRequest.cc b/gpdb/src/model/DescribeDBInstanceDataSkewRequest.cc new file mode 100644 index 000000000..073cf07d4 --- /dev/null +++ b/gpdb/src/model/DescribeDBInstanceDataSkewRequest.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::Gpdb::Model::DescribeDBInstanceDataSkewRequest; + +DescribeDBInstanceDataSkewRequest::DescribeDBInstanceDataSkewRequest() + : RpcServiceRequest("gpdb", "2016-05-03", "DescribeDBInstanceDataSkew") { + setMethod(HttpRequest::Method::Post); +} + +DescribeDBInstanceDataSkewRequest::~DescribeDBInstanceDataSkewRequest() {} + +int DescribeDBInstanceDataSkewRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeDBInstanceDataSkewRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string DescribeDBInstanceDataSkewRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeDBInstanceDataSkewRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +int DescribeDBInstanceDataSkewRequest::getPageSize() const { + return pageSize_; +} + +void DescribeDBInstanceDataSkewRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string DescribeDBInstanceDataSkewRequest::getDBInstanceId() const { + return dBInstanceId_; +} + +void DescribeDBInstanceDataSkewRequest::setDBInstanceId(const std::string &dBInstanceId) { + dBInstanceId_ = dBInstanceId; + setParameter(std::string("DBInstanceId"), dBInstanceId); +} + diff --git a/gpdb/src/model/DescribeDBInstanceDataSkewResult.cc b/gpdb/src/model/DescribeDBInstanceDataSkewResult.cc new file mode 100644 index 000000000..017ff9dcc --- /dev/null +++ b/gpdb/src/model/DescribeDBInstanceDataSkewResult.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::Gpdb; +using namespace AlibabaCloud::Gpdb::Model; + +DescribeDBInstanceDataSkewResult::DescribeDBInstanceDataSkewResult() : + ServiceResult() +{} + +DescribeDBInstanceDataSkewResult::DescribeDBInstanceDataSkewResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDBInstanceDataSkewResult::~DescribeDBInstanceDataSkewResult() +{} + +void DescribeDBInstanceDataSkewResult::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["Sequence"].isNull()) + itemsObject.sequence = std::stoi(valueItemsItemsItem["Sequence"].asString()); + if(!valueItemsItemsItem["DatabaseName"].isNull()) + itemsObject.databaseName = valueItemsItemsItem["DatabaseName"].asString(); + if(!valueItemsItemsItem["SchemaName"].isNull()) + itemsObject.schemaName = valueItemsItemsItem["SchemaName"].asString(); + if(!valueItemsItemsItem["TableName"].isNull()) + itemsObject.tableName = valueItemsItemsItem["TableName"].asString(); + if(!valueItemsItemsItem["Owner"].isNull()) + itemsObject.owner = valueItemsItemsItem["Owner"].asString(); + if(!valueItemsItemsItem["TableSize"].isNull()) + itemsObject.tableSize = valueItemsItemsItem["TableSize"].asString(); + if(!valueItemsItemsItem["TableSkew"].isNull()) + itemsObject.tableSkew = valueItemsItemsItem["TableSkew"].asString(); + if(!valueItemsItemsItem["DistributeKey"].isNull()) + itemsObject.distributeKey = valueItemsItemsItem["DistributeKey"].asString(); + if(!valueItemsItemsItem["TimeLastUpdated"].isNull()) + itemsObject.timeLastUpdated = valueItemsItemsItem["TimeLastUpdated"].asString(); + items_.push_back(itemsObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + +} + +int DescribeDBInstanceDataSkewResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeDBInstanceDataSkewResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeDBInstanceDataSkewResult::getItems()const +{ + return items_; +} + diff --git a/gpdb/src/model/DescribeDBInstanceDiagnosisSummaryRequest.cc b/gpdb/src/model/DescribeDBInstanceDiagnosisSummaryRequest.cc new file mode 100644 index 000000000..d7bdf0877 --- /dev/null +++ b/gpdb/src/model/DescribeDBInstanceDiagnosisSummaryRequest.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::Gpdb::Model::DescribeDBInstanceDiagnosisSummaryRequest; + +DescribeDBInstanceDiagnosisSummaryRequest::DescribeDBInstanceDiagnosisSummaryRequest() + : RpcServiceRequest("gpdb", "2016-05-03", "DescribeDBInstanceDiagnosisSummary") { + setMethod(HttpRequest::Method::Post); +} + +DescribeDBInstanceDiagnosisSummaryRequest::~DescribeDBInstanceDiagnosisSummaryRequest() {} + +std::string DescribeDBInstanceDiagnosisSummaryRequest::getStartStatus() const { + return startStatus_; +} + +void DescribeDBInstanceDiagnosisSummaryRequest::setStartStatus(const std::string &startStatus) { + startStatus_ = startStatus; + setParameter(std::string("StartStatus"), startStatus); +} + +int DescribeDBInstanceDiagnosisSummaryRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeDBInstanceDiagnosisSummaryRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string DescribeDBInstanceDiagnosisSummaryRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeDBInstanceDiagnosisSummaryRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +int DescribeDBInstanceDiagnosisSummaryRequest::getPageSize() const { + return pageSize_; +} + +void DescribeDBInstanceDiagnosisSummaryRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string DescribeDBInstanceDiagnosisSummaryRequest::getDBInstanceId() const { + return dBInstanceId_; +} + +void DescribeDBInstanceDiagnosisSummaryRequest::setDBInstanceId(const std::string &dBInstanceId) { + dBInstanceId_ = dBInstanceId; + setParameter(std::string("DBInstanceId"), dBInstanceId); +} + +std::string DescribeDBInstanceDiagnosisSummaryRequest::getSyncMode() const { + return syncMode_; +} + +void DescribeDBInstanceDiagnosisSummaryRequest::setSyncMode(const std::string &syncMode) { + syncMode_ = syncMode; + setParameter(std::string("SyncMode"), syncMode); +} + +std::string DescribeDBInstanceDiagnosisSummaryRequest::getRolePreferd() const { + return rolePreferd_; +} + +void DescribeDBInstanceDiagnosisSummaryRequest::setRolePreferd(const std::string &rolePreferd) { + rolePreferd_ = rolePreferd; + setParameter(std::string("RolePreferd"), rolePreferd); +} + diff --git a/gpdb/src/model/DescribeDBInstanceDiagnosisSummaryResult.cc b/gpdb/src/model/DescribeDBInstanceDiagnosisSummaryResult.cc new file mode 100644 index 000000000..9a024419d --- /dev/null +++ b/gpdb/src/model/DescribeDBInstanceDiagnosisSummaryResult.cc @@ -0,0 +1,127 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Gpdb; +using namespace AlibabaCloud::Gpdb::Model; + +DescribeDBInstanceDiagnosisSummaryResult::DescribeDBInstanceDiagnosisSummaryResult() : + ServiceResult() +{} + +DescribeDBInstanceDiagnosisSummaryResult::DescribeDBInstanceDiagnosisSummaryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDBInstanceDiagnosisSummaryResult::~DescribeDBInstanceDiagnosisSummaryResult() +{} + +void DescribeDBInstanceDiagnosisSummaryResult::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["Hostname"].isNull()) + itemsObject.hostname = valueItemsItemsItem["Hostname"].asString(); + if(!valueItemsItemsItem["NodeAddress"].isNull()) + itemsObject.nodeAddress = valueItemsItemsItem["NodeAddress"].asString(); + if(!valueItemsItemsItem["NodeType"].isNull()) + itemsObject.nodeType = valueItemsItemsItem["NodeType"].asString(); + if(!valueItemsItemsItem["NodeName"].isNull()) + itemsObject.nodeName = valueItemsItemsItem["NodeName"].asString(); + if(!valueItemsItemsItem["NodePort"].isNull()) + itemsObject.nodePort = valueItemsItemsItem["NodePort"].asString(); + if(!valueItemsItemsItem["NodeID"].isNull()) + itemsObject.nodeID = valueItemsItemsItem["NodeID"].asString(); + if(!valueItemsItemsItem["NodeStatus"].isNull()) + itemsObject.nodeStatus = valueItemsItemsItem["NodeStatus"].asString(); + if(!valueItemsItemsItem["NodeRole"].isNull()) + itemsObject.nodeRole = valueItemsItemsItem["NodeRole"].asString(); + if(!valueItemsItemsItem["NodePreferredRole"].isNull()) + itemsObject.nodePreferredRole = valueItemsItemsItem["NodePreferredRole"].asString(); + if(!valueItemsItemsItem["NodeReplicationMode"].isNull()) + itemsObject.nodeReplicationMode = valueItemsItemsItem["NodeReplicationMode"].asString(); + if(!valueItemsItemsItem["NodeCID"].isNull()) + itemsObject.nodeCID = valueItemsItemsItem["NodeCID"].asString(); + items_.push_back(itemsObject); + } + auto masterStatusInfoNode = value["MasterStatusInfo"]; + if(!masterStatusInfoNode["NormalNodeNum"].isNull()) + masterStatusInfo_.normalNodeNum = std::stoi(masterStatusInfoNode["NormalNodeNum"].asString()); + if(!masterStatusInfoNode["ExceptionNodeNum"].isNull()) + masterStatusInfo_.exceptionNodeNum = std::stoi(masterStatusInfoNode["ExceptionNodeNum"].asString()); + if(!masterStatusInfoNode["NotSyncingNodeNum"].isNull()) + masterStatusInfo_.notSyncingNodeNum = std::stoi(masterStatusInfoNode["NotSyncingNodeNum"].asString()); + if(!masterStatusInfoNode["SyncedNodeNum"].isNull()) + masterStatusInfo_.syncedNodeNum = std::stoi(masterStatusInfoNode["SyncedNodeNum"].asString()); + if(!masterStatusInfoNode["PreferredNodeNum"].isNull()) + masterStatusInfo_.preferredNodeNum = std::stoi(masterStatusInfoNode["PreferredNodeNum"].asString()); + if(!masterStatusInfoNode["NotPreferredNodeNum"].isNull()) + masterStatusInfo_.notPreferredNodeNum = std::stoi(masterStatusInfoNode["NotPreferredNodeNum"].asString()); + auto segmentStatusInfoNode = value["SegmentStatusInfo"]; + if(!segmentStatusInfoNode["NormalNodeNum"].isNull()) + segmentStatusInfo_.normalNodeNum = std::stoi(segmentStatusInfoNode["NormalNodeNum"].asString()); + if(!segmentStatusInfoNode["ExceptionNodeNum"].isNull()) + segmentStatusInfo_.exceptionNodeNum = std::stoi(segmentStatusInfoNode["ExceptionNodeNum"].asString()); + if(!segmentStatusInfoNode["NotSyncingNodeNum"].isNull()) + segmentStatusInfo_.notSyncingNodeNum = std::stoi(segmentStatusInfoNode["NotSyncingNodeNum"].asString()); + if(!segmentStatusInfoNode["SyncedNodeNum"].isNull()) + segmentStatusInfo_.syncedNodeNum = std::stoi(segmentStatusInfoNode["SyncedNodeNum"].asString()); + if(!segmentStatusInfoNode["PreferredNodeNum"].isNull()) + segmentStatusInfo_.preferredNodeNum = std::stoi(segmentStatusInfoNode["PreferredNodeNum"].asString()); + if(!segmentStatusInfoNode["NotPreferredNodeNum"].isNull()) + segmentStatusInfo_.notPreferredNodeNum = std::stoi(segmentStatusInfoNode["NotPreferredNodeNum"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = value["TotalCount"].asString(); + if(!value["PageNumber"].isNull()) + pageNumber_ = value["PageNumber"].asString(); + +} + +DescribeDBInstanceDiagnosisSummaryResult::SegmentStatusInfo DescribeDBInstanceDiagnosisSummaryResult::getSegmentStatusInfo()const +{ + return segmentStatusInfo_; +} + +std::string DescribeDBInstanceDiagnosisSummaryResult::getTotalCount()const +{ + return totalCount_; +} + +DescribeDBInstanceDiagnosisSummaryResult::MasterStatusInfo DescribeDBInstanceDiagnosisSummaryResult::getMasterStatusInfo()const +{ + return masterStatusInfo_; +} + +std::string DescribeDBInstanceDiagnosisSummaryResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeDBInstanceDiagnosisSummaryResult::getItems()const +{ + return items_; +} + diff --git a/gpdb/src/model/DescribeDBInstanceErrorLogRequest.cc b/gpdb/src/model/DescribeDBInstanceErrorLogRequest.cc new file mode 100644 index 000000000..f681f93c4 --- /dev/null +++ b/gpdb/src/model/DescribeDBInstanceErrorLogRequest.cc @@ -0,0 +1,126 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Gpdb::Model::DescribeDBInstanceErrorLogRequest; + +DescribeDBInstanceErrorLogRequest::DescribeDBInstanceErrorLogRequest() + : RpcServiceRequest("gpdb", "2016-05-03", "DescribeDBInstanceErrorLog") { + setMethod(HttpRequest::Method::Post); +} + +DescribeDBInstanceErrorLogRequest::~DescribeDBInstanceErrorLogRequest() {} + +std::string DescribeDBInstanceErrorLogRequest::getKeywords() const { + return keywords_; +} + +void DescribeDBInstanceErrorLogRequest::setKeywords(const std::string &keywords) { + keywords_ = keywords; + setParameter(std::string("Keywords"), keywords); +} + +std::string DescribeDBInstanceErrorLogRequest::getStartTime() const { + return startTime_; +} + +void DescribeDBInstanceErrorLogRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); +} + +int DescribeDBInstanceErrorLogRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeDBInstanceErrorLogRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string DescribeDBInstanceErrorLogRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeDBInstanceErrorLogRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribeDBInstanceErrorLogRequest::getDatabase() const { + return database_; +} + +void DescribeDBInstanceErrorLogRequest::setDatabase(const std::string &database) { + database_ = database; + setParameter(std::string("Database"), database); +} + +int DescribeDBInstanceErrorLogRequest::getPageSize() const { + return pageSize_; +} + +void DescribeDBInstanceErrorLogRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string DescribeDBInstanceErrorLogRequest::getHost() const { + return host_; +} + +void DescribeDBInstanceErrorLogRequest::setHost(const std::string &host) { + host_ = host; + setParameter(std::string("Host"), host); +} + +std::string DescribeDBInstanceErrorLogRequest::getDBInstanceId() const { + return dBInstanceId_; +} + +void DescribeDBInstanceErrorLogRequest::setDBInstanceId(const std::string &dBInstanceId) { + dBInstanceId_ = dBInstanceId; + setParameter(std::string("DBInstanceId"), dBInstanceId); +} + +std::string DescribeDBInstanceErrorLogRequest::getEndTime() const { + return endTime_; +} + +void DescribeDBInstanceErrorLogRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); +} + +std::string DescribeDBInstanceErrorLogRequest::getLogLevel() const { + return logLevel_; +} + +void DescribeDBInstanceErrorLogRequest::setLogLevel(const std::string &logLevel) { + logLevel_ = logLevel; + setParameter(std::string("LogLevel"), logLevel); +} + +std::string DescribeDBInstanceErrorLogRequest::getUser() const { + return user_; +} + +void DescribeDBInstanceErrorLogRequest::setUser(const std::string &user) { + user_ = user; + setParameter(std::string("User"), user); +} + diff --git a/gpdb/src/model/DescribeDBInstanceErrorLogResult.cc b/gpdb/src/model/DescribeDBInstanceErrorLogResult.cc new file mode 100644 index 000000000..0796e16f6 --- /dev/null +++ b/gpdb/src/model/DescribeDBInstanceErrorLogResult.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 +#include + +using namespace AlibabaCloud::Gpdb; +using namespace AlibabaCloud::Gpdb::Model; + +DescribeDBInstanceErrorLogResult::DescribeDBInstanceErrorLogResult() : + ServiceResult() +{} + +DescribeDBInstanceErrorLogResult::DescribeDBInstanceErrorLogResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDBInstanceErrorLogResult::~DescribeDBInstanceErrorLogResult() +{} + +void DescribeDBInstanceErrorLogResult::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["Time"].isNull()) + itemsObject.time = std::stol(valueItemsItemsItem["Time"].asString()); + if(!valueItemsItemsItem["LogLevel"].isNull()) + itemsObject.logLevel = valueItemsItemsItem["LogLevel"].asString(); + if(!valueItemsItemsItem["User"].isNull()) + itemsObject.user = valueItemsItemsItem["User"].asString(); + if(!valueItemsItemsItem["Database"].isNull()) + itemsObject.database = valueItemsItemsItem["Database"].asString(); + if(!valueItemsItemsItem["Host"].isNull()) + itemsObject.host = valueItemsItemsItem["Host"].asString(); + if(!valueItemsItemsItem["LogContext"].isNull()) + itemsObject.logContext = valueItemsItemsItem["LogContext"].asString(); + items_.push_back(itemsObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + +} + +int DescribeDBInstanceErrorLogResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeDBInstanceErrorLogResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeDBInstanceErrorLogResult::getItems()const +{ + return items_; +} + diff --git a/gpdb/src/model/DescribeDBInstanceIPArrayListRequest.cc b/gpdb/src/model/DescribeDBInstanceIPArrayListRequest.cc index 0330bea7d..d360286a6 100644 --- a/gpdb/src/model/DescribeDBInstanceIPArrayListRequest.cc +++ b/gpdb/src/model/DescribeDBInstanceIPArrayListRequest.cc @@ -34,6 +34,15 @@ void DescribeDBInstanceIPArrayListRequest::setAccessKeyId(const std::string &acc setParameter(std::string("AccessKeyId"), accessKeyId); } +std::string DescribeDBInstanceIPArrayListRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void DescribeDBInstanceIPArrayListRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + std::string DescribeDBInstanceIPArrayListRequest::getDBInstanceId() const { return dBInstanceId_; } diff --git a/gpdb/src/model/DescribeSQLLogFilesRequest.cc b/gpdb/src/model/DescribeDBInstanceIndexUsageRequest.cc similarity index 50% rename from gpdb/src/model/DescribeSQLLogFilesRequest.cc rename to gpdb/src/model/DescribeDBInstanceIndexUsageRequest.cc index 12e167f96..5d0a682de 100644 --- a/gpdb/src/model/DescribeSQLLogFilesRequest.cc +++ b/gpdb/src/model/DescribeDBInstanceIndexUsageRequest.cc @@ -14,59 +14,50 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::Gpdb::Model::DescribeSQLLogFilesRequest; +using AlibabaCloud::Gpdb::Model::DescribeDBInstanceIndexUsageRequest; -DescribeSQLLogFilesRequest::DescribeSQLLogFilesRequest() - : RpcServiceRequest("gpdb", "2016-05-03", "DescribeSQLLogFiles") { +DescribeDBInstanceIndexUsageRequest::DescribeDBInstanceIndexUsageRequest() + : RpcServiceRequest("gpdb", "2016-05-03", "DescribeDBInstanceIndexUsage") { setMethod(HttpRequest::Method::Post); } -DescribeSQLLogFilesRequest::~DescribeSQLLogFilesRequest() {} +DescribeDBInstanceIndexUsageRequest::~DescribeDBInstanceIndexUsageRequest() {} -int DescribeSQLLogFilesRequest::getPageNumber() const { +int DescribeDBInstanceIndexUsageRequest::getPageNumber() const { return pageNumber_; } -void DescribeSQLLogFilesRequest::setPageNumber(int pageNumber) { +void DescribeDBInstanceIndexUsageRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -std::string DescribeSQLLogFilesRequest::getAccessKeyId() const { +std::string DescribeDBInstanceIndexUsageRequest::getAccessKeyId() const { return accessKeyId_; } -void DescribeSQLLogFilesRequest::setAccessKeyId(const std::string &accessKeyId) { +void DescribeDBInstanceIndexUsageRequest::setAccessKeyId(const std::string &accessKeyId) { accessKeyId_ = accessKeyId; setParameter(std::string("AccessKeyId"), accessKeyId); } -int DescribeSQLLogFilesRequest::getPageSize() const { +int DescribeDBInstanceIndexUsageRequest::getPageSize() const { return pageSize_; } -void DescribeSQLLogFilesRequest::setPageSize(int pageSize) { +void DescribeDBInstanceIndexUsageRequest::setPageSize(int pageSize) { pageSize_ = pageSize; setParameter(std::string("PageSize"), std::to_string(pageSize)); } -std::string DescribeSQLLogFilesRequest::getDBInstanceId() const { +std::string DescribeDBInstanceIndexUsageRequest::getDBInstanceId() const { return dBInstanceId_; } -void DescribeSQLLogFilesRequest::setDBInstanceId(const std::string &dBInstanceId) { +void DescribeDBInstanceIndexUsageRequest::setDBInstanceId(const std::string &dBInstanceId) { dBInstanceId_ = dBInstanceId; setParameter(std::string("DBInstanceId"), dBInstanceId); } -std::string DescribeSQLLogFilesRequest::getFileName() const { - return fileName_; -} - -void DescribeSQLLogFilesRequest::setFileName(const std::string &fileName) { - fileName_ = fileName; - setParameter(std::string("FileName"), fileName); -} - diff --git a/gpdb/src/model/DescribeDBInstanceIndexUsageResult.cc b/gpdb/src/model/DescribeDBInstanceIndexUsageResult.cc new file mode 100644 index 000000000..d60baebb7 --- /dev/null +++ b/gpdb/src/model/DescribeDBInstanceIndexUsageResult.cc @@ -0,0 +1,89 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Gpdb; +using namespace AlibabaCloud::Gpdb::Model; + +DescribeDBInstanceIndexUsageResult::DescribeDBInstanceIndexUsageResult() : + ServiceResult() +{} + +DescribeDBInstanceIndexUsageResult::DescribeDBInstanceIndexUsageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDBInstanceIndexUsageResult::~DescribeDBInstanceIndexUsageResult() +{} + +void DescribeDBInstanceIndexUsageResult::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["DatabaseName"].isNull()) + itemsObject.databaseName = valueItemsItemsItem["DatabaseName"].asString(); + if(!valueItemsItemsItem["SchemaName"].isNull()) + itemsObject.schemaName = valueItemsItemsItem["SchemaName"].asString(); + if(!valueItemsItemsItem["TableName"].isNull()) + itemsObject.tableName = valueItemsItemsItem["TableName"].asString(); + if(!valueItemsItemsItem["IsPartitionTable"].isNull()) + itemsObject.isPartitionTable = valueItemsItemsItem["IsPartitionTable"].asString() == "true"; + if(!valueItemsItemsItem["ParentTableName"].isNull()) + itemsObject.parentTableName = valueItemsItemsItem["ParentTableName"].asString(); + if(!valueItemsItemsItem["IndexName"].isNull()) + itemsObject.indexName = valueItemsItemsItem["IndexName"].asString(); + if(!valueItemsItemsItem["IndexSize"].isNull()) + itemsObject.indexSize = valueItemsItemsItem["IndexSize"].asString(); + if(!valueItemsItemsItem["IndexScanTimes"].isNull()) + itemsObject.indexScanTimes = std::stoi(valueItemsItemsItem["IndexScanTimes"].asString()); + if(!valueItemsItemsItem["IndexDef"].isNull()) + itemsObject.indexDef = valueItemsItemsItem["IndexDef"].asString(); + if(!valueItemsItemsItem["TimeLastUpdated"].isNull()) + itemsObject.timeLastUpdated = valueItemsItemsItem["TimeLastUpdated"].asString(); + items_.push_back(itemsObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + +} + +int DescribeDBInstanceIndexUsageResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeDBInstanceIndexUsageResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeDBInstanceIndexUsageResult::getItems()const +{ + return items_; +} + diff --git a/gpdb/src/model/DescribeDBInstanceNetInfoRequest.cc b/gpdb/src/model/DescribeDBInstanceNetInfoRequest.cc index a1bc80628..3326c247b 100644 --- a/gpdb/src/model/DescribeDBInstanceNetInfoRequest.cc +++ b/gpdb/src/model/DescribeDBInstanceNetInfoRequest.cc @@ -25,6 +25,15 @@ DescribeDBInstanceNetInfoRequest::DescribeDBInstanceNetInfoRequest() DescribeDBInstanceNetInfoRequest::~DescribeDBInstanceNetInfoRequest() {} +std::string DescribeDBInstanceNetInfoRequest::getConnectionString() const { + return connectionString_; +} + +void DescribeDBInstanceNetInfoRequest::setConnectionString(const std::string &connectionString) { + connectionString_ = connectionString; + setParameter(std::string("ConnectionString"), connectionString); +} + std::string DescribeDBInstanceNetInfoRequest::getAccessKeyId() const { return accessKeyId_; } diff --git a/gpdb/src/model/DescribeDBInstanceOnECSAttributeResult.cc b/gpdb/src/model/DescribeDBInstanceOnECSAttributeResult.cc deleted file mode 100644 index 179d08ecf..000000000 --- a/gpdb/src/model/DescribeDBInstanceOnECSAttributeResult.cc +++ /dev/null @@ -1,125 +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::Gpdb; -using namespace AlibabaCloud::Gpdb::Model; - -DescribeDBInstanceOnECSAttributeResult::DescribeDBInstanceOnECSAttributeResult() : - ServiceResult() -{} - -DescribeDBInstanceOnECSAttributeResult::DescribeDBInstanceOnECSAttributeResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeDBInstanceOnECSAttributeResult::~DescribeDBInstanceOnECSAttributeResult() -{} - -void DescribeDBInstanceOnECSAttributeResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allItemsNode = value["Items"]["DBInstanceAttribute"]; - for (auto valueItemsDBInstanceAttribute : allItemsNode) - { - DBInstanceAttribute itemsObject; - if(!valueItemsDBInstanceAttribute["CreationTime"].isNull()) - itemsObject.creationTime = valueItemsDBInstanceAttribute["CreationTime"].asString(); - if(!valueItemsDBInstanceAttribute["VpcId"].isNull()) - itemsObject.vpcId = valueItemsDBInstanceAttribute["VpcId"].asString(); - if(!valueItemsDBInstanceAttribute["EncryptionType"].isNull()) - itemsObject.encryptionType = valueItemsDBInstanceAttribute["EncryptionType"].asString(); - if(!valueItemsDBInstanceAttribute["InstanceDeployType"].isNull()) - itemsObject.instanceDeployType = valueItemsDBInstanceAttribute["InstanceDeployType"].asString(); - if(!valueItemsDBInstanceAttribute["PayType"].isNull()) - itemsObject.payType = valueItemsDBInstanceAttribute["PayType"].asString(); - if(!valueItemsDBInstanceAttribute["StorageType"].isNull()) - itemsObject.storageType = valueItemsDBInstanceAttribute["StorageType"].asString(); - if(!valueItemsDBInstanceAttribute["ConnectionMode"].isNull()) - itemsObject.connectionMode = valueItemsDBInstanceAttribute["ConnectionMode"].asString(); - if(!valueItemsDBInstanceAttribute["Port"].isNull()) - itemsObject.port = valueItemsDBInstanceAttribute["Port"].asString(); - if(!valueItemsDBInstanceAttribute["LockMode"].isNull()) - itemsObject.lockMode = valueItemsDBInstanceAttribute["LockMode"].asString(); - if(!valueItemsDBInstanceAttribute["EngineVersion"].isNull()) - itemsObject.engineVersion = valueItemsDBInstanceAttribute["EngineVersion"].asString(); - if(!valueItemsDBInstanceAttribute["MemorySize"].isNull()) - itemsObject.memorySize = std::stoi(valueItemsDBInstanceAttribute["MemorySize"].asString()); - if(!valueItemsDBInstanceAttribute["SegNodeNum"].isNull()) - itemsObject.segNodeNum = std::stoi(valueItemsDBInstanceAttribute["SegNodeNum"].asString()); - if(!valueItemsDBInstanceAttribute["ConnectionString"].isNull()) - itemsObject.connectionString = valueItemsDBInstanceAttribute["ConnectionString"].asString(); - if(!valueItemsDBInstanceAttribute["InstanceNetworkType"].isNull()) - itemsObject.instanceNetworkType = valueItemsDBInstanceAttribute["InstanceNetworkType"].asString(); - if(!valueItemsDBInstanceAttribute["EncryptionKey"].isNull()) - itemsObject.encryptionKey = valueItemsDBInstanceAttribute["EncryptionKey"].asString(); - if(!valueItemsDBInstanceAttribute["DBInstanceDescription"].isNull()) - itemsObject.dBInstanceDescription = valueItemsDBInstanceAttribute["DBInstanceDescription"].asString(); - if(!valueItemsDBInstanceAttribute["CpuCores"].isNull()) - itemsObject.cpuCores = std::stoi(valueItemsDBInstanceAttribute["CpuCores"].asString()); - if(!valueItemsDBInstanceAttribute["ExpireTime"].isNull()) - itemsObject.expireTime = valueItemsDBInstanceAttribute["ExpireTime"].asString(); - if(!valueItemsDBInstanceAttribute["DBInstanceStatus"].isNull()) - itemsObject.dBInstanceStatus = valueItemsDBInstanceAttribute["DBInstanceStatus"].asString(); - if(!valueItemsDBInstanceAttribute["StorageSize"].isNull()) - itemsObject.storageSize = std::stoi(valueItemsDBInstanceAttribute["StorageSize"].asString()); - if(!valueItemsDBInstanceAttribute["RegionId"].isNull()) - itemsObject.regionId = valueItemsDBInstanceAttribute["RegionId"].asString(); - if(!valueItemsDBInstanceAttribute["VSwitchId"].isNull()) - itemsObject.vSwitchId = valueItemsDBInstanceAttribute["VSwitchId"].asString(); - if(!valueItemsDBInstanceAttribute["ZoneId"].isNull()) - itemsObject.zoneId = valueItemsDBInstanceAttribute["ZoneId"].asString(); - if(!valueItemsDBInstanceAttribute["DBInstanceId"].isNull()) - itemsObject.dBInstanceId = valueItemsDBInstanceAttribute["DBInstanceId"].asString(); - if(!valueItemsDBInstanceAttribute["Engine"].isNull()) - itemsObject.engine = valueItemsDBInstanceAttribute["Engine"].asString(); - if(!valueItemsDBInstanceAttribute["DBInstanceClass"].isNull()) - itemsObject.dBInstanceClass = valueItemsDBInstanceAttribute["DBInstanceClass"].asString(); - if(!valueItemsDBInstanceAttribute["SupportRestore"].isNull()) - itemsObject.supportRestore = valueItemsDBInstanceAttribute["SupportRestore"].asString() == "true"; - if(!valueItemsDBInstanceAttribute["MinorVersion"].isNull()) - itemsObject.minorVersion = valueItemsDBInstanceAttribute["MinorVersion"].asString(); - if(!valueItemsDBInstanceAttribute["MasterNodeNum"].isNull()) - itemsObject.masterNodeNum = std::stoi(valueItemsDBInstanceAttribute["MasterNodeNum"].asString()); - if(!valueItemsDBInstanceAttribute["DBInstanceCategory"].isNull()) - itemsObject.dBInstanceCategory = valueItemsDBInstanceAttribute["DBInstanceCategory"].asString(); - auto allTagsNode = valueItemsDBInstanceAttribute["Tags"]["Tag"]; - for (auto valueItemsDBInstanceAttributeTagsTag : allTagsNode) - { - DBInstanceAttribute::Tag tagsObject; - if(!valueItemsDBInstanceAttributeTagsTag["Key"].isNull()) - tagsObject.key = valueItemsDBInstanceAttributeTagsTag["Key"].asString(); - if(!valueItemsDBInstanceAttributeTagsTag["Value"].isNull()) - tagsObject.value = valueItemsDBInstanceAttributeTagsTag["Value"].asString(); - itemsObject.tags.push_back(tagsObject); - } - items_.push_back(itemsObject); - } - -} - -std::vector DescribeDBInstanceOnECSAttributeResult::getItems()const -{ - return items_; -} - diff --git a/gpdb/src/model/DescribeDBInstancePerformanceRequest.cc b/gpdb/src/model/DescribeDBInstancePerformanceRequest.cc index 6472f9501..3887fb844 100644 --- a/gpdb/src/model/DescribeDBInstancePerformanceRequest.cc +++ b/gpdb/src/model/DescribeDBInstancePerformanceRequest.cc @@ -43,6 +43,15 @@ void DescribeDBInstancePerformanceRequest::setAccessKeyId(const std::string &acc setParameter(std::string("AccessKeyId"), accessKeyId); } +std::string DescribeDBInstancePerformanceRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void DescribeDBInstancePerformanceRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + std::string DescribeDBInstancePerformanceRequest::getDBInstanceId() const { return dBInstanceId_; } diff --git a/gpdb/src/model/DescribeDBInstancePerformanceResult.cc b/gpdb/src/model/DescribeDBInstancePerformanceResult.cc index 95b80d7e2..aca7533b2 100644 --- a/gpdb/src/model/DescribeDBInstancePerformanceResult.cc +++ b/gpdb/src/model/DescribeDBInstancePerformanceResult.cc @@ -44,10 +44,10 @@ void DescribeDBInstancePerformanceResult::parse(const std::string &payload) performanceKeys_.push_back(item.asString()); if(!value["EndTime"].isNull()) endTime_ = value["EndTime"].asString(); - if(!value["DBInstanceId"].isNull()) - dBInstanceId_ = value["DBInstanceId"].asString(); if(!value["StartTime"].isNull()) startTime_ = value["StartTime"].asString(); + if(!value["DBInstanceId"].isNull()) + dBInstanceId_ = value["DBInstanceId"].asString(); if(!value["Engine"].isNull()) engine_ = value["Engine"].asString(); diff --git a/gpdb/src/model/DescribeDBInstancePlansRequest.cc b/gpdb/src/model/DescribeDBInstancePlansRequest.cc new file mode 100644 index 000000000..ca6adec8b --- /dev/null +++ b/gpdb/src/model/DescribeDBInstancePlansRequest.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::Gpdb::Model::DescribeDBInstancePlansRequest; + +DescribeDBInstancePlansRequest::DescribeDBInstancePlansRequest() + : RpcServiceRequest("gpdb", "2016-05-03", "DescribeDBInstancePlans") { + setMethod(HttpRequest::Method::Post); +} + +DescribeDBInstancePlansRequest::~DescribeDBInstancePlansRequest() {} + +std::string DescribeDBInstancePlansRequest::getPlanType() const { + return planType_; +} + +void DescribeDBInstancePlansRequest::setPlanType(const std::string &planType) { + planType_ = planType; + setParameter(std::string("PlanType"), planType); +} + +std::string DescribeDBInstancePlansRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeDBInstancePlansRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribeDBInstancePlansRequest::getPlanCreateDate() const { + return planCreateDate_; +} + +void DescribeDBInstancePlansRequest::setPlanCreateDate(const std::string &planCreateDate) { + planCreateDate_ = planCreateDate; + setParameter(std::string("PlanCreateDate"), planCreateDate); +} + +std::string DescribeDBInstancePlansRequest::getDBInstanceId() const { + return dBInstanceId_; +} + +void DescribeDBInstancePlansRequest::setDBInstanceId(const std::string &dBInstanceId) { + dBInstanceId_ = dBInstanceId; + setParameter(std::string("DBInstanceId"), dBInstanceId); +} + +std::string DescribeDBInstancePlansRequest::getPlanDesc() const { + return planDesc_; +} + +void DescribeDBInstancePlansRequest::setPlanDesc(const std::string &planDesc) { + planDesc_ = planDesc; + setParameter(std::string("PlanDesc"), planDesc); +} + +long DescribeDBInstancePlansRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeDBInstancePlansRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DescribeDBInstancePlansRequest::getPlanScheduleType() const { + return planScheduleType_; +} + +void DescribeDBInstancePlansRequest::setPlanScheduleType(const std::string &planScheduleType) { + planScheduleType_ = planScheduleType; + setParameter(std::string("PlanScheduleType"), planScheduleType); +} + +std::string DescribeDBInstancePlansRequest::getPlanId() const { + return planId_; +} + +void DescribeDBInstancePlansRequest::setPlanId(const std::string &planId) { + planId_ = planId; + setParameter(std::string("PlanId"), planId); +} + diff --git a/gpdb/src/model/DescribeDBInstancePlansResult.cc b/gpdb/src/model/DescribeDBInstancePlansResult.cc new file mode 100644 index 000000000..63476f550 --- /dev/null +++ b/gpdb/src/model/DescribeDBInstancePlansResult.cc @@ -0,0 +1,110 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Gpdb; +using namespace AlibabaCloud::Gpdb::Model; + +DescribeDBInstancePlansResult::DescribeDBInstancePlansResult() : + ServiceResult() +{} + +DescribeDBInstancePlansResult::DescribeDBInstancePlansResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDBInstancePlansResult::~DescribeDBInstancePlansResult() +{} + +void DescribeDBInstancePlansResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allItemsNode = value["Items"]["PlanList"]; + for (auto valueItemsPlanList : allItemsNode) + { + PlanList itemsObject; + if(!valueItemsPlanList["PlanName"].isNull()) + itemsObject.planName = valueItemsPlanList["PlanName"].asString(); + if(!valueItemsPlanList["PlanDesc"].isNull()) + itemsObject.planDesc = valueItemsPlanList["PlanDesc"].asString(); + if(!valueItemsPlanList["PlanId"].isNull()) + itemsObject.planId = valueItemsPlanList["PlanId"].asString(); + if(!valueItemsPlanList["PlanStatus"].isNull()) + itemsObject.planStatus = valueItemsPlanList["PlanStatus"].asString(); + if(!valueItemsPlanList["PlanType"].isNull()) + itemsObject.planType = valueItemsPlanList["PlanType"].asString(); + if(!valueItemsPlanList["PlanScheduleType"].isNull()) + itemsObject.planScheduleType = valueItemsPlanList["PlanScheduleType"].asString(); + if(!valueItemsPlanList["PlanStartDate"].isNull()) + itemsObject.planStartDate = valueItemsPlanList["PlanStartDate"].asString(); + if(!valueItemsPlanList["PlanEndDate"].isNull()) + itemsObject.planEndDate = valueItemsPlanList["PlanEndDate"].asString(); + if(!valueItemsPlanList["PlanConfig"].isNull()) + itemsObject.planConfig = valueItemsPlanList["PlanConfig"].asString(); + if(!valueItemsPlanList["DBInstanceId"].isNull()) + itemsObject.dBInstanceId = valueItemsPlanList["DBInstanceId"].asString(); + items_.push_back(itemsObject); + } + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["TotalRecordCount"].isNull()) + totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString()); + if(!value["PageRecordCount"].isNull()) + pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + +} + +std::string DescribeDBInstancePlansResult::getStatus()const +{ + return status_; +} + +int DescribeDBInstancePlansResult::getTotalRecordCount()const +{ + return totalRecordCount_; +} + +int DescribeDBInstancePlansResult::getPageRecordCount()const +{ + return pageRecordCount_; +} + +int DescribeDBInstancePlansResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeDBInstancePlansResult::getItems()const +{ + return items_; +} + +std::string DescribeDBInstancePlansResult::getErrorMessage()const +{ + return errorMessage_; +} + diff --git a/gpdb/src/model/DescribeDBInstanceSQLPatternsRequest.cc b/gpdb/src/model/DescribeDBInstanceSQLPatternsRequest.cc deleted file mode 100644 index 635e3fdc6..000000000 --- a/gpdb/src/model/DescribeDBInstanceSQLPatternsRequest.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::Gpdb::Model::DescribeDBInstanceSQLPatternsRequest; - -DescribeDBInstanceSQLPatternsRequest::DescribeDBInstanceSQLPatternsRequest() - : RpcServiceRequest("gpdb", "2016-05-03", "DescribeDBInstanceSQLPatterns") { - setMethod(HttpRequest::Method::Post); -} - -DescribeDBInstanceSQLPatternsRequest::~DescribeDBInstanceSQLPatternsRequest() {} - -std::string DescribeDBInstanceSQLPatternsRequest::getStartTime() const { - return startTime_; -} - -void DescribeDBInstanceSQLPatternsRequest::setStartTime(const std::string &startTime) { - startTime_ = startTime; - setParameter(std::string("StartTime"), startTime); -} - -std::string DescribeDBInstanceSQLPatternsRequest::getQueryKeywords() const { - return queryKeywords_; -} - -void DescribeDBInstanceSQLPatternsRequest::setQueryKeywords(const std::string &queryKeywords) { - queryKeywords_ = queryKeywords; - setParameter(std::string("QueryKeywords"), queryKeywords); -} - -std::string DescribeDBInstanceSQLPatternsRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void DescribeDBInstanceSQLPatternsRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string DescribeDBInstanceSQLPatternsRequest::getDatabase() const { - return database_; -} - -void DescribeDBInstanceSQLPatternsRequest::setDatabase(const std::string &database) { - database_ = database; - setParameter(std::string("Database"), database); -} - -std::string DescribeDBInstanceSQLPatternsRequest::getSourceIP() const { - return sourceIP_; -} - -void DescribeDBInstanceSQLPatternsRequest::setSourceIP(const std::string &sourceIP) { - sourceIP_ = sourceIP; - setParameter(std::string("SourceIP"), sourceIP); -} - -std::string DescribeDBInstanceSQLPatternsRequest::getDBInstanceId() const { - return dBInstanceId_; -} - -void DescribeDBInstanceSQLPatternsRequest::setDBInstanceId(const std::string &dBInstanceId) { - dBInstanceId_ = dBInstanceId; - setParameter(std::string("DBInstanceId"), dBInstanceId); -} - -std::string DescribeDBInstanceSQLPatternsRequest::getEndTime() const { - return endTime_; -} - -void DescribeDBInstanceSQLPatternsRequest::setEndTime(const std::string &endTime) { - endTime_ = endTime; - setParameter(std::string("EndTime"), endTime); -} - -std::string DescribeDBInstanceSQLPatternsRequest::getUser() const { - return user_; -} - -void DescribeDBInstanceSQLPatternsRequest::setUser(const std::string &user) { - user_ = user; - setParameter(std::string("User"), user); -} - diff --git a/gpdb/src/model/DescribeDBInstanceSQLPatternsResult.cc b/gpdb/src/model/DescribeDBInstanceSQLPatternsResult.cc deleted file mode 100644 index f9a92fdfe..000000000 --- a/gpdb/src/model/DescribeDBInstanceSQLPatternsResult.cc +++ /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. - */ - -#include -#include - -using namespace AlibabaCloud::Gpdb; -using namespace AlibabaCloud::Gpdb::Model; - -DescribeDBInstanceSQLPatternsResult::DescribeDBInstanceSQLPatternsResult() : - ServiceResult() -{} - -DescribeDBInstanceSQLPatternsResult::DescribeDBInstanceSQLPatternsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeDBInstanceSQLPatternsResult::~DescribeDBInstanceSQLPatternsResult() -{} - -void DescribeDBInstanceSQLPatternsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allPatternsNode = value["Patterns"]["Pattern"]; - for (auto valuePatternsPattern : allPatternsNode) - { - Pattern patternsObject; - if(!valuePatternsPattern["Name"].isNull()) - patternsObject.name = valuePatternsPattern["Name"].asString(); - if(!valuePatternsPattern["Values"].isNull()) - patternsObject.values = valuePatternsPattern["Values"].asString(); - patterns_.push_back(patternsObject); - } - 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 DescribeDBInstanceSQLPatternsResult::getEndTime()const -{ - return endTime_; -} - -std::string DescribeDBInstanceSQLPatternsResult::getStartTime()const -{ - return startTime_; -} - -std::string DescribeDBInstanceSQLPatternsResult::getDBClusterId()const -{ - return dBClusterId_; -} - -std::vector DescribeDBInstanceSQLPatternsResult::getPatterns()const -{ - return patterns_; -} - diff --git a/gpdb/src/model/DescribeDBInstancesRequest.cc b/gpdb/src/model/DescribeDBInstancesRequest.cc index 88f38d6ea..a070c2b9e 100644 --- a/gpdb/src/model/DescribeDBInstancesRequest.cc +++ b/gpdb/src/model/DescribeDBInstancesRequest.cc @@ -65,6 +65,15 @@ void DescribeDBInstancesRequest::setAccessKeyId(const std::string &accessKeyId) setParameter(std::string("AccessKeyId"), accessKeyId); } +std::string DescribeDBInstancesRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void DescribeDBInstancesRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + std::string DescribeDBInstancesRequest::getRegionId() const { return regionId_; } diff --git a/gpdb/src/model/DescribeDBInstancesResult.cc b/gpdb/src/model/DescribeDBInstancesResult.cc index 04b0aec8a..c12c9ee9e 100644 --- a/gpdb/src/model/DescribeDBInstancesResult.cc +++ b/gpdb/src/model/DescribeDBInstancesResult.cc @@ -91,6 +91,10 @@ void DescribeDBInstancesResult::parse(const std::string &payload) itemsObject.dBInstanceCategory = valueItemsDBInstance["DBInstanceCategory"].asString(); if(!valueItemsDBInstance["DBInstanceMode"].isNull()) itemsObject.dBInstanceMode = valueItemsDBInstance["DBInstanceMode"].asString(); + if(!valueItemsDBInstance["ResourceGroupId"].isNull()) + itemsObject.resourceGroupId = valueItemsDBInstance["ResourceGroupId"].asString(); + if(!valueItemsDBInstance["ServerlessMode"].isNull()) + itemsObject.serverlessMode = valueItemsDBInstance["ServerlessMode"].asString(); auto allTagsNode = valueItemsDBInstance["Tags"]["Tag"]; for (auto valueItemsDBInstanceTagsTag : allTagsNode) { diff --git a/gpdb/src/model/DescribeDataReDistributeInfoRequest.cc b/gpdb/src/model/DescribeDataReDistributeInfoRequest.cc new file mode 100644 index 000000000..2972fcd72 --- /dev/null +++ b/gpdb/src/model/DescribeDataReDistributeInfoRequest.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::Gpdb::Model::DescribeDataReDistributeInfoRequest; + +DescribeDataReDistributeInfoRequest::DescribeDataReDistributeInfoRequest() + : RpcServiceRequest("gpdb", "2016-05-03", "DescribeDataReDistributeInfo") { + setMethod(HttpRequest::Method::Post); +} + +DescribeDataReDistributeInfoRequest::~DescribeDataReDistributeInfoRequest() {} + +std::string DescribeDataReDistributeInfoRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeDataReDistributeInfoRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribeDataReDistributeInfoRequest::getDBInstanceId() const { + return dBInstanceId_; +} + +void DescribeDataReDistributeInfoRequest::setDBInstanceId(const std::string &dBInstanceId) { + dBInstanceId_ = dBInstanceId; + setParameter(std::string("DBInstanceId"), dBInstanceId); +} + +long DescribeDataReDistributeInfoRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeDataReDistributeInfoRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/gpdb/src/model/DescribeDataReDistributeInfoResult.cc b/gpdb/src/model/DescribeDataReDistributeInfoResult.cc new file mode 100644 index 000000000..e00140631 --- /dev/null +++ b/gpdb/src/model/DescribeDataReDistributeInfoResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Gpdb; +using namespace AlibabaCloud::Gpdb::Model; + +DescribeDataReDistributeInfoResult::DescribeDataReDistributeInfoResult() : + ServiceResult() +{} + +DescribeDataReDistributeInfoResult::DescribeDataReDistributeInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDataReDistributeInfoResult::~DescribeDataReDistributeInfoResult() +{} + +void DescribeDataReDistributeInfoResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataReDistributeInfoNode = value["DataReDistributeInfo"]; + if(!dataReDistributeInfoNode["Type"].isNull()) + dataReDistributeInfo_.type = dataReDistributeInfoNode["Type"].asString(); + if(!dataReDistributeInfoNode["StartTime"].isNull()) + dataReDistributeInfo_.startTime = dataReDistributeInfoNode["StartTime"].asString(); + if(!dataReDistributeInfoNode["Progress"].isNull()) + dataReDistributeInfo_.progress = std::stol(dataReDistributeInfoNode["Progress"].asString()); + if(!dataReDistributeInfoNode["RemainTime"].isNull()) + dataReDistributeInfo_.remainTime = dataReDistributeInfoNode["RemainTime"].asString(); + if(!dataReDistributeInfoNode["Message"].isNull()) + dataReDistributeInfo_.message = dataReDistributeInfoNode["Message"].asString(); + if(!dataReDistributeInfoNode["Status"].isNull()) + dataReDistributeInfo_.status = dataReDistributeInfoNode["Status"].asString(); + +} + +DescribeDataReDistributeInfoResult::DataReDistributeInfo DescribeDataReDistributeInfoResult::getDataReDistributeInfo()const +{ + return dataReDistributeInfo_; +} + diff --git a/gpdb/src/model/DescribeDataShareInstancesRequest.cc b/gpdb/src/model/DescribeDataShareInstancesRequest.cc new file mode 100644 index 000000000..df1daed45 --- /dev/null +++ b/gpdb/src/model/DescribeDataShareInstancesRequest.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::Gpdb::Model::DescribeDataShareInstancesRequest; + +DescribeDataShareInstancesRequest::DescribeDataShareInstancesRequest() + : RpcServiceRequest("gpdb", "2016-05-03", "DescribeDataShareInstances") { + setMethod(HttpRequest::Method::Post); +} + +DescribeDataShareInstancesRequest::~DescribeDataShareInstancesRequest() {} + +int DescribeDataShareInstancesRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeDataShareInstancesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string DescribeDataShareInstancesRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeDataShareInstancesRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribeDataShareInstancesRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void DescribeDataShareInstancesRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + +std::string DescribeDataShareInstancesRequest::getRegionId() const { + return regionId_; +} + +void DescribeDataShareInstancesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +int DescribeDataShareInstancesRequest::getPageSize() const { + return pageSize_; +} + +void DescribeDataShareInstancesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string DescribeDataShareInstancesRequest::getSearchValue() const { + return searchValue_; +} + +void DescribeDataShareInstancesRequest::setSearchValue(const std::string &searchValue) { + searchValue_ = searchValue; + setParameter(std::string("SearchValue"), searchValue); +} + +long DescribeDataShareInstancesRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeDataShareInstancesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/gpdb/src/model/DescribeDataShareInstancesResult.cc b/gpdb/src/model/DescribeDataShareInstancesResult.cc new file mode 100644 index 000000000..9505c14ae --- /dev/null +++ b/gpdb/src/model/DescribeDataShareInstancesResult.cc @@ -0,0 +1,88 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Gpdb; +using namespace AlibabaCloud::Gpdb::Model; + +DescribeDataShareInstancesResult::DescribeDataShareInstancesResult() : + ServiceResult() +{} + +DescribeDataShareInstancesResult::DescribeDataShareInstancesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDataShareInstancesResult::~DescribeDataShareInstancesResult() +{} + +void DescribeDataShareInstancesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allItemsNode = value["Items"]["DBInstance"]; + for (auto valueItemsDBInstance : allItemsNode) + { + DBInstance itemsObject; + if(!valueItemsDBInstance["RegionId"].isNull()) + itemsObject.regionId = valueItemsDBInstance["RegionId"].asString(); + if(!valueItemsDBInstance["ZoneId"].isNull()) + itemsObject.zoneId = valueItemsDBInstance["ZoneId"].asString(); + if(!valueItemsDBInstance["DBInstanceId"].isNull()) + itemsObject.dBInstanceId = valueItemsDBInstance["DBInstanceId"].asString(); + if(!valueItemsDBInstance["DBInstanceMode"].isNull()) + itemsObject.dBInstanceMode = valueItemsDBInstance["DBInstanceMode"].asString(); + if(!valueItemsDBInstance["Description"].isNull()) + itemsObject.description = valueItemsDBInstance["Description"].asString(); + if(!valueItemsDBInstance["DataShareStatus"].isNull()) + itemsObject.dataShareStatus = valueItemsDBInstance["DataShareStatus"].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 DescribeDataShareInstancesResult::getTotalRecordCount()const +{ + return totalRecordCount_; +} + +int DescribeDataShareInstancesResult::getPageRecordCount()const +{ + return pageRecordCount_; +} + +int DescribeDataShareInstancesResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeDataShareInstancesResult::getItems()const +{ + return items_; +} + diff --git a/gpdb/src/model/DescribeDataSharePerformanceRequest.cc b/gpdb/src/model/DescribeDataSharePerformanceRequest.cc new file mode 100644 index 000000000..3f99e6160 --- /dev/null +++ b/gpdb/src/model/DescribeDataSharePerformanceRequest.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::Gpdb::Model::DescribeDataSharePerformanceRequest; + +DescribeDataSharePerformanceRequest::DescribeDataSharePerformanceRequest() + : RpcServiceRequest("gpdb", "2016-05-03", "DescribeDataSharePerformance") { + setMethod(HttpRequest::Method::Post); +} + +DescribeDataSharePerformanceRequest::~DescribeDataSharePerformanceRequest() {} + +std::string DescribeDataSharePerformanceRequest::getEndTime() const { + return endTime_; +} + +void DescribeDataSharePerformanceRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); +} + +std::string DescribeDataSharePerformanceRequest::getStartTime() const { + return startTime_; +} + +void DescribeDataSharePerformanceRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); +} + +std::string DescribeDataSharePerformanceRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeDataSharePerformanceRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribeDataSharePerformanceRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void DescribeDataSharePerformanceRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + +std::string DescribeDataSharePerformanceRequest::getRegionId() const { + return regionId_; +} + +void DescribeDataSharePerformanceRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DescribeDataSharePerformanceRequest::getKey() const { + return key_; +} + +void DescribeDataSharePerformanceRequest::setKey(const std::string &key) { + key_ = key; + setParameter(std::string("Key"), key); +} + diff --git a/gpdb/src/model/DescribeDataSharePerformanceResult.cc b/gpdb/src/model/DescribeDataSharePerformanceResult.cc new file mode 100644 index 000000000..31769fe71 --- /dev/null +++ b/gpdb/src/model/DescribeDataSharePerformanceResult.cc @@ -0,0 +1,97 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Gpdb; +using namespace AlibabaCloud::Gpdb::Model; + +DescribeDataSharePerformanceResult::DescribeDataSharePerformanceResult() : + ServiceResult() +{} + +DescribeDataSharePerformanceResult::DescribeDataSharePerformanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDataSharePerformanceResult::~DescribeDataSharePerformanceResult() +{} + +void DescribeDataSharePerformanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allPerformanceKeysNode = value["PerformanceKeys"]["PerformanceItem"]; + for (auto valuePerformanceKeysPerformanceItem : allPerformanceKeysNode) + { + PerformanceItem performanceKeysObject; + if(!valuePerformanceKeysPerformanceItem["Name"].isNull()) + performanceKeysObject.name = valuePerformanceKeysPerformanceItem["Name"].asString(); + if(!valuePerformanceKeysPerformanceItem["Unit"].isNull()) + performanceKeysObject.unit = valuePerformanceKeysPerformanceItem["Unit"].asString(); + auto allSeriesNode = valuePerformanceKeysPerformanceItem["Series"]["SeriesItem"]; + for (auto valuePerformanceKeysPerformanceItemSeriesSeriesItem : allSeriesNode) + { + PerformanceItem::SeriesItem seriesObject; + if(!valuePerformanceKeysPerformanceItemSeriesSeriesItem["Name"].isNull()) + seriesObject.name = valuePerformanceKeysPerformanceItemSeriesSeriesItem["Name"].asString(); + auto allValuesNode = valuePerformanceKeysPerformanceItemSeriesSeriesItem["Values"]["ValuesItem"]; + for (auto valuePerformanceKeysPerformanceItemSeriesSeriesItemValuesValuesItem : allValuesNode) + { + PerformanceItem::SeriesItem::ValuesItem valuesObject; + auto allPoint = value["Point"]["Point"]; + for (auto value : allPoint) + valuesObject.point.push_back(value.asString()); + seriesObject.values.push_back(valuesObject); + } + performanceKeysObject.series.push_back(seriesObject); + } + performanceKeys_.push_back(performanceKeysObject); + } + 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::vector DescribeDataSharePerformanceResult::getPerformanceKeys()const +{ + return performanceKeys_; +} + +std::string DescribeDataSharePerformanceResult::getEndTime()const +{ + return endTime_; +} + +std::string DescribeDataSharePerformanceResult::getStartTime()const +{ + return startTime_; +} + +std::string DescribeDataSharePerformanceResult::getDBClusterId()const +{ + return dBClusterId_; +} + diff --git a/gpdb/src/model/DescribeSQLCollectorPolicyRequest.cc b/gpdb/src/model/DescribeDiagnosisDimensionsRequest.cc similarity index 55% rename from gpdb/src/model/DescribeSQLCollectorPolicyRequest.cc rename to gpdb/src/model/DescribeDiagnosisDimensionsRequest.cc index 5f8e42ab9..bee5ecafb 100644 --- a/gpdb/src/model/DescribeSQLCollectorPolicyRequest.cc +++ b/gpdb/src/model/DescribeDiagnosisDimensionsRequest.cc @@ -14,31 +14,31 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::Gpdb::Model::DescribeSQLCollectorPolicyRequest; +using AlibabaCloud::Gpdb::Model::DescribeDiagnosisDimensionsRequest; -DescribeSQLCollectorPolicyRequest::DescribeSQLCollectorPolicyRequest() - : RpcServiceRequest("gpdb", "2016-05-03", "DescribeSQLCollectorPolicy") { +DescribeDiagnosisDimensionsRequest::DescribeDiagnosisDimensionsRequest() + : RpcServiceRequest("gpdb", "2016-05-03", "DescribeDiagnosisDimensions") { setMethod(HttpRequest::Method::Post); } -DescribeSQLCollectorPolicyRequest::~DescribeSQLCollectorPolicyRequest() {} +DescribeDiagnosisDimensionsRequest::~DescribeDiagnosisDimensionsRequest() {} -std::string DescribeSQLCollectorPolicyRequest::getAccessKeyId() const { +std::string DescribeDiagnosisDimensionsRequest::getAccessKeyId() const { return accessKeyId_; } -void DescribeSQLCollectorPolicyRequest::setAccessKeyId(const std::string &accessKeyId) { +void DescribeDiagnosisDimensionsRequest::setAccessKeyId(const std::string &accessKeyId) { accessKeyId_ = accessKeyId; setParameter(std::string("AccessKeyId"), accessKeyId); } -std::string DescribeSQLCollectorPolicyRequest::getDBInstanceId() const { +std::string DescribeDiagnosisDimensionsRequest::getDBInstanceId() const { return dBInstanceId_; } -void DescribeSQLCollectorPolicyRequest::setDBInstanceId(const std::string &dBInstanceId) { +void DescribeDiagnosisDimensionsRequest::setDBInstanceId(const std::string &dBInstanceId) { dBInstanceId_ = dBInstanceId; setParameter(std::string("DBInstanceId"), dBInstanceId); } diff --git a/gpdb/src/model/DescribeDiagnosisDimensionsResult.cc b/gpdb/src/model/DescribeDiagnosisDimensionsResult.cc new file mode 100644 index 000000000..b7cea9bb8 --- /dev/null +++ b/gpdb/src/model/DescribeDiagnosisDimensionsResult.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::Gpdb; +using namespace AlibabaCloud::Gpdb::Model; + +DescribeDiagnosisDimensionsResult::DescribeDiagnosisDimensionsResult() : + ServiceResult() +{} + +DescribeDiagnosisDimensionsResult::DescribeDiagnosisDimensionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDiagnosisDimensionsResult::~DescribeDiagnosisDimensionsResult() +{} + +void DescribeDiagnosisDimensionsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDatabases = value["Databases"]["Databases"]; + for (const auto &item : allDatabases) + databases_.push_back(item.asString()); + auto allUserNames = value["UserNames"]["UserNames"]; + for (const auto &item : allUserNames) + userNames_.push_back(item.asString()); + +} + +std::vector DescribeDiagnosisDimensionsResult::getDatabases()const +{ + return databases_; +} + +std::vector DescribeDiagnosisDimensionsResult::getUserNames()const +{ + return userNames_; +} + diff --git a/gpdb/src/model/DescribeDiagnosisMonitorPerformanceRequest.cc b/gpdb/src/model/DescribeDiagnosisMonitorPerformanceRequest.cc new file mode 100644 index 000000000..9f0dbadec --- /dev/null +++ b/gpdb/src/model/DescribeDiagnosisMonitorPerformanceRequest.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::Gpdb::Model::DescribeDiagnosisMonitorPerformanceRequest; + +DescribeDiagnosisMonitorPerformanceRequest::DescribeDiagnosisMonitorPerformanceRequest() + : RpcServiceRequest("gpdb", "2016-05-03", "DescribeDiagnosisMonitorPerformance") { + setMethod(HttpRequest::Method::Post); +} + +DescribeDiagnosisMonitorPerformanceRequest::~DescribeDiagnosisMonitorPerformanceRequest() {} + +std::string DescribeDiagnosisMonitorPerformanceRequest::getQueryCondition() const { + return queryCondition_; +} + +void DescribeDiagnosisMonitorPerformanceRequest::setQueryCondition(const std::string &queryCondition) { + queryCondition_ = queryCondition; + setParameter(std::string("QueryCondition"), queryCondition); +} + +std::string DescribeDiagnosisMonitorPerformanceRequest::getStartTime() const { + return startTime_; +} + +void DescribeDiagnosisMonitorPerformanceRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); +} + +std::string DescribeDiagnosisMonitorPerformanceRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeDiagnosisMonitorPerformanceRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribeDiagnosisMonitorPerformanceRequest::getDatabase() const { + return database_; +} + +void DescribeDiagnosisMonitorPerformanceRequest::setDatabase(const std::string &database) { + database_ = database; + setParameter(std::string("Database"), database); +} + +std::string DescribeDiagnosisMonitorPerformanceRequest::getDBInstanceId() const { + return dBInstanceId_; +} + +void DescribeDiagnosisMonitorPerformanceRequest::setDBInstanceId(const std::string &dBInstanceId) { + dBInstanceId_ = dBInstanceId; + setParameter(std::string("DBInstanceId"), dBInstanceId); +} + +std::string DescribeDiagnosisMonitorPerformanceRequest::getEndTime() const { + return endTime_; +} + +void DescribeDiagnosisMonitorPerformanceRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); +} + +std::string DescribeDiagnosisMonitorPerformanceRequest::getUser() const { + return user_; +} + +void DescribeDiagnosisMonitorPerformanceRequest::setUser(const std::string &user) { + user_ = user; + setParameter(std::string("User"), user); +} + diff --git a/gpdb/src/model/DescribeDiagnosisMonitorPerformanceResult.cc b/gpdb/src/model/DescribeDiagnosisMonitorPerformanceResult.cc new file mode 100644 index 000000000..ab0a19725 --- /dev/null +++ b/gpdb/src/model/DescribeDiagnosisMonitorPerformanceResult.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 +#include + +using namespace AlibabaCloud::Gpdb; +using namespace AlibabaCloud::Gpdb::Model; + +DescribeDiagnosisMonitorPerformanceResult::DescribeDiagnosisMonitorPerformanceResult() : + ServiceResult() +{} + +DescribeDiagnosisMonitorPerformanceResult::DescribeDiagnosisMonitorPerformanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDiagnosisMonitorPerformanceResult::~DescribeDiagnosisMonitorPerformanceResult() +{} + +void DescribeDiagnosisMonitorPerformanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allPerformancesNode = value["Performances"]["Item"]; + for (auto valuePerformancesItem : allPerformancesNode) + { + Item performancesObject; + if(!valuePerformancesItem["QueryID"].isNull()) + performancesObject.queryID = valuePerformancesItem["QueryID"].asString(); + if(!valuePerformancesItem["StartTime"].isNull()) + performancesObject.startTime = std::stol(valuePerformancesItem["StartTime"].asString()); + if(!valuePerformancesItem["Cost"].isNull()) + performancesObject.cost = std::stoi(valuePerformancesItem["Cost"].asString()); + if(!valuePerformancesItem["Status"].isNull()) + performancesObject.status = valuePerformancesItem["Status"].asString(); + if(!valuePerformancesItem["User"].isNull()) + performancesObject.user = valuePerformancesItem["User"].asString(); + if(!valuePerformancesItem["Database"].isNull()) + performancesObject.database = valuePerformancesItem["Database"].asString(); + performances_.push_back(performancesObject); + } + if(!value["PerformancesThreshold"].isNull()) + performancesThreshold_ = std::stoi(value["PerformancesThreshold"].asString()); + if(!value["PerformancesTruncated"].isNull()) + performancesTruncated_ = value["PerformancesTruncated"].asString() == "true"; + +} + +bool DescribeDiagnosisMonitorPerformanceResult::getPerformancesTruncated()const +{ + return performancesTruncated_; +} + +std::vector DescribeDiagnosisMonitorPerformanceResult::getPerformances()const +{ + return performances_; +} + +int DescribeDiagnosisMonitorPerformanceResult::getPerformancesThreshold()const +{ + return performancesThreshold_; +} + diff --git a/gpdb/src/model/DescribeDiagnosisRecordsRequest.cc b/gpdb/src/model/DescribeDiagnosisRecordsRequest.cc new file mode 100644 index 000000000..7336e8b4f --- /dev/null +++ b/gpdb/src/model/DescribeDiagnosisRecordsRequest.cc @@ -0,0 +1,126 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Gpdb::Model::DescribeDiagnosisRecordsRequest; + +DescribeDiagnosisRecordsRequest::DescribeDiagnosisRecordsRequest() + : RpcServiceRequest("gpdb", "2016-05-03", "DescribeDiagnosisRecords") { + setMethod(HttpRequest::Method::Post); +} + +DescribeDiagnosisRecordsRequest::~DescribeDiagnosisRecordsRequest() {} + +std::string DescribeDiagnosisRecordsRequest::getQueryCondition() const { + return queryCondition_; +} + +void DescribeDiagnosisRecordsRequest::setQueryCondition(const std::string &queryCondition) { + queryCondition_ = queryCondition; + setParameter(std::string("QueryCondition"), queryCondition); +} + +std::string DescribeDiagnosisRecordsRequest::getStartTime() const { + return startTime_; +} + +void DescribeDiagnosisRecordsRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); +} + +int DescribeDiagnosisRecordsRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeDiagnosisRecordsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string DescribeDiagnosisRecordsRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeDiagnosisRecordsRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribeDiagnosisRecordsRequest::getDatabase() const { + return database_; +} + +void DescribeDiagnosisRecordsRequest::setDatabase(const std::string &database) { + database_ = database; + setParameter(std::string("Database"), database); +} + +int DescribeDiagnosisRecordsRequest::getPageSize() const { + return pageSize_; +} + +void DescribeDiagnosisRecordsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string DescribeDiagnosisRecordsRequest::getDBInstanceId() const { + return dBInstanceId_; +} + +void DescribeDiagnosisRecordsRequest::setDBInstanceId(const std::string &dBInstanceId) { + dBInstanceId_ = dBInstanceId; + setParameter(std::string("DBInstanceId"), dBInstanceId); +} + +std::string DescribeDiagnosisRecordsRequest::getKeyword() const { + return keyword_; +} + +void DescribeDiagnosisRecordsRequest::setKeyword(const std::string &keyword) { + keyword_ = keyword; + setParameter(std::string("Keyword"), keyword); +} + +std::string DescribeDiagnosisRecordsRequest::getOrder() const { + return order_; +} + +void DescribeDiagnosisRecordsRequest::setOrder(const std::string &order) { + order_ = order; + setParameter(std::string("Order"), order); +} + +std::string DescribeDiagnosisRecordsRequest::getEndTime() const { + return endTime_; +} + +void DescribeDiagnosisRecordsRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); +} + +std::string DescribeDiagnosisRecordsRequest::getUser() const { + return user_; +} + +void DescribeDiagnosisRecordsRequest::setUser(const std::string &user) { + user_ = user; + setParameter(std::string("User"), user); +} + diff --git a/gpdb/src/model/DescribeDiagnosisRecordsResult.cc b/gpdb/src/model/DescribeDiagnosisRecordsResult.cc new file mode 100644 index 000000000..8675a4286 --- /dev/null +++ b/gpdb/src/model/DescribeDiagnosisRecordsResult.cc @@ -0,0 +1,89 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Gpdb; +using namespace AlibabaCloud::Gpdb::Model; + +DescribeDiagnosisRecordsResult::DescribeDiagnosisRecordsResult() : + ServiceResult() +{} + +DescribeDiagnosisRecordsResult::DescribeDiagnosisRecordsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDiagnosisRecordsResult::~DescribeDiagnosisRecordsResult() +{} + +void DescribeDiagnosisRecordsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allItemsNode = value["Items"]["Item"]; + for (auto valueItemsItem : allItemsNode) + { + Item itemsObject; + if(!valueItemsItem["QueryID"].isNull()) + itemsObject.queryID = valueItemsItem["QueryID"].asString(); + if(!valueItemsItem["SessionID"].isNull()) + itemsObject.sessionID = valueItemsItem["SessionID"].asString(); + if(!valueItemsItem["StartTime"].isNull()) + itemsObject.startTime = std::stol(valueItemsItem["StartTime"].asString()); + if(!valueItemsItem["Duration"].isNull()) + itemsObject.duration = std::stoi(valueItemsItem["Duration"].asString()); + if(!valueItemsItem["Status"].isNull()) + itemsObject.status = valueItemsItem["Status"].asString(); + if(!valueItemsItem["SQLStmt"].isNull()) + itemsObject.sQLStmt = valueItemsItem["SQLStmt"].asString(); + if(!valueItemsItem["User"].isNull()) + itemsObject.user = valueItemsItem["User"].asString(); + if(!valueItemsItem["Database"].isNull()) + itemsObject.database = valueItemsItem["Database"].asString(); + if(!valueItemsItem["SQLTruncated"].isNull()) + itemsObject.sQLTruncated = valueItemsItem["SQLTruncated"].asString() == "true"; + if(!valueItemsItem["SQLTruncatedThreshold"].isNull()) + itemsObject.sQLTruncatedThreshold = std::stoi(valueItemsItem["SQLTruncatedThreshold"].asString()); + items_.push_back(itemsObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + +} + +int DescribeDiagnosisRecordsResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeDiagnosisRecordsResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeDiagnosisRecordsResult::getItems()const +{ + return items_; +} + diff --git a/gpdb/src/model/DescribeDiagnosisSQLInfoRequest.cc b/gpdb/src/model/DescribeDiagnosisSQLInfoRequest.cc new file mode 100644 index 000000000..bd3427363 --- /dev/null +++ b/gpdb/src/model/DescribeDiagnosisSQLInfoRequest.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::Gpdb::Model::DescribeDiagnosisSQLInfoRequest; + +DescribeDiagnosisSQLInfoRequest::DescribeDiagnosisSQLInfoRequest() + : RpcServiceRequest("gpdb", "2016-05-03", "DescribeDiagnosisSQLInfo") { + setMethod(HttpRequest::Method::Post); +} + +DescribeDiagnosisSQLInfoRequest::~DescribeDiagnosisSQLInfoRequest() {} + +std::string DescribeDiagnosisSQLInfoRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeDiagnosisSQLInfoRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribeDiagnosisSQLInfoRequest::getDatabase() const { + return database_; +} + +void DescribeDiagnosisSQLInfoRequest::setDatabase(const std::string &database) { + database_ = database; + setParameter(std::string("Database"), database); +} + +std::string DescribeDiagnosisSQLInfoRequest::getDBInstanceId() const { + return dBInstanceId_; +} + +void DescribeDiagnosisSQLInfoRequest::setDBInstanceId(const std::string &dBInstanceId) { + dBInstanceId_ = dBInstanceId; + setParameter(std::string("DBInstanceId"), dBInstanceId); +} + +std::string DescribeDiagnosisSQLInfoRequest::getQueryID() const { + return queryID_; +} + +void DescribeDiagnosisSQLInfoRequest::setQueryID(const std::string &queryID) { + queryID_ = queryID; + setParameter(std::string("QueryID"), queryID); +} + diff --git a/gpdb/src/model/DescribeDiagnosisSQLInfoResult.cc b/gpdb/src/model/DescribeDiagnosisSQLInfoResult.cc new file mode 100644 index 000000000..45880ade5 --- /dev/null +++ b/gpdb/src/model/DescribeDiagnosisSQLInfoResult.cc @@ -0,0 +1,128 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Gpdb; +using namespace AlibabaCloud::Gpdb::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()); + if(!value["QueryID"].isNull()) + queryID_ = value["QueryID"].asString(); + if(!value["SessionID"].isNull()) + sessionID_ = value["SessionID"].asString(); + if(!value["StartTime"].isNull()) + startTime_ = std::stol(value["StartTime"].asString()); + if(!value["Duration"].isNull()) + duration_ = std::stoi(value["Duration"].asString()); + if(!value["SQLStmt"].isNull()) + sQLStmt_ = value["SQLStmt"].asString(); + if(!value["User"].isNull()) + user_ = value["User"].asString(); + if(!value["Database"].isNull()) + database_ = value["Database"].asString(); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + if(!value["QueryPlan"].isNull()) + queryPlan_ = value["QueryPlan"].asString(); + if(!value["TextPlan"].isNull()) + textPlan_ = value["TextPlan"].asString(); + if(!value["SortedMetrics"].isNull()) + sortedMetrics_ = value["SortedMetrics"].asString(); + if(!value["MaxOutputRows"].isNull()) + maxOutputRows_ = value["MaxOutputRows"].asString(); + +} + +std::string DescribeDiagnosisSQLInfoResult::getStatus()const +{ + return status_; +} + +std::string DescribeDiagnosisSQLInfoResult::getTextPlan()const +{ + return textPlan_; +} + +std::string DescribeDiagnosisSQLInfoResult::getSortedMetrics()const +{ + return sortedMetrics_; +} + +std::string DescribeDiagnosisSQLInfoResult::getMaxOutputRows()const +{ + return maxOutputRows_; +} + +std::string DescribeDiagnosisSQLInfoResult::getSQLStmt()const +{ + return sQLStmt_; +} + +std::string DescribeDiagnosisSQLInfoResult::getUser()const +{ + return user_; +} + +std::string DescribeDiagnosisSQLInfoResult::getQueryID()const +{ + return queryID_; +} + +long DescribeDiagnosisSQLInfoResult::getStartTime()const +{ + return startTime_; +} + +std::string DescribeDiagnosisSQLInfoResult::getDatabase()const +{ + return database_; +} + +int DescribeDiagnosisSQLInfoResult::getDuration()const +{ + return duration_; +} + +std::string DescribeDiagnosisSQLInfoResult::getQueryPlan()const +{ + return queryPlan_; +} + +std::string DescribeDiagnosisSQLInfoResult::getSessionID()const +{ + return sessionID_; +} + diff --git a/gpdb/src/model/DescribeResourceUsageRequest.cc b/gpdb/src/model/DescribeDownloadRecordsRequest.cc similarity index 57% rename from gpdb/src/model/DescribeResourceUsageRequest.cc rename to gpdb/src/model/DescribeDownloadRecordsRequest.cc index be335f1a7..43302a529 100644 --- a/gpdb/src/model/DescribeResourceUsageRequest.cc +++ b/gpdb/src/model/DescribeDownloadRecordsRequest.cc @@ -14,31 +14,31 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::Gpdb::Model::DescribeResourceUsageRequest; +using AlibabaCloud::Gpdb::Model::DescribeDownloadRecordsRequest; -DescribeResourceUsageRequest::DescribeResourceUsageRequest() - : RpcServiceRequest("gpdb", "2016-05-03", "DescribeResourceUsage") { +DescribeDownloadRecordsRequest::DescribeDownloadRecordsRequest() + : RpcServiceRequest("gpdb", "2016-05-03", "DescribeDownloadRecords") { setMethod(HttpRequest::Method::Post); } -DescribeResourceUsageRequest::~DescribeResourceUsageRequest() {} +DescribeDownloadRecordsRequest::~DescribeDownloadRecordsRequest() {} -std::string DescribeResourceUsageRequest::getAccessKeyId() const { +std::string DescribeDownloadRecordsRequest::getAccessKeyId() const { return accessKeyId_; } -void DescribeResourceUsageRequest::setAccessKeyId(const std::string &accessKeyId) { +void DescribeDownloadRecordsRequest::setAccessKeyId(const std::string &accessKeyId) { accessKeyId_ = accessKeyId; setParameter(std::string("AccessKeyId"), accessKeyId); } -std::string DescribeResourceUsageRequest::getDBInstanceId() const { +std::string DescribeDownloadRecordsRequest::getDBInstanceId() const { return dBInstanceId_; } -void DescribeResourceUsageRequest::setDBInstanceId(const std::string &dBInstanceId) { +void DescribeDownloadRecordsRequest::setDBInstanceId(const std::string &dBInstanceId) { dBInstanceId_ = dBInstanceId; setParameter(std::string("DBInstanceId"), dBInstanceId); } diff --git a/gpdb/src/model/DescribeDownloadRecordsResult.cc b/gpdb/src/model/DescribeDownloadRecordsResult.cc new file mode 100644 index 000000000..7af55bc8c --- /dev/null +++ b/gpdb/src/model/DescribeDownloadRecordsResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Gpdb; +using namespace AlibabaCloud::Gpdb::Model; + +DescribeDownloadRecordsResult::DescribeDownloadRecordsResult() : + ServiceResult() +{} + +DescribeDownloadRecordsResult::DescribeDownloadRecordsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDownloadRecordsResult::~DescribeDownloadRecordsResult() +{} + +void DescribeDownloadRecordsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allRecordsNode = value["Records"]["Item"]; + for (auto valueRecordsItem : allRecordsNode) + { + Item recordsObject; + if(!valueRecordsItem["DownloadId"].isNull()) + recordsObject.downloadId = std::stol(valueRecordsItem["DownloadId"].asString()); + if(!valueRecordsItem["ExceptionMsg"].isNull()) + recordsObject.exceptionMsg = valueRecordsItem["ExceptionMsg"].asString(); + if(!valueRecordsItem["FileName"].isNull()) + recordsObject.fileName = valueRecordsItem["FileName"].asString(); + if(!valueRecordsItem["Status"].isNull()) + recordsObject.status = valueRecordsItem["Status"].asString(); + if(!valueRecordsItem["DownloadUrl"].isNull()) + recordsObject.downloadUrl = valueRecordsItem["DownloadUrl"].asString(); + records_.push_back(recordsObject); + } + +} + +std::vector DescribeDownloadRecordsResult::getRecords()const +{ + return records_; +} + diff --git a/gpdb/src/model/DescribeDownloadSQLLogsRequest.cc b/gpdb/src/model/DescribeDownloadSQLLogsRequest.cc new file mode 100644 index 000000000..af023ab8a --- /dev/null +++ b/gpdb/src/model/DescribeDownloadSQLLogsRequest.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::Gpdb::Model::DescribeDownloadSQLLogsRequest; + +DescribeDownloadSQLLogsRequest::DescribeDownloadSQLLogsRequest() + : RpcServiceRequest("gpdb", "2016-05-03", "DescribeDownloadSQLLogs") { + setMethod(HttpRequest::Method::Post); +} + +DescribeDownloadSQLLogsRequest::~DescribeDownloadSQLLogsRequest() {} + +std::string DescribeDownloadSQLLogsRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeDownloadSQLLogsRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribeDownloadSQLLogsRequest::getDBInstanceId() const { + return dBInstanceId_; +} + +void DescribeDownloadSQLLogsRequest::setDBInstanceId(const std::string &dBInstanceId) { + dBInstanceId_ = dBInstanceId; + setParameter(std::string("DBInstanceId"), dBInstanceId); +} + diff --git a/gpdb/src/model/DescribeDownloadSQLLogsResult.cc b/gpdb/src/model/DescribeDownloadSQLLogsResult.cc new file mode 100644 index 000000000..e2d2b9de6 --- /dev/null +++ b/gpdb/src/model/DescribeDownloadSQLLogsResult.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::Gpdb; +using namespace AlibabaCloud::Gpdb::Model; + +DescribeDownloadSQLLogsResult::DescribeDownloadSQLLogsResult() : + ServiceResult() +{} + +DescribeDownloadSQLLogsResult::DescribeDownloadSQLLogsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDownloadSQLLogsResult::~DescribeDownloadSQLLogsResult() +{} + +void DescribeDownloadSQLLogsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allRecordsNode = value["Records"]["Item"]; + for (auto valueRecordsItem : allRecordsNode) + { + Item recordsObject; + if(!valueRecordsItem["DownloadId"].isNull()) + recordsObject.downloadId = std::stol(valueRecordsItem["DownloadId"].asString()); + if(!valueRecordsItem["ExceptionMsg"].isNull()) + recordsObject.exceptionMsg = valueRecordsItem["ExceptionMsg"].asString(); + if(!valueRecordsItem["FileName"].isNull()) + recordsObject.fileName = valueRecordsItem["FileName"].asString(); + if(!valueRecordsItem["Status"].isNull()) + recordsObject.status = valueRecordsItem["Status"].asString(); + if(!valueRecordsItem["DownloadUrl"].isNull()) + recordsObject.downloadUrl = valueRecordsItem["DownloadUrl"].asString(); + records_.push_back(recordsObject); + } + +} + +std::vector DescribeDownloadSQLLogsResult::getRecords()const +{ + return records_; +} + diff --git a/gpdb/src/model/DescribeHealthStatusRequest.cc b/gpdb/src/model/DescribeHealthStatusRequest.cc new file mode 100644 index 000000000..c8f4b4756 --- /dev/null +++ b/gpdb/src/model/DescribeHealthStatusRequest.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::Gpdb::Model::DescribeHealthStatusRequest; + +DescribeHealthStatusRequest::DescribeHealthStatusRequest() + : RpcServiceRequest("gpdb", "2016-05-03", "DescribeHealthStatus") { + setMethod(HttpRequest::Method::Post); +} + +DescribeHealthStatusRequest::~DescribeHealthStatusRequest() {} + +std::string DescribeHealthStatusRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeHealthStatusRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribeHealthStatusRequest::getDBInstanceId() const { + return dBInstanceId_; +} + +void DescribeHealthStatusRequest::setDBInstanceId(const std::string &dBInstanceId) { + dBInstanceId_ = dBInstanceId; + setParameter(std::string("DBInstanceId"), dBInstanceId); +} + +std::string DescribeHealthStatusRequest::getKey() const { + return key_; +} + +void DescribeHealthStatusRequest::setKey(const std::string &key) { + key_ = key; + setParameter(std::string("Key"), key); +} + diff --git a/gpdb/src/model/DescribeHealthStatusResult.cc b/gpdb/src/model/DescribeHealthStatusResult.cc new file mode 100644 index 000000000..ac5797aec --- /dev/null +++ b/gpdb/src/model/DescribeHealthStatusResult.cc @@ -0,0 +1,126 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Gpdb; +using namespace AlibabaCloud::Gpdb::Model; + +DescribeHealthStatusResult::DescribeHealthStatusResult() : + ServiceResult() +{} + +DescribeHealthStatusResult::DescribeHealthStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeHealthStatusResult::~DescribeHealthStatusResult() +{} + +void DescribeHealthStatusResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto statusNode = value["Status"]; + auto adbpg_statusNode = statusNode["adbpg_status"]; + if(!adbpg_statusNode["Status"].isNull()) + status_.adbpg_status.status = adbpg_statusNode["Status"].asString(); + if(!adbpg_statusNode["Value"].isNull()) + status_.adbpg_status.value = std::stof(adbpg_statusNode["Value"].asString()); + auto adbpg_connection_statusNode = statusNode["adbpg_connection_status"]; + if(!adbpg_connection_statusNode["Status"].isNull()) + status_.adbpg_connection_status.status = adbpg_connection_statusNode["Status"].asString(); + if(!adbpg_connection_statusNode["Value"].isNull()) + status_.adbpg_connection_status.value = std::stof(adbpg_connection_statusNode["Value"].asString()); + auto adbpg_disk_statusNode = statusNode["adbpg_disk_status"]; + if(!adbpg_disk_statusNode["Status"].isNull()) + status_.adbpg_disk_status.status = adbpg_disk_statusNode["Status"].asString(); + if(!adbpg_disk_statusNode["Value"].isNull()) + status_.adbpg_disk_status.value = std::stof(adbpg_disk_statusNode["Value"].asString()); + auto adbpg_disk_usage_percentNode = statusNode["adbpg_disk_usage_percent"]; + if(!adbpg_disk_usage_percentNode["Status"].isNull()) + status_.adbpg_disk_usage_percent.status = adbpg_disk_usage_percentNode["Status"].asString(); + if(!adbpg_disk_usage_percentNode["Value"].isNull()) + status_.adbpg_disk_usage_percent.value = std::stof(adbpg_disk_usage_percentNode["Value"].asString()); + auto adbpg_master_disk_usage_percent_maxNode = statusNode["adbpg_master_disk_usage_percent_max"]; + if(!adbpg_master_disk_usage_percent_maxNode["Status"].isNull()) + status_.adbpg_master_disk_usage_percent_max.status = adbpg_master_disk_usage_percent_maxNode["Status"].asString(); + if(!adbpg_master_disk_usage_percent_maxNode["Value"].isNull()) + status_.adbpg_master_disk_usage_percent_max.value = std::stof(adbpg_master_disk_usage_percent_maxNode["Value"].asString()); + auto adbgp_segment_disk_usage_percent_maxNode = statusNode["adbgp_segment_disk_usage_percent_max"]; + if(!adbgp_segment_disk_usage_percent_maxNode["Status"].isNull()) + status_.adbgp_segment_disk_usage_percent_max.status = adbgp_segment_disk_usage_percent_maxNode["Status"].asString(); + if(!adbgp_segment_disk_usage_percent_maxNode["Value"].isNull()) + status_.adbgp_segment_disk_usage_percent_max.value = std::stof(adbgp_segment_disk_usage_percent_maxNode["Value"].asString()); + auto node_master_statusNode = statusNode["node_master_status"]; + if(!node_master_statusNode["Status"].isNull()) + status_.node_master_status.status = node_master_statusNode["Status"].asString(); + if(!node_master_statusNode["Value"].isNull()) + status_.node_master_status.value = std::stof(node_master_statusNode["Value"].asString()); + auto node_segment_disk_statusNode = statusNode["node_segment_disk_status"]; + if(!node_segment_disk_statusNode["Status"].isNull()) + status_.node_segment_disk_status.status = node_segment_disk_statusNode["Status"].asString(); + if(!node_segment_disk_statusNode["Value"].isNull()) + status_.node_segment_disk_status.value = std::stof(node_segment_disk_statusNode["Value"].asString()); + auto node_master_connection_statusNode = statusNode["node_master_connection_status"]; + if(!node_master_connection_statusNode["Status"].isNull()) + status_.node_master_connection_status.status = node_master_connection_statusNode["Status"].asString(); + if(!node_master_connection_statusNode["Value"].isNull()) + status_.node_master_connection_status.value = std::stof(node_master_connection_statusNode["Value"].asString()); + auto node_segment_connection_statusNode = statusNode["node_segment_connection_status"]; + if(!node_segment_connection_statusNode["Status"].isNull()) + status_.node_segment_connection_status.status = node_segment_connection_statusNode["Status"].asString(); + if(!node_segment_connection_statusNode["Value"].isNull()) + status_.node_segment_connection_status.value = std::stof(node_segment_connection_statusNode["Value"].asString()); + auto adbpg_master_statusNode = statusNode["adbpg_master_status"]; + if(!adbpg_master_statusNode["Status"].isNull()) + status_.adbpg_master_status.status = adbpg_master_statusNode["Status"].asString(); + if(!adbpg_master_statusNode["Value"].isNull()) + status_.adbpg_master_status.value = std::stof(adbpg_master_statusNode["Value"].asString()); + auto adbpg_segment_statusNode = statusNode["adbpg_segment_status"]; + if(!adbpg_segment_statusNode["Status"].isNull()) + status_.adbpg_segment_status.status = adbpg_segment_statusNode["Status"].asString(); + if(!adbpg_segment_statusNode["Value"].isNull()) + status_.adbpg_segment_status.value = std::stof(adbpg_segment_statusNode["Value"].asString()); + auto adbpg_instance_total_data_gbNode = statusNode["adbpg_instance_total_data_gb"]; + if(!adbpg_instance_total_data_gbNode["Value"].isNull()) + status_.adbpg_instance_total_data_gb.value = std::stof(adbpg_instance_total_data_gbNode["Value"].asString()); + auto adbpg_instance_hot_data_gbNode = statusNode["adbpg_instance_hot_data_gb"]; + if(!adbpg_instance_hot_data_gbNode["Value"].isNull()) + status_.adbpg_instance_hot_data_gb.value = std::stof(adbpg_instance_hot_data_gbNode["Value"].asString()); + auto adbpg_instance_cold_data_gbNode = statusNode["adbpg_instance_cold_data_gb"]; + if(!adbpg_instance_cold_data_gbNode["Value"].isNull()) + status_.adbpg_instance_cold_data_gb.value = std::stof(adbpg_instance_cold_data_gbNode["Value"].asString()); + if(!value["DBClusterId"].isNull()) + dBClusterId_ = value["DBClusterId"].asString(); + +} + +DescribeHealthStatusResult::Status DescribeHealthStatusResult::getStatus()const +{ + return status_; +} + +std::string DescribeHealthStatusResult::getDBClusterId()const +{ + return dBClusterId_; +} + diff --git a/gpdb/src/model/DescribeNamespaceRequest.cc b/gpdb/src/model/DescribeNamespaceRequest.cc new file mode 100644 index 000000000..6960e0d43 --- /dev/null +++ b/gpdb/src/model/DescribeNamespaceRequest.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::Gpdb::Model::DescribeNamespaceRequest; + +DescribeNamespaceRequest::DescribeNamespaceRequest() + : RpcServiceRequest("gpdb", "2016-05-03", "DescribeNamespace") { + setMethod(HttpRequest::Method::Post); +} + +DescribeNamespaceRequest::~DescribeNamespaceRequest() {} + +std::string DescribeNamespaceRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeNamespaceRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribeNamespaceRequest::getRegionId() const { + return regionId_; +} + +void DescribeNamespaceRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DescribeNamespaceRequest::getManagerAccount() const { + return managerAccount_; +} + +void DescribeNamespaceRequest::setManagerAccount(const std::string &managerAccount) { + managerAccount_ = managerAccount; + setParameter(std::string("ManagerAccount"), managerAccount); +} + +std::string DescribeNamespaceRequest::getDBInstanceId() const { + return dBInstanceId_; +} + +void DescribeNamespaceRequest::setDBInstanceId(const std::string &dBInstanceId) { + dBInstanceId_ = dBInstanceId; + setParameter(std::string("DBInstanceId"), dBInstanceId); +} + +std::string DescribeNamespaceRequest::getManagerAccountPassword() const { + return managerAccountPassword_; +} + +void DescribeNamespaceRequest::setManagerAccountPassword(const std::string &managerAccountPassword) { + managerAccountPassword_ = managerAccountPassword; + setParameter(std::string("ManagerAccountPassword"), managerAccountPassword); +} + +long DescribeNamespaceRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeNamespaceRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DescribeNamespaceRequest::get_Namespace() const { + return _namespace_; +} + +void DescribeNamespaceRequest::set_Namespace(const std::string &_namespace) { + _namespace_ = _namespace; + setParameter(std::string("Namespace"), _namespace); +} + diff --git a/gpdb/src/model/DescribeNamespaceResult.cc b/gpdb/src/model/DescribeNamespaceResult.cc new file mode 100644 index 000000000..48c860a96 --- /dev/null +++ b/gpdb/src/model/DescribeNamespaceResult.cc @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Gpdb; +using namespace AlibabaCloud::Gpdb::Model; + +DescribeNamespaceResult::DescribeNamespaceResult() : + ServiceResult() +{} + +DescribeNamespaceResult::DescribeNamespaceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeNamespaceResult::~DescribeNamespaceResult() +{} + +void DescribeNamespaceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["NamespaceInfo"].isNull()) + namespaceInfo_ = value["NamespaceInfo"].asString(); + if(!value["Namespace"].isNull()) + _namespace_ = value["Namespace"].asString(); + if(!value["DBInstanceId"].isNull()) + dBInstanceId_ = value["DBInstanceId"].asString(); + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string DescribeNamespaceResult::getStatus()const +{ + return status_; +} + +std::string DescribeNamespaceResult::getMessage()const +{ + return message_; +} + +std::string DescribeNamespaceResult::getDBInstanceId()const +{ + return dBInstanceId_; +} + +std::string DescribeNamespaceResult::get_Namespace()const +{ + return _namespace_; +} + +std::string DescribeNamespaceResult::getRegionId()const +{ + return regionId_; +} + +std::string DescribeNamespaceResult::getNamespaceInfo()const +{ + return namespaceInfo_; +} + diff --git a/gpdb/src/model/DescribeRdsVSwitchsRequest.cc b/gpdb/src/model/DescribeRdsVSwitchsRequest.cc index ce7a9d583..b11afc679 100644 --- a/gpdb/src/model/DescribeRdsVSwitchsRequest.cc +++ b/gpdb/src/model/DescribeRdsVSwitchsRequest.cc @@ -43,6 +43,15 @@ void DescribeRdsVSwitchsRequest::setAccessKeyId(const std::string &accessKeyId) setParameter(std::string("AccessKeyId"), accessKeyId); } +std::string DescribeRdsVSwitchsRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void DescribeRdsVSwitchsRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + std::string DescribeRdsVSwitchsRequest::getSecurityToken() const { return securityToken_; } diff --git a/gpdb/src/model/DescribeRdsVpcsRequest.cc b/gpdb/src/model/DescribeRdsVpcsRequest.cc index bc21739c2..2bcd49976 100644 --- a/gpdb/src/model/DescribeRdsVpcsRequest.cc +++ b/gpdb/src/model/DescribeRdsVpcsRequest.cc @@ -43,6 +43,15 @@ void DescribeRdsVpcsRequest::setAccessKeyId(const std::string &accessKeyId) { setParameter(std::string("AccessKeyId"), accessKeyId); } +std::string DescribeRdsVpcsRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void DescribeRdsVpcsRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + std::string DescribeRdsVpcsRequest::getSecurityToken() const { return securityToken_; } diff --git a/gpdb/src/model/DescribeResourceUsageResult.cc b/gpdb/src/model/DescribeResourceUsageResult.cc deleted file mode 100644 index 2f695ea60..000000000 --- a/gpdb/src/model/DescribeResourceUsageResult.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::Gpdb; -using namespace AlibabaCloud::Gpdb::Model; - -DescribeResourceUsageResult::DescribeResourceUsageResult() : - ServiceResult() -{} - -DescribeResourceUsageResult::DescribeResourceUsageResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeResourceUsageResult::~DescribeResourceUsageResult() -{} - -void DescribeResourceUsageResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["LogSize"].isNull()) - logSize_ = std::stol(value["LogSize"].asString()); - if(!value["DBInstanceId"].isNull()) - dBInstanceId_ = value["DBInstanceId"].asString(); - if(!value["DataSize"].isNull()) - dataSize_ = std::stol(value["DataSize"].asString()); - if(!value["BackupSize"].isNull()) - backupSize_ = std::stol(value["BackupSize"].asString()); - if(!value["DiskUsed"].isNull()) - diskUsed_ = std::stol(value["DiskUsed"].asString()); - if(!value["Engine"].isNull()) - engine_ = value["Engine"].asString(); - -} - -long DescribeResourceUsageResult::getLogSize()const -{ - return logSize_; -} - -std::string DescribeResourceUsageResult::getDBInstanceId()const -{ - return dBInstanceId_; -} - -long DescribeResourceUsageResult::getDataSize()const -{ - return dataSize_; -} - -long DescribeResourceUsageResult::getBackupSize()const -{ - return backupSize_; -} - -long DescribeResourceUsageResult::getDiskUsed()const -{ - return diskUsed_; -} - -std::string DescribeResourceUsageResult::getEngine()const -{ - return engine_; -} - diff --git a/gpdb/src/model/DescribeSQLLogByQueryIdResult.cc b/gpdb/src/model/DescribeSQLLogByQueryIdResult.cc deleted file mode 100644 index 72002d435..000000000 --- a/gpdb/src/model/DescribeSQLLogByQueryIdResult.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::Gpdb; -using namespace AlibabaCloud::Gpdb::Model; - -DescribeSQLLogByQueryIdResult::DescribeSQLLogByQueryIdResult() : - ServiceResult() -{} - -DescribeSQLLogByQueryIdResult::DescribeSQLLogByQueryIdResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeSQLLogByQueryIdResult::~DescribeSQLLogByQueryIdResult() -{} - -void DescribeSQLLogByQueryIdResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allItemsNode = value["Items"]["SQLLog"]; - for (auto valueItemsSQLLog : allItemsNode) - { - SQLLog itemsObject; - if(!valueItemsSQLLog["OperationClass"].isNull()) - itemsObject.operationClass = valueItemsSQLLog["OperationClass"].asString(); - if(!valueItemsSQLLog["ExecuteState"].isNull()) - itemsObject.executeState = valueItemsSQLLog["ExecuteState"].asString(); - if(!valueItemsSQLLog["ExecuteCost"].isNull()) - itemsObject.executeCost = std::stof(valueItemsSQLLog["ExecuteCost"].asString()); - if(!valueItemsSQLLog["SQLText"].isNull()) - itemsObject.sQLText = valueItemsSQLLog["SQLText"].asString(); - if(!valueItemsSQLLog["SourcePort"].isNull()) - itemsObject.sourcePort = std::stoi(valueItemsSQLLog["SourcePort"].asString()); - if(!valueItemsSQLLog["DBRole"].isNull()) - itemsObject.dBRole = valueItemsSQLLog["DBRole"].asString(); - if(!valueItemsSQLLog["OperationType"].isNull()) - itemsObject.operationType = valueItemsSQLLog["OperationType"].asString(); - if(!valueItemsSQLLog["SourceIP"].isNull()) - itemsObject.sourceIP = valueItemsSQLLog["SourceIP"].asString(); - if(!valueItemsSQLLog["SQLPlan"].isNull()) - itemsObject.sQLPlan = valueItemsSQLLog["SQLPlan"].asString(); - if(!valueItemsSQLLog["ReturnRowCounts"].isNull()) - itemsObject.returnRowCounts = std::stol(valueItemsSQLLog["ReturnRowCounts"].asString()); - if(!valueItemsSQLLog["DBName"].isNull()) - itemsObject.dBName = valueItemsSQLLog["DBName"].asString(); - if(!valueItemsSQLLog["OperationExecuteTime"].isNull()) - itemsObject.operationExecuteTime = valueItemsSQLLog["OperationExecuteTime"].asString(); - if(!valueItemsSQLLog["ScanRowCounts"].isNull()) - itemsObject.scanRowCounts = std::stol(valueItemsSQLLog["ScanRowCounts"].asString()); - if(!valueItemsSQLLog["AccountName"].isNull()) - itemsObject.accountName = valueItemsSQLLog["AccountName"].asString(); - if(!valueItemsSQLLog["QueryId"].isNull()) - itemsObject.queryId = valueItemsSQLLog["QueryId"].asString(); - auto allSliceIds = value["SliceIds"]["SliceIDs"]; - for (auto value : allSliceIds) - itemsObject.sliceIds.push_back(value.asString()); - items_.push_back(itemsObject); - } - -} - -std::vector DescribeSQLLogByQueryIdResult::getItems()const -{ - return items_; -} - diff --git a/gpdb/src/model/DescribeSQLLogFilesResult.cc b/gpdb/src/model/DescribeSQLLogFilesResult.cc deleted file mode 100644 index 69d22c421..000000000 --- a/gpdb/src/model/DescribeSQLLogFilesResult.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::Gpdb; -using namespace AlibabaCloud::Gpdb::Model; - -DescribeSQLLogFilesResult::DescribeSQLLogFilesResult() : - ServiceResult() -{} - -DescribeSQLLogFilesResult::DescribeSQLLogFilesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeSQLLogFilesResult::~DescribeSQLLogFilesResult() -{} - -void DescribeSQLLogFilesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allItemsNode = value["Items"]["LogFile"]; - for (auto valueItemsLogFile : allItemsNode) - { - LogFile itemsObject; - if(!valueItemsLogFile["FileID"].isNull()) - itemsObject.fileID = valueItemsLogFile["FileID"].asString(); - if(!valueItemsLogFile["LogStartTime"].isNull()) - itemsObject.logStartTime = valueItemsLogFile["LogStartTime"].asString(); - if(!valueItemsLogFile["LogSize"].isNull()) - itemsObject.logSize = valueItemsLogFile["LogSize"].asString(); - if(!valueItemsLogFile["LogDownloadURL"].isNull()) - itemsObject.logDownloadURL = valueItemsLogFile["LogDownloadURL"].asString(); - if(!valueItemsLogFile["LogEndTime"].isNull()) - itemsObject.logEndTime = valueItemsLogFile["LogEndTime"].asString(); - if(!valueItemsLogFile["LogStatus"].isNull()) - itemsObject.logStatus = valueItemsLogFile["LogStatus"].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 DescribeSQLLogFilesResult::getTotalRecordCount()const -{ - return totalRecordCount_; -} - -int DescribeSQLLogFilesResult::getPageRecordCount()const -{ - return pageRecordCount_; -} - -int DescribeSQLLogFilesResult::getPageNumber()const -{ - return pageNumber_; -} - -std::vector DescribeSQLLogFilesResult::getItems()const -{ - return items_; -} - diff --git a/gpdb/src/model/DescribeSQLLogRecordsRequest.cc b/gpdb/src/model/DescribeSQLLogRecordsRequest.cc deleted file mode 100644 index 6d609d5b3..000000000 --- a/gpdb/src/model/DescribeSQLLogRecordsRequest.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::Gpdb::Model::DescribeSQLLogRecordsRequest; - -DescribeSQLLogRecordsRequest::DescribeSQLLogRecordsRequest() - : RpcServiceRequest("gpdb", "2016-05-03", "DescribeSQLLogRecords") { - setMethod(HttpRequest::Method::Post); -} - -DescribeSQLLogRecordsRequest::~DescribeSQLLogRecordsRequest() {} - -std::string DescribeSQLLogRecordsRequest::getStartTime() const { - return startTime_; -} - -void DescribeSQLLogRecordsRequest::setStartTime(const std::string &startTime) { - startTime_ = startTime; - setParameter(std::string("StartTime"), startTime); -} - -std::string DescribeSQLLogRecordsRequest::getQueryKeywords() const { - return queryKeywords_; -} - -void DescribeSQLLogRecordsRequest::setQueryKeywords(const std::string &queryKeywords) { - queryKeywords_ = queryKeywords; - setParameter(std::string("QueryKeywords"), queryKeywords); -} - -int DescribeSQLLogRecordsRequest::getPageNumber() const { - return pageNumber_; -} - -void DescribeSQLLogRecordsRequest::setPageNumber(int pageNumber) { - pageNumber_ = pageNumber; - setParameter(std::string("PageNumber"), std::to_string(pageNumber)); -} - -std::string DescribeSQLLogRecordsRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void DescribeSQLLogRecordsRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string DescribeSQLLogRecordsRequest::getDatabase() const { - return database_; -} - -void DescribeSQLLogRecordsRequest::setDatabase(const std::string &database) { - database_ = database; - setParameter(std::string("Database"), database); -} - -int DescribeSQLLogRecordsRequest::getPageSize() const { - return pageSize_; -} - -void DescribeSQLLogRecordsRequest::setPageSize(int pageSize) { - pageSize_ = pageSize; - setParameter(std::string("PageSize"), std::to_string(pageSize)); -} - -std::string DescribeSQLLogRecordsRequest::getDBInstanceId() const { - return dBInstanceId_; -} - -void DescribeSQLLogRecordsRequest::setDBInstanceId(const std::string &dBInstanceId) { - dBInstanceId_ = dBInstanceId; - setParameter(std::string("DBInstanceId"), dBInstanceId); -} - -std::string DescribeSQLLogRecordsRequest::getEndTime() const { - return endTime_; -} - -void DescribeSQLLogRecordsRequest::setEndTime(const std::string &endTime) { - endTime_ = endTime; - setParameter(std::string("EndTime"), endTime); -} - -std::string DescribeSQLLogRecordsRequest::getForm() const { - return form_; -} - -void DescribeSQLLogRecordsRequest::setForm(const std::string &form) { - form_ = form; - setParameter(std::string("Form"), form); -} - -std::string DescribeSQLLogRecordsRequest::getUser() const { - return user_; -} - -void DescribeSQLLogRecordsRequest::setUser(const std::string &user) { - user_ = user; - setParameter(std::string("User"), user); -} - diff --git a/gpdb/src/model/DescribeSQLLogRecordsResult.cc b/gpdb/src/model/DescribeSQLLogRecordsResult.cc deleted file mode 100644 index 6c3e0c5a4..000000000 --- a/gpdb/src/model/DescribeSQLLogRecordsResult.cc +++ /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. - */ - -#include -#include - -using namespace AlibabaCloud::Gpdb; -using namespace AlibabaCloud::Gpdb::Model; - -DescribeSQLLogRecordsResult::DescribeSQLLogRecordsResult() : - ServiceResult() -{} - -DescribeSQLLogRecordsResult::DescribeSQLLogRecordsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeSQLLogRecordsResult::~DescribeSQLLogRecordsResult() -{} - -void DescribeSQLLogRecordsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allItemsNode = value["Items"]["SQLRecord"]; - for (auto valueItemsSQLRecord : allItemsNode) - { - SQLRecord itemsObject; - if(!valueItemsSQLRecord["HostAddress"].isNull()) - itemsObject.hostAddress = valueItemsSQLRecord["HostAddress"].asString(); - if(!valueItemsSQLRecord["SQLText"].isNull()) - itemsObject.sQLText = valueItemsSQLRecord["SQLText"].asString(); - if(!valueItemsSQLRecord["ReturnRowCounts"].isNull()) - itemsObject.returnRowCounts = std::stol(valueItemsSQLRecord["ReturnRowCounts"].asString()); - if(!valueItemsSQLRecord["DBName"].isNull()) - itemsObject.dBName = valueItemsSQLRecord["DBName"].asString(); - if(!valueItemsSQLRecord["ExecuteTime"].isNull()) - itemsObject.executeTime = valueItemsSQLRecord["ExecuteTime"].asString(); - if(!valueItemsSQLRecord["ThreadID"].isNull()) - itemsObject.threadID = valueItemsSQLRecord["ThreadID"].asString(); - if(!valueItemsSQLRecord["TotalExecutionTimes"].isNull()) - itemsObject.totalExecutionTimes = std::stol(valueItemsSQLRecord["TotalExecutionTimes"].asString()); - if(!valueItemsSQLRecord["AccountName"].isNull()) - itemsObject.accountName = valueItemsSQLRecord["AccountName"].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 DescribeSQLLogRecordsResult::getTotalRecordCount()const -{ - return totalRecordCount_; -} - -int DescribeSQLLogRecordsResult::getPageRecordCount()const -{ - return pageRecordCount_; -} - -int DescribeSQLLogRecordsResult::getPageNumber()const -{ - return pageNumber_; -} - -std::vector DescribeSQLLogRecordsResult::getItems()const -{ - return items_; -} - diff --git a/gpdb/src/model/DescribeSQLLogsOnSliceRequest.cc b/gpdb/src/model/DescribeSQLLogsOnSliceRequest.cc deleted file mode 100644 index e40849933..000000000 --- a/gpdb/src/model/DescribeSQLLogsOnSliceRequest.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::Gpdb::Model::DescribeSQLLogsOnSliceRequest; - -DescribeSQLLogsOnSliceRequest::DescribeSQLLogsOnSliceRequest() - : RpcServiceRequest("gpdb", "2016-05-03", "DescribeSQLLogsOnSlice") { - setMethod(HttpRequest::Method::Post); -} - -DescribeSQLLogsOnSliceRequest::~DescribeSQLLogsOnSliceRequest() {} - -std::string DescribeSQLLogsOnSliceRequest::getSliceId() const { - return sliceId_; -} - -void DescribeSQLLogsOnSliceRequest::setSliceId(const std::string &sliceId) { - sliceId_ = sliceId; - setParameter(std::string("SliceId"), sliceId); -} - -int DescribeSQLLogsOnSliceRequest::getPageNumber() const { - return pageNumber_; -} - -void DescribeSQLLogsOnSliceRequest::setPageNumber(int pageNumber) { - pageNumber_ = pageNumber; - setParameter(std::string("PageNumber"), std::to_string(pageNumber)); -} - -std::string DescribeSQLLogsOnSliceRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void DescribeSQLLogsOnSliceRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string DescribeSQLLogsOnSliceRequest::getMinExecuteCost() const { - return minExecuteCost_; -} - -void DescribeSQLLogsOnSliceRequest::setMinExecuteCost(const std::string &minExecuteCost) { - minExecuteCost_ = minExecuteCost; - setParameter(std::string("MinExecuteCost"), minExecuteCost); -} - -int DescribeSQLLogsOnSliceRequest::getPageSize() const { - return pageSize_; -} - -void DescribeSQLLogsOnSliceRequest::setPageSize(int pageSize) { - pageSize_ = pageSize; - setParameter(std::string("PageSize"), std::to_string(pageSize)); -} - -std::string DescribeSQLLogsOnSliceRequest::getDBInstanceId() const { - return dBInstanceId_; -} - -void DescribeSQLLogsOnSliceRequest::setDBInstanceId(const std::string &dBInstanceId) { - dBInstanceId_ = dBInstanceId; - setParameter(std::string("DBInstanceId"), dBInstanceId); -} - -std::string DescribeSQLLogsOnSliceRequest::getMaxExecuteCost() const { - return maxExecuteCost_; -} - -void DescribeSQLLogsOnSliceRequest::setMaxExecuteCost(const std::string &maxExecuteCost) { - maxExecuteCost_ = maxExecuteCost; - setParameter(std::string("MaxExecuteCost"), maxExecuteCost); -} - -std::string DescribeSQLLogsOnSliceRequest::getExecuteState() const { - return executeState_; -} - -void DescribeSQLLogsOnSliceRequest::setExecuteState(const std::string &executeState) { - executeState_ = executeState; - setParameter(std::string("ExecuteState"), executeState); -} - -std::string DescribeSQLLogsOnSliceRequest::getQueryId() const { - return queryId_; -} - -void DescribeSQLLogsOnSliceRequest::setQueryId(const std::string &queryId) { - queryId_ = queryId; - setParameter(std::string("QueryId"), queryId); -} - diff --git a/gpdb/src/model/DescribeSQLLogsOnSliceResult.cc b/gpdb/src/model/DescribeSQLLogsOnSliceResult.cc deleted file mode 100644 index 910eec148..000000000 --- a/gpdb/src/model/DescribeSQLLogsOnSliceResult.cc +++ /dev/null @@ -1,85 +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::Gpdb; -using namespace AlibabaCloud::Gpdb::Model; - -DescribeSQLLogsOnSliceResult::DescribeSQLLogsOnSliceResult() : - ServiceResult() -{} - -DescribeSQLLogsOnSliceResult::DescribeSQLLogsOnSliceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeSQLLogsOnSliceResult::~DescribeSQLLogsOnSliceResult() -{} - -void DescribeSQLLogsOnSliceResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allSliceLogItemsNode = value["SliceLogItems"]["SQLLogsSliceItem"]; - for (auto valueSliceLogItemsSQLLogsSliceItem : allSliceLogItemsNode) - { - SQLLogsSliceItem sliceLogItemsObject; - if(!valueSliceLogItemsSQLLogsSliceItem["ExecuteStatus"].isNull()) - sliceLogItemsObject.executeStatus = valueSliceLogItemsSQLLogsSliceItem["ExecuteStatus"].asString(); - if(!valueSliceLogItemsSQLLogsSliceItem["ExecuteCost"].isNull()) - sliceLogItemsObject.executeCost = std::stof(valueSliceLogItemsSQLLogsSliceItem["ExecuteCost"].asString()); - if(!valueSliceLogItemsSQLLogsSliceItem["ReturnRowCounts"].isNull()) - sliceLogItemsObject.returnRowCounts = std::stol(valueSliceLogItemsSQLLogsSliceItem["ReturnRowCounts"].asString()); - if(!valueSliceLogItemsSQLLogsSliceItem["OperationExecuteTime"].isNull()) - sliceLogItemsObject.operationExecuteTime = valueSliceLogItemsSQLLogsSliceItem["OperationExecuteTime"].asString(); - if(!valueSliceLogItemsSQLLogsSliceItem["SegmentId"].isNull()) - sliceLogItemsObject.segmentId = valueSliceLogItemsSQLLogsSliceItem["SegmentId"].asString(); - if(!valueSliceLogItemsSQLLogsSliceItem["PeakMemory"].isNull()) - sliceLogItemsObject.peakMemory = std::stof(valueSliceLogItemsSQLLogsSliceItem["PeakMemory"].asString()); - if(!valueSliceLogItemsSQLLogsSliceItem["OperationExecuteEndTime"].isNull()) - sliceLogItemsObject.operationExecuteEndTime = valueSliceLogItemsSQLLogsSliceItem["OperationExecuteEndTime"].asString(); - if(!valueSliceLogItemsSQLLogsSliceItem["SegmentName"].isNull()) - sliceLogItemsObject.segmentName = valueSliceLogItemsSQLLogsSliceItem["SegmentName"].asString(); - sliceLogItems_.push_back(sliceLogItemsObject); - } - if(!value["PageRecordCount"].isNull()) - pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); - -} - -int DescribeSQLLogsOnSliceResult::getPageRecordCount()const -{ - return pageRecordCount_; -} - -std::vector DescribeSQLLogsOnSliceResult::getSliceLogItems()const -{ - return sliceLogItems_; -} - -int DescribeSQLLogsOnSliceResult::getPageNumber()const -{ - return pageNumber_; -} - diff --git a/gpdb/src/model/DescribeSQLLogsRequest.cc b/gpdb/src/model/DescribeSQLLogsRequest.cc deleted file mode 100644 index 43e50d033..000000000 --- a/gpdb/src/model/DescribeSQLLogsRequest.cc +++ /dev/null @@ -1,171 +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::Gpdb::Model::DescribeSQLLogsRequest; - -DescribeSQLLogsRequest::DescribeSQLLogsRequest() - : RpcServiceRequest("gpdb", "2016-05-03", "DescribeSQLLogs") { - setMethod(HttpRequest::Method::Post); -} - -DescribeSQLLogsRequest::~DescribeSQLLogsRequest() {} - -std::string DescribeSQLLogsRequest::getStartTime() const { - return startTime_; -} - -void DescribeSQLLogsRequest::setStartTime(const std::string &startTime) { - startTime_ = startTime; - setParameter(std::string("StartTime"), startTime); -} - -std::string DescribeSQLLogsRequest::getQueryKeywords() const { - return queryKeywords_; -} - -void DescribeSQLLogsRequest::setQueryKeywords(const std::string &queryKeywords) { - queryKeywords_ = queryKeywords; - setParameter(std::string("QueryKeywords"), queryKeywords); -} - -int DescribeSQLLogsRequest::getPageNumber() const { - return pageNumber_; -} - -void DescribeSQLLogsRequest::setPageNumber(int pageNumber) { - pageNumber_ = pageNumber; - setParameter(std::string("PageNumber"), std::to_string(pageNumber)); -} - -std::string DescribeSQLLogsRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void DescribeSQLLogsRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string DescribeSQLLogsRequest::getDatabase() const { - return database_; -} - -void DescribeSQLLogsRequest::setDatabase(const std::string &database) { - database_ = database; - setParameter(std::string("Database"), database); -} - -std::string DescribeSQLLogsRequest::getSourceIP() const { - return sourceIP_; -} - -void DescribeSQLLogsRequest::setSourceIP(const std::string &sourceIP) { - sourceIP_ = sourceIP; - setParameter(std::string("SourceIP"), sourceIP); -} - -std::string DescribeSQLLogsRequest::getMinExecuteCost() const { - return minExecuteCost_; -} - -void DescribeSQLLogsRequest::setMinExecuteCost(const std::string &minExecuteCost) { - minExecuteCost_ = minExecuteCost; - setParameter(std::string("MinExecuteCost"), minExecuteCost); -} - -int DescribeSQLLogsRequest::getPageSize() const { - return pageSize_; -} - -void DescribeSQLLogsRequest::setPageSize(int pageSize) { - pageSize_ = pageSize; - setParameter(std::string("PageSize"), std::to_string(pageSize)); -} - -std::string DescribeSQLLogsRequest::getDBInstanceId() const { - return dBInstanceId_; -} - -void DescribeSQLLogsRequest::setDBInstanceId(const std::string &dBInstanceId) { - dBInstanceId_ = dBInstanceId; - setParameter(std::string("DBInstanceId"), dBInstanceId); -} - -std::string DescribeSQLLogsRequest::getMaxExecuteCost() const { - return maxExecuteCost_; -} - -void DescribeSQLLogsRequest::setMaxExecuteCost(const std::string &maxExecuteCost) { - maxExecuteCost_ = maxExecuteCost; - setParameter(std::string("MaxExecuteCost"), maxExecuteCost); -} - -std::string DescribeSQLLogsRequest::getExecuteCost() const { - return executeCost_; -} - -void DescribeSQLLogsRequest::setExecuteCost(const std::string &executeCost) { - executeCost_ = executeCost; - setParameter(std::string("ExecuteCost"), executeCost); -} - -std::string DescribeSQLLogsRequest::getExecuteState() const { - return executeState_; -} - -void DescribeSQLLogsRequest::setExecuteState(const std::string &executeState) { - executeState_ = executeState; - setParameter(std::string("ExecuteState"), executeState); -} - -std::string DescribeSQLLogsRequest::getEndTime() const { - return endTime_; -} - -void DescribeSQLLogsRequest::setEndTime(const std::string &endTime) { - endTime_ = endTime; - setParameter(std::string("EndTime"), endTime); -} - -std::string DescribeSQLLogsRequest::getOperationType() const { - return operationType_; -} - -void DescribeSQLLogsRequest::setOperationType(const std::string &operationType) { - operationType_ = operationType; - setParameter(std::string("OperationType"), operationType); -} - -std::string DescribeSQLLogsRequest::getOperationClass() const { - return operationClass_; -} - -void DescribeSQLLogsRequest::setOperationClass(const std::string &operationClass) { - operationClass_ = operationClass; - setParameter(std::string("OperationClass"), operationClass); -} - -std::string DescribeSQLLogsRequest::getUser() const { - return user_; -} - -void DescribeSQLLogsRequest::setUser(const std::string &user) { - user_ = user; - setParameter(std::string("User"), user); -} - diff --git a/gpdb/src/model/DescribeSQLLogsV2Request.cc b/gpdb/src/model/DescribeSQLLogsV2Request.cc new file mode 100644 index 000000000..fafd62f4f --- /dev/null +++ b/gpdb/src/model/DescribeSQLLogsV2Request.cc @@ -0,0 +1,189 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Gpdb::Model::DescribeSQLLogsV2Request; + +DescribeSQLLogsV2Request::DescribeSQLLogsV2Request() + : RpcServiceRequest("gpdb", "2016-05-03", "DescribeSQLLogsV2") { + setMethod(HttpRequest::Method::Post); +} + +DescribeSQLLogsV2Request::~DescribeSQLLogsV2Request() {} + +std::string DescribeSQLLogsV2Request::getStartTime() const { + return startTime_; +} + +void DescribeSQLLogsV2Request::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); +} + +std::string DescribeSQLLogsV2Request::getQueryKeywords() const { + return queryKeywords_; +} + +void DescribeSQLLogsV2Request::setQueryKeywords(const std::string &queryKeywords) { + queryKeywords_ = queryKeywords; + setParameter(std::string("QueryKeywords"), queryKeywords); +} + +std::string DescribeSQLLogsV2Request::getPageNumber() const { + return pageNumber_; +} + +void DescribeSQLLogsV2Request::setPageNumber(const std::string &pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), pageNumber); +} + +std::string DescribeSQLLogsV2Request::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeSQLLogsV2Request::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribeSQLLogsV2Request::getResourceGroupId() const { + return resourceGroupId_; +} + +void DescribeSQLLogsV2Request::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + +std::string DescribeSQLLogsV2Request::getDatabase() const { + return database_; +} + +void DescribeSQLLogsV2Request::setDatabase(const std::string &database) { + database_ = database; + setParameter(std::string("Database"), database); +} + +std::string DescribeSQLLogsV2Request::getSourceIP() const { + return sourceIP_; +} + +void DescribeSQLLogsV2Request::setSourceIP(const std::string &sourceIP) { + sourceIP_ = sourceIP; + setParameter(std::string("SourceIP"), sourceIP); +} + +std::string DescribeSQLLogsV2Request::getRegionId() const { + return regionId_; +} + +void DescribeSQLLogsV2Request::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DescribeSQLLogsV2Request::getMinExecuteCost() const { + return minExecuteCost_; +} + +void DescribeSQLLogsV2Request::setMinExecuteCost(const std::string &minExecuteCost) { + minExecuteCost_ = minExecuteCost; + setParameter(std::string("MinExecuteCost"), minExecuteCost); +} + +std::string DescribeSQLLogsV2Request::getPageSize() const { + return pageSize_; +} + +void DescribeSQLLogsV2Request::setPageSize(const std::string &pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), pageSize); +} + +std::string DescribeSQLLogsV2Request::getDBInstanceId() const { + return dBInstanceId_; +} + +void DescribeSQLLogsV2Request::setDBInstanceId(const std::string &dBInstanceId) { + dBInstanceId_ = dBInstanceId; + setParameter(std::string("DBInstanceId"), dBInstanceId); +} + +std::string DescribeSQLLogsV2Request::getMaxExecuteCost() const { + return maxExecuteCost_; +} + +void DescribeSQLLogsV2Request::setMaxExecuteCost(const std::string &maxExecuteCost) { + maxExecuteCost_ = maxExecuteCost; + setParameter(std::string("MaxExecuteCost"), maxExecuteCost); +} + +std::string DescribeSQLLogsV2Request::getExecuteCost() const { + return executeCost_; +} + +void DescribeSQLLogsV2Request::setExecuteCost(const std::string &executeCost) { + executeCost_ = executeCost; + setParameter(std::string("ExecuteCost"), executeCost); +} + +std::string DescribeSQLLogsV2Request::getExecuteState() const { + return executeState_; +} + +void DescribeSQLLogsV2Request::setExecuteState(const std::string &executeState) { + executeState_ = executeState; + setParameter(std::string("ExecuteState"), executeState); +} + +std::string DescribeSQLLogsV2Request::getEndTime() const { + return endTime_; +} + +void DescribeSQLLogsV2Request::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); +} + +std::string DescribeSQLLogsV2Request::getOperationType() const { + return operationType_; +} + +void DescribeSQLLogsV2Request::setOperationType(const std::string &operationType) { + operationType_ = operationType; + setParameter(std::string("OperationType"), operationType); +} + +std::string DescribeSQLLogsV2Request::getOperationClass() const { + return operationClass_; +} + +void DescribeSQLLogsV2Request::setOperationClass(const std::string &operationClass) { + operationClass_ = operationClass; + setParameter(std::string("OperationClass"), operationClass); +} + +std::string DescribeSQLLogsV2Request::getUser() const { + return user_; +} + +void DescribeSQLLogsV2Request::setUser(const std::string &user) { + user_ = user; + setParameter(std::string("User"), user); +} + diff --git a/gpdb/src/model/DescribeSQLLogsResult.cc b/gpdb/src/model/DescribeSQLLogsV2Result.cc similarity index 83% rename from gpdb/src/model/DescribeSQLLogsResult.cc rename to gpdb/src/model/DescribeSQLLogsV2Result.cc index 56967345b..6e33f0fff 100644 --- a/gpdb/src/model/DescribeSQLLogsResult.cc +++ b/gpdb/src/model/DescribeSQLLogsV2Result.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Gpdb; using namespace AlibabaCloud::Gpdb::Model; -DescribeSQLLogsResult::DescribeSQLLogsResult() : +DescribeSQLLogsV2Result::DescribeSQLLogsV2Result() : ServiceResult() {} -DescribeSQLLogsResult::DescribeSQLLogsResult(const std::string &payload) : +DescribeSQLLogsV2Result::DescribeSQLLogsV2Result(const std::string &payload) : ServiceResult() { parse(payload); } -DescribeSQLLogsResult::~DescribeSQLLogsResult() +DescribeSQLLogsV2Result::~DescribeSQLLogsV2Result() {} -void DescribeSQLLogsResult::parse(const std::string &payload) +void DescribeSQLLogsV2Result::parse(const std::string &payload) { Json::Reader reader; Json::Value value; @@ -59,8 +59,6 @@ void DescribeSQLLogsResult::parse(const std::string &payload) itemsObject.operationType = valueItemsItem["OperationType"].asString(); if(!valueItemsItem["SourceIP"].isNull()) itemsObject.sourceIP = valueItemsItem["SourceIP"].asString(); - if(!valueItemsItem["SQLPlan"].isNull()) - itemsObject.sQLPlan = valueItemsItem["SQLPlan"].asString(); if(!valueItemsItem["ReturnRowCounts"].isNull()) itemsObject.returnRowCounts = std::stol(valueItemsItem["ReturnRowCounts"].asString()); if(!valueItemsItem["DBName"].isNull()) @@ -80,17 +78,17 @@ void DescribeSQLLogsResult::parse(const std::string &payload) } -int DescribeSQLLogsResult::getPageRecordCount()const +int DescribeSQLLogsV2Result::getPageRecordCount()const { return pageRecordCount_; } -int DescribeSQLLogsResult::getPageNumber()const +int DescribeSQLLogsV2Result::getPageNumber()const { return pageNumber_; } -std::vector DescribeSQLLogsResult::getItems()const +std::vector DescribeSQLLogsV2Result::getItems()const { return items_; } diff --git a/gpdb/src/model/DescribeSampleDataRequest.cc b/gpdb/src/model/DescribeSampleDataRequest.cc new file mode 100644 index 000000000..350771a81 --- /dev/null +++ b/gpdb/src/model/DescribeSampleDataRequest.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::Gpdb::Model::DescribeSampleDataRequest; + +DescribeSampleDataRequest::DescribeSampleDataRequest() + : RpcServiceRequest("gpdb", "2016-05-03", "DescribeSampleData") { + setMethod(HttpRequest::Method::Post); +} + +DescribeSampleDataRequest::~DescribeSampleDataRequest() {} + +std::string DescribeSampleDataRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeSampleDataRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribeSampleDataRequest::getDBInstanceId() const { + return dBInstanceId_; +} + +void DescribeSampleDataRequest::setDBInstanceId(const std::string &dBInstanceId) { + dBInstanceId_ = dBInstanceId; + setParameter(std::string("DBInstanceId"), dBInstanceId); +} + +long DescribeSampleDataRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeSampleDataRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/gpdb/src/model/DescribeSampleDataResult.cc b/gpdb/src/model/DescribeSampleDataResult.cc new file mode 100644 index 000000000..ce7b79a39 --- /dev/null +++ b/gpdb/src/model/DescribeSampleDataResult.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::Gpdb; +using namespace AlibabaCloud::Gpdb::Model; + +DescribeSampleDataResult::DescribeSampleDataResult() : + ServiceResult() +{} + +DescribeSampleDataResult::DescribeSampleDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSampleDataResult::~DescribeSampleDataResult() +{} + +void DescribeSampleDataResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["HasSampleData"].isNull()) + hasSampleData_ = value["HasSampleData"].asString() == "true"; + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["DBInstanceId"].isNull()) + dBInstanceId_ = value["DBInstanceId"].asString(); + +} + +std::string DescribeSampleDataResult::getDBInstanceId()const +{ + return dBInstanceId_; +} + +bool DescribeSampleDataResult::getHasSampleData()const +{ + return hasSampleData_; +} + +std::string DescribeSampleDataResult::getErrorMessage()const +{ + return errorMessage_; +} + diff --git a/gpdb/src/model/DescribeSlowLogRecordsRequest.cc b/gpdb/src/model/DescribeSlowLogRecordsRequest.cc deleted file mode 100644 index 80b04d128..000000000 --- a/gpdb/src/model/DescribeSlowLogRecordsRequest.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::Gpdb::Model::DescribeSlowLogRecordsRequest; - -DescribeSlowLogRecordsRequest::DescribeSlowLogRecordsRequest() - : RpcServiceRequest("gpdb", "2016-05-03", "DescribeSlowLogRecords") { - setMethod(HttpRequest::Method::Post); -} - -DescribeSlowLogRecordsRequest::~DescribeSlowLogRecordsRequest() {} - -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::getDBInstanceId() const { - return dBInstanceId_; -} - -void DescribeSlowLogRecordsRequest::setDBInstanceId(const std::string &dBInstanceId) { - dBInstanceId_ = dBInstanceId; - setParameter(std::string("DBInstanceId"), dBInstanceId); -} - -long DescribeSlowLogRecordsRequest::getSQLId() const { - return sQLId_; -} - -void DescribeSlowLogRecordsRequest::setSQLId(long sQLId) { - sQLId_ = sQLId; - setParameter(std::string("SQLId"), std::to_string(sQLId)); -} - -std::string DescribeSlowLogRecordsRequest::getEndTime() const { - return endTime_; -} - -void DescribeSlowLogRecordsRequest::setEndTime(const std::string &endTime) { - endTime_ = endTime; - setParameter(std::string("EndTime"), endTime); -} - -std::string DescribeSlowLogRecordsRequest::getDBName() const { - return dBName_; -} - -void DescribeSlowLogRecordsRequest::setDBName(const std::string &dBName) { - dBName_ = dBName; - setParameter(std::string("DBName"), dBName); -} - diff --git a/gpdb/src/model/DescribeSlowLogRecordsResult.cc b/gpdb/src/model/DescribeSlowLogRecordsResult.cc deleted file mode 100644 index 993c1fb7d..000000000 --- a/gpdb/src/model/DescribeSlowLogRecordsResult.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::Gpdb; -using namespace AlibabaCloud::Gpdb::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"]["SQLSlowRecord"]; - for (auto valueItemsSQLSlowRecord : allItemsNode) - { - SQLSlowRecord itemsObject; - if(!valueItemsSQLSlowRecord["ExecutionStartTime"].isNull()) - itemsObject.executionStartTime = valueItemsSQLSlowRecord["ExecutionStartTime"].asString(); - if(!valueItemsSQLSlowRecord["HostAddress"].isNull()) - itemsObject.hostAddress = valueItemsSQLSlowRecord["HostAddress"].asString(); - if(!valueItemsSQLSlowRecord["QueryTimes"].isNull()) - itemsObject.queryTimes = std::stol(valueItemsSQLSlowRecord["QueryTimes"].asString()); - if(!valueItemsSQLSlowRecord["SQLText"].isNull()) - itemsObject.sQLText = valueItemsSQLSlowRecord["SQLText"].asString(); - if(!valueItemsSQLSlowRecord["ReturnRowCounts"].isNull()) - itemsObject.returnRowCounts = std::stol(valueItemsSQLSlowRecord["ReturnRowCounts"].asString()); - if(!valueItemsSQLSlowRecord["ParseRowCounts"].isNull()) - itemsObject.parseRowCounts = std::stol(valueItemsSQLSlowRecord["ParseRowCounts"].asString()); - if(!valueItemsSQLSlowRecord["DBName"].isNull()) - itemsObject.dBName = valueItemsSQLSlowRecord["DBName"].asString(); - if(!valueItemsSQLSlowRecord["LockTimes"].isNull()) - itemsObject.lockTimes = std::stol(valueItemsSQLSlowRecord["LockTimes"].asString()); - items_.push_back(itemsObject); - } - if(!value["TotalRecordCount"].isNull()) - totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString()); - if(!value["PageRecordCount"].isNull()) - pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); - if(!value["Engine"].isNull()) - engine_ = value["Engine"].asString(); - -} - -int DescribeSlowLogRecordsResult::getTotalRecordCount()const -{ - return totalRecordCount_; -} - -int DescribeSlowLogRecordsResult::getPageRecordCount()const -{ - return pageRecordCount_; -} - -int DescribeSlowLogRecordsResult::getPageNumber()const -{ - return pageNumber_; -} - -std::vector DescribeSlowLogRecordsResult::getItems()const -{ - return items_; -} - -std::string DescribeSlowLogRecordsResult::getEngine()const -{ - return engine_; -} - diff --git a/gpdb/src/model/DescribeSlowSQLLogsRequest.cc b/gpdb/src/model/DescribeSlowSQLLogsRequest.cc deleted file mode 100644 index 63077865b..000000000 --- a/gpdb/src/model/DescribeSlowSQLLogsRequest.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::Gpdb::Model::DescribeSlowSQLLogsRequest; - -DescribeSlowSQLLogsRequest::DescribeSlowSQLLogsRequest() - : RpcServiceRequest("gpdb", "2016-05-03", "DescribeSlowSQLLogs") { - setMethod(HttpRequest::Method::Post); -} - -DescribeSlowSQLLogsRequest::~DescribeSlowSQLLogsRequest() {} - -std::string DescribeSlowSQLLogsRequest::getStartTime() const { - return startTime_; -} - -void DescribeSlowSQLLogsRequest::setStartTime(const std::string &startTime) { - startTime_ = startTime; - setParameter(std::string("StartTime"), startTime); -} - -std::string DescribeSlowSQLLogsRequest::getQueryKeywords() const { - return queryKeywords_; -} - -void DescribeSlowSQLLogsRequest::setQueryKeywords(const std::string &queryKeywords) { - queryKeywords_ = queryKeywords; - setParameter(std::string("QueryKeywords"), queryKeywords); -} - -int DescribeSlowSQLLogsRequest::getPageNumber() const { - return pageNumber_; -} - -void DescribeSlowSQLLogsRequest::setPageNumber(int pageNumber) { - pageNumber_ = pageNumber; - setParameter(std::string("PageNumber"), std::to_string(pageNumber)); -} - -std::string DescribeSlowSQLLogsRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void DescribeSlowSQLLogsRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string DescribeSlowSQLLogsRequest::getDatabase() const { - return database_; -} - -void DescribeSlowSQLLogsRequest::setDatabase(const std::string &database) { - database_ = database; - setParameter(std::string("Database"), database); -} - -std::string DescribeSlowSQLLogsRequest::getSourceIP() const { - return sourceIP_; -} - -void DescribeSlowSQLLogsRequest::setSourceIP(const std::string &sourceIP) { - sourceIP_ = sourceIP; - setParameter(std::string("SourceIP"), sourceIP); -} - -std::string DescribeSlowSQLLogsRequest::getMinExecuteCost() const { - return minExecuteCost_; -} - -void DescribeSlowSQLLogsRequest::setMinExecuteCost(const std::string &minExecuteCost) { - minExecuteCost_ = minExecuteCost; - setParameter(std::string("MinExecuteCost"), minExecuteCost); -} - -int DescribeSlowSQLLogsRequest::getPageSize() const { - return pageSize_; -} - -void DescribeSlowSQLLogsRequest::setPageSize(int pageSize) { - pageSize_ = pageSize; - setParameter(std::string("PageSize"), std::to_string(pageSize)); -} - -std::string DescribeSlowSQLLogsRequest::getDBInstanceId() const { - return dBInstanceId_; -} - -void DescribeSlowSQLLogsRequest::setDBInstanceId(const std::string &dBInstanceId) { - dBInstanceId_ = dBInstanceId; - setParameter(std::string("DBInstanceId"), dBInstanceId); -} - -std::string DescribeSlowSQLLogsRequest::getMaxExecuteCost() const { - return maxExecuteCost_; -} - -void DescribeSlowSQLLogsRequest::setMaxExecuteCost(const std::string &maxExecuteCost) { - maxExecuteCost_ = maxExecuteCost; - setParameter(std::string("MaxExecuteCost"), maxExecuteCost); -} - -std::string DescribeSlowSQLLogsRequest::getExecuteState() const { - return executeState_; -} - -void DescribeSlowSQLLogsRequest::setExecuteState(const std::string &executeState) { - executeState_ = executeState; - setParameter(std::string("ExecuteState"), executeState); -} - -std::string DescribeSlowSQLLogsRequest::getEndTime() const { - return endTime_; -} - -void DescribeSlowSQLLogsRequest::setEndTime(const std::string &endTime) { - endTime_ = endTime; - setParameter(std::string("EndTime"), endTime); -} - -std::string DescribeSlowSQLLogsRequest::getOperationType() const { - return operationType_; -} - -void DescribeSlowSQLLogsRequest::setOperationType(const std::string &operationType) { - operationType_ = operationType; - setParameter(std::string("OperationType"), operationType); -} - -std::string DescribeSlowSQLLogsRequest::getOperationClass() const { - return operationClass_; -} - -void DescribeSlowSQLLogsRequest::setOperationClass(const std::string &operationClass) { - operationClass_ = operationClass; - setParameter(std::string("OperationClass"), operationClass); -} - -std::string DescribeSlowSQLLogsRequest::getUser() const { - return user_; -} - -void DescribeSlowSQLLogsRequest::setUser(const std::string &user) { - user_ = user; - setParameter(std::string("User"), user); -} - diff --git a/gpdb/src/model/DescribeSlowSQLLogsResult.cc b/gpdb/src/model/DescribeSlowSQLLogsResult.cc deleted file mode 100644 index c24a374b9..000000000 --- a/gpdb/src/model/DescribeSlowSQLLogsResult.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::Gpdb; -using namespace AlibabaCloud::Gpdb::Model; - -DescribeSlowSQLLogsResult::DescribeSlowSQLLogsResult() : - ServiceResult() -{} - -DescribeSlowSQLLogsResult::DescribeSlowSQLLogsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeSlowSQLLogsResult::~DescribeSlowSQLLogsResult() -{} - -void DescribeSlowSQLLogsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allItemsNode = value["Items"]["Item"]; - for (auto valueItemsItem : allItemsNode) - { - Item itemsObject; - if(!valueItemsItem["OperationClass"].isNull()) - itemsObject.operationClass = valueItemsItem["OperationClass"].asString(); - if(!valueItemsItem["ExecuteState"].isNull()) - itemsObject.executeState = valueItemsItem["ExecuteState"].asString(); - if(!valueItemsItem["ExecuteCost"].isNull()) - itemsObject.executeCost = std::stof(valueItemsItem["ExecuteCost"].asString()); - if(!valueItemsItem["SQLText"].isNull()) - itemsObject.sQLText = valueItemsItem["SQLText"].asString(); - if(!valueItemsItem["SourcePort"].isNull()) - itemsObject.sourcePort = std::stoi(valueItemsItem["SourcePort"].asString()); - if(!valueItemsItem["DBRole"].isNull()) - itemsObject.dBRole = valueItemsItem["DBRole"].asString(); - if(!valueItemsItem["OperationType"].isNull()) - itemsObject.operationType = valueItemsItem["OperationType"].asString(); - if(!valueItemsItem["SourceIP"].isNull()) - itemsObject.sourceIP = valueItemsItem["SourceIP"].asString(); - if(!valueItemsItem["SQLPlan"].isNull()) - itemsObject.sQLPlan = valueItemsItem["SQLPlan"].asString(); - if(!valueItemsItem["ReturnRowCounts"].isNull()) - itemsObject.returnRowCounts = std::stol(valueItemsItem["ReturnRowCounts"].asString()); - if(!valueItemsItem["DBName"].isNull()) - itemsObject.dBName = valueItemsItem["DBName"].asString(); - if(!valueItemsItem["OperationExecuteTime"].isNull()) - itemsObject.operationExecuteTime = valueItemsItem["OperationExecuteTime"].asString(); - if(!valueItemsItem["ScanRowCounts"].isNull()) - itemsObject.scanRowCounts = std::stol(valueItemsItem["ScanRowCounts"].asString()); - if(!valueItemsItem["AccountName"].isNull()) - itemsObject.accountName = valueItemsItem["AccountName"].asString(); - if(!valueItemsItem["QueryId"].isNull()) - itemsObject.queryId = valueItemsItem["QueryId"].asString(); - items_.push_back(itemsObject); - } - if(!value["PageRecordCount"].isNull()) - pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); - -} - -int DescribeSlowSQLLogsResult::getPageRecordCount()const -{ - return pageRecordCount_; -} - -int DescribeSlowSQLLogsResult::getPageNumber()const -{ - return pageNumber_; -} - -std::vector DescribeSlowSQLLogsResult::getItems()const -{ - return items_; -} - diff --git a/gpdb/src/model/DescribeSpecificationRequest.cc b/gpdb/src/model/DescribeSpecificationRequest.cc deleted file mode 100644 index 6d2b7f5c5..000000000 --- a/gpdb/src/model/DescribeSpecificationRequest.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::Gpdb::Model::DescribeSpecificationRequest; - -DescribeSpecificationRequest::DescribeSpecificationRequest() - : RpcServiceRequest("gpdb", "2016-05-03", "DescribeSpecification") { - setMethod(HttpRequest::Method::Post); -} - -DescribeSpecificationRequest::~DescribeSpecificationRequest() {} - -std::string DescribeSpecificationRequest::getStorageType() const { - return storageType_; -} - -void DescribeSpecificationRequest::setStorageType(const std::string &storageType) { - storageType_ = storageType; - setParameter(std::string("StorageType"), storageType); -} - -std::string DescribeSpecificationRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void DescribeSpecificationRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -int DescribeSpecificationRequest::getCpuCores() const { - return cpuCores_; -} - -void DescribeSpecificationRequest::setCpuCores(int cpuCores) { - cpuCores_ = cpuCores; - setParameter(std::string("CpuCores"), std::to_string(cpuCores)); -} - -std::string DescribeSpecificationRequest::getDBInstanceId() const { - return dBInstanceId_; -} - -void DescribeSpecificationRequest::setDBInstanceId(const std::string &dBInstanceId) { - dBInstanceId_ = dBInstanceId; - setParameter(std::string("DBInstanceId"), dBInstanceId); -} - -int DescribeSpecificationRequest::getTotalNodeNum() const { - return totalNodeNum_; -} - -void DescribeSpecificationRequest::setTotalNodeNum(int totalNodeNum) { - totalNodeNum_ = totalNodeNum; - setParameter(std::string("TotalNodeNum"), std::to_string(totalNodeNum)); -} - -long DescribeSpecificationRequest::getOwnerId() const { - return ownerId_; -} - -void DescribeSpecificationRequest::setOwnerId(long ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), std::to_string(ownerId)); -} - diff --git a/gpdb/src/model/DescribeSpecificationResult.cc b/gpdb/src/model/DescribeSpecificationResult.cc deleted file mode 100644 index dfebdef4f..000000000 --- a/gpdb/src/model/DescribeSpecificationResult.cc +++ /dev/null @@ -1,89 +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::Gpdb; -using namespace AlibabaCloud::Gpdb::Model; - -DescribeSpecificationResult::DescribeSpecificationResult() : - ServiceResult() -{} - -DescribeSpecificationResult::DescribeSpecificationResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeSpecificationResult::~DescribeSpecificationResult() -{} - -void DescribeSpecificationResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allStorageNoticeNode = value["StorageNotice"]["StorageNoticeItem"]; - for (auto valueStorageNoticeStorageNoticeItem : allStorageNoticeNode) - { - StorageNoticeItem storageNoticeObject; - if(!valueStorageNoticeStorageNoticeItem["Value"].isNull()) - storageNoticeObject.value = valueStorageNoticeStorageNoticeItem["Value"].asString(); - if(!valueStorageNoticeStorageNoticeItem["Text"].isNull()) - storageNoticeObject.text = valueStorageNoticeStorageNoticeItem["Text"].asString(); - storageNotice_.push_back(storageNoticeObject); - } - auto allDBInstanceClassNode = value["DBInstanceClass"]["DBInstanceClassItem"]; - for (auto valueDBInstanceClassDBInstanceClassItem : allDBInstanceClassNode) - { - DBInstanceClassItem dBInstanceClassObject; - if(!valueDBInstanceClassDBInstanceClassItem["Value"].isNull()) - dBInstanceClassObject.value = valueDBInstanceClassDBInstanceClassItem["Value"].asString(); - if(!valueDBInstanceClassDBInstanceClassItem["Text"].isNull()) - dBInstanceClassObject.text = valueDBInstanceClassDBInstanceClassItem["Text"].asString(); - dBInstanceClass_.push_back(dBInstanceClassObject); - } - auto allDBInstanceGroupCountNode = value["DBInstanceGroupCount"]["DBInstanceGroupCountItem"]; - for (auto valueDBInstanceGroupCountDBInstanceGroupCountItem : allDBInstanceGroupCountNode) - { - DBInstanceGroupCountItem dBInstanceGroupCountObject; - if(!valueDBInstanceGroupCountDBInstanceGroupCountItem["Value"].isNull()) - dBInstanceGroupCountObject.value = valueDBInstanceGroupCountDBInstanceGroupCountItem["Value"].asString(); - if(!valueDBInstanceGroupCountDBInstanceGroupCountItem["Text"].isNull()) - dBInstanceGroupCountObject.text = valueDBInstanceGroupCountDBInstanceGroupCountItem["Text"].asString(); - dBInstanceGroupCount_.push_back(dBInstanceGroupCountObject); - } - -} - -std::vector DescribeSpecificationResult::getStorageNotice()const -{ - return storageNotice_; -} - -std::vector DescribeSpecificationResult::getDBInstanceClass()const -{ - return dBInstanceClass_; -} - -std::vector DescribeSpecificationResult::getDBInstanceGroupCount()const -{ - return dBInstanceGroupCount_; -} - diff --git a/gpdb/src/model/DescribeSQLLogByQueryIdRequest.cc b/gpdb/src/model/DescribeSupportFeaturesRequest.cc similarity index 53% rename from gpdb/src/model/DescribeSQLLogByQueryIdRequest.cc rename to gpdb/src/model/DescribeSupportFeaturesRequest.cc index 7ac49b599..1e5efd67f 100644 --- a/gpdb/src/model/DescribeSQLLogByQueryIdRequest.cc +++ b/gpdb/src/model/DescribeSupportFeaturesRequest.cc @@ -14,41 +14,41 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::Gpdb::Model::DescribeSQLLogByQueryIdRequest; +using AlibabaCloud::Gpdb::Model::DescribeSupportFeaturesRequest; -DescribeSQLLogByQueryIdRequest::DescribeSQLLogByQueryIdRequest() - : RpcServiceRequest("gpdb", "2016-05-03", "DescribeSQLLogByQueryId") { +DescribeSupportFeaturesRequest::DescribeSupportFeaturesRequest() + : RpcServiceRequest("gpdb", "2016-05-03", "DescribeSupportFeatures") { setMethod(HttpRequest::Method::Post); } -DescribeSQLLogByQueryIdRequest::~DescribeSQLLogByQueryIdRequest() {} +DescribeSupportFeaturesRequest::~DescribeSupportFeaturesRequest() {} -std::string DescribeSQLLogByQueryIdRequest::getAccessKeyId() const { +std::string DescribeSupportFeaturesRequest::getAccessKeyId() const { return accessKeyId_; } -void DescribeSQLLogByQueryIdRequest::setAccessKeyId(const std::string &accessKeyId) { +void DescribeSupportFeaturesRequest::setAccessKeyId(const std::string &accessKeyId) { accessKeyId_ = accessKeyId; setParameter(std::string("AccessKeyId"), accessKeyId); } -std::string DescribeSQLLogByQueryIdRequest::getDBInstanceId() const { +std::string DescribeSupportFeaturesRequest::getDBInstanceId() const { return dBInstanceId_; } -void DescribeSQLLogByQueryIdRequest::setDBInstanceId(const std::string &dBInstanceId) { +void DescribeSupportFeaturesRequest::setDBInstanceId(const std::string &dBInstanceId) { dBInstanceId_ = dBInstanceId; setParameter(std::string("DBInstanceId"), dBInstanceId); } -std::string DescribeSQLLogByQueryIdRequest::getQueryId() const { - return queryId_; +long DescribeSupportFeaturesRequest::getOwnerId() const { + return ownerId_; } -void DescribeSQLLogByQueryIdRequest::setQueryId(const std::string &queryId) { - queryId_ = queryId; - setParameter(std::string("QueryId"), queryId); +void DescribeSupportFeaturesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/gpdb/src/model/AddBuDBInstanceRelationResult.cc b/gpdb/src/model/DescribeSupportFeaturesResult.cc similarity index 57% rename from gpdb/src/model/AddBuDBInstanceRelationResult.cc rename to gpdb/src/model/DescribeSupportFeaturesResult.cc index 7e067a375..c4326f1f0 100644 --- a/gpdb/src/model/AddBuDBInstanceRelationResult.cc +++ b/gpdb/src/model/DescribeSupportFeaturesResult.cc @@ -14,45 +14,45 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Gpdb; using namespace AlibabaCloud::Gpdb::Model; -AddBuDBInstanceRelationResult::AddBuDBInstanceRelationResult() : +DescribeSupportFeaturesResult::DescribeSupportFeaturesResult() : ServiceResult() {} -AddBuDBInstanceRelationResult::AddBuDBInstanceRelationResult(const std::string &payload) : +DescribeSupportFeaturesResult::DescribeSupportFeaturesResult(const std::string &payload) : ServiceResult() { parse(payload); } -AddBuDBInstanceRelationResult::~AddBuDBInstanceRelationResult() +DescribeSupportFeaturesResult::~DescribeSupportFeaturesResult() {} -void AddBuDBInstanceRelationResult::parse(const std::string &payload) +void DescribeSupportFeaturesResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["BusinessUnit"].isNull()) - businessUnit_ = value["BusinessUnit"].asString(); - if(!value["DBInstanceName"].isNull()) - dBInstanceName_ = value["DBInstanceName"].asString(); + if(!value["DBInstanceId"].isNull()) + dBInstanceId_ = value["DBInstanceId"].asString(); + if(!value["SupportFeatureList"].isNull()) + supportFeatureList_ = value["SupportFeatureList"].asString(); } -std::string AddBuDBInstanceRelationResult::getBusinessUnit()const +std::string DescribeSupportFeaturesResult::getDBInstanceId()const { - return businessUnit_; + return dBInstanceId_; } -std::string AddBuDBInstanceRelationResult::getDBInstanceName()const +std::string DescribeSupportFeaturesResult::getSupportFeatureList()const { - return dBInstanceName_; + return supportFeatureList_; } diff --git a/gpdb/src/model/DescribeTagsRequest.cc b/gpdb/src/model/DescribeTagsRequest.cc index 011685f9e..4b1328609 100644 --- a/gpdb/src/model/DescribeTagsRequest.cc +++ b/gpdb/src/model/DescribeTagsRequest.cc @@ -43,6 +43,15 @@ void DescribeTagsRequest::setAccessKeyId(const std::string &accessKeyId) { setParameter(std::string("AccessKeyId"), accessKeyId); } +std::string DescribeTagsRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void DescribeTagsRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + std::string DescribeTagsRequest::getRegionId() const { return regionId_; } diff --git a/gpdb/src/model/DescribeWaitingSQLInfoRequest.cc b/gpdb/src/model/DescribeWaitingSQLInfoRequest.cc new file mode 100644 index 000000000..5e5f4a45e --- /dev/null +++ b/gpdb/src/model/DescribeWaitingSQLInfoRequest.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::Gpdb::Model::DescribeWaitingSQLInfoRequest; + +DescribeWaitingSQLInfoRequest::DescribeWaitingSQLInfoRequest() + : RpcServiceRequest("gpdb", "2016-05-03", "DescribeWaitingSQLInfo") { + setMethod(HttpRequest::Method::Post); +} + +DescribeWaitingSQLInfoRequest::~DescribeWaitingSQLInfoRequest() {} + +std::string DescribeWaitingSQLInfoRequest::getPID() const { + return pID_; +} + +void DescribeWaitingSQLInfoRequest::setPID(const std::string &pID) { + pID_ = pID; + setParameter(std::string("PID"), pID); +} + +std::string DescribeWaitingSQLInfoRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeWaitingSQLInfoRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribeWaitingSQLInfoRequest::getDatabase() const { + return database_; +} + +void DescribeWaitingSQLInfoRequest::setDatabase(const std::string &database) { + database_ = database; + setParameter(std::string("Database"), database); +} + +std::string DescribeWaitingSQLInfoRequest::getDBInstanceId() const { + return dBInstanceId_; +} + +void DescribeWaitingSQLInfoRequest::setDBInstanceId(const std::string &dBInstanceId) { + dBInstanceId_ = dBInstanceId; + setParameter(std::string("DBInstanceId"), dBInstanceId); +} + diff --git a/gpdb/src/model/DescribeWaitingSQLInfoResult.cc b/gpdb/src/model/DescribeWaitingSQLInfoResult.cc new file mode 100644 index 000000000..8c4c59dcc --- /dev/null +++ b/gpdb/src/model/DescribeWaitingSQLInfoResult.cc @@ -0,0 +1,82 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Gpdb; +using namespace AlibabaCloud::Gpdb::Model; + +DescribeWaitingSQLInfoResult::DescribeWaitingSQLInfoResult() : + ServiceResult() +{} + +DescribeWaitingSQLInfoResult::DescribeWaitingSQLInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeWaitingSQLInfoResult::~DescribeWaitingSQLInfoResult() +{} + +void DescribeWaitingSQLInfoResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allItemsNode = value["Items"]["item"]; + for (auto valueItemsitem : allItemsNode) + { + Item itemsObject; + if(!valueItemsitem["PID"].isNull()) + itemsObject.pID = valueItemsitem["PID"].asString(); + if(!valueItemsitem["User"].isNull()) + itemsObject.user = valueItemsitem["User"].asString(); + if(!valueItemsitem["SQLStmt"].isNull()) + itemsObject.sQLStmt = valueItemsitem["SQLStmt"].asString(); + if(!valueItemsitem["Application"].isNull()) + itemsObject.application = valueItemsitem["Application"].asString(); + if(!valueItemsitem["NotGrantLocks"].isNull()) + itemsObject.notGrantLocks = valueItemsitem["NotGrantLocks"].asString(); + if(!valueItemsitem["BlockedByPID"].isNull()) + itemsObject.blockedByPID = valueItemsitem["BlockedByPID"].asString(); + if(!valueItemsitem["BlockedByUser"].isNull()) + itemsObject.blockedByUser = valueItemsitem["BlockedByUser"].asString(); + if(!valueItemsitem["BlockedBySQLStmt"].isNull()) + itemsObject.blockedBySQLStmt = valueItemsitem["BlockedBySQLStmt"].asString(); + if(!valueItemsitem["BlockedByApplication"].isNull()) + itemsObject.blockedByApplication = valueItemsitem["BlockedByApplication"].asString(); + if(!valueItemsitem["GrantLocks"].isNull()) + itemsObject.grantLocks = valueItemsitem["GrantLocks"].asString(); + items_.push_back(itemsObject); + } + if(!value["Database"].isNull()) + database_ = value["Database"].asString(); + +} + +std::string DescribeWaitingSQLInfoResult::getDatabase()const +{ + return database_; +} + +std::vector DescribeWaitingSQLInfoResult::getItems()const +{ + return items_; +} + diff --git a/gpdb/src/model/DescribeWaitingSQLRecordsRequest.cc b/gpdb/src/model/DescribeWaitingSQLRecordsRequest.cc new file mode 100644 index 000000000..9b071157b --- /dev/null +++ b/gpdb/src/model/DescribeWaitingSQLRecordsRequest.cc @@ -0,0 +1,126 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Gpdb::Model::DescribeWaitingSQLRecordsRequest; + +DescribeWaitingSQLRecordsRequest::DescribeWaitingSQLRecordsRequest() + : RpcServiceRequest("gpdb", "2016-05-03", "DescribeWaitingSQLRecords") { + setMethod(HttpRequest::Method::Post); +} + +DescribeWaitingSQLRecordsRequest::~DescribeWaitingSQLRecordsRequest() {} + +std::string DescribeWaitingSQLRecordsRequest::getQueryCondition() const { + return queryCondition_; +} + +void DescribeWaitingSQLRecordsRequest::setQueryCondition(const std::string &queryCondition) { + queryCondition_ = queryCondition; + setParameter(std::string("QueryCondition"), queryCondition); +} + +std::string DescribeWaitingSQLRecordsRequest::getStartTime() const { + return startTime_; +} + +void DescribeWaitingSQLRecordsRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); +} + +int DescribeWaitingSQLRecordsRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeWaitingSQLRecordsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string DescribeWaitingSQLRecordsRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeWaitingSQLRecordsRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribeWaitingSQLRecordsRequest::getDatabase() const { + return database_; +} + +void DescribeWaitingSQLRecordsRequest::setDatabase(const std::string &database) { + database_ = database; + setParameter(std::string("Database"), database); +} + +int DescribeWaitingSQLRecordsRequest::getPageSize() const { + return pageSize_; +} + +void DescribeWaitingSQLRecordsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string DescribeWaitingSQLRecordsRequest::getDBInstanceId() const { + return dBInstanceId_; +} + +void DescribeWaitingSQLRecordsRequest::setDBInstanceId(const std::string &dBInstanceId) { + dBInstanceId_ = dBInstanceId; + setParameter(std::string("DBInstanceId"), dBInstanceId); +} + +std::string DescribeWaitingSQLRecordsRequest::getKeyword() const { + return keyword_; +} + +void DescribeWaitingSQLRecordsRequest::setKeyword(const std::string &keyword) { + keyword_ = keyword; + setParameter(std::string("Keyword"), keyword); +} + +std::string DescribeWaitingSQLRecordsRequest::getOrder() const { + return order_; +} + +void DescribeWaitingSQLRecordsRequest::setOrder(const std::string &order) { + order_ = order; + setParameter(std::string("Order"), order); +} + +std::string DescribeWaitingSQLRecordsRequest::getEndTime() const { + return endTime_; +} + +void DescribeWaitingSQLRecordsRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); +} + +std::string DescribeWaitingSQLRecordsRequest::getUser() const { + return user_; +} + +void DescribeWaitingSQLRecordsRequest::setUser(const std::string &user) { + user_ = user; + setParameter(std::string("User"), user); +} + diff --git a/gpdb/src/model/DescribeWaitingSQLRecordsResult.cc b/gpdb/src/model/DescribeWaitingSQLRecordsResult.cc new file mode 100644 index 000000000..c06b1644a --- /dev/null +++ b/gpdb/src/model/DescribeWaitingSQLRecordsResult.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::Gpdb; +using namespace AlibabaCloud::Gpdb::Model; + +DescribeWaitingSQLRecordsResult::DescribeWaitingSQLRecordsResult() : + ServiceResult() +{} + +DescribeWaitingSQLRecordsResult::DescribeWaitingSQLRecordsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeWaitingSQLRecordsResult::~DescribeWaitingSQLRecordsResult() +{} + +void DescribeWaitingSQLRecordsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allItemsNode = value["Items"]["Item"]; + for (auto valueItemsItem : allItemsNode) + { + Item itemsObject; + if(!valueItemsItem["PID"].isNull()) + itemsObject.pID = valueItemsItem["PID"].asString(); + if(!valueItemsItem["SessionID"].isNull()) + itemsObject.sessionID = valueItemsItem["SessionID"].asString(); + if(!valueItemsItem["StartTime"].isNull()) + itemsObject.startTime = std::stol(valueItemsItem["StartTime"].asString()); + if(!valueItemsItem["WaitingTime"].isNull()) + itemsObject.waitingTime = std::stol(valueItemsItem["WaitingTime"].asString()); + if(!valueItemsItem["Status"].isNull()) + itemsObject.status = valueItemsItem["Status"].asString(); + if(!valueItemsItem["SQLStmt"].isNull()) + itemsObject.sQLStmt = valueItemsItem["SQLStmt"].asString(); + if(!valueItemsItem["User"].isNull()) + itemsObject.user = valueItemsItem["User"].asString(); + if(!valueItemsItem["Database"].isNull()) + itemsObject.database = valueItemsItem["Database"].asString(); + items_.push_back(itemsObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + +} + +int DescribeWaitingSQLRecordsResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeWaitingSQLRecordsResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeWaitingSQLRecordsResult::getItems()const +{ + return items_; +} + diff --git a/gpdb/src/model/DownloadDiagnosisRecordsRequest.cc b/gpdb/src/model/DownloadDiagnosisRecordsRequest.cc new file mode 100644 index 000000000..78166518f --- /dev/null +++ b/gpdb/src/model/DownloadDiagnosisRecordsRequest.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::Gpdb::Model::DownloadDiagnosisRecordsRequest; + +DownloadDiagnosisRecordsRequest::DownloadDiagnosisRecordsRequest() + : RpcServiceRequest("gpdb", "2016-05-03", "DownloadDiagnosisRecords") { + setMethod(HttpRequest::Method::Post); +} + +DownloadDiagnosisRecordsRequest::~DownloadDiagnosisRecordsRequest() {} + +std::string DownloadDiagnosisRecordsRequest::getQueryCondition() const { + return queryCondition_; +} + +void DownloadDiagnosisRecordsRequest::setQueryCondition(const std::string &queryCondition) { + queryCondition_ = queryCondition; + setParameter(std::string("QueryCondition"), queryCondition); +} + +std::string DownloadDiagnosisRecordsRequest::getStartTime() const { + return startTime_; +} + +void DownloadDiagnosisRecordsRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); +} + +std::string DownloadDiagnosisRecordsRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DownloadDiagnosisRecordsRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DownloadDiagnosisRecordsRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void DownloadDiagnosisRecordsRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + +std::string DownloadDiagnosisRecordsRequest::getDatabase() const { + return database_; +} + +void DownloadDiagnosisRecordsRequest::setDatabase(const std::string &database) { + database_ = database; + setParameter(std::string("Database"), database); +} + +std::string DownloadDiagnosisRecordsRequest::getDBInstanceId() const { + return dBInstanceId_; +} + +void DownloadDiagnosisRecordsRequest::setDBInstanceId(const std::string &dBInstanceId) { + dBInstanceId_ = dBInstanceId; + setParameter(std::string("DBInstanceId"), dBInstanceId); +} + +std::string DownloadDiagnosisRecordsRequest::getLang() const { + return lang_; +} + +void DownloadDiagnosisRecordsRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); +} + +std::string DownloadDiagnosisRecordsRequest::getEndTime() const { + return endTime_; +} + +void DownloadDiagnosisRecordsRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); +} + +std::string DownloadDiagnosisRecordsRequest::getUser() const { + return user_; +} + +void DownloadDiagnosisRecordsRequest::setUser(const std::string &user) { + user_ = user; + setParameter(std::string("User"), user); +} + diff --git a/gpdb/src/model/DownloadDiagnosisRecordsResult.cc b/gpdb/src/model/DownloadDiagnosisRecordsResult.cc new file mode 100644 index 000000000..4a159ec0a --- /dev/null +++ b/gpdb/src/model/DownloadDiagnosisRecordsResult.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::Gpdb; +using namespace AlibabaCloud::Gpdb::Model; + +DownloadDiagnosisRecordsResult::DownloadDiagnosisRecordsResult() : + ServiceResult() +{} + +DownloadDiagnosisRecordsResult::DownloadDiagnosisRecordsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DownloadDiagnosisRecordsResult::~DownloadDiagnosisRecordsResult() +{} + +void DownloadDiagnosisRecordsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["DownloadId"].isNull()) + downloadId_ = value["DownloadId"].asString(); + if(!value["DBInstanceId"].isNull()) + dBInstanceId_ = value["DBInstanceId"].asString(); + +} + +std::string DownloadDiagnosisRecordsResult::getDBInstanceId()const +{ + return dBInstanceId_; +} + +std::string DownloadDiagnosisRecordsResult::getDownloadId()const +{ + return downloadId_; +} + diff --git a/gpdb/src/model/DownloadSQLLogsRecordsRequest.cc b/gpdb/src/model/DownloadSQLLogsRecordsRequest.cc new file mode 100644 index 000000000..d5d891719 --- /dev/null +++ b/gpdb/src/model/DownloadSQLLogsRecordsRequest.cc @@ -0,0 +1,180 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Gpdb::Model::DownloadSQLLogsRecordsRequest; + +DownloadSQLLogsRecordsRequest::DownloadSQLLogsRecordsRequest() + : RpcServiceRequest("gpdb", "2016-05-03", "DownloadSQLLogsRecords") { + setMethod(HttpRequest::Method::Post); +} + +DownloadSQLLogsRecordsRequest::~DownloadSQLLogsRecordsRequest() {} + +std::string DownloadSQLLogsRecordsRequest::getStartTime() const { + return startTime_; +} + +void DownloadSQLLogsRecordsRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); +} + +std::string DownloadSQLLogsRecordsRequest::getQueryKeywords() const { + return queryKeywords_; +} + +void DownloadSQLLogsRecordsRequest::setQueryKeywords(const std::string &queryKeywords) { + queryKeywords_ = queryKeywords; + setParameter(std::string("QueryKeywords"), queryKeywords); +} + +int DownloadSQLLogsRecordsRequest::getPageNumber() const { + return pageNumber_; +} + +void DownloadSQLLogsRecordsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string DownloadSQLLogsRecordsRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DownloadSQLLogsRecordsRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DownloadSQLLogsRecordsRequest::getDatabase() const { + return database_; +} + +void DownloadSQLLogsRecordsRequest::setDatabase(const std::string &database) { + database_ = database; + setParameter(std::string("Database"), database); +} + +std::string DownloadSQLLogsRecordsRequest::getSourceIP() const { + return sourceIP_; +} + +void DownloadSQLLogsRecordsRequest::setSourceIP(const std::string &sourceIP) { + sourceIP_ = sourceIP; + setParameter(std::string("SourceIP"), sourceIP); +} + +std::string DownloadSQLLogsRecordsRequest::getMinExecuteCost() const { + return minExecuteCost_; +} + +void DownloadSQLLogsRecordsRequest::setMinExecuteCost(const std::string &minExecuteCost) { + minExecuteCost_ = minExecuteCost; + setParameter(std::string("MinExecuteCost"), minExecuteCost); +} + +int DownloadSQLLogsRecordsRequest::getPageSize() const { + return pageSize_; +} + +void DownloadSQLLogsRecordsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string DownloadSQLLogsRecordsRequest::getDBInstanceId() const { + return dBInstanceId_; +} + +void DownloadSQLLogsRecordsRequest::setDBInstanceId(const std::string &dBInstanceId) { + dBInstanceId_ = dBInstanceId; + setParameter(std::string("DBInstanceId"), dBInstanceId); +} + +std::string DownloadSQLLogsRecordsRequest::getLang() const { + return lang_; +} + +void DownloadSQLLogsRecordsRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); +} + +std::string DownloadSQLLogsRecordsRequest::getMaxExecuteCost() const { + return maxExecuteCost_; +} + +void DownloadSQLLogsRecordsRequest::setMaxExecuteCost(const std::string &maxExecuteCost) { + maxExecuteCost_ = maxExecuteCost; + setParameter(std::string("MaxExecuteCost"), maxExecuteCost); +} + +std::string DownloadSQLLogsRecordsRequest::getExecuteCost() const { + return executeCost_; +} + +void DownloadSQLLogsRecordsRequest::setExecuteCost(const std::string &executeCost) { + executeCost_ = executeCost; + setParameter(std::string("ExecuteCost"), executeCost); +} + +std::string DownloadSQLLogsRecordsRequest::getExecuteState() const { + return executeState_; +} + +void DownloadSQLLogsRecordsRequest::setExecuteState(const std::string &executeState) { + executeState_ = executeState; + setParameter(std::string("ExecuteState"), executeState); +} + +std::string DownloadSQLLogsRecordsRequest::getEndTime() const { + return endTime_; +} + +void DownloadSQLLogsRecordsRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); +} + +std::string DownloadSQLLogsRecordsRequest::getOperationType() const { + return operationType_; +} + +void DownloadSQLLogsRecordsRequest::setOperationType(const std::string &operationType) { + operationType_ = operationType; + setParameter(std::string("OperationType"), operationType); +} + +std::string DownloadSQLLogsRecordsRequest::getOperationClass() const { + return operationClass_; +} + +void DownloadSQLLogsRecordsRequest::setOperationClass(const std::string &operationClass) { + operationClass_ = operationClass; + setParameter(std::string("OperationClass"), operationClass); +} + +std::string DownloadSQLLogsRecordsRequest::getUser() const { + return user_; +} + +void DownloadSQLLogsRecordsRequest::setUser(const std::string &user) { + user_ = user; + setParameter(std::string("User"), user); +} + diff --git a/gpdb/src/model/ModifyDBInstanceConnectionModeResult.cc b/gpdb/src/model/DownloadSQLLogsRecordsResult.cc similarity index 63% rename from gpdb/src/model/ModifyDBInstanceConnectionModeResult.cc rename to gpdb/src/model/DownloadSQLLogsRecordsResult.cc index 99bfabfee..c0bd3497a 100644 --- a/gpdb/src/model/ModifyDBInstanceConnectionModeResult.cc +++ b/gpdb/src/model/DownloadSQLLogsRecordsResult.cc @@ -14,31 +14,38 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Gpdb; using namespace AlibabaCloud::Gpdb::Model; -ModifyDBInstanceConnectionModeResult::ModifyDBInstanceConnectionModeResult() : +DownloadSQLLogsRecordsResult::DownloadSQLLogsRecordsResult() : ServiceResult() {} -ModifyDBInstanceConnectionModeResult::ModifyDBInstanceConnectionModeResult(const std::string &payload) : +DownloadSQLLogsRecordsResult::DownloadSQLLogsRecordsResult(const std::string &payload) : ServiceResult() { parse(payload); } -ModifyDBInstanceConnectionModeResult::~ModifyDBInstanceConnectionModeResult() +DownloadSQLLogsRecordsResult::~DownloadSQLLogsRecordsResult() {} -void ModifyDBInstanceConnectionModeResult::parse(const std::string &payload) +void DownloadSQLLogsRecordsResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + if(!value["DownloadId"].isNull()) + downloadId_ = std::stol(value["DownloadId"].asString()); } +long DownloadSQLLogsRecordsResult::getDownloadId()const +{ + return downloadId_; +} + diff --git a/gpdb/src/model/GrantCollectionRequest.cc b/gpdb/src/model/GrantCollectionRequest.cc new file mode 100644 index 000000000..ff506e4e1 --- /dev/null +++ b/gpdb/src/model/GrantCollectionRequest.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::Gpdb::Model::GrantCollectionRequest; + +GrantCollectionRequest::GrantCollectionRequest() + : RpcServiceRequest("gpdb", "2016-05-03", "GrantCollection") { + setMethod(HttpRequest::Method::Post); +} + +GrantCollectionRequest::~GrantCollectionRequest() {} + +std::string GrantCollectionRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void GrantCollectionRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string GrantCollectionRequest::getGrantType() const { + return grantType_; +} + +void GrantCollectionRequest::setGrantType(const std::string &grantType) { + grantType_ = grantType; + setParameter(std::string("GrantType"), grantType); +} + +std::string GrantCollectionRequest::getRegionId() const { + return regionId_; +} + +void GrantCollectionRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string GrantCollectionRequest::getManagerAccount() const { + return managerAccount_; +} + +void GrantCollectionRequest::setManagerAccount(const std::string &managerAccount) { + managerAccount_ = managerAccount; + setParameter(std::string("ManagerAccount"), managerAccount); +} + +std::string GrantCollectionRequest::getDBInstanceId() const { + return dBInstanceId_; +} + +void GrantCollectionRequest::setDBInstanceId(const std::string &dBInstanceId) { + dBInstanceId_ = dBInstanceId; + setParameter(std::string("DBInstanceId"), dBInstanceId); +} + +std::string GrantCollectionRequest::getManagerAccountPassword() const { + return managerAccountPassword_; +} + +void GrantCollectionRequest::setManagerAccountPassword(const std::string &managerAccountPassword) { + managerAccountPassword_ = managerAccountPassword; + setParameter(std::string("ManagerAccountPassword"), managerAccountPassword); +} + +std::string GrantCollectionRequest::getCollection() const { + return collection_; +} + +void GrantCollectionRequest::setCollection(const std::string &collection) { + collection_ = collection; + setParameter(std::string("Collection"), collection); +} + +long GrantCollectionRequest::getOwnerId() const { + return ownerId_; +} + +void GrantCollectionRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string GrantCollectionRequest::getGrantToNamespace() const { + return grantToNamespace_; +} + +void GrantCollectionRequest::setGrantToNamespace(const std::string &grantToNamespace) { + grantToNamespace_ = grantToNamespace; + setParameter(std::string("GrantToNamespace"), grantToNamespace); +} + +std::string GrantCollectionRequest::get_Namespace() const { + return _namespace_; +} + +void GrantCollectionRequest::set_Namespace(const std::string &_namespace) { + _namespace_ = _namespace; + setParameter(std::string("Namespace"), _namespace); +} + diff --git a/gpdb/src/model/GrantCollectionResult.cc b/gpdb/src/model/GrantCollectionResult.cc new file mode 100644 index 000000000..f4a09e204 --- /dev/null +++ b/gpdb/src/model/GrantCollectionResult.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::Gpdb; +using namespace AlibabaCloud::Gpdb::Model; + +GrantCollectionResult::GrantCollectionResult() : + ServiceResult() +{} + +GrantCollectionResult::GrantCollectionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GrantCollectionResult::~GrantCollectionResult() +{} + +void GrantCollectionResult::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["Status"].isNull()) + status_ = value["Status"].asString(); + +} + +std::string GrantCollectionResult::getStatus()const +{ + return status_; +} + +std::string GrantCollectionResult::getMessage()const +{ + return message_; +} + diff --git a/gpdb/src/model/InitVectorDatabaseRequest.cc b/gpdb/src/model/InitVectorDatabaseRequest.cc new file mode 100644 index 000000000..6450b74a7 --- /dev/null +++ b/gpdb/src/model/InitVectorDatabaseRequest.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::Gpdb::Model::InitVectorDatabaseRequest; + +InitVectorDatabaseRequest::InitVectorDatabaseRequest() + : RpcServiceRequest("gpdb", "2016-05-03", "InitVectorDatabase") { + setMethod(HttpRequest::Method::Post); +} + +InitVectorDatabaseRequest::~InitVectorDatabaseRequest() {} + +std::string InitVectorDatabaseRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void InitVectorDatabaseRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string InitVectorDatabaseRequest::getRegionId() const { + return regionId_; +} + +void InitVectorDatabaseRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string InitVectorDatabaseRequest::getManagerAccount() const { + return managerAccount_; +} + +void InitVectorDatabaseRequest::setManagerAccount(const std::string &managerAccount) { + managerAccount_ = managerAccount; + setParameter(std::string("ManagerAccount"), managerAccount); +} + +std::string InitVectorDatabaseRequest::getDBInstanceId() const { + return dBInstanceId_; +} + +void InitVectorDatabaseRequest::setDBInstanceId(const std::string &dBInstanceId) { + dBInstanceId_ = dBInstanceId; + setParameter(std::string("DBInstanceId"), dBInstanceId); +} + +std::string InitVectorDatabaseRequest::getManagerAccountPassword() const { + return managerAccountPassword_; +} + +void InitVectorDatabaseRequest::setManagerAccountPassword(const std::string &managerAccountPassword) { + managerAccountPassword_ = managerAccountPassword; + setParameter(std::string("ManagerAccountPassword"), managerAccountPassword); +} + +long InitVectorDatabaseRequest::getOwnerId() const { + return ownerId_; +} + +void InitVectorDatabaseRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/gpdb/src/model/InitVectorDatabaseResult.cc b/gpdb/src/model/InitVectorDatabaseResult.cc new file mode 100644 index 000000000..600d34ae0 --- /dev/null +++ b/gpdb/src/model/InitVectorDatabaseResult.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::Gpdb; +using namespace AlibabaCloud::Gpdb::Model; + +InitVectorDatabaseResult::InitVectorDatabaseResult() : + ServiceResult() +{} + +InitVectorDatabaseResult::InitVectorDatabaseResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +InitVectorDatabaseResult::~InitVectorDatabaseResult() +{} + +void InitVectorDatabaseResult::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["Status"].isNull()) + status_ = value["Status"].asString(); + +} + +std::string InitVectorDatabaseResult::getStatus()const +{ + return status_; +} + +std::string InitVectorDatabaseResult::getMessage()const +{ + return message_; +} + diff --git a/gpdb/src/model/ListCollectionsRequest.cc b/gpdb/src/model/ListCollectionsRequest.cc new file mode 100644 index 000000000..24349d39e --- /dev/null +++ b/gpdb/src/model/ListCollectionsRequest.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::Gpdb::Model::ListCollectionsRequest; + +ListCollectionsRequest::ListCollectionsRequest() + : RpcServiceRequest("gpdb", "2016-05-03", "ListCollections") { + setMethod(HttpRequest::Method::Post); +} + +ListCollectionsRequest::~ListCollectionsRequest() {} + +std::string ListCollectionsRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ListCollectionsRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string ListCollectionsRequest::getRegionId() const { + return regionId_; +} + +void ListCollectionsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string ListCollectionsRequest::getDBInstanceId() const { + return dBInstanceId_; +} + +void ListCollectionsRequest::setDBInstanceId(const std::string &dBInstanceId) { + dBInstanceId_ = dBInstanceId; + setParameter(std::string("DBInstanceId"), dBInstanceId); +} + +long ListCollectionsRequest::getOwnerId() const { + return ownerId_; +} + +void ListCollectionsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string ListCollectionsRequest::getNamespacePassword() const { + return namespacePassword_; +} + +void ListCollectionsRequest::setNamespacePassword(const std::string &namespacePassword) { + namespacePassword_ = namespacePassword; + setParameter(std::string("NamespacePassword"), namespacePassword); +} + +std::string ListCollectionsRequest::get_Namespace() const { + return _namespace_; +} + +void ListCollectionsRequest::set_Namespace(const std::string &_namespace) { + _namespace_ = _namespace; + setParameter(std::string("Namespace"), _namespace); +} + diff --git a/gpdb/src/model/ListCollectionsResult.cc b/gpdb/src/model/ListCollectionsResult.cc new file mode 100644 index 000000000..4b7621e0c --- /dev/null +++ b/gpdb/src/model/ListCollectionsResult.cc @@ -0,0 +1,94 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Gpdb; +using namespace AlibabaCloud::Gpdb::Model; + +ListCollectionsResult::ListCollectionsResult() : + ServiceResult() +{} + +ListCollectionsResult::ListCollectionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListCollectionsResult::~ListCollectionsResult() +{} + +void ListCollectionsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allCollections = value["Collections"]["Collection"]; + for (const auto &item : allCollections) + collections_.push_back(item.asString()); + if(!value["Count"].isNull()) + count_ = std::stoi(value["Count"].asString()); + if(!value["DBInstanceId"].isNull()) + dBInstanceId_ = value["DBInstanceId"].asString(); + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + if(!value["Namespace"].isNull()) + _namespace_ = value["Namespace"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + +} + +std::string ListCollectionsResult::getStatus()const +{ + return status_; +} + +std::string ListCollectionsResult::getMessage()const +{ + return message_; +} + +std::string ListCollectionsResult::getDBInstanceId()const +{ + return dBInstanceId_; +} + +std::string ListCollectionsResult::get_Namespace()const +{ + return _namespace_; +} + +int ListCollectionsResult::getCount()const +{ + return count_; +} + +std::string ListCollectionsResult::getRegionId()const +{ + return regionId_; +} + +std::vector ListCollectionsResult::getCollections()const +{ + return collections_; +} + diff --git a/gpdb/src/model/ListNamespacesRequest.cc b/gpdb/src/model/ListNamespacesRequest.cc new file mode 100644 index 000000000..9fed47abd --- /dev/null +++ b/gpdb/src/model/ListNamespacesRequest.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::Gpdb::Model::ListNamespacesRequest; + +ListNamespacesRequest::ListNamespacesRequest() + : RpcServiceRequest("gpdb", "2016-05-03", "ListNamespaces") { + setMethod(HttpRequest::Method::Post); +} + +ListNamespacesRequest::~ListNamespacesRequest() {} + +std::string ListNamespacesRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ListNamespacesRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string ListNamespacesRequest::getRegionId() const { + return regionId_; +} + +void ListNamespacesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string ListNamespacesRequest::getManagerAccount() const { + return managerAccount_; +} + +void ListNamespacesRequest::setManagerAccount(const std::string &managerAccount) { + managerAccount_ = managerAccount; + setParameter(std::string("ManagerAccount"), managerAccount); +} + +std::string ListNamespacesRequest::getDBInstanceId() const { + return dBInstanceId_; +} + +void ListNamespacesRequest::setDBInstanceId(const std::string &dBInstanceId) { + dBInstanceId_ = dBInstanceId; + setParameter(std::string("DBInstanceId"), dBInstanceId); +} + +std::string ListNamespacesRequest::getManagerAccountPassword() const { + return managerAccountPassword_; +} + +void ListNamespacesRequest::setManagerAccountPassword(const std::string &managerAccountPassword) { + managerAccountPassword_ = managerAccountPassword; + setParameter(std::string("ManagerAccountPassword"), managerAccountPassword); +} + +long ListNamespacesRequest::getOwnerId() const { + return ownerId_; +} + +void ListNamespacesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/gpdb/src/model/ListNamespacesResult.cc b/gpdb/src/model/ListNamespacesResult.cc new file mode 100644 index 000000000..2247e65a7 --- /dev/null +++ b/gpdb/src/model/ListNamespacesResult.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::Gpdb; +using namespace AlibabaCloud::Gpdb::Model; + +ListNamespacesResult::ListNamespacesResult() : + ServiceResult() +{} + +ListNamespacesResult::ListNamespacesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListNamespacesResult::~ListNamespacesResult() +{} + +void ListNamespacesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allNamespaces = value["Namespaces"]["Namespace"]; + for (const auto &item : allNamespaces) + namespaces_.push_back(item.asString()); + if(!value["Count"].isNull()) + count_ = std::stoi(value["Count"].asString()); + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + if(!value["DBInstanceId"].isNull()) + dBInstanceId_ = value["DBInstanceId"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + +} + +std::string ListNamespacesResult::getStatus()const +{ + return status_; +} + +std::vector ListNamespacesResult::getNamespaces()const +{ + return namespaces_; +} + +std::string ListNamespacesResult::getMessage()const +{ + return message_; +} + +std::string ListNamespacesResult::getDBInstanceId()const +{ + return dBInstanceId_; +} + +int ListNamespacesResult::getCount()const +{ + return count_; +} + +std::string ListNamespacesResult::getRegionId()const +{ + return regionId_; +} + diff --git a/gpdb/src/model/ModifyDBInstanceConfigRequest.cc b/gpdb/src/model/ModifyDBInstanceConfigRequest.cc new file mode 100644 index 000000000..77f9cf033 --- /dev/null +++ b/gpdb/src/model/ModifyDBInstanceConfigRequest.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::Gpdb::Model::ModifyDBInstanceConfigRequest; + +ModifyDBInstanceConfigRequest::ModifyDBInstanceConfigRequest() + : RpcServiceRequest("gpdb", "2016-05-03", "ModifyDBInstanceConfig") { + setMethod(HttpRequest::Method::Post); +} + +ModifyDBInstanceConfigRequest::~ModifyDBInstanceConfigRequest() {} + +std::string ModifyDBInstanceConfigRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ModifyDBInstanceConfigRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string ModifyDBInstanceConfigRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void ModifyDBInstanceConfigRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + +std::string ModifyDBInstanceConfigRequest::getDBInstanceId() const { + return dBInstanceId_; +} + +void ModifyDBInstanceConfigRequest::setDBInstanceId(const std::string &dBInstanceId) { + dBInstanceId_ = dBInstanceId; + setParameter(std::string("DBInstanceId"), dBInstanceId); +} + +std::string ModifyDBInstanceConfigRequest::getDBInstanceDescription() const { + return dBInstanceDescription_; +} + +void ModifyDBInstanceConfigRequest::setDBInstanceDescription(const std::string &dBInstanceDescription) { + dBInstanceDescription_ = dBInstanceDescription; + setParameter(std::string("DBInstanceDescription"), dBInstanceDescription); +} + +int ModifyDBInstanceConfigRequest::getServerlessResource() const { + return serverlessResource_; +} + +void ModifyDBInstanceConfigRequest::setServerlessResource(int serverlessResource) { + serverlessResource_ = serverlessResource; + setParameter(std::string("ServerlessResource"), std::to_string(serverlessResource)); +} + +int ModifyDBInstanceConfigRequest::getIdleTime() const { + return idleTime_; +} + +void ModifyDBInstanceConfigRequest::setIdleTime(int idleTime) { + idleTime_ = idleTime; + setParameter(std::string("IdleTime"), std::to_string(idleTime)); +} + diff --git a/gpdb/src/model/ModifyDBInstanceConfigResult.cc b/gpdb/src/model/ModifyDBInstanceConfigResult.cc new file mode 100644 index 000000000..19b946be4 --- /dev/null +++ b/gpdb/src/model/ModifyDBInstanceConfigResult.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::Gpdb; +using namespace AlibabaCloud::Gpdb::Model; + +ModifyDBInstanceConfigResult::ModifyDBInstanceConfigResult() : + ServiceResult() +{} + +ModifyDBInstanceConfigResult::ModifyDBInstanceConfigResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDBInstanceConfigResult::~ModifyDBInstanceConfigResult() +{} + +void ModifyDBInstanceConfigResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["DbInstanceId"].isNull()) + dbInstanceId_ = value["DbInstanceId"].asString(); + if(!value["Status"].isNull()) + status_ = value["Status"].asString() == "true"; + +} + +bool ModifyDBInstanceConfigResult::getStatus()const +{ + return status_; +} + +std::string ModifyDBInstanceConfigResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string ModifyDBInstanceConfigResult::getDbInstanceId()const +{ + return dbInstanceId_; +} + diff --git a/gpdb/src/model/ModifyDBInstanceConnectionModeRequest.cc b/gpdb/src/model/ModifyDBInstanceConnectionModeRequest.cc deleted file mode 100644 index f39e242bb..000000000 --- a/gpdb/src/model/ModifyDBInstanceConnectionModeRequest.cc +++ /dev/null @@ -1,54 +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::Gpdb::Model::ModifyDBInstanceConnectionModeRequest; - -ModifyDBInstanceConnectionModeRequest::ModifyDBInstanceConnectionModeRequest() - : RpcServiceRequest("gpdb", "2016-05-03", "ModifyDBInstanceConnectionMode") { - setMethod(HttpRequest::Method::Post); -} - -ModifyDBInstanceConnectionModeRequest::~ModifyDBInstanceConnectionModeRequest() {} - -std::string ModifyDBInstanceConnectionModeRequest::getConnectionMode() const { - return connectionMode_; -} - -void ModifyDBInstanceConnectionModeRequest::setConnectionMode(const std::string &connectionMode) { - connectionMode_ = connectionMode; - setParameter(std::string("ConnectionMode"), connectionMode); -} - -std::string ModifyDBInstanceConnectionModeRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void ModifyDBInstanceConnectionModeRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string ModifyDBInstanceConnectionModeRequest::getDBInstanceId() const { - return dBInstanceId_; -} - -void ModifyDBInstanceConnectionModeRequest::setDBInstanceId(const std::string &dBInstanceId) { - dBInstanceId_ = dBInstanceId; - setParameter(std::string("DBInstanceId"), dBInstanceId); -} - diff --git a/gpdb/src/model/ModifyDBInstanceDescriptionRequest.cc b/gpdb/src/model/ModifyDBInstanceDescriptionRequest.cc index a1897c844..5ae911b2d 100644 --- a/gpdb/src/model/ModifyDBInstanceDescriptionRequest.cc +++ b/gpdb/src/model/ModifyDBInstanceDescriptionRequest.cc @@ -34,6 +34,15 @@ void ModifyDBInstanceDescriptionRequest::setAccessKeyId(const std::string &acces setParameter(std::string("AccessKeyId"), accessKeyId); } +std::string ModifyDBInstanceDescriptionRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void ModifyDBInstanceDescriptionRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + std::string ModifyDBInstanceDescriptionRequest::getDBInstanceId() const { return dBInstanceId_; } diff --git a/gpdb/src/model/ModifyDBInstanceMaintainTimeRequest.cc b/gpdb/src/model/ModifyDBInstanceMaintainTimeRequest.cc index 50d5e7c4c..ce192af1c 100644 --- a/gpdb/src/model/ModifyDBInstanceMaintainTimeRequest.cc +++ b/gpdb/src/model/ModifyDBInstanceMaintainTimeRequest.cc @@ -43,6 +43,15 @@ void ModifyDBInstanceMaintainTimeRequest::setAccessKeyId(const std::string &acce setParameter(std::string("AccessKeyId"), accessKeyId); } +std::string ModifyDBInstanceMaintainTimeRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void ModifyDBInstanceMaintainTimeRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + std::string ModifyDBInstanceMaintainTimeRequest::getDBInstanceId() const { return dBInstanceId_; } diff --git a/gpdb/src/model/ModifyDBInstanceNetworkTypeRequest.cc b/gpdb/src/model/ModifyDBInstanceNetworkTypeRequest.cc deleted file mode 100644 index 2d559d0df..000000000 --- a/gpdb/src/model/ModifyDBInstanceNetworkTypeRequest.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::Gpdb::Model::ModifyDBInstanceNetworkTypeRequest; - -ModifyDBInstanceNetworkTypeRequest::ModifyDBInstanceNetworkTypeRequest() - : RpcServiceRequest("gpdb", "2016-05-03", "ModifyDBInstanceNetworkType") { - setMethod(HttpRequest::Method::Post); -} - -ModifyDBInstanceNetworkTypeRequest::~ModifyDBInstanceNetworkTypeRequest() {} - -std::string ModifyDBInstanceNetworkTypeRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void ModifyDBInstanceNetworkTypeRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string ModifyDBInstanceNetworkTypeRequest::getDBInstanceId() const { - return dBInstanceId_; -} - -void ModifyDBInstanceNetworkTypeRequest::setDBInstanceId(const std::string &dBInstanceId) { - dBInstanceId_ = dBInstanceId; - setParameter(std::string("DBInstanceId"), dBInstanceId); -} - -std::string ModifyDBInstanceNetworkTypeRequest::getVSwitchId() const { - return vSwitchId_; -} - -void ModifyDBInstanceNetworkTypeRequest::setVSwitchId(const std::string &vSwitchId) { - vSwitchId_ = vSwitchId; - setParameter(std::string("VSwitchId"), vSwitchId); -} - -std::string ModifyDBInstanceNetworkTypeRequest::getPrivateIpAddress() const { - return privateIpAddress_; -} - -void ModifyDBInstanceNetworkTypeRequest::setPrivateIpAddress(const std::string &privateIpAddress) { - privateIpAddress_ = privateIpAddress; - setParameter(std::string("PrivateIpAddress"), privateIpAddress); -} - -std::string ModifyDBInstanceNetworkTypeRequest::getVPCId() const { - return vPCId_; -} - -void ModifyDBInstanceNetworkTypeRequest::setVPCId(const std::string &vPCId) { - vPCId_ = vPCId; - setParameter(std::string("VPCId"), vPCId); -} - -std::string ModifyDBInstanceNetworkTypeRequest::getInstanceNetworkType() const { - return instanceNetworkType_; -} - -void ModifyDBInstanceNetworkTypeRequest::setInstanceNetworkType(const std::string &instanceNetworkType) { - instanceNetworkType_ = instanceNetworkType; - setParameter(std::string("InstanceNetworkType"), instanceNetworkType); -} - diff --git a/gpdb/src/model/ModifyDBInstanceResourceGroupRequest.cc b/gpdb/src/model/ModifyDBInstanceResourceGroupRequest.cc new file mode 100644 index 000000000..2eae0e1f3 --- /dev/null +++ b/gpdb/src/model/ModifyDBInstanceResourceGroupRequest.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::Gpdb::Model::ModifyDBInstanceResourceGroupRequest; + +ModifyDBInstanceResourceGroupRequest::ModifyDBInstanceResourceGroupRequest() + : RpcServiceRequest("gpdb", "2016-05-03", "ModifyDBInstanceResourceGroup") { + setMethod(HttpRequest::Method::Post); +} + +ModifyDBInstanceResourceGroupRequest::~ModifyDBInstanceResourceGroupRequest() {} + +long ModifyDBInstanceResourceGroupRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void ModifyDBInstanceResourceGroupRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string ModifyDBInstanceResourceGroupRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ModifyDBInstanceResourceGroupRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string ModifyDBInstanceResourceGroupRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void ModifyDBInstanceResourceGroupRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + +std::string ModifyDBInstanceResourceGroupRequest::getDBInstanceId() const { + return dBInstanceId_; +} + +void ModifyDBInstanceResourceGroupRequest::setDBInstanceId(const std::string &dBInstanceId) { + dBInstanceId_ = dBInstanceId; + setParameter(std::string("DBInstanceId"), dBInstanceId); +} + +std::string ModifyDBInstanceResourceGroupRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ModifyDBInstanceResourceGroupRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string ModifyDBInstanceResourceGroupRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ModifyDBInstanceResourceGroupRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long ModifyDBInstanceResourceGroupRequest::getOwnerId() const { + return ownerId_; +} + +void ModifyDBInstanceResourceGroupRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string ModifyDBInstanceResourceGroupRequest::getNewResourceGroupId() const { + return newResourceGroupId_; +} + +void ModifyDBInstanceResourceGroupRequest::setNewResourceGroupId(const std::string &newResourceGroupId) { + newResourceGroupId_ = newResourceGroupId; + setParameter(std::string("NewResourceGroupId"), newResourceGroupId); +} + diff --git a/gpdb/src/model/ModifyDBInstanceNetworkTypeResult.cc b/gpdb/src/model/ModifyDBInstanceResourceGroupResult.cc similarity index 69% rename from gpdb/src/model/ModifyDBInstanceNetworkTypeResult.cc rename to gpdb/src/model/ModifyDBInstanceResourceGroupResult.cc index de3f344a5..d199824d5 100644 --- a/gpdb/src/model/ModifyDBInstanceNetworkTypeResult.cc +++ b/gpdb/src/model/ModifyDBInstanceResourceGroupResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Gpdb; using namespace AlibabaCloud::Gpdb::Model; -ModifyDBInstanceNetworkTypeResult::ModifyDBInstanceNetworkTypeResult() : +ModifyDBInstanceResourceGroupResult::ModifyDBInstanceResourceGroupResult() : ServiceResult() {} -ModifyDBInstanceNetworkTypeResult::ModifyDBInstanceNetworkTypeResult(const std::string &payload) : +ModifyDBInstanceResourceGroupResult::ModifyDBInstanceResourceGroupResult(const std::string &payload) : ServiceResult() { parse(payload); } -ModifyDBInstanceNetworkTypeResult::~ModifyDBInstanceNetworkTypeResult() +ModifyDBInstanceResourceGroupResult::~ModifyDBInstanceResourceGroupResult() {} -void ModifyDBInstanceNetworkTypeResult::parse(const std::string &payload) +void ModifyDBInstanceResourceGroupResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; diff --git a/gpdb/src/model/ModifySecurityIpsRequest.cc b/gpdb/src/model/ModifySecurityIpsRequest.cc index 9c9b35846..2b6f3de78 100644 --- a/gpdb/src/model/ModifySecurityIpsRequest.cc +++ b/gpdb/src/model/ModifySecurityIpsRequest.cc @@ -43,6 +43,15 @@ void ModifySecurityIpsRequest::setAccessKeyId(const std::string &accessKeyId) { setParameter(std::string("AccessKeyId"), accessKeyId); } +std::string ModifySecurityIpsRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void ModifySecurityIpsRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + std::string ModifySecurityIpsRequest::getDBInstanceId() const { return dBInstanceId_; } @@ -52,6 +61,15 @@ void ModifySecurityIpsRequest::setDBInstanceId(const std::string &dBInstanceId) setParameter(std::string("DBInstanceId"), dBInstanceId); } +std::string ModifySecurityIpsRequest::getModifyMode() const { + return modifyMode_; +} + +void ModifySecurityIpsRequest::setModifyMode(const std::string &modifyMode) { + modifyMode_ = modifyMode; + setParameter(std::string("ModifyMode"), modifyMode); +} + std::string ModifySecurityIpsRequest::getSecurityIPList() const { return securityIPList_; } diff --git a/gpdb/src/model/ModifyVectorConfigurationRequest.cc b/gpdb/src/model/ModifyVectorConfigurationRequest.cc new file mode 100644 index 000000000..b31fcab84 --- /dev/null +++ b/gpdb/src/model/ModifyVectorConfigurationRequest.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::Gpdb::Model::ModifyVectorConfigurationRequest; + +ModifyVectorConfigurationRequest::ModifyVectorConfigurationRequest() + : RpcServiceRequest("gpdb", "2016-05-03", "ModifyVectorConfiguration") { + setMethod(HttpRequest::Method::Post); +} + +ModifyVectorConfigurationRequest::~ModifyVectorConfigurationRequest() {} + +std::string ModifyVectorConfigurationRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ModifyVectorConfigurationRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string ModifyVectorConfigurationRequest::getDBInstanceId() const { + return dBInstanceId_; +} + +void ModifyVectorConfigurationRequest::setDBInstanceId(const std::string &dBInstanceId) { + dBInstanceId_ = dBInstanceId; + setParameter(std::string("DBInstanceId"), dBInstanceId); +} + +std::string ModifyVectorConfigurationRequest::getVectorConfigurationStatus() const { + return vectorConfigurationStatus_; +} + +void ModifyVectorConfigurationRequest::setVectorConfigurationStatus(const std::string &vectorConfigurationStatus) { + vectorConfigurationStatus_ = vectorConfigurationStatus; + setParameter(std::string("VectorConfigurationStatus"), vectorConfigurationStatus); +} + +long ModifyVectorConfigurationRequest::getOwnerId() const { + return ownerId_; +} + +void ModifyVectorConfigurationRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/gpdb/src/model/ModifyVectorConfigurationResult.cc b/gpdb/src/model/ModifyVectorConfigurationResult.cc new file mode 100644 index 000000000..32eb4cfb9 --- /dev/null +++ b/gpdb/src/model/ModifyVectorConfigurationResult.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::Gpdb; +using namespace AlibabaCloud::Gpdb::Model; + +ModifyVectorConfigurationResult::ModifyVectorConfigurationResult() : + ServiceResult() +{} + +ModifyVectorConfigurationResult::ModifyVectorConfigurationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyVectorConfigurationResult::~ModifyVectorConfigurationResult() +{} + +void ModifyVectorConfigurationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Status"].isNull()) + status_ = value["Status"].asString() == "true"; + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["DBInstanceId"].isNull()) + dBInstanceId_ = value["DBInstanceId"].asString(); + +} + +bool ModifyVectorConfigurationResult::getStatus()const +{ + return status_; +} + +std::string ModifyVectorConfigurationResult::getDBInstanceId()const +{ + return dBInstanceId_; +} + +std::string ModifyVectorConfigurationResult::getErrorMessage()const +{ + return errorMessage_; +} + diff --git a/gpdb/src/model/PauseInstanceRequest.cc b/gpdb/src/model/PauseInstanceRequest.cc new file mode 100644 index 000000000..9f5a3753c --- /dev/null +++ b/gpdb/src/model/PauseInstanceRequest.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::Gpdb::Model::PauseInstanceRequest; + +PauseInstanceRequest::PauseInstanceRequest() + : RpcServiceRequest("gpdb", "2016-05-03", "PauseInstance") { + setMethod(HttpRequest::Method::Post); +} + +PauseInstanceRequest::~PauseInstanceRequest() {} + +std::string PauseInstanceRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void PauseInstanceRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string PauseInstanceRequest::getDBInstanceId() const { + return dBInstanceId_; +} + +void PauseInstanceRequest::setDBInstanceId(const std::string &dBInstanceId) { + dBInstanceId_ = dBInstanceId; + setParameter(std::string("DBInstanceId"), dBInstanceId); +} + +long PauseInstanceRequest::getOwnerId() const { + return ownerId_; +} + +void PauseInstanceRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/gpdb/src/model/PauseInstanceResult.cc b/gpdb/src/model/PauseInstanceResult.cc new file mode 100644 index 000000000..043481402 --- /dev/null +++ b/gpdb/src/model/PauseInstanceResult.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::Gpdb; +using namespace AlibabaCloud::Gpdb::Model; + +PauseInstanceResult::PauseInstanceResult() : + ServiceResult() +{} + +PauseInstanceResult::PauseInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PauseInstanceResult::~PauseInstanceResult() +{} + +void PauseInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Status"].isNull()) + status_ = value["Status"].asString() == "true"; + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["DBInstanceId"].isNull()) + dBInstanceId_ = value["DBInstanceId"].asString(); + +} + +bool PauseInstanceResult::getStatus()const +{ + return status_; +} + +std::string PauseInstanceResult::getDBInstanceId()const +{ + return dBInstanceId_; +} + +std::string PauseInstanceResult::getErrorMessage()const +{ + return errorMessage_; +} + diff --git a/gpdb/src/model/QueryCollectionDataRequest.cc b/gpdb/src/model/QueryCollectionDataRequest.cc new file mode 100644 index 000000000..af35948cb --- /dev/null +++ b/gpdb/src/model/QueryCollectionDataRequest.cc @@ -0,0 +1,128 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Gpdb::Model::QueryCollectionDataRequest; + +QueryCollectionDataRequest::QueryCollectionDataRequest() + : RpcServiceRequest("gpdb", "2016-05-03", "QueryCollectionData") { + setMethod(HttpRequest::Method::Post); +} + +QueryCollectionDataRequest::~QueryCollectionDataRequest() {} + +long QueryCollectionDataRequest::getTopK() const { + return topK_; +} + +void QueryCollectionDataRequest::setTopK(long topK) { + topK_ = topK; + setParameter(std::string("TopK"), std::to_string(topK)); +} + +std::string QueryCollectionDataRequest::getContent() const { + return content_; +} + +void QueryCollectionDataRequest::setContent(const std::string &content) { + content_ = content; + setParameter(std::string("Content"), content); +} + +std::string QueryCollectionDataRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void QueryCollectionDataRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string QueryCollectionDataRequest::getRegionId() const { + return regionId_; +} + +void QueryCollectionDataRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string QueryCollectionDataRequest::getDBInstanceId() const { + return dBInstanceId_; +} + +void QueryCollectionDataRequest::setDBInstanceId(const std::string &dBInstanceId) { + dBInstanceId_ = dBInstanceId; + setParameter(std::string("DBInstanceId"), dBInstanceId); +} + +std::vector QueryCollectionDataRequest::getVector() const { + return vector_; +} + +void QueryCollectionDataRequest::setVector(const std::vector &vector) { + vector_ = vector; + for(int dep1 = 0; dep1 != vector.size(); dep1++) { + setParameter(std::string("Vector") + "." + std::to_string(dep1 + 1), std::to_string(vector[dep1])); + } +} + +std::string QueryCollectionDataRequest::getCollection() const { + return collection_; +} + +void QueryCollectionDataRequest::setCollection(const std::string &collection) { + collection_ = collection; + setParameter(std::string("Collection"), collection); +} + +long QueryCollectionDataRequest::getOwnerId() const { + return ownerId_; +} + +void QueryCollectionDataRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string QueryCollectionDataRequest::getNamespacePassword() const { + return namespacePassword_; +} + +void QueryCollectionDataRequest::setNamespacePassword(const std::string &namespacePassword) { + namespacePassword_ = namespacePassword; + setParameter(std::string("NamespacePassword"), namespacePassword); +} + +std::string QueryCollectionDataRequest::getFilter() const { + return filter_; +} + +void QueryCollectionDataRequest::setFilter(const std::string &filter) { + filter_ = filter; + setParameter(std::string("Filter"), filter); +} + +std::string QueryCollectionDataRequest::get_Namespace() const { + return _namespace_; +} + +void QueryCollectionDataRequest::set_Namespace(const std::string &_namespace) { + _namespace_ = _namespace; + setParameter(std::string("Namespace"), _namespace); +} + diff --git a/gpdb/src/model/QueryCollectionDataResult.cc b/gpdb/src/model/QueryCollectionDataResult.cc new file mode 100644 index 000000000..1a87511ce --- /dev/null +++ b/gpdb/src/model/QueryCollectionDataResult.cc @@ -0,0 +1,78 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Gpdb; +using namespace AlibabaCloud::Gpdb::Model; + +QueryCollectionDataResult::QueryCollectionDataResult() : + ServiceResult() +{} + +QueryCollectionDataResult::QueryCollectionDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryCollectionDataResult::~QueryCollectionDataResult() +{} + +void QueryCollectionDataResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allMatchesNode = value["Matches"]["match"]; + for (auto valueMatchesmatch : allMatchesNode) + { + Match matchesObject; + if(!valueMatchesmatch["Id"].isNull()) + matchesObject.id = valueMatchesmatch["Id"].asString(); + if(!valueMatchesmatch["Metadata"].isNull()) + matchesObject.metadata = valueMatchesmatch["Metadata"].asString(); + if(!valueMatchesmatch["Similarity"].isNull()) + matchesObject.similarity = valueMatchesmatch["Similarity"].asString(); + auto allValues = value["Values"]["value"]; + for (auto value : allValues) + matchesObject.values.push_back(value.asString()); + matches_.push_back(matchesObject); + } + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string QueryCollectionDataResult::getStatus()const +{ + return status_; +} + +std::vector QueryCollectionDataResult::getMatches()const +{ + return matches_; +} + +std::string QueryCollectionDataResult::getMessage()const +{ + return message_; +} + diff --git a/gpdb/src/model/RebalanceDBInstanceRequest.cc b/gpdb/src/model/RebalanceDBInstanceRequest.cc new file mode 100644 index 000000000..f89bf4a85 --- /dev/null +++ b/gpdb/src/model/RebalanceDBInstanceRequest.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::Gpdb::Model::RebalanceDBInstanceRequest; + +RebalanceDBInstanceRequest::RebalanceDBInstanceRequest() + : RpcServiceRequest("gpdb", "2016-05-03", "RebalanceDBInstance") { + setMethod(HttpRequest::Method::Post); +} + +RebalanceDBInstanceRequest::~RebalanceDBInstanceRequest() {} + +std::string RebalanceDBInstanceRequest::getClientToken() const { + return clientToken_; +} + +void RebalanceDBInstanceRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string RebalanceDBInstanceRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void RebalanceDBInstanceRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string RebalanceDBInstanceRequest::getDBInstanceId() const { + return dBInstanceId_; +} + +void RebalanceDBInstanceRequest::setDBInstanceId(const std::string &dBInstanceId) { + dBInstanceId_ = dBInstanceId; + setParameter(std::string("DBInstanceId"), dBInstanceId); +} + diff --git a/gpdb/src/model/DeleteDatabaseResult.cc b/gpdb/src/model/RebalanceDBInstanceResult.cc similarity index 73% rename from gpdb/src/model/DeleteDatabaseResult.cc rename to gpdb/src/model/RebalanceDBInstanceResult.cc index b6f07085b..7a0a10524 100644 --- a/gpdb/src/model/DeleteDatabaseResult.cc +++ b/gpdb/src/model/RebalanceDBInstanceResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Gpdb; using namespace AlibabaCloud::Gpdb::Model; -DeleteDatabaseResult::DeleteDatabaseResult() : +RebalanceDBInstanceResult::RebalanceDBInstanceResult() : ServiceResult() {} -DeleteDatabaseResult::DeleteDatabaseResult(const std::string &payload) : +RebalanceDBInstanceResult::RebalanceDBInstanceResult(const std::string &payload) : ServiceResult() { parse(payload); } -DeleteDatabaseResult::~DeleteDatabaseResult() +RebalanceDBInstanceResult::~RebalanceDBInstanceResult() {} -void DeleteDatabaseResult::parse(const std::string &payload) +void RebalanceDBInstanceResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; diff --git a/gpdb/src/model/DeleteDatabaseRequest.cc b/gpdb/src/model/ResumeInstanceRequest.cc similarity index 54% rename from gpdb/src/model/DeleteDatabaseRequest.cc rename to gpdb/src/model/ResumeInstanceRequest.cc index 90215843b..839cdba14 100644 --- a/gpdb/src/model/DeleteDatabaseRequest.cc +++ b/gpdb/src/model/ResumeInstanceRequest.cc @@ -14,41 +14,41 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::Gpdb::Model::DeleteDatabaseRequest; +using AlibabaCloud::Gpdb::Model::ResumeInstanceRequest; -DeleteDatabaseRequest::DeleteDatabaseRequest() - : RpcServiceRequest("gpdb", "2016-05-03", "DeleteDatabase") { +ResumeInstanceRequest::ResumeInstanceRequest() + : RpcServiceRequest("gpdb", "2016-05-03", "ResumeInstance") { setMethod(HttpRequest::Method::Post); } -DeleteDatabaseRequest::~DeleteDatabaseRequest() {} +ResumeInstanceRequest::~ResumeInstanceRequest() {} -std::string DeleteDatabaseRequest::getAccessKeyId() const { +std::string ResumeInstanceRequest::getAccessKeyId() const { return accessKeyId_; } -void DeleteDatabaseRequest::setAccessKeyId(const std::string &accessKeyId) { +void ResumeInstanceRequest::setAccessKeyId(const std::string &accessKeyId) { accessKeyId_ = accessKeyId; setParameter(std::string("AccessKeyId"), accessKeyId); } -std::string DeleteDatabaseRequest::getDBInstanceId() const { +std::string ResumeInstanceRequest::getDBInstanceId() const { return dBInstanceId_; } -void DeleteDatabaseRequest::setDBInstanceId(const std::string &dBInstanceId) { +void ResumeInstanceRequest::setDBInstanceId(const std::string &dBInstanceId) { dBInstanceId_ = dBInstanceId; setParameter(std::string("DBInstanceId"), dBInstanceId); } -std::string DeleteDatabaseRequest::getDBName() const { - return dBName_; +long ResumeInstanceRequest::getOwnerId() const { + return ownerId_; } -void DeleteDatabaseRequest::setDBName(const std::string &dBName) { - dBName_ = dBName; - setParameter(std::string("DBName"), dBName); +void ResumeInstanceRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/gpdb/src/model/ResumeInstanceResult.cc b/gpdb/src/model/ResumeInstanceResult.cc new file mode 100644 index 000000000..c53b3e992 --- /dev/null +++ b/gpdb/src/model/ResumeInstanceResult.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::Gpdb; +using namespace AlibabaCloud::Gpdb::Model; + +ResumeInstanceResult::ResumeInstanceResult() : + ServiceResult() +{} + +ResumeInstanceResult::ResumeInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ResumeInstanceResult::~ResumeInstanceResult() +{} + +void ResumeInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Status"].isNull()) + status_ = value["Status"].asString() == "true"; + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["DBInstanceId"].isNull()) + dBInstanceId_ = value["DBInstanceId"].asString(); + +} + +bool ResumeInstanceResult::getStatus()const +{ + return status_; +} + +std::string ResumeInstanceResult::getDBInstanceId()const +{ + return dBInstanceId_; +} + +std::string ResumeInstanceResult::getErrorMessage()const +{ + return errorMessage_; +} + diff --git a/gpdb/src/model/SetDBInstancePlanStatusRequest.cc b/gpdb/src/model/SetDBInstancePlanStatusRequest.cc new file mode 100644 index 000000000..b98d66659 --- /dev/null +++ b/gpdb/src/model/SetDBInstancePlanStatusRequest.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::Gpdb::Model::SetDBInstancePlanStatusRequest; + +SetDBInstancePlanStatusRequest::SetDBInstancePlanStatusRequest() + : RpcServiceRequest("gpdb", "2016-05-03", "SetDBInstancePlanStatus") { + setMethod(HttpRequest::Method::Post); +} + +SetDBInstancePlanStatusRequest::~SetDBInstancePlanStatusRequest() {} + +std::string SetDBInstancePlanStatusRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void SetDBInstancePlanStatusRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string SetDBInstancePlanStatusRequest::getPlanStatus() const { + return planStatus_; +} + +void SetDBInstancePlanStatusRequest::setPlanStatus(const std::string &planStatus) { + planStatus_ = planStatus; + setParameter(std::string("PlanStatus"), planStatus); +} + +std::string SetDBInstancePlanStatusRequest::getDBInstanceId() const { + return dBInstanceId_; +} + +void SetDBInstancePlanStatusRequest::setDBInstanceId(const std::string &dBInstanceId) { + dBInstanceId_ = dBInstanceId; + setParameter(std::string("DBInstanceId"), dBInstanceId); +} + +long SetDBInstancePlanStatusRequest::getOwnerId() const { + return ownerId_; +} + +void SetDBInstancePlanStatusRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string SetDBInstancePlanStatusRequest::getPlanId() const { + return planId_; +} + +void SetDBInstancePlanStatusRequest::setPlanId(const std::string &planId) { + planId_ = planId; + setParameter(std::string("PlanId"), planId); +} + diff --git a/gpdb/src/model/SetDBInstancePlanStatusResult.cc b/gpdb/src/model/SetDBInstancePlanStatusResult.cc new file mode 100644 index 000000000..8748f656d --- /dev/null +++ b/gpdb/src/model/SetDBInstancePlanStatusResult.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::Gpdb; +using namespace AlibabaCloud::Gpdb::Model; + +SetDBInstancePlanStatusResult::SetDBInstancePlanStatusResult() : + ServiceResult() +{} + +SetDBInstancePlanStatusResult::SetDBInstancePlanStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SetDBInstancePlanStatusResult::~SetDBInstancePlanStatusResult() +{} + +void SetDBInstancePlanStatusResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["PlanId"].isNull()) + planId_ = value["PlanId"].asString(); + +} + +std::string SetDBInstancePlanStatusResult::getStatus()const +{ + return status_; +} + +std::string SetDBInstancePlanStatusResult::getPlanId()const +{ + return planId_; +} + +std::string SetDBInstancePlanStatusResult::getErrorMessage()const +{ + return errorMessage_; +} + diff --git a/gpdb/src/model/SetDataShareInstanceRequest.cc b/gpdb/src/model/SetDataShareInstanceRequest.cc new file mode 100644 index 000000000..b527b1690 --- /dev/null +++ b/gpdb/src/model/SetDataShareInstanceRequest.cc @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Gpdb::Model::SetDataShareInstanceRequest; + +SetDataShareInstanceRequest::SetDataShareInstanceRequest() + : RpcServiceRequest("gpdb", "2016-05-03", "SetDataShareInstance") { + setMethod(HttpRequest::Method::Post); +} + +SetDataShareInstanceRequest::~SetDataShareInstanceRequest() {} + +std::string SetDataShareInstanceRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void SetDataShareInstanceRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string SetDataShareInstanceRequest::getRegionId() const { + return regionId_; +} + +void SetDataShareInstanceRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::vector SetDataShareInstanceRequest::getInstanceList() const { + return instanceList_; +} + +void SetDataShareInstanceRequest::setInstanceList(const std::vector &instanceList) { + instanceList_ = instanceList; + for(int dep1 = 0; dep1 != instanceList.size(); dep1++) { + setParameter(std::string("InstanceList") + "." + std::to_string(dep1 + 1), instanceList[dep1]); + } +} + +std::string SetDataShareInstanceRequest::getOperationType() const { + return operationType_; +} + +void SetDataShareInstanceRequest::setOperationType(const std::string &operationType) { + operationType_ = operationType; + setParameter(std::string("OperationType"), operationType); +} + +long SetDataShareInstanceRequest::getOwnerId() const { + return ownerId_; +} + +void SetDataShareInstanceRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/gpdb/src/model/SetDataShareInstanceResult.cc b/gpdb/src/model/SetDataShareInstanceResult.cc new file mode 100644 index 000000000..a75df4eda --- /dev/null +++ b/gpdb/src/model/SetDataShareInstanceResult.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::Gpdb; +using namespace AlibabaCloud::Gpdb::Model; + +SetDataShareInstanceResult::SetDataShareInstanceResult() : + ServiceResult() +{} + +SetDataShareInstanceResult::SetDataShareInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SetDataShareInstanceResult::~SetDataShareInstanceResult() +{} + +void SetDataShareInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + if(!value["ErrMessage"].isNull()) + errMessage_ = value["ErrMessage"].asString(); + +} + +std::string SetDataShareInstanceResult::getStatus()const +{ + return status_; +} + +std::string SetDataShareInstanceResult::getErrMessage()const +{ + return errMessage_; +} + diff --git a/gpdb/src/model/UnloadSampleDataRequest.cc b/gpdb/src/model/UnloadSampleDataRequest.cc new file mode 100644 index 000000000..8e11e22bc --- /dev/null +++ b/gpdb/src/model/UnloadSampleDataRequest.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::Gpdb::Model::UnloadSampleDataRequest; + +UnloadSampleDataRequest::UnloadSampleDataRequest() + : RpcServiceRequest("gpdb", "2016-05-03", "UnloadSampleData") { + setMethod(HttpRequest::Method::Post); +} + +UnloadSampleDataRequest::~UnloadSampleDataRequest() {} + +std::string UnloadSampleDataRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void UnloadSampleDataRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string UnloadSampleDataRequest::getDBInstanceId() const { + return dBInstanceId_; +} + +void UnloadSampleDataRequest::setDBInstanceId(const std::string &dBInstanceId) { + dBInstanceId_ = dBInstanceId; + setParameter(std::string("DBInstanceId"), dBInstanceId); +} + +long UnloadSampleDataRequest::getOwnerId() const { + return ownerId_; +} + +void UnloadSampleDataRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/gpdb/src/model/UnloadSampleDataResult.cc b/gpdb/src/model/UnloadSampleDataResult.cc new file mode 100644 index 000000000..6b4453384 --- /dev/null +++ b/gpdb/src/model/UnloadSampleDataResult.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::Gpdb; +using namespace AlibabaCloud::Gpdb::Model; + +UnloadSampleDataResult::UnloadSampleDataResult() : + ServiceResult() +{} + +UnloadSampleDataResult::UnloadSampleDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UnloadSampleDataResult::~UnloadSampleDataResult() +{} + +void UnloadSampleDataResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Status"].isNull()) + status_ = value["Status"].asString() == "true"; + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["DBInstanceId"].isNull()) + dBInstanceId_ = value["DBInstanceId"].asString(); + +} + +bool UnloadSampleDataResult::getStatus()const +{ + return status_; +} + +std::string UnloadSampleDataResult::getDBInstanceId()const +{ + return dBInstanceId_; +} + +std::string UnloadSampleDataResult::getErrorMessage()const +{ + return errorMessage_; +} + diff --git a/gpdb/src/model/UpdateDBInstancePlanRequest.cc b/gpdb/src/model/UpdateDBInstancePlanRequest.cc new file mode 100644 index 000000000..f1cd464c8 --- /dev/null +++ b/gpdb/src/model/UpdateDBInstancePlanRequest.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::Gpdb::Model::UpdateDBInstancePlanRequest; + +UpdateDBInstancePlanRequest::UpdateDBInstancePlanRequest() + : RpcServiceRequest("gpdb", "2016-05-03", "UpdateDBInstancePlan") { + setMethod(HttpRequest::Method::Post); +} + +UpdateDBInstancePlanRequest::~UpdateDBInstancePlanRequest() {} + +std::string UpdateDBInstancePlanRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void UpdateDBInstancePlanRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string UpdateDBInstancePlanRequest::getPlanStartDate() const { + return planStartDate_; +} + +void UpdateDBInstancePlanRequest::setPlanStartDate(const std::string &planStartDate) { + planStartDate_ = planStartDate; + setParameter(std::string("PlanStartDate"), planStartDate); +} + +std::string UpdateDBInstancePlanRequest::getPlanConfig() const { + return planConfig_; +} + +void UpdateDBInstancePlanRequest::setPlanConfig(const std::string &planConfig) { + planConfig_ = planConfig; + setParameter(std::string("PlanConfig"), planConfig); +} + +std::string UpdateDBInstancePlanRequest::getPlanName() const { + return planName_; +} + +void UpdateDBInstancePlanRequest::setPlanName(const std::string &planName) { + planName_ = planName; + setParameter(std::string("PlanName"), planName); +} + +std::string UpdateDBInstancePlanRequest::getDBInstanceId() const { + return dBInstanceId_; +} + +void UpdateDBInstancePlanRequest::setDBInstanceId(const std::string &dBInstanceId) { + dBInstanceId_ = dBInstanceId; + setParameter(std::string("DBInstanceId"), dBInstanceId); +} + +std::string UpdateDBInstancePlanRequest::getPlanDesc() const { + return planDesc_; +} + +void UpdateDBInstancePlanRequest::setPlanDesc(const std::string &planDesc) { + planDesc_ = planDesc; + setParameter(std::string("PlanDesc"), planDesc); +} + +long UpdateDBInstancePlanRequest::getOwnerId() const { + return ownerId_; +} + +void UpdateDBInstancePlanRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string UpdateDBInstancePlanRequest::getPlanEndDate() const { + return planEndDate_; +} + +void UpdateDBInstancePlanRequest::setPlanEndDate(const std::string &planEndDate) { + planEndDate_ = planEndDate; + setParameter(std::string("PlanEndDate"), planEndDate); +} + +std::string UpdateDBInstancePlanRequest::getPlanId() const { + return planId_; +} + +void UpdateDBInstancePlanRequest::setPlanId(const std::string &planId) { + planId_ = planId; + setParameter(std::string("PlanId"), planId); +} + diff --git a/gpdb/src/model/UpdateDBInstancePlanResult.cc b/gpdb/src/model/UpdateDBInstancePlanResult.cc new file mode 100644 index 000000000..f70dd280c --- /dev/null +++ b/gpdb/src/model/UpdateDBInstancePlanResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Gpdb; +using namespace AlibabaCloud::Gpdb::Model; + +UpdateDBInstancePlanResult::UpdateDBInstancePlanResult() : + ServiceResult() +{} + +UpdateDBInstancePlanResult::UpdateDBInstancePlanResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateDBInstancePlanResult::~UpdateDBInstancePlanResult() +{} + +void UpdateDBInstancePlanResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["DBInstanceId"].isNull()) + dBInstanceId_ = value["DBInstanceId"].asString(); + if(!value["PlanId"].isNull()) + planId_ = value["PlanId"].asString(); + +} + +std::string UpdateDBInstancePlanResult::getStatus()const +{ + return status_; +} + +std::string UpdateDBInstancePlanResult::getDBInstanceId()const +{ + return dBInstanceId_; +} + +std::string UpdateDBInstancePlanResult::getPlanId()const +{ + return planId_; +} + +std::string UpdateDBInstancePlanResult::getErrorMessage()const +{ + return errorMessage_; +} + diff --git a/gpdb/src/model/UpgradeDBInstanceRequest.cc b/gpdb/src/model/UpgradeDBInstanceRequest.cc index be0f02cdd..d045ed150 100644 --- a/gpdb/src/model/UpgradeDBInstanceRequest.cc +++ b/gpdb/src/model/UpgradeDBInstanceRequest.cc @@ -25,6 +25,51 @@ UpgradeDBInstanceRequest::UpgradeDBInstanceRequest() UpgradeDBInstanceRequest::~UpgradeDBInstanceRequest() {} +std::string UpgradeDBInstanceRequest::getInstanceSpec() const { + return instanceSpec_; +} + +void UpgradeDBInstanceRequest::setInstanceSpec(const std::string &instanceSpec) { + instanceSpec_ = instanceSpec; + setParameter(std::string("InstanceSpec"), instanceSpec); +} + +std::string UpgradeDBInstanceRequest::getStorageSize() const { + return storageSize_; +} + +void UpgradeDBInstanceRequest::setStorageSize(const std::string &storageSize) { + storageSize_ = storageSize; + setParameter(std::string("StorageSize"), storageSize); +} + +std::string UpgradeDBInstanceRequest::getSegStorageType() const { + return segStorageType_; +} + +void UpgradeDBInstanceRequest::setSegStorageType(const std::string &segStorageType) { + segStorageType_ = segStorageType; + setParameter(std::string("SegStorageType"), segStorageType); +} + +std::string UpgradeDBInstanceRequest::getMasterNodeNum() const { + return masterNodeNum_; +} + +void UpgradeDBInstanceRequest::setMasterNodeNum(const std::string &masterNodeNum) { + masterNodeNum_ = masterNodeNum; + setParameter(std::string("MasterNodeNum"), masterNodeNum); +} + +long UpgradeDBInstanceRequest::getUpgradeType() const { + return upgradeType_; +} + +void UpgradeDBInstanceRequest::setUpgradeType(long upgradeType) { + upgradeType_ = upgradeType; + setParameter(std::string("UpgradeType"), std::to_string(upgradeType)); +} + std::string UpgradeDBInstanceRequest::getAccessKeyId() const { return accessKeyId_; } @@ -34,6 +79,24 @@ void UpgradeDBInstanceRequest::setAccessKeyId(const std::string &accessKeyId) { setParameter(std::string("AccessKeyId"), accessKeyId); } +std::string UpgradeDBInstanceRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void UpgradeDBInstanceRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + +std::string UpgradeDBInstanceRequest::getSegNodeNum() const { + return segNodeNum_; +} + +void UpgradeDBInstanceRequest::setSegNodeNum(const std::string &segNodeNum) { + segNodeNum_ = segNodeNum; + setParameter(std::string("SegNodeNum"), segNodeNum); +} + std::string UpgradeDBInstanceRequest::getRegionId() const { return regionId_; } @@ -70,6 +133,15 @@ void UpgradeDBInstanceRequest::setOwnerId(long ownerId) { setParameter(std::string("OwnerId"), std::to_string(ownerId)); } +std::string UpgradeDBInstanceRequest::getSegDiskPerformanceLevel() const { + return segDiskPerformanceLevel_; +} + +void UpgradeDBInstanceRequest::setSegDiskPerformanceLevel(const std::string &segDiskPerformanceLevel) { + segDiskPerformanceLevel_ = segDiskPerformanceLevel; + setParameter(std::string("SegDiskPerformanceLevel"), segDiskPerformanceLevel); +} + std::string UpgradeDBInstanceRequest::getDBInstanceClass() const { return dBInstanceClass_; } diff --git a/gpdb/src/model/UpsertCollectionDataRequest.cc b/gpdb/src/model/UpsertCollectionDataRequest.cc new file mode 100644 index 000000000..2b4428581 --- /dev/null +++ b/gpdb/src/model/UpsertCollectionDataRequest.cc @@ -0,0 +1,107 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Gpdb::Model::UpsertCollectionDataRequest; + +UpsertCollectionDataRequest::UpsertCollectionDataRequest() + : RpcServiceRequest("gpdb", "2016-05-03", "UpsertCollectionData") { + setMethod(HttpRequest::Method::Post); +} + +UpsertCollectionDataRequest::~UpsertCollectionDataRequest() {} + +std::string UpsertCollectionDataRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void UpsertCollectionDataRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string UpsertCollectionDataRequest::getRegionId() const { + return regionId_; +} + +void UpsertCollectionDataRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string UpsertCollectionDataRequest::getDBInstanceId() const { + return dBInstanceId_; +} + +void UpsertCollectionDataRequest::setDBInstanceId(const std::string &dBInstanceId) { + dBInstanceId_ = dBInstanceId; + setParameter(std::string("DBInstanceId"), dBInstanceId); +} + +std::string UpsertCollectionDataRequest::getCollection() const { + return collection_; +} + +void UpsertCollectionDataRequest::setCollection(const std::string &collection) { + collection_ = collection; + setParameter(std::string("Collection"), collection); +} + +long UpsertCollectionDataRequest::getOwnerId() const { + return ownerId_; +} + +void UpsertCollectionDataRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::vector UpsertCollectionDataRequest::getRows() const { + return rows_; +} + +void UpsertCollectionDataRequest::setRows(const std::vector &rows) { + rows_ = rows; + for(int dep1 = 0; dep1 != rows.size(); dep1++) { + for(auto const &iter2 : rows[dep1].metadata) { + setParameter(std::string("Rows") + "." + std::to_string(dep1 + 1) + ".Metadata." + iter2.first, iter2.second); + } + for(int dep2 = 0; dep2 != rows[dep1].vector.size(); dep2++) { + setParameter(std::string("Rows") + "." + std::to_string(dep1 + 1) + ".Vector." + std::to_string(dep2 + 1), std::to_string(rows[dep1].vector[dep2])); + } + setParameter(std::string("Rows") + "." + std::to_string(dep1 + 1) + ".Id", rows[dep1].id); + } +} + +std::string UpsertCollectionDataRequest::getNamespacePassword() const { + return namespacePassword_; +} + +void UpsertCollectionDataRequest::setNamespacePassword(const std::string &namespacePassword) { + namespacePassword_ = namespacePassword; + setParameter(std::string("NamespacePassword"), namespacePassword); +} + +std::string UpsertCollectionDataRequest::get_Namespace() const { + return _namespace_; +} + +void UpsertCollectionDataRequest::set_Namespace(const std::string &_namespace) { + _namespace_ = _namespace; + setParameter(std::string("Namespace"), _namespace); +} + diff --git a/gpdb/src/model/UpsertCollectionDataResult.cc b/gpdb/src/model/UpsertCollectionDataResult.cc new file mode 100644 index 000000000..d6b53f91b --- /dev/null +++ b/gpdb/src/model/UpsertCollectionDataResult.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::Gpdb; +using namespace AlibabaCloud::Gpdb::Model; + +UpsertCollectionDataResult::UpsertCollectionDataResult() : + ServiceResult() +{} + +UpsertCollectionDataResult::UpsertCollectionDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpsertCollectionDataResult::~UpsertCollectionDataResult() +{} + +void UpsertCollectionDataResult::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["Status"].isNull()) + status_ = value["Status"].asString(); + +} + +std::string UpsertCollectionDataResult::getStatus()const +{ + return status_; +} + +std::string UpsertCollectionDataResult::getMessage()const +{ + return message_; +} +