Class: TencentCloud::Teo::V20220901::SecurityConfig

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

Overview

Web安全配置

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(wafconfig = nil, ratelimitconfig = nil, aclconfig = nil, botconfig = nil, switchconfig = nil, iptableconfig = nil, exceptconfig = nil, droppageconfig = nil, templateconfig = nil, slowpostconfig = nil, detectlengthlimitconfig = nil) ⇒ SecurityConfig

Returns a new instance of SecurityConfig.



21397
21398
21399
21400
21401
21402
21403
21404
21405
21406
21407
21408
21409
# File 'lib/v20220901/models.rb', line 21397

def initialize(wafconfig=nil, ratelimitconfig=nil, aclconfig=nil, botconfig=nil, switchconfig=nil, iptableconfig=nil, exceptconfig=nil, droppageconfig=nil, templateconfig=nil, slowpostconfig=nil, detectlengthlimitconfig=nil)
  @WafConfig = wafconfig
  @RateLimitConfig = ratelimitconfig
  @AclConfig = aclconfig
  @BotConfig = botconfig
  @SwitchConfig = switchconfig
  @IpTableConfig = iptableconfig
  @ExceptConfig = exceptconfig
  @DropPageConfig = droppageconfig
  @TemplateConfig = templateconfig
  @SlowPostConfig = slowpostconfig
  @DetectLengthLimitConfig = detectlengthlimitconfig
end

Instance Attribute Details

#AclConfigObject

Parameters:

  • WafConfig:

    托管规则。如果入参为空或不填,默认使用历史配置。

  • RateLimitConfig:

    速率限制。如果入参为空或不填,默认使用历史配置。

  • AclConfig:

    自定义规则。如果入参为空或不填,默认使用历史配置。

  • BotConfig:

    Bot配置。如果入参为空或不填,默认使用历史配置。

  • SwitchConfig:

    七层防护总开关。如果入参为空或不填,默认使用历史配置。

  • IpTableConfig:

    基础访问管控。如果入参为空或不填,默认使用历史配置。

  • ExceptConfig:

    例外规则配置。如果入参为空或不填,默认使用历史配置。

  • DropPageConfig:

    自定义拦截页面配置。如果入参为空或不填,默认使用历史配置。

  • TemplateConfig:

    模板配置。此处仅出参数使用。

  • SlowPostConfig:

    慢速攻击配置。如果入参为空或不填,默认使用历史配置。

  • DetectLengthLimitConfig:

    检测长度限制配置。仅出参使用。



21395
21396
21397
# File 'lib/v20220901/models.rb', line 21395

def AclConfig
  @AclConfig
end

#BotConfigObject

Parameters:

  • WafConfig:

    托管规则。如果入参为空或不填,默认使用历史配置。

  • RateLimitConfig:

    速率限制。如果入参为空或不填,默认使用历史配置。

  • AclConfig:

    自定义规则。如果入参为空或不填,默认使用历史配置。

  • BotConfig:

    Bot配置。如果入参为空或不填,默认使用历史配置。

  • SwitchConfig:

    七层防护总开关。如果入参为空或不填,默认使用历史配置。

  • IpTableConfig:

    基础访问管控。如果入参为空或不填,默认使用历史配置。

  • ExceptConfig:

    例外规则配置。如果入参为空或不填,默认使用历史配置。

  • DropPageConfig:

    自定义拦截页面配置。如果入参为空或不填,默认使用历史配置。

  • TemplateConfig:

    模板配置。此处仅出参数使用。

  • SlowPostConfig:

    慢速攻击配置。如果入参为空或不填,默认使用历史配置。

  • DetectLengthLimitConfig:

    检测长度限制配置。仅出参使用。



21395
21396
21397
# File 'lib/v20220901/models.rb', line 21395

def BotConfig
  @BotConfig
end

#DetectLengthLimitConfigObject

