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 \u003ccode\u003eDiscoveryTarget\u003c/code\u003e class in the Google Cloud Data Loss Prevention v2 API is used to define targets for data discovery, with version 4.16.0 being the latest and 4.15.0 as the current displayed version.\u003c/p\u003e\n"],["\u003cp\u003eThis class is designed to implement interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, allowing for complex object manipulation and comparisons.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eDiscoveryTarget\u003c/code\u003e class includes properties such as \u003ccode\u003eBigQueryTarget\u003c/code\u003e, \u003ccode\u003eCloudSqlTarget\u003c/code\u003e, \u003ccode\u003eCloudStorageTarget\u003c/code\u003e, \u003ccode\u003eOtherCloudTarget\u003c/code\u003e, and \u003ccode\u003eSecretsTarget\u003c/code\u003e to define specific targets within different cloud environments, with the first target matched being applied.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eDiscoveryTarget\u003c/code\u003e has two constructors, one being parameterless for default instantiation and the second allowing for cloning an existing \u003ccode\u003eDiscoveryTarget\u003c/code\u003e instance for duplication or modification.\u003c/p\u003e\n"],["\u003cp\u003eThe class belongs to the namespace \u003ccode\u003eGoogle.Cloud.Dlp.V2\u003c/code\u003e, contained in the \u003ccode\u003eGoogle.Cloud.Dlp.V2.dll\u003c/code\u003e assembly, and inherits methods from the \u003ccode\u003eobject\u003c/code\u003e class, such as \u003ccode\u003eGetHashCode()\u003c/code\u003e, \u003ccode\u003eGetType()\u003c/code\u003e, and \u003ccode\u003eToString()\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]