Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *
http://www.apache.org/licenses/LICENSE-2.0 + * + *
Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.udbpostgresql.client; + +import cn.ucloud.common.client.DefaultClient; +import cn.ucloud.common.config.Config; +import cn.ucloud.common.credential.Credential; +import cn.ucloud.common.exception.UCloudException; +import cn.ucloud.udbpostgresql.models.BackupUPgSQLLogRequest; +import cn.ucloud.udbpostgresql.models.BackupUPgSQLLogResponse; +import cn.ucloud.udbpostgresql.models.BackupUPgSQLRequest; +import cn.ucloud.udbpostgresql.models.BackupUPgSQLResponse; +import cn.ucloud.udbpostgresql.models.CreateUPgSQLInstanceRequest; +import cn.ucloud.udbpostgresql.models.CreateUPgSQLInstanceResponse; +import cn.ucloud.udbpostgresql.models.CreateUPgSQLParamTemplateRequest; +import cn.ucloud.udbpostgresql.models.CreateUPgSQLParamTemplateResponse; +import cn.ucloud.udbpostgresql.models.CreateUPgSQLReadonlyRequest; +import cn.ucloud.udbpostgresql.models.CreateUPgSQLReadonlyResponse; +import cn.ucloud.udbpostgresql.models.DeleteUPgSQLInstanceRequest; +import cn.ucloud.udbpostgresql.models.DeleteUPgSQLInstanceResponse; +import cn.ucloud.udbpostgresql.models.DeleteUPgSQLParamTemplateRequest; +import cn.ucloud.udbpostgresql.models.DeleteUPgSQLParamTemplateResponse; +import cn.ucloud.udbpostgresql.models.DownloadUPgSQLParamTemplateRequest; +import cn.ucloud.udbpostgresql.models.DownloadUPgSQLParamTemplateResponse; +import cn.ucloud.udbpostgresql.models.GetUPgSQLBackupStrategyRequest; +import cn.ucloud.udbpostgresql.models.GetUPgSQLBackupStrategyResponse; +import cn.ucloud.udbpostgresql.models.GetUPgSQLBackupURLRequest; +import cn.ucloud.udbpostgresql.models.GetUPgSQLBackupURLResponse; +import cn.ucloud.udbpostgresql.models.GetUPgSQLInstanceLogRequest; +import cn.ucloud.udbpostgresql.models.GetUPgSQLInstanceLogResponse; +import cn.ucloud.udbpostgresql.models.GetUPgSQLInstanceParamRequest; +import cn.ucloud.udbpostgresql.models.GetUPgSQLInstanceParamResponse; +import cn.ucloud.udbpostgresql.models.GetUPgSQLInstancePriceRequest; +import cn.ucloud.udbpostgresql.models.GetUPgSQLInstancePriceResponse; +import cn.ucloud.udbpostgresql.models.GetUPgSQLInstanceRequest; +import cn.ucloud.udbpostgresql.models.GetUPgSQLInstanceResponse; +import cn.ucloud.udbpostgresql.models.GetUPgSQLParamTemplateRequest; +import cn.ucloud.udbpostgresql.models.GetUPgSQLParamTemplateResponse; +import cn.ucloud.udbpostgresql.models.GetUPgSQLUpgradePriceRequest; +import cn.ucloud.udbpostgresql.models.GetUPgSQLUpgradePriceResponse; +import cn.ucloud.udbpostgresql.models.ListUPgSQLBackupRequest; +import cn.ucloud.udbpostgresql.models.ListUPgSQLBackupResponse; +import cn.ucloud.udbpostgresql.models.ListUPgSQLInstanceRequest; +import cn.ucloud.udbpostgresql.models.ListUPgSQLInstanceResponse; +import cn.ucloud.udbpostgresql.models.ListUPgSQLLogRequest; +import cn.ucloud.udbpostgresql.models.ListUPgSQLLogResponse; +import cn.ucloud.udbpostgresql.models.ListUPgSQLMachineTypeRequest; +import cn.ucloud.udbpostgresql.models.ListUPgSQLMachineTypeResponse; +import cn.ucloud.udbpostgresql.models.ListUPgSQLParamTemplateRequest; +import cn.ucloud.udbpostgresql.models.ListUPgSQLParamTemplateResponse; +import cn.ucloud.udbpostgresql.models.ListUPgSQLVersionRequest; +import cn.ucloud.udbpostgresql.models.ListUPgSQLVersionResponse; +import cn.ucloud.udbpostgresql.models.RestartUPgSQLInstanceRequest; +import cn.ucloud.udbpostgresql.models.RestartUPgSQLInstanceResponse; +import cn.ucloud.udbpostgresql.models.StartUPgSQLInstanceRequest; +import cn.ucloud.udbpostgresql.models.StartUPgSQLInstanceResponse; +import cn.ucloud.udbpostgresql.models.StopUPgSQLCreatingReadonlyRequest; +import cn.ucloud.udbpostgresql.models.StopUPgSQLCreatingReadonlyResponse; +import cn.ucloud.udbpostgresql.models.StopUPgSQLInstanceRequest; +import cn.ucloud.udbpostgresql.models.StopUPgSQLInstanceResponse; +import cn.ucloud.udbpostgresql.models.UpdateUPgSQLAttributeRequest; +import cn.ucloud.udbpostgresql.models.UpdateUPgSQLAttributeResponse; +import cn.ucloud.udbpostgresql.models.UpdateUPgSQLBackupStrategyRequest; +import cn.ucloud.udbpostgresql.models.UpdateUPgSQLBackupStrategyResponse; +import cn.ucloud.udbpostgresql.models.UpdateUPgSQLPasswordRequest; +import cn.ucloud.udbpostgresql.models.UpdateUPgSQLPasswordResponse; +import cn.ucloud.udbpostgresql.models.UpgradeUPgSQLInstanceRequest; +import cn.ucloud.udbpostgresql.models.UpgradeUPgSQLInstanceResponse; +import cn.ucloud.udbpostgresql.models.UploadUPgSQLParamTemplateRequest; +import cn.ucloud.udbpostgresql.models.UploadUPgSQLParamTemplateResponse; + +/** This client is used to call actions of **UDBPostgreSQL** service */ +public class UDBPostgreSQLClient extends DefaultClient implements UDBPostgreSQLClientInterface { + public UDBPostgreSQLClient(Config config, Credential credential) { + super(config, credential); + } + + /** + * BackupUPgSQL - 创建备份服务 + * + * @param request Request object + * @throws UCloudException Exception + */ + public BackupUPgSQLResponse backupUPgSQL(BackupUPgSQLRequest request) throws UCloudException { + request.setAction("BackupUPgSQL"); + return (BackupUPgSQLResponse) this.invoke(request, BackupUPgSQLResponse.class); + } + + /** + * BackupUPgSQLLog - 备份日志包 + * + * @param request Request object + * @throws UCloudException Exception + */ + public BackupUPgSQLLogResponse backupUPgSQLLog(BackupUPgSQLLogRequest request) + throws UCloudException { + request.setAction("BackupUPgSQLLog"); + return (BackupUPgSQLLogResponse) this.invoke(request, BackupUPgSQLLogResponse.class); + } + + /** + * CreateUPgSQLInstance - 创建PG云数据库 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateUPgSQLInstanceResponse createUPgSQLInstance(CreateUPgSQLInstanceRequest request) + throws UCloudException { + request.setAction("CreateUPgSQLInstance"); + return (CreateUPgSQLInstanceResponse) + this.invoke(request, CreateUPgSQLInstanceResponse.class); + } + + /** + * CreateUPgSQLParamTemplate - 创建PG参数模板 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateUPgSQLParamTemplateResponse createUPgSQLParamTemplate( + CreateUPgSQLParamTemplateRequest request) throws UCloudException { + request.setAction("CreateUPgSQLParamTemplate"); + return (CreateUPgSQLParamTemplateResponse) + this.invoke(request, CreateUPgSQLParamTemplateResponse.class); + } + + /** + * CreateUPgSQLReadonly - 创建PG从库 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateUPgSQLReadonlyResponse createUPgSQLReadonly(CreateUPgSQLReadonlyRequest request) + throws UCloudException { + request.setAction("CreateUPgSQLReadonly"); + return (CreateUPgSQLReadonlyResponse) + this.invoke(request, CreateUPgSQLReadonlyResponse.class); + } + + /** + * DeleteUPgSQLInstance - 删除PG实例 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteUPgSQLInstanceResponse deleteUPgSQLInstance(DeleteUPgSQLInstanceRequest request) + throws UCloudException { + request.setAction("DeleteUPgSQLInstance"); + return (DeleteUPgSQLInstanceResponse) + this.invoke(request, DeleteUPgSQLInstanceResponse.class); + } + + /** + * DeleteUPgSQLParamTemplate - 删除参数模板 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteUPgSQLParamTemplateResponse deleteUPgSQLParamTemplate( + DeleteUPgSQLParamTemplateRequest request) throws UCloudException { + request.setAction("DeleteUPgSQLParamTemplate"); + return (DeleteUPgSQLParamTemplateResponse) + this.invoke(request, DeleteUPgSQLParamTemplateResponse.class); + } + + /** + * DownloadUPgSQLParamTemplate - 下载参数模板信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DownloadUPgSQLParamTemplateResponse downloadUPgSQLParamTemplate( + DownloadUPgSQLParamTemplateRequest request) throws UCloudException { + request.setAction("DownloadUPgSQLParamTemplate"); + return (DownloadUPgSQLParamTemplateResponse) + this.invoke(request, DownloadUPgSQLParamTemplateResponse.class); + } + + /** + * GetUPgSQLBackupStrategy - 获取备份策略 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUPgSQLBackupStrategyResponse getUPgSQLBackupStrategy( + GetUPgSQLBackupStrategyRequest request) throws UCloudException { + request.setAction("GetUPgSQLBackupStrategy"); + return (GetUPgSQLBackupStrategyResponse) + this.invoke(request, GetUPgSQLBackupStrategyResponse.class); + } + + /** + * GetUPgSQLBackupURL - 获取备份下载地址 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUPgSQLBackupURLResponse getUPgSQLBackupURL(GetUPgSQLBackupURLRequest request) + throws UCloudException { + request.setAction("GetUPgSQLBackupURL"); + return (GetUPgSQLBackupURLResponse) this.invoke(request, GetUPgSQLBackupURLResponse.class); + } + + /** + * GetUPgSQLInstance - 获取云数据库实例描述 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUPgSQLInstanceResponse getUPgSQLInstance(GetUPgSQLInstanceRequest request) + throws UCloudException { + request.setAction("GetUPgSQLInstance"); + return (GetUPgSQLInstanceResponse) this.invoke(request, GetUPgSQLInstanceResponse.class); + } + + /** + * GetUPgSQLInstanceLog - 查询日志 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUPgSQLInstanceLogResponse getUPgSQLInstanceLog(GetUPgSQLInstanceLogRequest request) + throws UCloudException { + request.setAction("GetUPgSQLInstanceLog"); + return (GetUPgSQLInstanceLogResponse) + this.invoke(request, GetUPgSQLInstanceLogResponse.class); + } + + /** + * GetUPgSQLInstanceParam - 获取PG实例参数信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUPgSQLInstanceParamResponse getUPgSQLInstanceParam( + GetUPgSQLInstanceParamRequest request) throws UCloudException { + request.setAction("GetUPgSQLInstanceParam"); + return (GetUPgSQLInstanceParamResponse) + this.invoke(request, GetUPgSQLInstanceParamResponse.class); + } + + /** + * GetUPgSQLInstancePrice - 获取创建PG云数据库价格 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUPgSQLInstancePriceResponse getUPgSQLInstancePrice( + GetUPgSQLInstancePriceRequest request) throws UCloudException { + request.setAction("GetUPgSQLInstancePrice"); + return (GetUPgSQLInstancePriceResponse) + this.invoke(request, GetUPgSQLInstancePriceResponse.class); + } + + /** + * GetUPgSQLParamTemplate - 获取模板信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUPgSQLParamTemplateResponse getUPgSQLParamTemplate( + GetUPgSQLParamTemplateRequest request) throws UCloudException { + request.setAction("GetUPgSQLParamTemplate"); + return (GetUPgSQLParamTemplateResponse) + this.invoke(request, GetUPgSQLParamTemplateResponse.class); + } + + /** + * GetUPgSQLUpgradePrice - 获取 PG 云数据库升降级价格 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUPgSQLUpgradePriceResponse getUPgSQLUpgradePrice(GetUPgSQLUpgradePriceRequest request) + throws UCloudException { + request.setAction("GetUPgSQLUpgradePrice"); + return (GetUPgSQLUpgradePriceResponse) + this.invoke(request, GetUPgSQLUpgradePriceResponse.class); + } + + /** + * ListUPgSQLBackup - 获取备份列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListUPgSQLBackupResponse listUPgSQLBackup(ListUPgSQLBackupRequest request) + throws UCloudException { + request.setAction("ListUPgSQLBackup"); + return (ListUPgSQLBackupResponse) this.invoke(request, ListUPgSQLBackupResponse.class); + } + + /** + * ListUPgSQLInstance - 获取云数据库列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListUPgSQLInstanceResponse listUPgSQLInstance(ListUPgSQLInstanceRequest request) + throws UCloudException { + request.setAction("ListUPgSQLInstance"); + return (ListUPgSQLInstanceResponse) this.invoke(request, ListUPgSQLInstanceResponse.class); + } + + /** + * ListUPgSQLLog - 获取数据库日志 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListUPgSQLLogResponse listUPgSQLLog(ListUPgSQLLogRequest request) + throws UCloudException { + request.setAction("ListUPgSQLLog"); + return (ListUPgSQLLogResponse) this.invoke(request, ListUPgSQLLogResponse.class); + } + + /** + * ListUPgSQLMachineType - 获取UPgSQL支持机器类型列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListUPgSQLMachineTypeResponse listUPgSQLMachineType(ListUPgSQLMachineTypeRequest request) + throws UCloudException { + request.setAction("ListUPgSQLMachineType"); + return (ListUPgSQLMachineTypeResponse) + this.invoke(request, ListUPgSQLMachineTypeResponse.class); + } + + /** + * ListUPgSQLParamTemplate - 获取可用参数模板列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListUPgSQLParamTemplateResponse listUPgSQLParamTemplate( + ListUPgSQLParamTemplateRequest request) throws UCloudException { + request.setAction("ListUPgSQLParamTemplate"); + return (ListUPgSQLParamTemplateResponse) + this.invoke(request, ListUPgSQLParamTemplateResponse.class); + } + + /** + * ListUPgSQLVersion - 获取UPgSQL支持版本列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListUPgSQLVersionResponse listUPgSQLVersion(ListUPgSQLVersionRequest request) + throws UCloudException { + request.setAction("ListUPgSQLVersion"); + return (ListUPgSQLVersionResponse) this.invoke(request, ListUPgSQLVersionResponse.class); + } + + /** + * RestartUPgSQLInstance - 重启PG实例 + * + * @param request Request object + * @throws UCloudException Exception + */ + public RestartUPgSQLInstanceResponse restartUPgSQLInstance(RestartUPgSQLInstanceRequest request) + throws UCloudException { + request.setAction("RestartUPgSQLInstance"); + return (RestartUPgSQLInstanceResponse) + this.invoke(request, RestartUPgSQLInstanceResponse.class); + } + + /** + * StartUPgSQLInstance - 启动PG实例 + * + * @param request Request object + * @throws UCloudException Exception + */ + public StartUPgSQLInstanceResponse startUPgSQLInstance(StartUPgSQLInstanceRequest request) + throws UCloudException { + request.setAction("StartUPgSQLInstance"); + return (StartUPgSQLInstanceResponse) + this.invoke(request, StartUPgSQLInstanceResponse.class); + } + + /** + * StopUPgSQLCreatingReadonly - 停止正在创建的从库 + * + * @param request Request object + * @throws UCloudException Exception + */ + public StopUPgSQLCreatingReadonlyResponse stopUPgSQLCreatingReadonly( + StopUPgSQLCreatingReadonlyRequest request) throws UCloudException { + request.setAction("StopUPgSQLCreatingReadonly"); + return (StopUPgSQLCreatingReadonlyResponse) + this.invoke(request, StopUPgSQLCreatingReadonlyResponse.class); + } + + /** + * StopUPgSQLInstance - 关闭PG实例 + * + * @param request Request object + * @throws UCloudException Exception + */ + public StopUPgSQLInstanceResponse stopUPgSQLInstance(StopUPgSQLInstanceRequest request) + throws UCloudException { + request.setAction("StopUPgSQLInstance"); + return (StopUPgSQLInstanceResponse) this.invoke(request, StopUPgSQLInstanceResponse.class); + } + + /** + * UpdateUPgSQLAttribute - 更新数据库属性 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateUPgSQLAttributeResponse updateUPgSQLAttribute(UpdateUPgSQLAttributeRequest request) + throws UCloudException { + request.setAction("UpdateUPgSQLAttribute"); + return (UpdateUPgSQLAttributeResponse) + this.invoke(request, UpdateUPgSQLAttributeResponse.class); + } + + /** + * UpdateUPgSQLBackupStrategy - 修改备份策略 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateUPgSQLBackupStrategyResponse updateUPgSQLBackupStrategy( + UpdateUPgSQLBackupStrategyRequest request) throws UCloudException { + request.setAction("UpdateUPgSQLBackupStrategy"); + return (UpdateUPgSQLBackupStrategyResponse) + this.invoke(request, UpdateUPgSQLBackupStrategyResponse.class); + } + + /** + * UpdateUPgSQLPassword - 更新数据库用户密码 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateUPgSQLPasswordResponse updateUPgSQLPassword(UpdateUPgSQLPasswordRequest request) + throws UCloudException { + request.setAction("UpdateUPgSQLPassword"); + return (UpdateUPgSQLPasswordResponse) + this.invoke(request, UpdateUPgSQLPasswordResponse.class); + } + + /** + * UpgradeUPgSQLInstance - 硬件规格升降级 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpgradeUPgSQLInstanceResponse upgradeUPgSQLInstance(UpgradeUPgSQLInstanceRequest request) + throws UCloudException { + request.setAction("UpgradeUPgSQLInstance"); + return (UpgradeUPgSQLInstanceResponse) + this.invoke(request, UpgradeUPgSQLInstanceResponse.class); + } + + /** + * UploadUPgSQLParamTemplate - 上传参数模板 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UploadUPgSQLParamTemplateResponse uploadUPgSQLParamTemplate( + UploadUPgSQLParamTemplateRequest request) throws UCloudException { + request.setAction("UploadUPgSQLParamTemplate"); + return (UploadUPgSQLParamTemplateResponse) + this.invoke(request, UploadUPgSQLParamTemplateResponse.class); + } +} diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/client/UDBPostgreSQLClientInterface.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/client/UDBPostgreSQLClientInterface.java new file mode 100644 index 00000000..9264c1e6 --- /dev/null +++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/client/UDBPostgreSQLClientInterface.java @@ -0,0 +1,360 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *
http://www.apache.org/licenses/LICENSE-2.0 + * + *
Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.udbpostgresql.client; + +import cn.ucloud.common.client.Client; +import cn.ucloud.common.exception.UCloudException; +import cn.ucloud.udbpostgresql.models.BackupUPgSQLLogRequest; +import cn.ucloud.udbpostgresql.models.BackupUPgSQLLogResponse; +import cn.ucloud.udbpostgresql.models.BackupUPgSQLRequest; +import cn.ucloud.udbpostgresql.models.BackupUPgSQLResponse; +import cn.ucloud.udbpostgresql.models.CreateUPgSQLInstanceRequest; +import cn.ucloud.udbpostgresql.models.CreateUPgSQLInstanceResponse; +import cn.ucloud.udbpostgresql.models.CreateUPgSQLParamTemplateRequest; +import cn.ucloud.udbpostgresql.models.CreateUPgSQLParamTemplateResponse; +import cn.ucloud.udbpostgresql.models.CreateUPgSQLReadonlyRequest; +import cn.ucloud.udbpostgresql.models.CreateUPgSQLReadonlyResponse; +import cn.ucloud.udbpostgresql.models.DeleteUPgSQLInstanceRequest; +import cn.ucloud.udbpostgresql.models.DeleteUPgSQLInstanceResponse; +import cn.ucloud.udbpostgresql.models.DeleteUPgSQLParamTemplateRequest; +import cn.ucloud.udbpostgresql.models.DeleteUPgSQLParamTemplateResponse; +import cn.ucloud.udbpostgresql.models.DownloadUPgSQLParamTemplateRequest; +import cn.ucloud.udbpostgresql.models.DownloadUPgSQLParamTemplateResponse; +import cn.ucloud.udbpostgresql.models.GetUPgSQLBackupStrategyRequest; +import cn.ucloud.udbpostgresql.models.GetUPgSQLBackupStrategyResponse; +import cn.ucloud.udbpostgresql.models.GetUPgSQLBackupURLRequest; +import cn.ucloud.udbpostgresql.models.GetUPgSQLBackupURLResponse; +import cn.ucloud.udbpostgresql.models.GetUPgSQLInstanceLogRequest; +import cn.ucloud.udbpostgresql.models.GetUPgSQLInstanceLogResponse; +import cn.ucloud.udbpostgresql.models.GetUPgSQLInstanceParamRequest; +import cn.ucloud.udbpostgresql.models.GetUPgSQLInstanceParamResponse; +import cn.ucloud.udbpostgresql.models.GetUPgSQLInstancePriceRequest; +import cn.ucloud.udbpostgresql.models.GetUPgSQLInstancePriceResponse; +import cn.ucloud.udbpostgresql.models.GetUPgSQLInstanceRequest; +import cn.ucloud.udbpostgresql.models.GetUPgSQLInstanceResponse; +import cn.ucloud.udbpostgresql.models.GetUPgSQLParamTemplateRequest; +import cn.ucloud.udbpostgresql.models.GetUPgSQLParamTemplateResponse; +import cn.ucloud.udbpostgresql.models.GetUPgSQLUpgradePriceRequest; +import cn.ucloud.udbpostgresql.models.GetUPgSQLUpgradePriceResponse; +import cn.ucloud.udbpostgresql.models.ListUPgSQLBackupRequest; +import cn.ucloud.udbpostgresql.models.ListUPgSQLBackupResponse; +import cn.ucloud.udbpostgresql.models.ListUPgSQLInstanceRequest; +import cn.ucloud.udbpostgresql.models.ListUPgSQLInstanceResponse; +import cn.ucloud.udbpostgresql.models.ListUPgSQLLogRequest; +import cn.ucloud.udbpostgresql.models.ListUPgSQLLogResponse; +import cn.ucloud.udbpostgresql.models.ListUPgSQLMachineTypeRequest; +import cn.ucloud.udbpostgresql.models.ListUPgSQLMachineTypeResponse; +import cn.ucloud.udbpostgresql.models.ListUPgSQLParamTemplateRequest; +import cn.ucloud.udbpostgresql.models.ListUPgSQLParamTemplateResponse; +import cn.ucloud.udbpostgresql.models.ListUPgSQLVersionRequest; +import cn.ucloud.udbpostgresql.models.ListUPgSQLVersionResponse; +import cn.ucloud.udbpostgresql.models.RestartUPgSQLInstanceRequest; +import cn.ucloud.udbpostgresql.models.RestartUPgSQLInstanceResponse; +import cn.ucloud.udbpostgresql.models.StartUPgSQLInstanceRequest; +import cn.ucloud.udbpostgresql.models.StartUPgSQLInstanceResponse; +import cn.ucloud.udbpostgresql.models.StopUPgSQLCreatingReadonlyRequest; +import cn.ucloud.udbpostgresql.models.StopUPgSQLCreatingReadonlyResponse; +import cn.ucloud.udbpostgresql.models.StopUPgSQLInstanceRequest; +import cn.ucloud.udbpostgresql.models.StopUPgSQLInstanceResponse; +import cn.ucloud.udbpostgresql.models.UpdateUPgSQLAttributeRequest; +import cn.ucloud.udbpostgresql.models.UpdateUPgSQLAttributeResponse; +import cn.ucloud.udbpostgresql.models.UpdateUPgSQLBackupStrategyRequest; +import cn.ucloud.udbpostgresql.models.UpdateUPgSQLBackupStrategyResponse; +import cn.ucloud.udbpostgresql.models.UpdateUPgSQLPasswordRequest; +import cn.ucloud.udbpostgresql.models.UpdateUPgSQLPasswordResponse; +import cn.ucloud.udbpostgresql.models.UpgradeUPgSQLInstanceRequest; +import cn.ucloud.udbpostgresql.models.UpgradeUPgSQLInstanceResponse; +import cn.ucloud.udbpostgresql.models.UploadUPgSQLParamTemplateRequest; +import cn.ucloud.udbpostgresql.models.UploadUPgSQLParamTemplateResponse; + +/** This client is used to call actions of **UDBPostgreSQL** service */ +public interface UDBPostgreSQLClientInterface extends Client { + + /** + * BackupUPgSQL - 创建备份服务 + * + * @param request Request object + * @throws UCloudException Exception + */ + public BackupUPgSQLResponse backupUPgSQL(BackupUPgSQLRequest request) throws UCloudException; + + /** + * BackupUPgSQLLog - 备份日志包 + * + * @param request Request object + * @throws UCloudException Exception + */ + public BackupUPgSQLLogResponse backupUPgSQLLog(BackupUPgSQLLogRequest request) + throws UCloudException; + + /** + * CreateUPgSQLInstance - 创建PG云数据库 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateUPgSQLInstanceResponse createUPgSQLInstance(CreateUPgSQLInstanceRequest request) + throws UCloudException; + + /** + * CreateUPgSQLParamTemplate - 创建PG参数模板 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateUPgSQLParamTemplateResponse createUPgSQLParamTemplate( + CreateUPgSQLParamTemplateRequest request) throws UCloudException; + + /** + * CreateUPgSQLReadonly - 创建PG从库 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateUPgSQLReadonlyResponse createUPgSQLReadonly(CreateUPgSQLReadonlyRequest request) + throws UCloudException; + + /** + * DeleteUPgSQLInstance - 删除PG实例 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteUPgSQLInstanceResponse deleteUPgSQLInstance(DeleteUPgSQLInstanceRequest request) + throws UCloudException; + + /** + * DeleteUPgSQLParamTemplate - 删除参数模板 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteUPgSQLParamTemplateResponse deleteUPgSQLParamTemplate( + DeleteUPgSQLParamTemplateRequest request) throws UCloudException; + + /** + * DownloadUPgSQLParamTemplate - 下载参数模板信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DownloadUPgSQLParamTemplateResponse downloadUPgSQLParamTemplate( + DownloadUPgSQLParamTemplateRequest request) throws UCloudException; + + /** + * GetUPgSQLBackupStrategy - 获取备份策略 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUPgSQLBackupStrategyResponse getUPgSQLBackupStrategy( + GetUPgSQLBackupStrategyRequest request) throws UCloudException; + + /** + * GetUPgSQLBackupURL - 获取备份下载地址 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUPgSQLBackupURLResponse getUPgSQLBackupURL(GetUPgSQLBackupURLRequest request) + throws UCloudException; + + /** + * GetUPgSQLInstance - 获取云数据库实例描述 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUPgSQLInstanceResponse getUPgSQLInstance(GetUPgSQLInstanceRequest request) + throws UCloudException; + + /** + * GetUPgSQLInstanceLog - 查询日志 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUPgSQLInstanceLogResponse getUPgSQLInstanceLog(GetUPgSQLInstanceLogRequest request) + throws UCloudException; + + /** + * GetUPgSQLInstanceParam - 获取PG实例参数信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUPgSQLInstanceParamResponse getUPgSQLInstanceParam( + GetUPgSQLInstanceParamRequest request) throws UCloudException; + + /** + * GetUPgSQLInstancePrice - 获取创建PG云数据库价格 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUPgSQLInstancePriceResponse getUPgSQLInstancePrice( + GetUPgSQLInstancePriceRequest request) throws UCloudException; + + /** + * GetUPgSQLParamTemplate - 获取模板信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUPgSQLParamTemplateResponse getUPgSQLParamTemplate( + GetUPgSQLParamTemplateRequest request) throws UCloudException; + + /** + * GetUPgSQLUpgradePrice - 获取 PG 云数据库升降级价格 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUPgSQLUpgradePriceResponse getUPgSQLUpgradePrice(GetUPgSQLUpgradePriceRequest request) + throws UCloudException; + + /** + * ListUPgSQLBackup - 获取备份列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListUPgSQLBackupResponse listUPgSQLBackup(ListUPgSQLBackupRequest request) + throws UCloudException; + + /** + * ListUPgSQLInstance - 获取云数据库列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListUPgSQLInstanceResponse listUPgSQLInstance(ListUPgSQLInstanceRequest request) + throws UCloudException; + + /** + * ListUPgSQLLog - 获取数据库日志 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListUPgSQLLogResponse listUPgSQLLog(ListUPgSQLLogRequest request) throws UCloudException; + + /** + * ListUPgSQLMachineType - 获取UPgSQL支持机器类型列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListUPgSQLMachineTypeResponse listUPgSQLMachineType(ListUPgSQLMachineTypeRequest request) + throws UCloudException; + + /** + * ListUPgSQLParamTemplate - 获取可用参数模板列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListUPgSQLParamTemplateResponse listUPgSQLParamTemplate( + ListUPgSQLParamTemplateRequest request) throws UCloudException; + + /** + * ListUPgSQLVersion - 获取UPgSQL支持版本列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListUPgSQLVersionResponse listUPgSQLVersion(ListUPgSQLVersionRequest request) + throws UCloudException; + + /** + * RestartUPgSQLInstance - 重启PG实例 + * + * @param request Request object + * @throws UCloudException Exception + */ + public RestartUPgSQLInstanceResponse restartUPgSQLInstance(RestartUPgSQLInstanceRequest request) + throws UCloudException; + + /** + * StartUPgSQLInstance - 启动PG实例 + * + * @param request Request object + * @throws UCloudException Exception + */ + public StartUPgSQLInstanceResponse startUPgSQLInstance(StartUPgSQLInstanceRequest request) + throws UCloudException; + + /** + * StopUPgSQLCreatingReadonly - 停止正在创建的从库 + * + * @param request Request object + * @throws UCloudException Exception + */ + public StopUPgSQLCreatingReadonlyResponse stopUPgSQLCreatingReadonly( + StopUPgSQLCreatingReadonlyRequest request) throws UCloudException; + + /** + * StopUPgSQLInstance - 关闭PG实例 + * + * @param request Request object + * @throws UCloudException Exception + */ + public StopUPgSQLInstanceResponse stopUPgSQLInstance(StopUPgSQLInstanceRequest request) + throws UCloudException; + + /** + * UpdateUPgSQLAttribute - 更新数据库属性 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateUPgSQLAttributeResponse updateUPgSQLAttribute(UpdateUPgSQLAttributeRequest request) + throws UCloudException; + + /** + * UpdateUPgSQLBackupStrategy - 修改备份策略 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateUPgSQLBackupStrategyResponse updateUPgSQLBackupStrategy( + UpdateUPgSQLBackupStrategyRequest request) throws UCloudException; + + /** + * UpdateUPgSQLPassword - 更新数据库用户密码 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateUPgSQLPasswordResponse updateUPgSQLPassword(UpdateUPgSQLPasswordRequest request) + throws UCloudException; + + /** + * UpgradeUPgSQLInstance - 硬件规格升降级 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpgradeUPgSQLInstanceResponse upgradeUPgSQLInstance(UpgradeUPgSQLInstanceRequest request) + throws UCloudException; + + /** + * UploadUPgSQLParamTemplate - 上传参数模板 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UploadUPgSQLParamTemplateResponse uploadUPgSQLParamTemplate( + UploadUPgSQLParamTemplateRequest request) throws UCloudException; +} diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/BackupUPgSQLLogRequest.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/BackupUPgSQLLogRequest.java new file mode 100644 index 00000000..02492d89 --- /dev/null +++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/BackupUPgSQLLogRequest.java @@ -0,0 +1,128 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *
http://www.apache.org/licenses/LICENSE-2.0 + * + *
Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.udbpostgresql.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class BackupUPgSQLLogRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Zone") + private String zone; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 备份导出文件名称 */ + @NotEmpty + @UCloudParam("BackupName") + private String backupName; + + /** 资源ID */ + @NotEmpty + @UCloudParam("InstanceID") + private String instanceID; + + /** 日志类型:slowlog(慢日志),errorlog(错误日志),不区分大小写 */ + @NotEmpty + @UCloudParam("LogType") + private String logType; + + /** 日志开始时间 */ + @NotEmpty + @UCloudParam("BeginTime") + private Integer beginTime; + + /** 日志结束时间 */ + @NotEmpty + @UCloudParam("EndTime") + private Integer endTime; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getZone() { + return zone; + } + + public void setZone(String zone) { + this.zone = zone; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getBackupName() { + return backupName; + } + + public void setBackupName(String backupName) { + this.backupName = backupName; + } + + public String getInstanceID() { + return instanceID; + } + + public void setInstanceID(String instanceID) { + this.instanceID = instanceID; + } + + public String getLogType() { + return logType; + } + + public void setLogType(String logType) { + this.logType = logType; + } + + public Integer getBeginTime() { + return beginTime; + } + + public void setBeginTime(Integer beginTime) { + this.beginTime = beginTime; + } + + public Integer getEndTime() { + return endTime; + } + + public void setEndTime(Integer endTime) { + this.endTime = endTime; + } +} diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/BackupUPgSQLLogResponse.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/BackupUPgSQLLogResponse.java new file mode 100644 index 00000000..14b541df --- /dev/null +++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/BackupUPgSQLLogResponse.java @@ -0,0 +1,20 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *
http://www.apache.org/licenses/LICENSE-2.0 + * + *
Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.udbpostgresql.models; + + + +import cn.ucloud.common.response.Response; + +public class BackupUPgSQLLogResponse extends Response {} diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/BackupUPgSQLRequest.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/BackupUPgSQLRequest.java new file mode 100644 index 00000000..bc2b034c --- /dev/null +++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/BackupUPgSQLRequest.java @@ -0,0 +1,115 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *
http://www.apache.org/licenses/LICENSE-2.0 + * + *
Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.udbpostgresql.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class BackupUPgSQLRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Zone") + private String zone; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** DB实例Id */ + @NotEmpty + @UCloudParam("InstanceID") + private String instanceID; + + /** 备份名称 */ + @NotEmpty + @UCloudParam("BackupName") + private String backupName; + + /** 使用的备份方式(物理备份,逻辑备份) */ + @NotEmpty + @UCloudParam("BackupMethod") + private Integer backupMethod; + + /** 备份黑名单列表,以“ ;” 分隔。 */ + @NotEmpty + @UCloudParam("Blacklist") + private String blacklist; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getZone() { + return zone; + } + + public void setZone(String zone) { + this.zone = zone; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getInstanceID() { + return instanceID; + } + + public void setInstanceID(String instanceID) { + this.instanceID = instanceID; + } + + public String getBackupName() { + return backupName; + } + + public void setBackupName(String backupName) { + this.backupName = backupName; + } + + public Integer getBackupMethod() { + return backupMethod; + } + + public void setBackupMethod(Integer backupMethod) { + this.backupMethod = backupMethod; + } + + public String getBlacklist() { + return blacklist; + } + + public void setBlacklist(String blacklist) { + this.blacklist = blacklist; + } +} diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/BackupUPgSQLResponse.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/BackupUPgSQLResponse.java new file mode 100644 index 00000000..90abd490 --- /dev/null +++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/BackupUPgSQLResponse.java @@ -0,0 +1,34 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *
http://www.apache.org/licenses/LICENSE-2.0 + * + *
Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.udbpostgresql.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class BackupUPgSQLResponse extends Response { + + /** 返回的备份ID */ + @SerializedName("BackupID") + private String backupID; + + public String getBackupID() { + return backupID; + } + + public void setBackupID(String backupID) { + this.backupID = backupID; + } +} diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/CreateUPgSQLInstanceRequest.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/CreateUPgSQLInstanceRequest.java new file mode 100644 index 00000000..4fa53912 --- /dev/null +++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/CreateUPgSQLInstanceRequest.java @@ -0,0 +1,192 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *
http://www.apache.org/licenses/LICENSE-2.0 + * + *
Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.udbpostgresql.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class CreateUPgSQLInstanceRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Zone") + private String zone; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 实例名称,至少6位 */ + @NotEmpty + @UCloudParam("Name") + private String name; + + /** PostgreSQL的版本,pg10.4:postgresql-10.4,pg13.4:postgresql-13.4 */ + @NotEmpty + @UCloudParam("DBVersion") + private String dbVersion; + + /** DB实例使用的配置参数组id */ + @NotEmpty + @UCloudParam("ParamGroupID") + private Integer paramGroupID; + + /** 管理员密码 */ + @NotEmpty + @UCloudParam("AdminPassword") + private String adminPassword; + + /** 端口默认为5432 */ + @NotEmpty + @UCloudParam("Port") + private Integer port; + + /** 磁盘空间(GB) */ + @NotEmpty + @UCloudParam("DiskSpace") + private String diskSpace; + + /** 机器配置类型,2核4G的机器:o.pgsql2m.medium */ + @NotEmpty + @UCloudParam("MachineType") + private String machineType; + + /** 子网ID */ + @NotEmpty + @UCloudParam("SubnetID") + private String subnetID; + + /** VPC的ID */ + @NotEmpty + @UCloudParam("VPCID") + private String vpcid; + + /** UDB实例模式类型, 可选值如下: "Normal": 普通版UDB实例 "HA": 高可用版UDB实例 默认是"Normal" */ + @UCloudParam("InstanceMode") + private String instanceMode; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getZone() { + return zone; + } + + public void setZone(String zone) { + this.zone = zone; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getDBVersion() { + return dbVersion; + } + + public void setDBVersion(String dbVersion) { + this.dbVersion = dbVersion; + } + + public Integer getParamGroupID() { + return paramGroupID; + } + + public void setParamGroupID(Integer paramGroupID) { + this.paramGroupID = paramGroupID; + } + + public String getAdminPassword() { + return adminPassword; + } + + public void setAdminPassword(String adminPassword) { + this.adminPassword = adminPassword; + } + + public Integer getPort() { + return port; + } + + public void setPort(Integer port) { + this.port = port; + } + + public String getDiskSpace() { + return diskSpace; + } + + public void setDiskSpace(String diskSpace) { + this.diskSpace = diskSpace; + } + + public String getMachineType() { + return machineType; + } + + public void setMachineType(String machineType) { + this.machineType = machineType; + } + + public String getSubnetID() { + return subnetID; + } + + public void setSubnetID(String subnetID) { + this.subnetID = subnetID; + } + + public String getVPCID() { + return vpcid; + } + + public void setVPCID(String vpcid) { + this.vpcid = vpcid; + } + + public String getInstanceMode() { + return instanceMode; + } + + public void setInstanceMode(String instanceMode) { + this.instanceMode = instanceMode; + } +} diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/CreateUPgSQLInstanceResponse.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/CreateUPgSQLInstanceResponse.java new file mode 100644 index 00000000..3e2ba346 --- /dev/null +++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/CreateUPgSQLInstanceResponse.java @@ -0,0 +1,34 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *
http://www.apache.org/licenses/LICENSE-2.0 + * + *
Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.udbpostgresql.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class CreateUPgSQLInstanceResponse extends Response { + + /** 资源ID */ + @SerializedName("InstanceID") + private String instanceID; + + public String getInstanceID() { + return instanceID; + } + + public void setInstanceID(String instanceID) { + this.instanceID = instanceID; + } +} diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/CreateUPgSQLParamTemplateRequest.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/CreateUPgSQLParamTemplateRequest.java new file mode 100644 index 00000000..3b6c3f36 --- /dev/null +++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/CreateUPgSQLParamTemplateRequest.java @@ -0,0 +1,114 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *
http://www.apache.org/licenses/LICENSE-2.0 + * + *
Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.udbpostgresql.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class CreateUPgSQLParamTemplateRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Zone") + private String zone; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 模板名称 */ + @NotEmpty + @UCloudParam("GroupName") + private String groupName; + + /** 基准模板 */ + @NotEmpty + @UCloudParam("SrcGroupID") + private Integer srcGroupID; + + /** 什么版本,以及类型的DB */ + @NotEmpty + @UCloudParam("DBVersion") + private String dbVersion; + + /** 描述信息 */ + @UCloudParam("Description") + private String description; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getZone() { + return zone; + } + + public void setZone(String zone) { + this.zone = zone; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getGroupName() { + return groupName; + } + + public void setGroupName(String groupName) { + this.groupName = groupName; + } + + public Integer getSrcGroupID() { + return srcGroupID; + } + + public void setSrcGroupID(Integer srcGroupID) { + this.srcGroupID = srcGroupID; + } + + public String getDBVersion() { + return dbVersion; + } + + public void setDBVersion(String dbVersion) { + this.dbVersion = dbVersion; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } +} diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/CreateUPgSQLParamTemplateResponse.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/CreateUPgSQLParamTemplateResponse.java new file mode 100644 index 00000000..efc0675e --- /dev/null +++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/CreateUPgSQLParamTemplateResponse.java @@ -0,0 +1,34 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *
http://www.apache.org/licenses/LICENSE-2.0 + * + *
Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.udbpostgresql.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class CreateUPgSQLParamTemplateResponse extends Response { + + /** 创建的模板ID */ + @SerializedName("GroupID") + private Integer groupID; + + public Integer getGroupID() { + return groupID; + } + + public void setGroupID(Integer groupID) { + this.groupID = groupID; + } +} diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/CreateUPgSQLReadonlyRequest.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/CreateUPgSQLReadonlyRequest.java new file mode 100644 index 00000000..500032dd --- /dev/null +++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/CreateUPgSQLReadonlyRequest.java @@ -0,0 +1,231 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *
http://www.apache.org/licenses/LICENSE-2.0 + * + *
Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.udbpostgresql.models;
+
+import cn.ucloud.common.annotation.NotEmpty;
+import cn.ucloud.common.annotation.UCloudParam;
+import cn.ucloud.common.request.Request;
+
+import java.util.List;
+
+public class CreateUPgSQLReadonlyRequest extends Request {
+
+ /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Region")
+ private String region;
+
+ /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Zone")
+ private String zone;
+
+ /**
+ * 项目ID。不填写为默认项目,子帐号必须填写。
+ * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
+ */
+ @UCloudParam("ProjectId")
+ private String projectId;
+
+ /** Db名称 */
+ @NotEmpty
+ @UCloudParam("Name")
+ private String name;
+
+ /** DB端口 */
+ @NotEmpty
+ @UCloudParam("Port")
+ private Integer port;
+
+ /** 磁盘空间 */
+ @NotEmpty
+ @UCloudParam("DiskSpace")
+ private Integer diskSpace;
+
+ /** 机器配置类型,2核4G的机器:o.pgsql2m.medium */
+ @NotEmpty
+ @UCloudParam("MachineType")
+ private String machineType;
+
+ /** 同步的源库 */
+ @NotEmpty
+ @UCloudParam("SrcInstanceID")
+ private String srcInstanceID;
+
+ /** 子网ID */
+ @UCloudParam("SubnetID")
+ private String subnetID;
+
+ /** VPCID */
+ @UCloudParam("VPCID")
+ private String vpcid;
+
+ /** */
+ @UCloudParam("Labels")
+ private List Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.udbpostgresql.models;
+
+
+import cn.ucloud.common.response.Response;
+
+import com.google.gson.annotations.SerializedName;
+
+public class CreateUPgSQLReadonlyResponse extends Response {
+
+ /** 资源ID */
+ @SerializedName("InstanceID")
+ private String instanceID;
+
+ public String getInstanceID() {
+ return instanceID;
+ }
+
+ public void setInstanceID(String instanceID) {
+ this.instanceID = instanceID;
+ }
+}
diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/DeleteUPgSQLInstanceRequest.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/DeleteUPgSQLInstanceRequest.java
new file mode 100644
index 00000000..b34e603c
--- /dev/null
+++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/DeleteUPgSQLInstanceRequest.java
@@ -0,0 +1,76 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.udbpostgresql.models;
+
+
+import cn.ucloud.common.annotation.NotEmpty;
+import cn.ucloud.common.annotation.UCloudParam;
+import cn.ucloud.common.request.Request;
+
+public class DeleteUPgSQLInstanceRequest extends Request {
+
+ /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Region")
+ private String region;
+
+ /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Zone")
+ private String zone;
+
+ /**
+ * 项目ID。不填写为默认项目,子帐号必须填写。
+ * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
+ */
+ @UCloudParam("ProjectId")
+ private String projectId;
+
+ /** 实例ID */
+ @NotEmpty
+ @UCloudParam("InstanceID")
+ private String instanceID;
+
+ public String getRegion() {
+ return region;
+ }
+
+ public void setRegion(String region) {
+ this.region = region;
+ }
+
+ public String getZone() {
+ return zone;
+ }
+
+ public void setZone(String zone) {
+ this.zone = zone;
+ }
+
+ public String getProjectId() {
+ return projectId;
+ }
+
+ public void setProjectId(String projectId) {
+ this.projectId = projectId;
+ }
+
+ public String getInstanceID() {
+ return instanceID;
+ }
+
+ public void setInstanceID(String instanceID) {
+ this.instanceID = instanceID;
+ }
+}
diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/DeleteUPgSQLInstanceResponse.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/DeleteUPgSQLInstanceResponse.java
new file mode 100644
index 00000000..d8b15312
--- /dev/null
+++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/DeleteUPgSQLInstanceResponse.java
@@ -0,0 +1,20 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.udbpostgresql.models;
+
+
+
+import cn.ucloud.common.response.Response;
+
+public class DeleteUPgSQLInstanceResponse extends Response {}
diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/DeleteUPgSQLParamTemplateRequest.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/DeleteUPgSQLParamTemplateRequest.java
new file mode 100644
index 00000000..75ce25c6
--- /dev/null
+++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/DeleteUPgSQLParamTemplateRequest.java
@@ -0,0 +1,76 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.udbpostgresql.models;
+
+
+import cn.ucloud.common.annotation.NotEmpty;
+import cn.ucloud.common.annotation.UCloudParam;
+import cn.ucloud.common.request.Request;
+
+public class DeleteUPgSQLParamTemplateRequest extends Request {
+
+ /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Region")
+ private String region;
+
+ /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Zone")
+ private String zone;
+
+ /**
+ * 项目ID。不填写为默认项目,子帐号必须填写。
+ * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
+ */
+ @UCloudParam("ProjectId")
+ private String projectId;
+
+ /** 模板ID */
+ @NotEmpty
+ @UCloudParam("GroupID")
+ private Integer groupID;
+
+ public String getRegion() {
+ return region;
+ }
+
+ public void setRegion(String region) {
+ this.region = region;
+ }
+
+ public String getZone() {
+ return zone;
+ }
+
+ public void setZone(String zone) {
+ this.zone = zone;
+ }
+
+ public String getProjectId() {
+ return projectId;
+ }
+
+ public void setProjectId(String projectId) {
+ this.projectId = projectId;
+ }
+
+ public Integer getGroupID() {
+ return groupID;
+ }
+
+ public void setGroupID(Integer groupID) {
+ this.groupID = groupID;
+ }
+}
diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/DeleteUPgSQLParamTemplateResponse.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/DeleteUPgSQLParamTemplateResponse.java
new file mode 100644
index 00000000..003fd5bf
--- /dev/null
+++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/DeleteUPgSQLParamTemplateResponse.java
@@ -0,0 +1,20 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.udbpostgresql.models;
+
+
+
+import cn.ucloud.common.response.Response;
+
+public class DeleteUPgSQLParamTemplateResponse extends Response {}
diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/DownloadUPgSQLParamTemplateRequest.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/DownloadUPgSQLParamTemplateRequest.java
new file mode 100644
index 00000000..63ea73e8
--- /dev/null
+++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/DownloadUPgSQLParamTemplateRequest.java
@@ -0,0 +1,76 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.udbpostgresql.models;
+
+
+import cn.ucloud.common.annotation.NotEmpty;
+import cn.ucloud.common.annotation.UCloudParam;
+import cn.ucloud.common.request.Request;
+
+public class DownloadUPgSQLParamTemplateRequest extends Request {
+
+ /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Region")
+ private String region;
+
+ /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Zone")
+ private String zone;
+
+ /**
+ * 项目ID。不填写为默认项目,子帐号必须填写。
+ * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
+ */
+ @UCloudParam("ProjectId")
+ private String projectId;
+
+ /** 参数模板id */
+ @NotEmpty
+ @UCloudParam("GroupID")
+ private Integer groupID;
+
+ public String getRegion() {
+ return region;
+ }
+
+ public void setRegion(String region) {
+ this.region = region;
+ }
+
+ public String getZone() {
+ return zone;
+ }
+
+ public void setZone(String zone) {
+ this.zone = zone;
+ }
+
+ public String getProjectId() {
+ return projectId;
+ }
+
+ public void setProjectId(String projectId) {
+ this.projectId = projectId;
+ }
+
+ public Integer getGroupID() {
+ return groupID;
+ }
+
+ public void setGroupID(Integer groupID) {
+ this.groupID = groupID;
+ }
+}
diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/DownloadUPgSQLParamTemplateResponse.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/DownloadUPgSQLParamTemplateResponse.java
new file mode 100644
index 00000000..3b32daf5
--- /dev/null
+++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/DownloadUPgSQLParamTemplateResponse.java
@@ -0,0 +1,34 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.udbpostgresql.models;
+
+
+import cn.ucloud.common.response.Response;
+
+import com.google.gson.annotations.SerializedName;
+
+public class DownloadUPgSQLParamTemplateResponse extends Response {
+
+ /** base64编码过的 */
+ @SerializedName("Content")
+ private String content;
+
+ public String getContent() {
+ return content;
+ }
+
+ public void setContent(String content) {
+ this.content = content;
+ }
+}
diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLBackupStrategyRequest.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLBackupStrategyRequest.java
new file mode 100644
index 00000000..c06a7e4a
--- /dev/null
+++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLBackupStrategyRequest.java
@@ -0,0 +1,76 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.udbpostgresql.models;
+
+
+import cn.ucloud.common.annotation.NotEmpty;
+import cn.ucloud.common.annotation.UCloudParam;
+import cn.ucloud.common.request.Request;
+
+public class GetUPgSQLBackupStrategyRequest extends Request {
+
+ /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Region")
+ private String region;
+
+ /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Zone")
+ private String zone;
+
+ /**
+ * 项目ID。不填写为默认项目,子帐号必须填写。
+ * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
+ */
+ @UCloudParam("ProjectId")
+ private String projectId;
+
+ /** DB实例Id */
+ @NotEmpty
+ @UCloudParam("InstanceID")
+ private String instanceID;
+
+ public String getRegion() {
+ return region;
+ }
+
+ public void setRegion(String region) {
+ this.region = region;
+ }
+
+ public String getZone() {
+ return zone;
+ }
+
+ public void setZone(String zone) {
+ this.zone = zone;
+ }
+
+ public String getProjectId() {
+ return projectId;
+ }
+
+ public void setProjectId(String projectId) {
+ this.projectId = projectId;
+ }
+
+ public String getInstanceID() {
+ return instanceID;
+ }
+
+ public void setInstanceID(String instanceID) {
+ this.instanceID = instanceID;
+ }
+}
diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLBackupStrategyResponse.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLBackupStrategyResponse.java
new file mode 100644
index 00000000..499b431c
--- /dev/null
+++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLBackupStrategyResponse.java
@@ -0,0 +1,58 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.udbpostgresql.models;
+
+
+import cn.ucloud.common.response.Response;
+
+import com.google.gson.annotations.SerializedName;
+
+public class GetUPgSQLBackupStrategyResponse extends Response {
+
+ /** 自动备份预计开始时间范围 */
+ @SerializedName("BackupTimeRange")
+ private String backupTimeRange;
+
+ /** 自动备份预期星期几(1~7)开始 */
+ @SerializedName("BackupWeek")
+ private String backupWeek;
+
+ /** 默认的备份方式 */
+ @SerializedName("BackupMethod")
+ private String backupMethod;
+
+ public String getBackupTimeRange() {
+ return backupTimeRange;
+ }
+
+ public void setBackupTimeRange(String backupTimeRange) {
+ this.backupTimeRange = backupTimeRange;
+ }
+
+ public String getBackupWeek() {
+ return backupWeek;
+ }
+
+ public void setBackupWeek(String backupWeek) {
+ this.backupWeek = backupWeek;
+ }
+
+ public String getBackupMethod() {
+ return backupMethod;
+ }
+
+ public void setBackupMethod(String backupMethod) {
+ this.backupMethod = backupMethod;
+ }
+}
diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLBackupURLRequest.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLBackupURLRequest.java
new file mode 100644
index 00000000..ddf41334
--- /dev/null
+++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLBackupURLRequest.java
@@ -0,0 +1,89 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.udbpostgresql.models;
+
+
+import cn.ucloud.common.annotation.NotEmpty;
+import cn.ucloud.common.annotation.UCloudParam;
+import cn.ucloud.common.request.Request;
+
+public class GetUPgSQLBackupURLRequest extends Request {
+
+ /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Region")
+ private String region;
+
+ /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Zone")
+ private String zone;
+
+ /**
+ * 项目ID。不填写为默认项目,子帐号必须填写。
+ * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
+ */
+ @UCloudParam("ProjectId")
+ private String projectId;
+
+ /** DB实例Id */
+ @NotEmpty
+ @UCloudParam("InstanceID")
+ private String instanceID;
+
+ /** 备份Id */
+ @NotEmpty
+ @UCloudParam("BackupID")
+ private String backupID;
+
+ public String getRegion() {
+ return region;
+ }
+
+ public void setRegion(String region) {
+ this.region = region;
+ }
+
+ public String getZone() {
+ return zone;
+ }
+
+ public void setZone(String zone) {
+ this.zone = zone;
+ }
+
+ public String getProjectId() {
+ return projectId;
+ }
+
+ public void setProjectId(String projectId) {
+ this.projectId = projectId;
+ }
+
+ public String getInstanceID() {
+ return instanceID;
+ }
+
+ public void setInstanceID(String instanceID) {
+ this.instanceID = instanceID;
+ }
+
+ public String getBackupID() {
+ return backupID;
+ }
+
+ public void setBackupID(String backupID) {
+ this.backupID = backupID;
+ }
+}
diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLBackupURLResponse.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLBackupURLResponse.java
new file mode 100644
index 00000000..d2da29a1
--- /dev/null
+++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLBackupURLResponse.java
@@ -0,0 +1,46 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.udbpostgresql.models;
+
+
+import cn.ucloud.common.response.Response;
+
+import com.google.gson.annotations.SerializedName;
+
+public class GetUPgSQLBackupURLResponse extends Response {
+
+ /** DB实例备份文件公网的地址 */
+ @SerializedName("BackupPath")
+ private String backupPath;
+
+ /** DB实例备份文件内网的地址 */
+ @SerializedName("InnerBackupPath")
+ private String innerBackupPath;
+
+ public String getBackupPath() {
+ return backupPath;
+ }
+
+ public void setBackupPath(String backupPath) {
+ this.backupPath = backupPath;
+ }
+
+ public String getInnerBackupPath() {
+ return innerBackupPath;
+ }
+
+ public void setInnerBackupPath(String innerBackupPath) {
+ this.innerBackupPath = innerBackupPath;
+ }
+}
diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLInstanceLogRequest.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLInstanceLogRequest.java
new file mode 100644
index 00000000..4c165ed1
--- /dev/null
+++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLInstanceLogRequest.java
@@ -0,0 +1,140 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.udbpostgresql.models;
+
+
+import cn.ucloud.common.annotation.NotEmpty;
+import cn.ucloud.common.annotation.UCloudParam;
+import cn.ucloud.common.request.Request;
+
+public class GetUPgSQLInstanceLogRequest extends Request {
+
+ /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Region")
+ private String region;
+
+ /**
+ * 项目ID。不填写为默认项目,子帐号必须填写。
+ * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
+ */
+ @UCloudParam("ProjectId")
+ private String projectId;
+
+ /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Zone")
+ private String zone;
+
+ /** 日志类型 */
+ @NotEmpty
+ @UCloudParam("LogType")
+ private String logType;
+
+ /** 公司ID */
+ @NotEmpty
+ @UCloudParam("CompanyID")
+ private Integer companyID;
+
+ /** 账户ID */
+ @NotEmpty
+ @UCloudParam("AccountID")
+ private Integer accountID;
+
+ /** 起始时间,需使用时间戳 */
+ @NotEmpty
+ @UCloudParam("BeginTime")
+ private Integer beginTime;
+
+ /** 实例资源ID */
+ @NotEmpty
+ @UCloudParam("InstanceID")
+ private String instanceID;
+
+ /** 结束时间,需使用时间戳,结束时间需大于起始时间 实时查询的时候不需要传 */
+ @UCloudParam("EndTime")
+ private Integer endTime;
+
+ public String getRegion() {
+ return region;
+ }
+
+ public void setRegion(String region) {
+ this.region = region;
+ }
+
+ public String getProjectId() {
+ return projectId;
+ }
+
+ public void setProjectId(String projectId) {
+ this.projectId = projectId;
+ }
+
+ public String getZone() {
+ return zone;
+ }
+
+ public void setZone(String zone) {
+ this.zone = zone;
+ }
+
+ public String getLogType() {
+ return logType;
+ }
+
+ public void setLogType(String logType) {
+ this.logType = logType;
+ }
+
+ public Integer getCompanyID() {
+ return companyID;
+ }
+
+ public void setCompanyID(Integer companyID) {
+ this.companyID = companyID;
+ }
+
+ public Integer getAccountID() {
+ return accountID;
+ }
+
+ public void setAccountID(Integer accountID) {
+ this.accountID = accountID;
+ }
+
+ public Integer getBeginTime() {
+ return beginTime;
+ }
+
+ public void setBeginTime(Integer beginTime) {
+ this.beginTime = beginTime;
+ }
+
+ public String getInstanceID() {
+ return instanceID;
+ }
+
+ public void setInstanceID(String instanceID) {
+ this.instanceID = instanceID;
+ }
+
+ public Integer getEndTime() {
+ return endTime;
+ }
+
+ public void setEndTime(Integer endTime) {
+ this.endTime = endTime;
+ }
+}
diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLInstanceLogResponse.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLInstanceLogResponse.java
new file mode 100644
index 00000000..7f79d444
--- /dev/null
+++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLInstanceLogResponse.java
@@ -0,0 +1,34 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.udbpostgresql.models;
+
+
+import cn.ucloud.common.response.Response;
+
+import com.google.gson.annotations.SerializedName;
+
+public class GetUPgSQLInstanceLogResponse extends Response {
+
+ /** 返回的日志信息 */
+ @SerializedName("Log")
+ private String log;
+
+ public String getLog() {
+ return log;
+ }
+
+ public void setLog(String log) {
+ this.log = log;
+ }
+}
diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLInstanceParamRequest.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLInstanceParamRequest.java
new file mode 100644
index 00000000..0b089073
--- /dev/null
+++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLInstanceParamRequest.java
@@ -0,0 +1,76 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.udbpostgresql.models;
+
+
+import cn.ucloud.common.annotation.NotEmpty;
+import cn.ucloud.common.annotation.UCloudParam;
+import cn.ucloud.common.request.Request;
+
+public class GetUPgSQLInstanceParamRequest extends Request {
+
+ /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Region")
+ private String region;
+
+ /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Zone")
+ private String zone;
+
+ /**
+ * 项目ID。不填写为默认项目,子帐号必须填写。
+ * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
+ */
+ @UCloudParam("ProjectId")
+ private String projectId;
+
+ /** 实例ID */
+ @NotEmpty
+ @UCloudParam("InstanceID")
+ private String instanceID;
+
+ public String getRegion() {
+ return region;
+ }
+
+ public void setRegion(String region) {
+ this.region = region;
+ }
+
+ public String getZone() {
+ return zone;
+ }
+
+ public void setZone(String zone) {
+ this.zone = zone;
+ }
+
+ public String getProjectId() {
+ return projectId;
+ }
+
+ public void setProjectId(String projectId) {
+ this.projectId = projectId;
+ }
+
+ public String getInstanceID() {
+ return instanceID;
+ }
+
+ public void setInstanceID(String instanceID) {
+ this.instanceID = instanceID;
+ }
+}
diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLInstanceParamResponse.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLInstanceParamResponse.java
new file mode 100644
index 00000000..06250891
--- /dev/null
+++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLInstanceParamResponse.java
@@ -0,0 +1,122 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.udbpostgresql.models;
+
+import cn.ucloud.common.response.Response;
+
+import com.google.gson.annotations.SerializedName;
+
+import java.util.List;
+
+public class GetUPgSQLInstanceParamResponse extends Response {
+
+ /** 参数的键值对信息 */
+ @SerializedName("Data")
+ private List data;
+
+ public List getData() {
+ return data;
+ }
+
+ public void setData(List data) {
+ this.data = data;
+ }
+
+ public static class Param extends Response {
+
+ /** 参数Key */
+ @SerializedName("Key")
+ private String key;
+
+ /** 参数值 */
+ @SerializedName("Value")
+ private String value;
+
+ /** 值类型 */
+ @SerializedName("ValueType")
+ private Integer valueType;
+
+ /** 允许的值 */
+ @SerializedName("AllowedVal")
+ private String allowedVal;
+
+ /** 允许类型 */
+ @SerializedName("ApplyType")
+ private Integer applyType;
+
+ /** 是否可以修改 */
+ @SerializedName("Modifiable")
+ private Boolean modifiable;
+
+ /** 参数格式类型 */
+ @SerializedName("FormatType")
+ private Integer formatType;
+
+ public String getKey() {
+ return key;
+ }
+
+ public void setKey(String key) {
+ this.key = key;
+ }
+
+ public String getValue() {
+ return value;
+ }
+
+ public void setValue(String value) {
+ this.value = value;
+ }
+
+ public Integer getValueType() {
+ return valueType;
+ }
+
+ public void setValueType(Integer valueType) {
+ this.valueType = valueType;
+ }
+
+ public String getAllowedVal() {
+ return allowedVal;
+ }
+
+ public void setAllowedVal(String allowedVal) {
+ this.allowedVal = allowedVal;
+ }
+
+ public Integer getApplyType() {
+ return applyType;
+ }
+
+ public void setApplyType(Integer applyType) {
+ this.applyType = applyType;
+ }
+
+ public Boolean getModifiable() {
+ return modifiable;
+ }
+
+ public void setModifiable(Boolean modifiable) {
+ this.modifiable = modifiable;
+ }
+
+ public Integer getFormatType() {
+ return formatType;
+ }
+
+ public void setFormatType(Integer formatType) {
+ this.formatType = formatType;
+ }
+ }
+}
diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLInstancePriceRequest.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLInstancePriceRequest.java
new file mode 100644
index 00000000..0c1cbc7e
--- /dev/null
+++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLInstancePriceRequest.java
@@ -0,0 +1,126 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.udbpostgresql.models;
+
+
+import cn.ucloud.common.annotation.NotEmpty;
+import cn.ucloud.common.annotation.UCloudParam;
+import cn.ucloud.common.request.Request;
+
+public class GetUPgSQLInstancePriceRequest extends Request {
+
+ /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Region")
+ private String region;
+
+ /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Zone")
+ private String zone;
+
+ /**
+ * 项目ID。不填写为默认项目,子帐号必须填写。
+ * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
+ */
+ @UCloudParam("ProjectId")
+ private String projectId;
+
+ /** 机器配置类型 参考2C4G机器:o.pgsql2m.medium */
+ @NotEmpty
+ @UCloudParam("MachineType")
+ private String machineType;
+
+ /** 磁盘空间(GB) */
+ @NotEmpty
+ @UCloudParam("DiskSpace")
+ private Integer diskSpace;
+
+ /** UDB实例模式类型, 可选值如下: "Normal": 普通版UDB实例 "HA": 高可用版UDB实例 */
+ @NotEmpty
+ @UCloudParam("InstanceMode")
+ private String instanceMode;
+
+ /** 计费模式。枚举值为: Year,按年付费; Month,按月付费; Dynamic,按小时付费(需开启权限)。默认为月付 */
+ @UCloudParam("ChargeType")
+ private String chargeType;
+
+ /** 购买时长。默认: 1。按小时购买(Dynamic)时无需此参数。 月付时,此参数传0,代表了购买至月末。 */
+ @UCloudParam("Quantity")
+ private Integer quantity;
+
+ public String getRegion() {
+ return region;
+ }
+
+ public void setRegion(String region) {
+ this.region = region;
+ }
+
+ public String getZone() {
+ return zone;
+ }
+
+ public void setZone(String zone) {
+ this.zone = zone;
+ }
+
+ public String getProjectId() {
+ return projectId;
+ }
+
+ public void setProjectId(String projectId) {
+ this.projectId = projectId;
+ }
+
+ public String getMachineType() {
+ return machineType;
+ }
+
+ public void setMachineType(String machineType) {
+ this.machineType = machineType;
+ }
+
+ public Integer getDiskSpace() {
+ return diskSpace;
+ }
+
+ public void setDiskSpace(Integer diskSpace) {
+ this.diskSpace = diskSpace;
+ }
+
+ public String getInstanceMode() {
+ return instanceMode;
+ }
+
+ public void setInstanceMode(String instanceMode) {
+ this.instanceMode = instanceMode;
+ }
+
+ public String getChargeType() {
+ return chargeType;
+ }
+
+ public void setChargeType(String chargeType) {
+ this.chargeType = chargeType;
+ }
+
+ public Integer getQuantity() {
+ return quantity;
+ }
+
+ public void setQuantity(Integer quantity) {
+ this.quantity = quantity;
+ }
+}
diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLInstancePriceResponse.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLInstancePriceResponse.java
new file mode 100644
index 00000000..665e17ff
--- /dev/null
+++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLInstancePriceResponse.java
@@ -0,0 +1,74 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.udbpostgresql.models;
+
+import cn.ucloud.common.response.Response;
+
+import com.google.gson.annotations.SerializedName;
+
+import java.util.List;
+
+public class GetUPgSQLInstancePriceResponse extends Response {
+
+ /** 价格列表 */
+ @SerializedName("PriceSet")
+ private List Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.udbpostgresql.models;
+
+
+import cn.ucloud.common.annotation.NotEmpty;
+import cn.ucloud.common.annotation.UCloudParam;
+import cn.ucloud.common.request.Request;
+
+public class GetUPgSQLInstanceRequest extends Request {
+
+ /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Region")
+ private String region;
+
+ /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @UCloudParam("Zone")
+ private String zone;
+
+ /**
+ * 项目ID。不填写为默认项目,子帐号必须填写。
+ * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
+ */
+ @UCloudParam("ProjectId")
+ private String projectId;
+
+ /** 资源ID */
+ @NotEmpty
+ @UCloudParam("InstanceID")
+ private String instanceID;
+
+ public String getRegion() {
+ return region;
+ }
+
+ public void setRegion(String region) {
+ this.region = region;
+ }
+
+ public String getZone() {
+ return zone;
+ }
+
+ public void setZone(String zone) {
+ this.zone = zone;
+ }
+
+ public String getProjectId() {
+ return projectId;
+ }
+
+ public void setProjectId(String projectId) {
+ this.projectId = projectId;
+ }
+
+ public String getInstanceID() {
+ return instanceID;
+ }
+
+ public void setInstanceID(String instanceID) {
+ this.instanceID = instanceID;
+ }
+}
diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLInstanceResponse.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLInstanceResponse.java
new file mode 100644
index 00000000..a609b6a5
--- /dev/null
+++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLInstanceResponse.java
@@ -0,0 +1,404 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.udbpostgresql.models;
+
+
+import cn.ucloud.common.response.Response;
+
+import com.google.gson.annotations.SerializedName;
+
+public class GetUPgSQLInstanceResponse extends Response {
+
+ /** DataSet */
+ @SerializedName("DataSet")
+ private UDBInstance dataSet;
+
+ public UDBInstance getDataSet() {
+ return dataSet;
+ }
+
+ public void setDataSet(UDBInstance dataSet) {
+ this.dataSet = dataSet;
+ }
+
+ public static class UDBInstance extends Response {
+
+ /** DB实例所在可用区 */
+ @SerializedName("Zone")
+ private String zone;
+
+ /** 备份所在可用区 */
+ @SerializedName("BackupZone")
+ private String backupZone;
+
+ /** DB实例id */
+ @SerializedName("InstanceID")
+ private String instanceID;
+
+ /** 实例名称 */
+ @SerializedName("Name")
+ private String name;
+
+ /** DB 版本 */
+ @SerializedName("DBVersion")
+ private String dbVersion;
+
+ /** DB实例使用的配置参数组id */
+ @SerializedName("ParamGroupID")
+ private Integer paramGroupID;
+
+ /** 管理员帐户名,默认root */
+ @SerializedName("AdminUser")
+ private String adminUser;
+
+ /** DBip */
+ @SerializedName("IP")
+ private String ip;
+
+ /** DB port */
+ @SerializedName("Port")
+ private Integer port;
+
+ /** VPC的ID */
+ @SerializedName("VPCID")
+ private String vpcid;
+
+ /** 子网ID */
+ @SerializedName("SubnetID")
+ private String subnetID;
+
+ /** 备注 */
+ @SerializedName("Remark")
+ private String remark;
+
+ /** 备份文件保留的数量,默认7次 */
+ @SerializedName("BackupCount")
+ private Integer backupCount;
+
+ /** 备份开始时间,单位小时计,默认3点 */
+ @SerializedName("BackupBeginTime")
+ private Integer backupBeginTime;
+
+ /** 备份的时间段,范围[0,23] */
+ @SerializedName("BackupTimeRange")
+ private Integer backupTimeRange;
+
+ /**
+ * 用于设置备份策略的备份日期标记位。共7位,每一位为一周中一天的备份情况 0表示关闭当天备份,1表示打开当天备份。最右边的一位 为星期天的备份开关,其余从右到左依次为星期一到星期
+ * 六的备份配置开关,每周必须至少设置两天备份。 例如:1100000 表示打开星期六和星期五的自动备份功能
+ */
+ @SerializedName("BackupDate")
+ private String backupDate;
+
+ /**
+ * DB状态标记
+ * Init:初始化中,Fail:安装失败,Starting:启动中,Running:运行,Shutdown:关闭中,Shutoff:已关闭,Delete:已删除,Upgrading:升级中,Promoting:提升为独库进行中,Recovering:恢复中,Recover
+ * fail:恢复失败
+ */
+ @SerializedName("State")
+ private String state;
+
+ /** DB实例创建时间,采用UTC计时时间戳 */
+ @SerializedName("CreateTime")
+ private Integer createTime;
+
+ /** DB实例修改时间,采用UTC计时时间戳 */
+ @SerializedName("ModifyTime")
+ private Integer modifyTime;
+
+ /** DB实例过期时间,采用UTC计时时间戳 */
+ @SerializedName("ExpiredTime")
+ private Integer expiredTime;
+
+ /** CPU限制(核),默认根据配置机型 */
+ @SerializedName("Cpu")
+ private Integer cpu;
+
+ /** 内存限制(MB),默认根据配置机型 */
+ @SerializedName("MemoryLimit")
+ private Integer memoryLimit;
+
+ /** 磁盘空间(GB), 默认根据配置机型 */
+ @SerializedName("DiskSpace")
+ private Integer diskSpace;
+
+ /** DB实例磁盘已使用空间,单位GB */
+ @SerializedName("DiskUsedSize")
+ private Double diskUsedSize;
+
+ /** DB实例数据文件大小,单位GB */
+ @SerializedName("DataFileSize")
+ private Double dataFileSize;
+
+ /** DB实例系统文件大小,单位GB */
+ @SerializedName("SystemFileSize")
+ private Double systemFileSize;
+
+ /** DB实例日志文件大小,单位GB */
+ @SerializedName("LogFileSize")
+ private Double logFileSize;
+
+ /** Normal/HA,普通/高可用 */
+ @SerializedName("InstanceMode")
+ private String instanceMode;
+
+ /** 配置机型名称 */
+ @SerializedName("MachineType")
+ private String machineType;
+
+ /** 安全组版本 */
+ @SerializedName("SecGroupStatus")
+ private Integer secGroupStatus;
+
+ public String getZone() {
+ return zone;
+ }
+
+ public void setZone(String zone) {
+ this.zone = zone;
+ }
+
+ public String getBackupZone() {
+ return backupZone;
+ }
+
+ public void setBackupZone(String backupZone) {
+ this.backupZone = backupZone;
+ }
+
+ public String getInstanceID() {
+ return instanceID;
+ }
+
+ public void setInstanceID(String instanceID) {
+ this.instanceID = instanceID;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public String getDBVersion() {
+ return dbVersion;
+ }
+
+ public void setDBVersion(String dbVersion) {
+ this.dbVersion = dbVersion;
+ }
+
+ public Integer getParamGroupID() {
+ return paramGroupID;
+ }
+
+ public void setParamGroupID(Integer paramGroupID) {
+ this.paramGroupID = paramGroupID;
+ }
+
+ public String getAdminUser() {
+ return adminUser;
+ }
+
+ public void setAdminUser(String adminUser) {
+ this.adminUser = adminUser;
+ }
+
+ public String getIP() {
+ return ip;
+ }
+
+ public void setIP(String ip) {
+ this.ip = ip;
+ }
+
+ public Integer getPort() {
+ return port;
+ }
+
+ public void setPort(Integer port) {
+ this.port = port;
+ }
+
+ public String getVPCID() {
+ return vpcid;
+ }
+
+ public void setVPCID(String vpcid) {
+ this.vpcid = vpcid;
+ }
+
+ public String getSubnetID() {
+ return subnetID;
+ }
+
+ public void setSubnetID(String subnetID) {
+ this.subnetID = subnetID;
+ }
+
+ public String getRemark() {
+ return remark;
+ }
+
+ public void setRemark(String remark) {
+ this.remark = remark;
+ }
+
+ public Integer getBackupCount() {
+ return backupCount;
+ }
+
+ public void setBackupCount(Integer backupCount) {
+ this.backupCount = backupCount;
+ }
+
+ public Integer getBackupBeginTime() {
+ return backupBeginTime;
+ }
+
+ public void setBackupBeginTime(Integer backupBeginTime) {
+ this.backupBeginTime = backupBeginTime;
+ }
+
+ public Integer getBackupTimeRange() {
+ return backupTimeRange;
+ }
+
+ public void setBackupTimeRange(Integer backupTimeRange) {
+ this.backupTimeRange = backupTimeRange;
+ }
+
+ public String getBackupDate() {
+ return backupDate;
+ }
+
+ public void setBackupDate(String backupDate) {
+ this.backupDate = backupDate;
+ }
+
+ public String getState() {
+ return state;
+ }
+
+ public void setState(String state) {
+ this.state = state;
+ }
+
+ public Integer getCreateTime() {
+ return createTime;
+ }
+
+ public void setCreateTime(Integer createTime) {
+ this.createTime = createTime;
+ }
+
+ public Integer getModifyTime() {
+ return modifyTime;
+ }
+
+ public void setModifyTime(Integer modifyTime) {
+ this.modifyTime = modifyTime;
+ }
+
+ public Integer getExpiredTime() {
+ return expiredTime;
+ }
+
+ public void setExpiredTime(Integer expiredTime) {
+ this.expiredTime = expiredTime;
+ }
+
+ public Integer getCpu() {
+ return cpu;
+ }
+
+ public void setCpu(Integer cpu) {
+ this.cpu = cpu;
+ }
+
+ public Integer getMemoryLimit() {
+ return memoryLimit;
+ }
+
+ public void setMemoryLimit(Integer memoryLimit) {
+ this.memoryLimit = memoryLimit;
+ }
+
+ public Integer getDiskSpace() {
+ return diskSpace;
+ }
+
+ public void setDiskSpace(Integer diskSpace) {
+ this.diskSpace = diskSpace;
+ }
+
+ public Double getDiskUsedSize() {
+ return diskUsedSize;
+ }
+
+ public void setDiskUsedSize(Double diskUsedSize) {
+ this.diskUsedSize = diskUsedSize;
+ }
+
+ public Double getDataFileSize() {
+ return dataFileSize;
+ }
+
+ public void setDataFileSize(Double dataFileSize) {
+ this.dataFileSize = dataFileSize;
+ }
+
+ public Double getSystemFileSize() {
+ return systemFileSize;
+ }
+
+ public void setSystemFileSize(Double systemFileSize) {
+ this.systemFileSize = systemFileSize;
+ }
+
+ public Double getLogFileSize() {
+ return logFileSize;
+ }
+
+ public void setLogFileSize(Double logFileSize) {
+ this.logFileSize = logFileSize;
+ }
+
+ public String getInstanceMode() {
+ return instanceMode;
+ }
+
+ public void setInstanceMode(String instanceMode) {
+ this.instanceMode = instanceMode;
+ }
+
+ public String getMachineType() {
+ return machineType;
+ }
+
+ public void setMachineType(String machineType) {
+ this.machineType = machineType;
+ }
+
+ public Integer getSecGroupStatus() {
+ return secGroupStatus;
+ }
+
+ public void setSecGroupStatus(Integer secGroupStatus) {
+ this.secGroupStatus = secGroupStatus;
+ }
+ }
+}
diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLParamTemplateRequest.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLParamTemplateRequest.java
new file mode 100644
index 00000000..9d70f837
--- /dev/null
+++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLParamTemplateRequest.java
@@ -0,0 +1,76 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.udbpostgresql.models;
+
+
+import cn.ucloud.common.annotation.NotEmpty;
+import cn.ucloud.common.annotation.UCloudParam;
+import cn.ucloud.common.request.Request;
+
+public class GetUPgSQLParamTemplateRequest extends Request {
+
+ /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Region")
+ private String region;
+
+ /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Zone")
+ private String zone;
+
+ /**
+ * 项目ID。不填写为默认项目,子帐号必须填写。
+ * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
+ */
+ @UCloudParam("ProjectId")
+ private String projectId;
+
+ /** 模板ID */
+ @NotEmpty
+ @UCloudParam("GroupID")
+ private Integer groupID;
+
+ public String getRegion() {
+ return region;
+ }
+
+ public void setRegion(String region) {
+ this.region = region;
+ }
+
+ public String getZone() {
+ return zone;
+ }
+
+ public void setZone(String zone) {
+ this.zone = zone;
+ }
+
+ public String getProjectId() {
+ return projectId;
+ }
+
+ public void setProjectId(String projectId) {
+ this.projectId = projectId;
+ }
+
+ public Integer getGroupID() {
+ return groupID;
+ }
+
+ public void setGroupID(Integer groupID) {
+ this.groupID = groupID;
+ }
+}
diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLParamTemplateResponse.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLParamTemplateResponse.java
new file mode 100644
index 00000000..3283779e
--- /dev/null
+++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLParamTemplateResponse.java
@@ -0,0 +1,122 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.udbpostgresql.models;
+
+import cn.ucloud.common.response.Response;
+
+import com.google.gson.annotations.SerializedName;
+
+import java.util.List;
+
+public class GetUPgSQLParamTemplateResponse extends Response {
+
+ /** 参数列表 */
+ @SerializedName("Data")
+ private List data;
+
+ public List getData() {
+ return data;
+ }
+
+ public void setData(List data) {
+ this.data = data;
+ }
+
+ public static class Param extends Response {
+
+ /** 参数Key */
+ @SerializedName("Key")
+ private String key;
+
+ /** 参数值 */
+ @SerializedName("Value")
+ private String value;
+
+ /** 值类型 */
+ @SerializedName("ValueType")
+ private Integer valueType;
+
+ /** 允许的值 */
+ @SerializedName("AllowedVal")
+ private String allowedVal;
+
+ /** 允许类型 */
+ @SerializedName("ApplyType")
+ private Integer applyType;
+
+ /** 是否可以修改 */
+ @SerializedName("Modifiable")
+ private Boolean modifiable;
+
+ /** 参数格式类型 */
+ @SerializedName("FormatType")
+ private Integer formatType;
+
+ public String getKey() {
+ return key;
+ }
+
+ public void setKey(String key) {
+ this.key = key;
+ }
+
+ public String getValue() {
+ return value;
+ }
+
+ public void setValue(String value) {
+ this.value = value;
+ }
+
+ public Integer getValueType() {
+ return valueType;
+ }
+
+ public void setValueType(Integer valueType) {
+ this.valueType = valueType;
+ }
+
+ public String getAllowedVal() {
+ return allowedVal;
+ }
+
+ public void setAllowedVal(String allowedVal) {
+ this.allowedVal = allowedVal;
+ }
+
+ public Integer getApplyType() {
+ return applyType;
+ }
+
+ public void setApplyType(Integer applyType) {
+ this.applyType = applyType;
+ }
+
+ public Boolean getModifiable() {
+ return modifiable;
+ }
+
+ public void setModifiable(Boolean modifiable) {
+ this.modifiable = modifiable;
+ }
+
+ public Integer getFormatType() {
+ return formatType;
+ }
+
+ public void setFormatType(Integer formatType) {
+ this.formatType = formatType;
+ }
+ }
+}
diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLUpgradePriceRequest.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLUpgradePriceRequest.java
new file mode 100644
index 00000000..9eaf35db
--- /dev/null
+++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLUpgradePriceRequest.java
@@ -0,0 +1,114 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.udbpostgresql.models;
+
+
+import cn.ucloud.common.annotation.NotEmpty;
+import cn.ucloud.common.annotation.UCloudParam;
+import cn.ucloud.common.request.Request;
+
+public class GetUPgSQLUpgradePriceRequest extends Request {
+
+ /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Region")
+ private String region;
+
+ /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Zone")
+ private String zone;
+
+ /**
+ * 项目ID。不填写为默认项目,子帐号必须填写。
+ * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
+ */
+ @UCloudParam("ProjectId")
+ private String projectId;
+
+ /** 资源ID */
+ @NotEmpty
+ @UCloudParam("InstanceID")
+ private String instanceID;
+
+ /** 磁盘空间(GB) */
+ @NotEmpty
+ @UCloudParam("DiskSpace")
+ private Integer diskSpace;
+
+ /** 机器配置类型 */
+ @NotEmpty
+ @UCloudParam("MachineType")
+ private String machineType;
+
+ /** UDB实例模式类型, 可选值如下: "normal": 普通版UDB实例 "ha": 高可用版UDB实例 默认是"normal" */
+ @UCloudParam("InstanceMode")
+ private String instanceMode;
+
+ public String getRegion() {
+ return region;
+ }
+
+ public void setRegion(String region) {
+ this.region = region;
+ }
+
+ public String getZone() {
+ return zone;
+ }
+
+ public void setZone(String zone) {
+ this.zone = zone;
+ }
+
+ public String getProjectId() {
+ return projectId;
+ }
+
+ public void setProjectId(String projectId) {
+ this.projectId = projectId;
+ }
+
+ public String getInstanceID() {
+ return instanceID;
+ }
+
+ public void setInstanceID(String instanceID) {
+ this.instanceID = instanceID;
+ }
+
+ public Integer getDiskSpace() {
+ return diskSpace;
+ }
+
+ public void setDiskSpace(Integer diskSpace) {
+ this.diskSpace = diskSpace;
+ }
+
+ public String getMachineType() {
+ return machineType;
+ }
+
+ public void setMachineType(String machineType) {
+ this.machineType = machineType;
+ }
+
+ public String getInstanceMode() {
+ return instanceMode;
+ }
+
+ public void setInstanceMode(String instanceMode) {
+ this.instanceMode = instanceMode;
+ }
+}
diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLUpgradePriceResponse.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLUpgradePriceResponse.java
new file mode 100644
index 00000000..6a330d3c
--- /dev/null
+++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/GetUPgSQLUpgradePriceResponse.java
@@ -0,0 +1,46 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.udbpostgresql.models;
+
+
+import cn.ucloud.common.response.Response;
+
+import com.google.gson.annotations.SerializedName;
+
+public class GetUPgSQLUpgradePriceResponse extends Response {
+
+ /** 规格调整差价。精确到小数点后2位。 */
+ @SerializedName("Price")
+ private Double price;
+
+ /** 限时优惠的折前原价 */
+ @SerializedName("OriginalPrice")
+ private Double originalPrice;
+
+ public Double getPrice() {
+ return price;
+ }
+
+ public void setPrice(Double price) {
+ this.price = price;
+ }
+
+ public Double getOriginalPrice() {
+ return originalPrice;
+ }
+
+ public void setOriginalPrice(Double originalPrice) {
+ this.originalPrice = originalPrice;
+ }
+}
diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/ListUPgSQLBackupRequest.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/ListUPgSQLBackupRequest.java
new file mode 100644
index 00000000..54105821
--- /dev/null
+++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/ListUPgSQLBackupRequest.java
@@ -0,0 +1,112 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.udbpostgresql.models;
+
+
+import cn.ucloud.common.annotation.NotEmpty;
+import cn.ucloud.common.annotation.UCloudParam;
+import cn.ucloud.common.request.Request;
+
+public class ListUPgSQLBackupRequest extends Request {
+
+ /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Region")
+ private String region;
+
+ /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Zone")
+ private String zone;
+
+ /**
+ * 项目ID。不填写为默认项目,子帐号必须填写。
+ * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
+ */
+ @UCloudParam("ProjectId")
+ private String projectId;
+
+ /** DB实例Id */
+ @NotEmpty
+ @UCloudParam("InstanceID")
+ private String instanceID;
+
+ /** 备份类型,默认值是0(0:表示全部,1:自动备份,2:手动备份 */
+ @UCloudParam("BackupType")
+ private Integer backupType;
+
+ /** 列表起始位置偏移量,默认为0 */
+ @UCloudParam("Offset")
+ private Integer offset;
+
+ /** 返回数据长度,默认为20,最大100 */
+ @UCloudParam("Limit")
+ private Integer limit;
+
+ public String getRegion() {
+ return region;
+ }
+
+ public void setRegion(String region) {
+ this.region = region;
+ }
+
+ public String getZone() {
+ return zone;
+ }
+
+ public void setZone(String zone) {
+ this.zone = zone;
+ }
+
+ public String getProjectId() {
+ return projectId;
+ }
+
+ public void setProjectId(String projectId) {
+ this.projectId = projectId;
+ }
+
+ public String getInstanceID() {
+ return instanceID;
+ }
+
+ public void setInstanceID(String instanceID) {
+ this.instanceID = instanceID;
+ }
+
+ public Integer getBackupType() {
+ return backupType;
+ }
+
+ public void setBackupType(Integer backupType) {
+ this.backupType = backupType;
+ }
+
+ public Integer getOffset() {
+ return offset;
+ }
+
+ public void setOffset(Integer offset) {
+ this.offset = offset;
+ }
+
+ public Integer getLimit() {
+ return limit;
+ }
+
+ public void setLimit(Integer limit) {
+ this.limit = limit;
+ }
+}
diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/ListUPgSQLBackupResponse.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/ListUPgSQLBackupResponse.java
new file mode 100644
index 00000000..90fe6a67
--- /dev/null
+++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/ListUPgSQLBackupResponse.java
@@ -0,0 +1,158 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.udbpostgresql.models;
+
+import cn.ucloud.common.response.Response;
+
+import com.google.gson.annotations.SerializedName;
+
+import java.util.List;
+
+public class ListUPgSQLBackupResponse extends Response {
+
+ /** 备份信息列表.修参数 */
+ @SerializedName("DataSet")
+ private List Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.udbpostgresql.models;
+
+
+import cn.ucloud.common.annotation.NotEmpty;
+import cn.ucloud.common.annotation.UCloudParam;
+import cn.ucloud.common.request.Request;
+
+public class ListUPgSQLInstanceRequest extends Request {
+
+ /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Region")
+ private String region;
+
+ /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @UCloudParam("Zone")
+ private String zone;
+
+ /**
+ * 项目ID。不填写为默认项目,子帐号必须填写。
+ * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
+ */
+ @UCloudParam("ProjectId")
+ private String projectId;
+
+ public String getRegion() {
+ return region;
+ }
+
+ public void setRegion(String region) {
+ this.region = region;
+ }
+
+ public String getZone() {
+ return zone;
+ }
+
+ public void setZone(String zone) {
+ this.zone = zone;
+ }
+
+ public String getProjectId() {
+ return projectId;
+ }
+
+ public void setProjectId(String projectId) {
+ this.projectId = projectId;
+ }
+}
diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/ListUPgSQLInstanceResponse.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/ListUPgSQLInstanceResponse.java
new file mode 100644
index 00000000..eaf49610
--- /dev/null
+++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/ListUPgSQLInstanceResponse.java
@@ -0,0 +1,373 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.udbpostgresql.models;
+
+import cn.ucloud.common.response.Response;
+
+import com.google.gson.annotations.SerializedName;
+
+import java.util.List;
+
+public class ListUPgSQLInstanceResponse extends Response {
+
+ /** 数据库信息列表 */
+ @SerializedName("DataSet")
+ private List Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.udbpostgresql.models;
+
+
+import cn.ucloud.common.annotation.NotEmpty;
+import cn.ucloud.common.annotation.UCloudParam;
+import cn.ucloud.common.request.Request;
+
+public class ListUPgSQLLogRequest extends Request {
+
+ /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Region")
+ private String region;
+
+ /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Zone")
+ private String zone;
+
+ /**
+ * 项目ID。不填写为默认项目,子帐号必须填写。
+ * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
+ */
+ @UCloudParam("ProjectId")
+ private String projectId;
+
+ /** 查询的日志开始的时间戳 */
+ @NotEmpty
+ @UCloudParam("BeginTime")
+ private Integer beginTime;
+
+ /** 查询日志的结束时间戳 */
+ @NotEmpty
+ @UCloudParam("EndTime")
+ private Integer endTime;
+
+ /** 资源ID */
+ @NotEmpty
+ @UCloudParam("InstanceID")
+ private String instanceID;
+
+ public String getRegion() {
+ return region;
+ }
+
+ public void setRegion(String region) {
+ this.region = region;
+ }
+
+ public String getZone() {
+ return zone;
+ }
+
+ public void setZone(String zone) {
+ this.zone = zone;
+ }
+
+ public String getProjectId() {
+ return projectId;
+ }
+
+ public void setProjectId(String projectId) {
+ this.projectId = projectId;
+ }
+
+ public Integer getBeginTime() {
+ return beginTime;
+ }
+
+ public void setBeginTime(Integer beginTime) {
+ this.beginTime = beginTime;
+ }
+
+ public Integer getEndTime() {
+ return endTime;
+ }
+
+ public void setEndTime(Integer endTime) {
+ this.endTime = endTime;
+ }
+
+ public String getInstanceID() {
+ return instanceID;
+ }
+
+ public void setInstanceID(String instanceID) {
+ this.instanceID = instanceID;
+ }
+}
diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/ListUPgSQLLogResponse.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/ListUPgSQLLogResponse.java
new file mode 100644
index 00000000..bdc87d1d
--- /dev/null
+++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/ListUPgSQLLogResponse.java
@@ -0,0 +1,86 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.udbpostgresql.models;
+
+import cn.ucloud.common.response.Response;
+
+import com.google.gson.annotations.SerializedName;
+
+import java.util.List;
+
+public class ListUPgSQLLogResponse extends Response {
+
+ /** 数据库日志信息列表 */
+ @SerializedName("DataSet")
+ private List Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.udbpostgresql.models;
+
+
+import cn.ucloud.common.annotation.NotEmpty;
+import cn.ucloud.common.annotation.UCloudParam;
+import cn.ucloud.common.request.Request;
+
+public class ListUPgSQLMachineTypeRequest extends Request {
+
+ /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Region")
+ private String region;
+
+ /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Zone")
+ private String zone;
+
+ /**
+ * 项目ID。不填写为默认项目,子帐号必须填写。
+ * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
+ */
+ @UCloudParam("ProjectId")
+ private String projectId;
+
+ public String getRegion() {
+ return region;
+ }
+
+ public void setRegion(String region) {
+ this.region = region;
+ }
+
+ public String getZone() {
+ return zone;
+ }
+
+ public void setZone(String zone) {
+ this.zone = zone;
+ }
+
+ public String getProjectId() {
+ return projectId;
+ }
+
+ public void setProjectId(String projectId) {
+ this.projectId = projectId;
+ }
+}
diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/ListUPgSQLMachineTypeResponse.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/ListUPgSQLMachineTypeResponse.java
new file mode 100644
index 00000000..df7ed17c
--- /dev/null
+++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/ListUPgSQLMachineTypeResponse.java
@@ -0,0 +1,98 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.udbpostgresql.models;
+
+import cn.ucloud.common.response.Response;
+
+import com.google.gson.annotations.SerializedName;
+
+import java.util.List;
+
+public class ListUPgSQLMachineTypeResponse extends Response {
+
+ /** */
+ @SerializedName("DataSet")
+ private List Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.udbpostgresql.models;
+
+
+import cn.ucloud.common.annotation.NotEmpty;
+import cn.ucloud.common.annotation.UCloudParam;
+import cn.ucloud.common.request.Request;
+
+public class ListUPgSQLParamTemplateRequest extends Request {
+
+ /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Region")
+ private String region;
+
+ /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Zone")
+ private String zone;
+
+ /**
+ * 项目ID。不填写为默认项目,子帐号必须填写。
+ * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
+ */
+ @UCloudParam("ProjectId")
+ private String projectId;
+
+ /** 偏移量, 默认是0,100 */
+ @UCloudParam("Offset")
+ private Integer offset;
+
+ /** 总数 */
+ @UCloudParam("Count")
+ private Integer count;
+
+ public String getRegion() {
+ return region;
+ }
+
+ public void setRegion(String region) {
+ this.region = region;
+ }
+
+ public String getZone() {
+ return zone;
+ }
+
+ public void setZone(String zone) {
+ this.zone = zone;
+ }
+
+ public String getProjectId() {
+ return projectId;
+ }
+
+ public void setProjectId(String projectId) {
+ this.projectId = projectId;
+ }
+
+ public Integer getOffset() {
+ return offset;
+ }
+
+ public void setOffset(Integer offset) {
+ this.offset = offset;
+ }
+
+ public Integer getCount() {
+ return count;
+ }
+
+ public void setCount(Integer count) {
+ this.count = count;
+ }
+}
diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/ListUPgSQLParamTemplateResponse.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/ListUPgSQLParamTemplateResponse.java
new file mode 100644
index 00000000..4095d281
--- /dev/null
+++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/ListUPgSQLParamTemplateResponse.java
@@ -0,0 +1,110 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.udbpostgresql.models;
+
+import cn.ucloud.common.response.Response;
+
+import com.google.gson.annotations.SerializedName;
+
+import java.util.List;
+
+public class ListUPgSQLParamTemplateResponse extends Response {
+
+ /** 参数模板信息 */
+ @SerializedName("Data")
+ private List Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.udbpostgresql.models;
+
+
+import cn.ucloud.common.annotation.NotEmpty;
+import cn.ucloud.common.annotation.UCloudParam;
+import cn.ucloud.common.request.Request;
+
+public class ListUPgSQLVersionRequest extends Request {
+
+ /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Region")
+ private String region;
+
+ /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Zone")
+ private String zone;
+
+ /**
+ * 项目ID。不填写为默认项目,子帐号必须填写。
+ * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
+ */
+ @UCloudParam("ProjectId")
+ private String projectId;
+
+ public String getRegion() {
+ return region;
+ }
+
+ public void setRegion(String region) {
+ this.region = region;
+ }
+
+ public String getZone() {
+ return zone;
+ }
+
+ public void setZone(String zone) {
+ this.zone = zone;
+ }
+
+ public String getProjectId() {
+ return projectId;
+ }
+
+ public void setProjectId(String projectId) {
+ this.projectId = projectId;
+ }
+}
diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/ListUPgSQLVersionResponse.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/ListUPgSQLVersionResponse.java
new file mode 100644
index 00000000..54eb1c12
--- /dev/null
+++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/ListUPgSQLVersionResponse.java
@@ -0,0 +1,62 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.udbpostgresql.models;
+
+import cn.ucloud.common.response.Response;
+
+import com.google.gson.annotations.SerializedName;
+
+import java.util.List;
+
+public class ListUPgSQLVersionResponse extends Response {
+
+ /** postgresql版本信息 */
+ @SerializedName("DataSet")
+ private List Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.udbpostgresql.models;
+
+
+import cn.ucloud.common.annotation.NotEmpty;
+import cn.ucloud.common.annotation.UCloudParam;
+import cn.ucloud.common.request.Request;
+
+public class RestartUPgSQLInstanceRequest extends Request {
+
+ /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Region")
+ private String region;
+
+ /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Zone")
+ private String zone;
+
+ /**
+ * 项目ID。不填写为默认项目,子帐号必须填写。
+ * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
+ */
+ @UCloudParam("ProjectId")
+ private String projectId;
+
+ /** 实例ID */
+ @NotEmpty
+ @UCloudParam("InstanceID")
+ private String instanceID;
+
+ /** 是否一并重启主机 */
+ @UCloudParam("RestartHost")
+ private Boolean restartHost;
+
+ /** 是否强制重启 */
+ @UCloudParam("ForceToRestart")
+ private Boolean forceToRestart;
+
+ public String getRegion() {
+ return region;
+ }
+
+ public void setRegion(String region) {
+ this.region = region;
+ }
+
+ public String getZone() {
+ return zone;
+ }
+
+ public void setZone(String zone) {
+ this.zone = zone;
+ }
+
+ public String getProjectId() {
+ return projectId;
+ }
+
+ public void setProjectId(String projectId) {
+ this.projectId = projectId;
+ }
+
+ public String getInstanceID() {
+ return instanceID;
+ }
+
+ public void setInstanceID(String instanceID) {
+ this.instanceID = instanceID;
+ }
+
+ public Boolean getRestartHost() {
+ return restartHost;
+ }
+
+ public void setRestartHost(Boolean restartHost) {
+ this.restartHost = restartHost;
+ }
+
+ public Boolean getForceToRestart() {
+ return forceToRestart;
+ }
+
+ public void setForceToRestart(Boolean forceToRestart) {
+ this.forceToRestart = forceToRestart;
+ }
+}
diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/RestartUPgSQLInstanceResponse.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/RestartUPgSQLInstanceResponse.java
new file mode 100644
index 00000000..849466ac
--- /dev/null
+++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/RestartUPgSQLInstanceResponse.java
@@ -0,0 +1,20 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.udbpostgresql.models;
+
+
+
+import cn.ucloud.common.response.Response;
+
+public class RestartUPgSQLInstanceResponse extends Response {}
diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/StartUPgSQLInstanceRequest.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/StartUPgSQLInstanceRequest.java
new file mode 100644
index 00000000..ed08e5fe
--- /dev/null
+++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/StartUPgSQLInstanceRequest.java
@@ -0,0 +1,76 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.udbpostgresql.models;
+
+
+import cn.ucloud.common.annotation.NotEmpty;
+import cn.ucloud.common.annotation.UCloudParam;
+import cn.ucloud.common.request.Request;
+
+public class StartUPgSQLInstanceRequest extends Request {
+
+ /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Region")
+ private String region;
+
+ /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Zone")
+ private String zone;
+
+ /**
+ * 项目ID。不填写为默认项目,子帐号必须填写。
+ * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
+ */
+ @UCloudParam("ProjectId")
+ private String projectId;
+
+ /** 实例ID */
+ @NotEmpty
+ @UCloudParam("InstanceID")
+ private String instanceID;
+
+ public String getRegion() {
+ return region;
+ }
+
+ public void setRegion(String region) {
+ this.region = region;
+ }
+
+ public String getZone() {
+ return zone;
+ }
+
+ public void setZone(String zone) {
+ this.zone = zone;
+ }
+
+ public String getProjectId() {
+ return projectId;
+ }
+
+ public void setProjectId(String projectId) {
+ this.projectId = projectId;
+ }
+
+ public String getInstanceID() {
+ return instanceID;
+ }
+
+ public void setInstanceID(String instanceID) {
+ this.instanceID = instanceID;
+ }
+}
diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/StartUPgSQLInstanceResponse.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/StartUPgSQLInstanceResponse.java
new file mode 100644
index 00000000..67ae07b3
--- /dev/null
+++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/StartUPgSQLInstanceResponse.java
@@ -0,0 +1,20 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.udbpostgresql.models;
+
+
+
+import cn.ucloud.common.response.Response;
+
+public class StartUPgSQLInstanceResponse extends Response {}
diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/StopUPgSQLCreatingReadonlyRequest.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/StopUPgSQLCreatingReadonlyRequest.java
new file mode 100644
index 00000000..671efe23
--- /dev/null
+++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/StopUPgSQLCreatingReadonlyRequest.java
@@ -0,0 +1,76 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.udbpostgresql.models;
+
+
+import cn.ucloud.common.annotation.NotEmpty;
+import cn.ucloud.common.annotation.UCloudParam;
+import cn.ucloud.common.request.Request;
+
+public class StopUPgSQLCreatingReadonlyRequest extends Request {
+
+ /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Region")
+ private String region;
+
+ /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Zone")
+ private String zone;
+
+ /**
+ * 项目ID。不填写为默认项目,子帐号必须填写。
+ * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
+ */
+ @UCloudParam("ProjectId")
+ private String projectId;
+
+ /** 停止创建从库 */
+ @NotEmpty
+ @UCloudParam("InstanceID")
+ private String instanceID;
+
+ public String getRegion() {
+ return region;
+ }
+
+ public void setRegion(String region) {
+ this.region = region;
+ }
+
+ public String getZone() {
+ return zone;
+ }
+
+ public void setZone(String zone) {
+ this.zone = zone;
+ }
+
+ public String getProjectId() {
+ return projectId;
+ }
+
+ public void setProjectId(String projectId) {
+ this.projectId = projectId;
+ }
+
+ public String getInstanceID() {
+ return instanceID;
+ }
+
+ public void setInstanceID(String instanceID) {
+ this.instanceID = instanceID;
+ }
+}
diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/StopUPgSQLCreatingReadonlyResponse.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/StopUPgSQLCreatingReadonlyResponse.java
new file mode 100644
index 00000000..a2f3f9f2
--- /dev/null
+++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/StopUPgSQLCreatingReadonlyResponse.java
@@ -0,0 +1,20 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.udbpostgresql.models;
+
+
+
+import cn.ucloud.common.response.Response;
+
+public class StopUPgSQLCreatingReadonlyResponse extends Response {}
diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/StopUPgSQLInstanceRequest.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/StopUPgSQLInstanceRequest.java
new file mode 100644
index 00000000..47df55ff
--- /dev/null
+++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/StopUPgSQLInstanceRequest.java
@@ -0,0 +1,100 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.udbpostgresql.models;
+
+
+import cn.ucloud.common.annotation.NotEmpty;
+import cn.ucloud.common.annotation.UCloudParam;
+import cn.ucloud.common.request.Request;
+
+public class StopUPgSQLInstanceRequest extends Request {
+
+ /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Region")
+ private String region;
+
+ /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Zone")
+ private String zone;
+
+ /**
+ * 项目ID。不填写为默认项目,子帐号必须填写。
+ * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
+ */
+ @UCloudParam("ProjectId")
+ private String projectId;
+
+ /** 实例ID */
+ @NotEmpty
+ @UCloudParam("InstanceID")
+ private String instanceID;
+
+ /** 是否将主机一并关闭 */
+ @UCloudParam("StopHost")
+ private Boolean stopHost;
+
+ /** 是否强制关闭 */
+ @UCloudParam("ForceToStop")
+ private Boolean forceToStop;
+
+ public String getRegion() {
+ return region;
+ }
+
+ public void setRegion(String region) {
+ this.region = region;
+ }
+
+ public String getZone() {
+ return zone;
+ }
+
+ public void setZone(String zone) {
+ this.zone = zone;
+ }
+
+ public String getProjectId() {
+ return projectId;
+ }
+
+ public void setProjectId(String projectId) {
+ this.projectId = projectId;
+ }
+
+ public String getInstanceID() {
+ return instanceID;
+ }
+
+ public void setInstanceID(String instanceID) {
+ this.instanceID = instanceID;
+ }
+
+ public Boolean getStopHost() {
+ return stopHost;
+ }
+
+ public void setStopHost(Boolean stopHost) {
+ this.stopHost = stopHost;
+ }
+
+ public Boolean getForceToStop() {
+ return forceToStop;
+ }
+
+ public void setForceToStop(Boolean forceToStop) {
+ this.forceToStop = forceToStop;
+ }
+}
diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/StopUPgSQLInstanceResponse.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/StopUPgSQLInstanceResponse.java
new file mode 100644
index 00000000..826ca95d
--- /dev/null
+++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/StopUPgSQLInstanceResponse.java
@@ -0,0 +1,20 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.udbpostgresql.models;
+
+
+
+import cn.ucloud.common.response.Response;
+
+public class StopUPgSQLInstanceResponse extends Response {}
diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/UpdateUPgSQLAttributeRequest.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/UpdateUPgSQLAttributeRequest.java
new file mode 100644
index 00000000..4227ebbb
--- /dev/null
+++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/UpdateUPgSQLAttributeRequest.java
@@ -0,0 +1,100 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.udbpostgresql.models;
+
+
+import cn.ucloud.common.annotation.NotEmpty;
+import cn.ucloud.common.annotation.UCloudParam;
+import cn.ucloud.common.request.Request;
+
+public class UpdateUPgSQLAttributeRequest extends Request {
+
+ /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Region")
+ private String region;
+
+ /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Zone")
+ private String zone;
+
+ /**
+ * 项目ID。不填写为默认项目,子帐号必须填写。
+ * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
+ */
+ @UCloudParam("ProjectId")
+ private String projectId;
+
+ /** DB实例Id */
+ @NotEmpty
+ @UCloudParam("InstanceID")
+ private String instanceID;
+
+ /** 新的db名字(不能为空字符串) */
+ @UCloudParam("Name")
+ private String name;
+
+ /** 新的备注信息 */
+ @UCloudParam("Remark")
+ private String remark;
+
+ public String getRegion() {
+ return region;
+ }
+
+ public void setRegion(String region) {
+ this.region = region;
+ }
+
+ public String getZone() {
+ return zone;
+ }
+
+ public void setZone(String zone) {
+ this.zone = zone;
+ }
+
+ public String getProjectId() {
+ return projectId;
+ }
+
+ public void setProjectId(String projectId) {
+ this.projectId = projectId;
+ }
+
+ public String getInstanceID() {
+ return instanceID;
+ }
+
+ public void setInstanceID(String instanceID) {
+ this.instanceID = instanceID;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public String getRemark() {
+ return remark;
+ }
+
+ public void setRemark(String remark) {
+ this.remark = remark;
+ }
+}
diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/UpdateUPgSQLAttributeResponse.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/UpdateUPgSQLAttributeResponse.java
new file mode 100644
index 00000000..508d4cff
--- /dev/null
+++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/UpdateUPgSQLAttributeResponse.java
@@ -0,0 +1,20 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.udbpostgresql.models;
+
+
+
+import cn.ucloud.common.response.Response;
+
+public class UpdateUPgSQLAttributeResponse extends Response {}
diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/UpdateUPgSQLBackupStrategyRequest.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/UpdateUPgSQLBackupStrategyRequest.java
new file mode 100644
index 00000000..2152e305
--- /dev/null
+++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/UpdateUPgSQLBackupStrategyRequest.java
@@ -0,0 +1,112 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.udbpostgresql.models;
+
+
+import cn.ucloud.common.annotation.NotEmpty;
+import cn.ucloud.common.annotation.UCloudParam;
+import cn.ucloud.common.request.Request;
+
+public class UpdateUPgSQLBackupStrategyRequest extends Request {
+
+ /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Region")
+ private String region;
+
+ /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Zone")
+ private String zone;
+
+ /**
+ * 项目ID。不填写为默认项目,子帐号必须填写。
+ * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
+ */
+ @UCloudParam("ProjectId")
+ private String projectId;
+
+ /** DB实例Id */
+ @NotEmpty
+ @UCloudParam("InstanceID")
+ private String instanceID;
+
+ /** 自动备份预计开始时间范围(00:00~23:59),例如:(3:00~4:00) */
+ @UCloudParam("BackupTimeRange")
+ private String backupTimeRange;
+
+ /** 自动备份预期星期几(1~7)开始。默认1,2,3,4,5,6,7(星期一到星期日) */
+ @UCloudParam("BackupWeek")
+ private String backupWeek;
+
+ /** 选择默认的备份方式 */
+ @UCloudParam("BackupMethod")
+ private String backupMethod;
+
+ public String getRegion() {
+ return region;
+ }
+
+ public void setRegion(String region) {
+ this.region = region;
+ }
+
+ public String getZone() {
+ return zone;
+ }
+
+ public void setZone(String zone) {
+ this.zone = zone;
+ }
+
+ public String getProjectId() {
+ return projectId;
+ }
+
+ public void setProjectId(String projectId) {
+ this.projectId = projectId;
+ }
+
+ public String getInstanceID() {
+ return instanceID;
+ }
+
+ public void setInstanceID(String instanceID) {
+ this.instanceID = instanceID;
+ }
+
+ public String getBackupTimeRange() {
+ return backupTimeRange;
+ }
+
+ public void setBackupTimeRange(String backupTimeRange) {
+ this.backupTimeRange = backupTimeRange;
+ }
+
+ public String getBackupWeek() {
+ return backupWeek;
+ }
+
+ public void setBackupWeek(String backupWeek) {
+ this.backupWeek = backupWeek;
+ }
+
+ public String getBackupMethod() {
+ return backupMethod;
+ }
+
+ public void setBackupMethod(String backupMethod) {
+ this.backupMethod = backupMethod;
+ }
+}
diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/UpdateUPgSQLBackupStrategyResponse.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/UpdateUPgSQLBackupStrategyResponse.java
new file mode 100644
index 00000000..1a2f9ba6
--- /dev/null
+++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/UpdateUPgSQLBackupStrategyResponse.java
@@ -0,0 +1,20 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.udbpostgresql.models;
+
+
+
+import cn.ucloud.common.response.Response;
+
+public class UpdateUPgSQLBackupStrategyResponse extends Response {}
diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/UpdateUPgSQLPasswordRequest.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/UpdateUPgSQLPasswordRequest.java
new file mode 100644
index 00000000..8855db07
--- /dev/null
+++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/UpdateUPgSQLPasswordRequest.java
@@ -0,0 +1,101 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.udbpostgresql.models;
+
+
+import cn.ucloud.common.annotation.NotEmpty;
+import cn.ucloud.common.annotation.UCloudParam;
+import cn.ucloud.common.request.Request;
+
+public class UpdateUPgSQLPasswordRequest extends Request {
+
+ /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Region")
+ private String region;
+
+ /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Zone")
+ private String zone;
+
+ /**
+ * 项目ID。不填写为默认项目,子帐号必须填写。
+ * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
+ */
+ @UCloudParam("ProjectId")
+ private String projectId;
+
+ /** DB实例Id */
+ @NotEmpty
+ @UCloudParam("InstanceID")
+ private String instanceID;
+
+ /** 新的db用户密码 */
+ @NotEmpty
+ @UCloudParam("Password")
+ private String password;
+
+ /** 数据库用户的名称。默认是root */
+ @UCloudParam("Name")
+ private String name;
+
+ public String getRegion() {
+ return region;
+ }
+
+ public void setRegion(String region) {
+ this.region = region;
+ }
+
+ public String getZone() {
+ return zone;
+ }
+
+ public void setZone(String zone) {
+ this.zone = zone;
+ }
+
+ public String getProjectId() {
+ return projectId;
+ }
+
+ public void setProjectId(String projectId) {
+ this.projectId = projectId;
+ }
+
+ public String getInstanceID() {
+ return instanceID;
+ }
+
+ public void setInstanceID(String instanceID) {
+ this.instanceID = instanceID;
+ }
+
+ public String getPassword() {
+ return password;
+ }
+
+ public void setPassword(String password) {
+ this.password = password;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+}
diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/UpdateUPgSQLPasswordResponse.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/UpdateUPgSQLPasswordResponse.java
new file mode 100644
index 00000000..c9ce808e
--- /dev/null
+++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/UpdateUPgSQLPasswordResponse.java
@@ -0,0 +1,20 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.udbpostgresql.models;
+
+
+
+import cn.ucloud.common.response.Response;
+
+public class UpdateUPgSQLPasswordResponse extends Response {}
diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/UpgradeUPgSQLInstanceRequest.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/UpgradeUPgSQLInstanceRequest.java
new file mode 100644
index 00000000..d4982ba1
--- /dev/null
+++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/UpgradeUPgSQLInstanceRequest.java
@@ -0,0 +1,115 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.udbpostgresql.models;
+
+
+import cn.ucloud.common.annotation.NotEmpty;
+import cn.ucloud.common.annotation.UCloudParam;
+import cn.ucloud.common.request.Request;
+
+public class UpgradeUPgSQLInstanceRequest extends Request {
+
+ /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Region")
+ private String region;
+
+ /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Zone")
+ private String zone;
+
+ /**
+ * 项目ID。不填写为默认项目,子帐号必须填写。
+ * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
+ */
+ @UCloudParam("ProjectId")
+ private String projectId;
+
+ /** 资源ID */
+ @NotEmpty
+ @UCloudParam("InstanceID")
+ private String instanceID;
+
+ /** 磁盘空间(GB) */
+ @NotEmpty
+ @UCloudParam("DiskSpace")
+ private Integer diskSpace;
+
+ /** 机器配置类型 */
+ @NotEmpty
+ @UCloudParam("MachineType")
+ private String machineType;
+
+ /** 数据库类型(ha:高可用类型,normal:普通类型,readonly:从库) */
+ @NotEmpty
+ @UCloudParam("InstanceMode")
+ private String instanceMode;
+
+ public String getRegion() {
+ return region;
+ }
+
+ public void setRegion(String region) {
+ this.region = region;
+ }
+
+ public String getZone() {
+ return zone;
+ }
+
+ public void setZone(String zone) {
+ this.zone = zone;
+ }
+
+ public String getProjectId() {
+ return projectId;
+ }
+
+ public void setProjectId(String projectId) {
+ this.projectId = projectId;
+ }
+
+ public String getInstanceID() {
+ return instanceID;
+ }
+
+ public void setInstanceID(String instanceID) {
+ this.instanceID = instanceID;
+ }
+
+ public Integer getDiskSpace() {
+ return diskSpace;
+ }
+
+ public void setDiskSpace(Integer diskSpace) {
+ this.diskSpace = diskSpace;
+ }
+
+ public String getMachineType() {
+ return machineType;
+ }
+
+ public void setMachineType(String machineType) {
+ this.machineType = machineType;
+ }
+
+ public String getInstanceMode() {
+ return instanceMode;
+ }
+
+ public void setInstanceMode(String instanceMode) {
+ this.instanceMode = instanceMode;
+ }
+}
diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/UpgradeUPgSQLInstanceResponse.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/UpgradeUPgSQLInstanceResponse.java
new file mode 100644
index 00000000..6ceb9296
--- /dev/null
+++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/UpgradeUPgSQLInstanceResponse.java
@@ -0,0 +1,20 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.udbpostgresql.models;
+
+
+
+import cn.ucloud.common.response.Response;
+
+public class UpgradeUPgSQLInstanceResponse extends Response {}
diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/UploadUPgSQLParamTemplateRequest.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/UploadUPgSQLParamTemplateRequest.java
new file mode 100644
index 00000000..ce7e3d5b
--- /dev/null
+++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/UploadUPgSQLParamTemplateRequest.java
@@ -0,0 +1,126 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.udbpostgresql.models;
+
+
+import cn.ucloud.common.annotation.NotEmpty;
+import cn.ucloud.common.annotation.UCloudParam;
+import cn.ucloud.common.request.Request;
+
+public class UploadUPgSQLParamTemplateRequest extends Request {
+
+ /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Region")
+ private String region;
+
+ /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Zone")
+ private String zone;
+
+ /**
+ * 项目ID。不填写为默认项目,子帐号必须填写。
+ * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
+ */
+ @UCloudParam("ProjectId")
+ private String projectId;
+
+ /** 模板名称 */
+ @NotEmpty
+ @UCloudParam("GroupName")
+ private String groupName;
+
+ /** 应用的DB版本 */
+ @NotEmpty
+ @UCloudParam("DBVersion")
+ private String dbVersion;
+
+ /** base64编码过的 */
+ @NotEmpty
+ @UCloudParam("Content")
+ private String content;
+
+ /** 模板描述 */
+ @UCloudParam("Description")
+ private String description;
+
+ /** 版本 */
+ @UCloudParam("ParamGroupType")
+ private String paramGroupType;
+
+ public String getRegion() {
+ return region;
+ }
+
+ public void setRegion(String region) {
+ this.region = region;
+ }
+
+ public String getZone() {
+ return zone;
+ }
+
+ public void setZone(String zone) {
+ this.zone = zone;
+ }
+
+ public String getProjectId() {
+ return projectId;
+ }
+
+ public void setProjectId(String projectId) {
+ this.projectId = projectId;
+ }
+
+ public String getGroupName() {
+ return groupName;
+ }
+
+ public void setGroupName(String groupName) {
+ this.groupName = groupName;
+ }
+
+ public String getDBVersion() {
+ return dbVersion;
+ }
+
+ public void setDBVersion(String dbVersion) {
+ this.dbVersion = dbVersion;
+ }
+
+ public String getContent() {
+ return content;
+ }
+
+ public void setContent(String content) {
+ this.content = content;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ public String getParamGroupType() {
+ return paramGroupType;
+ }
+
+ public void setParamGroupType(String paramGroupType) {
+ this.paramGroupType = paramGroupType;
+ }
+}
diff --git a/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/UploadUPgSQLParamTemplateResponse.java b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/UploadUPgSQLParamTemplateResponse.java
new file mode 100644
index 00000000..4dc423ee
--- /dev/null
+++ b/ucloud-sdk-java-udbpostgresql/src/main/java/cn/ucloud/udbpostgresql/models/UploadUPgSQLParamTemplateResponse.java
@@ -0,0 +1,34 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.udbpostgresql.models;
+
+
+import cn.ucloud.common.response.Response;
+
+import com.google.gson.annotations.SerializedName;
+
+public class UploadUPgSQLParamTemplateResponse extends Response {
+
+ /** 生成的模板ID */
+ @SerializedName("GroupID")
+ private Integer groupID;
+
+ public Integer getGroupID() {
+ return groupID;
+ }
+
+ public void setGroupID(Integer groupID) {
+ this.groupID = groupID;
+ }
+}
diff --git a/ucloud-sdk-java-udbproxy/pom.xml b/ucloud-sdk-java-udbproxy/pom.xml
index d9367cde..b68348b1 100644
--- a/ucloud-sdk-java-udbproxy/pom.xml
+++ b/ucloud-sdk-java-udbproxy/pom.xml
@@ -5,19 +5,19 @@