Data Loss Prevention V2 Client - Class CloudStorageDiscoveryTarget (1.17.0)

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

Target used to match against for discovery with Cloud Storage buckets.

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

Namespace

Google \ Cloud \ Dlp \ V2

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ filter Google\Cloud\Dlp\V2\DiscoveryCloudStorageFilter

Required. The buckets the generation_cadence applies to. The first target with a matching filter will be the one to apply to a bucket.

↳ conditions Google\Cloud\Dlp\V2\DiscoveryFileStoreConditions

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

↳ generation_cadence Google\Cloud\Dlp\V2\DiscoveryCloudStorageGenerationCadence

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

↳ disabled Google\Cloud\Dlp\V2\Disabled

Optional. Disable profiling for buckets that match this filter.

getFilter

Required. The buckets the generation_cadence applies to. The first target with a matching filter will be the one to apply to a bucket.

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

hasFilter

clearFilter

setFilter

Required. The buckets the generation_cadence applies to. The first target with a matching filter will be the one to apply to a bucket.

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

getConditions

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

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

hasConditions

clearConditions

setConditions

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

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

getGenerationCadence

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

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

hasGenerationCadence

setGenerationCadence

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

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

getDisabled

Optional. Disable profiling for buckets that match this filter.

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

hasDisabled

setDisabled

Optional. Disable profiling for buckets that match this filter.

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

getCadence

Returns
Type Description
string