Cloud Run V2 API - Class Google::Cloud::Run::V2::ContainerPort (v0.3.0)

Reference documentation and code samples for the Cloud Run V2 API class Google::Cloud::Run::V2::ContainerPort.

ContainerPort represents a network port in a single container.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#container_port

def container_port() -> ::Integer
Returns
  • (::Integer) — Port number the container listens on. This must be a valid TCP port number, 0 < container_port < 65536.

#container_port=

def container_port=(value) -> ::Integer
Parameter
  • value (::Integer) — Port number the container listens on. This must be a valid TCP port number, 0 < container_port < 65536.
Returns
  • (::Integer) — Port number the container listens on. This must be a valid TCP port number, 0 < container_port < 65536.

#name

def name() -> ::String
Returns
  • (::String) — If specified, used to specify which protocol to use. Allowed values are "http1" and "h2c".

#name=

def name=(value) -> ::String
Parameter
  • value (::String) — If specified, used to specify which protocol to use. Allowed values are "http1" and "h2c".
Returns
  • (::String) — If specified, used to specify which protocol to use. Allowed values are "http1" and "h2c".