Class: TencentCloud::Waf::V20180125::UserWhiteRule

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

Overview

用户规则白名单

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(whiteruleid = nil, signatureid = nil, status = nil, matchfield = nil, matchparams = nil, matchmethod = nil, matchcontent = nil, createtime = nil, modifytime = nil, signatureids = nil, typeids = nil, typeid = nil, mode = nil, name = nil, matchinfo = nil, matchinfostr = nil) ⇒ UserWhiteRule

Returns a new instance of UserWhiteRule.



19841
19842
19843
19844
19845
19846
19847
19848
19849
19850
19851
19852
19853
19854
19855
19856
19857
19858
# File 'lib/v20180125/models.rb', line 19841

def initialize(whiteruleid=nil, signatureid=nil, status=nil, matchfield=nil, matchparams=nil, matchmethod=nil, matchcontent=nil, createtime=nil, modifytime=nil, signatureids=nil, typeids=nil, typeid=nil, mode=nil, name=nil, matchinfo=nil, matchinfostr=nil)
  @WhiteRuleId = whiteruleid
  @SignatureId = signatureid
  @Status = status
  @MatchField = matchfield
  @MatchParams = matchparams
  @MatchMethod = matchmethod
  @MatchContent = matchcontent
  @CreateTime = createtime
  @ModifyTime = modifytime
  @SignatureIds = signatureids
  @TypeIds = typeids
  @TypeId = typeid
  @Mode = mode
  @Name = name
  @MatchInfo = matchinfo
  @MatchInfoStr = matchinfostr
end

Instance Attribute Details

#CreateTimeObject

Parameters:

  • WhiteRuleId:

    白名单的id

  • SignatureId:

    规则id

  • Status:

    状态

  • MatchField:

    匹配域

  • MatchParams:

    匹配参数

  • MatchMethod:

    匹配方法

  • MatchContent:

    匹配内容

  • CreateTime:

    创建时间

  • ModifyTime:

    修改时间

  • SignatureIds:

    规则ID列表

  • TypeIds:

    大类规则ID列表

  • TypeId:

    大类规则ID

  • Mode:

    0:按照特定规则ID加白, 1:按照规则类型加白

  • Name:

    规则名

  • MatchInfo:

    匹配规则列表

  • MatchInfoStr:

    MatchInfo字符串



19839
19840
19841
# File 'lib/v20180125/models.rb', line 19839

def CreateTime
  @CreateTime
end

#MatchContentObject

Parameters:

  • WhiteRuleId:

    白名单的id

  • SignatureId:

    规则id

  • Status:

    状态

  • MatchField:

    匹配域

  • MatchParams:

    匹配参数

  • MatchMethod:

    匹配方法

  • MatchContent:

    匹配内容

  • CreateTime:

    创建时间

  • ModifyTime:

    修改时间

  • SignatureIds:

    规则ID列表

  • TypeIds:

    大类规则ID列表

  • TypeId:

    大类规则ID

  • Mode:

    0:按照特定规则ID加白, 1:按照规则类型加白

  • Name:

    规则名

  • MatchInfo:

    匹配规则列表

  • MatchInfoStr:

    MatchInfo字符串



19839
19840
19841
# File 'lib/v20180125/models.rb', line 19839

def MatchContent
  @MatchContent
end

#MatchFieldObject

Parameters:

  • WhiteRuleId:

    白名单的id

  • SignatureId:

    规则id

  • Status:

    状态

  • MatchField:

    匹配域

  • MatchParams:

    匹配参数

  • MatchMethod:

    匹配方法

  • MatchContent:

    匹配内容

  • CreateTime:

    创建时间

  • ModifyTime:

    修改时间

  • SignatureIds:

    规则ID列表

  • TypeIds:

    大类规则ID列表

  • TypeId:

    大类规则ID

  • Mode:

    0:按照特定规则ID加白, 1:按照规则类型加白

  • Name:

    规则名

  • MatchInfo:

    匹配规则列表

  • MatchInfoStr:

    MatchInfo字符串



19839
19840
19841
# File 'lib/v20180125/models.rb', line 19839

def MatchField
  @MatchField
end

