class Google::Apis::RunV2::GoogleCloudRunV2ContainerPort

ContainerPort represents a network port in a single container.

Attributes

container_port[RW]

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

name[RW]

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

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/run_v2/classes.rb, line 258
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_v2/classes.rb, line 263
def update!(**args)
  @container_port = args[:container_port] if args.key?(:container_port)
  @name = args[:name] if args.key?(:name)
end