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"]],[["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-19 UTC."],[[["\u003cp\u003eThis document provides reference information for the \u003ccode\u003eSecretManagerSecret\u003c/code\u003e class within the Google Cloud Build v1 API, specifically version 2.11.0, and outlines the class's purpose of pairing secret environment variables with Secret Manager versions.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSecretManagerSecret\u003c/code\u003e class inherits from \u003ccode\u003eobject\u003c/code\u003e and implements interfaces like \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, indicating its integration with the .NET framework and Google Protobuf.\u003c/p\u003e\n"],["\u003cp\u003eThe class has two constructors: a default one and another that takes a \u003ccode\u003eSecretManagerSecret\u003c/code\u003e object, likely for cloning purposes.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSecretManagerSecret\u003c/code\u003e includes properties such as \u003ccode\u003eEnv\u003c/code\u003e, which stores the name of the environment variable, and \u003ccode\u003eVersionName\u003c/code\u003e, which holds the resource name of the SecretVersion.\u003c/p\u003e\n"],["\u003cp\u003eThe document lists all the other versions available of \u003ccode\u003eSecretManagerSecret\u003c/code\u003e, from version \u003ccode\u003e2.15.0\u003c/code\u003e (latest) all the way down to version \u003ccode\u003e1.0.0\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]