class ProjectsLocationsDiscoveryConfigs extends Resource (View source)

The "discoveryConfigs" collection of methods.

Typical usage is:

 $dlpService = new Google\Service\DLP(...);
 $discoveryConfigs = $dlpService->projects_locations_discoveryConfigs;

Methods

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

Creates a config for discovery to scan and profile storage.

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

Deletes a discovery configuration. (discoveryConfigs.delete)

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

Gets a discovery configuration. (discoveryConfigs.get)

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

Lists discovery configurations.

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

Updates a discovery configuration. (discoveryConfigs.patch)

Details

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

Creates a config for discovery to scan and profile storage.

(discoveryConfigs.create)

Parameters

string $parent

Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization):

  • Projects scope: projects/PROJECT_ID/locations/LOCATION_ID + Organizations scope: organizations/ORG_ID/locations/LOCATION_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
GooglePrivacyDlpV2CreateDiscoveryConfigRequest $postBody
array $optParams

Optional parameters.

Return Value

GooglePrivacyDlpV2DiscoveryConfig

Exceptions

Exception

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

Deletes a discovery configuration. (discoveryConfigs.delete)

Parameters

string $name

Required. Resource name of the project and the config, for example projects/dlp-test-project/discoveryConfigs/53234423.

array $optParams

Optional parameters.

Return Value

GoogleProtobufEmpty

Exceptions

Exception

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

Gets a discovery configuration. (discoveryConfigs.get)

Parameters

string $name

Required. Resource name of the project and the configuration, for example projects/dlp-test- project/discoveryConfigs/53234423.

array $optParams

Optional parameters.

Return Value

GooglePrivacyDlpV2DiscoveryConfig

Exceptions

Exception

GooglePrivacyDlpV2ListDiscoveryConfigsResponse listProjectsLocationsDiscoveryConfigs(string $parent, array $optParams = [])

Lists discovery configurations.

(discoveryConfigs.listProjectsLocationsDiscoveryConfigs)

Parameters

string $parent

Required. Parent resource name. The format of this value is as follows: projects/PROJECT_ID/locations/LOCATION_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

GooglePrivacyDlpV2ListDiscoveryConfigsResponse

Exceptions

Exception

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

Updates a discovery configuration. (discoveryConfigs.patch)

Parameters

string $name

Required. Resource name of the project and the configuration, for example projects/dlp-test- project/discoveryConfigs/53234423.

GooglePrivacyDlpV2UpdateDiscoveryConfigRequest $postBody
array $optParams

Optional parameters.

Return Value

GooglePrivacyDlpV2DiscoveryConfig

Exceptions

Exception