@google-cloud/dlp 6.4.0 → 6.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1624,6 +1624,25 @@ message RedactImageRequest {
1624
1624
 
1625
1625
  // The content must be PNG, JPEG, SVG or BMP.
1626
1626
  ByteContentItem byte_item = 7;
1627
+
1628
+ // The full resource name of the inspection template to use. Settings in the
1629
+ // main `inspect_config` field override the corresponding settings in this
1630
+ // inspection template.
1631
+ //
1632
+ // The merge behavior is as follows:
1633
+ //
1634
+ // - Singular field: The main field's value replaces the value of the
1635
+ // corresponding field in the template.
1636
+ // - Repeated fields: The field values are appended to the list defined in
1637
+ // the template.
1638
+ // - Sub-messages and groups: The fields are recursively merged.
1639
+ string inspect_template = 9;
1640
+
1641
+ // The full resource name of the de-identification template to use. Settings
1642
+ // in the main `image_redaction_configs` field override the corresponding
1643
+ // settings in this de-identification template. The request fails if the
1644
+ // type of the template's deidentify_config is not image_transformations.
1645
+ string deidentify_template = 10;
1627
1646
  }
1628
1647
 
1629
1648
  // Represents a color in the RGB color space.
@@ -1881,6 +1900,19 @@ message OutputStorageConfig {
1881
1900
  // compute a different privacy metric, or use different sets of
1882
1901
  // quasi-identifiers, cannot store their results in the same table.
1883
1902
  BigQueryTable table = 1;
1903
+
1904
+ // Store findings in an existing Cloud Storage bucket. Files will be
1905
+ // generated with the job ID and file part number as the filename and will
1906
+ // contain findings in textproto format as
1907
+ // [SaveToGcsFindingsOutput][google.privacy.dlp.v2.SaveToGcsFindingsOutput].
1908
+ // The filename will follow the naming convention `<job_id>-<shard_number>`.
1909
+ // Example: `my-job-id-2`.
1910
+ //
1911
+ // Supported for [Inspect jobs][google.privacy.dlp.v2.InspectJobConfig]. The
1912
+ // bucket must not be the same as the bucket being inspected. If storing
1913
+ // findings to Cloud Storage, the output schema field should not be set. If
1914
+ // set, it will be ignored.
1915
+ CloudStoragePath storage_path = 5;
1884
1916
  }
1885
1917
 
1886
1918
  // Schema used for writing the findings for Inspect jobs. This field is only
