Class: TencentCloud::Cfw::V20190904::CreateBlockIgnoreRuleNewRequest
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cfw::V20190904::CreateBlockIgnoreRuleNewRequest
- Defined in:
- lib/v20190904/models.rb
Overview
CreateBlockIgnoreRuleNew请求参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(rules = nil, ruletype = nil, coverduplicate = nil) ⇒ CreateBlockIgnoreRuleNewRequest
constructor
A new instance of CreateBlockIgnoreRuleNewRequest.
Constructor Details
#initialize(rules = nil, ruletype = nil, coverduplicate = nil) ⇒ CreateBlockIgnoreRuleNewRequest
1487 1488 1489 1490 1491 |
# File 'lib/v20190904/models.rb', line 1487 def initialize(rules=nil, ruletype=nil, coverduplicate=nil) @Rules = rules @RuleType = ruletype @CoverDuplicate = coverduplicate end |
Instance Attribute Details
#CoverDuplicate ⇒ Object
1485 1486 1487 |
# File 'lib/v20190904/models.rb', line 1485 def CoverDuplicate @CoverDuplicate end |
#Rules ⇒ Object
1485 1486 1487 |
# File 'lib/v20190904/models.rb', line 1485 def Rules @Rules end |
#RuleType ⇒ Object
1485 1486 1487 |
# File 'lib/v20190904/models.rb', line 1485 def RuleType @RuleType end |
Instance Method Details
#deserialize(params) ⇒ Object
1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 |
# File 'lib/v20190904/models.rb', line 1493 def deserialize(params) unless params['Rules'].nil? @Rules = [] params['Rules'].each do |i| banandallowrule_tmp = BanAndAllowRule.new banandallowrule_tmp.deserialize(i) @Rules << banandallowrule_tmp end end @RuleType = params['RuleType'] @CoverDuplicate = params['CoverDuplicate'] end |