class ProjectsLocationsJobTriggers extends Resource (View source)

The "jobTriggers" collection of methods.

Typical usage is:

 $dlpService = new Google\Service\DLP(...);
 $jobTriggers = $dlpService->projects_locations_jobTriggers;

Methods

activate(string $name, GooglePrivacyDlpV2ActivateJobTriggerRequest $postBody, array $optParams = [])

Activate a job trigger. Causes the immediate execute of a trigger instead of waiting on the trigger event to occur. (jobTriggers.activate)

create(string $parent, GooglePrivacyDlpV2CreateJobTriggerRequest $postBody, array $optParams = [])

Creates a job trigger to run DLP actions such as scanning storage for sensitive information on a set schedule. See https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more. (jobTriggers.create)

delete(string $name, array $optParams = [])

Deletes a job trigger. See https://cloud.google.com/sensitive-data- protection/docs/creating-job-triggers to learn more. (jobTriggers.delete)

get(string $name, array $optParams = [])

Gets a job trigger. See https://cloud.google.com/sensitive-data- protection/docs/creating-job-triggers to learn more. (jobTriggers.get)

hybridInspect(string $name, GooglePrivacyDlpV2HybridInspectJobTriggerRequest $postBody, array $optParams = [])

Inspect hybrid content and store findings to a trigger. The inspection will be processed asynchronously. To review the findings monitor the jobs within the trigger. (jobTriggers.hybridInspect)

listProjectsLocationsJobTriggers(string $parent, array $optParams = [])

Lists job triggers. See https://cloud.google.com/sensitive-data- protection/docs/creating-job-triggers to learn more.

patch(string $name, GooglePrivacyDlpV2UpdateJobTriggerRequest $postBody, array $optParams = [])

Updates a job trigger. See https://cloud.google.com/sensitive-data- protection/docs/creating-job-triggers to learn more. (jobTriggers.patch)

Details

GooglePrivacyDlpV2DlpJob activate(string $name, GooglePrivacyDlpV2ActivateJobTriggerRequest $postBody, array $optParams = [])

Activate a job trigger. Causes the immediate execute of a trigger instead of waiting on the trigger event to occur. (jobTriggers.activate)

Parameters

string $name

Required. Resource name of the trigger to activate, for example projects/dlp-test-project/jobTriggers/53234423.

GooglePrivacyDlpV2ActivateJobTriggerRequest $postBody
array $optParams

Optional parameters.

Return Value

GooglePrivacyDlpV2DlpJob

Exceptions

Exception

GooglePrivacyDlpV2JobTrigger create(string $parent, GooglePrivacyDlpV2CreateJobTriggerRequest $postBody, array $optParams = [])

Creates a job trigger to run DLP actions such as scanning storage for sensitive information on a set schedule. See https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more. (jobTriggers.create)

Parameters

string $parent

Required. Parent resource name. The format of this value varies depending on whether you have specified a processing location: + Projects scope, location specified: projects/PROJECT_ID/locations/ LOCATION_ID + Projects scope, no location specified (defaults to global): projects/PROJECT_ID The following example parent string specifies a parent project with the identifier example- project, and specifies the europe-west3 location for processing data: parent=projects/example-project/locations/europe-west3

GooglePrivacyDlpV2CreateJobTriggerRequest $postBody
array $optParams

Optional parameters.

Return Value

GooglePrivacyDlpV2JobTrigger

Exceptions

Exception

GoogleProtobufEmpty delete(string $name, array $optParams = [])

Deletes a job trigger. See https://cloud.google.com/sensitive-data- protection/docs/creating-job-triggers to learn more. (jobTriggers.delete)

Parameters

string $name

Required. Resource name of the project and the triggeredJob, for example projects/dlp-test-project/jobTriggers/53234423.

array $optParams

Optional parameters.

Return Value

GoogleProtobufEmpty

Exceptions

Exception

GooglePrivacyDlpV2JobTrigger get(string $name, array $optParams = [])

Gets a job trigger. See https://cloud.google.com/sensitive-data- protection/docs/creating-job-triggers to learn more. (jobTriggers.get)

Parameters

string $name

Required. Resource name of the project and the triggeredJob, for example projects/dlp-test-project/jobTriggers/53234423.

array $optParams

Optional parameters.

Return Value

GooglePrivacyDlpV2JobTrigger

Exceptions

Exception

GooglePrivacyDlpV2HybridInspectResponse hybridInspect(string $name, GooglePrivacyDlpV2HybridInspectJobTriggerRequest $postBody, array $optParams = [])

Inspect hybrid content and store findings to a trigger. The inspection will be processed asynchronously. To review the findings monitor the jobs within the trigger. (jobTriggers.hybridInspect)

Parameters

string $name

Required. Resource name of the trigger to execute a hybrid inspect on, for example projects/dlp-test- project/jobTriggers/53234423.

GooglePrivacyDlpV2HybridInspectJobTriggerRequest $postBody
array $optParams

Optional parameters.

Return Value

GooglePrivacyDlpV2HybridInspectResponse

Exceptions

Exception

GooglePrivacyDlpV2ListJobTriggersResponse listProjectsLocationsJobTriggers(string $parent, array $optParams = [])

Lists job triggers. See https://cloud.google.com/sensitive-data- protection/docs/creating-job-triggers to learn more.

(jobTriggers.listProjectsLocationsJobTriggers)

Parameters

string $parent

Required. Parent resource name. The format of this value varies depending on whether you have specified a processing location: + Projects scope, location specified: projects/PROJECT_ID/locations/ LOCATION_ID + Projects scope, no location specified (defaults to global): projects/PROJECT_ID The following example parent string specifies a parent project with the identifier example- project, and specifies the europe-west3 location for processing data: parent=projects/example-project/locations/europe-west3

array $optParams

Optional parameters.

Return Value

GooglePrivacyDlpV2ListJobTriggersResponse

Exceptions

Exception

GooglePrivacyDlpV2JobTrigger patch(string $name, GooglePrivacyDlpV2UpdateJobTriggerRequest $postBody, array $optParams = [])

Updates a job trigger. See https://cloud.google.com/sensitive-data- protection/docs/creating-job-triggers to learn more. (jobTriggers.patch)

Parameters

string $name

Required. Resource name of the project and the triggeredJob, for example projects/dlp-test-project/jobTriggers/53234423.

GooglePrivacyDlpV2UpdateJobTriggerRequest $postBody
array $optParams

Optional parameters.

Return Value

GooglePrivacyDlpV2JobTrigger

Exceptions

Exception