Support ClientToken for Idemoptent.

This commit is contained in:
sdk-team
2023-11-03 06:02:05 +00:00
parent 28732a4b06
commit 1637cf567e
3 changed files with 25 additions and 25 deletions

View File

@@ -1 +1 @@
1.36.1798 1.36.1799

View File

@@ -34,7 +34,7 @@ namespace AlibabaCloud
public: public:
struct Content struct Content
{ {
struct PrivateIpAddresse struct PrivateIpAddress
{ {
std::string status; std::string status;
std::string elasticNetworkInterfaceId; std::string elasticNetworkInterfaceId;
@@ -48,7 +48,7 @@ namespace AlibabaCloud
}; };
std::string status; std::string status;
std::string description; std::string description;
std::vector<PrivateIpAddresse> privateIpAddresses; std::vector<PrivateIpAddress> privateIpAddresses;
std::string zoneId; std::string zoneId;
std::string message; std::string message;
std::string ip; std::string ip;

View File

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