Class: TencentCloud::Dayu::V20180709::L4RuleEntry
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Dayu::V20180709::L4RuleEntry
- Defined in:
- lib/v20180709/models.rb
Overview
L4规则
Instance Attribute Summary collapse
- #KeepEnable ⇒ Object
- #KeepTime ⇒ Object
- #LbType ⇒ Object
- #Protocol ⇒ Object
- #RemoveSwitch ⇒ Object
- #RuleId ⇒ Object
- #RuleName ⇒ Object
- #SourceList ⇒ Object
- #SourcePort ⇒ Object
- #SourceType ⇒ Object
- #VirtualPort ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(protocol = nil, virtualport = nil, sourceport = nil, sourcetype = nil, keeptime = nil, sourcelist = nil, lbtype = nil, keepenable = nil, ruleid = nil, rulename = nil, removeswitch = nil) ⇒ L4RuleEntry
constructor
A new instance of L4RuleEntry.
Constructor Details
#initialize(protocol = nil, virtualport = nil, sourceport = nil, sourcetype = nil, keeptime = nil, sourcelist = nil, lbtype = nil, keepenable = nil, ruleid = nil, rulename = nil, removeswitch = nil) ⇒ L4RuleEntry
Returns a new instance of L4RuleEntry.
6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 |
# File 'lib/v20180709/models.rb', line 6365 def initialize(protocol=nil, virtualport=nil, sourceport=nil, sourcetype=nil, keeptime=nil, sourcelist=nil, lbtype=nil, keepenable=nil, ruleid=nil, rulename=nil, removeswitch=nil) @Protocol = protocol @VirtualPort = virtualport @SourcePort = sourceport @SourceType = sourcetype @KeepTime = keeptime @SourceList = sourcelist @LbType = lbtype @KeepEnable = keepenable @RuleId = ruleid @RuleName = rulename @RemoveSwitch = removeswitch end |
Instance Attribute Details
#KeepEnable ⇒ Object
6363 6364 6365 |
# File 'lib/v20180709/models.rb', line 6363 def KeepEnable @KeepEnable end |
#KeepTime ⇒ Object
6363 6364 6365 |
# File 'lib/v20180709/models.rb', line 6363 def KeepTime @KeepTime end |
#LbType ⇒ Object
6363 6364 6365 |
# File 'lib/v20180709/models.rb', line 6363 def LbType @LbType end |
#Protocol ⇒ Object
6363 6364 6365 |
# File 'lib/v20180709/models.rb', line 6363 def Protocol @Protocol end |
#RemoveSwitch ⇒ Object
6363 6364 6365 |
# File 'lib/v20180709/models.rb', line 6363 def RemoveSwitch @RemoveSwitch end |
#RuleId ⇒ Object
6363 6364 6365 |
# File 'lib/v20180709/models.rb', line 6363 def RuleId @RuleId end |
#RuleName ⇒ Object
6363 6364 6365 |
# File 'lib/v20180709/models.rb', line 6363 def RuleName @RuleName end |
#SourceList ⇒ Object
6363 6364 6365 |
# File 'lib/v20180709/models.rb', line 6363 def SourceList @SourceList end |
#SourcePort ⇒ Object
6363 6364 6365 |
# File 'lib/v20180709/models.rb', line 6363 def SourcePort @SourcePort end |
#SourceType ⇒ Object
6363 6364 6365 |
# File 'lib/v20180709/models.rb', line 6363 def SourceType @SourceType end |
#VirtualPort ⇒ Object
6363 6364 6365 |
# File 'lib/v20180709/models.rb', line 6363 def VirtualPort @VirtualPort end |
Instance Method Details
#deserialize(params) ⇒ Object
6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 |
# File 'lib/v20180709/models.rb', line 6379 def deserialize(params) @Protocol = params['Protocol'] @VirtualPort = params['VirtualPort'] @SourcePort = params['SourcePort'] @SourceType = params['SourceType'] @KeepTime = params['KeepTime'] unless params['SourceList'].nil? @SourceList = [] params['SourceList'].each do |i| l4rulesource_tmp = L4RuleSource.new l4rulesource_tmp.deserialize(i) @SourceList << l4rulesource_tmp end end @LbType = params['LbType'] @KeepEnable = params['KeepEnable'] @RuleId = params['RuleId'] @RuleName = params['RuleName'] @RemoveSwitch = params['RemoveSwitch'] end |