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].
Required. The resource name of the
[Secret][google.cloud.secretmanager.v1.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"]],[["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\u003eThis document provides reference documentation for the \u003ccode\u003eGetSecretRequest\u003c/code\u003e class within the Google Cloud Secret Manager v1 API, specifically for version 2.4.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGetSecretRequest\u003c/code\u003e class is used to request a secret from the Secret Manager service, implementing interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, and \u003ccode\u003eIDeepCloneable\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version available for the Secret Manager v1 API is 2.5.0, and the documentation outlines all versions going back to 1.3.0.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of \u003ccode\u003eGetSecretRequest\u003c/code\u003e include \u003ccode\u003eName\u003c/code\u003e, which specifies the secret's resource name, and \u003ccode\u003eSecretName\u003c/code\u003e, which offers a typed view over the \u003ccode\u003eName\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGetSecretRequest\u003c/code\u003e class includes constructors to create new instances, either as a default or by copying an existing \u003ccode\u003eGetSecretRequest\u003c/code\u003e object.\u003c/p\u003e\n"]]],[],null,[]]