Class: TencentCloud::Teo::V20220901::SecurityConfig
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Teo::V20220901::SecurityConfig
- Defined in:
- lib/v20220901/models.rb
Overview
Web安全配置
Instance Attribute Summary collapse
- #AclConfig ⇒ Object
- #BotConfig ⇒ Object
- #DetectLengthLimitConfig ⇒ Object
- #DropPageConfig ⇒ Object
- #ExceptConfig ⇒ Object
- #IpTableConfig ⇒ Object
- #RateLimitConfig ⇒ Object
- #SlowPostConfig ⇒ Object
- #SwitchConfig ⇒ Object
- #TemplateConfig ⇒ Object
- #WafConfig ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(wafconfig = nil, ratelimitconfig = nil, aclconfig = nil, botconfig = nil, switchconfig = nil, iptableconfig = nil, exceptconfig = nil, droppageconfig = nil, templateconfig = nil, slowpostconfig = nil, detectlengthlimitconfig = nil) ⇒ SecurityConfig
constructor
A new instance of SecurityConfig.
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
#AclConfig ⇒ Object
21395 21396 21397 |
# File 'lib/v20220901/models.rb', line 21395 def AclConfig @AclConfig end |
#BotConfig ⇒ Object
21395 21396 21397 |
# File 'lib/v20220901/models.rb', line 21395 def BotConfig @BotConfig end |
#DetectLengthLimitConfig ⇒ Object
21395 21396 21397 |
# File 'lib/v20220901/models.rb', line 21395 def DetectLengthLimitConfig @DetectLengthLimitConfig end |
#DropPageConfig ⇒ Object
21395 21396 21397 |
# File 'lib/v20220901/models.rb', line 21395 def DropPageConfig @DropPageConfig end |
#ExceptConfig ⇒ Object
21395 21396 21397 |
# File 'lib/v20220901/models.rb', line 21395 def ExceptConfig @ExceptConfig end |
#IpTableConfig ⇒ Object
21395 21396 21397 |
# File 'lib/v20220901/models.rb', line 21395 def IpTableConfig @IpTableConfig end |
#RateLimitConfig ⇒ Object
21395 21396 21397 |
# File 'lib/v20220901/models.rb', line 21395 def RateLimitConfig @RateLimitConfig end |
#SlowPostConfig ⇒ Object
21395 21396 21397 |
# File 'lib/v20220901/models.rb', line 21395 def SlowPostConfig @SlowPostConfig end |
#SwitchConfig ⇒ Object
21395 21396 21397 |
# File 'lib/v20220901/models.rb', line 21395 def SwitchConfig @SwitchConfig end |
#TemplateConfig ⇒ Object
21395 21396 21397 |
# File 'lib/v20220901/models.rb', line 21395 def TemplateConfig @TemplateConfig end |
#WafConfig ⇒ Object
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 |