Class: TencentCloud::Postgres::V20170312::PolicyRule

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

Overview

安全组规则信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(action = nil, cidrip = nil, portrange = nil, ipprotocol = nil, description = nil) ⇒ PolicyRule

Returns a new instance of PolicyRule.



6738
6739
6740
6741
6742
6743
6744
# File 'lib/v20170312/models.rb', line 6738

def initialize(action=nil, cidrip=nil, portrange=nil, ipprotocol=nil, description=nil)
  @Action = action
  @CidrIp = cidrip
  @PortRange = portrange
  @IpProtocol = ipprotocol
  @Description = description
end

Instance Attribute Details

#ActionObject

Parameters:

  • Action:

    策略,ACCEPT 或者 DROP

  • CidrIp:

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

  • PortRange:

    端口

  • IpProtocol:

    网络协议,支持 UDP、TCP 等

  • Description:

    规则描述



6736
6737
6738
# File 'lib/v20170312/models.rb', line 6736

def Action
  @Action
end

#CidrIpObject

Parameters:

  • Action:

    策略,ACCEPT 或者 DROP

  • CidrIp:

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

  • PortRange:

    端口

  • IpProtocol:

    网络协议,支持 UDP、TCP 等

  • Description:

    规则描述



6736
6737
6738
# File 'lib/v20170312/models.rb', line 6736

def CidrIp
  @CidrIp
end

#DescriptionObject

Parameters:

  • Action:

    策略,ACCEPT 或者 DROP

  • CidrIp:

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

  • PortRange:

    端口

  • IpProtocol:

    网络协议,支持 UDP、TCP 等

  • Description:

    规则描述



6736
6737
6738
# File 'lib/v20170312/models.rb', line 6736

def Description
  @Description
end

#IpProtocolObject

Parameters:

  • Action:

    策略,ACCEPT 或者 DROP

  • CidrIp:

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

  • PortRange:

    端口

  • IpProtocol:

    网络协议,支持 UDP、TCP 等

  • Description:

    规则描述



6736
6737
6738
# File 'lib/v20170312/models.rb', line 6736

def IpProtocol
  @IpProtocol
end

#PortRangeObject

Parameters:

  • Action:

    策略,ACCEPT 或者 DROP

  • CidrIp:

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

  • PortRange:

    端口

  • IpProtocol:

    网络协议,支持 UDP、TCP 等

  • Description:

    规则描述



6736
6737
6738
# File 'lib/v20170312/models.rb', line 6736

def PortRange
  @PortRange
end

Instance Method Details

#deserialize(params) ⇒ Object



6746
6747
6748
6749
6750
6751
6752
# File 'lib/v20170312/models.rb', line 6746

def deserialize(params)
  @Action = params['Action']
  @CidrIp = params['CidrIp']
  @PortRange = params['PortRange']
  @IpProtocol = params['IpProtocol']
  @Description = params['Description']
end