Browse Source

Minor update for r-kvstore.

sdk-team 5 years ago
parent
commit
87515e7ea9

+ 3 - 0
CHANGELOG

@@ -1,3 +1,6 @@
+2020-11-03 Version: patch
+- Minor update for r-kvstore.
+
 2020-11-03 Version: patch
 - Update data API.
 

+ 3 - 0
r-kvstore/include/alibabacloud/r-kvstore/model/AllocateDirectConnectionRequest.h

@@ -41,6 +41,8 @@ namespace AlibabaCloud
 				void setConnectionString(const std::string& connectionString);
 				std::string getAccessKeyId()const;
 				void setAccessKeyId(const std::string& accessKeyId);
+				bool getOnlyAllocateIp()const;
+				void setOnlyAllocateIp(bool onlyAllocateIp);
 				std::string getSecurityToken()const;
 				void setSecurityToken(const std::string& securityToken);
 				std::string getResourceOwnerAccount()const;
@@ -58,6 +60,7 @@ namespace AlibabaCloud
 				long resourceOwnerId_;
 				std::string connectionString_;
 				std::string accessKeyId_;
+				bool onlyAllocateIp_;
 				std::string securityToken_;
 				std::string resourceOwnerAccount_;
 				std::string ownerAccount_;

+ 11 - 0
r-kvstore/src/model/AllocateDirectConnectionRequest.cc

@@ -60,6 +60,17 @@ void AllocateDirectConnectionRequest::setAccessKeyId(const std::string& accessKe
 	setParameter("AccessKeyId", accessKeyId);
 }
 
+bool AllocateDirectConnectionRequest::getOnlyAllocateIp()const
+{
+	return onlyAllocateIp_;
+}
+
+void AllocateDirectConnectionRequest::setOnlyAllocateIp(bool onlyAllocateIp)
+{
+	onlyAllocateIp_ = onlyAllocateIp;
+	setParameter("OnlyAllocateIp", onlyAllocateIp ? "true" : "false");
+}
+
 std::string AllocateDirectConnectionRequest::getSecurityToken()const
 {
 	return securityToken_;