Support ListProxies API to return protocolType, protocolPort and remove mysqlPort.

This commit is contained in:
sdk-team
2022-07-27 08:32:23 +00:00
parent b03b322c96
commit 29faefa1ab
6 changed files with 26 additions and 10 deletions

View File

@@ -1,3 +1,7 @@
2022-07-27 Version: 1.36.1208
- Support ListProxies API to return protocolType, protocolPort and remove mysqlPort.
- Support GetProxy API to return protocolType, protocolPort and remove mysqlPort.
2022-07-27 Version: 1.36.1207
- Update.

View File

@@ -1 +1 @@
1.36.1207
1.36.1208

View File

@@ -44,8 +44,9 @@ namespace AlibabaCloud
long getCreatorId()const;
bool getSuccess()const;
bool getPublicEnable()const;
int getMysqlPort()const;
std::string getProtocolType()const;
std::string getErrorCode()const;
int getProtocolPort()const;
std::string getErrorMessage()const;
bool getPrivateEnable()const;
std::string getCreatorName()const;
@@ -61,8 +62,9 @@ namespace AlibabaCloud
long creatorId_;
bool success_;
bool publicEnable_;
int mysqlPort_;
std::string protocolType_;
std::string errorCode_;
int protocolPort_;
std::string errorMessage_;
bool privateEnable_;
std::string creatorName_;

View File

@@ -39,7 +39,8 @@ namespace AlibabaCloud
long instanceId;
long proxyId;
long creatorId;
int mysqlPort;
std::string protocolType;
int protocolPort;
bool privateEnable;
std::string creatorName;
bool publicEnable;

View File

@@ -61,10 +61,12 @@ void GetProxyResult::parse(const std::string &payload)
publicEnable_ = value["PublicEnable"].asString() == "true";
if(!value["PublicHost"].isNull())
publicHost_ = value["PublicHost"].asString();
if(!value["MysqlPort"].isNull())
mysqlPort_ = std::stoi(value["MysqlPort"].asString());
if(!value["HttpsPort"].isNull())
httpsPort_ = std::stoi(value["HttpsPort"].asString());
if(!value["ProtocolType"].isNull())
protocolType_ = value["ProtocolType"].asString();
if(!value["ProtocolPort"].isNull())
protocolPort_ = std::stoi(value["ProtocolPort"].asString());
}
@@ -103,9 +105,9 @@ bool GetProxyResult::getPublicEnable()const
return publicEnable_;
}
int GetProxyResult::getMysqlPort()const
std::string GetProxyResult::getProtocolType()const
{
return mysqlPort_;
return protocolType_;
}
std::string GetProxyResult::getErrorCode()const
@@ -113,6 +115,11 @@ std::string GetProxyResult::getErrorCode()const
return errorCode_;
}
int GetProxyResult::getProtocolPort()const
{
return protocolPort_;
}
std::string GetProxyResult::getErrorMessage()const
{
return errorMessage_;

View File

@@ -59,10 +59,12 @@ void ListProxiesResult::parse(const std::string &payload)
proxyListObject.publicEnable = valueProxyListProxyListItem["PublicEnable"].asString() == "true";
if(!valueProxyListProxyListItem["PublicHost"].isNull())
proxyListObject.publicHost = valueProxyListProxyListItem["PublicHost"].asString();
if(!valueProxyListProxyListItem["MysqlPort"].isNull())
proxyListObject.mysqlPort = std::stoi(valueProxyListProxyListItem["MysqlPort"].asString());
if(!valueProxyListProxyListItem["HttpsPort"].isNull())
proxyListObject.httpsPort = std::stoi(valueProxyListProxyListItem["HttpsPort"].asString());
if(!valueProxyListProxyListItem["ProtocolType"].isNull())
proxyListObject.protocolType = valueProxyListProxyListItem["ProtocolType"].asString();
if(!valueProxyListProxyListItem["ProtocolPort"].isNull())
proxyListObject.protocolPort = std::stoi(valueProxyListProxyListItem["ProtocolPort"].asString());
proxyList_.push_back(proxyListObject);
}
if(!value["Success"].isNull())