Add RelatedModelFeatures in GetLabelTable.

This commit is contained in:
sdk-team
2023-11-23 02:27:21 +00:00
parent d24791dc62
commit 996847f7aa
3 changed files with 11 additions and 1 deletions

View File

@@ -1 +1 @@
1.36.1809
1.36.1810

View File

@@ -43,6 +43,7 @@ namespace AlibabaCloud
GetLabelTableResult();
explicit GetLabelTableResult(const std::string &payload);
~GetLabelTableResult();
std::vector<std::string> getRelatedModelFeatures()const;
std::string getOwner()const;
std::vector<Field> getFields()const;
std::string getDatasourceId()const;
@@ -56,6 +57,7 @@ namespace AlibabaCloud
protected:
void parse(const std::string &payload);
private:
std::vector<std::string> relatedModelFeatures_;
std::string owner_;
std::vector<Field> fields_;
std::string datasourceId_;

View File

@@ -52,6 +52,9 @@ void GetLabelTableResult::parse(const std::string &payload)
fieldsObject.attributes.push_back(value.asString());
fields_.push_back(fieldsObject);
}
auto allRelatedModelFeatures = value["RelatedModelFeatures"]["RelatedModelFeatures"];
for (const auto &item : allRelatedModelFeatures)
relatedModelFeatures_.push_back(item.asString());
if(!value["ProjectId"].isNull())
projectId_ = value["ProjectId"].asString();
if(!value["ProjectName"].isNull())
@@ -71,6 +74,11 @@ void GetLabelTableResult::parse(const std::string &payload)
}
std::vector<std::string> GetLabelTableResult::getRelatedModelFeatures()const
{
return relatedModelFeatures_;
}
std::string GetLabelTableResult::getOwner()const
{
return owner_;