File tree Expand file tree Collapse file tree 3 files changed +10
-1
lines changed
include/alibabacloud/ecs/model Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 1- 1.36.2012
1+ 1.36.2013
Original file line number Diff line number Diff line change @@ -39,6 +39,10 @@ namespace AlibabaCloud
3939 int vfQueueNumberPerEni;
4040 bool sriovSupport;
4141 };
42+ struct CpuOptions
43+ {
44+ std::vector<std::string> supportedTopologyTypes;
45+ };
4246 struct NetworkCardInfo
4347 {
4448 int networkCardIndex;
@@ -70,6 +74,7 @@ namespace AlibabaCloud
7074 float gPUMemorySize ;
7175 int eniTotalQuantity;
7276 int cpuCoreCount;
77+ CpuOptions cpuOptions;
7378 int initialCredit;
7479 int networkCardQuantity;
7580 std::string instanceCategory;
Original file line number Diff line number Diff line change @@ -130,6 +130,10 @@ void DescribeInstanceTypesResult::parse(const std::string &payload)
130130 instanceTypesObject.enhancedNetwork .sriovSupport = enhancedNetworkNode[" SriovSupport" ].asString () == " true" ;
131131 if (!enhancedNetworkNode[" VfQueueNumberPerEni" ].isNull ())
132132 instanceTypesObject.enhancedNetwork .vfQueueNumberPerEni = std::stoi (enhancedNetworkNode[" VfQueueNumberPerEni" ].asString ());
133+ auto cpuOptionsNode = value[" CpuOptions" ];
134+ auto allSupportedTopologyTypes = cpuOptionsNode[" SupportedTopologyTypes" ][" SupportedTopologyType" ];
135+ for (auto value : allSupportedTopologyTypes)
136+ instanceTypesObject.cpuOptions .supportedTopologyTypes .push_back (value.asString ());
133137 auto allSupportedBootModes = value[" SupportedBootModes" ][" SupportedBootMode" ];
134138 for (auto value : allSupportedBootModes)
135139 instanceTypesObject.supportedBootModes .push_back (value.asString ());
You can’t perform that action at this time.
0 commit comments