Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Port

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

Overview

Represents a network port in a container.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1Port

Returns a new instance of GoogleCloudAiplatformV1beta1Port.



20790
20791
20792
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 20790

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

Instance Attribute Details

#container_portFixnum

The number of the port to expose on the pod's IP address. Must be a valid port number, between 1 and 65535 inclusive. Corresponds to the JSON property containerPort

Returns:

  • (Fixnum)


20788
20789
20790
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 20788

def container_port
  @container_port
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



20795
20796
20797
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 20795

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