Parameters:

  • WafConfig:

    托管规则。如果入参为空或不填,默认使用历史配置。

  • RateLimitConfig:

    速率限制。如果入参为空或不填,默认使用历史配置。

  • AclConfig:

    自定义规则。如果入参为空或不填,默认使用历史配置。

  • BotConfig:

    Bot配置。如果入参为空或不填,默认使用历史配置。

  • SwitchConfig:

    七层防护总开关。如果入参为空或不填,默认使用历史配置。

  • IpTableConfig:

    基础访问管控。如果入参为空或不填,默认使用历史配置。

  • ExceptConfig:

    例外规则配置。如果入参为空或不填,默认使用历史配置。

  • DropPageConfig:

    自定义拦截页面配置。如果入参为空或不填,默认使用历史配置。

  • TemplateConfig:

    模板配置。此处仅出参数使用。

  • SlowPostConfig:

    慢速攻击配置。如果入参为空或不填,默认使用历史配置。

  • DetectLengthLimitConfig:

    检测长度限制配置。仅出参使用。



21395
21396
21397
# File 'lib/v20220901/models.rb', line 21395

def DetectLengthLimitConfig
  @DetectLengthLimitConfig
end

#DropPageConfigObject

Parameters:

  • WafConfig:

    托管规则。如果入参为空或不填,默认使用历史配置。

  • RateLimitConfig:

    速率限制。如果入参为空或不填,默认使用历史配置。

  • AclConfig:

    自定义规则。如果入参为空或不填,默认使用历史配置。

  • BotConfig:

    Bot配置。如果入参为空或不填,默认使用历史配置。

  • SwitchConfig:

    七层防护总开关。如果入参为空或不填,默认使用历史配置。

  • IpTableConfig:

    基础访问管控。如果入参为空或不填,默认使用历史配置。

  • ExceptConfig:

    例外规则配置。如果入参为空或不填,默认使用历史配置。

  • DropPageConfig:

    自定义拦截页面配置。如果入参为空或不填,默认使用历史配置。

  • TemplateConfig:

    模板配置。此处仅出参数使用。

  • SlowPostConfig:

    慢速攻击配置。如果入参为空或不填,默认使用历史配置。

  • DetectLengthLimitConfig:

    检测长度限制配置。仅出参使用。



21395
21396
21397
# File 'lib/v20220901/models.rb', line 21395

def DropPageConfig
  @DropPageConfig
end

#ExceptConfigObject

Parameters:

  • WafConfig:

    托管规则。如果入参为空或不填,默认使用历史配置。

  • RateLimitConfig:

    速率限制。如果入参为空或不填,默认使用历史配置。

  • AclConfig:

    自定义规则。如果入参为空或不填,默认使用历史配置。

  • BotConfig:

    Bot配置。如果入参为空或不填,默认使用历史配置。

  • SwitchConfig:

    七层防护总开关。如果入参为空或不填,默认使用历史配置。

  • IpTableConfig:

    基础访问管控。如果入参为空或不填,默认使用历史配置。

  • ExceptConfig:

    例外规则配置。如果入参为空或不填,默认使用历史配置。

  • DropPageConfig:

    自定义拦截页面配置。如果入参为空或不填,默认使用历史配置。

  • TemplateConfig:

    模板配置。此处仅出参数使用。

  • SlowPostConfig:

    慢速攻击配置。如果入参为空或不填,默认使用历史配置。

  • DetectLengthLimitConfig:

    检测长度限制配置。仅出参使用。



21395
21396
21397
# File 'lib/v20220901/models.rb', line 21395

def ExceptConfig
  @ExceptConfig
end

#IpTableConfigObject

Parameters:

  • WafConfig:

    托管规则。如果入参为空或不填,默认使用历史配置。

  • RateLimitConfig:

    速率限制。如果入参为空或不填,默认使用历史配置。

  • AclConfig:

    自定义规则。如果入参为空或不填,默认使用历史配置。

  • BotConfig:

    Bot配置。如果入参为空或不填,默认使用历史配置。

  • SwitchConfig:

    七层防护总开关。如果入参为空或不填,默认使用历史配置。

  • IpTableConfig:

    基础访问管控。如果入参为空或不填,默认使用历史配置。

  • ExceptConfig:

    例外规则配置。如果入参为空或不填,默认使用历史配置。

  • DropPageConfig:

    自定义拦截页面配置。如果入参为空或不填,默认使用历史配置。

  • TemplateConfig:

    模板配置。此处仅出参数使用。

  • SlowPostConfig:

    慢速攻击配置。如果入参为空或不填,默认使用历史配置。

  • DetectLengthLimitConfig:

    检测长度限制配置。仅出参使用。



