Skip to content

Commit 049ba38

Browse files
committed
Support TrustedSystemMode for LaunchTemplate.
1 parent 65feac1 commit 049ba38

File tree

6 files changed

+87
-2
lines changed

6 files changed

+87
-2
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+
2025-09-15 Version: 5.11.24
2+
- Support TrustedSystemMode for LaunchTemplate.
3+
14
2025-09-11 Version: 5.11.23
25
- Generated 2014-05-26 for `Ecs`.
36

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.23</version>
7+
<version>5.11.24</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/CreateLaunchTemplateRequest.java

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

3333
private Integer httpPutResponseHopLimit;
3434

35+
private SecurityOptions securityOptions;
36+
3537
private String securityEnhancementStrategy;
3638

3739
private String networkType;
@@ -195,6 +197,18 @@ public void setHttpPutResponseHopLimit(Integer httpPutResponseHopLimit) {
195197
}
196198
}
197199

200+
public SecurityOptions getSecurityOptions() {
201+
return this.securityOptions;
202+
}
203+
204+
public void setSecurityOptions(SecurityOptions securityOptions) {
205+
this.securityOptions = securityOptions;
206+
if (securityOptions != null) {
207+
208+
putQueryParameter("SecurityOptions.TrustedSystemMode" , securityOptions.getTrustedSystemMode());
209+
}
210+
}
211+
198212
public String getSecurityEnhancementStrategy() {
199213
return this.securityEnhancementStrategy;
200214
}
@@ -903,6 +917,19 @@ public void setSystemDiskEncrypted(String systemDiskEncrypted) {
903917
}
904918
}
905919

920+
public static class SecurityOptions {
921+
922+
private String trustedSystemMode;
923+
924+
public String getTrustedSystemMode() {
925+
return this.trustedSystemMode;
926+
}
927+
928+
public void setTrustedSystemMode(String trustedSystemMode) {
929+
this.trustedSystemMode = trustedSystemMode;
930+
}
931+
}
932+
906933
public static class ImageOptions {
907934

908935
private Boolean loginAsNonRoot;

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

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

3333
private Integer httpPutResponseHopLimit;
3434

35+
private SecurityOptions securityOptions;
36+
3537
private String securityEnhancementStrategy;
3638

3739
private String networkType;
@@ -193,6 +195,18 @@ public void setHttpPutResponseHopLimit(Integer httpPutResponseHopLimit) {
193195
}
194196
}
195197

198+
public SecurityOptions getSecurityOptions() {
199+
return this.securityOptions;
200+
}
201+
202+
public void setSecurityOptions(SecurityOptions securityOptions) {
203+
this.securityOptions = securityOptions;
204+
if (securityOptions != null) {
205+
206+
putQueryParameter("SecurityOptions.TrustedSystemMode" , securityOptions.getTrustedSystemMode());
207+
}
208+
}
209+
196210
public String getSecurityEnhancementStrategy() {
197211
return this.securityEnhancementStrategy;
198212
}
@@ -887,6 +901,19 @@ public void setSystemDiskEncrypted(String systemDiskEncrypted) {
887901
}
888902
}
889903

904+
public static class SecurityOptions {
905+
906+
private String trustedSystemMode;
907+
908+
public String getTrustedSystemMode() {
909+
return this.trustedSystemMode;
910+
}
911+
912+
public void setTrustedSystemMode(String trustedSystemMode) {
913+
this.trustedSystemMode = trustedSystemMode;
914+
}
915+
}
916+
890917
public static class ImageOptions {
891918

892919
private Boolean loginAsNonRoot;

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

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,8 @@ public static class LaunchTemplateData {
281281

282282
private ImageOptions imageOptions;
283283

284+
private SecurityOptions securityOptions;
285+
284286
public String getDeploymentSetId() {
285287
return this.deploymentSetId;
286288
}
@@ -729,6 +731,14 @@ public void setImageOptions(ImageOptions imageOptions) {
729731
this.imageOptions = imageOptions;
730732
}
731733

734+
public SecurityOptions getSecurityOptions() {
735+
return this.securityOptions;
736+
}
737+
738+
public void setSecurityOptions(SecurityOptions securityOptions) {
739+
this.securityOptions = securityOptions;
740+
}
741+
732742
public static class DataDisk {
733743

734744
private String performanceLevel;
@@ -990,6 +1000,19 @@ public void setLoginAsNonRoot(Boolean loginAsNonRoot) {
9901000
this.loginAsNonRoot = loginAsNonRoot;
9911001
}
9921002
}
1003+
1004+
public static class SecurityOptions {
1005+
1006+
private String trustedSystemMode;
1007+
1008+
public String getTrustedSystemMode() {
1009+
return this.trustedSystemMode;
1010+
}
1011+
1012+
public void setTrustedSystemMode(String trustedSystemMode) {
1013+
this.trustedSystemMode = trustedSystemMode;
1014+
}
1015+
}
9931016
}
9941017
}
9951018

aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/transform/v20140526/DescribeLaunchTemplateVersionsResponseUnmarshaller.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
import com.aliyuncs.ecs.model.v20140526.DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSet.LaunchTemplateData.DataDisk;
2424
import com.aliyuncs.ecs.model.v20140526.DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSet.LaunchTemplateData.ImageOptions;
2525
import com.aliyuncs.ecs.model.v20140526.DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSet.LaunchTemplateData.InstanceTag;
26-
import com.aliyuncs.ecs.model.v20140526.DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSet.LaunchTemplateData.NetworkInterface;
26+
import com.aliyuncs.ecs.model.v20140526.DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSet.LaunchTemplateData.NetworkInterface;
27+
import com.aliyuncs.ecs.model.v20140526.DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSet.LaunchTemplateData.SecurityOptions;
2728
import com.aliyuncs.transform.UnmarshallerContext;
2829

2930

@@ -111,6 +112,10 @@ public static DescribeLaunchTemplateVersionsResponse unmarshall(DescribeLaunchTe
111112
imageOptions.setLoginAsNonRoot(_ctx.booleanValue("DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSets["+ i +"].LaunchTemplateData.ImageOptions.LoginAsNonRoot"));
112113
launchTemplateData.setImageOptions(imageOptions);
113114

115+
SecurityOptions securityOptions = new SecurityOptions();
116+
securityOptions.setTrustedSystemMode(_ctx.stringValue("DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSets["+ i +"].LaunchTemplateData.SecurityOptions.TrustedSystemMode"));
117+
launchTemplateData.setSecurityOptions(securityOptions);
118+
114119
List<DataDisk> dataDisks = new ArrayList<DataDisk>();
115120
for (int j = 0; j < _ctx.lengthValue("DescribeLaunchTemplateVersionsResponse.LaunchTemplateVersionSets["+ i +"].LaunchTemplateData.DataDisks.Length"); j++) {
116121
DataDisk dataDisk = new DataDisk();

0 commit comments

Comments
 (0)