Support GetDatabase, GetPhysicalDatabase to return InstanceAlias information.
This commit is contained in:
@@ -46,6 +46,7 @@ namespace AlibabaCloud
|
||||
std::string dbaName;
|
||||
std::string dbaId;
|
||||
std::string state;
|
||||
std::string instanceAlias;
|
||||
std::string catalogName;
|
||||
std::vector<std::string> ownerNameList;
|
||||
std::string schemaName;
|
||||
|
||||
@@ -46,6 +46,7 @@ namespace AlibabaCloud
|
||||
std::string dbaName;
|
||||
std::string dbaId;
|
||||
std::string state;
|
||||
std::string instanceAlias;
|
||||
std::string catalogName;
|
||||
std::vector<std::string> ownerNameList;
|
||||
std::string schemaName;
|
||||
|
||||
@@ -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());
|
||||
|
||||
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user