Class: TencentCloud::Dayu::V20180709::L4RuleEntry

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

Overview

L4规则

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#KeepEnableObject

Parameters:

  • Protocol:

    转发协议,取值[TCP, UDP]

  • VirtualPort:

    转发端口

  • SourcePort:

    源站端口

  • SourceType:
  • KeepTime:

    会话保持时间,单位秒

  • SourceList:

    回源列表

  • LbType:

    负载均衡方式,取值[1(加权轮询),2(源IP hash)]

  • KeepEnable:
  • RuleId:

    规则ID

  • RuleName:

    规则描述

  • RemoveSwitch:


6363
6364
6365
# File 'lib/v20180709/models.rb', line 6363

def KeepEnable
  @KeepEnable
end

#KeepTimeObject

Parameters:

  • Protocol:

    转发协议,取值[TCP, UDP]

  • VirtualPort:

    转发端口

  • SourcePort:

    源站端口

  • SourceType:
  • KeepTime:

    会话保持时间,单位秒

  • SourceList:

    回源列表

  • LbType:

    负载均衡方式,取值[1(加权轮询),2(源IP hash)]

  • KeepEnable:
  • RuleId:

    规则ID

  • RuleName:

    规则描述

  • RemoveSwitch:


6363
6364
6365
# File 'lib/v20180709/models.rb', line 6363

def KeepTime
  @KeepTime
end

#LbTypeObject

Parameters:

  • Protocol:

    转发协议,取值[TCP, UDP]

  • VirtualPort:

    转发端口

  • SourcePort:

    源站端口

  • SourceType:
  • KeepTime:

    会话保持时间,单位秒

  • SourceList:

    回源列表

  • LbType:

    负载均衡方式,取值[1(加权轮询),2(源IP hash)]

  • KeepEnable:
  • RuleId:

    规则ID

  • RuleName:

    规则描述

  • RemoveSwitch:


6363
6364
6365
# File 'lib/v20180709/models.rb', line 6363

def LbType
  @LbType
end

#ProtocolObject

Parameters:

  • Protocol:

    转发协议,取值[TCP, UDP]

  • VirtualPort:

    转发端口

  • SourcePort:

    源站端口

  • SourceType:
  • KeepTime:

    会话保持时间,单位秒

  • SourceList:

    回源列表

  • LbType:

    负载均衡方式,取值[1(加权轮询),2(源IP hash)]

  • KeepEnable:
  • RuleId:

    规则ID

  • RuleName:

    规则描述

  • RemoveSwitch:


6363
6364
6365
# File 'lib/v20180709/models.rb', line 6363

def Protocol
  @Protocol
end

#RemoveSwitchObject

Parameters:

  • Protocol:

    转发协议,取值[TCP, UDP]

  • VirtualPort:

    转发端口

  • SourcePort:

    源站端口

  • SourceType:
  • KeepTime:

    会话保持时间,单位秒

  • SourceList:

    回源列表

  • LbType:

    负载均衡方式,取值[1(加权轮询),2(源IP hash)]

  • KeepEnable:
  • RuleId:

    规则ID

  • RuleName:

    规则描述

  • RemoveSwitch:


6363
6364
6365
# File 'lib/v20180709/models.rb', line 6363

def RemoveSwitch
  @RemoveSwitch
end

#RuleIdObject

Parameters:

  • Protocol:

    转发协议,取值[TCP, UDP]

  • VirtualPort:

    转发端口

  • SourcePort:

    源站端口

  • SourceType:
  • KeepTime:

    会话保持时间,单位秒

  • SourceList:

    回源列表

  • LbType:

    负载均衡方式,取值[1(加权轮询),2(源IP hash)]

  • KeepEnable:
  • RuleId:

    规则ID

  • RuleName:

    规则描述

  • RemoveSwitch:


6363
6364
6365
# File 'lib/v20180709/models.rb', line 6363

def RuleId
  @RuleId
end

#RuleNameObject

Parameters:

  • Protocol:

    转发协议,取值[TCP, UDP]

  • VirtualPort:

    转发端口

  • SourcePort:

    源站端口

  • SourceType:
  • KeepTime:

    会话保持时间,单位秒

  • SourceList:

    回源列表

  • LbType:

    负载均衡方式,取值[1(加权轮询),2(源IP hash)]

  • KeepEnable:
  • RuleId:

    规则ID

  • RuleName:

    规则描述

  • RemoveSwitch:


6363
6364
6365
# File 'lib/v20180709/models.rb', line 6363

def RuleName
  @RuleName
end

#SourceListObject

Parameters:

  • Protocol:

    转发协议,取值[TCP, UDP]

  • VirtualPort:

    转发端口

  • SourcePort:

    源站端口

  • SourceType:
  • KeepTime:

    会话保持时间,单位秒

  • SourceList:

    回源列表

  • LbType:

    负载均衡方式,取值[1(加权轮询),2(源IP hash)]

  • KeepEnable:
  • RuleId:

    规则ID

  • RuleName:

    规则描述

  • RemoveSwitch:


6363
6364
6365
# File 'lib/v20180709/models.rb', line 6363

def SourceList
  @SourceList
end

#SourcePortObject

Parameters:

  • Protocol:

    转发协议,取值[TCP, UDP]

  • VirtualPort:

    转发端口

  • SourcePort:

    源站端口

  • SourceType:
  • KeepTime:

    会话保持时间,单位秒

  • SourceList:

    回源列表

  • LbType:

    负载均衡方式,取值[1(加权轮询),2(源IP hash)]

  • KeepEnable:
  • RuleId:

    规则ID

  • RuleName:

    规则描述

  • RemoveSwitch:


6363
6364
6365
# File 'lib/v20180709/models.rb', line 6363

def SourcePort
  @SourcePort
end

#SourceTypeObject

Parameters:

  • Protocol:

    转发协议,取值[TCP, UDP]

  • VirtualPort:

    转发端口

  • SourcePort:

    源站端口

  • SourceType:
  • KeepTime:

    会话保持时间,单位秒

  • SourceList:

    回源列表

  • LbType:

    负载均衡方式,取值[1(加权轮询),2(源IP hash)]

  • KeepEnable:
  • RuleId:

    规则ID

  • RuleName:

    规则描述

  • RemoveSwitch:


6363
6364
6365
# File 'lib/v20180709/models.rb', line 6363

def SourceType
  @SourceType
end

#VirtualPortObject

Parameters:

  • Protocol:

    转发协议,取值[TCP, UDP]

  • VirtualPort:

    转发端口

  • SourcePort:

    源站端口

  • SourceType:
  • KeepTime:

    会话保持时间,单位秒

  • SourceList:

    回源列表

  • LbType:

    负载均衡方式,取值[1(加权轮询),2(源IP hash)]

  • KeepEnable:
  • RuleId:

    规则ID

  • RuleName:

    规则描述

  • RemoveSwitch:


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