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
-
#encrypted_variables ⇒ Google::Apis::BatchV1::KmsEnvMap
An encrypted JSON dictionary where the key/value pairs correspond to environment variable names and their values.
-
#secret_variables ⇒ Hash<String,String>
A map of environment variable names to Secret Manager secret names.
-
#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.
939 940 941 |
# File 'lib/google/apis/batch_v1/classes.rb', line 939 def initialize(**args) update!(**args) end |
Instance Attribute Details
#encrypted_variables ⇒ Google::Apis::BatchV1::KmsEnvMap
An encrypted JSON dictionary where the key/value pairs correspond to
environment variable names and their values.
Corresponds to the JSON property encryptedVariables
926 927 928 |
# File 'lib/google/apis/batch_v1/classes.rb', line 926 def encrypted_variables @encrypted_variables end |
#secret_variables ⇒ Hash<String,String>
A map of environment variable names to Secret Manager secret names. The VM
will access the named secrets to set the value of each environment variable.
Corresponds to the JSON property secretVariables
932 933 934 |
# File 'lib/google/apis/batch_v1/classes.rb', line 932 def secret_variables @secret_variables end |
#variables ⇒ Hash<String,String>
A map of environment variable names to values.
Corresponds to the JSON property variables
937 938 939 |
# File 'lib/google/apis/batch_v1/classes.rb', line 937 def variables @variables end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
944 945 946 947 948 |
# File 'lib/google/apis/batch_v1/classes.rb', line 944 def update!(**args) @encrypted_variables = args[:encrypted_variables] if args.key?(:encrypted_variables) @secret_variables = args[:secret_variables] if args.key?(:secret_variables) @variables = args[:variables] if args.key?(:variables) end |