public sealed class DestroySecretVersionRequest : IMessage<DestroySecretVersionRequest>, IEquatable<DestroySecretVersionRequest>, IDeepCloneable<DestroySecretVersionRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Secret Manager v1 API class DestroySecretVersionRequest.
Request message for [SecretManagerService.DestroySecretVersion][google.cloud.secretmanager.v1.SecretManagerService.DestroySecretVersion].
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 destroy 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\u003eDestroySecretVersionRequest\u003c/code\u003e class within the Google Cloud Secret Manager v1 API, specifically for version 2.1.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eDestroySecretVersionRequest\u003c/code\u003e is used to request the destruction of a specific secret version and it implements interfaces like \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, and \u003ccode\u003eIDeepCloneable\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eDestroySecretVersionRequest\u003c/code\u003e class has two constructors, a default one and another which accepts a \u003ccode\u003eDestroySecretVersionRequest\u003c/code\u003e object, and has properties such as \u003ccode\u003eEtag\u003c/code\u003e, \u003ccode\u003eName\u003c/code\u003e, and \u003ccode\u003eSecretVersionName\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eName\u003c/code\u003e property is required and specifies the resource name of the secret version to be destroyed, using a format like \u003ccode\u003eprojects/*/secrets/*/versions/*\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThis page lists all the versions of the DestroySecretVersionRequest class, from version 1.3.0 to the latest version, 2.5.0, providing links to the documentation for each.\u003c/p\u003e\n"]]],[],null,[]]