Skip to content

Commit 5edf564

Browse files
committed
DescribeInstanceTypes add CpuOptions.
1 parent 5cdab50 commit 5edf564

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.36.2012
1+
1.36.2013

ecs/include/alibabacloud/ecs/model/DescribeInstanceTypesResult.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff 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;

ecs/src/model/DescribeInstanceTypesResult.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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());

0 commit comments

Comments
 (0)