Skip to content

Commit

Permalink
Add ResourcePoolOptions.Strategy for CreateAutoProvisioningGroup.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Oct 15, 2024
1 parent f4115a7 commit 43fa6a6
Show file tree
Hide file tree
Showing 28 changed files with 541 additions and 598 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-10-15 Version: 5.11.10
- Add ResourcePoolOptions.Strategy for CreateAutoProvisioningGroup.

2024-09-14 Version: 5.11.9
- Update EBS default encrypted APIs from private to public.
- Support describe and modify source dest check property of ENI.
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.9</version>
<version>5.11.10</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 @@ -16,6 +16,8 @@

import com.aliyuncs.RpcAcsRequest;
import java.util.List;
import com.google.gson.Gson;
import com.google.gson.annotations.SerializedName;
import com.aliyuncs.http.MethodType;
import com.aliyuncs.ecs.Endpoint;

Expand Down Expand Up @@ -104,6 +106,9 @@ public class CreateAutoProvisioningGroupRequest extends RpcAcsRequest<CreateAuto

private String spotAllocationStrategy;

@SerializedName("resourcePoolOptions")
private ResourcePoolOptions resourcePoolOptions;

private Boolean terminateInstances;

private String launchConfigurationSystemDiskName;
Expand Down Expand Up @@ -621,6 +626,17 @@ public void setSpotAllocationStrategy(String spotAllocationStrategy) {
}
}

public ResourcePoolOptions getResourcePoolOptions() {
return this.resourcePoolOptions;
}

public void setResourcePoolOptions(ResourcePoolOptions resourcePoolOptions) {
this.resourcePoolOptions = resourcePoolOptions;
if (resourcePoolOptions != null) {
putQueryParameter("ResourcePoolOptions" , new Gson().toJson(resourcePoolOptions));
}
}

public Boolean getTerminateInstances() {
return this.terminateInstances;
}
Expand Down Expand Up @@ -1179,6 +1195,31 @@ public void setBurstingEnabled(Boolean burstingEnabled) {
}
}

public static class ResourcePoolOptions {

@SerializedName("Strategy")
private String strategy;

@SerializedName("PrivatePoolIds")
private List<String> privatePoolIds;

public String getStrategy() {
return this.strategy;
}

public void setStrategy(String strategy) {
this.strategy = strategy;
}

public List<String> getPrivatePoolIds() {
return this.privatePoolIds;
}

public void setPrivatePoolIds(List<String> privatePoolIds) {
this.privatePoolIds = privatePoolIds;
}
}

public static class LaunchTemplateConfig {

private String vSwitchId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ public class CreateImageComponentRequest extends RpcAcsRequest<CreateImageCompon

private String systemType;

private String componentVersion;

private String content;

private String resourceGroupId;
Expand Down Expand Up @@ -102,6 +104,17 @@ public void setSystemType(String systemType) {
}
}

public String getComponentVersion() {
return this.componentVersion;
}

public void setComponentVersion(String componentVersion) {
this.componentVersion = componentVersion;
if(componentVersion != null){
putQueryParameter("ComponentVersion", componentVersion);
}
}

public String getContent() {
return this.content;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ public class CreateImagePipelineRequest extends RpcAcsRequest<CreateImagePipelin

private String ownerAccount;

private String repairMode;

private Long ownerId;

private String baseImage;
Expand All @@ -64,7 +66,11 @@ public class CreateImagePipelineRequest extends RpcAcsRequest<CreateImagePipelin

private String name;

private String buildContent;
private String imageFamily;

private String buildContent;

private String testContent;
public CreateImagePipelineRequest() {
super("Ecs", "2014-05-26", "CreateImagePipeline", "ecs");
setMethod(MethodType.POST);
Expand Down Expand Up @@ -222,6 +228,17 @@ public void setOwnerAccount(String ownerAccount) {
}
}

public String getRepairMode() {
return this.repairMode;
}

public void setRepairMode(String repairMode) {
this.repairMode = repairMode;
if(repairMode != null){
putQueryParameter("RepairMode", repairMode);
}
}

public Long getOwnerId() {
return this.ownerId;
}
Expand Down Expand Up @@ -290,6 +307,17 @@ public void setName(String name) {
}
}

public String getImageFamily() {
return this.imageFamily;
}

public void setImageFamily(String imageFamily) {
this.imageFamily = imageFamily;
if(imageFamily != null){
putQueryParameter("ImageFamily", imageFamily);
}
}

public String getBuildContent() {
return this.buildContent;
}
Expand All @@ -301,6 +329,17 @@ public void setBuildContent(String buildContent) {
}
}

public String getTestContent() {
return this.testContent;
}

public void setTestContent(String testContent) {
this.testContent = testContent;
if(testContent != null){
putQueryParameter("TestContent", testContent);
}
}

