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, with multiple previous versions listed, all the way back to version 1.0.0."],["`SecretManagerSecret` is a class that pairs a secret environment variable with a `SecretVersion` in Secret Manager, as indicated by it implementing `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage` interfaces."],["The class `SecretManagerSecret` has two constructors, one parameterless and one that takes another `SecretManagerSecret` instance as a parameter, allowing for object duplication."],["The class includes three key properties: `Env` (the environment variable name), `VersionName` (the resource name of the secret version), and `VersionNameAsSecretVersionName` (a typed view of the resource name)."]]],[]]