Skip to content

Commit

Permalink
Support Ipv4LocalAddresses and Ipv6LocalAddresses.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Nov 4, 2024
1 parent eaf5eea commit be3df61
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 2 deletions.
3 changes: 3 additions & 0 deletions aliyun-java-sdk-alb/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion aliyun-java-sdk-alb/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<groupId>com.aliyun</groupId>
<artifactId>aliyun-java-sdk-alb</artifactId>
<packaging>jar</packaging>
<version>1.0.19</version>
<version>1.0.20</version>
<name>aliyun-java-sdk-alb</name>
<url>http://www.aliyun.com</url>
<description>Aliyun Open API SDK for Java
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ public class EnableLoadBalancerAccessLogResponse extends AcsResponse {

private String requestId;

private String jobId;

public String getRequestId() {
return this.requestId;
}
Expand All @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,10 @@ public static class LoadBalancerAddress {

private String ipv6AddressHcStatus;

private List<String> ipv4LocalAddresses;

private List<String> ipv6LocalAddresses;

public String getAddress() {
return this.address;
}
Expand Down Expand Up @@ -534,6 +538,22 @@ public String getIpv6AddressHcStatus() {
public void setIpv6AddressHcStatus(String ipv6AddressHcStatus) {
this.ipv6AddressHcStatus = ipv6AddressHcStatus;
}

public List<String> getIpv4LocalAddresses() {
return this.ipv4LocalAddresses;
}

public void setIpv4LocalAddresses(List<String> ipv4LocalAddresses) {
this.ipv4LocalAddresses = ipv4LocalAddresses;
}

public List<String> getIpv6LocalAddresses() {
return this.ipv6LocalAddresses;
}

public void setIpv6LocalAddresses(List<String> ipv6LocalAddresses) {
this.ipv6LocalAddresses = ipv6LocalAddresses;
}
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<String> ipv4LocalAddresses = new ArrayList<String>();
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<String> ipv6LocalAddresses = new ArrayList<String>();
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);
Expand Down

0 comments on commit be3df61

Please sign in to comment.