Class: Google::Apis::MlV1::GoogleCloudMlV1ContainerPort
- Inherits:
-
Object
- Object
- Google::Apis::MlV1::GoogleCloudMlV1ContainerPort
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/ml_v1/classes.rb,
lib/google/apis/ml_v1/representations.rb,
lib/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
-
#container_port ⇒ Fixnum
Number of the port to expose on the container.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudMlV1ContainerPort
constructor
A new instance of GoogleCloudMlV1ContainerPort.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudMlV1ContainerPort
Returns a new instance of GoogleCloudMlV1ContainerPort.
817 818 819 |
# File 'lib/google/apis/ml_v1/classes.rb', line 817 def initialize(**args) update!(**args) end |
Instance Attribute Details
#container_port ⇒ Fixnum
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
815 816 817 |
# File 'lib/google/apis/ml_v1/classes.rb', line 815 def container_port @container_port end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
822 823 824 |
# File 'lib/google/apis/ml_v1/classes.rb', line 822 def update!(**args) @container_port = args[:container_port] if args.key?(:container_port) end |