Class: TencentCloud::Keewidb::V20220308::Outbound

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

Overview

安全组出站规则

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(action = nil, addressmodule = nil, cidrip = nil, desc = nil, ipprotocol = nil, portrange = nil, servicemodule = nil, id = nil) ⇒ Outbound

Returns a new instance of Outbound.



2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
# File 'lib/v20220308/models.rb', line 2743

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

Instance Attribute Details

#ActionObject

Parameters:

  • Action:

    策略,ACCEPT或者DROP。

  • AddressModule:

    地址组id代表的地址集合。

  • CidrIp:

    来源Ip或Ip段,例如192.168.0.0/16。

  • Desc:

    描述。

  • IpProtocol:

    网络协议,支持udp、tcp等。

  • PortRange:

    端口。

  • ServiceModule:

    服务组id代表的协议和端口集合。

  • Id:

    安全组id代表的地址集合。



2741
2742
2743
# File 'lib/v20220308/models.rb', line 2741

def Action
  @Action
end

#AddressModuleObject

Parameters:

  • Action:

    策略,ACCEPT或者DROP。

  • AddressModule:

    地址组id代表的地址集合。

  • CidrIp:

    来源Ip或Ip段,例如192.168.0.0/16。

  • Desc:

    描述。

  • IpProtocol:

    网络协议,支持udp、tcp等。

  • PortRange:

    端口。

  • ServiceModule:

    服务组id代表的协议和端口集合。

  • Id:

    安全组id代表的地址集合。



2741
2742
2743
# File 'lib/v20220308/models.rb', line 2741

def AddressModule
  @AddressModule
end

#CidrIpObject

Parameters:

  • Action:

    策略,ACCEPT或者DROP。

  • AddressModule:

    地址组id代表的地址集合。

  • CidrIp:

    来源Ip或Ip段,例如192.168.0.0/16。

  • Desc:

    描述。

  • IpProtocol:

    网络协议,支持udp、tcp等。

  • PortRange:

    端口。

  • ServiceModule:

    服务组id代表的协议和端口集合。

  • Id:

    安全组id代表的地址集合。



2741
2742
2743
# File 'lib/v20220308/models.rb', line 2741

def CidrIp
  @CidrIp
end

#DescObject

Parameters:

  • Action:

    策略,ACCEPT或者DROP。

  • AddressModule:

    地址组id代表的地址集合。

  • CidrIp:

    来源Ip或Ip段,例如192.168.0.0/16。

  • Desc:

    描述。

  • IpProtocol:

    网络协议,支持udp、tcp等。

  • PortRange:

    端口。

  • ServiceModule:

    服务组id代表的协议和端口集合。

  • Id:

    安全组id代表的地址集合。



2741
2742
2743
# File 'lib/v20220308/models.rb', line 2741

def Desc
  @Desc
end

#IdObject

Parameters:

  • Action:

    策略,ACCEPT或者DROP。

  • AddressModule:

    地址组id代表的地址集合。

  • CidrIp:

    来源Ip或Ip段,例如192.168.0.0/16。

  • Desc:

    描述。

  • IpProtocol:

    网络协议,支持udp、tcp等。

  • PortRange:

    端口。

  • ServiceModule:

    服务组id代表的协议和端口集合。

  • Id:

    安全组id代表的地址集合。



2741
2742
2743
# File 'lib/v20220308/models.rb', line 2741

def Id
  @Id
end

#IpProtocolObject

Parameters:

  • Action:

    策略,ACCEPT或者DROP。

  • AddressModule:

    地址组id代表的地址集合。

  • CidrIp:

    来源Ip或Ip段,例如192.168.0.0/16。

  • Desc:

    描述。

  • IpProtocol:

    网络协议,支持udp、tcp等。

  • PortRange:

    端口。

  • ServiceModule:

    服务组id代表的协议和端口集合。

  • Id:

    安全组id代表的地址集合。



2741
2742
2743
# File 'lib/v20220308/models.rb', line 2741

def IpProtocol
  @IpProtocol
end

#PortRangeObject

Parameters:

  • Action:

    策略,ACCEPT或者DROP。

  • AddressModule:

    地址组id代表的地址集合。

  • CidrIp:

    来源Ip或Ip段,例如192.168.0.0/16。

  • Desc:

    描述。

  • IpProtocol:

    网络协议,支持udp、tcp等。

  • PortRange:

    端口。

  • ServiceModule:

    服务组id代表的协议和端口集合。

  • Id:

    安全组id代表的地址集合。



2741
2742
2743
# File 'lib/v20220308/models.rb', line 2741

def PortRange
  @PortRange
end

#ServiceModuleObject

Parameters:

  • Action:

    策略,ACCEPT或者DROP。

  • AddressModule:

    地址组id代表的地址集合。

  • CidrIp:

    来源Ip或Ip段,例如192.168.0.0/16。

  • Desc:

    描述。

  • IpProtocol:

    网络协议,支持udp、tcp等。

  • PortRange:

    端口。

  • ServiceModule:

    服务组id代表的协议和端口集合。

  • Id:

    安全组id代表的地址集合。



2741
2742
2743
# File 'lib/v20220308/models.rb', line 2741

def ServiceModule
  @ServiceModule
end

Instance Method Details

#deserialize(params) ⇒ Object



2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
# File 'lib/v20220308/models.rb', line 2754

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