Class Environment (0.10.0)

Environment(mapping=None,*,ignore_unknown_fields=False,**kwargs)

An Environment describes a collection of environmentvariables to set when executing Tasks.

Attributes

NameDescription
variablesMutableMapping[str, str]
A map of environment variable names to values.
secret_variablesMutableMapping[str, str]
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_variablesgoogle.cloud.batch_v1.types.Environment.KMSEnvMap
An encrypted JSON dictionary where the key/value pairs correspond to environment variable names and their values.

Classes

KMSEnvMap

KMSEnvMap(mapping=None,*,ignore_unknown_fields=False,**kwargs)

SecretVariablesEntry

SecretVariablesEntry(mapping=None,*,ignore_unknown_fields=False,**kwargs)

The abstract base class for a message.

Parameters
NameDescription
kwargsdict

Keys and values corresponding to the fields of the message.

mappingUnion[dict,.Message]

A dictionary or message to be used to determine the values for this message.

ignore_unknown_fieldsOptional(bool)

If True, do not raise errors for unknown fields. Only applied ifmapping is a mapping type or there are keyword parameters.

VariablesEntry

VariablesEntry(mapping=None,*,ignore_unknown_fields=False,**kwargs)

The abstract base class for a message.

Parameters
NameDescription
kwargsdict

Keys and values corresponding to the fields of the message.

mappingUnion[dict,.Message]

A dictionary or message to be used to determine the values for this message.

ignore_unknown_fieldsOptional(bool)

If True, do not raise errors for unknown fields. Only applied ifmapping is a mapping type or there are keyword parameters.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-12-04 UTC.