Data Loss Prevention V2 Client - Class DiscoveryCloudStorageFilter (1.17.0)

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 message google.privacy.dlp.v2.DiscoveryCloudStorageFilter

Namespace

Google \ Cloud \ Dlp \ V2

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ collection Google\Cloud\Dlp\V2\FileStoreCollection

Optional. A specific set of buckets for this filter to apply to.

↳ cloud_storage_resource_reference Google\Cloud\Dlp\V2\CloudStorageResourceReference

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.

↳ others Google\Cloud\Dlp\V2\AllOtherResources

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.

Returns
Type Description
Google\Cloud\Dlp\V2\FileStoreCollection|null

hasCollection

setCollection

Optional. A specific set of buckets for this filter to apply to.

Parameter
Name Description
var Google\Cloud\Dlp\V2\FileStoreCollection
Returns
Type Description
$this

getCloudStorageResourceReference

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.

Returns
Type Description
Google\Cloud\Dlp\V2\CloudStorageResourceReference|null

hasCloudStorageResourceReference

setCloudStorageResourceReference

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.

Parameter
Name Description
var Google\Cloud\Dlp\V2\CloudStorageResourceReference
Returns
Type Description
$this

getOthers

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.

Returns
Type Description
Google\Cloud\Dlp\V2\AllOtherResources|null

hasOthers

setOthers

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.

Parameter
Name Description
var Google\Cloud\Dlp\V2\AllOtherResources
Returns
Type Description
$this

getFilter

Returns
Type Description
string