Просмотр исходного кода

Support ClientToken for Idemoptent.

sdk-team 2 лет назад
Родитель
Сommit
28732a4b06

+ 1 - 1
VERSION

@@ -1 +1 @@
-1.36.1797
+1.36.1798

+ 13 - 0
eflo/include/alibabacloud/eflo/model/GetElasticNetworkInterfaceResult.h

@@ -34,8 +34,21 @@ namespace AlibabaCloud
 			public:
 				struct Content
 				{
+					struct PrivateIpAddresse
+					{
+						std::string status;
+						std::string elasticNetworkInterfaceId;
+						std::string gmtCreate;
+						std::string ipName;
+						std::string privateIpAddress;
+						std::string description;
+						std::string message;
+						std::string gmtModified;
+						std::string regionId;
+					};
 					std::string status;
 					std::string description;
+					std::vector<PrivateIpAddresse> privateIpAddresses;
 					std::string zoneId;
 					std::string message;
 					std::string ip;

+ 24 - 0
eflo/src/model/GetElasticNetworkInterfaceResult.cc

@@ -72,6 +72,30 @@ void GetElasticNetworkInterfaceResult::parse(const std::string &payload)
 		content_.gmtModified = contentNode["GmtModified"].asString();
 	if(!contentNode["Description"].isNull())
 		content_.description = contentNode["Description"].asString();
+	auto allPrivateIpAddressesNode = contentNode["PrivateIpAddresses"]["PrivateIpAddresse"];
+	for (auto contentNodePrivateIpAddressesPrivateIpAddresse : allPrivateIpAddressesNode)
+	{
+		Content::PrivateIpAddresse privateIpAddresseObject;
+		if(!contentNodePrivateIpAddressesPrivateIpAddresse["ElasticNetworkInterfaceId"].isNull())
+			privateIpAddresseObject.elasticNetworkInterfaceId = contentNodePrivateIpAddressesPrivateIpAddresse["ElasticNetworkInterfaceId"].asString();
+		if(!contentNodePrivateIpAddressesPrivateIpAddresse["RegionId"].isNull())
+			privateIpAddresseObject.regionId = contentNodePrivateIpAddressesPrivateIpAddresse["RegionId"].asString();
+		if(!contentNodePrivateIpAddressesPrivateIpAddresse["GmtCreate"].isNull())
+			privateIpAddresseObject.gmtCreate = contentNodePrivateIpAddressesPrivateIpAddresse["GmtCreate"].asString();
+		if(!contentNodePrivateIpAddressesPrivateIpAddresse["GmtModified"].isNull())
+			privateIpAddresseObject.gmtModified = contentNodePrivateIpAddressesPrivateIpAddresse["GmtModified"].asString();
+		if(!contentNodePrivateIpAddressesPrivateIpAddresse["IpName"].isNull())
+			privateIpAddresseObject.ipName = contentNodePrivateIpAddressesPrivateIpAddresse["IpName"].asString();
+		if(!contentNodePrivateIpAddressesPrivateIpAddresse["PrivateIpAddress"].isNull())
+			privateIpAddresseObject.privateIpAddress = contentNodePrivateIpAddressesPrivateIpAddresse["PrivateIpAddress"].asString();
+		if(!contentNodePrivateIpAddressesPrivateIpAddresse["Status"].isNull())
+			privateIpAddresseObject.status = contentNodePrivateIpAddressesPrivateIpAddresse["Status"].asString();
+		if(!contentNodePrivateIpAddressesPrivateIpAddresse["Description"].isNull())
+			privateIpAddresseObject.description = contentNodePrivateIpAddressesPrivateIpAddresse["Description"].asString();
+		if(!contentNodePrivateIpAddressesPrivateIpAddresse["Message"].isNull())
+			privateIpAddresseObject.message = contentNodePrivateIpAddressesPrivateIpAddresse["Message"].asString();
+		content_.privateIpAddresses.push_back(privateIpAddresseObject);
+	}
 	if(!value["Code"].isNull())
 		code_ = std::stoi(value["Code"].asString());
 	if(!value["Message"].isNull())