Skip to content

Commit 43fa6a6

Browse files
committed
Add ResourcePoolOptions.Strategy for CreateAutoProvisioningGroup.
1 parent f4115a7 commit 43fa6a6

28 files changed

+541
-598
lines changed

aliyun-java-sdk-ecs/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2024-10-15 Version: 5.11.10
2+
- Add ResourcePoolOptions.Strategy for CreateAutoProvisioningGroup.
3+
14
2024-09-14 Version: 5.11.9
25
- Update EBS default encrypted APIs from private to public.
36
- Support describe and modify source dest check property of ENI.

aliyun-java-sdk-ecs/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<groupId>com.aliyun</groupId>
55
<artifactId>aliyun-java-sdk-ecs</artifactId>
66
<packaging>jar</packaging>
7-
<version>5.11.9</version>
7+
<version>5.11.10</version>
88
<name>aliyun-java-sdk-ecs</name>
99
<url>http://www.aliyun.com</url>
1010
<description>Aliyun Open API SDK for Java

aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateAutoProvisioningGroupRequest.java

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616

1717
import com.aliyuncs.RpcAcsRequest;
1818
import java.util.List;
19+
import com.google.gson.Gson;
20+
import com.google.gson.annotations.SerializedName;
1921
import com.aliyuncs.http.MethodType;
2022
import com.aliyuncs.ecs.Endpoint;
2123

@@ -104,6 +106,9 @@ public class CreateAutoProvisioningGroupRequest extends RpcAcsRequest<CreateAuto
104106

105107
private String spotAllocationStrategy;
106108

109+
@SerializedName("resourcePoolOptions")
110+
private ResourcePoolOptions resourcePoolOptions;
111+
107112
private Boolean terminateInstances;
108113

109114
private String launchConfigurationSystemDiskName;
@@ -621,6 +626,17 @@ public void setSpotAllocationStrategy(String spotAllocationStrategy) {
621626
}
622627
}
623628

629+
public ResourcePoolOptions getResourcePoolOptions() {
630+
return this.resourcePoolOptions;
631+
}
632+
633+
public void setResourcePoolOptions(ResourcePoolOptions resourcePoolOptions) {
634+
this.resourcePoolOptions = resourcePoolOptions;
635+
if (resourcePoolOptions != null) {
636+
putQueryParameter("ResourcePoolOptions" , new Gson().toJson(resourcePoolOptions));
637+
}
638+
}
639+
624640
public Boolean getTerminateInstances() {
625641
return this.terminateInstances;
626642
}
@@ -1179,6 +1195,31 @@ public void setBurstingEnabled(Boolean burstingEnabled) {
11791195
}
11801196
}
11811197

1198+
public static class ResourcePoolOptions {
1199+
1200+
@SerializedName("Strategy")
1201+
private String strategy;
1202+
1203+
@SerializedName("PrivatePoolIds")
1204+
private List<String> privatePoolIds;
1205+
1206+
public String getStrategy() {
1207+
return this.strategy;
1208+
}
1209+
1210+
public void setStrategy(String strategy) {
1211+
this.strategy = strategy;
1212+
}
1213+
1214+
public List<String> getPrivatePoolIds() {
1215+
return this.privatePoolIds;
1216+
}
1217+
1218+
public void setPrivatePoolIds(List<String> privatePoolIds) {
1219+
this.privatePoolIds = privatePoolIds;
1220+
}
1221+
}
1222+
11821223
public static class LaunchTemplateConfig {
11831224

11841225
private String vSwitchId;

aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateImageComponentRequest.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ public class CreateImageComponentRequest extends RpcAcsRequest<CreateImageCompon
3434

3535
private String systemType;
3636

37+
private String componentVersion;
38+
3739
private String content;
3840

3941
private String resourceGroupId;
@@ -102,6 +104,17 @@ public void setSystemType(String systemType) {
102104
}
103105
}
104106

