Skip to content

Commit f613ffa

Browse files
committed
Support StrictResourceProvision in ApplyNodes.
1 parent a6b0e4e commit f613ffa

File tree

4 files changed

+18
-1
lines changed

4 files changed

+18
-1
lines changed

CHANGELOG

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2021-05-21 Version: 1.36.749
2+
- Support StrictResourceProvision in ApplyNodes.
3+
14
2021-05-20 Version: 1.36.748
25
- Upgrade mongodb sdk.
36

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.36.748
1+
1.36.749

ehpc/include/alibabacloud/ehpc/model/ApplyNodesRequest.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ namespace AlibabaCloud
5959
void setInternetMaxBandWidthOut(int internetMaxBandWidthOut);
6060
std::string getResourceAmountType()const;
6161
void setResourceAmountType(const std::string& resourceAmountType);
62+
bool getStrictResourceProvision()const;
63+
void setStrictResourceProvision(bool strictResourceProvision);
6264
std::string getAccessKeyId()const;
6365
void setAccessKeyId(const std::string& accessKeyId);
6466
std::string getSystemDiskType()const;
@@ -101,6 +103,7 @@ namespace AlibabaCloud
101103
bool allocatePublicAddress_;
102104
int internetMaxBandWidthOut_;
103105
std::string resourceAmountType_;
106+
bool strictResourceProvision_;
104107
std::string accessKeyId_;
105108
std::string systemDiskType_;
106109
int cores_;

ehpc/src/model/ApplyNodesRequest.cc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,17 @@ void ApplyNodesRequest::setResourceAmountType(const std::string& resourceAmountT
9393
setParameter("ResourceAmountType", resourceAmountType);
9494
}
9595

96+
bool ApplyNodesRequest::getStrictResourceProvision()const
97+
{
98+
return strictResourceProvision_;
99+
}
100+
101+
void ApplyNodesRequest::setStrictResourceProvision(bool strictResourceProvision)
102+
{
103+
strictResourceProvision_ = strictResourceProvision;
104+
setParameter("StrictResourceProvision", strictResourceProvision ? "true" : "false");
105+
}
106+
96107
std::string ApplyNodesRequest::getAccessKeyId()const
97108
{
98109
return accessKeyId_;

0 commit comments

Comments
 (0)