diff --git a/CHANGELOG b/CHANGELOG index b5e9fb723..0cb9939d5 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -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. diff --git a/VERSION b/VERSION index 0483e07e6..065bf950c 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1207 \ No newline at end of file +1.36.1208 \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetProxyResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetProxyResult.h index 65601f91c..7363c1741 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetProxyResult.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetProxyResult.h @@ -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_; diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListProxiesResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListProxiesResult.h index 187865a25..933d6e1b2 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListProxiesResult.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListProxiesResult.h @@ -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; diff --git a/dms-enterprise/src/model/GetProxyResult.cc b/dms-enterprise/src/model/GetProxyResult.cc index fb3e1a8f1..0bee4212c 100644 --- a/dms-enterprise/src/model/GetProxyResult.cc +++ b/dms-enterprise/src/model/GetProxyResult.cc @@ -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_; diff --git a/dms-enterprise/src/model/ListProxiesResult.cc b/dms-enterprise/src/model/ListProxiesResult.cc index 5335de50e..dffa52111 100644 --- a/dms-enterprise/src/model/ListProxiesResult.cc +++ b/dms-enterprise/src/model/ListProxiesResult.cc @@ -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())