Data Loss Prevention V2 Client - Class ProjectDataProfile (1.14.0)

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

An aggregated profile for this project, based on the resources profiled within it.

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

Namespace

Google \ Cloud \ Dlp \ V2

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name string

The resource name of the profile.

↳ project_id string

Project ID that was profiled.

↳ profile_last_generated Google\Protobuf\Timestamp

The last time the profile was generated.

↳ sensitivity_score Google\Cloud\Dlp\V2\SensitivityScore

The sensitivity score of this project.

↳ data_risk_level Google\Cloud\Dlp\V2\DataRiskLevel

The data risk level of this project.

↳ profile_status Google\Cloud\Dlp\V2\ProfileStatus

Success or error status of the last attempt to profile the project.

getName

The resource name of the profile.

Returns
Type Description
string

setName

The resource name of the profile.

Parameter
Name Description
var string
Returns
Type Description
$this

getProjectId

Project ID that was profiled.

Returns
Type Description
string

setProjectId

Project ID that was profiled.

Parameter
Name Description
var string
Returns
Type Description
$this

getProfileLastGenerated

The last time the profile was generated.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasProfileLastGenerated

clearProfileLastGenerated

setProfileLastGenerated

The last time the profile was generated.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getSensitivityScore

The sensitivity score of this project.

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

hasSensitivityScore

clearSensitivityScore

setSensitivityScore

The sensitivity score of this project.

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

getDataRiskLevel

The data risk level of this project.

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

hasDataRiskLevel

clearDataRiskLevel

setDataRiskLevel

The data risk level of this project.

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

getProfileStatus

Success or error status of the last attempt to profile the project.

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

hasProfileStatus

clearProfileStatus

setProfileStatus

Success or error status of the last attempt to profile the project.

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