public sealed class DiscoveryTarget : IMessage<DiscoveryTarget>, IEquatable<DiscoveryTarget>, IDeepCloneable<DiscoveryTarget>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Data Loss Prevention v2 API class DiscoveryTarget.
public SecretsDiscoveryTarget SecretsTarget { get; set; }
Discovery target that looks for credentials and secrets stored in cloud
resource metadata and reports them as vulnerabilities to Security Command
Center. Only one target of this type is allowed.
[[["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 page provides reference documentation for the \u003ccode\u003eDiscoveryTarget\u003c/code\u003e class within the Google Cloud Data Loss Prevention v2 API, specifically for version 4.12.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eDiscoveryTarget\u003c/code\u003e is used for matching targets in the discovery process and is part of the \u003ccode\u003eGoogle.Cloud.Dlp.V2\u003c/code\u003e namespace, implemented through several 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\u003eThis class has constructors that allow for the creation of new \u003ccode\u003eDiscoveryTarget\u003c/code\u003e objects and allows you to create a new object based on an existing object.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes properties to define targets for BigQuery, Cloud SQL, Cloud Storage, and secrets, with only one of these targets capable of being applied at a time.\u003c/p\u003e\n"],["\u003cp\u003eThere are multiple past versions of the \u003ccode\u003eDiscoveryTarget\u003c/code\u003e reference documentation linked on this page, ranging from version 4.16.0 down to 2.15.0, with 4.16.0 being the latest, to allow users to access the relevant class documentation.\u003c/p\u003e\n"]]],[],null,[]]