class Google::Apis::RunV1::EnvVar
EnvVar
represents an environment variable present in a Container
.
Attributes
Name of the environment variable. Must be a C_IDENTIFIER. Corresponds to the JSON property `name` @return [String]
(Optional) Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any route 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. Defaults to “”. Corresponds to the JSON property `value` @return [String]
EnvVarSource
represents a source for the value of an EnvVar
. Corresponds to the JSON property `valueFrom` @return [Google::Apis::RunV1::EnvVarSource]
Public Class Methods
# File lib/google/apis/run_v1/classes.rb, line 841 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/run_v1/classes.rb, line 846 def update!(**args) @name = args[:name] if args.key?(:name) @value = args[:value] if args.key?(:value) @value_from = args[:value_from] if args.key?(:value_from) end