public sealed class AddSecretVersionRequest : IMessage<AddSecretVersionRequest>, IEquatable<AddSecretVersionRequest>, IDeepCloneable<AddSecretVersionRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Secret Manager v1beta1 API class AddSecretVersionRequest.
Request message for
[SecretManagerService.AddSecretVersion][google.cloud.secrets.v1beta1.SecretManagerService.AddSecretVersion].
Required. The resource name of the
[Secret][google.cloud.secrets.v1beta1.Secret] to associate with the
[SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] in the format
projects/*/secrets/*.
[[["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 \u003ccode\u003eAddSecretVersionRequest\u003c/code\u003e class is used to send requests to the Secret Manager API for adding a new version to a secret.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and inherits from the \u003ccode\u003eobject\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAddSecretVersionRequest\u003c/code\u003e requires two key properties to be set: \u003ccode\u003eParent\u003c/code\u003e, which specifies the secret's resource name, and \u003ccode\u003ePayload\u003c/code\u003e, which contains the secret data.\u003c/p\u003e\n"],["\u003cp\u003eThere are two constructors available, a default one, and one that takes another \u003ccode\u003eAddSecretVersionRequest\u003c/code\u003e instance as a parameter for copying.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation for the \u003ccode\u003eAddSecretVersionRequest\u003c/code\u003e class is available in multiple versions, including the latest 3.0.0-beta05 version, as well as older beta releases, all linked within the documentation.\u003c/p\u003e\n"]]],[],null,[]]