Batch v1 API - Class Environment (2.9.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
EnvironmentTypesKMSEnvMap

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
MapFieldstringstring

Variables

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

A map of environment variable names to values.

Property Value
TypeDescription
MapFieldstringstring