Skip to content

Commit

Permalink
Support importImage with clientToken.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Nov 22, 2024
1 parent 92ddfcf commit c7d93e8
Show file tree
Hide file tree
Showing 7 changed files with 68 additions and 2 deletions.
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-22 Version: 5.11.14
- Support importImage with clientToken.

2024-11-07 Version: 5.11.13
- Add source dest check param.

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.13</version>
<version>5.11.14</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 @@ -38,6 +38,8 @@ public class DescribeInstanceHistoryEventsRequest extends RpcAcsRequest<Describe

private String resourceGroupId;

private String nextToken;

private Integer pageSize;

private List<String> instanceEventCycleStatuss;
Expand Down Expand Up @@ -66,6 +68,8 @@ public class DescribeInstanceHistoryEventsRequest extends RpcAcsRequest<Describe

private String notBeforeEnd;

private Long maxResults;

private String eventType;
public DescribeInstanceHistoryEventsRequest() {
super("Ecs", "2014-05-26", "DescribeInstanceHistoryEvents", "ecs");
Expand Down Expand Up @@ -144,6 +148,17 @@ public void setResourceGroupId(String resourceGroupId) {
}
}

public String getNextToken() {
return this.nextToken;
}

public void setNextToken(String nextToken) {
this.nextToken = nextToken;
if(nextToken != null){
putQueryParameter("NextToken", nextToken);
}
}

public Integer getPageSize() {
return this.pageSize;
}
Expand Down Expand Up @@ -307,6 +322,17 @@ public void setNotBeforeEnd(String notBeforeEnd) {
}
}

public Long getMaxResults() {
return this.maxResults;
}

public void setMaxResults(Long maxResults) {
this.maxResults = maxResults;
if(maxResults != null){
putQueryParameter("MaxResults", maxResults.toString());
}
}

public String getEventType() {
return this.eventType;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ public class DescribeInstanceHistoryEventsResponse extends AcsResponse {

private Integer totalCount;

private String nextToken;

private List<InstanceSystemEventType> instanceSystemEventSet;

public Integer getPageSize() {
Expand Down Expand Up @@ -67,6 +69,14 @@ public void setTotalCount(Integer totalCount) {
this.totalCount = totalCount;
}

public String getNextToken() {
return this.nextToken;
}

public void setNextToken(String nextToken) {
this.nextToken = nextToken;
}

public List<InstanceSystemEventType> getInstanceSystemEventSet() {
return this.instanceSystemEventSet;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ public class ImportImageRequest extends RpcAcsRequest<ImportImageResponse> {

private Long resourceOwnerId;

private String clientToken;

private String description;

private String platform;
Expand Down Expand Up @@ -99,6 +101,17 @@ public void setResourceOwnerId(Long resourceOwnerId) {
}
}

public String getClientToken() {
return this.clientToken;
}

public void setClientToken(String clientToken) {
this.clientToken = clientToken;
if(clientToken != null){
putQueryParameter("ClientToken", clientToken);
}
}

public String getDescription() {
return this.description;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ public class RedeployDedicatedHostRequest extends RpcAcsRequest<RedeployDedicate

private String dedicatedHostId;

private Long ownerId;
private Long ownerId;

private String migrationType;
public RedeployDedicatedHostRequest() {
super("Ecs", "2014-05-26", "RedeployDedicatedHost", "ecs");
setMethod(MethodType.POST);
Expand Down Expand Up @@ -96,6 +98,17 @@ public void setOwnerId(Long ownerId) {
if(ownerId != null){
putQueryParameter("OwnerId", ownerId.toString());
}
}

public String getMigrationType() {
return this.migrationType;
}

public void setMigrationType(String migrationType) {
this.migrationType = migrationType;
if(migrationType != null){
putQueryParameter("MigrationType", migrationType);
}
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public static DescribeInstanceHistoryEventsResponse unmarshall(DescribeInstanceH
describeInstanceHistoryEventsResponse.setPageSize(_ctx.integerValue("DescribeInstanceHistoryEventsResponse.PageSize"));
describeInstanceHistoryEventsResponse.setPageNumber(_ctx.integerValue("DescribeInstanceHistoryEventsResponse.PageNumber"));
describeInstanceHistoryEventsResponse.setTotalCount(_ctx.integerValue("DescribeInstanceHistoryEventsResponse.TotalCount"));
describeInstanceHistoryEventsResponse.setNextToken(_ctx.stringValue("DescribeInstanceHistoryEventsResponse.NextToken"));

List<InstanceSystemEventType> instanceSystemEventSet = new ArrayList<InstanceSystemEventType>();
for (int i = 0; i < _ctx.lengthValue("DescribeInstanceHistoryEventsResponse.InstanceSystemEventSet.Length"); i++) {
Expand Down

0 comments on commit c7d93e8

Please sign in to comment.