public static class Tag {

private String key;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ public class CreateLaunchTemplateRequest extends RpcAcsRequest<CreateLaunchTempl

private Long resourceOwnerId;

private Integer httpPutResponseHopLimit;

private String securityEnhancementStrategy;

private String networkType;
Expand Down Expand Up @@ -106,6 +108,8 @@ public class CreateLaunchTemplateRequest extends RpcAcsRequest<CreateLaunchTempl

private Boolean passwordInherit;

private String httpEndpoint;

private String instanceType;

private String instanceChargeType;
Expand Down Expand Up @@ -140,6 +144,8 @@ public class CreateLaunchTemplateRequest extends RpcAcsRequest<CreateLaunchTempl

private String vpcId;

private String httpTokens;

private String systemDiskDescription;

private String systemDiskEncrypted;
Expand Down Expand Up @@ -174,6 +180,17 @@ public void setResourceOwnerId(Long resourceOwnerId) {
}
}

public Integer getHttpPutResponseHopLimit() {
return this.httpPutResponseHopLimit;
}

public void setHttpPutResponseHopLimit(Integer httpPutResponseHopLimit) {
this.httpPutResponseHopLimit = httpPutResponseHopLimit;
if(httpPutResponseHopLimit != null){
putQueryParameter("HttpPutResponseHopLimit", httpPutResponseHopLimit.toString());
}
}

public String getSecurityEnhancementStrategy() {
return this.securityEnhancementStrategy;
}
Expand Down Expand Up @@ -598,6 +615,17 @@ public void setPasswordInherit(Boolean passwordInherit) {
}
}

public String getHttpEndpoint() {
return this.httpEndpoint;
}

public void setHttpEndpoint(String httpEndpoint) {
this.httpEndpoint = httpEndpoint;
if(httpEndpoint != null){
putQueryParameter("HttpEndpoint", httpEndpoint);
}
}

public String getInstanceType() {
return this.instanceType;
}
Expand Down Expand Up @@ -813,6 +841,17 @@ public void setVpcId(String vpcId) {
}
}

public String getHttpTokens() {
return this.httpTokens;
}

public void setHttpTokens(String httpTokens) {
this.httpTokens = httpTokens;
if(httpTokens != null){
putQueryParameter("HttpTokens", httpTokens);
}
}

public String getSystemDiskDescription() {
return this.systemDiskDescription;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ public class CreateLaunchTemplateVersionRequest extends RpcAcsRequest<CreateLaun

private Long resourceOwnerId;

private Integer httpPutResponseHopLimit;

private String securityEnhancementStrategy;

private String networkType;
Expand Down Expand Up @@ -104,6 +106,8 @@ public class CreateLaunchTemplateVersionRequest extends RpcAcsRequest<CreateLaun

private Boolean passwordInherit;

private String httpEndpoint;

private String instanceType;

private String instanceChargeType;
Expand Down Expand Up @@ -138,6 +142,8 @@ public class CreateLaunchTemplateVersionRequest extends RpcAcsRequest<CreateLaun

private String vpcId;

private String httpTokens;

private String systemDiskDescription;

private String systemDiskEncrypted;
Expand Down Expand Up @@ -172,6 +178,17 @@ public void setResourceOwnerId(Long resourceOwnerId) {
}
}

public Integer getHttpPutResponseHopLimit() {
return this.httpPutResponseHopLimit;
}

public void setHttpPutResponseHopLimit(Integer httpPutResponseHopLimit) {
this.httpPutResponseHopLimit = httpPutResponseHopLimit;
if(httpPutResponseHopLimit != null){
putQueryParameter("HttpPutResponseHopLimit", httpPutResponseHopLimit.toString());
}
}

public String getSecurityEnhancementStrategy() {
return this.securityEnhancementStrategy;
}
Expand Down Expand Up @@ -582,6 +599,17 @@ public void setPasswordInherit(Boolean passwordInherit) {
}
}

public String getHttpEndpoint() {
return this.httpEndpoint;
}

public void setHttpEndpoint(String httpEndpoint) {
this.httpEndpoint = httpEndpoint;
if(httpEndpoint != null){
putQueryParameter("HttpEndpoint", httpEndpoint);
}
}

public String getInstanceType() {
return this.instanceType;
}
Expand Down Expand Up @@ -797,6 +825,17 @@ public void setVpcId(String vpcId) {
}
}

public String getHttpTokens() {
return this.httpTokens;
}

public void setHttpTokens(String httpTokens) {
this.httpTokens = httpTokens;
if(httpTokens != null){
putQueryParameter("HttpTokens", httpTokens);
}
}

public String getSystemDiskDescription() {
return this.systemDiskDescription;
}
Expand Down
Loading

0 comments on commit 43fa6a6

Please sign in to comment.