public sealed class AddSecretVersionRequest : IMessage<AddSecretVersionRequest>, IEquatable<AddSecretVersionRequest>, IDeepCloneable<AddSecretVersionRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Secret Manager v1 API class AddSecretVersionRequest.
Request message for
[SecretManagerService.AddSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.AddSecretVersion].
Required. The resource name of the
[Secret][google.cloud.secretmanager.v1.Secret] to associate with the
[SecretVersion][google.cloud.secretmanager.v1.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 document provides reference documentation for the \u003ccode\u003eAddSecretVersionRequest\u003c/code\u003e class within the Google Cloud Secret Manager v1 API, specifically version 2.4.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAddSecretVersionRequest\u003c/code\u003e class is used to send requests for adding a new secret version via the \u003ccode\u003eSecretManagerService.AddSecretVersion\u003c/code\u003e method, as stated in the documentation.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAddSecretVersionRequest\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.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAddSecretVersionRequest\u003c/code\u003e class has properties such as \u003ccode\u003eParent\u003c/code\u003e (which is the secret resource name), \u003ccode\u003eParentAsSecretName\u003c/code\u003e (which is a \u003ccode\u003eSecretName\u003c/code\u003e-typed view of the \u003ccode\u003eParent\u003c/code\u003e), and \u003ccode\u003ePayload\u003c/code\u003e (the secret data to be added).\u003c/p\u003e\n"],["\u003cp\u003eThis version of the \u003ccode\u003eAddSecretVersionRequest\u003c/code\u003e class offers access to versions dating back to version 1.3.0 of the same class.\u003c/p\u003e\n"]]],[],null,[]]