107+
public String getComponentVersion() {
108+
return this.componentVersion;
109+
}
110+
111+
public void setComponentVersion(String componentVersion) {
112+
this.componentVersion = componentVersion;
113+
if(componentVersion != null){
114+
putQueryParameter("ComponentVersion", componentVersion);
115+
}
116+
}
117+
105118
public String getContent() {
106119
return this.content;
107120
}

aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateImagePipelineRequest.java

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ public class CreateImagePipelineRequest extends RpcAcsRequest<CreateImagePipelin
5252

5353
private String ownerAccount;
5454

55+
private String repairMode;
56+
5557
private Long ownerId;
5658

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

6567
private String name;
6668

67-
private String buildContent;
69+
private String imageFamily;
70+
71+
private String buildContent;
72+
73+
private String testContent;
6874
public CreateImagePipelineRequest() {
6975
super("Ecs", "2014-05-26", "CreateImagePipeline", "ecs");
7076
setMethod(MethodType.POST);
@@ -222,6 +228,17 @@ public void setOwnerAccount(String ownerAccount) {
222228
}
223229
}
224230

231+
public String getRepairMode() {
232+
return this.repairMode;
233+
}
234+
235+
public void setRepairMode(String repairMode) {
236+
this.repairMode = repairMode;
237+
if(repairMode != null){
238+
putQueryParameter("RepairMode", repairMode);
239+
}
240+
}
241+
225242
public Long getOwnerId() {
226243
return this.ownerId;
227244
}
@@ -290,6 +307,17 @@ public void setName(String name) {
290307
}
291308
}
292309

310+
public String getImageFamily() {
311+
return this.imageFamily;
312+
}
313+
314+
public void setImageFamily(String imageFamily) {
315+
this.imageFamily = imageFamily;
316+
if(imageFamily != null){
317+
putQueryParameter("ImageFamily", imageFamily);
318+
}
319+
}
320+
293321
public String getBuildContent() {
294322
return this.buildContent;
295323
}
@@ -301,6 +329,17 @@ public void setBuildContent(String buildContent) {
301329
}
302330
}
303331

332+
public String getTestContent() {
333+
return this.testContent;
334+
}
335+
336+
public void setTestContent(String testContent) {
337+
this.testContent = testContent;
338+
if(testContent != null){
339+
putQueryParameter("TestContent", testContent);
340+
}
341+
}
342+
304343
public static class Tag {
305344

306345
private String key;

aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateLaunchTemplateRequest.java

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ public class CreateLaunchTemplateRequest extends RpcAcsRequest<CreateLaunchTempl
3030

3131
private Long resourceOwnerId;
3232

33+
private Integer httpPutResponseHopLimit;
34+
3335
private String securityEnhancementStrategy;
3436

3537
private String networkType;
@@ -106,6 +108,8 @@ public class CreateLaunchTemplateRequest extends RpcAcsRequest<CreateLaunchTempl
106108

107109
private Boolean passwordInherit;
108110

111+
private String httpEndpoint;
112+
109113
private String instanceType;
110114

111115
private String instanceChargeType;
@@ -140,6 +144,8 @@ public class CreateLaunchTemplateRequest extends RpcAcsRequest<CreateLaunchTempl
140144

141145
private String vpcId;
142146

147+
private String httpTokens;
148+
143149
private String systemDiskDescription;
144150

145151
private String systemDiskEncrypted;
@@ -174,6 +180,17 @@ public void setResourceOwnerId(Long resourceOwnerId) {
174180
}
175181
}
176182

183+
public Integer getHttpPutResponseHopLimit() {
184+
return this.httpPutResponseHopLimit;
185+
}
186+
187+
public void setHttpPutResponseHopLimit(Integer httpPutResponseHopLimit) {
188+
this.httpPutResponseHopLimit = httpPutResponseHopLimit;
189+
if(httpPutResponseHopLimit != null){
190+
putQueryParameter("HttpPutResponseHopLimit", httpPutResponseHopLimit.toString());
191+
}
192+
}
193+
177194
public String getSecurityEnhancementStrategy() {
178195
return this.securityEnhancementStrategy;
179196
}
@@ -598,6 +615,17 @@ public void setPasswordInherit(Boolean passwordInherit) {
598615
}
599616
}
600617