@@ -4228,6 +4260,21 @@ message Action {
4228
4260
  // Compatible with: Inspect
4229
4261
  message PublishFindingsToCloudDataCatalog {}
4230
4262
 
4263
+ // Publish findings of a DlpJob to Dataplex Universal Catalog as a
4264
+ // `sensitive-data-protection-job-result` aspect. For more information,
4265
+ // see [Send inspection results to Dataplex Universal Catalog as
4266
+ // aspects](https://cloud.google.com/sensitive-data-protection/docs/add-aspects-inspection-job).
4267
+ //
4268
+ // Aspects are stored in Dataplex Universal Catalog storage and are
4269
+ // governed by service-specific policies for Dataplex Universal Catalog. For
4270
+ // more information, see [Service Specific
4271
+ // Terms](https://cloud.google.com/terms/service-terms).
4272
+ //
4273
+ // Only a single instance of this action can be specified. This action is
4274
+ // allowed only if all resources being scanned are BigQuery tables.
4275
+ // Compatible with: Inspect
4276
+ message PublishFindingsToDataplexCatalog {}
4277
+
4231
4278
  // Create a de-identified copy of a storage bucket. Only compatible
4232
4279
  // with Cloud Storage buckets.
4233
4280
  //
@@ -4351,6 +4398,9 @@ message Action {
4351
4398
  PublishFindingsToCloudDataCatalog publish_findings_to_cloud_data_catalog =
4352
4399
  5;
4353
4400
 
4401
+ // Publish findings as an aspect to Dataplex Universal Catalog.
4402
+ PublishFindingsToDataplexCatalog publish_findings_to_dataplex_catalog = 10;
4403
+
4354
4404
  // Create a de-identified copy of the input data.
4355
4405
  Deidentify deidentify = 7;
4356
4406
 
@@ -4860,6 +4910,8 @@ message ListJobTriggersRequest {
4860
4910
  // - 'error_count' - Number of errors that have occurred while running.
4861
4911
  // * The operator must be `=` or `!=` for status and inspected_storage.
4862
4912
  //
4913
+ // The syntax is based on https://google.aip.dev/160.
4914
+ //
4863
4915
  // Examples:
4864
4916
  //
4865
4917
  // * inspected_storage = cloud_storage AND status = HEALTHY
@@ -5033,15 +5085,16 @@ message DataProfileAction {
5033
5085
  // Center for each profile.
5034
5086
  message PublishToSecurityCommandCenter {}
5035
5087
 
5036
- // Create Dataplex Catalog aspects for profiled resources with the aspect type
5037
- // Sensitive Data Protection Profile. To learn more about aspects, see
5038
- // https://cloud.google.com/sensitive-data-protection/docs/add-aspects.
5088
+ // Create Dataplex Universal Catalog aspects for profiled resources with the
5089
+ // aspect type Sensitive Data Protection Profile. To learn more about aspects,
5090
+ // see https://cloud.google.com/sensitive-data-protection/docs/add-aspects.
5039
5091
  message PublishToDataplexCatalog {
5040
- // Whether creating a Dataplex Catalog aspect for a profiled resource should
5041
- // lower the risk of the profile for that resource. This also lowers the
5042
- // data risk of resources at the lower levels of the resource hierarchy. For
5043
- // example, reducing the data risk of a table data profile also reduces the
5044
- // data risk of the constituent column data profiles.
5092
+ // Whether creating a Dataplex Universal Catalog aspect for a profiled
5093
+ // resource should lower the risk of the profile for that resource. This
5094
+ // also lowers the data risk of resources at the lower levels of the
5095
+ // resource hierarchy. For example, reducing the data risk of a table data
5096
+ // profile also reduces the data risk of the constituent column data
5097
+ // profiles.
5045
5098
  bool lower_data_risk_to_low = 1;
5046
5099
  }
5047
5100
 
@@ -5072,7 +5125,8 @@ message DataProfileAction {
5072
5125
  oneof format {
5073
5126
  // The namespaced name for the tag value to attach to resources. Must be
5074
5127
  // in the format `{parent_id}/{tag_key_short_name}/{short_name}`, for
5075
- // example, "123456/environment/prod".
5128
+ // example, "123456/environment/prod" for an organization parent, or
5129
+ // "my-project/environment/prod" for a project parent.
5076
5130
  string namespaced_value = 1;
5077
5131
  }
5078
5132
  }
@@ -5119,8 +5173,8 @@ message DataProfileAction {
5119
5173
  // Tags the profiled resources with the specified tag values.
5120
5174
  TagResources tag_resources = 8;
5121
5175
 
5122
- // Publishes a portion of each profile to Dataplex Catalog with the aspect
5123
- // type Sensitive Data Protection Profile.
5176
+ // Publishes a portion of each profile to Dataplex Universal Catalog with
5177
+ // the aspect type Sensitive Data Protection Profile.
5124
5178
  PublishToDataplexCatalog publish_to_dataplex_catalog = 9;
5125
5179
  }
5126
5180
  }
@@ -5921,6 +5975,18 @@ message FileStoreCollection {
5921
5975
  FileStoreRegexes include_regexes = 1
5922
5976
  [(google.api.field_behavior) = OPTIONAL];
5923
5977
  }
5978
+
5979
+ // Optional. To be included in the collection, a resource must meet all of the
5980
+ // following requirements:
5981
+ //
5982
+ // - If tag filters are provided, match all provided tag filters.
5983
+ // - If one or more patterns are specified, match at least one pattern.
5984
+ //
5985
+ // For a resource to match the tag filters, the resource must have all of the
5986
+ // provided tags attached. Tags refer to Resource Manager tags bound to the
5987
+ // resource or its ancestors. For more information, see [Manage
5988
+ // schedules](https://cloud.google.com/sensitive-data-protection/docs/profile-project-cloud-storage#manage-schedules).
5989
+ TagFilters include_tags = 2 [(google.api.field_behavior) = OPTIONAL];
5924
5990
  }
5925
5991
 
5926
5992
  // A collection of regular expressions to determine what file store to match
@@ -6561,6 +6627,8 @@ message ListDlpJobsRequest {
6561
6627
  // - 'start_time` - Corresponds to the time the job finished.
6562
6628
  // * The operator must be `=` or `!=`.
6563
6629
  //
6630
+ // The syntax is based on https://google.aip.dev/160.
6631
+ //
6564
6632
  // Examples:
6565
6633
  //
6566
6634
  // * inspected_storage = cloud_storage AND state = done
@@ -7290,13 +7358,13 @@ message ListProjectDataProfilesRequest {
7290
7358
  // * `project_id`
7291
7359
  // * `sensitivity_level desc`
7292
7360
  //
7293
- // Supported fields are:
7361
+ // Supported fields:
7294
7362
  //
7295
7363
  // - `project_id`: Google Cloud project ID
7296
- // - `sensitivity_level`: How sensitive the data in a project is, at most.
7297
- // - `data_risk_level`: How much risk is associated with this data.
7298
- // - `profile_last_generated`: When the profile was last updated in epoch
7299
- // seconds.
7364
+ // - `sensitivity_level`: How sensitive the data in a project is, at most
7365
+ // - `data_risk_level`: How much risk is associated with this data
7366
+ // - `profile_last_generated`: Date and time (in epoch seconds) the profile
7367
+ // was last generated
7300
7368
  string order_by = 4;
7301
7369
 
7302
7370
  // Allows filtering.
@@ -7307,17 +7375,24 @@ message ListProjectDataProfilesRequest {
7307
7375
  // * Restrictions can be combined by `AND` or `OR` logical operators. A
7308
7376
  // sequence of restrictions implicitly uses `AND`.
7309
7377
  // * A restriction has the form of `{field} {operator} {value}`.
7310
- // * Supported fields/values:
7311
- // - `sensitivity_level` - HIGH|MODERATE|LOW
7312
- // - `data_risk_level` - HIGH|MODERATE|LOW
7313
- // - `status_code` - an RPC status code as defined in
7378
+ // * Supported fields:
7379
+ // - `project_id`: the Google Cloud project ID
7380
+ // - `sensitivity_level`: HIGH|MODERATE|LOW
7381
+ // - `data_risk_level`: HIGH|MODERATE|LOW
7382
+ // - `status_code`: an RPC status code as defined in
7314
7383
  // https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
7315
- // * The operator must be `=` or `!=`.
7384
+ // - `profile_last_generated`: Date and time the profile was last
7385
+ // generated
7386
+ // * The operator must be `=` or `!=`. The `profile_last_generated` filter
7387
+ // also supports `<` and `>`.
7388
+ //
7389
+ // The syntax is based on https://google.aip.dev/160.
7316
7390
  //
7317
7391
  // Examples:
7318
7392
  //
7319
7393
  // * `project_id = 12345 AND status_code = 1`
7320
7394
  // * `project_id = 12345 AND sensitivity_level = HIGH`
7395
+ // * `profile_last_generated < "2025-01-01T00:00:00.000Z"`
7321
7396
  //
7322
7397
  // The length of this field should be no more than 500 characters.
7323
7398
  string filter = 5;
@@ -7383,23 +7458,29 @@ message ListTableDataProfilesRequest {
7383
7458
  // * Restrictions can be combined by `AND` or `OR` logical operators. A
7384
7459
  // sequence of restrictions implicitly uses `AND`.
7385
7460
  // * A restriction has the form of `{field} {operator} {value}`.
7386
- // * Supported fields/values:
7387
- // - `project_id` - The Google Cloud project ID.
7388
- // - `dataset_id` - The BigQuery dataset ID.
7389
- // - `table_id` - The ID of the BigQuery table.
7390
- // - `sensitivity_level` - HIGH|MODERATE|LOW
7391
- // - `data_risk_level` - HIGH|MODERATE|LOW
7461
+ // * Supported fields:
7462
+ // - `project_id`: The Google Cloud project ID
7463
+ // - `dataset_id`: The BigQuery dataset ID
7464
+ // - `table_id`: The ID of the BigQuery table
7465
+ // - `sensitivity_level`: HIGH|MODERATE|LOW
7466
+ // - `data_risk_level`: HIGH|MODERATE|LOW
7392
7467
  // - `resource_visibility`: PUBLIC|RESTRICTED
7393
- // - `status_code` - an RPC status code as defined in
7468
+ // - `status_code`: an RPC status code as defined in
7394
7469
  // https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
7470
+ // - `profile_last_generated`: Date and time the profile was last
7471
+ // generated
7395
7472
  //
7396
- // * The operator must be `=` or `!=`.
7473
+ // * The operator must be `=` or `!=`. The `profile_last_generated` filter
7474
+ // also supports `<` and `>`.
7475
+ //
7476
+ // The syntax is based on https://google.aip.dev/160.
7397
7477
  //
7398
7478
  // Examples:
7399
7479
  //
7400
7480
  // * `project_id = 12345 AND status_code = 1`
7401
7481
  // * `project_id = 12345 AND sensitivity_level = HIGH`
7402
7482
  // * `project_id = 12345 AND resource_visibility = PUBLIC`
7483
+ // * `profile_last_generated < "2025-01-01T00:00:00.000Z"`
7403
7484
  //
7404
7485
  // The length of this field should be no more than 500 characters.
7405
7486
  string filter = 5;
@@ -7463,26 +7544,32 @@ message ListColumnDataProfilesRequest {
7463
7544
  // * Restrictions can be combined by `AND` or `OR` logical operators. A
7464
7545
  // sequence of restrictions implicitly uses `AND`.
7465
7546
  // * A restriction has the form of `{field} {operator} {value}`.
7466
- // * Supported fields/values:
7467
- // - `table_data_profile_name` - The name of the related table data
7468
- // profile.
7469
- // - `project_id` - The Google Cloud project ID. (REQUIRED)
7470
- // - `dataset_id` - The BigQuery dataset ID. (REQUIRED)
7471
- // - `table_id` - The BigQuery table ID. (REQUIRED)
7472
- // - `field_id` - The ID of the BigQuery field.
7473
- // - `info_type` - The infotype detected in the resource.
7474
- // - `sensitivity_level` - HIGH|MEDIUM|LOW
7475
- // - `data_risk_level`: How much risk is associated with this data.
7476
- // - `status_code` - an RPC status code as defined in
7547
+ // * Supported fields:
7548
+ // - `table_data_profile_name`: The name of the related table data
7549
+ // profile
7550
+ // - `project_id`: The Google Cloud project ID (REQUIRED)
7551
+ // - `dataset_id`: The BigQuery dataset ID (REQUIRED)
7552
+ // - `table_id`: The BigQuery table ID (REQUIRED)
7553
+ // - `field_id`: The ID of the BigQuery field
7554
+ // - `info_type`: The infotype detected in the resource
7555
+ // - `sensitivity_level`: HIGH|MEDIUM|LOW
7556
+ // - `data_risk_level`: How much risk is associated with this data
7557
+ // - `status_code`: An RPC status code as defined in
7477
7558
  // https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
7559
+ // - `profile_last_generated`: Date and time the profile was last
7560
+ // generated
7478
7561
  // * The operator must be `=` for project_id, dataset_id, and table_id. Other
7479
- // filters also support `!=`.
7562
+ // filters also support `!=`. The `profile_last_generated` filter also
7563
+ // supports `<` and `>`.
7564
+ //
7565
+ // The syntax is based on https://google.aip.dev/160.
7480
7566
  //
7481
7567
  // Examples:
7482
7568
  //
7483
7569
  // * project_id = 12345 AND status_code = 1
7484
7570
  // * project_id = 12345 AND sensitivity_level = HIGH
7485
7571
  // * project_id = 12345 AND info_type = STREET_ADDRESS
7572
+ // * profile_last_generated < "2025-01-01T00:00:00.000Z"
7486
7573
  //
7487
7574
  // The length of this field should be no more than 500 characters.
7488
7575
  string filter = 5;
@@ -8112,8 +8199,9 @@ message FileStoreDataProfile {
8112
8199
  message Tag {
8113
8200
  // The namespaced name for the tag value to attach to Google Cloud resources.
8114
8201
  // Must be in the format `{parent_id}/{tag_key_short_name}/{short_name}`, for
8115
- // example, "123456/environment/prod". This is only set for Google Cloud
8116
- // resources.
8202
+ // example, "123456/environment/prod" for an organization parent, or
8203
+ // "my-project/environment/prod" for a project parent. This is only set for
8204
+ // Google Cloud resources.
8117
8205
  string namespaced_tag_value = 1;
8118
8206
 
8119
8207
  // The key of a tag key-value pair. For Google Cloud resources, this is the
@@ -8125,6 +8213,31 @@ message Tag {
8125
8213
  string value = 3;
8126
8214
  }
8127
8215
 
8216
+ // Tags to match against for filtering.
8217
+ message TagFilters {
8218
+ // Required. A resource must match ALL of the specified tag filters to be
8219
+ // included in the collection.
8220
+ repeated TagFilter tag_filters = 1 [(google.api.field_behavior) = REQUIRED];
8221
+ }
8222
+
8223
+ // A single tag to filter against.
8224
+ message TagFilter {
8225
+ // Tag filter formats. Tags refer to Resource Manager tags bound to the
8226
+ // resource or its ancestors.
8227
+ oneof format {
8228
+ // The namespaced name for the tag value. Must be in the format
8229
+ // `{parent_id}/{tag_key_short_name}/{short_name}`, for example,
8230
+ // "123456/environment/prod" for an organization parent, or
8231
+ // "my-project/environment/prod" for a project parent.
8232
+ string namespaced_tag_value = 1;
8233
+
8234
+ // The namespaced name for the tag key. Must be in the format
8235
+ // `{parent_id}/{tag_key_short_name}`, for example, "123456/sensitive" for
8236
+ // an organization parent, or "my-project/sensitive" for a project parent.
8237
+ string namespaced_tag_key = 2;
8238
+ }
8239
+ }
8240
+
8128
8241
  // A related resource.
8129
8242
  // Examples:
8130
8243
  //
@@ -8258,21 +8371,26 @@ message ListFileStoreDataProfilesRequest {
8258
8371
  // * Restrictions can be combined by `AND` or `OR` logical operators. A
8259
8372
  // sequence of restrictions implicitly uses `AND`.
8260
8373
  // * A restriction has the form of `{field} {operator} {value}`.
8261
- // * Supported fields/values:
8262
- // - `project_id` - The Google Cloud project ID.
8263
- // - `account_id` - The AWS account ID.
8264
- // - `file_store_path` - The path like "gs://bucket".
8265
- // - `data_source_type` - The profile's data source type, like
8266
- // "google/storage/bucket".
8267
- // - `data_storage_location` - The location where the file store's data is
8268
- // stored, like "us-central1".
8269
- // - `sensitivity_level` - HIGH|MODERATE|LOW
8270
- // - `data_risk_level` - HIGH|MODERATE|LOW
8374
+ // * Supported fields:
8375
+ // - `project_id`: The Google Cloud project ID
8376
+ // - `account_id`: The AWS account ID
8377
+ // - `file_store_path`: The path like "gs://bucket"
8378
+ // - `data_source_type`: The profile's data source type, like
8379
+ // "google/storage/bucket"
8380
+ // - `data_storage_location`: The location where the file store's data is
8381
+ // stored, like "us-central1"
8382
+ // - `sensitivity_level`: HIGH|MODERATE|LOW
8383
+ // - `data_risk_level`: HIGH|MODERATE|LOW
8271
8384
  // - `resource_visibility`: PUBLIC|RESTRICTED
8272
- // - `status_code` - an RPC status code as defined in
8385
+ // - `status_code`: an RPC status code as defined in
8273
8386
  // https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
8387
+ // - `profile_last_generated`: Date and time the profile was last
8388
+ // generated
8274
8389
  //
8275
- // * The operator must be `=` or `!=`.
8390
+ // * The operator must be `=` or `!=`. The `profile_last_generated` filter
8391
+ // also supports `<` and `>`.
8392
+ //
8393
+ // The syntax is based on https://google.aip.dev/160.
8276
8394
  //
8277
8395
  // Examples:
8278
8396
  //
@@ -8280,6 +8398,7 @@ message ListFileStoreDataProfilesRequest {
8280
8398
  // * `project_id = 12345 AND sensitivity_level = HIGH`
8281
8399
  // * `project_id = 12345 AND resource_visibility = PUBLIC`
8282
8400
  // * `file_store_path = "gs://mybucket"`
8401
+ // * `profile_last_generated < "2025-01-01T00:00:00.000Z"`
8283
8402
  //
8284
8403
  // The length of this field should be no more than 500 characters.
8285
8404
  string filter = 5 [(google.api.field_behavior) = OPTIONAL];
@@ -8451,6 +8570,8 @@ message ListConnectionsRequest {
8451
8570
  string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
8452
8571
 
8453
8572
  // Optional. Supported field/value: `state` - MISSING|AVAILABLE|ERROR
8573
+ //
8574
+ // The syntax is based on https://google.aip.dev/160.
8454
8575
  string filter = 4 [(google.api.field_behavior) = OPTIONAL];
8455
8576
  }
8456
8577
 
@@ -8474,6 +8595,8 @@ message SearchConnectionsRequest {
8474
8595
  string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
8475
8596
 
8476
8597
  // Optional. Supported field/value: - `state` - MISSING|AVAILABLE|ERROR
8598
+ //
8599
+ // The syntax is based on https://google.aip.dev/160.
8477
8600
  string filter = 4 [(google.api.field_behavior) = OPTIONAL];
8478
8601
  }
8479
8602