public sealed class EnableSecretVersionRequest : IMessage<EnableSecretVersionRequest>, IEquatable<EnableSecretVersionRequest>, IDeepCloneable<EnableSecretVersionRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Secret Manager v1 API class EnableSecretVersionRequest.
Request message for [SecretManagerService.EnableSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.EnableSecretVersion].
Optional. Etag of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. The request succeeds if it matches
the etag of the currently stored secret version object. If the etag is
omitted, the request succeeds.
Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to enable in the format
projects/*/secrets/*/versions/*.
[[["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-07 UTC."],[[["\u003cp\u003eThis document provides reference information for the \u003ccode\u003eEnableSecretVersionRequest\u003c/code\u003e class within the Google Cloud Secret Manager v1 API, specifically version 2.2.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eEnableSecretVersionRequest\u003c/code\u003e class is used to construct a request for enabling a specific secret version, and it inherits from the \u003ccode\u003eobject\u003c/code\u003e class, while also implementing several interfaces like \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, and \u003ccode\u003eIDeepCloneable\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes properties like \u003ccode\u003eEtag\u003c/code\u003e for version matching and \u003ccode\u003eName\u003c/code\u003e to specify the secret version's resource name, and also provides a \u003ccode\u003eSecretVersionName\u003c/code\u003e property as a typed view over the Name property.\u003c/p\u003e\n"],["\u003cp\u003eConstructors are provided for creating an \u003ccode\u003eEnableSecretVersionRequest\u003c/code\u003e object, either as a default instance or by copying an existing \u003ccode\u003eEnableSecretVersionRequest\u003c/code\u003e object.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation details the required \u003ccode\u003eName\u003c/code\u003e property format for specifying a \u003ccode\u003eSecretVersion\u003c/code\u003e, \u003ccode\u003eprojects/*/secrets/*/versions/*\u003c/code\u003e, and also outlines that the optional \u003ccode\u003eEtag\u003c/code\u003e property allows for conditional operations to only succeed if it matches the etag of the currently stored secret version.\u003c/p\u003e\n"]]],[],null,[]]