Class: TencentCloud::Cwp::V20180228::RuleInfo

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

Overview

索引规则

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(fulltext = nil, keyvalue = nil, tag = nil) ⇒ RuleInfo

Returns a new instance of RuleInfo.



37406
37407
37408
37409
37410
# File 'lib/v20180228/models.rb', line 37406

def initialize(fulltext=nil, keyvalue=nil, tag=nil)
  @FullText = fulltext
  @KeyValue = keyvalue
  @Tag = tag
end

Instance Attribute Details

#FullTextObject

Parameters:

  • FullText:

    全文索引的相关配置

  • KeyValue:

    键值索引的相关配置

  • Tag:

    元字段索引配置



37404
37405
37406
# File 'lib/v20180228/models.rb', line 37404

def FullText
  @FullText
end

#KeyValueObject

Parameters:

  • FullText:

    全文索引的相关配置

  • KeyValue:

    键值索引的相关配置

  • Tag:

    元字段索引配置



37404
37405
37406
# File 'lib/v20180228/models.rb', line 37404

def KeyValue
  @KeyValue
end

#TagObject

Parameters:

  • FullText:

    全文索引的相关配置

  • KeyValue:

    键值索引的相关配置

  • Tag:

    元字段索引配置



37404
37405
37406
# File 'lib/v20180228/models.rb', line 37404

def Tag
  @Tag
end

Instance Method Details

#deserialize(params) ⇒ Object



37412
37413
37414
37415
37416
37417
37418
37419
37420
37421
37422
37423
37424
37425
# File 'lib/v20180228/models.rb', line 37412

def deserialize(params)
  unless params['FullText'].nil?
    @FullText = FullTextInfo.new
    @FullText.deserialize(params['FullText'])
  end
  unless params['KeyValue'].nil?
    @KeyValue = KeyValueInfo.new
    @KeyValue.deserialize(params['KeyValue'])
  end
  unless params['Tag'].nil?
    @Tag = KeyValueInfo.new
    @Tag.deserialize(params['Tag'])
  end
end