public sealed class Secret : IMessage<Secret>, IEquatable<Secret>, IDeepCloneable<Secret>, IBufferMessage, IMessage
A [Secret][google.cloud.secrets.v1beta1.Secret] is a logical secret whose value and versions can
be accessed.
A [Secret][google.cloud.secrets.v1beta1.Secret] is made up of zero or more [SecretVersions][google.cloud.secrets.v1beta1.SecretVersion] that
represent the secret data.
Label keys must be between 1 and 63 characters long, have a UTF-8 encoding
of maximum 128 bytes, and must conform to the following PCRE regular
expression: [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
Label values must be between 0 and 63 characters long, have a UTF-8
encoding of maximum 128 bytes, and must conform to the following PCRE
regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
No more than 64 labels can be assigned to a given resource.
[[["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\u003eSecret\u003c/code\u003e class in the \u003ccode\u003eGoogle.Cloud.SecretManager.V1Beta1\u003c/code\u003e namespace represents a logical secret with accessible value and versions.\u003c/p\u003e\n"],["\u003cp\u003eA \u003ccode\u003eSecret\u003c/code\u003e is composed of multiple \u003ccode\u003eSecretVersions\u003c/code\u003e that contain the actual secret data.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSecret\u003c/code\u003e 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\u003eKey properties of a \u003ccode\u003eSecret\u003c/code\u003e include \u003ccode\u003eCreateTime\u003c/code\u003e, \u003ccode\u003eLabels\u003c/code\u003e, \u003ccode\u003eName\u003c/code\u003e, \u003ccode\u003eReplication\u003c/code\u003e, and \u003ccode\u003eSecretName\u003c/code\u003e, which provide information about the secret's creation, metadata, resource name, replication policy, and a typed view over the resource name, respectively.\u003c/p\u003e\n"],["\u003cp\u003eThere are two constructors, one empty and one taking in a secret object, and the secret object has immutable replication policy that can't be changed after the object creation.\u003c/p\u003e\n"]]],[],null,[]]