@google-cloud/dlp 3.2.1 → 3.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 CHANGED
@@ -4,6 +4,13 @@
4
4
 
5
5
  [1]: https://www.npmjs.com/package/PACKAGE NAME?activeTab=versions
6
6
 
7
+ ## [3.3.0](https://www.github.com/googleapis/nodejs-dlp/compare/v3.2.1...v3.3.0) (2021-12-03)
8
+
9
+
10
+ ### Features
11
+
12
+ * added deidentify replacement dictionaries feat: added field for BigQuery inspect template inclusion lists feat: added field to support infotype versioning ([#667](https://www.github.com/googleapis/nodejs-dlp/issues/667)) ([7f8b9d6](https://www.github.com/googleapis/nodejs-dlp/commit/7f8b9d6dc33837f5b93a0b2269ca79572520b14c))
13
+
7
14
  ### [3.2.1](https://www.github.com/googleapis/nodejs-dlp/compare/v3.2.0...v3.2.1) (2021-11-03)
8
15
 
9
16
 
@@ -1,4 +1,4 @@
1
- // Copyright 2020 Google LLC
1
+ // Copyright 2021 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.
@@ -360,6 +360,10 @@ service DlpService {
360
360
  post: "/v2/{parent=projects/*/locations/*}/jobTriggers"
361
361
  body: "*"
362
362
  }
363
+ additional_bindings {
364
+ post: "/v2/{parent=organizations/*/locations/*}/jobTriggers"
365
+ body: "*"
366
+ }
363
367
  };
364
368
  option (google.api.method_signature) = "parent,job_trigger";
365
369
  }
@@ -374,6 +378,10 @@ service DlpService {
374
378
  patch: "/v2/{name=projects/*/locations/*/jobTriggers/*}"
375
379
  body: "*"
376
380
  }
381
+ additional_bindings {
382
+ patch: "/v2/{name=organizations/*/locations/*/jobTriggers/*}"
383
+ body: "*"
384
+ }
377
385
  };
378
386
  option (google.api.method_signature) = "name,job_trigger,update_mask";
379
387
  }
@@ -381,9 +389,6 @@ service DlpService {
381
389
  // Inspect hybrid content and store findings to a trigger. The inspection
382
390
  // will be processed asynchronously. To review the findings monitor the
383
391
  // jobs within the trigger.
384
- // Early access feature is in a pre-release state and might change or have
385
- // limited support. For more information, see
386
- // https://cloud.google.com/products#product-launch-stages.
387
392
  rpc HybridInspectJobTrigger(HybridInspectJobTriggerRequest) returns (HybridInspectResponse) {
388
393
  option (google.api.http) = {
389
394
  post: "/v2/{name=projects/*/locations/*/jobTriggers/*}:hybridInspect"
@@ -400,6 +405,9 @@ service DlpService {
400
405
  additional_bindings {
401
406
  get: "/v2/{name=projects/*/locations/*/jobTriggers/*}"
402
407
  }
408
+ additional_bindings {
409
+ get: "/v2/{name=organizations/*/locations/*/jobTriggers/*}"
410
+ }
403
411
  };
404
412
  option (google.api.method_signature) = "name";
405
413
  }
@@ -412,6 +420,9 @@ service DlpService {
412
420
  additional_bindings {
413
421
  get: "/v2/{parent=projects/*/locations/*}/jobTriggers"
414
422
  }
423
+ additional_bindings {
424
+ get: "/v2/{parent=organizations/*/locations/*}/jobTriggers"
425
+ }
415
426
  };
416
427
  option (google.api.method_signature) = "parent";
417
428
  }
@@ -424,6 +435,9 @@ service DlpService {
424
435
  additional_bindings {
425
436
  delete: "/v2/{name=projects/*/locations/*/jobTriggers/*}"
426
437
  }
438
+ additional_bindings {
439
+ delete: "/v2/{name=organizations/*/locations/*/jobTriggers/*}"
440
+ }
427
441
  };
428
442
  option (google.api.method_signature) = "name";
429
443
  }
@@ -470,6 +484,9 @@ service DlpService {
470
484
  additional_bindings {
471
485
  get: "/v2/{parent=projects/*/locations/*}/dlpJobs"
472
486
  }
487
+ additional_bindings {
488
+ get: "/v2/{parent=organizations/*/locations/*}/dlpJobs"
489
+ }
473
490
  };
474
491
  option (google.api.method_signature) = "parent";
475
492
  }
@@ -623,11 +640,8 @@ service DlpService {
623
640
  }
