@google-cloud/dlp 4.1.0 → 4.2.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.
- package/CHANGELOG.md +22 -0
- package/build/protos/google/privacy/dlp/v2/dlp.proto +470 -119
- package/build/protos/google/privacy/dlp/v2/storage.proto +50 -6
- package/build/protos/protos.d.ts +5363 -1938
- package/build/protos/protos.js +14202 -5046
- package/build/protos/protos.json +330 -19
- package/build/src/v2/dlp_service_client.d.ts +140 -91
- package/build/src/v2/dlp_service_client.js +255 -151
- package/build/src/v2/dlp_service_client.js.map +1 -1
- package/package.json +2 -2
|
@@ -40,6 +40,32 @@ message InfoType {
|
|
|
40
40
|
string version = 2;
|
|
41
41
|
}
|
|
42
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
|
+
|
|
43
69
|
// Categorization of results based on how likely they are to represent a match,
|
|
44
70
|
// based on the number of elements they contain which imply a match.
|
|
45
71
|
enum Likelihood {
|
|
@@ -412,7 +438,7 @@ message CloudStorageRegexFileSet {
|
|
|
412
438
|
repeated string exclude_regex = 3;
|
|
413
439
|
}
|
|
414
440
|
|
|
415
|
-
// Options defining a file or a set of files within a
|
|
441
|
+
// Options defining a file or a set of files within a Cloud Storage
|
|
416
442
|
// bucket.
|
|
417
443
|
message CloudStorageOptions {
|
|
418
444
|
// Set of files to scan.
|
|
@@ -548,7 +574,7 @@ message BigQueryOptions {
|
|
|
548
574
|
// Shared message indicating Cloud storage type.
|
|
549
575
|
message StorageConfig {
|
|
550
576
|
// Configuration of the timespan of the items to include in scanning.
|
|
551
|
-
// Currently only supported when inspecting
|
|
577
|
+
// Currently only supported when inspecting Cloud Storage and BigQuery.
|
|
552
578
|
message TimespanConfig {
|
|
553
579
|
// Exclude files, tables, or rows older than this value.
|
|
554
580
|
// If not set, no lower time limit is applied.
|
|
@@ -561,7 +587,8 @@ message StorageConfig {
|
|
|
561
587
|
// Specification of the field containing the timestamp of scanned items.
|
|
562
588
|
// Used for data sources like Datastore and BigQuery.
|
|
563
589
|
//
|
|
564
|
-
// For BigQuery
|
|
590
|
+
// <b>For BigQuery</b>
|
|
591
|
+
//
|
|
565
592
|
// If this value is not specified and the table was modified between the
|
|
566
593
|
// given start and end times, the entire table will be scanned. If this
|
|
567
594
|
// value is specified, then rows are filtered based on the given start and
|
|
@@ -570,17 +597,34 @@ message StorageConfig {
|
|
|
570
597
|
// Valid data types of the provided BigQuery column are: `INTEGER`, `DATE`,
|
|
571
598
|
// `TIMESTAMP`, and `DATETIME`.
|
|
572
599
|
//
|
|
573
|
-
//
|
|
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
|
+
//
|
|
574
613
|
// If this value is specified, then entities are filtered based on the given
|
|
575
614
|
// start and end times. If an entity does not contain the provided timestamp
|
|
576
615
|
// property or contains empty or invalid values, then it is included.
|
|
577
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.
|
|
578
621
|
FieldId timestamp_field = 3;
|
|
579
622
|
|
|
580
623
|
// When the job is started by a JobTrigger we will automatically figure out
|
|
581
624
|
// a valid start_time to avoid scanning files that have not been modified
|
|
582
625
|
// since the last time the JobTrigger executed. This will be based on the
|
|
583
|
-
// 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.
|
|
584
628
|
bool enable_auto_population_of_timespan_config = 4;
|
|
585
629
|
}
|
|
586
630
|
|
|
@@ -588,7 +632,7 @@ message StorageConfig {
|
|
|
588
632
|
// Google Cloud Datastore options.
|
|
589
633
|
DatastoreOptions datastore_options = 2;
|
|
590
634
|
|
|
591
|
-
//
|
|
635
|
+
// Cloud Storage options.
|
|
592
636
|
CloudStorageOptions cloud_storage_options = 3;
|
|
593
637
|
|
|
594
638
|
// BigQuery options.
|