Class: TencentCloud::Lke::V20231130::ClassifyConfig
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Lke::V20231130::ClassifyConfig
- Defined in:
- lib/v20231130/models.rb
Overview
标签提取配置
Instance Attribute Summary collapse
-
#Greeting ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
-
#Labels ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
-
#Model ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(model = nil, labels = nil, greeting = nil) ⇒ ClassifyConfig
constructor
A new instance of ClassifyConfig.
Constructor Details
#initialize(model = nil, labels = nil, greeting = nil) ⇒ ClassifyConfig
Returns a new instance of ClassifyConfig.
2088 2089 2090 2091 2092 |
# File 'lib/v20231130/models.rb', line 2088 def initialize(model=nil, labels=nil, greeting=nil) @Model = model @Labels = labels @Greeting = greeting end |
Instance Attribute Details
#Greeting ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。
2086 2087 2088 |
# File 'lib/v20231130/models.rb', line 2086 def Greeting @Greeting end |
#Labels ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。
2086 2087 2088 |
# File 'lib/v20231130/models.rb', line 2086 def Labels @Labels end |
#Model ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。
2086 2087 2088 |
# File 'lib/v20231130/models.rb', line 2086 def Model @Model end |
Instance Method Details
#deserialize(params) ⇒ Object
2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 |
# File 'lib/v20231130/models.rb', line 2094 def deserialize(params) unless params['Model'].nil? @Model = AppModel.new @Model.deserialize(params['Model']) end unless params['Labels'].nil? @Labels = [] params['Labels'].each do |i| classifylabel_tmp = ClassifyLabel.new classifylabel_tmp.deserialize(i) @Labels << classifylabel_tmp end end @Greeting = params['Greeting'] end |