From be3df618fc6b3833a61675ba6f34dfb10ad8c78a Mon Sep 17 00:00:00 2001 From: sdk-team Date: Mon, 4 Nov 2024 07:50:03 +0000 Subject: [PATCH] Support Ipv4LocalAddresses and Ipv6LocalAddresses. --- aliyun-java-sdk-alb/ChangeLog.txt | 3 +++ aliyun-java-sdk-alb/pom.xml | 2 +- .../EnableLoadBalancerAccessLogResponse.java | 10 ++++++++++ .../GetLoadBalancerAttributeResponse.java | 20 +++++++++++++++++++ ...BalancerAccessLogResponseUnmarshaller.java | 3 ++- ...BalancerAttributeResponseUnmarshaller.java | 12 +++++++++++ 6 files changed, 48 insertions(+), 2 deletions(-) diff --git a/aliyun-java-sdk-alb/ChangeLog.txt b/aliyun-java-sdk-alb/ChangeLog.txt index bf6dc34f26..4b746098ee 100644 --- a/aliyun-java-sdk-alb/ChangeLog.txt +++ b/aliyun-java-sdk-alb/ChangeLog.txt @@ -1,3 +1,6 @@ +2024-11-04 Version: 1.0.20 +- Support Ipv4LocalAddresses and Ipv6LocalAddresses. + 2024-08-19 Version: 1.0.19 - support slow-start and connection drain for server group diff --git a/aliyun-java-sdk-alb/pom.xml b/aliyun-java-sdk-alb/pom.xml index bebaad23dc..a7b82c896e 100644 --- a/aliyun-java-sdk-alb/pom.xml +++ b/aliyun-java-sdk-alb/pom.xml @@ -4,7 +4,7 @@ com.aliyun aliyun-java-sdk-alb jar - 1.0.19 + 1.0.20 aliyun-java-sdk-alb http://www.aliyun.com Aliyun Open API SDK for Java diff --git a/aliyun-java-sdk-alb/src/main/java/com/aliyuncs/alb/model/v20200616/EnableLoadBalancerAccessLogResponse.java b/aliyun-java-sdk-alb/src/main/java/com/aliyuncs/alb/model/v20200616/EnableLoadBalancerAccessLogResponse.java index 1fce6f48ed..508bea6145 100644 --- a/aliyun-java-sdk-alb/src/main/java/com/aliyuncs/alb/model/v20200616/EnableLoadBalancerAccessLogResponse.java +++ b/aliyun-java-sdk-alb/src/main/java/com/aliyuncs/alb/model/v20200616/EnableLoadBalancerAccessLogResponse.java @@ -26,6 +26,8 @@ public class EnableLoadBalancerAccessLogResponse extends AcsResponse { private String requestId; + private String jobId; + public String getRequestId() { return this.requestId; } @@ -34,6 +36,14 @@ public void setRequestId(String requestId) { this.requestId = requestId; } + public String getJobId() { + return this.jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + @Override public EnableLoadBalancerAccessLogResponse getInstance(UnmarshallerContext context) { return EnableLoadBalancerAccessLogResponseUnmarshaller.unmarshall(this, context); diff --git a/aliyun-java-sdk-alb/src/main/java/com/aliyuncs/alb/model/v20200616/GetLoadBalancerAttributeResponse.java b/aliyun-java-sdk-alb/src/main/java/com/aliyuncs/alb/model/v20200616/GetLoadBalancerAttributeResponse.java index 4c2f1be1c0..3f9903505b 100644 --- a/aliyun-java-sdk-alb/src/main/java/com/aliyuncs/alb/model/v20200616/GetLoadBalancerAttributeResponse.java +++ b/aliyun-java-sdk-alb/src/main/java/com/aliyuncs/alb/model/v20200616/GetLoadBalancerAttributeResponse.java @@ -479,6 +479,10 @@ public static class LoadBalancerAddress { private String ipv6AddressHcStatus; + private List ipv4LocalAddresses; + + private List ipv6LocalAddresses; + public String getAddress() { return this.address; } @@ -534,6 +538,22 @@ public String getIpv6AddressHcStatus() { public void setIpv6AddressHcStatus(String ipv6AddressHcStatus) { this.ipv6AddressHcStatus = ipv6AddressHcStatus; } + + public List getIpv4LocalAddresses() { + return this.ipv4LocalAddresses; + } + + public void setIpv4LocalAddresses(List ipv4LocalAddresses) { + this.ipv4LocalAddresses = ipv4LocalAddresses; + } + + public List getIpv6LocalAddresses() { + return this.ipv6LocalAddresses; + } + + public void setIpv6LocalAddresses(List ipv6LocalAddresses) { + this.ipv6LocalAddresses = ipv6LocalAddresses; + } } } diff --git a/aliyun-java-sdk-alb/src/main/java/com/aliyuncs/alb/transform/v20200616/EnableLoadBalancerAccessLogResponseUnmarshaller.java b/aliyun-java-sdk-alb/src/main/java/com/aliyuncs/alb/transform/v20200616/EnableLoadBalancerAccessLogResponseUnmarshaller.java index 8b2d7947c1..b729a0dec1 100644 --- a/aliyun-java-sdk-alb/src/main/java/com/aliyuncs/alb/transform/v20200616/EnableLoadBalancerAccessLogResponseUnmarshaller.java +++ b/aliyun-java-sdk-alb/src/main/java/com/aliyuncs/alb/transform/v20200616/EnableLoadBalancerAccessLogResponseUnmarshaller.java @@ -22,7 +22,8 @@ public class EnableLoadBalancerAccessLogResponseUnmarshaller { public static EnableLoadBalancerAccessLogResponse unmarshall(EnableLoadBalancerAccessLogResponse enableLoadBalancerAccessLogResponse, UnmarshallerContext _ctx) { - enableLoadBalancerAccessLogResponse.setRequestId(_ctx.stringValue("EnableLoadBalancerAccessLogResponse.RequestId")); + enableLoadBalancerAccessLogResponse.setRequestId(_ctx.stringValue("EnableLoadBalancerAccessLogResponse.RequestId")); + enableLoadBalancerAccessLogResponse.setJobId(_ctx.stringValue("EnableLoadBalancerAccessLogResponse.JobId")); return enableLoadBalancerAccessLogResponse; } diff --git a/aliyun-java-sdk-alb/src/main/java/com/aliyuncs/alb/transform/v20200616/GetLoadBalancerAttributeResponseUnmarshaller.java b/aliyun-java-sdk-alb/src/main/java/com/aliyuncs/alb/transform/v20200616/GetLoadBalancerAttributeResponseUnmarshaller.java index 8c1de5bcf1..dfff001933 100644 --- a/aliyun-java-sdk-alb/src/main/java/com/aliyuncs/alb/transform/v20200616/GetLoadBalancerAttributeResponseUnmarshaller.java +++ b/aliyun-java-sdk-alb/src/main/java/com/aliyuncs/alb/transform/v20200616/GetLoadBalancerAttributeResponseUnmarshaller.java @@ -131,6 +131,18 @@ public static GetLoadBalancerAttributeResponse unmarshall(GetLoadBalancerAttribu loadBalancerAddress.setIntranetAddressHcStatus(_ctx.stringValue("GetLoadBalancerAttributeResponse.ZoneMappings["+ i +"].LoadBalancerAddresses["+ j +"].IntranetAddressHcStatus")); loadBalancerAddress.setIpv6AddressHcStatus(_ctx.stringValue("GetLoadBalancerAttributeResponse.ZoneMappings["+ i +"].LoadBalancerAddresses["+ j +"].Ipv6AddressHcStatus")); + List ipv4LocalAddresses = new ArrayList(); + for (int k = 0; k < _ctx.lengthValue("GetLoadBalancerAttributeResponse.ZoneMappings["+ i +"].LoadBalancerAddresses["+ j +"].Ipv4LocalAddresses.Length"); k++) { + ipv4LocalAddresses.add(_ctx.stringValue("GetLoadBalancerAttributeResponse.ZoneMappings["+ i +"].LoadBalancerAddresses["+ j +"].Ipv4LocalAddresses["+ k +"]")); + } + loadBalancerAddress.setIpv4LocalAddresses(ipv4LocalAddresses); + + List ipv6LocalAddresses = new ArrayList(); + for (int k = 0; k < _ctx.lengthValue("GetLoadBalancerAttributeResponse.ZoneMappings["+ i +"].LoadBalancerAddresses["+ j +"].Ipv6LocalAddresses.Length"); k++) { + ipv6LocalAddresses.add(_ctx.stringValue("GetLoadBalancerAttributeResponse.ZoneMappings["+ i +"].LoadBalancerAddresses["+ j +"].Ipv6LocalAddresses["+ k +"]")); + } + loadBalancerAddress.setIpv6LocalAddresses(ipv6LocalAddresses); + loadBalancerAddresses.add(loadBalancerAddress); } zoneMapping.setLoadBalancerAddresses(loadBalancerAddresses);