Browse Source

CreateNode API add return NodeId.

sdk-team 6 years ago
parent
commit
eeaeed4023
4 changed files with 13 additions and 1 deletions
  1. 3 0
      CHANGELOG
  2. 1 1
      VERSION
  3. 2 0
      dds/include/alibabacloud/dds/model/CreateNodeResult.h
  4. 7 0
      dds/src/model/CreateNodeResult.cc

+ 3 - 0
CHANGELOG

@@ -1,3 +1,6 @@
+2020-04-15 Version: 1.36.357
+- CreateNode API add return NodeId.
+
 2020-04-15 Version: 1.36.356
 - Vision-poc response modified.
 

+ 1 - 1
VERSION

@@ -1 +1 @@
-1.36.356
+1.36.357

+ 2 - 0
dds/include/alibabacloud/dds/model/CreateNodeResult.h

@@ -37,11 +37,13 @@ namespace AlibabaCloud
 				CreateNodeResult();
 				explicit CreateNodeResult(const std::string &payload);
 				~CreateNodeResult();
+				std::string getNodeId()const;
 				std::string getOrderId()const;
 
 			protected:
 				void parse(const std::string &payload);
 			private:
+				std::string nodeId_;
 				std::string orderId_;
 
 			};

+ 7 - 0
dds/src/model/CreateNodeResult.cc

@@ -41,9 +41,16 @@ void CreateNodeResult::parse(const std::string &payload)
 	setRequestId(value["RequestId"].asString());
 	if(!value["OrderId"].isNull())
 		orderId_ = value["OrderId"].asString();
+	if(!value["NodeId"].isNull())
+		nodeId_ = value["NodeId"].asString();
 
 }
 
+std::string CreateNodeResult::getNodeId()const
+{
+	return nodeId_;
+}
+
 std::string CreateNodeResult::getOrderId()const
 {
 	return orderId_;