Class: TencentCloud::Waf::V20180125::ModifyWafAutoDenyRulesRequest

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

Overview

ModifyWafAutoDenyRules请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(domain = nil, attackthreshold = nil, timethreshold = nil, denytimethreshold = nil, defensestatus = nil) ⇒ ModifyWafAutoDenyRulesRequest

Returns a new instance of ModifyWafAutoDenyRulesRequest.



16711
16712
16713
16714
16715
16716
16717
# File 'lib/v20180125/models.rb', line 16711

def initialize(domain=nil, attackthreshold=nil, timethreshold=nil, denytimethreshold=nil, defensestatus=nil)
  @Domain = domain
  @AttackThreshold = attackthreshold
  @TimeThreshold = timethreshold
  @DenyTimeThreshold = denytimethreshold
  @DefenseStatus = defensestatus
end

Instance Attribute Details

#AttackThresholdObject

Parameters:

  • Domain:

    域名

  • AttackThreshold:

    触发IP封禁的攻击次数阈值,范围为2~100次

  • TimeThreshold:

    IP封禁统计时间,范围为1-60分钟

  • DenyTimeThreshold:

    触发IP封禁后的封禁时间,范围为5~360分钟

  • DefenseStatus:

    自动封禁状态,0表示关闭,1表示打开



16709
16710
16711
# File 'lib/v20180125/models.rb', line 16709

def AttackThreshold
  @AttackThreshold
end

#DefenseStatusObject

Parameters:

  • Domain:

    域名

  • AttackThreshold:

    触发IP封禁的攻击次数阈值,范围为2~100次

  • TimeThreshold:

    IP封禁统计时间,范围为1-60分钟

  • DenyTimeThreshold:

    触发IP封禁后的封禁时间,范围为5~360分钟

  • DefenseStatus:

    自动封禁状态,0表示关闭,1表示打开



16709
16710
16711
# File 'lib/v20180125/models.rb', line 16709

def DefenseStatus
  @DefenseStatus
end

#DenyTimeThresholdObject

Parameters:

  • Domain:

    域名

  • AttackThreshold:

    触发IP封禁的攻击次数阈值,范围为2~100次

  • TimeThreshold:

    IP封禁统计时间,范围为1-60分钟

  • DenyTimeThreshold:

    触发IP封禁后的封禁时间,范围为5~360分钟

  • DefenseStatus:

    自动封禁状态,0表示关闭,1表示打开



16709
16710
16711
# File 'lib/v20180125/models.rb', line 16709

def DenyTimeThreshold
  @DenyTimeThreshold
end

#DomainObject

Parameters:

  • Domain:

    域名

  • AttackThreshold:

    触发IP封禁的攻击次数阈值,范围为2~100次

  • TimeThreshold:

    IP封禁统计时间,范围为1-60分钟

  • DenyTimeThreshold:

    触发IP封禁后的封禁时间,范围为5~360分钟

  • DefenseStatus:

    自动封禁状态,0表示关闭,1表示打开



16709
16710
16711
# File 'lib/v20180125/models.rb', line 16709

def Domain
  @Domain
end

#TimeThresholdObject

Parameters:

  • Domain:

    域名

  • AttackThreshold:

    触发IP封禁的攻击次数阈值,范围为2~100次

  • TimeThreshold:

    IP封禁统计时间,范围为1-60分钟

  • DenyTimeThreshold:

    触发IP封禁后的封禁时间,范围为5~360分钟

  • DefenseStatus:

    自动封禁状态,0表示关闭,1表示打开



16709
16710
16711
# File 'lib/v20180125/models.rb', line 16709

def TimeThreshold
  @TimeThreshold
end

Instance Method Details

#deserialize(params) ⇒ Object



16719
16720
16721
16722
16723
16724
16725
# File 'lib/v20180125/models.rb', line 16719

def deserialize(params)
  @Domain = params['Domain']
  @AttackThreshold = params['AttackThreshold']
  @TimeThreshold = params['TimeThreshold']
  @DenyTimeThreshold = params['DenyTimeThreshold']
  @DefenseStatus = params['DefenseStatus']
end