Reference documentation and code samples for the Google Cloud Batch V1 Client class Environment.
An Environment describes a collection of environment variables to set when executing Tasks.
Generated from protobuf message google.cloud.batch.v1.Environment
Namespace
Google \ Cloud \ Batch \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ variables
↳ secret_variables
array| Google\Protobuf\Internal\MapField
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.
↳ encrypted_variables
Google\Cloud\Batch\V1\Environment\KMSEnvMap
An encrypted JSON dictionary where the key/value pairs correspond to environment variable names and their values.
getVariables
A map of environment variable names to values.
setVariables
A map of environment variable names to values.
$this
getSecretVariables
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.
setSecretVariables
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.
$this
getEncryptedVariables
An encrypted JSON dictionary where the key/value pairs correspond to environment variable names and their values.
hasEncryptedVariables
clearEncryptedVariables
setEncryptedVariables
An encrypted JSON dictionary where the key/value pairs correspond to environment variable names and their values.
$this