public sealed class AddSecretVersionRequest : IMessage<AddSecretVersionRequest>, IEquatable<AddSecretVersionRequest>, IDeepCloneable<AddSecretVersionRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Secret Manager v1beta2 API class AddSecretVersionRequest.
Request message for
[SecretManagerService.AddSecretVersion][google.cloud.secretmanager.v1beta2.SecretManagerService.AddSecretVersion].
Required. The resource name of the
[Secret][google.cloud.secretmanager.v1beta2.Secret] to associate with the
[SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] in the
format projects/*/secrets/* or projects/*/locations/*/secrets/*.
[[["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 documentation is for the \u003ccode\u003eAddSecretVersionRequest\u003c/code\u003e class within the Google Cloud Secret Manager v1beta2 API, specifically version 1.0.0-beta02.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAddSecretVersionRequest\u003c/code\u003e class is a request message used for the \u003ccode\u003eSecretManagerService.AddSecretVersion\u003c/code\u003e method, and is designed to add a new version to a given secret.\u003c/p\u003e\n"],["\u003cp\u003eThis class inherits from \u003ccode\u003eobject\u003c/code\u003e and implements multiple interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of the \u003ccode\u003eAddSecretVersionRequest\u003c/code\u003e class include \u003ccode\u003eParent\u003c/code\u003e, which specifies the secret's resource name, and \u003ccode\u003ePayload\u003c/code\u003e, which is used to hold the data being added to the secret version.\u003c/p\u003e\n"],["\u003cp\u003eThere are 2 constructors for \u003ccode\u003eAddSecretVersionRequest\u003c/code\u003e, one default and another accepting another \u003ccode\u003eAddSecretVersionRequest\u003c/code\u003e as a parameter for duplication purposes.\u003c/p\u003e\n"]]],[],null,[]]