618+
public String getHttpEndpoint() {
619+
return this.httpEndpoint;
620+
}
621+
622+
public void setHttpEndpoint(String httpEndpoint) {
623+
this.httpEndpoint = httpEndpoint;
624+
if(httpEndpoint != null){
625+
putQueryParameter("HttpEndpoint", httpEndpoint);
626+
}
627+
}
628+
601629
public String getInstanceType() {
602630
return this.instanceType;
603631
}
@@ -813,6 +841,17 @@ public void setVpcId(String vpcId) {
813841
}
814842
}
815843

844+
public String getHttpTokens() {
845+
return this.httpTokens;
846+
}
847+
848+
public void setHttpTokens(String httpTokens) {
849+
this.httpTokens = httpTokens;
850+
if(httpTokens != null){
851+
putQueryParameter("HttpTokens", httpTokens);
852+
}
853+
}
854+
816855
public String getSystemDiskDescription() {
817856
return this.systemDiskDescription;
818857
}

aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/CreateLaunchTemplateVersionRequest.java

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ public class CreateLaunchTemplateVersionRequest extends RpcAcsRequest<CreateLaun
3030

3131
private Long resourceOwnerId;
3232

33+
private Integer httpPutResponseHopLimit;
34+
3335
private String securityEnhancementStrategy;
3436

3537
private String networkType;
@@ -104,6 +106,8 @@ public class CreateLaunchTemplateVersionRequest extends RpcAcsRequest<CreateLaun
104106

105107
private Boolean passwordInherit;
106108

109+
private String httpEndpoint;
110+
107111
private String instanceType;
108112

109113
private String instanceChargeType;
@@ -138,6 +142,8 @@ public class CreateLaunchTemplateVersionRequest extends RpcAcsRequest<CreateLaun
138142

139143
private String vpcId;
140144

145+
private String httpTokens;
146+
141147
private String systemDiskDescription;
142148

143149
private String systemDiskEncrypted;
@@ -172,6 +178,17 @@ public void setResourceOwnerId(Long resourceOwnerId) {
172178
}
173179
}
174180

181+
public Integer getHttpPutResponseHopLimit() {
182+
return this.httpPutResponseHopLimit;
183+
}
184+
185+
public void setHttpPutResponseHopLimit(Integer httpPutResponseHopLimit) {
186+
this.httpPutResponseHopLimit = httpPutResponseHopLimit;
187+
if(httpPutResponseHopLimit != null){
188+
putQueryParameter("HttpPutResponseHopLimit", httpPutResponseHopLimit.toString());
189+
}
190+
}
191+
175192
public String getSecurityEnhancementStrategy() {
176193
return this.securityEnhancementStrategy;
177194
}
@@ -582,6 +599,17 @@ public void setPasswordInherit(Boolean passwordInherit) {
582599
}
583600
}
584601

602+
public String getHttpEndpoint() {
603+
return this.httpEndpoint;
604+
}
605+
606+
public void setHttpEndpoint(String httpEndpoint) {
607+
this.httpEndpoint = httpEndpoint;
608+
if(httpEndpoint != null){
609+
putQueryParameter("HttpEndpoint", httpEndpoint);
610+
}
611+
}
612+
585613
public String getInstanceType() {
586614
return this.instanceType;
587615
}
@@ -797,6 +825,17 @@ public void setVpcId(String vpcId) {
797825
}
798826
}
799827

828+
public String getHttpTokens() {
829+
return this.httpTokens;
830+
}
831+
832+
public void setHttpTokens(String httpTokens) {
833+
this.httpTokens = httpTokens;
834+
if(httpTokens != null){
835+
putQueryParameter("HttpTokens", httpTokens);
836+
}
837+
}
838+
800839
public String getSystemDiskDescription() {
801840
return this.systemDiskDescription;
802841
}

0 commit comments

Comments
 (0)