Class: Google::Apis::BatchV1::Environment
- Inherits:
-
Object
- Object
- Google::Apis::BatchV1::Environment
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/batch_v1/classes.rb,
lib/google/apis/batch_v1/representations.rb,
lib/google/apis/batch_v1/representations.rb
Overview
An Environment describes a collection of environment variables to set when executing Tasks.
Instance Attribute Summary collapse
-
#variables ⇒ Hash<String,String>
A map of environment variable names to values.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Environment
constructor
A new instance of Environment.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Environment
Returns a new instance of Environment.
700 701 702 |
# File 'lib/google/apis/batch_v1/classes.rb', line 700 def initialize(**args) update!(**args) end |
Instance Attribute Details
#variables ⇒ Hash<String,String>
A map of environment variable names to values.
Corresponds to the JSON property variables
698 699 700 |
# File 'lib/google/apis/batch_v1/classes.rb', line 698 def variables @variables end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
705 706 707 |
# File 'lib/google/apis/batch_v1/classes.rb', line 705 def update!(**args) @variables = args[:variables] if args.key?(:variables) end |