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\u003eThe latest version of the Google Cloud Data Loss Prevention v2 API SecretManagerCredential class is 4.16.0, with multiple previous versions available, ranging down to 2.15.0.\u003c/p\u003e\n"],["\u003cp\u003eThe SecretManagerCredential class is used for managing credentials with passwords stored in Google Cloud Secret Manager, which has applicable pricing.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements interfaces such as IMessage, IEquatable, IDeepCloneable, and IBufferMessage, ensuring it is compatible with relevant Google Cloud functionalities.\u003c/p\u003e\n"],["\u003cp\u003eThe SecretManagerCredential class has two key properties: \u003ccode\u003ePasswordSecretVersionName\u003c/code\u003e, which stores the location of the password, and \u003ccode\u003eUsername\u003c/code\u003e, which stores the username for the credential.\u003c/p\u003e\n"],["\u003cp\u003eThe namespace of this class is \u003ccode\u003eGoogle.Cloud.Dlp.V2\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]