class OrganizationsLocationsJobTriggers extends Resource (View source)

The "jobTriggers" collection of methods.

Typical usage is:

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

Methods

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)

listOrganizationsLocationsJobTriggers(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

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

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

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

(jobTriggers.listOrganizationsLocationsJobTriggers)

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