public sealed class SecretManagerSecret : IMessage<SecretManagerSecret>, IEquatable<SecretManagerSecret>, IDeepCloneable<SecretManagerSecret>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Build v1 API class SecretManagerSecret.
Pairs a secret environment variable with a SecretVersion in Secret Manager.
Environment variable name to associate with the secret.
Secret environment variables must be unique across all of a build's
secrets, and must be used by at least one build step.
[[["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."],[[["The latest version of the `SecretManagerSecret` class in the Cloud Build v1 API is 2.15.0, while this page specifically details version 2.3.0."],["This document provides reference documentation and code samples for the `SecretManagerSecret` class, which is used to pair a secret environment variable with a `SecretVersion` in Secret Manager."],["The `SecretManagerSecret` class implements interfaces such as `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`."],["The `SecretManagerSecret` class has three properties: `Env` for the environment variable name, `VersionName` for the SecretVersion resource name, and `VersionNameAsSecretVersionName` for a typed view of the `VersionName`."],["The class has two constructors, one default, and one that takes in a `SecretManagerSecret` as a parameter."]]],[]]