Add RelatedModelFeatures in GetLabelTable.
This commit is contained in:
@@ -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_;
|
||||
|
||||
@@ -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_;
|
||||
|
||||
Reference in New Issue
Block a user