From f0d4512a58bddb49e656ed4c64095e6cbc9c2751 Mon Sep 17 00:00:00 2001 From: ucloud-bot Date: Mon, 4 Mar 2024 14:04:05 +0000 Subject: [PATCH] sdk: rolling update for 1.2.21-release --- VERSION | 2 +- examples/generic/pom.xml | 4 +- examples/uhost/pom.xml | 4 +- pom.xml | 3 +- ucloud-sdk-java-common/pom.xml | 4 +- ucloud-sdk-java-cube/pom.xml | 6 +- ucloud-sdk-java-ipsecvpn/pom.xml | 6 +- ucloud-sdk-java-pathx/pom.xml | 6 +- ucloud-sdk-java-sts/pom.xml | 6 +- ucloud-sdk-java-uaccount/pom.xml | 6 +- ucloud-sdk-java-uai_modelverse/pom.xml | 48 +++++ .../client/UAI-ModelverseClient.java | 105 +++++++++++ .../client/UAI-ModelverseClientInterface.java | 82 +++++++++ .../models/CreateMVAppRequest.java | 97 ++++++++++ .../models/CreateMVAppResponse.java | 169 +++++++++++++++++ .../models/DeleteMVAppRequest.java | 35 ++++ .../models/DeleteMVAppResponse.java | 34 ++++ .../models/QueryMVAppRequest.java | 33 ++++ .../models/QueryMVAppResponse.java | 170 ++++++++++++++++++ .../models/QueryMVLLMListRequest.java | 33 ++++ .../models/QueryMVLLMListResponse.java | 110 ++++++++++++ .../models/RunMVChatRequest.java | 77 ++++++++ .../models/RunMVChatResponse.java | 82 +++++++++ .../models/UpdateMVAppRequest.java | 119 ++++++++++++ .../models/UpdateMVAppResponse.java | 169 +++++++++++++++++ ucloud-sdk-java-ubill/pom.xml | 6 +- ucloud-sdk-java-ucdn/pom.xml | 6 +- ucloud-sdk-java-ucompshare/pom.xml | 6 +- ucloud-sdk-java-udb/pom.xml | 6 +- .../java/cn/ucloud/udb/client/UDBClient.java | 30 ++++ .../ucloud/udb/client/UDBClientInterface.java | 22 +++ .../CreateUDBInstanceByRecoveryRequest.java | 24 +++ .../udb/models/CreateUDBInstanceRequest.java | 37 ++-- .../udb/models/CreateUDBSlaveRequest.java | 24 +++ .../DescribeUDBInstancePriceRequest.java | 39 ++++ .../models/DescribeUDBInstanceResponse.java | 53 +++++- ...escribeUDBInstanceUpgradePriceRequest.java | 36 ++++ .../GetUDBInstanceSSLCertURLRequest.java | 88 +++++++++ .../GetUDBInstanceSSLCertURLResponse.java | 46 +++++ .../models/ModifyUDBInstanceSSLRequest.java | 101 +++++++++++ .../models/ModifyUDBInstanceSSLResponse.java | 20 +++ .../udb/models/ResizeUDBInstanceRequest.java | 24 +++ ucloud-sdk-java-udbproxy/pom.xml | 6 +- ucloud-sdk-java-udi/pom.xml | 6 +- ucloud-sdk-java-udisk/pom.xml | 6 +- ucloud-sdk-java-udpn/pom.xml | 6 +- ucloud-sdk-java-uec/pom.xml | 6 +- ucloud-sdk-java-uewaf/pom.xml | 6 +- ucloud-sdk-java-ufile/pom.xml | 6 +- .../ufile/models/CreateBucketRequest.java | 19 +- .../ufile/models/SetUFileRefererRequest.java | 31 +++- ucloud-sdk-java-ufs/pom.xml | 6 +- ucloud-sdk-java-uhost/pom.xml | 6 +- .../models/CreateUHostInstanceRequest.java | 43 ++++- .../models/GetUHostUpgradePriceRequest.java | 12 ++ .../models/ResizeUHostInstanceRequest.java | 12 ++ ucloud-sdk-java-uk8s/pom.xml | 6 +- ucloud-sdk-java-ulb/pom.xml | 6 +- ucloud-sdk-java-umem/pom.xml | 6 +- ucloud-sdk-java-umongodb/pom.xml | 6 +- .../models/BackupUMongoDBClusterRequest.java | 15 ++ .../models/GetUMongoDBBackupParamRequest.java | 15 ++ .../GetUMongoDBBackupParamResponse.java | 12 ++ .../models/ListUMongoDBBackupRequest.java | 15 ++ .../models/ListUMongoDBBackupResponse.java | 36 ++++ .../ModifyUMongoDBBackupParamRequest.java | 27 +++ ucloud-sdk-java-unet/pom.xml | 6 +- ucloud-sdk-java-upgsql/pom.xml | 6 +- ucloud-sdk-java-uphone/pom.xml | 6 +- ucloud-sdk-java-uphost/pom.xml | 6 +- ucloud-sdk-java-uslk/pom.xml | 6 +- ucloud-sdk-java-usms/pom.xml | 6 +- ucloud-sdk-java-usnap/pom.xml | 6 +- ucloud-sdk-java-uvms/pom.xml | 6 +- ucloud-sdk-java-vpc/pom.xml | 6 +- 75 files changed, 2224 insertions(+), 123 deletions(-) create mode 100644 ucloud-sdk-java-uai_modelverse/pom.xml create mode 100644 ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/client/UAI-ModelverseClient.java create mode 100644 ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/client/UAI-ModelverseClientInterface.java create mode 100644 ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/CreateMVAppRequest.java create mode 100644 ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/CreateMVAppResponse.java create mode 100644 ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/DeleteMVAppRequest.java create mode 100644 ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/DeleteMVAppResponse.java create mode 100644 ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/QueryMVAppRequest.java create mode 100644 ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/QueryMVAppResponse.java create mode 100644 ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/QueryMVLLMListRequest.java create mode 100644 ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/QueryMVLLMListResponse.java create mode 100644 ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/RunMVChatRequest.java create mode 100644 ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/RunMVChatResponse.java create mode 100644 ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/UpdateMVAppRequest.java create mode 100644 ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/UpdateMVAppResponse.java create mode 100644 ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/GetUDBInstanceSSLCertURLRequest.java create mode 100644 ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/GetUDBInstanceSSLCertURLResponse.java create mode 100644 ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/ModifyUDBInstanceSSLRequest.java create mode 100644 ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/ModifyUDBInstanceSSLResponse.java diff --git a/VERSION b/VERSION index a4d3acbc..2df5defe 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.2.20-release +1.2.21-release diff --git a/examples/generic/pom.xml b/examples/generic/pom.xml index dfe6e16a..85f88928 100644 --- a/examples/generic/pom.xml +++ b/examples/generic/pom.xml @@ -7,7 +7,7 @@ ucloud-sdk-java cn.ucloud - 1.2.20-release + 1.2.21-release 4.0.0 @@ -18,7 +18,7 @@ cn.ucloud ucloud-sdk-java-common - 1.2.20-release + 1.2.21-release diff --git a/examples/uhost/pom.xml b/examples/uhost/pom.xml index 26508d18..5ae706c3 100644 --- a/examples/uhost/pom.xml +++ b/examples/uhost/pom.xml @@ -7,7 +7,7 @@ ucloud-sdk-java cn.ucloud - 1.2.20-release + 1.2.21-release 4.0.0 @@ -18,7 +18,7 @@ cn.ucloud ucloud-sdk-java-uhost - 1.2.20-release + 1.2.21-release diff --git a/pom.xml b/pom.xml index 1cd8ea82..53d754de 100644 --- a/pom.xml +++ b/pom.xml @@ -7,13 +7,14 @@ cn.ucloud ucloud-sdk-java pom - 1.2.20-release + 1.2.21-release ucloud-sdk-java-common ucloud-sdk-java-cube ucloud-sdk-java-ipsecvpn ucloud-sdk-java-pathx ucloud-sdk-java-sts + ucloud-sdk-java-uai_modelverse ucloud-sdk-java-uaccount ucloud-sdk-java-ubill ucloud-sdk-java-ucdn diff --git a/ucloud-sdk-java-common/pom.xml b/ucloud-sdk-java-common/pom.xml index 87b53e13..5ae3eff8 100644 --- a/ucloud-sdk-java-common/pom.xml +++ b/ucloud-sdk-java-common/pom.xml @@ -7,12 +7,12 @@ ucloud-sdk-java cn.ucloud - 1.2.20-release + 1.2.21-release 4.0.0 ucloud-sdk-java-common - 1.2.20-release + 1.2.21-release diff --git a/ucloud-sdk-java-cube/pom.xml b/ucloud-sdk-java-cube/pom.xml index 9ec5bc84..e3c90f8b 100644 --- a/ucloud-sdk-java-cube/pom.xml +++ b/ucloud-sdk-java-cube/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.20-release + 1.2.21-release 4.0.0 ucloud-sdk-java-cube - 1.2.20-release + 1.2.21-release cn.ucloud ucloud-sdk-java-common - 1.2.20-release + 1.2.21-release diff --git a/ucloud-sdk-java-ipsecvpn/pom.xml b/ucloud-sdk-java-ipsecvpn/pom.xml index ef370df9..61c7a147 100644 --- a/ucloud-sdk-java-ipsecvpn/pom.xml +++ b/ucloud-sdk-java-ipsecvpn/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.20-release + 1.2.21-release 4.0.0 ucloud-sdk-java-ipsecvpn - 1.2.20-release + 1.2.21-release cn.ucloud ucloud-sdk-java-common - 1.2.20-release + 1.2.21-release diff --git a/ucloud-sdk-java-pathx/pom.xml b/ucloud-sdk-java-pathx/pom.xml index d2be7627..e51ab1bf 100644 --- a/ucloud-sdk-java-pathx/pom.xml +++ b/ucloud-sdk-java-pathx/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.20-release + 1.2.21-release 4.0.0 ucloud-sdk-java-pathx - 1.2.20-release + 1.2.21-release cn.ucloud ucloud-sdk-java-common - 1.2.20-release + 1.2.21-release diff --git a/ucloud-sdk-java-sts/pom.xml b/ucloud-sdk-java-sts/pom.xml index 57e4e3b9..6246fd0c 100644 --- a/ucloud-sdk-java-sts/pom.xml +++ b/ucloud-sdk-java-sts/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.20-release + 1.2.21-release 4.0.0 ucloud-sdk-java-sts - 1.2.20-release + 1.2.21-release cn.ucloud ucloud-sdk-java-common - 1.2.20-release + 1.2.21-release diff --git a/ucloud-sdk-java-uaccount/pom.xml b/ucloud-sdk-java-uaccount/pom.xml index 5e3c7e24..511ec9fd 100644 --- a/ucloud-sdk-java-uaccount/pom.xml +++ b/ucloud-sdk-java-uaccount/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.20-release + 1.2.21-release 4.0.0 ucloud-sdk-java-uaccount - 1.2.20-release + 1.2.21-release cn.ucloud ucloud-sdk-java-common - 1.2.20-release + 1.2.21-release diff --git a/ucloud-sdk-java-uai_modelverse/pom.xml b/ucloud-sdk-java-uai_modelverse/pom.xml new file mode 100644 index 00000000..8db9546e --- /dev/null +++ b/ucloud-sdk-java-uai_modelverse/pom.xml @@ -0,0 +1,48 @@ + + + + ucloud-sdk-java + cn.ucloud + 1.2.21-release + + + 4.0.0 + ucloud-sdk-java-uai_modelverse + 1.2.21-release + + + + cn.ucloud + ucloud-sdk-java-common + 1.2.21-release + + + + com.google.code.gson + gson + + + + commons-codec + commons-codec + + + org.apache.commons + commons-lang3 + + + + junit + junit + test + + + + org.slf4j + slf4j-simple + provided + + + \ No newline at end of file diff --git a/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/client/UAI-ModelverseClient.java b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/client/UAI-ModelverseClient.java new file mode 100644 index 00000000..b155f966 --- /dev/null +++ b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/client/UAI-ModelverseClient.java @@ -0,0 +1,105 @@ +/** + * 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.uaimodelverse.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.uaimodelverse.models.CreateMVAppRequest; +import cn.ucloud.uaimodelverse.models.CreateMVAppResponse; +import cn.ucloud.uaimodelverse.models.DeleteMVAppRequest; +import cn.ucloud.uaimodelverse.models.DeleteMVAppResponse; +import cn.ucloud.uaimodelverse.models.QueryMVAppRequest; +import cn.ucloud.uaimodelverse.models.QueryMVAppResponse; +import cn.ucloud.uaimodelverse.models.QueryMVLLMListRequest; +import cn.ucloud.uaimodelverse.models.QueryMVLLMListResponse; +import cn.ucloud.uaimodelverse.models.RunMVChatRequest; +import cn.ucloud.uaimodelverse.models.RunMVChatResponse; +import cn.ucloud.uaimodelverse.models.UpdateMVAppRequest; +import cn.ucloud.uaimodelverse.models.UpdateMVAppResponse; + +/** This client is used to call actions of **UAIModelverse** service */ +public class UAIModelverseClient extends DefaultClient implements UAIModelverseClientInterface { + public UAIModelverseClient(Config config, Credential credential) { + super(config, credential); + } + + /** + * CreateMVApp - 创建应用 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateMVAppResponse createMVApp(CreateMVAppRequest request) throws UCloudException { + request.setAction("CreateMVApp"); + return (CreateMVAppResponse) this.invoke(request, CreateMVAppResponse.class); + } + + /** + * DeleteMVApp - 删除应用 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteMVAppResponse deleteMVApp(DeleteMVAppRequest request) throws UCloudException { + request.setAction("DeleteMVApp"); + return (DeleteMVAppResponse) this.invoke(request, DeleteMVAppResponse.class); + } + + /** + * QueryMVApp - 查询应用信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public QueryMVAppResponse queryMVApp(QueryMVAppRequest request) throws UCloudException { + request.setAction("QueryMVApp"); + return (QueryMVAppResponse) this.invoke(request, QueryMVAppResponse.class); + } + + /** + * QueryMVLLMList - 查询语言模型信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public QueryMVLLMListResponse queryMVLLMList(QueryMVLLMListRequest request) + throws UCloudException { + request.setAction("QueryMVLLMList"); + return (QueryMVLLMListResponse) this.invoke(request, QueryMVLLMListResponse.class); + } + + /** + * RunMVChat - 聊天 + * + * @param request Request object + * @throws UCloudException Exception + */ + public RunMVChatResponse runMVChat(RunMVChatRequest request) throws UCloudException { + request.setAction("RunMVChat"); + return (RunMVChatResponse) this.invoke(request, RunMVChatResponse.class); + } + + /** + * UpdateMVApp - 更新应用 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateMVAppResponse updateMVApp(UpdateMVAppRequest request) throws UCloudException { + request.setAction("UpdateMVApp"); + return (UpdateMVAppResponse) this.invoke(request, UpdateMVAppResponse.class); + } +} diff --git a/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/client/UAI-ModelverseClientInterface.java b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/client/UAI-ModelverseClientInterface.java new file mode 100644 index 00000000..7ca43393 --- /dev/null +++ b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/client/UAI-ModelverseClientInterface.java @@ -0,0 +1,82 @@ +/** + * 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.uaimodelverse.client; + +import cn.ucloud.common.client.Client; +import cn.ucloud.common.exception.UCloudException; +import cn.ucloud.uaimodelverse.models.CreateMVAppRequest; +import cn.ucloud.uaimodelverse.models.CreateMVAppResponse; +import cn.ucloud.uaimodelverse.models.DeleteMVAppRequest; +import cn.ucloud.uaimodelverse.models.DeleteMVAppResponse; +import cn.ucloud.uaimodelverse.models.QueryMVAppRequest; +import cn.ucloud.uaimodelverse.models.QueryMVAppResponse; +import cn.ucloud.uaimodelverse.models.QueryMVLLMListRequest; +import cn.ucloud.uaimodelverse.models.QueryMVLLMListResponse; +import cn.ucloud.uaimodelverse.models.RunMVChatRequest; +import cn.ucloud.uaimodelverse.models.RunMVChatResponse; +import cn.ucloud.uaimodelverse.models.UpdateMVAppRequest; +import cn.ucloud.uaimodelverse.models.UpdateMVAppResponse; + +/** This client is used to call actions of **UAIModelverse** service */ +public interface UAIModelverseClientInterface extends Client { + + /** + * CreateMVApp - 创建应用 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateMVAppResponse createMVApp(CreateMVAppRequest request) throws UCloudException; + + /** + * DeleteMVApp - 删除应用 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteMVAppResponse deleteMVApp(DeleteMVAppRequest request) throws UCloudException; + + /** + * QueryMVApp - 查询应用信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public QueryMVAppResponse queryMVApp(QueryMVAppRequest request) throws UCloudException; + + /** + * QueryMVLLMList - 查询语言模型信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public QueryMVLLMListResponse queryMVLLMList(QueryMVLLMListRequest request) + throws UCloudException; + + /** + * RunMVChat - 聊天 + * + * @param request Request object + * @throws UCloudException Exception + */ + public RunMVChatResponse runMVChat(RunMVChatRequest request) throws UCloudException; + + /** + * UpdateMVApp - 更新应用 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateMVAppResponse updateMVApp(UpdateMVAppRequest request) throws UCloudException; +} diff --git a/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/CreateMVAppRequest.java b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/CreateMVAppRequest.java new file mode 100644 index 00000000..c0fb2f04 --- /dev/null +++ b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/CreateMVAppRequest.java @@ -0,0 +1,97 @@ +/** + * 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.uai_modelverse.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class CreateMVAppRequest extends Request { + + /** 应用名称 */ + @NotEmpty + @UCloudParam("AppName") + private String appName; + + /** 应用类型 */ + @NotEmpty + @UCloudParam("AppType") + private Integer appType; + + /** 语言模型ID */ + @NotEmpty + @UCloudParam("LLMID") + private String llmid; + + /** 模型采样温度 ,(0,100) 开区间,不能等于 0 或 100,默认值95 */ + @UCloudParam("LLMTemperature") + private Integer llmTemperature; + + /** 模型采样温度(核取样), (0,100) 开区间,不能等于 0 或 100,默认值70 */ + @UCloudParam("LLMTopP") + private Integer llmTopP; + + /** 应用描述 */ + @UCloudParam("AppDes") + private String appDes; + + public String getAppName() { + return appName; + } + + public void setAppName(String appName) { + this.appName = appName; + } + + public Integer getAppType() { + return appType; + } + + public void setAppType(Integer appType) { + this.appType = appType; + } + + public String getLLMID() { + return llmid; + } + + public void setLLMID(String llmid) { + this.llmid = llmid; + } + + public Integer getLLMTemperature() { + return llmTemperature; + } + + public void setLLMTemperature(Integer llmTemperature) { + this.llmTemperature = llmTemperature; + } + + public Integer getLLMTopP() { + return llmTopP; + } + + public void setLLMTopP(Integer llmTopP) { + this.llmTopP = llmTopP; + } + + public String getAppDes() { + return appDes; + } + + public void setAppDes(String appDes) { + this.appDes = appDes; + } +} diff --git a/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/CreateMVAppResponse.java b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/CreateMVAppResponse.java new file mode 100644 index 00000000..ec409bea --- /dev/null +++ b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/CreateMVAppResponse.java @@ -0,0 +1,169 @@ +/** + * 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.uai_modelverse.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class CreateMVAppResponse extends Response { + + /** Code非0时,描述错误信息 */ + @SerializedName("Msg") + private String msg; + + /** 应用信息 */ + @SerializedName("AppInfo") + private AppInfo appInfo; + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public AppInfo getAppInfo() { + return appInfo; + } + + public void setAppInfo(AppInfo appInfo) { + this.appInfo = appInfo; + } + + public static class AppInfo extends Response { + + /** 应用名称 */ + @SerializedName("AppName") + private String appName; + + /** 应用ID */ + @SerializedName("AppID") + private String appID; + + /** 应用类型 */ + @SerializedName("AppType") + private Integer appType; + + /** 应用描述 */ + @SerializedName("AppDes") + private String appDes; + + /** 应用状态 */ + @SerializedName("AppState") + private Integer appState; + + /** 语言模型ID */ + @SerializedName("LLMID") + private String llmid; + + /** 模型采样温度 */ + @SerializedName("LLMTemperature") + private Integer llmTemperature; + + /** 模型采样温度的另一种方法(核取样) */ + @SerializedName("LLMTopP") + private Integer llmTopP; + + /** 应用创建时间 */ + @SerializedName("CreateTime") + private Integer createTime; + + /** 应用更新时间 */ + @SerializedName("UpdateTime") + private Integer updateTime; + + public String getAppName() { + return appName; + } + + public void setAppName(String appName) { + this.appName = appName; + } + + public String getAppID() { + return appID; + } + + public void setAppID(String appID) { + this.appID = appID; + } + + public Integer getAppType() { + return appType; + } + + public void setAppType(Integer appType) { + this.appType = appType; + } + + public String getAppDes() { + return appDes; + } + + public void setAppDes(String appDes) { + this.appDes = appDes; + } + + public Integer getAppState() { + return appState; + } + + public void setAppState(Integer appState) { + this.appState = appState; + } + + public String getLLMID() { + return llmid; + } + + public void setLLMID(String llmid) { + this.llmid = llmid; + } + + public Integer getLLMTemperature() { + return llmTemperature; + } + + public void setLLMTemperature(Integer llmTemperature) { + this.llmTemperature = llmTemperature; + } + + public Integer getLLMTopP() { + return llmTopP; + } + + public void setLLMTopP(Integer llmTopP) { + this.llmTopP = llmTopP; + } + + public Integer getCreateTime() { + return createTime; + } + + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public Integer getUpdateTime() { + return updateTime; + } + + public void setUpdateTime(Integer updateTime) { + this.updateTime = updateTime; + } + } +} diff --git a/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/DeleteMVAppRequest.java b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/DeleteMVAppRequest.java new file mode 100644 index 00000000..0b16607d --- /dev/null +++ b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/DeleteMVAppRequest.java @@ -0,0 +1,35 @@ +/** + * 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.uai_modelverse.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class DeleteMVAppRequest extends Request { + + /** 应用ID */ + @NotEmpty + @UCloudParam("AppID") + private String appID; + + public String getAppID() { + return appID; + } + + public void setAppID(String appID) { + this.appID = appID; + } +} diff --git a/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/DeleteMVAppResponse.java b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/DeleteMVAppResponse.java new file mode 100644 index 00000000..b6ccfa29 --- /dev/null +++ b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/DeleteMVAppResponse.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.uai_modelverse.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class DeleteMVAppResponse extends Response { + + /** Code非0时,描述错误信息 */ + @SerializedName("Msg") + private String msg; + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } +} diff --git a/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/QueryMVAppRequest.java b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/QueryMVAppRequest.java new file mode 100644 index 00000000..e92f454c --- /dev/null +++ b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/QueryMVAppRequest.java @@ -0,0 +1,33 @@ +/** + * 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.uai_modelverse.models; + + +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class QueryMVAppRequest extends Request { + + /** 应用ID (缺省则返回所有应用列表) */ + @UCloudParam("APPID") + private String appid; + + public String getAPPID() { + return appid; + } + + public void setAPPID(String appid) { + this.appid = appid; + } +} diff --git a/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/QueryMVAppResponse.java b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/QueryMVAppResponse.java new file mode 100644 index 00000000..4b950875 --- /dev/null +++ b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/QueryMVAppResponse.java @@ -0,0 +1,170 @@ +/** + * 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.uai_modelverse.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class QueryMVAppResponse extends Response { + + /** Code非0时,描述错误信息 */ + @SerializedName("Msg") + private String msg; + + /** 应用信息列表 */ + @SerializedName("AppInfo") + private List appInfo; + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public List getAppInfo() { + return appInfo; + } + + public void setAppInfo(List appInfo) { + this.appInfo = appInfo; + } + + public static class AppInfo extends Response { + + /** 应用名称 */ + @SerializedName("AppName") + private String appName; + + /** 应用ID */ + @SerializedName("AppID") + private String appID; + + /** 应用类型 */ + @SerializedName("AppType") + private Integer appType; + + /** 应用描述 */ + @SerializedName("AppDes") + private String appDes; + + /** 应用状态 */ + @SerializedName("AppState") + private Integer appState; + + /** 语言模型ID */ + @SerializedName("LLMID") + private String llmid; + + /** 模型采样温度 */ + @SerializedName("LLMTemperature") + private Integer llmTemperature; + + /** 模型采样温度的另一种方法(核取样) */ + @SerializedName("LLMTopP") + private Integer llmTopP; + + /** 应用创建时间 */ + @SerializedName("CreateTime") + private Integer createTime; + + /** 应用更新时间 */ + @SerializedName("UpdateTime") + private Integer updateTime; + + public String getAppName() { + return appName; + } + + public void setAppName(String appName) { + this.appName = appName; + } + + public String getAppID() { + return appID; + } + + public void setAppID(String appID) { + this.appID = appID; + } + + public Integer getAppType() { + return appType; + } + + public void setAppType(Integer appType) { + this.appType = appType; + } + + public String getAppDes() { + return appDes; + } + + public void setAppDes(String appDes) { + this.appDes = appDes; + } + + public Integer getAppState() { + return appState; + } + + public void setAppState(Integer appState) { + this.appState = appState; + } + + public String getLLMID() { + return llmid; + } + + public void setLLMID(String llmid) { + this.llmid = llmid; + } + + public Integer getLLMTemperature() { + return llmTemperature; + } + + public void setLLMTemperature(Integer llmTemperature) { + this.llmTemperature = llmTemperature; + } + + public Integer getLLMTopP() { + return llmTopP; + } + + public void setLLMTopP(Integer llmTopP) { + this.llmTopP = llmTopP; + } + + public Integer getCreateTime() { + return createTime; + } + + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public Integer getUpdateTime() { + return updateTime; + } + + public void setUpdateTime(Integer updateTime) { + this.updateTime = updateTime; + } + } +} diff --git a/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/QueryMVLLMListRequest.java b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/QueryMVLLMListRequest.java new file mode 100644 index 00000000..cb20b5c7 --- /dev/null +++ b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/QueryMVLLMListRequest.java @@ -0,0 +1,33 @@ +/** + * 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.uai_modelverse.models; + + +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class QueryMVLLMListRequest extends Request { + + /** 语言模型ID (缺省则返回所有模型列表) */ + @UCloudParam("LLMID") + private String llmid; + + public String getLLMID() { + return llmid; + } + + public void setLLMID(String llmid) { + this.llmid = llmid; + } +} diff --git a/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/QueryMVLLMListResponse.java b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/QueryMVLLMListResponse.java new file mode 100644 index 00000000..786f5258 --- /dev/null +++ b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/QueryMVLLMListResponse.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.uai_modelverse.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class QueryMVLLMListResponse extends Response { + + /** 语言模型列表 */ + @SerializedName("LLMInfoList") + private List llmInfoList; + + /** 状态码描述 */ + @SerializedName("Msg") + private String msg; + + public List getLLMInfoList() { + return llmInfoList; + } + + public void setLLMInfoList(List llmInfoList) { + this.llmInfoList = llmInfoList; + } + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public static class LLMInfo extends Response { + + /** 模型ID */ + @SerializedName("LLMID") + private String llmid; + + /** 模型名称 */ + @SerializedName("LLMName") + private String llmName; + + /** 模型类型 */ + @SerializedName("LLMType") + private Integer llmType; + + /** 模型描述 */ + @SerializedName("LLMDes") + private String llmDes; + + /** 模型token单价 */ + @SerializedName("LLMPrice") + private Double llmPrice; + + public String getLLMID() { + return llmid; + } + + public void setLLMID(String llmid) { + this.llmid = llmid; + } + + public String getLLMName() { + return llmName; + } + + public void setLLMName(String llmName) { + this.llmName = llmName; + } + + public Integer getLLMType() { + return llmType; + } + + public void setLLMType(Integer llmType) { + this.llmType = llmType; + } + + public String getLLMDes() { + return llmDes; + } + + public void setLLMDes(String llmDes) { + this.llmDes = llmDes; + } + + public Double getLLMPrice() { + return llmPrice; + } + + public void setLLMPrice(Double llmPrice) { + this.llmPrice = llmPrice; + } + } +} diff --git a/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/RunMVChatRequest.java b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/RunMVChatRequest.java new file mode 100644 index 00000000..a7c2e028 --- /dev/null +++ b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/RunMVChatRequest.java @@ -0,0 +1,77 @@ +/** + * 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.uai_modelverse.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 RunMVChatRequest extends Request { + + /** + * 按时间从老到新传输对话列表集合,需要与Content一一对应 Role为本条信息作者的角色,枚举值为user 或 assistant - user 指用户角色输入的信息 - + * assistant 指模型返回的信息 + */ + @NotEmpty + @UCloudParam("Role") + private List role; + + /** 按时间从老到新传输对话列表集合,需要与Role一一对应 Content为本条信息的具体内容 */ + @NotEmpty + @UCloudParam("Content") + private List content; + + /** 应用 ID */ + @NotEmpty + @UCloudParam("AppID") + private String appID; + + /** 会话 ID (不填写默认创建新会话) */ + @UCloudParam("SessionID") + private Integer sessionID; + + public List getRole() { + return role; + } + + public void setRole(List role) { + this.role = role; + } + + public List getContent() { + return content; + } + + public void setContent(List content) { + this.content = content; + } + + public String getAppID() { + return appID; + } + + public void setAppID(String appID) { + this.appID = appID; + } + + public Integer getSessionID() { + return sessionID; + } + + public void setSessionID(Integer sessionID) { + this.sessionID = sessionID; + } +} diff --git a/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/RunMVChatResponse.java b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/RunMVChatResponse.java new file mode 100644 index 00000000..cc0a8b95 --- /dev/null +++ b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/RunMVChatResponse.java @@ -0,0 +1,82 @@ +/** + * 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.uai_modelverse.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class RunMVChatResponse extends Response { + + /** 状态码描述 */ + @SerializedName("Msg") + private String msg; + + /** 消息唯一标识 */ + @SerializedName("ID") + private Integer id; + + /** 会话id */ + @SerializedName("SessionID") + private Integer sessionID; + + /** 回复内容 */ + @SerializedName("Response") + private String response; + + /** 时间 */ + @SerializedName("Time") + private Integer time; + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public Integer getID() { + return id; + } + + public void setID(Integer id) { + this.id = id; + } + + public Integer getSessionID() { + return sessionID; + } + + public void setSessionID(Integer sessionID) { + this.sessionID = sessionID; + } + + public String getResponse() { + return response; + } + + public void setResponse(String response) { + this.response = response; + } + + public Integer getTime() { + return time; + } + + public void setTime(Integer time) { + this.time = time; + } +} diff --git a/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/UpdateMVAppRequest.java b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/UpdateMVAppRequest.java new file mode 100644 index 00000000..5405c06c --- /dev/null +++ b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/UpdateMVAppRequest.java @@ -0,0 +1,119 @@ +/** + * 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.uai_modelverse.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class UpdateMVAppRequest extends Request { + + /** 应用ID */ + @NotEmpty + @UCloudParam("AppID") + private String appID; + + /** 应用名称 */ + @UCloudParam("AppName") + private String appName; + + /** 应用类型 */ + @UCloudParam("AppType") + private Integer appType; + + /** 应用状态 */ + @UCloudParam("AppState") + private Integer appState; + + /** 语言模型ID */ + @UCloudParam("LLMID") + private String llmid; + + /** 模型采样温度,(0,100)开区间,默认值95 */ + @UCloudParam("LLMTemperature") + private Integer llmTemperature; + + /** 模型采样温度(核取样),(0,100)开区间,默认值70 */ + @UCloudParam("LLMTopP") + private Integer llmTopP; + + /** 应用描述 */ + @UCloudParam("AppDes") + private String appDes; + + public String getAppID() { + return appID; + } + + public void setAppID(String appID) { + this.appID = appID; + } + + public String getAppName() { + return appName; + } + + public void setAppName(String appName) { + this.appName = appName; + } + + public Integer getAppType() { + return appType; + } + + public void setAppType(Integer appType) { + this.appType = appType; + } + + public Integer getAppState() { + return appState; + } + + public void setAppState(Integer appState) { + this.appState = appState; + } + + public String getLLMID() { + return llmid; + } + + public void setLLMID(String llmid) { + this.llmid = llmid; + } + + public Integer getLLMTemperature() { + return llmTemperature; + } + + public void setLLMTemperature(Integer llmTemperature) { + this.llmTemperature = llmTemperature; + } + + public Integer getLLMTopP() { + return llmTopP; + } + + public void setLLMTopP(Integer llmTopP) { + this.llmTopP = llmTopP; + } + + public String getAppDes() { + return appDes; + } + + public void setAppDes(String appDes) { + this.appDes = appDes; + } +} diff --git a/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/UpdateMVAppResponse.java b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/UpdateMVAppResponse.java new file mode 100644 index 00000000..5f4d8805 --- /dev/null +++ b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/UpdateMVAppResponse.java @@ -0,0 +1,169 @@ +/** + * 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.uai_modelverse.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class UpdateMVAppResponse extends Response { + + /** Code非0时,描述错误信息 */ + @SerializedName("Msg") + private String msg; + + /** */ + @SerializedName("AppInfo") + private AppInfo appInfo; + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public AppInfo getAppInfo() { + return appInfo; + } + + public void setAppInfo(AppInfo appInfo) { + this.appInfo = appInfo; + } + + public static class AppInfo extends Response { + + /** 应用名称 */ + @SerializedName("AppName") + private String appName; + + /** 应用ID */ + @SerializedName("AppID") + private String appID; + + /** 应用类型 */ + @SerializedName("AppType") + private Integer appType; + + /** 应用描述 */ + @SerializedName("AppDes") + private String appDes; + + /** 应用状态 */ + @SerializedName("AppState") + private Integer appState; + + /** 语言模型ID */ + @SerializedName("LLMID") + private String llmid; + + /** 模型采样温度 */ + @SerializedName("LLMTemperature") + private Integer llmTemperature; + + /** 模型采样温度的另一种方法(核取样) */ + @SerializedName("LLMTopP") + private Integer llmTopP; + + /** 应用创建时间 */ + @SerializedName("CreateTime") + private Integer createTime; + + /** 应用更新时间 */ + @SerializedName("UpdateTime") + private Integer updateTime; + + public String getAppName() { + return appName; + } + + public void setAppName(String appName) { + this.appName = appName; + } + + public String getAppID() { + return appID; + } + + public void setAppID(String appID) { + this.appID = appID; + } + + public Integer getAppType() { + return appType; + } + + public void setAppType(Integer appType) { + this.appType = appType; + } + + public String getAppDes() { + return appDes; + } + + public void setAppDes(String appDes) { + this.appDes = appDes; + } + + public Integer getAppState() { + return appState; + } + + public void setAppState(Integer appState) { + this.appState = appState; + } + + public String getLLMID() { + return llmid; + } + + public void setLLMID(String llmid) { + this.llmid = llmid; + } + + public Integer getLLMTemperature() { + return llmTemperature; + } + + public void setLLMTemperature(Integer llmTemperature) { + this.llmTemperature = llmTemperature; + } + + public Integer getLLMTopP() { + return llmTopP; + } + + public void setLLMTopP(Integer llmTopP) { + this.llmTopP = llmTopP; + } + + public Integer getCreateTime() { + return createTime; + } + + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public Integer getUpdateTime() { + return updateTime; + } + + public void setUpdateTime(Integer updateTime) { + this.updateTime = updateTime; + } + } +} diff --git a/ucloud-sdk-java-ubill/pom.xml b/ucloud-sdk-java-ubill/pom.xml index eeae5cbd..574eb2e8 100644 --- a/ucloud-sdk-java-ubill/pom.xml +++ b/ucloud-sdk-java-ubill/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.20-release + 1.2.21-release 4.0.0 ucloud-sdk-java-ubill - 1.2.20-release + 1.2.21-release cn.ucloud ucloud-sdk-java-common - 1.2.20-release + 1.2.21-release diff --git a/ucloud-sdk-java-ucdn/pom.xml b/ucloud-sdk-java-ucdn/pom.xml index fd037093..b7b47255 100644 --- a/ucloud-sdk-java-ucdn/pom.xml +++ b/ucloud-sdk-java-ucdn/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.20-release + 1.2.21-release 4.0.0 ucloud-sdk-java-ucdn - 1.2.20-release + 1.2.21-release cn.ucloud ucloud-sdk-java-common - 1.2.20-release + 1.2.21-release diff --git a/ucloud-sdk-java-ucompshare/pom.xml b/ucloud-sdk-java-ucompshare/pom.xml index e94d773a..f3775db4 100644 --- a/ucloud-sdk-java-ucompshare/pom.xml +++ b/ucloud-sdk-java-ucompshare/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.20-release + 1.2.21-release 4.0.0 ucloud-sdk-java-ucompshare - 1.2.20-release + 1.2.21-release cn.ucloud ucloud-sdk-java-common - 1.2.20-release + 1.2.21-release diff --git a/ucloud-sdk-java-udb/pom.xml b/ucloud-sdk-java-udb/pom.xml index d793de09..b82c5e4c 100644 --- a/ucloud-sdk-java-udb/pom.xml +++ b/ucloud-sdk-java-udb/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.20-release + 1.2.21-release 4.0.0 ucloud-sdk-java-udb - 1.2.20-release + 1.2.21-release cn.ucloud ucloud-sdk-java-common - 1.2.20-release + 1.2.21-release diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/client/UDBClient.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/client/UDBClient.java index 82cc7188..a47f81b9 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/client/UDBClient.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/client/UDBClient.java @@ -99,12 +99,16 @@ import cn.ucloud.udb.models.FetchUDBInstanceEarliestRecoverTimeResponse; import cn.ucloud.udb.models.GetUDBClientConnNumRequest; import cn.ucloud.udb.models.GetUDBClientConnNumResponse; +import cn.ucloud.udb.models.GetUDBInstanceSSLCertURLRequest; +import cn.ucloud.udb.models.GetUDBInstanceSSLCertURLResponse; import cn.ucloud.udb.models.ModifyUDBInstanceNameRequest; import cn.ucloud.udb.models.ModifyUDBInstanceNameResponse; import cn.ucloud.udb.models.ModifyUDBInstancePasswordRequest; import cn.ucloud.udb.models.ModifyUDBInstancePasswordResponse; import cn.ucloud.udb.models.ModifyUDBInstanceRemarkNameRequest; import cn.ucloud.udb.models.ModifyUDBInstanceRemarkNameResponse; +import cn.ucloud.udb.models.ModifyUDBInstanceSSLRequest; +import cn.ucloud.udb.models.ModifyUDBInstanceSSLResponse; import cn.ucloud.udb.models.PromoteUDBInstanceToHARequest; import cn.ucloud.udb.models.PromoteUDBInstanceToHAResponse; import cn.ucloud.udb.models.PromoteUDBSlaveRequest; @@ -671,6 +675,19 @@ public GetUDBClientConnNumResponse getUDBClientConnNum(GetUDBClientConnNumReques this.invoke(request, GetUDBClientConnNumResponse.class); } + /** + * GetUDBInstanceSSLCertURL - 获取SSL证书下载地址 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUDBInstanceSSLCertURLResponse getUDBInstanceSSLCertURL( + GetUDBInstanceSSLCertURLRequest request) throws UCloudException { + request.setAction("GetUDBInstanceSSLCertURL"); + return (GetUDBInstanceSSLCertURLResponse) + this.invoke(request, GetUDBInstanceSSLCertURLResponse.class); + } + /** * ModifyUDBInstanceName - 修改云数据库名称 * @@ -710,6 +727,19 @@ public ModifyUDBInstanceRemarkNameResponse modifyUDBInstanceRemarkName( this.invoke(request, ModifyUDBInstanceRemarkNameResponse.class); } + /** + * ModifyUDBInstanceSSL - 调整SSL的信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyUDBInstanceSSLResponse modifyUDBInstanceSSL(ModifyUDBInstanceSSLRequest request) + throws UCloudException { + request.setAction("ModifyUDBInstanceSSL"); + return (ModifyUDBInstanceSSLResponse) + this.invoke(request, ModifyUDBInstanceSSLResponse.class); + } + /** * PromoteUDBInstanceToHA - 普通db升级为高可用 * diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/client/UDBClientInterface.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/client/UDBClientInterface.java index a6714c71..b82cc139 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/client/UDBClientInterface.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/client/UDBClientInterface.java @@ -97,12 +97,16 @@ import cn.ucloud.udb.models.FetchUDBInstanceEarliestRecoverTimeResponse; import cn.ucloud.udb.models.GetUDBClientConnNumRequest; import cn.ucloud.udb.models.GetUDBClientConnNumResponse; +import cn.ucloud.udb.models.GetUDBInstanceSSLCertURLRequest; +import cn.ucloud.udb.models.GetUDBInstanceSSLCertURLResponse; import cn.ucloud.udb.models.ModifyUDBInstanceNameRequest; import cn.ucloud.udb.models.ModifyUDBInstanceNameResponse; import cn.ucloud.udb.models.ModifyUDBInstancePasswordRequest; import cn.ucloud.udb.models.ModifyUDBInstancePasswordResponse; import cn.ucloud.udb.models.ModifyUDBInstanceRemarkNameRequest; import cn.ucloud.udb.models.ModifyUDBInstanceRemarkNameResponse; +import cn.ucloud.udb.models.ModifyUDBInstanceSSLRequest; +import cn.ucloud.udb.models.ModifyUDBInstanceSSLResponse; import cn.ucloud.udb.models.PromoteUDBInstanceToHARequest; import cn.ucloud.udb.models.PromoteUDBInstanceToHAResponse; import cn.ucloud.udb.models.PromoteUDBSlaveRequest; @@ -509,6 +513,15 @@ public FetchUDBInstanceEarliestRecoverTimeResponse fetchUDBInstanceEarliestRecov public GetUDBClientConnNumResponse getUDBClientConnNum(GetUDBClientConnNumRequest request) throws UCloudException; + /** + * GetUDBInstanceSSLCertURL - 获取SSL证书下载地址 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUDBInstanceSSLCertURLResponse getUDBInstanceSSLCertURL( + GetUDBInstanceSSLCertURLRequest request) throws UCloudException; + /** * ModifyUDBInstanceName - 修改云数据库名称 * @@ -536,6 +549,15 @@ public ModifyUDBInstancePasswordResponse modifyUDBInstancePassword( public ModifyUDBInstanceRemarkNameResponse modifyUDBInstanceRemarkName( ModifyUDBInstanceRemarkNameRequest request) throws UCloudException; + /** + * ModifyUDBInstanceSSL - 调整SSL的信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyUDBInstanceSSLResponse modifyUDBInstanceSSL(ModifyUDBInstanceSSLRequest request) + throws UCloudException; + /** * PromoteUDBInstanceToHA - 普通db升级为高可用 * diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CreateUDBInstanceByRecoveryRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CreateUDBInstanceByRecoveryRequest.java index cbd10707..601de080 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CreateUDBInstanceByRecoveryRequest.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CreateUDBInstanceByRecoveryRequest.java @@ -89,6 +89,14 @@ public class CreateUDBInstanceByRecoveryRequest extends Request { @UCloudParam("AdminPassword") private String adminPassword; + /** 实例计算规格类型,0或不传代表使用内存方式购买,1代表使用内存-cpu可选配比方式购买,需要填写MachineType */ + @UCloudParam("SpecificationType") + private Integer specificationType; + + /** 规格类型ID,当SpecificationType为1时有效 */ + @UCloudParam("MachineType") + private String machineType; + /** 使用的代金券id */ @UCloudParam("CouponId") private String couponId; @@ -213,6 +221,22 @@ public void setAdminPassword(String adminPassword) { this.adminPassword = adminPassword; } + public Integer getSpecificationType() { + return specificationType; + } + + public void setSpecificationType(Integer specificationType) { + this.specificationType = specificationType; + } + + public String getMachineType() { + return machineType; + } + + public void setMachineType(String machineType) { + this.machineType = machineType; + } + public String getCouponId() { return couponId; } diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CreateUDBInstanceRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CreateUDBInstanceRequest.java index 735165be..87f19677 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CreateUDBInstanceRequest.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CreateUDBInstanceRequest.java @@ -76,7 +76,6 @@ public class CreateUDBInstanceRequest extends Request { * 内存限制(MB),目前支持以下几档 2000M/4000M/ 6000M/8000M/12000M/16000M/ 24000M/32000M/48000M/ * 64000M/96000M/128000M/192000M/256000M/320000M */ - @NotEmpty @UCloudParam("MemoryLimit") private Integer memoryLimit; @@ -144,10 +143,6 @@ public class CreateUDBInstanceRequest extends Request { @UCloudParam("Tag") private String tag; - /** 是否创建使用ipv6 资源, 默认为false, 或者不填, 创建ipv6为true */ - @UCloudParam("EnableIpV6") - private Boolean enableIpV6; - /** mysql小版本号,支持指定小版本创建 */ @UCloudParam("DBSubVersion") private String dbSubVersion; @@ -156,6 +151,14 @@ public class CreateUDBInstanceRequest extends Request { @UCloudParam("CaseSensitivityParam") private Integer caseSensitivityParam; + /** 实例计算规格类型,0或不传代表使用内存方式购买,1代表使用内存-cpu可选配比方式购买,需要填写MachineType */ + @UCloudParam("SpecificationType") + private String specificationType; + + /** 规格类型ID,当SpecificationType为1时有效 */ + @UCloudParam("MachineType") + private String machineType; + /** 使用的代金券id */ @UCloudParam("CouponId") private String couponId; @@ -368,14 +371,6 @@ public void setTag(String tag) { this.tag = tag; } - public Boolean getEnableIpV6() { - return enableIpV6; - } - - public void setEnableIpV6(Boolean enableIpV6) { - this.enableIpV6 = enableIpV6; - } - public String getDBSubVersion() { return dbSubVersion; } @@ -392,6 +387,22 @@ public void setCaseSensitivityParam(Integer caseSensitivityParam) { this.caseSensitivityParam = caseSensitivityParam; } + public String getSpecificationType() { + return specificationType; + } + + public void setSpecificationType(String specificationType) { + this.specificationType = specificationType; + } + + public String getMachineType() { + return machineType; + } + + public void setMachineType(String machineType) { + this.machineType = machineType; + } + public String getCouponId() { return couponId; } diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CreateUDBSlaveRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CreateUDBSlaveRequest.java index 323964dd..31124f1c 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CreateUDBSlaveRequest.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/CreateUDBSlaveRequest.java @@ -97,6 +97,14 @@ public class CreateUDBSlaveRequest extends Request { @UCloudParam("DelaySeconds") private Integer delaySeconds; + /** 实例计算规格类型,0或不传代表使用内存方式购买,1代表使用内存-cpu可选配比方式购买,需要填写MachineType */ + @UCloudParam("SpecificationType") + private Integer specificationType; + + /** 规格类型ID,当SpecificationType为1时有效 */ + @UCloudParam("MachineType") + private String machineType; + /** 使用的代金券id */ @UCloudParam("CouponId") private String couponId; @@ -237,6 +245,22 @@ public void setDelaySeconds(Integer delaySeconds) { this.delaySeconds = delaySeconds; } + public Integer getSpecificationType() { + return specificationType; + } + + public void setSpecificationType(Integer specificationType) { + this.specificationType = specificationType; + } + + public String getMachineType() { + return machineType; + } + + public void setMachineType(String machineType) { + this.machineType = machineType; + } + public String getCouponId() { return couponId; } diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstancePriceRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstancePriceRequest.java index d633d702..70aa5778 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstancePriceRequest.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstancePriceRequest.java @@ -69,6 +69,21 @@ public class DescribeUDBInstancePriceRequest extends Request { @UCloudParam("CPU") private Integer cpu; + /** + * UDB数据库机型: "SATA_SSD": "SSD机型" , "PCIE_SSD": "SSD高性能机型" , "Normal_Volume": "标准大容量机型", + * "SATA_SSD_Volume": "SSD大容量机型" , "PCIE_SSD_Volume": "SSD高性能大容量机型", "NVMe_SSD": "快杰机型" + */ + @UCloudParam("InstanceType") + private String instanceType; + + /** 实例计算规格类型,0或不传代表使用内存方式购买,1代表使用内存-cpu可选配比方式购买,需要填写MachineType */ + @UCloudParam("SpecificationType") + private Integer specificationType; + + /** 规格类型ID,当SpecificationType为1时有效 */ + @UCloudParam("MachineType") + private String machineType; + public String getRegion() { return region; } @@ -156,4 +171,28 @@ public Integer getCPU() { public void setCPU(Integer cpu) { this.cpu = cpu; } + + public String getInstanceType() { + return instanceType; + } + + public void setInstanceType(String instanceType) { + this.instanceType = instanceType; + } + + public Integer getSpecificationType() { + return specificationType; + } + + public void setSpecificationType(Integer specificationType) { + this.specificationType = specificationType; + } + + public String getMachineType() { + return machineType; + } + + public void setMachineType(String machineType) { + this.machineType = machineType; + } } diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceResponse.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceResponse.java index e8eb53fe..3a0d710b 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceResponse.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceResponse.java @@ -141,7 +141,7 @@ public static class UDBInstanceSet extends Response { * DB状态标记 * Init:初始化中,Fail:安装失败,Starting:启动中,Running:运行,Shutdown:关闭中,Shutoff:已关闭,Delete:已删除,Upgrading:升级中,Promoting:提升为独库进行中,Recovering:恢复中,Recover * fail:恢复失败, - * Remakeing:重做中,RemakeFail:重做失败,VersionUpgrading:小版本升级中,VersionUpgradeWaitForSwitch:高可用等待切换,VersionUpgradeFail:小版本升级失败,UpdatingSSL:修改SSL中,UpdateSSLFail:修改SSL失败 + * Remakeing:重做中,RemakeFail:重做失败,VersionUpgrading:小版本升级中,VersionUpgradeWaitForSwitch:高可用等待切换,VersionUpgradeFail:小版本升级失败,UpdatingSSL:修改SSL中,UpdateSSLFail:修改SSL失败,MajorVersionUpgrading:小版本升级中,MajorVersionUpgradeWaitForSwitch:高可用等待切换,MajorVersionUpgradeFail */ @SerializedName("State") private String state; @@ -244,6 +244,14 @@ public static class UDBInstanceSet extends Response { @SerializedName("BackupMethod") private String backupMethod; + /** 数据库机型规格 */ + @SerializedName("MachineType") + private String machineType; + + /** 是否使用可选cpu类型规格 */ + @SerializedName("SpecificationType") + private Integer specificationType; + public String getZone() { return zone; } @@ -603,6 +611,22 @@ public String getBackupMethod() { public void setBackupMethod(String backupMethod) { this.backupMethod = backupMethod; } + + public String getMachineType() { + return machineType; + } + + public void setMachineType(String machineType) { + this.machineType = machineType; + } + + public Integer getSpecificationType() { + return specificationType; + } + + public void setSpecificationType(Integer specificationType) { + this.specificationType = specificationType; + } } public static class UDBSlaveInstanceSet extends Response { @@ -674,7 +698,8 @@ public static class UDBSlaveInstanceSet extends Response { /** * DB状态标记 * Init:初始化中,Fail:安装失败,Starting:启动中,Running:运行,Shutdown:关闭中,Shutoff:已关闭,Delete:已删除,Upgrading:升级中,Promoting:提升为独库进行中,Recovering:恢复中,Recover - * fail:恢复失败,Remakeing:重做中,RemakeFail:重做失败 + * fail:恢复失败,Remakeing:重做中,RemakeFail:重做失败, + * MajorVersionUpgrading:小版本升级中,MajorVersionUpgradeWaitForSwitch:高可用等待切换,MajorVersionUpgradeFail */ @SerializedName("State") private String state; @@ -772,6 +797,14 @@ public static class UDBSlaveInstanceSet extends Response { @SerializedName("CaseSensitivityParam") private Integer caseSensitivityParam; + /** 实例计算规格类型,0或不传代表使用内存方式购买,1代表使用内存-cpu可选配比方式购买,需要填写MachineType */ + @SerializedName("SpecificationType") + private String specificationType; + + /** 规格类型ID,当SpecificationType为1时有效 */ + @SerializedName("MachineType") + private String machineType; + public String getZone() { return zone; } @@ -1075,6 +1108,22 @@ public Integer getCaseSensitivityParam() { public void setCaseSensitivityParam(Integer caseSensitivityParam) { this.caseSensitivityParam = caseSensitivityParam; } + + public String getSpecificationType() { + return specificationType; + } + + public void setSpecificationType(String specificationType) { + this.specificationType = specificationType; + } + + public String getMachineType() { + return machineType; + } + + public void setMachineType(String machineType) { + this.machineType = machineType; + } } public static class UFileDataSet extends Response { diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceUpgradePriceRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceUpgradePriceRequest.java index 8bcc9a35..28edc6f7 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceUpgradePriceRequest.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceUpgradePriceRequest.java @@ -63,6 +63,18 @@ public class DescribeUDBInstanceUpgradePriceRequest extends Request { @UCloudParam("OrderStartTime") private Integer orderStartTime; + /** CPU核数 快杰SQLServer升降级必传 */ + @UCloudParam("CPU") + private Integer cpu; + + /** 规格类型ID,当SpecificationType为1时有效 */ + @UCloudParam("MachineType") + private String machineType; + + /** 实例计算规格类型,0或不传代表使用内存方式购买,1代表使用内存-cpu可选配比方式购买,需要填写MachineType */ + @UCloudParam("SpecificationType") + private Integer specificationType; + public String getRegion() { return region; } @@ -134,4 +146,28 @@ public Integer getOrderStartTime() { public void setOrderStartTime(Integer orderStartTime) { this.orderStartTime = orderStartTime; } + + public Integer getCPU() { + return cpu; + } + + public void setCPU(Integer cpu) { + this.cpu = cpu; + } + + public String getMachineType() { + return machineType; + } + + public void setMachineType(String machineType) { + this.machineType = machineType; + } + + public Integer getSpecificationType() { + return specificationType; + } + + public void setSpecificationType(Integer specificationType) { + this.specificationType = specificationType; + } } diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/GetUDBInstanceSSLCertURLRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/GetUDBInstanceSSLCertURLRequest.java new file mode 100644 index 00000000..1611ee86 --- /dev/null +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/GetUDBInstanceSSLCertURLRequest.java @@ -0,0 +1,88 @@ +/** + * 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.udb.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class GetUDBInstanceSSLCertURLRequest 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("DBId") + private String dbId; + + /** URL的过期时间,该值最小默认1小时,最大7天。(单位/秒) */ + @UCloudParam("ExpireTime") + private Integer expireTime; + + 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 getDBId() { + return dbId; + } + + public void setDBId(String dbId) { + this.dbId = dbId; + } + + public Integer getExpireTime() { + return expireTime; + } + + public void setExpireTime(Integer expireTime) { + this.expireTime = expireTime; + } +} diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/GetUDBInstanceSSLCertURLResponse.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/GetUDBInstanceSSLCertURLResponse.java new file mode 100644 index 00000000..816c7abf --- /dev/null +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/GetUDBInstanceSSLCertURLResponse.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.udb.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class GetUDBInstanceSSLCertURLResponse extends Response { + + /** 外网链接 */ + @SerializedName("InternetUrl") + private String internetUrl; + + /** 内网链接 */ + @SerializedName("InnerUrl") + private String innerUrl; + + public String getInternetUrl() { + return internetUrl; + } + + public void setInternetUrl(String internetUrl) { + this.internetUrl = internetUrl; + } + + public String getInnerUrl() { + return innerUrl; + } + + public void setInnerUrl(String innerUrl) { + this.innerUrl = innerUrl; + } +} diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/ModifyUDBInstanceSSLRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/ModifyUDBInstanceSSLRequest.java new file mode 100644 index 00000000..c3fb8dcd --- /dev/null +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/ModifyUDBInstanceSSLRequest.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.udb.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class ModifyUDBInstanceSSLRequest 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("DBId") + private String dbId; + + /** 是否开启SSL 1->关闭 2->开启 */ + @NotEmpty + @UCloudParam("EnableSSL") + private Integer enableSSL; + + /** SSL证书有效时间,1-5年,默认为1年 */ + @UCloudParam("ValidTime") + private Integer validTime; + + 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 getDBId() { + return dbId; + } + + public void setDBId(String dbId) { + this.dbId = dbId; + } + + public Integer getEnableSSL() { + return enableSSL; + } + + public void setEnableSSL(Integer enableSSL) { + this.enableSSL = enableSSL; + } + + public Integer getValidTime() { + return validTime; + } + + public void setValidTime(Integer validTime) { + this.validTime = validTime; + } +} diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/ModifyUDBInstanceSSLResponse.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/ModifyUDBInstanceSSLResponse.java new file mode 100644 index 00000000..47b689ad --- /dev/null +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/ModifyUDBInstanceSSLResponse.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.udb.models; + + + +import cn.ucloud.common.response.Response; + +public class ModifyUDBInstanceSSLResponse extends Response {} diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/ResizeUDBInstanceRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/ResizeUDBInstanceRequest.java index f7956944..9a7b98bb 100644 --- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/ResizeUDBInstanceRequest.java +++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/ResizeUDBInstanceRequest.java @@ -73,6 +73,14 @@ public class ResizeUDBInstanceRequest extends Request { @UCloudParam("StartAfterUpgrade") private Boolean startAfterUpgrade; + /** 规格类型ID,当SpecificationType为1时有效 */ + @UCloudParam("MachineType") + private String machineType; + + /** 实例计算规格类型,0或不传代表使用内存方式购买,1代表使用内存-cpu可选配比方式购买,需要填写MachineType */ + @UCloudParam("SpecificationType") + private String specificationType; + /** 使用的代金券id */ @UCloudParam("CouponId") private String couponId; @@ -157,6 +165,22 @@ public void setStartAfterUpgrade(Boolean startAfterUpgrade) { this.startAfterUpgrade = startAfterUpgrade; } + public String getMachineType() { + return machineType; + } + + public void setMachineType(String machineType) { + this.machineType = machineType; + } + + public String getSpecificationType() { + return specificationType; + } + + public void setSpecificationType(String specificationType) { + this.specificationType = specificationType; + } + public String getCouponId() { return couponId; } diff --git a/ucloud-sdk-java-udbproxy/pom.xml b/ucloud-sdk-java-udbproxy/pom.xml index 9d59a59c..abd15979 100644 --- a/ucloud-sdk-java-udbproxy/pom.xml +++ b/ucloud-sdk-java-udbproxy/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.20-release + 1.2.21-release 4.0.0 ucloud-sdk-java-udbproxy - 1.2.20-release + 1.2.21-release cn.ucloud ucloud-sdk-java-common - 1.2.20-release + 1.2.21-release diff --git a/ucloud-sdk-java-udi/pom.xml b/ucloud-sdk-java-udi/pom.xml index a10134db..915c57f5 100644 --- a/ucloud-sdk-java-udi/pom.xml +++ b/ucloud-sdk-java-udi/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.20-release + 1.2.21-release 4.0.0 ucloud-sdk-java-udi - 1.2.20-release + 1.2.21-release cn.ucloud ucloud-sdk-java-common - 1.2.20-release + 1.2.21-release diff --git a/ucloud-sdk-java-udisk/pom.xml b/ucloud-sdk-java-udisk/pom.xml index 9719de3a..1b88fb7d 100644 --- a/ucloud-sdk-java-udisk/pom.xml +++ b/ucloud-sdk-java-udisk/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.20-release + 1.2.21-release 4.0.0 ucloud-sdk-java-udisk - 1.2.20-release + 1.2.21-release cn.ucloud ucloud-sdk-java-common - 1.2.20-release + 1.2.21-release diff --git a/ucloud-sdk-java-udpn/pom.xml b/ucloud-sdk-java-udpn/pom.xml index 1e70012f..09a6bf26 100644 --- a/ucloud-sdk-java-udpn/pom.xml +++ b/ucloud-sdk-java-udpn/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.20-release + 1.2.21-release 4.0.0 ucloud-sdk-java-udpn - 1.2.20-release + 1.2.21-release cn.ucloud ucloud-sdk-java-common - 1.2.20-release + 1.2.21-release diff --git a/ucloud-sdk-java-uec/pom.xml b/ucloud-sdk-java-uec/pom.xml index 616d00be..27166fe6 100644 --- a/ucloud-sdk-java-uec/pom.xml +++ b/ucloud-sdk-java-uec/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.20-release + 1.2.21-release 4.0.0 ucloud-sdk-java-uec - 1.2.20-release + 1.2.21-release cn.ucloud ucloud-sdk-java-common - 1.2.20-release + 1.2.21-release diff --git a/ucloud-sdk-java-uewaf/pom.xml b/ucloud-sdk-java-uewaf/pom.xml index 98070039..83a8b5fd 100644 --- a/ucloud-sdk-java-uewaf/pom.xml +++ b/ucloud-sdk-java-uewaf/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.20-release + 1.2.21-release 4.0.0 ucloud-sdk-java-uewaf - 1.2.20-release + 1.2.21-release cn.ucloud ucloud-sdk-java-common - 1.2.20-release + 1.2.21-release diff --git a/ucloud-sdk-java-ufile/pom.xml b/ucloud-sdk-java-ufile/pom.xml index 3128c158..cad70530 100644 --- a/ucloud-sdk-java-ufile/pom.xml +++ b/ucloud-sdk-java-ufile/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.20-release + 1.2.21-release 4.0.0 ucloud-sdk-java-ufile - 1.2.20-release + 1.2.21-release cn.ucloud ucloud-sdk-java-common - 1.2.20-release + 1.2.21-release diff --git a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/CreateBucketRequest.java b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/CreateBucketRequest.java index 9b578c7c..a2840921 100644 --- a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/CreateBucketRequest.java +++ b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/CreateBucketRequest.java @@ -20,12 +20,15 @@ public class CreateBucketRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ @NotEmpty @UCloudParam("Region") private String region; - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ @UCloudParam("ProjectId") private String projectId; @@ -38,6 +41,10 @@ public class CreateBucketRequest extends Request { @UCloudParam("Type") private String type; + /** Bucket所属业务组,默认为default */ + @UCloudParam("Tag") + private String tag; + public String getRegion() { return region; } @@ -69,4 +76,12 @@ public String getType() { public void setType(String type) { this.type = type; } + + public String getTag() { + return tag; + } + + public void setTag(String tag) { + this.tag = tag; + } } diff --git a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/SetUFileRefererRequest.java b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/SetUFileRefererRequest.java index fff1b81c..39f5dbb5 100644 --- a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/SetUFileRefererRequest.java +++ b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/SetUFileRefererRequest.java @@ -46,14 +46,25 @@ public class SetUFileRefererRequest extends Request { @UCloudParam("RefererAllowNull") private Boolean refererAllowNull; - /** 防盗链Referer类型,支持两种类型,黑名单和白名单; 1黑名单,2白名单;RefererStatus为"on"时此参数必填; */ + /** + * 防盗链Referer类型,支持三种类型, 1代表设置黑名单、2代表设置白名单, 3代表同时设置黑白名单; (其中1和2是为了向前兼容,后续调用只应该传递类型3) + * RefererStatus为"on"时此参数必填; + */ @UCloudParam("RefererType") private Integer refererType; - /** 防盗链Referer规则,支持正则表达式(不支持符号';') */ + /** 防盗链Referer规则,支持正则表达式(不支持符号';'),该字段已弃用,请使用WhiteList.n或BlackList.n */ @UCloudParam("Referers") private List referers; + /** 白名单列表中的一项 */ + @UCloudParam("WhiteList") + private List whiteList; + + /** 黑名单列表中的一项 */ + @UCloudParam("BlackList") + private List blackList; + public String getRegion() { return region; } @@ -109,4 +120,20 @@ public List getReferers() { public void setReferers(List referers) { this.referers = referers; } + + public List getWhiteList() { + return whiteList; + } + + public void setWhiteList(List whiteList) { + this.whiteList = whiteList; + } + + public List getBlackList() { + return blackList; + } + + public void setBlackList(List blackList) { + this.blackList = blackList; + } } diff --git a/ucloud-sdk-java-ufs/pom.xml b/ucloud-sdk-java-ufs/pom.xml index 2a196755..e3dd433f 100644 --- a/ucloud-sdk-java-ufs/pom.xml +++ b/ucloud-sdk-java-ufs/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.20-release + 1.2.21-release 4.0.0 ucloud-sdk-java-ufs - 1.2.20-release + 1.2.21-release cn.ucloud ucloud-sdk-java-common - 1.2.20-release + 1.2.21-release diff --git a/ucloud-sdk-java-uhost/pom.xml b/ucloud-sdk-java-uhost/pom.xml index 3eeb0c83..64fb324a 100644 --- a/ucloud-sdk-java-uhost/pom.xml +++ b/ucloud-sdk-java-uhost/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.20-release + 1.2.21-release 4.0.0 ucloud-sdk-java-uhost - 1.2.20-release + 1.2.21-release cn.ucloud ucloud-sdk-java-common - 1.2.20-release + 1.2.21-release diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/CreateUHostInstanceRequest.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/CreateUHostInstanceRequest.java index 6728c870..8e65e4fd 100644 --- a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/CreateUHostInstanceRequest.java +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/CreateUHostInstanceRequest.java @@ -153,7 +153,7 @@ public class CreateUHostInstanceRequest extends Request { @UCloudParam("MinimalCpuPlatform") private String minimalCpuPlatform; - /** 本次最大创建主机数量,取值范围是[1,100],默认值为1。 */ + /** 本次最大创建主机数量,取值范围是[1,100],默认值为1。 - 库存数量不足时,按库存数量创建。 - 配额不足时,返回错误。 - 使用隔离组时,以隔离组可用数量为准。 */ @UCloudParam("MaxCount") private Integer maxCount; @@ -185,6 +185,10 @@ public class CreateUHostInstanceRequest extends Request { @UCloudParam("SecGroupId") private List secGroupId; + /** 主机安全模式。Firewall:防火墙;SecGroup:安全组;默认值:Firewall。 */ + @UCloudParam("SecurityMode") + private String securityMode; + /** 【私有专区属性】专区id */ @UCloudParam("UDSetId") private String udSetId; @@ -473,6 +477,14 @@ public void setSecGroupId(List secGroupId) { this.secGroupId = secGroupId; } + public String getSecurityMode() { + return securityMode; + } + + public void setSecurityMode(String securityMode) { + this.securityMode = securityMode; + } + public String getUDSetId() { return udSetId; } @@ -523,7 +535,7 @@ public static class Disks extends Request { private Integer size; /** - * 磁盘备份方案。枚举值:\\ > NONE,无备份 \\ > DATAARK,数据方舟 \\ > SNAPSHOT,快照 \\当前磁盘支持的备份模式参考 + * 磁盘备份方案。枚举值:\\ > NONE,无备份 \\ > DATAARK,数据方舟【已下线,不再支持】 \\ > SNAPSHOT,快照 \\当前磁盘支持的备份模式参考 * [[api:uhost-api:disk_type|磁盘类型]],默认值:NONE */ @UCloudParam("BackupType") @@ -754,7 +766,32 @@ public void setCouponId(String couponId) { public static class NetworkInterfaceIPv6 extends Request {} - public static class SecGroupId extends Request {} + public static class SecGroupId extends Request { + + /** 安全组 ID。至多可以同时绑定5个安全组。 */ + @UCloudParam("Id") + private String id; + + /** 安全组优先级。取值范围[1, 5] */ + @UCloudParam("Priority") + private Integer priority; + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public Integer getPriority() { + return priority; + } + + public void setPriority(Integer priority) { + this.priority = priority; + } + } public static class Volumes extends Request {} } diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/GetUHostUpgradePriceRequest.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/GetUHostUpgradePriceRequest.java index dcb0ff7b..44b62e62 100644 --- a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/GetUHostUpgradePriceRequest.java +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/GetUHostUpgradePriceRequest.java @@ -49,6 +49,10 @@ public class GetUHostUpgradePriceRequest extends Request { @UCloudParam("Memory") private Integer memory; + /** GPU卡核心数。仅GPU机型支持此字段(可选范围与MachineType+GpuType相关) */ + @UCloudParam("GPU") + private Integer gpu; + /** 网卡升降级(1,表示升级,2表示降级,0表示不变) */ @UCloudParam("NetCapValue") private Integer netCapValue; @@ -101,6 +105,14 @@ public void setMemory(Integer memory) { this.memory = memory; } + public Integer getGPU() { + return gpu; + } + + public void setGPU(Integer gpu) { + this.gpu = gpu; + } + public Integer getNetCapValue() { return netCapValue; } diff --git a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/ResizeUHostInstanceRequest.java b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/ResizeUHostInstanceRequest.java index 161721b7..e4d5d21e 100644 --- a/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/ResizeUHostInstanceRequest.java +++ b/ucloud-sdk-java-uhost/src/main/java/cn/ucloud/uhost/models/ResizeUHostInstanceRequest.java @@ -49,6 +49,10 @@ public class ResizeUHostInstanceRequest extends Request { @UCloudParam("Memory") private Integer memory; + /** GPU卡核心数。仅GPU机型支持此字段(可选范围与MachineType+GpuType相关) */ + @UCloudParam("GPU") + private Integer gpu; + /** 网卡升降级(1,表示升级,2表示降级,0表示不变) */ @UCloudParam("NetCapValue") private Integer netCapValue; @@ -101,6 +105,14 @@ public void setMemory(Integer memory) { this.memory = memory; } + public Integer getGPU() { + return gpu; + } + + public void setGPU(Integer gpu) { + this.gpu = gpu; + } + public Integer getNetCapValue() { return netCapValue; } diff --git a/ucloud-sdk-java-uk8s/pom.xml b/ucloud-sdk-java-uk8s/pom.xml index 503b95f3..c58af115 100644 --- a/ucloud-sdk-java-uk8s/pom.xml +++ b/ucloud-sdk-java-uk8s/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.20-release + 1.2.21-release 4.0.0 ucloud-sdk-java-uk8s - 1.2.20-release + 1.2.21-release cn.ucloud ucloud-sdk-java-common - 1.2.20-release + 1.2.21-release diff --git a/ucloud-sdk-java-ulb/pom.xml b/ucloud-sdk-java-ulb/pom.xml index e08d26de..19f9af51 100644 --- a/ucloud-sdk-java-ulb/pom.xml +++ b/ucloud-sdk-java-ulb/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.20-release + 1.2.21-release 4.0.0 ucloud-sdk-java-ulb - 1.2.20-release + 1.2.21-release cn.ucloud ucloud-sdk-java-common - 1.2.20-release + 1.2.21-release diff --git a/ucloud-sdk-java-umem/pom.xml b/ucloud-sdk-java-umem/pom.xml index 075f1ee4..ec8199e9 100644 --- a/ucloud-sdk-java-umem/pom.xml +++ b/ucloud-sdk-java-umem/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.20-release + 1.2.21-release 4.0.0 ucloud-sdk-java-umem - 1.2.20-release + 1.2.21-release cn.ucloud ucloud-sdk-java-common - 1.2.20-release + 1.2.21-release diff --git a/ucloud-sdk-java-umongodb/pom.xml b/ucloud-sdk-java-umongodb/pom.xml index e38f61b3..1a4fdb20 100644 --- a/ucloud-sdk-java-umongodb/pom.xml +++ b/ucloud-sdk-java-umongodb/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.20-release + 1.2.21-release 4.0.0 ucloud-sdk-java-umongodb - 1.2.20-release + 1.2.21-release cn.ucloud ucloud-sdk-java-common - 1.2.20-release + 1.2.21-release diff --git a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/BackupUMongoDBClusterRequest.java b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/BackupUMongoDBClusterRequest.java index c15f6fe8..b78ca83e 100644 --- a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/BackupUMongoDBClusterRequest.java +++ b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/BackupUMongoDBClusterRequest.java @@ -30,6 +30,13 @@ public class BackupUMongoDBClusterRequest extends Request { @UCloudParam("Zone") private String zone; + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + /** 实例ID */ @NotEmpty @UCloudParam("ClusterId") @@ -56,6 +63,14 @@ public void setZone(String zone) { this.zone = zone; } + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + public String getClusterId() { return clusterId; } diff --git a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/GetUMongoDBBackupParamRequest.java b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/GetUMongoDBBackupParamRequest.java index 5570d434..c11e8c39 100644 --- a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/GetUMongoDBBackupParamRequest.java +++ b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/GetUMongoDBBackupParamRequest.java @@ -30,6 +30,13 @@ public class GetUMongoDBBackupParamRequest extends Request { @UCloudParam("Zone") private String zone; + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + /** 实例ID */ @NotEmpty @UCloudParam("ClusterId") @@ -51,6 +58,14 @@ public void setZone(String zone) { this.zone = zone; } + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + public String getClusterId() { return clusterId; } diff --git a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/GetUMongoDBBackupParamResponse.java b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/GetUMongoDBBackupParamResponse.java index e0260fde..2ad8469d 100644 --- a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/GetUMongoDBBackupParamResponse.java +++ b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/GetUMongoDBBackupParamResponse.java @@ -54,6 +54,10 @@ public static class BackupParam extends Response { @SerializedName("ManualBackupCopies") private Integer manualBackupCopies; + /** 是否禁用(false:未禁用;true:禁用) */ + @SerializedName("Disabled") + private Boolean disabled; + public String getClusterId() { return clusterId; } @@ -93,5 +97,13 @@ public Integer getManualBackupCopies() { public void setManualBackupCopies(Integer manualBackupCopies) { this.manualBackupCopies = manualBackupCopies; } + + public Boolean getDisabled() { + return disabled; + } + + public void setDisabled(Boolean disabled) { + this.disabled = disabled; + } } } diff --git a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/ListUMongoDBBackupRequest.java b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/ListUMongoDBBackupRequest.java index 7c8afcc2..11acb52a 100644 --- a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/ListUMongoDBBackupRequest.java +++ b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/ListUMongoDBBackupRequest.java @@ -30,6 +30,13 @@ public class ListUMongoDBBackupRequest extends Request { @UCloudParam("Zone") private String zone; + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + /** 实例ID */ @NotEmpty @UCloudParam("ClusterId") @@ -51,6 +58,14 @@ public void setZone(String zone) { this.zone = zone; } + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + public String getClusterId() { return clusterId; } diff --git a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/ListUMongoDBBackupResponse.java b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/ListUMongoDBBackupResponse.java index 794e93c6..a73d76b0 100644 --- a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/ListUMongoDBBackupResponse.java +++ b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/ListUMongoDBBackupResponse.java @@ -67,6 +67,18 @@ public static class BackupInfo extends Response { @SerializedName("EndTime") private Integer endTime; + /** 虚拟节点id */ + @SerializedName("VirtualClusterId") + private String virtualClusterId; + + /** 副本类型,ConfigRepl或者DataRepl */ + @SerializedName("ReplicaType") + private String replicaType; + + /** 批次id */ + @SerializedName("BatchId") + private String batchId; + public String getBackupId() { return backupId; } @@ -130,5 +142,29 @@ public Integer getEndTime() { public void setEndTime(Integer endTime) { this.endTime = endTime; } + + public String getVirtualClusterId() { + return virtualClusterId; + } + + public void setVirtualClusterId(String virtualClusterId) { + this.virtualClusterId = virtualClusterId; + } + + public String getReplicaType() { + return replicaType; + } + + public void setReplicaType(String replicaType) { + this.replicaType = replicaType; + } + + public String getBatchId() { + return batchId; + } + + public void setBatchId(String batchId) { + this.batchId = batchId; + } } } diff --git a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/ModifyUMongoDBBackupParamRequest.java b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/ModifyUMongoDBBackupParamRequest.java index 051bcc27..69fbca84 100644 --- a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/ModifyUMongoDBBackupParamRequest.java +++ b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/ModifyUMongoDBBackupParamRequest.java @@ -30,6 +30,13 @@ public class ModifyUMongoDBBackupParamRequest extends Request { @UCloudParam("Zone") private String zone; + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + /** 实例ID */ @NotEmpty @UCloudParam("ClusterId") @@ -43,6 +50,10 @@ public class ModifyUMongoDBBackupParamRequest extends Request { @UCloudParam("AutoBackupToggleTime") private String autoBackupToggleTime; + /** 是否禁用,true:禁用;false:开启 */ + @UCloudParam("Disabled") + private Boolean disabled; + public String getRegion() { return region; } @@ -59,6 +70,14 @@ public void setZone(String zone) { this.zone = zone; } + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + public String getClusterId() { return clusterId; } @@ -82,4 +101,12 @@ public String getAutoBackupToggleTime() { public void setAutoBackupToggleTime(String autoBackupToggleTime) { this.autoBackupToggleTime = autoBackupToggleTime; } + + public Boolean getDisabled() { + return disabled; + } + + public void setDisabled(Boolean disabled) { + this.disabled = disabled; + } } diff --git a/ucloud-sdk-java-unet/pom.xml b/ucloud-sdk-java-unet/pom.xml index 1cbd3d66..cd02e171 100644 --- a/ucloud-sdk-java-unet/pom.xml +++ b/ucloud-sdk-java-unet/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.20-release + 1.2.21-release 4.0.0 ucloud-sdk-java-unet - 1.2.20-release + 1.2.21-release cn.ucloud ucloud-sdk-java-common - 1.2.20-release + 1.2.21-release diff --git a/ucloud-sdk-java-upgsql/pom.xml b/ucloud-sdk-java-upgsql/pom.xml index e551a614..c68ef2a7 100644 --- a/ucloud-sdk-java-upgsql/pom.xml +++ b/ucloud-sdk-java-upgsql/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.20-release + 1.2.21-release 4.0.0 ucloud-sdk-java-upgsql - 1.2.20-release + 1.2.21-release cn.ucloud ucloud-sdk-java-common - 1.2.20-release + 1.2.21-release diff --git a/ucloud-sdk-java-uphone/pom.xml b/ucloud-sdk-java-uphone/pom.xml index 4cfcb3ee..cef4156f 100644 --- a/ucloud-sdk-java-uphone/pom.xml +++ b/ucloud-sdk-java-uphone/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.20-release + 1.2.21-release 4.0.0 ucloud-sdk-java-uphone - 1.2.20-release + 1.2.21-release cn.ucloud ucloud-sdk-java-common - 1.2.20-release + 1.2.21-release diff --git a/ucloud-sdk-java-uphost/pom.xml b/ucloud-sdk-java-uphost/pom.xml index 86f600b9..cc0da7bd 100644 --- a/ucloud-sdk-java-uphost/pom.xml +++ b/ucloud-sdk-java-uphost/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.20-release + 1.2.21-release 4.0.0 ucloud-sdk-java-uphost - 1.2.20-release + 1.2.21-release cn.ucloud ucloud-sdk-java-common - 1.2.20-release + 1.2.21-release diff --git a/ucloud-sdk-java-uslk/pom.xml b/ucloud-sdk-java-uslk/pom.xml index cd28d2ab..48895b81 100644 --- a/ucloud-sdk-java-uslk/pom.xml +++ b/ucloud-sdk-java-uslk/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.20-release + 1.2.21-release 4.0.0 ucloud-sdk-java-uslk - 1.2.20-release + 1.2.21-release cn.ucloud ucloud-sdk-java-common - 1.2.20-release + 1.2.21-release diff --git a/ucloud-sdk-java-usms/pom.xml b/ucloud-sdk-java-usms/pom.xml index 290fe91e..979bff95 100644 --- a/ucloud-sdk-java-usms/pom.xml +++ b/ucloud-sdk-java-usms/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.20-release + 1.2.21-release 4.0.0 ucloud-sdk-java-usms - 1.2.20-release + 1.2.21-release cn.ucloud ucloud-sdk-java-common - 1.2.20-release + 1.2.21-release diff --git a/ucloud-sdk-java-usnap/pom.xml b/ucloud-sdk-java-usnap/pom.xml index bc858aee..e4d4d473 100644 --- a/ucloud-sdk-java-usnap/pom.xml +++ b/ucloud-sdk-java-usnap/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.20-release + 1.2.21-release 4.0.0 ucloud-sdk-java-usnap - 1.2.20-release + 1.2.21-release cn.ucloud ucloud-sdk-java-common - 1.2.20-release + 1.2.21-release diff --git a/ucloud-sdk-java-uvms/pom.xml b/ucloud-sdk-java-uvms/pom.xml index 7037ceab..757b1064 100644 --- a/ucloud-sdk-java-uvms/pom.xml +++ b/ucloud-sdk-java-uvms/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.20-release + 1.2.21-release 4.0.0 ucloud-sdk-java-uvms - 1.2.20-release + 1.2.21-release cn.ucloud ucloud-sdk-java-common - 1.2.20-release + 1.2.21-release diff --git a/ucloud-sdk-java-vpc/pom.xml b/ucloud-sdk-java-vpc/pom.xml index 11ecccf2..682da7a4 100644 --- a/ucloud-sdk-java-vpc/pom.xml +++ b/ucloud-sdk-java-vpc/pom.xml @@ -5,18 +5,18 @@ ucloud-sdk-java cn.ucloud - 1.2.20-release + 1.2.21-release 4.0.0 ucloud-sdk-java-vpc - 1.2.20-release + 1.2.21-release cn.ucloud ucloud-sdk-java-common - 1.2.20-release + 1.2.21-release