Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SandboxEnvironmentTemplateNetworkPort
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SandboxEnvironmentTemplateNetworkPort
- 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
-
#port ⇒ Fixnum
Optional.
-
#protocol ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1SandboxEnvironmentTemplateNetworkPort
constructor
A new instance of GoogleCloudAiplatformV1beta1SandboxEnvironmentTemplateNetworkPort.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1SandboxEnvironmentTemplateNetworkPort
Returns a new instance of GoogleCloudAiplatformV1beta1SandboxEnvironmentTemplateNetworkPort.
42197 42198 42199 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 42197 def initialize(**args) update!(**args) end |
Instance Attribute Details
#port ⇒ Fixnum
Optional. Port number to expose. This must be a valid port number, between 1
and 65535.
Corresponds to the JSON property port
42190 42191 42192 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 42190 def port @port end |
#protocol ⇒ String
Optional. Protocol for port. Defaults to TCP if not specified.
Corresponds to the JSON property protocol
42195 42196 42197 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 42195 def protocol @protocol end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
42202 42203 42204 42205 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 42202 def update!(**args) @port = args[:port] if args.key?(:port) @protocol = args[:protocol] if args.key?(:protocol) end |