From 7a56454f4ae34d41fd295c4272c4e3322aca9798 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Thu, 18 May 2023 01:13:57 +0000 Subject: [PATCH] Support GetDatabase, GetPhysicalDatabase to return InstanceAlias information. --- VERSION | 2 +- .../alibabacloud/dms-enterprise/model/GetDatabaseResult.h | 1 + .../dms-enterprise/model/GetPhysicalDatabaseResult.h | 1 + dms-enterprise/src/model/GetDatabaseResult.cc | 2 ++ dms-enterprise/src/model/GetPhysicalDatabaseResult.cc | 2 ++ 5 files changed, 7 insertions(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 9af8330af..3a54138dc 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1576 \ No newline at end of file +1.36.1577 \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDatabaseResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDatabaseResult.h index 4bf867eb0..0b174c6c8 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDatabaseResult.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDatabaseResult.h @@ -46,6 +46,7 @@ namespace AlibabaCloud std::string dbaName; std::string dbaId; std::string state; + std::string instanceAlias; std::string catalogName; std::vector ownerNameList; std::string schemaName; diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetPhysicalDatabaseResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetPhysicalDatabaseResult.h index 2d86f384c..d54c62666 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetPhysicalDatabaseResult.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetPhysicalDatabaseResult.h @@ -46,6 +46,7 @@ namespace AlibabaCloud std::string dbaName; std::string dbaId; std::string state; + std::string instanceAlias; std::string catalogName; std::vector ownerNameList; std::string schemaName; diff --git a/dms-enterprise/src/model/GetDatabaseResult.cc b/dms-enterprise/src/model/GetDatabaseResult.cc index f9d810eab..8b0beb9df 100644 --- a/dms-enterprise/src/model/GetDatabaseResult.cc +++ b/dms-enterprise/src/model/GetDatabaseResult.cc @@ -68,6 +68,8 @@ void GetDatabaseResult::parse(const std::string &payload) database_.dbType = databaseNode["DbType"].asString(); if(!databaseNode["SearchName"].isNull()) database_.searchName = databaseNode["SearchName"].asString(); + if(!databaseNode["InstanceAlias"].isNull()) + database_.instanceAlias = databaseNode["InstanceAlias"].asString(); auto allOwnerIdList = databaseNode["OwnerIdList"]["OwnerIds"]; for (auto value : allOwnerIdList) database_.ownerIdList.push_back(value.asString()); diff --git a/dms-enterprise/src/model/GetPhysicalDatabaseResult.cc b/dms-enterprise/src/model/GetPhysicalDatabaseResult.cc index 0ae6ba439..709927554 100644 --- a/dms-enterprise/src/model/GetPhysicalDatabaseResult.cc +++ b/dms-enterprise/src/model/GetPhysicalDatabaseResult.cc @@ -68,6 +68,8 @@ void GetPhysicalDatabaseResult::parse(const std::string &payload) database_.dbType = databaseNode["DbType"].asString(); if(!databaseNode["SearchName"].isNull()) database_.searchName = databaseNode["SearchName"].asString(); + if(!databaseNode["InstanceAlias"].isNull()) + database_.instanceAlias = databaseNode["InstanceAlias"].asString(); auto allOwnerIdList = databaseNode["OwnerIdList"]["OwnerIds"]; for (auto value : allOwnerIdList) database_.ownerIdList.push_back(value.asString());