diff --git a/VERSION b/VERSION index 59a90394..8c78546f 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.2.117-release +1.2.118-release diff --git a/examples/generic/pom.xml b/examples/generic/pom.xml index 86705a01..caf184e6 100644 --- a/examples/generic/pom.xml +++ b/examples/generic/pom.xml @@ -7,7 +7,7 @@ ucloud-sdk-java cn.ucloud - 1.2.117-release + 1.2.118-release 4.0.0 @@ -19,7 +19,7 @@ cn.ucloud ucloud-sdk-java-common - 1.2.117-release + 1.2.118-release diff --git a/examples/uhost/pom.xml b/examples/uhost/pom.xml index a7eaaaac..258c3053 100644 --- a/examples/uhost/pom.xml +++ b/examples/uhost/pom.xml @@ -7,7 +7,7 @@ ucloud-sdk-java cn.ucloud - 1.2.117-release + 1.2.118-release 4.0.0 @@ -19,7 +19,7 @@ cn.ucloud ucloud-sdk-java-uhost - 1.2.117-release + 1.2.118-release diff --git a/pom.xml b/pom.xml index be98490a..37c44fe4 100644 --- a/pom.xml +++ b/pom.xml @@ -7,7 +7,7 @@ cn.ucloud ucloud-sdk-java pom - 1.2.117-release + 1.2.118-release ucloud-sdk-java-common ucloud-sdk-java-cloudwatch @@ -27,6 +27,7 @@ ucloud-sdk-java-uclickhouse ucloud-sdk-java-ucompshare ucloud-sdk-java-udb + ucloud-sdk-java-udbpostgresql ucloud-sdk-java-udbproxy ucloud-sdk-java-udi ucloud-sdk-java-udns diff --git a/ucloud-sdk-java-cloudwatch/pom.xml b/ucloud-sdk-java-cloudwatch/pom.xml index ab141e67..2e2d3693 100644 --- a/ucloud-sdk-java-cloudwatch/pom.xml +++ b/ucloud-sdk-java-cloudwatch/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.117-release + 1.2.118-release 4.0.0 ucloud-sdk-java-cloudwatch ucloud-sdk-java - 1.2.117-release + 1.2.118-release cn.ucloud ucloud-sdk-java-common - 1.2.117-release + 1.2.118-release diff --git a/ucloud-sdk-java-common/pom.xml b/ucloud-sdk-java-common/pom.xml index 63b8782e..a648adf8 100644 --- a/ucloud-sdk-java-common/pom.xml +++ b/ucloud-sdk-java-common/pom.xml @@ -7,13 +7,13 @@ ucloud-sdk-java cn.ucloud - 1.2.117-release + 1.2.118-release 4.0.0 ucloud-sdk-java-common ucloud-sdk-java - 1.2.117-release + 1.2.118-release diff --git a/ucloud-sdk-java-cube/pom.xml b/ucloud-sdk-java-cube/pom.xml index 1223f264..083e94d2 100644 --- a/ucloud-sdk-java-cube/pom.xml +++ b/ucloud-sdk-java-cube/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.117-release + 1.2.118-release 4.0.0 ucloud-sdk-java-cube ucloud-sdk-java - 1.2.117-release + 1.2.118-release cn.ucloud ucloud-sdk-java-common - 1.2.117-release + 1.2.118-release diff --git a/ucloud-sdk-java-ipsecvpn/pom.xml b/ucloud-sdk-java-ipsecvpn/pom.xml index 2ac1027e..cb10d3c4 100644 --- a/ucloud-sdk-java-ipsecvpn/pom.xml +++ b/ucloud-sdk-java-ipsecvpn/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.117-release + 1.2.118-release 4.0.0 ucloud-sdk-java-ipsecvpn ucloud-sdk-java - 1.2.117-release + 1.2.118-release cn.ucloud ucloud-sdk-java-common - 1.2.117-release + 1.2.118-release diff --git a/ucloud-sdk-java-label/pom.xml b/ucloud-sdk-java-label/pom.xml index 3ce9148d..3a706936 100644 --- a/ucloud-sdk-java-label/pom.xml +++ b/ucloud-sdk-java-label/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.117-release + 1.2.118-release 4.0.0 ucloud-sdk-java-label ucloud-sdk-java - 1.2.117-release + 1.2.118-release cn.ucloud ucloud-sdk-java-common - 1.2.117-release + 1.2.118-release diff --git a/ucloud-sdk-java-nlb/pom.xml b/ucloud-sdk-java-nlb/pom.xml index 04245bf4..83cc183a 100644 --- a/ucloud-sdk-java-nlb/pom.xml +++ b/ucloud-sdk-java-nlb/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.117-release + 1.2.118-release 4.0.0 ucloud-sdk-java-nlb ucloud-sdk-java - 1.2.117-release + 1.2.118-release cn.ucloud ucloud-sdk-java-common - 1.2.117-release + 1.2.118-release diff --git a/ucloud-sdk-java-pathx/pom.xml b/ucloud-sdk-java-pathx/pom.xml index 5811a017..eeca0d9c 100644 --- a/ucloud-sdk-java-pathx/pom.xml +++ b/ucloud-sdk-java-pathx/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.117-release + 1.2.118-release 4.0.0 ucloud-sdk-java-pathx ucloud-sdk-java - 1.2.117-release + 1.2.118-release cn.ucloud ucloud-sdk-java-common - 1.2.117-release + 1.2.118-release diff --git a/ucloud-sdk-java-sandbox/pom.xml b/ucloud-sdk-java-sandbox/pom.xml index f9b55819..50be5ef1 100644 --- a/ucloud-sdk-java-sandbox/pom.xml +++ b/ucloud-sdk-java-sandbox/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.117-release + 1.2.118-release 4.0.0 ucloud-sdk-java-sandbox ucloud-sdk-java - 1.2.117-release + 1.2.118-release cn.ucloud ucloud-sdk-java-common - 1.2.117-release + 1.2.118-release diff --git a/ucloud-sdk-java-ses/pom.xml b/ucloud-sdk-java-ses/pom.xml index 93a5d569..e657920f 100644 --- a/ucloud-sdk-java-ses/pom.xml +++ b/ucloud-sdk-java-ses/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.117-release + 1.2.118-release 4.0.0 ucloud-sdk-java-ses ucloud-sdk-java - 1.2.117-release + 1.2.118-release cn.ucloud ucloud-sdk-java-common - 1.2.117-release + 1.2.118-release diff --git a/ucloud-sdk-java-sts/pom.xml b/ucloud-sdk-java-sts/pom.xml index 69cb4369..505970db 100644 --- a/ucloud-sdk-java-sts/pom.xml +++ b/ucloud-sdk-java-sts/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.117-release + 1.2.118-release 4.0.0 ucloud-sdk-java-sts ucloud-sdk-java - 1.2.117-release + 1.2.118-release cn.ucloud ucloud-sdk-java-common - 1.2.117-release + 1.2.118-release diff --git a/ucloud-sdk-java-tidb/pom.xml b/ucloud-sdk-java-tidb/pom.xml index 8d0ad34a..f434091d 100644 --- a/ucloud-sdk-java-tidb/pom.xml +++ b/ucloud-sdk-java-tidb/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.117-release + 1.2.118-release 4.0.0 ucloud-sdk-java-tidb ucloud-sdk-java - 1.2.117-release + 1.2.118-release cn.ucloud ucloud-sdk-java-common - 1.2.117-release + 1.2.118-release diff --git a/ucloud-sdk-java-uaccount/pom.xml b/ucloud-sdk-java-uaccount/pom.xml index a4f1f329..3601b708 100644 --- a/ucloud-sdk-java-uaccount/pom.xml +++ b/ucloud-sdk-java-uaccount/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.117-release + 1.2.118-release 4.0.0 ucloud-sdk-java-uaccount ucloud-sdk-java - 1.2.117-release + 1.2.118-release cn.ucloud ucloud-sdk-java-common - 1.2.117-release + 1.2.118-release diff --git a/ucloud-sdk-java-uai_modelverse/pom.xml b/ucloud-sdk-java-uai_modelverse/pom.xml index 8a557eef..91bca789 100644 --- a/ucloud-sdk-java-uai_modelverse/pom.xml +++ b/ucloud-sdk-java-uai_modelverse/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.117-release + 1.2.118-release 4.0.0 ucloud-sdk-java-uai_modelverse ucloud-sdk-java - 1.2.117-release + 1.2.118-release cn.ucloud ucloud-sdk-java-common - 1.2.117-release + 1.2.118-release diff --git a/ucloud-sdk-java-uas/pom.xml b/ucloud-sdk-java-uas/pom.xml index 9cd2fbb0..1ebc9f3e 100644 --- a/ucloud-sdk-java-uas/pom.xml +++ b/ucloud-sdk-java-uas/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.117-release + 1.2.118-release 4.0.0 ucloud-sdk-java-uas ucloud-sdk-java - 1.2.117-release + 1.2.118-release cn.ucloud ucloud-sdk-java-common - 1.2.117-release + 1.2.118-release diff --git a/ucloud-sdk-java-ubill/pom.xml b/ucloud-sdk-java-ubill/pom.xml index 2e33c52b..55f4d31a 100644 --- a/ucloud-sdk-java-ubill/pom.xml +++ b/ucloud-sdk-java-ubill/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.117-release + 1.2.118-release 4.0.0 ucloud-sdk-java-ubill ucloud-sdk-java - 1.2.117-release + 1.2.118-release cn.ucloud ucloud-sdk-java-common - 1.2.117-release + 1.2.118-release diff --git a/ucloud-sdk-java-ucdn/pom.xml b/ucloud-sdk-java-ucdn/pom.xml index 57240f78..3f74b164 100644 --- a/ucloud-sdk-java-ucdn/pom.xml +++ b/ucloud-sdk-java-ucdn/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.117-release + 1.2.118-release 4.0.0 ucloud-sdk-java-ucdn ucloud-sdk-java - 1.2.117-release + 1.2.118-release cn.ucloud ucloud-sdk-java-common - 1.2.117-release + 1.2.118-release diff --git a/ucloud-sdk-java-uclickhouse/pom.xml b/ucloud-sdk-java-uclickhouse/pom.xml index 3a14f575..1f22df2f 100644 --- a/ucloud-sdk-java-uclickhouse/pom.xml +++ b/ucloud-sdk-java-uclickhouse/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.117-release + 1.2.118-release 4.0.0 ucloud-sdk-java-uclickhouse ucloud-sdk-java - 1.2.117-release + 1.2.118-release cn.ucloud ucloud-sdk-java-common - 1.2.117-release + 1.2.118-release diff --git a/ucloud-sdk-java-ucompshare/pom.xml b/ucloud-sdk-java-ucompshare/pom.xml index 94dc918c..7ac96a6b 100644 --- a/ucloud-sdk-java-ucompshare/pom.xml +++ b/ucloud-sdk-java-ucompshare/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.117-release + 1.2.118-release 4.0.0 ucloud-sdk-java-ucompshare ucloud-sdk-java - 1.2.117-release + 1.2.118-release cn.ucloud ucloud-sdk-java-common - 1.2.117-release + 1.2.118-release diff --git a/ucloud-sdk-java-udb/pom.xml b/ucloud-sdk-java-udb/pom.xml index 9f2c7229..296fca65 100644 --- a/ucloud-sdk-java-udb/pom.xml +++ b/ucloud-sdk-java-udb/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.117-release + 1.2.118-release 4.0.0 ucloud-sdk-java-udb ucloud-sdk-java - 1.2.117-release + 1.2.118-release cn.ucloud ucloud-sdk-java-common - 1.2.117-release + 1.2.118-release diff --git a/ucloud-sdk-java-udbpostgresql/pom.xml b/ucloud-sdk-java-udbpostgresql/pom.xml new file mode 100644 index 00000000..72b9ad4f --- /dev/null +++ b/ucloud-sdk-java-udbpostgresql/pom.xml @@ -0,0 +1,49 @@ + + + + ucloud-sdk-java + cn.ucloud + 1.2.118-release + + + 4.0.0 + ucloud-sdk-java-udbpostgresql + ucloud-sdk-java + 1.2.118-release + + + + cn.ucloud + ucloud-sdk-java-common + 1.2.118-release + + + + com.google.code.gson + gson + + + + commons-codec + commons-codec + + + org.apache.commons + commons-lang3 + + + + junit + junit + test + + + + org.slf4j + slf4j-simple + provided + + + diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/client/UDBPostgreSQLClient.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/client/UDBPostgreSQLClient.java new file mode 100644 index 00000000..401d627a --- /dev/null +++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/client/UDBPostgreSQLClient.java @@ -0,0 +1,481 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.udbpostgresql.client; + +import cn.ucloud.common.client.DefaultClient; +import cn.ucloud.common.config.Config; +import cn.ucloud.common.credential.Credential; +import cn.ucloud.common.exception.UCloudException; +import cn.ucloud.udbpostgresql.models.BackupUPgSQLLogRequest; +import cn.ucloud.udbpostgresql.models.BackupUPgSQLLogResponse; +import cn.ucloud.udbpostgresql.models.BackupUPgSQLRequest; +import cn.ucloud.udbpostgresql.models.BackupUPgSQLResponse; +import cn.ucloud.udbpostgresql.models.CreateUPgSQLInstanceRequest; +import cn.ucloud.udbpostgresql.models.CreateUPgSQLInstanceResponse; +import cn.ucloud.udbpostgresql.models.CreateUPgSQLParamTemplateRequest; +import cn.ucloud.udbpostgresql.models.CreateUPgSQLParamTemplateResponse; +import cn.ucloud.udbpostgresql.models.CreateUPgSQLReadonlyRequest; +import cn.ucloud.udbpostgresql.models.CreateUPgSQLReadonlyResponse; +import cn.ucloud.udbpostgresql.models.DeleteUPgSQLInstanceRequest; +import cn.ucloud.udbpostgresql.models.DeleteUPgSQLInstanceResponse; +import cn.ucloud.udbpostgresql.models.DeleteUPgSQLParamTemplateRequest; +import cn.ucloud.udbpostgresql.models.DeleteUPgSQLParamTemplateResponse; +import cn.ucloud.udbpostgresql.models.DownloadUPgSQLParamTemplateRequest; +import cn.ucloud.udbpostgresql.models.DownloadUPgSQLParamTemplateResponse; +import cn.ucloud.udbpostgresql.models.GetUPgSQLBackupStrategyRequest; +import cn.ucloud.udbpostgresql.models.GetUPgSQLBackupStrategyResponse; +import cn.ucloud.udbpostgresql.models.GetUPgSQLBackupURLRequest; +import cn.ucloud.udbpostgresql.models.GetUPgSQLBackupURLResponse; +import cn.ucloud.udbpostgresql.models.GetUPgSQLInstanceLogRequest; +import cn.ucloud.udbpostgresql.models.GetUPgSQLInstanceLogResponse; +import cn.ucloud.udbpostgresql.models.GetUPgSQLInstanceParamRequest; +import cn.ucloud.udbpostgresql.models.GetUPgSQLInstanceParamResponse; +import cn.ucloud.udbpostgresql.models.GetUPgSQLInstancePriceRequest; +import cn.ucloud.udbpostgresql.models.GetUPgSQLInstancePriceResponse; +import cn.ucloud.udbpostgresql.models.GetUPgSQLInstanceRequest; +import cn.ucloud.udbpostgresql.models.GetUPgSQLInstanceResponse; +import cn.ucloud.udbpostgresql.models.GetUPgSQLParamTemplateRequest; +import cn.ucloud.udbpostgresql.models.GetUPgSQLParamTemplateResponse; +import cn.ucloud.udbpostgresql.models.GetUPgSQLUpgradePriceRequest; +import cn.ucloud.udbpostgresql.models.GetUPgSQLUpgradePriceResponse; +import cn.ucloud.udbpostgresql.models.ListUPgSQLBackupRequest; +import cn.ucloud.udbpostgresql.models.ListUPgSQLBackupResponse; +import cn.ucloud.udbpostgresql.models.ListUPgSQLInstanceRequest; +import cn.ucloud.udbpostgresql.models.ListUPgSQLInstanceResponse; +import cn.ucloud.udbpostgresql.models.ListUPgSQLLogRequest; +import cn.ucloud.udbpostgresql.models.ListUPgSQLLogResponse; +import cn.ucloud.udbpostgresql.models.ListUPgSQLMachineTypeRequest; +import cn.ucloud.udbpostgresql.models.ListUPgSQLMachineTypeResponse; +import cn.ucloud.udbpostgresql.models.ListUPgSQLParamTemplateRequest; +import cn.ucloud.udbpostgresql.models.ListUPgSQLParamTemplateResponse; +import cn.ucloud.udbpostgresql.models.ListUPgSQLVersionRequest; +import cn.ucloud.udbpostgresql.models.ListUPgSQLVersionResponse; +import cn.ucloud.udbpostgresql.models.RestartUPgSQLInstanceRequest; +import cn.ucloud.udbpostgresql.models.RestartUPgSQLInstanceResponse; +import cn.ucloud.udbpostgresql.models.StartUPgSQLInstanceRequest; +import cn.ucloud.udbpostgresql.models.StartUPgSQLInstanceResponse; +import cn.ucloud.udbpostgresql.models.StopUPgSQLCreatingReadonlyRequest; +import cn.ucloud.udbpostgresql.models.StopUPgSQLCreatingReadonlyResponse; +import cn.ucloud.udbpostgresql.models.StopUPgSQLInstanceRequest; +import cn.ucloud.udbpostgresql.models.StopUPgSQLInstanceResponse; +import cn.ucloud.udbpostgresql.models.UpdateUPgSQLAttributeRequest; +import cn.ucloud.udbpostgresql.models.UpdateUPgSQLAttributeResponse; +import cn.ucloud.udbpostgresql.models.UpdateUPgSQLBackupStrategyRequest; +import cn.ucloud.udbpostgresql.models.UpdateUPgSQLBackupStrategyResponse; +import cn.ucloud.udbpostgresql.models.UpdateUPgSQLPasswordRequest; +import cn.ucloud.udbpostgresql.models.UpdateUPgSQLPasswordResponse; +import cn.ucloud.udbpostgresql.models.UpgradeUPgSQLInstanceRequest; +import cn.ucloud.udbpostgresql.models.UpgradeUPgSQLInstanceResponse; +import cn.ucloud.udbpostgresql.models.UploadUPgSQLParamTemplateRequest; +import cn.ucloud.udbpostgresql.models.UploadUPgSQLParamTemplateResponse; + +/** This client is used to call actions of **UDBPostgreSQL** service */ +public class UDBPostgreSQLClient extends DefaultClient implements UDBPostgreSQLClientInterface { + public UDBPostgreSQLClient(Config config, Credential credential) { + super(config, credential); + } + + /** + * BackupUPgSQL - 创建备份服务 + * + * @param request Request object + * @throws UCloudException Exception + */ + public BackupUPgSQLResponse backupUPgSQL(BackupUPgSQLRequest request) throws UCloudException { + request.setAction("BackupUPgSQL"); + return (BackupUPgSQLResponse) this.invoke(request, BackupUPgSQLResponse.class); + } + + /** + * BackupUPgSQLLog - 备份日志包 + * + * @param request Request object + * @throws UCloudException Exception + */ + public BackupUPgSQLLogResponse backupUPgSQLLog(BackupUPgSQLLogRequest request) + throws UCloudException { + request.setAction("BackupUPgSQLLog"); + return (BackupUPgSQLLogResponse) this.invoke(request, BackupUPgSQLLogResponse.class); + } + + /** + * CreateUPgSQLInstance - 创建PG云数据库 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateUPgSQLInstanceResponse createUPgSQLInstance(CreateUPgSQLInstanceRequest request) + throws UCloudException { + request.setAction("CreateUPgSQLInstance"); + return (CreateUPgSQLInstanceResponse) + this.invoke(request, CreateUPgSQLInstanceResponse.class); + } + + /** + * CreateUPgSQLParamTemplate - 创建PG参数模板 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateUPgSQLParamTemplateResponse createUPgSQLParamTemplate( + CreateUPgSQLParamTemplateRequest request) throws UCloudException { + request.setAction("CreateUPgSQLParamTemplate"); + return (CreateUPgSQLParamTemplateResponse) + this.invoke(request, CreateUPgSQLParamTemplateResponse.class); + } + + /** + * CreateUPgSQLReadonly - 创建PG从库 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateUPgSQLReadonlyResponse createUPgSQLReadonly(CreateUPgSQLReadonlyRequest request) + throws UCloudException { + request.setAction("CreateUPgSQLReadonly"); + return (CreateUPgSQLReadonlyResponse) + this.invoke(request, CreateUPgSQLReadonlyResponse.class); + } + + /** + * DeleteUPgSQLInstance - 删除PG实例 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteUPgSQLInstanceResponse deleteUPgSQLInstance(DeleteUPgSQLInstanceRequest request) + throws UCloudException { + request.setAction("DeleteUPgSQLInstance"); + return (DeleteUPgSQLInstanceResponse) + this.invoke(request, DeleteUPgSQLInstanceResponse.class); + } + + /** + * DeleteUPgSQLParamTemplate - 删除参数模板 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteUPgSQLParamTemplateResponse deleteUPgSQLParamTemplate( + DeleteUPgSQLParamTemplateRequest request) throws UCloudException { + request.setAction("DeleteUPgSQLParamTemplate"); + return (DeleteUPgSQLParamTemplateResponse) + this.invoke(request, DeleteUPgSQLParamTemplateResponse.class); + } + + /** + * DownloadUPgSQLParamTemplate - 下载参数模板信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DownloadUPgSQLParamTemplateResponse downloadUPgSQLParamTemplate( + DownloadUPgSQLParamTemplateRequest request) throws UCloudException { + request.setAction("DownloadUPgSQLParamTemplate"); + return (DownloadUPgSQLParamTemplateResponse) + this.invoke(request, DownloadUPgSQLParamTemplateResponse.class); + } + + /** + * GetUPgSQLBackupStrategy - 获取备份策略 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUPgSQLBackupStrategyResponse getUPgSQLBackupStrategy( + GetUPgSQLBackupStrategyRequest request) throws UCloudException { + request.setAction("GetUPgSQLBackupStrategy"); + return (GetUPgSQLBackupStrategyResponse) + this.invoke(request, GetUPgSQLBackupStrategyResponse.class); + } + + /** + * GetUPgSQLBackupURL - 获取备份下载地址 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUPgSQLBackupURLResponse getUPgSQLBackupURL(GetUPgSQLBackupURLRequest request) + throws UCloudException { + request.setAction("GetUPgSQLBackupURL"); + return (GetUPgSQLBackupURLResponse) this.invoke(request, GetUPgSQLBackupURLResponse.class); + } + + /** + * GetUPgSQLInstance - 获取云数据库实例描述 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUPgSQLInstanceResponse getUPgSQLInstance(GetUPgSQLInstanceRequest request) + throws UCloudException { + request.setAction("GetUPgSQLInstance"); + return (GetUPgSQLInstanceResponse) this.invoke(request, GetUPgSQLInstanceResponse.class); + } + + /** + * GetUPgSQLInstanceLog - 查询日志 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUPgSQLInstanceLogResponse getUPgSQLInstanceLog(GetUPgSQLInstanceLogRequest request) + throws UCloudException { + request.setAction("GetUPgSQLInstanceLog"); + return (GetUPgSQLInstanceLogResponse) + this.invoke(request, GetUPgSQLInstanceLogResponse.class); + } + + /** + * GetUPgSQLInstanceParam - 获取PG实例参数信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUPgSQLInstanceParamResponse getUPgSQLInstanceParam( + GetUPgSQLInstanceParamRequest request) throws UCloudException { + request.setAction("GetUPgSQLInstanceParam"); + return (GetUPgSQLInstanceParamResponse) + this.invoke(request, GetUPgSQLInstanceParamResponse.class); + } + + /** + * GetUPgSQLInstancePrice - 获取创建PG云数据库价格 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUPgSQLInstancePriceResponse getUPgSQLInstancePrice( + GetUPgSQLInstancePriceRequest request) throws UCloudException { + request.setAction("GetUPgSQLInstancePrice"); + return (GetUPgSQLInstancePriceResponse) + this.invoke(request, GetUPgSQLInstancePriceResponse.class); + } + + /** + * GetUPgSQLParamTemplate - 获取模板信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUPgSQLParamTemplateResponse getUPgSQLParamTemplate( + GetUPgSQLParamTemplateRequest request) throws UCloudException { + request.setAction("GetUPgSQLParamTemplate"); + return (GetUPgSQLParamTemplateResponse) + this.invoke(request, GetUPgSQLParamTemplateResponse.class); + } + + /** + * GetUPgSQLUpgradePrice - 获取 PG 云数据库升降级价格 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUPgSQLUpgradePriceResponse getUPgSQLUpgradePrice(GetUPgSQLUpgradePriceRequest request) + throws UCloudException { + request.setAction("GetUPgSQLUpgradePrice"); + return (GetUPgSQLUpgradePriceResponse) + this.invoke(request, GetUPgSQLUpgradePriceResponse.class); + } + + /** + * ListUPgSQLBackup - 获取备份列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListUPgSQLBackupResponse listUPgSQLBackup(ListUPgSQLBackupRequest request) + throws UCloudException { + request.setAction("ListUPgSQLBackup"); + return (ListUPgSQLBackupResponse) this.invoke(request, ListUPgSQLBackupResponse.class); + } + + /** + * ListUPgSQLInstance - 获取云数据库列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListUPgSQLInstanceResponse listUPgSQLInstance(ListUPgSQLInstanceRequest request) + throws UCloudException { + request.setAction("ListUPgSQLInstance"); + return (ListUPgSQLInstanceResponse) this.invoke(request, ListUPgSQLInstanceResponse.class); + } + + /** + * ListUPgSQLLog - 获取数据库日志 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListUPgSQLLogResponse listUPgSQLLog(ListUPgSQLLogRequest request) + throws UCloudException { + request.setAction("ListUPgSQLLog"); + return (ListUPgSQLLogResponse) this.invoke(request, ListUPgSQLLogResponse.class); + } + + /** + * ListUPgSQLMachineType - 获取UPgSQL支持机器类型列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListUPgSQLMachineTypeResponse listUPgSQLMachineType(ListUPgSQLMachineTypeRequest request) + throws UCloudException { + request.setAction("ListUPgSQLMachineType"); + return (ListUPgSQLMachineTypeResponse) + this.invoke(request, ListUPgSQLMachineTypeResponse.class); + } + + /** + * ListUPgSQLParamTemplate - 获取可用参数模板列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListUPgSQLParamTemplateResponse listUPgSQLParamTemplate( + ListUPgSQLParamTemplateRequest request) throws UCloudException { + request.setAction("ListUPgSQLParamTemplate"); + return (ListUPgSQLParamTemplateResponse) + this.invoke(request, ListUPgSQLParamTemplateResponse.class); + } + + /** + * ListUPgSQLVersion - 获取UPgSQL支持版本列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListUPgSQLVersionResponse listUPgSQLVersion(ListUPgSQLVersionRequest request) + throws UCloudException { + request.setAction("ListUPgSQLVersion"); + return (ListUPgSQLVersionResponse) this.invoke(request, ListUPgSQLVersionResponse.class); + } + + /** + * RestartUPgSQLInstance - 重启PG实例 + * + * @param request Request object + * @throws UCloudException Exception + */ + public RestartUPgSQLInstanceResponse restartUPgSQLInstance(RestartUPgSQLInstanceRequest request) + throws UCloudException { + request.setAction("RestartUPgSQLInstance"); + return (RestartUPgSQLInstanceResponse) + this.invoke(request, RestartUPgSQLInstanceResponse.class); + } + + /** + * StartUPgSQLInstance - 启动PG实例 + * + * @param request Request object + * @throws UCloudException Exception + */ + public StartUPgSQLInstanceResponse startUPgSQLInstance(StartUPgSQLInstanceRequest request) + throws UCloudException { + request.setAction("StartUPgSQLInstance"); + return (StartUPgSQLInstanceResponse) + this.invoke(request, StartUPgSQLInstanceResponse.class); + } + + /** + * StopUPgSQLCreatingReadonly - 停止正在创建的从库 + * + * @param request Request object + * @throws UCloudException Exception + */ + public StopUPgSQLCreatingReadonlyResponse stopUPgSQLCreatingReadonly( + StopUPgSQLCreatingReadonlyRequest request) throws UCloudException { + request.setAction("StopUPgSQLCreatingReadonly"); + return (StopUPgSQLCreatingReadonlyResponse) + this.invoke(request, StopUPgSQLCreatingReadonlyResponse.class); + } + + /** + * StopUPgSQLInstance - 关闭PG实例 + * + * @param request Request object + * @throws UCloudException Exception + */ + public StopUPgSQLInstanceResponse stopUPgSQLInstance(StopUPgSQLInstanceRequest request) + throws UCloudException { + request.setAction("StopUPgSQLInstance"); + return (StopUPgSQLInstanceResponse) this.invoke(request, StopUPgSQLInstanceResponse.class); + } + + /** + * UpdateUPgSQLAttribute - 更新数据库属性 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateUPgSQLAttributeResponse updateUPgSQLAttribute(UpdateUPgSQLAttributeRequest request) + throws UCloudException { + request.setAction("UpdateUPgSQLAttribute"); + return (UpdateUPgSQLAttributeResponse) + this.invoke(request, UpdateUPgSQLAttributeResponse.class); + } + + /** + * UpdateUPgSQLBackupStrategy - 修改备份策略 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateUPgSQLBackupStrategyResponse updateUPgSQLBackupStrategy( + UpdateUPgSQLBackupStrategyRequest request) throws UCloudException { + request.setAction("UpdateUPgSQLBackupStrategy"); + return (UpdateUPgSQLBackupStrategyResponse) + this.invoke(request, UpdateUPgSQLBackupStrategyResponse.class); + } + + /** + * UpdateUPgSQLPassword - 更新数据库用户密码 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateUPgSQLPasswordResponse updateUPgSQLPassword(UpdateUPgSQLPasswordRequest request) + throws UCloudException { + request.setAction("UpdateUPgSQLPassword"); + return (UpdateUPgSQLPasswordResponse) + this.invoke(request, UpdateUPgSQLPasswordResponse.class); + } + + /** + * UpgradeUPgSQLInstance - 硬件规格升降级 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpgradeUPgSQLInstanceResponse upgradeUPgSQLInstance(UpgradeUPgSQLInstanceRequest request) + throws UCloudException { + request.setAction("UpgradeUPgSQLInstance"); + return (UpgradeUPgSQLInstanceResponse) + this.invoke(request, UpgradeUPgSQLInstanceResponse.class); + } + + /** + * UploadUPgSQLParamTemplate - 上传参数模板 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UploadUPgSQLParamTemplateResponse uploadUPgSQLParamTemplate( + UploadUPgSQLParamTemplateRequest request) throws UCloudException { + request.setAction("UploadUPgSQLParamTemplate"); + return (UploadUPgSQLParamTemplateResponse) + this.invoke(request, UploadUPgSQLParamTemplateResponse.class); + } +} diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/client/UDBPostgreSQLClientInterface.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/client/UDBPostgreSQLClientInterface.java new file mode 100644 index 00000000..9264c1e6 --- /dev/null +++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/client/UDBPostgreSQLClientInterface.java @@ -0,0 +1,360 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.udbpostgresql.client; + +import cn.ucloud.common.client.Client; +import cn.ucloud.common.exception.UCloudException; +import cn.ucloud.udbpostgresql.models.BackupUPgSQLLogRequest; +import cn.ucloud.udbpostgresql.models.BackupUPgSQLLogResponse; +import cn.ucloud.udbpostgresql.models.BackupUPgSQLRequest; +import cn.ucloud.udbpostgresql.models.BackupUPgSQLResponse; +import cn.ucloud.udbpostgresql.models.CreateUPgSQLInstanceRequest; +import cn.ucloud.udbpostgresql.models.CreateUPgSQLInstanceResponse; +import cn.ucloud.udbpostgresql.models.CreateUPgSQLParamTemplateRequest; +import cn.ucloud.udbpostgresql.models.CreateUPgSQLParamTemplateResponse; +import cn.ucloud.udbpostgresql.models.CreateUPgSQLReadonlyRequest; +import cn.ucloud.udbpostgresql.models.CreateUPgSQLReadonlyResponse; +import cn.ucloud.udbpostgresql.models.DeleteUPgSQLInstanceRequest; +import cn.ucloud.udbpostgresql.models.DeleteUPgSQLInstanceResponse; +import cn.ucloud.udbpostgresql.models.DeleteUPgSQLParamTemplateRequest; +import cn.ucloud.udbpostgresql.models.DeleteUPgSQLParamTemplateResponse; +import cn.ucloud.udbpostgresql.models.DownloadUPgSQLParamTemplateRequest; +import cn.ucloud.udbpostgresql.models.DownloadUPgSQLParamTemplateResponse; +import cn.ucloud.udbpostgresql.models.GetUPgSQLBackupStrategyRequest; +import cn.ucloud.udbpostgresql.models.GetUPgSQLBackupStrategyResponse; +import cn.ucloud.udbpostgresql.models.GetUPgSQLBackupURLRequest; +import cn.ucloud.udbpostgresql.models.GetUPgSQLBackupURLResponse; +import cn.ucloud.udbpostgresql.models.GetUPgSQLInstanceLogRequest; +import cn.ucloud.udbpostgresql.models.GetUPgSQLInstanceLogResponse; +import cn.ucloud.udbpostgresql.models.GetUPgSQLInstanceParamRequest; +import cn.ucloud.udbpostgresql.models.GetUPgSQLInstanceParamResponse; +import cn.ucloud.udbpostgresql.models.GetUPgSQLInstancePriceRequest; +import cn.ucloud.udbpostgresql.models.GetUPgSQLInstancePriceResponse; +import cn.ucloud.udbpostgresql.models.GetUPgSQLInstanceRequest; +import cn.ucloud.udbpostgresql.models.GetUPgSQLInstanceResponse; +import cn.ucloud.udbpostgresql.models.GetUPgSQLParamTemplateRequest; +import cn.ucloud.udbpostgresql.models.GetUPgSQLParamTemplateResponse; +import cn.ucloud.udbpostgresql.models.GetUPgSQLUpgradePriceRequest; +import cn.ucloud.udbpostgresql.models.GetUPgSQLUpgradePriceResponse; +import cn.ucloud.udbpostgresql.models.ListUPgSQLBackupRequest; +import cn.ucloud.udbpostgresql.models.ListUPgSQLBackupResponse; +import cn.ucloud.udbpostgresql.models.ListUPgSQLInstanceRequest; +import cn.ucloud.udbpostgresql.models.ListUPgSQLInstanceResponse; +import cn.ucloud.udbpostgresql.models.ListUPgSQLLogRequest; +import cn.ucloud.udbpostgresql.models.ListUPgSQLLogResponse; +import cn.ucloud.udbpostgresql.models.ListUPgSQLMachineTypeRequest; +import cn.ucloud.udbpostgresql.models.ListUPgSQLMachineTypeResponse; +import cn.ucloud.udbpostgresql.models.ListUPgSQLParamTemplateRequest; +import cn.ucloud.udbpostgresql.models.ListUPgSQLParamTemplateResponse; +import cn.ucloud.udbpostgresql.models.ListUPgSQLVersionRequest; +import cn.ucloud.udbpostgresql.models.ListUPgSQLVersionResponse; +import cn.ucloud.udbpostgresql.models.RestartUPgSQLInstanceRequest; +import cn.ucloud.udbpostgresql.models.RestartUPgSQLInstanceResponse; +import cn.ucloud.udbpostgresql.models.StartUPgSQLInstanceRequest; +import cn.ucloud.udbpostgresql.models.StartUPgSQLInstanceResponse; +import cn.ucloud.udbpostgresql.models.StopUPgSQLCreatingReadonlyRequest; +import cn.ucloud.udbpostgresql.models.StopUPgSQLCreatingReadonlyResponse; +import cn.ucloud.udbpostgresql.models.StopUPgSQLInstanceRequest; +import cn.ucloud.udbpostgresql.models.StopUPgSQLInstanceResponse; +import cn.ucloud.udbpostgresql.models.UpdateUPgSQLAttributeRequest; +import cn.ucloud.udbpostgresql.models.UpdateUPgSQLAttributeResponse; +import cn.ucloud.udbpostgresql.models.UpdateUPgSQLBackupStrategyRequest; +import cn.ucloud.udbpostgresql.models.UpdateUPgSQLBackupStrategyResponse; +import cn.ucloud.udbpostgresql.models.UpdateUPgSQLPasswordRequest; +import cn.ucloud.udbpostgresql.models.UpdateUPgSQLPasswordResponse; +import cn.ucloud.udbpostgresql.models.UpgradeUPgSQLInstanceRequest; +import cn.ucloud.udbpostgresql.models.UpgradeUPgSQLInstanceResponse; +import cn.ucloud.udbpostgresql.models.UploadUPgSQLParamTemplateRequest; +import cn.ucloud.udbpostgresql.models.UploadUPgSQLParamTemplateResponse; + +/** This client is used to call actions of **UDBPostgreSQL** service */ +public interface UDBPostgreSQLClientInterface extends Client { + + /** + * BackupUPgSQL - 创建备份服务 + * + * @param request Request object + * @throws UCloudException Exception + */ + public BackupUPgSQLResponse backupUPgSQL(BackupUPgSQLRequest request) throws UCloudException; + + /** + * BackupUPgSQLLog - 备份日志包 + * + * @param request Request object + * @throws UCloudException Exception + */ + public BackupUPgSQLLogResponse backupUPgSQLLog(BackupUPgSQLLogRequest request) + throws UCloudException; + + /** + * CreateUPgSQLInstance - 创建PG云数据库 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateUPgSQLInstanceResponse createUPgSQLInstance(CreateUPgSQLInstanceRequest request) + throws UCloudException; + + /** + * CreateUPgSQLParamTemplate - 创建PG参数模板 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateUPgSQLParamTemplateResponse createUPgSQLParamTemplate( + CreateUPgSQLParamTemplateRequest request) throws UCloudException; + + /** + * CreateUPgSQLReadonly - 创建PG从库 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateUPgSQLReadonlyResponse createUPgSQLReadonly(CreateUPgSQLReadonlyRequest request) + throws UCloudException; + + /** + * DeleteUPgSQLInstance - 删除PG实例 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteUPgSQLInstanceResponse deleteUPgSQLInstance(DeleteUPgSQLInstanceRequest request) + throws UCloudException; + + /** + * DeleteUPgSQLParamTemplate - 删除参数模板 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteUPgSQLParamTemplateResponse deleteUPgSQLParamTemplate( + DeleteUPgSQLParamTemplateRequest request) throws UCloudException; + + /** + * DownloadUPgSQLParamTemplate - 下载参数模板信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DownloadUPgSQLParamTemplateResponse downloadUPgSQLParamTemplate( + DownloadUPgSQLParamTemplateRequest request) throws UCloudException; + + /** + * GetUPgSQLBackupStrategy - 获取备份策略 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUPgSQLBackupStrategyResponse getUPgSQLBackupStrategy( + GetUPgSQLBackupStrategyRequest request) throws UCloudException; + + /** + * GetUPgSQLBackupURL - 获取备份下载地址 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUPgSQLBackupURLResponse getUPgSQLBackupURL(GetUPgSQLBackupURLRequest request) + throws UCloudException; + + /** + * GetUPgSQLInstance - 获取云数据库实例描述 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUPgSQLInstanceResponse getUPgSQLInstance(GetUPgSQLInstanceRequest request) + throws UCloudException; + + /** + * GetUPgSQLInstanceLog - 查询日志 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUPgSQLInstanceLogResponse getUPgSQLInstanceLog(GetUPgSQLInstanceLogRequest request) + throws UCloudException; + + /** + * GetUPgSQLInstanceParam - 获取PG实例参数信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUPgSQLInstanceParamResponse getUPgSQLInstanceParam( + GetUPgSQLInstanceParamRequest request) throws UCloudException; + + /** + * GetUPgSQLInstancePrice - 获取创建PG云数据库价格 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUPgSQLInstancePriceResponse getUPgSQLInstancePrice( + GetUPgSQLInstancePriceRequest request) throws UCloudException; + + /** + * GetUPgSQLParamTemplate - 获取模板信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUPgSQLParamTemplateResponse getUPgSQLParamTemplate( + GetUPgSQLParamTemplateRequest request) throws UCloudException; + + /** + * GetUPgSQLUpgradePrice - 获取 PG 云数据库升降级价格 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUPgSQLUpgradePriceResponse getUPgSQLUpgradePrice(GetUPgSQLUpgradePriceRequest request) + throws UCloudException; + + /** + * ListUPgSQLBackup - 获取备份列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListUPgSQLBackupResponse listUPgSQLBackup(ListUPgSQLBackupRequest request) + throws UCloudException; + + /** + * ListUPgSQLInstance - 获取云数据库列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListUPgSQLInstanceResponse listUPgSQLInstance(ListUPgSQLInstanceRequest request) + throws UCloudException; + + /** + * ListUPgSQLLog - 获取数据库日志 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListUPgSQLLogResponse listUPgSQLLog(ListUPgSQLLogRequest request) throws UCloudException; + + /** + * ListUPgSQLMachineType - 获取UPgSQL支持机器类型列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListUPgSQLMachineTypeResponse listUPgSQLMachineType(ListUPgSQLMachineTypeRequest request) + throws UCloudException; + + /** + * ListUPgSQLParamTemplate - 获取可用参数模板列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListUPgSQLParamTemplateResponse listUPgSQLParamTemplate( + ListUPgSQLParamTemplateRequest request) throws UCloudException; + + /** + * ListUPgSQLVersion - 获取UPgSQL支持版本列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListUPgSQLVersionResponse listUPgSQLVersion(ListUPgSQLVersionRequest request) + throws UCloudException; + + /** + * RestartUPgSQLInstance - 重启PG实例 + * + * @param request Request object + * @throws UCloudException Exception + */ + public RestartUPgSQLInstanceResponse restartUPgSQLInstance(RestartUPgSQLInstanceRequest request) + throws UCloudException; + + /** + * StartUPgSQLInstance - 启动PG实例 + * + * @param request Request object + * @throws UCloudException Exception + */ + public StartUPgSQLInstanceResponse startUPgSQLInstance(StartUPgSQLInstanceRequest request) + throws UCloudException; + + /** + * StopUPgSQLCreatingReadonly - 停止正在创建的从库 + * + * @param request Request object + * @throws UCloudException Exception + */ + public StopUPgSQLCreatingReadonlyResponse stopUPgSQLCreatingReadonly( + StopUPgSQLCreatingReadonlyRequest request) throws UCloudException; + + /** + * StopUPgSQLInstance - 关闭PG实例 + * + * @param request Request object + * @throws UCloudException Exception + */ + public StopUPgSQLInstanceResponse stopUPgSQLInstance(StopUPgSQLInstanceRequest request) + throws UCloudException; + + /** + * UpdateUPgSQLAttribute - 更新数据库属性 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateUPgSQLAttributeResponse updateUPgSQLAttribute(UpdateUPgSQLAttributeRequest request) + throws UCloudException; + + /** + * UpdateUPgSQLBackupStrategy - 修改备份策略 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateUPgSQLBackupStrategyResponse updateUPgSQLBackupStrategy( + UpdateUPgSQLBackupStrategyRequest request) throws UCloudException; + + /** + * UpdateUPgSQLPassword - 更新数据库用户密码 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateUPgSQLPasswordResponse updateUPgSQLPassword(UpdateUPgSQLPasswordRequest request) + throws UCloudException; + + /** + * UpgradeUPgSQLInstance - 硬件规格升降级 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpgradeUPgSQLInstanceResponse upgradeUPgSQLInstance(UpgradeUPgSQLInstanceRequest request) + throws UCloudException; + + /** + * UploadUPgSQLParamTemplate - 上传参数模板 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UploadUPgSQLParamTemplateResponse uploadUPgSQLParamTemplate( + UploadUPgSQLParamTemplateRequest request) throws UCloudException; +} diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/BackupUPgSQLLogRequest.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/BackupUPgSQLLogRequest.java new file mode 100644 index 00000000..02492d89 --- /dev/null +++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/BackupUPgSQLLogRequest.java @@ -0,0 +1,128 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.udbpostgresql.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class BackupUPgSQLLogRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Zone") + private String zone; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 备份导出文件名称 */ + @NotEmpty + @UCloudParam("BackupName") + private String backupName; + + /** 资源ID */ + @NotEmpty + @UCloudParam("InstanceID") + private String instanceID; + + /** 日志类型:slowlog(慢日志),errorlog(错误日志),不区分大小写 */ + @NotEmpty + @UCloudParam("LogType") + private String logType; + + /** 日志开始时间 */ + @NotEmpty + @UCloudParam("BeginTime") + private Integer beginTime; + + /** 日志结束时间 */ + @NotEmpty + @UCloudParam("EndTime") + private Integer endTime; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getZone() { + return zone; + } + + public void setZone(String zone) { + this.zone = zone; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getBackupName() { + return backupName; + } + + public void setBackupName(String backupName) { + this.backupName = backupName; + } + + public String getInstanceID() { + return instanceID; + } + + public void setInstanceID(String instanceID) { + this.instanceID = instanceID; + } + + public String getLogType() { + return logType; + } + + public void setLogType(String logType) { + this.logType = logType; + } + + public Integer getBeginTime() { + return beginTime; + } + + public void setBeginTime(Integer beginTime) { + this.beginTime = beginTime; + } + + public Integer getEndTime() { + return endTime; + } + + public void setEndTime(Integer endTime) { + this.endTime = endTime; + } +} diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/BackupUPgSQLLogResponse.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/BackupUPgSQLLogResponse.java new file mode 100644 index 00000000..14b541df --- /dev/null +++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/BackupUPgSQLLogResponse.java @@ -0,0 +1,20 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.udbpostgresql.models; + + + +import cn.ucloud.common.response.Response; + +public class BackupUPgSQLLogResponse extends Response {} diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/BackupUPgSQLRequest.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/BackupUPgSQLRequest.java new file mode 100644 index 00000000..bc2b034c --- /dev/null +++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/BackupUPgSQLRequest.java @@ -0,0 +1,115 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.udbpostgresql.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class BackupUPgSQLRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Zone") + private String zone; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** DB实例Id */ + @NotEmpty + @UCloudParam("InstanceID") + private String instanceID; + + /** 备份名称 */ + @NotEmpty + @UCloudParam("BackupName") + private String backupName; + + /** 使用的备份方式(物理备份,逻辑备份) */ + @NotEmpty + @UCloudParam("BackupMethod") + private Integer backupMethod; + + /** 备份黑名单列表,以“ ;” 分隔。 */ + @NotEmpty + @UCloudParam("Blacklist") + private String blacklist; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getZone() { + return zone; + } + + public void setZone(String zone) { + this.zone = zone; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getInstanceID() { + return instanceID; + } + + public void setInstanceID(String instanceID) { + this.instanceID = instanceID; + } + + public String getBackupName() { + return backupName; + } + + public void setBackupName(String backupName) { + this.backupName = backupName; + } + + public Integer getBackupMethod() { + return backupMethod; + } + + public void setBackupMethod(Integer backupMethod) { + this.backupMethod = backupMethod; + } + + public String getBlacklist() { + return blacklist; + } + + public void setBlacklist(String blacklist) { + this.blacklist = blacklist; + } +} diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/BackupUPgSQLResponse.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/BackupUPgSQLResponse.java new file mode 100644 index 00000000..90abd490 --- /dev/null +++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/BackupUPgSQLResponse.java @@ -0,0 +1,34 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.udbpostgresql.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class BackupUPgSQLResponse extends Response { + + /** 返回的备份ID */ + @SerializedName("BackupID") + private String backupID; + + public String getBackupID() { + return backupID; + } + + public void setBackupID(String backupID) { + this.backupID = backupID; + } +} diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/CreateUPgSQLInstanceRequest.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/CreateUPgSQLInstanceRequest.java new file mode 100644 index 00000000..4fa53912 --- /dev/null +++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/CreateUPgSQLInstanceRequest.java @@ -0,0 +1,192 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.udbpostgresql.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class CreateUPgSQLInstanceRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Zone") + private String zone; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 实例名称,至少6位 */ + @NotEmpty + @UCloudParam("Name") + private String name; + + /** PostgreSQL的版本,pg10.4:postgresql-10.4,pg13.4:postgresql-13.4 */ + @NotEmpty + @UCloudParam("DBVersion") + private String dbVersion; + + /** DB实例使用的配置参数组id */ + @NotEmpty + @UCloudParam("ParamGroupID") + private Integer paramGroupID; + + /** 管理员密码 */ + @NotEmpty + @UCloudParam("AdminPassword") + private String adminPassword; + + /** 端口默认为5432 */ + @NotEmpty + @UCloudParam("Port") + private Integer port; + + /** 磁盘空间(GB) */ + @NotEmpty + @UCloudParam("DiskSpace") + private String diskSpace; + + /** 机器配置类型,2核4G的机器:o.pgsql2m.medium */ + @NotEmpty + @UCloudParam("MachineType") + private String machineType; + + /** 子网ID */ + @NotEmpty + @UCloudParam("SubnetID") + private String subnetID; + + /** VPC的ID */ + @NotEmpty + @UCloudParam("VPCID") + private String vpcid; + + /** UDB实例模式类型, 可选值如下: "Normal": 普通版UDB实例 "HA": 高可用版UDB实例 默认是"Normal" */ + @UCloudParam("InstanceMode") + private String instanceMode; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getZone() { + return zone; + } + + public void setZone(String zone) { + this.zone = zone; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getDBVersion() { + return dbVersion; + } + + public void setDBVersion(String dbVersion) { + this.dbVersion = dbVersion; + } + + public Integer getParamGroupID() { + return paramGroupID; + } + + public void setParamGroupID(Integer paramGroupID) { + this.paramGroupID = paramGroupID; + } + + public String getAdminPassword() { + return adminPassword; + } + + public void setAdminPassword(String adminPassword) { + this.adminPassword = adminPassword; + } + + public Integer getPort() { + return port; + } + + public void setPort(Integer port) { + this.port = port; + } + + public String getDiskSpace() { + return diskSpace; + } + + public void setDiskSpace(String diskSpace) { + this.diskSpace = diskSpace; + } + + public String getMachineType() { + return machineType; + } + + public void setMachineType(String machineType) { + this.machineType = machineType; + } + + public String getSubnetID() { + return subnetID; + } + + public void setSubnetID(String subnetID) { + this.subnetID = subnetID; + } + + public String getVPCID() { + return vpcid; + } + + public void setVPCID(String vpcid) { + this.vpcid = vpcid; + } + + public String getInstanceMode() { + return instanceMode; + } + + public void setInstanceMode(String instanceMode) { + this.instanceMode = instanceMode; + } +} diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/CreateUPgSQLInstanceResponse.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/CreateUPgSQLInstanceResponse.java new file mode 100644 index 00000000..3e2ba346 --- /dev/null +++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/CreateUPgSQLInstanceResponse.java @@ -0,0 +1,34 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.udbpostgresql.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class CreateUPgSQLInstanceResponse extends Response { + + /** 资源ID */ + @SerializedName("InstanceID") + private String instanceID; + + public String getInstanceID() { + return instanceID; + } + + public void setInstanceID(String instanceID) { + this.instanceID = instanceID; + } +} diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/CreateUPgSQLParamTemplateRequest.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/CreateUPgSQLParamTemplateRequest.java new file mode 100644 index 00000000..3b6c3f36 --- /dev/null +++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/CreateUPgSQLParamTemplateRequest.java @@ -0,0 +1,114 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.udbpostgresql.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class CreateUPgSQLParamTemplateRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Zone") + private String zone; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 模板名称 */ + @NotEmpty + @UCloudParam("GroupName") + private String groupName; + + /** 基准模板 */ + @NotEmpty + @UCloudParam("SrcGroupID") + private Integer srcGroupID; + + /** 什么版本,以及类型的DB */ + @NotEmpty + @UCloudParam("DBVersion") + private String dbVersion; + + /** 描述信息 */ + @UCloudParam("Description") + private String description; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getZone() { + return zone; + } + + public void setZone(String zone) { + this.zone = zone; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getGroupName() { + return groupName; + } + + public void setGroupName(String groupName) { + this.groupName = groupName; + } + + public Integer getSrcGroupID() { + return srcGroupID; + } + + public void setSrcGroupID(Integer srcGroupID) { + this.srcGroupID = srcGroupID; + } + + public String getDBVersion() { + return dbVersion; + } + + public void setDBVersion(String dbVersion) { + this.dbVersion = dbVersion; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } +} diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/CreateUPgSQLParamTemplateResponse.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/CreateUPgSQLParamTemplateResponse.java new file mode 100644 index 00000000..efc0675e --- /dev/null +++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/CreateUPgSQLParamTemplateResponse.java @@ -0,0 +1,34 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.udbpostgresql.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class CreateUPgSQLParamTemplateResponse extends Response { + + /** 创建的模板ID */ + @SerializedName("GroupID") + private Integer groupID; + + public Integer getGroupID() { + return groupID; + } + + public void setGroupID(Integer groupID) { + this.groupID = groupID; + } +} diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/CreateUPgSQLReadonlyRequest.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/CreateUPgSQLReadonlyRequest.java new file mode 100644 index 00000000..500032dd --- /dev/null +++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/CreateUPgSQLReadonlyRequest.java @@ -0,0 +1,231 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.udbpostgresql.models; + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +import java.util.List; + +public class CreateUPgSQLReadonlyRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Zone") + private String zone; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** Db名称 */ + @NotEmpty + @UCloudParam("Name") + private String name; + + /** DB端口 */ + @NotEmpty + @UCloudParam("Port") + private Integer port; + + /** 磁盘空间 */ + @NotEmpty + @UCloudParam("DiskSpace") + private Integer diskSpace; + + /** 机器配置类型,2核4G的机器:o.pgsql2m.medium */ + @NotEmpty + @UCloudParam("MachineType") + private String machineType; + + /** 同步的源库 */ + @NotEmpty + @UCloudParam("SrcInstanceID") + private String srcInstanceID; + + /** 子网ID */ + @UCloudParam("SubnetID") + private String subnetID; + + /** VPCID */ + @UCloudParam("VPCID") + private String vpcid; + + /** */ + @UCloudParam("Labels") + private List labels; + + /** */ + @UCloudParam("SecGroupId") + private List secGroupId; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getZone() { + return zone; + } + + public void setZone(String zone) { + this.zone = zone; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public Integer getPort() { + return port; + } + + public void setPort(Integer port) { + this.port = port; + } + + public Integer getDiskSpace() { + return diskSpace; + } + + public void setDiskSpace(Integer diskSpace) { + this.diskSpace = diskSpace; + } + + public String getMachineType() { + return machineType; + } + + public void setMachineType(String machineType) { + this.machineType = machineType; + } + + public String getSrcInstanceID() { + return srcInstanceID; + } + + public void setSrcInstanceID(String srcInstanceID) { + this.srcInstanceID = srcInstanceID; + } + + public String getSubnetID() { + return subnetID; + } + + public void setSubnetID(String subnetID) { + this.subnetID = subnetID; + } + + public String getVPCID() { + return vpcid; + } + + public void setVPCID(String vpcid) { + this.vpcid = vpcid; + } + + public List getLabels() { + return labels; + } + + public void setLabels(List labels) { + this.labels = labels; + } + + public List getSecGroupId() { + return secGroupId; + } + + public void setSecGroupId(List secGroupId) { + this.secGroupId = secGroupId; + } + + public static class Labels extends Request { + + /** 用户资源标签的键值 */ + @UCloudParam("Key") + private String key; + + /** 用户资源标签值 */ + @UCloudParam("Value") + private String value; + + public String getKey() { + return key; + } + + public void setKey(String key) { + this.key = key; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + + public static class SecGroupId extends Request { + + /** 安全组id */ + @UCloudParam("Id") + private String id; + + /** 安全组优先级 */ + @UCloudParam("Priority") + private Integer priority; + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public Integer getPriority() { + return priority; + } + + public void setPriority(Integer priority) { + this.priority = priority; + } + } +} diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/CreateUPgSQLReadonlyResponse.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/CreateUPgSQLReadonlyResponse.java new file mode 100644 index 00000000..db767f99 --- /dev/null +++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/CreateUPgSQLReadonlyResponse.java @@ -0,0 +1,34 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.udbpostgresql.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class CreateUPgSQLReadonlyResponse extends Response { + + /** 资源ID */ + @SerializedName("InstanceID") + private String instanceID; + + public String getInstanceID() { + return instanceID; + } + + public void setInstanceID(String instanceID) { + this.instanceID = instanceID; + } +} diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/DeleteUPgSQLInstanceRequest.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/DeleteUPgSQLInstanceRequest.java new file mode 100644 index 00000000..b34e603c --- /dev/null +++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/DeleteUPgSQLInstanceRequest.java @@ -0,0 +1,76 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.udbpostgresql.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class DeleteUPgSQLInstanceRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Zone") + private String zone; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 实例ID */ + @NotEmpty + @UCloudParam("InstanceID") + private String instanceID; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getZone() { + return zone; + } + + public void setZone(String zone) { + this.zone = zone; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getInstanceID() { + return instanceID; + } + + public void setInstanceID(String instanceID) { + this.instanceID = instanceID; + } +} diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/DeleteUPgSQLInstanceResponse.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/DeleteUPgSQLInstanceResponse.java new file mode 100644 index 00000000..d8b15312 --- /dev/null +++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/DeleteUPgSQLInstanceResponse.java @@ -0,0 +1,20 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.udbpostgresql.models; + + + +import cn.ucloud.common.response.Response; + +public class DeleteUPgSQLInstanceResponse extends Response {} diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/DeleteUPgSQLParamTemplateRequest.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/DeleteUPgSQLParamTemplateRequest.java new file mode 100644 index 00000000..75ce25c6 --- /dev/null +++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/DeleteUPgSQLParamTemplateRequest.java @@ -0,0 +1,76 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.udbpostgresql.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class DeleteUPgSQLParamTemplateRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Zone") + private String zone; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 模板ID */ + @NotEmpty + @UCloudParam("GroupID") + private Integer groupID; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getZone() { + return zone; + } + + public void setZone(String zone) { + this.zone = zone; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public Integer getGroupID() { + return groupID; + } + + public void setGroupID(Integer groupID) { + this.groupID = groupID; + } +} diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/DeleteUPgSQLParamTemplateResponse.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/DeleteUPgSQLParamTemplateResponse.java new file mode 100644 index 00000000..003fd5bf --- /dev/null +++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/DeleteUPgSQLParamTemplateResponse.java @@ -0,0 +1,20 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.udbpostgresql.models; + + + +import cn.ucloud.common.response.Response; + +public class DeleteUPgSQLParamTemplateResponse extends Response {} diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/DownloadUPgSQLParamTemplateRequest.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/DownloadUPgSQLParamTemplateRequest.java new file mode 100644 index 00000000..63ea73e8 --- /dev/null +++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/DownloadUPgSQLParamTemplateRequest.java @@ -0,0 +1,76 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.udbpostgresql.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class DownloadUPgSQLParamTemplateRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Zone") + private String zone; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 参数模板id */ + @NotEmpty + @UCloudParam("GroupID") + private Integer groupID; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getZone() { + return zone; + } + + public void setZone(String zone) { + this.zone = zone; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public Integer getGroupID() { + return groupID; + } + + public void setGroupID(Integer groupID) { + this.groupID = groupID; + } +} diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/DownloadUPgSQLParamTemplateResponse.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/DownloadUPgSQLParamTemplateResponse.java new file mode 100644 index 00000000..3b32daf5 --- /dev/null +++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/DownloadUPgSQLParamTemplateResponse.java @@ -0,0 +1,34 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.udbpostgresql.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class DownloadUPgSQLParamTemplateResponse extends Response { + + /** base64编码过的 */ + @SerializedName("Content") + private String content; + + public String getContent() { + return content; + } + + public void setContent(String content) { + this.content = content; + } +} diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLBackupStrategyRequest.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLBackupStrategyRequest.java new file mode 100644 index 00000000..c06a7e4a --- /dev/null +++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLBackupStrategyRequest.java @@ -0,0 +1,76 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.udbpostgresql.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class GetUPgSQLBackupStrategyRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Zone") + private String zone; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** DB实例Id */ + @NotEmpty + @UCloudParam("InstanceID") + private String instanceID; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getZone() { + return zone; + } + + public void setZone(String zone) { + this.zone = zone; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getInstanceID() { + return instanceID; + } + + public void setInstanceID(String instanceID) { + this.instanceID = instanceID; + } +} diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLBackupStrategyResponse.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLBackupStrategyResponse.java new file mode 100644 index 00000000..499b431c --- /dev/null +++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLBackupStrategyResponse.java @@ -0,0 +1,58 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.udbpostgresql.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class GetUPgSQLBackupStrategyResponse extends Response { + + /** 自动备份预计开始时间范围 */ + @SerializedName("BackupTimeRange") + private String backupTimeRange; + + /** 自动备份预期星期几(1~7)开始 */ + @SerializedName("BackupWeek") + private String backupWeek; + + /** 默认的备份方式 */ + @SerializedName("BackupMethod") + private String backupMethod; + + public String getBackupTimeRange() { + return backupTimeRange; + } + + public void setBackupTimeRange(String backupTimeRange) { + this.backupTimeRange = backupTimeRange; + } + + public String getBackupWeek() { + return backupWeek; + } + + public void setBackupWeek(String backupWeek) { + this.backupWeek = backupWeek; + } + + public String getBackupMethod() { + return backupMethod; + } + + public void setBackupMethod(String backupMethod) { + this.backupMethod = backupMethod; + } +} diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLBackupURLRequest.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLBackupURLRequest.java new file mode 100644 index 00000000..ddf41334 --- /dev/null +++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLBackupURLRequest.java @@ -0,0 +1,89 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.udbpostgresql.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class GetUPgSQLBackupURLRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Zone") + private String zone; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** DB实例Id */ + @NotEmpty + @UCloudParam("InstanceID") + private String instanceID; + + /** 备份Id */ + @NotEmpty + @UCloudParam("BackupID") + private String backupID; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getZone() { + return zone; + } + + public void setZone(String zone) { + this.zone = zone; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getInstanceID() { + return instanceID; + } + + public void setInstanceID(String instanceID) { + this.instanceID = instanceID; + } + + public String getBackupID() { + return backupID; + } + + public void setBackupID(String backupID) { + this.backupID = backupID; + } +} diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLBackupURLResponse.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLBackupURLResponse.java new file mode 100644 index 00000000..d2da29a1 --- /dev/null +++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLBackupURLResponse.java @@ -0,0 +1,46 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.udbpostgresql.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class GetUPgSQLBackupURLResponse extends Response { + + /** DB实例备份文件公网的地址 */ + @SerializedName("BackupPath") + private String backupPath; + + /** DB实例备份文件内网的地址 */ + @SerializedName("InnerBackupPath") + private String innerBackupPath; + + public String getBackupPath() { + return backupPath; + } + + public void setBackupPath(String backupPath) { + this.backupPath = backupPath; + } + + public String getInnerBackupPath() { + return innerBackupPath; + } + + public void setInnerBackupPath(String innerBackupPath) { + this.innerBackupPath = innerBackupPath; + } +} diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLInstanceLogRequest.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLInstanceLogRequest.java new file mode 100644 index 00000000..4c165ed1 --- /dev/null +++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLInstanceLogRequest.java @@ -0,0 +1,140 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.udbpostgresql.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class GetUPgSQLInstanceLogRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Zone") + private String zone; + + /** 日志类型 */ + @NotEmpty + @UCloudParam("LogType") + private String logType; + + /** 公司ID */ + @NotEmpty + @UCloudParam("CompanyID") + private Integer companyID; + + /** 账户ID */ + @NotEmpty + @UCloudParam("AccountID") + private Integer accountID; + + /** 起始时间,需使用时间戳 */ + @NotEmpty + @UCloudParam("BeginTime") + private Integer beginTime; + + /** 实例资源ID */ + @NotEmpty + @UCloudParam("InstanceID") + private String instanceID; + + /** 结束时间,需使用时间戳,结束时间需大于起始时间 实时查询的时候不需要传 */ + @UCloudParam("EndTime") + private Integer endTime; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getZone() { + return zone; + } + + public void setZone(String zone) { + this.zone = zone; + } + + public String getLogType() { + return logType; + } + + public void setLogType(String logType) { + this.logType = logType; + } + + public Integer getCompanyID() { + return companyID; + } + + public void setCompanyID(Integer companyID) { + this.companyID = companyID; + } + + public Integer getAccountID() { + return accountID; + } + + public void setAccountID(Integer accountID) { + this.accountID = accountID; + } + + public Integer getBeginTime() { + return beginTime; + } + + public void setBeginTime(Integer beginTime) { + this.beginTime = beginTime; + } + + public String getInstanceID() { + return instanceID; + } + + public void setInstanceID(String instanceID) { + this.instanceID = instanceID; + } + + public Integer getEndTime() { + return endTime; + } + + public void setEndTime(Integer endTime) { + this.endTime = endTime; + } +} diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLInstanceLogResponse.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLInstanceLogResponse.java new file mode 100644 index 00000000..7f79d444 --- /dev/null +++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLInstanceLogResponse.java @@ -0,0 +1,34 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.udbpostgresql.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class GetUPgSQLInstanceLogResponse extends Response { + + /** 返回的日志信息 */ + @SerializedName("Log") + private String log; + + public String getLog() { + return log; + } + + public void setLog(String log) { + this.log = log; + } +} diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLInstanceParamRequest.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLInstanceParamRequest.java new file mode 100644 index 00000000..0b089073 --- /dev/null +++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLInstanceParamRequest.java @@ -0,0 +1,76 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.udbpostgresql.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class GetUPgSQLInstanceParamRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Zone") + private String zone; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 实例ID */ + @NotEmpty + @UCloudParam("InstanceID") + private String instanceID; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getZone() { + return zone; + } + + public void setZone(String zone) { + this.zone = zone; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getInstanceID() { + return instanceID; + } + + public void setInstanceID(String instanceID) { + this.instanceID = instanceID; + } +} diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLInstanceParamResponse.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLInstanceParamResponse.java new file mode 100644 index 00000000..06250891 --- /dev/null +++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLInstanceParamResponse.java @@ -0,0 +1,122 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.udbpostgresql.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class GetUPgSQLInstanceParamResponse extends Response { + + /** 参数的键值对信息 */ + @SerializedName("Data") + private List data; + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public static class Param extends Response { + + /** 参数Key */ + @SerializedName("Key") + private String key; + + /** 参数值 */ + @SerializedName("Value") + private String value; + + /** 值类型 */ + @SerializedName("ValueType") + private Integer valueType; + + /** 允许的值 */ + @SerializedName("AllowedVal") + private String allowedVal; + + /** 允许类型 */ + @SerializedName("ApplyType") + private Integer applyType; + + /** 是否可以修改 */ + @SerializedName("Modifiable") + private Boolean modifiable; + + /** 参数格式类型 */ + @SerializedName("FormatType") + private Integer formatType; + + public String getKey() { + return key; + } + + public void setKey(String key) { + this.key = key; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + + public Integer getValueType() { + return valueType; + } + + public void setValueType(Integer valueType) { + this.valueType = valueType; + } + + public String getAllowedVal() { + return allowedVal; + } + + public void setAllowedVal(String allowedVal) { + this.allowedVal = allowedVal; + } + + public Integer getApplyType() { + return applyType; + } + + public void setApplyType(Integer applyType) { + this.applyType = applyType; + } + + public Boolean getModifiable() { + return modifiable; + } + + public void setModifiable(Boolean modifiable) { + this.modifiable = modifiable; + } + + public Integer getFormatType() { + return formatType; + } + + public void setFormatType(Integer formatType) { + this.formatType = formatType; + } + } +} diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLInstancePriceRequest.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLInstancePriceRequest.java new file mode 100644 index 00000000..0c1cbc7e --- /dev/null +++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLInstancePriceRequest.java @@ -0,0 +1,126 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.udbpostgresql.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class GetUPgSQLInstancePriceRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Zone") + private String zone; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 机器配置类型 参考2C4G机器:o.pgsql2m.medium */ + @NotEmpty + @UCloudParam("MachineType") + private String machineType; + + /** 磁盘空间(GB) */ + @NotEmpty + @UCloudParam("DiskSpace") + private Integer diskSpace; + + /** UDB实例模式类型, 可选值如下: "Normal": 普通版UDB实例 "HA": 高可用版UDB实例 */ + @NotEmpty + @UCloudParam("InstanceMode") + private String instanceMode; + + /** 计费模式。枚举值为: Year,按年付费; Month,按月付费; Dynamic,按小时付费(需开启权限)。默认为月付 */ + @UCloudParam("ChargeType") + private String chargeType; + + /** 购买时长。默认: 1。按小时购买(Dynamic)时无需此参数。 月付时,此参数传0,代表了购买至月末。 */ + @UCloudParam("Quantity") + private Integer quantity; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getZone() { + return zone; + } + + public void setZone(String zone) { + this.zone = zone; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getMachineType() { + return machineType; + } + + public void setMachineType(String machineType) { + this.machineType = machineType; + } + + public Integer getDiskSpace() { + return diskSpace; + } + + public void setDiskSpace(Integer diskSpace) { + this.diskSpace = diskSpace; + } + + public String getInstanceMode() { + return instanceMode; + } + + public void setInstanceMode(String instanceMode) { + this.instanceMode = instanceMode; + } + + public String getChargeType() { + return chargeType; + } + + public void setChargeType(String chargeType) { + this.chargeType = chargeType; + } + + public Integer getQuantity() { + return quantity; + } + + public void setQuantity(Integer quantity) { + this.quantity = quantity; + } +} diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLInstancePriceResponse.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLInstancePriceResponse.java new file mode 100644 index 00000000..665e17ff --- /dev/null +++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLInstancePriceResponse.java @@ -0,0 +1,74 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.udbpostgresql.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class GetUPgSQLInstancePriceResponse extends Response { + + /** 价格列表 */ + @SerializedName("PriceSet") + private List priceSet; + + public List getPriceSet() { + return priceSet; + } + + public void setPriceSet(List priceSet) { + this.priceSet = priceSet; + } + + public static class UPgSQLInstancePriceSet extends Response { + + /** 计费类型,Year,Month,Dynamic。 */ + @SerializedName("ChargeType") + private String chargeType; + + /** 实际价格,单位:元,保留小数点后两位有效数字。 */ + @SerializedName("Price") + private Double price; + + /** 购买原价,单位:元。 */ + @SerializedName("OriginalPrice") + private Double originalPrice; + + public String getChargeType() { + return chargeType; + } + + public void setChargeType(String chargeType) { + this.chargeType = chargeType; + } + + public Double getPrice() { + return price; + } + + public void setPrice(Double price) { + this.price = price; + } + + public Double getOriginalPrice() { + return originalPrice; + } + + public void setOriginalPrice(Double originalPrice) { + this.originalPrice = originalPrice; + } + } +} diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLInstanceRequest.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLInstanceRequest.java new file mode 100644 index 00000000..44a28646 --- /dev/null +++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLInstanceRequest.java @@ -0,0 +1,75 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.udbpostgresql.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class GetUPgSQLInstanceRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @UCloudParam("Zone") + private String zone; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 资源ID */ + @NotEmpty + @UCloudParam("InstanceID") + private String instanceID; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getZone() { + return zone; + } + + public void setZone(String zone) { + this.zone = zone; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getInstanceID() { + return instanceID; + } + + public void setInstanceID(String instanceID) { + this.instanceID = instanceID; + } +} diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLInstanceResponse.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLInstanceResponse.java new file mode 100644 index 00000000..a609b6a5 --- /dev/null +++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLInstanceResponse.java @@ -0,0 +1,404 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.udbpostgresql.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class GetUPgSQLInstanceResponse extends Response { + + /** DataSet */ + @SerializedName("DataSet") + private UDBInstance dataSet; + + public UDBInstance getDataSet() { + return dataSet; + } + + public void setDataSet(UDBInstance dataSet) { + this.dataSet = dataSet; + } + + public static class UDBInstance extends Response { + + /** DB实例所在可用区 */ + @SerializedName("Zone") + private String zone; + + /** 备份所在可用区 */ + @SerializedName("BackupZone") + private String backupZone; + + /** DB实例id */ + @SerializedName("InstanceID") + private String instanceID; + + /** 实例名称 */ + @SerializedName("Name") + private String name; + + /** DB 版本 */ + @SerializedName("DBVersion") + private String dbVersion; + + /** DB实例使用的配置参数组id */ + @SerializedName("ParamGroupID") + private Integer paramGroupID; + + /** 管理员帐户名,默认root */ + @SerializedName("AdminUser") + private String adminUser; + + /** DBip */ + @SerializedName("IP") + private String ip; + + /** DB port */ + @SerializedName("Port") + private Integer port; + + /** VPC的ID */ + @SerializedName("VPCID") + private String vpcid; + + /** 子网ID */ + @SerializedName("SubnetID") + private String subnetID; + + /** 备注 */ + @SerializedName("Remark") + private String remark; + + /** 备份文件保留的数量,默认7次 */ + @SerializedName("BackupCount") + private Integer backupCount; + + /** 备份开始时间,单位小时计,默认3点 */ + @SerializedName("BackupBeginTime") + private Integer backupBeginTime; + + /** 备份的时间段,范围[0,23] */ + @SerializedName("BackupTimeRange") + private Integer backupTimeRange; + + /** + * 用于设置备份策略的备份日期标记位。共7位,每一位为一周中一天的备份情况 0表示关闭当天备份,1表示打开当天备份。最右边的一位 为星期天的备份开关,其余从右到左依次为星期一到星期 + * 六的备份配置开关,每周必须至少设置两天备份。 例如:1100000 表示打开星期六和星期五的自动备份功能 + */ + @SerializedName("BackupDate") + private String backupDate; + + /** + * DB状态标记 + * Init:初始化中,Fail:安装失败,Starting:启动中,Running:运行,Shutdown:关闭中,Shutoff:已关闭,Delete:已删除,Upgrading:升级中,Promoting:提升为独库进行中,Recovering:恢复中,Recover + * fail:恢复失败 + */ + @SerializedName("State") + private String state; + + /** DB实例创建时间,采用UTC计时时间戳 */ + @SerializedName("CreateTime") + private Integer createTime; + + /** DB实例修改时间,采用UTC计时时间戳 */ + @SerializedName("ModifyTime") + private Integer modifyTime; + + /** DB实例过期时间,采用UTC计时时间戳 */ + @SerializedName("ExpiredTime") + private Integer expiredTime; + + /** CPU限制(核),默认根据配置机型 */ + @SerializedName("Cpu") + private Integer cpu; + + /** 内存限制(MB),默认根据配置机型 */ + @SerializedName("MemoryLimit") + private Integer memoryLimit; + + /** 磁盘空间(GB), 默认根据配置机型 */ + @SerializedName("DiskSpace") + private Integer diskSpace; + + /** DB实例磁盘已使用空间,单位GB */ + @SerializedName("DiskUsedSize") + private Double diskUsedSize; + + /** DB实例数据文件大小,单位GB */ + @SerializedName("DataFileSize") + private Double dataFileSize; + + /** DB实例系统文件大小,单位GB */ + @SerializedName("SystemFileSize") + private Double systemFileSize; + + /** DB实例日志文件大小,单位GB */ + @SerializedName("LogFileSize") + private Double logFileSize; + + /** Normal/HA,普通/高可用 */ + @SerializedName("InstanceMode") + private String instanceMode; + + /** 配置机型名称 */ + @SerializedName("MachineType") + private String machineType; + + /** 安全组版本 */ + @SerializedName("SecGroupStatus") + private Integer secGroupStatus; + + public String getZone() { + return zone; + } + + public void setZone(String zone) { + this.zone = zone; + } + + public String getBackupZone() { + return backupZone; + } + + public void setBackupZone(String backupZone) { + this.backupZone = backupZone; + } + + public String getInstanceID() { + return instanceID; + } + + public void setInstanceID(String instanceID) { + this.instanceID = instanceID; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getDBVersion() { + return dbVersion; + } + + public void setDBVersion(String dbVersion) { + this.dbVersion = dbVersion; + } + + public Integer getParamGroupID() { + return paramGroupID; + } + + public void setParamGroupID(Integer paramGroupID) { + this.paramGroupID = paramGroupID; + } + + public String getAdminUser() { + return adminUser; + } + + public void setAdminUser(String adminUser) { + this.adminUser = adminUser; + } + + public String getIP() { + return ip; + } + + public void setIP(String ip) { + this.ip = ip; + } + + public Integer getPort() { + return port; + } + + public void setPort(Integer port) { + this.port = port; + } + + public String getVPCID() { + return vpcid; + } + + public void setVPCID(String vpcid) { + this.vpcid = vpcid; + } + + public String getSubnetID() { + return subnetID; + } + + public void setSubnetID(String subnetID) { + this.subnetID = subnetID; + } + + public String getRemark() { + return remark; + } + + public void setRemark(String remark) { + this.remark = remark; + } + + public Integer getBackupCount() { + return backupCount; + } + + public void setBackupCount(Integer backupCount) { + this.backupCount = backupCount; + } + + public Integer getBackupBeginTime() { + return backupBeginTime; + } + + public void setBackupBeginTime(Integer backupBeginTime) { + this.backupBeginTime = backupBeginTime; + } + + public Integer getBackupTimeRange() { + return backupTimeRange; + } + + public void setBackupTimeRange(Integer backupTimeRange) { + this.backupTimeRange = backupTimeRange; + } + + public String getBackupDate() { + return backupDate; + } + + public void setBackupDate(String backupDate) { + this.backupDate = backupDate; + } + + public String getState() { + return state; + } + + public void setState(String state) { + this.state = state; + } + + public Integer getCreateTime() { + return createTime; + } + + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public Integer getModifyTime() { + return modifyTime; + } + + public void setModifyTime(Integer modifyTime) { + this.modifyTime = modifyTime; + } + + public Integer getExpiredTime() { + return expiredTime; + } + + public void setExpiredTime(Integer expiredTime) { + this.expiredTime = expiredTime; + } + + public Integer getCpu() { + return cpu; + } + + public void setCpu(Integer cpu) { + this.cpu = cpu; + } + + public Integer getMemoryLimit() { + return memoryLimit; + } + + public void setMemoryLimit(Integer memoryLimit) { + this.memoryLimit = memoryLimit; + } + + public Integer getDiskSpace() { + return diskSpace; + } + + public void setDiskSpace(Integer diskSpace) { + this.diskSpace = diskSpace; + } + + public Double getDiskUsedSize() { + return diskUsedSize; + } + + public void setDiskUsedSize(Double diskUsedSize) { + this.diskUsedSize = diskUsedSize; + } + + public Double getDataFileSize() { + return dataFileSize; + } + + public void setDataFileSize(Double dataFileSize) { + this.dataFileSize = dataFileSize; + } + + public Double getSystemFileSize() { + return systemFileSize; + } + + public void setSystemFileSize(Double systemFileSize) { + this.systemFileSize = systemFileSize; + } + + public Double getLogFileSize() { + return logFileSize; + } + + public void setLogFileSize(Double logFileSize) { + this.logFileSize = logFileSize; + } + + public String getInstanceMode() { + return instanceMode; + } + + public void setInstanceMode(String instanceMode) { + this.instanceMode = instanceMode; + } + + public String getMachineType() { + return machineType; + } + + public void setMachineType(String machineType) { + this.machineType = machineType; + } + + public Integer getSecGroupStatus() { + return secGroupStatus; + } + + public void setSecGroupStatus(Integer secGroupStatus) { + this.secGroupStatus = secGroupStatus; + } + } +} diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLParamTemplateRequest.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLParamTemplateRequest.java new file mode 100644 index 00000000..9d70f837 --- /dev/null +++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLParamTemplateRequest.java @@ -0,0 +1,76 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.udbpostgresql.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class GetUPgSQLParamTemplateRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Zone") + private String zone; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 模板ID */ + @NotEmpty + @UCloudParam("GroupID") + private Integer groupID; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getZone() { + return zone; + } + + public void setZone(String zone) { + this.zone = zone; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public Integer getGroupID() { + return groupID; + } + + public void setGroupID(Integer groupID) { + this.groupID = groupID; + } +} diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLParamTemplateResponse.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLParamTemplateResponse.java new file mode 100644 index 00000000..3283779e --- /dev/null +++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLParamTemplateResponse.java @@ -0,0 +1,122 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.udbpostgresql.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class GetUPgSQLParamTemplateResponse extends Response { + + /** 参数列表 */ + @SerializedName("Data") + private List data; + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public static class Param extends Response { + + /** 参数Key */ + @SerializedName("Key") + private String key; + + /** 参数值 */ + @SerializedName("Value") + private String value; + + /** 值类型 */ + @SerializedName("ValueType") + private Integer valueType; + + /** 允许的值 */ + @SerializedName("AllowedVal") + private String allowedVal; + + /** 允许类型 */ + @SerializedName("ApplyType") + private Integer applyType; + + /** 是否可以修改 */ + @SerializedName("Modifiable") + private Boolean modifiable; + + /** 参数格式类型 */ + @SerializedName("FormatType") + private Integer formatType; + + public String getKey() { + return key; + } + + public void setKey(String key) { + this.key = key; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + + public Integer getValueType() { + return valueType; + } + + public void setValueType(Integer valueType) { + this.valueType = valueType; + } + + public String getAllowedVal() { + return allowedVal; + } + + public void setAllowedVal(String allowedVal) { + this.allowedVal = allowedVal; + } + + public Integer getApplyType() { + return applyType; + } + + public void setApplyType(Integer applyType) { + this.applyType = applyType; + } + + public Boolean getModifiable() { + return modifiable; + } + + public void setModifiable(Boolean modifiable) { + this.modifiable = modifiable; + } + + public Integer getFormatType() { + return formatType; + } + + public void setFormatType(Integer formatType) { + this.formatType = formatType; + } + } +} diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLUpgradePriceRequest.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLUpgradePriceRequest.java new file mode 100644 index 00000000..9eaf35db --- /dev/null +++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLUpgradePriceRequest.java @@ -0,0 +1,114 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.udbpostgresql.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class GetUPgSQLUpgradePriceRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Zone") + private String zone; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 资源ID */ + @NotEmpty + @UCloudParam("InstanceID") + private String instanceID; + + /** 磁盘空间(GB) */ + @NotEmpty + @UCloudParam("DiskSpace") + private Integer diskSpace; + + /** 机器配置类型 */ + @NotEmpty + @UCloudParam("MachineType") + private String machineType; + + /** UDB实例模式类型, 可选值如下: "normal": 普通版UDB实例 "ha": 高可用版UDB实例 默认是"normal" */ + @UCloudParam("InstanceMode") + private String instanceMode; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getZone() { + return zone; + } + + public void setZone(String zone) { + this.zone = zone; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getInstanceID() { + return instanceID; + } + + public void setInstanceID(String instanceID) { + this.instanceID = instanceID; + } + + public Integer getDiskSpace() { + return diskSpace; + } + + public void setDiskSpace(Integer diskSpace) { + this.diskSpace = diskSpace; + } + + public String getMachineType() { + return machineType; + } + + public void setMachineType(String machineType) { + this.machineType = machineType; + } + + public String getInstanceMode() { + return instanceMode; + } + + public void setInstanceMode(String instanceMode) { + this.instanceMode = instanceMode; + } +} diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLUpgradePriceResponse.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLUpgradePriceResponse.java new file mode 100644 index 00000000..6a330d3c --- /dev/null +++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLUpgradePriceResponse.java @@ -0,0 +1,46 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.udbpostgresql.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class GetUPgSQLUpgradePriceResponse extends Response { + + /** 规格调整差价。精确到小数点后2位。 */ + @SerializedName("Price") + private Double price; + + /** 限时优惠的折前原价 */ + @SerializedName("OriginalPrice") + private Double originalPrice; + + public Double getPrice() { + return price; + } + + public void setPrice(Double price) { + this.price = price; + } + + public Double getOriginalPrice() { + return originalPrice; + } + + public void setOriginalPrice(Double originalPrice) { + this.originalPrice = originalPrice; + } +} diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/ListUPgSQLBackupRequest.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/ListUPgSQLBackupRequest.java new file mode 100644 index 00000000..54105821 --- /dev/null +++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/ListUPgSQLBackupRequest.java @@ -0,0 +1,112 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.udbpostgresql.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class ListUPgSQLBackupRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Zone") + private String zone; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** DB实例Id */ + @NotEmpty + @UCloudParam("InstanceID") + private String instanceID; + + /** 备份类型,默认值是0(0:表示全部,1:自动备份,2:手动备份 */ + @UCloudParam("BackupType") + private Integer backupType; + + /** 列表起始位置偏移量,默认为0 */ + @UCloudParam("Offset") + private Integer offset; + + /** 返回数据长度,默认为20,最大100 */ + @UCloudParam("Limit") + private Integer limit; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getZone() { + return zone; + } + + public void setZone(String zone) { + this.zone = zone; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getInstanceID() { + return instanceID; + } + + public void setInstanceID(String instanceID) { + this.instanceID = instanceID; + } + + public Integer getBackupType() { + return backupType; + } + + public void setBackupType(Integer backupType) { + this.backupType = backupType; + } + + public Integer getOffset() { + return offset; + } + + public void setOffset(Integer offset) { + this.offset = offset; + } + + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } +} diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/ListUPgSQLBackupResponse.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/ListUPgSQLBackupResponse.java new file mode 100644 index 00000000..90fe6a67 --- /dev/null +++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/ListUPgSQLBackupResponse.java @@ -0,0 +1,158 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.udbpostgresql.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class ListUPgSQLBackupResponse extends Response { + + /** 备份信息列表.修参数 */ + @SerializedName("DataSet") + private List dataSet; + + /** 总个数 */ + @SerializedName("TotalCount") + private Integer totalCount; + + public List getDataSet() { + return dataSet; + } + + public void setDataSet(List dataSet) { + this.dataSet = dataSet; + } + + public Integer getTotalCount() { + return totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public static class UPgSQLBackup extends Response { + + /** 备份所在地域 */ + @SerializedName("Region") + private String region; + + /** DB实例Id */ + @SerializedName("InstanceID") + private String instanceID; + + /** 备份id */ + @SerializedName("BackupID") + private String backupID; + + /** 备份名称 */ + @SerializedName("BackupName") + private String backupName; + + /** 备份时间(Unix时间戳) */ + @SerializedName("BackupStartTime") + private Integer backupStartTime; + + /** 备份文件大小(字节) */ + @SerializedName("BackupSize") + private Integer backupSize; + + /** 备份类型,手动或者自动 */ + @SerializedName("BackupType") + private Integer backupType; + + /** 备份状态 (Backuping:备份中,Success:备份成功, Failed:备份失败, Expired:备份过期) */ + @SerializedName("State") + private String state; + + /** 备份完成时间(Unix时间戳) */ + @SerializedName("BackupEndTime") + private Integer backupEndTime; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getInstanceID() { + return instanceID; + } + + public void setInstanceID(String instanceID) { + this.instanceID = instanceID; + } + + public String getBackupID() { + return backupID; + } + + public void setBackupID(String backupID) { + this.backupID = backupID; + } + + public String getBackupName() { + return backupName; + } + + public void setBackupName(String backupName) { + this.backupName = backupName; + } + + public Integer getBackupStartTime() { + return backupStartTime; + } + + public void setBackupStartTime(Integer backupStartTime) { + this.backupStartTime = backupStartTime; + } + + public Integer getBackupSize() { + return backupSize; + } + + public void setBackupSize(Integer backupSize) { + this.backupSize = backupSize; + } + + public Integer getBackupType() { + return backupType; + } + + public void setBackupType(Integer backupType) { + this.backupType = backupType; + } + + public String getState() { + return state; + } + + public void setState(String state) { + this.state = state; + } + + public Integer getBackupEndTime() { + return backupEndTime; + } + + public void setBackupEndTime(Integer backupEndTime) { + this.backupEndTime = backupEndTime; + } + } +} diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/ListUPgSQLInstanceRequest.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/ListUPgSQLInstanceRequest.java new file mode 100644 index 00000000..1bb6509b --- /dev/null +++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/ListUPgSQLInstanceRequest.java @@ -0,0 +1,62 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.udbpostgresql.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class ListUPgSQLInstanceRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @UCloudParam("Zone") + private String zone; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getZone() { + return zone; + } + + public void setZone(String zone) { + this.zone = zone; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } +} diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/ListUPgSQLInstanceResponse.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/ListUPgSQLInstanceResponse.java new file mode 100644 index 00000000..eaf49610 --- /dev/null +++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/ListUPgSQLInstanceResponse.java @@ -0,0 +1,373 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.udbpostgresql.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class ListUPgSQLInstanceResponse extends Response { + + /** 数据库信息列表 */ + @SerializedName("DataSet") + private List dataSet; + + public List getDataSet() { + return dataSet; + } + + public void setDataSet(List dataSet) { + this.dataSet = dataSet; + } + + public static class UDBInstanceSet extends Response { + + /** 可用区 */ + @SerializedName("Zone") + private String zone; + + /** 资源ID */ + @SerializedName("InstanceID") + private String instanceID; + + /** 实例名称 */ + @SerializedName("Name") + private String name; + + /** 实例的版本,包括postgresql-10.4,postgresql-13.4 */ + @SerializedName("DBVersion") + private String dbVersion; + + /** normal/ha/readonly,普通/高可用/只读从库 */ + @SerializedName("InstanceMode") + private String instanceMode; + + /** + * 实例状态标记 Initing:初始化中,InitFailed:安装失败,Starting:启动中, + * Running:运行,Stopping:关闭中,Stopped:已关闭,Deleted: 已删除,Upgrading: 升级中 + * ,Promoting:提升为主库进行中,Recovering:恢复中,RecoverFailed:恢复失败,StartFailed:启动失败,ShutdownFailed:关闭失败,Deleting:删除中,DeleteFailed:删除失败 + */ + @SerializedName("State") + private String state; + + /** 机器规格,格式为nCmG,n代表cpu核数,m代表内存大小(GB) */ + @SerializedName("MachineType") + private String machineType; + + /** VPC的ID */ + @SerializedName("VPCID") + private String vpcid; + + /** 子网ID */ + @SerializedName("SubnetID") + private String subnetID; + + /** DB实例创建时间,采用UTC计时时间戳 */ + @SerializedName("CreateTime") + private Integer createTime; + + /** DB实例过期时间,采用UTC计时时间戳 */ + @SerializedName("ExpiredTime") + private Integer expiredTime; + + /** DB实例ip */ + @SerializedName("IP") + private String ip; + + /** 备注 */ + @SerializedName("Remark") + private String remark; + + /** 从库列表 */ + @SerializedName("DataSet") + private List dataSet; + + public String getZone() { + return zone; + } + + public void setZone(String zone) { + this.zone = zone; + } + + public String getInstanceID() { + return instanceID; + } + + public void setInstanceID(String instanceID) { + this.instanceID = instanceID; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getDBVersion() { + return dbVersion; + } + + public void setDBVersion(String dbVersion) { + this.dbVersion = dbVersion; + } + + public String getInstanceMode() { + return instanceMode; + } + + public void setInstanceMode(String instanceMode) { + this.instanceMode = instanceMode; + } + + public String getState() { + return state; + } + + public void setState(String state) { + this.state = state; + } + + public String getMachineType() { + return machineType; + } + + public void setMachineType(String machineType) { + this.machineType = machineType; + } + + public String getVPCID() { + return vpcid; + } + + public void setVPCID(String vpcid) { + this.vpcid = vpcid; + } + + public String getSubnetID() { + return subnetID; + } + + public void setSubnetID(String subnetID) { + this.subnetID = subnetID; + } + + public Integer getCreateTime() { + return createTime; + } + + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public Integer getExpiredTime() { + return expiredTime; + } + + public void setExpiredTime(Integer expiredTime) { + this.expiredTime = expiredTime; + } + + public String getIP() { + return ip; + } + + public void setIP(String ip) { + this.ip = ip; + } + + public String getRemark() { + return remark; + } + + public void setRemark(String remark) { + this.remark = remark; + } + + public List getDataSet() { + return dataSet; + } + + public void setDataSet(List dataSet) { + this.dataSet = dataSet; + } + } + + public static class UDBReadonlyInstance extends Response { + + /** 可用区 */ + @SerializedName("Zone") + private String zone; + + /** 资源ID */ + @SerializedName("InstanceID") + private String instanceID; + + /** 实例名称 */ + @SerializedName("Name") + private String name; + + /** 实例的版本,包括postgresql-10.4,postgresql-13.4 */ + @SerializedName("DBVersion") + private String dbVersion; + + /** normal/ha/readonly,普通/高可用/只读从库 */ + @SerializedName("InstanceMode") + private String instanceMode; + + /** + * 实例状态标记 Initing:初始化中,InitFailed:安装失败,Starting:启动中, + * Running:运行,Stopping:关闭中,Stopped:已关闭,Deleted: 已删除,Upgrading: 升级中 + * ,Promoting:提升为主库进行中,Recovering:恢复中,RecoverFailed:恢复失败,StartFailed:启动失败,ShutdownFailed:关闭失败,Deleting:删除中,DeleteFailed:删除失败 + */ + @SerializedName("State") + private String state; + + /** 机器规格,格式为nCmG,n代表cpu核数,m代表内存大小(GB) */ + @SerializedName("MachineType") + private String machineType; + + /** VPC的ID */ + @SerializedName("VPCID") + private String vpcid; + + /** 子网ID */ + @SerializedName("SubnetID") + private String subnetID; + + /** DB实例创建时间,采用UTC计时时间戳 */ + @SerializedName("CreateTime") + private Integer createTime; + + /** DB实例过期时间,采用UTC计时时间戳 */ + @SerializedName("ExpiredTime") + private Integer expiredTime; + + /** DB实例ip */ + @SerializedName("IP") + private String ip; + + /** 备注 */ + @SerializedName("Remark") + private String remark; + + public String getZone() { + return zone; + } + + public void setZone(String zone) { + this.zone = zone; + } + + public String getInstanceID() { + return instanceID; + } + + public void setInstanceID(String instanceID) { + this.instanceID = instanceID; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getDBVersion() { + return dbVersion; + } + + public void setDBVersion(String dbVersion) { + this.dbVersion = dbVersion; + } + + public String getInstanceMode() { + return instanceMode; + } + + public void setInstanceMode(String instanceMode) { + this.instanceMode = instanceMode; + } + + public String getState() { + return state; + } + + public void setState(String state) { + this.state = state; + } + + public String getMachineType() { + return machineType; + } + + public void setMachineType(String machineType) { + this.machineType = machineType; + } + + public String getVPCID() { + return vpcid; + } + + public void setVPCID(String vpcid) { + this.vpcid = vpcid; + } + + public String getSubnetID() { + return subnetID; + } + + public void setSubnetID(String subnetID) { + this.subnetID = subnetID; + } + + public Integer getCreateTime() { + return createTime; + } + + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public Integer getExpiredTime() { + return expiredTime; + } + + public void setExpiredTime(Integer expiredTime) { + this.expiredTime = expiredTime; + } + + public String getIP() { + return ip; + } + + public void setIP(String ip) { + this.ip = ip; + } + + public String getRemark() { + return remark; + } + + public void setRemark(String remark) { + this.remark = remark; + } + } +} diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/ListUPgSQLLogRequest.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/ListUPgSQLLogRequest.java new file mode 100644 index 00000000..b08d855b --- /dev/null +++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/ListUPgSQLLogRequest.java @@ -0,0 +1,102 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.udbpostgresql.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class ListUPgSQLLogRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Zone") + private String zone; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 查询的日志开始的时间戳 */ + @NotEmpty + @UCloudParam("BeginTime") + private Integer beginTime; + + /** 查询日志的结束时间戳 */ + @NotEmpty + @UCloudParam("EndTime") + private Integer endTime; + + /** 资源ID */ + @NotEmpty + @UCloudParam("InstanceID") + private String instanceID; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getZone() { + return zone; + } + + public void setZone(String zone) { + this.zone = zone; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public Integer getBeginTime() { + return beginTime; + } + + public void setBeginTime(Integer beginTime) { + this.beginTime = beginTime; + } + + public Integer getEndTime() { + return endTime; + } + + public void setEndTime(Integer endTime) { + this.endTime = endTime; + } + + public String getInstanceID() { + return instanceID; + } + + public void setInstanceID(String instanceID) { + this.instanceID = instanceID; + } +} diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/ListUPgSQLLogResponse.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/ListUPgSQLLogResponse.java new file mode 100644 index 00000000..bdc87d1d --- /dev/null +++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/ListUPgSQLLogResponse.java @@ -0,0 +1,86 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.udbpostgresql.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class ListUPgSQLLogResponse extends Response { + + /** 数据库日志信息列表 */ + @SerializedName("DataSet") + private List dataSet; + + public List getDataSet() { + return dataSet; + } + + public void setDataSet(List dataSet) { + this.dataSet = dataSet; + } + + public static class LogSet extends Response { + + /** */ + @SerializedName("BeginTime") + private Integer beginTime; + + /** */ + @SerializedName("EndTime") + private Integer endTime; + + /** */ + @SerializedName("Name") + private String name; + + /** */ + @SerializedName("Size") + private Integer size; + + public Integer getBeginTime() { + return beginTime; + } + + public void setBeginTime(Integer beginTime) { + this.beginTime = beginTime; + } + + public Integer getEndTime() { + return endTime; + } + + public void setEndTime(Integer endTime) { + this.endTime = endTime; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public Integer getSize() { + return size; + } + + public void setSize(Integer size) { + this.size = size; + } + } +} diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/ListUPgSQLMachineTypeRequest.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/ListUPgSQLMachineTypeRequest.java new file mode 100644 index 00000000..32e6a0f1 --- /dev/null +++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/ListUPgSQLMachineTypeRequest.java @@ -0,0 +1,63 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.udbpostgresql.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class ListUPgSQLMachineTypeRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Zone") + private String zone; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getZone() { + return zone; + } + + public void setZone(String zone) { + this.zone = zone; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } +} diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/ListUPgSQLMachineTypeResponse.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/ListUPgSQLMachineTypeResponse.java new file mode 100644 index 00000000..df7ed17c --- /dev/null +++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/ListUPgSQLMachineTypeResponse.java @@ -0,0 +1,98 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.udbpostgresql.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class ListUPgSQLMachineTypeResponse extends Response { + + /** */ + @SerializedName("DataSet") + private List dataSet; + + public List getDataSet() { + return dataSet; + } + + public void setDataSet(List dataSet) { + this.dataSet = dataSet; + } + + public static class PgSQLMachineType extends Response { + + /** 机器类型ID */ + @SerializedName("ID") + private String id; + + /** 格式为nCmG,n代表cpu核数,m代表内存大小(GB) */ + @SerializedName("Description") + private String description; + + /** cpu核数 */ + @SerializedName("Cpu") + private Integer cpu; + + /** 内存用量(GB) */ + @SerializedName("Memory") + private Integer memory; + + /** 机器类型,N/O */ + @SerializedName("Os") + private String os; + + public String getID() { + return id; + } + + public void setID(String id) { + this.id = id; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Integer getCpu() { + return cpu; + } + + public void setCpu(Integer cpu) { + this.cpu = cpu; + } + + public Integer getMemory() { + return memory; + } + + public void setMemory(Integer memory) { + this.memory = memory; + } + + public String getOs() { + return os; + } + + public void setOs(String os) { + this.os = os; + } + } +} diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/ListUPgSQLParamTemplateRequest.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/ListUPgSQLParamTemplateRequest.java new file mode 100644 index 00000000..f756f713 --- /dev/null +++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/ListUPgSQLParamTemplateRequest.java @@ -0,0 +1,87 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.udbpostgresql.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class ListUPgSQLParamTemplateRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Zone") + private String zone; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 偏移量, 默认是0,100 */ + @UCloudParam("Offset") + private Integer offset; + + /** 总数 */ + @UCloudParam("Count") + private Integer count; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getZone() { + return zone; + } + + public void setZone(String zone) { + this.zone = zone; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public Integer getOffset() { + return offset; + } + + public void setOffset(Integer offset) { + this.offset = offset; + } + + public Integer getCount() { + return count; + } + + public void setCount(Integer count) { + this.count = count; + } +} diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/ListUPgSQLParamTemplateResponse.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/ListUPgSQLParamTemplateResponse.java new file mode 100644 index 00000000..4095d281 --- /dev/null +++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/ListUPgSQLParamTemplateResponse.java @@ -0,0 +1,110 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.udbpostgresql.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class ListUPgSQLParamTemplateResponse extends Response { + + /** 参数模板信息 */ + @SerializedName("Data") + private List data; + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public static class TemplateGroup extends Response { + + /** 参数模板ID */ + @SerializedName("GroupID") + private Integer groupID; + + /** 参数模板名称 */ + @SerializedName("GroupName") + private String groupName; + + /** 应用的DB版本 */ + @SerializedName("DBVersion") + private String dbVersion; + + /** 描述信息 */ + @SerializedName("Description") + private String description; + + /** 是否可以修改 */ + @SerializedName("Modifiable") + private Boolean modifiable; + + /** 模板组类型名称 */ + @SerializedName("ParamGroupTypeName") + private String paramGroupTypeName; + + public Integer getGroupID() { + return groupID; + } + + public void setGroupID(Integer groupID) { + this.groupID = groupID; + } + + public String getGroupName() { + return groupName; + } + + public void setGroupName(String groupName) { + this.groupName = groupName; + } + + public String getDBVersion() { + return dbVersion; + } + + public void setDBVersion(String dbVersion) { + this.dbVersion = dbVersion; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Boolean getModifiable() { + return modifiable; + } + + public void setModifiable(Boolean modifiable) { + this.modifiable = modifiable; + } + + public String getParamGroupTypeName() { + return paramGroupTypeName; + } + + public void setParamGroupTypeName(String paramGroupTypeName) { + this.paramGroupTypeName = paramGroupTypeName; + } + } +} diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/ListUPgSQLVersionRequest.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/ListUPgSQLVersionRequest.java new file mode 100644 index 00000000..f2193b3f --- /dev/null +++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/ListUPgSQLVersionRequest.java @@ -0,0 +1,63 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.udbpostgresql.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class ListUPgSQLVersionRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Zone") + private String zone; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getZone() { + return zone; + } + + public void setZone(String zone) { + this.zone = zone; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } +} diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/ListUPgSQLVersionResponse.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/ListUPgSQLVersionResponse.java new file mode 100644 index 00000000..54eb1c12 --- /dev/null +++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/ListUPgSQLVersionResponse.java @@ -0,0 +1,62 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.udbpostgresql.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class ListUPgSQLVersionResponse extends Response { + + /** postgresql版本信息 */ + @SerializedName("DataSet") + private List dataSet; + + public List getDataSet() { + return dataSet; + } + + public void setDataSet(List dataSet) { + this.dataSet = dataSet; + } + + public static class PgSQLVersion extends Response { + + /** PgSQL版本 */ + @SerializedName("DBVersion") + private String dbVersion; + + /** 2位二进制控制是否开放单点和高可用,前一位控制单点是否开放,后一位控制高可用,例如"01"代表只开放高可用,"10"代表只开放单点,"11"代表全开放 */ + @SerializedName("Available") + private String available; + + public String getDBVersion() { + return dbVersion; + } + + public void setDBVersion(String dbVersion) { + this.dbVersion = dbVersion; + } + + public String getAvailable() { + return available; + } + + public void setAvailable(String available) { + this.available = available; + } + } +} diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/RestartUPgSQLInstanceRequest.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/RestartUPgSQLInstanceRequest.java new file mode 100644 index 00000000..709e6eb9 --- /dev/null +++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/RestartUPgSQLInstanceRequest.java @@ -0,0 +1,100 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.udbpostgresql.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class RestartUPgSQLInstanceRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Zone") + private String zone; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 实例ID */ + @NotEmpty + @UCloudParam("InstanceID") + private String instanceID; + + /** 是否一并重启主机 */ + @UCloudParam("RestartHost") + private Boolean restartHost; + + /** 是否强制重启 */ + @UCloudParam("ForceToRestart") + private Boolean forceToRestart; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getZone() { + return zone; + } + + public void setZone(String zone) { + this.zone = zone; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getInstanceID() { + return instanceID; + } + + public void setInstanceID(String instanceID) { + this.instanceID = instanceID; + } + + public Boolean getRestartHost() { + return restartHost; + } + + public void setRestartHost(Boolean restartHost) { + this.restartHost = restartHost; + } + + public Boolean getForceToRestart() { + return forceToRestart; + } + + public void setForceToRestart(Boolean forceToRestart) { + this.forceToRestart = forceToRestart; + } +} diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/RestartUPgSQLInstanceResponse.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/RestartUPgSQLInstanceResponse.java new file mode 100644 index 00000000..849466ac --- /dev/null +++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/RestartUPgSQLInstanceResponse.java @@ -0,0 +1,20 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.udbpostgresql.models; + + + +import cn.ucloud.common.response.Response; + +public class RestartUPgSQLInstanceResponse extends Response {} diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/StartUPgSQLInstanceRequest.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/StartUPgSQLInstanceRequest.java new file mode 100644 index 00000000..ed08e5fe --- /dev/null +++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/StartUPgSQLInstanceRequest.java @@ -0,0 +1,76 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.udbpostgresql.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class StartUPgSQLInstanceRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Zone") + private String zone; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 实例ID */ + @NotEmpty + @UCloudParam("InstanceID") + private String instanceID; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getZone() { + return zone; + } + + public void setZone(String zone) { + this.zone = zone; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getInstanceID() { + return instanceID; + } + + public void setInstanceID(String instanceID) { + this.instanceID = instanceID; + } +} diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/StartUPgSQLInstanceResponse.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/StartUPgSQLInstanceResponse.java new file mode 100644 index 00000000..67ae07b3 --- /dev/null +++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/StartUPgSQLInstanceResponse.java @@ -0,0 +1,20 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.udbpostgresql.models; + + + +import cn.ucloud.common.response.Response; + +public class StartUPgSQLInstanceResponse extends Response {} diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/StopUPgSQLCreatingReadonlyRequest.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/StopUPgSQLCreatingReadonlyRequest.java new file mode 100644 index 00000000..671efe23 --- /dev/null +++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/StopUPgSQLCreatingReadonlyRequest.java @@ -0,0 +1,76 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.udbpostgresql.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class StopUPgSQLCreatingReadonlyRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Zone") + private String zone; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 停止创建从库 */ + @NotEmpty + @UCloudParam("InstanceID") + private String instanceID; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getZone() { + return zone; + } + + public void setZone(String zone) { + this.zone = zone; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getInstanceID() { + return instanceID; + } + + public void setInstanceID(String instanceID) { + this.instanceID = instanceID; + } +} diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/StopUPgSQLCreatingReadonlyResponse.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/StopUPgSQLCreatingReadonlyResponse.java new file mode 100644 index 00000000..a2f3f9f2 --- /dev/null +++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/StopUPgSQLCreatingReadonlyResponse.java @@ -0,0 +1,20 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.udbpostgresql.models; + + + +import cn.ucloud.common.response.Response; + +public class StopUPgSQLCreatingReadonlyResponse extends Response {} diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/StopUPgSQLInstanceRequest.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/StopUPgSQLInstanceRequest.java new file mode 100644 index 00000000..47df55ff --- /dev/null +++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/StopUPgSQLInstanceRequest.java @@ -0,0 +1,100 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.udbpostgresql.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class StopUPgSQLInstanceRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Zone") + private String zone; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 实例ID */ + @NotEmpty + @UCloudParam("InstanceID") + private String instanceID; + + /** 是否将主机一并关闭 */ + @UCloudParam("StopHost") + private Boolean stopHost; + + /** 是否强制关闭 */ + @UCloudParam("ForceToStop") + private Boolean forceToStop; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getZone() { + return zone; + } + + public void setZone(String zone) { + this.zone = zone; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getInstanceID() { + return instanceID; + } + + public void setInstanceID(String instanceID) { + this.instanceID = instanceID; + } + + public Boolean getStopHost() { + return stopHost; + } + + public void setStopHost(Boolean stopHost) { + this.stopHost = stopHost; + } + + public Boolean getForceToStop() { + return forceToStop; + } + + public void setForceToStop(Boolean forceToStop) { + this.forceToStop = forceToStop; + } +} diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/StopUPgSQLInstanceResponse.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/StopUPgSQLInstanceResponse.java new file mode 100644 index 00000000..826ca95d --- /dev/null +++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/StopUPgSQLInstanceResponse.java @@ -0,0 +1,20 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.udbpostgresql.models; + + + +import cn.ucloud.common.response.Response; + +public class StopUPgSQLInstanceResponse extends Response {} diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/UpdateUPgSQLAttributeRequest.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/UpdateUPgSQLAttributeRequest.java new file mode 100644 index 00000000..4227ebbb --- /dev/null +++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/UpdateUPgSQLAttributeRequest.java @@ -0,0 +1,100 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.udbpostgresql.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class UpdateUPgSQLAttributeRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Zone") + private String zone; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** DB实例Id */ + @NotEmpty + @UCloudParam("InstanceID") + private String instanceID; + + /** 新的db名字(不能为空字符串) */ + @UCloudParam("Name") + private String name; + + /** 新的备注信息 */ + @UCloudParam("Remark") + private String remark; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getZone() { + return zone; + } + + public void setZone(String zone) { + this.zone = zone; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getInstanceID() { + return instanceID; + } + + public void setInstanceID(String instanceID) { + this.instanceID = instanceID; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getRemark() { + return remark; + } + + public void setRemark(String remark) { + this.remark = remark; + } +} diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/UpdateUPgSQLAttributeResponse.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/UpdateUPgSQLAttributeResponse.java new file mode 100644 index 00000000..508d4cff --- /dev/null +++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/UpdateUPgSQLAttributeResponse.java @@ -0,0 +1,20 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.udbpostgresql.models; + + + +import cn.ucloud.common.response.Response; + +public class UpdateUPgSQLAttributeResponse extends Response {} diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/UpdateUPgSQLBackupStrategyRequest.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/UpdateUPgSQLBackupStrategyRequest.java new file mode 100644 index 00000000..2152e305 --- /dev/null +++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/UpdateUPgSQLBackupStrategyRequest.java @@ -0,0 +1,112 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.udbpostgresql.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class UpdateUPgSQLBackupStrategyRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Zone") + private String zone; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** DB实例Id */ + @NotEmpty + @UCloudParam("InstanceID") + private String instanceID; + + /** 自动备份预计开始时间范围(00:00~23:59),例如:(3:00~4:00) */ + @UCloudParam("BackupTimeRange") + private String backupTimeRange; + + /** 自动备份预期星期几(1~7)开始。默认1,2,3,4,5,6,7(星期一到星期日) */ + @UCloudParam("BackupWeek") + private String backupWeek; + + /** 选择默认的备份方式 */ + @UCloudParam("BackupMethod") + private String backupMethod; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getZone() { + return zone; + } + + public void setZone(String zone) { + this.zone = zone; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getInstanceID() { + return instanceID; + } + + public void setInstanceID(String instanceID) { + this.instanceID = instanceID; + } + + public String getBackupTimeRange() { + return backupTimeRange; + } + + public void setBackupTimeRange(String backupTimeRange) { + this.backupTimeRange = backupTimeRange; + } + + public String getBackupWeek() { + return backupWeek; + } + + public void setBackupWeek(String backupWeek) { + this.backupWeek = backupWeek; + } + + public String getBackupMethod() { + return backupMethod; + } + + public void setBackupMethod(String backupMethod) { + this.backupMethod = backupMethod; + } +} diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/UpdateUPgSQLBackupStrategyResponse.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/UpdateUPgSQLBackupStrategyResponse.java new file mode 100644 index 00000000..1a2f9ba6 --- /dev/null +++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/UpdateUPgSQLBackupStrategyResponse.java @@ -0,0 +1,20 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.udbpostgresql.models; + + + +import cn.ucloud.common.response.Response; + +public class UpdateUPgSQLBackupStrategyResponse extends Response {} diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/UpdateUPgSQLPasswordRequest.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/UpdateUPgSQLPasswordRequest.java new file mode 100644 index 00000000..8855db07 --- /dev/null +++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/UpdateUPgSQLPasswordRequest.java @@ -0,0 +1,101 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.udbpostgresql.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class UpdateUPgSQLPasswordRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Zone") + private String zone; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** DB实例Id */ + @NotEmpty + @UCloudParam("InstanceID") + private String instanceID; + + /** 新的db用户密码 */ + @NotEmpty + @UCloudParam("Password") + private String password; + + /** 数据库用户的名称。默认是root */ + @UCloudParam("Name") + private String name; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getZone() { + return zone; + } + + public void setZone(String zone) { + this.zone = zone; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getInstanceID() { + return instanceID; + } + + public void setInstanceID(String instanceID) { + this.instanceID = instanceID; + } + + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } +} diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/UpdateUPgSQLPasswordResponse.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/UpdateUPgSQLPasswordResponse.java new file mode 100644 index 00000000..c9ce808e --- /dev/null +++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/UpdateUPgSQLPasswordResponse.java @@ -0,0 +1,20 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.udbpostgresql.models; + + + +import cn.ucloud.common.response.Response; + +public class UpdateUPgSQLPasswordResponse extends Response {} diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/UpgradeUPgSQLInstanceRequest.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/UpgradeUPgSQLInstanceRequest.java new file mode 100644 index 00000000..d4982ba1 --- /dev/null +++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/UpgradeUPgSQLInstanceRequest.java @@ -0,0 +1,115 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.udbpostgresql.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class UpgradeUPgSQLInstanceRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Zone") + private String zone; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 资源ID */ + @NotEmpty + @UCloudParam("InstanceID") + private String instanceID; + + /** 磁盘空间(GB) */ + @NotEmpty + @UCloudParam("DiskSpace") + private Integer diskSpace; + + /** 机器配置类型 */ + @NotEmpty + @UCloudParam("MachineType") + private String machineType; + + /** 数据库类型(ha:高可用类型,normal:普通类型,readonly:从库) */ + @NotEmpty + @UCloudParam("InstanceMode") + private String instanceMode; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getZone() { + return zone; + } + + public void setZone(String zone) { + this.zone = zone; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getInstanceID() { + return instanceID; + } + + public void setInstanceID(String instanceID) { + this.instanceID = instanceID; + } + + public Integer getDiskSpace() { + return diskSpace; + } + + public void setDiskSpace(Integer diskSpace) { + this.diskSpace = diskSpace; + } + + public String getMachineType() { + return machineType; + } + + public void setMachineType(String machineType) { + this.machineType = machineType; + } + + public String getInstanceMode() { + return instanceMode; + } + + public void setInstanceMode(String instanceMode) { + this.instanceMode = instanceMode; + } +} diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/UpgradeUPgSQLInstanceResponse.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/UpgradeUPgSQLInstanceResponse.java new file mode 100644 index 00000000..6ceb9296 --- /dev/null +++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/UpgradeUPgSQLInstanceResponse.java @@ -0,0 +1,20 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.udbpostgresql.models; + + + +import cn.ucloud.common.response.Response; + +public class UpgradeUPgSQLInstanceResponse extends Response {} diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/UploadUPgSQLParamTemplateRequest.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/UploadUPgSQLParamTemplateRequest.java new file mode 100644 index 00000000..ce7e3d5b --- /dev/null +++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/UploadUPgSQLParamTemplateRequest.java @@ -0,0 +1,126 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.udbpostgresql.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class UploadUPgSQLParamTemplateRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Zone") + private String zone; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 模板名称 */ + @NotEmpty + @UCloudParam("GroupName") + private String groupName; + + /** 应用的DB版本 */ + @NotEmpty + @UCloudParam("DBVersion") + private String dbVersion; + + /** base64编码过的 */ + @NotEmpty + @UCloudParam("Content") + private String content; + + /** 模板描述 */ + @UCloudParam("Description") + private String description; + + /** 版本 */ + @UCloudParam("ParamGroupType") + private String paramGroupType; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getZone() { + return zone; + } + + public void setZone(String zone) { + this.zone = zone; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getGroupName() { + return groupName; + } + + public void setGroupName(String groupName) { + this.groupName = groupName; + } + + public String getDBVersion() { + return dbVersion; + } + + public void setDBVersion(String dbVersion) { + this.dbVersion = dbVersion; + } + + public String getContent() { + return content; + } + + public void setContent(String content) { + this.content = content; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getParamGroupType() { + return paramGroupType; + } + + public void setParamGroupType(String paramGroupType) { + this.paramGroupType = paramGroupType; + } +} diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/UploadUPgSQLParamTemplateResponse.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/UploadUPgSQLParamTemplateResponse.java new file mode 100644 index 00000000..4dc423ee --- /dev/null +++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/UploadUPgSQLParamTemplateResponse.java @@ -0,0 +1,34 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.udbpostgresql.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class UploadUPgSQLParamTemplateResponse extends Response { + + /** 生成的模板ID */ + @SerializedName("GroupID") + private Integer groupID; + + public Integer getGroupID() { + return groupID; + } + + public void setGroupID(Integer groupID) { + this.groupID = groupID; + } +} diff --git a/ucloud-sdk-java-udbproxy/pom.xml b/ucloud-sdk-java-udbproxy/pom.xml index d9367cde..b68348b1 100644 --- a/ucloud-sdk-java-udbproxy/pom.xml +++ b/ucloud-sdk-java-udbproxy/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.117-release + 1.2.118-release 4.0.0 ucloud-sdk-java-udbproxy ucloud-sdk-java - 1.2.117-release + 1.2.118-release cn.ucloud ucloud-sdk-java-common - 1.2.117-release + 1.2.118-release diff --git a/ucloud-sdk-java-udi/pom.xml b/ucloud-sdk-java-udi/pom.xml index c851af9b..1307b163 100644 --- a/ucloud-sdk-java-udi/pom.xml +++ b/ucloud-sdk-java-udi/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.117-release + 1.2.118-release 4.0.0 ucloud-sdk-java-udi ucloud-sdk-java - 1.2.117-release + 1.2.118-release cn.ucloud ucloud-sdk-java-common - 1.2.117-release + 1.2.118-release diff --git a/ucloud-sdk-java-udisk/pom.xml b/ucloud-sdk-java-udisk/pom.xml index d09d55dc..380d7071 100644 --- a/ucloud-sdk-java-udisk/pom.xml +++ b/ucloud-sdk-java-udisk/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.117-release + 1.2.118-release 4.0.0 ucloud-sdk-java-udisk ucloud-sdk-java - 1.2.117-release + 1.2.118-release cn.ucloud ucloud-sdk-java-common - 1.2.117-release + 1.2.118-release diff --git a/ucloud-sdk-java-udns/pom.xml b/ucloud-sdk-java-udns/pom.xml index 92376271..9a2aebaa 100644 --- a/ucloud-sdk-java-udns/pom.xml +++ b/ucloud-sdk-java-udns/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.117-release + 1.2.118-release 4.0.0 ucloud-sdk-java-udns ucloud-sdk-java - 1.2.117-release + 1.2.118-release cn.ucloud ucloud-sdk-java-common - 1.2.117-release + 1.2.118-release diff --git a/ucloud-sdk-java-udpn/pom.xml b/ucloud-sdk-java-udpn/pom.xml index 712f90a9..a1e4be1d 100644 --- a/ucloud-sdk-java-udpn/pom.xml +++ b/ucloud-sdk-java-udpn/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.117-release + 1.2.118-release 4.0.0 ucloud-sdk-java-udpn ucloud-sdk-java - 1.2.117-release + 1.2.118-release cn.ucloud ucloud-sdk-java-common - 1.2.117-release + 1.2.118-release diff --git a/ucloud-sdk-java-uec/pom.xml b/ucloud-sdk-java-uec/pom.xml index e548ed9e..9930d6f0 100644 --- a/ucloud-sdk-java-uec/pom.xml +++ b/ucloud-sdk-java-uec/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.117-release + 1.2.118-release 4.0.0 ucloud-sdk-java-uec ucloud-sdk-java - 1.2.117-release + 1.2.118-release cn.ucloud ucloud-sdk-java-common - 1.2.117-release + 1.2.118-release diff --git a/ucloud-sdk-java-ues/pom.xml b/ucloud-sdk-java-ues/pom.xml index d7042471..d4539c72 100644 --- a/ucloud-sdk-java-ues/pom.xml +++ b/ucloud-sdk-java-ues/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.117-release + 1.2.118-release 4.0.0 ucloud-sdk-java-ues ucloud-sdk-java - 1.2.117-release + 1.2.118-release cn.ucloud ucloud-sdk-java-common - 1.2.117-release + 1.2.118-release diff --git a/ucloud-sdk-java-uewaf/pom.xml b/ucloud-sdk-java-uewaf/pom.xml index 75a48f12..08d5b526 100644 --- a/ucloud-sdk-java-uewaf/pom.xml +++ b/ucloud-sdk-java-uewaf/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.117-release + 1.2.118-release 4.0.0 ucloud-sdk-java-uewaf ucloud-sdk-java - 1.2.117-release + 1.2.118-release cn.ucloud ucloud-sdk-java-common - 1.2.117-release + 1.2.118-release diff --git a/ucloud-sdk-java-ufile/pom.xml b/ucloud-sdk-java-ufile/pom.xml index 9494aaef..7b6421e4 100644 --- a/ucloud-sdk-java-ufile/pom.xml +++ b/ucloud-sdk-java-ufile/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.117-release + 1.2.118-release 4.0.0 ucloud-sdk-java-ufile ucloud-sdk-java - 1.2.117-release + 1.2.118-release cn.ucloud ucloud-sdk-java-common - 1.2.117-release + 1.2.118-release diff --git a/ucloud-sdk-java-ufs/pom.xml b/ucloud-sdk-java-ufs/pom.xml index f6c72db1..bcb174c7 100644 --- a/ucloud-sdk-java-ufs/pom.xml +++ b/ucloud-sdk-java-ufs/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.117-release + 1.2.118-release 4.0.0 ucloud-sdk-java-ufs ucloud-sdk-java - 1.2.117-release + 1.2.118-release cn.ucloud ucloud-sdk-java-common - 1.2.117-release + 1.2.118-release diff --git a/ucloud-sdk-java-uhadoop/pom.xml b/ucloud-sdk-java-uhadoop/pom.xml index a113fed6..53a92da1 100644 --- a/ucloud-sdk-java-uhadoop/pom.xml +++ b/ucloud-sdk-java-uhadoop/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.117-release + 1.2.118-release 4.0.0 ucloud-sdk-java-uhadoop ucloud-sdk-java - 1.2.117-release + 1.2.118-release cn.ucloud ucloud-sdk-java-common - 1.2.117-release + 1.2.118-release diff --git a/ucloud-sdk-java-uhids/pom.xml b/ucloud-sdk-java-uhids/pom.xml index e9132e55..8970ff6e 100644 --- a/ucloud-sdk-java-uhids/pom.xml +++ b/ucloud-sdk-java-uhids/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.117-release + 1.2.118-release 4.0.0 ucloud-sdk-java-uhids ucloud-sdk-java - 1.2.117-release + 1.2.118-release cn.ucloud ucloud-sdk-java-common - 1.2.117-release + 1.2.118-release diff --git a/ucloud-sdk-java-uhost/pom.xml b/ucloud-sdk-java-uhost/pom.xml index 6d1343a2..4436a66c 100644 --- a/ucloud-sdk-java-uhost/pom.xml +++ b/ucloud-sdk-java-uhost/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.117-release + 1.2.118-release 4.0.0 ucloud-sdk-java-uhost ucloud-sdk-java - 1.2.117-release + 1.2.118-release cn.ucloud ucloud-sdk-java-common - 1.2.117-release + 1.2.118-release diff --git a/ucloud-sdk-java-uk8s/pom.xml b/ucloud-sdk-java-uk8s/pom.xml index 460b7257..1f55e3bc 100644 --- a/ucloud-sdk-java-uk8s/pom.xml +++ b/ucloud-sdk-java-uk8s/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.117-release + 1.2.118-release 4.0.0 ucloud-sdk-java-uk8s ucloud-sdk-java - 1.2.117-release + 1.2.118-release cn.ucloud ucloud-sdk-java-common - 1.2.117-release + 1.2.118-release diff --git a/ucloud-sdk-java-ukafka/pom.xml b/ucloud-sdk-java-ukafka/pom.xml index 90f63be6..eb150ea4 100644 --- a/ucloud-sdk-java-ukafka/pom.xml +++ b/ucloud-sdk-java-ukafka/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.117-release + 1.2.118-release 4.0.0 ucloud-sdk-java-ukafka ucloud-sdk-java - 1.2.117-release + 1.2.118-release cn.ucloud ucloud-sdk-java-common - 1.2.117-release + 1.2.118-release diff --git a/ucloud-sdk-java-ukms/pom.xml b/ucloud-sdk-java-ukms/pom.xml index b7720c69..bf4bb425 100644 --- a/ucloud-sdk-java-ukms/pom.xml +++ b/ucloud-sdk-java-ukms/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.117-release + 1.2.118-release 4.0.0 ucloud-sdk-java-ukms ucloud-sdk-java - 1.2.117-release + 1.2.118-release cn.ucloud ucloud-sdk-java-common - 1.2.117-release + 1.2.118-release diff --git a/ucloud-sdk-java-ulb/pom.xml b/ucloud-sdk-java-ulb/pom.xml index a3f14879..a8253b15 100644 --- a/ucloud-sdk-java-ulb/pom.xml +++ b/ucloud-sdk-java-ulb/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.117-release + 1.2.118-release 4.0.0 ucloud-sdk-java-ulb ucloud-sdk-java - 1.2.117-release + 1.2.118-release cn.ucloud ucloud-sdk-java-common - 1.2.117-release + 1.2.118-release diff --git a/ucloud-sdk-java-ulighthost/pom.xml b/ucloud-sdk-java-ulighthost/pom.xml index 027611e9..ee30fb0b 100644 --- a/ucloud-sdk-java-ulighthost/pom.xml +++ b/ucloud-sdk-java-ulighthost/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.117-release + 1.2.118-release 4.0.0 ucloud-sdk-java-ulighthost ucloud-sdk-java - 1.2.117-release + 1.2.118-release cn.ucloud ucloud-sdk-java-common - 1.2.117-release + 1.2.118-release diff --git a/ucloud-sdk-java-ulog/pom.xml b/ucloud-sdk-java-ulog/pom.xml index 6b027207..a084e6b5 100644 --- a/ucloud-sdk-java-ulog/pom.xml +++ b/ucloud-sdk-java-ulog/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.117-release + 1.2.118-release 4.0.0 ucloud-sdk-java-ulog ucloud-sdk-java - 1.2.117-release + 1.2.118-release cn.ucloud ucloud-sdk-java-common - 1.2.117-release + 1.2.118-release diff --git a/ucloud-sdk-java-ulogservice/pom.xml b/ucloud-sdk-java-ulogservice/pom.xml index 79d16f49..7a0524e1 100644 --- a/ucloud-sdk-java-ulogservice/pom.xml +++ b/ucloud-sdk-java-ulogservice/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.117-release + 1.2.118-release 4.0.0 ucloud-sdk-java-ulogservice ucloud-sdk-java - 1.2.117-release + 1.2.118-release cn.ucloud ucloud-sdk-java-common - 1.2.117-release + 1.2.118-release diff --git a/ucloud-sdk-java-umem/pom.xml b/ucloud-sdk-java-umem/pom.xml index 80a28821..51260d73 100644 --- a/ucloud-sdk-java-umem/pom.xml +++ b/ucloud-sdk-java-umem/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.117-release + 1.2.118-release 4.0.0 ucloud-sdk-java-umem ucloud-sdk-java - 1.2.117-release + 1.2.118-release cn.ucloud ucloud-sdk-java-common - 1.2.117-release + 1.2.118-release diff --git a/ucloud-sdk-java-umon/pom.xml b/ucloud-sdk-java-umon/pom.xml index 377d0c71..30a72ffb 100644 --- a/ucloud-sdk-java-umon/pom.xml +++ b/ucloud-sdk-java-umon/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.117-release + 1.2.118-release 4.0.0 ucloud-sdk-java-umon ucloud-sdk-java - 1.2.117-release + 1.2.118-release cn.ucloud ucloud-sdk-java-common - 1.2.117-release + 1.2.118-release diff --git a/ucloud-sdk-java-umongodb/pom.xml b/ucloud-sdk-java-umongodb/pom.xml index c35d0a66..a2f5a6b3 100644 --- a/ucloud-sdk-java-umongodb/pom.xml +++ b/ucloud-sdk-java-umongodb/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.117-release + 1.2.118-release 4.0.0 ucloud-sdk-java-umongodb ucloud-sdk-java - 1.2.117-release + 1.2.118-release cn.ucloud ucloud-sdk-java-common - 1.2.117-release + 1.2.118-release diff --git a/ucloud-sdk-java-unet/pom.xml b/ucloud-sdk-java-unet/pom.xml index a11119e8..f2f2e4bf 100644 --- a/ucloud-sdk-java-unet/pom.xml +++ b/ucloud-sdk-java-unet/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.117-release + 1.2.118-release 4.0.0 ucloud-sdk-java-unet ucloud-sdk-java - 1.2.117-release + 1.2.118-release cn.ucloud ucloud-sdk-java-common - 1.2.117-release + 1.2.118-release diff --git a/ucloud-sdk-java-upfs/pom.xml b/ucloud-sdk-java-upfs/pom.xml index 75cf6fb9..72ba07b4 100644 --- a/ucloud-sdk-java-upfs/pom.xml +++ b/ucloud-sdk-java-upfs/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.117-release + 1.2.118-release 4.0.0 ucloud-sdk-java-upfs ucloud-sdk-java - 1.2.117-release + 1.2.118-release cn.ucloud ucloud-sdk-java-common - 1.2.117-release + 1.2.118-release diff --git a/ucloud-sdk-java-upgsql/pom.xml b/ucloud-sdk-java-upgsql/pom.xml index c6b0d92b..e157a671 100644 --- a/ucloud-sdk-java-upgsql/pom.xml +++ b/ucloud-sdk-java-upgsql/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.117-release + 1.2.118-release 4.0.0 ucloud-sdk-java-upgsql ucloud-sdk-java - 1.2.117-release + 1.2.118-release cn.ucloud ucloud-sdk-java-common - 1.2.117-release + 1.2.118-release diff --git a/ucloud-sdk-java-uphone/pom.xml b/ucloud-sdk-java-uphone/pom.xml index 60ac4d36..1d82d9dd 100644 --- a/ucloud-sdk-java-uphone/pom.xml +++ b/ucloud-sdk-java-uphone/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.117-release + 1.2.118-release 4.0.0 ucloud-sdk-java-uphone ucloud-sdk-java - 1.2.117-release + 1.2.118-release cn.ucloud ucloud-sdk-java-common - 1.2.117-release + 1.2.118-release diff --git a/ucloud-sdk-java-uphost/pom.xml b/ucloud-sdk-java-uphost/pom.xml index 351d6e46..9d16d3d1 100644 --- a/ucloud-sdk-java-uphost/pom.xml +++ b/ucloud-sdk-java-uphost/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.117-release + 1.2.118-release 4.0.0 ucloud-sdk-java-uphost ucloud-sdk-java - 1.2.117-release + 1.2.118-release cn.ucloud ucloud-sdk-java-common - 1.2.117-release + 1.2.118-release diff --git a/ucloud-sdk-java-uslk/pom.xml b/ucloud-sdk-java-uslk/pom.xml index 1058faae..0c120123 100644 --- a/ucloud-sdk-java-uslk/pom.xml +++ b/ucloud-sdk-java-uslk/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.117-release + 1.2.118-release 4.0.0 ucloud-sdk-java-uslk ucloud-sdk-java - 1.2.117-release + 1.2.118-release cn.ucloud ucloud-sdk-java-common - 1.2.117-release + 1.2.118-release diff --git a/ucloud-sdk-java-usms/pom.xml b/ucloud-sdk-java-usms/pom.xml index c12f36af..64342559 100644 --- a/ucloud-sdk-java-usms/pom.xml +++ b/ucloud-sdk-java-usms/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.117-release + 1.2.118-release 4.0.0 ucloud-sdk-java-usms ucloud-sdk-java - 1.2.117-release + 1.2.118-release cn.ucloud ucloud-sdk-java-common - 1.2.117-release + 1.2.118-release diff --git a/ucloud-sdk-java-usnap/pom.xml b/ucloud-sdk-java-usnap/pom.xml index aa40250b..95512b4a 100644 --- a/ucloud-sdk-java-usnap/pom.xml +++ b/ucloud-sdk-java-usnap/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.117-release + 1.2.118-release 4.0.0 ucloud-sdk-java-usnap ucloud-sdk-java - 1.2.117-release + 1.2.118-release cn.ucloud ucloud-sdk-java-common - 1.2.117-release + 1.2.118-release diff --git a/ucloud-sdk-java-uvms/pom.xml b/ucloud-sdk-java-uvms/pom.xml index cbb25021..acd93a61 100644 --- a/ucloud-sdk-java-uvms/pom.xml +++ b/ucloud-sdk-java-uvms/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.117-release + 1.2.118-release 4.0.0 ucloud-sdk-java-uvms ucloud-sdk-java - 1.2.117-release + 1.2.118-release cn.ucloud ucloud-sdk-java-common - 1.2.117-release + 1.2.118-release diff --git a/ucloud-sdk-java-uwsc/pom.xml b/ucloud-sdk-java-uwsc/pom.xml index 58338e2a..7a60e5a9 100644 --- a/ucloud-sdk-java-uwsc/pom.xml +++ b/ucloud-sdk-java-uwsc/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.117-release + 1.2.118-release 4.0.0 ucloud-sdk-java-uwsc ucloud-sdk-java - 1.2.117-release + 1.2.118-release cn.ucloud ucloud-sdk-java-common - 1.2.117-release + 1.2.118-release diff --git a/ucloud-sdk-java-vpc/pom.xml b/ucloud-sdk-java-vpc/pom.xml index eb5d61b3..8826023f 100644 --- a/ucloud-sdk-java-vpc/pom.xml +++ b/ucloud-sdk-java-vpc/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.117-release + 1.2.118-release 4.0.0 ucloud-sdk-java-vpc ucloud-sdk-java - 1.2.117-release + 1.2.118-release cn.ucloud ucloud-sdk-java-common - 1.2.117-release + 1.2.118-release