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.ulighthost.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.ulighthost.models.CheckULHostResourceCapacityRequest; +import cn.ucloud.ulighthost.models.CheckULHostResourceCapacityResponse; +import cn.ucloud.ulighthost.models.CreateULHostInstanceRequest; +import cn.ucloud.ulighthost.models.CreateULHostInstanceResponse; +import cn.ucloud.ulighthost.models.DescribeULHostBundlesRequest; +import cn.ucloud.ulighthost.models.DescribeULHostBundlesResponse; +import cn.ucloud.ulighthost.models.DescribeULHostImageRequest; +import cn.ucloud.ulighthost.models.DescribeULHostImageResponse; +import cn.ucloud.ulighthost.models.DescribeULHostInstanceRequest; +import cn.ucloud.ulighthost.models.DescribeULHostInstanceResponse; +import cn.ucloud.ulighthost.models.GetULHostInstancePriceRequest; +import cn.ucloud.ulighthost.models.GetULHostInstancePriceResponse; +import cn.ucloud.ulighthost.models.GetULHostRenewPriceRequest; +import cn.ucloud.ulighthost.models.GetULHostRenewPriceResponse; +import cn.ucloud.ulighthost.models.ModifyULHostAttributeRequest; +import cn.ucloud.ulighthost.models.ModifyULHostAttributeResponse; +import cn.ucloud.ulighthost.models.PoweroffULHostInstanceRequest; +import cn.ucloud.ulighthost.models.PoweroffULHostInstanceResponse; +import cn.ucloud.ulighthost.models.RebootULHostInstanceRequest; +import cn.ucloud.ulighthost.models.RebootULHostInstanceResponse; +import cn.ucloud.ulighthost.models.ReinstallULHostInstanceRequest; +import cn.ucloud.ulighthost.models.ReinstallULHostInstanceResponse; +import cn.ucloud.ulighthost.models.ResetULHostInstancePasswordRequest; +import cn.ucloud.ulighthost.models.ResetULHostInstancePasswordResponse; +import cn.ucloud.ulighthost.models.StartULHostInstanceRequest; +import cn.ucloud.ulighthost.models.StartULHostInstanceResponse; +import cn.ucloud.ulighthost.models.StopULHostInstanceRequest; +import cn.ucloud.ulighthost.models.StopULHostInstanceResponse; +import cn.ucloud.ulighthost.models.TerminateULHostInstanceRequest; +import cn.ucloud.ulighthost.models.TerminateULHostInstanceResponse; + +/** This client is used to call actions of **ULightHost** service */ +public class ULightHostClient extends DefaultClient implements ULightHostClientInterface { + public ULightHostClient(Config config, Credential credential) { + super(config, credential); + } + + /** + * CheckULHostResourceCapacity - 检查轻量应用云主机资源余量 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CheckULHostResourceCapacityResponse checkULHostResourceCapacity( + CheckULHostResourceCapacityRequest request) throws UCloudException { + request.setAction("CheckULHostResourceCapacity"); + return (CheckULHostResourceCapacityResponse) + this.invoke(request, CheckULHostResourceCapacityResponse.class); + } + + /** + * CreateULHostInstance - 创建轻量应用云主机 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateULHostInstanceResponse createULHostInstance(CreateULHostInstanceRequest request) + throws UCloudException { + request.setAction("CreateULHostInstance"); + return (CreateULHostInstanceResponse) + this.invoke(request, CreateULHostInstanceResponse.class); + } + + /** + * DescribeULHostBundles - 获取轻量应用云主机套餐列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeULHostBundlesResponse describeULHostBundles(DescribeULHostBundlesRequest request) + throws UCloudException { + request.setAction("DescribeULHostBundles"); + return (DescribeULHostBundlesResponse) + this.invoke(request, DescribeULHostBundlesResponse.class); + } + + /** + * DescribeULHostImage - 获取轻量应用主机镜像列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeULHostImageResponse describeULHostImage(DescribeULHostImageRequest request) + throws UCloudException { + request.setAction("DescribeULHostImage"); + return (DescribeULHostImageResponse) + this.invoke(request, DescribeULHostImageResponse.class); + } + + /** + * DescribeULHostInstance - 获取轻量应用云主机列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeULHostInstanceResponse describeULHostInstance( + DescribeULHostInstanceRequest request) throws UCloudException { + request.setAction("DescribeULHostInstance"); + return (DescribeULHostInstanceResponse) + this.invoke(request, DescribeULHostInstanceResponse.class); + } + + /** + * GetULHostInstancePrice - 获取轻量应用云主机套餐价格 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetULHostInstancePriceResponse getULHostInstancePrice( + GetULHostInstancePriceRequest request) throws UCloudException { + request.setAction("GetULHostInstancePrice"); + return (GetULHostInstancePriceResponse) + this.invoke(request, GetULHostInstancePriceResponse.class); + } + + /** + * GetULHostRenewPrice - 获取主机续费价格 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetULHostRenewPriceResponse getULHostRenewPrice(GetULHostRenewPriceRequest request) + throws UCloudException { + request.setAction("GetULHostRenewPrice"); + return (GetULHostRenewPriceResponse) + this.invoke(request, GetULHostRenewPriceResponse.class); + } + + /** + * ModifyULHostAttribute - 修改轻量应用主机属性信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyULHostAttributeResponse modifyULHostAttribute(ModifyULHostAttributeRequest request) + throws UCloudException { + request.setAction("ModifyULHostAttribute"); + return (ModifyULHostAttributeResponse) + this.invoke(request, ModifyULHostAttributeResponse.class); + } + + /** + * PoweroffULHostInstance - 模拟主机掉电 + * + * @param request Request object + * @throws UCloudException Exception + */ + public PoweroffULHostInstanceResponse poweroffULHostInstance( + PoweroffULHostInstanceRequest request) throws UCloudException { + request.setAction("PoweroffULHostInstance"); + return (PoweroffULHostInstanceResponse) + this.invoke(request, PoweroffULHostInstanceResponse.class); + } + + /** + * RebootULHostInstance - 重启轻量应用云主机 + * + * @param request Request object + * @throws UCloudException Exception + */ + public RebootULHostInstanceResponse rebootULHostInstance(RebootULHostInstanceRequest request) + throws UCloudException { + request.setAction("RebootULHostInstance"); + return (RebootULHostInstanceResponse) + this.invoke(request, RebootULHostInstanceResponse.class); + } + + /** + * ReinstallULHostInstance - 重装轻量应用云主机 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ReinstallULHostInstanceResponse reinstallULHostInstance( + ReinstallULHostInstanceRequest request) throws UCloudException { + request.setAction("ReinstallULHostInstance"); + return (ReinstallULHostInstanceResponse) + this.invoke(request, ReinstallULHostInstanceResponse.class); + } + + /** + * ResetULHostInstancePassword - 重置轻量应用云主机密码 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ResetULHostInstancePasswordResponse resetULHostInstancePassword( + ResetULHostInstancePasswordRequest request) throws UCloudException { + request.setAction("ResetULHostInstancePassword"); + return (ResetULHostInstancePasswordResponse) + this.invoke(request, ResetULHostInstancePasswordResponse.class); + } + + /** + * StartULHostInstance - 启动轻量应用主机 + * + * @param request Request object + * @throws UCloudException Exception + */ + public StartULHostInstanceResponse startULHostInstance(StartULHostInstanceRequest request) + throws UCloudException { + request.setAction("StartULHostInstance"); + return (StartULHostInstanceResponse) + this.invoke(request, StartULHostInstanceResponse.class); + } + + /** + * StopULHostInstance - 关闭轻量应用云主机 + * + * @param request Request object + * @throws UCloudException Exception + */ + public StopULHostInstanceResponse stopULHostInstance(StopULHostInstanceRequest request) + throws UCloudException { + request.setAction("StopULHostInstance"); + return (StopULHostInstanceResponse) this.invoke(request, StopULHostInstanceResponse.class); + } + + /** + * TerminateULHostInstance - 删除轻量应用云主机 + * + * @param request Request object + * @throws UCloudException Exception + */ + public TerminateULHostInstanceResponse terminateULHostInstance( + TerminateULHostInstanceRequest request) throws UCloudException { + request.setAction("TerminateULHostInstance"); + return (TerminateULHostInstanceResponse) + this.invoke(request, TerminateULHostInstanceResponse.class); + } +} diff --git a/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/client/ULightHostClientInterface.java b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/client/ULightHostClientInterface.java new file mode 100644 index 00000000..3bb3405d --- /dev/null +++ b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/client/ULightHostClientInterface.java @@ -0,0 +1,186 @@ +/** + * 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.ulighthost.client; + +import cn.ucloud.common.client.Client; +import cn.ucloud.common.exception.UCloudException; +import cn.ucloud.ulighthost.models.CheckULHostResourceCapacityRequest; +import cn.ucloud.ulighthost.models.CheckULHostResourceCapacityResponse; +import cn.ucloud.ulighthost.models.CreateULHostInstanceRequest; +import cn.ucloud.ulighthost.models.CreateULHostInstanceResponse; +import cn.ucloud.ulighthost.models.DescribeULHostBundlesRequest; +import cn.ucloud.ulighthost.models.DescribeULHostBundlesResponse; +import cn.ucloud.ulighthost.models.DescribeULHostImageRequest; +import cn.ucloud.ulighthost.models.DescribeULHostImageResponse; +import cn.ucloud.ulighthost.models.DescribeULHostInstanceRequest; +import cn.ucloud.ulighthost.models.DescribeULHostInstanceResponse; +import cn.ucloud.ulighthost.models.GetULHostInstancePriceRequest; +import cn.ucloud.ulighthost.models.GetULHostInstancePriceResponse; +import cn.ucloud.ulighthost.models.GetULHostRenewPriceRequest; +import cn.ucloud.ulighthost.models.GetULHostRenewPriceResponse; +import cn.ucloud.ulighthost.models.ModifyULHostAttributeRequest; +import cn.ucloud.ulighthost.models.ModifyULHostAttributeResponse; +import cn.ucloud.ulighthost.models.PoweroffULHostInstanceRequest; +import cn.ucloud.ulighthost.models.PoweroffULHostInstanceResponse; +import cn.ucloud.ulighthost.models.RebootULHostInstanceRequest; +import cn.ucloud.ulighthost.models.RebootULHostInstanceResponse; +import cn.ucloud.ulighthost.models.ReinstallULHostInstanceRequest; +import cn.ucloud.ulighthost.models.ReinstallULHostInstanceResponse; +import cn.ucloud.ulighthost.models.ResetULHostInstancePasswordRequest; +import cn.ucloud.ulighthost.models.ResetULHostInstancePasswordResponse; +import cn.ucloud.ulighthost.models.StartULHostInstanceRequest; +import cn.ucloud.ulighthost.models.StartULHostInstanceResponse; +import cn.ucloud.ulighthost.models.StopULHostInstanceRequest; +import cn.ucloud.ulighthost.models.StopULHostInstanceResponse; +import cn.ucloud.ulighthost.models.TerminateULHostInstanceRequest; +import cn.ucloud.ulighthost.models.TerminateULHostInstanceResponse; + +/** This client is used to call actions of **ULightHost** service */ +public interface ULightHostClientInterface extends Client { + + /** + * CheckULHostResourceCapacity - 检查轻量应用云主机资源余量 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CheckULHostResourceCapacityResponse checkULHostResourceCapacity( + CheckULHostResourceCapacityRequest request) throws UCloudException; + + /** + * CreateULHostInstance - 创建轻量应用云主机 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateULHostInstanceResponse createULHostInstance(CreateULHostInstanceRequest request) + throws UCloudException; + + /** + * DescribeULHostBundles - 获取轻量应用云主机套餐列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeULHostBundlesResponse describeULHostBundles(DescribeULHostBundlesRequest request) + throws UCloudException; + + /** + * DescribeULHostImage - 获取轻量应用主机镜像列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeULHostImageResponse describeULHostImage(DescribeULHostImageRequest request) + throws UCloudException; + + /** + * DescribeULHostInstance - 获取轻量应用云主机列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeULHostInstanceResponse describeULHostInstance( + DescribeULHostInstanceRequest request) throws UCloudException; + + /** + * GetULHostInstancePrice - 获取轻量应用云主机套餐价格 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetULHostInstancePriceResponse getULHostInstancePrice( + GetULHostInstancePriceRequest request) throws UCloudException; + + /** + * GetULHostRenewPrice - 获取主机续费价格 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetULHostRenewPriceResponse getULHostRenewPrice(GetULHostRenewPriceRequest request) + throws UCloudException; + + /** + * ModifyULHostAttribute - 修改轻量应用主机属性信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ModifyULHostAttributeResponse modifyULHostAttribute(ModifyULHostAttributeRequest request) + throws UCloudException; + + /** + * PoweroffULHostInstance - 模拟主机掉电 + * + * @param request Request object + * @throws UCloudException Exception + */ + public PoweroffULHostInstanceResponse poweroffULHostInstance( + PoweroffULHostInstanceRequest request) throws UCloudException; + + /** + * RebootULHostInstance - 重启轻量应用云主机 + * + * @param request Request object + * @throws UCloudException Exception + */ + public RebootULHostInstanceResponse rebootULHostInstance(RebootULHostInstanceRequest request) + throws UCloudException; + + /** + * ReinstallULHostInstance - 重装轻量应用云主机 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ReinstallULHostInstanceResponse reinstallULHostInstance( + ReinstallULHostInstanceRequest request) throws UCloudException; + + /** + * ResetULHostInstancePassword - 重置轻量应用云主机密码 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ResetULHostInstancePasswordResponse resetULHostInstancePassword( + ResetULHostInstancePasswordRequest request) throws UCloudException; + + /** + * StartULHostInstance - 启动轻量应用主机 + * + * @param request Request object + * @throws UCloudException Exception + */ + public StartULHostInstanceResponse startULHostInstance(StartULHostInstanceRequest request) + throws UCloudException; + + /** + * StopULHostInstance - 关闭轻量应用云主机 + * + * @param request Request object + * @throws UCloudException Exception + */ + public StopULHostInstanceResponse stopULHostInstance(StopULHostInstanceRequest request) + throws UCloudException; + + /** + * TerminateULHostInstance - 删除轻量应用云主机 + * + * @param request Request object + * @throws UCloudException Exception + */ + public TerminateULHostInstanceResponse terminateULHostInstance( + TerminateULHostInstanceRequest request) throws UCloudException; +} diff --git a/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/CheckULHostResourceCapacityRequest.java b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/CheckULHostResourceCapacityRequest.java new file mode 100644 index 00000000..22e172bf --- /dev/null +++ b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/CheckULHostResourceCapacityRequest.java @@ -0,0 +1,163 @@ +/** + * 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.ulighthost.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class CheckULHostResourceCapacityRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 镜像ID。 请通过 [DescribeImage](describe_image.html)获取 */ + @NotEmpty + @UCloudParam("ImageId") + private String imageId; + + /** 套餐ID。如:"ulh.c1m1s40b30t800" */ + @NotEmpty + @UCloudParam("BundleId") + private String bundleId; + + /** 轻量应用主机名称。默认:套餐ID。请遵照[[api:uhost-api:specification|字段规范]]设定实例名称。 */ + @UCloudParam("Name") + private String name; + + /** 计费模式。枚举值: \\ > Year,按年付费; \\ > Month,按月付费;\\ > ThirtyDay,30天期付费,跨境电商相关套餐使用此计费方式;默认:Month */ + @UCloudParam("ChargeType") + private String chargeType; + + /** 购买时长。默认:1。不支持购买到月末 */ + @UCloudParam("Quantity") + private Integer quantity; + + /** VPC ID。默认为当前地域的默认VPC。 */ + @UCloudParam("VPCId") + private String vpcId; + + /** 子网 ID。默认为当前地域的默认子网。 */ + @UCloudParam("SubnetId") + private String subnetId; + + /** + * 防火墙ID,默认:Web推荐防火墙。如何查询SecurityGroupId请参见 + * [DescribeFirewall](api/unet-api/describe_firewall.html)。 + */ + @UCloudParam("SecurityGroupId") + private String securityGroupId; + + /** 主机代金券ID。请通过DescribeCoupon接口查询,或登录用户中心查看 */ + @UCloudParam("CouponId") + private String couponId; + + 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 getImageId() { + return imageId; + } + + public void setImageId(String imageId) { + this.imageId = imageId; + } + + public String getBundleId() { + return bundleId; + } + + public void setBundleId(String bundleId) { + this.bundleId = bundleId; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + 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 getVPCId() { + return vpcId; + } + + public void setVPCId(String vpcId) { + this.vpcId = vpcId; + } + + public String getSubnetId() { + return subnetId; + } + + public void setSubnetId(String subnetId) { + this.subnetId = subnetId; + } + + public String getSecurityGroupId() { + return securityGroupId; + } + + public void setSecurityGroupId(String securityGroupId) { + this.securityGroupId = securityGroupId; + } + + public String getCouponId() { + return couponId; + } + + public void setCouponId(String couponId) { + this.couponId = couponId; + } +} diff --git a/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/CheckULHostResourceCapacityResponse.java b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/CheckULHostResourceCapacityResponse.java new file mode 100644 index 00000000..c928655b --- /dev/null +++ b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/CheckULHostResourceCapacityResponse.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.ulighthost.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class CheckULHostResourceCapacityResponse extends Response { + + /** 资源是否充足 */ + @SerializedName("ResourceEnough") + private Boolean resourceEnough; + + public Boolean getResourceEnough() { + return resourceEnough; + } + + public void setResourceEnough(Boolean resourceEnough) { + this.resourceEnough = resourceEnough; + } +} diff --git a/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/CreateULHostInstanceRequest.java b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/CreateULHostInstanceRequest.java new file mode 100644 index 00000000..26fb4df5 --- /dev/null +++ b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/CreateULHostInstanceRequest.java @@ -0,0 +1,179 @@ +/** + * 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.ulighthost.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class CreateULHostInstanceRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 镜像ID。 请通过 [DescribeImage](describe_image.html)获取 */ + @NotEmpty + @UCloudParam("ImageId") + private String imageId; + + /** 套餐ID。如:"ulh.c1m1s40b30t800" */ + @NotEmpty + @UCloudParam("BundleId") + private String bundleId; + + /** + * ULHost密码。请遵照[[api:uhost-api:specification|字段规范]]设定密码。密码需使用base64进行编码,举例如下:# echo -n Password1 + * | base64 + */ + @NotEmpty + @UCloudParam("Password") + private String password; + + /** 轻量应用主机名称。默认:套餐ID。请遵照[[api:uhost-api:specification|字段规范]]设定实例名称。 */ + @UCloudParam("Name") + private String name; + + /** 计费模式。枚举值: \\ > Year,按年付费; \\ > Month,按月付费;\\ > ThirtyDay,30天期付费,跨境电商相关套餐使用此计费方式;默认:Month */ + @UCloudParam("ChargeType") + private String chargeType; + + /** 购买时长。默认:1。不支持购买到月末 */ + @UCloudParam("Quantity") + private Integer quantity; + + /** VPC ID。默认为当前地域的默认VPC。 */ + @UCloudParam("VPCId") + private String vpcId; + + /** 子网 ID。默认为当前地域的默认子网。 */ + @UCloudParam("SubnetId") + private String subnetId; + + /** + * 防火墙ID,默认:Web推荐防火墙。如何查询SecurityGroupId请参见 + * [DescribeFirewall](api/unet-api/describe_firewall.html)。 + */ + @UCloudParam("SecurityGroupId") + private String securityGroupId; + + /** 主机代金券ID。请通过DescribeCoupon接口查询,或登录用户中心查看 */ + @UCloudParam("CouponId") + private String couponId; + + 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 getImageId() { + return imageId; + } + + public void setImageId(String imageId) { + this.imageId = imageId; + } + + public String getBundleId() { + return bundleId; + } + + public void setBundleId(String bundleId) { + this.bundleId = bundleId; + } + + 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 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 getVPCId() { + return vpcId; + } + + public void setVPCId(String vpcId) { + this.vpcId = vpcId; + } + + public String getSubnetId() { + return subnetId; + } + + public void setSubnetId(String subnetId) { + this.subnetId = subnetId; + } + + public String getSecurityGroupId() { + return securityGroupId; + } + + public void setSecurityGroupId(String securityGroupId) { + this.securityGroupId = securityGroupId; + } + + public String getCouponId() { + return couponId; + } + + public void setCouponId(String couponId) { + this.couponId = couponId; + } +} diff --git a/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/CreateULHostInstanceResponse.java b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/CreateULHostInstanceResponse.java new file mode 100644 index 00000000..21ea2140 --- /dev/null +++ b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/CreateULHostInstanceResponse.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.ulighthost.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class CreateULHostInstanceResponse extends Response { + + /** 实例ID */ + @SerializedName("ULHostId") + private String ulHostId; + + public String getULHostId() { + return ulHostId; + } + + public void setULHostId(String ulHostId) { + this.ulHostId = ulHostId; + } +} diff --git a/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/DescribeULHostBundlesRequest.java b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/DescribeULHostBundlesRequest.java new file mode 100644 index 00000000..a3de58b5 --- /dev/null +++ b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/DescribeULHostBundlesRequest.java @@ -0,0 +1,50 @@ +/** + * 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.ulighthost.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class DescribeULHostBundlesRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @NotEmpty + @UCloudParam("Region") + private String region; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + 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; + } +} diff --git a/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/DescribeULHostBundlesResponse.java b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/DescribeULHostBundlesResponse.java new file mode 100644 index 00000000..1afdb43c --- /dev/null +++ b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/DescribeULHostBundlesResponse.java @@ -0,0 +1,110 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *
http://www.apache.org/licenses/LICENSE-2.0 + * + *
Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.ulighthost.models;
+
+import cn.ucloud.common.response.Response;
+
+import com.google.gson.annotations.SerializedName;
+
+import java.util.List;
+
+public class DescribeULHostBundlesResponse extends Response {
+
+ /** 套餐列表 */
+ @SerializedName("Bundles")
+ private List Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.ulighthost.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 DescribeULHostImageRequest extends Request {
+
+ /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Region")
+ private String region;
+
+ /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @UCloudParam("Zone")
+ private String zone;
+
+ /**
+ * 项目ID。不填写为默认项目,子帐号必须填写。
+ * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
+ */
+ @UCloudParam("ProjectId")
+ private String projectId;
+
+ /** 镜像类型。标准镜像:Base,应用镜像:App, 自定义镜像:Custom,默认返回所有类型 */
+ @UCloudParam("ImageType")
+ private String imageType;
+
+ /** 使用场景,当ImageType为"App"时生效。 - Normal 常规专区 - CrossBorder 跨境专区 默认返回所有 */
+ @UCloudParam("Scene")
+ private String scene;
+
+ /** 操作系统类型:Linux, Windows 默认返回所有类型 */
+ @UCloudParam("OsType")
+ private String osType;
+
+ /** 镜像Id */
+ @UCloudParam("ImageId")
+ private String imageId;
+
+ /** 镜像Id列表 */
+ @UCloudParam("ImageIds")
+ private List Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.ulighthost.models;
+
+import cn.ucloud.common.response.Response;
+
+import com.google.gson.annotations.SerializedName;
+
+import java.util.List;
+
+public class DescribeULHostImageResponse extends Response {
+
+ /** 满足条件的镜像总数 */
+ @SerializedName("TotalCount")
+ private Integer totalCount;
+
+ /** 镜像列表详见 UHostImageSet */
+ @SerializedName("ImageSet")
+ private List Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.ulighthost.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 DescribeULHostInstanceRequest extends Request {
+
+ /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Region")
+ private String region;
+
+ /**
+ * 项目ID。不填写为默认项目,子帐号必须填写。
+ * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
+ */
+ @UCloudParam("ProjectId")
+ private String projectId;
+
+ /** 【数组】轻量应用云主机ID。 */
+ @UCloudParam("ULHostIds")
+ private List Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.ulighthost.models;
+
+import cn.ucloud.common.response.Response;
+
+import com.google.gson.annotations.SerializedName;
+
+import java.util.List;
+
+public class DescribeULHostInstanceResponse extends Response {
+
+ /** 实例列表 */
+ @SerializedName("ULHostInstanceSets")
+ private List Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.ulighthost.models;
+
+
+import cn.ucloud.common.annotation.NotEmpty;
+import cn.ucloud.common.annotation.UCloudParam;
+import cn.ucloud.common.request.Request;
+
+public class GetULHostInstancePriceRequest extends Request {
+
+ /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Region")
+ private String region;
+
+ /**
+ * 项目ID。不填写为默认项目,子帐号必须填写。
+ * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
+ */
+ @UCloudParam("ProjectId")
+ private String projectId;
+
+ /** 套餐ID */
+ @NotEmpty
+ @UCloudParam("BundleId")
+ private String bundleId;
+
+ /** 获取指定计费模式的价格。枚举值:\\ > Year,按年付费; \\ > Month。未指定时,返回所有计费模式价格 */
+ @UCloudParam("ChargeType")
+ private String chargeType;
+
+ /** 购买台数,范围[1,5]。默认:1 */
+ @UCloudParam("Count")
+ private Integer count;
+
+ /** 购买时长。默认: 1。不支持购买到月末 */
+ @UCloudParam("Quantity")
+ private Integer quantity;
+
+ 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 getBundleId() {
+ return bundleId;
+ }
+
+ public void setBundleId(String bundleId) {
+ this.bundleId = bundleId;
+ }
+
+ public String getChargeType() {
+ return chargeType;
+ }
+
+ public void setChargeType(String chargeType) {
+ this.chargeType = chargeType;
+ }
+
+ public Integer getCount() {
+ return count;
+ }
+
+ public void setCount(Integer count) {
+ this.count = count;
+ }
+
+ public Integer getQuantity() {
+ return quantity;
+ }
+
+ public void setQuantity(Integer quantity) {
+ this.quantity = quantity;
+ }
+}
diff --git a/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/GetULHostInstancePriceResponse.java b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/GetULHostInstancePriceResponse.java
new file mode 100644
index 00000000..6b81b161
--- /dev/null
+++ b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/GetULHostInstancePriceResponse.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.ulighthost.models;
+
+import cn.ucloud.common.response.Response;
+
+import com.google.gson.annotations.SerializedName;
+
+import java.util.List;
+
+public class GetULHostInstancePriceResponse extends Response {
+
+ /** 价格 */
+ @SerializedName("PriceSet")
+ private List Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.ulighthost.models;
+
+
+import cn.ucloud.common.annotation.NotEmpty;
+import cn.ucloud.common.annotation.UCloudParam;
+import cn.ucloud.common.request.Request;
+
+public class GetULHostRenewPriceRequest extends Request {
+
+ /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Region")
+ private String region;
+
+ /**
+ * 项目ID。不填写为默认项目,子帐号必须填写。
+ * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
+ */
+ @UCloudParam("ProjectId")
+ private String projectId;
+
+ /** ULHost实例ID */
+ @NotEmpty
+ @UCloudParam("ULHostId")
+ private String ulHostId;
+
+ /** 计费类型。支持:Year/Month;默认:Month */
+ @UCloudParam("ChargeType")
+ private String chargeType;
+
+ 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 getULHostId() {
+ return ulHostId;
+ }
+
+ public void setULHostId(String ulHostId) {
+ this.ulHostId = ulHostId;
+ }
+
+ public String getChargeType() {
+ return chargeType;
+ }
+
+ public void setChargeType(String chargeType) {
+ this.chargeType = chargeType;
+ }
+}
diff --git a/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/GetULHostRenewPriceResponse.java b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/GetULHostRenewPriceResponse.java
new file mode 100644
index 00000000..820737c1
--- /dev/null
+++ b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/GetULHostRenewPriceResponse.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.ulighthost.models;
+
+import cn.ucloud.common.response.Response;
+
+import com.google.gson.annotations.SerializedName;
+
+import java.util.List;
+
+public class GetULHostRenewPriceResponse extends Response {
+
+ /** 价格 */
+ @SerializedName("PriceSet")
+ private List Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.ulighthost.models;
+
+
+import cn.ucloud.common.annotation.NotEmpty;
+import cn.ucloud.common.annotation.UCloudParam;
+import cn.ucloud.common.request.Request;
+
+public class ModifyULHostAttributeRequest extends Request {
+
+ /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Region")
+ private String region;
+
+ /**
+ * 项目ID。不填写为默认项目,子帐号必须填写。
+ * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
+ */
+ @UCloudParam("ProjectId")
+ private String projectId;
+
+ /** ULHost实例Id */
+ @NotEmpty
+ @UCloudParam("ULHostId")
+ private String ulHostId;
+
+ /** 名称。和Remark至少选择一个进行修改 */
+ @UCloudParam("Name")
+ private String name;
+
+ /** 备注。和Name至少选择一个进行修改 */
+ @UCloudParam("Remark")
+ private String remark;
+
+ 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 getULHostId() {
+ return ulHostId;
+ }
+
+ public void setULHostId(String ulHostId) {
+ this.ulHostId = ulHostId;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public String getRemark() {
+ return remark;
+ }
+
+ public void setRemark(String remark) {
+ this.remark = remark;
+ }
+}
diff --git a/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/ModifyULHostAttributeResponse.java b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/ModifyULHostAttributeResponse.java
new file mode 100644
index 00000000..419a8cc0
--- /dev/null
+++ b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/ModifyULHostAttributeResponse.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.ulighthost.models;
+
+
+import cn.ucloud.common.response.Response;
+
+import com.google.gson.annotations.SerializedName;
+
+public class ModifyULHostAttributeResponse extends Response {
+
+ /** ULHost实例Id */
+ @SerializedName("ULHostId")
+ private String ulHostId;
+
+ public String getULHostId() {
+ return ulHostId;
+ }
+
+ public void setULHostId(String ulHostId) {
+ this.ulHostId = ulHostId;
+ }
+}
diff --git a/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/PoweroffULHostInstanceRequest.java b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/PoweroffULHostInstanceRequest.java
new file mode 100644
index 00000000..0eec0a56
--- /dev/null
+++ b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/PoweroffULHostInstanceRequest.java
@@ -0,0 +1,63 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.ulighthost.models;
+
+
+import cn.ucloud.common.annotation.NotEmpty;
+import cn.ucloud.common.annotation.UCloudParam;
+import cn.ucloud.common.request.Request;
+
+public class PoweroffULHostInstanceRequest extends Request {
+
+ /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Region")
+ private String region;
+
+ /**
+ * 项目ID。不填写为默认项目,子帐号必须填写。
+ * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
+ */
+ @UCloudParam("ProjectId")
+ private String projectId;
+
+ /** ULHost实例ID */
+ @NotEmpty
+ @UCloudParam("ULHostId")
+ private String ulHostId;
+
+ 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 getULHostId() {
+ return ulHostId;
+ }
+
+ public void setULHostId(String ulHostId) {
+ this.ulHostId = ulHostId;
+ }
+}
diff --git a/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/PoweroffULHostInstanceResponse.java b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/PoweroffULHostInstanceResponse.java
new file mode 100644
index 00000000..aaf0d3b3
--- /dev/null
+++ b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/PoweroffULHostInstanceResponse.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.ulighthost.models;
+
+
+import cn.ucloud.common.response.Response;
+
+import com.google.gson.annotations.SerializedName;
+
+public class PoweroffULHostInstanceResponse extends Response {
+
+ /** ULHost实例ID */
+ @SerializedName("ULHostId")
+ private String ulHostId;
+
+ public String getULHostId() {
+ return ulHostId;
+ }
+
+ public void setULHostId(String ulHostId) {
+ this.ulHostId = ulHostId;
+ }
+}
diff --git a/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/RebootULHostInstanceRequest.java b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/RebootULHostInstanceRequest.java
new file mode 100644
index 00000000..352a15a5
--- /dev/null
+++ b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/RebootULHostInstanceRequest.java
@@ -0,0 +1,63 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.ulighthost.models;
+
+
+import cn.ucloud.common.annotation.NotEmpty;
+import cn.ucloud.common.annotation.UCloudParam;
+import cn.ucloud.common.request.Request;
+
+public class RebootULHostInstanceRequest extends Request {
+
+ /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Region")
+ private String region;
+
+ /**
+ * 项目ID。不填写为默认项目,子帐号必须填写。
+ * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
+ */
+ @UCloudParam("ProjectId")
+ private String projectId;
+
+ /** ULHost实例ID */
+ @NotEmpty
+ @UCloudParam("ULHostId")
+ private String ulHostId;
+
+ 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 getULHostId() {
+ return ulHostId;
+ }
+
+ public void setULHostId(String ulHostId) {
+ this.ulHostId = ulHostId;
+ }
+}
diff --git a/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/RebootULHostInstanceResponse.java b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/RebootULHostInstanceResponse.java
new file mode 100644
index 00000000..912745a6
--- /dev/null
+++ b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/RebootULHostInstanceResponse.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.ulighthost.models;
+
+
+import cn.ucloud.common.response.Response;
+
+import com.google.gson.annotations.SerializedName;
+
+public class RebootULHostInstanceResponse extends Response {
+
+ /** ULHost实例ID */
+ @SerializedName("ULHostId")
+ private String ulHostId;
+
+ public String getULHostId() {
+ return ulHostId;
+ }
+
+ public void setULHostId(String ulHostId) {
+ this.ulHostId = ulHostId;
+ }
+}
diff --git a/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/ReinstallULHostInstanceRequest.java b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/ReinstallULHostInstanceRequest.java
new file mode 100644
index 00000000..1c8c2d36
--- /dev/null
+++ b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/ReinstallULHostInstanceRequest.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.ulighthost.models;
+
+
+import cn.ucloud.common.annotation.NotEmpty;
+import cn.ucloud.common.annotation.UCloudParam;
+import cn.ucloud.common.request.Request;
+
+public class ReinstallULHostInstanceRequest extends Request {
+
+ /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Region")
+ private String region;
+
+ /**
+ * 项目ID。不填写为默认项目,子帐号必须填写。
+ * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
+ */
+ @UCloudParam("ProjectId")
+ private String projectId;
+
+ /** 镜像Id。暂不支持使用自定义镜像重装 */
+ @NotEmpty
+ @UCloudParam("ImageId")
+ private String imageId;
+
+ /** 实例Id */
+ @NotEmpty
+ @UCloudParam("ULHostId")
+ private String ulHostId;
+
+ /** 登陆密码。密码需使用base64进行编码,举例如下:# echo -n Password1 | base64 UGFzc3dvcmQx */
+ @NotEmpty
+ @UCloudParam("Password")
+ private String password;
+
+ 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 getImageId() {
+ return imageId;
+ }
+
+ public void setImageId(String imageId) {
+ this.imageId = imageId;
+ }
+
+ public String getULHostId() {
+ return ulHostId;
+ }
+
+ public void setULHostId(String ulHostId) {
+ this.ulHostId = ulHostId;
+ }
+
+ public String getPassword() {
+ return password;
+ }
+
+ public void setPassword(String password) {
+ this.password = password;
+ }
+}
diff --git a/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/ReinstallULHostInstanceResponse.java b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/ReinstallULHostInstanceResponse.java
new file mode 100644
index 00000000..44907b71
--- /dev/null
+++ b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/ReinstallULHostInstanceResponse.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.ulighthost.models;
+
+
+import cn.ucloud.common.response.Response;
+
+import com.google.gson.annotations.SerializedName;
+
+public class ReinstallULHostInstanceResponse extends Response {
+
+ /** 实例Id */
+ @SerializedName("ULHostId")
+ private String ulHostId;
+
+ public String getULHostId() {
+ return ulHostId;
+ }
+
+ public void setULHostId(String ulHostId) {
+ this.ulHostId = ulHostId;
+ }
+}
diff --git a/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/ResetULHostInstancePasswordRequest.java b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/ResetULHostInstancePasswordRequest.java
new file mode 100644
index 00000000..f9910766
--- /dev/null
+++ b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/ResetULHostInstancePasswordRequest.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.ulighthost.models;
+
+
+import cn.ucloud.common.annotation.NotEmpty;
+import cn.ucloud.common.annotation.UCloudParam;
+import cn.ucloud.common.request.Request;
+
+public class ResetULHostInstancePasswordRequest extends Request {
+
+ /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Region")
+ private String region;
+
+ /**
+ * 项目ID。不填写为默认项目,子帐号必须填写。
+ * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
+ */
+ @UCloudParam("ProjectId")
+ private String projectId;
+
+ /** ULHost实例ID */
+ @NotEmpty
+ @UCloudParam("ULHostId")
+ private String ulHostId;
+
+ /** ULHost新密码(密码格式使用BASE64编码) */
+ @NotEmpty
+ @UCloudParam("Password")
+ private String password;
+
+ 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 getULHostId() {
+ return ulHostId;
+ }
+
+ public void setULHostId(String ulHostId) {
+ this.ulHostId = ulHostId;
+ }
+
+ public String getPassword() {
+ return password;
+ }
+
+ public void setPassword(String password) {
+ this.password = password;
+ }
+}
diff --git a/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/ResetULHostInstancePasswordResponse.java b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/ResetULHostInstancePasswordResponse.java
new file mode 100644
index 00000000..a464d06d
--- /dev/null
+++ b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/ResetULHostInstancePasswordResponse.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.ulighthost.models;
+
+
+import cn.ucloud.common.response.Response;
+
+import com.google.gson.annotations.SerializedName;
+
+public class ResetULHostInstancePasswordResponse extends Response {
+
+ /** ULHost实例ID */
+ @SerializedName("ULHostId")
+ private String ulHostId;
+
+ public String getULHostId() {
+ return ulHostId;
+ }
+
+ public void setULHostId(String ulHostId) {
+ this.ulHostId = ulHostId;
+ }
+}
diff --git a/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/StartULHostInstanceRequest.java b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/StartULHostInstanceRequest.java
new file mode 100644
index 00000000..eaa4d733
--- /dev/null
+++ b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/StartULHostInstanceRequest.java
@@ -0,0 +1,63 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.ulighthost.models;
+
+
+import cn.ucloud.common.annotation.NotEmpty;
+import cn.ucloud.common.annotation.UCloudParam;
+import cn.ucloud.common.request.Request;
+
+public class StartULHostInstanceRequest extends Request {
+
+ /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Region")
+ private String region;
+
+ /**
+ * 项目ID。不填写为默认项目,子帐号必须填写。
+ * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
+ */
+ @UCloudParam("ProjectId")
+ private String projectId;
+
+ /** ULHost实例ID */
+ @NotEmpty
+ @UCloudParam("ULHostId")
+ private String ulHostId;
+
+ 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 getULHostId() {
+ return ulHostId;
+ }
+
+ public void setULHostId(String ulHostId) {
+ this.ulHostId = ulHostId;
+ }
+}
diff --git a/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/StartULHostInstanceResponse.java b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/StartULHostInstanceResponse.java
new file mode 100644
index 00000000..835804db
--- /dev/null
+++ b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/StartULHostInstanceResponse.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.ulighthost.models;
+
+
+import cn.ucloud.common.response.Response;
+
+import com.google.gson.annotations.SerializedName;
+
+public class StartULHostInstanceResponse extends Response {
+
+ /** ULHost实例ID */
+ @SerializedName("ULHostId")
+ private String ulHostId;
+
+ public String getULHostId() {
+ return ulHostId;
+ }
+
+ public void setULHostId(String ulHostId) {
+ this.ulHostId = ulHostId;
+ }
+}
diff --git a/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/StopULHostInstanceRequest.java b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/StopULHostInstanceRequest.java
new file mode 100644
index 00000000..d912f10a
--- /dev/null
+++ b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/StopULHostInstanceRequest.java
@@ -0,0 +1,63 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.ulighthost.models;
+
+
+import cn.ucloud.common.annotation.NotEmpty;
+import cn.ucloud.common.annotation.UCloudParam;
+import cn.ucloud.common.request.Request;
+
+public class StopULHostInstanceRequest extends Request {
+
+ /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Region")
+ private String region;
+
+ /**
+ * 项目ID。不填写为默认项目,子帐号必须填写。
+ * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
+ */
+ @UCloudParam("ProjectId")
+ private String projectId;
+
+ /** ULHost实例ID。 */
+ @NotEmpty
+ @UCloudParam("ULHostId")
+ private String ulHostId;
+
+ 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 getULHostId() {
+ return ulHostId;
+ }
+
+ public void setULHostId(String ulHostId) {
+ this.ulHostId = ulHostId;
+ }
+}
diff --git a/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/StopULHostInstanceResponse.java b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/StopULHostInstanceResponse.java
new file mode 100644
index 00000000..94eb6305
--- /dev/null
+++ b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/StopULHostInstanceResponse.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.ulighthost.models;
+
+
+import cn.ucloud.common.response.Response;
+
+import com.google.gson.annotations.SerializedName;
+
+public class StopULHostInstanceResponse extends Response {
+
+ /** ULHost实例ID */
+ @SerializedName("ULHostId")
+ private String ulHostId;
+
+ public String getULHostId() {
+ return ulHostId;
+ }
+
+ public void setULHostId(String ulHostId) {
+ this.ulHostId = ulHostId;
+ }
+}
diff --git a/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/TerminateULHostInstanceRequest.java b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/TerminateULHostInstanceRequest.java
new file mode 100644
index 00000000..718f2aaf
--- /dev/null
+++ b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/TerminateULHostInstanceRequest.java
@@ -0,0 +1,75 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.ulighthost.models;
+
+
+import cn.ucloud.common.annotation.NotEmpty;
+import cn.ucloud.common.annotation.UCloudParam;
+import cn.ucloud.common.request.Request;
+
+public class TerminateULHostInstanceRequest extends Request {
+
+ /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Region")
+ private String region;
+
+ /**
+ * 项目ID。不填写为默认项目,子帐号必须填写。
+ * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
+ */
+ @UCloudParam("ProjectId")
+ private String projectId;
+
+ /** ULHost资源Id */
+ @NotEmpty
+ @UCloudParam("ULHostId")
+ private String ulHostId;
+
+ /** 删除主机时是否同时删除挂载的数据盘。默认为false。 */
+ @UCloudParam("ReleaseUDisk")
+ private Boolean releaseUDisk;
+
+ 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 getULHostId() {
+ return ulHostId;
+ }
+
+ public void setULHostId(String ulHostId) {
+ this.ulHostId = ulHostId;
+ }
+
+ public Boolean getReleaseUDisk() {
+ return releaseUDisk;
+ }
+
+ public void setReleaseUDisk(Boolean releaseUDisk) {
+ this.releaseUDisk = releaseUDisk;
+ }
+}
diff --git a/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/TerminateULHostInstanceResponse.java b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/TerminateULHostInstanceResponse.java
new file mode 100644
index 00000000..629dbca9
--- /dev/null
+++ b/ucloud-sdk-java-ulighthost/src/main/java/cn/ucloud/ulighthost/models/TerminateULHostInstanceResponse.java
@@ -0,0 +1,46 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.ulighthost.models;
+
+
+import cn.ucloud.common.response.Response;
+
+import com.google.gson.annotations.SerializedName;
+
+public class TerminateULHostInstanceResponse extends Response {
+
+ /** 用于判断主机删除时是否进入回收站。放入回收站:"Yes", 彻底删除:“No”。 */
+ @SerializedName("InRecycle")
+ private String inRecycle;
+
+ /** ULHost 实例 Id */
+ @SerializedName("ULHostId")
+ private String ulHostId;
+
+ public String getInRecycle() {
+ return inRecycle;
+ }
+
+ public void setInRecycle(String inRecycle) {
+ this.inRecycle = inRecycle;
+ }
+
+ public String getULHostId() {
+ return ulHostId;
+ }
+
+ public void setULHostId(String ulHostId) {
+ this.ulHostId = ulHostId;
+ }
+}
diff --git a/ucloud-sdk-java-ulog/pom.xml b/ucloud-sdk-java-ulog/pom.xml
index 7ba0e26f..be7ef5cc 100644
--- a/ucloud-sdk-java-ulog/pom.xml
+++ b/ucloud-sdk-java-ulog/pom.xml
@@ -5,19 +5,19 @@