Data Loss Prevention V2 Client - Class Trigger (1.9.0)

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
NameDescription
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
TypeDescription
Google\Cloud\Dlp\V2\Schedule|null

hasSchedule

setSchedule

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

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

getManual

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

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

hasManual

setManual

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

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

getTrigger

Returns
TypeDescription
string