diff --git a/VERSION b/VERSION index dfad250a..88383d46 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.2.0-release +1.2.1-release diff --git a/examples/generic/pom.xml b/examples/generic/pom.xml index a0b33c1d..91fc3ba7 100644 --- a/examples/generic/pom.xml +++ b/examples/generic/pom.xml @@ -7,7 +7,7 @@ ucloud-sdk-java cn.ucloud - 1.2.0-release + 1.2.1-release 4.0.0 @@ -18,7 +18,7 @@ cn.ucloud ucloud-sdk-java-common - 1.2.0-release + 1.2.1-release diff --git a/examples/uhost/pom.xml b/examples/uhost/pom.xml index 65f05cb5..c58ed44a 100644 --- a/examples/uhost/pom.xml +++ b/examples/uhost/pom.xml @@ -7,7 +7,7 @@ ucloud-sdk-java cn.ucloud - 1.2.0-release + 1.2.1-release 4.0.0 @@ -18,7 +18,7 @@ cn.ucloud ucloud-sdk-java-uhost - 1.2.0-release + 1.2.1-release diff --git a/pom.xml b/pom.xml index d48dcc15..4743059e 100644 --- a/pom.xml +++ b/pom.xml @@ -7,7 +7,7 @@ cn.ucloud ucloud-sdk-java pom - 1.2.0-release + 1.2.1-release ucloud-sdk-java-common ucloud-sdk-java-ipsecvpn @@ -29,6 +29,7 @@ ucloud-sdk-java-umongodb ucloud-sdk-java-unet ucloud-sdk-java-uphost + ucloud-sdk-java-upgsql ucloud-sdk-java-uphone ucloud-sdk-java-uslk ucloud-sdk-java-usms diff --git a/ucloud-sdk-java-common/pom.xml b/ucloud-sdk-java-common/pom.xml index e63bf883..82af106d 100644 --- a/ucloud-sdk-java-common/pom.xml +++ b/ucloud-sdk-java-common/pom.xml @@ -7,12 +7,12 @@ ucloud-sdk-java cn.ucloud - 1.2.0-release + 1.2.1-release 4.0.0 ucloud-sdk-java-common - 1.2.0-release + 1.2.1-release diff --git a/ucloud-sdk-java-ipsecvpn/pom.xml b/ucloud-sdk-java-ipsecvpn/pom.xml index 18c61bf3..da232c9c 100644 --- a/ucloud-sdk-java-ipsecvpn/pom.xml +++ b/ucloud-sdk-java-ipsecvpn/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.0-release + 1.2.1-release 4.0.0 ucloud-sdk-java-ipsecvpn - 1.2.0-release + 1.2.1-release cn.ucloud ucloud-sdk-java-common - 1.2.0-release + 1.2.1-release diff --git a/ucloud-sdk-java-pathx/pom.xml b/ucloud-sdk-java-pathx/pom.xml index 1f9e5dfc..67b1e295 100644 --- a/ucloud-sdk-java-pathx/pom.xml +++ b/ucloud-sdk-java-pathx/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.0-release + 1.2.1-release 4.0.0 ucloud-sdk-java-pathx - 1.2.0-release + 1.2.1-release cn.ucloud ucloud-sdk-java-common - 1.2.0-release + 1.2.1-release diff --git a/ucloud-sdk-java-uaccount/pom.xml b/ucloud-sdk-java-uaccount/pom.xml index f6947d2f..b216585c 100644 --- a/ucloud-sdk-java-uaccount/pom.xml +++ b/ucloud-sdk-java-uaccount/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.0-release + 1.2.1-release 4.0.0 ucloud-sdk-java-uaccount - 1.2.0-release + 1.2.1-release cn.ucloud ucloud-sdk-java-common - 1.2.0-release + 1.2.1-release diff --git a/ucloud-sdk-java-ubill/pom.xml b/ucloud-sdk-java-ubill/pom.xml index 64be4822..46197d56 100644 --- a/ucloud-sdk-java-ubill/pom.xml +++ b/ucloud-sdk-java-ubill/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.0-release + 1.2.1-release 4.0.0 ucloud-sdk-java-ubill - 1.2.0-release + 1.2.1-release cn.ucloud ucloud-sdk-java-common - 1.2.0-release + 1.2.1-release diff --git a/ucloud-sdk-java-ucdn/pom.xml b/ucloud-sdk-java-ucdn/pom.xml index 99a3bf79..99ac0b22 100644 --- a/ucloud-sdk-java-ucdn/pom.xml +++ b/ucloud-sdk-java-ucdn/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.0-release + 1.2.1-release 4.0.0 ucloud-sdk-java-ucdn - 1.2.0-release + 1.2.1-release cn.ucloud ucloud-sdk-java-common - 1.2.0-release + 1.2.1-release diff --git a/ucloud-sdk-java-udb/pom.xml b/ucloud-sdk-java-udb/pom.xml index b26c4aee..8235d0fb 100644 --- a/ucloud-sdk-java-udb/pom.xml +++ b/ucloud-sdk-java-udb/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.0-release + 1.2.1-release 4.0.0 ucloud-sdk-java-udb - 1.2.0-release + 1.2.1-release cn.ucloud ucloud-sdk-java-common - 1.2.0-release + 1.2.1-release diff --git a/ucloud-sdk-java-udbproxy/pom.xml b/ucloud-sdk-java-udbproxy/pom.xml index 046ddbf7..620a4f2f 100644 --- a/ucloud-sdk-java-udbproxy/pom.xml +++ b/ucloud-sdk-java-udbproxy/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.0-release + 1.2.1-release 4.0.0 ucloud-sdk-java-udbproxy - 1.2.0-release + 1.2.1-release cn.ucloud ucloud-sdk-java-common - 1.2.0-release + 1.2.1-release diff --git a/ucloud-sdk-java-udisk/pom.xml b/ucloud-sdk-java-udisk/pom.xml index d765ab7a..40094395 100644 --- a/ucloud-sdk-java-udisk/pom.xml +++ b/ucloud-sdk-java-udisk/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.0-release + 1.2.1-release 4.0.0 ucloud-sdk-java-udisk - 1.2.0-release + 1.2.1-release cn.ucloud ucloud-sdk-java-common - 1.2.0-release + 1.2.1-release diff --git a/ucloud-sdk-java-udpn/pom.xml b/ucloud-sdk-java-udpn/pom.xml index e3695e67..787816f5 100644 --- a/ucloud-sdk-java-udpn/pom.xml +++ b/ucloud-sdk-java-udpn/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.0-release + 1.2.1-release 4.0.0 ucloud-sdk-java-udpn - 1.2.0-release + 1.2.1-release cn.ucloud ucloud-sdk-java-common - 1.2.0-release + 1.2.1-release diff --git a/ucloud-sdk-java-uec/pom.xml b/ucloud-sdk-java-uec/pom.xml index d248c33b..276b423a 100644 --- a/ucloud-sdk-java-uec/pom.xml +++ b/ucloud-sdk-java-uec/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.0-release + 1.2.1-release 4.0.0 ucloud-sdk-java-uec - 1.2.0-release + 1.2.1-release cn.ucloud ucloud-sdk-java-common - 1.2.0-release + 1.2.1-release diff --git a/ucloud-sdk-java-ufile/pom.xml b/ucloud-sdk-java-ufile/pom.xml index 1f98d40f..27370022 100644 --- a/ucloud-sdk-java-ufile/pom.xml +++ b/ucloud-sdk-java-ufile/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.0-release + 1.2.1-release 4.0.0 ucloud-sdk-java-ufile - 1.2.0-release + 1.2.1-release cn.ucloud ucloud-sdk-java-common - 1.2.0-release + 1.2.1-release diff --git a/ucloud-sdk-java-ufs/pom.xml b/ucloud-sdk-java-ufs/pom.xml index 020129a0..9c5a6899 100644 --- a/ucloud-sdk-java-ufs/pom.xml +++ b/ucloud-sdk-java-ufs/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.0-release + 1.2.1-release 4.0.0 ucloud-sdk-java-ufs - 1.2.0-release + 1.2.1-release cn.ucloud ucloud-sdk-java-common - 1.2.0-release + 1.2.1-release diff --git a/ucloud-sdk-java-uhost/pom.xml b/ucloud-sdk-java-uhost/pom.xml index ca283325..f2622daa 100644 --- a/ucloud-sdk-java-uhost/pom.xml +++ b/ucloud-sdk-java-uhost/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.0-release + 1.2.1-release 4.0.0 ucloud-sdk-java-uhost - 1.2.0-release + 1.2.1-release cn.ucloud ucloud-sdk-java-common - 1.2.0-release + 1.2.1-release diff --git a/ucloud-sdk-java-uk8s/pom.xml b/ucloud-sdk-java-uk8s/pom.xml index 8742d6c6..c0f54fcd 100644 --- a/ucloud-sdk-java-uk8s/pom.xml +++ b/ucloud-sdk-java-uk8s/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.0-release + 1.2.1-release 4.0.0 ucloud-sdk-java-uk8s - 1.2.0-release + 1.2.1-release cn.ucloud ucloud-sdk-java-common - 1.2.0-release + 1.2.1-release diff --git a/ucloud-sdk-java-ulb/pom.xml b/ucloud-sdk-java-ulb/pom.xml index 95c25339..cbf8e334 100644 --- a/ucloud-sdk-java-ulb/pom.xml +++ b/ucloud-sdk-java-ulb/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.0-release + 1.2.1-release 4.0.0 ucloud-sdk-java-ulb - 1.2.0-release + 1.2.1-release cn.ucloud ucloud-sdk-java-common - 1.2.0-release + 1.2.1-release diff --git a/ucloud-sdk-java-umem/pom.xml b/ucloud-sdk-java-umem/pom.xml index ca0a2202..3135815d 100644 --- a/ucloud-sdk-java-umem/pom.xml +++ b/ucloud-sdk-java-umem/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.0-release + 1.2.1-release 4.0.0 ucloud-sdk-java-umem - 1.2.0-release + 1.2.1-release cn.ucloud ucloud-sdk-java-common - 1.2.0-release + 1.2.1-release diff --git a/ucloud-sdk-java-umongodb/pom.xml b/ucloud-sdk-java-umongodb/pom.xml index 1821b0c5..7c48766f 100644 --- a/ucloud-sdk-java-umongodb/pom.xml +++ b/ucloud-sdk-java-umongodb/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.0-release + 1.2.1-release 4.0.0 ucloud-sdk-java-umongodb - 1.2.0-release + 1.2.1-release cn.ucloud ucloud-sdk-java-common - 1.2.0-release + 1.2.1-release diff --git a/ucloud-sdk-java-unet/pom.xml b/ucloud-sdk-java-unet/pom.xml index 42dcb32b..1234a862 100644 --- a/ucloud-sdk-java-unet/pom.xml +++ b/ucloud-sdk-java-unet/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.0-release + 1.2.1-release 4.0.0 ucloud-sdk-java-unet - 1.2.0-release + 1.2.1-release cn.ucloud ucloud-sdk-java-common - 1.2.0-release + 1.2.1-release diff --git a/ucloud-sdk-java-upgsql/pom.xml b/ucloud-sdk-java-upgsql/pom.xml new file mode 100644 index 00000000..b1440bd6 --- /dev/null +++ b/ucloud-sdk-java-upgsql/pom.xml @@ -0,0 +1,48 @@ + + + + ucloud-sdk-java + cn.ucloud + 1.2.1-release + + + 4.0.0 + ucloud-sdk-java-upgsql + 1.2.1-release + + + + cn.ucloud + ucloud-sdk-java-common + 1.2.1-release + + + + com.google.code.gson + gson + + + + commons-codec + commons-codec + + + org.apache.commons + commons-lang3 + + + + junit + junit + test + + + + org.slf4j + slf4j-simple + provided + + + \ No newline at end of file diff --git a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/client/UPgSQLClient.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/client/UPgSQLClient.java new file mode 100644 index 00000000..83295c0c --- /dev/null +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/client/UPgSQLClient.java @@ -0,0 +1,395 @@ +/** + * 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.upgsql.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.upgsql.models.CreateUPgSQLInstanceRequest; +import cn.ucloud.upgsql.models.CreateUPgSQLInstanceResponse; +import cn.ucloud.upgsql.models.CreateUPgSQLParamTemplateRequest; +import cn.ucloud.upgsql.models.CreateUPgSQLParamTemplateResponse; +import cn.ucloud.upgsql.models.CreateUPgSQLReadonlyRequest; +import cn.ucloud.upgsql.models.CreateUPgSQLReadonlyResponse; +import cn.ucloud.upgsql.models.DeleteUPgSQLInstanceRequest; +import cn.ucloud.upgsql.models.DeleteUPgSQLInstanceResponse; +import cn.ucloud.upgsql.models.DeleteUPgSQLParamTemplateRequest; +import cn.ucloud.upgsql.models.DeleteUPgSQLParamTemplateResponse; +import cn.ucloud.upgsql.models.DownloadUPgSQLParamTemplateRequest; +import cn.ucloud.upgsql.models.DownloadUPgSQLParamTemplateResponse; +import cn.ucloud.upgsql.models.GetUPgSQLBackupStrategyRequest; +import cn.ucloud.upgsql.models.GetUPgSQLBackupStrategyResponse; +import cn.ucloud.upgsql.models.GetUPgSQLBackupURLRequest; +import cn.ucloud.upgsql.models.GetUPgSQLBackupURLResponse; +import cn.ucloud.upgsql.models.GetUPgSQLInstancePriceRequest; +import cn.ucloud.upgsql.models.GetUPgSQLInstancePriceResponse; +import cn.ucloud.upgsql.models.GetUPgSQLInstanceRequest; +import cn.ucloud.upgsql.models.GetUPgSQLInstanceResponse; +import cn.ucloud.upgsql.models.GetUPgSQLParamTemplateRequest; +import cn.ucloud.upgsql.models.GetUPgSQLParamTemplateResponse; +import cn.ucloud.upgsql.models.GetUPgSQLUpgradePriceRequest; +import cn.ucloud.upgsql.models.GetUPgSQLUpgradePriceResponse; +import cn.ucloud.upgsql.models.ListUPgSQLBackupRequest; +import cn.ucloud.upgsql.models.ListUPgSQLBackupResponse; +import cn.ucloud.upgsql.models.ListUPgSQLInstanceRequest; +import cn.ucloud.upgsql.models.ListUPgSQLInstanceResponse; +import cn.ucloud.upgsql.models.ListUPgSQLMachineTypeRequest; +import cn.ucloud.upgsql.models.ListUPgSQLMachineTypeResponse; +import cn.ucloud.upgsql.models.ListUPgSQLVersionRequest; +import cn.ucloud.upgsql.models.ListUPgSQLVersionResponse; +import cn.ucloud.upgsql.models.RestartUPgSQLInstanceRequest; +import cn.ucloud.upgsql.models.RestartUPgSQLInstanceResponse; +import cn.ucloud.upgsql.models.StartUPgSQLInstanceRequest; +import cn.ucloud.upgsql.models.StartUPgSQLInstanceResponse; +import cn.ucloud.upgsql.models.StopUPgSQLCreatingReadonlyRequest; +import cn.ucloud.upgsql.models.StopUPgSQLCreatingReadonlyResponse; +import cn.ucloud.upgsql.models.StopUPgSQLInstanceRequest; +import cn.ucloud.upgsql.models.StopUPgSQLInstanceResponse; +import cn.ucloud.upgsql.models.UpdateUPgSQLAttributeRequest; +import cn.ucloud.upgsql.models.UpdateUPgSQLAttributeResponse; +import cn.ucloud.upgsql.models.UpdateUPgSQLBackupStrategyRequest; +import cn.ucloud.upgsql.models.UpdateUPgSQLBackupStrategyResponse; +import cn.ucloud.upgsql.models.UpdateUPgSQLPasswordRequest; +import cn.ucloud.upgsql.models.UpdateUPgSQLPasswordResponse; +import cn.ucloud.upgsql.models.UpgradeUPgSQLInstanceRequest; +import cn.ucloud.upgsql.models.UpgradeUPgSQLInstanceResponse; +import cn.ucloud.upgsql.models.UploadUPgSQLParamTemplateRequest; +import cn.ucloud.upgsql.models.UploadUPgSQLParamTemplateResponse; + +/** This client is used to call actions of **UPgSQL** service */ +public class UPgSQLClient extends DefaultClient implements UPgSQLClientInterface { + public UPgSQLClient(Config config, Credential credential) { + super(config, credential); + } + + /** + * 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); + } + + /** + * 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); + } + + /** + * 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); + } + + /** + * 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-upgsql/src/main/java/cn/ucloud/upgsql/client/UPgSQLClientInterface.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/client/UPgSQLClientInterface.java new file mode 100644 index 00000000..ebf2b2df --- /dev/null +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/client/UPgSQLClientInterface.java @@ -0,0 +1,296 @@ +/** + * 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.upgsql.client; + +import cn.ucloud.common.client.Client; +import cn.ucloud.common.exception.UCloudException; +import cn.ucloud.upgsql.models.CreateUPgSQLInstanceRequest; +import cn.ucloud.upgsql.models.CreateUPgSQLInstanceResponse; +import cn.ucloud.upgsql.models.CreateUPgSQLParamTemplateRequest; +import cn.ucloud.upgsql.models.CreateUPgSQLParamTemplateResponse; +import cn.ucloud.upgsql.models.CreateUPgSQLReadonlyRequest; +import cn.ucloud.upgsql.models.CreateUPgSQLReadonlyResponse; +import cn.ucloud.upgsql.models.DeleteUPgSQLInstanceRequest; +import cn.ucloud.upgsql.models.DeleteUPgSQLInstanceResponse; +import cn.ucloud.upgsql.models.DeleteUPgSQLParamTemplateRequest; +import cn.ucloud.upgsql.models.DeleteUPgSQLParamTemplateResponse; +import cn.ucloud.upgsql.models.DownloadUPgSQLParamTemplateRequest; +import cn.ucloud.upgsql.models.DownloadUPgSQLParamTemplateResponse; +import cn.ucloud.upgsql.models.GetUPgSQLBackupStrategyRequest; +import cn.ucloud.upgsql.models.GetUPgSQLBackupStrategyResponse; +import cn.ucloud.upgsql.models.GetUPgSQLBackupURLRequest; +import cn.ucloud.upgsql.models.GetUPgSQLBackupURLResponse; +import cn.ucloud.upgsql.models.GetUPgSQLInstancePriceRequest; +import cn.ucloud.upgsql.models.GetUPgSQLInstancePriceResponse; +import cn.ucloud.upgsql.models.GetUPgSQLInstanceRequest; +import cn.ucloud.upgsql.models.GetUPgSQLInstanceResponse; +import cn.ucloud.upgsql.models.GetUPgSQLParamTemplateRequest; +import cn.ucloud.upgsql.models.GetUPgSQLParamTemplateResponse; +import cn.ucloud.upgsql.models.GetUPgSQLUpgradePriceRequest; +import cn.ucloud.upgsql.models.GetUPgSQLUpgradePriceResponse; +import cn.ucloud.upgsql.models.ListUPgSQLBackupRequest; +import cn.ucloud.upgsql.models.ListUPgSQLBackupResponse; +import cn.ucloud.upgsql.models.ListUPgSQLInstanceRequest; +import cn.ucloud.upgsql.models.ListUPgSQLInstanceResponse; +import cn.ucloud.upgsql.models.ListUPgSQLMachineTypeRequest; +import cn.ucloud.upgsql.models.ListUPgSQLMachineTypeResponse; +import cn.ucloud.upgsql.models.ListUPgSQLVersionRequest; +import cn.ucloud.upgsql.models.ListUPgSQLVersionResponse; +import cn.ucloud.upgsql.models.RestartUPgSQLInstanceRequest; +import cn.ucloud.upgsql.models.RestartUPgSQLInstanceResponse; +import cn.ucloud.upgsql.models.StartUPgSQLInstanceRequest; +import cn.ucloud.upgsql.models.StartUPgSQLInstanceResponse; +import cn.ucloud.upgsql.models.StopUPgSQLCreatingReadonlyRequest; +import cn.ucloud.upgsql.models.StopUPgSQLCreatingReadonlyResponse; +import cn.ucloud.upgsql.models.StopUPgSQLInstanceRequest; +import cn.ucloud.upgsql.models.StopUPgSQLInstanceResponse; +import cn.ucloud.upgsql.models.UpdateUPgSQLAttributeRequest; +import cn.ucloud.upgsql.models.UpdateUPgSQLAttributeResponse; +import cn.ucloud.upgsql.models.UpdateUPgSQLBackupStrategyRequest; +import cn.ucloud.upgsql.models.UpdateUPgSQLBackupStrategyResponse; +import cn.ucloud.upgsql.models.UpdateUPgSQLPasswordRequest; +import cn.ucloud.upgsql.models.UpdateUPgSQLPasswordResponse; +import cn.ucloud.upgsql.models.UpgradeUPgSQLInstanceRequest; +import cn.ucloud.upgsql.models.UpgradeUPgSQLInstanceResponse; +import cn.ucloud.upgsql.models.UploadUPgSQLParamTemplateRequest; +import cn.ucloud.upgsql.models.UploadUPgSQLParamTemplateResponse; + +/** This client is used to call actions of **UPgSQL** service */ +public interface UPgSQLClientInterface extends Client { + + /** + * 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; + + /** + * 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; + + /** + * ListUPgSQLMachineType - 获取UPgSQL支持机器类型列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListUPgSQLMachineTypeResponse listUPgSQLMachineType(ListUPgSQLMachineTypeRequest 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-upgsql/src/main/java/cn/ucloud/upgsql/models/CreateUPgSQLInstanceRequest.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/CreateUPgSQLInstanceRequest.java new file mode 100644 index 00000000..fc959c9b --- /dev/null +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/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.upgsql.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-upgsql/src/main/java/cn/ucloud/upgsql/models/CreateUPgSQLInstanceResponse.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/CreateUPgSQLInstanceResponse.java new file mode 100644 index 00000000..fc89d140 --- /dev/null +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/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.upgsql.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-upgsql/src/main/java/cn/ucloud/upgsql/models/CreateUPgSQLParamTemplateRequest.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/CreateUPgSQLParamTemplateRequest.java new file mode 100644 index 00000000..4a28f58e --- /dev/null +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/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.upgsql.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-upgsql/src/main/java/cn/ucloud/upgsql/models/CreateUPgSQLParamTemplateResponse.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/CreateUPgSQLParamTemplateResponse.java new file mode 100644 index 00000000..b6f9bf02 --- /dev/null +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/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.upgsql.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-upgsql/src/main/java/cn/ucloud/upgsql/models/CreateUPgSQLReadonlyRequest.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/CreateUPgSQLReadonlyRequest.java new file mode 100644 index 00000000..65485ed4 --- /dev/null +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/CreateUPgSQLReadonlyRequest.java @@ -0,0 +1,152 @@ +/** + * 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.upgsql.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +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; + + 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; + } +} diff --git a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/CreateUPgSQLReadonlyResponse.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/CreateUPgSQLReadonlyResponse.java new file mode 100644 index 00000000..1c74f095 --- /dev/null +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/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.upgsql.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-upgsql/src/main/java/cn/ucloud/upgsql/models/DeleteUPgSQLInstanceRequest.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/DeleteUPgSQLInstanceRequest.java new file mode 100644 index 00000000..763a7e7e --- /dev/null +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/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.upgsql.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-upgsql/src/main/java/cn/ucloud/upgsql/models/DeleteUPgSQLInstanceResponse.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/DeleteUPgSQLInstanceResponse.java new file mode 100644 index 00000000..595b7415 --- /dev/null +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/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.upgsql.models; + + + +import cn.ucloud.common.response.Response; + +public class DeleteUPgSQLInstanceResponse extends Response {} diff --git a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/DeleteUPgSQLParamTemplateRequest.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/DeleteUPgSQLParamTemplateRequest.java new file mode 100644 index 00000000..7f879dd8 --- /dev/null +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/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.upgsql.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-upgsql/src/main/java/cn/ucloud/upgsql/models/DeleteUPgSQLParamTemplateResponse.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/DeleteUPgSQLParamTemplateResponse.java new file mode 100644 index 00000000..733a70c5 --- /dev/null +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/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.upgsql.models; + + + +import cn.ucloud.common.response.Response; + +public class DeleteUPgSQLParamTemplateResponse extends Response {} diff --git a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/DownloadUPgSQLParamTemplateRequest.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/DownloadUPgSQLParamTemplateRequest.java new file mode 100644 index 00000000..bbb07cc0 --- /dev/null +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/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.upgsql.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-upgsql/src/main/java/cn/ucloud/upgsql/models/DownloadUPgSQLParamTemplateResponse.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/DownloadUPgSQLParamTemplateResponse.java new file mode 100644 index 00000000..381ab504 --- /dev/null +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/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.upgsql.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-upgsql/src/main/java/cn/ucloud/upgsql/models/GetUPgSQLBackupStrategyRequest.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/GetUPgSQLBackupStrategyRequest.java new file mode 100644 index 00000000..d6349f9d --- /dev/null +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/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.upgsql.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-upgsql/src/main/java/cn/ucloud/upgsql/models/GetUPgSQLBackupStrategyResponse.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/GetUPgSQLBackupStrategyResponse.java new file mode 100644 index 00000000..01519cd6 --- /dev/null +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/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.upgsql.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-upgsql/src/main/java/cn/ucloud/upgsql/models/GetUPgSQLBackupURLRequest.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/GetUPgSQLBackupURLRequest.java new file mode 100644 index 00000000..b90e822a --- /dev/null +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/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.upgsql.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-upgsql/src/main/java/cn/ucloud/upgsql/models/GetUPgSQLBackupURLResponse.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/GetUPgSQLBackupURLResponse.java new file mode 100644 index 00000000..6a5afd4f --- /dev/null +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/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.upgsql.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-upgsql/src/main/java/cn/ucloud/upgsql/models/GetUPgSQLInstancePriceRequest.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/GetUPgSQLInstancePriceRequest.java new file mode 100644 index 00000000..da283dc2 --- /dev/null +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/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.upgsql.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-upgsql/src/main/java/cn/ucloud/upgsql/models/GetUPgSQLInstancePriceResponse.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/GetUPgSQLInstancePriceResponse.java new file mode 100644 index 00000000..fbf56ece --- /dev/null +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/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.upgsql.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-upgsql/src/main/java/cn/ucloud/upgsql/models/GetUPgSQLInstanceRequest.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/GetUPgSQLInstanceRequest.java new file mode 100644 index 00000000..e29d1d48 --- /dev/null +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/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.upgsql.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-upgsql/src/main/java/cn/ucloud/upgsql/models/GetUPgSQLInstanceResponse.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/GetUPgSQLInstanceResponse.java new file mode 100644 index 00000000..1f6651fe --- /dev/null +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/GetUPgSQLInstanceResponse.java @@ -0,0 +1,368 @@ +/** + * 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.upgsql.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class GetUPgSQLInstanceResponse extends Response { + + /** */ + @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; + + /** 内存限制(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; + + 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 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; + } + } +} diff --git a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/GetUPgSQLParamTemplateRequest.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/GetUPgSQLParamTemplateRequest.java new file mode 100644 index 00000000..fede08e1 --- /dev/null +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/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.upgsql.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-upgsql/src/main/java/cn/ucloud/upgsql/models/GetUPgSQLParamTemplateResponse.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/GetUPgSQLParamTemplateResponse.java new file mode 100644 index 00000000..87a0b559 --- /dev/null +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/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.upgsql.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-upgsql/src/main/java/cn/ucloud/upgsql/models/GetUPgSQLUpgradePriceRequest.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/GetUPgSQLUpgradePriceRequest.java new file mode 100644 index 00000000..5d929a90 --- /dev/null +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/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.upgsql.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-upgsql/src/main/java/cn/ucloud/upgsql/models/GetUPgSQLUpgradePriceResponse.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/GetUPgSQLUpgradePriceResponse.java new file mode 100644 index 00000000..c8752dbc --- /dev/null +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/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.upgsql.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-upgsql/src/main/java/cn/ucloud/upgsql/models/ListUPgSQLBackupRequest.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/ListUPgSQLBackupRequest.java new file mode 100644 index 00000000..96193e61 --- /dev/null +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/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.upgsql.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-upgsql/src/main/java/cn/ucloud/upgsql/models/ListUPgSQLBackupResponse.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/ListUPgSQLBackupResponse.java new file mode 100644 index 00000000..c2784c7d --- /dev/null +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/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.upgsql.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-upgsql/src/main/java/cn/ucloud/upgsql/models/ListUPgSQLInstanceRequest.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/ListUPgSQLInstanceRequest.java new file mode 100644 index 00000000..303715a3 --- /dev/null +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/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.upgsql.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-upgsql/src/main/java/cn/ucloud/upgsql/models/ListUPgSQLInstanceResponse.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/ListUPgSQLInstanceResponse.java new file mode 100644 index 00000000..c4a43d2c --- /dev/null +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/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.upgsql.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-upgsql/src/main/java/cn/ucloud/upgsql/models/ListUPgSQLMachineTypeRequest.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/ListUPgSQLMachineTypeRequest.java new file mode 100644 index 00000000..1b73d9d8 --- /dev/null +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/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.upgsql.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-upgsql/src/main/java/cn/ucloud/upgsql/models/ListUPgSQLMachineTypeResponse.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/ListUPgSQLMachineTypeResponse.java new file mode 100644 index 00000000..f0157962 --- /dev/null +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/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.upgsql.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-upgsql/src/main/java/cn/ucloud/upgsql/models/ListUPgSQLVersionRequest.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/ListUPgSQLVersionRequest.java new file mode 100644 index 00000000..a11f1b5d --- /dev/null +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/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.upgsql.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-upgsql/src/main/java/cn/ucloud/upgsql/models/ListUPgSQLVersionResponse.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/ListUPgSQLVersionResponse.java new file mode 100644 index 00000000..b1d238fd --- /dev/null +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/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.upgsql.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-upgsql/src/main/java/cn/ucloud/upgsql/models/RestartUPgSQLInstanceRequest.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/RestartUPgSQLInstanceRequest.java new file mode 100644 index 00000000..46b33d86 --- /dev/null +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/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.upgsql.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-upgsql/src/main/java/cn/ucloud/upgsql/models/RestartUPgSQLInstanceResponse.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/RestartUPgSQLInstanceResponse.java new file mode 100644 index 00000000..abea9e27 --- /dev/null +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/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.upgsql.models; + + + +import cn.ucloud.common.response.Response; + +public class RestartUPgSQLInstanceResponse extends Response {} diff --git a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/StartUPgSQLInstanceRequest.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/StartUPgSQLInstanceRequest.java new file mode 100644 index 00000000..1cbccf4e --- /dev/null +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/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.upgsql.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-upgsql/src/main/java/cn/ucloud/upgsql/models/StartUPgSQLInstanceResponse.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/StartUPgSQLInstanceResponse.java new file mode 100644 index 00000000..c99772c4 --- /dev/null +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/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.upgsql.models; + + + +import cn.ucloud.common.response.Response; + +public class StartUPgSQLInstanceResponse extends Response {} diff --git a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/StopUPgSQLCreatingReadonlyRequest.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/StopUPgSQLCreatingReadonlyRequest.java new file mode 100644 index 00000000..037bbdc9 --- /dev/null +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/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.upgsql.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-upgsql/src/main/java/cn/ucloud/upgsql/models/StopUPgSQLCreatingReadonlyResponse.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/StopUPgSQLCreatingReadonlyResponse.java new file mode 100644 index 00000000..55429047 --- /dev/null +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/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.upgsql.models; + + + +import cn.ucloud.common.response.Response; + +public class StopUPgSQLCreatingReadonlyResponse extends Response {} diff --git a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/StopUPgSQLInstanceRequest.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/StopUPgSQLInstanceRequest.java new file mode 100644 index 00000000..7649d3c4 --- /dev/null +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/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.upgsql.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-upgsql/src/main/java/cn/ucloud/upgsql/models/StopUPgSQLInstanceResponse.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/StopUPgSQLInstanceResponse.java new file mode 100644 index 00000000..c5184b18 --- /dev/null +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/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.upgsql.models; + + + +import cn.ucloud.common.response.Response; + +public class StopUPgSQLInstanceResponse extends Response {} diff --git a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/UpdateUPgSQLAttributeRequest.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/UpdateUPgSQLAttributeRequest.java new file mode 100644 index 00000000..db33a606 --- /dev/null +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/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.upgsql.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-upgsql/src/main/java/cn/ucloud/upgsql/models/UpdateUPgSQLAttributeResponse.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/UpdateUPgSQLAttributeResponse.java new file mode 100644 index 00000000..e7daeca7 --- /dev/null +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/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.upgsql.models; + + + +import cn.ucloud.common.response.Response; + +public class UpdateUPgSQLAttributeResponse extends Response {} diff --git a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/UpdateUPgSQLBackupStrategyRequest.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/UpdateUPgSQLBackupStrategyRequest.java new file mode 100644 index 00000000..2be3414f --- /dev/null +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/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.upgsql.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-upgsql/src/main/java/cn/ucloud/upgsql/models/UpdateUPgSQLBackupStrategyResponse.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/UpdateUPgSQLBackupStrategyResponse.java new file mode 100644 index 00000000..85560bc2 --- /dev/null +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/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.upgsql.models; + + + +import cn.ucloud.common.response.Response; + +public class UpdateUPgSQLBackupStrategyResponse extends Response {} diff --git a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/UpdateUPgSQLPasswordRequest.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/UpdateUPgSQLPasswordRequest.java new file mode 100644 index 00000000..c0d5358a --- /dev/null +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/UpdateUPgSQLPasswordRequest.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.upgsql.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; + + 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; + } +} diff --git a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/UpdateUPgSQLPasswordResponse.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/UpdateUPgSQLPasswordResponse.java new file mode 100644 index 00000000..552873d9 --- /dev/null +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/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.upgsql.models; + + + +import cn.ucloud.common.response.Response; + +public class UpdateUPgSQLPasswordResponse extends Response {} diff --git a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/UpgradeUPgSQLInstanceRequest.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/UpgradeUPgSQLInstanceRequest.java new file mode 100644 index 00000000..36ef2bfd --- /dev/null +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/UpgradeUPgSQLInstanceRequest.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.upgsql.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; + + 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; + } +} diff --git a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/UpgradeUPgSQLInstanceResponse.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/UpgradeUPgSQLInstanceResponse.java new file mode 100644 index 00000000..31c1f3dc --- /dev/null +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/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.upgsql.models; + + + +import cn.ucloud.common.response.Response; + +public class UpgradeUPgSQLInstanceResponse extends Response {} diff --git a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/UploadUPgSQLParamTemplateRequest.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/UploadUPgSQLParamTemplateRequest.java new file mode 100644 index 00000000..e0dfd60a --- /dev/null +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/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.upgsql.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-upgsql/src/main/java/cn/ucloud/upgsql/models/UploadUPgSQLParamTemplateResponse.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/UploadUPgSQLParamTemplateResponse.java new file mode 100644 index 00000000..f0417a64 --- /dev/null +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/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.upgsql.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-uphone/pom.xml b/ucloud-sdk-java-uphone/pom.xml index 26c6e673..f4f3ad08 100644 --- a/ucloud-sdk-java-uphone/pom.xml +++ b/ucloud-sdk-java-uphone/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.0-release + 1.2.1-release 4.0.0 ucloud-sdk-java-uphone - 1.2.0-release + 1.2.1-release cn.ucloud ucloud-sdk-java-common - 1.2.0-release + 1.2.1-release diff --git a/ucloud-sdk-java-uphost/pom.xml b/ucloud-sdk-java-uphost/pom.xml index 070f797a..64fa83a6 100644 --- a/ucloud-sdk-java-uphost/pom.xml +++ b/ucloud-sdk-java-uphost/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.0-release + 1.2.1-release 4.0.0 ucloud-sdk-java-uphost - 1.2.0-release + 1.2.1-release cn.ucloud ucloud-sdk-java-common - 1.2.0-release + 1.2.1-release diff --git a/ucloud-sdk-java-uslk/pom.xml b/ucloud-sdk-java-uslk/pom.xml index 149b85f1..3aba745e 100644 --- a/ucloud-sdk-java-uslk/pom.xml +++ b/ucloud-sdk-java-uslk/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.0-release + 1.2.1-release 4.0.0 ucloud-sdk-java-uslk - 1.2.0-release + 1.2.1-release cn.ucloud ucloud-sdk-java-common - 1.2.0-release + 1.2.1-release diff --git a/ucloud-sdk-java-usms/pom.xml b/ucloud-sdk-java-usms/pom.xml index b2d513eb..8af149b3 100644 --- a/ucloud-sdk-java-usms/pom.xml +++ b/ucloud-sdk-java-usms/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.0-release + 1.2.1-release 4.0.0 ucloud-sdk-java-usms - 1.2.0-release + 1.2.1-release cn.ucloud ucloud-sdk-java-common - 1.2.0-release + 1.2.1-release diff --git a/ucloud-sdk-java-uvms/pom.xml b/ucloud-sdk-java-uvms/pom.xml index bbe321fd..d57cc5cf 100644 --- a/ucloud-sdk-java-uvms/pom.xml +++ b/ucloud-sdk-java-uvms/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.0-release + 1.2.1-release 4.0.0 ucloud-sdk-java-uvms - 1.2.0-release + 1.2.1-release cn.ucloud ucloud-sdk-java-common - 1.2.0-release + 1.2.1-release diff --git a/ucloud-sdk-java-vpc/pom.xml b/ucloud-sdk-java-vpc/pom.xml index 40deaecb..ff779d5b 100644 --- a/ucloud-sdk-java-vpc/pom.xml +++ b/ucloud-sdk-java-vpc/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.0-release + 1.2.1-release 4.0.0 ucloud-sdk-java-vpc - 1.2.0-release + 1.2.1-release cn.ucloud ucloud-sdk-java-common - 1.2.0-release + 1.2.1-release