public sealed class SecretEnvVar : IMessage<SecretEnvVar>, IEquatable<SecretEnvVar>, IDeepCloneable<SecretEnvVar>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Functions v2beta API class SecretEnvVar.
Configuration for a secret environment variable. It has the information
necessary to fetch the secret value from secret manager and expose it as an
environment variable.
Project identifier (preferably project number but can also be the
project ID) of the project that contains the secret. If not set, it is
assumed that the secret is in the same project as the function.
Version of the secret (version number or the string 'latest'). It is
recommended to use a numeric version for secret environment variables as
any updates to the secret value is not reflected until new instances
start.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["This document provides reference documentation for the `SecretEnvVar` class within the Cloud Functions v2beta API, specifically version 1.0.0-beta06."],["The `SecretEnvVar` class configures a secret environment variable, allowing the retrieval of secret values from the secret manager and their exposure as environment variables."],["`SecretEnvVar` includes properties for specifying the environment variable's name (`Key`), the project ID containing the secret (`ProjectId`), the secret's name (`Secret`), and the version of the secret to use (`Version`)."],["The `SecretEnvVar` class inherits from the `object` class and implements multiple interfaces including `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`."],["The `SecretEnvVar` class has two constructors, one default constructor that takes no parameters and one that takes another `SecretEnvVar` as a parameter."]]],[]]