Add tcpInternetEndpoint field for the api OnsInstanceBaseInfo.

This commit is contained in:
sdk-team
2022-03-15 09:58:21 +00:00
parent 40ea7cd46c
commit 26180c8b09
4 changed files with 7 additions and 1 deletions

View File

@@ -38,6 +38,7 @@ namespace AlibabaCloud
{
std::string httpInternalEndpoint;
std::string tcpEndpoint;
std::string tcpInternetEndpoint;
std::string httpInternetEndpoint;
std::string httpInternetSecureEndpoint;
};

View File

@@ -67,6 +67,8 @@ void OnsInstanceBaseInfoResult::parse(const std::string &payload)
instanceBaseInfo_.endpoints.httpInternalEndpoint = endpointsNode["HttpInternalEndpoint"].asString();
if(!endpointsNode["HttpInternetSecureEndpoint"].isNull())
instanceBaseInfo_.endpoints.httpInternetSecureEndpoint = endpointsNode["HttpInternetSecureEndpoint"].asString();
if(!endpointsNode["TcpInternetEndpoint"].isNull())
instanceBaseInfo_.endpoints.tcpInternetEndpoint = endpointsNode["TcpInternetEndpoint"].asString();
if(!value["HelpUrl"].isNull())
helpUrl_ = value["HelpUrl"].asString();