class Google::Apis::RunV1::ContainerPort

ContainerPort represents a network port in a single container.

Attributes

container_port[RW]

(Optional) Port number the container listens on. This must be a valid port number, 0 < x < 65536. Corresponds to the JSON property `containerPort` @return [Fixnum]

name[RW]

(Optional) If specified, used to specify which protocol to use. Allowed values are “http1” and “h2c”. Corresponds to the JSON property `name` @return [String]

protocol[RW]

(Optional) Protocol for port. Must be “TCP”. Defaults to “TCP”. Corresponds to the JSON property `protocol` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/run_v1/classes.rb, line 637
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/run_v1/classes.rb, line 642
def update!(**args)
  @container_port = args[:container_port] if args.key?(:container_port)
  @name = args[:name] if args.key?(:name)
  @protocol = args[:protocol] if args.key?(:protocol)
end