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.



10441
10442
10443
10444
10445
10446
10447
# File 'lib/v20180125/models.rb', line 10441

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表示打开



10439
10440
10441
# File 'lib/v20180125/models.rb', line 10439

def AttackThreshold
  @AttackThreshold
end

#DefenseStatusObject

Parameters:

  • Domain:

    域名

  • AttackThreshold:

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

  • TimeThreshold:

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

  • DenyTimeThreshold:

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

  • DefenseStatus:

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



10439
10440
10441
# File 'lib/v20180125/models.rb', line 10439

def DefenseStatus
  @DefenseStatus
end

#DenyTimeThresholdObject

Parameters:

  • Domain:

    域名

  • AttackThreshold:

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

  • TimeThreshold:

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

  • DenyTimeThreshold:

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

  • DefenseStatus:

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



10439
10440
10441
# File 'lib/v20180125/models.rb', line 10439

def DenyTimeThreshold
  @DenyTimeThreshold
end

#DomainObject

Parameters:

  • Domain:

    域名

  • AttackThreshold:

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

  • TimeThreshold:

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

  • DenyTimeThreshold:

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

  • DefenseStatus:

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



10439
10440
10441
# File 'lib/v20180125/models.rb', line 10439

def Domain
  @Domain
end

#TimeThresholdObject

Parameters:

  • Domain:

    域名

  • AttackThreshold:

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

  • TimeThreshold:

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

  • DenyTimeThreshold:

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

  • DefenseStatus:

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



10439
10440
10441
# File 'lib/v20180125/models.rb', line 10439

def TimeThreshold
  @TimeThreshold
end

Instance Method Details

#deserialize(params) ⇒ Object



10449
10450
10451
10452
10453
10454
10455
# File 'lib/v20180125/models.rb', line 10449

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