class ProjectsContent extends Resource (View source)

The "content" collection of methods.

Typical usage is:

 $dlpService = new Google\Service\DLP(...);
 $content = $dlpService->projects_content;

Methods

deidentify(string $parent, GooglePrivacyDlpV2DeidentifyContentRequest $postBody, array $optParams = [])

De-identifies potentially sensitive info from a ContentItem. This method has limits on input size and output size. See https://cloud.google.com/sensitive- data-protection/docs/deidentify-sensitive-data to learn more. When no InfoTypes or CustomInfoTypes are specified in this request, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated. (content.deidentify)

inspect(string $parent, GooglePrivacyDlpV2InspectContentRequest $postBody, array $optParams = [])

Finds potentially sensitive info in content. This method has limits on input size, processing time, and output size. When no InfoTypes or CustomInfoTypes are specified in this request, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated. For how to guides, see https://cloud.google.com/sensitive-data-protection/docs/inspecting-images and https://cloud.google.com/sensitive-data-protection/docs/inspecting-text, (content.inspect)

reidentify(string $parent, GooglePrivacyDlpV2ReidentifyContentRequest $postBody, array $optParams = [])

Re-identifies content that has been de-identified. See https://cloud.google.com/sensitive-data-protection/docs/pseudonymization#re- identification_in_free_text_code_example to learn more. (content.reidentify)

Details

GooglePrivacyDlpV2DeidentifyContentResponse deidentify(string $parent, GooglePrivacyDlpV2DeidentifyContentRequest $postBody, array $optParams = [])

De-identifies potentially sensitive info from a ContentItem. This method has limits on input size and output size. See https://cloud.google.com/sensitive- data-protection/docs/deidentify-sensitive-data to learn more. When no InfoTypes or CustomInfoTypes are specified in this request, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated. (content.deidentify)

Parameters

string $parent

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

GooglePrivacyDlpV2DeidentifyContentRequest $postBody
array $optParams

Optional parameters.

Return Value

GooglePrivacyDlpV2DeidentifyContentResponse

Exceptions

Exception

GooglePrivacyDlpV2InspectContentResponse inspect(string $parent, GooglePrivacyDlpV2InspectContentRequest $postBody, array $optParams = [])

Finds potentially sensitive info in content. This method has limits on input size, processing time, and output size. When no InfoTypes or CustomInfoTypes are specified in this request, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated. For how to guides, see https://cloud.google.com/sensitive-data-protection/docs/inspecting-images and https://cloud.google.com/sensitive-data-protection/docs/inspecting-text, (content.inspect)

Parameters

string $parent

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

GooglePrivacyDlpV2InspectContentRequest $postBody
array $optParams

Optional parameters.

Return Value

GooglePrivacyDlpV2InspectContentResponse

Exceptions

Exception

GooglePrivacyDlpV2ReidentifyContentResponse reidentify(string $parent, GooglePrivacyDlpV2ReidentifyContentRequest $postBody, array $optParams = [])

Re-identifies content that has been de-identified. See https://cloud.google.com/sensitive-data-protection/docs/pseudonymization#re- identification_in_free_text_code_example to learn more. (content.reidentify)

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

GooglePrivacyDlpV2ReidentifyContentRequest $postBody
array $optParams

Optional parameters.

Return Value

GooglePrivacyDlpV2ReidentifyContentResponse

Exceptions

Exception