Class: TencentCloud::Dayu::V20180709::NewL4RuleEntry

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20180709/models.rb

Overview

四层规则结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#IdObject



8522
8523
8524
# File 'lib/v20180709/models.rb', line 8522

def Id
  @Id
end

#IpObject



8522
8523
8524
# File 'lib/v20180709/models.rb', line 8522

def Ip
  @Ip
end

#KeepEnableObject



8522
8523
8524
# File 'lib/v20180709/models.rb', line 8522

def KeepEnable
  @KeepEnable
end

#KeepTimeObject



8522
8523
8524
# File 'lib/v20180709/models.rb', line 8522

def KeepTime
  @KeepTime
end

#LbTypeObject



8522
8523
8524
# File 'lib/v20180709/models.rb', line 8522

def LbType
  @LbType
end

#ModifyTimeObject



8522
8523
8524
# File 'lib/v20180709/models.rb', line 8522

def ModifyTime
  @ModifyTime
end

#ProtocolObject



8522
8523
8524
# File 'lib/v20180709/models.rb', line 8522

def Protocol
  @Protocol
end

#RegionObject



8522
8523
8524
# File 'lib/v20180709/models.rb', line 8522

def Region
  @Region
end

#RemoveSwitchObject



8522
8523
8524
# File 'lib/v20180709/models.rb', line 8522

def RemoveSwitch
  @RemoveSwitch
end

#RuleIdObject



8522
8523
8524
# File 'lib/v20180709/models.rb', line 8522

def RuleId
  @RuleId
end

#RuleNameObject



8522
8523
8524
# File 'lib/v20180709/models.rb', line 8522

def RuleName
  @RuleName
end

#SourceListObject



8522
8523
8524
# File 'lib/v20180709/models.rb', line 8522

def SourceList
  @SourceList
end

#SourcePortObject



8522
8523
8524
# File 'lib/v20180709/models.rb', line 8522

def SourcePort
  @SourcePort
end

#SourceTypeObject



8522
8523
8524
# File 'lib/v20180709/models.rb', line 8522

def SourceType
  @SourceType
end

#VirtualPortObject



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