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

Returns a new instance of 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

Parameters:

  • Protocol:

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

  • VirtualPort:

    转发端口

  • SourcePort:

    源站端口

  • KeepTime:

    会话保持时间,单位秒

  • SourceList:

    回源列表

  • LbType:

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

  • KeepEnable:

    会话保持开关,取值[0(会话保持关闭),1(会话保持开启)];

  • SourceType:

    回源方式,取值[1(域名回源),2(IP回源)]

  • RuleId:

    规则ID

  • RuleName:

    规则描述

  • RemoveSwitch:

    移除水印状态,取值[0(关闭),1(开启)]

  • ModifyTime:

    规则修改时间

  • Region:

    对应地区信息

  • Ip:

    绑定资源IP信息

  • Id:

    绑定资源Id信息



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

def Id
  @Id
end

#IpObject

Parameters:

  • Protocol:

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

  • VirtualPort:

    转发端口

  • SourcePort:

    源站端口

  • KeepTime:

    会话保持时间,单位秒

  • SourceList:

    回源列表

  • LbType:

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

  • KeepEnable:

    会话保持开关,取值[0(会话保持关闭),1(会话保持开启)];

  • SourceType:

    回源方式,取值[1(域名回源),2(IP回源)]

  • RuleId:

    规则ID

  • RuleName:

    规则描述

  • RemoveSwitch:

    移除水印状态,取值[0(关闭),1(开启)]

  • ModifyTime:

    规则修改时间

  • Region:

    对应地区信息

  • Ip:

    绑定资源IP信息

  • Id:

    绑定资源Id信息



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

def Ip
  @Ip
end

#KeepEnableObject

Parameters:

  • Protocol:

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

  • VirtualPort:

    转发端口

  • SourcePort:

    源站端口

  • KeepTime:

    会话保持时间,单位秒

  • SourceList:

    回源列表

  • LbType:

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

  • KeepEnable:

    会话保持开关,取值[0(会话保持关闭),1(会话保持开启)];

  • SourceType:

    回源方式,取值[1(域名回源),2(IP回源)]

  • RuleId:

    规则ID

  • RuleName:

    规则描述

  • RemoveSwitch:

    移除水印状态,取值[0(关闭),1(开启)]

  • ModifyTime:

    规则修改时间

  • Region:

    对应地区信息

  • Ip:

    绑定资源IP信息

  • Id:

    绑定资源Id信息



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

def KeepEnable
  @KeepEnable
end

#KeepTimeObject

Parameters:

  • Protocol:

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

  • VirtualPort:

    转发端口

  • SourcePort:

    源站端口

  • KeepTime:

    会话保持时间,单位秒

  • SourceList:

    回源列表

  • LbType:

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

  • KeepEnable:

    会话保持开关,取值[0(会话保持关闭),1(会话保持开启)];

  • SourceType:

    回源方式,取值[1(域名回源),2(IP回源)]

  • RuleId:

    规则ID

  • RuleName:

    规则描述

  • RemoveSwitch:

    移除水印状态,取值[0(关闭),1(开启)]

  • ModifyTime:

    规则修改时间

  • Region:

    对应地区信息

  • Ip:

    绑定资源IP信息

  • Id:

    绑定资源Id信息



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

def KeepTime
  @KeepTime
end

#LbTypeObject

Parameters:

  • Protocol:

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

  • VirtualPort:

    转发端口

  • SourcePort:

    源站端口

  • KeepTime:

    会话保持时间,单位秒

  • SourceList:

    回源列表

  • LbType:

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

  • KeepEnable:

    会话保持开关,取值[0(会话保持关闭),1(会话保持开启)];

  • SourceType:

    回源方式,取值[1(域名回源),2(IP回源)]

  • RuleId:

    规则ID

  • RuleName:

    规则描述

  • RemoveSwitch:

    移除水印状态,取值[0(关闭),1(开启)]

  • ModifyTime:

    规则修改时间

  • Region:

    对应地区信息

  • Ip:

    绑定资源IP信息

  • Id:

    绑定资源Id信息



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

def LbType
  @LbType