#MatchInfoObject

Parameters:

  • WhiteRuleId:

    白名单的id

  • SignatureId:

    规则id

  • Status:

    状态

  • MatchField:

    匹配域

  • MatchParams:

    匹配参数

  • MatchMethod:

    匹配方法

  • MatchContent:

    匹配内容

  • CreateTime:

    创建时间

  • ModifyTime:

    修改时间

  • SignatureIds:

    规则ID列表

  • TypeIds:

    大类规则ID列表

  • TypeId:

    大类规则ID

  • Mode:

    0:按照特定规则ID加白, 1:按照规则类型加白

  • Name:

    规则名

  • MatchInfo:

    匹配规则列表

  • MatchInfoStr:

    MatchInfo字符串



19839
19840
19841
# File 'lib/v20180125/models.rb', line 19839

def MatchInfo
  @MatchInfo
end

#MatchInfoStrObject

Parameters:

  • WhiteRuleId:

    白名单的id

  • SignatureId:

    规则id

  • Status:

    状态

  • MatchField:

    匹配域

  • MatchParams:

    匹配参数

  • MatchMethod:

    匹配方法

  • MatchContent:

    匹配内容

  • CreateTime:

    创建时间

  • ModifyTime:

    修改时间

  • SignatureIds:

    规则ID列表

  • TypeIds:

    大类规则ID列表

  • TypeId:

    大类规则ID

  • Mode:

    0:按照特定规则ID加白, 1:按照规则类型加白

  • Name:

    规则名

  • MatchInfo:

    匹配规则列表

  • MatchInfoStr:

    MatchInfo字符串



19839
19840
19841
# File 'lib/v20180125/models.rb', line 19839

def MatchInfoStr
  @MatchInfoStr
end

#MatchMethodObject

Parameters:

  • WhiteRuleId:

    白名单的id

  • SignatureId:

    规则id

  • Status:

    状态

  • MatchField:

    匹配域

  • MatchParams:

    匹配参数

  • MatchMethod:

    匹配方法

  • MatchContent:

    匹配内容

  • CreateTime:

    创建时间

  • ModifyTime:

    修改时间

  • SignatureIds:

    规则ID列表

  • TypeIds:

    大类规则ID列表

  • TypeId:

    大类规则ID

  • Mode:

    0:按照特定规则ID加白, 1:按照规则类型加白

  • Name:

    规则名

  • MatchInfo:

    匹配规则列表

  • MatchInfoStr:

    MatchInfo字符串



19839
19840
19841
# File 'lib/v20180125/models.rb', line 19839

def MatchMethod
  @MatchMethod
end

#MatchParamsObject

Parameters:

  • WhiteRuleId:

    白名单的id

  • SignatureId:

    规则id

  • Status:

    状态

  • MatchField:

    匹配域

  • MatchParams:

    匹配参数

  • MatchMethod:

    匹配方法

  • MatchContent:

    匹配内容

  • CreateTime:

    创建时间

  • ModifyTime:

    修改时间

  • SignatureIds:

    规则ID列表

  • TypeIds:

    大类规则ID列表

  • TypeId:

    大类规则ID

  • Mode:

    0:按照特定规则ID加白, 1:按照规则类型加白

  • Name:

    规则名

  • MatchInfo:

    匹配规则列表

  • MatchInfoStr:

    MatchInfo字符串



19839
19840
19841
# File 'lib/v20180125/models.rb', line 19839

def MatchParams
  @MatchParams
end

#ModeObject

Parameters:

  • WhiteRuleId:

    白名单的id

  • SignatureId:

    规则id

  • Status:

    状态

  • MatchField:

    匹配域

  • MatchParams:

    匹配参数

  • MatchMethod:

    匹配方法

  • MatchContent:

    匹配内容

  • CreateTime:

    创建时间

  • ModifyTime:

    修改时间

  • SignatureIds:

    规则ID列表

  • TypeIds:

    大类规则ID列表

  • TypeId:

    大类规则ID

  • Mode:

    0:按照特定规则ID加白, 1:按照规则类型加白

  • Name:

    规则名

  • MatchInfo:

    匹配规则列表

  • MatchInfoStr:

    MatchInfo字符串



