Class: TencentCloud::Waf::V20180125::BotSceneActionRule
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Waf::V20180125::BotSceneActionRule
- Defined in:
- lib/v20180125/models.rb
Overview
获取场景动作策略列表时的动作策略实体
Instance Attribute Summary collapse
- #ActionMatchType ⇒ Object
- #Level ⇒ Object
- #Priority ⇒ Object
- #RuleId ⇒ Object
- #RuleName ⇒ Object
- #Scope ⇒ Object
- #ScopeType ⇒ Object
- #Score ⇒ Object
- #Status ⇒ Object
- #Type ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(ruleid = nil, rulename = nil, priority = nil, status = nil, score = nil, level = nil, scope = nil, type = nil, scopetype = nil, actionmatchtype = nil) ⇒ BotSceneActionRule
constructor
A new instance of BotSceneActionRule.
Constructor Details
#initialize(ruleid = nil, rulename = nil, priority = nil, status = nil, score = nil, level = nil, scope = nil, type = nil, scopetype = nil, actionmatchtype = nil) ⇒ BotSceneActionRule
Returns a new instance of BotSceneActionRule.
2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 |
# File 'lib/v20180125/models.rb', line 2304 def initialize(ruleid=nil, rulename=nil, priority=nil, status=nil, score=nil, level=nil, scope=nil, type=nil, scopetype=nil, actionmatchtype=nil) @RuleId = ruleid @RuleName = rulename @Priority = priority @Status = status @Score = score @Level = level @Scope = scope @Type = type @ScopeType = scopetype @ActionMatchType = actionmatchtype end |
Instance Attribute Details
#ActionMatchType ⇒ Object
2302 2303 2304 |
# File 'lib/v20180125/models.rb', line 2302 def ActionMatchType @ActionMatchType end |
#Level ⇒ Object
2302 2303 2304 |
# File 'lib/v20180125/models.rb', line 2302 def Level @Level end |
#Priority ⇒ Object
2302 2303 2304 |
# File 'lib/v20180125/models.rb', line 2302 def Priority @Priority end |
#RuleId ⇒ Object
2302 2303 2304 |
# File 'lib/v20180125/models.rb', line 2302 def RuleId @RuleId end |
#RuleName ⇒ Object
2302 2303 2304 |
# File 'lib/v20180125/models.rb', line 2302 def RuleName @RuleName end |
#Scope ⇒ Object
2302 2303 2304 |
# File 'lib/v20180125/models.rb', line 2302 def Scope @Scope end |
#ScopeType ⇒ Object
2302 2303 2304 |
# File 'lib/v20180125/models.rb', line 2302 def ScopeType @ScopeType end |
#Score ⇒ Object
2302 2303 2304 |
# File 'lib/v20180125/models.rb', line 2302 def Score @Score end |
#Status ⇒ Object
2302 2303 2304 |
# File 'lib/v20180125/models.rb', line 2302 def Status @Status end |
#Type ⇒ Object
2302 2303 2304 |
# File 'lib/v20180125/models.rb', line 2302 def Type @Type end |
Instance Method Details
#deserialize(params) ⇒ Object
2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 |
# File 'lib/v20180125/models.rb', line 2317 def deserialize(params) @RuleId = params['RuleId'] @RuleName = params['RuleName'] @Priority = params['Priority'] @Status = params['Status'] unless params['Score'].nil? @Score = [] params['Score'].each do |i| botscoreruleentry_tmp = BotScoreRuleEntry.new botscoreruleentry_tmp.deserialize(i) @Score << botscoreruleentry_tmp end end @Level = params['Level'] unless params['Scope'].nil? @Scope = [] params['Scope'].each do |i| botactionscoperuleentry_tmp = BotActionScopeRuleEntry.new botactionscoperuleentry_tmp.deserialize(i) @Scope << botactionscoperuleentry_tmp end end @Type = params['Type'] @ScopeType = params['ScopeType'] @ActionMatchType = params['ActionMatchType'] end |