Skip to content

Commit 5d228b9

Browse files
feat: [dlp] inspect and deid templates in RedactImage (#6810)
* feat: inspect and deid templates in RedactImage feat: store DlpJob findings in a Cloud Storage bucket feat: publish DlpJob findings to Dataplex Universal Catalog feat: Cloud Storage discovery filters based on tag filters docs: clarify ListProjectDataProfiles API supports filter by project_id docs: clarify List*DataProfiles APIs supports filter by profile_last_generated docs: clarify filter syntax for List* APIs PiperOrigin-RevId: 817724737 Source-Link: googleapis/googleapis@1135291 Source-Link: googleapis/googleapis-gen@1a4ef8c Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLXByaXZhY3ktZGxwLy5Pd2xCb3QueWFtbCIsImgiOiIxYTRlZjhjYjU0YmI5NDA2MGE2OWNmNTkzZGU2YmM2ODFhNmY4YjRmIn0= * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Leah E. Cole <[email protected]>
1 parent 8d9d660 commit 5d228b9

15 files changed

Lines changed: 1714 additions & 239 deletions

packages/google-privacy-dlp/protos/google/privacy/dlp/v2/dlp.proto

Lines changed: 178 additions & 55 deletions
Large diffs are not rendered by default.

packages/google-privacy-dlp/protos/protos.d.ts

Lines changed: 326 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/google-privacy-dlp/protos/protos.js

Lines changed: 804 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/google-privacy-dlp/protos/protos.json

Lines changed: 61 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/google-privacy-dlp/samples/generated/v2/dlp_service.list_column_data_profiles.js

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -69,24 +69,29 @@ function main(parent) {
6969
* * Restrictions can be combined by `AND` or `OR` logical operators. A
7070
* sequence of restrictions implicitly uses `AND`.
7171
* * A restriction has the form of `{field} {operator} {value}`.
72-
* * Supported fields/values:
73-
* - `table_data_profile_name` - The name of the related table data
74-
* profile.
75-
* - `project_id` - The Google Cloud project ID. (REQUIRED)
76-
* - `dataset_id` - The BigQuery dataset ID. (REQUIRED)
77-
* - `table_id` - The BigQuery table ID. (REQUIRED)
78-
* - `field_id` - The ID of the BigQuery field.
79-
* - `info_type` - The infotype detected in the resource.
80-
* - `sensitivity_level` - HIGH|MEDIUM|LOW
81-
* - `data_risk_level`: How much risk is associated with this data.
82-
* - `status_code` - an RPC status code as defined in
72+
* * Supported fields:
73+
* - `table_data_profile_name`: The name of the related table data
74+
* profile
75+
* - `project_id`: The Google Cloud project ID (REQUIRED)
76+
* - `dataset_id`: The BigQuery dataset ID (REQUIRED)
77+
* - `table_id`: The BigQuery table ID (REQUIRED)
78+
* - `field_id`: The ID of the BigQuery field
79+
* - `info_type`: The infotype detected in the resource
80+
* - `sensitivity_level`: HIGH|MEDIUM|LOW
81+
* - `data_risk_level`: How much risk is associated with this data
82+
* - `status_code`: An RPC status code as defined in
8383
* https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
84+
* - `profile_last_generated`: Date and time the profile was last
85+
* generated
8486
* * The operator must be `=` for project_id, dataset_id, and table_id. Other
85-
* filters also support `!=`.
87+
* filters also support `!=`. The `profile_last_generated` filter also
88+
* supports `<` and `>`.
89+
* The syntax is based on https://google.aip.dev/160.
8690
* Examples:
8791
* * project_id = 12345 AND status_code = 1
8892
* * project_id = 12345 AND sensitivity_level = HIGH
8993
* * project_id = 12345 AND info_type = STREET_ADDRESS
94+
* * profile_last_generated < "2025-01-01T00:00:00.000Z"
9095
* The length of this field should be no more than 500 characters.
9196
*/
9297
// const filter = 'abc123'

packages/google-privacy-dlp/samples/generated/v2/dlp_service.list_connections.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ function main(parent) {
4545
// const pageToken = 'abc123'
4646
/**
4747
* Optional. Supported field/value: `state` - MISSING|AVAILABLE|ERROR
48+
* The syntax is based on https://google.aip.dev/160.
4849
*/
4950
// const filter = 'abc123'
5051

packages/google-privacy-dlp/samples/generated/v2/dlp_service.list_dlp_jobs.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ function main(parent) {
6161
* - 'end_time` - Corresponds to the time the job finished.
6262
* - 'start_time` - Corresponds to the time the job finished.
6363
* * The operator must be `=` or `!=`.
64+
* The syntax is based on https://google.aip.dev/160.
6465
* Examples:
6566
* * inspected_storage = cloud_storage AND state = done
6667
* * inspected_storage = cloud_storage OR inspected_storage = bigquery

packages/google-privacy-dlp/samples/generated/v2/dlp_service.list_file_store_data_profiles.js

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -71,25 +71,30 @@ function main(parent) {
7171
* * Restrictions can be combined by `AND` or `OR` logical operators. A
7272
* sequence of restrictions implicitly uses `AND`.
7373
* * A restriction has the form of `{field} {operator} {value}`.
74-
* * Supported fields/values:
75-
* - `project_id` - The Google Cloud project ID.
76-
* - `account_id` - The AWS account ID.
77-
* - `file_store_path` - The path like "gs://bucket".
78-
* - `data_source_type` - The profile's data source type, like
79-
* "google/storage/bucket".
80-
* - `data_storage_location` - The location where the file store's data is
81-
* stored, like "us-central1".
82-
* - `sensitivity_level` - HIGH|MODERATE|LOW
83-
* - `data_risk_level` - HIGH|MODERATE|LOW
74+
* * Supported fields:
75+
* - `project_id`: The Google Cloud project ID
76+
* - `account_id`: The AWS account ID
77+
* - `file_store_path`: The path like "gs://bucket"
78+
* - `data_source_type`: The profile's data source type, like
79+
* "google/storage/bucket"
80+
* - `data_storage_location`: The location where the file store's data is
81+
* stored, like "us-central1"
82+
* - `sensitivity_level`: HIGH|MODERATE|LOW
83+
* - `data_risk_level`: HIGH|MODERATE|LOW
8484
* - `resource_visibility`: PUBLIC|RESTRICTED
85-
* - `status_code` - an RPC status code as defined in
85+
* - `status_code`: an RPC status code as defined in
8686
* https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
87-
* * The operator must be `=` or `!=`.
87+
* - `profile_last_generated`: Date and time the profile was last
88+
* generated
89+
* * The operator must be `=` or `!=`. The `profile_last_generated` filter
90+
* also supports `<` and `>`.
91+
* The syntax is based on https://google.aip.dev/160.
8892
* Examples:
8993
* * `project_id = 12345 AND status_code = 1`
9094
* * `project_id = 12345 AND sensitivity_level = HIGH`
9195
* * `project_id = 12345 AND resource_visibility = PUBLIC`
9296
* * `file_store_path = "gs://mybucket"`
97+
* * `profile_last_generated < "2025-01-01T00:00:00.000Z"`
9398
* The length of this field should be no more than 500 characters.
9499
*/
95100
// const filter = 'abc123'

packages/google-privacy-dlp/samples/generated/v2/dlp_service.list_job_triggers.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ function main(parent) {
8282
* quotation marks. Nanoseconds are ignored.
8383
* - 'error_count' - Number of errors that have occurred while running.
8484
* * The operator must be `=` or `!=` for status and inspected_storage.
85+
* The syntax is based on https://google.aip.dev/160.
8586
* Examples:
8687
* * inspected_storage = cloud_storage AND status = HEALTHY
8788
* * inspected_storage = cloud_storage OR inspected_storage = bigquery

packages/google-privacy-dlp/samples/generated/v2/dlp_service.list_project_data_profiles.js

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,12 @@ function main(parent) {
4949
* Examples:
5050
* * `project_id`
5151
* * `sensitivity_level desc`
52-
* Supported fields are:
52+
* Supported fields:
5353
* - `project_id`: Google Cloud project ID
54-
* - `sensitivity_level`: How sensitive the data in a project is, at most.
55-
* - `data_risk_level`: How much risk is associated with this data.
56-
* - `profile_last_generated`: When the profile was last updated in epoch
57-
* seconds.
54+
* - `sensitivity_level`: How sensitive the data in a project is, at most
55+
* - `data_risk_level`: How much risk is associated with this data
56+
* - `profile_last_generated`: Date and time (in epoch seconds) the profile
57+
* was last generated
5858
*/
5959
// const orderBy = 'abc123'
6060
/**
@@ -64,15 +64,21 @@ function main(parent) {
6464
* * Restrictions can be combined by `AND` or `OR` logical operators. A
6565
* sequence of restrictions implicitly uses `AND`.
6666
* * A restriction has the form of `{field} {operator} {value}`.
67-
* * Supported fields/values:
68-
* - `sensitivity_level` - HIGH|MODERATE|LOW
69-
* - `data_risk_level` - HIGH|MODERATE|LOW
70-
* - `status_code` - an RPC status code as defined in
67+
* * Supported fields:
68+
* - `project_id`: the Google Cloud project ID
69+
* - `sensitivity_level`: HIGH|MODERATE|LOW
70+
* - `data_risk_level`: HIGH|MODERATE|LOW
71+
* - `status_code`: an RPC status code as defined in
7172
* https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
72-
* * The operator must be `=` or `!=`.
73+
* - `profile_last_generated`: Date and time the profile was last
74+
* generated
75+
* * The operator must be `=` or `!=`. The `profile_last_generated` filter
76+
* also supports `<` and `>`.
77+
* The syntax is based on https://google.aip.dev/160.
7378
* Examples:
7479
* * `project_id = 12345 AND status_code = 1`
7580
* * `project_id = 12345 AND sensitivity_level = HIGH`
81+
* * `profile_last_generated < "2025-01-01T00:00:00.000Z"`
7682
* The length of this field should be no more than 500 characters.
7783
*/
7884
// const filter = 'abc123'

0 commit comments

Comments
 (0)