Class: TencentCloud::Cdb::V20170320::Outbound

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, desc = nil) ⇒ Outbound

Returns a new instance of Outbound.



12029
12030
12031
12032
12033
12034
12035
12036
12037
# File 'lib/v20170320/models.rb', line 12029

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

Instance Attribute Details

#ActionObject

Parameters:

  • Action:

    策略,ACCEPT 或者 DROP

  • CidrIp:

    目的 IP 或 IP 段,例如172.16.0.0/12

  • PortRange:

    端口或者端口范围

  • IpProtocol:

    网络协议,支持 UDP、TCP等

  • Dir:

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

  • AddressModule:

    地址模块

  • Desc:

    规则描述



12027
12028
12029
# File 'lib/v20170320/models.rb', line 12027

def Action
  @Action
end

#AddressModuleObject

Parameters:

  • Action:

    策略,ACCEPT 或者 DROP

  • CidrIp:

    目的 IP 或 IP 段,例如172.16.0.0/12

  • PortRange:

    端口或者端口范围

  • IpProtocol:

    网络协议,支持 UDP、TCP等

  • Dir:

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

  • AddressModule:

    地址模块

  • Desc:

    规则描述



12027
12028
12029
# File 'lib/v20170320/models.rb', line 12027

def AddressModule
  @AddressModule
end

#CidrIpObject

Parameters:

  • Action:

    策略,ACCEPT 或者 DROP

  • CidrIp:

    目的 IP 或 IP 段,例如172.16.0.0/12

  • PortRange:

    端口或者端口范围

  • IpProtocol:

    网络协议,支持 UDP、TCP等

  • Dir:

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

  • AddressModule:

    地址模块

  • Desc:

    规则描述



12027
12028
12029
# File 'lib/v20170320/models.rb', line 12027

def CidrIp
  @CidrIp
end

#DescObject

Parameters:

  • Action:

    策略,ACCEPT 或者 DROP

  • CidrIp:

    目的 IP 或 IP 段,例如172.16.0.0/12

  • PortRange:

    端口或者端口范围

  • IpProtocol:

    网络协议,支持 UDP、TCP等

  • Dir:

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

  • AddressModule:

    地址模块

  • Desc:

    规则描述



12027
12028
12029
# File 'lib/v20170320/models.rb', line 12027

def Desc
  @Desc
end

#DirObject

Parameters:

  • Action:

    策略,ACCEPT 或者 DROP

  • CidrIp:

    目的 IP 或 IP 段,例如172.16.0.0/12

  • PortRange:

    端口或者端口范围

  • IpProtocol:

    网络协议,支持 UDP、TCP等

  • Dir:

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

  • AddressModule:

    地址模块

  • Desc:

    规则描述



12027
12028
12029
# File 'lib/v20170320/models.rb', line 12027

def Dir
  @Dir
end

#IpProtocolObject

Parameters:

  • Action:

    策略,ACCEPT 或者 DROP

  • CidrIp:

    目的 IP 或 IP 段,例如172.16.0.0/12

  • PortRange:

    端口或者端口范围

  • IpProtocol:

    网络协议,支持 UDP、TCP等

  • Dir:

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

  • AddressModule:

    地址模块

  • Desc:

    规则描述



12027
12028
12029
# File 'lib/v20170320/models.rb', line 12027

def IpProtocol
  @IpProtocol
end

#PortRangeObject

Parameters:

  • Action:

    策略,ACCEPT 或者 DROP

  • CidrIp:

    目的 IP 或 IP 段,例如172.16.0.0/12

  • PortRange:

    端口或者端口范围

  • IpProtocol:

    网络协议,支持 UDP、TCP等

  • Dir:

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

  • AddressModule:

    地址模块

  • Desc:

    规则描述



12027
12028
12029
# File 'lib/v20170320/models.rb', line 12027

def PortRange
  @PortRange
end

Instance Method Details

#deserialize(params) ⇒ Object



12039
12040
12041
12042
12043
12044
12045
12046
12047
# File 'lib/v20170320/models.rb', line 12039

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