Reference documentation and code samples for the Data Loss Prevention V2 Client class DiscoveryCloudStorageFilter.
Determines which buckets will have profiles generated within an organization
or project. Includes the ability to filter by regular expression patterns
on project ID and bucket name.
Generated from protobuf messagegoogle.privacy.dlp.v2.DiscoveryCloudStorageFilter
Optional. The bucket to scan. Targets including this can only include one target (the target with this bucket). This enables profiling the contents of a single bucket, while the other options allow for easy profiling of many bucets within a project or an organization.
Optional. Catch-all. This should always be the last target in the list because anything above it will apply first. Should only appear once in a configuration. If none is specified, a default one will be added automatically.
getCollection
Optional. A specific set of buckets for this filter to apply to.
Optional. The bucket to scan. Targets including this can only include one
target (the target with this bucket). This enables profiling the contents
of a single bucket, while the other options allow for easy profiling of
many bucets within a project or an organization.
Optional. The bucket to scan. Targets including this can only include one
target (the target with this bucket). This enables profiling the contents
of a single bucket, while the other options allow for easy profiling of
many bucets within a project or an organization.
Optional. Catch-all. This should always be the last target in the list
because anything above it will apply first. Should only appear once in a
configuration. If none is specified, a default one will be added
automatically.
Optional. Catch-all. This should always be the last target in the list
because anything above it will apply first. Should only appear once in a
configuration. If none is specified, a default one will be added
automatically.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Data Loss Prevention V2 Client - Class DiscoveryCloudStorageFilter (2.6.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.6.1 (latest)](/php/docs/reference/cloud-dlp/latest/V2.DiscoveryCloudStorageFilter)\n- [2.6.0](/php/docs/reference/cloud-dlp/2.6.0/V2.DiscoveryCloudStorageFilter)\n- [2.4.1](/php/docs/reference/cloud-dlp/2.4.1/V2.DiscoveryCloudStorageFilter)\n- [2.3.0](/php/docs/reference/cloud-dlp/2.3.0/V2.DiscoveryCloudStorageFilter)\n- [2.2.3](/php/docs/reference/cloud-dlp/2.2.3/V2.DiscoveryCloudStorageFilter)\n- [2.1.0](/php/docs/reference/cloud-dlp/2.1.0/V2.DiscoveryCloudStorageFilter)\n- [2.0.0](/php/docs/reference/cloud-dlp/2.0.0/V2.DiscoveryCloudStorageFilter)\n- [1.19.0](/php/docs/reference/cloud-dlp/1.19.0/V2.DiscoveryCloudStorageFilter)\n- [1.18.0](/php/docs/reference/cloud-dlp/1.18.0/V2.DiscoveryCloudStorageFilter)\n- [1.17.0](/php/docs/reference/cloud-dlp/1.17.0/V2.DiscoveryCloudStorageFilter)\n- [1.16.0](/php/docs/reference/cloud-dlp/1.16.0/V2.DiscoveryCloudStorageFilter)\n- [1.15.1](/php/docs/reference/cloud-dlp/1.15.1/V2.DiscoveryCloudStorageFilter)\n- [1.14.0](/php/docs/reference/cloud-dlp/1.14.0/V2.DiscoveryCloudStorageFilter)\n- [1.13.2](/php/docs/reference/cloud-dlp/1.13.2/V2.DiscoveryCloudStorageFilter)\n- [1.12.0](/php/docs/reference/cloud-dlp/1.12.0/V2.DiscoveryCloudStorageFilter)\n- [1.11.0](/php/docs/reference/cloud-dlp/1.11.0/V2.DiscoveryCloudStorageFilter)\n- [1.10.2](/php/docs/reference/cloud-dlp/1.10.2/V2.DiscoveryCloudStorageFilter)\n- [1.9.0](/php/docs/reference/cloud-dlp/1.9.0/V2.DiscoveryCloudStorageFilter)\n- [1.8.6](/php/docs/reference/cloud-dlp/1.8.6/V2.DiscoveryCloudStorageFilter) \nReference documentation and code samples for the Data Loss Prevention V2 Client class DiscoveryCloudStorageFilter.\n\nDetermines which buckets will have profiles generated within an organization\nor project. Includes the ability to filter by regular expression patterns\non project ID and bucket name.\n\nGenerated from protobuf message `google.privacy.dlp.v2.DiscoveryCloudStorageFilter`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Dlp \\\\ V2\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getCollection\n\nOptional. A specific set of buckets for this filter to apply to.\n\n### hasCollection\n\n### setCollection\n\nOptional. A specific set of buckets for this filter to apply to.\n\n### getCloudStorageResourceReference\n\nOptional. The bucket to scan. Targets including this can only include one\ntarget (the target with this bucket). This enables profiling the contents\nof a single bucket, while the other options allow for easy profiling of\nmany bucets within a project or an organization.\n\n### hasCloudStorageResourceReference\n\n### setCloudStorageResourceReference\n\nOptional. The bucket to scan. Targets including this can only include one\ntarget (the target with this bucket). This enables profiling the contents\nof a single bucket, while the other options allow for easy profiling of\nmany bucets within a project or an organization.\n\n### getOthers\n\nOptional. Catch-all. This should always be the last target in the list\nbecause anything above it will apply first. Should only appear once in a\nconfiguration. If none is specified, a default one will be added\nautomatically.\n\n### hasOthers\n\n### setOthers\n\nOptional. Catch-all. This should always be the last target in the list\nbecause anything above it will apply first. Should only appear once in a\nconfiguration. If none is specified, a default one will be added\nautomatically.\n\n### getFilter"]]