Data Loss Prevention V2 Client - Class TableDataProfile (1.10.2)

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

The profile for a scanned table.

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

Namespace

Google \ Cloud \ Dlp \ V2

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

The name of the profile.

↳ project_data_profile string

The resource name to the project data profile for this table.

↳ dataset_project_id string

The GCP project ID that owns the BigQuery dataset.

↳ dataset_location string

The BigQuery location where the dataset's data is stored. See https://cloud.google.com/bigquery/docs/locations for supported locations.

↳ dataset_id string

The BigQuery dataset ID.

↳ table_id string

The BigQuery table ID.

↳ full_resource string

The resource name of the table. https://cloud.google.com/apis/design/resource_names#full_resource_name

↳ profile_status Google\Cloud\Dlp\V2\ProfileStatus

Success or error status from the most recent profile generation attempt. May be empty if the profile is still being generated.

↳ state int

State of a profile.

↳ sensitivity_score Google\Cloud\Dlp\V2\SensitivityScore

The sensitivity score of this table.

↳ data_risk_level Google\Cloud\Dlp\V2\DataRiskLevel

The data risk level of this table.

↳ predicted_info_types array<Google\Cloud\Dlp\V2\InfoTypeSummary>

The infoTypes predicted from this table's data.

↳ other_info_types array<Google\Cloud\Dlp\V2\OtherInfoTypeSummary>

Other infoTypes found in this table's data.

↳ config_snapshot Google\Cloud\Dlp\V2\DataProfileConfigSnapshot

The snapshot of the configurations used to generate the profile.

↳ last_modified_time Google\Protobuf\Timestamp

The time when this table was last modified

↳ expiration_time Google\Protobuf\Timestamp

Optional. The time when this table expires.

↳ scanned_column_count int|string

The number of columns profiled in the table.

↳ failed_column_count int|string

The number of columns skipped in the table because of an error.

↳ table_size_bytes int|string

The size of the table when the profile was generated.

↳ row_count int|string

Number of rows in the table when the profile was generated. This will not be populated for BigLake tables.

↳ encryption_status int

How the table is encrypted.

↳ resource_visibility int

How broadly a resource has been shared.

↳ profile_last_generated Google\Protobuf\Timestamp

The last time the profile was generated.

↳ resource_labels array|Google\Protobuf\Internal\MapField

The labels applied to the resource at the time the profile was generated.

↳ create_time Google\Protobuf\Timestamp

The time at which the table was created.

getName

The name of the profile.

Returns
TypeDescription
string

setName

The name of the profile.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getProjectDataProfile

The resource name to the project data profile for this table.

Returns
TypeDescription
string

setProjectDataProfile

The resource name to the project data profile for this table.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDatasetProjectId

The GCP project ID that owns the BigQuery dataset.

Returns
TypeDescription
string

setDatasetProjectId

The GCP project ID that owns the BigQuery dataset.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDatasetLocation

The BigQuery location where the dataset's data is stored.

See https://cloud.google.com/bigquery/docs/locations for supported locations.

Returns
TypeDescription
string

setDatasetLocation

The BigQuery location where the dataset's data is stored.

See https://cloud.google.com/bigquery/docs/locations for supported locations.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDatasetId

The BigQuery dataset ID.

Returns
TypeDescription
string

setDatasetId

The BigQuery dataset ID.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getTableId

The BigQuery table ID.

Returns
TypeDescription
string

setTableId

The BigQuery table ID.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getFullResource

Returns
TypeDescription
string

setFullResource

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getProfileStatus

Success or error status from the most recent profile generation attempt.

May be empty if the profile is still being generated.

Returns
TypeDescription
Google\Cloud\Dlp\V2\ProfileStatus|null

hasProfileStatus

clearProfileStatus

setProfileStatus

Success or error status from the most recent profile generation attempt.

May be empty if the profile is still being generated.

Parameter
NameDescription
var Google\Cloud\Dlp\V2\ProfileStatus
Returns
TypeDescription
$this

getState

State of a profile.

Returns
TypeDescription
int

setState

State of a profile.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getSensitivityScore

The sensitivity score of this table.

Returns
TypeDescription
Google\Cloud\Dlp\V2\SensitivityScore|null

hasSensitivityScore

clearSensitivityScore

setSensitivityScore

The sensitivity score of this table.

Parameter
NameDescription
var Google\Cloud\Dlp\V2\SensitivityScore
Returns
TypeDescription
$this

getDataRiskLevel

The data risk level of this table.

Returns
TypeDescription
Google\Cloud\Dlp\V2\DataRiskLevel|null

hasDataRiskLevel

clearDataRiskLevel

setDataRiskLevel

The data risk level of this table.

Parameter
NameDescription
var Google\Cloud\Dlp\V2\DataRiskLevel
Returns
TypeDescription
$this

getPredictedInfoTypes

The infoTypes predicted from this table's data.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setPredictedInfoTypes

The infoTypes predicted from this table's data.

Parameter
NameDescription
var array<Google\Cloud\Dlp\V2\InfoTypeSummary>
Returns
TypeDescription
$this

getOtherInfoTypes

Other infoTypes found in this table's data.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setOtherInfoTypes

Other infoTypes found in this table's data.

Parameter
NameDescription
var array<Google\Cloud\Dlp\V2\OtherInfoTypeSummary>
Returns
TypeDescription
$this

getConfigSnapshot

The snapshot of the configurations used to generate the profile.

Returns
TypeDescription
Google\Cloud\Dlp\V2\DataProfileConfigSnapshot|null

hasConfigSnapshot

clearConfigSnapshot

setConfigSnapshot

The snapshot of the configurations used to generate the profile.

Parameter
NameDescription
var Google\Cloud\Dlp\V2\DataProfileConfigSnapshot
Returns
TypeDescription
$this

getLastModifiedTime

The time when this table was last modified

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasLastModifiedTime

clearLastModifiedTime

setLastModifiedTime

The time when this table was last modified

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getExpirationTime

Optional. The time when this table expires.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasExpirationTime

clearExpirationTime

setExpirationTime

Optional. The time when this table expires.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getScannedColumnCount

The number of columns profiled in the table.

Returns
TypeDescription
int|string

setScannedColumnCount

The number of columns profiled in the table.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this

getFailedColumnCount

The number of columns skipped in the table because of an error.

Returns
TypeDescription
int|string

setFailedColumnCount

The number of columns skipped in the table because of an error.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this

getTableSizeBytes

The size of the table when the profile was generated.

Returns
TypeDescription
int|string

setTableSizeBytes

The size of the table when the profile was generated.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this

getRowCount

Number of rows in the table when the profile was generated.

This will not be populated for BigLake tables.

Returns
TypeDescription
int|string

setRowCount

Number of rows in the table when the profile was generated.

This will not be populated for BigLake tables.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this

getEncryptionStatus

How the table is encrypted.

Returns
TypeDescription
int

setEncryptionStatus

How the table is encrypted.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getResourceVisibility

How broadly a resource has been shared.

Returns
TypeDescription
int

setResourceVisibility

How broadly a resource has been shared.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getProfileLastGenerated

The last time the profile was generated.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasProfileLastGenerated

clearProfileLastGenerated

setProfileLastGenerated

The last time the profile was generated.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getResourceLabels

The labels applied to the resource at the time the profile was generated.

Returns
TypeDescription
Google\Protobuf\Internal\MapField

setResourceLabels

The labels applied to the resource at the time the profile was generated.

Parameter
NameDescription
var array|Google\Protobuf\Internal\MapField
Returns
TypeDescription
$this

getCreateTime

The time at which the table was created.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

The time at which the table was created.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this