Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EnvVar

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

Overview

Represents an environment variable present in a Container or Python Module.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1EnvVar

Returns a new instance of GoogleCloudAiplatformV1EnvVar.



5683
5684
5685
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 5683

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

Instance Attribute Details

#nameString

Required. Name of the environment variable. Must be a valid C identifier. Corresponds to the JSON property name

Returns:

  • (String)


5671
5672
5673
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 5671

def name
  @name
end

#valueString

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

Returns:

  • (String)


5681
5682
5683
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 5681

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5688
5689
5690
5691
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 5688

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