@google-cloud/dlp 5.2.0 → 5.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.
- package/CHANGELOG.md +7 -0
- package/README.md +6 -0
- package/build/protos/google/privacy/dlp/v2/dlp.proto +598 -106
- package/build/protos/google/privacy/dlp/v2/storage.proto +41 -18
- package/build/protos/protos.d.ts +2107 -16
- package/build/protos/protos.js +10643 -4861
- package/build/protos/protos.json +710 -17
- package/build/src/v2/dlp_service_client.d.ts +1149 -133
- package/build/src/v2/dlp_service_client.js +1049 -85
- package/build/src/v2/dlp_service_client_config.json +30 -0
- package/package.json +3 -3
|
@@ -31,9 +31,11 @@ option ruby_package = "Google::Cloud::Dlp::V2";
|
|
|
31
31
|
message InfoType {
|
|
32
32
|
// Name of the information type. Either a name of your choosing when
|
|
33
33
|
// creating a CustomInfoType, or one of the names listed
|
|
34
|
-
// at
|
|
35
|
-
//
|
|
36
|
-
//
|
|
34
|
+
// at
|
|
35
|
+
// https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference
|
|
36
|
+
// when specifying a built-in type. When sending Cloud DLP results to Data
|
|
37
|
+
// Catalog, infoType names should conform to the pattern
|
|
38
|
+
// `[A-Za-z0-9$_-]{1,64}`.
|
|
37
39
|
string name = 1;
|
|
38
40
|
|
|
39
41
|
// Optional version name for this InfoType.
|
|
@@ -87,7 +89,7 @@ message SensitivityScore {
|
|
|
87
89
|
//
|
|
88
90
|
// For more information about each likelihood level
|
|
89
91
|
// and how likelihood works, see [Match
|
|
90
|
-
// likelihood](https://cloud.google.com/
|
|
92
|
+
// likelihood](https://cloud.google.com/sensitive-data-protection/docs/likelihood).
|
|
91
93
|
enum Likelihood {
|
|
92
94
|
// Default value; same as POSSIBLE.
|
|
93
95
|
LIKELIHOOD_UNSPECIFIED = 0;
|
|
@@ -142,10 +144,10 @@ message CustomInfoType {
|
|
|
142
144
|
// Dictionary words containing a large number of characters that are not
|
|
143
145
|
// letters or digits may result in unexpected findings because such characters
|
|
144
146
|
// are treated as whitespace. The
|
|
145
|
-
// [limits](https://cloud.google.com/
|
|
146
|
-
// the size limits of dictionaries. For dictionaries
|
|
147
|
-
// these constraints, consider using
|
|
148
|
-
// `StoredInfoType` API.
|
|
147
|
+
// [limits](https://cloud.google.com/sensitive-data-protection/limits) page
|
|
148
|
+
// contains details about the size limits of dictionaries. For dictionaries
|
|
149
|
+
// that do not fit within these constraints, consider using
|
|
150
|
+
// `LargeCustomDictionaryConfig` in the `StoredInfoType` API.
|
|
149
151
|
message Dictionary {
|
|
150
152
|
// Message defining a list of words or phrases to search for in the data.
|
|
151
153
|
message WordList {
|
|
@@ -155,6 +157,7 @@ message CustomInfoType {
|
|
|
155
157
|
repeated string words = 1;
|
|
156
158
|
}
|
|
157
159
|
|
|
160
|
+
// The potential places the data can be read from.
|
|
158
161
|
oneof source {
|
|
159
162
|
// List of words or phrases to search for.
|
|
160
163
|
WordList word_list = 1;
|
|
@@ -179,7 +182,7 @@ message CustomInfoType {
|
|
|
179
182
|
|
|
180
183
|
// Message for detecting output from deidentification transformations
|
|
181
184
|
// such as
|
|
182
|
-
// [`CryptoReplaceFfxFpeConfig`](https://cloud.google.com/
|
|
185
|
+
// [`CryptoReplaceFfxFpeConfig`](https://cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/organizations.deidentifyTemplates#cryptoreplaceffxfpeconfig).
|
|
183
186
|
// These types of transformations are
|
|
184
187
|
// those that perform pseudonymization, thereby producing a "surrogate" as
|
|
185
188
|
// output. This should be used in conjunction with a field on the
|
|
@@ -199,7 +202,7 @@ message CustomInfoType {
|
|
|
199
202
|
// if you want to modify the likelihood of an entire column of findngs,
|
|
200
203
|
// set this to 1. For more information, see
|
|
201
204
|
// [Hotword example: Set the match likelihood of a table column]
|
|
202
|
-
// (https://cloud.google.com/
|
|
205
|
+
// (https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes-likelihood#match-column-values).
|
|
203
206
|
int32 window_before = 1;
|
|
204
207
|
|
|
205
208
|
// Number of characters after the finding to consider.
|
|
@@ -209,6 +212,7 @@ message CustomInfoType {
|
|
|
209
212
|
// Message for specifying an adjustment to the likelihood of a finding as
|
|
210
213
|
// part of a detection rule.
|
|
211
214
|
message LikelihoodAdjustment {
|
|
215
|
+
// How the likelihood will be modified.
|
|
212
216
|
oneof adjustment {
|
|
213
217
|
// Set the likelihood of a finding to a fixed value.
|
|
214
218
|
Likelihood fixed_likelihood = 1;
|
|
@@ -243,19 +247,21 @@ message CustomInfoType {
|
|
|
243
247
|
// For tabular data, if you want to modify the likelihood of an entire
|
|
244
248
|
// column of findngs, see
|
|
245
249
|
// [Hotword example: Set the match likelihood of a table column]
|
|
246
|
-
// (https://cloud.google.com/
|
|
250
|
+
// (https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes-likelihood#match-column-values).
|
|
247
251
|
Proximity proximity = 2;
|
|
248
252
|
|
|
249
253
|
// Likelihood adjustment to apply to all matching findings.
|
|
250
254
|
LikelihoodAdjustment likelihood_adjustment = 3;
|
|
251
255
|
}
|
|
252
256
|
|
|
257
|
+
// Type of hotword rule.
|
|
253
258
|
oneof type {
|
|
254
259
|
// Hotword-based detection rule.
|
|
255
260
|
HotwordRule hotword_rule = 1;
|
|
256
261
|
}
|
|
257
262
|
}
|
|
258
263
|
|
|
264
|
+
// Type of exclusion rule.
|
|
259
265
|
enum ExclusionType {
|
|
260
266
|
// A finding of this custom info type will not be excluded from results.
|
|
261
267
|
EXCLUSION_TYPE_UNSPECIFIED = 0;
|
|
@@ -278,6 +284,7 @@ message CustomInfoType {
|
|
|
278
284
|
// the rule. Defaults to `VERY_LIKELY` if not specified.
|
|
279
285
|
Likelihood likelihood = 6;
|
|
280
286
|
|
|
287
|
+
// Type of custom detector.
|
|
281
288
|
oneof type {
|
|
282
289
|
// A list of phrases to detect as a CustomInfoType.
|
|
283
290
|
Dictionary dictionary = 2;
|
|
@@ -365,8 +372,9 @@ enum FileType {
|
|
|
365
372
|
// dat, dot, eml,, epbub, ged, go, h, hh, hpp, hxx, h++, hs, html, htm,
|
|
366
373
|
// mkd, markdown, m, ml, mli, perl, pl, plist, pm, php, phtml, pht,
|
|
367
374
|
// properties, py, pyw, rb, rbw, rs, rss, rc, scala, sh, sql, swift, tex,
|
|
368
|
-
// shtml, shtm, xhtml, lhs, ics, ini, java, js, json, kix, kml,
|
|
369
|
-
// txt, text, tsv, vb, vcard, vcs, wml, xcodeproj, xml, xsl, xsd,
|
|
375
|
+
// shtml, shtm, xhtml, lhs, ics, ini, java, js, json, jsonl, kix, kml,
|
|
376
|
+
// ocaml, md, txt, text, tsv, vb, vcard, vcs, wml, xcodeproj, xml, xsl, xsd,
|
|
377
|
+
// yml, yaml.
|
|
370
378
|
TEXT_FILE = 2;
|
|
371
379
|
|
|
372
380
|
// Included file extensions:
|
|
@@ -498,6 +506,7 @@ message CloudStorageOptions {
|
|
|
498
506
|
// in conjunction with bytes_limit_per_file. If not specified, scanning would
|
|
499
507
|
// start from the top.
|
|
500
508
|
enum SampleMethod {
|
|
509
|
+
// No sampling.
|
|
501
510
|
SAMPLE_METHOD_UNSPECIFIED = 0;
|
|
502
511
|
|
|
503
512
|
// Scan from the top (default).
|
|
@@ -517,7 +526,7 @@ message CloudStorageOptions {
|
|
|
517
526
|
// This field can't be set if de-identification is requested. For certain file
|
|
518
527
|
// types, setting this field has no effect. For more information, see [Limits
|
|
519
528
|
// on bytes scanned per
|
|
520
|
-
// file](https://cloud.google.com/
|
|
529
|
+
// file](https://cloud.google.com/sensitive-data-protection/docs/supported-file-types#max-byte-size-per-file).
|
|
521
530
|
int64 bytes_limit_per_file = 4;
|
|
522
531
|
|
|
523
532
|
// Max percentage of bytes to scan from a file. The rest are omitted. The
|
|
@@ -527,7 +536,7 @@ message CloudStorageOptions {
|
|
|
527
536
|
// This field can't be set if de-identification is requested. For certain file
|
|
528
537
|
// types, setting this field has no effect. For more information, see [Limits
|
|
529
538
|
// on bytes scanned per
|
|
530
|
-
// file](https://cloud.google.com/
|
|
539
|
+
// file](https://cloud.google.com/sensitive-data-protection/docs/supported-file-types#max-byte-size-per-file).
|
|
531
540
|
int32 bytes_limit_per_file_percent = 8;
|
|
532
541
|
|
|
533
542
|
// List of file type groups to include in the scan.
|
|
@@ -539,6 +548,7 @@ message CloudStorageOptions {
|
|
|
539
548
|
// Image inspection is restricted to 'global', 'us', 'asia', and 'europe'.
|
|
540
549
|
repeated FileType file_types = 5;
|
|
541
550
|
|
|
551
|
+
// How to sample the data.
|
|
542
552
|
SampleMethod sample_method = 6;
|
|
543
553
|
|
|
544
554
|
// Limits the number of files to scan to this percentage of the input FileSet.
|
|
@@ -556,8 +566,8 @@ message CloudStorageFileSet {
|
|
|
556
566
|
|
|
557
567
|
// Message representing a single file or path in Cloud Storage.
|
|
558
568
|
message CloudStoragePath {
|
|
559
|
-
// A
|
|
560
|
-
// Example: gs://[BUCKET_NAME]/dictionary.txt
|
|
569
|
+
// A URL representing a file or path (no wildcards) in Cloud Storage.
|
|
570
|
+
// Example: `gs://[BUCKET_NAME]/dictionary.txt`
|
|
561
571
|
string path = 1;
|
|
562
572
|
}
|
|
563
573
|
|
|
@@ -567,6 +577,7 @@ message BigQueryOptions {
|
|
|
567
577
|
// in conjunction with either rows_limit or rows_limit_percent. If not
|
|
568
578
|
// specified, rows are scanned in the order BigQuery reads them.
|
|
569
579
|
enum SampleMethod {
|
|
580
|
+
// No sampling.
|
|
570
581
|
SAMPLE_METHOD_UNSPECIFIED = 0;
|
|
571
582
|
|
|
572
583
|
// Scan groups of rows in the order BigQuery provides (default). Multiple
|
|
@@ -599,8 +610,14 @@ message BigQueryOptions {
|
|
|
599
610
|
// 100 means no limit. Defaults to 0. Only one of rows_limit and
|
|
600
611
|
// rows_limit_percent can be specified. Cannot be used in conjunction with
|
|
601
612
|
// TimespanConfig.
|
|
613
|
+
//
|
|
614
|
+
// Caution: A [known
|
|
615
|
+
// issue](https://cloud.google.com/sensitive-data-protection/docs/known-issues#bq-sampling)
|
|
616
|
+
// is causing the `rowsLimitPercent` field to behave unexpectedly. We
|
|
617
|
+
// recommend using `rowsLimit` instead.
|
|
602
618
|
int32 rows_limit_percent = 6;
|
|
603
619
|
|
|
620
|
+
// How to sample the data.
|
|
604
621
|
SampleMethod sample_method = 4;
|
|
605
622
|
|
|
606
623
|
// References to fields excluded from scanning. This allows you to skip
|
|
@@ -662,7 +679,8 @@ message StorageConfig {
|
|
|
662
679
|
// Valid data types of the provided timestamp property are: `TIMESTAMP`.
|
|
663
680
|
//
|
|
664
681
|
// See the
|
|
665
|
-
// [known
|
|
682
|
+
// [known
|
|
683
|
+
// issue](https://cloud.google.com/sensitive-data-protection/docs/known-issues#bq-timespan)
|
|
666
684
|
// related to this operation.
|
|
667
685
|
FieldId timestamp_field = 3;
|
|
668
686
|
|
|
@@ -674,6 +692,7 @@ message StorageConfig {
|
|
|
674
692
|
bool enable_auto_population_of_timespan_config = 4;
|
|
675
693
|
}
|
|
676
694
|
|
|
695
|
+
// Type of storage system to inspect.
|
|
677
696
|
oneof type {
|
|
678
697
|
// Google Cloud Datastore options.
|
|
679
698
|
DatastoreOptions datastore_options = 2;
|
|
@@ -688,6 +707,7 @@ message StorageConfig {
|
|
|
688
707
|
HybridOptions hybrid_options = 9;
|
|
689
708
|
}
|
|
690
709
|
|
|
710
|
+
// Configuration of the timespan of the items to include in scanning.
|
|
691
711
|
TimespanConfig timespan_config = 6;
|
|
692
712
|
}
|
|
693
713
|
|
|
@@ -797,9 +817,12 @@ message Key {
|
|
|
797
817
|
|
|
798
818
|
// Message for a unique key indicating a record that contains a finding.
|
|
799
819
|
message RecordKey {
|
|
820
|
+
// Type of key
|
|
800
821
|
oneof type {
|
|
822
|
+
// BigQuery key
|
|
801
823
|
DatastoreKey datastore_key = 2;
|
|
802
824
|
|
|
825
|
+
// Datastore key
|
|
803
826
|
BigQueryKey big_query_key = 3;
|
|
804
827
|
}
|
|
805
828
|
|