Class: TencentCloud::Teo::V20220901::WafRule

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

Overview

Waf规则

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(switch = nil, blockruleids = nil, observeruleids = nil) ⇒ WafRule

Returns a new instance of WafRule.



23028
23029
23030
23031
23032
# File 'lib/v20220901/models.rb', line 23028

def initialize(switch=nil, blockruleids=nil, observeruleids=nil)
  @Switch = switch
  @BlockRuleIDs = blockruleids
  @ObserveRuleIDs = observeruleids
end

Instance Attribute Details

#BlockRuleIDsObject

<li> on:开启;</li> <li> off:关闭。</li>

Parameters:

  • Switch:

    托管规则开关,取值有:

  • BlockRuleIDs:

    黑名单ID列表,将规则ID加入本参数列表中代表该ID关闭,即该规则ID不再生效。

  • ObserveRuleIDs:

    观察模式ID列表,将规则ID加入本参数列表中代表该ID使用观察模式生效,即该规则ID进入观察模式。



23026
23027
23028
# File 'lib/v20220901/models.rb', line 23026

def BlockRuleIDs
  @BlockRuleIDs
end

#ObserveRuleIDsObject

<li> on:开启;</li> <li> off:关闭。</li>

Parameters:

  • Switch:

    托管规则开关,取值有:

  • BlockRuleIDs:

    黑名单ID列表,将规则ID加入本参数列表中代表该ID关闭,即该规则ID不再生效。

  • ObserveRuleIDs:

    观察模式ID列表,将规则ID加入本参数列表中代表该ID使用观察模式生效,即该规则ID进入观察模式。



23026
23027
23028
# File 'lib/v20220901/models.rb', line 23026

def ObserveRuleIDs
  @ObserveRuleIDs
end

#SwitchObject

<li> on:开启;</li> <li> off:关闭。</li>

Parameters:

  • Switch:

    托管规则开关,取值有:

  • BlockRuleIDs:

    黑名单ID列表,将规则ID加入本参数列表中代表该ID关闭,即该规则ID不再生效。

  • ObserveRuleIDs:

    观察模式ID列表,将规则ID加入本参数列表中代表该ID使用观察模式生效,即该规则ID进入观察模式。



23026
23027
23028
# File 'lib/v20220901/models.rb', line 23026

def Switch
  @Switch
end

Instance Method Details

#deserialize(params) ⇒ Object



23034
23035
23036
23037
23038
# File 'lib/v20220901/models.rb', line 23034

def deserialize(params)
  @Switch = params['Switch']
  @BlockRuleIDs = params['BlockRuleIDs']
  @ObserveRuleIDs = params['ObserveRuleIDs']
end