@google-cloud/dlp 4.1.1 → 4.3.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.
@@ -16,6 +16,7 @@ syntax = "proto3";
16
16
 
17
17
  package google.privacy.dlp.v2;
18
18
 
19
+ import "google/api/resource.proto";
19
20
  import "google/protobuf/timestamp.proto";
20
21
 
21
22
  option csharp_namespace = "Google.Cloud.Dlp.V2";
@@ -32,13 +33,39 @@ message InfoType {
32
33
  // creating a CustomInfoType, or one of the names listed
33
34
  // at https://cloud.google.com/dlp/docs/infotypes-reference when specifying
34
35
  // a built-in type. When sending Cloud DLP results to Data Catalog, infoType
35
- // names should conform to the pattern `[A-Za-z0-9$-_]{1,64}`.
36
+ // names should conform to the pattern `[A-Za-z0-9$_-]{1,64}`.
36
37
  string name = 1;
37
38
 
38
39
  // Optional version name for this InfoType.
39
40
  string version = 2;
40
41
  }
41
42
 
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
+
42
69
  // Categorization of results based on how likely they are to represent a match,
43
70
  // based on the number of elements they contain which imply a match.
44
71
  enum Likelihood {
@@ -411,7 +438,7 @@ message CloudStorageRegexFileSet {
411
438
  repeated string exclude_regex = 3;
412
439
  }
413
440
 
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
415
442
  // bucket.
416
443
  message CloudStorageOptions {
417
444
  // Set of files to scan.
@@ -547,7 +574,7 @@ message BigQueryOptions {
547
574
  // Shared message indicating Cloud storage type.
548
575
  message StorageConfig {
549
576
  // 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.
551
578
  message TimespanConfig {
552
579
  // Exclude files, tables, or rows older than this value.
553
580
  // If not set, no lower time limit is applied.
@@ -560,7 +587,8 @@ message StorageConfig {
560
587
  // Specification of the field containing the timestamp of scanned items.
561
588
  // Used for data sources like Datastore and BigQuery.
562
589
  //
563
- // For BigQuery:
590
+ // <b>For BigQuery</b>
591
+ //
564
592
  // If this value is not specified and the table was modified between the
565
593
  // given start and end times, the entire table will be scanned. If this
566
594
  // value is specified, then rows are filtered based on the given start and
@@ -569,17 +597,34 @@ message StorageConfig {
569
597
  // Valid data types of the provided BigQuery column are: `INTEGER`, `DATE`,
570
598
  // `TIMESTAMP`, and `DATETIME`.
571
599
  //
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
+ //
573
613
  // If this value is specified, then entities are filtered based on the given
574
614
  // start and end times. If an entity does not contain the provided timestamp
575
615
  // property or contains empty or invalid values, then it is included.
576
616
  // 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.
577
621
  FieldId timestamp_field = 3;
578
622
 
579
623
  // When the job is started by a JobTrigger we will automatically figure out
580
624
  // a valid start_time to avoid scanning files that have not been modified
581
625
  // 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.
583
628
  bool enable_auto_population_of_timespan_config = 4;
584
629
  }
585
630
 
@@ -587,7 +632,7 @@ message StorageConfig {
587
632
  // Google Cloud Datastore options.
588
633
  DatastoreOptions datastore_options = 2;
589
634
 
590
- // Google Cloud Storage options.
635
+ // Cloud Storage options.
591
636
  CloudStorageOptions cloud_storage_options = 3;
592
637
 
593
638
  // BigQuery options.