Class: Google::Apis::BatchV1::Environment

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Environment

Returns a new instance of Environment.



737
738
739
# File 'lib/google/apis/batch_v1/classes.rb', line 737

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

Instance Attribute Details

#variablesHash<String,String>

A map of environment variable names to values. Corresponds to the JSON property variables

Returns:

  • (Hash<String,String>)


735
736
737
# File 'lib/google/apis/batch_v1/classes.rb', line 735

def variables
  @variables
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



742
743
744
# File 'lib/google/apis/batch_v1/classes.rb', line 742

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