Skip to content
This repository was archived by the owner on Sep 27, 2023. It is now read-only.

Commit 27bb912

Browse files
feat: add Deidentify action (#742)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 471923438 Source-Link: googleapis/googleapis@62995d0 Source-Link: https://github.com/googleapis/googleapis-gen/commit/96ba1731c712a693995de75378948781af283739 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOTZiYTE3MzFjNzEyYTY5Mzk5NWRlNzUzNzg5NDg3ODFhZjI4MzczOSJ9 fix: allow passing gax instance to client constructor PiperOrigin-RevId: 470911839 Source-Link: googleapis/googleapis@3527566 Source-Link: https://github.com/googleapis/googleapis-gen/commit/f16a1d224f00a630ea43d6a9a1a31f566f45cdea Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZjE2YTFkMjI0ZjAwYTYzMGVhNDNkNmE5YTFhMzFmNTY2ZjQ1Y2RlYSJ9 feat: accept google-gax instance as a parameter Please see the documentation of the client constructor for details. PiperOrigin-RevId: 470332808 Source-Link: googleapis/googleapis@d4a2367 Source-Link: https://github.com/googleapis/googleapis-gen/commit/e97a1ac204ead4fe7341f91e72db7c6ac6016341 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZTk3YTFhYzIwNGVhZDRmZTczNDFmOTFlNzJkYjdjNmFjNjAxNjM0MSJ9
1 parent 655d6af commit 27bb912

13 files changed

Lines changed: 10225 additions & 3697 deletions

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

Lines changed: 470 additions & 119 deletions
Large diffs are not rendered by default.

protos/google/privacy/dlp/v2/storage.proto

Lines changed: 51 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ syntax = "proto3";
1616

1717
package google.privacy.dlp.v2;
1818

19+
import "google/api/resource.proto";
1920
import "google/protobuf/timestamp.proto";
2021

2122
option csharp_namespace = "Google.Cloud.Dlp.V2";
@@ -39,6 +40,32 @@ message InfoType {
3940
string version = 2;
4041
}
4142

43+
// Score is a summary of all elements in the data profile.
44+
// A higher number means more sensitive.
45+
message SensitivityScore {
46+
// Various score levels for resources.
47+
enum SensitivityScoreLevel {
48+
// Unused.
49+
SENSITIVITY_SCORE_UNSPECIFIED = 0;
50+
51+
// No sensitive information detected. Limited access.
52+
SENSITIVITY_LOW = 10;
53+
54+
// Medium risk - PII, potentially sensitive data, or fields with free-text
55+
// data that are at higher risk of having intermittent sensitive data.
56+
// Consider limiting access.
57+
SENSITIVITY_MODERATE = 20;
58+
59+
// High risk – SPII may be present. Exfiltration of data may lead to user
60+
// data loss. Re-identification of users may be possible. Consider limiting
61+
// usage and or removing SPII.
62+
SENSITIVITY_HIGH = 30;
63+
}
64+
65+
// The score applied to the resource.
66+
SensitivityScoreLevel score = 1;
67+
}
68+
4269
// Categorization of results based on how likely they are to represent a match,
4370
// based on the number of elements they contain which imply a match.
4471
enum Likelihood {
@@ -411,7 +438,7 @@ message CloudStorageRegexFileSet {
411438
repeated string exclude_regex = 3;
412439
}
413440

414-
// Options defining a file or a set of files within a Google Cloud Storage
441+
// Options defining a file or a set of files within a Cloud Storage
415442
// bucket.
416443
message CloudStorageOptions {
417444
// Set of files to scan.
@@ -547,7 +574,7 @@ message BigQueryOptions {
547574
// Shared message indicating Cloud storage type.
548575
message StorageConfig {
549576
// Configuration of the timespan of the items to include in scanning.
550-
// Currently only supported when inspecting Google Cloud Storage and BigQuery.
577+
// Currently only supported when inspecting Cloud Storage and BigQuery.
551578
message TimespanConfig {
552579
// Exclude files, tables, or rows older than this value.
553580
// If not set, no lower time limit is applied.
@@ -560,7 +587,8 @@ message StorageConfig {
560587
// Specification of the field containing the timestamp of scanned items.
561588
// Used for data sources like Datastore and BigQuery.
562589
//
563-
// For BigQuery:
590+
// <b>For BigQuery</b>
591+
//
564592
// If this value is not specified and the table was modified between the
565593
// given start and end times, the entire table will be scanned. If this
566594
// value is specified, then rows are filtered based on the given start and
@@ -569,25 +597,42 @@ message StorageConfig {
569597
// Valid data types of the provided BigQuery column are: `INTEGER`, `DATE`,
570598
// `TIMESTAMP`, and `DATETIME`.
571599
//
572-
// For Datastore:
600+
// If your BigQuery table is [partitioned at ingestion
601+
// time](https://cloud.google.com/bigquery/docs/partitioned-tables#ingestion_time),
602+
// you can use any of the following pseudo-columns as your timestamp field.
603+
// When used with Cloud DLP, these pseudo-column names are case sensitive.
604+
//
605+
// <ul>
606+
// <li><code>_PARTITIONTIME</code></li>
607+
// <li><code>_PARTITIONDATE</code></li>
608+
// <li><code>_PARTITION_LOAD_TIME</code></li>
609+
// </ul>
610+
//
611+
// <b>For Datastore</b>
612+
//
573613
// If this value is specified, then entities are filtered based on the given
574614
// start and end times. If an entity does not contain the provided timestamp
575615
// property or contains empty or invalid values, then it is included.
576616
// Valid data types of the provided timestamp property are: `TIMESTAMP`.
617+
//
618+
// See the
619+
// [known issue](https://cloud.google.com/dlp/docs/known-issues#bq-timespan)
620+
// related to this operation.
577621
FieldId timestamp_field = 3;
578622

579623
// When the job is started by a JobTrigger we will automatically figure out
580624
// a valid start_time to avoid scanning files that have not been modified
581625
// since the last time the JobTrigger executed. This will be based on the
582-
// time of the execution of the last run of the JobTrigger.
626+
// time of the execution of the last run of the JobTrigger or the timespan
627+
// end_time used in the last run of the JobTrigger.
583628
bool enable_auto_population_of_timespan_config = 4;
584629
}
585630

586631
oneof type {
587632
// Google Cloud Datastore options.
588633
DatastoreOptions datastore_options = 2;
589634

590-
// Google Cloud Storage options.
635+
// Cloud Storage options.
591636
CloudStorageOptions cloud_storage_options = 3;
592637

593638
// BigQuery options.

0 commit comments

Comments
 (0)