Data Loss Prevention V2 Client - Class DlpJob (1.8.6)

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

Methods

__construct

Constructor.

Parameters
NameDescription
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 Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails

Results from analyzing risk of a data source.

↳ inspect_details Google\Cloud\Dlp\V2\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.

↳ job_trigger_name string

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

↳ errors array<Google\Cloud\Dlp\V2\Error>

A stream of errors encountered running the job.

getName

The server-assigned name.

Returns
TypeDescription
string

setName

The server-assigned name.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getType

The type of job.

Returns
TypeDescription
int

setType

The type of job.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getState

State of a job.

Returns
TypeDescription
int

setState

State of a job.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getRiskDetails

Results from analyzing risk of a data source.

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

hasRiskDetails

setRiskDetails

Results from analyzing risk of a data source.

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

getInspectDetails

Results from inspecting a data source.

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

hasInspectDetails

setInspectDetails

Results from inspecting a data source.

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

getCreateTime

Time when the job was created.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Time when the job was created.

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

getStartTime

Time when the job started.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasStartTime

clearStartTime

setStartTime

Time when the job started.

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

getEndTime

Time when the job finished.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasEndTime

clearEndTime

setEndTime

Time when the job finished.

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

getJobTriggerName

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

Returns
TypeDescription
string

setJobTriggerName

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getErrors

A stream of errors encountered running the job.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setErrors

A stream of errors encountered running the job.

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

getDetails

Returns
TypeDescription
string