21395
21396
21397
# File 'lib/v20220901/models.rb', line 21395

def IpTableConfig
  @IpTableConfig
end

#RateLimitConfigObject

Parameters:

  • WafConfig:

    托管规则。如果入参为空或不填,默认使用历史配置。

  • RateLimitConfig:

    速率限制。如果入参为空或不填,默认使用历史配置。

  • AclConfig:

    自定义规则。如果入参为空或不填,默认使用历史配置。

  • BotConfig:

    Bot配置。如果入参为空或不填,默认使用历史配置。

  • SwitchConfig:

    七层防护总开关。如果入参为空或不填,默认使用历史配置。

  • IpTableConfig:

    基础访问管控。如果入参为空或不填,默认使用历史配置。

  • ExceptConfig:

    例外规则配置。如果入参为空或不填,默认使用历史配置。

  • DropPageConfig:

    自定义拦截页面配置。如果入参为空或不填,默认使用历史配置。

  • TemplateConfig:

    模板配置。此处仅出参数使用。

  • SlowPostConfig:

    慢速攻击配置。如果入参为空或不填,默认使用历史配置。

  • DetectLengthLimitConfig:

    检测长度限制配置。仅出参使用。



21395
21396
21397
# File 'lib/v20220901/models.rb', line 21395

def RateLimitConfig
  @RateLimitConfig
end

#SlowPostConfigObject

Parameters:

  • WafConfig:

    托管规则。如果入参为空或不填,默认使用历史配置。

  • RateLimitConfig:

    速率限制。如果入参为空或不填,默认使用历史配置。

  • AclConfig:

    自定义规则。如果入参为空或不填,默认使用历史配置。

  • BotConfig:

    Bot配置。如果入参为空或不填,默认使用历史配置。

  • SwitchConfig:

    七层防护总开关。如果入参为空或不填,默认使用历史配置。

  • IpTableConfig:

    基础访问管控。如果入参为空或不填,默认使用历史配置。

  • ExceptConfig:

    例外规则配置。如果入参为空或不填,默认使用历史配置。

  • DropPageConfig:

    自定义拦截页面配置。如果入参为空或不填,默认使用历史配置。

  • TemplateConfig:

    模板配置。此处仅出参数使用。

  • SlowPostConfig:

    慢速攻击配置。如果入参为空或不填,默认使用历史配置。

  • DetectLengthLimitConfig:

    检测长度限制配置。仅出参使用。



21395
21396
21397
# File 'lib/v20220901/models.rb', line 21395

def SlowPostConfig
  @SlowPostConfig
end

#SwitchConfigObject

Parameters:

  • WafConfig:

    托管规则。如果入参为空或不填,默认使用历史配置。

  • RateLimitConfig:

    速率限制。如果入参为空或不填,默认使用历史配置。

  • AclConfig:

    自定义规则。如果入参为空或不填,默认使用历史配置。

  • BotConfig:

    Bot配置。如果入参为空或不填,默认使用历史配置。

  • SwitchConfig:

    七层防护总开关。如果入参为空或不填,默认使用历史配置。

  • IpTableConfig:

    基础访问管控。如果入参为空或不填,默认使用历史配置。

  • ExceptConfig:

    例外规则配置。如果入参为空或不填,默认使用历史配置。

  • DropPageConfig:

    自定义拦截页面配置。如果入参为空或不填,默认使用历史配置。

  • TemplateConfig:

    模板配置。此处仅出参数使用。

  • SlowPostConfig:

    慢速攻击配置。如果入参为空或不填,默认使用历史配置。

  • DetectLengthLimitConfig:

    检测长度限制配置。仅出参使用。



21395
21396
21397
# File 'lib/v20220901/models.rb', line 21395

def SwitchConfig
  @SwitchConfig
end

#TemplateConfigObject

