public sealed class GetSecretRequest : IMessage<GetSecretRequest>, IEquatable<GetSecretRequest>, IDeepCloneable<GetSecretRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Secret Manager v1beta2 API class GetSecretRequest.
Request message for
[SecretManagerService.GetSecret][google.cloud.secretmanager.v1beta2.SecretManagerService.GetSecret].
Required. The resource name of the
[Secret][google.cloud.secretmanager.v1beta2.Secret], 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\u003eThe \u003ccode\u003eGetSecretRequest\u003c/code\u003e class is part of the Secret Manager v1beta2 API, specifically used to request a secret via \u003ccode\u003eSecretManagerService.GetSecret\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThis class 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, providing functionalities such as deep cloning and equality comparison.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGetSecretRequest\u003c/code\u003e class has two constructors: a default constructor and one that accepts another \u003ccode\u003eGetSecretRequest\u003c/code\u003e object for initialization.\u003c/p\u003e\n"],["\u003cp\u003eIt contains properties such as \u003ccode\u003eName\u003c/code\u003e, which is a required string representing the resource name of the secret, and \u003ccode\u003eSecretName\u003c/code\u003e, which provides a typed view over the \u003ccode\u003eName\u003c/code\u003e property.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGetSecretRequest\u003c/code\u003e class inherits from \u003ccode\u003eobject\u003c/code\u003e and includes methods like \u003ccode\u003eGetHashCode\u003c/code\u003e, \u003ccode\u003eGetType\u003c/code\u003e, and \u003ccode\u003eToString\u003c/code\u003e, and its namespace is \u003ccode\u003eGoogle.Cloud.SecretManager.V1Beta2\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]