Class: TencentCloud::Teo::V20220901::CustomRule
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Teo::V20220901::CustomRule
- Defined in:
- lib/v20220901/models.rb
Overview
Web安全的自定义规则
Instance Attribute Summary collapse
- #Action ⇒ Object
- #Condition ⇒ Object
- #Enabled ⇒ Object
- #Id ⇒ Object
- #Name ⇒ Object
- #Priority ⇒ Object
- #RuleType ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(name = nil, condition = nil, action = nil, enabled = nil, id = nil, ruletype = nil, priority = nil) ⇒ CustomRule
constructor
A new instance of CustomRule.
Constructor Details
#initialize(name = nil, condition = nil, action = nil, enabled = nil, id = nil, ruletype = nil, priority = nil) ⇒ CustomRule
Returns a new instance of CustomRule.
5885 5886 5887 5888 5889 5890 5891 5892 5893 |
# File 'lib/v20220901/models.rb', line 5885 def initialize(name=nil, condition=nil, action=nil, enabled=nil, id=nil, ruletype=nil, priority=nil) @Name = name @Condition = condition @Action = action @Enabled = enabled @Id = id @RuleType = ruletype @Priority = priority end |
Instance Attribute Details
#Action ⇒ Object
5883 5884 5885 |
# File 'lib/v20220901/models.rb', line 5883 def Action @Action end |
#Condition ⇒ Object
5883 5884 5885 |
# File 'lib/v20220901/models.rb', line 5883 def Condition @Condition end |
#Enabled ⇒ Object
5883 5884 5885 |
# File 'lib/v20220901/models.rb', line 5883 def Enabled @Enabled end |
#Id ⇒ Object
5883 5884 5885 |
# File 'lib/v20220901/models.rb', line 5883 def Id @Id end |
#Name ⇒ Object
5883 5884 5885 |
# File 'lib/v20220901/models.rb', line 5883 def Name @Name end |
#Priority ⇒ Object
5883 5884 5885 |
# File 'lib/v20220901/models.rb', line 5883 def Priority @Priority end |
#RuleType ⇒ Object
5883 5884 5885 |
# File 'lib/v20220901/models.rb', line 5883 def RuleType @RuleType end |
Instance Method Details
#deserialize(params) ⇒ Object
5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 |
# File 'lib/v20220901/models.rb', line 5895 def deserialize(params) @Name = params['Name'] @Condition = params['Condition'] unless params['Action'].nil? @Action = SecurityAction.new @Action.deserialize(params['Action']) end @Enabled = params['Enabled'] @Id = params['Id'] @RuleType = params['RuleType'] @Priority = params['Priority'] end |