class OrganizationsDeidentifyTemplates extends Resource (View source)

The "deidentifyTemplates" collection of methods.

Typical usage is:

 $dlpService = new Google\Service\DLP(...);
 $deidentifyTemplates = $dlpService->organizations_deidentifyTemplates;

Methods

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

Creates a DeidentifyTemplate for reusing frequently used configuration for de-identifying content, images, and storage. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates- deid to learn more. (deidentifyTemplates.create)

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

Deletes a DeidentifyTemplate. See https://cloud.google.com/sensitive-data- protection/docs/creating-templates-deid to learn more.

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

Gets a DeidentifyTemplate. See https://cloud.google.com/sensitive-data- protection/docs/creating-templates-deid to learn more.

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

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

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

Updates the DeidentifyTemplate. See https://cloud.google.com/sensitive-data- protection/docs/creating-templates-deid to learn more.

Details

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

Creates a DeidentifyTemplate for reusing frequently used configuration for de-identifying content, images, and storage. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates- deid to learn more. (deidentifyTemplates.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

GooglePrivacyDlpV2CreateDeidentifyTemplateRequest $postBody
array $optParams

Optional parameters.

Return Value

GooglePrivacyDlpV2DeidentifyTemplate

Exceptions

Exception

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

Deletes a DeidentifyTemplate. See https://cloud.google.com/sensitive-data- protection/docs/creating-templates-deid to learn more.

(deidentifyTemplates.delete)

Parameters

string $name

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

array $optParams

Optional parameters.

Return Value

GoogleProtobufEmpty

Exceptions

Exception

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

Gets a DeidentifyTemplate. See https://cloud.google.com/sensitive-data- protection/docs/creating-templates-deid to learn more.

(deidentifyTemplates.get)

Parameters

string $name

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

array $optParams

Optional parameters.

Return Value

GooglePrivacyDlpV2DeidentifyTemplate

Exceptions

Exception

GooglePrivacyDlpV2ListDeidentifyTemplatesResponse listOrganizationsDeidentifyTemplates(string $parent, array $optParams = [])

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

(deidentifyTemplates.listOrganizationsDeidentifyTemplates)

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

GooglePrivacyDlpV2ListDeidentifyTemplatesResponse

Exceptions

Exception

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

Updates the DeidentifyTemplate. See https://cloud.google.com/sensitive-data- protection/docs/creating-templates-deid to learn more.

(deidentifyTemplates.patch)

Parameters

string $name

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

GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest $postBody
array $optParams

Optional parameters.

Return Value

GooglePrivacyDlpV2DeidentifyTemplate

Exceptions

Exception