Skip to content

Commit

Permalink
Support ClientToken for Idemoptent.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Nov 3, 2023
1 parent 22487d6 commit bcff9d9
Show file tree
Hide file tree
Showing 4 changed files with 131 additions and 3 deletions.
3 changes: 3 additions & 0 deletions aliyun-java-sdk-eflo/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2023-11-03 Version: 1.0.9
- Support ClientToken for Idemoptent.

2023-10-20 Version: 1.0.8
- Support ClientToken for Idemoptent.

Expand Down
2 changes: 1 addition & 1 deletion aliyun-java-sdk-eflo/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-eflo</artifactId>
<packaging>jar</packaging>
<version>1.0.8</version>
<version>1.0.9</version>
<name>aliyun-java-sdk-eflo</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 @@ -13,7 +13,8 @@
*/

package com.aliyuncs.eflo.model.v20220530;


import java.util.List;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.eflo.transform.v20220530.GetElasticNetworkInterfaceResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;
Expand Down Expand Up @@ -98,6 +99,8 @@ public static class Content {

private String description;

private List<PrivateIpAddresse> privateIpAddresses;

public String getRegionId() {
return this.regionId;
}
Expand Down Expand Up @@ -225,6 +228,107 @@ public String getDescription() {
public void setDescription(String description) {
this.description = description;
}

public List<PrivateIpAddresse> getPrivateIpAddresses() {
return this.privateIpAddresses;
}

public void setPrivateIpAddresses(List<PrivateIpAddresse> privateIpAddresses) {
this.privateIpAddresses = privateIpAddresses;
}

public static class PrivateIpAddresse {

private String elasticNetworkInterfaceId;

private String regionId;

private String gmtCreate;

private String gmtModified;

private String ipName;

private String privateIpAddress;

private String status;

private String description;

private String message;

public String getElasticNetworkInterfaceId() {
return this.elasticNetworkInterfaceId;
}

public void setElasticNetworkInterfaceId(String elasticNetworkInterfaceId) {
this.elasticNetworkInterfaceId = elasticNetworkInterfaceId;
}

public String getRegionId() {
return this.regionId;
}

public void setRegionId(String regionId) {
this.regionId = regionId;
}

public String getGmtCreate() {
return this.gmtCreate;
}

public void setGmtCreate(String gmtCreate) {
this.gmtCreate = gmtCreate;
}

public String getGmtModified() {
return this.gmtModified;
}

public void setGmtModified(String gmtModified) {
this.gmtModified = gmtModified;
}

public String getIpName() {
return this.ipName;
}

public void setIpName(String ipName) {
this.ipName = ipName;
}

public String getPrivateIpAddress() {
return this.privateIpAddress;
}

public void setPrivateIpAddress(String privateIpAddress) {
this.privateIpAddress = privateIpAddress;
}

public String getStatus() {
return this.status;
}

public void setStatus(String status) {
this.status = status;
}

public String getDescription() {
return this.description;
}

public void setDescription(String description) {
this.description = description;
}

public String getMessage() {
return this.message;
}

public void setMessage(String message) {
this.message = message;
}
}
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,12 @@

package com.aliyuncs.eflo.transform.v20220530;

import java.util.ArrayList;
import java.util.List;

import com.aliyuncs.eflo.model.v20220530.GetElasticNetworkInterfaceResponse;
import com.aliyuncs.eflo.model.v20220530.GetElasticNetworkInterfaceResponse.Content;
import com.aliyuncs.eflo.model.v20220530.GetElasticNetworkInterfaceResponse.Content;
import com.aliyuncs.eflo.model.v20220530.GetElasticNetworkInterfaceResponse.Content.PrivateIpAddresse;
import com.aliyuncs.transform.UnmarshallerContext;


Expand Down Expand Up @@ -44,6 +48,23 @@ public static GetElasticNetworkInterfaceResponse unmarshall(GetElasticNetworkInt
content.setCreateTime(_ctx.stringValue("GetElasticNetworkInterfaceResponse.Content.CreateTime"));
content.setGmtModified(_ctx.stringValue("GetElasticNetworkInterfaceResponse.Content.GmtModified"));
content.setDescription(_ctx.stringValue("GetElasticNetworkInterfaceResponse.Content.Description"));

List<PrivateIpAddresse> privateIpAddresses = new ArrayList<PrivateIpAddresse>();
for (int i = 0; i < _ctx.lengthValue("GetElasticNetworkInterfaceResponse.Content.PrivateIpAddresses.Length"); i++) {
PrivateIpAddresse privateIpAddresse = new PrivateIpAddresse();
privateIpAddresse.setElasticNetworkInterfaceId(_ctx.stringValue("GetElasticNetworkInterfaceResponse.Content.PrivateIpAddresses["+ i +"].ElasticNetworkInterfaceId"));
privateIpAddresse.setRegionId(_ctx.stringValue("GetElasticNetworkInterfaceResponse.Content.PrivateIpAddresses["+ i +"].RegionId"));
privateIpAddresse.setGmtCreate(_ctx.stringValue("GetElasticNetworkInterfaceResponse.Content.PrivateIpAddresses["+ i +"].GmtCreate"));
privateIpAddresse.setGmtModified(_ctx.stringValue("GetElasticNetworkInterfaceResponse.Content.PrivateIpAddresses["+ i +"].GmtModified"));
privateIpAddresse.setIpName(_ctx.stringValue("GetElasticNetworkInterfaceResponse.Content.PrivateIpAddresses["+ i +"].IpName"));
privateIpAddresse.setPrivateIpAddress(_ctx.stringValue("GetElasticNetworkInterfaceResponse.Content.PrivateIpAddresses["+ i +"].PrivateIpAddress"));
privateIpAddresse.setStatus(_ctx.stringValue("GetElasticNetworkInterfaceResponse.Content.PrivateIpAddresses["+ i +"].Status"));
privateIpAddresse.setDescription(_ctx.stringValue("GetElasticNetworkInterfaceResponse.Content.PrivateIpAddresses["+ i +"].Description"));
privateIpAddresse.setMessage(_ctx.stringValue("GetElasticNetworkInterfaceResponse.Content.PrivateIpAddresses["+ i +"].Message"));

privateIpAddresses.add(privateIpAddresse);
}
content.setPrivateIpAddresses(privateIpAddresses);
getElasticNetworkInterfaceResponse.setContent(content);

return getElasticNetworkInterfaceResponse;
Expand Down

0 comments on commit bcff9d9

Please sign in to comment.