class Google::Apis::MlV1::GoogleCloudMlV1ContainerPort

Represents a network port in a single container. This message is a subset of the [Kubernetes ContainerPort v1 core specification](kubernetes.io/ docs/reference/generated/kubernetes-api/v1.18/#containerport-v1-core).

Attributes

container_port[RW]

Number of the port to expose on the container. This must be a valid port number: 0 < PORT_NUMBER < 65536. Corresponds to the JSON property `containerPort` @return [Fixnum]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

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