public sealed class SecretEnvVar : IMessage<SecretEnvVar>, IEquatable<SecretEnvVar>, IDeepCloneable<SecretEnvVar>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Functions v2 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."],[[["\u003cp\u003eThis webpage provides reference documentation for the \u003ccode\u003eSecretEnvVar\u003c/code\u003e class within the Google Cloud Functions v2 API for .NET, specifically version 1.5.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSecretEnvVar\u003c/code\u003e class is used to configure secret environment variables, allowing you to fetch secret values from Secret Manager and expose them as environment variables within a function.\u003c/p\u003e\n"],["\u003cp\u003eThe class \u003ccode\u003eSecretEnvVar\u003c/code\u003e inherits from the \u003ccode\u003eobject\u003c/code\u003e class and implements interfaces such as \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\u003eKey properties of \u003ccode\u003eSecretEnvVar\u003c/code\u003e include \u003ccode\u003eKey\u003c/code\u003e (environment variable name), \u003ccode\u003eProjectId\u003c/code\u003e (project containing the secret), \u003ccode\u003eSecret\u003c/code\u003e (secret name in Secret Manager), and \u003ccode\u003eVersion\u003c/code\u003e (secret version).\u003c/p\u003e\n"],["\u003cp\u003eThere are multiple previous versions of \u003ccode\u003eSecretEnvVar\u003c/code\u003e available, ranging from version 1.0.0 to the latest 1.7.0.\u003c/p\u003e\n"]]],[],null,[]]