diff --git a/VERSION b/VERSION index 3b3fef0d..351f7dc2 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.2.17-release +1.2.18-release diff --git a/examples/generic/pom.xml b/examples/generic/pom.xml index d5b69260..4576b085 100644 --- a/examples/generic/pom.xml +++ b/examples/generic/pom.xml @@ -7,7 +7,7 @@ ucloud-sdk-java cn.ucloud - 1.2.17-release + 1.2.18-release 4.0.0 @@ -18,7 +18,7 @@ cn.ucloud ucloud-sdk-java-common - 1.2.17-release + 1.2.18-release diff --git a/examples/uhost/pom.xml b/examples/uhost/pom.xml index 34dadb0c..26c1f4bd 100644 --- a/examples/uhost/pom.xml +++ b/examples/uhost/pom.xml @@ -7,7 +7,7 @@ ucloud-sdk-java cn.ucloud - 1.2.17-release + 1.2.18-release 4.0.0 @@ -18,7 +18,7 @@ cn.ucloud ucloud-sdk-java-uhost - 1.2.17-release + 1.2.18-release diff --git a/pom.xml b/pom.xml index af0ef805..1c18aa31 100644 --- a/pom.xml +++ b/pom.xml @@ -7,13 +7,14 @@ cn.ucloud ucloud-sdk-java pom - 1.2.17-release + 1.2.18-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 04e0556d..8f328ebb 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.17-release + 1.2.18-release 4.0.0 ucloud-sdk-java-common - 1.2.17-release + 1.2.18-release diff --git a/ucloud-sdk-java-cube/pom.xml b/ucloud-sdk-java-cube/pom.xml index e2a31ece..2995d0c3 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.17-release + 1.2.18-release 4.0.0 ucloud-sdk-java-cube - 1.2.17-release + 1.2.18-release cn.ucloud ucloud-sdk-java-common - 1.2.17-release + 1.2.18-release diff --git a/ucloud-sdk-java-ipsecvpn/pom.xml b/ucloud-sdk-java-ipsecvpn/pom.xml index 0bd422eb..5856a726 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.17-release + 1.2.18-release 4.0.0 ucloud-sdk-java-ipsecvpn - 1.2.17-release + 1.2.18-release cn.ucloud ucloud-sdk-java-common - 1.2.17-release + 1.2.18-release diff --git a/ucloud-sdk-java-pathx/pom.xml b/ucloud-sdk-java-pathx/pom.xml index b600c6a1..77cee84a 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.17-release + 1.2.18-release 4.0.0 ucloud-sdk-java-pathx - 1.2.17-release + 1.2.18-release cn.ucloud ucloud-sdk-java-common - 1.2.17-release + 1.2.18-release diff --git a/ucloud-sdk-java-sts/pom.xml b/ucloud-sdk-java-sts/pom.xml index 88b37707..1884dd28 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.17-release + 1.2.18-release 4.0.0 ucloud-sdk-java-sts - 1.2.17-release + 1.2.18-release cn.ucloud ucloud-sdk-java-common - 1.2.17-release + 1.2.18-release diff --git a/ucloud-sdk-java-uaccount/pom.xml b/ucloud-sdk-java-uaccount/pom.xml index 6eaaa446..253b52f4 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.17-release + 1.2.18-release 4.0.0 ucloud-sdk-java-uaccount - 1.2.17-release + 1.2.18-release cn.ucloud ucloud-sdk-java-common - 1.2.17-release + 1.2.18-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..fb97fe51 --- /dev/null +++ b/ucloud-sdk-java-uai_modelverse/pom.xml @@ -0,0 +1,48 @@ + + + + ucloud-sdk-java + cn.ucloud + 1.2.18-release + + + 4.0.0 + ucloud-sdk-java-uai_modelverse + 1.2.18-release + + + + cn.ucloud + ucloud-sdk-java-common + 1.2.18-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..750ae197 --- /dev/null +++ b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/client/UAI-ModelverseClient.java @@ -0,0 +1,156 @@ +/** + * 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..938d87a4 --- /dev/null +++ b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/client/UAI-ModelverseClientInterface.java @@ -0,0 +1,133 @@ +/** + * 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.client; + +import cn.ucloud.common.client.Client; +import cn.ucloud.common.exception.UCloudException; + + + +import cn.ucloud.uai_modelverse.models.CreateMVAppRequest; +import cn.ucloud.uai_modelverse.models.CreateMVAppResponse; + + + +import cn.ucloud.uai_modelverse.models.DeleteMVAppRequest; +import cn.ucloud.uai_modelverse.models.DeleteMVAppResponse; + + + +import cn.ucloud.uai_modelverse.models.QueryMVAppRequest; +import cn.ucloud.uai_modelverse.models.QueryMVAppResponse; + + + +import cn.ucloud.uai_modelverse.models.QueryMVLLMListRequest; +import cn.ucloud.uai_modelverse.models.QueryMVLLMListResponse; + + + +import cn.ucloud.uai_modelverse.models.RunMVChatRequest; +import cn.ucloud.uai_modelverse.models.RunMVChatResponse; + + + +import cn.ucloud.uai_modelverse.models.UpdateMVAppRequest; +import cn.ucloud.uai_modelverse.models.UpdateMVAppResponse; + +/** + * This client is used to call actions of **UAI-Modelverse** service + */ +public interface UAI-ModelverseClientInterface 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..0c8bea62 --- /dev/null +++ b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/CreateMVAppRequest.java @@ -0,0 +1,137 @@ +/** + * 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 java.util.List; + + +import cn.ucloud.common.request.Request; +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; + +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..52628ccf --- /dev/null +++ b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/CreateMVAppResponse.java @@ -0,0 +1,233 @@ +/** + * 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 java.util.List; + + +import com.google.gson.annotations.SerializedName; + +import cn.ucloud.common.response.Response; + +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..35db7907 --- /dev/null +++ b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/DeleteMVAppRequest.java @@ -0,0 +1,55 @@ +/** + * 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 java.util.List; + + +import cn.ucloud.common.request.Request; +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; + +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..c5eb388e --- /dev/null +++ b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/DeleteMVAppResponse.java @@ -0,0 +1,54 @@ +/** + * 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 java.util.List; + + +import com.google.gson.annotations.SerializedName; + +import cn.ucloud.common.response.Response; + +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..aec43c2e --- /dev/null +++ b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/QueryMVAppRequest.java @@ -0,0 +1,54 @@ +/** + * 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 java.util.List; + + +import cn.ucloud.common.request.Request; +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; + +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..2897ad0d --- /dev/null +++ b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/QueryMVAppResponse.java @@ -0,0 +1,233 @@ +/** + * 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 java.util.List; + + +import com.google.gson.annotations.SerializedName; + +import cn.ucloud.common.response.Response; + +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..16c23986 --- /dev/null +++ b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/QueryMVLLMListRequest.java @@ -0,0 +1,54 @@ +/** + * 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 java.util.List; + + +import cn.ucloud.common.request.Request; +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; + +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..c3a03014 --- /dev/null +++ b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/QueryMVLLMListResponse.java @@ -0,0 +1,153 @@ +/** + * 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 java.util.List; + + +import com.google.gson.annotations.SerializedName; + +import cn.ucloud.common.response.Response; + +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..e8489e52 --- /dev/null +++ b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/RunMVChatRequest.java @@ -0,0 +1,109 @@ +/** + * 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 java.util.List; + + +import cn.ucloud.common.request.Request; +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; + +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..3862d922 --- /dev/null +++ b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/RunMVChatResponse.java @@ -0,0 +1,118 @@ +/** + * 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 java.util.List; + + +import com.google.gson.annotations.SerializedName; + +import cn.ucloud.common.response.Response; + +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..608d5a30 --- /dev/null +++ b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/UpdateMVAppRequest.java @@ -0,0 +1,167 @@ +/** + * 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 java.util.List; + + +import cn.ucloud.common.request.Request; +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; + +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..e55d7371 --- /dev/null +++ b/ucloud-sdk-java-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/models/UpdateMVAppResponse.java @@ -0,0 +1,233 @@ +/** + * 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 java.util.List; + + +import com.google.gson.annotations.SerializedName; + +import cn.ucloud.common.response.Response; + +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 4e042dd0..bae3ddf0 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.17-release + 1.2.18-release 4.0.0 ucloud-sdk-java-ubill - 1.2.17-release + 1.2.18-release cn.ucloud ucloud-sdk-java-common - 1.2.17-release + 1.2.18-release diff --git a/ucloud-sdk-java-ucdn/pom.xml b/ucloud-sdk-java-ucdn/pom.xml index 561faba4..9a94586b 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.17-release + 1.2.18-release 4.0.0 ucloud-sdk-java-ucdn - 1.2.17-release + 1.2.18-release cn.ucloud ucloud-sdk-java-common - 1.2.17-release + 1.2.18-release diff --git a/ucloud-sdk-java-ucompshare/pom.xml b/ucloud-sdk-java-ucompshare/pom.xml index c3a02918..8aee9679 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.17-release + 1.2.18-release 4.0.0 ucloud-sdk-java-ucompshare - 1.2.17-release + 1.2.18-release cn.ucloud ucloud-sdk-java-common - 1.2.17-release + 1.2.18-release diff --git a/ucloud-sdk-java-udb/pom.xml b/ucloud-sdk-java-udb/pom.xml index b46722f6..2e487d3e 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.17-release + 1.2.18-release 4.0.0 ucloud-sdk-java-udb - 1.2.17-release + 1.2.18-release cn.ucloud ucloud-sdk-java-common - 1.2.17-release + 1.2.18-release diff --git a/ucloud-sdk-java-udbproxy/pom.xml b/ucloud-sdk-java-udbproxy/pom.xml index fba8b4f4..56ab786e 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.17-release + 1.2.18-release 4.0.0 ucloud-sdk-java-udbproxy - 1.2.17-release + 1.2.18-release cn.ucloud ucloud-sdk-java-common - 1.2.17-release + 1.2.18-release diff --git a/ucloud-sdk-java-udi/pom.xml b/ucloud-sdk-java-udi/pom.xml index 40275062..a2e65d79 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.17-release + 1.2.18-release 4.0.0 ucloud-sdk-java-udi - 1.2.17-release + 1.2.18-release cn.ucloud ucloud-sdk-java-common - 1.2.17-release + 1.2.18-release diff --git a/ucloud-sdk-java-udisk/pom.xml b/ucloud-sdk-java-udisk/pom.xml index 9bf1db45..b7b4b181 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.17-release + 1.2.18-release 4.0.0 ucloud-sdk-java-udisk - 1.2.17-release + 1.2.18-release cn.ucloud ucloud-sdk-java-common - 1.2.17-release + 1.2.18-release diff --git a/ucloud-sdk-java-udpn/pom.xml b/ucloud-sdk-java-udpn/pom.xml index 25c40c54..52a2fafe 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.17-release + 1.2.18-release 4.0.0 ucloud-sdk-java-udpn - 1.2.17-release + 1.2.18-release cn.ucloud ucloud-sdk-java-common - 1.2.17-release + 1.2.18-release diff --git a/ucloud-sdk-java-uec/pom.xml b/ucloud-sdk-java-uec/pom.xml index 9682ca95..8b522bb1 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.17-release + 1.2.18-release 4.0.0 ucloud-sdk-java-uec - 1.2.17-release + 1.2.18-release cn.ucloud ucloud-sdk-java-common - 1.2.17-release + 1.2.18-release diff --git a/ucloud-sdk-java-uewaf/pom.xml b/ucloud-sdk-java-uewaf/pom.xml index bdf3a6cb..01365ef1 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.17-release + 1.2.18-release 4.0.0 ucloud-sdk-java-uewaf - 1.2.17-release + 1.2.18-release cn.ucloud ucloud-sdk-java-common - 1.2.17-release + 1.2.18-release diff --git a/ucloud-sdk-java-ufile/pom.xml b/ucloud-sdk-java-ufile/pom.xml index 854bee9b..885b6340 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.17-release + 1.2.18-release 4.0.0 ucloud-sdk-java-ufile - 1.2.17-release + 1.2.18-release cn.ucloud ucloud-sdk-java-common - 1.2.17-release + 1.2.18-release diff --git a/ucloud-sdk-java-ufs/pom.xml b/ucloud-sdk-java-ufs/pom.xml index a400e283..08d06034 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.17-release + 1.2.18-release 4.0.0 ucloud-sdk-java-ufs - 1.2.17-release + 1.2.18-release cn.ucloud ucloud-sdk-java-common - 1.2.17-release + 1.2.18-release diff --git a/ucloud-sdk-java-uhost/pom.xml b/ucloud-sdk-java-uhost/pom.xml index 34f69a63..29bdbdaf 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.17-release + 1.2.18-release 4.0.0 ucloud-sdk-java-uhost - 1.2.17-release + 1.2.18-release cn.ucloud ucloud-sdk-java-common - 1.2.17-release + 1.2.18-release diff --git a/ucloud-sdk-java-uk8s/pom.xml b/ucloud-sdk-java-uk8s/pom.xml index 041dd184..e312dc36 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.17-release + 1.2.18-release 4.0.0 ucloud-sdk-java-uk8s - 1.2.17-release + 1.2.18-release cn.ucloud ucloud-sdk-java-common - 1.2.17-release + 1.2.18-release diff --git a/ucloud-sdk-java-ulb/pom.xml b/ucloud-sdk-java-ulb/pom.xml index 8ec267c5..f8bab85d 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.17-release + 1.2.18-release 4.0.0 ucloud-sdk-java-ulb - 1.2.17-release + 1.2.18-release cn.ucloud ucloud-sdk-java-common - 1.2.17-release + 1.2.18-release diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/client/ULBClient.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/client/ULBClient.java index fd101b14..4f1eda0d 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/client/ULBClient.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/client/ULBClient.java @@ -55,8 +55,12 @@ import cn.ucloud.ulb.models.DeleteVServerResponse; import cn.ucloud.ulb.models.DescribeSSLRequest; import cn.ucloud.ulb.models.DescribeSSLResponse; +import cn.ucloud.ulb.models.DescribeSSLV2Request; +import cn.ucloud.ulb.models.DescribeSSLV2Response; import cn.ucloud.ulb.models.DescribeSecurityPoliciesRequest; import cn.ucloud.ulb.models.DescribeSecurityPoliciesResponse; +import cn.ucloud.ulb.models.DescribeSecurityPoliciesV2Request; +import cn.ucloud.ulb.models.DescribeSecurityPoliciesV2Response; import cn.ucloud.ulb.models.DescribeSupportCiphersRequest; import cn.ucloud.ulb.models.DescribeSupportCiphersResponse; import cn.ucloud.ulb.models.DescribeULBRequest; @@ -75,6 +79,8 @@ import cn.ucloud.ulb.models.UnbindSSLResponse; import cn.ucloud.ulb.models.UpdateBackendAttributeRequest; import cn.ucloud.ulb.models.UpdateBackendAttributeResponse; +import cn.ucloud.ulb.models.UpdateBackendBatchRequest; +import cn.ucloud.ulb.models.UpdateBackendBatchResponse; import cn.ucloud.ulb.models.UpdateListenerAttributeRequest; import cn.ucloud.ulb.models.UpdateListenerAttributeResponse; import cn.ucloud.ulb.models.UpdateLoadBalancerAttributeRequest; @@ -103,7 +109,7 @@ public ULBClient(Config config, Credential credential) { } /** - * AddTargets - 添加后端服务节点 + * AddTargets - 添加应用型负载均衡的后端服务节点 * * @param request Request object * @throws UCloudException Exception @@ -114,7 +120,7 @@ public AddTargetsResponse addTargets(AddTargetsRequest request) throws UCloudExc } /** - * AllocateBackend - 添加后端实例 + * AllocateBackend - 添加传统型负载均衡的后端实例 * * @param request Request object * @throws UCloudException Exception @@ -126,7 +132,7 @@ public AllocateBackendResponse allocateBackend(AllocateBackendRequest request) } /** - * BindSSL - 绑定SSL证书 + * BindSSL - 传统型负载均衡绑定SSL证书 * * @param request Request object * @throws UCloudException Exception @@ -137,7 +143,7 @@ public BindSSLResponse bindSSL(BindSSLRequest request) throws UCloudException { } /** - * CreateListener - 创建监听器 + * CreateListener - 创建应用型负载均衡监听器 * * @param request Request object * @throws UCloudException Exception @@ -149,7 +155,7 @@ public CreateListenerResponse createListener(CreateListenerRequest request) } /** - * CreateLoadBalancer - 创建负载均衡实例 + * CreateLoadBalancer - 创建应用型负载均衡实例 * * @param request Request object * @throws UCloudException Exception @@ -161,7 +167,7 @@ public CreateLoadBalancerResponse createLoadBalancer(CreateLoadBalancerRequest r } /** - * CreatePolicy - 创建内容转发策略 + * CreatePolicy - 传统型负载均衡创建内容转发策略 * * @param request Request object * @throws UCloudException Exception @@ -196,7 +202,7 @@ public CreateSecurityPolicyResponse createSecurityPolicy(CreateSecurityPolicyReq } /** - * CreateULB - 创建负载均衡 + * CreateULB - 创建传统型负载均衡负载均衡 * * @param request Request object * @throws UCloudException Exception @@ -207,7 +213,7 @@ public CreateULBResponse createULB(CreateULBRequest request) throws UCloudExcept } /** - * CreateVServer - 创建VServer + * CreateVServer - 创建CLB的VServer * * @param request Request object * @throws UCloudException Exception @@ -219,7 +225,7 @@ public CreateVServerResponse createVServer(CreateVServerRequest request) } /** - * DeleteListener - 删除监听器 + * DeleteListener - 删除应用型负载均衡监听器 * * @param request Request object * @throws UCloudException Exception @@ -231,7 +237,7 @@ public DeleteListenerResponse deleteListener(DeleteListenerRequest request) } /** - * DeleteLoadBalancer - 删除负载均衡实例 + * DeleteLoadBalancer - 删除应用型负载均衡实例 * * @param request Request object * @throws UCloudException Exception @@ -243,7 +249,7 @@ public DeleteLoadBalancerResponse deleteLoadBalancer(DeleteLoadBalancerRequest r } /** - * DeletePolicy - 删除转发策略 + * DeletePolicy - 删除传统型负载均衡的内容转发策略 * * @param request Request object * @throws UCloudException Exception @@ -254,7 +260,7 @@ public DeletePolicyResponse deletePolicy(DeletePolicyRequest request) throws UCl } /** - * DeleteRule - 删除转发规则 + * DeleteRule - 删除应用型负载均衡的转发规则 * * @param request Request object * @throws UCloudException Exception @@ -289,7 +295,7 @@ public DeleteSecurityPolicyResponse deleteSecurityPolicy(DeleteSecurityPolicyReq } /** - * DeleteULB - 删除负载均衡 + * DeleteULB - 删除传统型负载均衡 * * @param request Request object * @throws UCloudException Exception @@ -300,7 +306,7 @@ public DeleteULBResponse deleteULB(DeleteULBRequest request) throws UCloudExcept } /** - * DeleteVServer - 删除VServer + * DeleteVServer - 删除CLB的VServer * * @param request Request object * @throws UCloudException Exception @@ -322,6 +328,18 @@ public DescribeSSLResponse describeSSL(DescribeSSLRequest request) throws UCloud return (DescribeSSLResponse) this.invoke(request, DescribeSSLResponse.class); } + /** + * DescribeSSLV2 - 获取SSL证书信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeSSLV2Response describeSSLV2(DescribeSSLV2Request request) + throws UCloudException { + request.setAction("DescribeSSLV2"); + return (DescribeSSLV2Response) this.invoke(request, DescribeSSLV2Response.class); + } + /** * DescribeSecurityPolicies - 获取安全策略的信息 * @@ -335,6 +353,19 @@ public DescribeSecurityPoliciesResponse describeSecurityPolicies( this.invoke(request, DescribeSecurityPoliciesResponse.class); } + /** + * DescribeSecurityPoliciesV2 - 获取安全策略的信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeSecurityPoliciesV2Response describeSecurityPoliciesV2( + DescribeSecurityPoliciesV2Request request) throws UCloudException { + request.setAction("DescribeSecurityPoliciesV2"); + return (DescribeSecurityPoliciesV2Response) + this.invoke(request, DescribeSecurityPoliciesV2Response.class); + } + /** * DescribeSupportCiphers - 描述支持的加密套件 * @@ -349,7 +380,7 @@ public DescribeSupportCiphersResponse describeSupportCiphers( } /** - * DescribeULB - 获取负载均衡信息 + * DescribeULB - 获取传统型负载均衡信息 * * @param request Request object * @throws UCloudException Exception @@ -360,7 +391,7 @@ public DescribeULBResponse describeULB(DescribeULBRequest request) throws UCloud } /** - * DescribeULBSimple - 获取负载均衡信息 + * DescribeULBSimple - 获取传统型负载均衡信息 * * @param request Request object * @throws UCloudException Exception @@ -372,7 +403,7 @@ public DescribeULBSimpleResponse describeULBSimple(DescribeULBSimpleRequest requ } /** - * DescribeVServer - 获取VServer信息 + * DescribeVServer - 获取CLB下的VServer信息 * * @param request Request object * @throws UCloudException Exception @@ -384,7 +415,7 @@ public DescribeVServerResponse describeVServer(DescribeVServerRequest request) } /** - * ReleaseBackend - 释放后端实例 + * ReleaseBackend - 释放传统型负载均衡的后端实例 * * @param request Request object * @throws UCloudException Exception @@ -396,7 +427,7 @@ public ReleaseBackendResponse releaseBackend(ReleaseBackendRequest request) } /** - * RemoveTargets - 删除后端服务节点 + * RemoveTargets - 删除应用型负载均衡的后端服务节点 * * @param request Request object * @throws UCloudException Exception @@ -421,7 +452,7 @@ public UnBindSecurityPolicyResponse unBindSecurityPolicy(UnBindSecurityPolicyReq } /** - * UnbindSSL - 解绑SSL证书 + * UnbindSSL - 传统型负载均衡解绑SSL证书 * * @param request Request object * @throws UCloudException Exception @@ -432,7 +463,7 @@ public UnbindSSLResponse unbindSSL(UnbindSSLRequest request) throws UCloudExcept } /** - * UpdateBackendAttribute - 更新后端实例属性 + * UpdateBackendAttribute - 更新传统型负载均衡的后端实例属性 * * @param request Request object * @throws UCloudException Exception @@ -445,7 +476,19 @@ public UpdateBackendAttributeResponse updateBackendAttribute( } /** - * UpdateListenerAttribute - 更新监听器属性 + * UpdateBackendBatch - 批量更新后端实例属性 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateBackendBatchResponse updateBackendBatch(UpdateBackendBatchRequest request) + throws UCloudException { + request.setAction("UpdateBackendBatch"); + return (UpdateBackendBatchResponse) this.invoke(request, UpdateBackendBatchResponse.class); + } + + /** + * UpdateListenerAttribute - 更新应用型负载均衡监听器属性 * * @param request Request object * @throws UCloudException Exception @@ -458,7 +501,7 @@ public UpdateListenerAttributeResponse updateListenerAttribute( } /** - * UpdateLoadBalancerAttribute - 更新负载均衡实例属性 + * UpdateLoadBalancerAttribute - 更新应用型负载均衡实例属性 * * @param request Request object * @throws UCloudException Exception @@ -471,7 +514,7 @@ public UpdateLoadBalancerAttributeResponse updateLoadBalancerAttribute( } /** - * UpdatePolicy - 更新内容转发规则 + * UpdatePolicy - 更新传统型负载均衡内容转发规则 * * @param request Request object * @throws UCloudException Exception @@ -482,7 +525,7 @@ public UpdatePolicyResponse updatePolicy(UpdatePolicyRequest request) throws UCl } /** - * UpdateRuleAttribute - 更新转发规则属性 + * UpdateRuleAttribute - 更新应用型负载均衡的转发规则属性 * * @param request Request object * @throws UCloudException Exception @@ -532,7 +575,7 @@ public UpdateSecurityPolicyResponse updateSecurityPolicy(UpdateSecurityPolicyReq } /** - * UpdateTargetsAttribute - 更新后端服务节点属性 + * UpdateTargetsAttribute - 更新应用型负载均衡的后端服务节点属性 * * @param request Request object * @throws UCloudException Exception @@ -545,7 +588,7 @@ public UpdateTargetsAttributeResponse updateTargetsAttribute( } /** - * UpdateULBAttribute - 更新负载均衡属性 + * UpdateULBAttribute - 更新传统型负载均衡属性 * * @param request Request object * @throws UCloudException Exception @@ -557,7 +600,7 @@ public UpdateULBAttributeResponse updateULBAttribute(UpdateULBAttributeRequest r } /** - * UpdateVServerAttribute - 更新VServer属性 + * UpdateVServerAttribute - 更新传统型负载均衡VServer属性 * * @param request Request object * @throws UCloudException Exception diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/client/ULBClientInterface.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/client/ULBClientInterface.java index b05bdb32..df0d9410 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/client/ULBClientInterface.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/client/ULBClientInterface.java @@ -53,8 +53,12 @@ import cn.ucloud.ulb.models.DeleteVServerResponse; import cn.ucloud.ulb.models.DescribeSSLRequest; import cn.ucloud.ulb.models.DescribeSSLResponse; +import cn.ucloud.ulb.models.DescribeSSLV2Request; +import cn.ucloud.ulb.models.DescribeSSLV2Response; import cn.ucloud.ulb.models.DescribeSecurityPoliciesRequest; import cn.ucloud.ulb.models.DescribeSecurityPoliciesResponse; +import cn.ucloud.ulb.models.DescribeSecurityPoliciesV2Request; +import cn.ucloud.ulb.models.DescribeSecurityPoliciesV2Response; import cn.ucloud.ulb.models.DescribeSupportCiphersRequest; import cn.ucloud.ulb.models.DescribeSupportCiphersResponse; import cn.ucloud.ulb.models.DescribeULBRequest; @@ -73,6 +77,8 @@ import cn.ucloud.ulb.models.UnbindSSLResponse; import cn.ucloud.ulb.models.UpdateBackendAttributeRequest; import cn.ucloud.ulb.models.UpdateBackendAttributeResponse; +import cn.ucloud.ulb.models.UpdateBackendBatchRequest; +import cn.ucloud.ulb.models.UpdateBackendBatchResponse; import cn.ucloud.ulb.models.UpdateListenerAttributeRequest; import cn.ucloud.ulb.models.UpdateListenerAttributeResponse; import cn.ucloud.ulb.models.UpdateLoadBalancerAttributeRequest; @@ -98,7 +104,7 @@ public interface ULBClientInterface extends Client { /** - * AddTargets - 添加后端服务节点 + * AddTargets - 添加应用型负载均衡的后端服务节点 * * @param request Request object * @throws UCloudException Exception @@ -106,7 +112,7 @@ public interface ULBClientInterface extends Client { public AddTargetsResponse addTargets(AddTargetsRequest request) throws UCloudException; /** - * AllocateBackend - 添加后端实例 + * AllocateBackend - 添加传统型负载均衡的后端实例 * * @param request Request object * @throws UCloudException Exception @@ -115,7 +121,7 @@ public AllocateBackendResponse allocateBackend(AllocateBackendRequest request) throws UCloudException; /** - * BindSSL - 绑定SSL证书 + * BindSSL - 传统型负载均衡绑定SSL证书 * * @param request Request object * @throws UCloudException Exception @@ -123,7 +129,7 @@ public AllocateBackendResponse allocateBackend(AllocateBackendRequest request) public BindSSLResponse bindSSL(BindSSLRequest request) throws UCloudException; /** - * CreateListener - 创建监听器 + * CreateListener - 创建应用型负载均衡监听器 * * @param request Request object * @throws UCloudException Exception @@ -132,7 +138,7 @@ public CreateListenerResponse createListener(CreateListenerRequest request) throws UCloudException; /** - * CreateLoadBalancer - 创建负载均衡实例 + * CreateLoadBalancer - 创建应用型负载均衡实例 * * @param request Request object * @throws UCloudException Exception @@ -141,7 +147,7 @@ public CreateLoadBalancerResponse createLoadBalancer(CreateLoadBalancerRequest r throws UCloudException; /** - * CreatePolicy - 创建内容转发策略 + * CreatePolicy - 传统型负载均衡创建内容转发策略 * * @param request Request object * @throws UCloudException Exception @@ -166,7 +172,7 @@ public CreateSecurityPolicyResponse createSecurityPolicy(CreateSecurityPolicyReq throws UCloudException; /** - * CreateULB - 创建负载均衡 + * CreateULB - 创建传统型负载均衡负载均衡 * * @param request Request object * @throws UCloudException Exception @@ -174,7 +180,7 @@ public CreateSecurityPolicyResponse createSecurityPolicy(CreateSecurityPolicyReq public CreateULBResponse createULB(CreateULBRequest request) throws UCloudException; /** - * CreateVServer - 创建VServer + * CreateVServer - 创建CLB的VServer * * @param request Request object * @throws UCloudException Exception @@ -182,7 +188,7 @@ public CreateSecurityPolicyResponse createSecurityPolicy(CreateSecurityPolicyReq public CreateVServerResponse createVServer(CreateVServerRequest request) throws UCloudException; /** - * DeleteListener - 删除监听器 + * DeleteListener - 删除应用型负载均衡监听器 * * @param request Request object * @throws UCloudException Exception @@ -191,7 +197,7 @@ public DeleteListenerResponse deleteListener(DeleteListenerRequest request) throws UCloudException; /** - * DeleteLoadBalancer - 删除负载均衡实例 + * DeleteLoadBalancer - 删除应用型负载均衡实例 * * @param request Request object * @throws UCloudException Exception @@ -200,7 +206,7 @@ public DeleteLoadBalancerResponse deleteLoadBalancer(DeleteLoadBalancerRequest r throws UCloudException; /** - * DeletePolicy - 删除转发策略 + * DeletePolicy - 删除传统型负载均衡的内容转发策略 * * @param request Request object * @throws UCloudException Exception @@ -208,7 +214,7 @@ public DeleteLoadBalancerResponse deleteLoadBalancer(DeleteLoadBalancerRequest r public DeletePolicyResponse deletePolicy(DeletePolicyRequest request) throws UCloudException; /** - * DeleteRule - 删除转发规则 + * DeleteRule - 删除应用型负载均衡的转发规则 * * @param request Request object * @throws UCloudException Exception @@ -233,7 +239,7 @@ public DeleteSecurityPolicyResponse deleteSecurityPolicy(DeleteSecurityPolicyReq throws UCloudException; /** - * DeleteULB - 删除负载均衡 + * DeleteULB - 删除传统型负载均衡 * * @param request Request object * @throws UCloudException Exception @@ -241,7 +247,7 @@ public DeleteSecurityPolicyResponse deleteSecurityPolicy(DeleteSecurityPolicyReq public DeleteULBResponse deleteULB(DeleteULBRequest request) throws UCloudException; /** - * DeleteVServer - 删除VServer + * DeleteVServer - 删除CLB的VServer * * @param request Request object * @throws UCloudException Exception @@ -256,6 +262,14 @@ public DeleteSecurityPolicyResponse deleteSecurityPolicy(DeleteSecurityPolicyReq */ public DescribeSSLResponse describeSSL(DescribeSSLRequest request) throws UCloudException; + /** + * DescribeSSLV2 - 获取SSL证书信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeSSLV2Response describeSSLV2(DescribeSSLV2Request request) throws UCloudException; + /** * DescribeSecurityPolicies - 获取安全策略的信息 * @@ -265,6 +279,15 @@ public DeleteSecurityPolicyResponse deleteSecurityPolicy(DeleteSecurityPolicyReq public DescribeSecurityPoliciesResponse describeSecurityPolicies( DescribeSecurityPoliciesRequest request) throws UCloudException; + /** + * DescribeSecurityPoliciesV2 - 获取安全策略的信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeSecurityPoliciesV2Response describeSecurityPoliciesV2( + DescribeSecurityPoliciesV2Request request) throws UCloudException; + /** * DescribeSupportCiphers - 描述支持的加密套件 * @@ -275,7 +298,7 @@ public DescribeSupportCiphersResponse describeSupportCiphers( DescribeSupportCiphersRequest request) throws UCloudException; /** - * DescribeULB - 获取负载均衡信息 + * DescribeULB - 获取传统型负载均衡信息 * * @param request Request object * @throws UCloudException Exception @@ -283,7 +306,7 @@ public DescribeSupportCiphersResponse describeSupportCiphers( public DescribeULBResponse describeULB(DescribeULBRequest request) throws UCloudException; /** - * DescribeULBSimple - 获取负载均衡信息 + * DescribeULBSimple - 获取传统型负载均衡信息 * * @param request Request object * @throws UCloudException Exception @@ -292,7 +315,7 @@ public DescribeULBSimpleResponse describeULBSimple(DescribeULBSimpleRequest requ throws UCloudException; /** - * DescribeVServer - 获取VServer信息 + * DescribeVServer - 获取CLB下的VServer信息 * * @param request Request object * @throws UCloudException Exception @@ -301,7 +324,7 @@ public DescribeVServerResponse describeVServer(DescribeVServerRequest request) throws UCloudException; /** - * ReleaseBackend - 释放后端实例 + * ReleaseBackend - 释放传统型负载均衡的后端实例 * * @param request Request object * @throws UCloudException Exception @@ -310,7 +333,7 @@ public ReleaseBackendResponse releaseBackend(ReleaseBackendRequest request) throws UCloudException; /** - * RemoveTargets - 删除后端服务节点 + * RemoveTargets - 删除应用型负载均衡的后端服务节点 * * @param request Request object * @throws UCloudException Exception @@ -327,7 +350,7 @@ public UnBindSecurityPolicyResponse unBindSecurityPolicy(UnBindSecurityPolicyReq throws UCloudException; /** - * UnbindSSL - 解绑SSL证书 + * UnbindSSL - 传统型负载均衡解绑SSL证书 * * @param request Request object * @throws UCloudException Exception @@ -335,7 +358,7 @@ public UnBindSecurityPolicyResponse unBindSecurityPolicy(UnBindSecurityPolicyReq public UnbindSSLResponse unbindSSL(UnbindSSLRequest request) throws UCloudException; /** - * UpdateBackendAttribute - 更新后端实例属性 + * UpdateBackendAttribute - 更新传统型负载均衡的后端实例属性 * * @param request Request object * @throws UCloudException Exception @@ -344,7 +367,16 @@ public UpdateBackendAttributeResponse updateBackendAttribute( UpdateBackendAttributeRequest request) throws UCloudException; /** - * UpdateListenerAttribute - 更新监听器属性 + * UpdateBackendBatch - 批量更新后端实例属性 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateBackendBatchResponse updateBackendBatch(UpdateBackendBatchRequest request) + throws UCloudException; + + /** + * UpdateListenerAttribute - 更新应用型负载均衡监听器属性 * * @param request Request object * @throws UCloudException Exception @@ -353,7 +385,7 @@ public UpdateListenerAttributeResponse updateListenerAttribute( UpdateListenerAttributeRequest request) throws UCloudException; /** - * UpdateLoadBalancerAttribute - 更新负载均衡实例属性 + * UpdateLoadBalancerAttribute - 更新应用型负载均衡实例属性 * * @param request Request object * @throws UCloudException Exception @@ -362,7 +394,7 @@ public UpdateLoadBalancerAttributeResponse updateLoadBalancerAttribute( UpdateLoadBalancerAttributeRequest request) throws UCloudException; /** - * UpdatePolicy - 更新内容转发规则 + * UpdatePolicy - 更新传统型负载均衡内容转发规则 * * @param request Request object * @throws UCloudException Exception @@ -370,7 +402,7 @@ public UpdateLoadBalancerAttributeResponse updateLoadBalancerAttribute( public UpdatePolicyResponse updatePolicy(UpdatePolicyRequest request) throws UCloudException; /** - * UpdateRuleAttribute - 更新转发规则属性 + * UpdateRuleAttribute - 更新应用型负载均衡的转发规则属性 * * @param request Request object * @throws UCloudException Exception @@ -406,7 +438,7 @@ public UpdateSecurityPolicyResponse updateSecurityPolicy(UpdateSecurityPolicyReq throws UCloudException; /** - * UpdateTargetsAttribute - 更新后端服务节点属性 + * UpdateTargetsAttribute - 更新应用型负载均衡的后端服务节点属性 * * @param request Request object * @throws UCloudException Exception @@ -415,7 +447,7 @@ public UpdateTargetsAttributeResponse updateTargetsAttribute( UpdateTargetsAttributeRequest request) throws UCloudException; /** - * UpdateULBAttribute - 更新负载均衡属性 + * UpdateULBAttribute - 更新传统型负载均衡属性 * * @param request Request object * @throws UCloudException Exception @@ -424,7 +456,7 @@ public UpdateULBAttributeResponse updateULBAttribute(UpdateULBAttributeRequest r throws UCloudException; /** - * UpdateVServerAttribute - 更新VServer属性 + * UpdateVServerAttribute - 更新传统型负载均衡VServer属性 * * @param request Request object * @throws UCloudException Exception diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/AllocateBackendRequest.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/AllocateBackendRequest.java index f4dcbb62..5a7a8eaa 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/AllocateBackendRequest.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/AllocateBackendRequest.java @@ -33,7 +33,7 @@ public class AllocateBackendRequest extends Request { @UCloudParam("ProjectId") private String projectId; - /** 负载均衡实例的ID */ + /** 传统型负载均衡实例的ID */ @NotEmpty @UCloudParam("ULBId") private String ulbId; diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/AllocateBackendResponse.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/AllocateBackendResponse.java index af0d4bb4..ac36b299 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/AllocateBackendResponse.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/AllocateBackendResponse.java @@ -21,7 +21,7 @@ public class AllocateBackendResponse extends Response { /** - * 所添加的后端资源在ULB中的对象ID,(为ULB系统中使用,与资源自身ID无关),可用于 + * 所添加的后端资源在CLB中的对象ID,(为CLB系统中使用,与资源自身ID无关),可用于 * UpdateBackendAttribute/UpdateBackendAttributeBatch/ReleaseBackend */ @SerializedName("BackendId") diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/BindSSLRequest.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/BindSSLRequest.java index b2352790..deb77287 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/BindSSLRequest.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/BindSSLRequest.java @@ -20,17 +20,20 @@ public class BindSSLRequest 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) + */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - /** 所绑定ULB实例ID */ + /** 所绑定CLB实例ID */ @NotEmpty @UCloudParam("ULBId") private String ulbId; diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/CreatePolicyRequest.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/CreatePolicyRequest.java index 1946ca66..247cad22 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/CreatePolicyRequest.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/CreatePolicyRequest.java @@ -34,17 +34,17 @@ public class CreatePolicyRequest extends Request { @UCloudParam("ProjectId") private String projectId; - /** 需要添加内容转发策略的负载均衡实例ID */ + /** 需要添加内容转发策略的传统型负载均衡实例ID */ @NotEmpty @UCloudParam("ULBId") private String ulbId; - /** 需要添加内容转发策略的VServer实例ID */ + /** 需要添加内容转发策略的传统型负载均衡VServer实例ID */ @NotEmpty @UCloudParam("VServerId") private String vServerId; - /** 内容转发策略应用的后端资源实例的ID,来源于 AllocateBackend 返回的 BackendId */ + /** 内容转发策略应用的传统型负载均衡后端资源实例的ID,来源于 AllocateBackend 返回的 BackendId */ @NotEmpty @UCloudParam("BackendId") private List backendId; diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/CreateULBRequest.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/CreateULBRequest.java index 677b9251..5b22266d 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/CreateULBRequest.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/CreateULBRequest.java @@ -44,11 +44,11 @@ public class CreateULBRequest extends Request { @UCloudParam("Remark") private String remark; - /** 创建的ULB是否为外网模式,默认即为外网模式 */ + /** 创建的CLB是否为外网模式,默认即为外网模式 */ @UCloudParam("OuterMode") private String outerMode; - /** 创建的ULB是否为内网模式 */ + /** 创建的CLB是否为内网模式 */ @UCloudParam("InnerMode") private String innerMode; @@ -56,15 +56,15 @@ public class CreateULBRequest extends Request { @UCloudParam("ChargeType") private String chargeType; - /** ULB所在的VPC的ID。 如果不传则使用默认的VPC,若不传且无默认VPC则接口报错 */ + /** CLB所在的VPC的ID。 如果不传则使用默认的VPC,若不传且无默认VPC则接口报错 */ @UCloudParam("VPCId") private String vpcId; - /** ULB 所属的子网ID,如果不传则随机选择一个。 */ + /** CLB 所属的子网ID,如果不传则随机选择一个。 */ @UCloudParam("SubnetId") private String subnetId; - /** ULB 所属的业务组ID,如果不传则使用默认的业务组 */ + /** CLB 所属的业务组ID,如果不传则使用默认的业务组 */ @UCloudParam("BusinessId") private String businessId; @@ -73,7 +73,7 @@ public class CreateULBRequest extends Request { private String firewallId; /** - * ULB 监听器类型,外网ULB默认RequestProxy,内网ULB默认PacketsTransmit。枚举值:RequestProxy,请求代理; PacketsTransmit + * CLB 监听器类型,外网CLB默认RequestProxy,内网ULB默认PacketsTransmit。枚举值:RequestProxy,请求代理; PacketsTransmit * ,报文转发。 */ @UCloudParam("ListenType") diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/CreateULBResponse.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/CreateULBResponse.java index 3c210127..29011af3 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/CreateULBResponse.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/CreateULBResponse.java @@ -20,7 +20,7 @@ public class CreateULBResponse extends Response { - /** 负载均衡实例的Id */ + /** 传统型负载均衡实例的Id */ @SerializedName("ULBId") private String ulbId; diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/CreateVServerRequest.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/CreateVServerRequest.java index a53949ae..80f53974 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/CreateVServerRequest.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/CreateVServerRequest.java @@ -32,7 +32,7 @@ public class CreateVServerRequest extends Request { @UCloudParam("ProjectId") private String projectId; - /** 负载均衡实例ID */ + /** 传统型负载均衡实例ID */ @NotEmpty @UCloudParam("ULBId") private String ulbId; diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DeleteListenerRequest.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DeleteListenerRequest.java index 6179b2cb..6681fcc1 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DeleteListenerRequest.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DeleteListenerRequest.java @@ -33,12 +33,12 @@ public class DeleteListenerRequest extends Request { @UCloudParam("ProjectId") private String projectId; - /** 负载均衡实例的ID */ + /** 应用型负载均衡实例的ID */ @NotEmpty @UCloudParam("LoadBalancerId") private String loadBalancerId; - /** 监听器的ID */ + /** 应用型负载均衡监听器的ID */ @NotEmpty @UCloudParam("ListenerId") private String listenerId; diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DeleteLoadBalancerRequest.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DeleteLoadBalancerRequest.java index a609ca20..2d40200c 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DeleteLoadBalancerRequest.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DeleteLoadBalancerRequest.java @@ -33,7 +33,7 @@ public class DeleteLoadBalancerRequest extends Request { @UCloudParam("ProjectId") private String projectId; - /** 负载均衡实例的ID */ + /** 应用型负载均衡实例的ID */ @NotEmpty @UCloudParam("LoadBalancerId") private String loadBalancerId; diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DeletePolicyRequest.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DeletePolicyRequest.java index 341d9d3c..2ad44252 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DeletePolicyRequest.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DeletePolicyRequest.java @@ -20,22 +20,25 @@ public class DeletePolicyRequest 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) + */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - /** 内容转发策略ID */ + /** CLB的内容转发策略ID */ @NotEmpty @UCloudParam("PolicyId") private String policyId; - /** VServer 资源ID */ + /** CLB的VServer 资源ID */ @UCloudParam("VServerId") private String vServerId; diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DeleteRuleRequest.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DeleteRuleRequest.java index b9ad8c44..82425e29 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DeleteRuleRequest.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DeleteRuleRequest.java @@ -33,17 +33,17 @@ public class DeleteRuleRequest extends Request { @UCloudParam("ProjectId") private String projectId; - /** 负载均衡实例的ID */ + /** 应用型负载均衡实例的ID */ @NotEmpty @UCloudParam("LoadBalancerId") private String loadBalancerId; - /** 监听器的ID */ + /** 应用型负载均衡监听器的ID */ @NotEmpty @UCloudParam("ListenerId") private String listenerId; - /** 转发规则的ID */ + /** 应用型负载均衡的转发规则的ID */ @NotEmpty @UCloudParam("RuleId") private String ruleId; diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DeleteULBRequest.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DeleteULBRequest.java index 3f397dad..03b1b217 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DeleteULBRequest.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DeleteULBRequest.java @@ -20,21 +20,24 @@ public class DeleteULBRequest 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; - /** 负载均衡实例的ID */ + /** 传统型负载均衡实例的ID */ @NotEmpty @UCloudParam("ULBId") private String ulbId; - /** 删除ulb时是否释放绑定的EIP,false标识只解绑EIP,true表示会释放绑定的EIP,默认是false。Anycast IP 此参数无效 */ + /** 删除clb时是否释放绑定的EIP,false标识只解绑EIP,true表示会释放绑定的EIP,默认是false。Anycast IP 此参数无效 */ @UCloudParam("ReleaseEip") private Boolean releaseEip; diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DeleteVServerRequest.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DeleteVServerRequest.java index afc19f71..82a5d2bd 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DeleteVServerRequest.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DeleteVServerRequest.java @@ -20,22 +20,25 @@ public class DeleteVServerRequest 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) + */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - /** 负载均衡实例的ID */ + /** 传统型负载均衡实例的ID */ @NotEmpty @UCloudParam("ULBId") private String ulbId; - /** VServer实例的ID */ + /** CLB下的VServer实例的ID */ @NotEmpty @UCloudParam("VServerId") private String vServerId; diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeSSLV2Request.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeSSLV2Request.java new file mode 100644 index 00000000..7bca8091 --- /dev/null +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeSSLV2Request.java @@ -0,0 +1,87 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.ulb.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class DescribeSSLV2Request extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + /** SSL证书的Id */ + @UCloudParam("SSLId") + private String sslId; + + /** 数据分页值,默认为20 */ + @UCloudParam("Limit") + private Integer limit; + + /** 数据偏移量,默认值为0 */ + @UCloudParam("Offset") + private Integer offset; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getSSLId() { + return sslId; + } + + public void setSSLId(String sslId) { + this.sslId = sslId; + } + + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + public Integer getOffset() { + return offset; + } + + public void setOffset(Integer offset) { + this.offset = offset; + } +} diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeSSLV2Response.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeSSLV2Response.java new file mode 100644 index 00000000..a99be35d --- /dev/null +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeSSLV2Response.java @@ -0,0 +1,257 @@ +/** + * 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.ulb.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class DescribeSSLV2Response extends Response { + + /** 满足条件的SSL证书总数 */ + @SerializedName("TotalCount") + private Integer totalCount; + + /** SSL证书详细信息,具体结构见SSLInfo */ + @SerializedName("DataSet") + private List dataSet; + + public Integer getTotalCount() { + return totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public List getDataSet() { + return dataSet; + } + + public void setDataSet(List dataSet) { + this.dataSet = dataSet; + } + + public static class SSLInfo extends Response { + + /** SSL证书的Id */ + @SerializedName("SSLId") + private String sslId; + + /** SSL证书的名字 */ + @SerializedName("SSLName") + private String sslName; + + /** SSL证书类型,暂时只有 Pem 一种类型 */ + @SerializedName("SSLType") + private String sslType; + + /** SSL证书的内容 */ + @SerializedName("SSLContent") + private String sslContent; + + /** SSL证书的创建时间 */ + @SerializedName("CreateTime") + private Integer createTime; + + /** SSL证书的HASH值 */ + @SerializedName("HashValue") + private String hashValue; + + /** SSL绑定ULB和ALB的关系 */ + @SerializedName("Relations") + private List relations; + + /** SSL证书来源,SSL证书来源,0代表证书来自于ULB平台,1代表证书来自于USSL平台 */ + @SerializedName("SSLSource") + private Integer sslSource; + + /** USSL证书平台的编号,只有当SSLSource为1时才出现 */ + @SerializedName("USSLId") + private String usslId; + + /** USSL证书平台的域名,只有当SSLSource为1时才出现 */ + @SerializedName("Domains") + private String domains; + + /** 证书颁发时间,只有当SSLSource为1时才出现 */ + @SerializedName("NotBefore") + private Integer notBefore; + + /** 证书过期时间,只有当SSLSource为1时才出现 */ + @SerializedName("NotAfter") + private Integer notAfter; + + public String getSSLId() { + return sslId; + } + + public void setSSLId(String sslId) { + this.sslId = sslId; + } + + public String getSSLName() { + return sslName; + } + + public void setSSLName(String sslName) { + this.sslName = sslName; + } + + public String getSSLType() { + return sslType; + } + + public void setSSLType(String sslType) { + this.sslType = sslType; + } + + public String getSSLContent() { + return sslContent; + } + + public void setSSLContent(String sslContent) { + this.sslContent = sslContent; + } + + public Integer getCreateTime() { + return createTime; + } + + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public String getHashValue() { + return hashValue; + } + + public void setHashValue(String hashValue) { + this.hashValue = hashValue; + } + + public List getRelations() { + return relations; + } + + public void setRelations(List relations) { + this.relations = relations; + } + + public Integer getSSLSource() { + return sslSource; + } + + public void setSSLSource(Integer sslSource) { + this.sslSource = sslSource; + } + + public String getUSSLId() { + return usslId; + } + + public void setUSSLId(String usslId) { + this.usslId = usslId; + } + + public String getDomains() { + return domains; + } + + public void setDomains(String domains) { + this.domains = domains; + } + + public Integer getNotBefore() { + return notBefore; + } + + public void setNotBefore(Integer notBefore) { + this.notBefore = notBefore; + } + + public Integer getNotAfter() { + return notAfter; + } + + public void setNotAfter(Integer notAfter) { + this.notAfter = notAfter; + } + } + + public static class SSLRelation extends Response { + + /** 负载均衡实例的ID */ + @SerializedName("LoadBalancerId") + private String loadBalancerId; + + /** 负载均衡实例的名称 */ + @SerializedName("LoadBalancerName") + private String loadBalancerName; + + /** 监听器的ID */ + @SerializedName("ListenerId") + private String listenerId; + + /** 监听器的名称 */ + @SerializedName("ListenerName") + private String listenerName; + + /** 是否为监听器默认SSL证书 */ + @SerializedName("IsDefault") + private Boolean isDefault; + + public String getLoadBalancerId() { + return loadBalancerId; + } + + public void setLoadBalancerId(String loadBalancerId) { + this.loadBalancerId = loadBalancerId; + } + + public String getLoadBalancerName() { + return loadBalancerName; + } + + public void setLoadBalancerName(String loadBalancerName) { + this.loadBalancerName = loadBalancerName; + } + + public String getListenerId() { + return listenerId; + } + + public void setListenerId(String listenerId) { + this.listenerId = listenerId; + } + + public String getListenerName() { + return listenerName; + } + + public void setListenerName(String listenerName) { + this.listenerName = listenerName; + } + + public Boolean getIsDefault() { + return isDefault; + } + + public void setIsDefault(Boolean isDefault) { + this.isDefault = isDefault; + } + } +} diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeSecurityPoliciesV2Request.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeSecurityPoliciesV2Request.java new file mode 100644 index 00000000..1fa9defa --- /dev/null +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeSecurityPoliciesV2Request.java @@ -0,0 +1,87 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.ulb.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class DescribeSecurityPoliciesV2Request extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + /** 安全策略ID */ + @UCloudParam("SecurityPolicyId") + private String securityPolicyId; + + /** 数据分页值 */ + @UCloudParam("Limit") + private Integer limit; + + /** 数据偏移量 */ + @UCloudParam("Offset") + private Integer offset; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getSecurityPolicyId() { + return securityPolicyId; + } + + public void setSecurityPolicyId(String securityPolicyId) { + this.securityPolicyId = securityPolicyId; + } + + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + public Integer getOffset() { + return offset; + } + + public void setOffset(Integer offset) { + this.offset = offset; + } +} diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeSecurityPoliciesV2Response.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeSecurityPoliciesV2Response.java new file mode 100644 index 00000000..e05a566c --- /dev/null +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeSecurityPoliciesV2Response.java @@ -0,0 +1,173 @@ +/** + * 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.ulb.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class DescribeSecurityPoliciesV2Response extends Response { + + /** 安全策略列表,每项参数详见SecurityPolicyInfo */ + @SerializedName("DataSet") + private List dataSet; + + /** 满足条件的安全策略总数 */ + @SerializedName("TotalCount") + private Integer totalCount; + + public List getDataSet() { + return dataSet; + } + + public void setDataSet(List dataSet) { + this.dataSet = dataSet; + } + + public Integer getTotalCount() { + return totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public static class SecurityPolicyInfo extends Response { + + /** 安全策略ID */ + @SerializedName("SecurityPolicyId") + private String securityPolicyId; + + /** 安全策略名称 */ + @SerializedName("SecurityPolicyName") + private String securityPolicyName; + + /** TLS最低版本 */ + @SerializedName("TLSVersion") + private String tlsVersion; + + /** 加密套件 */ + @SerializedName("SSLCiphers") + private List sslCiphers; + + /** 安全策略类型 0:预定义 1:自定义 */ + @SerializedName("SecurityPolicyType") + private Integer securityPolicyType; + + /** 关联的监听 */ + @SerializedName("Relations") + private List relations; + + public String getSecurityPolicyId() { + return securityPolicyId; + } + + public void setSecurityPolicyId(String securityPolicyId) { + this.securityPolicyId = securityPolicyId; + } + + public String getSecurityPolicyName() { + return securityPolicyName; + } + + public void setSecurityPolicyName(String securityPolicyName) { + this.securityPolicyName = securityPolicyName; + } + + public String getTLSVersion() { + return tlsVersion; + } + + public void setTLSVersion(String tlsVersion) { + this.tlsVersion = tlsVersion; + } + + public List getSSLCiphers() { + return sslCiphers; + } + + public void setSSLCiphers(List sslCiphers) { + this.sslCiphers = sslCiphers; + } + + public Integer getSecurityPolicyType() { + return securityPolicyType; + } + + public void setSecurityPolicyType(Integer securityPolicyType) { + this.securityPolicyType = securityPolicyType; + } + + public List getRelations() { + return relations; + } + + public void setRelations(List relations) { + this.relations = relations; + } + } + + public static class SecurityPolicyRelation extends Response { + + /** 负载均衡实例的ID */ + @SerializedName("LoadBalancerId") + private String loadBalancerId; + + /** 监听器的ID */ + @SerializedName("ListenerId") + private String listenerId; + + /** 监听器的名称 */ + @SerializedName("ListenerName") + private String listenerName; + + /** 监听端口 */ + @SerializedName("ListenerPort") + private Integer listenerPort; + + public String getLoadBalancerId() { + return loadBalancerId; + } + + public void setLoadBalancerId(String loadBalancerId) { + this.loadBalancerId = loadBalancerId; + } + + public String getListenerId() { + return listenerId; + } + + public void setListenerId(String listenerId) { + this.listenerId = listenerId; + } + + public String getListenerName() { + return listenerName; + } + + public void setListenerName(String listenerName) { + this.listenerName = listenerName; + } + + public Integer getListenerPort() { + return listenerPort; + } + + public void setListenerPort(Integer listenerPort) { + this.listenerPort = listenerPort; + } + } +} diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeULBRequest.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeULBRequest.java index d80af139..c3598514 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeULBRequest.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeULBRequest.java @@ -40,19 +40,19 @@ public class DescribeULBRequest extends Request { @UCloudParam("Limit") private Integer limit; - /** 负载均衡实例的Id。 若指定则返回指定的负载均衡实例的信息; 若不指定则返回当前数据中心中所有的负载均衡实例的信息 */ + /** 传统型负载均衡实例的Id。 若指定则返回指定的传统型负载均衡实例的信息; 若不指定则返回当前数据中心中所有的传统型负载均衡实例的信息 */ @UCloudParam("ULBId") private String ulbId; - /** ULB所属的VPC */ + /** CLB所属的VPC */ @UCloudParam("VPCId") private String vpcId; - /** ULB所属的子网ID */ + /** CLB所属的子网ID */ @UCloudParam("SubnetId") private String subnetId; - /** ULB所属的业务组ID */ + /** CLB所属的业务组ID */ @UCloudParam("BusinessId") private String businessId; diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeULBResponse.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeULBResponse.java index 8ff69ea0..25113d8e 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeULBResponse.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeULBResponse.java @@ -21,11 +21,11 @@ public class DescribeULBResponse extends Response { - /** 满足条件的ULB总数 */ + /** 满足条件的CLB总数 */ @SerializedName("TotalCount") private Integer totalCount; - /** ULB列表,每项参数详见 ULBSet */ + /** CLB列表,每项参数详见 ULBSet */ @SerializedName("DataSet") private List dataSet; diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeULBSimpleRequest.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeULBSimpleRequest.java index af810ee9..8833909c 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeULBSimpleRequest.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeULBSimpleRequest.java @@ -40,19 +40,19 @@ public class DescribeULBSimpleRequest extends Request { @UCloudParam("Limit") private Integer limit; - /** 负载均衡实例的Id。 若指定则返回指定的负载均衡实例的信息; 若不指定则返回当前数据中心中所有的负载均衡实例的信息 */ + /** 传统型负载均衡实例的Id。 若指定则返回指定的传统型负载均衡实例的信息; 若不指定则返回当前数据中心中所有的传统型负载均衡实例的信息 */ @UCloudParam("ULBId") private String ulbId; - /** ULB所属的VPC */ + /** CLB所属的VPC */ @UCloudParam("VPCId") private String vpcId; - /** ULB所属的子网ID */ + /** CLB所属的子网ID */ @UCloudParam("SubnetId") private String subnetId; - /** ULB所属的业务组ID */ + /** CLB所属的业务组ID */ @UCloudParam("BusinessId") private String businessId; diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeULBSimpleResponse.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeULBSimpleResponse.java index 81257219..187a2b9f 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeULBSimpleResponse.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeULBSimpleResponse.java @@ -21,11 +21,11 @@ public class DescribeULBSimpleResponse extends Response { - /** 满足条件的ULB总数 */ + /** 满足条件的CLB总数 */ @SerializedName("TotalCount") private Integer totalCount; - /** ULB列表,每项参数详见 ULBSimpleSet */ + /** CLB列表,每项参数详见 ULBSimpleSet */ @SerializedName("DataSet") private List dataSet; diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeVServerRequest.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeVServerRequest.java index 4358ef8f..e53a6724 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeVServerRequest.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DescribeVServerRequest.java @@ -33,11 +33,11 @@ public class DescribeVServerRequest extends Request { @UCloudParam("ProjectId") private String projectId; - /** 负载均衡实例的Id */ + /** 传统型负载均衡实例的Id */ @UCloudParam("ULBId") private String ulbId; - /** VServer实例的Id;若指定则返回指定的VServer实例的信息; 若不指定则返回当前负载均衡实例下所有VServer的信息 */ + /** CLB下的VServer实例的Id;若指定则返回指定的VServer实例的信息; 若不指定则返回当前传统型负载均衡实例下所有VServer的信息 */ @UCloudParam("VServerId") private String vServerId; diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/ReleaseBackendRequest.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/ReleaseBackendRequest.java index 7fe731e2..6543f6e2 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/ReleaseBackendRequest.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/ReleaseBackendRequest.java @@ -20,22 +20,25 @@ public class ReleaseBackendRequest 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) + */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - /** 负载均衡实例的ID */ + /** 传统型负载均衡实例的ID */ @NotEmpty @UCloudParam("ULBId") private String ulbId; - /** 后端资源实例的ID(ULB后端ID,非资源自身ID) */ + /** 后端资源实例的ID(CLB后端ID,非资源自身ID) */ @NotEmpty @UCloudParam("BackendId") private String backendId; diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UnbindSSLRequest.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UnbindSSLRequest.java index 08d9c17c..8c8cbf46 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UnbindSSLRequest.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UnbindSSLRequest.java @@ -20,22 +20,25 @@ public class UnbindSSLRequest 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) + */ @NotEmpty @UCloudParam("ProjectId") private String projectId; - /** 所绑定ULB实例ID */ + /** 所绑定CLB实例ID */ @NotEmpty @UCloudParam("ULBId") private String ulbId; - /** 所绑定VServer实例ID */ + /** CLB所绑定VServer实例ID */ @NotEmpty @UCloudParam("VServerId") private String vServerId; diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateBackendAttributeRequest.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateBackendAttributeRequest.java index 1eb9ae32..52c6bd3a 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateBackendAttributeRequest.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateBackendAttributeRequest.java @@ -33,12 +33,12 @@ public class UpdateBackendAttributeRequest extends Request { @UCloudParam("ProjectId") private String projectId; - /** 负载均衡资源ID */ + /** 传统型负载均衡资源ID */ @NotEmpty @UCloudParam("ULBId") private String ulbId; - /** 后端资源实例的ID(ULB后端ID,非资源自身ID) */ + /** 后端资源实例的ID(CLB后端ID,非资源自身ID) */ @NotEmpty @UCloudParam("BackendId") private String backendId; diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateBackendBatchRequest.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateBackendBatchRequest.java new file mode 100644 index 00000000..2620c570 --- /dev/null +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateBackendBatchRequest.java @@ -0,0 +1,141 @@ +/** + * 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.ulb.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 UpdateBackendBatchRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + /** 负载均衡资源ID */ + @NotEmpty + @UCloudParam("ULBId") + private String ulbId; + + /** */ + @UCloudParam("Attributes") + private List attributes; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getULBId() { + return ulbId; + } + + public void setULBId(String ulbId) { + this.ulbId = ulbId; + } + + public List getAttributes() { + return attributes; + } + + public void setAttributes(List attributes) { + this.attributes = attributes; + } + + public static class Attributes extends Request { + + /** 后端资源实例的ID(ULB后端ID,非资源自身ID) */ + @NotEmpty + @UCloudParam("BackendId") + private String backendId; + + /** 后端资源服务端口,取值范围[1-65535] */ + @UCloudParam("Port") + private Integer port; + + /** 所添加的后端RS权重(在加权轮询算法下有效),取值范围[0-100],默认为1 */ + @UCloudParam("Weight") + private Integer weight; + + /** 后端实例状态开关 */ + @UCloudParam("Enabled") + private Integer enabled; + + /** 是否为backup 0:主rs 1:备rs 默认为0 */ + @UCloudParam("IsBackup") + private Integer isBackup; + + public String getBackendId() { + return backendId; + } + + public void setBackendId(String backendId) { + this.backendId = backendId; + } + + public Integer getPort() { + return port; + } + + public void setPort(Integer port) { + this.port = port; + } + + public Integer getWeight() { + return weight; + } + + public void setWeight(Integer weight) { + this.weight = weight; + } + + public Integer getEnabled() { + return enabled; + } + + public void setEnabled(Integer enabled) { + this.enabled = enabled; + } + + public Integer getIsBackup() { + return isBackup; + } + + public void setIsBackup(Integer isBackup) { + this.isBackup = isBackup; + } + } +} diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateBackendBatchResponse.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateBackendBatchResponse.java new file mode 100644 index 00000000..0aaa0dce --- /dev/null +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateBackendBatchResponse.java @@ -0,0 +1,74 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.ulb.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class UpdateBackendBatchResponse extends Response { + + /** 返回ulb对每个rs的修改是否成功 */ + @SerializedName("BackendSet") + private List backendSet; + + public List getBackendSet() { + return backendSet; + } + + public void setBackendSet(List backendSet) { + this.backendSet = backendSet; + } + + public static class BackendMsg extends Response { + + /** rs的资源ID */ + @SerializedName("BackendId") + private String backendId; + + /** 修改rs返回的消息 */ + @SerializedName("SubMessage") + private String subMessage; + + /** 修改rs的返回值 */ + @SerializedName("SubRetCode") + private Integer subRetCode; + + public String getBackendId() { + return backendId; + } + + public void setBackendId(String backendId) { + this.backendId = backendId; + } + + public String getSubMessage() { + return subMessage; + } + + public void setSubMessage(String subMessage) { + this.subMessage = subMessage; + } + + public Integer getSubRetCode() { + return subRetCode; + } + + public void setSubRetCode(Integer subRetCode) { + this.subRetCode = subRetCode; + } + } +} diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdatePolicyRequest.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdatePolicyRequest.java index 4fd3bafd..a1e7c620 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdatePolicyRequest.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdatePolicyRequest.java @@ -34,12 +34,12 @@ public class UpdatePolicyRequest extends Request { @UCloudParam("ProjectId") private String projectId; - /** 需要添加内容转发策略的负载均衡实例ID */ + /** 需要添加内容转发策略的传统型负载均衡实例ID */ @NotEmpty @UCloudParam("ULBId") private String ulbId; - /** 需要添加内容转发策略的VServer实例ID,只支持请求代理模式下,HTTP或HTTPS协议的VServer */ + /** 需要添加内容转发策略的VServer实例ID,只支持请求代理模式下,HTTP或HTTPS协议的CLB下的VServer */ @NotEmpty @UCloudParam("VServerId") private String vServerId; @@ -57,11 +57,11 @@ public class UpdatePolicyRequest extends Request { @UCloudParam("DomainMatchMode") private String domainMatchMode; - /** 转发规则的ID,当Type为Default时,可以不传或为空 */ + /** 传统型负载均衡转发规则的ID,当Type为Default时,可以不传或为空 */ @UCloudParam("PolicyId") private String policyId; - /** 内容转发策略应用的后端资源实例的ID,来源于 AllocateBackend 返回的 BackendId,不传表示更新转发节点为空 */ + /** 内容转发策略应用的后端资源实例的ID(CLB的后端节点Id),来源于 AllocateBackend 返回的 BackendId,不传表示更新转发节点为空 */ @UCloudParam("BackendId") private List backendId; diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateSSLBindingRequest.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateSSLBindingRequest.java index 1ae46d9e..f1cba836 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateSSLBindingRequest.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateSSLBindingRequest.java @@ -33,24 +33,24 @@ public class UpdateSSLBindingRequest extends Request { @UCloudParam("ProjectId") private String projectId; - /** VServer实例绑定的旧的证书 */ + /** 监听器实例绑定的旧的证书 */ @NotEmpty @UCloudParam("OldSSLId") private String oldSSLId; - /** VServer实例需要绑定的新的证书 */ + /** 监听器实例需要绑定的新的证书 */ @NotEmpty @UCloudParam("NewSSLId") private String newSSLId; /** - * 所操作ULB实例ID(仅LoadBalancerId传参时,将更换该ULB所有原证书为OldSSLId的绑定关系;LoadBalancerId和ListenerId都不传参则将更新该项目下所有原证书为OldSSLId的绑定关系) + * 所操作LB实例ID(仅LoadBalancerId传参时,将更换该LB所有原证书为OldSSLId的绑定关系;LoadBalancerId和ListenerId都不传参则将更新该项目下所有原证书为OldSSLId的绑定关系)(LB指CLB或ALB) */ @UCloudParam("LoadBalancerId") private String loadBalancerId; /** - * 所操作VServer实例ID(仅ListenerId传参时,将更换该Vserver所有原证书为OldSSLId的绑定关系;LoadBalancerId和ListenerId都不传参则将更新该项目下所有原证书为OldSSLId的绑定关系;若LoadBalancerId与ListenerId皆有传参,则会强校验ULB与Vsserver的所属关系,将更换该ulb下vserver所绑定的OldSSLId为NewSSLId) + * 所操作监听器实例ID(仅ListenerId传参时,将更换该监听器所有原证书为OldSSLId的绑定关系;LoadBalancerId和ListenerId都不传参则将更新该项目下所有原证书为OldSSLId的绑定关系;若LoadBalancerId与ListenerId皆有传参,则会强校验ULB与Vsserver的所属关系,将更换该ulb下vserver所绑定的OldSSLId为NewSSLId)(监听器指VServer或Listener) */ @UCloudParam("ListenerId") private String listenerId; diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateULBAttributeRequest.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateULBAttributeRequest.java index 4c1c9fdc..606a5360 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateULBAttributeRequest.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateULBAttributeRequest.java @@ -33,7 +33,7 @@ public class UpdateULBAttributeRequest extends Request { @UCloudParam("ProjectId") private String projectId; - /** ULB资源ID */ + /** CLB资源ID */ @NotEmpty @UCloudParam("ULBId") private String ulbId; diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateVServerAttributeRequest.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateVServerAttributeRequest.java index c12ed1bc..785523a1 100644 --- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateVServerAttributeRequest.java +++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateVServerAttributeRequest.java @@ -33,12 +33,12 @@ public class UpdateVServerAttributeRequest extends Request { @UCloudParam("ProjectId") private String projectId; - /** 负载均衡实例ID */ + /** 传统型负载均衡实例ID */ @NotEmpty @UCloudParam("ULBId") private String ulbId; - /** VServer实例ID */ + /** 传统型负载均衡VServer实例ID */ @NotEmpty @UCloudParam("VServerId") private String vServerId; diff --git a/ucloud-sdk-java-umem/pom.xml b/ucloud-sdk-java-umem/pom.xml index 6f644c2a..cfafafbc 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.17-release + 1.2.18-release 4.0.0 ucloud-sdk-java-umem - 1.2.17-release + 1.2.18-release cn.ucloud ucloud-sdk-java-common - 1.2.17-release + 1.2.18-release diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/client/UMemClient.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/client/UMemClient.java index e841c8f0..e42c8998 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/client/UMemClient.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/client/UMemClient.java @@ -440,7 +440,7 @@ public DescribeURedisGroupResponse describeURedisGroup(DescribeURedisGroupReques } /** - * DescribeURedisPrice - 取uredis价格信息 + * DescribeURedisPrice - 获取URedis价格信息 * * @param request Request object * @throws UCloudException Exception diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/client/UMemClientInterface.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/client/UMemClientInterface.java index e1202a17..314d05a4 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/client/UMemClientInterface.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/client/UMemClientInterface.java @@ -341,7 +341,7 @@ public DescribeURedisGroupResponse describeURedisGroup(DescribeURedisGroupReques throws UCloudException; /** - * DescribeURedisPrice - 取uredis价格信息 + * DescribeURedisPrice - 获取URedis价格信息 * * @param request Request object * @throws UCloudException Exception diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/CreateUMemSpaceRequest.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/CreateUMemSpaceRequest.java index d0fc99e4..b3851897 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/CreateUMemSpaceRequest.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/CreateUMemSpaceRequest.java @@ -102,6 +102,10 @@ public class CreateUMemSpaceRequest extends Request { @UCloudParam("HighPerformance") private Boolean highPerformance; + /** 分布式代理CPU核数 */ + @UCloudParam("ProxySize") + private Integer proxySize; + /** 使用的代金券id */ @UCloudParam("CouponId") private String couponId; @@ -250,6 +254,14 @@ public void setHighPerformance(Boolean highPerformance) { this.highPerformance = highPerformance; } + public Integer getProxySize() { + return proxySize; + } + + public void setProxySize(Integer proxySize) { + this.proxySize = proxySize; + } + public String getCouponId() { return couponId; } diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemPriceRequest.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemPriceRequest.java index 51e2421f..97c24fa1 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemPriceRequest.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeUMemPriceRequest.java @@ -56,6 +56,18 @@ public class DescribeUMemPriceRequest extends Request { @UCloudParam("Quantity") private Integer quantity; + /** 实例类型是否为性能增强型。默认为false,或者不填,true为性能增强型。 */ + @UCloudParam("HighPerformance") + private Boolean highPerformance; + + /** umem 分片个数 */ + @UCloudParam("BlockCnt") + private Integer blockCnt; + + /** umem 代理CPU核心数 */ + @UCloudParam("ProxySize") + private Integer proxySize; + public String getRegion() { return region; } @@ -111,4 +123,28 @@ public Integer getQuantity() { public void setQuantity(Integer quantity) { this.quantity = quantity; } + + public Boolean getHighPerformance() { + return highPerformance; + } + + public void setHighPerformance(Boolean highPerformance) { + this.highPerformance = highPerformance; + } + + public Integer getBlockCnt() { + return blockCnt; + } + + public void setBlockCnt(Integer blockCnt) { + this.blockCnt = blockCnt; + } + + public Integer getProxySize() { + return proxySize; + } + + public void setProxySize(Integer proxySize) { + this.proxySize = proxySize; + } } diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeURedisPriceRequest.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeURedisPriceRequest.java index 4ee0703d..08fcd8a0 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeURedisPriceRequest.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/DescribeURedisPriceRequest.java @@ -20,17 +20,20 @@ public class DescribeURedisPriceRequest extends Request { - /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */ + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ @NotEmpty @UCloudParam("Region") private String region; - /** 可用区。参见 [可用区列表](../summary/regionlist.html) */ + /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ @NotEmpty @UCloudParam("Zone") private String zone; - /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */ + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ @UCloudParam("ProjectId") private String projectId; @@ -55,6 +58,10 @@ public class DescribeURedisPriceRequest extends Request { @UCloudParam("ProductType") private String productType; + /** 查询高性能Redis, 默认为false, 或者不填, 查询高性能为true */ + @UCloudParam("HighPerformance") + private Boolean highPerformance; + public String getRegion() { return region; } @@ -118,4 +125,12 @@ public String getProductType() { public void setProductType(String productType) { this.productType = productType; } + + public Boolean getHighPerformance() { + return highPerformance; + } + + public void setHighPerformance(Boolean highPerformance) { + this.highPerformance = highPerformance; + } } diff --git a/ucloud-sdk-java-umongodb/pom.xml b/ucloud-sdk-java-umongodb/pom.xml index f2cce8c5..d1b47f3b 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.17-release + 1.2.18-release 4.0.0 ucloud-sdk-java-umongodb - 1.2.17-release + 1.2.18-release cn.ucloud ucloud-sdk-java-common - 1.2.17-release + 1.2.18-release diff --git a/ucloud-sdk-java-unet/pom.xml b/ucloud-sdk-java-unet/pom.xml index 5aefa8a1..332d49a5 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.17-release + 1.2.18-release 4.0.0 ucloud-sdk-java-unet - 1.2.17-release + 1.2.18-release cn.ucloud ucloud-sdk-java-common - 1.2.17-release + 1.2.18-release diff --git a/ucloud-sdk-java-upgsql/pom.xml b/ucloud-sdk-java-upgsql/pom.xml index 38685189..d7d01b1c 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.17-release + 1.2.18-release 4.0.0 ucloud-sdk-java-upgsql - 1.2.17-release + 1.2.18-release cn.ucloud ucloud-sdk-java-common - 1.2.17-release + 1.2.18-release diff --git a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/UpdateUPgSQLPasswordRequest.java b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/UpdateUPgSQLPasswordRequest.java index c0d5358a..18cae006 100644 --- a/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/UpdateUPgSQLPasswordRequest.java +++ b/ucloud-sdk-java-upgsql/src/main/java/cn/ucloud/upgsql/models/UpdateUPgSQLPasswordRequest.java @@ -47,6 +47,10 @@ public class UpdateUPgSQLPasswordRequest extends Request { @UCloudParam("Password") private String password; + /** 数据库用户的名称。默认是root */ + @UCloudParam("Name") + private String name; + public String getRegion() { return region; } @@ -86,4 +90,12 @@ public String getPassword() { public void setPassword(String password) { this.password = password; } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } } diff --git a/ucloud-sdk-java-uphone/pom.xml b/ucloud-sdk-java-uphone/pom.xml index bd6de669..b98bb782 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.17-release + 1.2.18-release 4.0.0 ucloud-sdk-java-uphone - 1.2.17-release + 1.2.18-release cn.ucloud ucloud-sdk-java-common - 1.2.17-release + 1.2.18-release diff --git a/ucloud-sdk-java-uphost/pom.xml b/ucloud-sdk-java-uphost/pom.xml index 0e56cabf..5fc6de8c 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.17-release + 1.2.18-release 4.0.0 ucloud-sdk-java-uphost - 1.2.17-release + 1.2.18-release cn.ucloud ucloud-sdk-java-common - 1.2.17-release + 1.2.18-release diff --git a/ucloud-sdk-java-uslk/pom.xml b/ucloud-sdk-java-uslk/pom.xml index ac9d1ce8..0632ef76 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.17-release + 1.2.18-release 4.0.0 ucloud-sdk-java-uslk - 1.2.17-release + 1.2.18-release cn.ucloud ucloud-sdk-java-common - 1.2.17-release + 1.2.18-release diff --git a/ucloud-sdk-java-usms/pom.xml b/ucloud-sdk-java-usms/pom.xml index 3fbc6869..9b91f80e 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.17-release + 1.2.18-release 4.0.0 ucloud-sdk-java-usms - 1.2.17-release + 1.2.18-release cn.ucloud ucloud-sdk-java-common - 1.2.17-release + 1.2.18-release diff --git a/ucloud-sdk-java-usnap/pom.xml b/ucloud-sdk-java-usnap/pom.xml index 46d5bb8f..6703f88a 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.17-release + 1.2.18-release 4.0.0 ucloud-sdk-java-usnap - 1.2.17-release + 1.2.18-release cn.ucloud ucloud-sdk-java-common - 1.2.17-release + 1.2.18-release diff --git a/ucloud-sdk-java-uvms/pom.xml b/ucloud-sdk-java-uvms/pom.xml index bd9b1819..e4b56bd5 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.17-release + 1.2.18-release 4.0.0 ucloud-sdk-java-uvms - 1.2.17-release + 1.2.18-release cn.ucloud ucloud-sdk-java-common - 1.2.17-release + 1.2.18-release diff --git a/ucloud-sdk-java-vpc/pom.xml b/ucloud-sdk-java-vpc/pom.xml index ebca9890..fcf4708b 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.17-release + 1.2.18-release 4.0.0 ucloud-sdk-java-vpc - 1.2.17-release + 1.2.18-release cn.ucloud ucloud-sdk-java-common - 1.2.17-release + 1.2.18-release