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.



4085
4086
4087
4088
4089
4090
# File 'lib/v20210701/models.rb', line 4085

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名称



4083
4084
4085
# File 'lib/v20210701/models.rb', line 4083

def Port
  @Port
end

#ProtocolObject

Parameters:

  • Port:

    端口

  • TargetPort:

    映射端口

  • Protocol:

    协议栈 TCP/UDP

  • ServiceName:

    k8s service名称



4083
4084
4085
# File 'lib/v20210701/models.rb', line 4083

def Protocol
  @Protocol
end

#ServiceNameObject

Parameters:

  • Port:

    端口

  • TargetPort:

    映射端口

  • Protocol:

    协议栈 TCP/UDP

  • ServiceName:

    k8s service名称



4083
4084
4085
# File 'lib/v20210701/models.rb', line 4083

def ServiceName
  @ServiceName
end

#TargetPortObject

Parameters:

  • Port:

    端口

  • TargetPort:

    映射端口

  • Protocol:

    协议栈 TCP/UDP

  • ServiceName:

    k8s service名称



4083
4084
4085
# File 'lib/v20210701/models.rb', line 4083

def TargetPort
  @TargetPort
end

Instance Method Details

#deserialize(params) ⇒ Object



4092
4093
4094
4095
4096
4097
# File 'lib/v20210701/models.rb', line 4092

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