Browse Source

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

sdk-team 4 years ago
parent
commit
29faefa1ab

+ 4 - 0
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
 2022-07-27 Version: 1.36.1207
  - Update.
  - Update.
 
 

+ 1 - 1
VERSION

@@ -1 +1 @@
-1.36.1207
+1.36.1208

+ 4 - 2
dms-enterprise/include/alibabacloud/dms-enterprise/model/GetProxyResult.h

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

+ 2 - 1
dms-enterprise/include/alibabacloud/dms-enterprise/model/ListProxiesResult.h

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

+ 11 - 4
dms-enterprise/src/model/GetProxyResult.cc

@@ -61,10 +61,12 @@ void GetProxyResult::parse(const std::string &payload)
 		publicEnable_ = value["PublicEnable"].asString() == "true";
 		publicEnable_ = value["PublicEnable"].asString() == "true";
 	if(!value["PublicHost"].isNull())
 	if(!value["PublicHost"].isNull())
 		publicHost_ = value["PublicHost"].asString();
 		publicHost_ = value["PublicHost"].asString();
-	if(!value["MysqlPort"].isNull())
-		mysqlPort_ = std::stoi(value["MysqlPort"].asString());
 	if(!value["HttpsPort"].isNull())
 	if(!value["HttpsPort"].isNull())
 		httpsPort_ = std::stoi(value["HttpsPort"].asString());
 		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_;
 	return publicEnable_;
 }
 }
 
 
-int GetProxyResult::getMysqlPort()const
+std::string GetProxyResult::getProtocolType()const
 {
 {
-	return mysqlPort_;
+	return protocolType_;
 }
 }
 
 
 std::string GetProxyResult::getErrorCode()const
 std::string GetProxyResult::getErrorCode()const
@@ -113,6 +115,11 @@ std::string GetProxyResult::getErrorCode()const
 	return errorCode_;
 	return errorCode_;
 }
 }
 
 
+int GetProxyResult::getProtocolPort()const
+{
+	return protocolPort_;
+}
+
 std::string GetProxyResult::getErrorMessage()const
 std::string GetProxyResult::getErrorMessage()const
 {
 {
 	return errorMessage_;
 	return errorMessage_;

+ 4 - 2
dms-enterprise/src/model/ListProxiesResult.cc

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