Class: TencentCloud::Teo::V20220901::ExceptionRule
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Teo::V20220901::ExceptionRule
- Defined in:
- lib/v20220901/models.rb
Overview
Web安全的例外规则
Instance Attribute Summary collapse
- #Condition ⇒ Object
- #Enabled ⇒ Object
- #Id ⇒ Object
- #ManagedRuleGroupsForException ⇒ Object
- #ManagedRulesForException ⇒ Object
- #Name ⇒ Object
- #RequestFieldsForException ⇒ Object
- #SkipOption ⇒ Object
- #SkipScope ⇒ Object
- #WebSecurityModulesForException ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(id = nil, name = nil, condition = nil, skipscope = nil, skipoption = nil, websecuritymodulesforexception = nil, managedrulesforexception = nil, managedrulegroupsforexception = nil, requestfieldsforexception = nil, enabled = nil) ⇒ ExceptionRule
constructor
A new instance of ExceptionRule.
Constructor Details
#initialize(id = nil, name = nil, condition = nil, skipscope = nil, skipoption = nil, websecuritymodulesforexception = nil, managedrulesforexception = nil, managedrulegroupsforexception = nil, requestfieldsforexception = nil, enabled = nil) ⇒ ExceptionRule
Returns a new instance of ExceptionRule.
12799 12800 12801 12802 12803 12804 12805 12806 12807 12808 12809 12810 |
# File 'lib/v20220901/models.rb', line 12799 def initialize(id=nil, name=nil, condition=nil, skipscope=nil, skipoption=nil, websecuritymodulesforexception=nil, managedrulesforexception=nil, managedrulegroupsforexception=nil, requestfieldsforexception=nil, enabled=nil) @Id = id @Name = name @Condition = condition @SkipScope = skipscope @SkipOption = skipoption @WebSecurityModulesForException = websecuritymodulesforexception @ManagedRulesForException = managedrulesforexception @ManagedRuleGroupsForException = managedrulegroupsforexception @RequestFieldsForException = requestfieldsforexception @Enabled = enabled end |
Instance Attribute Details
#Condition ⇒ Object
12797 12798 12799 |
# File 'lib/v20220901/models.rb', line 12797 def Condition @Condition end |
#Enabled ⇒ Object
12797 12798 12799 |
# File 'lib/v20220901/models.rb', line 12797 def Enabled @Enabled end |
#Id ⇒ Object
12797 12798 12799 |
# File 'lib/v20220901/models.rb', line 12797 def Id @Id end |
#ManagedRuleGroupsForException ⇒ Object
12797 12798 12799 |
# File 'lib/v20220901/models.rb', line 12797 def ManagedRuleGroupsForException @ManagedRuleGroupsForException end |
#ManagedRulesForException ⇒ Object
12797 12798 12799 |
# File 'lib/v20220901/models.rb', line 12797 def ManagedRulesForException @ManagedRulesForException end |
#Name ⇒ Object
12797 12798 12799 |
# File 'lib/v20220901/models.rb', line 12797 def Name @Name end |
#RequestFieldsForException ⇒ Object
12797 12798 12799 |
# File 'lib/v20220901/models.rb', line 12797 def RequestFieldsForException @RequestFieldsForException end |
#SkipOption ⇒ Object
12797 12798 12799 |
# File 'lib/v20220901/models.rb', line 12797 def SkipOption @SkipOption end |
#SkipScope ⇒ Object
12797 12798 12799 |
# File 'lib/v20220901/models.rb', line 12797 def SkipScope @SkipScope end |
#WebSecurityModulesForException ⇒ Object
12797 12798 12799 |
# File 'lib/v20220901/models.rb', line 12797 def WebSecurityModulesForException @WebSecurityModulesForException end |
Instance Method Details
#deserialize(params) ⇒ Object
12812 12813 12814 12815 12816 12817 12818 12819 12820 12821 12822 12823 12824 12825 12826 12827 12828 12829 12830 |
# File 'lib/v20220901/models.rb', line 12812 def deserialize(params) @Id = params['Id'] @Name = params['Name'] @Condition = params['Condition'] @SkipScope = params['SkipScope'] @SkipOption = params['SkipOption'] @WebSecurityModulesForException = params['WebSecurityModulesForException'] @ManagedRulesForException = params['ManagedRulesForException'] @ManagedRuleGroupsForException = params['ManagedRuleGroupsForException'] unless params['RequestFieldsForException'].nil? @RequestFieldsForException = [] params['RequestFieldsForException'].each do |i| requestfieldsforexception_tmp = RequestFieldsForException.new requestfieldsforexception_tmp.deserialize(i) @RequestFieldsForException << requestfieldsforexception_tmp end end @Enabled = params['Enabled'] end |