@google-cloud/dlp 3.3.0 → 4.0.1
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 +32 -0
- package/README.md +17 -17
- package/build/protos/google/privacy/dlp/v2/dlp.proto +426 -19
- package/build/protos/google/privacy/dlp/v2/storage.proto +82 -72
- package/build/protos/protos.d.ts +3582 -1813
- package/build/protos/protos.js +9560 -4922
- package/build/protos/protos.json +511 -113
- package/build/src/v2/dlp_service_client.d.ts +170 -34
- package/build/src/v2/dlp_service_client.js +2 -3
- package/build/src/v2/dlp_service_client.js.map +1 -1
- package/build/src/v2/index.js +2 -1
- package/build/src/v2/index.js.map +1 -1
- package/package.json +8 -8
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2022 Google LLC
|
|
2
2
|
//
|
|
3
3
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
// you may not use this file except in compliance with the License.
|
|
@@ -16,7 +16,6 @@ syntax = "proto3";
|
|
|
16
16
|
|
|
17
17
|
package google.privacy.dlp.v2;
|
|
18
18
|
|
|
19
|
-
import "google/api/annotations.proto";
|
|
20
19
|
import "google/api/resource.proto";
|
|
21
20
|
import "google/protobuf/timestamp.proto";
|
|
22
21
|
|
|
@@ -41,18 +40,6 @@ message InfoType {
|
|
|
41
40
|
string version = 2;
|
|
42
41
|
}
|
|
43
42
|
|
|
44
|
-
// A reference to a StoredInfoType to use with scanning.
|
|
45
|
-
message StoredType {
|
|
46
|
-
// Resource name of the requested `StoredInfoType`, for example
|
|
47
|
-
// `organizations/433245324/storedInfoTypes/432452342` or
|
|
48
|
-
// `projects/project-id/storedInfoTypes/432452342`.
|
|
49
|
-
string name = 1;
|
|
50
|
-
|
|
51
|
-
// Timestamp indicating when the version of the `StoredInfoType` used for
|
|
52
|
-
// inspection was created. Output-only field, populated by the system.
|
|
53
|
-
google.protobuf.Timestamp create_time = 2;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
43
|
// Categorization of results based on how likely they are to represent a match,
|
|
57
44
|
// based on the number of elements they contain which imply a match.
|
|
58
45
|
enum Likelihood {
|
|
@@ -73,6 +60,18 @@ enum Likelihood {
|
|
|
73
60
|
VERY_LIKELY = 5;
|
|
74
61
|
}
|
|
75
62
|
|
|
63
|
+
// A reference to a StoredInfoType to use with scanning.
|
|
64
|
+
message StoredType {
|
|
65
|
+
// Resource name of the requested `StoredInfoType`, for example
|
|
66
|
+
// `organizations/433245324/storedInfoTypes/432452342` or
|
|
67
|
+
// `projects/project-id/storedInfoTypes/432452342`.
|
|
68
|
+
string name = 1;
|
|
69
|
+
|
|
70
|
+
// Timestamp indicating when the version of the `StoredInfoType` used for
|
|
71
|
+
// inspection was created. Output-only field, populated by the system.
|
|
72
|
+
google.protobuf.Timestamp create_time = 2;
|
|
73
|
+
}
|
|
74
|
+
|
|
76
75
|
// Custom information type provided by the user. Used to find domain-specific
|
|
77
76
|
// sensitive information configurable to the data in question.
|
|
78
77
|
message CustomInfoType {
|
|
@@ -85,7 +84,7 @@ message CustomInfoType {
|
|
|
85
84
|
// Plane](https://en.wikipedia.org/wiki/Plane_%28Unicode%29#Basic_Multilingual_Plane)
|
|
86
85
|
// will be replaced with whitespace when scanning for matches, so the
|
|
87
86
|
// dictionary phrase "Sam Johnson" will match all three phrases "sam johnson",
|
|
88
|
-
//
|
|
87
|
+
// "Sam, Johnson", and "Sam (Johnson)". Additionally, the characters
|
|
89
88
|
// surrounding any match must be of a different type than the adjacent
|
|
90
89
|
// characters within the word, so letters must be next to non-letters and
|
|
91
90
|
// digits next to non-digits. For example, the dictionary word "jen" will
|
|
@@ -98,7 +97,7 @@ message CustomInfoType {
|
|
|
98
97
|
// [limits](https://cloud.google.com/dlp/limits) page contains details about
|
|
99
98
|
// the size limits of dictionaries. For dictionaries that do not fit within
|
|
100
99
|
// these constraints, consider using `LargeCustomDictionaryConfig` in the
|
|
101
|
-
//
|
|
100
|
+
// `StoredInfoType` API.
|
|
102
101
|
message Dictionary {
|
|
103
102
|
// Message defining a list of words or phrases to search for in the data.
|
|
104
103
|
message WordList {
|
|
@@ -124,7 +123,7 @@ message CustomInfoType {
|
|
|
124
123
|
// (https://github.com/google/re2/wiki/Syntax) can be found under the
|
|
125
124
|
// google/re2 repository on GitHub.
|
|
126
125
|
string pattern = 1;
|
|
127
|
-
|
|
126
|
+
|
|
128
127
|
// The index of the submatch to extract as findings. When not
|
|
129
128
|
// specified, the entire match is returned. No more than 3 may be included.
|
|
130
129
|
repeated int32 group_indexes = 2;
|
|
@@ -135,10 +134,12 @@ message CustomInfoType {
|
|
|
135
134
|
// [`CryptoReplaceFfxFpeConfig`](https://cloud.google.com/dlp/docs/reference/rest/v2/organizations.deidentifyTemplates#cryptoreplaceffxfpeconfig).
|
|
136
135
|
// These types of transformations are
|
|
137
136
|
// those that perform pseudonymization, thereby producing a "surrogate" as
|
|
138
|
-
//
|
|
137
|
+
// output. This should be used in conjunction with a field on the
|
|
139
138
|
// transformation such as `surrogate_info_type`. This CustomInfoType does
|
|
140
139
|
// not support the use of `detection_rules`.
|
|
141
|
-
message SurrogateType {
|
|
140
|
+
message SurrogateType {
|
|
141
|
+
|
|
142
|
+
}
|
|
142
143
|
|
|
143
144
|
// Deprecated; use `InspectionRuleSet` instead. Rule for modifying a
|
|
144
145
|
// `CustomInfoType` to alter behavior under certain circumstances, depending
|
|
@@ -284,6 +285,67 @@ message DatastoreOptions {
|
|
|
284
285
|
KindExpression kind = 2;
|
|
285
286
|
}
|
|
286
287
|
|
|
288
|
+
// Definitions of file type groups to scan. New types will be added to this
|
|
289
|
+
// list.
|
|
290
|
+
enum FileType {
|
|
291
|
+
// Includes all files.
|
|
292
|
+
FILE_TYPE_UNSPECIFIED = 0;
|
|
293
|
+
|
|
294
|
+
// Includes all file extensions not covered by another entry. Binary
|
|
295
|
+
// scanning attempts to convert the content of the file to utf_8 to scan
|
|
296
|
+
// the file.
|
|
297
|
+
// If you wish to avoid this fall back, specify one or more of the other
|
|
298
|
+
// FileType's in your storage scan.
|
|
299
|
+
BINARY_FILE = 1;
|
|
300
|
+
|
|
301
|
+
// Included file extensions:
|
|
302
|
+
// asc,asp, aspx, brf, c, cc,cfm, cgi, cpp, csv, cxx, c++, cs, css, dart,
|
|
303
|
+
// dat, dot, eml,, epbub, ged, go, h, hh, hpp, hxx, h++, hs, html, htm,
|
|
304
|
+
// mkd, markdown, m, ml, mli, perl, pl, plist, pm, php, phtml, pht,
|
|
305
|
+
// properties, py, pyw, rb, rbw, rs, rss, rc, scala, sh, sql, swift, tex,
|
|
306
|
+
// shtml, shtm, xhtml, lhs, ics, ini, java, js, json, kix, kml, ocaml, md,
|
|
307
|
+
// txt, text, tsv, vb, vcard, vcs, wml, xcodeproj, xml, xsl, xsd, yml, yaml.
|
|
308
|
+
TEXT_FILE = 2;
|
|
309
|
+
|
|
310
|
+
// Included file extensions:
|
|
311
|
+
// bmp, gif, jpg, jpeg, jpe, png.
|
|
312
|
+
// bytes_limit_per_file has no effect on image files.
|
|
313
|
+
// Image inspection is restricted to 'global', 'us', 'asia', and 'europe'.
|
|
314
|
+
IMAGE = 3;
|
|
315
|
+
|
|
316
|
+
// Word files >30 MB will be scanned as binary files.
|
|
317
|
+
// Included file extensions:
|
|
318
|
+
// docx, dotx, docm, dotm
|
|
319
|
+
WORD = 5;
|
|
320
|
+
|
|
321
|
+
// PDF files >30 MB will be scanned as binary files.
|
|
322
|
+
// Included file extensions:
|
|
323
|
+
// pdf
|
|
324
|
+
PDF = 6;
|
|
325
|
+
|
|
326
|
+
// Included file extensions:
|
|
327
|
+
// avro
|
|
328
|
+
AVRO = 7;
|
|
329
|
+
|
|
330
|
+
// Included file extensions:
|
|
331
|
+
// csv
|
|
332
|
+
CSV = 8;
|
|
333
|
+
|
|
334
|
+
// Included file extensions:
|
|
335
|
+
// tsv
|
|
336
|
+
TSV = 9;
|
|
337
|
+
|
|
338
|
+
// Powerpoint files >30 MB will be scanned as binary files.
|
|
339
|
+
// Included file extensions:
|
|
340
|
+
// pptx, pptm, potx, potm, pot
|
|
341
|
+
POWERPOINT = 11;
|
|
342
|
+
|
|
343
|
+
// Excel files >30 MB will be scanned as binary files.
|
|
344
|
+
// Included file extensions:
|
|
345
|
+
// xlsx, xlsm, xltx, xltm
|
|
346
|
+
EXCEL = 12;
|
|
347
|
+
}
|
|
348
|
+
|
|
287
349
|
// Message representing a set of files in a Cloud Storage bucket. Regular
|
|
288
350
|
// expressions are used to allow fine-grained control over which files in the
|
|
289
351
|
// bucket to include.
|
|
@@ -330,7 +392,7 @@ message CloudStorageRegexFileSet {
|
|
|
330
392
|
// [syntax](https://github.com/google/re2/wiki/Syntax); a guide can be found
|
|
331
393
|
// under the google/re2 repository on GitHub.
|
|
332
394
|
repeated string include_regex = 2;
|
|
333
|
-
|
|
395
|
+
|
|
334
396
|
// A list of regular expressions matching file paths to exclude. All files in
|
|
335
397
|
// the bucket that match at least one of these regular expressions will be
|
|
336
398
|
// excluded from the scan.
|
|
@@ -339,7 +401,6 @@ message CloudStorageRegexFileSet {
|
|
|
339
401
|
// [syntax](https://github.com/google/re2/wiki/Syntax); a guide can be found
|
|
340
402
|
// under the google/re2 repository on GitHub.
|
|
341
403
|
repeated string exclude_regex = 3;
|
|
342
|
-
// [syntax](https://github.com/google/re2/wiki/Syntax); a guide can be found
|
|
343
404
|
}
|
|
344
405
|
|
|
345
406
|
// Options defining a file or a set of files within a Google Cloud Storage
|
|
@@ -531,57 +592,6 @@ message StorageConfig {
|
|
|
531
592
|
TimespanConfig timespan_config = 6;
|
|
532
593
|
}
|
|
533
594
|
|
|
534
|
-
// Definitions of file type groups to scan. New types will be added to this
|
|
535
|
-
// list.
|
|
536
|
-
enum FileType {
|
|
537
|
-
// Includes all files.
|
|
538
|
-
FILE_TYPE_UNSPECIFIED = 0;
|
|
539
|
-
|
|
540
|
-
// Includes all file extensions not covered by another entry. Binary
|
|
541
|
-
// scanning attempts to convert the content of the file to utf_8 to scan
|
|
542
|
-
// the file.
|
|
543
|
-
// If you wish to avoid this fall back, specify one or more of the other
|
|
544
|
-
// FileType's in your storage scan.
|
|
545
|
-
BINARY_FILE = 1;
|
|
546
|
-
|
|
547
|
-
// Included file extensions:
|
|
548
|
-
// asc,asp, aspx, brf, c, cc,cfm, cgi, cpp, csv, cxx, c++, cs, css, dart,
|
|
549
|
-
// dat, dot, eml,, epbub, ged, go, h, hh, hpp, hxx, h++, hs, html, htm,
|
|
550
|
-
// mkd, markdown, m, ml, mli, perl, pl, plist, pm, php, phtml, pht,
|
|
551
|
-
// properties, py, pyw, rb, rbw, rs, rss, rc, scala, sh, sql, swift, tex,
|
|
552
|
-
// shtml, shtm, xhtml, lhs, ics, ini, java, js, json, kix, kml, ocaml, md,
|
|
553
|
-
// txt, text, tsv, vb, vcard, vcs, wml, xcodeproj, xml, xsl, xsd, yml, yaml.
|
|
554
|
-
TEXT_FILE = 2;
|
|
555
|
-
|
|
556
|
-
// Included file extensions:
|
|
557
|
-
// bmp, gif, jpg, jpeg, jpe, png.
|
|
558
|
-
// bytes_limit_per_file has no effect on image files.
|
|
559
|
-
// Image inspection is restricted to 'global', 'us', 'asia', and 'europe'.
|
|
560
|
-
IMAGE = 3;
|
|
561
|
-
|
|
562
|
-
// Word files >30 MB will be scanned as binary files.
|
|
563
|
-
// Included file extensions:
|
|
564
|
-
// docx, dotx, docm, dotm
|
|
565
|
-
WORD = 5;
|
|
566
|
-
|
|
567
|
-
// PDF files >30 MB will be scanned as binary files.
|
|
568
|
-
// Included file extensions:
|
|
569
|
-
// pdf
|
|
570
|
-
PDF = 6;
|
|
571
|
-
|
|
572
|
-
// Included file extensions:
|
|
573
|
-
// avro
|
|
574
|
-
AVRO = 7;
|
|
575
|
-
|
|
576
|
-
// Included file extensions:
|
|
577
|
-
// csv
|
|
578
|
-
CSV = 8;
|
|
579
|
-
|
|
580
|
-
// Included file extensions:
|
|
581
|
-
// tsv
|
|
582
|
-
TSV = 9;
|
|
583
|
-
}
|
|
584
|
-
|
|
585
595
|
// Configuration to control jobs where the content being inspected is outside
|
|
586
596
|
// of Google Cloud Platform.
|
|
587
597
|
message HybridOptions {
|