@google-cloud/dlp 3.2.0 → 3.4.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,27 @@
4
4
 
5
5
  [1]: https://www.npmjs.com/package/PACKAGE NAME?activeTab=versions
6
6
 
7
+ ## [3.4.0](https://github.com/googleapis/nodejs-dlp/compare/v3.3.0...v3.4.0) (2022-03-25)
8
+
9
+
10
+ ### Features
11
+
12
+ * new Bytes and File types: POWERPOINT and EXCEL ([#693](https://github.com/googleapis/nodejs-dlp/issues/693)) ([ed3dc42](https://github.com/googleapis/nodejs-dlp/commit/ed3dc42bce256100a62528481c7ec10362f7fa93))
13
+
14
+ ## [3.3.0](https://www.github.com/googleapis/nodejs-dlp/compare/v3.2.1...v3.3.0) (2021-12-03)
15
+
16
+
17
+ ### Features
18
+
19
+ * 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))
20
+
21
+ ### [3.2.1](https://www.github.com/googleapis/nodejs-dlp/compare/v3.2.0...v3.2.1) (2021-11-03)
22
+
23
+
24
+ ### Bug Fixes
25
+
26
+ * **deps:** update dependency mime to v3 ([#663](https://www.github.com/googleapis/nodejs-dlp/issues/663)) ([5d33ead](https://www.github.com/googleapis/nodejs-dlp/commit/5d33ead5c207511a2ef3d268dd804eabc20408d8))
27
+
7
28
  ## [3.2.0](https://www.github.com/googleapis/nodejs-dlp/compare/v3.1.8...v3.2.0) (2021-08-23)
8
29
 
9
30
 
package/README.md CHANGED
@@ -4,9 +4,8 @@
4
4
 
5
5
  # [Cloud Data Loss Prevention: Node.js Client](https://github.com/googleapis/nodejs-dlp)
6
6
 
7
- [![release level](https://img.shields.io/badge/release%20level-general%20availability%20%28GA%29-brightgreen.svg?style=flat)](https://cloud.google.com/terms/launch-stages)
7
+ [![release level](https://img.shields.io/badge/release%20level-stable-brightgreen.svg?style=flat)](https://cloud.google.com/terms/launch-stages)
8
8
  [![npm version](https://img.shields.io/npm/v/@google-cloud/dlp.svg)](https://www.npmjs.org/package/@google-cloud/dlp)
9
- [![codecov](https://img.shields.io/codecov/c/github/googleapis/nodejs-dlp/main.svg?style=flat)](https://codecov.io/gh/googleapis/nodejs-dlp)
10
9
 
11
10
 
12
11
 
@@ -166,37 +165,38 @@ also contains samples.
166
165
  Our client libraries follow the [Node.js release schedule](https://nodejs.org/en/about/releases/).
167
166
  Libraries are compatible with all current _active_ and _maintenance_ versions of
168
167
  Node.js.
168
+ If you are using an end-of-life version of Node.js, we recommend that you update
169
+ as soon as possible to an actively supported LTS version.
169
170
 
170
- Client libraries targeting some end-of-life versions of Node.js are available, and
171
- can be installed via npm [dist-tags](https://docs.npmjs.com/cli/dist-tag).
172
- The dist-tags follow the naming convention `legacy-(version)`.
173
-
174
- _Legacy Node.js versions are supported as a best effort:_
175
-
176
- * Legacy versions will not be tested in continuous integration.
177
- * Some security patches may not be able to be backported.
178
- * Dependencies will not be kept up-to-date, and features will not be backported.
171
+ Google's client libraries support legacy versions of Node.js runtimes on a
172
+ best-efforts basis with the following warnings:
179
173
 
180
- #### Legacy tags available
174
+ * Legacy versions are not tested in continuous integration.
175
+ * Some security patches and features cannot be backported.
176
+ * Dependencies cannot be kept up-to-date.
181
177
 
182
- * `legacy-8`: install client libraries from this dist-tag for versions
183
- compatible with Node.js 8.
178
+ Client libraries targeting some end-of-life versions of Node.js are available, and
179
+ can be installed through npm [dist-tags](https://docs.npmjs.com/cli/dist-tag).
180
+ The dist-tags follow the naming convention `legacy-(version)`.
181
+ For example, `npm install @google-cloud/dlp@legacy-8` installs client libraries
182
+ for versions compatible with Node.js 8.
184
183
 
185
184
  ## Versioning
186
185
 
187
186
  This library follows [Semantic Versioning](http://semver.org/).
188
187
 
189
188
 
190
- This library is considered to be **General Availability (GA)**. This means it
191
- is stable; the code surface will not change in backwards-incompatible ways
189
+
190
+ This library is considered to be **stable**. The code surface will not change in backwards-incompatible ways
192
191
  unless absolutely necessary (e.g. because of critical security issues) or with
193
- an extensive deprecation period. Issues and requests against **GA** libraries
192
+ an extensive deprecation period. Issues and requests against **stable** libraries
194
193
  are addressed with the highest priority.
195
194
 
196
195
 
197
196
 
198
197
 
199
198
 
199
+
200
200
  More Information: [Google Cloud Platform Launch Stages][launch_stages]
201
201
 
202
202
  [launch_stages]: https://cloud.google.com/terms/launch-stages
@@ -1,4 +1,4 @@
1
- // Copyright 2020 Google LLC
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,6 +16,7 @@ syntax = "proto3";
16
16
 
17
17
  package google.privacy.dlp.v2;
18
18
 
19
+ import "google/api/annotations.proto";
19
20
  import "google/api/client.proto";
20
21
  import "google/api/field_behavior.proto";
21
22
  import "google/api/resource.proto";
@@ -28,7 +29,6 @@ import "google/rpc/status.proto";
28
29
  import "google/type/date.proto";
29
30
  import "google/type/dayofweek.proto";
30
31
  import "google/type/timeofday.proto";
31
- import "google/api/annotations.proto";
32
32
 
33
33
  option csharp_namespace = "Google.Cloud.Dlp.V2";
34
34
  option go_package = "google.golang.org/genproto/googleapis/privacy/dlp/v2;dlp";
@@ -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 for inspection.
723
+ // This is not used for de-identification or data profiling.
712
724
  message FindingLimits {
713
725
  // Max findings configuration per infoType, per content item or long
714
726
  // running DlpJob.
@@ -757,21 +769,23 @@ message InspectConfig {
757
769
  Likelihood min_likelihood = 2;
758
770
 
759
771
  // Configuration to control the number of findings returned.
772
+ // This is not used for data profiling.
760
773
  FindingLimits limits = 3;
761
774
 
762
775
  // When true, a contextual quote from the data that triggered a finding is
763
776
  // included in the response; see Finding.quote.
777
+ // This is not used for data profiling.
764
778
  bool include_quote = 4;
765
779
 
766
780
  // When true, excludes type information of the findings.
781
+ // This is not used for data profiling.
767
782
  bool exclude_info_types = 5;
768
783
 
769
784
  // CustomInfoTypes provided by the user. See
770
785
  // https://cloud.google.com/dlp/docs/creating-custom-infotypes to learn more.
771
786
  repeated CustomInfoType custom_info_types = 6;
772
787
 
773
- // List of options defining data content to scan.
774
- // If empty, text, images, and other content will be included.
788
+ // Deprecated and unused.
775
789
  repeated ContentOption content_options = 8;
776
790
 
777
791
  // Set of rules to apply to the findings for this InspectConfig.
@@ -782,7 +796,9 @@ message InspectConfig {
782
796
 
783
797
  // Container for bytes to inspect or redact.
784
798
  message ByteContentItem {
785
- // The type of data being sent for inspection.
799
+ // The type of data being sent for inspection. To learn more, see
800
+ // [Supported file
801
+ // types](https://cloud.google.com/dlp/docs/supported-file-types).
786
802
  enum BytesType {
787
803
  // Unused
788
804
  BYTES_TYPE_UNSPECIFIED = 0;
@@ -811,6 +827,12 @@ message ByteContentItem {
811
827
  // pdf
812
828
  PDF = 8;
813
829
 
830
+ // pptx, pptm, potx, potm, pot
831
+ POWERPOINT_DOCUMENT = 9;
832
+
833
+ // xlsx, xlsm, xltx, xltm
834
+ EXCEL_DOCUMENT = 10;
835
+
814
836
  // avro
815
837
  AVRO = 11;
816
838
 
@@ -845,9 +867,9 @@ message ContentItem {
845
867
  }
846
868
  }
847
869
 
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.
870
+ // Structured content to inspect. Up to 50,000 `Value`s per request allowed. See
871
+ // https://cloud.google.com/dlp/docs/inspecting-structured-text#inspecting_a_table
872
+ // to learn more.
851
873
  message Table {
852
874
  // Values of the row.
853
875
  message Row {
@@ -945,6 +967,9 @@ message Finding {
945
967
  string job_name = 13 [(google.api.resource_reference) = {
946
968
  type: "dlp.googleapis.com/DlpJob"
947
969
  }];
970
+
971
+ // The unique finding id.
972
+ string finding_id = 15;
948
973
  }
949
974
 
950
975
  // Specifies the location of the finding.
@@ -1488,16 +1513,13 @@ message InspectDataSourceDetails {
1488
1513
  repeated InfoTypeStats info_type_stats = 3;
1489
1514
 
1490
1515
  // 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
1516
  HybridInspectStatistics hybrid_stats = 7;
1495
1517
  }
1496
1518
 
1497
1519
  // The configuration used for this job.
1498
1520
  RequestedOptions requested_options = 2;
1499
1521
 
1500
- // A summary of the outcome of this inspect job.
1522
+ // A summary of the outcome of this inspection job.
1501
1523
  Result result = 3;
1502
1524
  }
1503
1525
 
@@ -2200,7 +2222,7 @@ message TransformationErrorHandling {
2200
2222
  // A rule for transforming a value.
2201
2223
  message PrimitiveTransformation {
2202
2224
  oneof transformation {
2203
- // Replace
2225
+ // Replace with a specified value.
2204
2226
  ReplaceValueConfig replace_config = 1;
2205
2227
 
2206
2228
  // Redact
@@ -2232,6 +2254,9 @@ message PrimitiveTransformation {
2232
2254
 
2233
2255
  // Deterministic Crypto
2234
2256
  CryptoDeterministicConfig crypto_deterministic_config = 12;
2257
+
2258
+ // Replace with a value randomly drawn (with replacement) from a dictionary.
2259
+ ReplaceDictionaryConfig replace_dictionary_config = 13;
2235
2260
  }
2236
2261
  }
2237
2262
 
@@ -2282,7 +2307,9 @@ message CryptoHashConfig {
2282
2307
  // input. Outputs a base64 encoded representation of the encrypted output.
2283
2308
  // Uses AES-SIV based on the RFC https://tools.ietf.org/html/rfc5297.
2284
2309
  message CryptoDeterministicConfig {
2285
- // The key used by the encryption function.
2310
+ // The key used by the encryption function. For deterministic encryption
2311
+ // using AES-SIV, the provided key is internally expanded to 64 bytes prior to
2312
+ // use.
2286
2313
  CryptoKey crypto_key = 1;
2287
2314
 
2288
2315
  // The custom info type to annotate the surrogate with.
@@ -2346,6 +2373,16 @@ message ReplaceValueConfig {
2346
2373
  Value new_value = 1;
2347
2374
  }
2348
2375
 
2376
+ // Replace each input value with a value randomly selected from the dictionary.
2377
+ message ReplaceDictionaryConfig {
2378
+ oneof type {
2379
+ // A list of words to select from for random replacement. The
2380
+ // [limits](https://cloud.google.com/dlp/limits) page contains details about
2381
+ // the size limits of dictionaries.
2382
+ CustomInfoType.Dictionary.WordList word_list = 1;
2383
+ }
2384
+ }
2385
+
2349
2386
  // Replace each matching finding with the name of the info_type.
2350
2387
  message ReplaceWithInfoTypeConfig {
2351
2388
 
@@ -2429,8 +2466,8 @@ message CharacterMaskConfig {
2429
2466
  // the user for simple bucketing strategies.
2430
2467
  //
2431
2468
  // 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".
2469
+ // {lower_bound}-{upper_bound}. For example, if lower_bound = 10 and upper_bound
2470
+ // = 20, all values that are within this bucket will be replaced with "10-20".
2434
2471
  //
2435
2472
  // This can be used on data of type: double, long.
2436
2473
  //
@@ -2593,10 +2630,11 @@ message CryptoReplaceFfxFpeConfig {
2593
2630
  }
2594
2631
 
2595
2632
  // 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.
2633
+ // a key encryption key (KEK) stored by Cloud Key Management Service
2634
+ // (Cloud KMS).
2635
+ // When using Cloud KMS to wrap or unwrap a DEK, be sure to set an appropriate
2636
+ // IAM policy on the KEK to ensure an attacker cannot
2637
+ // unwrap the DEK.
2600
2638
  message CryptoKey {
2601
2639
  // Sources of crypto keys.
2602
2640
  oneof source {
@@ -2606,7 +2644,7 @@ message CryptoKey {
2606
2644
  // Unwrapped crypto key
2607
2645
  UnwrappedCryptoKey unwrapped = 2;
2608
2646
 
2609
- // Kms wrapped key
2647
+ // Key wrapped using Cloud KMS
2610
2648
  KmsWrappedCryptoKey kms_wrapped = 3;
2611
2649
  }
2612
2650
  }
@@ -2631,10 +2669,16 @@ message UnwrappedCryptoKey {
2631
2669
  }
2632
2670
 
2633
2671
  // Include to use an existing data crypto key wrapped by KMS.
2634
- // The wrapped key must be a 128/192/256 bit key.
2672
+ // The wrapped key must be a 128-, 192-, or 256-bit key.
2635
2673
  // Authorization requires the following IAM permissions when sending a request
2636
- // to perform a crypto transformation using a kms-wrapped crypto key:
2674
+ // to perform a crypto transformation using a KMS-wrapped crypto key:
2637
2675
  // dlp.kms.encrypt
2676
+ //
2677
+ // For more information, see [Creating a wrapped key]
2678
+ // (https://cloud.google.com/dlp/docs/create-wrapped-key).
2679
+ //
2680
+ // Note: When you use Cloud KMS for cryptographic operations,
2681
+ // [charges apply](https://cloud.google.com/kms/pricing).
2638
2682
  message KmsWrappedCryptoKey {
2639
2683
  // Required. The wrapped data crypto key.
2640
2684
  bytes wrapped_key = 1 [(google.api.field_behavior) = REQUIRED];
@@ -2697,6 +2741,9 @@ message InfoTypeTransformations {
2697
2741
  // The transformation to apply to the field.
2698
2742
  message FieldTransformation {
2699
2743
  // Required. Input field(s) to apply the transformation to.
2744
+ // When you have columns that reference their position within a list,
2745
+ // omit the index from the FieldId. FieldId name matching ignores the index.
2746
+ // For example, instead of "contact.nums[0].type", use "contact.nums.type".
2700
2747
  repeated FieldId fields = 1 [(google.api.field_behavior) = REQUIRED];
2701
2748
 
2702
2749
  // Only apply the transformation if the condition evaluates to true for the
@@ -2818,6 +2865,18 @@ message TransformationOverview {
2818
2865
  // Only one of 'transformation', 'field_transformation', or 'record_suppress'
2819
2866
  // will be set.
2820
2867
  message TransformationSummary {
2868
+ // Possible outcomes of transformations.
2869
+ enum TransformationResultCode {
2870
+ // Unused
2871
+ TRANSFORMATION_RESULT_CODE_UNSPECIFIED = 0;
2872
+
2873
+ // Transformation completed without an error.
2874
+ SUCCESS = 1;
2875
+
2876
+ // Transformation had an error.
2877
+ ERROR = 2;
2878
+ }
2879
+
2821
2880
  // A collection that informs the user the number of times a particular
2822
2881
  // `TransformationResultCode` and error details occurred.
2823
2882
  message SummaryResult {
@@ -2832,18 +2891,6 @@ message TransformationSummary {
2832
2891
  string details = 3;
2833
2892
  }
2834
2893
 
2835
- // Possible outcomes of transformations.
2836
- enum TransformationResultCode {
2837
- // Unused
2838
- TRANSFORMATION_RESULT_CODE_UNSPECIFIED = 0;
2839
-
2840
- // Transformation completed without an error.
2841
- SUCCESS = 1;
2842
-
2843
- // Transformation had an error.
2844
- ERROR = 2;
2845
- }
2846
-
2847
2894
  // Set if the transformation was limited to a specific InfoType.
2848
2895
  InfoType info_type = 1;
2849
2896
 
@@ -2868,7 +2915,7 @@ message TransformationSummary {
2868
2915
  int64 transformed_bytes = 7;
2869
2916
  }
2870
2917
 
2871
- // Schedule for triggeredJobs.
2918
+ // Schedule for inspect job triggers.
2872
2919
  message Schedule {
2873
2920
  oneof option {
2874
2921
  // With this option a job is started a regular periodic basis. For
@@ -2955,7 +3002,7 @@ message DeidentifyTemplate {
2955
3002
  // Output only. The last update timestamp of an inspectTemplate.
2956
3003
  google.protobuf.Timestamp update_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
2957
3004
 
2958
- // ///////////// // The core content of the template // ///////////////
3005
+ // The core content of the template.
2959
3006
  DeidentifyConfig deidentify_config = 6;
2960
3007
  }
2961
3008
 
@@ -2985,9 +3032,6 @@ message JobTrigger {
2985
3032
  Schedule schedule = 1;
2986
3033
 
2987
3034
  // 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
3035
  Manual manual = 2;
2992
3036
  }
2993
3037
  }
@@ -3090,11 +3134,11 @@ message Action {
3090
3134
 
3091
3135
  }
3092
3136
 
3093
- // Publish findings of a DlpJob to Cloud Data Catalog. Labels summarizing the
3137
+ // Publish findings of a DlpJob to Data Catalog. Labels summarizing the
3094
3138
  // 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
3139
+ // in Data Catalog. Any labels previously written by another DlpJob will
3096
3140
  // be deleted. InfoType naming patterns are strictly enforced when using this
3097
- // feature. Note that the findings will be persisted in Cloud Data Catalog
3141
+ // feature. Note that the findings will be persisted in Data Catalog
3098
3142
  // storage and are governed by Data Catalog service-specific policy, see
3099
3143
  // https://cloud.google.com/terms/service-terms
3100
3144
  // Only a single instance of this action can be specified and only allowed if
@@ -3402,10 +3446,11 @@ message CreateDlpJobRequest {
3402
3446
 
3403
3447
  // The configuration details for the specific type of job to run.
3404
3448
  oneof job {
3405
- // Set to control what and how to inspect.
3449
+ // An inspection job scans a storage repository for InfoTypes.
3406
3450
  InspectJobConfig inspect_job = 2;
3407
3451
 
3408
- // Set to choose what metric to calculate.
3452
+ // A risk analysis job calculates re-identification risk metrics for a
3453
+ // BigQuery table.
3409
3454
  RiskAnalysisJobConfig risk_job = 3;
3410
3455
  }
3411
3456
 
@@ -3477,7 +3522,7 @@ message ListJobTriggersRequest {
3477
3522
  // * Restrictions can be combined by `AND` or `OR` logical operators. A
3478
3523
  // sequence of restrictions implicitly uses `AND`.
3479
3524
  // * A restriction has the form of `{field} {operator} {value}`.
3480
- // * Supported fields/values for inspect jobs:
3525
+ // * Supported fields/values for inspect triggers:
3481
3526
  // - `status` - HEALTHY|PAUSED|CANCELLED
3482
3527
  // - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY
3483
3528
  // - 'last_run_time` - RFC 3339 formatted timestamp, surrounded by
@@ -3495,6 +3540,9 @@ message ListJobTriggersRequest {
3495
3540
  // The length of this field should be no more than 500 characters.
3496
3541
  string filter = 5;
3497
3542
 
3543
+ // The type of jobs. Will use `DlpJobType.INSPECT` if not set.
3544
+ DlpJobType type = 6;
3545
+
3498
3546
  // Deprecated. This field has no effect.
3499
3547
  string location_id = 7;
3500
3548
  }
@@ -4312,7 +4360,7 @@ enum MatchingType {
4312
4360
  MATCHING_TYPE_INVERSE_MATCH = 3;
4313
4361
  }
4314
4362
 
4315
- // Options describing which parts of the provided content should be scanned.
4363
+ // Deprecated and unused.
4316
4364
  enum ContentOption {
4317
4365
  // Includes entire content of a file or a data stream.
4318
4366
  CONTENT_UNSPECIFIED = 0;
@@ -4347,7 +4395,7 @@ enum InfoTypeSupportedBy {
4347
4395
 
4348
4396
  // An enum to represent the various types of DLP jobs.
4349
4397
  enum DlpJobType {
4350
- // Unused
4398
+ // Defaults to INSPECT_JOB.
4351
4399
  DLP_JOB_TYPE_UNSPECIFIED = 0;
4352
4400
 
4353
4401
  // The job inspected Google Cloud for sensitive data.