Class: Google::Apis::BatchV1::AgentEnvironment
- Inherits:
-
Object
- Object
- Google::Apis::BatchV1::AgentEnvironment
- 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
AgentEnvironment is the Environment representation between Agent and CLH communication. The environment is used in both task level and agent level.
Instance Attribute Summary collapse
-
#encrypted_variables ⇒ Google::Apis::BatchV1::AgentKmsEnvMap
AgentKMSEnvMap contains the encrypted key/value pair to be used in the environment on the Agent side.
-
#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) ⇒ AgentEnvironment
constructor
A new instance of AgentEnvironment.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AgentEnvironment
Returns a new instance of AgentEnvironment.
149 150 151 |
# File 'lib/google/apis/batch_v1/classes.rb', line 149 def initialize(**args) update!(**args) end |
Instance Attribute Details
#encrypted_variables ⇒ Google::Apis::BatchV1::AgentKmsEnvMap
AgentKMSEnvMap contains the encrypted key/value pair to be used in the
environment on the Agent side.
Corresponds to the JSON property encryptedVariables
136 137 138 |
# File 'lib/google/apis/batch_v1/classes.rb', line 136 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
142 143 144 |
# File 'lib/google/apis/batch_v1/classes.rb', line 142 def secret_variables @secret_variables end |
#variables ⇒ Hash<String,String>
A map of environment variable names to values.
Corresponds to the JSON property variables
147 148 149 |
# File 'lib/google/apis/batch_v1/classes.rb', line 147 def variables @variables end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
154 155 156 157 158 |
# File 'lib/google/apis/batch_v1/classes.rb', line 154 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 |