public sealed class SecretEnvVar : IMessage<SecretEnvVar>, IEquatable<SecretEnvVar>, IDeepCloneable<SecretEnvVar>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Functions v1 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 (preferrably project number but can also be the project
ID) of the project that contains the secret. If not set, it is
populated with the function's project, assuming that the secret exists 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"]],[["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 document provides reference documentation for the `SecretEnvVar` class within the Google Cloud Functions v1 API, specifically version 2.2.0."],["The `SecretEnvVar` class is used to configure a secret environment variable by fetching its value from Secret Manager and making it available as an environment variable."],["This class implements interfaces such as `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`, as well as inheriting from the base `object` class."],["Key properties of the `SecretEnvVar` include `Key` (environment variable name), `ProjectId` (project containing the secret), `Secret` (secret name in Secret Manager), and `Version` (secret version)."],["The documentation covers the `SecretEnvVar` constructor options and shows the available versions of the API from 1.1.0 to 2.7.0, including their respective documentation links."]]],[]]