624
641
 
625
642
  // Inspect hybrid content and store findings to a job.
626
- // To review the findings inspect the job. Inspection will occur
643
+ // To review the findings, inspect the job. Inspection will occur
627
644
  // asynchronously.
628
- // Early access feature is in a pre-release state and might change or have
629
- // limited support. For more information, see
630
- // https://cloud.google.com/products#product-launch-stages.
631
645
  rpc HybridInspectDlpJob(HybridInspectDlpJobRequest) returns (HybridInspectResponse) {
632
646
  option (google.api.http) = {
633
647
  post: "/v2/{name=projects/*/locations/*/dlpJobs/*}:hybridInspect"
@@ -638,9 +652,6 @@ service DlpService {
638
652
 
639
653
  // Finish a running hybrid DlpJob. Triggers the finalization steps and running
640
654
  // of any enabled actions that have not yet run.
641
- // Early access feature is in a pre-release state and might change or have
642
- // limited support. For more information, see
643
- // https://cloud.google.com/products#product-launch-stages.
644
655
  rpc FinishDlpJob(FinishDlpJobRequest) returns (google.protobuf.Empty) {
645
656
  option (google.api.http) = {
646
657
  post: "/v2/{name=projects/*/locations/*/dlpJobs/*}:finish"
@@ -708,7 +719,8 @@ message InspectionRuleSet {
708
719
  // When used with redactContent only info_types and min_likelihood are currently
709
720
  // used.
710
721
  message InspectConfig {
711
- // Configuration to control the number of findings returned.
722
+ // Configuration to control the number of findings returned. Cannot be set if
723
+ // de-identification is requested.
712
724
  message FindingLimits {
713
725
  // Max findings configuration per infoType, per content item or long
714
726
  // running DlpJob.
@@ -782,7 +794,9 @@ message InspectConfig {
782
794
 
783
795
  // Container for bytes to inspect or redact.
784
796
  message ByteContentItem {
785
- // The type of data being sent for inspection.
797
+ // The type of data being sent for inspection. To learn more, see
798
+ // [Supported file
799
+ // types](https://cloud.google.com/dlp/docs/supported-file-types).
786
800
  enum BytesType {
787
801
  // Unused
788
802
  BYTES_TYPE_UNSPECIFIED = 0;
@@ -845,9 +859,9 @@ message ContentItem {
845
859
  }
846
860
  }
847
861
 
848
- // Structured content to inspect. Up to 50,000 `Value`s per request allowed.
849
- // See https://cloud.google.com/dlp/docs/inspecting-text#inspecting_a_table to
850
- // learn more.
862
+ // Structured content to inspect. Up to 50,000 `Value`s per request allowed. See
863
+ // https://cloud.google.com/dlp/docs/inspecting-structured-text#inspecting_a_table
864
+ // to learn more.
851
865
  message Table {
852
866
  // Values of the row.
853
867
  message Row {
@@ -945,6 +959,9 @@ message Finding {
945
959
  string job_name = 13 [(google.api.resource_reference) = {
946
960
  type: "dlp.googleapis.com/DlpJob"
947
961
  }];
962
+
963
+ // The unique finding id.
964
+ string finding_id = 15;
948
965
  }
949
966
 
950
967
  // Specifies the location of the finding.
@@ -1488,16 +1505,13 @@ message InspectDataSourceDetails {
1488
1505
  repeated InfoTypeStats info_type_stats = 3;
1489
1506
 
1490
1507
  // Statistics related to the processing of hybrid inspect.
1491
- // Early access feature is in a pre-release state and might change or have
1492
- // limited support. For more information, see
1493
- // https://cloud.google.com/products#product-launch-stages.
1494
1508
  HybridInspectStatistics hybrid_stats = 7;
1495
1509
  }
1496
1510
 
1497
1511
  // The configuration used for this job.
1498
1512
  RequestedOptions requested_options = 2;
1499
1513
 
1500
- // A summary of the outcome of this inspect job.
1514
+ // A summary of the outcome of this inspection job.
1501
1515
  Result result = 3;
1502
1516
  }
1503
1517
 
@@ -2200,7 +2214,7 @@ message TransformationErrorHandling {
2200
2214
  // A rule for transforming a value.
2201
2215
  message PrimitiveTransformation {
2202
2216
  oneof transformation {
2203
- // Replace
2217
+ // Replace with a specified value.
2204
2218
  ReplaceValueConfig replace_config = 1;
2205
2219
 
2206
2220
  // Redact
@@ -2232,6 +2246,9 @@ message PrimitiveTransformation {
2232
2246
 
2233
2247
  // Deterministic Crypto
2234
2248
  CryptoDeterministicConfig crypto_deterministic_config = 12;
2249
+
2250
+ // Replace with a value randomly drawn (with replacement) from a dictionary.
2251
+ ReplaceDictionaryConfig replace_dictionary_config = 13;
2235
2252
  }
2236
2253
  }
2237
2254
 
@@ -2282,7 +2299,9 @@ message CryptoHashConfig {
2282
2299
  // input. Outputs a base64 encoded representation of the encrypted output.
2283
2300
  // Uses AES-SIV based on the RFC https://tools.ietf.org/html/rfc5297.
2284
2301
  message CryptoDeterministicConfig {
2285
- // The key used by the encryption function.
2302
+ // The key used by the encryption function. For deterministic encryption
2303
+ // using AES-SIV, the provided key is internally expanded to 64 bytes prior to
2304
+ // use.
2286
2305
  CryptoKey crypto_key = 1;
2287
2306
 
2288
2307
  // The custom info type to annotate the surrogate with.
@@ -2346,6 +2365,16 @@ message ReplaceValueConfig {
2346
2365
  Value new_value = 1;
2347
2366
  }
2348
2367
 
2368
+ // Replace each input value with a value randomly selected from the dictionary.
2369
+ message ReplaceDictionaryConfig {
2370
+ oneof type {
2371
+ // A list of words to select from for random replacement. The
2372
+ // [limits](https://cloud.google.com/dlp/limits) page contains details about
2373
+ // the size limits of dictionaries.
2374
+ CustomInfoType.Dictionary.WordList word_list = 1;
2375
+ }
2376
+ }
2377
+
2349
2378
  // Replace each matching finding with the name of the info_type.
2350
2379
  message ReplaceWithInfoTypeConfig {
2351
2380
 
@@ -2429,8 +2458,8 @@ message CharacterMaskConfig {
2429
2458
  // the user for simple bucketing strategies.
2430
2459
  //
2431
2460
  // The transformed value will be a hyphenated string of
2432
- // {lower_bound}-{upper_bound}, i.e if lower_bound = 10 and upper_bound = 20
2433
- // all values that are within this bucket will be replaced with "10-20".
2461
+ // {lower_bound}-{upper_bound}. For example, if lower_bound = 10 and upper_bound
2462
+ // = 20, all values that are within this bucket will be replaced with "10-20".
2434
2463
  //
2435
2464
  // This can be used on data of type: double, long.
2436
2465
  //
@@ -2593,10 +2622,11 @@ message CryptoReplaceFfxFpeConfig {
2593
2622
  }
2594
2623
 
2595
2624
  // This is a data encryption key (DEK) (as opposed to
2596
- // a key encryption key (KEK) stored by KMS).
2597
- // When using KMS to wrap/unwrap DEKs, be sure to set an appropriate
2598
- // IAM policy on the KMS CryptoKey (KEK) to ensure an attacker cannot
2599
- // unwrap the data crypto key.
2625
+ // a key encryption key (KEK) stored by Cloud Key Management Service
2626
+ // (Cloud KMS).
2627
+ // When using Cloud KMS to wrap or unwrap a DEK, be sure to set an appropriate
2628
+ // IAM policy on the KEK to ensure an attacker cannot
2629
+ // unwrap the DEK.
2600
2630
  message CryptoKey {
2601
2631
  // Sources of crypto keys.
2602
2632
  oneof source {
@@ -2606,7 +2636,7 @@ message CryptoKey {
2606
2636
  // Unwrapped crypto key
2607
2637
  UnwrappedCryptoKey unwrapped = 2;
2608
2638
 
2609
- // Kms wrapped key
2639
+ // Key wrapped using Cloud KMS
2610
2640
  KmsWrappedCryptoKey kms_wrapped = 3;
2611
2641
  }
2612
2642
  }
@@ -2631,10 +2661,16 @@ message UnwrappedCryptoKey {
2631
2661
  }
2632
2662
 
2633
2663
  // Include to use an existing data crypto key wrapped by KMS.
2634
- // The wrapped key must be a 128/192/256 bit key.
2664
+ // The wrapped key must be a 128-, 192-, or 256-bit key.
2635
2665
  // Authorization requires the following IAM permissions when sending a request
2636
- // to perform a crypto transformation using a kms-wrapped crypto key:
2666
+ // to perform a crypto transformation using a KMS-wrapped crypto key:
2637
2667
  // dlp.kms.encrypt
2668
+ //
2669
+ // For more information, see [Creating a wrapped key]
2670
+ // (https://cloud.google.com/dlp/docs/create-wrapped-key).
2671
+ //
2672
+ // Note: When you use Cloud KMS for cryptographic operations,
2673
+ // [charges apply](https://cloud.google.com/kms/pricing).
2638
2674
  message KmsWrappedCryptoKey {
2639
2675
  // Required. The wrapped data crypto key.
2640
2676
  bytes wrapped_key = 1 [(google.api.field_behavior) = REQUIRED];
@@ -2697,6 +2733,9 @@ message InfoTypeTransformations {
2697
2733
  // The transformation to apply to the field.
2698
2734
  message FieldTransformation {
2699
2735
  // Required. Input field(s) to apply the transformation to.
2736
+ // When you have columns that reference their position within a list,
2737
+ // omit the index from the FieldId. FieldId name matching ignores the index.
2738
+ // For example, instead of "contact.nums[0].type", use "contact.nums.type".
2700
2739
  repeated FieldId fields = 1 [(google.api.field_behavior) = REQUIRED];
2701
2740
 
2702
2741
  // Only apply the transformation if the condition evaluates to true for the
@@ -2868,7 +2907,7 @@ message TransformationSummary {
2868
2907
  int64 transformed_bytes = 7;
2869
2908
  }
2870
2909
 
2871
- // Schedule for triggeredJobs.
2910
+ // Schedule for inspect job triggers.
2872
2911
  message Schedule {
2873
2912
  oneof option {
2874
2913
  // With this option a job is started a regular periodic basis. For
@@ -2955,7 +2994,7 @@ message DeidentifyTemplate {
2955
2994
  // Output only. The last update timestamp of an inspectTemplate.
2956
2995
  google.protobuf.Timestamp update_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
2957
2996
 
2958
- // ///////////// // The core content of the template // ///////////////
2997
+ // The core content of the template.
2959
2998
  DeidentifyConfig deidentify_config = 6;
2960
2999
  }
2961
3000
 
@@ -2985,9 +3024,6 @@ message JobTrigger {
2985
3024
  Schedule schedule = 1;
2986
3025
 
2987
3026
  // For use with hybrid jobs. Jobs must be manually created and finished.
2988
- // Early access feature is in a pre-release state and might change or have
2989
- // limited support. For more information, see
2990
- // https://cloud.google.com/products#product-launch-stages.
2991
3027
  Manual manual = 2;
2992
3028
  }
2993
3029
  }
@@ -3090,11 +3126,11 @@ message Action {
3090
3126
 
3091
3127
  }
3092
3128
 
3093
- // Publish findings of a DlpJob to Cloud Data Catalog. Labels summarizing the
3129
+ // Publish findings of a DlpJob to Data Catalog. Labels summarizing the
3094
3130
  // results of the DlpJob will be applied to the entry for the resource scanned
3095
- // in Cloud Data Catalog. Any labels previously written by another DlpJob will
3131
+ // in Data Catalog. Any labels previously written by another DlpJob will
3096
3132
  // be deleted. InfoType naming patterns are strictly enforced when using this
3097
- // feature. Note that the findings will be persisted in Cloud Data Catalog
3133
+ // feature. Note that the findings will be persisted in Data Catalog
3098
3134
  // storage and are governed by Data Catalog service-specific policy, see
3099
3135
  // https://cloud.google.com/terms/service-terms
3100
3136
  // Only a single instance of this action can be specified and only allowed if
@@ -3402,10 +3438,11 @@ message CreateDlpJobRequest {
3402
3438
 
3403
3439
  // The configuration details for the specific type of job to run.
3404
3440
  oneof job {
3405
- // Set to control what and how to inspect.
3441
+ // An inspection job scans a storage repository for InfoTypes.
3406
3442
  InspectJobConfig inspect_job = 2;
3407
3443
 
3408
- // Set to choose what metric to calculate.
3444
+ // A risk analysis job calculates re-identification risk metrics for a
3445
+ // BigQuery table.
3409
3446
  RiskAnalysisJobConfig risk_job = 3;
3410
3447
  }
3411
3448
 
@@ -3477,7 +3514,7 @@ message ListJobTriggersRequest {
3477
3514
  // * Restrictions can be combined by `AND` or `OR` logical operators. A
3478
3515
  // sequence of restrictions implicitly uses `AND`.
3479
3516
  // * A restriction has the form of `{field} {operator} {value}`.
3480
- // * Supported fields/values for inspect jobs:
3517
+ // * Supported fields/values for inspect triggers:
3481
3518
  // - `status` - HEALTHY|PAUSED|CANCELLED
3482
3519
  // - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY
3483
3520
  // - 'last_run_time` - RFC 3339 formatted timestamp, surrounded by
@@ -3495,6 +3532,9 @@ message ListJobTriggersRequest {
3495
3532
  // The length of this field should be no more than 500 characters.
3496
3533
  string filter = 5;
3497
3534
 
3535
+ // The type of jobs. Will use `DlpJobType.INSPECT` if not set.
3536
+ DlpJobType type = 6;
3537
+
3498
3538
  // Deprecated. This field has no effect.
3499
3539
  string location_id = 7;
3500
3540
  }
@@ -4347,7 +4387,7 @@ enum InfoTypeSupportedBy {
4347
4387
 
4348
4388
  // An enum to represent the various types of DLP jobs.
4349
4389
  enum DlpJobType {
4350
- // Unused
4390
+ // Defaults to INSPECT_JOB.
4351
4391
  DLP_JOB_TYPE_UNSPECIFIED = 0;
4352
4392
 
4353
4393
  // The job inspected Google Cloud for sensitive data.
@@ -1,4 +1,4 @@
1
- // Copyright 2020 Google LLC
1
+ // Copyright 2021 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,9 +16,9 @@ syntax = "proto3";
16
16
 
17
17
  package google.privacy.dlp.v2;
18
18
 
19
+ import "google/api/annotations.proto";
19
20
  import "google/api/resource.proto";
20
21
  import "google/protobuf/timestamp.proto";
21
- import "google/api/annotations.proto";
22
22
 
23
23
  option csharp_namespace = "Google.Cloud.Dlp.V2";
24
24
  option go_package = "google.golang.org/genproto/googleapis/privacy/dlp/v2;dlp";
@@ -36,6 +36,9 @@ message InfoType {
36
36
  // a built-in type. When sending Cloud DLP results to Data Catalog, infoType
37
37
  // names should conform to the pattern `[A-Za-z0-9$-_]{1,64}`.
38
38
  string name = 1;
39
+
40
+ // Optional version name for this InfoType.
41
+ string version = 2;
39
42
  }
40
43
 
41
44
  // A reference to a StoredInfoType to use with scanning.
@@ -82,7 +85,7 @@ message CustomInfoType {
82
85
  // Plane](https://en.wikipedia.org/wiki/Plane_%28Unicode%29#Basic_Multilingual_Plane)
83
86
  // will be replaced with whitespace when scanning for matches, so the
84
87
  // dictionary phrase "Sam Johnson" will match all three phrases "sam johnson",
85
- // "Sam, Johnson", and "Sam (Johnson)". Additionally, the characters
88
+ // Plane](https://en.wikipedia.org/wiki/Plane_%28Unicode%29#Basic_Multilingual_Plane)
86
89
  // surrounding any match must be of a different type than the adjacent
87
90
  // characters within the word, so letters must be next to non-letters and
88
91
  // digits next to non-digits. For example, the dictionary word "jen" will
@@ -95,7 +98,7 @@ message CustomInfoType {
95
98
  // [limits](https://cloud.google.com/dlp/limits) page contains details about
96
99
  // the size limits of dictionaries. For dictionaries that do not fit within
97
100
  // these constraints, consider using `LargeCustomDictionaryConfig` in the
98
- // `StoredInfoType` API.
101
+ // [limits](https://cloud.google.com/dlp/limits) page contains details about
99
102
  message Dictionary {
100
103
  // Message defining a list of words or phrases to search for in the data.
101
104
  message WordList {
@@ -121,7 +124,7 @@ message CustomInfoType {
121
124
  // (https://github.com/google/re2/wiki/Syntax) can be found under the
122
125
  // google/re2 repository on GitHub.
123
126
  string pattern = 1;
124
-
127
+ // (https://github.com/google/re2/wiki/Syntax) can be found under the
125
128
  // The index of the submatch to extract as findings. When not
126
129
  // specified, the entire match is returned. No more than 3 may be included.
127
130
  repeated int32 group_indexes = 2;
@@ -132,12 +135,10 @@ message CustomInfoType {
132
135
  // [`CryptoReplaceFfxFpeConfig`](https://cloud.google.com/dlp/docs/reference/rest/v2/organizations.deidentifyTemplates#cryptoreplaceffxfpeconfig).
133
136
  // These types of transformations are
134
137
  // those that perform pseudonymization, thereby producing a "surrogate" as
135
- // output. This should be used in conjunction with a field on the
138
+ // [`CryptoReplaceFfxFpeConfig`](https://cloud.google.com/dlp/docs/reference/rest/v2/organizations.deidentifyTemplates#cryptoreplaceffxfpeconfig).
136
139
  // transformation such as `surrogate_info_type`. This CustomInfoType does
137
140
  // not support the use of `detection_rules`.
138
- message SurrogateType {
139
-
140
- }
141
+ message SurrogateType {}
141
142
 
142
143
  // Deprecated; use `InspectionRuleSet` instead. Rule for modifying a
143
144
  // `CustomInfoType` to alter behavior under certain circumstances, depending
@@ -329,7 +330,7 @@ message CloudStorageRegexFileSet {
329
330
  // [syntax](https://github.com/google/re2/wiki/Syntax); a guide can be found
330
331
  // under the google/re2 repository on GitHub.
331
332
  repeated string include_regex = 2;
332
-
333
+ // [syntax](https://github.com/google/re2/wiki/Syntax); a guide can be found
333
334
  // A list of regular expressions matching file paths to exclude. All files in
334
335
  // the bucket that match at least one of these regular expressions will be
335
336
  // excluded from the scan.
@@ -338,6 +339,7 @@ message CloudStorageRegexFileSet {
338
339
  // [syntax](https://github.com/google/re2/wiki/Syntax); a guide can be found
339
340
  // under the google/re2 repository on GitHub.
340
341
  repeated string exclude_regex = 3;
342
+ // [syntax](https://github.com/google/re2/wiki/Syntax); a guide can be found
341
343
  }
342
344
 
343
345
  // Options defining a file or a set of files within a Google Cloud Storage
@@ -382,12 +384,14 @@ message CloudStorageOptions {
382
384
  // Max number of bytes to scan from a file. If a scanned file's size is bigger
383
385
  // than this value then the rest of the bytes are omitted. Only one
384
386
  // of bytes_limit_per_file and bytes_limit_per_file_percent can be specified.
387
+ // Cannot be set if de-identification is requested.
385
388
  int64 bytes_limit_per_file = 4;
386
389
 
387
390
  // Max percentage of bytes to scan from a file. The rest are omitted. The
388
391
  // number of bytes scanned is rounded down. Must be between 0 and 100,
389
392
  // inclusively. Both 0 and 100 means no limit. Defaults to 0. Only one
390
393
  // of bytes_limit_per_file and bytes_limit_per_file_percent can be specified.
394
+ // Cannot be set if de-identification is requested.
391
395
  int32 bytes_limit_per_file_percent = 8;
392
396
 
393
397
  // List of file type groups to include in the scan.
@@ -466,6 +470,9 @@ message BigQueryOptions {
466
470
  // References to fields excluded from scanning. This allows you to skip
467
471
  // inspection of entire columns which you know have no findings.
468
472
  repeated FieldId excluded_fields = 5;
473
+
474
+ // Limit scanning only to these fields.
475
+ repeated FieldId included_fields = 7;
469
476
  }
470
477
 
471
478
  // Shared message indicating Cloud storage type.
@@ -518,9 +525,6 @@ message StorageConfig {
518
525
  BigQueryOptions big_query_options = 4;
519
526
 
520
527
  // Hybrid inspection options.
521
- // Early access feature is in a pre-release state and might change or have
522
- // limited support. For more information, see
523
- // https://cloud.google.com/products#product-launch-stages.
524
528
  HybridOptions hybrid_options = 9;
525
529
  }
526
530
 
@@ -541,11 +545,12 @@ enum FileType {
541
545
  BINARY_FILE = 1;
542
546
 
543
547
  // Included file extensions:
544
- // asc, brf, c, cc, cpp, csv, cxx, c++, cs, css, dart, eml, go, h, hh, hpp,
545
- // hxx, h++, hs, html, htm, shtml, shtm, xhtml, lhs, ini, java, js, json,
546
- // ocaml, md, mkd, markdown, m, ml, mli, pl, pm, php, phtml, pht, py, pyw,
547
- // rb, rbw, rs, rc, scala, sh, sql, tex, txt, text, tsv, vcard, vcs, wml,
548
- // xml, xsl, xsd, yml, yaml.
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.
549
554
  TEXT_FILE = 2;
550
555
 
551
556
  // Included file extensions: