Parcourir la source

Support StrictResourceProvision in ApplyNodes.

sdk-team il y a 5 ans
Parent
commit
f613ffa984

+ 3 - 0
CHANGELOG

@@ -1,3 +1,6 @@
+2021-05-21 Version: 1.36.749
+- Support StrictResourceProvision in ApplyNodes.
+
 2021-05-20 Version: 1.36.748
 - Upgrade mongodb sdk.
 

+ 1 - 1
VERSION

@@ -1 +1 @@
-1.36.748
+1.36.749

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

@@ -59,6 +59,8 @@ namespace AlibabaCloud
 				void setInternetMaxBandWidthOut(int internetMaxBandWidthOut);
 				std::string getResourceAmountType()const;
 				void setResourceAmountType(const std::string& resourceAmountType);
+				bool getStrictResourceProvision()const;
+				void setStrictResourceProvision(bool strictResourceProvision);
 				std::string getAccessKeyId()const;
 				void setAccessKeyId(const std::string& accessKeyId);
 				std::string getSystemDiskType()const;
@@ -101,6 +103,7 @@ namespace AlibabaCloud
 				bool allocatePublicAddress_;
 				int internetMaxBandWidthOut_;
 				std::string resourceAmountType_;
+				bool strictResourceProvision_;
 				std::string accessKeyId_;
 				std::string systemDiskType_;
 				int cores_;

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

@@ -93,6 +93,17 @@ void ApplyNodesRequest::setResourceAmountType(const std::string& resourceAmountT
 	setParameter("ResourceAmountType", resourceAmountType);
 }
 
+bool ApplyNodesRequest::getStrictResourceProvision()const
+{
+	return strictResourceProvision_;
+}
+
+void ApplyNodesRequest::setStrictResourceProvision(bool strictResourceProvision)
+{
+	strictResourceProvision_ = strictResourceProvision;
+	setParameter("StrictResourceProvision", strictResourceProvision ? "true" : "false");
+}
+
 std::string ApplyNodesRequest::getAccessKeyId()const
 {
 	return accessKeyId_;