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.
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.
Property Value
Type
Description
System.String
Secret
public string Secret { get; set; }
Name of the secret in secret manager (not the full resource name).
Property Value
Type
Description
System.String
Version
public string Version { get; set; }
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 outlines the `SecretEnvVar` class within the `Google.Cloud.Functions.V1` namespace, providing details on its purpose and usage in managing secret environment variables."],["The `SecretEnvVar` class is designed to fetch secret values from Secret Manager and expose them as environment variables, handling necessary configurations like the project ID, secret name, and version."],["This class, inheriting from `Object`, implements multiple interfaces including `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`, adding support for data handling and comparison."],["The document contains a list of available version, with `2.7.0` being the most recent version, with the version number leading to documentation for that version."],["The properties of the `SecretEnvVar` class include `Key`, `ProjectId`, `Secret`, and `Version`, each serving to configure how the environment variable connects to and retrieves the secret value."]]],[]]