Browse Source

Add RelatedModelFeatures in GetLabelTable.

sdk-team 2 years ago
parent
commit
996847f7aa

+ 1 - 1
VERSION

@@ -1 +1 @@
-1.36.1809
+1.36.1810

+ 2 - 0
paifeaturestore/include/alibabacloud/paifeaturestore/model/GetLabelTableResult.h

@@ -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_;

+ 8 - 0
paifeaturestore/src/model/GetLabelTableResult.cc

@@ -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_;