Class: TencentCloud::Iecp::V20210914::PortConfig

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

Overview

端口配置

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(protocol = nil, port = nil, targetport = nil, nodeport = nil) ⇒ PortConfig

Returns a new instance of PortConfig.



6150
6151
6152
6153
6154
6155
# File 'lib/v20210914/models.rb', line 6150

def initialize(protocol=nil, port=nil, targetport=nil, nodeport=nil)
  @Protocol = protocol
  @Port = port
  @TargetPort = targetport
  @NodePort = nodeport
end

Instance Attribute Details

#NodePortObject

Parameters:

  • Protocol:

    协议类型(tcp|udp)

  • Port:

    源端口

  • TargetPort:

    目标端口

  • NodePort:

    节点端口



6148
6149
6150
# File 'lib/v20210914/models.rb', line 6148

def NodePort
  @NodePort
end

#PortObject

Parameters:

  • Protocol:

    协议类型(tcp|udp)

  • Port:

    源端口

  • TargetPort:

    目标端口

  • NodePort:

    节点端口



6148
6149
6150
# File 'lib/v20210914/models.rb', line 6148

def Port
  @Port
end

#ProtocolObject

Parameters:

  • Protocol:

    协议类型(tcp|udp)

  • Port:

    源端口

  • TargetPort:

    目标端口

  • NodePort:

    节点端口



6148
6149
6150
# File 'lib/v20210914/models.rb', line 6148

def Protocol
  @Protocol
end

#TargetPortObject

Parameters:

  • Protocol:

    协议类型(tcp|udp)

  • Port:

    源端口

  • TargetPort:

    目标端口

  • NodePort:

    节点端口



6148
6149
6150
# File 'lib/v20210914/models.rb', line 6148

def TargetPort
  @TargetPort
end

Instance Method Details

#deserialize(params) ⇒ Object



6157
6158
6159
6160
6161
6162
# File 'lib/v20210914/models.rb', line 6157

def deserialize(params)
  @Protocol = params['Protocol']
  @Port = params['Port']
  @TargetPort = params['TargetPort']
  @NodePort = params['NodePort']
end