end

#ModifyTimeObject

Parameters:

  • Protocol:

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

  • VirtualPort:

    转发端口

  • SourcePort:

    源站端口

  • KeepTime:

    会话保持时间,单位秒

  • SourceList:

    回源列表

  • LbType:

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

  • KeepEnable:

    会话保持开关,取值[0(会话保持关闭),1(会话保持开启)];

  • SourceType:

    回源方式,取值[1(域名回源),2(IP回源)]

  • RuleId:

    规则ID

  • RuleName:

    规则描述

  • RemoveSwitch:

    移除水印状态,取值[0(关闭),1(开启)]

  • ModifyTime:

    规则修改时间

  • Region:

    对应地区信息

  • Ip:

    绑定资源IP信息

  • Id:

    绑定资源Id信息



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

def ModifyTime
  @ModifyTime
end

#ProtocolObject

Parameters:

  • Protocol:

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

  • VirtualPort:

    转发端口

  • SourcePort:

    源站端口

  • KeepTime:

    会话保持时间,单位秒

  • SourceList:

    回源列表

  • LbType:

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

  • KeepEnable:

    会话保持开关,取值[0(会话保持关闭),1(会话保持开启)];

  • SourceType:

    回源方式,取值[1(域名回源),2(IP回源)]

  • RuleId:

    规则ID

  • RuleName:

    规则描述

  • RemoveSwitch:

    移除水印状态,取值[0(关闭),1(开启)]

  • ModifyTime:

    规则修改时间

  • Region:

    对应地区信息

  • Ip:

    绑定资源IP信息

  • Id:

    绑定资源Id信息



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

def Protocol
  @Protocol
end

#RegionObject

Parameters:

  • Protocol:

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

  • VirtualPort:

    转发端口

  • SourcePort:

    源站端口

  • KeepTime:

    会话保持时间,单位秒

  • SourceList:

    回源列表

  • LbType:

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

  • KeepEnable:

    会话保持开关,取值[0(会话保持关闭),1(会话保持开启)];

  • SourceType:

    回源方式,取值[1(域名回源),2(IP回源)]

  • RuleId:

    规则ID

  • RuleName:

    规则描述

  • RemoveSwitch:

    移除水印状态,取值[0(关闭),1(开启)]

  • ModifyTime:

    规则修改时间

  • Region:

    对应地区信息

  • Ip:

    绑定资源IP信息

  • Id:

    绑定资源Id信息



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

def Region
  @Region
end

#RemoveSwitchObject

Parameters:

  • Protocol:

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

  • VirtualPort:

    转发端口

  • SourcePort:

    源站端口

  • KeepTime:

    会话保持时间,单位秒

  • SourceList:

    回源列表

  • LbType:

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

  • KeepEnable:

    会话保持开关,取值[0(会话保持关闭),1(会话保持开启)];

  • SourceType:

    回源方式,取值[1(域名回源),2(IP回源)]

  • RuleId:

    规则ID

  • RuleName:

    规则描述

  • RemoveSwitch:

    移除水印状态,取值[0(关闭),1(开启)]

  • ModifyTime:

    规则修改时间

  • Region:

    对应地区信息

  • Ip:

    绑定资源IP信息

  • Id:

    绑定资源Id信息



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

def RemoveSwitch
  @RemoveSwitch
end

#RuleIdObject

Parameters:

  • Protocol:

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

  • VirtualPort:

    转发端口

  • SourcePort:

    源站端口

  • KeepTime:

    会话保持时间,单位秒

  • SourceList:

    回源列表

  • LbType:

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

  • KeepEnable:

    会话保持开关,取值[0(会话保持关闭),1(会话保持开启)];

  • SourceType:

    回源方式,取值[1(域名回源),2(IP回源)]

  • RuleId:

    规则ID

  • RuleName:

    规则描述

  • RemoveSwitch:

    移除水印状态,取值[0(关闭),1(开启)]

  • ModifyTime:

    规则修改时间

  • Region:

    对应地区信息

  • Ip:

    绑定资源IP信息

  • Id:

    绑定资源Id信息



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

