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 \u003ccode\u003eSecretManagerCredential\u003c/code\u003e class in the Google Cloud Data Loss Prevention v2 API allows for credential storage, specifically a username and a password which is stored within a Secret Manager resource.\u003c/p\u003e\n"],["\u003cp\u003eThis class, \u003ccode\u003eSecretManagerCredential\u003c/code\u003e, has been implemented with multiple interfaces for diverse functionality: \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 class is available in many versions, with version 4.16.0 being the latest and version 2.15.0 being the oldest specified within the content.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSecretManagerCredential\u003c/code\u003e class has two main properties: \u003ccode\u003ePasswordSecretVersionName\u003c/code\u003e which stores the password location in the Secret Manager and \u003ccode\u003eUsername\u003c/code\u003e, for the username.\u003c/p\u003e\n"],["\u003cp\u003eSecret Manager charges apply to the usage of this credential system, and both the username and password location must be specified within the properties of the class.\u003c/p\u003e\n"]]],[],null,[]]