Class: TencentCloud::Tem::V20210701::PortMapping

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

Overview

服务端口映射

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(port = nil, targetport = nil, protocol = nil, servicename = nil) ⇒ PortMapping

Returns a new instance of PortMapping.



4068
4069
4070
4071
4072
4073
# File 'lib/v20210701/models.rb', line 4068

def initialize(port=nil, targetport=nil, protocol=nil, servicename=nil)
  @Port = port
  @TargetPort = targetport
  @Protocol = protocol
  @ServiceName = servicename
end

Instance Attribute Details

#PortObject

Parameters:

  • Port:

    端口

  • TargetPort:

    映射端口

  • Protocol:

    协议栈 TCP/UDP

  • ServiceName:

    k8s service名称



4066
4067
4068
# File 'lib/v20210701/models.rb', line 4066

def Port
  @Port
end

#ProtocolObject

Parameters:

  • Port:

    端口

  • TargetPort:

    映射端口

  • Protocol:

    协议栈 TCP/UDP

  • ServiceName:

    k8s service名称



4066
4067
4068
# File 'lib/v20210701/models.rb', line 4066

def Protocol
  @Protocol
end

#ServiceNameObject

Parameters:

  • Port:

    端口

  • TargetPort:

    映射端口

  • Protocol:

    协议栈 TCP/UDP

  • ServiceName:

    k8s service名称



4066
4067
4068
# File 'lib/v20210701/models.rb', line 4066

def ServiceName
  @ServiceName
end

#TargetPortObject

Parameters:

  • Port:

    端口

  • TargetPort:

    映射端口

  • Protocol:

    协议栈 TCP/UDP

  • ServiceName:

    k8s service名称



4066
4067
4068
# File 'lib/v20210701/models.rb', line 4066

def TargetPort
  @TargetPort
end

Instance Method Details

#deserialize(params) ⇒ Object



4075
4076
4077
4078
4079
4080
# File 'lib/v20210701/models.rb', line 4075

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