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"]],[["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 latest version of the \u003ccode\u003eGetSecretRequest\u003c/code\u003e class for the Secret Manager v1 API is 2.5.0, with multiple previous versions available, ranging down to 1.3.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGetSecretRequest\u003c/code\u003e is a request message used for the \u003ccode\u003eSecretManagerService.GetSecret\u003c/code\u003e method in the Secret Manager v1 API.\u003c/p\u003e\n"],["\u003cp\u003eThe class \u003ccode\u003eGetSecretRequest\u003c/code\u003e implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable<GetSecretRequest>\u003c/code\u003e, \u003ccode\u003eIDeepCloneable<GetSecretRequest>\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGetSecretRequest\u003c/code\u003e class has a \u003ccode\u003eName\u003c/code\u003e property which is a required resource name string representing the Secret, and a read only \u003ccode\u003eSecretName\u003c/code\u003e property that is a typed view of the \u003ccode\u003eName\u003c/code\u003e resource.\u003c/p\u003e\n"]]],[],null,[]]