Support TargetImageId in ApplyNodes Interface.
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
2020-06-16 Version: 1.36.463
|
||||
- Support TargetImageId in ApplyNodes Interface.
|
||||
|
||||
2020-06-16 Version: 1.36.462
|
||||
- Update monitor related API.
|
||||
|
||||
|
||||
@@ -39,6 +39,7 @@ namespace AlibabaCloud
|
||||
struct InstanceTypeModel
|
||||
{
|
||||
float maxPrice;
|
||||
std::string targetImageId;
|
||||
std::string instanceType;
|
||||
};
|
||||
|
||||
|
||||
@@ -242,6 +242,7 @@ void ApplyNodesRequest::setInstanceTypeModel(const std::vector<InstanceTypeModel
|
||||
auto instanceTypeModelObj = instanceTypeModel.at(dep1);
|
||||
std::string instanceTypeModelObjStr = "InstanceTypeModel." + std::to_string(dep1 + 1);
|
||||
setParameter(instanceTypeModelObjStr + ".MaxPrice", std::to_string(instanceTypeModelObj.maxPrice));
|
||||
setParameter(instanceTypeModelObjStr + ".TargetImageId", instanceTypeModelObj.targetImageId);
|
||||
setParameter(instanceTypeModelObjStr + ".InstanceType", instanceTypeModelObj.instanceType);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user