diff --git a/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/client/UAccountClient.java b/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/client/UAccountClient.java
index 6cc77604..a8173fcc 100644
--- a/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/client/UAccountClient.java
+++ b/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/client/UAccountClient.java
@@ -17,18 +17,12 @@
import cn.ucloud.common.config.Config;
import cn.ucloud.common.credential.Credential;
import cn.ucloud.common.exception.UCloudException;
-import cn.ucloud.uaccount.models.AddMemberToProjectRequest;
-import cn.ucloud.uaccount.models.AddMemberToProjectResponse;
-import cn.ucloud.uaccount.models.FreezeMemberRequest;
-import cn.ucloud.uaccount.models.FreezeMemberResponse;
import cn.ucloud.uaccount.models.GetNetworkMaskRequest;
import cn.ucloud.uaccount.models.GetNetworkMaskResponse;
import cn.ucloud.uaccount.models.GetProjectListRequest;
import cn.ucloud.uaccount.models.GetProjectListResponse;
import cn.ucloud.uaccount.models.GetRegionRequest;
import cn.ucloud.uaccount.models.GetRegionResponse;
-import cn.ucloud.uaccount.models.RemoveMemberFromProjectRequest;
-import cn.ucloud.uaccount.models.RemoveMemberFromProjectResponse;
import cn.ucloud.uaccount.models.SetNetworkMaskRequest;
import cn.ucloud.uaccount.models.SetNetworkMaskResponse;
@@ -38,29 +32,6 @@ public UAccountClient(Config config, Credential credential) {
super(config, credential);
}
- /**
- * AddMemberToProject - 添加成员到项目
- *
- * @param request Request object
- * @throws UCloudException Exception
- */
- public AddMemberToProjectResponse addMemberToProject(AddMemberToProjectRequest request)
- throws UCloudException {
- request.setAction("AddMemberToProject");
- return (AddMemberToProjectResponse) this.invoke(request, AddMemberToProjectResponse.class);
- }
-
- /**
- * FreezeMember - 冻结成员
- *
- * @param request Request object
- * @throws UCloudException Exception
- */
- public FreezeMemberResponse freezeMember(FreezeMemberRequest request) throws UCloudException {
- request.setAction("FreezeMember");
- return (FreezeMemberResponse) this.invoke(request, FreezeMemberResponse.class);
- }
-
/**
* GetNetworkMask - 查询登录与API调用的网络掩码
*
@@ -96,19 +67,6 @@ public GetRegionResponse getRegion(GetRegionRequest request) throws UCloudExcept
return (GetRegionResponse) this.invoke(request, GetRegionResponse.class);
}
- /**
- * RemoveMemberFromProject - 从项目中移除成员
- *
- * @param request Request object
- * @throws UCloudException Exception
- */
- public RemoveMemberFromProjectResponse removeMemberFromProject(
- RemoveMemberFromProjectRequest request) throws UCloudException {
- request.setAction("RemoveMemberFromProject");
- return (RemoveMemberFromProjectResponse)
- this.invoke(request, RemoveMemberFromProjectResponse.class);
- }
-
/**
* SetNetworkMask - 设置登录与API调用的网络掩码
*
diff --git a/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/client/UAccountClientInterface.java b/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/client/UAccountClientInterface.java
index 97df5c23..576285cd 100644
--- a/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/client/UAccountClientInterface.java
+++ b/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/client/UAccountClientInterface.java
@@ -15,41 +15,18 @@
import cn.ucloud.common.client.Client;
import cn.ucloud.common.exception.UCloudException;
-import cn.ucloud.uaccount.models.AddMemberToProjectRequest;
-import cn.ucloud.uaccount.models.AddMemberToProjectResponse;
-import cn.ucloud.uaccount.models.FreezeMemberRequest;
-import cn.ucloud.uaccount.models.FreezeMemberResponse;
import cn.ucloud.uaccount.models.GetNetworkMaskRequest;
import cn.ucloud.uaccount.models.GetNetworkMaskResponse;
import cn.ucloud.uaccount.models.GetProjectListRequest;
import cn.ucloud.uaccount.models.GetProjectListResponse;
import cn.ucloud.uaccount.models.GetRegionRequest;
import cn.ucloud.uaccount.models.GetRegionResponse;
-import cn.ucloud.uaccount.models.RemoveMemberFromProjectRequest;
-import cn.ucloud.uaccount.models.RemoveMemberFromProjectResponse;
import cn.ucloud.uaccount.models.SetNetworkMaskRequest;
import cn.ucloud.uaccount.models.SetNetworkMaskResponse;
/** This client is used to call actions of **UAccount** service */
public interface UAccountClientInterface extends Client {
- /**
- * AddMemberToProject - 添加成员到项目
- *
- * @param request Request object
- * @throws UCloudException Exception
- */
- public AddMemberToProjectResponse addMemberToProject(AddMemberToProjectRequest request)
- throws UCloudException;
-
- /**
- * FreezeMember - 冻结成员
- *
- * @param request Request object
- * @throws UCloudException Exception
- */
- public FreezeMemberResponse freezeMember(FreezeMemberRequest request) throws UCloudException;
-
/**
* GetNetworkMask - 查询登录与API调用的网络掩码
*
@@ -76,15 +53,6 @@ public GetProjectListResponse getProjectList(GetProjectListRequest request)
*/
public GetRegionResponse getRegion(GetRegionRequest request) throws UCloudException;
- /**
- * RemoveMemberFromProject - 从项目中移除成员
- *
- * @param request Request object
- * @throws UCloudException Exception
- */
- public RemoveMemberFromProjectResponse removeMemberFromProject(
- RemoveMemberFromProjectRequest request) throws UCloudException;
-
/**
* SetNetworkMask - 设置登录与API调用的网络掩码
*
diff --git a/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/models/RemoveMemberFromProjectRequest.java b/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/models/RemoveMemberFromProjectRequest.java
deleted file mode 100644
index 0226da3a..00000000
--- a/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/models/RemoveMemberFromProjectRequest.java
+++ /dev/null
@@ -1,48 +0,0 @@
-/**
- * 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.uaccount.models;
-
-
-import cn.ucloud.common.annotation.NotEmpty;
-import cn.ucloud.common.annotation.UCloudParam;
-import cn.ucloud.common.request.Request;
-
-public class RemoveMemberFromProjectRequest extends Request {
-
- /** 项目ID,请参考[GetProjectList接口](../summary/get_project_list.html)的描述。不填写为默认项目,子帐号必须填写。 */
- @NotEmpty
- @UCloudParam("ProjectId")
- private String projectId;
-
- /** 需要被移除成员Email */
- @NotEmpty
- @UCloudParam("MemberEmail")
- private String memberEmail;
-
- public String getProjectId() {
- return projectId;
- }
-
- public void setProjectId(String projectId) {
- this.projectId = projectId;
- }
-
- public String getMemberEmail() {
- return memberEmail;
- }
-
- public void setMemberEmail(String memberEmail) {
- this.memberEmail = memberEmail;
- }
-}
diff --git a/ucloud-sdk-java-ubill/pom.xml b/ucloud-sdk-java-ubill/pom.xml
index bbcdced5..4e042dd0 100644
--- a/ucloud-sdk-java-ubill/pom.xml
+++ b/ucloud-sdk-java-ubill/pom.xml
@@ -5,18 +5,18 @@
ucloud-sdk-java
cn.ucloud
- 1.2.16-release
+ 1.2.17-release
4.0.0
ucloud-sdk-java-ubill
- 1.2.16-release
+ 1.2.17-release
cn.ucloud
ucloud-sdk-java-common
- 1.2.16-release
+ 1.2.17-release
diff --git a/ucloud-sdk-java-ucdn/pom.xml b/ucloud-sdk-java-ucdn/pom.xml
index 0886580c..561faba4 100644
--- a/ucloud-sdk-java-ucdn/pom.xml
+++ b/ucloud-sdk-java-ucdn/pom.xml
@@ -5,18 +5,18 @@
ucloud-sdk-java
cn.ucloud
- 1.2.16-release
+ 1.2.17-release
4.0.0
ucloud-sdk-java-ucdn
- 1.2.16-release
+ 1.2.17-release
cn.ucloud
ucloud-sdk-java-common
- 1.2.16-release
+ 1.2.17-release
diff --git a/ucloud-sdk-java-ucompshare/pom.xml b/ucloud-sdk-java-ucompshare/pom.xml
index c375868c..c3a02918 100644
--- a/ucloud-sdk-java-ucompshare/pom.xml
+++ b/ucloud-sdk-java-ucompshare/pom.xml
@@ -5,18 +5,18 @@
ucloud-sdk-java
cn.ucloud
- 1.2.16-release
+ 1.2.17-release
4.0.0
ucloud-sdk-java-ucompshare
- 1.2.16-release
+ 1.2.17-release
cn.ucloud
ucloud-sdk-java-common
- 1.2.16-release
+ 1.2.17-release
diff --git a/ucloud-sdk-java-udb/pom.xml b/ucloud-sdk-java-udb/pom.xml
index 85281ce1..b46722f6 100644
--- a/ucloud-sdk-java-udb/pom.xml
+++ b/ucloud-sdk-java-udb/pom.xml
@@ -5,18 +5,18 @@
ucloud-sdk-java
cn.ucloud
- 1.2.16-release
+ 1.2.17-release
4.0.0
ucloud-sdk-java-udb
- 1.2.16-release
+ 1.2.17-release
cn.ucloud
ucloud-sdk-java-common
- 1.2.16-release
+ 1.2.17-release
diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/client/UDBClient.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/client/UDBClient.java
index 50bbb336..82cc7188 100644
--- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/client/UDBClient.java
+++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/client/UDBClient.java
@@ -115,6 +115,8 @@
import cn.ucloud.udb.models.RestartRWSplittingResponse;
import cn.ucloud.udb.models.RestartUDBInstanceRequest;
import cn.ucloud.udb.models.RestartUDBInstanceResponse;
+import cn.ucloud.udb.models.RollbackUDBInstanceRequest;
+import cn.ucloud.udb.models.RollbackUDBInstanceResponse;
import cn.ucloud.udb.models.SetUDBRWSplittingRequest;
import cn.ucloud.udb.models.SetUDBRWSplittingResponse;
import cn.ucloud.udb.models.StartUDBInstanceRequest;
@@ -133,6 +135,8 @@
import cn.ucloud.udb.models.UpdateUDBParamGroupResponse;
import cn.ucloud.udb.models.UpgradeUDBInstanceToHARequest;
import cn.ucloud.udb.models.UpgradeUDBInstanceToHAResponse;
+import cn.ucloud.udb.models.UpgradeUDBVersionRequest;
+import cn.ucloud.udb.models.UpgradeUDBVersionResponse;
import cn.ucloud.udb.models.UploadUDBParamGroupRequest;
import cn.ucloud.udb.models.UploadUDBParamGroupResponse;
@@ -767,6 +771,19 @@ public RestartUDBInstanceResponse restartUDBInstance(RestartUDBInstanceRequest r
return (RestartUDBInstanceResponse) this.invoke(request, RestartUDBInstanceResponse.class);
}
+ /**
+ * RollbackUDBInstance - 回档指定库表
+ *
+ * @param request Request object
+ * @throws UCloudException Exception
+ */
+ public RollbackUDBInstanceResponse rollbackUDBInstance(RollbackUDBInstanceRequest request)
+ throws UCloudException {
+ request.setAction("RollbackUDBInstance");
+ return (RollbackUDBInstanceResponse)
+ this.invoke(request, RollbackUDBInstanceResponse.class);
+ }
+
/**
* SetUDBRWSplitting - 设置读写分离
*
@@ -881,6 +898,18 @@ public UpgradeUDBInstanceToHAResponse upgradeUDBInstanceToHA(
this.invoke(request, UpgradeUDBInstanceToHAResponse.class);
}
+ /**
+ * UpgradeUDBVersion - 升级db实例版本
+ *
+ * @param request Request object
+ * @throws UCloudException Exception
+ */
+ public UpgradeUDBVersionResponse upgradeUDBVersion(UpgradeUDBVersionRequest request)
+ throws UCloudException {
+ request.setAction("UpgradeUDBVersion");
+ return (UpgradeUDBVersionResponse) this.invoke(request, UpgradeUDBVersionResponse.class);
+ }
+
/**
* UploadUDBParamGroup - 导入配置
*
diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/client/UDBClientInterface.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/client/UDBClientInterface.java
index 790636af..a6714c71 100644
--- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/client/UDBClientInterface.java
+++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/client/UDBClientInterface.java
@@ -113,6 +113,8 @@
import cn.ucloud.udb.models.RestartRWSplittingResponse;
import cn.ucloud.udb.models.RestartUDBInstanceRequest;
import cn.ucloud.udb.models.RestartUDBInstanceResponse;
+import cn.ucloud.udb.models.RollbackUDBInstanceRequest;
+import cn.ucloud.udb.models.RollbackUDBInstanceResponse;
import cn.ucloud.udb.models.SetUDBRWSplittingRequest;
import cn.ucloud.udb.models.SetUDBRWSplittingResponse;
import cn.ucloud.udb.models.StartUDBInstanceRequest;
@@ -131,6 +133,8 @@
import cn.ucloud.udb.models.UpdateUDBParamGroupResponse;
import cn.ucloud.udb.models.UpgradeUDBInstanceToHARequest;
import cn.ucloud.udb.models.UpgradeUDBInstanceToHAResponse;
+import cn.ucloud.udb.models.UpgradeUDBVersionRequest;
+import cn.ucloud.udb.models.UpgradeUDBVersionResponse;
import cn.ucloud.udb.models.UploadUDBParamGroupRequest;
import cn.ucloud.udb.models.UploadUDBParamGroupResponse;
@@ -577,6 +581,15 @@ public RestartRWSplittingResponse restartRWSplitting(RestartRWSplittingRequest r
public RestartUDBInstanceResponse restartUDBInstance(RestartUDBInstanceRequest request)
throws UCloudException;
+ /**
+ * RollbackUDBInstance - 回档指定库表
+ *
+ * @param request Request object
+ * @throws UCloudException Exception
+ */
+ public RollbackUDBInstanceResponse rollbackUDBInstance(RollbackUDBInstanceRequest request)
+ throws UCloudException;
+
/**
* SetUDBRWSplitting - 设置读写分离
*
@@ -658,6 +671,15 @@ public UpdateUDBParamGroupResponse updateUDBParamGroup(UpdateUDBParamGroupReques
public UpgradeUDBInstanceToHAResponse upgradeUDBInstanceToHA(
UpgradeUDBInstanceToHARequest request) throws UCloudException;
+ /**
+ * UpgradeUDBVersion - 升级db实例版本
+ *
+ * @param request Request object
+ * @throws UCloudException Exception
+ */
+ public UpgradeUDBVersionResponse upgradeUDBVersion(UpgradeUDBVersionRequest request)
+ throws UCloudException;
+
/**
* UploadUDBParamGroup - 导入配置
*
diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceRequest.java
index 259f7a6e..023a65a0 100644
--- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceRequest.java
+++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceRequest.java
@@ -20,16 +20,19 @@
public class DescribeUDBInstanceRequest extends Request {
- /** 地域。 参见 [地域和可用区列表](../summary/regionlist.html) */
+ /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
@NotEmpty
@UCloudParam("Region")
private String region;
- /** 可用区,不填时默认全部可用区。参见 [可用区列表](../summary/regionlist.html) */
+ /** 可用区,不填时默认全部可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
@UCloudParam("Zone")
private String zone;
- /** 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) */
+ /**
+ * 项目ID。不填写为默认项目,子帐号必须填写。
+ * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
+ */
@UCloudParam("ProjectId")
private String projectId;
@@ -61,6 +64,14 @@ public class DescribeUDBInstanceRequest extends Request {
@UCloudParam("IncludeSlaves")
private Boolean includeSlaves;
+ /** 根据VPCId筛选DB */
+ @UCloudParam("VPCId")
+ private String vpcId;
+
+ /** 根据 业务组 筛选DB */
+ @UCloudParam("Tag")
+ private String tag;
+
public String getRegion() {
return region;
}
@@ -140,4 +151,20 @@ public Boolean getIncludeSlaves() {
public void setIncludeSlaves(Boolean includeSlaves) {
this.includeSlaves = includeSlaves;
}
+
+ public String getVPCId() {
+ return vpcId;
+ }
+
+ public void setVPCId(String vpcId) {
+ this.vpcId = vpcId;
+ }
+
+ public String getTag() {
+ return tag;
+ }
+
+ public void setTag(String tag) {
+ this.tag = tag;
+ }
}
diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceResponse.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceResponse.java
index a2d6d7a6..8134ed45 100644
--- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceResponse.java
+++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceResponse.java
@@ -51,6 +51,10 @@ public static class UDBInstanceSet extends Response {
@SerializedName("Zone")
private String zone;
+ /** 0区分大小写, 1不分区 */
+ @SerializedName("CaseSensitivityParam")
+ private Integer caseSensitivityParam;
+
/**
* 当DB类型为mongodb时,返回该实例所在集群中的角色,包括:mongos、configsrv_sccc、configsrv_csrs、shardsrv_datanode、shardsrv_arbiter,其中congfigsrv分为sccc和csrs两种模式,shardsrv分为datanode和arbiter两种模式
*/
@@ -136,7 +140,8 @@ public static class UDBInstanceSet extends Response {
/**
* DB状态标记
* Init:初始化中,Fail:安装失败,Starting:启动中,Running:运行,Shutdown:关闭中,Shutoff:已关闭,Delete:已删除,Upgrading:升级中,Promoting:提升为独库进行中,Recovering:恢复中,Recover
- * fail:恢复失败
+ * fail:恢复失败,
+ * Remakeing:重做中,RemakeFail:重做失败,VersionUpgrading:小版本升级中,VersionUpgradeWaitForSwitch:高可用等待切换,VersionUpgradeFail:小版本升级失败
*/
@SerializedName("State")
private String state;
@@ -223,6 +228,10 @@ public static class UDBInstanceSet extends Response {
@SerializedName("UserUFileData")
private UFileDataSet userUFileData;
+ /** mysql实例提供具体小版本信息 */
+ @SerializedName("DBSubVersion")
+ private String dbSubVersion;
+
public String getZone() {
return zone;
}
@@ -231,6 +240,14 @@ public void setZone(String zone) {
this.zone = zone;
}
+ public Integer getCaseSensitivityParam() {
+ return caseSensitivityParam;
+ }
+
+ public void setCaseSensitivityParam(Integer caseSensitivityParam) {
+ this.caseSensitivityParam = caseSensitivityParam;
+ }
+
public String getClusterRole() {
return clusterRole;
}
@@ -542,6 +559,14 @@ public UFileDataSet getUserUFileData() {
public void setUserUFileData(UFileDataSet userUFileData) {
this.userUFileData = userUFileData;
}
+
+ public String getDBSubVersion() {
+ return dbSubVersion;
+ }
+
+ public void setDBSubVersion(String dbSubVersion) {
+ this.dbSubVersion = dbSubVersion;
+ }
}
public static class UDBSlaveInstanceSet extends Response {
@@ -613,7 +638,7 @@ public static class UDBSlaveInstanceSet extends Response {
/**
* DB状态标记
* Init:初始化中,Fail:安装失败,Starting:启动中,Running:运行,Shutdown:关闭中,Shutoff:已关闭,Delete:已删除,Upgrading:升级中,Promoting:提升为独库进行中,Recovering:恢复中,Recover
- * fail:恢复失败
+ * fail:恢复失败,Remakeing:重做中,RemakeFail:重做失败
*/
@SerializedName("State")
private String state;
@@ -711,6 +736,10 @@ public static class UDBSlaveInstanceSet extends Response {
@SerializedName("IPv6Address")
private String iPv6Address;
+ /** 0 区分大小写, 1不区分, 只针对mysql8.0 */
+ @SerializedName("CaseSensitivityParam")
+ private Integer caseSensitivityParam;
+
public String getZone() {
return zone;
}
@@ -1014,6 +1043,14 @@ public String getIPv6Address() {
public void setIPv6Address(String iPv6Address) {
this.iPv6Address = iPv6Address;
}
+
+ public Integer getCaseSensitivityParam() {
+ return caseSensitivityParam;
+ }
+
+ public void setCaseSensitivityParam(Integer caseSensitivityParam) {
+ this.caseSensitivityParam = caseSensitivityParam;
+ }
}
public static class UFileDataSet extends Response {
diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceUpgradePriceRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceUpgradePriceRequest.java
index 8a5401a0..8bcc9a35 100644
--- a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceUpgradePriceRequest.java
+++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/DescribeUDBInstanceUpgradePriceRequest.java
@@ -55,6 +55,10 @@ public class DescribeUDBInstanceUpgradePriceRequest extends Request {
@UCloudParam("SSDType")
private String ssdType;
+ /** "SATA_SSD", "NVMe_SSD" */
+ @UCloudParam("InstanceType")
+ private String instanceType;
+
/** 获取指定时间开始后面的升级价格, 不填的话 是默认当前时间 */
@UCloudParam("OrderStartTime")
private Integer orderStartTime;
@@ -115,6 +119,14 @@ public void setSSDType(String ssdType) {
this.ssdType = ssdType;
}
+ public String getInstanceType() {
+ return instanceType;
+ }
+
+ public void setInstanceType(String instanceType) {
+ this.instanceType = instanceType;
+ }
+
public Integer getOrderStartTime() {
return orderStartTime;
}
diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/RollbackUDBInstanceRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/RollbackUDBInstanceRequest.java
new file mode 100644
index 00000000..de617ca3
--- /dev/null
+++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/RollbackUDBInstanceRequest.java
@@ -0,0 +1,74 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ *
http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *
Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.udb.models;
+
+
+import cn.ucloud.common.annotation.NotEmpty;
+import cn.ucloud.common.annotation.UCloudParam;
+import cn.ucloud.common.request.Request;
+
+public class RollbackUDBInstanceRequest extends Request {
+
+ /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Region")
+ private String region;
+
+ /** 源实例的Id */
+ @NotEmpty
+ @UCloudParam("SrcDBId")
+ private String srcDBId;
+
+ /** 恢复到某个时间点的时间戳(UTC时间格式,默认单位秒) */
+ @NotEmpty
+ @UCloudParam("RecoveryTime")
+ private String recoveryTime;
+
+ /** 指定需要恢复的表,格式为(库名.表名), 指定多个用逗号隔开,eg: [ udb.test, mysql_school.my_student] */
+ @NotEmpty
+ @UCloudParam("Tables")
+ private String tables;
+
+ public String getRegion() {
+ return region;
+ }
+
+ public void setRegion(String region) {
+ this.region = region;
+ }
+
+ public String getSrcDBId() {
+ return srcDBId;
+ }
+
+ public void setSrcDBId(String srcDBId) {
+ this.srcDBId = srcDBId;
+ }
+
+ public String getRecoveryTime() {
+ return recoveryTime;
+ }
+
+ public void setRecoveryTime(String recoveryTime) {
+ this.recoveryTime = recoveryTime;
+ }
+
+ public String getTables() {
+ return tables;
+ }
+
+ public void setTables(String tables) {
+ this.tables = tables;
+ }
+}
diff --git a/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/models/FreezeMemberRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/RollbackUDBInstanceResponse.java
similarity index 55%
rename from ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/models/FreezeMemberRequest.java
rename to ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/RollbackUDBInstanceResponse.java
index dec77420..e658cef7 100644
--- a/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/models/FreezeMemberRequest.java
+++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/RollbackUDBInstanceResponse.java
@@ -11,25 +11,24 @@
* express or implied. See the License for the specific language governing permissions and
* limitations under the License.
*/
-package cn.ucloud.uaccount.models;
+package cn.ucloud.udb.models;
-import cn.ucloud.common.annotation.NotEmpty;
-import cn.ucloud.common.annotation.UCloudParam;
-import cn.ucloud.common.request.Request;
+import cn.ucloud.common.response.Response;
-public class FreezeMemberRequest extends Request {
+import com.google.gson.annotations.SerializedName;
- /** 需要被冻结的成员Email */
- @NotEmpty
- @UCloudParam("MemberEmail")
- private String memberEmail;
+public class RollbackUDBInstanceResponse extends Response {
- public String getMemberEmail() {
- return memberEmail;
+ /** 源实例的Id */
+ @SerializedName("DBId")
+ private String dbId;
+
+ public String getDBId() {
+ return dbId;
}
- public void setMemberEmail(String memberEmail) {
- this.memberEmail = memberEmail;
+ public void setDBId(String dbId) {
+ this.dbId = dbId;
}
}
diff --git a/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/UpgradeUDBVersionRequest.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/UpgradeUDBVersionRequest.java
new file mode 100644
index 00000000..023fa36c
--- /dev/null
+++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/UpgradeUDBVersionRequest.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.udb.models;
+
+
+import cn.ucloud.common.annotation.NotEmpty;
+import cn.ucloud.common.annotation.UCloudParam;
+import cn.ucloud.common.request.Request;
+
+public class UpgradeUDBVersionRequest 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;
+
+ /** db实例资源id */
+ @NotEmpty
+ @UCloudParam("DBId")
+ private String dbId;
+
+ /** db需要升级的小版本 */
+ @NotEmpty
+ @UCloudParam("DBSubVersion")
+ private String dbSubVersion;
+
+ /**
+ * 切换类型,可选值为"immediately"和"customize",分别代表立即切换和自定义切换时间,自定义切换时间需要填写SwitchStartTime和SwitchEndTime
+ */
+ @NotEmpty
+ @UCloudParam("SwitchType")
+ private String switchType;
+
+ /** 该值为一个unix时间戳,代表开始切换实例的时间 */
+ @UCloudParam("SwitchStartTime")
+ private Integer switchStartTime;
+
+ /** 该值为一个unix时间戳,代表开始预期切换实例结束的时间 */
+ @UCloudParam("SwitchEndTime")
+ private Integer switchEndTime;
+
+ public String getRegion() {
+ return region;
+ }
+
+ public void setRegion(String region) {
+ this.region = region;
+ }
+
+ public String getZone() {
+ return zone;
+ }
+
+ public void setZone(String zone) {
+ this.zone = zone;
+ }
+
+ public String getProjectId() {
+ return projectId;
+ }
+
+ public void setProjectId(String projectId) {
+ this.projectId = projectId;
+ }
+
+ public String getDBId() {
+ return dbId;
+ }
+
+ public void setDBId(String dbId) {
+ this.dbId = dbId;
+ }
+
+ public String getDBSubVersion() {
+ return dbSubVersion;
+ }
+
+ public void setDBSubVersion(String dbSubVersion) {
+ this.dbSubVersion = dbSubVersion;
+ }
+
+ public String getSwitchType() {
+ return switchType;
+ }
+
+ public void setSwitchType(String switchType) {
+ this.switchType = switchType;
+ }
+
+ public Integer getSwitchStartTime() {
+ return switchStartTime;
+ }
+
+ public void setSwitchStartTime(Integer switchStartTime) {
+ this.switchStartTime = switchStartTime;
+ }
+
+ public Integer getSwitchEndTime() {
+ return switchEndTime;
+ }
+
+ public void setSwitchEndTime(Integer switchEndTime) {
+ this.switchEndTime = switchEndTime;
+ }
+}
diff --git a/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/models/FreezeMemberResponse.java b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/UpgradeUDBVersionResponse.java
similarity index 88%
rename from ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/models/FreezeMemberResponse.java
rename to ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/UpgradeUDBVersionResponse.java
index 3c1c1949..7c3fa2d7 100644
--- a/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/models/FreezeMemberResponse.java
+++ b/ucloud-sdk-java-udb/src/main/java/cn/ucloud/udb/models/UpgradeUDBVersionResponse.java
@@ -11,10 +11,10 @@
* express or implied. See the License for the specific language governing permissions and
* limitations under the License.
*/
-package cn.ucloud.uaccount.models;
+package cn.ucloud.udb.models;
import cn.ucloud.common.response.Response;
-public class FreezeMemberResponse extends Response {}
+public class UpgradeUDBVersionResponse extends Response {}
diff --git a/ucloud-sdk-java-udbproxy/pom.xml b/ucloud-sdk-java-udbproxy/pom.xml
index b3ee0a48..fba8b4f4 100644
--- a/ucloud-sdk-java-udbproxy/pom.xml
+++ b/ucloud-sdk-java-udbproxy/pom.xml
@@ -5,18 +5,18 @@
ucloud-sdk-java
cn.ucloud
- 1.2.16-release
+ 1.2.17-release
4.0.0
ucloud-sdk-java-udbproxy
- 1.2.16-release
+ 1.2.17-release
cn.ucloud
ucloud-sdk-java-common
- 1.2.16-release
+ 1.2.17-release
diff --git a/ucloud-sdk-java-udi/pom.xml b/ucloud-sdk-java-udi/pom.xml
index bc6ec710..40275062 100644
--- a/ucloud-sdk-java-udi/pom.xml
+++ b/ucloud-sdk-java-udi/pom.xml
@@ -5,18 +5,18 @@
ucloud-sdk-java
cn.ucloud
- 1.2.16-release
+ 1.2.17-release
4.0.0
ucloud-sdk-java-udi
- 1.2.16-release
+ 1.2.17-release
cn.ucloud
ucloud-sdk-java-common
- 1.2.16-release
+ 1.2.17-release
diff --git a/ucloud-sdk-java-udisk/pom.xml b/ucloud-sdk-java-udisk/pom.xml
index 084c039b..9bf1db45 100644
--- a/ucloud-sdk-java-udisk/pom.xml
+++ b/ucloud-sdk-java-udisk/pom.xml
@@ -5,18 +5,18 @@
ucloud-sdk-java
cn.ucloud
- 1.2.16-release
+ 1.2.17-release
4.0.0
ucloud-sdk-java-udisk
- 1.2.16-release
+ 1.2.17-release
cn.ucloud
ucloud-sdk-java-common
- 1.2.16-release
+ 1.2.17-release
diff --git a/ucloud-sdk-java-udpn/pom.xml b/ucloud-sdk-java-udpn/pom.xml
index 2bf3cdf2..25c40c54 100644
--- a/ucloud-sdk-java-udpn/pom.xml
+++ b/ucloud-sdk-java-udpn/pom.xml
@@ -5,18 +5,18 @@
ucloud-sdk-java
cn.ucloud
- 1.2.16-release
+ 1.2.17-release
4.0.0
ucloud-sdk-java-udpn
- 1.2.16-release
+ 1.2.17-release
cn.ucloud
ucloud-sdk-java-common
- 1.2.16-release
+ 1.2.17-release
diff --git a/ucloud-sdk-java-uec/pom.xml b/ucloud-sdk-java-uec/pom.xml
index 24d8be70..9682ca95 100644
--- a/ucloud-sdk-java-uec/pom.xml
+++ b/ucloud-sdk-java-uec/pom.xml
@@ -5,18 +5,18 @@
ucloud-sdk-java
cn.ucloud
- 1.2.16-release
+ 1.2.17-release
4.0.0
ucloud-sdk-java-uec
- 1.2.16-release
+ 1.2.17-release
cn.ucloud
ucloud-sdk-java-common
- 1.2.16-release
+ 1.2.17-release
diff --git a/ucloud-sdk-java-uewaf/pom.xml b/ucloud-sdk-java-uewaf/pom.xml
index fa218702..bdf3a6cb 100644
--- a/ucloud-sdk-java-uewaf/pom.xml
+++ b/ucloud-sdk-java-uewaf/pom.xml
@@ -5,18 +5,18 @@
ucloud-sdk-java
cn.ucloud
- 1.2.16-release
+ 1.2.17-release
4.0.0
ucloud-sdk-java-uewaf
- 1.2.16-release
+ 1.2.17-release
cn.ucloud
ucloud-sdk-java-common
- 1.2.16-release
+ 1.2.17-release
diff --git a/ucloud-sdk-java-ufile/pom.xml b/ucloud-sdk-java-ufile/pom.xml
index 043d5d98..854bee9b 100644
--- a/ucloud-sdk-java-ufile/pom.xml
+++ b/ucloud-sdk-java-ufile/pom.xml
@@ -5,18 +5,18 @@
ucloud-sdk-java
cn.ucloud
- 1.2.16-release
+ 1.2.17-release
4.0.0
ucloud-sdk-java-ufile
- 1.2.16-release
+ 1.2.17-release
cn.ucloud
ucloud-sdk-java-common
- 1.2.16-release
+ 1.2.17-release
diff --git a/ucloud-sdk-java-ufs/pom.xml b/ucloud-sdk-java-ufs/pom.xml
index 199ac35a..a400e283 100644
--- a/ucloud-sdk-java-ufs/pom.xml
+++ b/ucloud-sdk-java-ufs/pom.xml
@@ -5,18 +5,18 @@
ucloud-sdk-java
cn.ucloud
- 1.2.16-release
+ 1.2.17-release
4.0.0
ucloud-sdk-java-ufs
- 1.2.16-release
+ 1.2.17-release
cn.ucloud
ucloud-sdk-java-common
- 1.2.16-release
+ 1.2.17-release
diff --git a/ucloud-sdk-java-uhost/pom.xml b/ucloud-sdk-java-uhost/pom.xml
index 35d7ae70..34f69a63 100644
--- a/ucloud-sdk-java-uhost/pom.xml
+++ b/ucloud-sdk-java-uhost/pom.xml
@@ -5,18 +5,18 @@
ucloud-sdk-java
cn.ucloud
- 1.2.16-release
+ 1.2.17-release
4.0.0
ucloud-sdk-java-uhost
- 1.2.16-release
+ 1.2.17-release
cn.ucloud
ucloud-sdk-java-common
- 1.2.16-release
+ 1.2.17-release
diff --git a/ucloud-sdk-java-uk8s/pom.xml b/ucloud-sdk-java-uk8s/pom.xml
index a4942631..041dd184 100644
--- a/ucloud-sdk-java-uk8s/pom.xml
+++ b/ucloud-sdk-java-uk8s/pom.xml
@@ -5,18 +5,18 @@
ucloud-sdk-java
cn.ucloud
- 1.2.16-release
+ 1.2.17-release
4.0.0
ucloud-sdk-java-uk8s
- 1.2.16-release
+ 1.2.17-release
cn.ucloud
ucloud-sdk-java-common
- 1.2.16-release
+ 1.2.17-release
diff --git a/ucloud-sdk-java-ulb/pom.xml b/ucloud-sdk-java-ulb/pom.xml
index 83d2dc4c..8ec267c5 100644
--- a/ucloud-sdk-java-ulb/pom.xml
+++ b/ucloud-sdk-java-ulb/pom.xml
@@ -5,18 +5,18 @@
ucloud-sdk-java
cn.ucloud
- 1.2.16-release
+ 1.2.17-release
4.0.0
ucloud-sdk-java-ulb
- 1.2.16-release
+ 1.2.17-release
cn.ucloud
ucloud-sdk-java-common
- 1.2.16-release
+ 1.2.17-release
diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/client/ULBClient.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/client/ULBClient.java
index 10b6e14d..fd101b14 100644
--- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/client/ULBClient.java
+++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/client/ULBClient.java
@@ -17,10 +17,16 @@
import cn.ucloud.common.config.Config;
import cn.ucloud.common.credential.Credential;
import cn.ucloud.common.exception.UCloudException;
+import cn.ucloud.ulb.models.AddTargetsRequest;
+import cn.ucloud.ulb.models.AddTargetsResponse;
import cn.ucloud.ulb.models.AllocateBackendRequest;
import cn.ucloud.ulb.models.AllocateBackendResponse;
import cn.ucloud.ulb.models.BindSSLRequest;
import cn.ucloud.ulb.models.BindSSLResponse;
+import cn.ucloud.ulb.models.CreateListenerRequest;
+import cn.ucloud.ulb.models.CreateListenerResponse;
+import cn.ucloud.ulb.models.CreateLoadBalancerRequest;
+import cn.ucloud.ulb.models.CreateLoadBalancerResponse;
import cn.ucloud.ulb.models.CreatePolicyRequest;
import cn.ucloud.ulb.models.CreatePolicyResponse;
import cn.ucloud.ulb.models.CreateSSLRequest;
@@ -31,8 +37,14 @@
import cn.ucloud.ulb.models.CreateULBResponse;
import cn.ucloud.ulb.models.CreateVServerRequest;
import cn.ucloud.ulb.models.CreateVServerResponse;
+import cn.ucloud.ulb.models.DeleteListenerRequest;
+import cn.ucloud.ulb.models.DeleteListenerResponse;
+import cn.ucloud.ulb.models.DeleteLoadBalancerRequest;
+import cn.ucloud.ulb.models.DeleteLoadBalancerResponse;
import cn.ucloud.ulb.models.DeletePolicyRequest;
import cn.ucloud.ulb.models.DeletePolicyResponse;
+import cn.ucloud.ulb.models.DeleteRuleRequest;
+import cn.ucloud.ulb.models.DeleteRuleResponse;
import cn.ucloud.ulb.models.DeleteSSLRequest;
import cn.ucloud.ulb.models.DeleteSSLResponse;
import cn.ucloud.ulb.models.DeleteSecurityPolicyRequest;
@@ -55,20 +67,30 @@
import cn.ucloud.ulb.models.DescribeVServerResponse;
import cn.ucloud.ulb.models.ReleaseBackendRequest;
import cn.ucloud.ulb.models.ReleaseBackendResponse;
+import cn.ucloud.ulb.models.RemoveTargetsRequest;
+import cn.ucloud.ulb.models.RemoveTargetsResponse;
import cn.ucloud.ulb.models.UnBindSecurityPolicyRequest;
import cn.ucloud.ulb.models.UnBindSecurityPolicyResponse;
import cn.ucloud.ulb.models.UnbindSSLRequest;
import cn.ucloud.ulb.models.UnbindSSLResponse;
import cn.ucloud.ulb.models.UpdateBackendAttributeRequest;
import cn.ucloud.ulb.models.UpdateBackendAttributeResponse;
+import cn.ucloud.ulb.models.UpdateListenerAttributeRequest;
+import cn.ucloud.ulb.models.UpdateListenerAttributeResponse;
+import cn.ucloud.ulb.models.UpdateLoadBalancerAttributeRequest;
+import cn.ucloud.ulb.models.UpdateLoadBalancerAttributeResponse;
import cn.ucloud.ulb.models.UpdatePolicyRequest;
import cn.ucloud.ulb.models.UpdatePolicyResponse;
+import cn.ucloud.ulb.models.UpdateRuleAttributeRequest;
+import cn.ucloud.ulb.models.UpdateRuleAttributeResponse;
import cn.ucloud.ulb.models.UpdateSSLAttributeRequest;
import cn.ucloud.ulb.models.UpdateSSLAttributeResponse;
import cn.ucloud.ulb.models.UpdateSSLBindingRequest;
import cn.ucloud.ulb.models.UpdateSSLBindingResponse;
import cn.ucloud.ulb.models.UpdateSecurityPolicyRequest;
import cn.ucloud.ulb.models.UpdateSecurityPolicyResponse;
+import cn.ucloud.ulb.models.UpdateTargetsAttributeRequest;
+import cn.ucloud.ulb.models.UpdateTargetsAttributeResponse;
import cn.ucloud.ulb.models.UpdateULBAttributeRequest;
import cn.ucloud.ulb.models.UpdateULBAttributeResponse;
import cn.ucloud.ulb.models.UpdateVServerAttributeRequest;
@@ -80,6 +102,17 @@ public ULBClient(Config config, Credential credential) {
super(config, credential);
}
+ /**
+ * AddTargets - 添加后端服务节点
+ *
+ * @param request Request object
+ * @throws UCloudException Exception
+ */
+ public AddTargetsResponse addTargets(AddTargetsRequest request) throws UCloudException {
+ request.setAction("AddTargets");
+ return (AddTargetsResponse) this.invoke(request, AddTargetsResponse.class);
+ }
+
/**
* AllocateBackend - 添加后端实例
*
@@ -103,6 +136,30 @@ public BindSSLResponse bindSSL(BindSSLRequest request) throws UCloudException {
return (BindSSLResponse) this.invoke(request, BindSSLResponse.class);
}
+ /**
+ * CreateListener - 创建监听器
+ *
+ * @param request Request object
+ * @throws UCloudException Exception
+ */
+ public CreateListenerResponse createListener(CreateListenerRequest request)
+ throws UCloudException {
+ request.setAction("CreateListener");
+ return (CreateListenerResponse) this.invoke(request, CreateListenerResponse.class);
+ }
+
+ /**
+ * CreateLoadBalancer - 创建负载均衡实例
+ *
+ * @param request Request object
+ * @throws UCloudException Exception
+ */
+ public CreateLoadBalancerResponse createLoadBalancer(CreateLoadBalancerRequest request)
+ throws UCloudException {
+ request.setAction("CreateLoadBalancer");
+ return (CreateLoadBalancerResponse) this.invoke(request, CreateLoadBalancerResponse.class);
+ }
+
/**
* CreatePolicy - 创建内容转发策略
*
@@ -161,6 +218,30 @@ public CreateVServerResponse createVServer(CreateVServerRequest request)
return (CreateVServerResponse) this.invoke(request, CreateVServerResponse.class);
}
+ /**
+ * DeleteListener - 删除监听器
+ *
+ * @param request Request object
+ * @throws UCloudException Exception
+ */
+ public DeleteListenerResponse deleteListener(DeleteListenerRequest request)
+ throws UCloudException {
+ request.setAction("DeleteListener");
+ return (DeleteListenerResponse) this.invoke(request, DeleteListenerResponse.class);
+ }
+
+ /**
+ * DeleteLoadBalancer - 删除负载均衡实例
+ *
+ * @param request Request object
+ * @throws UCloudException Exception
+ */
+ public DeleteLoadBalancerResponse deleteLoadBalancer(DeleteLoadBalancerRequest request)
+ throws UCloudException {
+ request.setAction("DeleteLoadBalancer");
+ return (DeleteLoadBalancerResponse) this.invoke(request, DeleteLoadBalancerResponse.class);
+ }
+
/**
* DeletePolicy - 删除转发策略
*
@@ -172,6 +253,17 @@ public DeletePolicyResponse deletePolicy(DeletePolicyRequest request) throws UCl
return (DeletePolicyResponse) this.invoke(request, DeletePolicyResponse.class);
}
+ /**
+ * DeleteRule - 删除转发规则
+ *
+ * @param request Request object
+ * @throws UCloudException Exception
+ */
+ public DeleteRuleResponse deleteRule(DeleteRuleRequest request) throws UCloudException {
+ request.setAction("DeleteRule");
+ return (DeleteRuleResponse) this.invoke(request, DeleteRuleResponse.class);
+ }
+
/**
* DeleteSSL - 删除SSL证书
*
@@ -303,6 +395,18 @@ public ReleaseBackendResponse releaseBackend(ReleaseBackendRequest request)
return (ReleaseBackendResponse) this.invoke(request, ReleaseBackendResponse.class);
}
+ /**
+ * RemoveTargets - 删除后端服务节点
+ *
+ * @param request Request object
+ * @throws UCloudException Exception
+ */
+ public RemoveTargetsResponse removeTargets(RemoveTargetsRequest request)
+ throws UCloudException {
+ request.setAction("RemoveTargets");
+ return (RemoveTargetsResponse) this.invoke(request, RemoveTargetsResponse.class);
+ }
+
/**
* UnBindSecurityPolicy - 解绑安全策略
*
@@ -340,6 +444,32 @@ public UpdateBackendAttributeResponse updateBackendAttribute(
this.invoke(request, UpdateBackendAttributeResponse.class);
}
+ /**
+ * UpdateListenerAttribute - 更新监听器属性
+ *
+ * @param request Request object
+ * @throws UCloudException Exception
+ */
+ public UpdateListenerAttributeResponse updateListenerAttribute(
+ UpdateListenerAttributeRequest request) throws UCloudException {
+ request.setAction("UpdateListenerAttribute");
+ return (UpdateListenerAttributeResponse)
+ this.invoke(request, UpdateListenerAttributeResponse.class);
+ }
+
+ /**
+ * UpdateLoadBalancerAttribute - 更新负载均衡实例属性
+ *
+ * @param request Request object
+ * @throws UCloudException Exception
+ */
+ public UpdateLoadBalancerAttributeResponse updateLoadBalancerAttribute(
+ UpdateLoadBalancerAttributeRequest request) throws UCloudException {
+ request.setAction("UpdateLoadBalancerAttribute");
+ return (UpdateLoadBalancerAttributeResponse)
+ this.invoke(request, UpdateLoadBalancerAttributeResponse.class);
+ }
+
/**
* UpdatePolicy - 更新内容转发规则
*
@@ -351,6 +481,19 @@ public UpdatePolicyResponse updatePolicy(UpdatePolicyRequest request) throws UCl
return (UpdatePolicyResponse) this.invoke(request, UpdatePolicyResponse.class);
}
+ /**
+ * UpdateRuleAttribute - 更新转发规则属性
+ *
+ * @param request Request object
+ * @throws UCloudException Exception
+ */
+ public UpdateRuleAttributeResponse updateRuleAttribute(UpdateRuleAttributeRequest request)
+ throws UCloudException {
+ request.setAction("UpdateRuleAttribute");
+ return (UpdateRuleAttributeResponse)
+ this.invoke(request, UpdateRuleAttributeResponse.class);
+ }
+
/**
* UpdateSSLAttribute - 更新SSL属性
*
@@ -388,6 +531,19 @@ public UpdateSecurityPolicyResponse updateSecurityPolicy(UpdateSecurityPolicyReq
this.invoke(request, UpdateSecurityPolicyResponse.class);
}
+ /**
+ * UpdateTargetsAttribute - 更新后端服务节点属性
+ *
+ * @param request Request object
+ * @throws UCloudException Exception
+ */
+ public UpdateTargetsAttributeResponse updateTargetsAttribute(
+ UpdateTargetsAttributeRequest request) throws UCloudException {
+ request.setAction("UpdateTargetsAttribute");
+ return (UpdateTargetsAttributeResponse)
+ this.invoke(request, UpdateTargetsAttributeResponse.class);
+ }
+
/**
* UpdateULBAttribute - 更新负载均衡属性
*
diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/client/ULBClientInterface.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/client/ULBClientInterface.java
index 0d9ba846..b05bdb32 100644
--- a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/client/ULBClientInterface.java
+++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/client/ULBClientInterface.java
@@ -15,10 +15,16 @@
import cn.ucloud.common.client.Client;
import cn.ucloud.common.exception.UCloudException;
+import cn.ucloud.ulb.models.AddTargetsRequest;
+import cn.ucloud.ulb.models.AddTargetsResponse;
import cn.ucloud.ulb.models.AllocateBackendRequest;
import cn.ucloud.ulb.models.AllocateBackendResponse;
import cn.ucloud.ulb.models.BindSSLRequest;
import cn.ucloud.ulb.models.BindSSLResponse;
+import cn.ucloud.ulb.models.CreateListenerRequest;
+import cn.ucloud.ulb.models.CreateListenerResponse;
+import cn.ucloud.ulb.models.CreateLoadBalancerRequest;
+import cn.ucloud.ulb.models.CreateLoadBalancerResponse;
import cn.ucloud.ulb.models.CreatePolicyRequest;
import cn.ucloud.ulb.models.CreatePolicyResponse;
import cn.ucloud.ulb.models.CreateSSLRequest;
@@ -29,8 +35,14 @@
import cn.ucloud.ulb.models.CreateULBResponse;
import cn.ucloud.ulb.models.CreateVServerRequest;
import cn.ucloud.ulb.models.CreateVServerResponse;
+import cn.ucloud.ulb.models.DeleteListenerRequest;
+import cn.ucloud.ulb.models.DeleteListenerResponse;
+import cn.ucloud.ulb.models.DeleteLoadBalancerRequest;
+import cn.ucloud.ulb.models.DeleteLoadBalancerResponse;
import cn.ucloud.ulb.models.DeletePolicyRequest;
import cn.ucloud.ulb.models.DeletePolicyResponse;
+import cn.ucloud.ulb.models.DeleteRuleRequest;
+import cn.ucloud.ulb.models.DeleteRuleResponse;
import cn.ucloud.ulb.models.DeleteSSLRequest;
import cn.ucloud.ulb.models.DeleteSSLResponse;
import cn.ucloud.ulb.models.DeleteSecurityPolicyRequest;
@@ -53,20 +65,30 @@
import cn.ucloud.ulb.models.DescribeVServerResponse;
import cn.ucloud.ulb.models.ReleaseBackendRequest;
import cn.ucloud.ulb.models.ReleaseBackendResponse;
+import cn.ucloud.ulb.models.RemoveTargetsRequest;
+import cn.ucloud.ulb.models.RemoveTargetsResponse;
import cn.ucloud.ulb.models.UnBindSecurityPolicyRequest;
import cn.ucloud.ulb.models.UnBindSecurityPolicyResponse;
import cn.ucloud.ulb.models.UnbindSSLRequest;
import cn.ucloud.ulb.models.UnbindSSLResponse;
import cn.ucloud.ulb.models.UpdateBackendAttributeRequest;
import cn.ucloud.ulb.models.UpdateBackendAttributeResponse;
+import cn.ucloud.ulb.models.UpdateListenerAttributeRequest;
+import cn.ucloud.ulb.models.UpdateListenerAttributeResponse;
+import cn.ucloud.ulb.models.UpdateLoadBalancerAttributeRequest;
+import cn.ucloud.ulb.models.UpdateLoadBalancerAttributeResponse;
import cn.ucloud.ulb.models.UpdatePolicyRequest;
import cn.ucloud.ulb.models.UpdatePolicyResponse;
+import cn.ucloud.ulb.models.UpdateRuleAttributeRequest;
+import cn.ucloud.ulb.models.UpdateRuleAttributeResponse;
import cn.ucloud.ulb.models.UpdateSSLAttributeRequest;
import cn.ucloud.ulb.models.UpdateSSLAttributeResponse;
import cn.ucloud.ulb.models.UpdateSSLBindingRequest;
import cn.ucloud.ulb.models.UpdateSSLBindingResponse;
import cn.ucloud.ulb.models.UpdateSecurityPolicyRequest;
import cn.ucloud.ulb.models.UpdateSecurityPolicyResponse;
+import cn.ucloud.ulb.models.UpdateTargetsAttributeRequest;
+import cn.ucloud.ulb.models.UpdateTargetsAttributeResponse;
import cn.ucloud.ulb.models.UpdateULBAttributeRequest;
import cn.ucloud.ulb.models.UpdateULBAttributeResponse;
import cn.ucloud.ulb.models.UpdateVServerAttributeRequest;
@@ -75,6 +97,14 @@
/** This client is used to call actions of **ULB** service */
public interface ULBClientInterface extends Client {
+ /**
+ * AddTargets - 添加后端服务节点
+ *
+ * @param request Request object
+ * @throws UCloudException Exception
+ */
+ public AddTargetsResponse addTargets(AddTargetsRequest request) throws UCloudException;
+
/**
* AllocateBackend - 添加后端实例
*
@@ -92,6 +122,24 @@ public AllocateBackendResponse allocateBackend(AllocateBackendRequest request)
*/
public BindSSLResponse bindSSL(BindSSLRequest request) throws UCloudException;
+ /**
+ * CreateListener - 创建监听器
+ *
+ * @param request Request object
+ * @throws UCloudException Exception
+ */
+ public CreateListenerResponse createListener(CreateListenerRequest request)
+ throws UCloudException;
+
+ /**
+ * CreateLoadBalancer - 创建负载均衡实例
+ *
+ * @param request Request object
+ * @throws UCloudException Exception
+ */
+ public CreateLoadBalancerResponse createLoadBalancer(CreateLoadBalancerRequest request)
+ throws UCloudException;
+
/**
* CreatePolicy - 创建内容转发策略
*
@@ -133,6 +181,24 @@ public CreateSecurityPolicyResponse createSecurityPolicy(CreateSecurityPolicyReq
*/
public CreateVServerResponse createVServer(CreateVServerRequest request) throws UCloudException;
+ /**
+ * DeleteListener - 删除监听器
+ *
+ * @param request Request object
+ * @throws UCloudException Exception
+ */
+ public DeleteListenerResponse deleteListener(DeleteListenerRequest request)
+ throws UCloudException;
+
+ /**
+ * DeleteLoadBalancer - 删除负载均衡实例
+ *
+ * @param request Request object
+ * @throws UCloudException Exception
+ */
+ public DeleteLoadBalancerResponse deleteLoadBalancer(DeleteLoadBalancerRequest request)
+ throws UCloudException;
+
/**
* DeletePolicy - 删除转发策略
*
@@ -141,6 +207,14 @@ public CreateSecurityPolicyResponse createSecurityPolicy(CreateSecurityPolicyReq
*/
public DeletePolicyResponse deletePolicy(DeletePolicyRequest request) throws UCloudException;
+ /**
+ * DeleteRule - 删除转发规则
+ *
+ * @param request Request object
+ * @throws UCloudException Exception
+ */
+ public DeleteRuleResponse deleteRule(DeleteRuleRequest request) throws UCloudException;
+
/**
* DeleteSSL - 删除SSL证书
*
@@ -235,6 +309,14 @@ public DescribeVServerResponse describeVServer(DescribeVServerRequest request)
public ReleaseBackendResponse releaseBackend(ReleaseBackendRequest request)
throws UCloudException;
+ /**
+ * RemoveTargets - 删除后端服务节点
+ *
+ * @param request Request object
+ * @throws UCloudException Exception
+ */
+ public RemoveTargetsResponse removeTargets(RemoveTargetsRequest request) throws UCloudException;
+
/**
* UnBindSecurityPolicy - 解绑安全策略
*
@@ -261,6 +343,24 @@ public UnBindSecurityPolicyResponse unBindSecurityPolicy(UnBindSecurityPolicyReq
public UpdateBackendAttributeResponse updateBackendAttribute(
UpdateBackendAttributeRequest request) throws UCloudException;
+ /**
+ * UpdateListenerAttribute - 更新监听器属性
+ *
+ * @param request Request object
+ * @throws UCloudException Exception
+ */
+ public UpdateListenerAttributeResponse updateListenerAttribute(
+ UpdateListenerAttributeRequest request) throws UCloudException;
+
+ /**
+ * UpdateLoadBalancerAttribute - 更新负载均衡实例属性
+ *
+ * @param request Request object
+ * @throws UCloudException Exception
+ */
+ public UpdateLoadBalancerAttributeResponse updateLoadBalancerAttribute(
+ UpdateLoadBalancerAttributeRequest request) throws UCloudException;
+
/**
* UpdatePolicy - 更新内容转发规则
*
@@ -269,6 +369,15 @@ public UpdateBackendAttributeResponse updateBackendAttribute(
*/
public UpdatePolicyResponse updatePolicy(UpdatePolicyRequest request) throws UCloudException;
+ /**
+ * UpdateRuleAttribute - 更新转发规则属性
+ *
+ * @param request Request object
+ * @throws UCloudException Exception
+ */
+ public UpdateRuleAttributeResponse updateRuleAttribute(UpdateRuleAttributeRequest request)
+ throws UCloudException;
+
/**
* UpdateSSLAttribute - 更新SSL属性
*
@@ -296,6 +405,15 @@ public UpdateSSLBindingResponse updateSSLBinding(UpdateSSLBindingRequest request
public UpdateSecurityPolicyResponse updateSecurityPolicy(UpdateSecurityPolicyRequest request)
throws UCloudException;
+ /**
+ * UpdateTargetsAttribute - 更新后端服务节点属性
+ *
+ * @param request Request object
+ * @throws UCloudException Exception
+ */
+ public UpdateTargetsAttributeResponse updateTargetsAttribute(
+ UpdateTargetsAttributeRequest request) throws UCloudException;
+
/**
* UpdateULBAttribute - 更新负载均衡属性
*
diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/AddTargetsRequest.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/AddTargetsRequest.java
new file mode 100644
index 00000000..8e030881
--- /dev/null
+++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/AddTargetsRequest.java
@@ -0,0 +1,204 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ *
http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *
Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.ulb.models;
+
+import cn.ucloud.common.annotation.NotEmpty;
+import cn.ucloud.common.annotation.UCloudParam;
+import cn.ucloud.common.request.Request;
+
+import java.util.List;
+
+public class AddTargetsRequest extends Request {
+
+ /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Region")
+ private String region;
+
+ /**
+ * 项目ID。不填写为默认项目,子帐号必须填写。
+ * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
+ */
+ @NotEmpty
+ @UCloudParam("ProjectId")
+ private String projectId;
+
+ /** 负载均衡实例的ID */
+ @NotEmpty
+ @UCloudParam("LoadBalancerId")
+ private String loadBalancerId;
+
+ /** 监听器的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 getLoadBalancerId() {
+ return loadBalancerId;
+ }
+
+ public void setLoadBalancerId(String loadBalancerId) {
+ this.loadBalancerId = loadBalancerId;
+ }
+
+ public String getListenerId() {
+ return listenerId;
+ }
+
+ public void setListenerId(String listenerId) {
+ this.listenerId = listenerId;
+ }
+
+ public 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信息。在相关资源被删除时,非IP类型会把相关资源从lb中剔除,IP类型不保证这个逻辑
+ */
+ @UCloudParam("ResourceType")
+ private String resourceType;
+
+ /** 服务节点的资源ID。在非IP类型时,必传 */
+ @UCloudParam("ResourceId")
+ private String resourceId;
+
+ /** 服务节点的VPC资源ID。在IP类型时,必传 */
+ @UCloudParam("VPCId")
+ private String vpcId;
+
+ /** 服务节点的子网资源ID。在IP类型时,必传 */
+ @UCloudParam("SubnetId")
+ private String subnetId;
+
+ /** 服务节点的IP。在IP类型时,必传 */
+ @UCloudParam("ResourceIP")
+ private String resourceIP;
+
+ /** 服务节点的端口。限定取值:[1-65535],默认值80 */
+ @UCloudParam("Port")
+ private Integer port;
+
+ /** 服务节点的权重。限定取值:[1-100],默认值1;仅在加权轮询算法时有效 */
+ @UCloudParam("Weight")
+ private Integer weight;
+
+ /** 服务节点是否启用。默认值true */
+ @UCloudParam("Enabled")
+ private Boolean enabled;
+
+ /** 服务节点是否为备节点。默认值false */
+ @UCloudParam("IsBackup")
+ private Boolean isBackup;
+
+ 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 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 Boolean getIsBackup() {
+ return isBackup;
+ }
+
+ public void setIsBackup(Boolean isBackup) {
+ this.isBackup = isBackup;
+ }
+ }
+}
diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/AddTargetsResponse.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/AddTargetsResponse.java
new file mode 100644
index 00000000..d1b5af76
--- /dev/null
+++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/AddTargetsResponse.java
@@ -0,0 +1,174 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ *
http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *
Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.ulb.models;
+
+import cn.ucloud.common.response.Response;
+
+import com.google.gson.annotations.SerializedName;
+
+import java.util.List;
+
+public class AddTargetsResponse extends Response {
+
+ /** 服务节点信息 */
+ @SerializedName("Targets")
+ private List targets;
+
+ public List getTargets() {
+ return targets;
+ }
+
+ public void setTargets(List targets) {
+ this.targets = targets;
+ }
+
+ public static class TargetSet extends Response {
+
+ /**
+ * 服务节点的类型。限定枚举值:UHost -> 云主机,UNI -> 虚拟网卡,UPM -> 物理云主机,IP -> IP类型; 默认值:"UHost";
+ * 非IP类型,如果该资源有多个IP,将只能添加主IP; 非IP类型,展示时,会显示相关资源信息,IP类型只展示IP信息。
+ * 在相关资源被删除时,非IP类型会把相关资源从lb中剔除,IP类型不保证这个逻辑
+ */
+ @SerializedName("ResourceType")
+ private String resourceType;
+
+ /** 服务节点的资源ID。在非IP类型时,必传 */
+ @SerializedName("ResourceId")
+ private String resourceId;
+
+ /** 服务节点的VPC资源ID。在IP类型时,必传 */
+ @SerializedName("VPCId")
+ private String vpcId;
+
+ /** 服务节点的子网资源ID。在IP类型时,必传 */
+ @SerializedName("SubnetId")
+ private String subnetId;
+
+ /** 服务节点的IP。在IP类型时,必传 */
+ @SerializedName("ResourceIP")
+ private String resourceIP;
+
+ /** 服务节点的端口。限定取值:[1-65535]; 默认值:80 */
+ @SerializedName("Port")
+ private Integer port;
+
+ /** 服务节点的权重。限定取值:[1-100]; 仅在加权轮询算法时有效; 默认值:1 */
+ @SerializedName("Weight")
+ private Integer weight;
+
+ /** 服务节点是否启用。 默认值:true */
+ @SerializedName("Enabled")
+ private Boolean enabled;
+
+ /** 服务节点是否为备节点。 默认值:false */
+ @SerializedName("IsBackup")
+ private Boolean isBackup;
+
+ /** 服务节点的标识ID。 */
+ @SerializedName("Id")
+ private String id;
+
+ /** 服务节点的健康检查状态。限定枚举值:Healthy -> 健康,Unhealthy -> 不健康 */
+ @SerializedName("State")
+ private String state;
+
+ 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 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 Boolean getIsBackup() {
+ return isBackup;
+ }
+
+ public void setIsBackup(Boolean isBackup) {
+ this.isBackup = isBackup;
+ }
+
+ 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-ulb/src/main/java/cn/ucloud/ulb/models/CreateListenerRequest.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/CreateListenerRequest.java
new file mode 100644
index 00000000..8e961759
--- /dev/null
+++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/CreateListenerRequest.java
@@ -0,0 +1,325 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ *
http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *
Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.ulb.models;
+
+import cn.ucloud.common.annotation.NotEmpty;
+import cn.ucloud.common.annotation.UCloudParam;
+import cn.ucloud.common.request.Request;
+
+import java.util.List;
+
+public class CreateListenerRequest extends Request {
+
+ /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Region")
+ private String region;
+
+ /**
+ * 项目ID。不填写为默认项目,子帐号必须填写。
+ * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
+ */
+ @NotEmpty
+ @UCloudParam("ProjectId")
+ private String projectId;
+
+ /** 负载均衡实例的ID */
+ @NotEmpty
+ @UCloudParam("LoadBalancerId")
+ private String loadBalancerId;
+
+ /** 监听器的名称。限定字符长度:[1-255];限定特殊字符,仅支持:“-”,“_”,“.”;默认值:listener */
+ @UCloudParam("Name")
+ private String name;
+
+ /** 监听器的备注信息。限定字符长度:[0-255] */
+ @UCloudParam("Remark")
+ private String remark;
+
+ /** 监听器的监听端口。应用型限定取值:[1-65535],默认值80 */
+ @UCloudParam("ListenerPort")
+ private Integer listenerPort;
+
+ /** 监听协议。应用型限定取值:“HTTP”/"HTTPS",默认值“HTTP” */
+ @UCloudParam("ListenerProtocol")
+ private String listenerProtocol;
+
+ /** (应用型专用)服务器默认证书ID。仅HTTPS监听支持,且必填;暂时只支持最大长度为1 */
+ @UCloudParam("Certificates")
+ private List certificates;
+
+ /** (应用型专用)安全策略组ID。仅HTTPS监听支持绑定;默认值“Default”,表示绑定原生策略 */
+ @UCloudParam("SecurityPolicyId")
+ private String securityPolicyId;
+
+ /** 连接空闲超时时间。单位:秒。应用型限定取值:[1-86400];默认值60 */
+ @UCloudParam("IdleTimeout")
+ private Integer idleTimeout;
+
+ /**
+ * 负载均衡算法。应用型限定取值:"Roundrobin"/"Source"/"WeightRoundrobin"/" Leastconn"/"Backup",默认值"Roundrobin"
+ */
+ @UCloudParam("Scheduler")
+ private String scheduler;
+
+ /** */
+ @UCloudParam("StickinessConfig")
+ private StickinessConfig stickinessConfig;
+
+ /** */
+ @UCloudParam("HealthCheckConfig")
+ private HealthCheckConfig healthCheckConfig;
+
+ /** (应用型专用)是否开启数据压缩功能。目前只支持使用gzip对特定文件类型进行压缩。默认值为:false */
+ @UCloudParam("CompressionEnabled")
+ private Boolean compressionEnabled;
+
+ /** (应用型专用)是否开启HTTP/2特性。仅HTTPS监听支持开启;默认值为:false */
+ @UCloudParam("HTTP2Enabled")
+ private Boolean http2Enabled;
+
+ /** (应用型专用)是否开启HTTP重定向到HTTPS。仅HTTP监听支持开启;默认值为:false */
+ @UCloudParam("RedirectEnabled")
+ private Boolean redirectEnabled;
+
+ /** (应用型专用)重定向端口。限定取值:[1-65535],默认值443 */
+ @UCloudParam("RedirectPort")
+ private Integer redirectPort;
+
+ 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 getLoadBalancerId() {
+ return loadBalancerId;
+ }
+
+ public void setLoadBalancerId(String loadBalancerId) {
+ this.loadBalancerId = loadBalancerId;
+ }
+
+ 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 getListenerPort() {
+ return listenerPort;
+ }
+
+ public void setListenerPort(Integer listenerPort) {
+ this.listenerPort = listenerPort;
+ }
+
+ public String getListenerProtocol() {
+ return listenerProtocol;
+ }
+
+ public void setListenerProtocol(String listenerProtocol) {
+ this.listenerProtocol = listenerProtocol;
+ }
+
+ public List getCertificates() {
+ return certificates;
+ }
+
+ public void setCertificates(List certificates) {
+ this.certificates = certificates;
+ }
+
+ public String getSecurityPolicyId() {
+ return securityPolicyId;
+ }
+
+ public void setSecurityPolicyId(String securityPolicyId) {
+ this.securityPolicyId = securityPolicyId;
+ }
+
+ public Integer getIdleTimeout() {
+ return idleTimeout;
+ }
+
+ public void setIdleTimeout(Integer idleTimeout) {
+ this.idleTimeout = idleTimeout;
+ }
+
+ public String getScheduler() {
+ return scheduler;
+ }
+
+ public void setScheduler(String scheduler) {
+ this.scheduler = scheduler;
+ }
+
+ public StickinessConfig getStickinessConfig() {
+ return stickinessConfig;
+ }
+
+ public void setStickinessConfig(StickinessConfig stickinessConfig) {
+ this.stickinessConfig = stickinessConfig;
+ }
+
+ public HealthCheckConfig getHealthCheckConfig() {
+ return healthCheckConfig;
+ }
+
+ public void setHealthCheckConfig(HealthCheckConfig healthCheckConfig) {
+ this.healthCheckConfig = healthCheckConfig;
+ }
+
+ public Boolean getCompressionEnabled() {
+ return compressionEnabled;
+ }
+
+ public void setCompressionEnabled(Boolean compressionEnabled) {
+ this.compressionEnabled = compressionEnabled;
+ }
+
+ public Boolean getHTTP2Enabled() {
+ return http2Enabled;
+ }
+
+ public void setHTTP2Enabled(Boolean http2Enabled) {
+ this.http2Enabled = http2Enabled;
+ }
+
+ public Boolean getRedirectEnabled() {
+ return redirectEnabled;
+ }
+
+ public void setRedirectEnabled(Boolean redirectEnabled) {
+ this.redirectEnabled = redirectEnabled;
+ }
+
+ public Integer getRedirectPort() {
+ return redirectPort;
+ }
+
+ public void setRedirectPort(Integer redirectPort) {
+ this.redirectPort = redirectPort;
+ }
+
+ public static class HealthCheckConfig extends Request {
+
+ /** 是否开启健康检查功能。暂时不支持关闭。默认值为:true */
+ @UCloudParam("Enabled")
+ private Boolean enabled;
+
+ /** 健康检查方式。应用型限定取值:“Port”/"HTTP",默认值:“Port” */
+ @UCloudParam("Type")
+ private String type;
+
+ /** (应用型专用)HTTP检查域名 */
+ @UCloudParam("Domain")
+ private String domain;
+
+ /** (应用型专用)HTTP检查路径 */
+ @UCloudParam("Path")
+ private String path;
+
+ public Boolean getEnabled() {
+ return enabled;
+ }
+
+ public void setEnabled(Boolean enabled) {
+ this.enabled = enabled;
+ }
+
+ public String getType() {
+ return type;
+ }
+
+ public void setType(String type) {
+ this.type = type;
+ }
+
+ public String getDomain() {
+ return domain;
+ }
+
+ public void setDomain(String domain) {
+ this.domain = domain;
+ }
+
+ public String getPath() {
+ return path;
+ }
+
+ public void setPath(String path) {
+ this.path = path;
+ }
+ }
+
+ public static class StickinessConfig extends Request {
+
+ /** 是否开启会话保持功能。应用型负载均衡实例基于Cookie实现;默认值为:false */
+ @UCloudParam("Enabled")
+ private Boolean enabled;
+
+ /** (应用型专用)Cookie处理方式。限定枚举值:"ServerInsert" / "UserDefined";默认值为:“ServerInsert” */
+ @UCloudParam("Type")
+ private String type;
+
+ /** (应用型专用)自定义Cookie。当StickinessType取值"UserDefined"时有效;限定字符长度:[0-255] */
+ @UCloudParam("CookieName")
+ private String cookieName;
+
+ public Boolean getEnabled() {
+ return enabled;
+ }
+
+ public void setEnabled(Boolean enabled) {
+ this.enabled = enabled;
+ }
+
+ public String getType() {
+ return type;
+ }
+
+ public void setType(String type) {
+ this.type = type;
+ }
+
+ public String getCookieName() {
+ return cookieName;
+ }
+
+ public void setCookieName(String cookieName) {
+ this.cookieName = cookieName;
+ }
+ }
+}
diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/CreateListenerResponse.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/CreateListenerResponse.java
new file mode 100644
index 00000000..426af101
--- /dev/null
+++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/CreateListenerResponse.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.ulb.models;
+
+
+import cn.ucloud.common.response.Response;
+
+import com.google.gson.annotations.SerializedName;
+
+public class CreateListenerResponse 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-ulb/src/main/java/cn/ucloud/ulb/models/CreateLoadBalancerRequest.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/CreateLoadBalancerRequest.java
new file mode 100644
index 00000000..4faa6887
--- /dev/null
+++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/CreateLoadBalancerRequest.java
@@ -0,0 +1,173 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ *
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ *
http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *
Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.ulb.models;
+
+
+import cn.ucloud.common.annotation.NotEmpty;
+import cn.ucloud.common.annotation.UCloudParam;
+import cn.ucloud.common.request.Request;
+
+public class CreateLoadBalancerRequest extends Request {
+
+ /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Region")
+ private String region;
+
+ /**
+ * 项目ID。不填写为默认项目,子帐号必须填写。
+ * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
+ */
+ @NotEmpty
+ @UCloudParam("ProjectId")
+ private String projectId;
+
+ /** 负载均衡实例所属的VPC资源ID */
+ @NotEmpty
+ @UCloudParam("VPCId")
+ private String vpcId;
+
+ /** 负载均衡实例所属的子网资源ID。 负载均衡实例的内网VIP和SNAT场景的源IP限定在该子网内; 指定子网不影响添加后端服务节点时的范围,依旧是整个VPC下支持的资源 */
+ @NotEmpty
+ @UCloudParam("SubnetId")
+ private String subnetId;
+
+ /** 负载均衡实例的类型。限定枚举值:"Application" / "Network",默认值:"Application" */
+ @UCloudParam("Type")
+ private String type;
+
+ /** 负载均衡实例的名称。默认值:lb;特殊字符仅支持:“-”,“_”,“.”;限定字符长度:[1-255] */
+ @UCloudParam("Name")
+ private String name;
+
+ /** 负载均衡实例所属的业务组ID。默认值为“Default”; 传空则为Default业务组 */
+ @UCloudParam("Tag")
+ private String tag;
+
+ /** 负载均衡实例的备注信息。限定字符长度:[0-255] */
+ @UCloudParam("Remark")
+ private String remark;
+
+ /** 负载均衡实例的IP协议。限定枚举值:"IPv4" / "IPv6"/"DualStack",默认值为:“IPv4” */
+ @UCloudParam("IPVersion")
+ private String ipVersion;
+
+ /** 付费模式。限定枚举值:"Year" / "Month"/"Day"/"Dynamic",默认值为:“Month” */
+ @UCloudParam("ChargeType")
+ private String chargeType;
+
+ /** 购买的时长, 默认: 1; 0-> 购买至月末(0只在月付费有效,其余付费模式传0,实际收费按一个周期计费) */
+ @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 getType() {
+ return type;
+ }
+
+ public void setType(String type) {
+ this.type = type;
+ }
+
+ 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 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-ulb/src/main/java/cn/ucloud/ulb/models/CreateLoadBalancerResponse.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/CreateLoadBalancerResponse.java
new file mode 100644
index 00000000..afb6689c
--- /dev/null
+++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/CreateLoadBalancerResponse.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.ulb.models;
+
+
+import cn.ucloud.common.response.Response;
+
+import com.google.gson.annotations.SerializedName;
+
+public class CreateLoadBalancerResponse extends Response {
+
+ /** 负载均衡实例的ID */
+ @SerializedName("LoadBalancerId")
+ private String loadBalancerId;
+
+ public String getLoadBalancerId() {
+ return loadBalancerId;
+ }
+
+ public void setLoadBalancerId(String loadBalancerId) {
+ this.loadBalancerId = loadBalancerId;
+ }
+}
diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DeleteListenerRequest.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DeleteListenerRequest.java
new file mode 100644
index 00000000..6179b2cb
--- /dev/null
+++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DeleteListenerRequest.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.ulb.models;
+
+
+import cn.ucloud.common.annotation.NotEmpty;
+import cn.ucloud.common.annotation.UCloudParam;
+import cn.ucloud.common.request.Request;
+
+public class DeleteListenerRequest extends Request {
+
+ /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Region")
+ private String region;
+
+ /**
+ * 项目ID。不填写为默认项目,子帐号必须填写。
+ * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
+ */
+ @NotEmpty
+ @UCloudParam("ProjectId")
+ private String projectId;
+
+ /** 负载均衡实例的ID */
+ @NotEmpty
+ @UCloudParam("LoadBalancerId")
+ private String loadBalancerId;
+
+ /** 监听器的ID */
+ @NotEmpty
+ @UCloudParam("ListenerId")
+ private String listenerId;
+
+ /** 是否关闭相关监听器的重定向功能。默认为false,即有其他监听器重定向到本监听器,则删除失败。为true时,会先关闭相关监听器的重定向功能,再删除本监听器。默认值为:false */
+ @NotEmpty
+ @UCloudParam("RelatedRedirectDisabled")
+ private Boolean relatedRedirectDisabled;
+
+ 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 getLoadBalancerId() {
+ return loadBalancerId;
+ }
+
+ public void setLoadBalancerId(String loadBalancerId) {
+ this.loadBalancerId = loadBalancerId;
+ }
+
+ public String getListenerId() {
+ return listenerId;
+ }
+
+ public void setListenerId(String listenerId) {
+ this.listenerId = listenerId;
+ }
+
+ public Boolean getRelatedRedirectDisabled() {
+ return relatedRedirectDisabled;
+ }
+
+ public void setRelatedRedirectDisabled(Boolean relatedRedirectDisabled) {
+ this.relatedRedirectDisabled = relatedRedirectDisabled;
+ }
+}
diff --git a/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/models/AddMemberToProjectResponse.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DeleteListenerResponse.java
similarity index 87%
rename from ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/models/AddMemberToProjectResponse.java
rename to ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DeleteListenerResponse.java
index ccdb3046..fde76f14 100644
--- a/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/models/AddMemberToProjectResponse.java
+++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DeleteListenerResponse.java
@@ -11,10 +11,10 @@
* express or implied. See the License for the specific language governing permissions and
* limitations under the License.
*/
-package cn.ucloud.uaccount.models;
+package cn.ucloud.ulb.models;
import cn.ucloud.common.response.Response;
-public class AddMemberToProjectResponse extends Response {}
+public class DeleteListenerResponse extends Response {}
diff --git a/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/models/AddMemberToProjectRequest.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DeleteLoadBalancerRequest.java
similarity index 55%
rename from ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/models/AddMemberToProjectRequest.java
rename to ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DeleteLoadBalancerRequest.java
index 17a6dc7f..a609ca20 100644
--- a/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/models/AddMemberToProjectRequest.java
+++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DeleteLoadBalancerRequest.java
@@ -11,30 +11,40 @@
* express or implied. See the License for the specific language governing permissions and
* limitations under the License.
*/
-package cn.ucloud.uaccount.models;
+package cn.ucloud.ulb.models;
import cn.ucloud.common.annotation.NotEmpty;
import cn.ucloud.common.annotation.UCloudParam;
import cn.ucloud.common.request.Request;
-public class AddMemberToProjectRequest extends Request {
+public class DeleteLoadBalancerRequest 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)的描述。不填写为创建时间最早的项目。
+ * 项目ID。不填写为默认项目,子帐号必须填写。
+ * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
*/
+ @NotEmpty
@UCloudParam("ProjectId")
private String projectId;
- /** 被加入成员Email */
+ /** 负载均衡实例的ID */
@NotEmpty
- @UCloudParam("MemberEmail")
- private String memberEmail;
+ @UCloudParam("LoadBalancerId")
+ private String loadBalancerId;
- /** 被加入成员归属角色ID */
- @NotEmpty
- @UCloudParam("CharacterId")
- private String characterId;
+ public String getRegion() {
+ return region;
+ }
+
+ public void setRegion(String region) {
+ this.region = region;
+ }
public String getProjectId() {
return projectId;
@@ -44,19 +54,11 @@ public void setProjectId(String projectId) {
this.projectId = projectId;
}
- public String getMemberEmail() {
- return memberEmail;
- }
-
- public void setMemberEmail(String memberEmail) {
- this.memberEmail = memberEmail;
- }
-
- public String getCharacterId() {
- return characterId;
+ public String getLoadBalancerId() {
+ return loadBalancerId;
}
- public void setCharacterId(String characterId) {
- this.characterId = characterId;
+ public void setLoadBalancerId(String loadBalancerId) {
+ this.loadBalancerId = loadBalancerId;
}
}
diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DeleteLoadBalancerResponse.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DeleteLoadBalancerResponse.java
new file mode 100644
index 00000000..2e8b652d
--- /dev/null
+++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DeleteLoadBalancerResponse.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.ulb.models;
+
+
+
+import cn.ucloud.common.response.Response;
+
+public class DeleteLoadBalancerResponse extends Response {}
diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DeleteRuleRequest.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DeleteRuleRequest.java
new file mode 100644
index 00000000..b9ad8c44
--- /dev/null
+++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DeleteRuleRequest.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.ulb.models;
+
+
+import cn.ucloud.common.annotation.NotEmpty;
+import cn.ucloud.common.annotation.UCloudParam;
+import cn.ucloud.common.request.Request;
+
+public class DeleteRuleRequest extends Request {
+
+ /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Region")
+ private String region;
+
+ /**
+ * 项目ID。不填写为默认项目,子帐号必须填写。
+ * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
+ */
+ @NotEmpty
+ @UCloudParam("ProjectId")
+ private String projectId;
+
+ /** 负载均衡实例的ID */
+ @NotEmpty
+ @UCloudParam("LoadBalancerId")
+ private String loadBalancerId;
+
+ /** 监听器的ID */
+ @NotEmpty
+ @UCloudParam("ListenerId")
+ private String listenerId;
+
+ /** 转发规则的ID */
+ @NotEmpty
+ @UCloudParam("RuleId")
+ private String ruleId;
+
+ 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 getLoadBalancerId() {
+ return loadBalancerId;
+ }
+
+ public void setLoadBalancerId(String loadBalancerId) {
+ this.loadBalancerId = loadBalancerId;
+ }
+
+ public String getListenerId() {
+ return listenerId;
+ }
+
+ public void setListenerId(String listenerId) {
+ this.listenerId = listenerId;
+ }
+
+ public String getRuleId() {
+ return ruleId;
+ }
+
+ public void setRuleId(String ruleId) {
+ this.ruleId = ruleId;
+ }
+}
diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DeleteRuleResponse.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DeleteRuleResponse.java
new file mode 100644
index 00000000..a3325ca0
--- /dev/null
+++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/DeleteRuleResponse.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.ulb.models;
+
+
+
+import cn.ucloud.common.response.Response;
+
+public class DeleteRuleResponse extends Response {}
diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/RemoveTargetsRequest.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/RemoveTargetsRequest.java
new file mode 100644
index 00000000..ccdb5fc4
--- /dev/null
+++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/RemoveTargetsRequest.java
@@ -0,0 +1,91 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ *
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ *
http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *
Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.ulb.models;
+
+import cn.ucloud.common.annotation.NotEmpty;
+import cn.ucloud.common.annotation.UCloudParam;
+import cn.ucloud.common.request.Request;
+
+import java.util.List;
+
+public class RemoveTargetsRequest extends Request {
+
+ /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Region")
+ private String region;
+
+ /**
+ * 项目ID。不填写为默认项目,子帐号必须填写。
+ * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
+ */
+ @NotEmpty
+ @UCloudParam("ProjectId")
+ private String projectId;
+
+ /** 负载均衡实例的ID */
+ @NotEmpty
+ @UCloudParam("LoadBalancerId")
+ private String loadBalancerId;
+
+ /** 监听器的ID */
+ @NotEmpty
+ @UCloudParam("ListenerId")
+ private String listenerId;
+
+ /** 服务节点的标识ID。不超过20个; */
+ @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 getLoadBalancerId() {
+ return loadBalancerId;
+ }
+
+ public void setLoadBalancerId(String loadBalancerId) {
+ this.loadBalancerId = loadBalancerId;
+ }
+
+ public String getListenerId() {
+ return listenerId;
+ }
+
+ public void setListenerId(String listenerId) {
+ this.listenerId = listenerId;
+ }
+
+ public List getIds() {
+ return ids;
+ }
+
+ public void setIds(List ids) {
+ this.ids = ids;
+ }
+}
diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/RemoveTargetsResponse.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/RemoveTargetsResponse.java
new file mode 100644
index 00000000..52f92fa3
--- /dev/null
+++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/RemoveTargetsResponse.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.ulb.models;
+
+
+
+import cn.ucloud.common.response.Response;
+
+public class RemoveTargetsResponse extends Response {}
diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateListenerAttributeRequest.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateListenerAttributeRequest.java
new file mode 100644
index 00000000..c43e8cdd
--- /dev/null
+++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateListenerAttributeRequest.java
@@ -0,0 +1,312 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ *
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ *
http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *
Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.ulb.models;
+
+import cn.ucloud.common.annotation.NotEmpty;
+import cn.ucloud.common.annotation.UCloudParam;
+import cn.ucloud.common.request.Request;
+
+import java.util.List;
+
+public class UpdateListenerAttributeRequest extends Request {
+
+ /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Region")
+ private String region;
+
+ /**
+ * 项目ID。不填写为默认项目,子帐号必须填写。
+ * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
+ */
+ @NotEmpty
+ @UCloudParam("ProjectId")
+ private String projectId;
+
+ /** 负载均衡实例的ID */
+ @NotEmpty
+ @UCloudParam("LoadBalancerId")
+ private String loadBalancerId;
+
+ /** 监听器的ID */
+ @NotEmpty
+ @UCloudParam("ListenerId")
+ private String listenerId;
+
+ /** 监听器的名称。限定字符长度:[1-255];限定特殊字符,仅支持:-_. */
+ @UCloudParam("Name")
+ private String name;
+
+ /** 监听器的备注信息。限定字符长度:[0-255] */
+ @UCloudParam("Remark")
+ private String remark;
+
+ /** (应用型专用)服务器默认证书ID。仅HTTPS监听支持 */
+ @UCloudParam("Certificates")
+ private List certificates;
+
+ /** (应用型专用)安全策略组ID。仅HTTPS监听支持绑定。“Default”,表示绑定原生策略 */
+ @UCloudParam("SecurityPolicyId")
+ private String securityPolicyId;
+
+ /** 连接空闲超时时间。单位:秒。应用型限定取值:[1-86400] */
+ @UCloudParam("IdleTimeout")
+ private Integer idleTimeout;
+
+ /** 负载均衡算法。应用型限定取值:"Roundrobin"/"Source"/"WeightRoundrobin"/" Leastconn"/"Backup" */
+ @UCloudParam("Scheduler")
+ private String scheduler;
+
+ /** */
+ @UCloudParam("StickinessConfig")
+ private StickinessConfig stickinessConfig;
+
+ /** */
+ @UCloudParam("HealthCheckConfig")
+ private HealthCheckConfig healthCheckConfig;
+
+ /** (应用型专用)是否开启数据压缩功能。目前只支持使用gzip对特定文件类型进行压缩 */
+ @UCloudParam("CompressionEnabled")
+ private Boolean compressionEnabled;
+
+ /** (应用型专用)是否开启HTTP/2特性。仅HTTPS监听支持开启 */
+ @UCloudParam("HTTP2Enabled")
+ private Boolean http2Enabled;
+
+ /** (应用型专用)是否开启HTTP重定向到HTTPS。仅HTTP监听支持开启 */
+ @UCloudParam("RedirectEnabled")
+ private Boolean redirectEnabled;
+
+ /** (应用型专用)重定向端口。限定取值:[1-65535] */
+ @UCloudParam("RedirectPort")
+ private Integer redirectPort;
+
+ 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 getLoadBalancerId() {
+ return loadBalancerId;
+ }
+
+ public void setLoadBalancerId(String loadBalancerId) {
+ this.loadBalancerId = loadBalancerId;
+ }
+
+ public String getListenerId() {
+ return listenerId;
+ }
+
+ public void setListenerId(String listenerId) {
+ this.listenerId = listenerId;
+ }
+
+ public String 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 List getCertificates() {
+ return certificates;
+ }
+
+ public void setCertificates(List certificates) {
+ this.certificates = certificates;
+ }
+
+ public String getSecurityPolicyId() {
+ return securityPolicyId;
+ }
+
+ public void setSecurityPolicyId(String securityPolicyId) {
+ this.securityPolicyId = securityPolicyId;
+ }
+
+ public Integer getIdleTimeout() {
+ return idleTimeout;
+ }
+
+ public void setIdleTimeout(Integer idleTimeout) {
+ this.idleTimeout = idleTimeout;
+ }
+
+ public String getScheduler() {
+ return scheduler;
+ }
+
+ public void setScheduler(String scheduler) {
+ this.scheduler = scheduler;
+ }
+
+ public StickinessConfig getStickinessConfig() {
+ return stickinessConfig;
+ }
+
+ public void setStickinessConfig(StickinessConfig stickinessConfig) {
+ this.stickinessConfig = stickinessConfig;
+ }
+
+ public HealthCheckConfig getHealthCheckConfig() {
+ return healthCheckConfig;
+ }
+
+ public void setHealthCheckConfig(HealthCheckConfig healthCheckConfig) {
+ this.healthCheckConfig = healthCheckConfig;
+ }
+
+ public Boolean getCompressionEnabled() {
+ return compressionEnabled;
+ }
+
+ public void setCompressionEnabled(Boolean compressionEnabled) {
+ this.compressionEnabled = compressionEnabled;
+ }
+
+ public Boolean getHTTP2Enabled() {
+ return http2Enabled;
+ }
+
+ public void setHTTP2Enabled(Boolean http2Enabled) {
+ this.http2Enabled = http2Enabled;
+ }
+
+ public Boolean getRedirectEnabled() {
+ return redirectEnabled;
+ }
+
+ public void setRedirectEnabled(Boolean redirectEnabled) {
+ this.redirectEnabled = redirectEnabled;
+ }
+
+ public Integer getRedirectPort() {
+ return redirectPort;
+ }
+
+ public void setRedirectPort(Integer redirectPort) {
+ this.redirectPort = redirectPort;
+ }
+
+ public static class HealthCheckConfig extends Request {
+
+ /** 是否开启健康检查功能。暂时不支持关闭;默认值为:true */
+ @UCloudParam("Enabled")
+ private Boolean enabled;
+
+ /** 健康检查方式。应用型限定取值:“Port”/"HTTP";默认值:“Port” */
+ @UCloudParam("Type")
+ private String type;
+
+ /** (应用型专用)HTTP检查域名 */
+ @UCloudParam("Domain")
+ private String domain;
+
+ /** (应用型专用)HTTP检查路径 */
+ @UCloudParam("Path")
+ private String path;
+
+ public Boolean getEnabled() {
+ return enabled;
+ }
+
+ public void setEnabled(Boolean enabled) {
+ this.enabled = enabled;
+ }
+
+ public String getType() {
+ return type;
+ }
+
+ public void setType(String type) {
+ this.type = type;
+ }
+
+ public String getDomain() {
+ return domain;
+ }
+
+ public void setDomain(String domain) {
+ this.domain = domain;
+ }
+
+ public String getPath() {
+ return path;
+ }
+
+ public void setPath(String path) {
+ this.path = path;
+ }
+ }
+
+ public static class StickinessConfig extends Request {
+
+ /** 是否开启会话保持功能。应用型负载均衡实例基于Cookie实现,网络型负载均衡则基于源IP,保证在对应的空闲超时时间内,同一个源IP送到同一个服务节点。默认值为:false */
+ @UCloudParam("Enabled")
+ private Boolean enabled;
+
+ /** (应用型专用)Cookie处理方式。限定枚举值:"ServerInsert" / "UserDefined",默认值为:“ServerInsert” */
+ @UCloudParam("Type")
+ private String type;
+
+ /** (应用型专用)自定义Cookie。当StickinessType取值"UserDefined"时有效;限定字符长度:[0-255] */
+ @UCloudParam("CookieName")
+ private String cookieName;
+
+ public Boolean getEnabled() {
+ return enabled;
+ }
+
+ public void setEnabled(Boolean enabled) {
+ this.enabled = enabled;
+ }
+
+ public String getType() {
+ return type;
+ }
+
+ public void setType(String type) {
+ this.type = type;
+ }
+
+ public String getCookieName() {
+ return cookieName;
+ }
+
+ public void setCookieName(String cookieName) {
+ this.cookieName = cookieName;
+ }
+ }
+}
diff --git a/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/models/RemoveMemberFromProjectResponse.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateListenerAttributeResponse.java
similarity index 86%
rename from ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/models/RemoveMemberFromProjectResponse.java
rename to ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateListenerAttributeResponse.java
index 85dc6ce4..89fb81ba 100644
--- a/ucloud-sdk-java-uaccount/src/main/java/cn/ucloud/uaccount/models/RemoveMemberFromProjectResponse.java
+++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateListenerAttributeResponse.java
@@ -11,10 +11,10 @@
* express or implied. See the License for the specific language governing permissions and
* limitations under the License.
*/
-package cn.ucloud.uaccount.models;
+package cn.ucloud.ulb.models;
import cn.ucloud.common.response.Response;
-public class RemoveMemberFromProjectResponse extends Response {}
+public class UpdateListenerAttributeResponse extends Response {}
diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateLoadBalancerAttributeRequest.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateLoadBalancerAttributeRequest.java
new file mode 100644
index 00000000..3b5a90e6
--- /dev/null
+++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateLoadBalancerAttributeRequest.java
@@ -0,0 +1,151 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ *
http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *
Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.ulb.models;
+
+
+import cn.ucloud.common.annotation.NotEmpty;
+import cn.ucloud.common.annotation.UCloudParam;
+import cn.ucloud.common.request.Request;
+
+public class UpdateLoadBalancerAttributeRequest extends Request {
+
+ /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Region")
+ private String region;
+
+ /**
+ * 项目ID。不填写为默认项目,子帐号必须填写。
+ * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
+ */
+ @NotEmpty
+ @UCloudParam("ProjectId")
+ private String projectId;
+
+ /** 负载均衡实例的ID */
+ @NotEmpty
+ @UCloudParam("LoadBalancerId")
+ private String loadBalancerId;
+
+ /** 负载均衡实例的名称,不传则默认不修改 */
+ @UCloudParam("Name")
+ private String name;
+
+ /** 负载均衡实例所属的业务组ID,不传则默认不修改 */
+ @UCloudParam("Tag")
+ private String tag;
+
+ /** 负载均衡实例的备注信息,不传则默认不修改,限定字符长度:[0-255] */
+ @UCloudParam("Remark")
+ private String remark;
+
+ /** */
+ @UCloudParam("AccessLogConfig")
+ private AccessLogConfig accessLogConfig;
+
+ 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 getLoadBalancerId() {
+ return loadBalancerId;
+ }
+
+ public void setLoadBalancerId(String loadBalancerId) {
+ this.loadBalancerId = loadBalancerId;
+ }
+
+ 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 AccessLogConfig getAccessLogConfig() {
+ return accessLogConfig;
+ }
+
+ public void setAccessLogConfig(AccessLogConfig accessLogConfig) {
+ this.accessLogConfig = accessLogConfig;
+ }
+
+ public static class AccessLogConfig extends Request {
+
+ /** (应用型专用)是否开启访问日志记录功能 */
+ @UCloudParam("Enabled")
+ private Boolean enabled;
+
+ /** (应用型专用)用于存储访问日志的bucket */
+ @UCloudParam("US3BucketName")
+ private String us3BucketName;
+
+ /** (应用型专用)上传访问日志到bucket所需的token */
+ @UCloudParam("US3TokenId")
+ private String us3TokenId;
+
+ public Boolean getEnabled() {
+ return enabled;
+ }
+
+ public void setEnabled(Boolean enabled) {
+ this.enabled = enabled;
+ }
+
+ public String getUS3BucketName() {
+ return us3BucketName;
+ }
+
+ public void setUS3BucketName(String us3BucketName) {
+ this.us3BucketName = us3BucketName;
+ }
+
+ public String getUS3TokenId() {
+ return us3TokenId;
+ }
+
+ public void setUS3TokenId(String us3TokenId) {
+ this.us3TokenId = us3TokenId;
+ }
+ }
+}
diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateLoadBalancerAttributeResponse.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateLoadBalancerAttributeResponse.java
new file mode 100644
index 00000000..7aa83060
--- /dev/null
+++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateLoadBalancerAttributeResponse.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.ulb.models;
+
+
+
+import cn.ucloud.common.response.Response;
+
+public class UpdateLoadBalancerAttributeResponse extends Response {}
diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateRuleAttributeRequest.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateRuleAttributeRequest.java
new file mode 100644
index 00000000..71785cc4
--- /dev/null
+++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateRuleAttributeRequest.java
@@ -0,0 +1,277 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ *
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ *
http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *
Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.ulb.models;
+
+import cn.ucloud.common.annotation.NotEmpty;
+import cn.ucloud.common.annotation.UCloudParam;
+import cn.ucloud.common.request.Request;
+
+import java.util.List;
+
+public class UpdateRuleAttributeRequest extends Request {
+
+ /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Region")
+ private String region;
+
+ /**
+ * 项目ID。不填写为默认项目,子帐号必须填写。
+ * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
+ */
+ @NotEmpty
+ @UCloudParam("ProjectId")
+ private String projectId;
+
+ /** 负载均衡实例的ID */
+ @NotEmpty
+ @UCloudParam("LoadBalancerId")
+ private String loadBalancerId;
+
+ /** 监听器的ID */
+ @NotEmpty
+ @UCloudParam("ListenerId")
+ private String listenerId;
+
+ /** 转发规则的ID */
+ @NotEmpty
+ @UCloudParam("RuleId")
+ private String ruleId;
+
+ /** */
+ @UCloudParam("RuleConditions")
+ private List ruleConditions;
+
+ /** */
+ @UCloudParam("RuleActions")
+ private List ruleActions;
+
+ /** 当转发的服务节点为空时,规则是否忽略。默认转发规则不可更改 */
+ @UCloudParam("Pass")
+ private Boolean pass;
+
+ 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 getLoadBalancerId() {
+ return loadBalancerId;
+ }
+
+ public void setLoadBalancerId(String loadBalancerId) {
+ this.loadBalancerId = loadBalancerId;
+ }
+
+ public String getListenerId() {
+ return listenerId;
+ }
+
+ public void setListenerId(String listenerId) {
+ this.listenerId = listenerId;
+ }
+
+ public String getRuleId() {
+ return ruleId;
+ }
+
+ public void setRuleId(String ruleId) {
+ this.ruleId = ruleId;
+ }
+
+ public List getRuleConditions() {
+ return ruleConditions;
+ }
+
+ public void setRuleConditions(List ruleConditions) {
+ this.ruleConditions = ruleConditions;
+ }
+
+ public List getRuleActions() {
+ return ruleActions;
+ }
+
+ public void setRuleActions(List ruleActions) {
+ this.ruleActions = ruleActions;
+ }
+
+ public Boolean getPass() {
+ return pass;
+ }
+
+ public void setPass(Boolean pass) {
+ this.pass = pass;
+ }
+
+ public static class RuleActions extends Request {
+
+ /** 动作类型。限定枚举值:"Forward";RuleActions数组长度不为0时必填 */
+ @UCloudParam("Type")
+ private String type;
+
+ /** */
+ @UCloudParam("ForwardConfig")
+ private RuleActionsForwardConfig forwardConfig;
+
+ public String getType() {
+ return type;
+ }
+
+ public void setType(String type) {
+ this.type = type;
+ }
+
+ public RuleActionsForwardConfig getForwardConfig() {
+ return forwardConfig;
+ }
+
+ public void setForwardConfig(RuleActionsForwardConfig forwardConfig) {
+ this.forwardConfig = forwardConfig;
+ }
+ }
+
+ public static class RuleActionsForwardConfig extends Request {
+
+ /** */
+ @UCloudParam("Targets")
+ private List targets;
+
+ public List getTargets() {
+ return targets;
+ }
+
+ public void setTargets(List targets) {
+ this.targets = targets;
+ }
+ }
+
+ public static class RuleActionsForwardConfigTargets extends Request {
+
+ /** 转发的后端服务节点的标识ID。限定在监听器的服务节点池里;数组长度可以是0;转发服务节点配置的数组长度不为0时,Id必填 */
+ @UCloudParam("Id")
+ private String id;
+
+ /** 转发的后端服务节点的权重。仅监听器负载均衡算法是加权轮询是有效 */
+ @UCloudParam("Weight")
+ private Integer weight;
+
+ public String getId() {
+ return id;
+ }
+
+ public void setId(String id) {
+ this.id = id;
+ }
+
+ public Integer getWeight() {
+ return weight;
+ }
+
+ public void setWeight(Integer weight) {
+ this.weight = weight;
+ }
+ }
+
+ public static class RuleConditions extends Request {
+
+ /** 匹配条件类型。限定枚举值:"Host"/"Path";RuleConditions数组长度不为0时必填 */
+ @UCloudParam("Type")
+ private String type;
+
+ /** */
+ @UCloudParam("HostConfig")
+ private RuleConditionsHostConfig hostConfig;
+
+ /** */
+ @UCloudParam("PathConfig")
+ private RuleConditionsPathConfig pathConfig;
+
+ public String getType() {
+ return type;
+ }
+
+ public void setType(String type) {
+ this.type = type;
+ }
+
+ public RuleConditionsHostConfig getHostConfig() {
+ return hostConfig;
+ }
+
+ public void setHostConfig(RuleConditionsHostConfig hostConfig) {
+ this.hostConfig = hostConfig;
+ }
+
+ public RuleConditionsPathConfig getPathConfig() {
+ return pathConfig;
+ }
+
+ public void setPathConfig(RuleConditionsPathConfig pathConfig) {
+ this.pathConfig = pathConfig;
+ }
+ }
+
+ public static class RuleConditionsHostConfig extends Request {
+
+ /** 匹配方式。限定枚举值:"Regular"/"Wildcard",默认值:"Regular" */
+ @UCloudParam("MatchMode")
+ private String matchMode;
+
+ /** 取值。暂时只支持数组长度为1;取值需符合相关匹配方式的条件;修改域名匹配时必填 */
+ @UCloudParam("Values")
+ private List values;
+
+ public String getMatchMode() {
+ return matchMode;
+ }
+
+ public void setMatchMode(String matchMode) {
+ this.matchMode = matchMode;
+ }
+
+ public List getValues() {
+ return values;
+ }
+
+ public void setValues(List values) {
+ this.values = values;
+ }
+ }
+
+ public static class RuleConditionsPathConfig extends Request {
+
+ /** 取值。暂时只支持数组长度为1;取值需符合相关条件;修改路径匹配时必填 */
+ @UCloudParam("Values")
+ private List values;
+
+ public List getValues() {
+ return values;
+ }
+
+ public void setValues(List values) {
+ this.values = values;
+ }
+ }
+}
diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateRuleAttributeResponse.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateRuleAttributeResponse.java
new file mode 100644
index 00000000..e69464bd
--- /dev/null
+++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateRuleAttributeResponse.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.ulb.models;
+
+
+
+import cn.ucloud.common.response.Response;
+
+public class UpdateRuleAttributeResponse extends Response {}
diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateTargetsAttributeRequest.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateTargetsAttributeRequest.java
new file mode 100644
index 00000000..3066ff3d
--- /dev/null
+++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateTargetsAttributeRequest.java
@@ -0,0 +1,141 @@
+/**
+ * Copyright 2021 UCloud Technology Co., Ltd.
+ *
+ *
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of the License at
+ *
+ *
http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *
Unless required by applicable law or agreed to in writing, software distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package cn.ucloud.ulb.models;
+
+import cn.ucloud.common.annotation.NotEmpty;
+import cn.ucloud.common.annotation.UCloudParam;
+import cn.ucloud.common.request.Request;
+
+import java.util.List;
+
+public class UpdateTargetsAttributeRequest extends Request {
+
+ /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */
+ @NotEmpty
+ @UCloudParam("Region")
+ private String region;
+
+ /**
+ * 项目ID。不填写为默认项目,子帐号必须填写。
+ * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
+ */
+ @NotEmpty
+ @UCloudParam("ProjectId")
+ private String projectId;
+
+ /** 负载均衡实例的ID */
+ @NotEmpty
+ @UCloudParam("LoadBalancerId")
+ private String loadBalancerId;
+
+ /** 监听器的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 getLoadBalancerId() {
+ return loadBalancerId;
+ }
+
+ public void setLoadBalancerId(String loadBalancerId) {
+ this.loadBalancerId = loadBalancerId;
+ }
+
+ public String getListenerId() {
+ return listenerId;
+ }
+
+ public void setListenerId(String listenerId) {
+ this.listenerId = listenerId;
+ }
+
+ public List getTargets() {
+ return targets;
+ }
+
+ public void setTargets(List targets) {
+ this.targets = targets;
+ }
+
+ public static class Targets extends Request {
+
+ /** 服务节点的标识ID。限定枚举值:"UHost" / "UNI"/"UPM"/"IP";要更新的Targets数组长度至少为1,不超过20个 */
+ @UCloudParam("Id")
+ private String id;
+
+ /** 服务节点的权重。限定取值:[1-100],默认值1;仅在加权轮询算法时有效;要更新的Targets数组长度至少为1,不超过20个 */
+ @UCloudParam("Weight")
+ private Integer weight;
+
+ /** 服务节点是否启用。默认值true;要更新的Targets数组长度至少为1,不超过20个 */
+ @UCloudParam("Enabled")
+ private Boolean enabled;
+
+ /** 服务节点是否为备节点。默认值false;要更新的Targets数组长度至少为1,不超过20个 */
+ @UCloudParam("IsBackup")
+ private Boolean isBackup;
+
+ public String getId() {
+ return id;
+ }
+
+ public void setId(String id) {
+ this.id = id;
+ }
+
+ 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 Boolean getIsBackup() {
+ return isBackup;
+ }
+
+ public void setIsBackup(Boolean isBackup) {
+ this.isBackup = isBackup;
+ }
+ }
+}
diff --git a/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateTargetsAttributeResponse.java b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateTargetsAttributeResponse.java
new file mode 100644
index 00000000..a1bcc764
--- /dev/null
+++ b/ucloud-sdk-java-ulb/src/main/java/cn/ucloud/ulb/models/UpdateTargetsAttributeResponse.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.ulb.models;
+
+
+
+import cn.ucloud.common.response.Response;
+
+public class UpdateTargetsAttributeResponse extends Response {}
diff --git a/ucloud-sdk-java-umem/pom.xml b/ucloud-sdk-java-umem/pom.xml
index 8160d319..6f644c2a 100644
--- a/ucloud-sdk-java-umem/pom.xml
+++ b/ucloud-sdk-java-umem/pom.xml
@@ -5,18 +5,18 @@
ucloud-sdk-java
cn.ucloud
- 1.2.16-release
+ 1.2.17-release
4.0.0
ucloud-sdk-java-umem
- 1.2.16-release
+ 1.2.17-release
cn.ucloud
ucloud-sdk-java-common
- 1.2.16-release
+ 1.2.17-release
diff --git a/ucloud-sdk-java-umongodb/pom.xml b/ucloud-sdk-java-umongodb/pom.xml
index 9c628761..f2cce8c5 100644
--- a/ucloud-sdk-java-umongodb/pom.xml
+++ b/ucloud-sdk-java-umongodb/pom.xml
@@ -5,18 +5,18 @@
ucloud-sdk-java
cn.ucloud
- 1.2.16-release
+ 1.2.17-release
4.0.0
ucloud-sdk-java-umongodb
- 1.2.16-release
+ 1.2.17-release
cn.ucloud
ucloud-sdk-java-common
- 1.2.16-release
+ 1.2.17-release
diff --git a/ucloud-sdk-java-unet/pom.xml b/ucloud-sdk-java-unet/pom.xml
index 991dce85..5aefa8a1 100644
--- a/ucloud-sdk-java-unet/pom.xml
+++ b/ucloud-sdk-java-unet/pom.xml
@@ -5,18 +5,18 @@
ucloud-sdk-java
cn.ucloud
- 1.2.16-release
+ 1.2.17-release
4.0.0
ucloud-sdk-java-unet
- 1.2.16-release
+ 1.2.17-release
cn.ucloud
ucloud-sdk-java-common
- 1.2.16-release
+ 1.2.17-release
diff --git a/ucloud-sdk-java-upgsql/pom.xml b/ucloud-sdk-java-upgsql/pom.xml
index 0d2169e1..38685189 100644
--- a/ucloud-sdk-java-upgsql/pom.xml
+++ b/ucloud-sdk-java-upgsql/pom.xml
@@ -5,18 +5,18 @@
ucloud-sdk-java
cn.ucloud
- 1.2.16-release
+ 1.2.17-release
4.0.0
ucloud-sdk-java-upgsql
- 1.2.16-release
+ 1.2.17-release
cn.ucloud
ucloud-sdk-java-common
- 1.2.16-release
+ 1.2.17-release
diff --git a/ucloud-sdk-java-uphone/pom.xml b/ucloud-sdk-java-uphone/pom.xml
index 67686154..bd6de669 100644
--- a/ucloud-sdk-java-uphone/pom.xml
+++ b/ucloud-sdk-java-uphone/pom.xml
@@ -5,18 +5,18 @@
ucloud-sdk-java
cn.ucloud
- 1.2.16-release
+ 1.2.17-release
4.0.0
ucloud-sdk-java-uphone
- 1.2.16-release
+ 1.2.17-release
cn.ucloud
ucloud-sdk-java-common
- 1.2.16-release
+ 1.2.17-release
diff --git a/ucloud-sdk-java-uphost/pom.xml b/ucloud-sdk-java-uphost/pom.xml
index 7368be35..0e56cabf 100644
--- a/ucloud-sdk-java-uphost/pom.xml
+++ b/ucloud-sdk-java-uphost/pom.xml
@@ -5,18 +5,18 @@
ucloud-sdk-java
cn.ucloud
- 1.2.16-release
+ 1.2.17-release
4.0.0
ucloud-sdk-java-uphost
- 1.2.16-release
+ 1.2.17-release
cn.ucloud
ucloud-sdk-java-common
- 1.2.16-release
+ 1.2.17-release
diff --git a/ucloud-sdk-java-uslk/pom.xml b/ucloud-sdk-java-uslk/pom.xml
index de64a825..ac9d1ce8 100644
--- a/ucloud-sdk-java-uslk/pom.xml
+++ b/ucloud-sdk-java-uslk/pom.xml
@@ -5,18 +5,18 @@
ucloud-sdk-java
cn.ucloud
- 1.2.16-release
+ 1.2.17-release
4.0.0
ucloud-sdk-java-uslk
- 1.2.16-release
+ 1.2.17-release
cn.ucloud
ucloud-sdk-java-common
- 1.2.16-release
+ 1.2.17-release
diff --git a/ucloud-sdk-java-usms/pom.xml b/ucloud-sdk-java-usms/pom.xml
index 504189ee..3fbc6869 100644
--- a/ucloud-sdk-java-usms/pom.xml
+++ b/ucloud-sdk-java-usms/pom.xml
@@ -5,18 +5,18 @@
ucloud-sdk-java
cn.ucloud
- 1.2.16-release
+ 1.2.17-release
4.0.0
ucloud-sdk-java-usms
- 1.2.16-release
+ 1.2.17-release
cn.ucloud
ucloud-sdk-java-common
- 1.2.16-release
+ 1.2.17-release
diff --git a/ucloud-sdk-java-usnap/pom.xml b/ucloud-sdk-java-usnap/pom.xml
index 758ef785..46d5bb8f 100644
--- a/ucloud-sdk-java-usnap/pom.xml
+++ b/ucloud-sdk-java-usnap/pom.xml
@@ -5,18 +5,18 @@
ucloud-sdk-java
cn.ucloud
- 1.2.16-release
+ 1.2.17-release
4.0.0
ucloud-sdk-java-usnap
- 1.2.16-release
+ 1.2.17-release
cn.ucloud
ucloud-sdk-java-common
- 1.2.16-release
+ 1.2.17-release
diff --git a/ucloud-sdk-java-uvms/pom.xml b/ucloud-sdk-java-uvms/pom.xml
index b6c6706d..bd9b1819 100644
--- a/ucloud-sdk-java-uvms/pom.xml
+++ b/ucloud-sdk-java-uvms/pom.xml
@@ -5,18 +5,18 @@
ucloud-sdk-java
cn.ucloud
- 1.2.16-release
+ 1.2.17-release
4.0.0
ucloud-sdk-java-uvms
- 1.2.16-release
+ 1.2.17-release
cn.ucloud
ucloud-sdk-java-common
- 1.2.16-release
+ 1.2.17-release
diff --git a/ucloud-sdk-java-vpc/pom.xml b/ucloud-sdk-java-vpc/pom.xml
index 74787f0e..ebca9890 100644
--- a/ucloud-sdk-java-vpc/pom.xml
+++ b/ucloud-sdk-java-vpc/pom.xml
@@ -5,18 +5,18 @@
ucloud-sdk-java
cn.ucloud
- 1.2.16-release
+ 1.2.17-release
4.0.0
ucloud-sdk-java-vpc
- 1.2.16-release
+ 1.2.17-release
cn.ucloud
ucloud-sdk-java-common
- 1.2.16-release
+ 1.2.17-release