19839
19840
19841
# File 'lib/v20180125/models.rb', line 19839

def Mode
  @Mode
end

#ModifyTimeObject

Parameters:

  • WhiteRuleId:

    白名单的id

  • SignatureId:

    规则id

  • Status:

    状态

  • MatchField:

    匹配域

  • MatchParams:

    匹配参数

  • MatchMethod:

    匹配方法

  • MatchContent:

    匹配内容

  • CreateTime:

    创建时间

  • ModifyTime:

    修改时间

  • SignatureIds:

    规则ID列表

  • TypeIds:

    大类规则ID列表

  • TypeId:

    大类规则ID

  • Mode:

    0:按照特定规则ID加白, 1:按照规则类型加白

  • Name:

    规则名

  • MatchInfo:

    匹配规则列表

  • MatchInfoStr:

    MatchInfo字符串



19839
19840
19841
# File 'lib/v20180125/models.rb', line 19839

def ModifyTime
  @ModifyTime
end

#NameObject

Parameters:

  • WhiteRuleId:

    白名单的id

  • SignatureId:

    规则id

  • Status:

    状态

  • MatchField:

    匹配域

  • MatchParams:

    匹配参数

  • MatchMethod:

    匹配方法

  • MatchContent:

    匹配内容

  • CreateTime:

    创建时间

  • ModifyTime:

    修改时间

  • SignatureIds:

    规则ID列表

  • TypeIds:

    大类规则ID列表

  • TypeId:

    大类规则ID

  • Mode:

    0:按照特定规则ID加白, 1:按照规则类型加白

  • Name:

    规则名

  • MatchInfo:

    匹配规则列表

  • MatchInfoStr:

    MatchInfo字符串



19839
19840
19841
# File 'lib/v20180125/models.rb', line 19839

def Name
  @Name
end

#SignatureIdObject

Parameters:

  • WhiteRuleId:

    白名单的id

  • SignatureId:

    规则id

  • Status:

    状态

  • MatchField:

    匹配域

  • MatchParams:

    匹配参数

  • MatchMethod:

    匹配方法

  • MatchContent:

    匹配内容

  • CreateTime:

    创建时间

  • ModifyTime:

    修改时间

  • SignatureIds:

    规则ID列表

  • TypeIds:

    大类规则ID列表

  • TypeId:

    大类规则ID

  • Mode:

    0:按照特定规则ID加白, 1:按照规则类型加白

  • Name:

    规则名

  • MatchInfo:

    匹配规则列表

  • MatchInfoStr:

    MatchInfo字符串



19839
19840
19841
# File 'lib/v20180125/models.rb', line 19839

def SignatureId
  @SignatureId
end

#SignatureIdsObject

Parameters:

  • WhiteRuleId:

    白名单的id

  • SignatureId:

    规则id

  • Status:

    状态

  • MatchField:

    匹配域

  • MatchParams:

    匹配参数

  • MatchMethod:

    匹配方法

  • MatchContent:

    匹配内容

  • CreateTime:

    创建时间

  • ModifyTime:

    修改时间

  • SignatureIds:

    规则ID列表

  • TypeIds:

    大类规则ID列表

  • TypeId:

    大类规则ID

  • Mode:

    0:按照特定规则ID加白, 1:按照规则类型加白

  • Name:

    规则名

  • MatchInfo:

    匹配规则列表

  • MatchInfoStr:

    MatchInfo字符串



19839
19840
19841
# File 'lib/v20180125/models.rb', line 19839

def SignatureIds
  @SignatureIds
end

#StatusObject

Parameters:

  • WhiteRuleId:

    白名单的id

  • SignatureId:

    规则id

  • Status:

    状态

  • MatchField:

    匹配域

  • MatchParams:

    匹配参数

  • MatchMethod:

    匹配方法

  • MatchContent:

    匹配内容

  • CreateTime:

    创建时间

  • ModifyTime:

    修改时间

  • SignatureIds:

    规则ID列表

  • TypeIds:

    大类规则ID列表

  • TypeId:

    大类规则ID

  • Mode:

    0:按照特定规则ID加白, 1:按照规则类型加白

  • Name:

    规则名

  • MatchInfo:

    匹配规则列表

  • MatchInfoStr:

    MatchInfo字符串



