public sealed class SecretEnvVar : IMessage<SecretEnvVar>, IEquatable<SecretEnvVar>, IDeepCloneable<SecretEnvVar>, IBufferMessage, IMessage
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. Secret value is not a part of the configuration. Secret
values are only fetched when a new clone starts.
Project identifier (preferrably project number but can also be the project
ID) of the project that contains the secret. If not set, it will be
populated with the function's project assuming that the secret exists in
the same project as of 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 clones start.
[[["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-03-21 UTC."],[[["This webpage details the `SecretEnvVar` class within the `Google.Cloud.Functions.V1` namespace, providing configuration for environment variables that fetch secret values from a secret manager."],["The `SecretEnvVar` class, part of version 1.3.0, inherits from `Object` and implements multiple interfaces, including `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`."],["The class has two constructors, a default one and another that takes another `SecretEnvVar` as a parameter for copying, allowing for duplication of the SecretEnvVar object."],["The `SecretEnvVar` class has four properties: `Key` for the environment variable name, `ProjectId` for the secret's project, `Secret` for the secret name, and `Version` for the secret's version."],["Several previous versions of the `SecretEnvVar` are linked, ranging from version 1.1.0 up to the latest, 2.7.0, showing the evolution of this class."]]],[]]