public sealed class GetSecretRequest : IMessage<GetSecretRequest>, IEquatable<GetSecretRequest>, IDeepCloneable<GetSecretRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Secret Manager v1 API class GetSecretRequest.
Request message for [SecretManagerService.GetSecret][google.cloud.secretmanager.v1.SecretManagerService.GetSecret].
[[["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 webpage provides reference documentation for the \u003ccode\u003eGetSecretRequest\u003c/code\u003e class within the Google Cloud Secret Manager v1 API, specifically for version 2.3.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGetSecretRequest\u003c/code\u003e class is used to construct request messages for the \u003ccode\u003eSecretManagerService.GetSecret\u003c/code\u003e method, enabling the retrieval of secret information.\u003c/p\u003e\n"],["\u003cp\u003eIt 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 base \u003ccode\u003eobject\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eThe class has two constructors: a default one and another that accepts a \u003ccode\u003eGetSecretRequest\u003c/code\u003e object as a parameter to create a copy, and includes properties such as \u003ccode\u003eName\u003c/code\u003e (string) and \u003ccode\u003eSecretName\u003c/code\u003e (SecretName) to manage the request's target secret resource.\u003c/p\u003e\n"],["\u003cp\u003eThe page also lists links to older versions of the \u003ccode\u003eGetSecretRequest\u003c/code\u003e class documentation, ranging from version 1.3.0 up to the most recent 2.5.0.\u003c/p\u003e\n"]]],[],null,[]]