Data Loss Prevention V2 Client - Class FileClusterSummary (2.2.1)

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

The file cluster summary.

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

Namespace

Google \ Cloud \ Dlp \ V2

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ file_cluster_type FileClusterType

The file cluster type.

↳ file_store_info_type_summaries array<FileStoreInfoTypeSummary>

InfoTypes detected in this cluster.

↳ sensitivity_score SensitivityScore

The sensitivity score of this cluster. The score will be SENSITIVITY_LOW if nothing has been scanned.

↳ data_risk_level DataRiskLevel

The data risk level of this cluster. RISK_LOW if nothing has been scanned.

↳ errors array<Error>

A list of errors detected while scanning this cluster. The list is truncated to 10 per cluster.

↳ file_extensions_scanned array<FileExtensionInfo>

A sample of file types scanned in this cluster. Empty if no files were scanned. File extensions can be derived from the file name or the file content.

↳ file_extensions_seen array<FileExtensionInfo>

A sample of file types seen in this cluster. Empty if no files were seen. File extensions can be derived from the file name or the file content.

↳ no_files_exist bool

True if no files exist in this cluster. If the bucket had more files than could be listed, this will be false even if no files for this cluster were seen and file_extensions_seen is empty.

getFileClusterType

The file cluster type.

Returns
Type Description
FileClusterType|null

hasFileClusterType

clearFileClusterType

setFileClusterType

The file cluster type.

Parameter
Name Description
var FileClusterType
Returns
Type Description
$this

getFileStoreInfoTypeSummaries

InfoTypes detected in this cluster.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setFileStoreInfoTypeSummaries

InfoTypes detected in this cluster.

Parameter
Name Description
var array<FileStoreInfoTypeSummary>
Returns
Type Description
$this

getSensitivityScore

The sensitivity score of this cluster. The score will be SENSITIVITY_LOW if nothing has been scanned.

Returns
Type Description
SensitivityScore|null

hasSensitivityScore

clearSensitivityScore

setSensitivityScore

The sensitivity score of this cluster. The score will be SENSITIVITY_LOW if nothing has been scanned.

Parameter
Name Description
var SensitivityScore
Returns
Type Description
$this

getDataRiskLevel

The data risk level of this cluster. RISK_LOW if nothing has been scanned.

Returns
Type Description
DataRiskLevel|null

hasDataRiskLevel

clearDataRiskLevel

setDataRiskLevel

The data risk level of this cluster. RISK_LOW if nothing has been scanned.

Parameter
Name Description
var DataRiskLevel
Returns
Type Description
$this

getErrors

A list of errors detected while scanning this cluster. The list is truncated to 10 per cluster.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setErrors

A list of errors detected while scanning this cluster. The list is truncated to 10 per cluster.

Parameter
Name Description
var array<Error>
Returns
Type Description
$this

getFileExtensionsScanned

A sample of file types scanned in this cluster. Empty if no files were scanned. File extensions can be derived from the file name or the file content.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setFileExtensionsScanned

A sample of file types scanned in this cluster. Empty if no files were scanned. File extensions can be derived from the file name or the file content.

Parameter
Name Description
var array<FileExtensionInfo>
Returns
Type Description
$this

getFileExtensionsSeen

A sample of file types seen in this cluster. Empty if no files were seen.

File extensions can be derived from the file name or the file content.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setFileExtensionsSeen

A sample of file types seen in this cluster. Empty if no files were seen.

File extensions can be derived from the file name or the file content.

Parameter
Name Description
var array<FileExtensionInfo>
Returns
Type Description
$this

getNoFilesExist

True if no files exist in this cluster. If the bucket had more files than could be listed, this will be false even if no files for this cluster were seen and file_extensions_seen is empty.

Returns
Type Description
bool

setNoFilesExist

True if no files exist in this cluster. If the bucket had more files than could be listed, this will be false even if no files for this cluster were seen and file_extensions_seen is empty.

Parameter
Name Description
var bool
Returns
Type Description
$this