Data Loss Prevention V2 Client - Class CloudSqlDiscoveryTarget (2.2.2)

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

Target used to match against for discovery with Cloud SQL tables.

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

Namespace

Google \ Cloud \ Dlp \ V2

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ filter DiscoveryCloudSqlFilter

Required. The tables the discovery cadence applies to. The first target with a matching filter will be the one to apply to a table.

↳ conditions DiscoveryCloudSqlConditions

In addition to matching the filter, these conditions must be true before a profile is generated.

↳ generation_cadence DiscoveryCloudSqlGenerationCadence

How often and when to update profiles. New tables that match both the filter and conditions are scanned as quickly as possible depending on system capacity.

↳ disabled Disabled

Disable profiling for database resources that match this filter.

getFilter

Required. The tables the discovery cadence applies to. The first target with a matching filter will be the one to apply to a table.

Returns
Type Description
DiscoveryCloudSqlFilter|null

hasFilter

clearFilter

setFilter

Required. The tables the discovery cadence applies to. The first target with a matching filter will be the one to apply to a table.

Parameter
Name Description
var DiscoveryCloudSqlFilter
Returns
Type Description
$this

getConditions

In addition to matching the filter, these conditions must be true before a profile is generated.

Returns
Type Description
DiscoveryCloudSqlConditions|null

hasConditions

clearConditions

setConditions

In addition to matching the filter, these conditions must be true before a profile is generated.

Parameter
Name Description
var DiscoveryCloudSqlConditions
Returns
Type Description
$this

getGenerationCadence

How often and when to update profiles. New tables that match both the filter and conditions are scanned as quickly as possible depending on system capacity.

Returns
Type Description
DiscoveryCloudSqlGenerationCadence|null

hasGenerationCadence

setGenerationCadence

How often and when to update profiles. New tables that match both the filter and conditions are scanned as quickly as possible depending on system capacity.

Parameter
Name Description
var DiscoveryCloudSqlGenerationCadence
Returns
Type Description
$this

getDisabled

Disable profiling for database resources that match this filter.

Returns
Type Description
Disabled|null

hasDisabled

setDisabled

Disable profiling for database resources that match this filter.

Parameter
Name Description
var Disabled
Returns
Type Description
$this

getCadence

Returns
Type Description
string