Parameters:

  • WafConfig:

    托管规则。如果入参为空或不填,默认使用历史配置。

  • RateLimitConfig:

    速率限制。如果入参为空或不填,默认使用历史配置。

  • AclConfig:

    自定义规则。如果入参为空或不填,默认使用历史配置。

  • BotConfig:

    Bot配置。如果入参为空或不填,默认使用历史配置。

  • SwitchConfig:

    七层防护总开关。如果入参为空或不填,默认使用历史配置。

  • IpTableConfig:

    基础访问管控。如果入参为空或不填,默认使用历史配置。

  • ExceptConfig:

    例外规则配置。如果入参为空或不填,默认使用历史配置。

  • DropPageConfig:

    自定义拦截页面配置。如果入参为空或不填,默认使用历史配置。

  • TemplateConfig:

    模板配置。此处仅出参数使用。

  • SlowPostConfig:

    慢速攻击配置。如果入参为空或不填,默认使用历史配置。

  • DetectLengthLimitConfig:

    检测长度限制配置。仅出参使用。



21395
21396
21397
# File 'lib/v20220901/models.rb', line 21395

def TemplateConfig
  @TemplateConfig
end

#WafConfigObject

Parameters:

  • WafConfig:

    托管规则。如果入参为空或不填,默认使用历史配置。

  • RateLimitConfig:

    速率限制。如果入参为空或不填,默认使用历史配置。

  • AclConfig:

    自定义规则。如果入参为空或不填,默认使用历史配置。

  • BotConfig:

    Bot配置。如果入参为空或不填,默认使用历史配置。

  • SwitchConfig:

    七层防护总开关。如果入参为空或不填,默认使用历史配置。

  • IpTableConfig:

    基础访问管控。如果入参为空或不填,默认使用历史配置。

  • ExceptConfig:

    例外规则配置。如果入参为空或不填,默认使用历史配置。

  • DropPageConfig:

    自定义拦截页面配置。如果入参为空或不填,默认使用历史配置。

  • TemplateConfig:

    模板配置。此处仅出参数使用。

  • SlowPostConfig:

    慢速攻击配置。如果入参为空或不填,默认使用历史配置。

  • DetectLengthLimitConfig:

    检测长度限制配置。仅出参使用。



21395
21396
21397
# File 'lib/v20220901/models.rb', line 21395

def WafConfig
  @WafConfig
end

Instance Method Details

#deserialize(params) ⇒ Object



21411
21412
21413
21414
21415
21416
21417
21418
21419
21420
21421
21422
21423
21424
21425
21426
21427
21428
21429
21430
21431
21432
21433
21434
21435
21436
21437
21438
21439
21440
21441
21442
21443
21444
21445
21446
21447
21448
21449
21450
21451
21452
21453
21454
21455
21456
# File 'lib/v20220901/models.rb', line 21411

def deserialize(params)
  unless params['WafConfig'].nil?
    @WafConfig = WafConfig.new
    @WafConfig.deserialize(params['WafConfig'])
  end
  unless params['RateLimitConfig'].nil?
    @RateLimitConfig = RateLimitConfig.new
    @RateLimitConfig.deserialize(params['RateLimitConfig'])
  end
  unless params['AclConfig'].nil?
    @AclConfig = AclConfig.new
    @AclConfig.deserialize(params['AclConfig'])
  end
  unless params['BotConfig'].nil?
    @BotConfig = BotConfig.new
    @BotConfig.deserialize(params['BotConfig'])
  end
  unless params['SwitchConfig'].nil?
    @SwitchConfig = SwitchConfig.new
    @SwitchConfig.deserialize(params['SwitchConfig'])
  end
  unless params['IpTableConfig'].nil?
    @IpTableConfig = IpTableConfig.new
    @IpTableConfig.deserialize(params['IpTableConfig'])
  end
  unless params['ExceptConfig'].nil?
    @ExceptConfig = ExceptConfig.new
    @ExceptConfig.deserialize(params['ExceptConfig'])
  end
  unless params['DropPageConfig'].nil?
    @DropPageConfig = DropPageConfig.new
    @DropPageConfig.deserialize(params['DropPageConfig'])
  end
  unless params['TemplateConfig'].nil?
    @TemplateConfig = TemplateConfig.new
    @TemplateConfig.deserialize(params['TemplateConfig'])
  end
  unless params['SlowPostConfig'].nil?
    @SlowPostConfig = SlowPostConfig.new
    @SlowPostConfig.deserialize(params['SlowPostConfig'])
  end
  unless params['DetectLengthLimitConfig'].nil?
    @DetectLengthLimitConfig = DetectLengthLimitConfig.new
    @DetectLengthLimitConfig.deserialize(params['DetectLengthLimitConfig'])
  end
end