class ProjectsStoredInfoTypes extends Resource (View source)

The "storedInfoTypes" collection of methods.

Typical usage is:

 $dlpService = new Google\Service\DLP(...);
 $storedInfoTypes = $dlpService->projects_storedInfoTypes;

Methods

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

Creates a pre-built stored infoType to be used for inspection. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored- infotypes to learn more. (storedInfoTypes.create)

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

Deletes a stored infoType. See https://cloud.google.com/sensitive-data- protection/docs/creating-stored-infotypes to learn more.

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

Gets a stored infoType. See https://cloud.google.com/sensitive-data- protection/docs/creating-stored-infotypes to learn more.

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

Lists stored infoTypes. See https://cloud.google.com/sensitive-data- protection/docs/creating-stored-infotypes to learn more.

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

Updates the stored infoType by creating a new version. The existing version will continue to be used until the new version is ready. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored- infotypes to learn more. (storedInfoTypes.patch)

Details

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

Creates a pre-built stored infoType to be used for inspection. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored- infotypes to learn more. (storedInfoTypes.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

GooglePrivacyDlpV2CreateStoredInfoTypeRequest $postBody
array $optParams

Optional parameters.

Return Value

GooglePrivacyDlpV2StoredInfoType

Exceptions

Exception

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

Deletes a stored infoType. See https://cloud.google.com/sensitive-data- protection/docs/creating-stored-infotypes to learn more.

(storedInfoTypes.delete)

Parameters

string $name

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

array $optParams

Optional parameters.

Return Value

GoogleProtobufEmpty

Exceptions

Exception

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

Gets a stored infoType. See https://cloud.google.com/sensitive-data- protection/docs/creating-stored-infotypes to learn more.

(storedInfoTypes.get)

Parameters

string $name

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

array $optParams

Optional parameters.

Return Value

GooglePrivacyDlpV2StoredInfoType

Exceptions

Exception

GooglePrivacyDlpV2ListStoredInfoTypesResponse listProjectsStoredInfoTypes(string $parent, array $optParams = [])

Lists stored infoTypes. See https://cloud.google.com/sensitive-data- protection/docs/creating-stored-infotypes to learn more.

(storedInfoTypes.listProjectsStoredInfoTypes)

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

GooglePrivacyDlpV2ListStoredInfoTypesResponse

Exceptions

Exception

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

Updates the stored infoType by creating a new version. The existing version will continue to be used until the new version is ready. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored- infotypes to learn more. (storedInfoTypes.patch)

Parameters

string $name

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

GooglePrivacyDlpV2UpdateStoredInfoTypeRequest $postBody
array $optParams

Optional parameters.

Return Value

GooglePrivacyDlpV2StoredInfoType

Exceptions

Exception