Class: TencentCloud::Waf::V20180125::ModifyBotIdRuleRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Waf::V20180125::ModifyBotIdRuleRequest
- Defined in:
- lib/v20180125/models.rb
Overview
ModifyBotIdRule请求参数结构体
Instance Attribute Summary collapse
- #Data ⇒ Object
- #Domain ⇒ Object
- #GlobalRedirect ⇒ Object
- #GlobalSwitch ⇒ Object
- #ProtectLevel ⇒ Object
- #RuleAction ⇒ Object
- #SceneId ⇒ Object
- #Status ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(domain = nil, sceneid = nil, data = nil, globalswitch = nil, status = nil, ruleaction = nil, globalredirect = nil, protectlevel = nil) ⇒ ModifyBotIdRuleRequest
constructor
A new instance of ModifyBotIdRuleRequest.
Constructor Details
#initialize(domain = nil, sceneid = nil, data = nil, globalswitch = nil, status = nil, ruleaction = nil, globalredirect = nil, protectlevel = nil) ⇒ ModifyBotIdRuleRequest
Returns a new instance of ModifyBotIdRuleRequest.
14525 14526 14527 14528 14529 14530 14531 14532 14533 14534 |
# File 'lib/v20180125/models.rb', line 14525 def initialize(domain=nil, sceneid=nil, data=nil, globalswitch=nil, status=nil, ruleaction=nil, globalredirect=nil, protectlevel=nil) @Domain = domain @SceneId = sceneid @Data = data @GlobalSwitch = globalswitch @Status = status @RuleAction = ruleaction @GlobalRedirect = globalredirect @ProtectLevel = protectlevel end |
Instance Attribute Details
#Data ⇒ Object
14523 14524 14525 |
# File 'lib/v20180125/models.rb', line 14523 def Data @Data end |
#Domain ⇒ Object
14523 14524 14525 |
# File 'lib/v20180125/models.rb', line 14523 def Domain @Domain end |
#GlobalRedirect ⇒ Object
14523 14524 14525 |
# File 'lib/v20180125/models.rb', line 14523 def GlobalRedirect @GlobalRedirect end |
#GlobalSwitch ⇒ Object
14523 14524 14525 |
# File 'lib/v20180125/models.rb', line 14523 def GlobalSwitch @GlobalSwitch end |
#ProtectLevel ⇒ Object
14523 14524 14525 |
# File 'lib/v20180125/models.rb', line 14523 def ProtectLevel @ProtectLevel end |
#RuleAction ⇒ Object
14523 14524 14525 |
# File 'lib/v20180125/models.rb', line 14523 def RuleAction @RuleAction end |
#SceneId ⇒ Object
14523 14524 14525 |
# File 'lib/v20180125/models.rb', line 14523 def SceneId @SceneId end |
#Status ⇒ Object
14523 14524 14525 |
# File 'lib/v20180125/models.rb', line 14523 def Status @Status end |
Instance Method Details
#deserialize(params) ⇒ Object
14536 14537 14538 14539 14540 14541 14542 14543 14544 14545 14546 14547 14548 14549 14550 14551 14552 |
# File 'lib/v20180125/models.rb', line 14536 def deserialize(params) @Domain = params['Domain'] @SceneId = params['SceneId'] unless params['Data'].nil? @Data = [] params['Data'].each do |i| botidconfig_tmp = BotIdConfig.new botidconfig_tmp.deserialize(i) @Data << botidconfig_tmp end end @GlobalSwitch = params['GlobalSwitch'] @Status = params['Status'] @RuleAction = params['RuleAction'] @GlobalRedirect = params['GlobalRedirect'] @ProtectLevel = params['ProtectLevel'] end |