Data Loss Prevention V2 Client - Class Trigger (2.2.2)

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

What event needs to occur for a new job to be started.

Generated from protobuf message google.privacy.dlp.v2.JobTrigger.Trigger

Namespace

Google \ Cloud \ Dlp \ V2 \ JobTrigger

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ schedule Google\Cloud\Dlp\V2\Schedule

Create a job on a repeating basis based on the elapse of time.

↳ manual Google\Cloud\Dlp\V2\Manual

For use with hybrid jobs. Jobs must be manually created and finished.

getSchedule

Create a job on a repeating basis based on the elapse of time.

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

hasSchedule

setSchedule

Create a job on a repeating basis based on the elapse of time.

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

getManual

For use with hybrid jobs. Jobs must be manually created and finished.

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

hasManual

setManual

For use with hybrid jobs. Jobs must be manually created and finished.

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

getTrigger

Returns
Type Description
string