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 page provides reference documentation for the \u003ccode\u003eSecretManagerCredential\u003c/code\u003e class within the Google Cloud Data Loss Prevention (DLP) v2 API for .NET, detailing its functionality for managing credentials with passwords stored in Secret Manager.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSecretManagerCredential\u003c/code\u003e class, as part of the \u003ccode\u003eGoogle.Cloud.Dlp.V2\u003c/code\u003e namespace, implements multiple interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of this class is available in version 4.16.0, and documentation is provided for versions all the way back to version 2.15.0.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes properties for \u003ccode\u003ePasswordSecretVersionName\u003c/code\u003e and \u003ccode\u003eUsername\u003c/code\u003e, representing the Secret Manager resource path for the password and the associated username, respectively.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSecretManagerCredential\u003c/code\u003e class can be constructed using a default constructor, or by using a constructor that creates a copy of an existing instance.\u003c/p\u003e\n"]]],[],null,[]]