From 986a9c3491b7ae9c05fb742a89b74d81f60247ad Mon Sep 17 00:00:00 2001 From: ucloud-bot Date: Thu, 29 May 2025 09:27:31 +0000 Subject: [PATCH] sdk: rolling update for 1.2.42-release --- VERSION | 2 +- examples/generic/pom.xml | 4 +- examples/uhost/pom.xml | 4 +- pom.xml | 2 +- ucloud-sdk-java-cloudwatch/pom.xml | 6 +- ucloud-sdk-java-common/pom.xml | 4 +- ucloud-sdk-java-cube/pom.xml | 6 +- ucloud-sdk-java-ipsecvpn/pom.xml | 6 +- ucloud-sdk-java-label/pom.xml | 6 +- ucloud-sdk-java-nlb/pom.xml | 6 +- ucloud-sdk-java-pathx/pom.xml | 6 +- ucloud-sdk-java-sts/pom.xml | 6 +- ucloud-sdk-java-uaccount/pom.xml | 6 +- ucloud-sdk-java-uai_modelverse/pom.xml | 6 +- ucloud-sdk-java-ubill/pom.xml | 6 +- ucloud-sdk-java-ucdn/pom.xml | 6 +- ucloud-sdk-java-ucompshare/pom.xml | 6 +- .../ucompshare/client/UCompShareClient.java | 60 ++++ .../client/UCompShareClientInterface.java | 44 +++ .../CreateCompShareInstanceRequest.java | 296 ++++++++++++++++++ .../CreateCompShareInstanceResponse.java | 35 +++ .../DescribeCompShareInstanceRequest.java | 12 + .../DescribeCompShareInstanceResponse.java | 181 +++++------ .../DescribeULHostInstanceResponse.java | 12 +- .../RebootCompShareInstanceRequest.java | 76 +++++ .../RebootCompShareInstanceResponse.java | 34 ++ ...ResetCompShareInstancePasswordRequest.java | 89 ++++++ ...esetCompShareInstancePasswordResponse.java | 34 ++ .../TerminateCompShareInstanceRequest.java | 76 +++++ .../TerminateCompShareInstanceResponse.java | 34 ++ ucloud-sdk-java-udb/pom.xml | 6 +- ucloud-sdk-java-udbproxy/pom.xml | 6 +- ucloud-sdk-java-udi/pom.xml | 6 +- ucloud-sdk-java-udisk/pom.xml | 6 +- ucloud-sdk-java-udns/pom.xml | 6 +- ucloud-sdk-java-udpn/pom.xml | 6 +- ucloud-sdk-java-uec/pom.xml | 6 +- ucloud-sdk-java-uewaf/pom.xml | 6 +- ucloud-sdk-java-ufile/pom.xml | 6 +- ucloud-sdk-java-ufs/pom.xml | 6 +- ucloud-sdk-java-uhost/pom.xml | 6 +- ucloud-sdk-java-uk8s/pom.xml | 6 +- ucloud-sdk-java-ulb/pom.xml | 6 +- ucloud-sdk-java-ulog/pom.xml | 6 +- ucloud-sdk-java-umem/pom.xml | 6 +- ucloud-sdk-java-umongodb/pom.xml | 6 +- ucloud-sdk-java-unet/pom.xml | 6 +- ucloud-sdk-java-upgsql/pom.xml | 6 +- ucloud-sdk-java-uphone/pom.xml | 6 +- ucloud-sdk-java-uphost/pom.xml | 6 +- ucloud-sdk-java-uslk/pom.xml | 6 +- ucloud-sdk-java-usms/pom.xml | 6 +- ucloud-sdk-java-usnap/pom.xml | 6 +- ucloud-sdk-java-uvms/pom.xml | 6 +- ucloud-sdk-java-vpc/pom.xml | 6 +- 55 files changed, 989 insertions(+), 232 deletions(-) create mode 100644 ucloud-sdk-java-ucompshare/src/main/java/cn/ucloud/ucompshare/models/CreateCompShareInstanceRequest.java create mode 100644 ucloud-sdk-java-ucompshare/src/main/java/cn/ucloud/ucompshare/models/CreateCompShareInstanceResponse.java create mode 100644 ucloud-sdk-java-ucompshare/src/main/java/cn/ucloud/ucompshare/models/RebootCompShareInstanceRequest.java create mode 100644 ucloud-sdk-java-ucompshare/src/main/java/cn/ucloud/ucompshare/models/RebootCompShareInstanceResponse.java create mode 100644 ucloud-sdk-java-ucompshare/src/main/java/cn/ucloud/ucompshare/models/ResetCompShareInstancePasswordRequest.java create mode 100644 ucloud-sdk-java-ucompshare/src/main/java/cn/ucloud/ucompshare/models/ResetCompShareInstancePasswordResponse.java create mode 100644 ucloud-sdk-java-ucompshare/src/main/java/cn/ucloud/ucompshare/models/TerminateCompShareInstanceRequest.java create mode 100644 ucloud-sdk-java-ucompshare/src/main/java/cn/ucloud/ucompshare/models/TerminateCompShareInstanceResponse.java diff --git a/VERSION b/VERSION index f36b6bb1..712eb5ec 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.2.41-release +1.2.42-release diff --git a/examples/generic/pom.xml b/examples/generic/pom.xml index 6ee5b97b..da43b229 100644 --- a/examples/generic/pom.xml +++ b/examples/generic/pom.xml @@ -7,7 +7,7 @@ ucloud-sdk-java cn.ucloud - 1.2.41-release + 1.2.42-release 4.0.0 @@ -18,7 +18,7 @@ cn.ucloud ucloud-sdk-java-common - 1.2.41-release + 1.2.42-release diff --git a/examples/uhost/pom.xml b/examples/uhost/pom.xml index 65007a17..51ff6c75 100644 --- a/examples/uhost/pom.xml +++ b/examples/uhost/pom.xml @@ -7,7 +7,7 @@ ucloud-sdk-java cn.ucloud - 1.2.41-release + 1.2.42-release 4.0.0 @@ -18,7 +18,7 @@ cn.ucloud ucloud-sdk-java-uhost - 1.2.41-release + 1.2.42-release diff --git a/pom.xml b/pom.xml index 87ad958a..bdd19a55 100644 --- a/pom.xml +++ b/pom.xml @@ -7,7 +7,7 @@ cn.ucloud ucloud-sdk-java pom - 1.2.41-release + 1.2.42-release ucloud-sdk-java-common ucloud-sdk-java-cloudwatch diff --git a/ucloud-sdk-java-cloudwatch/pom.xml b/ucloud-sdk-java-cloudwatch/pom.xml index 66644ba5..fd61063e 100644 --- a/ucloud-sdk-java-cloudwatch/pom.xml +++ b/ucloud-sdk-java-cloudwatch/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.41-release + 1.2.42-release 4.0.0 ucloud-sdk-java-cloudwatch - 1.2.41-release + 1.2.42-release cn.ucloud ucloud-sdk-java-common - 1.2.41-release + 1.2.42-release diff --git a/ucloud-sdk-java-common/pom.xml b/ucloud-sdk-java-common/pom.xml index 98eab7e8..2660f9eb 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.41-release + 1.2.42-release 4.0.0 ucloud-sdk-java-common - 1.2.41-release + 1.2.42-release diff --git a/ucloud-sdk-java-cube/pom.xml b/ucloud-sdk-java-cube/pom.xml index e897ce7d..6f1b4325 100644 --- a/ucloud-sdk-java-cube/pom.xml +++ b/ucloud-sdk-java-cube/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.41-release + 1.2.42-release 4.0.0 ucloud-sdk-java-cube - 1.2.41-release + 1.2.42-release cn.ucloud ucloud-sdk-java-common - 1.2.41-release + 1.2.42-release diff --git a/ucloud-sdk-java-ipsecvpn/pom.xml b/ucloud-sdk-java-ipsecvpn/pom.xml index 31cf07ee..bc01e675 100644 --- a/ucloud-sdk-java-ipsecvpn/pom.xml +++ b/ucloud-sdk-java-ipsecvpn/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.41-release + 1.2.42-release 4.0.0 ucloud-sdk-java-ipsecvpn - 1.2.41-release + 1.2.42-release cn.ucloud ucloud-sdk-java-common - 1.2.41-release + 1.2.42-release diff --git a/ucloud-sdk-java-label/pom.xml b/ucloud-sdk-java-label/pom.xml index ed7463c9..c0a0375b 100644 --- a/ucloud-sdk-java-label/pom.xml +++ b/ucloud-sdk-java-label/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.41-release + 1.2.42-release 4.0.0 ucloud-sdk-java-label - 1.2.41-release + 1.2.42-release cn.ucloud ucloud-sdk-java-common - 1.2.41-release + 1.2.42-release diff --git a/ucloud-sdk-java-nlb/pom.xml b/ucloud-sdk-java-nlb/pom.xml index aa784d72..15818221 100644 --- a/ucloud-sdk-java-nlb/pom.xml +++ b/ucloud-sdk-java-nlb/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.41-release + 1.2.42-release 4.0.0 ucloud-sdk-java-nlb - 1.2.41-release + 1.2.42-release cn.ucloud ucloud-sdk-java-common - 1.2.41-release + 1.2.42-release diff --git a/ucloud-sdk-java-pathx/pom.xml b/ucloud-sdk-java-pathx/pom.xml index 57aa9778..fc33c4eb 100644 --- a/ucloud-sdk-java-pathx/pom.xml +++ b/ucloud-sdk-java-pathx/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.41-release + 1.2.42-release 4.0.0 ucloud-sdk-java-pathx - 1.2.41-release + 1.2.42-release cn.ucloud ucloud-sdk-java-common - 1.2.41-release + 1.2.42-release diff --git a/ucloud-sdk-java-sts/pom.xml b/ucloud-sdk-java-sts/pom.xml index 925520c3..688958fb 100644 --- a/ucloud-sdk-java-sts/pom.xml +++ b/ucloud-sdk-java-sts/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.41-release + 1.2.42-release 4.0.0 ucloud-sdk-java-sts - 1.2.41-release + 1.2.42-release cn.ucloud ucloud-sdk-java-common - 1.2.41-release + 1.2.42-release diff --git a/ucloud-sdk-java-uaccount/pom.xml b/ucloud-sdk-java-uaccount/pom.xml index 1d545fbd..7c94027a 100644 --- a/ucloud-sdk-java-uaccount/pom.xml +++ b/ucloud-sdk-java-uaccount/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.41-release + 1.2.42-release 4.0.0 ucloud-sdk-java-uaccount - 1.2.41-release + 1.2.42-release cn.ucloud ucloud-sdk-java-common - 1.2.41-release + 1.2.42-release diff --git a/ucloud-sdk-java-uai_modelverse/pom.xml b/ucloud-sdk-java-uai_modelverse/pom.xml index cc5259b4..ed346907 100644 --- a/ucloud-sdk-java-uai_modelverse/pom.xml +++ b/ucloud-sdk-java-uai_modelverse/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.41-release + 1.2.42-release 4.0.0 ucloud-sdk-java-uai_modelverse - 1.2.41-release + 1.2.42-release cn.ucloud ucloud-sdk-java-common - 1.2.41-release + 1.2.42-release diff --git a/ucloud-sdk-java-ubill/pom.xml b/ucloud-sdk-java-ubill/pom.xml index 9bfecf4d..4bfcdf4b 100644 --- a/ucloud-sdk-java-ubill/pom.xml +++ b/ucloud-sdk-java-ubill/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.41-release + 1.2.42-release 4.0.0 ucloud-sdk-java-ubill - 1.2.41-release + 1.2.42-release cn.ucloud ucloud-sdk-java-common - 1.2.41-release + 1.2.42-release diff --git a/ucloud-sdk-java-ucdn/pom.xml b/ucloud-sdk-java-ucdn/pom.xml index 7ae9fba6..b16cb637 100644 --- a/ucloud-sdk-java-ucdn/pom.xml +++ b/ucloud-sdk-java-ucdn/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.41-release + 1.2.42-release 4.0.0 ucloud-sdk-java-ucdn - 1.2.41-release + 1.2.42-release cn.ucloud ucloud-sdk-java-common - 1.2.41-release + 1.2.42-release diff --git a/ucloud-sdk-java-ucompshare/pom.xml b/ucloud-sdk-java-ucompshare/pom.xml index 82f10785..51db1865 100644 --- a/ucloud-sdk-java-ucompshare/pom.xml +++ b/ucloud-sdk-java-ucompshare/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.41-release + 1.2.42-release 4.0.0 ucloud-sdk-java-ucompshare - 1.2.41-release + 1.2.42-release cn.ucloud ucloud-sdk-java-common - 1.2.41-release + 1.2.42-release diff --git a/ucloud-sdk-java-ucompshare/src/main/java/cn/ucloud/ucompshare/client/UCompShareClient.java b/ucloud-sdk-java-ucompshare/src/main/java/cn/ucloud/ucompshare/client/UCompShareClient.java index ade05a29..d0ff1ceb 100644 --- a/ucloud-sdk-java-ucompshare/src/main/java/cn/ucloud/ucompshare/client/UCompShareClient.java +++ b/ucloud-sdk-java-ucompshare/src/main/java/cn/ucloud/ucompshare/client/UCompShareClient.java @@ -17,6 +17,8 @@ import cn.ucloud.common.config.Config; import cn.ucloud.common.credential.Credential; import cn.ucloud.common.exception.UCloudException; +import cn.ucloud.ucompshare.models.CreateCompShareInstanceRequest; +import cn.ucloud.ucompshare.models.CreateCompShareInstanceResponse; import cn.ucloud.ucompshare.models.CreateULHostInstanceRequest; import cn.ucloud.ucompshare.models.CreateULHostInstanceResponse; import cn.ucloud.ucompshare.models.DescribeCompShareInstanceRequest; @@ -33,12 +35,16 @@ import cn.ucloud.ucompshare.models.ModifyULHostAttributeResponse; import cn.ucloud.ucompshare.models.PoweroffULHostInstanceRequest; import cn.ucloud.ucompshare.models.PoweroffULHostInstanceResponse; +import cn.ucloud.ucompshare.models.RebootCompShareInstanceRequest; +import cn.ucloud.ucompshare.models.RebootCompShareInstanceResponse; import cn.ucloud.ucompshare.models.RebootULHostInstanceRequest; import cn.ucloud.ucompshare.models.RebootULHostInstanceResponse; import cn.ucloud.ucompshare.models.ReinstallCompShareInstanceRequest; import cn.ucloud.ucompshare.models.ReinstallCompShareInstanceResponse; import cn.ucloud.ucompshare.models.ReinstallULHostInstanceRequest; import cn.ucloud.ucompshare.models.ReinstallULHostInstanceResponse; +import cn.ucloud.ucompshare.models.ResetCompShareInstancePasswordRequest; +import cn.ucloud.ucompshare.models.ResetCompShareInstancePasswordResponse; import cn.ucloud.ucompshare.models.ResetULHostInstancePasswordRequest; import cn.ucloud.ucompshare.models.ResetULHostInstancePasswordResponse; import cn.ucloud.ucompshare.models.StartCompShareInstanceRequest; @@ -49,6 +55,8 @@ import cn.ucloud.ucompshare.models.StopCompShareInstanceResponse; import cn.ucloud.ucompshare.models.StopULHostInstanceRequest; import cn.ucloud.ucompshare.models.StopULHostInstanceResponse; +import cn.ucloud.ucompshare.models.TerminateCompShareInstanceRequest; +import cn.ucloud.ucompshare.models.TerminateCompShareInstanceResponse; import cn.ucloud.ucompshare.models.TerminateULHostInstanceRequest; import cn.ucloud.ucompshare.models.TerminateULHostInstanceResponse; @@ -58,6 +66,19 @@ public UCompShareClient(Config config, Credential credential) { super(config, credential); } + /** + * CreateCompShareInstance - 创建轻量级算力平台主机资源 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateCompShareInstanceResponse createCompShareInstance( + CreateCompShareInstanceRequest request) throws UCloudException { + request.setAction("CreateCompShareInstance"); + return (CreateCompShareInstanceResponse) + this.invoke(request, CreateCompShareInstanceResponse.class); + } + /** * CreateULHostInstance - 创建轻量应用云主机 * @@ -162,6 +183,19 @@ public PoweroffULHostInstanceResponse poweroffULHostInstance( this.invoke(request, PoweroffULHostInstanceResponse.class); } + /** + * RebootCompShareInstance - 重启轻量算力平台实例 + * + * @param request Request object + * @throws UCloudException Exception + */ + public RebootCompShareInstanceResponse rebootCompShareInstance( + RebootCompShareInstanceRequest request) throws UCloudException { + request.setAction("RebootCompShareInstance"); + return (RebootCompShareInstanceResponse) + this.invoke(request, RebootCompShareInstanceResponse.class); + } + /** * RebootULHostInstance - 重启轻量应用云主机 * @@ -201,6 +235,19 @@ public ReinstallULHostInstanceResponse reinstallULHostInstance( this.invoke(request, ReinstallULHostInstanceResponse.class); } + /** + * ResetCompShareInstancePassword - 重置算力平台实例密码 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ResetCompShareInstancePasswordResponse resetCompShareInstancePassword( + ResetCompShareInstancePasswordRequest request) throws UCloudException { + request.setAction("ResetCompShareInstancePassword"); + return (ResetCompShareInstancePasswordResponse) + this.invoke(request, ResetCompShareInstancePasswordResponse.class); + } + /** * ResetULHostInstancePassword - 重置轻量应用云主机密码 * @@ -265,6 +312,19 @@ public StopULHostInstanceResponse stopULHostInstance(StopULHostInstanceRequest r return (StopULHostInstanceResponse) this.invoke(request, StopULHostInstanceResponse.class); } + /** + * TerminateCompShareInstance - 删除轻量算力共享平台虚机实例 + * + * @param request Request object + * @throws UCloudException Exception + */ + public TerminateCompShareInstanceResponse terminateCompShareInstance( + TerminateCompShareInstanceRequest request) throws UCloudException { + request.setAction("TerminateCompShareInstance"); + return (TerminateCompShareInstanceResponse) + this.invoke(request, TerminateCompShareInstanceResponse.class); + } + /** * TerminateULHostInstance - 删除轻量应用云主机 * diff --git a/ucloud-sdk-java-ucompshare/src/main/java/cn/ucloud/ucompshare/client/UCompShareClientInterface.java b/ucloud-sdk-java-ucompshare/src/main/java/cn/ucloud/ucompshare/client/UCompShareClientInterface.java index d93a7952..e626ba1a 100644 --- a/ucloud-sdk-java-ucompshare/src/main/java/cn/ucloud/ucompshare/client/UCompShareClientInterface.java +++ b/ucloud-sdk-java-ucompshare/src/main/java/cn/ucloud/ucompshare/client/UCompShareClientInterface.java @@ -15,6 +15,8 @@ import cn.ucloud.common.client.Client; import cn.ucloud.common.exception.UCloudException; +import cn.ucloud.ucompshare.models.CreateCompShareInstanceRequest; +import cn.ucloud.ucompshare.models.CreateCompShareInstanceResponse; import cn.ucloud.ucompshare.models.CreateULHostInstanceRequest; import cn.ucloud.ucompshare.models.CreateULHostInstanceResponse; import cn.ucloud.ucompshare.models.DescribeCompShareInstanceRequest; @@ -31,12 +33,16 @@ import cn.ucloud.ucompshare.models.ModifyULHostAttributeResponse; import cn.ucloud.ucompshare.models.PoweroffULHostInstanceRequest; import cn.ucloud.ucompshare.models.PoweroffULHostInstanceResponse; +import cn.ucloud.ucompshare.models.RebootCompShareInstanceRequest; +import cn.ucloud.ucompshare.models.RebootCompShareInstanceResponse; import cn.ucloud.ucompshare.models.RebootULHostInstanceRequest; import cn.ucloud.ucompshare.models.RebootULHostInstanceResponse; import cn.ucloud.ucompshare.models.ReinstallCompShareInstanceRequest; import cn.ucloud.ucompshare.models.ReinstallCompShareInstanceResponse; import cn.ucloud.ucompshare.models.ReinstallULHostInstanceRequest; import cn.ucloud.ucompshare.models.ReinstallULHostInstanceResponse; +import cn.ucloud.ucompshare.models.ResetCompShareInstancePasswordRequest; +import cn.ucloud.ucompshare.models.ResetCompShareInstancePasswordResponse; import cn.ucloud.ucompshare.models.ResetULHostInstancePasswordRequest; import cn.ucloud.ucompshare.models.ResetULHostInstancePasswordResponse; import cn.ucloud.ucompshare.models.StartCompShareInstanceRequest; @@ -47,12 +53,23 @@ import cn.ucloud.ucompshare.models.StopCompShareInstanceResponse; import cn.ucloud.ucompshare.models.StopULHostInstanceRequest; import cn.ucloud.ucompshare.models.StopULHostInstanceResponse; +import cn.ucloud.ucompshare.models.TerminateCompShareInstanceRequest; +import cn.ucloud.ucompshare.models.TerminateCompShareInstanceResponse; import cn.ucloud.ucompshare.models.TerminateULHostInstanceRequest; import cn.ucloud.ucompshare.models.TerminateULHostInstanceResponse; /** This client is used to call actions of **UCompShare** service */ public interface UCompShareClientInterface extends Client { + /** + * CreateCompShareInstance - 创建轻量级算力平台主机资源 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateCompShareInstanceResponse createCompShareInstance( + CreateCompShareInstanceRequest request) throws UCloudException; + /** * CreateULHostInstance - 创建轻量应用云主机 * @@ -125,6 +142,15 @@ public ModifyULHostAttributeResponse modifyULHostAttribute(ModifyULHostAttribute public PoweroffULHostInstanceResponse poweroffULHostInstance( PoweroffULHostInstanceRequest request) throws UCloudException; + /** + * RebootCompShareInstance - 重启轻量算力平台实例 + * + * @param request Request object + * @throws UCloudException Exception + */ + public RebootCompShareInstanceResponse rebootCompShareInstance( + RebootCompShareInstanceRequest request) throws UCloudException; + /** * RebootULHostInstance - 重启轻量应用云主机 * @@ -152,6 +178,15 @@ public ReinstallCompShareInstanceResponse reinstallCompShareInstance( public ReinstallULHostInstanceResponse reinstallULHostInstance( ReinstallULHostInstanceRequest request) throws UCloudException; + /** + * ResetCompShareInstancePassword - 重置算力平台实例密码 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ResetCompShareInstancePasswordResponse resetCompShareInstancePassword( + ResetCompShareInstancePasswordRequest request) throws UCloudException; + /** * ResetULHostInstancePassword - 重置轻量应用云主机密码 * @@ -197,6 +232,15 @@ public StopCompShareInstanceResponse stopCompShareInstance(StopCompShareInstance public StopULHostInstanceResponse stopULHostInstance(StopULHostInstanceRequest request) throws UCloudException; + /** + * TerminateCompShareInstance - 删除轻量算力共享平台虚机实例 + * + * @param request Request object + * @throws UCloudException Exception + */ + public TerminateCompShareInstanceResponse terminateCompShareInstance( + TerminateCompShareInstanceRequest request) throws UCloudException; + /** * TerminateULHostInstance - 删除轻量应用云主机 * diff --git a/ucloud-sdk-java-ucompshare/src/main/java/cn/ucloud/ucompshare/models/CreateCompShareInstanceRequest.java b/ucloud-sdk-java-ucompshare/src/main/java/cn/ucloud/ucompshare/models/CreateCompShareInstanceRequest.java new file mode 100644 index 00000000..643a9a65 --- /dev/null +++ b/ucloud-sdk-java-ucompshare/src/main/java/cn/ucloud/ucompshare/models/CreateCompShareInstanceRequest.java @@ -0,0 +1,296 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.ucompshare.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 CreateCompShareInstanceRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Zone") + private String zone; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** */ + @UCloudParam("Disks") + private List disks; + + /** + * 云主机机型(V2.0),在本字段和字段UHostType中,仅需要其中1个字段即可。枚举值["N", "C", "G", "O", "OS", "OM", "OPRO", "OMAX", + * "O.BM", "O.EPC"]。参考[[api:uhost-api:uhost_type|云主机机型说明]]。 + */ + @NotEmpty + @UCloudParam("MachineType") + private String machineType; + + /** GPU卡核心数。仅GPU机型支持此字段(可选范围与MachineType+GpuType相关) */ + @NotEmpty + @UCloudParam("GPU") + private Integer gpu; + + /** 内存大小。单位:MB。范围 :[1024, 262144],取值为1024的倍数(可选范围参考控制台)。默认值:8192 */ + @NotEmpty + @UCloudParam("Memory") + private Integer memory; + + /** 虚拟CPU核数。可选参数:1-64(具体机型与CPU的对应关系参照控制台)。默认值: 4。 */ + @NotEmpty + @UCloudParam("CPU") + private Integer cpu; + + /** + * GPU类型,枚举值["K80", "P40", "V100", "T4","T4A", "T4S","2080Ti","2080Ti-4C","1080Ti", "T4/4", + * "MI100", "V100S",2080","2080TiS","2080TiPro","3090","A100"],MachineType为G时必填 + */ + @NotEmpty + @UCloudParam("GpuType") + private String gpuType; + + /** 镜像ID */ + @NotEmpty + @UCloudParam("CompShareImageId") + private String compShareImageId; + + /** 主机登陆模式。密码(默认选项): Password */ + @UCloudParam("LoginMode") + private String loginMode; + + /** + * 计费模式。枚举值为: \\ > Month,按月付费;\\ > Day,按天付费;\\ > Dynamic,按小时预付费 \\ > + * Postpay,按小时后付费(支持关机不收费,目前仅部分可用区支持,请联系您的客户经理) \\ > Spot计费为抢占式实例(内测阶段) \\ 默认为月付 + */ + @UCloudParam("ChargeType") + private String chargeType; + + /** 购买时长。默认:值 1。按小时购买(Dynamic/Postpay)时无需此参数。 月付时,此参数传0,代表购买至月末。 */ + @UCloudParam("Quantity") + private Integer quantity; + + /** + * 最低cpu平台,枚举值["Intel/Auto", "Intel/IvyBridge", "Intel/Haswell", "Intel/Broadwell", + * "Intel/Skylake", "Intel/Cascadelake", "Intel/CascadelakeR", "Intel/IceLake", "Amd/Epyc2", + * "Amd/Auto","Ampere/Auto","Ampere/Altra"],默认值是"Intel/Auto"。 + */ + @UCloudParam("MinimalCpuPlatform") + private String minimalCpuPlatform; + + /** + * UHost密码。请遵照[[api:uhost-api:specification|字段规范]]设定密码。密码需使用base64进行编码,举例如下:# echo -n Password1 + * | base64UGFzc3dvcmQx。 + */ + @UCloudParam("Password") + private String password; + + /** 实例名称 */ + @UCloudParam("Name") + private String name; + + /** 防火墙Id */ + @UCloudParam("SecurityGroupId") + private String securityGroupId; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getZone() { + return zone; + } + + public void setZone(String zone) { + this.zone = zone; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public List getDisks() { + return disks; + } + + public void setDisks(List disks) { + this.disks = disks; + } + + public String getMachineType() { + return machineType; + } + + public void setMachineType(String machineType) { + this.machineType = machineType; + } + + public Integer getGPU() { + return gpu; + } + + public void setGPU(Integer gpu) { + this.gpu = gpu; + } + + public Integer getMemory() { + return memory; + } + + public void setMemory(Integer memory) { + this.memory = memory; + } + + public Integer getCPU() { + return cpu; + } + + public void setCPU(Integer cpu) { + this.cpu = cpu; + } + + public String getGpuType() { + return gpuType; + } + + public void setGpuType(String gpuType) { + this.gpuType = gpuType; + } + + public String getCompShareImageId() { + return compShareImageId; + } + + public void setCompShareImageId(String compShareImageId) { + this.compShareImageId = compShareImageId; + } + + public String getLoginMode() { + return loginMode; + } + + public void setLoginMode(String loginMode) { + this.loginMode = loginMode; + } + + public String getChargeType() { + return chargeType; + } + + public void setChargeType(String chargeType) { + this.chargeType = chargeType; + } + + public Integer getQuantity() { + return quantity; + } + + public void setQuantity(Integer quantity) { + this.quantity = quantity; + } + + public String getMinimalCpuPlatform() { + return minimalCpuPlatform; + } + + public void setMinimalCpuPlatform(String minimalCpuPlatform) { + this.minimalCpuPlatform = minimalCpuPlatform; + } + + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getSecurityGroupId() { + return securityGroupId; + } + + public void setSecurityGroupId(String securityGroupId) { + this.securityGroupId = securityGroupId; + } + + public static class Disks extends Request { + + /** 是否是系统盘。枚举值:\\ > True,是系统盘 \\ > False,是数据盘(默认)。Disks数组中有且只能有一块盘是系统盘。 */ + @NotEmpty + @UCloudParam("IsBoot") + private Boolean isBoot; + + /** 磁盘类型。请参考[[api:uhost-api:disk_type|磁盘类型]]。 */ + @NotEmpty + @UCloudParam("Type") + private String type; + + /** 磁盘大小,单位GB。请参考[[api:uhost-api:disk_type|磁盘类型]]。 */ + @NotEmpty + @UCloudParam("Size") + private Integer size; + + public Boolean getIsBoot() { + return isBoot; + } + + public void setIsBoot(Boolean isBoot) { + this.isBoot = isBoot; + } + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public Integer getSize() { + return size; + } + + public void setSize(Integer size) { + this.size = size; + } + } +} diff --git a/ucloud-sdk-java-ucompshare/src/main/java/cn/ucloud/ucompshare/models/CreateCompShareInstanceResponse.java b/ucloud-sdk-java-ucompshare/src/main/java/cn/ucloud/ucompshare/models/CreateCompShareInstanceResponse.java new file mode 100644 index 00000000..b4cd9f30 --- /dev/null +++ b/ucloud-sdk-java-ucompshare/src/main/java/cn/ucloud/ucompshare/models/CreateCompShareInstanceResponse.java @@ -0,0 +1,35 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.ucompshare.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class CreateCompShareInstanceResponse extends Response { + + /** UHost实例Id集合 */ + @SerializedName("UHostIds") + private List uHostIds; + + public List getUHostIds() { + return uHostIds; + } + + public void setUHostIds(List uHostIds) { + this.uHostIds = uHostIds; + } +} diff --git a/ucloud-sdk-java-ucompshare/src/main/java/cn/ucloud/ucompshare/models/DescribeCompShareInstanceRequest.java b/ucloud-sdk-java-ucompshare/src/main/java/cn/ucloud/ucompshare/models/DescribeCompShareInstanceRequest.java index ad3c5766..abd6802a 100644 --- a/ucloud-sdk-java-ucompshare/src/main/java/cn/ucloud/ucompshare/models/DescribeCompShareInstanceRequest.java +++ b/ucloud-sdk-java-ucompshare/src/main/java/cn/ucloud/ucompshare/models/DescribeCompShareInstanceRequest.java @@ -41,6 +41,10 @@ public class DescribeCompShareInstanceRequest extends Request { @UCloudParam("UHostIds") private List uHostIds; + /** 无卡GPU */ + @UCloudParam("WithoutGpu") + private Boolean withoutGpu; + /** 列表起始位置偏移量,默认为0 */ @UCloudParam("Offset") private Integer offset; @@ -81,6 +85,14 @@ public void setUHostIds(List uHostIds) { this.uHostIds = uHostIds; } + public Boolean getWithoutGpu() { + return withoutGpu; + } + + public void setWithoutGpu(Boolean withoutGpu) { + this.withoutGpu = withoutGpu; + } + public Integer getOffset() { return offset; } diff --git a/ucloud-sdk-java-ucompshare/src/main/java/cn/ucloud/ucompshare/models/DescribeCompShareInstanceResponse.java b/ucloud-sdk-java-ucompshare/src/main/java/cn/ucloud/ucompshare/models/DescribeCompShareInstanceResponse.java index 19b49a5e..b145fb63 100644 --- a/ucloud-sdk-java-ucompshare/src/main/java/cn/ucloud/ucompshare/models/DescribeCompShareInstanceResponse.java +++ b/ucloud-sdk-java-ucompshare/src/main/java/cn/ucloud/ucompshare/models/DescribeCompShareInstanceResponse.java @@ -95,6 +95,10 @@ public static class CompShareInstanceSet extends Response { @SerializedName("Password") private String password; + /** SSH登录命令 */ + @SerializedName("SshLoginCommand") + private String sshLoginCommand; + /** 实例名称 */ @SerializedName("Name") private String name; @@ -125,7 +129,7 @@ public static class CompShareInstanceSet extends Response { /** 内存大小,单位:MB */ @SerializedName("Memory") - private String memory; + private Integer memory; /** GPU类型。如: "4090" */ @SerializedName("GpuType") @@ -185,43 +189,19 @@ public static class CompShareInstanceSet extends Response { /** 过期时间 */ @SerializedName("ExpireTime") - private String expireTime; + private Integer expireTime; /** 创建时间 */ @SerializedName("CreateTime") - private String createTime; - - /** 【内部API返回】宿主所在Set Id */ - @SerializedName("SetId") - private Integer setId; - - /** 【内部API返回】宿主IP */ - @SerializedName("HostIp") - private String hostIp; - - /** 【内部API返回】udisk podId */ - @SerializedName("PodId") - private String podId; - - /** 【内部API返回】大页内存 */ - @SerializedName("HugepageCfg") - private String hugepageCfg; + private Integer createTime; - /** 【内部API返回】Qemu版本号 */ - @SerializedName("QemuVersion") - private String qemuVersion; + /** 此实例是否支持无卡开机 */ + @SerializedName("SupportWithoutGpuStart") + private Boolean supportWithoutGpuStart; - /** 【内部API返回】Qemu完整版本号 */ - @SerializedName("QemuFullVersion") - private String qemuFullVersion; - - /** 【内部API返回】资源长Id */ - @SerializedName("UUID") - private String uuid; - - /** 【内部API返回】后付费关机 */ - @SerializedName("PostPayShutdown") - private Boolean postPayShutdown; + /** 无卡配置规格,详情见:WithoutGpuSpecInfo */ + @SerializedName("WithoutGpuSpec") + private WithoutGpuSpec withoutGpuSpec; public String getZone() { return zone; @@ -319,6 +299,14 @@ public void setPassword(String password) { this.password = password; } + public String getSshLoginCommand() { + return sshLoginCommand; + } + + public void setSshLoginCommand(String sshLoginCommand) { + this.sshLoginCommand = sshLoginCommand; + } + public String getName() { return name; } @@ -367,11 +355,11 @@ public void setCPU(Integer cpu) { this.cpu = cpu; } - public String getMemory() { + public Integer getMemory() { return memory; } - public void setMemory(String memory) { + public void setMemory(Integer memory) { this.memory = memory; } @@ -487,84 +475,36 @@ public void setCompShareImagePrice(Double compShareImagePrice) { this.compShareImagePrice = compShareImagePrice; } - public String getExpireTime() { + public Integer getExpireTime() { return expireTime; } - public void setExpireTime(String expireTime) { + public void setExpireTime(Integer expireTime) { this.expireTime = expireTime; } - public String getCreateTime() { + public Integer getCreateTime() { return createTime; } - public void setCreateTime(String createTime) { + public void setCreateTime(Integer createTime) { this.createTime = createTime; } - public Integer getSetId() { - return setId; - } - - public void setSetId(Integer setId) { - this.setId = setId; - } - - public String getHostIp() { - return hostIp; - } - - public void setHostIp(String hostIp) { - this.hostIp = hostIp; - } - - public String getPodId() { - return podId; - } - - public void setPodId(String podId) { - this.podId = podId; - } - - public String getHugepageCfg() { - return hugepageCfg; - } - - public void setHugepageCfg(String hugepageCfg) { - this.hugepageCfg = hugepageCfg; - } - - public String getQemuVersion() { - return qemuVersion; - } - - public void setQemuVersion(String qemuVersion) { - this.qemuVersion = qemuVersion; - } - - public String getQemuFullVersion() { - return qemuFullVersion; - } - - public void setQemuFullVersion(String qemuFullVersion) { - this.qemuFullVersion = qemuFullVersion; + public Boolean getSupportWithoutGpuStart() { + return supportWithoutGpuStart; } - public String getUUID() { - return uuid; + public void setSupportWithoutGpuStart(Boolean supportWithoutGpuStart) { + this.supportWithoutGpuStart = supportWithoutGpuStart; } - public void setUUID(String uuid) { - this.uuid = uuid; + public WithoutGpuSpec getWithoutGpuSpec() { + return withoutGpuSpec; } - public Boolean getPostPayShutdown() { - return postPayShutdown; - } - - public void setPostPayShutdown(Boolean postPayShutdown) { - this.postPayShutdown = postPayShutdown; + public void setWithoutGpuSpec(WithoutGpuSpec withoutGpuSpec) { + this.withoutGpuSpec = withoutGpuSpec; } } @@ -656,10 +596,6 @@ public static class UHostDiskSet extends Response { @SerializedName("Size") private Integer size; - /** 备份方案。若开通了数据方舟,则为DATAARK */ - @SerializedName("BackupType") - private String backupType; - public String getDiskType() { return diskType; } @@ -723,14 +659,6 @@ public Integer getSize() { public void setSize(Integer size) { this.size = size; } - - public String getBackupType() { - return backupType; - } - - public void setBackupType(String backupType) { - this.backupType = backupType; - } } public static class UHostIPSet extends Response { @@ -867,4 +795,43 @@ public void setNetworkInterfaceId(String networkInterfaceId) { this.networkInterfaceId = networkInterfaceId; } } + + public static class WithoutGpuSpec extends Response { + + /** cpu */ + @SerializedName("Cpu") + private Integer cpu; + + /** 内存 */ + @SerializedName("Memory") + private Integer memory; + + /** gpu */ + @SerializedName("Gpu") + private Integer gpu; + + public Integer getCpu() { + return cpu; + } + + public void setCpu(Integer cpu) { + this.cpu = cpu; + } + + public Integer getMemory() { + return memory; + } + + public void setMemory(Integer memory) { + this.memory = memory; + } + + public Integer getGpu() { + return gpu; + } + + public void setGpu(Integer gpu) { + this.gpu = gpu; + } + } } diff --git a/ucloud-sdk-java-ucompshare/src/main/java/cn/ucloud/ucompshare/models/DescribeULHostInstanceResponse.java b/ucloud-sdk-java-ucompshare/src/main/java/cn/ucloud/ucompshare/models/DescribeULHostInstanceResponse.java index b89e18c1..8c6a03c7 100644 --- a/ucloud-sdk-java-ucompshare/src/main/java/cn/ucloud/ucompshare/models/DescribeULHostInstanceResponse.java +++ b/ucloud-sdk-java-ucompshare/src/main/java/cn/ucloud/ucompshare/models/DescribeULHostInstanceResponse.java @@ -392,8 +392,8 @@ public static class ULHostInstanceSet extends Response { private List diskSet; /** 流量包详情信息 */ - @SerializedName("ExclusiveUTPInfo") - private ExclusiveUTPInfo exclusiveUTPInfo; + @SerializedName("EIPExclusiveUTPInfo") + private ExclusiveUTPInfo eipExclusiveUTPInfo; /** 是否自动续费。枚举值:Yes/No */ @SerializedName("AutoRenew") @@ -523,12 +523,12 @@ public void setDiskSet(List diskSet) { this.diskSet = diskSet; } - public ExclusiveUTPInfo getExclusiveUTPInfo() { - return exclusiveUTPInfo; + public ExclusiveUTPInfo getEIPExclusiveUTPInfo() { + return eipExclusiveUTPInfo; } - public void setExclusiveUTPInfo(ExclusiveUTPInfo exclusiveUTPInfo) { - this.exclusiveUTPInfo = exclusiveUTPInfo; + public void setEIPExclusiveUTPInfo(ExclusiveUTPInfo eipExclusiveUTPInfo) { + this.eipExclusiveUTPInfo = eipExclusiveUTPInfo; } public String getAutoRenew() { diff --git a/ucloud-sdk-java-ucompshare/src/main/java/cn/ucloud/ucompshare/models/RebootCompShareInstanceRequest.java b/ucloud-sdk-java-ucompshare/src/main/java/cn/ucloud/ucompshare/models/RebootCompShareInstanceRequest.java new file mode 100644 index 00000000..62e571c5 --- /dev/null +++ b/ucloud-sdk-java-ucompshare/src/main/java/cn/ucloud/ucompshare/models/RebootCompShareInstanceRequest.java @@ -0,0 +1,76 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

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

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.ucompshare.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class RebootCompShareInstanceResponse extends Response { + + /** 实例Id */ + @SerializedName("UHostId") + private String uHostId; + + public String getUHostId() { + return uHostId; + } + + public void setUHostId(String uHostId) { + this.uHostId = uHostId; + } +} diff --git a/ucloud-sdk-java-ucompshare/src/main/java/cn/ucloud/ucompshare/models/ResetCompShareInstancePasswordRequest.java b/ucloud-sdk-java-ucompshare/src/main/java/cn/ucloud/ucompshare/models/ResetCompShareInstancePasswordRequest.java new file mode 100644 index 00000000..868ed5ca --- /dev/null +++ b/ucloud-sdk-java-ucompshare/src/main/java/cn/ucloud/ucompshare/models/ResetCompShareInstancePasswordRequest.java @@ -0,0 +1,89 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

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

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

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

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

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

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

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

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.ucompshare.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class TerminateCompShareInstanceResponse extends Response { + + /** 虚机资源id */ + @SerializedName("UHostId") + private String uHostId; + + public String getUHostId() { + return uHostId; + } + + public void setUHostId(String uHostId) { + this.uHostId = uHostId; + } +} diff --git a/ucloud-sdk-java-udb/pom.xml b/ucloud-sdk-java-udb/pom.xml index d4c8d92c..90f0ae35 100644 --- a/ucloud-sdk-java-udb/pom.xml +++ b/ucloud-sdk-java-udb/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.41-release + 1.2.42-release 4.0.0 ucloud-sdk-java-udb - 1.2.41-release + 1.2.42-release cn.ucloud ucloud-sdk-java-common - 1.2.41-release + 1.2.42-release diff --git a/ucloud-sdk-java-udbproxy/pom.xml b/ucloud-sdk-java-udbproxy/pom.xml index 6b6accfb..b41e0c1d 100644 --- a/ucloud-sdk-java-udbproxy/pom.xml +++ b/ucloud-sdk-java-udbproxy/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.41-release + 1.2.42-release 4.0.0 ucloud-sdk-java-udbproxy - 1.2.41-release + 1.2.42-release cn.ucloud ucloud-sdk-java-common - 1.2.41-release + 1.2.42-release diff --git a/ucloud-sdk-java-udi/pom.xml b/ucloud-sdk-java-udi/pom.xml index 1d0bc498..5265f75d 100644 --- a/ucloud-sdk-java-udi/pom.xml +++ b/ucloud-sdk-java-udi/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.41-release + 1.2.42-release 4.0.0 ucloud-sdk-java-udi - 1.2.41-release + 1.2.42-release cn.ucloud ucloud-sdk-java-common - 1.2.41-release + 1.2.42-release diff --git a/ucloud-sdk-java-udisk/pom.xml b/ucloud-sdk-java-udisk/pom.xml index 257063c1..80f10fd2 100644 --- a/ucloud-sdk-java-udisk/pom.xml +++ b/ucloud-sdk-java-udisk/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.41-release + 1.2.42-release 4.0.0 ucloud-sdk-java-udisk - 1.2.41-release + 1.2.42-release cn.ucloud ucloud-sdk-java-common - 1.2.41-release + 1.2.42-release diff --git a/ucloud-sdk-java-udns/pom.xml b/ucloud-sdk-java-udns/pom.xml index 3f86c503..f3ef8480 100644 --- a/ucloud-sdk-java-udns/pom.xml +++ b/ucloud-sdk-java-udns/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.41-release + 1.2.42-release 4.0.0 ucloud-sdk-java-udns - 1.2.41-release + 1.2.42-release cn.ucloud ucloud-sdk-java-common - 1.2.41-release + 1.2.42-release diff --git a/ucloud-sdk-java-udpn/pom.xml b/ucloud-sdk-java-udpn/pom.xml index e9462ed5..0d1aa32d 100644 --- a/ucloud-sdk-java-udpn/pom.xml +++ b/ucloud-sdk-java-udpn/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.41-release + 1.2.42-release 4.0.0 ucloud-sdk-java-udpn - 1.2.41-release + 1.2.42-release cn.ucloud ucloud-sdk-java-common - 1.2.41-release + 1.2.42-release diff --git a/ucloud-sdk-java-uec/pom.xml b/ucloud-sdk-java-uec/pom.xml index d6cad240..4c6beed5 100644 --- a/ucloud-sdk-java-uec/pom.xml +++ b/ucloud-sdk-java-uec/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.41-release + 1.2.42-release 4.0.0 ucloud-sdk-java-uec - 1.2.41-release + 1.2.42-release cn.ucloud ucloud-sdk-java-common - 1.2.41-release + 1.2.42-release diff --git a/ucloud-sdk-java-uewaf/pom.xml b/ucloud-sdk-java-uewaf/pom.xml index 9f4421b7..8f5e899a 100644 --- a/ucloud-sdk-java-uewaf/pom.xml +++ b/ucloud-sdk-java-uewaf/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.41-release + 1.2.42-release 4.0.0 ucloud-sdk-java-uewaf - 1.2.41-release + 1.2.42-release cn.ucloud ucloud-sdk-java-common - 1.2.41-release + 1.2.42-release diff --git a/ucloud-sdk-java-ufile/pom.xml b/ucloud-sdk-java-ufile/pom.xml index 55cdb7dc..53ae265e 100644 --- a/ucloud-sdk-java-ufile/pom.xml +++ b/ucloud-sdk-java-ufile/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.41-release + 1.2.42-release 4.0.0 ucloud-sdk-java-ufile - 1.2.41-release + 1.2.42-release cn.ucloud ucloud-sdk-java-common - 1.2.41-release + 1.2.42-release diff --git a/ucloud-sdk-java-ufs/pom.xml b/ucloud-sdk-java-ufs/pom.xml index 6135e744..1932b381 100644 --- a/ucloud-sdk-java-ufs/pom.xml +++ b/ucloud-sdk-java-ufs/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.41-release + 1.2.42-release 4.0.0 ucloud-sdk-java-ufs - 1.2.41-release + 1.2.42-release cn.ucloud ucloud-sdk-java-common - 1.2.41-release + 1.2.42-release diff --git a/ucloud-sdk-java-uhost/pom.xml b/ucloud-sdk-java-uhost/pom.xml index 622a1d2a..4a08578f 100644 --- a/ucloud-sdk-java-uhost/pom.xml +++ b/ucloud-sdk-java-uhost/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.41-release + 1.2.42-release 4.0.0 ucloud-sdk-java-uhost - 1.2.41-release + 1.2.42-release cn.ucloud ucloud-sdk-java-common - 1.2.41-release + 1.2.42-release diff --git a/ucloud-sdk-java-uk8s/pom.xml b/ucloud-sdk-java-uk8s/pom.xml index 36efe137..644dd61b 100644 --- a/ucloud-sdk-java-uk8s/pom.xml +++ b/ucloud-sdk-java-uk8s/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.41-release + 1.2.42-release 4.0.0 ucloud-sdk-java-uk8s - 1.2.41-release + 1.2.42-release cn.ucloud ucloud-sdk-java-common - 1.2.41-release + 1.2.42-release diff --git a/ucloud-sdk-java-ulb/pom.xml b/ucloud-sdk-java-ulb/pom.xml index 7299c399..209b1119 100644 --- a/ucloud-sdk-java-ulb/pom.xml +++ b/ucloud-sdk-java-ulb/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.41-release + 1.2.42-release 4.0.0 ucloud-sdk-java-ulb - 1.2.41-release + 1.2.42-release cn.ucloud ucloud-sdk-java-common - 1.2.41-release + 1.2.42-release diff --git a/ucloud-sdk-java-ulog/pom.xml b/ucloud-sdk-java-ulog/pom.xml index 67b9e17b..a4b0873a 100644 --- a/ucloud-sdk-java-ulog/pom.xml +++ b/ucloud-sdk-java-ulog/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.41-release + 1.2.42-release 4.0.0 ucloud-sdk-java-ulog - 1.2.41-release + 1.2.42-release cn.ucloud ucloud-sdk-java-common - 1.2.41-release + 1.2.42-release diff --git a/ucloud-sdk-java-umem/pom.xml b/ucloud-sdk-java-umem/pom.xml index dc77ae5c..3cf4dafd 100644 --- a/ucloud-sdk-java-umem/pom.xml +++ b/ucloud-sdk-java-umem/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.41-release + 1.2.42-release 4.0.0 ucloud-sdk-java-umem - 1.2.41-release + 1.2.42-release cn.ucloud ucloud-sdk-java-common - 1.2.41-release + 1.2.42-release diff --git a/ucloud-sdk-java-umongodb/pom.xml b/ucloud-sdk-java-umongodb/pom.xml index 6655bdac..90e54d81 100644 --- a/ucloud-sdk-java-umongodb/pom.xml +++ b/ucloud-sdk-java-umongodb/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.41-release + 1.2.42-release 4.0.0 ucloud-sdk-java-umongodb - 1.2.41-release + 1.2.42-release cn.ucloud ucloud-sdk-java-common - 1.2.41-release + 1.2.42-release diff --git a/ucloud-sdk-java-unet/pom.xml b/ucloud-sdk-java-unet/pom.xml index cce715c3..e39f168c 100644 --- a/ucloud-sdk-java-unet/pom.xml +++ b/ucloud-sdk-java-unet/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.41-release + 1.2.42-release 4.0.0 ucloud-sdk-java-unet - 1.2.41-release + 1.2.42-release cn.ucloud ucloud-sdk-java-common - 1.2.41-release + 1.2.42-release diff --git a/ucloud-sdk-java-upgsql/pom.xml b/ucloud-sdk-java-upgsql/pom.xml index 8243396d..07afc3de 100644 --- a/ucloud-sdk-java-upgsql/pom.xml +++ b/ucloud-sdk-java-upgsql/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.41-release + 1.2.42-release 4.0.0 ucloud-sdk-java-upgsql - 1.2.41-release + 1.2.42-release cn.ucloud ucloud-sdk-java-common - 1.2.41-release + 1.2.42-release diff --git a/ucloud-sdk-java-uphone/pom.xml b/ucloud-sdk-java-uphone/pom.xml index 811f713a..54a2f8cd 100644 --- a/ucloud-sdk-java-uphone/pom.xml +++ b/ucloud-sdk-java-uphone/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.41-release + 1.2.42-release 4.0.0 ucloud-sdk-java-uphone - 1.2.41-release + 1.2.42-release cn.ucloud ucloud-sdk-java-common - 1.2.41-release + 1.2.42-release diff --git a/ucloud-sdk-java-uphost/pom.xml b/ucloud-sdk-java-uphost/pom.xml index 1ef986a2..7a752dcb 100644 --- a/ucloud-sdk-java-uphost/pom.xml +++ b/ucloud-sdk-java-uphost/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.41-release + 1.2.42-release 4.0.0 ucloud-sdk-java-uphost - 1.2.41-release + 1.2.42-release cn.ucloud ucloud-sdk-java-common - 1.2.41-release + 1.2.42-release diff --git a/ucloud-sdk-java-uslk/pom.xml b/ucloud-sdk-java-uslk/pom.xml index e34fa56c..7aa13728 100644 --- a/ucloud-sdk-java-uslk/pom.xml +++ b/ucloud-sdk-java-uslk/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.41-release + 1.2.42-release 4.0.0 ucloud-sdk-java-uslk - 1.2.41-release + 1.2.42-release cn.ucloud ucloud-sdk-java-common - 1.2.41-release + 1.2.42-release diff --git a/ucloud-sdk-java-usms/pom.xml b/ucloud-sdk-java-usms/pom.xml index 7e2e54f5..98a1a5ee 100644 --- a/ucloud-sdk-java-usms/pom.xml +++ b/ucloud-sdk-java-usms/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.41-release + 1.2.42-release 4.0.0 ucloud-sdk-java-usms - 1.2.41-release + 1.2.42-release cn.ucloud ucloud-sdk-java-common - 1.2.41-release + 1.2.42-release diff --git a/ucloud-sdk-java-usnap/pom.xml b/ucloud-sdk-java-usnap/pom.xml index 4a212a4a..84673a34 100644 --- a/ucloud-sdk-java-usnap/pom.xml +++ b/ucloud-sdk-java-usnap/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.41-release + 1.2.42-release 4.0.0 ucloud-sdk-java-usnap - 1.2.41-release + 1.2.42-release cn.ucloud ucloud-sdk-java-common - 1.2.41-release + 1.2.42-release diff --git a/ucloud-sdk-java-uvms/pom.xml b/ucloud-sdk-java-uvms/pom.xml index 24ddda14..38374f26 100644 --- a/ucloud-sdk-java-uvms/pom.xml +++ b/ucloud-sdk-java-uvms/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.41-release + 1.2.42-release 4.0.0 ucloud-sdk-java-uvms - 1.2.41-release + 1.2.42-release cn.ucloud ucloud-sdk-java-common - 1.2.41-release + 1.2.42-release diff --git a/ucloud-sdk-java-vpc/pom.xml b/ucloud-sdk-java-vpc/pom.xml index 5bc11af3..1c67f220 100644 --- a/ucloud-sdk-java-vpc/pom.xml +++ b/ucloud-sdk-java-vpc/pom.xml @@ -6,18 +6,18 @@ ucloud-sdk-java cn.ucloud - 1.2.41-release + 1.2.42-release 4.0.0 ucloud-sdk-java-vpc - 1.2.41-release + 1.2.42-release cn.ucloud ucloud-sdk-java-common - 1.2.41-release + 1.2.42-release