An Environment describes a collection of environment
variables to set when executing Tasks.
Attributes
Name
Description
variables
MutableMapping[str, str]
A map of environment variable names to
values.
secret_variables
MutableMapping[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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Class Environment (0.17.36)\n\nVersion latestkeyboard_arrow_down\n\n- [0.17.36 (latest)](/python/docs/reference/batch/latest/google.cloud.batch_v1.types.Environment)\n- [0.17.35](/python/docs/reference/batch/0.17.35/google.cloud.batch_v1.types.Environment)\n- [0.16.0](/python/docs/reference/batch/0.16.0/google.cloud.batch_v1.types.Environment)\n- [0.15.0](/python/docs/reference/batch/0.15.0/google.cloud.batch_v1.types.Environment)\n- [0.14.0](/python/docs/reference/batch/0.14.0/google.cloud.batch_v1.types.Environment)\n- [0.13.0](/python/docs/reference/batch/0.13.0/google.cloud.batch_v1.types.Environment)\n- [0.12.0](/python/docs/reference/batch/0.12.0/google.cloud.batch_v1.types.Environment)\n- [0.11.0](/python/docs/reference/batch/0.11.0/google.cloud.batch_v1.types.Environment)\n- [0.10.0](/python/docs/reference/batch/0.10.0/google.cloud.batch_v1.types.Environment)\n- [0.9.0](/python/docs/reference/batch/0.9.0/google.cloud.batch_v1.types.Environment)\n- [0.8.1](/python/docs/reference/batch/0.8.1/google.cloud.batch_v1.types.Environment)\n- [0.7.0](/python/docs/reference/batch/0.7.0/google.cloud.batch_v1.types.Environment)\n- [0.6.0](/python/docs/reference/batch/0.6.0/google.cloud.batch_v1.types.Environment)\n- [0.5.0](/python/docs/reference/batch/0.5.0/google.cloud.batch_v1.types.Environment)\n- [0.4.1](/python/docs/reference/batch/0.4.1/google.cloud.batch_v1.types.Environment)\n- [0.3.2](/python/docs/reference/batch/0.3.2/google.cloud.batch_v1.types.Environment)\n- [0.2.0](/python/docs/reference/batch/0.2.0/google.cloud.batch_v1.types.Environment)\n- [0.1.2](/python/docs/reference/batch/0.1.2/google.cloud.batch_v1.types.Environment) \n\n Environment(mapping=None, *, ignore_unknown_fields=False, **kwargs)\n\nAn Environment describes a collection of environment\nvariables to set when executing Tasks.\n\nClasses\n-------\n\n### KMSEnvMap\n\n KMSEnvMap(mapping=None, *, ignore_unknown_fields=False, **kwargs)\n\n### SecretVariablesEntry\n\n SecretVariablesEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)\n\nThe abstract base class for a message.\n\n### VariablesEntry\n\n VariablesEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)\n\nThe abstract base class for a message."]]