Class: TencentCloud::Teo::V20220901::ManagedRules
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Teo::V20220901::ManagedRules
- Defined in:
- lib/v20220901/models.rb
Overview
Web安全的托管规则
Instance Attribute Summary collapse
- #AutoUpdate ⇒ Object
- #DetectionOnly ⇒ Object
- #Enabled ⇒ Object
- #FrequentScanningProtection ⇒ Object
- #ManagedRuleGroups ⇒ Object
- #SemanticAnalysis ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(enabled = nil, detectiononly = nil, semanticanalysis = nil, autoupdate = nil, managedrulegroups = nil, frequentscanningprotection = nil) ⇒ ManagedRules
constructor
A new instance of ManagedRules.
Constructor Details
#initialize(enabled = nil, detectiononly = nil, semanticanalysis = nil, autoupdate = nil, managedrulegroups = nil, frequentscanningprotection = nil) ⇒ ManagedRules
Returns a new instance of ManagedRules.
15129 15130 15131 15132 15133 15134 15135 15136 |
# File 'lib/v20220901/models.rb', line 15129 def initialize(enabled=nil, detectiononly=nil, semanticanalysis=nil, autoupdate=nil, managedrulegroups=nil, frequentscanningprotection=nil) @Enabled = enabled @DetectionOnly = detectiononly @SemanticAnalysis = semanticanalysis @AutoUpdate = autoupdate @ManagedRuleGroups = managedrulegroups @FrequentScanningProtection = frequentscanningprotection end |
Instance Attribute Details
#AutoUpdate ⇒ Object
15127 15128 15129 |
# File 'lib/v20220901/models.rb', line 15127 def AutoUpdate @AutoUpdate end |
#DetectionOnly ⇒ Object
15127 15128 15129 |
# File 'lib/v20220901/models.rb', line 15127 def DetectionOnly @DetectionOnly end |
#Enabled ⇒ Object
15127 15128 15129 |
# File 'lib/v20220901/models.rb', line 15127 def Enabled @Enabled end |
#FrequentScanningProtection ⇒ Object
15127 15128 15129 |
# File 'lib/v20220901/models.rb', line 15127 def FrequentScanningProtection @FrequentScanningProtection end |
#ManagedRuleGroups ⇒ Object
15127 15128 15129 |
# File 'lib/v20220901/models.rb', line 15127 def ManagedRuleGroups @ManagedRuleGroups end |
#SemanticAnalysis ⇒ Object
15127 15128 15129 |
# File 'lib/v20220901/models.rb', line 15127 def SemanticAnalysis @SemanticAnalysis end |
Instance Method Details
#deserialize(params) ⇒ Object
15138 15139 15140 15141 15142 15143 15144 15145 15146 15147 15148 15149 15150 15151 15152 15153 15154 15155 15156 15157 15158 |
# File 'lib/v20220901/models.rb', line 15138 def deserialize(params) @Enabled = params['Enabled'] @DetectionOnly = params['DetectionOnly'] @SemanticAnalysis = params['SemanticAnalysis'] unless params['AutoUpdate'].nil? @AutoUpdate = ManagedRuleAutoUpdate.new @AutoUpdate.deserialize(params['AutoUpdate']) end unless params['ManagedRuleGroups'].nil? @ManagedRuleGroups = [] params['ManagedRuleGroups'].each do |i| managedrulegroup_tmp = ManagedRuleGroup.new managedrulegroup_tmp.deserialize(i) @ManagedRuleGroups << managedrulegroup_tmp end end unless params['FrequentScanningProtection'].nil? @FrequentScanningProtection = FrequentScanningProtection.new @FrequentScanningProtection.deserialize(params['FrequentScanningProtection']) end end |