Class: TencentCloud::Cdb::V20170320::Inbound

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

Overview

安全组入站规则

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(action = nil, cidrip = nil, portrange = nil, ipprotocol = nil, dir = nil, addressmodule = nil, id = nil, desc = nil) ⇒ Inbound

Returns a new instance of Inbound.



9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
# File 'lib/v20170320/models.rb', line 9104

def initialize(action=nil, cidrip=nil, portrange=nil, ipprotocol=nil, dir=nil, addressmodule=nil, id=nil, desc=nil)
  @Action = action
  @CidrIp = cidrip
  @PortRange = portrange
  @IpProtocol = ipprotocol
  @Dir = dir
  @AddressModule = addressmodule
  @Id = id
  @Desc = desc
end

Instance Attribute Details

#ActionObject

Parameters:

  • Action:

    策略,ACCEPT 或者 DROP

  • CidrIp:

    来源 IP 或 IP 段,例如192.168.0.0/16

  • PortRange:

    端口

  • IpProtocol:

    网络协议,支持 UDP、TCP 等

  • Dir:

    规则限定的方向,进站规则为 INPUT

  • AddressModule:

    地址模块

  • Id:

    规则ID,嵌套安全组的规则ID

  • Desc:

    规则描述



9102
9103
9104
# File 'lib/v20170320/models.rb', line 9102

def Action
  @Action
end

#AddressModuleObject

Parameters:

  • Action:

    策略,ACCEPT 或者 DROP

  • CidrIp:

    来源 IP 或 IP 段,例如192.168.0.0/16

  • PortRange:

    端口

  • IpProtocol:

    网络协议,支持 UDP、TCP 等

  • Dir:

    规则限定的方向,进站规则为 INPUT

  • AddressModule:

    地址模块

  • Id:

    规则ID,嵌套安全组的规则ID

  • Desc:

    规则描述



9102
9103
9104
# File 'lib/v20170320/models.rb', line 9102

def AddressModule
  @AddressModule
end

#CidrIpObject

Parameters:

  • Action:

    策略,ACCEPT 或者 DROP

  • CidrIp:

    来源 IP 或 IP 段,例如192.168.0.0/16

  • PortRange:

    端口

  • IpProtocol:

    网络协议,支持 UDP、TCP 等

  • Dir:

    规则限定的方向,进站规则为 INPUT

  • AddressModule:

    地址模块

  • Id:

    规则ID,嵌套安全组的规则ID

  • Desc:

    规则描述



9102
9103
9104
# File 'lib/v20170320/models.rb', line 9102

def CidrIp
  @CidrIp
end

#DescObject

Parameters:

  • Action:

    策略,ACCEPT 或者 DROP

  • CidrIp:

    来源 IP 或 IP 段,例如192.168.0.0/16

  • PortRange:

    端口

  • IpProtocol:

    网络协议,支持 UDP、TCP 等

  • Dir:

    规则限定的方向,进站规则为 INPUT

  • AddressModule:

    地址模块

  • Id:

    规则ID,嵌套安全组的规则ID

  • Desc:

    规则描述



9102
9103
9104
# File 'lib/v20170320/models.rb', line 9102

def Desc
  @Desc
end

#DirObject

Parameters:

  • Action:

    策略,ACCEPT 或者 DROP

  • CidrIp:

    来源 IP 或 IP 段,例如192.168.0.0/16

  • PortRange:

    端口

  • IpProtocol:

    网络协议,支持 UDP、TCP 等

  • Dir:

    规则限定的方向,进站规则为 INPUT

  • AddressModule:

    地址模块

  • Id:

    规则ID,嵌套安全组的规则ID

  • Desc:

    规则描述



9102
9103
9104
# File 'lib/v20170320/models.rb', line 9102

def Dir
  @Dir
end

#IdObject

Parameters:

  • Action:

    策略,ACCEPT 或者 DROP

  • CidrIp:

    来源 IP 或 IP 段,例如192.168.0.0/16

  • PortRange:

    端口

  • IpProtocol:

    网络协议,支持 UDP、TCP 等

  • Dir:

    规则限定的方向,进站规则为 INPUT

  • AddressModule:

    地址模块

  • Id:

    规则ID,嵌套安全组的规则ID

  • Desc:

    规则描述



9102
9103
9104
# File 'lib/v20170320/models.rb', line 9102

def Id
  @Id
end

#IpProtocolObject

Parameters:

  • Action:

    策略,ACCEPT 或者 DROP

  • CidrIp:

    来源 IP 或 IP 段,例如192.168.0.0/16

  • PortRange:

    端口

  • IpProtocol:

    网络协议,支持 UDP、TCP 等

  • Dir:

    规则限定的方向,进站规则为 INPUT

  • AddressModule:

    地址模块

  • Id:

    规则ID,嵌套安全组的规则ID

  • Desc:

    规则描述



9102
9103
9104
# File 'lib/v20170320/models.rb', line 9102

def IpProtocol
  @IpProtocol
end

#PortRangeObject

Parameters:

  • Action:

    策略,ACCEPT 或者 DROP

  • CidrIp:

    来源 IP 或 IP 段,例如192.168.0.0/16

  • PortRange:

    端口

  • IpProtocol:

    网络协议,支持 UDP、TCP 等

  • Dir:

    规则限定的方向,进站规则为 INPUT

  • AddressModule:

    地址模块

  • Id:

    规则ID,嵌套安全组的规则ID

  • Desc:

    规则描述



9102
9103
9104
# File 'lib/v20170320/models.rb', line 9102

def PortRange
  @PortRange
end

Instance Method Details

#deserialize(params) ⇒ Object



9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
# File 'lib/v20170320/models.rb', line 9115

def deserialize(params)
  @Action = params['Action']
  @CidrIp = params['CidrIp']
  @PortRange = params['PortRange']
  @IpProtocol = params['IpProtocol']
  @Dir = params['Dir']
  @AddressModule = params['AddressModule']
  @Id = params['Id']
  @Desc = params['Desc']
end