Class: TencentCloud::Cfw::V20190904::BanAndAllowRule
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cfw::V20190904::BanAndAllowRule
- Defined in:
- lib/v20190904/models.rb
Overview
封禁列表和放通列表结构体
Instance Attribute Summary collapse
- #Comment ⇒ Object
- #CustomRule ⇒ Object
- #DirectionList ⇒ Object
- #EndTime ⇒ Object
- #FwType ⇒ Object
- #Ioc ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(comment = nil, customrule = nil, directionlist = nil, endtime = nil, fwtype = nil, ioc = nil) ⇒ BanAndAllowRule
constructor
A new instance of BanAndAllowRule.
Constructor Details
#initialize(comment = nil, customrule = nil, directionlist = nil, endtime = nil, fwtype = nil, ioc = nil) ⇒ BanAndAllowRule
Returns a new instance of BanAndAllowRule.
434 435 436 437 438 439 440 441 |
# File 'lib/v20190904/models.rb', line 434 def initialize(comment=nil, customrule=nil, directionlist=nil, endtime=nil, fwtype=nil, ioc=nil) @Comment = comment @CustomRule = customrule @DirectionList = directionlist @EndTime = endtime @FwType = fwtype @Ioc = ioc end |
Instance Attribute Details
#Comment ⇒ Object
432 433 434 |
# File 'lib/v20190904/models.rb', line 432 def Comment @Comment end |
#CustomRule ⇒ Object
432 433 434 |
# File 'lib/v20190904/models.rb', line 432 def CustomRule @CustomRule end |
#DirectionList ⇒ Object
432 433 434 |
# File 'lib/v20190904/models.rb', line 432 def DirectionList @DirectionList end |
#EndTime ⇒ Object
432 433 434 |
# File 'lib/v20190904/models.rb', line 432 def EndTime @EndTime end |
#FwType ⇒ Object
432 433 434 |
# File 'lib/v20190904/models.rb', line 432 def FwType @FwType end |
#Ioc ⇒ Object
432 433 434 |
# File 'lib/v20190904/models.rb', line 432 def Ioc @Ioc end |
Instance Method Details
#deserialize(params) ⇒ Object
443 444 445 446 447 448 449 450 451 452 453 |
# File 'lib/v20190904/models.rb', line 443 def deserialize(params) @Comment = params['Comment'] unless params['CustomRule'].nil? @CustomRule = CustomWhiteRule.new @CustomRule.deserialize(params['CustomRule']) end @DirectionList = params['DirectionList'] @EndTime = params['EndTime'] @FwType = params['FwType'] @Ioc = params['Ioc'] end |