19839
19840
19841
# File 'lib/v20180125/models.rb', line 19839

def Status
  @Status
end

#TypeIdObject

Parameters:

  • WhiteRuleId:

    白名单的id

  • SignatureId:

    规则id

  • Status:

    状态

  • MatchField:

    匹配域

  • MatchParams:

    匹配参数

  • MatchMethod:

    匹配方法

  • MatchContent:

    匹配内容

  • CreateTime:

    创建时间

  • ModifyTime:

    修改时间

  • SignatureIds:

    规则ID列表

  • TypeIds:

    大类规则ID列表

  • TypeId:

    大类规则ID

  • Mode:

    0:按照特定规则ID加白, 1:按照规则类型加白

  • Name:

    规则名

  • MatchInfo:

    匹配规则列表

  • MatchInfoStr:

    MatchInfo字符串



19839
19840
19841
# File 'lib/v20180125/models.rb', line 19839

def TypeId
  @TypeId
end

#TypeIdsObject

Parameters:

  • WhiteRuleId:

    白名单的id

  • SignatureId:

    规则id

  • Status:

    状态

  • MatchField:

    匹配域

  • MatchParams:

    匹配参数

  • MatchMethod:

    匹配方法

  • MatchContent:

    匹配内容

  • CreateTime:

    创建时间

  • ModifyTime:

    修改时间

  • SignatureIds:

    规则ID列表

  • TypeIds:

    大类规则ID列表

  • TypeId:

    大类规则ID

  • Mode:

    0:按照特定规则ID加白, 1:按照规则类型加白

  • Name:

    规则名

  • MatchInfo:

    匹配规则列表

  • MatchInfoStr:

    MatchInfo字符串



19839
19840
19841
# File 'lib/v20180125/models.rb', line 19839

def TypeIds
  @TypeIds
end

#WhiteRuleIdObject

Parameters:

  • WhiteRuleId:

    白名单的id

  • SignatureId:

    规则id

  • Status:

    状态

  • MatchField:

    匹配域

  • MatchParams:

    匹配参数

  • MatchMethod:

    匹配方法

  • MatchContent:

    匹配内容

  • CreateTime:

    创建时间

  • ModifyTime:

    修改时间

  • SignatureIds:

    规则ID列表

  • TypeIds:

    大类规则ID列表

  • TypeId:

    大类规则ID

  • Mode:

    0:按照特定规则ID加白, 1:按照规则类型加白

  • Name:

    规则名

  • MatchInfo:

    匹配规则列表

  • MatchInfoStr:

    MatchInfo字符串



19839
19840
19841
# File 'lib/v20180125/models.rb', line 19839

def WhiteRuleId
  @WhiteRuleId
end

Instance Method Details

#deserialize(params) ⇒ Object



19860
19861
19862
19863
19864
19865
19866
19867
19868
19869
19870
19871
19872
19873
19874
19875
19876
19877
19878
19879
19880
19881
19882
19883
19884
# File 'lib/v20180125/models.rb', line 19860

def deserialize(params)
  @WhiteRuleId = params['WhiteRuleId']
  @SignatureId = params['SignatureId']
  @Status = params['Status']
  @MatchField = params['MatchField']
  @MatchParams = params['MatchParams']
  @MatchMethod = params['MatchMethod']
  @MatchContent = params['MatchContent']
  @CreateTime = params['CreateTime']
  @ModifyTime = params['ModifyTime']
  @SignatureIds = params['SignatureIds']
  @TypeIds = params['TypeIds']
  @TypeId = params['TypeId']
  @Mode = params['Mode']
  @Name = params['Name']
  unless params['MatchInfo'].nil?
    @MatchInfo = []
    params['MatchInfo'].each do |i|
      userwhiteruleitem_tmp = UserWhiteRuleItem.new
      userwhiteruleitem_tmp.deserialize(i)
      @MatchInfo << userwhiteruleitem_tmp
    end
  end
  @MatchInfoStr = params['MatchInfoStr']
end