Class: Google::Cloud::Run::V2::ContainerPort

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/run/v2/k8s.min.rb

Overview

ContainerPort represents a network port in a single container.

Instance Attribute Summary collapse

Instance Attribute Details

#container_port::Integer

Returns 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.



173
174
175
176
# File 'proto_docs/google/cloud/run/v2/k8s.min.rb', line 173

class ContainerPort
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#name::String

Returns 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".



173
174
175
176
# File 'proto_docs/google/cloud/run/v2/k8s.min.rb', line 173

class ContainerPort
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end