Class: Google::Apis::MlV1::GoogleCloudMlV1ContainerPort

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/ml_v1/classes.rb,
generated/google/apis/ml_v1/representations.rb,
generated/google/apis/ml_v1/representations.rb

Overview

Represents a network port in a single container. This message is a subset of the Kubernetes ContainerPort v1 core specification.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudMlV1ContainerPort

Returns a new instance of GoogleCloudMlV1ContainerPort.



819
820
821
# File 'generated/google/apis/ml_v1/classes.rb', line 819

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#container_portFixnum

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

Returns:

  • (Fixnum)


817
818
819
# File 'generated/google/apis/ml_v1/classes.rb', line 817

def container_port
  @container_port
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



824
825
826
# File 'generated/google/apis/ml_v1/classes.rb', line 824

def update!(**args)
  @container_port = args[:container_port] if args.key?(:container_port)
end