Class: TencentCloud::Teo::V20220901::BotManagementCustomRule
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Teo::V20220901::BotManagementCustomRule
- Defined in:
- lib/v20220901/models.rb
Overview
Web 安全的 Bot 自定义规则。
Instance Attribute Summary collapse
- #Action ⇒ Object
- #Condition ⇒ Object
- #Enabled ⇒ Object
- #Id ⇒ Object
- #Name ⇒ Object
- #Priority ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(id = nil, name = nil, enabled = nil, priority = nil, condition = nil, action = nil) ⇒ BotManagementCustomRule
constructor
A new instance of BotManagementCustomRule.
Constructor Details
#initialize(id = nil, name = nil, enabled = nil, priority = nil, condition = nil, action = nil) ⇒ BotManagementCustomRule
Returns a new instance of BotManagementCustomRule.
1883 1884 1885 1886 1887 1888 1889 1890 |
# File 'lib/v20220901/models.rb', line 1883 def initialize(id=nil, name=nil, enabled=nil, priority=nil, condition=nil, action=nil) @Id = id @Name = name @Enabled = enabled @Priority = priority @Condition = condition @Action = action end |
Instance Attribute Details
#Action ⇒ Object
1881 1882 1883 |
# File 'lib/v20220901/models.rb', line 1881 def Action @Action end |
#Condition ⇒ Object
1881 1882 1883 |
# File 'lib/v20220901/models.rb', line 1881 def Condition @Condition end |
#Enabled ⇒ Object
1881 1882 1883 |
# File 'lib/v20220901/models.rb', line 1881 def Enabled @Enabled end |
#Id ⇒ Object
1881 1882 1883 |
# File 'lib/v20220901/models.rb', line 1881 def Id @Id end |
#Name ⇒ Object
1881 1882 1883 |
# File 'lib/v20220901/models.rb', line 1881 def Name @Name end |
#Priority ⇒ Object
1881 1882 1883 |
# File 'lib/v20220901/models.rb', line 1881 def Priority @Priority end |
Instance Method Details
#deserialize(params) ⇒ Object
1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 |
# File 'lib/v20220901/models.rb', line 1892 def deserialize(params) @Id = params['Id'] @Name = params['Name'] @Enabled = params['Enabled'] @Priority = params['Priority'] @Condition = params['Condition'] unless params['Action'].nil? @Action = [] params['Action'].each do |i| securityweightedaction_tmp = SecurityWeightedAction.new securityweightedaction_tmp.deserialize(i) @Action << securityweightedaction_tmp end end end |