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"]],[["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 a request message for adding a new secret version within the Secret Manager v1beta2 API, with the latest version being 1.0.0-beta03.\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 class contains two constructors, one default and one that accepts another \u003ccode\u003eAddSecretVersionRequest\u003c/code\u003e object for copying purposes.\u003c/p\u003e\n"],["\u003cp\u003eIt includes properties such as \u003ccode\u003eParent\u003c/code\u003e, which is a string representing the resource name of the associated secret, \u003ccode\u003eParentAsSecretName\u003c/code\u003e, offering a \u003ccode\u003eSecretName\u003c/code\u003e-typed view of the parent, and \u003ccode\u003ePayload\u003c/code\u003e, which is a \u003ccode\u003eSecretPayload\u003c/code\u003e type containing the secret's data.\u003c/p\u003e\n"],["\u003cp\u003eThe class resides within the \u003ccode\u003eGoogle.Cloud.SecretManager.V1Beta2\u003c/code\u003e namespace and is found in the \u003ccode\u003eGoogle.Cloud.SecretManager.V1Beta2.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"]]],[],null,[]]