Batch v1 API - Class Environment (1.2.0)

public sealed class Environment : IMessage<Environment>, IEquatable<Environment>, IDeepCloneable<Environment>, IBufferMessage, IMessage

Reference documentation and code samples for the Batch v1 API class Environment.

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

Inheritance

Object > Environment

Namespace

Google.Cloud.Batch.V1

Assembly

Google.Cloud.Batch.V1.dll

Constructors

Environment()

public Environment()

Environment(Environment)

public Environment(Environment other)
Parameter
NameDescription
otherEnvironment

Properties

EncryptedVariables

public Environment.Types.KMSEnvMap EncryptedVariables { get; set; }

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

Property Value
TypeDescription
Environment.Types.KMSEnvMap

SecretVariables

public MapField<string, string> SecretVariables { get; }

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.

Property Value
TypeDescription
MapField<String, String>

Variables

public MapField<string, string> Variables { get; }

A map of environment variable names to values.

Property Value
TypeDescription
MapField<String, String>