public sealed class SecretManagerCredential : IMessage<SecretManagerCredential>, IEquatable<SecretManagerCredential>, IDeepCloneable<SecretManagerCredential>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Data Loss Prevention v2 API class SecretManagerCredential.
A credential consisting of a username and password, where the password is
stored in a Secret Manager resource.
Note: Secret Manager charges
apply.
[[["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 documentation for the \u003ccode\u003eSecretManagerCredential\u003c/code\u003e class within the Google Cloud Data Loss Prevention (DLP) v2 API for .NET, with version 4.16.0 being the latest and version 4.10.0 being the current reference version.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSecretManagerCredential\u003c/code\u003e class represents credentials consisting of a username and a password that is securely stored within a Secret Manager resource, and implementing interfaces like IMessage, IEquatable, and IDeepCloneable.\u003c/p\u003e\n"],["\u003cp\u003eThe class offers two constructors, one default and one to create a new \u003ccode\u003eSecretManagerCredential\u003c/code\u003e object by copying another instance.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSecretManagerCredential\u003c/code\u003e class contains two properties, \u003ccode\u003ePasswordSecretVersionName\u003c/code\u003e, which stores the name of the secret manager resource containing the password, and \u003ccode\u003eUsername\u003c/code\u003e, for storing the user's username.\u003c/p\u003e\n"],["\u003cp\u003eThe document shows there are many previous versions of the \u003ccode\u003eSecretManagerCredential\u003c/code\u003e, all the way down to version 2.15.0.\u003c/p\u003e\n"]]],[],null,[]]