Data Loss Prevention V2 Client - Class DlpJob (2.7.0)

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

Combines all of the information about a DLP job.

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

Namespace

Google \ Cloud \ Dlp \ V2

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name string

The server-assigned name.

↳ type int

The type of job.

↳ state int

State of a job.

↳ risk_details AnalyzeDataSourceRiskDetails

Results from analyzing risk of a data source.

↳ inspect_details InspectDataSourceDetails

Results from inspecting a data source.

↳ create_time Google\Protobuf\Timestamp

Time when the job was created.

↳ start_time Google\Protobuf\Timestamp

Time when the job started.

↳ end_time Google\Protobuf\Timestamp

Time when the job finished.

↳ last_modified Google\Protobuf\Timestamp

Time when the job was last modified by the system.

↳ job_trigger_name string

If created by a job trigger, the resource name of the trigger that instantiated the job.

↳ errors array<Error>

A stream of errors encountered running the job.

↳ action_details array<ActionDetails>

Events that should occur after the job has completed.

getName

The server-assigned name.

Returns
Type Description
string

setName

The server-assigned name.

Parameter
Name Description
var string
Returns
Type Description
$this

getType

The type of job.

Returns
Type Description
int Enum of type DlpJobType.

setType

The type of job.

Parameter
Name Description
var int

Enum of type DlpJobType.

Returns
Type Description
$this

getState

State of a job.

Returns
Type Description
int Enum of type JobState.

setState

State of a job.

Parameter
Name Description
var int

Enum of type JobState.

Returns
Type Description
$this

getRiskDetails

Results from analyzing risk of a data source.

Returns
Type Description
AnalyzeDataSourceRiskDetails|null

hasRiskDetails

setRiskDetails

Results from analyzing risk of a data source.

Parameter
Name Description
var AnalyzeDataSourceRiskDetails
Returns
Type Description
$this

getInspectDetails

Results from inspecting a data source.

Returns
Type Description
InspectDataSourceDetails|null

hasInspectDetails

setInspectDetails

Results from inspecting a data source.

Parameter
Name Description
var InspectDataSourceDetails
Returns
Type Description
$this

getCreateTime

Time when the job was created.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Time when the job was created.

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

getStartTime

Time when the job started.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasStartTime

clearStartTime

setStartTime

Time when the job started.

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

getEndTime

Time when the job finished.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasEndTime

clearEndTime

setEndTime

Time when the job finished.

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

getLastModified

Time when the job was last modified by the system.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasLastModified

clearLastModified

setLastModified

Time when the job was last modified by the system.

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

getJobTriggerName

If created by a job trigger, the resource name of the trigger that instantiated the job.

Returns
Type Description
string

setJobTriggerName

If created by a job trigger, the resource name of the trigger that instantiated the job.

Parameter
Name Description
var string
Returns
Type Description
$this

getErrors

A stream of errors encountered running the job.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setErrors

A stream of errors encountered running the job.

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

getActionDetails

Events that should occur after the job has completed.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setActionDetails

Events that should occur after the job has completed.

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

getDetails

Returns
Type Description
string