Class: Google::Apis::RunV1::EnvVar
- Inherits:
-
Object
- Object
- Google::Apis::RunV1::EnvVar
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/run_v1/classes.rb,
lib/google/apis/run_v1/representations.rb,
lib/google/apis/run_v1/representations.rb
Overview
EnvVar represents an environment variable present in a Container.
Instance Attribute Summary collapse
-
#name ⇒ String
Required.
-
#value ⇒ String
Value of the environment variable.
-
#value_from ⇒ Google::Apis::RunV1::EnvVarSource
EnvVarSource represents a source for the value of an EnvVar.
Instance Method Summary collapse
-
#initialize(**args) ⇒ EnvVar
constructor
A new instance of EnvVar.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ EnvVar
Returns a new instance of EnvVar.
925 926 927 |
# File 'lib/google/apis/run_v1/classes.rb', line 925 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Required. Name of the environment variable. Must be a C_IDENTIFIER.
Corresponds to the JSON property name
912 913 914 |
# File 'lib/google/apis/run_v1/classes.rb', line 912 def name @name end |
#value ⇒ String
Value of the environment variable. Defaults to "". Variable references are not
supported in Cloud Run.
Corresponds to the JSON property value
918 919 920 |
# File 'lib/google/apis/run_v1/classes.rb', line 918 def value @value end |
#value_from ⇒ Google::Apis::RunV1::EnvVarSource
EnvVarSource represents a source for the value of an EnvVar.
Corresponds to the JSON property valueFrom
923 924 925 |
# File 'lib/google/apis/run_v1/classes.rb', line 923 def value_from @value_from end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
930 931 932 933 934 |
# File 'lib/google/apis/run_v1/classes.rb', line 930 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 |