Google Cloud Batch V1 Client - Class Environment (0.14.0)

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 \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ variables array|Google\Protobuf\Internal\MapField

A map of environment variable names to values.

↳ 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.

Returns
TypeDescription
Google\Protobuf\Internal\MapField

setVariables

A map of environment variable names to values.

Parameter
NameDescription
var array|Google\Protobuf\Internal\MapField
Returns
TypeDescription
$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.

Returns
TypeDescription
Google\Protobuf\Internal\MapField

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.

Parameter
NameDescription
var array|Google\Protobuf\Internal\MapField
Returns
TypeDescription
$this

getEncryptedVariables

An encrypted JSON dictionary where the key/value pairs correspond to environment variable names and their values.

Returns
TypeDescription
Google\Cloud\Batch\V1\Environment\KMSEnvMap|null

hasEncryptedVariables

clearEncryptedVariables

setEncryptedVariables

An encrypted JSON dictionary where the key/value pairs correspond to environment variable names and their values.

Parameter
NameDescription
var Google\Cloud\Batch\V1\Environment\KMSEnvMap
Returns
TypeDescription
$this