Google Cloud Batch V1 Client - Class Environment (1.2.2)

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
Name
Description
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
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
Type
Description

setVariables

A map of environment variable names to values.

Parameter
Name
Description
Returns
Type
Description
$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
Type
Description

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
Name
Description
Returns
Type
Description
$this

getEncryptedVariables

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

Returns
Type
Description

hasEncryptedVariables

clearEncryptedVariables

setEncryptedVariables

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

Parameter
Name
Description
Returns
Type
Description
$this
Create a Mobile Website
View Site in Mobile | Classic
Share by: