From d74b166f6e7532f92aac24cf74cbaabf1e115cdb Mon Sep 17 00:00:00 2001 From: ucloud-bot Date: Mon, 6 Jan 2025 13:10:06 +0000 Subject: [PATCH] sdk: rolling update for 1.2.36-release --- VERSION | 2 +- examples/generic/pom.xml | 4 +- examples/uhost/pom.xml | 4 +- pom.xml | 3 +- ucloud-sdk-java-cloudwatch/pom.xml | 6 +- .../models/QueryMetricDataSetRequest.java | 8 + .../models/QueryMetricDataSummaryRequest.java | 1 + ucloud-sdk-java-common/pom.xml | 4 +- ucloud-sdk-java-cube/pom.xml | 6 +- ucloud-sdk-java-ipsecvpn/pom.xml | 6 +- ucloud-sdk-java-nlb/pom.xml | 49 ++ .../java/cn/ucloud/nlb/client/NLBClient.java | 202 +++++ .../ucloud/nlb/client/NLBClientInterface.java | 152 ++++ .../nlb/models/AddNLBTargetsRequest.java | 215 ++++++ .../nlb/models/AddNLBTargetsResponse.java | 182 +++++ .../nlb/models/CreateNLBListenerRequest.java | 237 ++++++ .../nlb/models/CreateNLBListenerResponse.java | 34 + .../CreateNetworkLoadBalancerRequest.java | 172 +++++ .../CreateNetworkLoadBalancerResponse.java | 34 + .../nlb/models/DeleteNLBListenerRequest.java | 76 ++ .../nlb/models/DeleteNLBListenerResponse.java | 20 + .../DeleteNetworkLoadBalancerRequest.java | 75 ++ .../DeleteNetworkLoadBalancerResponse.java | 20 + .../models/DescribeNLBListenersRequest.java | 99 +++ .../models/DescribeNLBListenersResponse.java | 442 +++++++++++ .../DescribeNetworkLoadBalancersRequest.java | 135 ++++ .../DescribeNetworkLoadBalancersResponse.java | 727 ++++++++++++++++++ .../GetNetworkLoadBalancerPriceRequest.java | 86 +++ .../GetNetworkLoadBalancerPriceResponse.java | 98 +++ .../nlb/models/RemoveNLBTargetsRequest.java | 90 +++ .../nlb/models/RemoveNLBTargetsResponse.java | 20 + .../UpdateNLBListenerAttributeRequest.java | 238 ++++++ .../UpdateNLBListenerAttributeResponse.java | 20 + .../UpdateNLBTargetsAttributeRequest.java | 128 +++ .../UpdateNLBTargetsAttributeResponse.java | 20 + ...teNetworkLoadBalancerAttributeRequest.java | 99 +++ ...eNetworkLoadBalancerAttributeResponse.java | 20 + 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 +- .../models/GetUcdnDomainInfoListRequest.java | 14 +- ucloud-sdk-java-ucompshare/pom.xml | 6 +- 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 +- .../cn/ucloud/ufile/client/UFileClient.java | 71 ++ .../ufile/client/UFileClientInterface.java | 55 ++ .../ufile/models/AddUFileSSLCertRequest.java | 101 +++ .../ufile/models/AddUFileSSLCertResponse.java | 20 + .../ufile/models/BindBucketDomainRequest.java | 63 ++ .../models/BindBucketDomainResponse.java | 46 ++ .../models/DeleteUFileSSLCertRequest.java | 48 ++ .../models/DeleteUFileSSLCertResponse.java | 20 + .../models/DescribeUFileSSLCertRequest.java | 35 + .../models/DescribeUFileSSLCertResponse.java | 86 +++ .../models/UpdateUFileSSLCertRequest.java | 90 +++ .../models/UpdateUFileSSLCertResponse.java | 20 + 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 +- .../cn/ucloud/umem/client/UMemClient.java | 15 + .../umem/client/UMemClientInterface.java | 11 + .../models/ResizeUDRedisBlockSizeRequest.java | 126 +++ .../ResizeUDRedisBlockSizeResponse.java | 20 + ucloud-sdk-java-umongodb/pom.xml | 6 +- .../DescribeUMongoDBBackupURLRequest.java | 12 + 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 +- 87 files changed, 4665 insertions(+), 114 deletions(-) create mode 100644 ucloud-sdk-java-nlb/pom.xml create mode 100644 ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/client/NLBClient.java create mode 100644 ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/client/NLBClientInterface.java create mode 100644 ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/AddNLBTargetsRequest.java create mode 100644 ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/AddNLBTargetsResponse.java create mode 100644 ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/CreateNLBListenerRequest.java create mode 100644 ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/CreateNLBListenerResponse.java create mode 100644 ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/CreateNetworkLoadBalancerRequest.java create mode 100644 ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/CreateNetworkLoadBalancerResponse.java create mode 100644 ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/DeleteNLBListenerRequest.java create mode 100644 ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/DeleteNLBListenerResponse.java create mode 100644 ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/DeleteNetworkLoadBalancerRequest.java create mode 100644 ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/DeleteNetworkLoadBalancerResponse.java create mode 100644 ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/DescribeNLBListenersRequest.java create mode 100644 ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/DescribeNLBListenersResponse.java create mode 100644 ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/DescribeNetworkLoadBalancersRequest.java create mode 100644 ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/DescribeNetworkLoadBalancersResponse.java create mode 100644 ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/GetNetworkLoadBalancerPriceRequest.java create mode 100644 ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/GetNetworkLoadBalancerPriceResponse.java create mode 100644 ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/RemoveNLBTargetsRequest.java create mode 100644 ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/RemoveNLBTargetsResponse.java create mode 100644 ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/UpdateNLBListenerAttributeRequest.java create mode 100644 ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/UpdateNLBListenerAttributeResponse.java create mode 100644 ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/UpdateNLBTargetsAttributeRequest.java create mode 100644 ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/UpdateNLBTargetsAttributeResponse.java create mode 100644 ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/UpdateNetworkLoadBalancerAttributeRequest.java create mode 100644 ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/UpdateNetworkLoadBalancerAttributeResponse.java create mode 100644 ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/AddUFileSSLCertRequest.java create mode 100644 ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/AddUFileSSLCertResponse.java create mode 100644 ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/BindBucketDomainRequest.java create mode 100644 ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/BindBucketDomainResponse.java create mode 100644 ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/DeleteUFileSSLCertRequest.java create mode 100644 ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/DeleteUFileSSLCertResponse.java create mode 100644 ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/DescribeUFileSSLCertRequest.java create mode 100644 ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/DescribeUFileSSLCertResponse.java create mode 100644 ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/UpdateUFileSSLCertRequest.java create mode 100644 ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/UpdateUFileSSLCertResponse.java create mode 100644 ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/ResizeUDRedisBlockSizeRequest.java create mode 100644 ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/ResizeUDRedisBlockSizeResponse.java diff --git a/VERSION b/VERSION index be12895a..bcb9b392 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.2.35-release +1.2.36-release diff --git a/examples/generic/pom.xml b/examples/generic/pom.xml index ae1e77fd..25f4f29a 100644 --- a/examples/generic/pom.xml +++ b/examples/generic/pom.xml @@ -7,7 +7,7 @@ ucloud-sdk-java cn.ucloud - 1.2.35-release + 1.2.36-release 4.0.0 @@ -18,7 +18,7 @@ cn.ucloud ucloud-sdk-java-common - 1.2.35-release + 1.2.36-release diff --git a/examples/uhost/pom.xml b/examples/uhost/pom.xml index 44fdb90b..bbfa4a8e 100644 --- a/examples/uhost/pom.xml +++ b/examples/uhost/pom.xml @@ -7,7 +7,7 @@ ucloud-sdk-java cn.ucloud - 1.2.35-release + 1.2.36-release 4.0.0 @@ -18,7 +18,7 @@ cn.ucloud ucloud-sdk-java-uhost - 1.2.35-release + 1.2.36-release diff --git a/pom.xml b/pom.xml index ae0c44a7..c5c1d132 100644 --- a/pom.xml +++ b/pom.xml @@ -7,12 +7,13 @@ cn.ucloud ucloud-sdk-java pom - 1.2.35-release + 1.2.36-release ucloud-sdk-java-common ucloud-sdk-java-cloudwatch ucloud-sdk-java-cube ucloud-sdk-java-ipsecvpn + ucloud-sdk-java-nlb ucloud-sdk-java-pathx ucloud-sdk-java-sts ucloud-sdk-java-uai_modelverse diff --git a/ucloud-sdk-java-cloudwatch/pom.xml b/ucloud-sdk-java-cloudwatch/pom.xml index 18bbb8a6..1fd1f51a 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.35-release + 1.2.36-release 4.0.0 ucloud-sdk-java-cloudwatch - 1.2.35-release + 1.2.36-release cn.ucloud ucloud-sdk-java-common - 1.2.35-release + 1.2.36-release diff --git a/ucloud-sdk-java-cloudwatch/src/main/java/cn/ucloud/cloudwatch/models/QueryMetricDataSetRequest.java b/ucloud-sdk-java-cloudwatch/src/main/java/cn/ucloud/cloudwatch/models/QueryMetricDataSetRequest.java index ab065b6c..e6582a5c 100644 --- a/ucloud-sdk-java-cloudwatch/src/main/java/cn/ucloud/cloudwatch/models/QueryMetricDataSetRequest.java +++ b/ucloud-sdk-java-cloudwatch/src/main/java/cn/ucloud/cloudwatch/models/QueryMetricDataSetRequest.java @@ -13,6 +13,7 @@ */ package cn.ucloud.cloudwatch.models; +import cn.ucloud.common.annotation.NotEmpty; import cn.ucloud.common.annotation.UCloudParam; import cn.ucloud.common.request.Request; @@ -21,22 +22,27 @@ public class QueryMetricDataSetRequest extends Request { /** 地域。 全局产品可不传,其他类型必传。 */ + @NotEmpty @UCloudParam("Region") private String region; /** 项目ID。 */ + @NotEmpty @UCloudParam("ProjectId") private String projectId; /** 资源类型 */ + @NotEmpty @UCloudParam("ProductKey") private String productKey; /** 开始时间 */ + @NotEmpty @UCloudParam("StartTime") private Integer startTime; /** 截止时间 */ + @NotEmpty @UCloudParam("EndTime") private Integer endTime; @@ -95,10 +101,12 @@ public void setMetricInfos(List metricInfos) { public static class MetricInfos extends Request { /** 指标名 */ + @NotEmpty @UCloudParam("Metric") private String metric; /** 指标所属资源id */ + @NotEmpty @UCloudParam("ResourceId") private String resourceId; diff --git a/ucloud-sdk-java-cloudwatch/src/main/java/cn/ucloud/cloudwatch/models/QueryMetricDataSummaryRequest.java b/ucloud-sdk-java-cloudwatch/src/main/java/cn/ucloud/cloudwatch/models/QueryMetricDataSummaryRequest.java index a792ed5a..e4e020fb 100644 --- a/ucloud-sdk-java-cloudwatch/src/main/java/cn/ucloud/cloudwatch/models/QueryMetricDataSummaryRequest.java +++ b/ucloud-sdk-java-cloudwatch/src/main/java/cn/ucloud/cloudwatch/models/QueryMetricDataSummaryRequest.java @@ -22,6 +22,7 @@ public class QueryMetricDataSummaryRequest extends Request { /** 地域,全局产品可以不传,其他必传 */ + @NotEmpty @UCloudParam("Region") private String region; diff --git a/ucloud-sdk-java-common/pom.xml b/ucloud-sdk-java-common/pom.xml index 7df7e56c..c5270747 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.35-release + 1.2.36-release 4.0.0 ucloud-sdk-java-common - 1.2.35-release + 1.2.36-release diff --git a/ucloud-sdk-java-cube/pom.xml b/ucloud-sdk-java-cube/pom.xml index f38b775b..9b435d5e 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.35-release + 1.2.36-release 4.0.0 ucloud-sdk-java-cube - 1.2.35-release + 1.2.36-release cn.ucloud ucloud-sdk-java-common - 1.2.35-release + 1.2.36-release diff --git a/ucloud-sdk-java-ipsecvpn/pom.xml b/ucloud-sdk-java-ipsecvpn/pom.xml index 2f1e1c28..6329ccfb 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.35-release + 1.2.36-release 4.0.0 ucloud-sdk-java-ipsecvpn - 1.2.35-release + 1.2.36-release cn.ucloud ucloud-sdk-java-common - 1.2.35-release + 1.2.36-release diff --git a/ucloud-sdk-java-nlb/pom.xml b/ucloud-sdk-java-nlb/pom.xml new file mode 100644 index 00000000..79b3badf --- /dev/null +++ b/ucloud-sdk-java-nlb/pom.xml @@ -0,0 +1,49 @@ + + + + + ucloud-sdk-java + cn.ucloud + 1.2.36-release + + + 4.0.0 + ucloud-sdk-java-nlb + 1.2.36-release + + + + cn.ucloud + ucloud-sdk-java-common + 1.2.36-release + + + + com.google.code.gson + gson + + + + commons-codec + commons-codec + + + org.apache.commons + commons-lang3 + + + + junit + junit + test + + + + org.slf4j + slf4j-simple + provided + + + diff --git a/ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/client/NLBClient.java b/ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/client/NLBClient.java new file mode 100644 index 00000000..8f93ded5 --- /dev/null +++ b/ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/client/NLBClient.java @@ -0,0 +1,202 @@ +/** + * 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.nlb.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.nlb.models.AddNLBTargetsRequest; +import cn.ucloud.nlb.models.AddNLBTargetsResponse; +import cn.ucloud.nlb.models.CreateNLBListenerRequest; +import cn.ucloud.nlb.models.CreateNLBListenerResponse; +import cn.ucloud.nlb.models.CreateNetworkLoadBalancerRequest; +import cn.ucloud.nlb.models.CreateNetworkLoadBalancerResponse; +import cn.ucloud.nlb.models.DeleteNLBListenerRequest; +import cn.ucloud.nlb.models.DeleteNLBListenerResponse; +import cn.ucloud.nlb.models.DeleteNetworkLoadBalancerRequest; +import cn.ucloud.nlb.models.DeleteNetworkLoadBalancerResponse; +import cn.ucloud.nlb.models.DescribeNLBListenersRequest; +import cn.ucloud.nlb.models.DescribeNLBListenersResponse; +import cn.ucloud.nlb.models.DescribeNetworkLoadBalancersRequest; +import cn.ucloud.nlb.models.DescribeNetworkLoadBalancersResponse; +import cn.ucloud.nlb.models.GetNetworkLoadBalancerPriceRequest; +import cn.ucloud.nlb.models.GetNetworkLoadBalancerPriceResponse; +import cn.ucloud.nlb.models.RemoveNLBTargetsRequest; +import cn.ucloud.nlb.models.RemoveNLBTargetsResponse; +import cn.ucloud.nlb.models.UpdateNLBListenerAttributeRequest; +import cn.ucloud.nlb.models.UpdateNLBListenerAttributeResponse; +import cn.ucloud.nlb.models.UpdateNLBTargetsAttributeRequest; +import cn.ucloud.nlb.models.UpdateNLBTargetsAttributeResponse; +import cn.ucloud.nlb.models.UpdateNetworkLoadBalancerAttributeRequest; +import cn.ucloud.nlb.models.UpdateNetworkLoadBalancerAttributeResponse; + +/** This client is used to call actions of **NLB** service */ +public class NLBClient extends DefaultClient implements NLBClientInterface { + public NLBClient(Config config, Credential credential) { + super(config, credential); + } + + /** + * AddNLBTargets - 添加后端服务节点 + * + * @param request Request object + * @throws UCloudException Exception + */ + public AddNLBTargetsResponse addNLBTargets(AddNLBTargetsRequest request) + throws UCloudException { + request.setAction("AddNLBTargets"); + return (AddNLBTargetsResponse) this.invoke(request, AddNLBTargetsResponse.class); + } + + /** + * CreateNLBListener - 创建监听器 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateNLBListenerResponse createNLBListener(CreateNLBListenerRequest request) + throws UCloudException { + request.setAction("CreateNLBListener"); + return (CreateNLBListenerResponse) this.invoke(request, CreateNLBListenerResponse.class); + } + + /** + * CreateNetworkLoadBalancer - 创建网络型负载均衡 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateNetworkLoadBalancerResponse createNetworkLoadBalancer( + CreateNetworkLoadBalancerRequest request) throws UCloudException { + request.setAction("CreateNetworkLoadBalancer"); + return (CreateNetworkLoadBalancerResponse) + this.invoke(request, CreateNetworkLoadBalancerResponse.class); + } + + /** + * DeleteNLBListener - 删除一个网络型负载均衡监听器 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteNLBListenerResponse deleteNLBListener(DeleteNLBListenerRequest request) + throws UCloudException { + request.setAction("DeleteNLBListener"); + return (DeleteNLBListenerResponse) this.invoke(request, DeleteNLBListenerResponse.class); + } + + /** + * DeleteNetworkLoadBalancer - 删除负载均衡实例 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteNetworkLoadBalancerResponse deleteNetworkLoadBalancer( + DeleteNetworkLoadBalancerRequest request) throws UCloudException { + request.setAction("DeleteNetworkLoadBalancer"); + return (DeleteNetworkLoadBalancerResponse) + this.invoke(request, DeleteNetworkLoadBalancerResponse.class); + } + + /** + * DescribeNLBListeners - 描述监听器 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeNLBListenersResponse describeNLBListeners(DescribeNLBListenersRequest request) + throws UCloudException { + request.setAction("DescribeNLBListeners"); + return (DescribeNLBListenersResponse) + this.invoke(request, DescribeNLBListenersResponse.class); + } + + /** + * DescribeNetworkLoadBalancers - 描述负载均衡实例 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeNetworkLoadBalancersResponse describeNetworkLoadBalancers( + DescribeNetworkLoadBalancersRequest request) throws UCloudException { + request.setAction("DescribeNetworkLoadBalancers"); + return (DescribeNetworkLoadBalancersResponse) + this.invoke(request, DescribeNetworkLoadBalancersResponse.class); + } + + /** + * GetNetworkLoadBalancerPrice - 获取负载均衡价格 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetNetworkLoadBalancerPriceResponse getNetworkLoadBalancerPrice( + GetNetworkLoadBalancerPriceRequest request) throws UCloudException { + request.setAction("GetNetworkLoadBalancerPrice"); + return (GetNetworkLoadBalancerPriceResponse) + this.invoke(request, GetNetworkLoadBalancerPriceResponse.class); + } + + /** + * RemoveNLBTargets - 删除后端服务节点 + * + * @param request Request object + * @throws UCloudException Exception + */ + public RemoveNLBTargetsResponse removeNLBTargets(RemoveNLBTargetsRequest request) + throws UCloudException { + request.setAction("RemoveNLBTargets"); + return (RemoveNLBTargetsResponse) this.invoke(request, RemoveNLBTargetsResponse.class); + } + + /** + * UpdateNLBListenerAttribute - 更新监听器属性 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateNLBListenerAttributeResponse updateNLBListenerAttribute( + UpdateNLBListenerAttributeRequest request) throws UCloudException { + request.setAction("UpdateNLBListenerAttribute"); + return (UpdateNLBListenerAttributeResponse) + this.invoke(request, UpdateNLBListenerAttributeResponse.class); + } + + /** + * UpdateNLBTargetsAttribute - 更新后端服务节点属性 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateNLBTargetsAttributeResponse updateNLBTargetsAttribute( + UpdateNLBTargetsAttributeRequest request) throws UCloudException { + request.setAction("UpdateNLBTargetsAttribute"); + return (UpdateNLBTargetsAttributeResponse) + this.invoke(request, UpdateNLBTargetsAttributeResponse.class); + } + + /** + * UpdateNetworkLoadBalancerAttribute - 更新负载均衡实例属性 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateNetworkLoadBalancerAttributeResponse updateNetworkLoadBalancerAttribute( + UpdateNetworkLoadBalancerAttributeRequest request) throws UCloudException { + request.setAction("UpdateNetworkLoadBalancerAttribute"); + return (UpdateNetworkLoadBalancerAttributeResponse) + this.invoke(request, UpdateNetworkLoadBalancerAttributeResponse.class); + } +} diff --git a/ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/client/NLBClientInterface.java b/ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/client/NLBClientInterface.java new file mode 100644 index 00000000..36673c42 --- /dev/null +++ b/ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/client/NLBClientInterface.java @@ -0,0 +1,152 @@ +/** + * 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.nlb.client; + +import cn.ucloud.common.client.Client; +import cn.ucloud.common.exception.UCloudException; +import cn.ucloud.nlb.models.AddNLBTargetsRequest; +import cn.ucloud.nlb.models.AddNLBTargetsResponse; +import cn.ucloud.nlb.models.CreateNLBListenerRequest; +import cn.ucloud.nlb.models.CreateNLBListenerResponse; +import cn.ucloud.nlb.models.CreateNetworkLoadBalancerRequest; +import cn.ucloud.nlb.models.CreateNetworkLoadBalancerResponse; +import cn.ucloud.nlb.models.DeleteNLBListenerRequest; +import cn.ucloud.nlb.models.DeleteNLBListenerResponse; +import cn.ucloud.nlb.models.DeleteNetworkLoadBalancerRequest; +import cn.ucloud.nlb.models.DeleteNetworkLoadBalancerResponse; +import cn.ucloud.nlb.models.DescribeNLBListenersRequest; +import cn.ucloud.nlb.models.DescribeNLBListenersResponse; +import cn.ucloud.nlb.models.DescribeNetworkLoadBalancersRequest; +import cn.ucloud.nlb.models.DescribeNetworkLoadBalancersResponse; +import cn.ucloud.nlb.models.GetNetworkLoadBalancerPriceRequest; +import cn.ucloud.nlb.models.GetNetworkLoadBalancerPriceResponse; +import cn.ucloud.nlb.models.RemoveNLBTargetsRequest; +import cn.ucloud.nlb.models.RemoveNLBTargetsResponse; +import cn.ucloud.nlb.models.UpdateNLBListenerAttributeRequest; +import cn.ucloud.nlb.models.UpdateNLBListenerAttributeResponse; +import cn.ucloud.nlb.models.UpdateNLBTargetsAttributeRequest; +import cn.ucloud.nlb.models.UpdateNLBTargetsAttributeResponse; +import cn.ucloud.nlb.models.UpdateNetworkLoadBalancerAttributeRequest; +import cn.ucloud.nlb.models.UpdateNetworkLoadBalancerAttributeResponse; + +/** This client is used to call actions of **NLB** service */ +public interface NLBClientInterface extends Client { + + /** + * AddNLBTargets - 添加后端服务节点 + * + * @param request Request object + * @throws UCloudException Exception + */ + public AddNLBTargetsResponse addNLBTargets(AddNLBTargetsRequest request) throws UCloudException; + + /** + * CreateNLBListener - 创建监听器 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateNLBListenerResponse createNLBListener(CreateNLBListenerRequest request) + throws UCloudException; + + /** + * CreateNetworkLoadBalancer - 创建网络型负载均衡 + * + * @param request Request object + * @throws UCloudException Exception + */ + public CreateNetworkLoadBalancerResponse createNetworkLoadBalancer( + CreateNetworkLoadBalancerRequest request) throws UCloudException; + + /** + * DeleteNLBListener - 删除一个网络型负载均衡监听器 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteNLBListenerResponse deleteNLBListener(DeleteNLBListenerRequest request) + throws UCloudException; + + /** + * DeleteNetworkLoadBalancer - 删除负载均衡实例 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteNetworkLoadBalancerResponse deleteNetworkLoadBalancer( + DeleteNetworkLoadBalancerRequest request) throws UCloudException; + + /** + * DescribeNLBListeners - 描述监听器 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeNLBListenersResponse describeNLBListeners(DescribeNLBListenersRequest request) + throws UCloudException; + + /** + * DescribeNetworkLoadBalancers - 描述负载均衡实例 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeNetworkLoadBalancersResponse describeNetworkLoadBalancers( + DescribeNetworkLoadBalancersRequest request) throws UCloudException; + + /** + * GetNetworkLoadBalancerPrice - 获取负载均衡价格 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetNetworkLoadBalancerPriceResponse getNetworkLoadBalancerPrice( + GetNetworkLoadBalancerPriceRequest request) throws UCloudException; + + /** + * RemoveNLBTargets - 删除后端服务节点 + * + * @param request Request object + * @throws UCloudException Exception + */ + public RemoveNLBTargetsResponse removeNLBTargets(RemoveNLBTargetsRequest request) + throws UCloudException; + + /** + * UpdateNLBListenerAttribute - 更新监听器属性 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateNLBListenerAttributeResponse updateNLBListenerAttribute( + UpdateNLBListenerAttributeRequest request) throws UCloudException; + + /** + * UpdateNLBTargetsAttribute - 更新后端服务节点属性 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateNLBTargetsAttributeResponse updateNLBTargetsAttribute( + UpdateNLBTargetsAttributeRequest request) throws UCloudException; + + /** + * UpdateNetworkLoadBalancerAttribute - 更新负载均衡实例属性 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateNetworkLoadBalancerAttributeResponse updateNetworkLoadBalancerAttribute( + UpdateNetworkLoadBalancerAttributeRequest request) throws UCloudException; +} diff --git a/ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/AddNLBTargetsRequest.java b/ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/AddNLBTargetsRequest.java new file mode 100644 index 00000000..b83fc8c2 --- /dev/null +++ b/ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/AddNLBTargetsRequest.java @@ -0,0 +1,215 @@ +/** + * 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.nlb.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 AddNLBTargetsRequest 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("NLBId") + private String nlbId; + + /** 监听器的ID。 */ + @NotEmpty + @UCloudParam("ListenerId") + private String listenerId; + + /** */ + @UCloudParam("Targets") + private List targets; + + 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 getNLBId() { + return nlbId; + } + + public void setNLBId(String nlbId) { + this.nlbId = nlbId; + } + + public String getListenerId() { + return listenerId; + } + + public void setListenerId(String listenerId) { + this.listenerId = listenerId; + } + + public List getTargets() { + return targets; + } + + public void setTargets(List targets) { + this.targets = targets; + } + + public static class Targets extends Request { + + /** + * 服务节点的类型。限定枚举值:"UHost" / + * "UNI"/"UPM"/"IP",默认值:"UHost";非IP类型,如果该资源有多个IP,将只能添加主IP;非IP类型,展示时,会显示相关资源信息,IP类型只展示IP信息。 + */ + @UCloudParam("ResourceType") + private String resourceType; + + /** 服务节点的资源ID。在非IP类型时,必传 */ + @UCloudParam("ResourceId") + private String resourceId; + + /** 服务节点的资源名称 */ + @UCloudParam("ResourceName") + private String resourceName; + + /** 服务节点的VPC资源ID。在IP类型时,必传 */ + @UCloudParam("VPCId") + private String vpcId; + + /** 服务节点的子网资源ID。 */ + @UCloudParam("SubnetId") + private String subnetId; + + /** 服务节点的IP。在IP类型时,必传 */ + @UCloudParam("ResourceIP") + private String resourceIP; + + /** 服务节点的端口,限定取值:[1-65535] */ + @UCloudParam("Port") + private Integer port; + + /** 服务节点的权重。限定取值:[1-100],默认值1;仅在加权轮询、加权最小连接数算法时有效 */ + @UCloudParam("Weight") + private Integer weight; + + /** 服务节点是否启用 */ + @UCloudParam("Enabled") + private Boolean enabled; + + /** 服务节点所在地域 */ + @UCloudParam("Region") + private String region; + + public String getResourceType() { + return resourceType; + } + + public void setResourceType(String resourceType) { + this.resourceType = resourceType; + } + + public String getResourceId() { + return resourceId; + } + + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + } + + public String getResourceName() { + return resourceName; + } + + public void setResourceName(String resourceName) { + this.resourceName = resourceName; + } + + 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 getResourceIP() { + return resourceIP; + } + + public void setResourceIP(String resourceIP) { + this.resourceIP = resourceIP; + } + + public Integer getPort() { + return port; + } + + public void setPort(Integer port) { + this.port = port; + } + + public Integer getWeight() { + return weight; + } + + public void setWeight(Integer weight) { + this.weight = weight; + } + + public Boolean getEnabled() { + return enabled; + } + + public void setEnabled(Boolean enabled) { + this.enabled = enabled; + } + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + } +} diff --git a/ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/AddNLBTargetsResponse.java b/ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/AddNLBTargetsResponse.java new file mode 100644 index 00000000..d5f747fb --- /dev/null +++ b/ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/AddNLBTargetsResponse.java @@ -0,0 +1,182 @@ +/** + * 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.nlb.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class AddNLBTargetsResponse extends Response { + + /** */ + @SerializedName("Targets") + private List targets; + + public List getTargets() { + return targets; + } + + public void setTargets(List targets) { + this.targets = targets; + } + + public static class Target extends Response { + + /** 服务节点所在地域 */ + @SerializedName("Region") + private String region; + + /** 服务节点的类型 */ + @SerializedName("ResourceType") + private String resourceType; + + /** 服务节点的资源ID。在非IP类型时,必传 */ + @SerializedName("ResourceId") + private String resourceId; + + /** 服务节点的资源名称 */ + @SerializedName("ResourceName") + private String resourceName; + + /** 服务节点的VPC资源ID。在IP类型时,必传 */ + @SerializedName("VPCId") + private String vpcId; + + /** 服务节点的子网资源ID。在IP类型时,必传 */ + @SerializedName("SubnetId") + private String subnetId; + + /** 服务节点的IP。在IP类型时,必传 */ + @SerializedName("ResourceIP") + private String resourceIP; + + /** 服务节点的端口 */ + @SerializedName("Port") + private Integer port; + + /** 服务节点的权重。支持更新 */ + @SerializedName("Weight") + private Integer weight; + + /** 服务节点是否开启 */ + @SerializedName("Enabled") + private Boolean enabled; + + /** 服务节点的标识 ID 说明: 添加服务节点的时候无需传 更新服务节点属性时必传 */ + @SerializedName("Id") + private String id; + + /** 服务节点的健康检查状态 说明: 描述服务节点信息时显示 限定枚举值:"Healthy"/"Unhealthy" */ + @SerializedName("State") + private String state; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getResourceType() { + return resourceType; + } + + public void setResourceType(String resourceType) { + this.resourceType = resourceType; + } + + public String getResourceId() { + return resourceId; + } + + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + } + + public String getResourceName() { + return resourceName; + } + + public void setResourceName(String resourceName) { + this.resourceName = resourceName; + } + + 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 getResourceIP() { + return resourceIP; + } + + public void setResourceIP(String resourceIP) { + this.resourceIP = resourceIP; + } + + public Integer getPort() { + return port; + } + + public void setPort(Integer port) { + this.port = port; + } + + public Integer getWeight() { + return weight; + } + + public void setWeight(Integer weight) { + this.weight = weight; + } + + public Boolean getEnabled() { + return enabled; + } + + public void setEnabled(Boolean enabled) { + this.enabled = enabled; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getState() { + return state; + } + + public void setState(String state) { + this.state = state; + } + } +} diff --git a/ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/CreateNLBListenerRequest.java b/ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/CreateNLBListenerRequest.java new file mode 100644 index 00000000..b0f81928 --- /dev/null +++ b/ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/CreateNLBListenerRequest.java @@ -0,0 +1,237 @@ +/** + * 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.nlb.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class CreateNLBListenerRequest 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("NLBId") + private String nlbId; + + /** 监听器的名称 限定字符长度:[1-255] 限定特殊字符,仅支持:-_. 默认值:listener */ + @UCloudParam("Name") + private String name; + + /** 监听器的备注信息 限定字符长度:[0-255] */ + @UCloudParam("Remark") + private String remark; + + /** 端口范围的起始端口 限定取值:[1-65535] 默认值 1 */ + @UCloudParam("StartPort") + private Integer startPort; + + /** 端口范围的结束端口 限定取值:[1-65535] 取值不小于起始端口 默认值 65535 */ + @UCloudParam("EndPort") + private Integer endPort; + + /** 监听协议 限定取值:"TCP"/"UDP" */ + @UCloudParam("Protocol") + private String protocol; + + /** + * 负载均衡算法 限定取值:"RoundRobin"/"SourceHash"/"LeastConn"/"WeightLeastConn "/"WeightRoundRobin" 默认值 + * "RoundRobin" + */ + @UCloudParam("Scheduler") + private String scheduler; + + /** 会话保持超时时间。单位:秒 限定取值:[60-900],0 表示不开启会话保持 默认值60 */ + @UCloudParam("StickinessTimeout") + private Integer stickinessTimeout; + + /** */ + @UCloudParam("HealthCheckConfig") + private HealthCheckConfig healthCheckConfig; + + /** 传递源 IP 方法。 限定取值:"" / "None" / "Toa",空字符串和 None 代表关闭。 */ + @UCloudParam("ForwardSrcIPMethod") + private String forwardSrcIPMethod; + + 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 getNLBId() { + return nlbId; + } + + public void setNLBId(String nlbId) { + this.nlbId = nlbId; + } + + 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; + } + + public Integer getStartPort() { + return startPort; + } + + public void setStartPort(Integer startPort) { + this.startPort = startPort; + } + + public Integer getEndPort() { + return endPort; + } + + public void setEndPort(Integer endPort) { + this.endPort = endPort; + } + + public String getProtocol() { + return protocol; + } + + public void setProtocol(String protocol) { + this.protocol = protocol; + } + + public String getScheduler() { + return scheduler; + } + + public void setScheduler(String scheduler) { + this.scheduler = scheduler; + } + + public Integer getStickinessTimeout() { + return stickinessTimeout; + } + + public void setStickinessTimeout(Integer stickinessTimeout) { + this.stickinessTimeout = stickinessTimeout; + } + + public HealthCheckConfig getHealthCheckConfig() { + return healthCheckConfig; + } + + public void setHealthCheckConfig(HealthCheckConfig healthCheckConfig) { + this.healthCheckConfig = healthCheckConfig; + } + + public String getForwardSrcIPMethod() { + return forwardSrcIPMethod; + } + + public void setForwardSrcIPMethod(String forwardSrcIPMethod) { + this.forwardSrcIPMethod = forwardSrcIPMethod; + } + + public static class HealthCheckConfig extends Request { + + /** 是否开启健康检查功能。暂时不支持关闭,默认 true */ + @UCloudParam("Enabled") + private Boolean enabled; + + /** 健康检查探测端口 说明: 限定取值:[1-65535] */ + @UCloudParam("Port") + private Integer port; + + /** 健康检查方式 限定取值:"Port"/"UDP"/"Ping" 默认值:“Port” */ + @UCloudParam("Type") + private String type; + + /** UDP" 检查模式的请求字符串 */ + @UCloudParam("ReqMsg") + private String reqMsg; + + /** "UDP" 检查模式的预期响应字符串 */ + @UCloudParam("ResMsg") + private String resMsg; + + public Boolean getEnabled() { + return enabled; + } + + public void setEnabled(Boolean enabled) { + this.enabled = enabled; + } + + public Integer getPort() { + return port; + } + + public void setPort(Integer port) { + this.port = port; + } + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public String getReqMsg() { + return reqMsg; + } + + public void setReqMsg(String reqMsg) { + this.reqMsg = reqMsg; + } + + public String getResMsg() { + return resMsg; + } + + public void setResMsg(String resMsg) { + this.resMsg = resMsg; + } + } +} diff --git a/ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/CreateNLBListenerResponse.java b/ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/CreateNLBListenerResponse.java new file mode 100644 index 00000000..7f9c0929 --- /dev/null +++ b/ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/CreateNLBListenerResponse.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.nlb.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class CreateNLBListenerResponse extends Response { + + /** 监听器的ID */ + @SerializedName("ListenerId") + private String listenerId; + + public String getListenerId() { + return listenerId; + } + + public void setListenerId(String listenerId) { + this.listenerId = listenerId; + } +} diff --git a/ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/CreateNetworkLoadBalancerRequest.java b/ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/CreateNetworkLoadBalancerRequest.java new file mode 100644 index 00000000..2b76abc4 --- /dev/null +++ b/ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/CreateNetworkLoadBalancerRequest.java @@ -0,0 +1,172 @@ +/** + * 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.nlb.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class CreateNetworkLoadBalancerRequest 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; + + /** 载均衡实例所属的VPC资源ID */ + @NotEmpty + @UCloudParam("VPCId") + private String vpcId; + + /** 负载均衡实例所属的子网资源ID */ + @NotEmpty + @UCloudParam("SubnetId") + private String subnetId; + + /** API 版本,限定取值 "v1.0"/"v2.0",默认值:"v2.0" */ + @UCloudParam("ApiVersion") + private String apiVersion; + + /** 负载均衡实例所属的业务组ID */ + @UCloudParam("Tag") + private String tag; + + /** 负载均衡实例的名称 限定字符长度:[1-255] 限定特殊字符,仅支持:-_. 默认值:nlb */ + @UCloudParam("Name") + private String name; + + /** 负载均衡实例的备注信息 限定字符长度:[0-255] */ + @UCloudParam("Remark") + private String remark; + + /** 负载均衡实例的IP协议,限定取值:"IPv4"/"IPv6"/"DualStack",默认值:"IPv4" */ + @UCloudParam("IPVersion") + private String ipVersion; + + /** 付费模式,限定取值:"Dynamic"/"Month"/"Year" */ + @UCloudParam("ChargeType") + private String chargeType; + + /** 购买的时长 */ + @UCloudParam("Quantity") + private Integer quantity; + + /** 代金券code */ + @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 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 getApiVersion() { + return apiVersion; + } + + public void setApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + } + + public String getTag() { + return tag; + } + + public void setTag(String tag) { + this.tag = tag; + } + + 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; + } + + public String getIPVersion() { + return ipVersion; + } + + public void setIPVersion(String ipVersion) { + this.ipVersion = ipVersion; + } + + 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 getCouponId() { + return couponId; + } + + public void setCouponId(String couponId) { + this.couponId = couponId; + } +} diff --git a/ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/CreateNetworkLoadBalancerResponse.java b/ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/CreateNetworkLoadBalancerResponse.java new file mode 100644 index 00000000..1a8fdf21 --- /dev/null +++ b/ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/CreateNetworkLoadBalancerResponse.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.nlb.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class CreateNetworkLoadBalancerResponse extends Response { + + /** */ + @SerializedName("NLBId") + private String nlbId; + + public String getNLBId() { + return nlbId; + } + + public void setNLBId(String nlbId) { + this.nlbId = nlbId; + } +} diff --git a/ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/DeleteNLBListenerRequest.java b/ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/DeleteNLBListenerRequest.java new file mode 100644 index 00000000..04543ae9 --- /dev/null +++ b/ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/DeleteNLBListenerRequest.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.nlb.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class DeleteNLBListenerRequest 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("NLBId") + private String nlbId; + + /** 监听器的ID */ + @NotEmpty + @UCloudParam("ListenerId") + private String listenerId; + + 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 getNLBId() { + return nlbId; + } + + public void setNLBId(String nlbId) { + this.nlbId = nlbId; + } + + public String getListenerId() { + return listenerId; + } + + public void setListenerId(String listenerId) { + this.listenerId = listenerId; + } +} diff --git a/ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/DeleteNLBListenerResponse.java b/ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/DeleteNLBListenerResponse.java new file mode 100644 index 00000000..c76d5f8c --- /dev/null +++ b/ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/DeleteNLBListenerResponse.java @@ -0,0 +1,20 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.nlb.models; + + + +import cn.ucloud.common.response.Response; + +public class DeleteNLBListenerResponse extends Response {} diff --git a/ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/DeleteNetworkLoadBalancerRequest.java b/ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/DeleteNetworkLoadBalancerRequest.java new file mode 100644 index 00000000..f877bc54 --- /dev/null +++ b/ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/DeleteNetworkLoadBalancerRequest.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.nlb.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class DeleteNetworkLoadBalancerRequest 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("NLBId") + private String nlbId; + + /** 删除NLB时释放绑定的EIP */ + @UCloudParam("ReleaseEIP") + private Boolean releaseEIP; + + 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 getNLBId() { + return nlbId; + } + + public void setNLBId(String nlbId) { + this.nlbId = nlbId; + } + + public Boolean getReleaseEIP() { + return releaseEIP; + } + + public void setReleaseEIP(Boolean releaseEIP) { + this.releaseEIP = releaseEIP; + } +} diff --git a/ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/DeleteNetworkLoadBalancerResponse.java b/ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/DeleteNetworkLoadBalancerResponse.java new file mode 100644 index 00000000..8c753dd2 --- /dev/null +++ b/ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/DeleteNetworkLoadBalancerResponse.java @@ -0,0 +1,20 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.nlb.models; + + + +import cn.ucloud.common.response.Response; + +public class DeleteNetworkLoadBalancerResponse extends Response {} diff --git a/ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/DescribeNLBListenersRequest.java b/ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/DescribeNLBListenersRequest.java new file mode 100644 index 00000000..41c3c6c1 --- /dev/null +++ b/ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/DescribeNLBListenersRequest.java @@ -0,0 +1,99 @@ +/** + * 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.nlb.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class DescribeNLBListenersRequest 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。未指定 ListenerId ,则描述指定的 LoadBalancerId 下的所有监听器 */ + @NotEmpty + @UCloudParam("NLBId") + private String nlbId; + + /** 监听器的ID */ + @UCloudParam("ListenerId") + private String listenerId; + + /** 限制返回的监听器数量 */ + @UCloudParam("Limit") + private Integer limit; + + /** 设置监听器的偏移量 */ + @UCloudParam("Offset") + private String offset; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getNLBId() { + return nlbId; + } + + public void setNLBId(String nlbId) { + this.nlbId = nlbId; + } + + public String getListenerId() { + return listenerId; + } + + public void setListenerId(String listenerId) { + this.listenerId = listenerId; + } + + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + public String getOffset() { + return offset; + } + + public void setOffset(String offset) { + this.offset = offset; + } +} diff --git a/ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/DescribeNLBListenersResponse.java b/ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/DescribeNLBListenersResponse.java new file mode 100644 index 00000000..e5de692c --- /dev/null +++ b/ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/DescribeNLBListenersResponse.java @@ -0,0 +1,442 @@ +/** + * 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.nlb.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class DescribeNLBListenersResponse extends Response { + + /** 全部个数 */ + @SerializedName("TotalCount") + private Integer totalCount; + + /** 返回的监听器列表 */ + @SerializedName("Listeners") + private List listeners; + + public Integer getTotalCount() { + return totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public List getListeners() { + return listeners; + } + + public void setListeners(List listeners) { + this.listeners = listeners; + } + + public static class HealthCheckConfig extends Response { + + /** 是否开启健康检查功能。 */ + @SerializedName("Enabled") + private Boolean enabled; + + /** 健康检查探测端口 说明: 限定取值:[1-65535] */ + @SerializedName("Port") + private Integer port; + + /** 健康检查方式 限定取值:"Port"/"UDP"/"Ping" /"HTTP" 默认值:“Port” */ + @SerializedName("Type") + private String type; + + /** 健康检查间隔时间 限定取值:[1-60] 单位秒 默认 2s */ + @SerializedName("Interval") + private Integer interval; + + /** 健康检查最小成功数 限定取值:[1-10] 默认 3 */ + @SerializedName("MinSuccess") + private Integer minSuccess; + + /** 健康检查最大失败数 限定取值:[1-10] 默认 3 */ + @SerializedName("MaxFail") + private Integer maxFail; + + /** UDP" 检查模式的请求字符串 "HTTP" 检查模式的请求 json 字符串 */ + @SerializedName("ReqMsg") + private String reqMsg; + + /** "UDP" 检查模式的预期响应字符串 "HTTP" 检查模式的响应状态码 */ + @SerializedName("ResMsg") + private String resMsg; + + public Boolean getEnabled() { + return enabled; + } + + public void setEnabled(Boolean enabled) { + this.enabled = enabled; + } + + public Integer getPort() { + return port; + } + + public void setPort(Integer port) { + this.port = port; + } + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public Integer getInterval() { + return interval; + } + + public void setInterval(Integer interval) { + this.interval = interval; + } + + public Integer getMinSuccess() { + return minSuccess; + } + + public void setMinSuccess(Integer minSuccess) { + this.minSuccess = minSuccess; + } + + public Integer getMaxFail() { + return maxFail; + } + + public void setMaxFail(Integer maxFail) { + this.maxFail = maxFail; + } + + public String getReqMsg() { + return reqMsg; + } + + public void setReqMsg(String reqMsg) { + this.reqMsg = reqMsg; + } + + public String getResMsg() { + return resMsg; + } + + public void setResMsg(String resMsg) { + this.resMsg = resMsg; + } + } + + public static class Listener extends Response { + + /** 监听器的ID */ + @SerializedName("ListenerId") + private String listenerId; + + /** 监听器的名称 */ + @SerializedName("Name") + private String name; + + /** 监听器的备注信息 */ + @SerializedName("Remark") + private String remark; + + /** 端口范围的起始端口 */ + @SerializedName("StartPort") + private Integer startPort; + + /** 端口范围的结束端口 */ + @SerializedName("EndPort") + private Integer endPort; + + /** 监听协议,限定取值:"TCP"/"UDP" */ + @SerializedName("Protocol") + private String protocol; + + /** + * 负载均衡算法,限定取值:"RoundRobin"/"SourceHash"/"LeastConn"/"WeightLeastConn "/"WeightRoundRobin " + */ + @SerializedName("Scheduler") + private String scheduler; + + /** 会话保持超时时间。单位:秒,0表示不开启会话保持 */ + @SerializedName("StickinessTimeout") + private Integer stickinessTimeout; + + /** 传递源 IP 方法。限定取值:"" / "None" / "Toa",空字符串和 None 代表关闭。 */ + @SerializedName("ForwardSrcIPMethod") + private String forwardSrcIPMethod; + + /** 健康检查相关配置 */ + @SerializedName("HealthCheckConfig") + private HealthCheckConfig healthCheckConfig; + + /** 服务节点信息 */ + @SerializedName("Targets") + private List targets; + + /** listener 健康状态,"Healthy"/"Unhealthy"/"PartialHealth"/"None" */ + @SerializedName("State") + private String state; + + public String getListenerId() { + return listenerId; + } + + public void setListenerId(String listenerId) { + this.listenerId = listenerId; + } + + 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; + } + + public Integer getStartPort() { + return startPort; + } + + public void setStartPort(Integer startPort) { + this.startPort = startPort; + } + + public Integer getEndPort() { + return endPort; + } + + public void setEndPort(Integer endPort) { + this.endPort = endPort; + } + + public String getProtocol() { + return protocol; + } + + public void setProtocol(String protocol) { + this.protocol = protocol; + } + + public String getScheduler() { + return scheduler; + } + + public void setScheduler(String scheduler) { + this.scheduler = scheduler; + } + + public Integer getStickinessTimeout() { + return stickinessTimeout; + } + + public void setStickinessTimeout(Integer stickinessTimeout) { + this.stickinessTimeout = stickinessTimeout; + } + + public String getForwardSrcIPMethod() { + return forwardSrcIPMethod; + } + + public void setForwardSrcIPMethod(String forwardSrcIPMethod) { + this.forwardSrcIPMethod = forwardSrcIPMethod; + } + + public HealthCheckConfig getHealthCheckConfig() { + return healthCheckConfig; + } + + public void setHealthCheckConfig(HealthCheckConfig healthCheckConfig) { + this.healthCheckConfig = healthCheckConfig; + } + + public List getTargets() { + return targets; + } + + public void setTargets(List targets) { + this.targets = targets; + } + + public String getState() { + return state; + } + + public void setState(String state) { + this.state = state; + } + } + + public static class Target extends Response { + + /** 服务节点所在地域 */ + @SerializedName("Region") + private String region; + + /** 服务节点的类型 */ + @SerializedName("ResourceType") + private String resourceType; + + /** 服务节点的资源ID。在非IP类型时,必传 */ + @SerializedName("ResourceId") + private String resourceId; + + /** 服务节点的资源名称 */ + @SerializedName("ResourceName") + private String resourceName; + + /** 服务节点的VPC资源ID。在IP类型时,必传 */ + @SerializedName("VPCId") + private String vpcId; + + /** 服务节点的子网资源ID。在IP类型时,必传 */ + @SerializedName("SubnetId") + private String subnetId; + + /** 服务节点的IP。在IP类型时,必传 */ + @SerializedName("ResourceIP") + private String resourceIP; + + /** 服务节点的端口 */ + @SerializedName("Port") + private Integer port; + + /** 服务节点的权重。支持更新 */ + @SerializedName("Weight") + private Integer weight; + + /** 服务节点是否开启 */ + @SerializedName("Enabled") + private Boolean enabled; + + /** 服务节点的标识 ID 说明: 添加服务节点的时候无需传 更新服务节点属性时必传 */ + @SerializedName("Id") + private String id; + + /** 服务节点的健康检查状态 说明: 描述服务节点信息时显示 限定枚举值:"Healthy"/"Unhealthy" */ + @SerializedName("State") + private String state; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getResourceType() { + return resourceType; + } + + public void setResourceType(String resourceType) { + this.resourceType = resourceType; + } + + public String getResourceId() { + return resourceId; + } + + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + } + + public String getResourceName() { + return resourceName; + } + + public void setResourceName(String resourceName) { + this.resourceName = resourceName; + } + + 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 getResourceIP() { + return resourceIP; + } + + public void setResourceIP(String resourceIP) { + this.resourceIP = resourceIP; + } + + public Integer getPort() { + return port; + } + + public void setPort(Integer port) { + this.port = port; + } + + public Integer getWeight() { + return weight; + } + + public void setWeight(Integer weight) { + this.weight = weight; + } + + public Boolean getEnabled() { + return enabled; + } + + public void setEnabled(Boolean enabled) { + this.enabled = enabled; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getState() { + return state; + } + + public void setState(String state) { + this.state = state; + } + } +} diff --git a/ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/DescribeNetworkLoadBalancersRequest.java b/ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/DescribeNetworkLoadBalancersRequest.java new file mode 100644 index 00000000..d39ae1a2 --- /dev/null +++ b/ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/DescribeNetworkLoadBalancersRequest.java @@ -0,0 +1,135 @@ +/** + * 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.nlb.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 DescribeNetworkLoadBalancersRequest 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; + + /** 负载均衡实例的转发类型 */ + @UCloudParam("ForwardingMode") + private String forwardingMode; + + /** 是否获取监听器和后端服务节点的详细信息 */ + @UCloudParam("ShowDetail") + private Boolean showDetail; + + /** 负载均衡实例的ID,数组 */ + @UCloudParam("NLBIds") + private List nlbIds; + + /** 限定所在的VPC */ + @UCloudParam("VPCId") + private String vpcId; + + /** 限定所在的子网 */ + @UCloudParam("SubnetId") + private String subnetId; + + /** 数据偏移量,默认为0 */ + @UCloudParam("Offset") + private Integer offset; + + /** 数据分页值,默认为100 */ + @UCloudParam("Limit") + private Integer limit; + + 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 getForwardingMode() { + return forwardingMode; + } + + public void setForwardingMode(String forwardingMode) { + this.forwardingMode = forwardingMode; + } + + public Boolean getShowDetail() { + return showDetail; + } + + public void setShowDetail(Boolean showDetail) { + this.showDetail = showDetail; + } + + public List getNLBIds() { + return nlbIds; + } + + public void setNLBIds(List nlbIds) { + this.nlbIds = nlbIds; + } + + 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 Integer getOffset() { + return offset; + } + + public void setOffset(Integer offset) { + this.offset = offset; + } + + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } +} diff --git a/ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/DescribeNetworkLoadBalancersResponse.java b/ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/DescribeNetworkLoadBalancersResponse.java new file mode 100644 index 00000000..17d9918c --- /dev/null +++ b/ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/DescribeNetworkLoadBalancersResponse.java @@ -0,0 +1,727 @@ +/** + * 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.nlb.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class DescribeNetworkLoadBalancersResponse extends Response { + + /** 满足条件的负载均衡实例总数 */ + @SerializedName("TotalCount") + private Integer totalCount; + + /** 返回的负载均衡实例列表 */ + @SerializedName("NLBs") + private List nlBs; + + public Integer getTotalCount() { + return totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public List getNLBs() { + return nlBs; + } + + public void setNLBs(List nlBs) { + this.nlBs = nlBs; + } + + public static class HealthCheckConfig extends Response { + + /** 是否开启健康检查功能。 */ + @SerializedName("Enabled") + private Boolean enabled; + + /** 健康检查探测端口 说明: 限定取值:[1-65535] */ + @SerializedName("Port") + private Integer port; + + /** 健康检查方式 限定取值:"Port"/"UDP"/"Ping" /"HTTP" 默认值:“Port” */ + @SerializedName("Type") + private String type; + + /** 健康检查间隔时间 限定取值:[1-60] 单位秒 默认 2s */ + @SerializedName("Interval") + private Integer interval; + + /** 健康检查最小成功数 限定取值:[1-10] 默认 3 */ + @SerializedName("MinSuccess") + private Integer minSuccess; + + /** 健康检查最大失败数 限定取值:[1-10] 默认 3 */ + @SerializedName("MaxFail") + private Integer maxFail; + + /** UDP" 检查模式的请求字符串 "HTTP" 检查模式的请求 json 字符串 */ + @SerializedName("ReqMsg") + private String reqMsg; + + /** "UDP" 检查模式的预期响应字符串 "HTTP" 检查模式的响应状态码 */ + @SerializedName("ResMsg") + private String resMsg; + + public Boolean getEnabled() { + return enabled; + } + + public void setEnabled(Boolean enabled) { + this.enabled = enabled; + } + + public Integer getPort() { + return port; + } + + public void setPort(Integer port) { + this.port = port; + } + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public Integer getInterval() { + return interval; + } + + public void setInterval(Integer interval) { + this.interval = interval; + } + + public Integer getMinSuccess() { + return minSuccess; + } + + public void setMinSuccess(Integer minSuccess) { + this.minSuccess = minSuccess; + } + + public Integer getMaxFail() { + return maxFail; + } + + public void setMaxFail(Integer maxFail) { + this.maxFail = maxFail; + } + + public String getReqMsg() { + return reqMsg; + } + + public void setReqMsg(String reqMsg) { + this.reqMsg = reqMsg; + } + + public String getResMsg() { + return resMsg; + } + + public void setResMsg(String resMsg) { + this.resMsg = resMsg; + } + } + + public static class IPInfo extends Response { + + /** 唯一标识 ID */ + @SerializedName("Id") + private String id; + + /** IP 地址 */ + @SerializedName("IP") + private String ip; + + /** IP 类型,1(前向 IP)/ 2(后向 IP) */ + @SerializedName("Type") + private Integer type; + + /** IP协议版本,限定枚举值:"IPv4" / "IPv6" */ + @SerializedName("IPVersion") + private String ipVersion; + + /** 网络模式,限定枚举值:"Internet" / "Intranet" */ + @SerializedName("AddressType") + private String addressType; + + /** + * 外网IP的运营商信息,限定枚举值:"Telecom" / + * "Unicom"/"International"/"Bgp"/"Duplet"/"BGPPro"/"China-mobile"/"Anycast" + */ + @SerializedName("OperatorName") + private String operatorName; + + /** 带宽类型,限定枚举值:0(普通带宽)/ 1(共享带宽) */ + @SerializedName("BandwidthType") + private Integer bandwidthType; + + /** 带宽值。单位 M */ + @SerializedName("Bandwidth") + private Integer bandwidth; + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getIP() { + return ip; + } + + public void setIP(String ip) { + this.ip = ip; + } + + public Integer getType() { + return type; + } + + public void setType(Integer type) { + this.type = type; + } + + public String getIPVersion() { + return ipVersion; + } + + public void setIPVersion(String ipVersion) { + this.ipVersion = ipVersion; + } + + public String getAddressType() { + return addressType; + } + + public void setAddressType(String addressType) { + this.addressType = addressType; + } + + public String getOperatorName() { + return operatorName; + } + + public void setOperatorName(String operatorName) { + this.operatorName = operatorName; + } + + public Integer getBandwidthType() { + return bandwidthType; + } + + public void setBandwidthType(Integer bandwidthType) { + this.bandwidthType = bandwidthType; + } + + public Integer getBandwidth() { + return bandwidth; + } + + public void setBandwidth(Integer bandwidth) { + this.bandwidth = bandwidth; + } + } + + public static class Listener extends Response { + + /** 监听器的ID */ + @SerializedName("ListenerId") + private String listenerId; + + /** 监听器的名称 */ + @SerializedName("Name") + private String name; + + /** 监听器的备注信息 */ + @SerializedName("Remark") + private String remark; + + /** 端口范围的起始端口 */ + @SerializedName("StartPort") + private Integer startPort; + + /** 端口范围的结束端口 */ + @SerializedName("EndPort") + private Integer endPort; + + /** 监听协议,限定取值:"TCP"/"UDP" */ + @SerializedName("Protocol") + private String protocol; + + /** + * 负载均衡算法,限定取值:"RoundRobin"/"SourceHash"/"LeastConn"/"WeightLeastConn "/"WeightRoundRobin " + */ + @SerializedName("Scheduler") + private String scheduler; + + /** 会话保持超时时间。单位:秒,0表示不开启会话保持 */ + @SerializedName("StickinessTimeout") + private Integer stickinessTimeout; + + /** 传递源 IP 方法。限定取值:"" / "None" / "Toa",空字符串和 None 代表关闭。 */ + @SerializedName("ForwardSrcIPMethod") + private String forwardSrcIPMethod; + + /** 健康检查相关配置 */ + @SerializedName("HealthCheckConfig") + private HealthCheckConfig healthCheckConfig; + + /** 服务节点信息 */ + @SerializedName("Targets") + private List targets; + + /** listener 健康状态,"Healthy"/"Unhealthy"/"PartialHealth"/"None" */ + @SerializedName("State") + private String state; + + public String getListenerId() { + return listenerId; + } + + public void setListenerId(String listenerId) { + this.listenerId = listenerId; + } + + 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; + } + + public Integer getStartPort() { + return startPort; + } + + public void setStartPort(Integer startPort) { + this.startPort = startPort; + } + + public Integer getEndPort() { + return endPort; + } + + public void setEndPort(Integer endPort) { + this.endPort = endPort; + } + + public String getProtocol() { + return protocol; + } + + public void setProtocol(String protocol) { + this.protocol = protocol; + } + + public String getScheduler() { + return scheduler; + } + + public void setScheduler(String scheduler) { + this.scheduler = scheduler; + } + + public Integer getStickinessTimeout() { + return stickinessTimeout; + } + + public void setStickinessTimeout(Integer stickinessTimeout) { + this.stickinessTimeout = stickinessTimeout; + } + + public String getForwardSrcIPMethod() { + return forwardSrcIPMethod; + } + + public void setForwardSrcIPMethod(String forwardSrcIPMethod) { + this.forwardSrcIPMethod = forwardSrcIPMethod; + } + + public HealthCheckConfig getHealthCheckConfig() { + return healthCheckConfig; + } + + public void setHealthCheckConfig(HealthCheckConfig healthCheckConfig) { + this.healthCheckConfig = healthCheckConfig; + } + + public List getTargets() { + return targets; + } + + public void setTargets(List targets) { + this.targets = targets; + } + + public String getState() { + return state; + } + + public void setState(String state) { + this.state = state; + } + } + + public static class NetworkLoadBalancer extends Response { + + /** 负载均衡实例的ID */ + @SerializedName("NLBId") + private String nlbId; + + /** 负载均衡实例的名称 */ + @SerializedName("Name") + private String name; + + /** 负载均衡实例所属的业务组ID */ + @SerializedName("Tag") + private String tag; + + /** 负载均衡实例的备注信息 */ + @SerializedName("Remark") + private String remark; + + /** 负载均衡实例支持的IP协议版本 */ + @SerializedName("IPVersion") + private String ipVersion; + + /** 负载均衡实例所属的VPC资源ID */ + @SerializedName("VPCId") + private String vpcId; + + /** 负载均衡实例所属的子网资源ID */ + @SerializedName("SubnetId") + private String subnetId; + + /** 绑定的IP信息 */ + @SerializedName("IPInfos") + private List ipInfos; + + /** 负载均衡实例的转发模式 */ + @SerializedName("ForwardingMode") + private String forwardingMode; + + /** 付费模式 */ + @SerializedName("ChargeType") + private String chargeType; + + /** 有效期(计费) */ + @SerializedName("PurchaseValue") + private Integer purchaseValue; + + /** 负载均衡实例创建时间。格式为 Unix Timestamp */ + @SerializedName("CreateTime") + private Integer createTime; + + /** */ + @SerializedName("Listeners") + private List listeners; + + /** NLB 状态:Normal-正常;Closed-欠费停服;Deleted 已删除 */ + @SerializedName("Status") + private String status; + + /** 是否开启自动续费 */ + @SerializedName("AutoRenewEnabled") + private Boolean autoRenewEnabled; + + public String getNLBId() { + return nlbId; + } + + public void setNLBId(String nlbId) { + this.nlbId = nlbId; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getTag() { + return tag; + } + + public void setTag(String tag) { + this.tag = tag; + } + + public String getRemark() { + return remark; + } + + public void setRemark(String remark) { + this.remark = remark; + } + + public String getIPVersion() { + return ipVersion; + } + + public void setIPVersion(String ipVersion) { + this.ipVersion = ipVersion; + } + + 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 List getIPInfos() { + return ipInfos; + } + + public void setIPInfos(List ipInfos) { + this.ipInfos = ipInfos; + } + + public String getForwardingMode() { + return forwardingMode; + } + + public void setForwardingMode(String forwardingMode) { + this.forwardingMode = forwardingMode; + } + + public String getChargeType() { + return chargeType; + } + + public void setChargeType(String chargeType) { + this.chargeType = chargeType; + } + + public Integer getPurchaseValue() { + return purchaseValue; + } + + public void setPurchaseValue(Integer purchaseValue) { + this.purchaseValue = purchaseValue; + } + + public Integer getCreateTime() { + return createTime; + } + + public void setCreateTime(Integer createTime) { + this.createTime = createTime; + } + + public List getListeners() { + return listeners; + } + + public void setListeners(List listeners) { + this.listeners = listeners; + } + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public Boolean getAutoRenewEnabled() { + return autoRenewEnabled; + } + + public void setAutoRenewEnabled(Boolean autoRenewEnabled) { + this.autoRenewEnabled = autoRenewEnabled; + } + } + + public static class Target extends Response { + + /** 服务节点所在地域 */ + @SerializedName("Region") + private String region; + + /** 服务节点的类型 */ + @SerializedName("ResourceType") + private String resourceType; + + /** 服务节点的资源ID。在非IP类型时,必传 */ + @SerializedName("ResourceId") + private String resourceId; + + /** 服务节点的资源名称 */ + @SerializedName("ResourceName") + private String resourceName; + + /** 服务节点的VPC资源ID。在IP类型时,必传 */ + @SerializedName("VPCId") + private String vpcId; + + /** 服务节点的子网资源ID。在IP类型时,必传 */ + @SerializedName("SubnetId") + private String subnetId; + + /** 服务节点的IP。在IP类型时,必传 */ + @SerializedName("ResourceIP") + private String resourceIP; + + /** 服务节点的端口 */ + @SerializedName("Port") + private Integer port; + + /** 服务节点的权重。支持更新 */ + @SerializedName("Weight") + private Integer weight; + + /** 服务节点是否开启 */ + @SerializedName("Enabled") + private Boolean enabled; + + /** 服务节点的标识 ID 说明: 添加服务节点的时候无需传 更新服务节点属性时必传 */ + @SerializedName("Id") + private String id; + + /** 服务节点的健康检查状态 说明: 描述服务节点信息时显示 限定枚举值:"Healthy"/"Unhealthy" */ + @SerializedName("State") + private String state; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getResourceType() { + return resourceType; + } + + public void setResourceType(String resourceType) { + this.resourceType = resourceType; + } + + public String getResourceId() { + return resourceId; + } + + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + } + + public String getResourceName() { + return resourceName; + } + + public void setResourceName(String resourceName) { + this.resourceName = resourceName; + } + + 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 getResourceIP() { + return resourceIP; + } + + public void setResourceIP(String resourceIP) { + this.resourceIP = resourceIP; + } + + public Integer getPort() { + return port; + } + + public void setPort(Integer port) { + this.port = port; + } + + public Integer getWeight() { + return weight; + } + + public void setWeight(Integer weight) { + this.weight = weight; + } + + public Boolean getEnabled() { + return enabled; + } + + public void setEnabled(Boolean enabled) { + this.enabled = enabled; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getState() { + return state; + } + + public void setState(String state) { + this.state = state; + } + } +} diff --git a/ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/GetNetworkLoadBalancerPriceRequest.java b/ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/GetNetworkLoadBalancerPriceRequest.java new file mode 100644 index 00000000..1caef896 --- /dev/null +++ b/ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/GetNetworkLoadBalancerPriceRequest.java @@ -0,0 +1,86 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.nlb.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class GetNetworkLoadBalancerPriceRequest 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; + + /** 付费模式 限定枚举值:"Year" / "Month"/ "Dynamic" 默认获取三种价格 */ + @UCloudParam("ChargeType") + private String chargeType; + + /** 负载均衡实例计费方式 限定枚举值:"Instance" / "LCU" 默认值:"Instance" */ + @UCloudParam("PayMode") + private String payMode; + + /** 购买时长 按小时购买(Dynamic)时无需此参数。月付时,此参数传 0,代表了购买至月末 默认 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 getChargeType() { + return chargeType; + } + + public void setChargeType(String chargeType) { + this.chargeType = chargeType; + } + + public String getPayMode() { + return payMode; + } + + public void setPayMode(String payMode) { + this.payMode = payMode; + } + + public Integer getQuantity() { + return quantity; + } + + public void setQuantity(Integer quantity) { + this.quantity = quantity; + } +} diff --git a/ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/GetNetworkLoadBalancerPriceResponse.java b/ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/GetNetworkLoadBalancerPriceResponse.java new file mode 100644 index 00000000..359f1153 --- /dev/null +++ b/ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/GetNetworkLoadBalancerPriceResponse.java @@ -0,0 +1,98 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.nlb.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class GetNetworkLoadBalancerPriceResponse extends Response { + + /** */ + @SerializedName("Prices") + private List prices; + + public List getPrices() { + return prices; + } + + public void setPrices(List prices) { + this.prices = prices; + } + + public static class PriceDetail extends Response { + + /** 负载均衡付费方式 */ + @SerializedName("ChargeType") + private String chargeType; + + /** 购买负载均衡的实际价格,单位“元” */ + @SerializedName("Price") + private Double price; + + /** 用户折后价,单位“元”。CustomPrice=OriginalPrice*用户折扣 */ + @SerializedName("CustomPrice") + private Double customPrice; + + /** 购买负载均衡的原价,单位“元” */ + @SerializedName("OriginalPrice") + private Double originalPrice; + + /** 资源有效期,以Unix Timestamp表示 */ + @SerializedName("PurchaseValue") + private Integer purchaseValue; + + public String getChargeType() { + return chargeType; + } + + public void setChargeType(String chargeType) { + this.chargeType = chargeType; + } + + public Double getPrice() { + return price; + } + + public void setPrice(Double price) { + this.price = price; + } + + public Double getCustomPrice() { + return customPrice; + } + + public void setCustomPrice(Double customPrice) { + this.customPrice = customPrice; + } + + public Double getOriginalPrice() { + return originalPrice; + } + + public void setOriginalPrice(Double originalPrice) { + this.originalPrice = originalPrice; + } + + public Integer getPurchaseValue() { + return purchaseValue; + } + + public void setPurchaseValue(Integer purchaseValue) { + this.purchaseValue = purchaseValue; + } + } +} diff --git a/ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/RemoveNLBTargetsRequest.java b/ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/RemoveNLBTargetsRequest.java new file mode 100644 index 00000000..df1f2121 --- /dev/null +++ b/ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/RemoveNLBTargetsRequest.java @@ -0,0 +1,90 @@ +/** + * 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.nlb.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 RemoveNLBTargetsRequest 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("NLBId") + private String nlbId; + + /** 监听器的ID */ + @NotEmpty + @UCloudParam("ListenerId") + private String listenerId; + + /** 服务节点的标识ID。单次请求不能超过 40 个 */ + @NotEmpty + @UCloudParam("Ids") + private List ids; + + 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 getNLBId() { + return nlbId; + } + + public void setNLBId(String nlbId) { + this.nlbId = nlbId; + } + + public String getListenerId() { + return listenerId; + } + + public void setListenerId(String listenerId) { + this.listenerId = listenerId; + } + + public List getIds() { + return ids; + } + + public void setIds(List ids) { + this.ids = ids; + } +} diff --git a/ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/RemoveNLBTargetsResponse.java b/ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/RemoveNLBTargetsResponse.java new file mode 100644 index 00000000..71d6f142 --- /dev/null +++ b/ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/RemoveNLBTargetsResponse.java @@ -0,0 +1,20 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.nlb.models; + + + +import cn.ucloud.common.response.Response; + +public class RemoveNLBTargetsResponse extends Response {} diff --git a/ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/UpdateNLBListenerAttributeRequest.java b/ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/UpdateNLBListenerAttributeRequest.java new file mode 100644 index 00000000..53ff9c96 --- /dev/null +++ b/ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/UpdateNLBListenerAttributeRequest.java @@ -0,0 +1,238 @@ +/** + * 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.nlb.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class UpdateNLBListenerAttributeRequest 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("NLBId") + private String nlbId; + + /** 负载均衡实例的ID */ + @NotEmpty + @UCloudParam("ListenerId") + private String listenerId; + + /** 监听器的名称 */ + @UCloudParam("Name") + private String name; + + /** 监听器的备注信息 */ + @UCloudParam("Remark") + private String remark; + + /** 端口范围的起始端口 限定取值:[1-65535] 默认值 1,只有全端口模式支持修改 */ + @UCloudParam("StartPort") + private Integer startPort; + + /** 端口范围的结束端口 限定取值:[1-65535] 取值不小于起始端口 默认值 65535,只有全端口模式支持修改 */ + @UCloudParam("EndPort") + private Integer endPort; + + /** + * 负载均衡算法 限定取值:"RoundRobin"/"SourceHash"/"LeastConn"/"WeightLeastConn "/"WeightRoundRobin" 默认值 + * "RoundRobin" + */ + @UCloudParam("Scheduler") + private String scheduler; + + /** 会话保持超时时间。单位:秒 说明: 限定取值:[60-900],0 表示不开启会话保持 默认值60 */ + @UCloudParam("StickinessTimeout") + private Integer stickinessTimeout; + + /** 传递源 IP 方法。限定取值:"" / "None" / "Toa",空字符串和 None 代表关闭。 */ + @UCloudParam("ForwardSrcIPMethod") + private String forwardSrcIPMethod; + + /** */ + @UCloudParam("HealthCheckConfig") + private HealthCheckConfig healthCheckConfig; + + 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 getNLBId() { + return nlbId; + } + + public void setNLBId(String nlbId) { + this.nlbId = nlbId; + } + + public String getListenerId() { + return listenerId; + } + + public void setListenerId(String listenerId) { + this.listenerId = listenerId; + } + + 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; + } + + public Integer getStartPort() { + return startPort; + } + + public void setStartPort(Integer startPort) { + this.startPort = startPort; + } + + public Integer getEndPort() { + return endPort; + } + + public void setEndPort(Integer endPort) { + this.endPort = endPort; + } + + public String getScheduler() { + return scheduler; + } + + public void setScheduler(String scheduler) { + this.scheduler = scheduler; + } + + public Integer getStickinessTimeout() { + return stickinessTimeout; + } + + public void setStickinessTimeout(Integer stickinessTimeout) { + this.stickinessTimeout = stickinessTimeout; + } + + public String getForwardSrcIPMethod() { + return forwardSrcIPMethod; + } + + public void setForwardSrcIPMethod(String forwardSrcIPMethod) { + this.forwardSrcIPMethod = forwardSrcIPMethod; + } + + public HealthCheckConfig getHealthCheckConfig() { + return healthCheckConfig; + } + + public void setHealthCheckConfig(HealthCheckConfig healthCheckConfig) { + this.healthCheckConfig = healthCheckConfig; + } + + public static class HealthCheckConfig extends Request { + + /** 是否开启健康检查功能。暂时不支持关闭,默认 true */ + @UCloudParam("Enabled") + private Boolean enabled; + + /** 健康检查探测端口 说明: 限定取值:[1-65535] */ + @UCloudParam("Port") + private Integer port; + + /** 健康检查方式 限定取值:"Port"/"UDP"/"Ping" 默认值:“Port” */ + @UCloudParam("Type") + private String type; + + /** UDP" 检查模式的请求字符串 */ + @UCloudParam("ReqMsg") + private String reqMsg; + + /** "UDP" 检查模式的预期响应字符串 */ + @UCloudParam("ResMsg") + private String resMsg; + + public Boolean getEnabled() { + return enabled; + } + + public void setEnabled(Boolean enabled) { + this.enabled = enabled; + } + + public Integer getPort() { + return port; + } + + public void setPort(Integer port) { + this.port = port; + } + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public String getReqMsg() { + return reqMsg; + } + + public void setReqMsg(String reqMsg) { + this.reqMsg = reqMsg; + } + + public String getResMsg() { + return resMsg; + } + + public void setResMsg(String resMsg) { + this.resMsg = resMsg; + } + } +} diff --git a/ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/UpdateNLBListenerAttributeResponse.java b/ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/UpdateNLBListenerAttributeResponse.java new file mode 100644 index 00000000..222062e7 --- /dev/null +++ b/ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/UpdateNLBListenerAttributeResponse.java @@ -0,0 +1,20 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.nlb.models; + + + +import cn.ucloud.common.response.Response; + +public class UpdateNLBListenerAttributeResponse extends Response {} diff --git a/ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/UpdateNLBTargetsAttributeRequest.java b/ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/UpdateNLBTargetsAttributeRequest.java new file mode 100644 index 00000000..a0adcc45 --- /dev/null +++ b/ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/UpdateNLBTargetsAttributeRequest.java @@ -0,0 +1,128 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.nlb.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 UpdateNLBTargetsAttributeRequest 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("NLBId") + private String nlbId; + + /** 监听器的ID */ + @NotEmpty + @UCloudParam("ListenerId") + private String listenerId; + + /** */ + @UCloudParam("Targets") + private List targets; + + 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 getNLBId() { + return nlbId; + } + + public void setNLBId(String nlbId) { + this.nlbId = nlbId; + } + + public String getListenerId() { + return listenerId; + } + + public void setListenerId(String listenerId) { + this.listenerId = listenerId; + } + + public List getTargets() { + return targets; + } + + public void setTargets(List targets) { + this.targets = targets; + } + + public static class Targets extends Request { + + /** 服务节点的ID */ + @UCloudParam("Id") + private String id; + + /** 是否禁用服务节点 */ + @UCloudParam("Enabled") + private Boolean enabled; + + /** 服务节点的权重。限定取值:[1-100],默认值1;仅在加权轮询、加权最小连接数算法时有效 */ + @UCloudParam("Weight") + private Integer weight; + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public Boolean getEnabled() { + return enabled; + } + + public void setEnabled(Boolean enabled) { + this.enabled = enabled; + } + + public Integer getWeight() { + return weight; + } + + public void setWeight(Integer weight) { + this.weight = weight; + } + } +} diff --git a/ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/UpdateNLBTargetsAttributeResponse.java b/ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/UpdateNLBTargetsAttributeResponse.java new file mode 100644 index 00000000..93eb8b35 --- /dev/null +++ b/ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/UpdateNLBTargetsAttributeResponse.java @@ -0,0 +1,20 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.nlb.models; + + + +import cn.ucloud.common.response.Response; + +public class UpdateNLBTargetsAttributeResponse extends Response {} diff --git a/ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/UpdateNetworkLoadBalancerAttributeRequest.java b/ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/UpdateNetworkLoadBalancerAttributeRequest.java new file mode 100644 index 00000000..d5cc1f0e --- /dev/null +++ b/ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/UpdateNetworkLoadBalancerAttributeRequest.java @@ -0,0 +1,99 @@ +/** + * 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.nlb.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class UpdateNetworkLoadBalancerAttributeRequest 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("NLBId") + private String nlbId; + + /** 负载均衡实例的名称 */ + @UCloudParam("Name") + private String name; + + /** 负载均衡实例所属的业务组ID */ + @UCloudParam("Tag") + private String tag; + + /** 负载均衡实例的备注信息 */ + @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 getNLBId() { + return nlbId; + } + + public void setNLBId(String nlbId) { + this.nlbId = nlbId; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getTag() { + return tag; + } + + public void setTag(String tag) { + this.tag = tag; + } + + public String getRemark() { + return remark; + } + + public void setRemark(String remark) { + this.remark = remark; + } +} diff --git a/ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/UpdateNetworkLoadBalancerAttributeResponse.java b/ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/UpdateNetworkLoadBalancerAttributeResponse.java new file mode 100644 index 00000000..9278405e --- /dev/null +++ b/ucloud-sdk-java-nlb/src/main/java/cn/ucloud/nlb/models/UpdateNetworkLoadBalancerAttributeResponse.java @@ -0,0 +1,20 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.nlb.models; + + + +import cn.ucloud.common.response.Response; + +public class UpdateNetworkLoadBalancerAttributeResponse extends Response {} diff --git a/ucloud-sdk-java-pathx/pom.xml b/ucloud-sdk-java-pathx/pom.xml index ea2fb01d..db0edb12 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.35-release + 1.2.36-release 4.0.0 ucloud-sdk-java-pathx - 1.2.35-release + 1.2.36-release cn.ucloud ucloud-sdk-java-common - 1.2.35-release + 1.2.36-release diff --git a/ucloud-sdk-java-sts/pom.xml b/ucloud-sdk-java-sts/pom.xml index ef17f2da..1b61d632 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.35-release + 1.2.36-release 4.0.0 ucloud-sdk-java-sts - 1.2.35-release + 1.2.36-release cn.ucloud ucloud-sdk-java-common - 1.2.35-release + 1.2.36-release diff --git a/ucloud-sdk-java-uaccount/pom.xml b/ucloud-sdk-java-uaccount/pom.xml index 790db07c..9944e6ea 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.35-release + 1.2.36-release 4.0.0 ucloud-sdk-java-uaccount - 1.2.35-release + 1.2.36-release cn.ucloud ucloud-sdk-java-common - 1.2.35-release + 1.2.36-release diff --git a/ucloud-sdk-java-uai_modelverse/pom.xml b/ucloud-sdk-java-uai_modelverse/pom.xml index a062db1f..906cb6b9 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.35-release + 1.2.36-release 4.0.0 ucloud-sdk-java-uai_modelverse - 1.2.35-release + 1.2.36-release cn.ucloud ucloud-sdk-java-common - 1.2.35-release + 1.2.36-release diff --git a/ucloud-sdk-java-ubill/pom.xml b/ucloud-sdk-java-ubill/pom.xml index 0f39104d..283a12fd 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.35-release + 1.2.36-release 4.0.0 ucloud-sdk-java-ubill - 1.2.35-release + 1.2.36-release cn.ucloud ucloud-sdk-java-common - 1.2.35-release + 1.2.36-release diff --git a/ucloud-sdk-java-ucdn/pom.xml b/ucloud-sdk-java-ucdn/pom.xml index d38cc674..0d8767b6 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.35-release + 1.2.36-release 4.0.0 ucloud-sdk-java-ucdn - 1.2.35-release + 1.2.36-release cn.ucloud ucloud-sdk-java-common - 1.2.35-release + 1.2.36-release diff --git a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainInfoListRequest.java b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainInfoListRequest.java index 87692165..b56e307c 100644 --- a/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainInfoListRequest.java +++ b/ucloud-sdk-java-ucdn/src/main/java/cn/ucloud/ucdn/models/GetUcdnDomainInfoListRequest.java @@ -30,10 +30,14 @@ public class GetUcdnDomainInfoListRequest extends Request { @UCloudParam("PageSize") private Integer pageSize; - /** 返回第几页,不填默认是第1页 */ + /** 返回第几页,序号从1开始,不填默认是第1页,填0表示不用分页直接返回所有数据 */ @UCloudParam("PageIndex") private Integer pageIndex; + /** 是否按项目查询,true 或 false 默认为false */ + @UCloudParam("QueryByProject") + private Boolean queryByProject; + public String getProjectId() { return projectId; } @@ -57,4 +61,12 @@ public Integer getPageIndex() { public void setPageIndex(Integer pageIndex) { this.pageIndex = pageIndex; } + + public Boolean getQueryByProject() { + return queryByProject; + } + + public void setQueryByProject(Boolean queryByProject) { + this.queryByProject = queryByProject; + } } diff --git a/ucloud-sdk-java-ucompshare/pom.xml b/ucloud-sdk-java-ucompshare/pom.xml index 70035dd8..b0fbfdb5 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.35-release + 1.2.36-release 4.0.0 ucloud-sdk-java-ucompshare - 1.2.35-release + 1.2.36-release cn.ucloud ucloud-sdk-java-common - 1.2.35-release + 1.2.36-release diff --git a/ucloud-sdk-java-udb/pom.xml b/ucloud-sdk-java-udb/pom.xml index 6f6575eb..595f7b1b 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.35-release + 1.2.36-release 4.0.0 ucloud-sdk-java-udb - 1.2.35-release + 1.2.36-release cn.ucloud ucloud-sdk-java-common - 1.2.35-release + 1.2.36-release diff --git a/ucloud-sdk-java-udbproxy/pom.xml b/ucloud-sdk-java-udbproxy/pom.xml index 6b580df9..f4b1f74f 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.35-release + 1.2.36-release 4.0.0 ucloud-sdk-java-udbproxy - 1.2.35-release + 1.2.36-release cn.ucloud ucloud-sdk-java-common - 1.2.35-release + 1.2.36-release diff --git a/ucloud-sdk-java-udi/pom.xml b/ucloud-sdk-java-udi/pom.xml index 9a169f96..9d37fc75 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.35-release + 1.2.36-release 4.0.0 ucloud-sdk-java-udi - 1.2.35-release + 1.2.36-release cn.ucloud ucloud-sdk-java-common - 1.2.35-release + 1.2.36-release diff --git a/ucloud-sdk-java-udisk/pom.xml b/ucloud-sdk-java-udisk/pom.xml index a380d810..39259218 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.35-release + 1.2.36-release 4.0.0 ucloud-sdk-java-udisk - 1.2.35-release + 1.2.36-release cn.ucloud ucloud-sdk-java-common - 1.2.35-release + 1.2.36-release diff --git a/ucloud-sdk-java-udns/pom.xml b/ucloud-sdk-java-udns/pom.xml index 35c58f74..bed8e2a5 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.35-release + 1.2.36-release 4.0.0 ucloud-sdk-java-udns - 1.2.35-release + 1.2.36-release cn.ucloud ucloud-sdk-java-common - 1.2.35-release + 1.2.36-release diff --git a/ucloud-sdk-java-udpn/pom.xml b/ucloud-sdk-java-udpn/pom.xml index 6db5d55f..0af16996 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.35-release + 1.2.36-release 4.0.0 ucloud-sdk-java-udpn - 1.2.35-release + 1.2.36-release cn.ucloud ucloud-sdk-java-common - 1.2.35-release + 1.2.36-release diff --git a/ucloud-sdk-java-uec/pom.xml b/ucloud-sdk-java-uec/pom.xml index bbec9afd..4af8cdb2 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.35-release + 1.2.36-release 4.0.0 ucloud-sdk-java-uec - 1.2.35-release + 1.2.36-release cn.ucloud ucloud-sdk-java-common - 1.2.35-release + 1.2.36-release diff --git a/ucloud-sdk-java-uewaf/pom.xml b/ucloud-sdk-java-uewaf/pom.xml index 3ebd25b1..ed40b5c7 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.35-release + 1.2.36-release 4.0.0 ucloud-sdk-java-uewaf - 1.2.35-release + 1.2.36-release cn.ucloud ucloud-sdk-java-common - 1.2.35-release + 1.2.36-release diff --git a/ucloud-sdk-java-ufile/pom.xml b/ucloud-sdk-java-ufile/pom.xml index b2946cd0..91c5c31d 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.35-release + 1.2.36-release 4.0.0 ucloud-sdk-java-ufile - 1.2.35-release + 1.2.36-release cn.ucloud ucloud-sdk-java-common - 1.2.35-release + 1.2.36-release diff --git a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/client/UFileClient.java b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/client/UFileClient.java index d3544710..d9e02bb0 100644 --- a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/client/UFileClient.java +++ b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/client/UFileClient.java @@ -19,6 +19,10 @@ import cn.ucloud.common.exception.UCloudException; import cn.ucloud.ufile.models.AddCORSRuleRequest; import cn.ucloud.ufile.models.AddCORSRuleResponse; +import cn.ucloud.ufile.models.AddUFileSSLCertRequest; +import cn.ucloud.ufile.models.AddUFileSSLCertResponse; +import cn.ucloud.ufile.models.BindBucketDomainRequest; +import cn.ucloud.ufile.models.BindBucketDomainResponse; import cn.ucloud.ufile.models.CreateBucketRequest; import cn.ucloud.ufile.models.CreateBucketResponse; import cn.ucloud.ufile.models.CreateUFileLifeCycleRequest; @@ -31,6 +35,8 @@ import cn.ucloud.ufile.models.DeleteCORSRuleResponse; import cn.ucloud.ufile.models.DeleteUFileLifeCycleRequest; import cn.ucloud.ufile.models.DeleteUFileLifeCycleResponse; +import cn.ucloud.ufile.models.DeleteUFileSSLCertRequest; +import cn.ucloud.ufile.models.DeleteUFileSSLCertResponse; import cn.ucloud.ufile.models.DeleteUFileTokenRequest; import cn.ucloud.ufile.models.DeleteUFileTokenResponse; import cn.ucloud.ufile.models.DescribeBucketRequest; @@ -39,6 +45,8 @@ import cn.ucloud.ufile.models.DescribeCORSRuleResponse; import cn.ucloud.ufile.models.DescribeUFileLifeCycleRequest; import cn.ucloud.ufile.models.DescribeUFileLifeCycleResponse; +import cn.ucloud.ufile.models.DescribeUFileSSLCertRequest; +import cn.ucloud.ufile.models.DescribeUFileSSLCertResponse; import cn.ucloud.ufile.models.DescribeUFileTokenRequest; import cn.ucloud.ufile.models.DescribeUFileTokenResponse; import cn.ucloud.ufile.models.GetUFileDailyBillRequest; @@ -61,6 +69,8 @@ import cn.ucloud.ufile.models.UpdateCORSRuleResponse; import cn.ucloud.ufile.models.UpdateUFileLifeCycleRequest; import cn.ucloud.ufile.models.UpdateUFileLifeCycleResponse; +import cn.ucloud.ufile.models.UpdateUFileSSLCertRequest; +import cn.ucloud.ufile.models.UpdateUFileSSLCertResponse; import cn.ucloud.ufile.models.UpdateUFileTokenRequest; import cn.ucloud.ufile.models.UpdateUFileTokenResponse; import cn.ucloud.ufile.models.UpdateUdsRuleRequest; @@ -83,6 +93,30 @@ public AddCORSRuleResponse addCORSRule(AddCORSRuleRequest request) throws UCloud return (AddCORSRuleResponse) this.invoke(request, AddCORSRuleResponse.class); } + /** + * AddUFileSSLCert - 添加SSL证书 + * + * @param request Request object + * @throws UCloudException Exception + */ + public AddUFileSSLCertResponse addUFileSSLCert(AddUFileSSLCertRequest request) + throws UCloudException { + request.setAction("AddUFileSSLCert"); + return (AddUFileSSLCertResponse) this.invoke(request, AddUFileSSLCertResponse.class); + } + + /** + * BindBucketDomain - 绑定自定义域名 + * + * @param request Request object + * @throws UCloudException Exception + */ + public BindBucketDomainResponse bindBucketDomain(BindBucketDomainRequest request) + throws UCloudException { + request.setAction("BindBucketDomain"); + return (BindBucketDomainResponse) this.invoke(request, BindBucketDomainResponse.class); + } + /** * CreateBucket - 创建Bucket * @@ -155,6 +189,18 @@ public DeleteUFileLifeCycleResponse deleteUFileLifeCycle(DeleteUFileLifeCycleReq this.invoke(request, DeleteUFileLifeCycleResponse.class); } + /** + * DeleteUFileSSLCert - 删除SSL证书 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteUFileSSLCertResponse deleteUFileSSLCert(DeleteUFileSSLCertRequest request) + throws UCloudException { + request.setAction("DeleteUFileSSLCert"); + return (DeleteUFileSSLCertResponse) this.invoke(request, DeleteUFileSSLCertResponse.class); + } + /** * DeleteUFileToken - 删除令牌 * @@ -204,6 +250,19 @@ public DescribeUFileLifeCycleResponse describeUFileLifeCycle( this.invoke(request, DescribeUFileLifeCycleResponse.class); } + /** + * DescribeUFileSSLCert - 查询SSL证书 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUFileSSLCertResponse describeUFileSSLCert(DescribeUFileSSLCertRequest request) + throws UCloudException { + request.setAction("DescribeUFileSSLCert"); + return (DescribeUFileSSLCertResponse) + this.invoke(request, DescribeUFileSSLCertResponse.class); + } + /** * DescribeUFileToken - 获取令牌信息 * @@ -337,6 +396,18 @@ public UpdateUFileLifeCycleResponse updateUFileLifeCycle(UpdateUFileLifeCycleReq this.invoke(request, UpdateUFileLifeCycleResponse.class); } + /** + * UpdateUFileSSLCert - 更新SSL证书 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateUFileSSLCertResponse updateUFileSSLCert(UpdateUFileSSLCertRequest request) + throws UCloudException { + request.setAction("UpdateUFileSSLCert"); + return (UpdateUFileSSLCertResponse) this.invoke(request, UpdateUFileSSLCertResponse.class); + } + /** * UpdateUFileToken - 更新令牌 * diff --git a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/client/UFileClientInterface.java b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/client/UFileClientInterface.java index 91a0fb0e..9bd4a537 100644 --- a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/client/UFileClientInterface.java +++ b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/client/UFileClientInterface.java @@ -17,6 +17,10 @@ import cn.ucloud.common.exception.UCloudException; import cn.ucloud.ufile.models.AddCORSRuleRequest; import cn.ucloud.ufile.models.AddCORSRuleResponse; +import cn.ucloud.ufile.models.AddUFileSSLCertRequest; +import cn.ucloud.ufile.models.AddUFileSSLCertResponse; +import cn.ucloud.ufile.models.BindBucketDomainRequest; +import cn.ucloud.ufile.models.BindBucketDomainResponse; import cn.ucloud.ufile.models.CreateBucketRequest; import cn.ucloud.ufile.models.CreateBucketResponse; import cn.ucloud.ufile.models.CreateUFileLifeCycleRequest; @@ -29,6 +33,8 @@ import cn.ucloud.ufile.models.DeleteCORSRuleResponse; import cn.ucloud.ufile.models.DeleteUFileLifeCycleRequest; import cn.ucloud.ufile.models.DeleteUFileLifeCycleResponse; +import cn.ucloud.ufile.models.DeleteUFileSSLCertRequest; +import cn.ucloud.ufile.models.DeleteUFileSSLCertResponse; import cn.ucloud.ufile.models.DeleteUFileTokenRequest; import cn.ucloud.ufile.models.DeleteUFileTokenResponse; import cn.ucloud.ufile.models.DescribeBucketRequest; @@ -37,6 +43,8 @@ import cn.ucloud.ufile.models.DescribeCORSRuleResponse; import cn.ucloud.ufile.models.DescribeUFileLifeCycleRequest; import cn.ucloud.ufile.models.DescribeUFileLifeCycleResponse; +import cn.ucloud.ufile.models.DescribeUFileSSLCertRequest; +import cn.ucloud.ufile.models.DescribeUFileSSLCertResponse; import cn.ucloud.ufile.models.DescribeUFileTokenRequest; import cn.ucloud.ufile.models.DescribeUFileTokenResponse; import cn.ucloud.ufile.models.GetUFileDailyBillRequest; @@ -59,6 +67,8 @@ import cn.ucloud.ufile.models.UpdateCORSRuleResponse; import cn.ucloud.ufile.models.UpdateUFileLifeCycleRequest; import cn.ucloud.ufile.models.UpdateUFileLifeCycleResponse; +import cn.ucloud.ufile.models.UpdateUFileSSLCertRequest; +import cn.ucloud.ufile.models.UpdateUFileSSLCertResponse; import cn.ucloud.ufile.models.UpdateUFileTokenRequest; import cn.ucloud.ufile.models.UpdateUFileTokenResponse; import cn.ucloud.ufile.models.UpdateUdsRuleRequest; @@ -75,6 +85,24 @@ public interface UFileClientInterface extends Client { */ public AddCORSRuleResponse addCORSRule(AddCORSRuleRequest request) throws UCloudException; + /** + * AddUFileSSLCert - 添加SSL证书 + * + * @param request Request object + * @throws UCloudException Exception + */ + public AddUFileSSLCertResponse addUFileSSLCert(AddUFileSSLCertRequest request) + throws UCloudException; + + /** + * BindBucketDomain - 绑定自定义域名 + * + * @param request Request object + * @throws UCloudException Exception + */ + public BindBucketDomainResponse bindBucketDomain(BindBucketDomainRequest request) + throws UCloudException; + /** * CreateBucket - 创建Bucket * @@ -127,6 +155,15 @@ public DeleteCORSRuleResponse deleteCORSRule(DeleteCORSRuleRequest request) public DeleteUFileLifeCycleResponse deleteUFileLifeCycle(DeleteUFileLifeCycleRequest request) throws UCloudException; + /** + * DeleteUFileSSLCert - 删除SSL证书 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DeleteUFileSSLCertResponse deleteUFileSSLCert(DeleteUFileSSLCertRequest request) + throws UCloudException; + /** * DeleteUFileToken - 删除令牌 * @@ -163,6 +200,15 @@ public DescribeCORSRuleResponse describeCORSRule(DescribeCORSRuleRequest request public DescribeUFileLifeCycleResponse describeUFileLifeCycle( DescribeUFileLifeCycleRequest request) throws UCloudException; + /** + * DescribeUFileSSLCert - 查询SSL证书 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DescribeUFileSSLCertResponse describeUFileSSLCert(DescribeUFileSSLCertRequest request) + throws UCloudException; + /** * DescribeUFileToken - 获取令牌信息 * @@ -260,6 +306,15 @@ public UpdateCORSRuleResponse updateCORSRule(UpdateCORSRuleRequest request) public UpdateUFileLifeCycleResponse updateUFileLifeCycle(UpdateUFileLifeCycleRequest request) throws UCloudException; + /** + * UpdateUFileSSLCert - 更新SSL证书 + * + * @param request Request object + * @throws UCloudException Exception + */ + public UpdateUFileSSLCertResponse updateUFileSSLCert(UpdateUFileSSLCertRequest request) + throws UCloudException; + /** * UpdateUFileToken - 更新令牌 * diff --git a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/AddUFileSSLCertRequest.java b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/AddUFileSSLCertRequest.java new file mode 100644 index 00000000..30b9a98a --- /dev/null +++ b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/AddUFileSSLCertRequest.java @@ -0,0 +1,101 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.ufile.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class AddUFileSSLCertRequest extends Request { + + /** 存储桶名称,全局唯一 */ + @NotEmpty + @UCloudParam("BucketName") + private String bucketName; + + /** 域名 */ + @NotEmpty + @UCloudParam("Domain") + private String domain; + + /** SSL证书名称 */ + @NotEmpty + @UCloudParam("CertificateName") + private String certificateName; + + /** + * 填写SSL证书文件内容(PEM编码)。 证书文件内容填写格式: + * + *

如果您的业务场景仅需确保服务端证书可信,则证书文件需要包含服务器证书(①)和中间证书(②)。如果您的中间证书和服务器证书是两个文件,您可以在证书链配置项填写中间证书内容即可。 + */ + @UCloudParam("Certificate") + private String certificate; + + /** 填写SSL证书私钥内容(PEM编码)。 */ + @UCloudParam("CertificateKey") + private String certificateKey; + + /** ussl证书的资源ID */ + @UCloudParam("USSLId") + private String usslId; + + public String getBucketName() { + return bucketName; + } + + public void setBucketName(String bucketName) { + this.bucketName = bucketName; + } + + public String getDomain() { + return domain; + } + + public void setDomain(String domain) { + this.domain = domain; + } + + public String getCertificateName() { + return certificateName; + } + + public void setCertificateName(String certificateName) { + this.certificateName = certificateName; + } + + public String getCertificate() { + return certificate; + } + + public void setCertificate(String certificate) { + this.certificate = certificate; + } + + public String getCertificateKey() { + return certificateKey; + } + + public void setCertificateKey(String certificateKey) { + this.certificateKey = certificateKey; + } + + public String getUSSLId() { + return usslId; + } + + public void setUSSLId(String usslId) { + this.usslId = usslId; + } +} diff --git a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/AddUFileSSLCertResponse.java b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/AddUFileSSLCertResponse.java new file mode 100644 index 00000000..37f33ede --- /dev/null +++ b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/AddUFileSSLCertResponse.java @@ -0,0 +1,20 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.ufile.models; + + + +import cn.ucloud.common.response.Response; + +public class AddUFileSSLCertResponse extends Response {} diff --git a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/BindBucketDomainRequest.java b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/BindBucketDomainRequest.java new file mode 100644 index 00000000..c9af0805 --- /dev/null +++ b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/BindBucketDomainRequest.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.ufile.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class BindBucketDomainRequest extends Request { + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 自定义域名对应的bucket名称 */ + @NotEmpty + @UCloudParam("BucketName") + private String bucketName; + + /** 自定义域名 */ + @NotEmpty + @UCloudParam("Domain") + private String domain; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getBucketName() { + return bucketName; + } + + public void setBucketName(String bucketName) { + this.bucketName = bucketName; + } + + public String getDomain() { + return domain; + } + + public void setDomain(String domain) { + this.domain = domain; + } +} diff --git a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/BindBucketDomainResponse.java b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/BindBucketDomainResponse.java new file mode 100644 index 00000000..c2a9cd13 --- /dev/null +++ b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/BindBucketDomainResponse.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.ufile.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class BindBucketDomainResponse extends Response { + + /** 自定义域名对应的bucket名称 */ + @SerializedName("BucketName") + private String bucketName; + + /** 自定义域名对应的Bucket的Id */ + @SerializedName("BucketId") + private String bucketId; + + public String getBucketName() { + return bucketName; + } + + public void setBucketName(String bucketName) { + this.bucketName = bucketName; + } + + public String getBucketId() { + return bucketId; + } + + public void setBucketId(String bucketId) { + this.bucketId = bucketId; + } +} diff --git a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/DeleteUFileSSLCertRequest.java b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/DeleteUFileSSLCertRequest.java new file mode 100644 index 00000000..5b2bfc5c --- /dev/null +++ b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/DeleteUFileSSLCertRequest.java @@ -0,0 +1,48 @@ +/** + * 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.ufile.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class DeleteUFileSSLCertRequest extends Request { + + /** 存储桶名称,全局唯一 */ + @NotEmpty + @UCloudParam("BucketName") + private String bucketName; + + /** 域名 */ + @NotEmpty + @UCloudParam("Domain") + private String domain; + + public String getBucketName() { + return bucketName; + } + + public void setBucketName(String bucketName) { + this.bucketName = bucketName; + } + + public String getDomain() { + return domain; + } + + public void setDomain(String domain) { + this.domain = domain; + } +} diff --git a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/DeleteUFileSSLCertResponse.java b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/DeleteUFileSSLCertResponse.java new file mode 100644 index 00000000..57f28747 --- /dev/null +++ b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/DeleteUFileSSLCertResponse.java @@ -0,0 +1,20 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.ufile.models; + + + +import cn.ucloud.common.response.Response; + +public class DeleteUFileSSLCertResponse extends Response {} diff --git a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/DescribeUFileSSLCertRequest.java b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/DescribeUFileSSLCertRequest.java new file mode 100644 index 00000000..b531ba0d --- /dev/null +++ b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/DescribeUFileSSLCertRequest.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.ufile.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class DescribeUFileSSLCertRequest extends Request { + + /** 存储桶名称,全局唯一 */ + @NotEmpty + @UCloudParam("BucketName") + private String bucketName; + + public String getBucketName() { + return bucketName; + } + + public void setBucketName(String bucketName) { + this.bucketName = bucketName; + } +} diff --git a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/DescribeUFileSSLCertResponse.java b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/DescribeUFileSSLCertResponse.java new file mode 100644 index 00000000..f4af432a --- /dev/null +++ b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/DescribeUFileSSLCertResponse.java @@ -0,0 +1,86 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.ufile.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class DescribeUFileSSLCertResponse extends Response { + + /** 证书列表 */ + @SerializedName("DataSet") + private List dataSet; + + public List getDataSet() { + return dataSet; + } + + public void setDataSet(List dataSet) { + this.dataSet = dataSet; + } + + public static class UFileSSLCert extends Response { + + /** 域名 */ + @SerializedName("Domain") + private String domain; + + /** SSL证书内容,和域名对应 */ + @SerializedName("Certificate") + private String certificate; + + /** SSL证书对应的私钥 */ + @SerializedName("CertificateKey") + private String certificateKey; + + /** SSL证书名称 */ + @SerializedName("CertificateName") + private String certificateName; + + public String getDomain() { + return domain; + } + + public void setDomain(String domain) { + this.domain = domain; + } + + public String getCertificate() { + return certificate; + } + + public void setCertificate(String certificate) { + this.certificate = certificate; + } + + public String getCertificateKey() { + return certificateKey; + } + + public void setCertificateKey(String certificateKey) { + this.certificateKey = certificateKey; + } + + public String getCertificateName() { + return certificateName; + } + + public void setCertificateName(String certificateName) { + this.certificateName = certificateName; + } + } +} diff --git a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/UpdateUFileSSLCertRequest.java b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/UpdateUFileSSLCertRequest.java new file mode 100644 index 00000000..6eb48207 --- /dev/null +++ b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/UpdateUFileSSLCertRequest.java @@ -0,0 +1,90 @@ +/** + * 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.ufile.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class UpdateUFileSSLCertRequest extends Request { + + /** 存储桶名称,全局唯一 */ + @NotEmpty + @UCloudParam("BucketName") + private String bucketName; + + /** 域名 */ + @NotEmpty + @UCloudParam("Domain") + private String domain; + + /** SSL证书名称 */ + @NotEmpty + @UCloudParam("CertificateName") + private String certificateName; + + /** + * 填写SSL证书文件内容(PEM编码)。 证书文件内容填写格式: + * 如果您的业务场景仅需确保服务端证书可信,则证书文件需要包含服务器证书(①)和中间证书(②)。如果您的中间证书和服务器证书是两个文件,您可以在证书链配置项填写中间证书内容即可。 + */ + @NotEmpty + @UCloudParam("Certificate") + private String certificate; + + /** 填写SSL证书私钥内容(PEM编码)。 */ + @NotEmpty + @UCloudParam("CertificateKey") + private String certificateKey; + + public String getBucketName() { + return bucketName; + } + + public void setBucketName(String bucketName) { + this.bucketName = bucketName; + } + + public String getDomain() { + return domain; + } + + public void setDomain(String domain) { + this.domain = domain; + } + + public String getCertificateName() { + return certificateName; + } + + public void setCertificateName(String certificateName) { + this.certificateName = certificateName; + } + + public String getCertificate() { + return certificate; + } + + public void setCertificate(String certificate) { + this.certificate = certificate; + } + + public String getCertificateKey() { + return certificateKey; + } + + public void setCertificateKey(String certificateKey) { + this.certificateKey = certificateKey; + } +} diff --git a/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/UpdateUFileSSLCertResponse.java b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/UpdateUFileSSLCertResponse.java new file mode 100644 index 00000000..5db188c4 --- /dev/null +++ b/ucloud-sdk-java-ufile/src/main/java/cn/ucloud/ufile/models/UpdateUFileSSLCertResponse.java @@ -0,0 +1,20 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.ufile.models; + + + +import cn.ucloud.common.response.Response; + +public class UpdateUFileSSLCertResponse extends Response {} diff --git a/ucloud-sdk-java-ufs/pom.xml b/ucloud-sdk-java-ufs/pom.xml index 389cdd86..79d26dcf 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.35-release + 1.2.36-release 4.0.0 ucloud-sdk-java-ufs - 1.2.35-release + 1.2.36-release cn.ucloud ucloud-sdk-java-common - 1.2.35-release + 1.2.36-release diff --git a/ucloud-sdk-java-uhost/pom.xml b/ucloud-sdk-java-uhost/pom.xml index 20fc13f3..9151f288 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.35-release + 1.2.36-release 4.0.0 ucloud-sdk-java-uhost - 1.2.35-release + 1.2.36-release cn.ucloud ucloud-sdk-java-common - 1.2.35-release + 1.2.36-release diff --git a/ucloud-sdk-java-uk8s/pom.xml b/ucloud-sdk-java-uk8s/pom.xml index 28ffaa40..9fa6f9d6 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.35-release + 1.2.36-release 4.0.0 ucloud-sdk-java-uk8s - 1.2.35-release + 1.2.36-release cn.ucloud ucloud-sdk-java-common - 1.2.35-release + 1.2.36-release diff --git a/ucloud-sdk-java-ulb/pom.xml b/ucloud-sdk-java-ulb/pom.xml index fef08ecb..d3145b4f 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.35-release + 1.2.36-release 4.0.0 ucloud-sdk-java-ulb - 1.2.35-release + 1.2.36-release cn.ucloud ucloud-sdk-java-common - 1.2.35-release + 1.2.36-release diff --git a/ucloud-sdk-java-ulog/pom.xml b/ucloud-sdk-java-ulog/pom.xml index 369ce076..89d36a5f 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.35-release + 1.2.36-release 4.0.0 ucloud-sdk-java-ulog - 1.2.35-release + 1.2.36-release cn.ucloud ucloud-sdk-java-common - 1.2.35-release + 1.2.36-release diff --git a/ucloud-sdk-java-umem/pom.xml b/ucloud-sdk-java-umem/pom.xml index 4de3d59e..f8db2602 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.35-release + 1.2.36-release 4.0.0 ucloud-sdk-java-umem - 1.2.35-release + 1.2.36-release cn.ucloud ucloud-sdk-java-common - 1.2.35-release + 1.2.36-release diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/client/UMemClient.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/client/UMemClient.java index 1224ca10..06f9a73b 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/client/UMemClient.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/client/UMemClient.java @@ -97,6 +97,8 @@ import cn.ucloud.umem.models.RegisterUMemDefragResponse; import cn.ucloud.umem.models.RemoveUDRedisDataRequest; import cn.ucloud.umem.models.RemoveUDRedisDataResponse; +import cn.ucloud.umem.models.ResizeUDRedisBlockSizeRequest; +import cn.ucloud.umem.models.ResizeUDRedisBlockSizeResponse; import cn.ucloud.umem.models.ResizeUMemSpaceRequest; import cn.ucloud.umem.models.ResizeUMemSpaceResponse; import cn.ucloud.umem.models.ResizeURedisGroupRequest; @@ -621,6 +623,19 @@ public RemoveUDRedisDataResponse removeUDRedisData(RemoveUDRedisDataRequest requ return (RemoveUDRedisDataResponse) this.invoke(request, RemoveUDRedisDataResponse.class); } + /** + * ResizeUDRedisBlockSize - 更改udredis分片容量 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ResizeUDRedisBlockSizeResponse resizeUDRedisBlockSize( + ResizeUDRedisBlockSizeRequest request) throws UCloudException { + request.setAction("ResizeUDRedisBlockSize"); + return (ResizeUDRedisBlockSizeResponse) + this.invoke(request, ResizeUDRedisBlockSizeResponse.class); + } + /** * ResizeUMemSpace - 调整容量 * diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/client/UMemClientInterface.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/client/UMemClientInterface.java index 1c2dd5d4..88ea9364 100644 --- a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/client/UMemClientInterface.java +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/client/UMemClientInterface.java @@ -95,6 +95,8 @@ import cn.ucloud.umem.models.RegisterUMemDefragResponse; import cn.ucloud.umem.models.RemoveUDRedisDataRequest; import cn.ucloud.umem.models.RemoveUDRedisDataResponse; +import cn.ucloud.umem.models.ResizeUDRedisBlockSizeRequest; +import cn.ucloud.umem.models.ResizeUDRedisBlockSizeResponse; import cn.ucloud.umem.models.ResizeUMemSpaceRequest; import cn.ucloud.umem.models.ResizeUMemSpaceResponse; import cn.ucloud.umem.models.ResizeURedisGroupRequest; @@ -470,6 +472,15 @@ public RegisterUMemDefragResponse registerUMemDefrag(RegisterUMemDefragRequest r public RemoveUDRedisDataResponse removeUDRedisData(RemoveUDRedisDataRequest request) throws UCloudException; + /** + * ResizeUDRedisBlockSize - 更改udredis分片容量 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ResizeUDRedisBlockSizeResponse resizeUDRedisBlockSize( + ResizeUDRedisBlockSizeRequest request) throws UCloudException; + /** * ResizeUMemSpace - 调整容量 * diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/ResizeUDRedisBlockSizeRequest.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/ResizeUDRedisBlockSizeRequest.java new file mode 100644 index 00000000..605f70a9 --- /dev/null +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/ResizeUDRedisBlockSizeRequest.java @@ -0,0 +1,126 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.umem.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class ResizeUDRedisBlockSizeRequest 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; + + /** spaceid */ + @NotEmpty + @UCloudParam("SpaceId") + private String spaceId; + + /** 分片id */ + @NotEmpty + @UCloudParam("BlockId") + private String blockId; + + /** 分片容量(单位GB) 4/8/12/16/20 */ + @NotEmpty + @UCloudParam("BlockSize") + private Integer blockSize; + + /** 任务执行时间戳,时间戳需满足未来一天时间范围内。默认不传或者值为0时,即为立即执行 */ + @UCloudParam("StartTime") + private Integer startTime; + + /** 是否为性能增强型。默认为false,或者不填,true为性能增强型。 */ + @UCloudParam("HighPerformance") + private Boolean highPerformance; + + 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 getSpaceId() { + return spaceId; + } + + public void setSpaceId(String spaceId) { + this.spaceId = spaceId; + } + + public String getBlockId() { + return blockId; + } + + public void setBlockId(String blockId) { + this.blockId = blockId; + } + + public Integer getBlockSize() { + return blockSize; + } + + public void setBlockSize(Integer blockSize) { + this.blockSize = blockSize; + } + + public Integer getStartTime() { + return startTime; + } + + public void setStartTime(Integer startTime) { + this.startTime = startTime; + } + + public Boolean getHighPerformance() { + return highPerformance; + } + + public void setHighPerformance(Boolean highPerformance) { + this.highPerformance = highPerformance; + } +} diff --git a/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/ResizeUDRedisBlockSizeResponse.java b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/ResizeUDRedisBlockSizeResponse.java new file mode 100644 index 00000000..6f8b68cd --- /dev/null +++ b/ucloud-sdk-java-umem/src/main/java/cn/ucloud/umem/models/ResizeUDRedisBlockSizeResponse.java @@ -0,0 +1,20 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

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

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

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.umem.models; + + + +import cn.ucloud.common.response.Response; + +public class ResizeUDRedisBlockSizeResponse extends Response {} diff --git a/ucloud-sdk-java-umongodb/pom.xml b/ucloud-sdk-java-umongodb/pom.xml index cbf60411..aebe9220 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.35-release + 1.2.36-release 4.0.0 ucloud-sdk-java-umongodb - 1.2.35-release + 1.2.36-release cn.ucloud ucloud-sdk-java-common - 1.2.35-release + 1.2.36-release diff --git a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/DescribeUMongoDBBackupURLRequest.java b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/DescribeUMongoDBBackupURLRequest.java index 388ee9f5..81ee2798 100644 --- a/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/DescribeUMongoDBBackupURLRequest.java +++ b/ucloud-sdk-java-umongodb/src/main/java/cn/ucloud/umongodb/models/DescribeUMongoDBBackupURLRequest.java @@ -54,6 +54,10 @@ public class DescribeUMongoDBBackupURLRequest extends Request { @UCloudParam("ValidTime") private Integer validTime; + /** 类型:如 oplog */ + @UCloudParam("Category") + private String category; + public String getRegion() { return region; } @@ -109,4 +113,12 @@ public Integer getValidTime() { public void setValidTime(Integer validTime) { this.validTime = validTime; } + + public String getCategory() { + return category; + } + + public void setCategory(String category) { + this.category = category; + } } diff --git a/ucloud-sdk-java-unet/pom.xml b/ucloud-sdk-java-unet/pom.xml index 347d7c17..37cc383d 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.35-release + 1.2.36-release 4.0.0 ucloud-sdk-java-unet - 1.2.35-release + 1.2.36-release cn.ucloud ucloud-sdk-java-common - 1.2.35-release + 1.2.36-release diff --git a/ucloud-sdk-java-upgsql/pom.xml b/ucloud-sdk-java-upgsql/pom.xml index 71945277..45d64eed 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.35-release + 1.2.36-release 4.0.0 ucloud-sdk-java-upgsql - 1.2.35-release + 1.2.36-release cn.ucloud ucloud-sdk-java-common - 1.2.35-release + 1.2.36-release diff --git a/ucloud-sdk-java-uphone/pom.xml b/ucloud-sdk-java-uphone/pom.xml index 7d12cc24..3dcb556b 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.35-release + 1.2.36-release 4.0.0 ucloud-sdk-java-uphone - 1.2.35-release + 1.2.36-release cn.ucloud ucloud-sdk-java-common - 1.2.35-release + 1.2.36-release diff --git a/ucloud-sdk-java-uphost/pom.xml b/ucloud-sdk-java-uphost/pom.xml index 1e0942f5..eea788e7 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.35-release + 1.2.36-release 4.0.0 ucloud-sdk-java-uphost - 1.2.35-release + 1.2.36-release cn.ucloud ucloud-sdk-java-common - 1.2.35-release + 1.2.36-release diff --git a/ucloud-sdk-java-uslk/pom.xml b/ucloud-sdk-java-uslk/pom.xml index d75a37ae..aab4e45a 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.35-release + 1.2.36-release 4.0.0 ucloud-sdk-java-uslk - 1.2.35-release + 1.2.36-release cn.ucloud ucloud-sdk-java-common - 1.2.35-release + 1.2.36-release diff --git a/ucloud-sdk-java-usms/pom.xml b/ucloud-sdk-java-usms/pom.xml index b9adf990..caecbfd7 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.35-release + 1.2.36-release 4.0.0 ucloud-sdk-java-usms - 1.2.35-release + 1.2.36-release cn.ucloud ucloud-sdk-java-common - 1.2.35-release + 1.2.36-release diff --git a/ucloud-sdk-java-usnap/pom.xml b/ucloud-sdk-java-usnap/pom.xml index 1f22286e..07a8104b 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.35-release + 1.2.36-release 4.0.0 ucloud-sdk-java-usnap - 1.2.35-release + 1.2.36-release cn.ucloud ucloud-sdk-java-common - 1.2.35-release + 1.2.36-release diff --git a/ucloud-sdk-java-uvms/pom.xml b/ucloud-sdk-java-uvms/pom.xml index 0a03d588..12c433a9 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.35-release + 1.2.36-release 4.0.0 ucloud-sdk-java-uvms - 1.2.35-release + 1.2.36-release cn.ucloud ucloud-sdk-java-common - 1.2.35-release + 1.2.36-release diff --git a/ucloud-sdk-java-vpc/pom.xml b/ucloud-sdk-java-vpc/pom.xml index ce980d3c..bdd58e32 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.35-release + 1.2.36-release 4.0.0 ucloud-sdk-java-vpc - 1.2.35-release + 1.2.36-release cn.ucloud ucloud-sdk-java-common - 1.2.35-release + 1.2.36-release