Reference documentation and code samples for the Data Loss Prevention V2 Client class JobTrigger.
Contains a configuration to make dlp api calls on a repeating basis.
See https://cloud.google.com/dlp/docs/concepts-job-triggers to learn more.
Generated from protobuf message google.privacy.dlp.v2.JobTrigger
Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
Unique resource name for the triggeredJob, assigned by the service when the triggeredJob is created, for example projects/dlp-test-project/jobTriggers/53234423
.
↳ display_name
string
Display name (max 100 chars)
↳ description
string
User provided description (max 256 chars)
↳ inspect_job
↳ triggers
array< Google\Cloud\Dlp\V2\JobTrigger\Trigger
>
A list of triggers which will be OR'ed together. Only one in the list needs to trigger for a job to be started. The list may contain only a single Schedule trigger and must have at least one object.
↳ errors
array< Google\Cloud\Dlp\V2\Error
>
Output only. A stream of errors encountered when the trigger was activated. Repeated errors may result in the JobTrigger automatically being paused. Will return the last 100 errors. Whenever the JobTrigger is modified this list will be cleared.
↳ create_time
↳ update_time
↳ last_run_time
↳ status
int
Required. A status for this trigger.
getName
Unique resource name for the triggeredJob, assigned by the service when the
triggeredJob is created, for example projects/dlp-test-project/jobTriggers/53234423
.
string
setName
Unique resource name for the triggeredJob, assigned by the service when the
triggeredJob is created, for example projects/dlp-test-project/jobTriggers/53234423
.
var
string
$this
getDisplayName
Display name (max 100 chars)
string
setDisplayName
Display name (max 100 chars)
var
string
$this
getDescription
User provided description (max 256 chars)
string
setDescription
User provided description (max 256 chars)
var
string
$this
getInspectJob
For inspect jobs, a snapshot of the configuration.
hasInspectJob
setInspectJob
For inspect jobs, a snapshot of the configuration.
$this
getTriggers
A list of triggers which will be OR'ed together. Only one in the list needs to trigger for a job to be started. The list may contain only a single Schedule trigger and must have at least one object.
setTriggers
A list of triggers which will be OR'ed together. Only one in the list needs to trigger for a job to be started. The list may contain only a single Schedule trigger and must have at least one object.
$this
getErrors
Output only. A stream of errors encountered when the trigger was activated. Repeated errors may result in the JobTrigger automatically being paused.
Will return the last 100 errors. Whenever the JobTrigger is modified this list will be cleared.
setErrors
Output only. A stream of errors encountered when the trigger was activated. Repeated errors may result in the JobTrigger automatically being paused.
Will return the last 100 errors. Whenever the JobTrigger is modified this list will be cleared.
$this
getCreateTime
Output only. The creation timestamp of a triggeredJob.
hasCreateTime
clearCreateTime
setCreateTime
Output only. The creation timestamp of a triggeredJob.
$this
getUpdateTime
Output only. The last update timestamp of a triggeredJob.
hasUpdateTime
clearUpdateTime
setUpdateTime
Output only. The last update timestamp of a triggeredJob.
$this
getLastRunTime
Output only. The timestamp of the last time this trigger executed.
hasLastRunTime
clearLastRunTime
setLastRunTime
Output only. The timestamp of the last time this trigger executed.
$this
getStatus
Required. A status for this trigger.
int
setStatus
Required. A status for this trigger.
var
int
$this
getJob
string