class OrganizationsLocationsInspectTemplates extends Resource (View source)

The "inspectTemplates" collection of methods.

Typical usage is:

 $dlpService = new Google\Service\DLP(...);
 $inspectTemplates = $dlpService->organizations_locations_inspectTemplates;

Methods

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

Creates an InspectTemplate for reusing frequently used configuration for inspecting content, images, and storage. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more. (inspectTemplates.create)

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

Deletes an InspectTemplate. See https://cloud.google.com/sensitive-data- protection/docs/creating-templates to learn more. (inspectTemplates.delete)

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

Gets an InspectTemplate. See https://cloud.google.com/sensitive-data- protection/docs/creating-templates to learn more. (inspectTemplates.get)

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

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

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

Updates the InspectTemplate. See https://cloud.google.com/sensitive-data- protection/docs/creating-templates to learn more. (inspectTemplates.patch)

Details

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

Creates an InspectTemplate for reusing frequently used configuration for inspecting content, images, and storage. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more. (inspectTemplates.create)

Parameters

string $parent

Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and 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 + Organizations scope, location specified: organizations/ORG_ID/locations/LOCATION_ID + Organizations scope, no location specified (defaults to global): organizations/ORG_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

GooglePrivacyDlpV2CreateInspectTemplateRequest $postBody
array $optParams

Optional parameters.

Return Value

GooglePrivacyDlpV2InspectTemplate

Exceptions

Exception

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

Deletes an InspectTemplate. See https://cloud.google.com/sensitive-data- protection/docs/creating-templates to learn more. (inspectTemplates.delete)

Parameters

string $name

Required. Resource name of the organization and inspectTemplate to be deleted, for example organizations/433245324/inspectTemplates/432452342 or projects/project- id/inspectTemplates/432452342.

array $optParams

Optional parameters.

Return Value

GoogleProtobufEmpty

Exceptions

Exception

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

Gets an InspectTemplate. See https://cloud.google.com/sensitive-data- protection/docs/creating-templates to learn more. (inspectTemplates.get)

Parameters

string $name

Required. Resource name of the organization and inspectTemplate to be read, for example organizations/433245324/inspectTemplates/432452342 or projects/project- id/inspectTemplates/432452342.

array $optParams

Optional parameters.

Return Value

GooglePrivacyDlpV2InspectTemplate

Exceptions

Exception

GooglePrivacyDlpV2ListInspectTemplatesResponse listOrganizationsLocationsInspectTemplates(string $parent, array $optParams = [])

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

(inspectTemplates.listOrganizationsLocationsInspectTemplates)

Parameters

string $parent

Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization) and 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 + Organizations scope, location specified: organizations/ORG_ID/locations/LOCATION_ID + Organizations scope, no location specified (defaults to global): organizations/ORG_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

GooglePrivacyDlpV2ListInspectTemplatesResponse

Exceptions

Exception

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

Updates the InspectTemplate. See https://cloud.google.com/sensitive-data- protection/docs/creating-templates to learn more. (inspectTemplates.patch)

Parameters

string $name

Required. Resource name of organization and inspectTemplate to be updated, for example organizations/433245324/inspectTemplates/432452342 or projects/project- id/inspectTemplates/432452342.

GooglePrivacyDlpV2UpdateInspectTemplateRequest $postBody
array $optParams

Optional parameters.

Return Value

GooglePrivacyDlpV2InspectTemplate

Exceptions

Exception