Skip to content

Commit

Permalink
Add source dest check param.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Nov 7, 2024
1 parent 828c99f commit 5ca24de
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 1 deletion.
3 changes: 3 additions & 0 deletions aliyun-java-sdk-ecs/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2024-11-07 Version: 5.11.13
- Add source dest check param.

2024-10-31 Version: 5.11.12
- DescribeInstanceTypes add CpuOptions.

Expand Down
2 changes: 1 addition & 1 deletion aliyun-java-sdk-ecs/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-ecs</artifactId>
<packaging>jar</packaging>
<version>5.11.12</version>
<version>5.11.13</version>
<name>aliyun-java-sdk-ecs</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 @@ -70,6 +70,8 @@ public class CreateNetworkInterfaceRequest extends RpcAcsRequest<CreateNetworkIn

private Integer ipv6PrefixCount;

private Boolean sourceDestCheck;

private String instanceType;

private Integer txQueueSize;
Expand Down Expand Up @@ -359,6 +361,17 @@ public void setIpv6PrefixCount(Integer ipv6PrefixCount) {
}
}

public Boolean getSourceDestCheck() {
return this.sourceDestCheck;
}

public void setSourceDestCheck(Boolean sourceDestCheck) {
this.sourceDestCheck = sourceDestCheck;
if(sourceDestCheck != null){
putQueryParameter("SourceDestCheck", sourceDestCheck.toString());
}
}

public String getInstanceType() {
return this.instanceType;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ public class CreateNetworkInterfaceResponse extends AcsResponse {

private String privateIpAddress;

private Boolean sourceDestCheck;

private List<PrivateIpSet> privateIpSets;

private List<Tag> tags;
Expand Down Expand Up @@ -187,6 +189,14 @@ public void setPrivateIpAddress(String privateIpAddress) {
this.privateIpAddress = privateIpAddress;
}

public Boolean getSourceDestCheck() {
return this.sourceDestCheck;
}

public void setSourceDestCheck(Boolean sourceDestCheck) {
this.sourceDestCheck = sourceDestCheck;
}

public List<PrivateIpSet> getPrivateIpSets() {
return this.privateIpSets;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1081,6 +1081,7 @@ public void setNetworkInterfaces(List<NetworkInterface> networkInterfaces) {
putQueryParameter("NetworkInterface." + (depth1 + 1) + ".NetworkInterfaceId" , networkInterfaces.get(depth1).getNetworkInterfaceId());
putQueryParameter("NetworkInterface." + (depth1 + 1) + ".RxQueueSize" , networkInterfaces.get(depth1).getRxQueueSize());
putQueryParameter("NetworkInterface." + (depth1 + 1) + ".TxQueueSize" , networkInterfaces.get(depth1).getTxQueueSize());
putQueryParameter("NetworkInterface." + (depth1 + 1) + ".SourceDestCheck" , networkInterfaces.get(depth1).getSourceDestCheck());
}
}
}
Expand Down Expand Up @@ -1467,6 +1468,8 @@ public static class NetworkInterface {

private Integer txQueueSize;

private Boolean sourceDestCheck;

public String getVSwitchId() {
return this.vSwitchId;
}
Expand Down Expand Up @@ -1602,6 +1605,14 @@ public Integer getTxQueueSize() {
public void setTxQueueSize(Integer txQueueSize) {
this.txQueueSize = txQueueSize;
}

public Boolean getSourceDestCheck() {
return this.sourceDestCheck;
}

public void setSourceDestCheck(Boolean sourceDestCheck) {
this.sourceDestCheck = sourceDestCheck;
}
}

public static class DataDisk {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public static CreateNetworkInterfaceResponse unmarshall(CreateNetworkInterfaceRe
createNetworkInterfaceResponse.setResourceGroupId(_ctx.stringValue("CreateNetworkInterfaceResponse.ResourceGroupId"));
createNetworkInterfaceResponse.setZoneId(_ctx.stringValue("CreateNetworkInterfaceResponse.ZoneId"));
createNetworkInterfaceResponse.setPrivateIpAddress(_ctx.stringValue("CreateNetworkInterfaceResponse.PrivateIpAddress"));
createNetworkInterfaceResponse.setSourceDestCheck(_ctx.booleanValue("CreateNetworkInterfaceResponse.SourceDestCheck"));

List<String> securityGroupIds = new ArrayList<String>();
for (int i = 0; i < _ctx.lengthValue("CreateNetworkInterfaceResponse.SecurityGroupIds.Length"); i++) {
Expand Down

0 comments on commit 5ca24de

Please sign in to comment.