Class: TencentCloud::Dayu::V20180709::NewL4RuleEntry
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Dayu::V20180709::NewL4RuleEntry
- Defined in:
- lib/v20180709/models.rb
Overview
四层规则结构体
Instance Attribute Summary collapse
- #Id ⇒ Object
- #Ip ⇒ Object
- #KeepEnable ⇒ Object
- #KeepTime ⇒ Object
- #LbType ⇒ Object
- #ModifyTime ⇒ Object
- #Protocol ⇒ Object
- #Region ⇒ 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, keeptime = nil, sourcelist = nil, lbtype = nil, keepenable = nil, sourcetype = nil, ruleid = nil, rulename = nil, removeswitch = nil, modifytime = nil, region = nil, ip = nil, id = nil) ⇒ NewL4RuleEntry
constructor
A new instance of NewL4RuleEntry.
Constructor Details
#initialize(protocol = nil, virtualport = nil, sourceport = nil, keeptime = nil, sourcelist = nil, lbtype = nil, keepenable = nil, sourcetype = nil, ruleid = nil, rulename = nil, removeswitch = nil, modifytime = nil, region = nil, ip = nil, id = nil) ⇒ NewL4RuleEntry
8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539 8540 |
# File 'lib/v20180709/models.rb', line 8524 def initialize(protocol=nil, virtualport=nil, sourceport=nil, keeptime=nil, sourcelist=nil, lbtype=nil, keepenable=nil, sourcetype=nil, ruleid=nil, rulename=nil, removeswitch=nil, modifytime=nil, region=nil, ip=nil, id=nil) @Protocol = protocol @VirtualPort = virtualport @SourcePort = sourceport @KeepTime = keeptime @SourceList = sourcelist @LbType = lbtype @KeepEnable = keepenable @SourceType = sourcetype @RuleId = ruleid @RuleName = rulename @RemoveSwitch = removeswitch @ModifyTime = modifytime @Region = region @Ip = ip @Id = id end |
Instance Attribute Details
#Id ⇒ Object
8522 8523 8524 |
# File 'lib/v20180709/models.rb', line 8522 def Id @Id end |
#Ip ⇒ Object
8522 8523 8524 |
# File 'lib/v20180709/models.rb', line 8522 def Ip @Ip end |
#KeepEnable ⇒ Object
8522 8523 8524 |
# File 'lib/v20180709/models.rb', line 8522 def KeepEnable @KeepEnable end |
#KeepTime ⇒ Object
8522 8523 8524 |
# File 'lib/v20180709/models.rb', line 8522 def KeepTime @KeepTime end |
#LbType ⇒ Object
8522 8523 8524 |
# File 'lib/v20180709/models.rb', line 8522 def LbType @LbType end |
#ModifyTime ⇒ Object
8522 8523 8524 |
# File 'lib/v20180709/models.rb', line 8522 def ModifyTime @ModifyTime end |
#Protocol ⇒ Object
8522 8523 8524 |
# File 'lib/v20180709/models.rb', line 8522 def Protocol @Protocol end |
#Region ⇒ Object
8522 8523 8524 |
# File 'lib/v20180709/models.rb', line 8522 def Region @Region end |
#RemoveSwitch ⇒ Object
8522 8523 8524 |
# File 'lib/v20180709/models.rb', line 8522 def RemoveSwitch @RemoveSwitch end |
#RuleId ⇒ Object
8522 8523 8524 |
# File 'lib/v20180709/models.rb', line 8522 def RuleId @RuleId end |
#RuleName ⇒ Object
8522 8523 8524 |
# File 'lib/v20180709/models.rb', line 8522 def RuleName @RuleName end |
#SourceList ⇒ Object
8522 8523 8524 |
# File 'lib/v20180709/models.rb', line 8522 def SourceList @SourceList end |
#SourcePort ⇒ Object
8522 8523 8524 |
# File 'lib/v20180709/models.rb', line 8522 def SourcePort @SourcePort end |
#SourceType ⇒ Object
8522 8523 8524 |
# File 'lib/v20180709/models.rb', line 8522 def SourceType @SourceType end |
#VirtualPort ⇒ Object
8522 8523 8524 |
# File 'lib/v20180709/models.rb', line 8522 def VirtualPort @VirtualPort end |
Instance Method Details
#deserialize(params) ⇒ Object
8542 8543 8544 8545 8546 8547 8548 8549 8550 8551 8552 8553 8554 8555 8556 8557 8558 8559 8560 8561 8562 8563 8564 8565 |
# File 'lib/v20180709/models.rb', line 8542 def deserialize(params) @Protocol = params['Protocol'] @VirtualPort = params['VirtualPort'] @SourcePort = params['SourcePort'] @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'] @SourceType = params['SourceType'] @RuleId = params['RuleId'] @RuleName = params['RuleName'] @RemoveSwitch = params['RemoveSwitch'] @ModifyTime = params['ModifyTime'] @Region = params['Region'] @Ip = params['Ip'] @Id = params['Id'] end |