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 latest version available for the Google Cloud Data Loss Prevention v2 API class \u003ccode\u003eDiscoveryTarget\u003c/code\u003e is 4.16.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eDiscoveryTarget\u003c/code\u003e class provides a target to match against for the discovery of sensitive data, and it implements several interfaces such as \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\u003e\u003ccode\u003eDiscoveryTarget\u003c/code\u003e allows specification of targets for \u003ccode\u003eBigQuery\u003c/code\u003e, \u003ccode\u003eCloud SQL\u003c/code\u003e and \u003ccode\u003eSecrets\u003c/code\u003e with properties \u003ccode\u003eBigQueryTarget\u003c/code\u003e, \u003ccode\u003eCloudSqlTarget\u003c/code\u003e and \u003ccode\u003eSecretsTarget\u003c/code\u003e, respectively.\u003c/p\u003e\n"],["\u003cp\u003eThe class supports constructors for default initialization (\u003ccode\u003eDiscoveryTarget()\u003c/code\u003e) and cloning (\u003ccode\u003eDiscoveryTarget(DiscoveryTarget other)\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eThe webpage lists available versions of the api from 4.16.0 down to version 2.15.0.\u003c/p\u003e\n"]]],[],null,[]]