File tree Expand file tree Collapse file tree 4 files changed +37
-1
lines changed
src/main/java/com/aliyuncs/ecs Expand file tree Collapse file tree 4 files changed +37
-1
lines changed Original file line number Diff line number Diff line change 1+ 2024-10-31 Version: 5.11.12
2+ - DescribeInstanceTypes add CpuOptions.
3+
142024-10-30 Version: 5.11.11
25- Support describe and modify NVMe on instance.
36
Original file line number Diff line number Diff line change 44 <groupId >com.aliyun</groupId >
55 <artifactId >aliyun-java-sdk-ecs</artifactId >
66 <packaging >jar</packaging >
7- <version >5.11.11 </version >
7+ <version >5.11.12 </version >
88 <name >aliyun-java-sdk-ecs</name >
99 <url >http://www.aliyun.com</url >
1010 <description >Aliyun Open API SDK for Java
Original file line number Diff line number Diff line change @@ -137,6 +137,8 @@ public static class InstanceType {
137137
138138 private EnhancedNetwork enhancedNetwork ;
139139
140+ private CpuOptions cpuOptions ;
141+
140142 public Integer getEniTotalQuantity () {
141143 return this .eniTotalQuantity ;
142144 }
@@ -457,6 +459,14 @@ public void setEnhancedNetwork(EnhancedNetwork enhancedNetwork) {
457459 this .enhancedNetwork = enhancedNetwork ;
458460 }
459461
462+ public CpuOptions getCpuOptions () {
463+ return this .cpuOptions ;
464+ }
465+
466+ public void setCpuOptions (CpuOptions cpuOptions ) {
467+ this .cpuOptions = cpuOptions ;
468+ }
469+
460470 public static class NetworkCardInfo {
461471
462472 private Integer networkCardIndex ;
@@ -492,6 +502,19 @@ public void setVfQueueNumberPerEni(Integer vfQueueNumberPerEni) {
492502 this .vfQueueNumberPerEni = vfQueueNumberPerEni ;
493503 }
494504 }
505+
506+ public static class CpuOptions {
507+
508+ private List <String > supportedTopologyTypes ;
509+
510+ public List <String > getSupportedTopologyTypes () {
511+ return this .supportedTopologyTypes ;
512+ }
513+
514+ public void setSupportedTopologyTypes (List <String > supportedTopologyTypes ) {
515+ this .supportedTopologyTypes = supportedTopologyTypes ;
516+ }
517+ }
495518 }
496519
497520 @ Override
Original file line number Diff line number Diff line change 1919
2020import com .aliyuncs .ecs .model .v20140526 .DescribeInstanceTypesResponse ;
2121import com .aliyuncs .ecs .model .v20140526 .DescribeInstanceTypesResponse .InstanceType ;
22+ import com .aliyuncs .ecs .model .v20140526 .DescribeInstanceTypesResponse .InstanceType .CpuOptions ;
2223import com .aliyuncs .ecs .model .v20140526 .DescribeInstanceTypesResponse .InstanceType .EnhancedNetwork ;
2324import com .aliyuncs .ecs .model .v20140526 .DescribeInstanceTypesResponse .InstanceType .NetworkCardInfo ;
2425import com .aliyuncs .transform .UnmarshallerContext ;
@@ -83,6 +84,15 @@ public static DescribeInstanceTypesResponse unmarshall(DescribeInstanceTypesResp
8384 enhancedNetwork .setVfQueueNumberPerEni (_ctx .integerValue ("DescribeInstanceTypesResponse.InstanceTypes[" + i +"].EnhancedNetwork.VfQueueNumberPerEni" ));
8485 instanceType .setEnhancedNetwork (enhancedNetwork );
8586
87+ CpuOptions cpuOptions = new CpuOptions ();
88+
89+ List <String > supportedTopologyTypes = new ArrayList <String >();
90+ for (int j = 0 ; j < _ctx .lengthValue ("DescribeInstanceTypesResponse.InstanceTypes[" + i +"].CpuOptions.SupportedTopologyTypes.Length" ); j ++) {
91+ supportedTopologyTypes .add (_ctx .stringValue ("DescribeInstanceTypesResponse.InstanceTypes[" + i +"].CpuOptions.SupportedTopologyTypes[" + j +"]" ));
92+ }
93+ cpuOptions .setSupportedTopologyTypes (supportedTopologyTypes );
94+ instanceType .setCpuOptions (cpuOptions );
95+
8696 List <NetworkCardInfo > networkCards = new ArrayList <NetworkCardInfo >();
8797 for (int j = 0 ; j < _ctx .lengthValue ("DescribeInstanceTypesResponse.InstanceTypes[" + i +"].NetworkCards.Length" ); j ++) {
8898 NetworkCardInfo networkCardInfo = new NetworkCardInfo ();
You can’t perform that action at this time.
0 commit comments