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/* or
projects/*/locations/*/secrets/*/versions/*.
[[["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-08-07 UTC."],[[["\u003cp\u003eThe latest version of the \u003ccode\u003eEnableSecretVersionRequest\u003c/code\u003e class is 2.5.0, as indicated by the version list provided, and it is a part of the Google Cloud Secret Manager v1 API.\u003c/p\u003e\n"],["\u003cp\u003eThis class is used to send a request to enable a specific version of a secret within the Secret Manager service.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eEnableSecretVersionRequest\u003c/code\u003e class requires the resource name of the secret version to be enabled, as well as having the optional ability to compare an etag for consistency.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eEnableSecretVersionRequest\u003c/code\u003e class inherits from \u003ccode\u003eobject\u003c/code\u003e and implements \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e interfaces, allowing it to use other features of the .NET framework.\u003c/p\u003e\n"],["\u003cp\u003eThere are two constructors available, one empty constructor and one that takes another \u003ccode\u003eEnableSecretVersionRequest\u003c/code\u003e as an argument, and it also contains the \u003ccode\u003eEtag\u003c/code\u003e, \u003ccode\u003eName\u003c/code\u003e, and \u003ccode\u003eSecretVersionName\u003c/code\u003e properties.\u003c/p\u003e\n"]]],[],null,[]]