Class: TencentCloud::Waf::V20180125::ApiSecCustomSensitiveRule

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

Overview

api安全客户自定义敏感检测规则

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(position = nil, matchkey = nil, matchvalue = nil, level = nil, matchcond = nil, ispan = nil) ⇒ ApiSecCustomSensitiveRule

Returns a new instance of ApiSecCustomSensitiveRule.



1534
1535
1536
1537
1538
1539
1540
1541
# File 'lib/v20180125/models.rb', line 1534

def initialize(position=nil, matchkey=nil, matchvalue=nil, level=nil, matchcond=nil, ispan=nil)
  @Position = position
  @MatchKey = matchkey
  @MatchValue = matchvalue
  @Level = level
  @MatchCond = matchcond
  @IsPan = ispan
end

Instance Attribute Details

#IsPanObject

Parameters:

  • Position:

    参数位置

  • MatchKey:

    匹配条件

  • MatchValue:

    匹配值

  • Level:

    风险等级

  • MatchCond:

    匹配符号,当匹配条件为关键字匹配和字符匹配的时候传该值,可传多个

  • IsPan:

    规则是否泛化,默认0表示不泛化



1532
1533
1534
# File 'lib/v20180125/models.rb', line 1532

def IsPan
  @IsPan
end

#LevelObject

Parameters:

  • Position:

    参数位置

  • MatchKey:

    匹配条件

  • MatchValue:

    匹配值

  • Level:

    风险等级

  • MatchCond:

    匹配符号,当匹配条件为关键字匹配和字符匹配的时候传该值,可传多个

  • IsPan:

    规则是否泛化,默认0表示不泛化



1532
1533
1534
# File 'lib/v20180125/models.rb', line 1532

def Level
  @Level
end

#MatchCondObject

Parameters:

  • Position:

    参数位置

  • MatchKey:

    匹配条件

  • MatchValue:

    匹配值

  • Level:

    风险等级

  • MatchCond:

    匹配符号,当匹配条件为关键字匹配和字符匹配的时候传该值,可传多个

  • IsPan:

    规则是否泛化,默认0表示不泛化



1532
1533
1534
# File 'lib/v20180125/models.rb', line 1532

def MatchCond
  @MatchCond
end

#MatchKeyObject

Parameters:

  • Position:

    参数位置

  • MatchKey:

    匹配条件

  • MatchValue:

    匹配值

  • Level:

    风险等级

  • MatchCond:

    匹配符号,当匹配条件为关键字匹配和字符匹配的时候传该值,可传多个

  • IsPan:

    规则是否泛化,默认0表示不泛化



1532
1533
1534
# File 'lib/v20180125/models.rb', line 1532

def MatchKey
  @MatchKey
end

#MatchValueObject

Parameters:

  • Position:

    参数位置

  • MatchKey:

    匹配条件

  • MatchValue:

    匹配值

  • Level:

    风险等级

  • MatchCond:

    匹配符号,当匹配条件为关键字匹配和字符匹配的时候传该值,可传多个

  • IsPan:

    规则是否泛化,默认0表示不泛化



1532
1533
1534
# File 'lib/v20180125/models.rb', line 1532

def MatchValue
  @MatchValue
end

#PositionObject

Parameters:

  • Position:

    参数位置

  • MatchKey:

    匹配条件

  • MatchValue:

    匹配值

  • Level:

    风险等级

  • MatchCond:

    匹配符号,当匹配条件为关键字匹配和字符匹配的时候传该值,可传多个

  • IsPan:

    规则是否泛化,默认0表示不泛化



1532
1533
1534
# File 'lib/v20180125/models.rb', line 1532

def Position
  @Position
end

Instance Method Details

#deserialize(params) ⇒ Object



1543
1544
1545
1546
1547
1548
1549
1550
# File 'lib/v20180125/models.rb', line 1543

def deserialize(params)
  @Position = params['Position']
  @MatchKey = params['MatchKey']
  @MatchValue = params['MatchValue']
  @Level = params['Level']
  @MatchCond = params['MatchCond']
  @IsPan = params['IsPan']
end