Class: TencentCloud::Cms::V20190321::UserKeyword

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

Overview

添加关键词。

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(content = nil, label = nil, remark = nil, wordtype = nil) ⇒ UserKeyword

Returns a new instance of UserKeyword.



1574
1575
1576
1577
1578
1579
# File 'lib/v20190321/models.rb', line 1574

def initialize(content=nil, label=nil, remark=nil, wordtype=nil)
  @Content = content
  @Label = label
  @Remark = remark
  @WordType = wordtype
end

Instance Attribute Details

#ContentObject

Parameters:

  • Content:

    关键词内容:最多40个字符,并且符合词类型的规则

  • Label:

    关键词类型,取值范围为:“Normal”,“Polity”,“Porn”,“Ad”,“Illegal”,“Abuse”,“Terror”,“Spam”

  • Remark:

    关键词备注:最多100个字符。

  • WordType:

    词类型:Default,Pinyin,English,CompoundWord,ExclusionWord,AffixWord



1572
1573
1574
# File 'lib/v20190321/models.rb', line 1572

def Content
  @Content
end

#LabelObject

Parameters:

  • Content:

    关键词内容:最多40个字符,并且符合词类型的规则

  • Label:

    关键词类型,取值范围为:“Normal”,“Polity”,“Porn”,“Ad”,“Illegal”,“Abuse”,“Terror”,“Spam”

  • Remark:

    关键词备注:最多100个字符。

  • WordType:

    词类型:Default,Pinyin,English,CompoundWord,ExclusionWord,AffixWord



1572
1573
1574
# File 'lib/v20190321/models.rb', line 1572

def Label
  @Label
end

#RemarkObject

Parameters:

  • Content:

    关键词内容:最多40个字符,并且符合词类型的规则

  • Label:

    关键词类型,取值范围为:“Normal”,“Polity”,“Porn”,“Ad”,“Illegal”,“Abuse”,“Terror”,“Spam”

  • Remark:

    关键词备注:最多100个字符。

  • WordType:

    词类型:Default,Pinyin,English,CompoundWord,ExclusionWord,AffixWord



1572
1573
1574
# File 'lib/v20190321/models.rb', line 1572

def Remark
  @Remark
end

#WordTypeObject

Parameters:

  • Content:

    关键词内容:最多40个字符,并且符合词类型的规则

  • Label:

    关键词类型,取值范围为:“Normal”,“Polity”,“Porn”,“Ad”,“Illegal”,“Abuse”,“Terror”,“Spam”

  • Remark:

    关键词备注:最多100个字符。

  • WordType:

    词类型:Default,Pinyin,English,CompoundWord,ExclusionWord,AffixWord



1572
1573
1574
# File 'lib/v20190321/models.rb', line 1572

def WordType
  @WordType
end

Instance Method Details

#deserialize(params) ⇒ Object



1581
1582
1583
1584
1585
1586
# File 'lib/v20190321/models.rb', line 1581

def deserialize(params)
  @Content = params['Content']
  @Label = params['Label']
  @Remark = params['Remark']
  @WordType = params['WordType']
end