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"]],[["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."],[[["\u003cp\u003eThis webpage details the \u003ccode\u003eSecretEnvVar\u003c/code\u003e class within the \u003ccode\u003eGoogle.Cloud.Functions.V1\u003c/code\u003e namespace, providing configuration for environment variables that fetch secret values from a secret manager.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSecretEnvVar\u003c/code\u003e class, part of version 1.3.0, inherits from \u003ccode\u003eObject\u003c/code\u003e and implements multiple interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class has two constructors, a default one and another that takes another \u003ccode\u003eSecretEnvVar\u003c/code\u003e as a parameter for copying, allowing for duplication of the SecretEnvVar object.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSecretEnvVar\u003c/code\u003e class has four properties: \u003ccode\u003eKey\u003c/code\u003e for the environment variable name, \u003ccode\u003eProjectId\u003c/code\u003e for the secret's project, \u003ccode\u003eSecret\u003c/code\u003e for the secret name, and \u003ccode\u003eVersion\u003c/code\u003e for the secret's version.\u003c/p\u003e\n"],["\u003cp\u003eSeveral previous versions of the \u003ccode\u003eSecretEnvVar\u003c/code\u003e are linked, ranging from version 1.1.0 up to the latest, 2.7.0, showing the evolution of this class.\u003c/p\u003e\n"]]],[],null,[]]