Class: TencentCloud::Lke::V20231130::ClassifyConfig

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20231130/models.rb

Overview

标签提取配置

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#GreetingObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Model:

    模型配置

  • Labels:

    标签列表

  • Greeting:

    欢迎语,200字符以内



2086
2087
2088
# File 'lib/v20231130/models.rb', line 2086

def Greeting
  @Greeting
end

#LabelsObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Model:

    模型配置

  • Labels:

    标签列表

  • Greeting:

    欢迎语,200字符以内



2086
2087
2088
# File 'lib/v20231130/models.rb', line 2086

def Labels
  @Labels
end

#ModelObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Model:

    模型配置

  • Labels:

    标签列表

  • Greeting:

    欢迎语,200字符以内



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