Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EnvVar
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EnvVar
- 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 an environment variable present in a Container or Python Module.
Instance Attribute Summary collapse
-
#name ⇒ String
Required.
-
#value ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1EnvVar
constructor
A new instance of GoogleCloudAiplatformV1beta1EnvVar.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1EnvVar
Returns a new instance of GoogleCloudAiplatformV1beta1EnvVar.
6353 6354 6355 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 6353 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Required. Name of the environment variable. Must be a valid C identifier.
Corresponds to the JSON property name
6341 6342 6343 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 6341 def name @name end |
#value ⇒ String
Required. Variables that reference a $(VAR_NAME) are expanded using the
previous defined environment variables in the container and any service
environment variables. If a variable cannot be resolved, the reference in the
input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a
double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
regardless of whether the variable exists or not.
Corresponds to the JSON property value
6351 6352 6353 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 6351 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6358 6359 6360 6361 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 6358 def update!(**args) @name = args[:name] if args.key?(:name) @value = args[:value] if args.key?(:value) end |