def RuleId
  @RuleId
end

#RuleNameObject

Parameters:

  • Protocol:

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

  • VirtualPort:

    转发端口

  • SourcePort:

    源站端口

  • KeepTime:

    会话保持时间,单位秒

  • SourceList:

    回源列表

  • LbType:

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

  • KeepEnable:

    会话保持开关,取值[0(会话保持关闭),1(会话保持开启)];

  • SourceType:

    回源方式,取值[1(域名回源),2(IP回源)]

  • RuleId:

    规则ID

  • RuleName:

    规则描述

  • RemoveSwitch:

    移除水印状态,取值[0(关闭),1(开启)]

  • ModifyTime:

    规则修改时间

  • Region:

    对应地区信息

  • Ip:

    绑定资源IP信息

  • Id:

    绑定资源Id信息



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

def RuleName
  @RuleName
end

#SourceListObject

Parameters:

  • Protocol:

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

  • VirtualPort:

    转发端口

  • SourcePort:

    源站端口

  • KeepTime:

    会话保持时间,单位秒

  • SourceList:

    回源列表

  • LbType:

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

  • KeepEnable:

    会话保持开关,取值[0(会话保持关闭),1(会话保持开启)];

  • SourceType:

    回源方式,取值[1(域名回源),2(IP回源)]

  • RuleId:

    规则ID

  • RuleName:

    规则描述

  • RemoveSwitch:

    移除水印状态,取值[0(关闭),1(开启)]

  • ModifyTime:

    规则修改时间

  • Region:

    对应地区信息

  • Ip:

    绑定资源IP信息

  • Id:

    绑定资源Id信息



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

def SourceList
  @SourceList
end

#SourcePortObject

Parameters:

  • Protocol:

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

  • VirtualPort:

    转发端口

  • SourcePort:

    源站端口

  • KeepTime:

    会话保持时间,单位秒

  • SourceList:

    回源列表

  • LbType:

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

  • KeepEnable:

    会话保持开关,取值[0(会话保持关闭),1(会话保持开启)];

  • SourceType:

    回源方式,取值[1(域名回源),2(IP回源)]

  • RuleId:

    规则ID

  • RuleName:

    规则描述

  • RemoveSwitch:

    移除水印状态,取值[0(关闭),1(开启)]

  • ModifyTime:

    规则修改时间

  • Region:

    对应地区信息

  • Ip:

    绑定资源IP信息

  • Id:

    绑定资源Id信息



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

def SourcePort
  @SourcePort
end

#SourceTypeObject

Parameters:

  • Protocol:

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

  • VirtualPort:

    转发端口

  • SourcePort:

    源站端口

  • KeepTime:

    会话保持时间,单位秒

  • SourceList:

    回源列表

  • LbType:

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

  • KeepEnable:

    会话保持开关,取值[0(会话保持关闭),1(会话保持开启)];

  • SourceType:

    回源方式,取值[1(域名回源),2(IP回源)]

  • RuleId:

    规则ID

  • RuleName:

    规则描述

  • RemoveSwitch:

    移除水印状态,取值[0(关闭),1(开启)]

  • ModifyTime:

    规则修改时间

  • Region:

    对应地区信息

  • Ip:

    绑定资源IP信息

  • Id:

    绑定资源Id信息



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

def SourceType
  @SourceType
end

#VirtualPortObject

Parameters:

  • Protocol:

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

  • VirtualPort:

    转发端口

  • SourcePort:

    源站端口

  • KeepTime:

    会话保持时间,单位秒

  • SourceList:

    回源列表

  • LbType:

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

  • KeepEnable:

    会话保持开关,取值[0(会话保持关闭),1(会话保持开启)];

  • SourceType:

    回源方式,取值[1(域名回源),2(IP回源)]

  • RuleId:

    规则ID

  • RuleName:

    规则描述

  • RemoveSwitch:

    移除水印状态,取值[0(关闭),1(开启)]

  • ModifyTime:

    规则修改时间

  • Region:

    对应地区信息

  • Ip:

    绑定资源IP信息

  • Id:

    绑定资源Id信息



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