Browse Source

Support TargetImageId in ApplyNodes Interface.

sdk-team 6 năm trước cách đây
mục cha
commit
39221a5319

+ 3 - 0
CHANGELOG

@@ -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.
 

+ 1 - 1
VERSION

@@ -1 +1 @@
-1.36.462
+1.36.463

+ 1 - 0
ehpc/include/alibabacloud/ehpc/model/ApplyNodesRequest.h

@@ -39,6 +39,7 @@ namespace AlibabaCloud
 				struct InstanceTypeModel
 				{
 					float maxPrice;
+					std::string targetImageId;
 					std::string instanceType;
 				};
 

+ 1 - 0
ehpc/src/model/ApplyNodesRequest.cc

@@ -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);
 	}
 }