Data Loss Prevention V2 Client - Class DiscoveryCloudSqlFilter (1.15.1)

Reference documentation and code samples for the Data Loss Prevention V2 Client class DiscoveryCloudSqlFilter.

Determines what tables will have profiles generated within an organization or project. Includes the ability to filter by regular expression patterns on project ID, location, instance, database, and database resource name.

Generated from protobuf message google.privacy.dlp.v2.DiscoveryCloudSqlFilter

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\DatabaseResourceCollection

A specific set of database resources for this filter to apply to.

↳ others Google\Cloud\Dlp\V2\AllOtherDatabaseResources

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.

↳ database_resource_reference Google\Cloud\Dlp\V2\DatabaseResourceReference

The database resource to scan. Targets including this can only include one target (the target with this database resource reference).

getCollection

A specific set of database resources for this filter to apply to.

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

hasCollection

setCollection

A specific set of database resources for this filter to apply to.

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

getOthers

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\AllOtherDatabaseResources|null

hasOthers

setOthers

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\AllOtherDatabaseResources
Returns
Type Description
$this

getDatabaseResourceReference

The database resource to scan. Targets including this can only include one target (the target with this database resource reference).

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

hasDatabaseResourceReference

setDatabaseResourceReference

The database resource to scan. Targets including this can only include one target (the target with this database resource reference).

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

getFilter

Returns
Type Description
string