google-cloud-dlp-v2 0.10.0 → 0.13.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7f16fd4beb0176fd2449a44c7cd184afc3b8eab4ef79eae1827f86401c9447ac
4
- data.tar.gz: cbc46186ab647aaf8a5f6e105de273a348c2a7a9cdd8acaf2ed267d45b6b1d48
3
+ metadata.gz: c39607989cede0e961d7cbe3fe8ef8dbad91ee3fa60191fe694bfab3f9b51aeb
4
+ data.tar.gz: 16c66b119f6cdd9768070d26ee294fc6d288795d7c104cb92474a90e67f74091
5
5
  SHA512:
6
- metadata.gz: efe45c70b041e6e8d33eb1e9dad223ad6b513ebe5886aac251540ff884340f81d2fd270b8ccc5b5a2dd59cd3d49585aa3f9d70ac30894027d70da3f23e21b5c8
7
- data.tar.gz: 5bfb839327ba5195b749c25499605da5e2269d645a0bba750944c836dd5f028b71dabcbad092cb84106810537284e2b4991b66c6f15ad04dd23c0ad861abaaa8
6
+ metadata.gz: 252e86e4eaeb7aa025e1faaaaab2de0c854da9e11721f889b317ad8d6a90d543f41c7d59a0623ef4df8a105408c7923461138abc7cfdfc3c87a2ef8aadea3674
7
+ data.tar.gz: 80f1045e23f53fdc5473c458b893cf3b8f434b753006696496ea68a64a028d441676ca5d530858abaea78dd9ad656457092fe113e31135090d217fac39c4dfb9
data/AUTHENTICATION.md CHANGED
@@ -114,7 +114,7 @@ credentials are discovered.
114
114
  To configure your system for this, simply:
115
115
 
116
116
  1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
117
- 2. Authenticate using OAuth 2.0 `$ gcloud auth login`
117
+ 2. Authenticate using OAuth 2.0 `$ gcloud auth application-default login`
118
118
  3. Write code as if already authenticated.
119
119
 
120
120
  **NOTE:** This is _not_ recommended for running in production. The Cloud SDK
data/README.md CHANGED
@@ -69,16 +69,21 @@ module GRPC
69
69
  end
70
70
  ```
71
71
 
72
+
73
+ ## Google Cloud Samples
74
+
75
+ To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
76
+
72
77
  ## Supported Ruby Versions
73
78
 
74
- This library is supported on Ruby 2.5+.
79
+ This library is supported on Ruby 2.6+.
75
80
 
76
81
  Google provides official support for Ruby versions that are actively supported
77
82
  by Ruby Core—that is, Ruby versions that are either in normal maintenance or
78
- in security maintenance, and not end of life. Currently, this means Ruby 2.5
79
- and later. Older versions of Ruby _may_ still work, but are unsupported and not
80
- recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details
81
- about the Ruby support schedule.
83
+ in security maintenance, and not end of life. Older versions of Ruby _may_
84
+ still work, but are unsupported and not recommended. See
85
+ https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
86
+ support schedule.
82
87
 
83
88
  ## Which client should I use?
84
89
 
@@ -785,7 +785,7 @@ module Google
785
785
  end
786
786
 
787
787
  ##
788
- # Returns a list of the sensitive information types that the DLP API
788
+ # Returns a list of the sensitive information types that DLP API
789
789
  # supports. See https://cloud.google.com/dlp/docs/infotypes-reference to
790
790
  # learn more.
791
791
  #
@@ -877,7 +877,7 @@ module Google
877
877
  end
878
878
 
879
879
  ##
880
- # Creates an InspectTemplate for re-using frequently used configuration
880
+ # Creates an InspectTemplate for reusing frequently used configuration
881
881
  # for inspecting content, images, and storage.
882
882
  # See https://cloud.google.com/dlp/docs/creating-templates to learn more.
883
883
  #
@@ -1215,7 +1215,7 @@ module Google
1215
1215
  # Page token to continue retrieval. Comes from previous call
1216
1216
  # to `ListInspectTemplates`.
1217
1217
  # @param page_size [::Integer]
1218
- # Size of the page, can be limited by server. If zero server returns
1218
+ # Size of the page, can be limited by the server. If zero server returns
1219
1219
  # a page of max size 100.
1220
1220
  # @param order_by [::String]
1221
1221
  # Comma separated list of fields to order by,
@@ -1227,10 +1227,10 @@ module Google
1227
1227
  #
1228
1228
  # Supported fields are:
1229
1229
  #
1230
- # - `create_time`: corresponds to time the template was created.
1231
- # - `update_time`: corresponds to time the template was last updated.
1232
- # - `name`: corresponds to template's name.
1233
- # - `display_name`: corresponds to template's display name.
1230
+ # - `create_time`: corresponds to the time the template was created.
1231
+ # - `update_time`: corresponds to the time the template was last updated.
1232
+ # - `name`: corresponds to the template's name.
1233
+ # - `display_name`: corresponds to the template's display name.
1234
1234
  # @param location_id [::String]
1235
1235
  # Deprecated. This field has no effect.
1236
1236
  #
@@ -1394,7 +1394,7 @@ module Google
1394
1394
  end
1395
1395
 
1396
1396
  ##
1397
- # Creates a DeidentifyTemplate for re-using frequently used configuration
1397
+ # Creates a DeidentifyTemplate for reusing frequently used configuration
1398
1398
  # for de-identifying content, images, and storage.
1399
1399
  # See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
1400
1400
  # more.
@@ -1736,7 +1736,7 @@ module Google
1736
1736
  # Page token to continue retrieval. Comes from previous call
1737
1737
  # to `ListDeidentifyTemplates`.
1738
1738
  # @param page_size [::Integer]
1739
- # Size of the page, can be limited by server. If zero server returns
1739
+ # Size of the page, can be limited by the server. If zero server returns
1740
1740
  # a page of max size 100.
1741
1741
  # @param order_by [::String]
1742
1742
  # Comma separated list of fields to order by,
@@ -1748,10 +1748,10 @@ module Google
1748
1748
  #
1749
1749
  # Supported fields are:
1750
1750
  #
1751
- # - `create_time`: corresponds to time the template was created.
1752
- # - `update_time`: corresponds to time the template was last updated.
1753
- # - `name`: corresponds to template's name.
1754
- # - `display_name`: corresponds to template's display name.
1751
+ # - `create_time`: corresponds to the time the template was created.
1752
+ # - `update_time`: corresponds to the time the template was last updated.
1753
+ # - `name`: corresponds to the template's name.
1754
+ # - `display_name`: corresponds to the template's display name.
1755
1755
  # @param location_id [::String]
1756
1756
  # Deprecated. This field has no effect.
1757
1757
  #
@@ -2346,11 +2346,11 @@ module Google
2346
2346
  #
2347
2347
  # Supported fields are:
2348
2348
  #
2349
- # - `create_time`: corresponds to time the JobTrigger was created.
2350
- # - `update_time`: corresponds to time the JobTrigger was last updated.
2349
+ # - `create_time`: corresponds to the time the JobTrigger was created.
2350
+ # - `update_time`: corresponds to the time the JobTrigger was last updated.
2351
2351
  # - `last_run_time`: corresponds to the last time the JobTrigger ran.
2352
- # - `name`: corresponds to JobTrigger's name.
2353
- # - `display_name`: corresponds to JobTrigger's display name.
2352
+ # - `name`: corresponds to the JobTrigger's name.
2353
+ # - `display_name`: corresponds to the JobTrigger's display name.
2354
2354
  # - `status`: corresponds to JobTrigger's status.
2355
2355
  # @param filter [::String]
2356
2356
  # Allows filtering.
@@ -2794,13 +2794,13 @@ module Google
2794
2794
  # * Supported fields/values for inspect jobs:
2795
2795
  # - `state` - PENDING|RUNNING|CANCELED|FINISHED|FAILED
2796
2796
  # - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY
2797
- # - `trigger_name` - The resource name of the trigger that created job.
2798
- # - 'end_time` - Corresponds to time the job finished.
2799
- # - 'start_time` - Corresponds to time the job finished.
2797
+ # - `trigger_name` - The name of the trigger that created the job.
2798
+ # - 'end_time` - Corresponds to the time the job finished.
2799
+ # - 'start_time` - Corresponds to the time the job finished.
2800
2800
  # * Supported fields for risk analysis jobs:
2801
2801
  # - `state` - RUNNING|CANCELED|FINISHED|FAILED
2802
- # - 'end_time` - Corresponds to time the job finished.
2803
- # - 'start_time` - Corresponds to time the job finished.
2802
+ # - 'end_time` - Corresponds to the time the job finished.
2803
+ # - 'start_time` - Corresponds to the time the job finished.
2804
2804
  # * The operator must be `=` or `!=`.
2805
2805
  #
2806
2806
  # Examples:
@@ -2827,9 +2827,9 @@ module Google
2827
2827
  #
2828
2828
  # Supported fields are:
2829
2829
  #
2830
- # - `create_time`: corresponds to time the job was created.
2831
- # - `end_time`: corresponds to time the job ended.
2832
- # - `name`: corresponds to job's name.
2830
+ # - `create_time`: corresponds to the time the job was created.
2831
+ # - `end_time`: corresponds to the time the job ended.
2832
+ # - `name`: corresponds to the job's name.
2833
2833
  # - `state`: corresponds to `state`
2834
2834
  # @param location_id [::String]
2835
2835
  # Deprecated. This field has no effect.
@@ -2994,7 +2994,7 @@ module Google
2994
2994
 
2995
2995
  ##
2996
2996
  # Deletes a long-running DlpJob. This method indicates that the client is
2997
- # no longer interested in the DlpJob result. The job will be cancelled if
2997
+ # no longer interested in the DlpJob result. The job will be canceled if
2998
2998
  # possible.
2999
2999
  # See https://cloud.google.com/dlp/docs/inspecting-storage and
3000
3000
  # https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
@@ -3501,10 +3501,6 @@ module Google
3501
3501
  # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
3502
3502
  # + Projects scope, no location specified (defaults to global):<br/>
3503
3503
  # `projects/`<var>PROJECT_ID</var>
3504
- # + Organizations scope, location specified:<br/>
3505
- # `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
3506
- # + Organizations scope, no location specified (defaults to global):<br/>
3507
- # `organizations/`<var>ORG_ID</var>
3508
3504
  #
3509
3505
  # The following example `parent` string specifies a parent project with the
3510
3506
  # identifier `example-project`, and specifies the `europe-west3` location
@@ -3515,7 +3511,7 @@ module Google
3515
3511
  # Page token to continue retrieval. Comes from previous call
3516
3512
  # to `ListStoredInfoTypes`.
3517
3513
  # @param page_size [::Integer]
3518
- # Size of the page, can be limited by server. If zero server returns
3514
+ # Size of the page, can be limited by the server. If zero server returns
3519
3515
  # a page of max size 100.
3520
3516
  # @param order_by [::String]
3521
3517
  # Comma separated list of fields to order by,
@@ -3527,7 +3523,7 @@ module Google
3527
3523
  #
3528
3524
  # Supported fields are:
3529
3525
  #
3530
- # - `create_time`: corresponds to time the most recent version of the
3526
+ # - `create_time`: corresponds to the time the most recent version of the
3531
3527
  # resource was created.
3532
3528
  # - `state`: corresponds to the state of the resource.
3533
3529
  # - `name`: corresponds to resource name.
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Dlp
23
23
  module V2
24
- VERSION = "0.10.0"
24
+ VERSION = "0.13.0"
25
25
  end
26
26
  end
27
27
  end
@@ -1,6 +1,8 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/privacy/dlp/v2/dlp.proto
3
3
 
4
+ require 'google/protobuf'
5
+
4
6
  require 'google/api/annotations_pb'
5
7
  require 'google/api/client_pb'
6
8
  require 'google/api/field_behavior_pb'
@@ -14,7 +16,6 @@ require 'google/rpc/status_pb'
14
16
  require 'google/type/date_pb'
15
17
  require 'google/type/dayofweek_pb'
16
18
  require 'google/type/timeofday_pb'
17
- require 'google/protobuf'
18
19
 
19
20
  Google::Protobuf::DescriptorPool.generated_pool.build do
20
21
  add_file("google/privacy/dlp/v2/dlp.proto", :syntax => :proto3) do
@@ -273,6 +274,78 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
273
274
  optional :display_name, :string, 2
274
275
  repeated :supported_by, :enum, 3, "google.privacy.dlp.v2.InfoTypeSupportedBy"
275
276
  optional :description, :string, 4
277
+ repeated :versions, :message, 9, "google.privacy.dlp.v2.VersionDescription"
278
+ repeated :categories, :message, 10, "google.privacy.dlp.v2.InfoTypeCategory"
279
+ end
280
+ add_message "google.privacy.dlp.v2.InfoTypeCategory" do
281
+ oneof :category do
282
+ optional :location_category, :enum, 1, "google.privacy.dlp.v2.InfoTypeCategory.LocationCategory"
283
+ optional :industry_category, :enum, 2, "google.privacy.dlp.v2.InfoTypeCategory.IndustryCategory"
284
+ optional :type_category, :enum, 3, "google.privacy.dlp.v2.InfoTypeCategory.TypeCategory"
285
+ end
286
+ end
287
+ add_enum "google.privacy.dlp.v2.InfoTypeCategory.LocationCategory" do
288
+ value :LOCATION_UNSPECIFIED, 0
289
+ value :GLOBAL, 1
290
+ value :ARGENTINA, 2
291
+ value :AUSTRALIA, 3
292
+ value :BELGIUM, 4
293
+ value :BRAZIL, 5
294
+ value :CANADA, 6
295
+ value :CHILE, 7
296
+ value :CHINA, 8
297
+ value :COLOMBIA, 9
298
+ value :DENMARK, 10
299
+ value :FRANCE, 11
300
+ value :FINLAND, 12
301
+ value :GERMANY, 13
302
+ value :HONG_KONG, 14
303
+ value :INDIA, 15
304
+ value :INDONESIA, 16
305
+ value :IRELAND, 17
306
+ value :ISRAEL, 18
307
+ value :ITALY, 19
308
+ value :JAPAN, 20
309
+ value :KOREA, 21
310
+ value :MEXICO, 22
311
+ value :THE_NETHERLANDS, 23
312
+ value :NORWAY, 24
313
+ value :PARAGUAY, 25
314
+ value :PERU, 26
315
+ value :POLAND, 27
316
+ value :PORTUGAL, 28
317
+ value :SINGAPORE, 29
318
+ value :SOUTH_AFRICA, 30
319
+ value :SPAIN, 31
320
+ value :SWEDEN, 32
321
+ value :TAIWAN, 33
322
+ value :THAILAND, 34
323
+ value :TURKEY, 35
324
+ value :UNITED_KINGDOM, 36
325
+ value :UNITED_STATES, 37
326
+ value :URUGUAY, 38
327
+ value :VENEZUELA, 39
328
+ value :INTERNAL, 40
329
+ end
330
+ add_enum "google.privacy.dlp.v2.InfoTypeCategory.IndustryCategory" do
331
+ value :INDUSTRY_UNSPECIFIED, 0
332
+ value :FINANCE, 1
333
+ value :HEALTH, 2
334
+ value :TELECOMMUNICATIONS, 3
335
+ end
336
+ add_enum "google.privacy.dlp.v2.InfoTypeCategory.TypeCategory" do
337
+ value :TYPE_UNSPECIFIED, 0
338
+ value :PII, 1
339
+ value :SPII, 2
340
+ value :DEMOGRAPHIC, 3
341
+ value :CREDENTIAL, 4
342
+ value :GOVERNMENT_ID, 5
343
+ value :DOCUMENT, 6
344
+ value :CONTEXTUAL_INFORMATION, 7
345
+ end
346
+ add_message "google.privacy.dlp.v2.VersionDescription" do
347
+ optional :version, :string, 1
348
+ optional :description, :string, 2
276
349
  end
277
350
  add_message "google.privacy.dlp.v2.ListInfoTypesRequest" do
278
351
  optional :parent, :string, 4
@@ -480,8 +553,27 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
480
553
  oneof :transformation do
481
554
  optional :info_type_transformations, :message, 1, "google.privacy.dlp.v2.InfoTypeTransformations"
482
555
  optional :record_transformations, :message, 2, "google.privacy.dlp.v2.RecordTransformations"
556
+ optional :image_transformations, :message, 4, "google.privacy.dlp.v2.ImageTransformations"
483
557
  end
484
558
  end
559
+ add_message "google.privacy.dlp.v2.ImageTransformations" do
560
+ repeated :transforms, :message, 2, "google.privacy.dlp.v2.ImageTransformations.ImageTransformation"
561
+ end
562
+ add_message "google.privacy.dlp.v2.ImageTransformations.ImageTransformation" do
563
+ optional :redaction_color, :message, 3, "google.privacy.dlp.v2.Color"
564
+ oneof :target do
565
+ optional :selected_info_types, :message, 4, "google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypes"
566
+ optional :all_info_types, :message, 5, "google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes"
567
+ optional :all_text, :message, 6, "google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText"
568
+ end
569
+ end
570
+ add_message "google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypes" do
571
+ repeated :info_types, :message, 5, "google.privacy.dlp.v2.InfoType"
572
+ end
573
+ add_message "google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes" do
574
+ end
575
+ add_message "google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText" do
576
+ end
485
577
  add_message "google.privacy.dlp.v2.TransformationErrorHandling" do
486
578
  oneof :mode do
487
579
  optional :throw_error, :message, 1, "google.privacy.dlp.v2.TransformationErrorHandling.ThrowError"
@@ -681,6 +773,41 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
681
773
  value :SUCCESS, 1
682
774
  value :ERROR, 2
683
775
  end
776
+ add_message "google.privacy.dlp.v2.TransformationDescription" do
777
+ optional :type, :enum, 1, "google.privacy.dlp.v2.TransformationType"
778
+ optional :description, :string, 2
779
+ optional :condition, :string, 3
780
+ optional :info_type, :message, 4, "google.privacy.dlp.v2.InfoType"
781
+ end
782
+ add_message "google.privacy.dlp.v2.TransformationDetails" do
783
+ optional :resource_name, :string, 1
784
+ optional :container_name, :string, 2
785
+ repeated :transformation, :message, 3, "google.privacy.dlp.v2.TransformationDescription"
786
+ optional :status_details, :message, 4, "google.privacy.dlp.v2.TransformationResultStatus"
787
+ optional :transformed_bytes, :int64, 5
788
+ optional :transformation_location, :message, 6, "google.privacy.dlp.v2.TransformationLocation"
789
+ end
790
+ add_message "google.privacy.dlp.v2.TransformationLocation" do
791
+ optional :container_type, :enum, 3, "google.privacy.dlp.v2.TransformationContainerType"
792
+ oneof :location_type do
793
+ optional :finding_id, :string, 1
794
+ optional :record_transformation, :message, 2, "google.privacy.dlp.v2.RecordTransformation"
795
+ end
796
+ end
797
+ add_message "google.privacy.dlp.v2.RecordTransformation" do
798
+ optional :field_id, :message, 1, "google.privacy.dlp.v2.FieldId"
799
+ optional :container_timestamp, :message, 2, "google.protobuf.Timestamp"
800
+ optional :container_version, :string, 3
801
+ end
802
+ add_message "google.privacy.dlp.v2.TransformationResultStatus" do
803
+ optional :result_status_type, :enum, 1, "google.privacy.dlp.v2.TransformationResultStatusType"
804
+ optional :details, :message, 2, "google.rpc.Status"
805
+ end
806
+ add_message "google.privacy.dlp.v2.TransformationDetailsStorageConfig" do
807
+ oneof :type do
808
+ optional :table, :message, 1, "google.privacy.dlp.v2.BigQueryTable"
809
+ end
810
+ end
684
811
  add_message "google.privacy.dlp.v2.Schedule" do
685
812
  oneof :option do
686
813
  optional :recurrence_period_duration, :message, 1, "google.protobuf.Duration"
@@ -740,6 +867,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
740
867
  optional :pub_sub, :message, 2, "google.privacy.dlp.v2.Action.PublishToPubSub"
741
868
  optional :publish_summary_to_cscc, :message, 3, "google.privacy.dlp.v2.Action.PublishSummaryToCscc"
742
869
  optional :publish_findings_to_cloud_data_catalog, :message, 5, "google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog"
870
+ optional :deidentify, :message, 7, "google.privacy.dlp.v2.Action.Deidentify"
743
871
  optional :job_notification_emails, :message, 8, "google.privacy.dlp.v2.Action.JobNotificationEmails"
744
872
  optional :publish_to_stackdriver, :message, 9, "google.privacy.dlp.v2.Action.PublishToStackdriver"
745
873
  end
@@ -754,10 +882,23 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
754
882
  end
755
883
  add_message "google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog" do
756
884
  end
885
+ add_message "google.privacy.dlp.v2.Action.Deidentify" do
886
+ optional :transformation_config, :message, 7, "google.privacy.dlp.v2.TransformationConfig"
887
+ optional :transformation_details_storage_config, :message, 3, "google.privacy.dlp.v2.TransformationDetailsStorageConfig"
888
+ repeated :file_types_to_transform, :enum, 8, "google.privacy.dlp.v2.FileType"
889
+ oneof :output do
890
+ optional :cloud_storage_output, :string, 9
891
+ end
892
+ end
757
893
  add_message "google.privacy.dlp.v2.Action.JobNotificationEmails" do
758
894
  end
759
895
  add_message "google.privacy.dlp.v2.Action.PublishToStackdriver" do
760
896
  end
897
+ add_message "google.privacy.dlp.v2.TransformationConfig" do
898
+ optional :deidentify_template, :string, 1
899
+ optional :structured_deidentify_template, :string, 2
900
+ optional :image_redact_template, :string, 4
901
+ end
761
902
  add_message "google.privacy.dlp.v2.CreateInspectTemplateRequest" do
762
903
  optional :parent, :string, 1
763
904
  optional :inspect_template, :message, 2, "google.privacy.dlp.v2.InspectTemplate"
@@ -1034,15 +1175,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
1034
1175
  end
1035
1176
  add_message "google.privacy.dlp.v2.HybridInspectResponse" do
1036
1177
  end
1037
- add_message "google.privacy.dlp.v2.SensitivityScore" do
1038
- optional :score, :enum, 1, "google.privacy.dlp.v2.SensitivityScore.SensitivityScoreLevel"
1039
- end
1040
- add_enum "google.privacy.dlp.v2.SensitivityScore.SensitivityScoreLevel" do
1041
- value :SENSITIVITY_SCORE_UNSPECIFIED, 0
1042
- value :SENSITIVITY_LOW, 10
1043
- value :SENSITIVITY_MODERATE, 20
1044
- value :SENSITIVITY_HIGH, 30
1045
- end
1046
1178
  add_message "google.privacy.dlp.v2.DataRiskLevel" do
1047
1179
  optional :score, :enum, 1, "google.privacy.dlp.v2.DataRiskLevel.DataRiskLevelScore"
1048
1180
  end
@@ -1094,9 +1226,11 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
1094
1226
  end
1095
1227
  add_message "google.privacy.dlp.v2.InfoTypeSummary" do
1096
1228
  optional :info_type, :message, 1, "google.privacy.dlp.v2.InfoType"
1229
+ optional :estimated_prevalence, :int32, 2
1097
1230
  end
1098
1231
  add_message "google.privacy.dlp.v2.OtherInfoTypeSummary" do
1099
1232
  optional :info_type, :message, 1, "google.privacy.dlp.v2.InfoType"
1233
+ optional :estimated_prevalence, :int32, 2
1100
1234
  end
1101
1235
  add_message "google.privacy.dlp.v2.DataProfilePubSubCondition" do
1102
1236
  optional :expressions, :message, 1, "google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions"
@@ -1125,6 +1259,36 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
1125
1259
  optional :profile, :message, 1, "google.privacy.dlp.v2.TableDataProfile"
1126
1260
  optional :event, :enum, 2, "google.privacy.dlp.v2.DataProfileAction.EventType"
1127
1261
  end
1262
+ add_enum "google.privacy.dlp.v2.TransformationResultStatusType" do
1263
+ value :STATE_TYPE_UNSPECIFIED, 0
1264
+ value :INVALID_TRANSFORM, 1
1265
+ value :BIGQUERY_MAX_ROW_SIZE_EXCEEDED, 2
1266
+ value :METADATA_UNRETRIEVABLE, 3
1267
+ value :SUCCESS, 4
1268
+ end
1269
+ add_enum "google.privacy.dlp.v2.TransformationContainerType" do
1270
+ value :TRANSFORM_UNKNOWN_CONTAINER, 0
1271
+ value :TRANSFORM_BODY, 1
1272
+ value :TRANSFORM_METADATA, 2
1273
+ value :TRANSFORM_TABLE, 3
1274
+ end
1275
+ add_enum "google.privacy.dlp.v2.TransformationType" do
1276
+ value :TRANSFORMATION_TYPE_UNSPECIFIED, 0
1277
+ value :RECORD_SUPPRESSION, 1
1278
+ value :REPLACE_VALUE, 2
1279
+ value :REPLACE_DICTIONARY, 15
1280
+ value :REDACT, 3
1281
+ value :CHARACTER_MASK, 4
1282
+ value :CRYPTO_REPLACE_FFX_FPE, 5
1283
+ value :FIXED_SIZE_BUCKETING, 6
1284
+ value :BUCKETING, 7
1285
+ value :REPLACE_WITH_INFO_TYPE, 8
1286
+ value :TIME_PART, 9
1287
+ value :CRYPTO_HASH, 10
1288
+ value :DATE_SHIFT, 12
1289
+ value :CRYPTO_DETERMINISTIC_CONFIG, 13
1290
+ value :REDACT_IMAGE, 14
1291
+ end
1128
1292
  add_enum "google.privacy.dlp.v2.RelationalOperator" do
1129
1293
  value :RELATIONAL_OPERATOR_UNSPECIFIED, 0
1130
1294
  value :EQUAL_TO, 1
@@ -1227,6 +1391,11 @@ module Google
1227
1391
  InspectDataSourceDetails::Result = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.InspectDataSourceDetails.Result").msgclass
1228
1392
  HybridInspectStatistics = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.HybridInspectStatistics").msgclass
1229
1393
  InfoTypeDescription = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.InfoTypeDescription").msgclass
1394
+ InfoTypeCategory = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.InfoTypeCategory").msgclass
1395
+ InfoTypeCategory::LocationCategory = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.InfoTypeCategory.LocationCategory").enummodule
1396
+ InfoTypeCategory::IndustryCategory = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.InfoTypeCategory.IndustryCategory").enummodule
1397
+ InfoTypeCategory::TypeCategory = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.InfoTypeCategory.TypeCategory").enummodule
1398
+ VersionDescription = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.VersionDescription").msgclass
1230
1399
  ListInfoTypesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.ListInfoTypesRequest").msgclass
1231
1400
  ListInfoTypesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.ListInfoTypesResponse").msgclass
1232
1401
  RiskAnalysisJobConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.RiskAnalysisJobConfig").msgclass
@@ -1266,6 +1435,11 @@ module Google
1266
1435
  DateTime = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DateTime").msgclass
1267
1436
  DateTime::TimeZone = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DateTime.TimeZone").msgclass
1268
1437
  DeidentifyConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DeidentifyConfig").msgclass
1438
+ ImageTransformations = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.ImageTransformations").msgclass
1439
+ ImageTransformations::ImageTransformation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.ImageTransformations.ImageTransformation").msgclass
1440
+ ImageTransformations::ImageTransformation::SelectedInfoTypes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypes").msgclass
1441
+ ImageTransformations::ImageTransformation::AllInfoTypes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes").msgclass
1442
+ ImageTransformations::ImageTransformation::AllText = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText").msgclass
1269
1443
  TransformationErrorHandling = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.TransformationErrorHandling").msgclass
1270
1444
  TransformationErrorHandling::ThrowError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.TransformationErrorHandling.ThrowError").msgclass
1271
1445
  TransformationErrorHandling::LeaveUntransformed = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed").msgclass
@@ -1305,6 +1479,12 @@ module Google
1305
1479
  TransformationSummary = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.TransformationSummary").msgclass
1306
1480
  TransformationSummary::SummaryResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.TransformationSummary.SummaryResult").msgclass
1307
1481
  TransformationSummary::TransformationResultCode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.TransformationSummary.TransformationResultCode").enummodule
1482
+ TransformationDescription = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.TransformationDescription").msgclass
1483
+ TransformationDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.TransformationDetails").msgclass
1484
+ TransformationLocation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.TransformationLocation").msgclass
1485
+ RecordTransformation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.RecordTransformation").msgclass
1486
+ TransformationResultStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.TransformationResultStatus").msgclass
1487
+ TransformationDetailsStorageConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.TransformationDetailsStorageConfig").msgclass
1308
1488
  Schedule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.Schedule").msgclass
1309
1489
  Manual = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.Manual").msgclass
1310
1490
  InspectTemplate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.InspectTemplate").msgclass
@@ -1318,8 +1498,10 @@ module Google
1318
1498
  Action::PublishToPubSub = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.Action.PublishToPubSub").msgclass
1319
1499
  Action::PublishSummaryToCscc = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.Action.PublishSummaryToCscc").msgclass
1320
1500
  Action::PublishFindingsToCloudDataCatalog = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog").msgclass
1501
+ Action::Deidentify = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.Action.Deidentify").msgclass
1321
1502
  Action::JobNotificationEmails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.Action.JobNotificationEmails").msgclass
1322
1503
  Action::PublishToStackdriver = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.Action.PublishToStackdriver").msgclass
1504
+ TransformationConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.TransformationConfig").msgclass
1323
1505
  CreateInspectTemplateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.CreateInspectTemplateRequest").msgclass
1324
1506
  UpdateInspectTemplateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.UpdateInspectTemplateRequest").msgclass
1325
1507
  GetInspectTemplateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.GetInspectTemplateRequest").msgclass
@@ -1373,8 +1555,6 @@ module Google
1373
1555
  HybridContentItem = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.HybridContentItem").msgclass
1374
1556
  HybridFindingDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.HybridFindingDetails").msgclass
1375
1557
  HybridInspectResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.HybridInspectResponse").msgclass
1376
- SensitivityScore = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.SensitivityScore").msgclass
1377
- SensitivityScore::SensitivityScoreLevel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.SensitivityScore.SensitivityScoreLevel").enummodule
1378
1558
  DataRiskLevel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DataRiskLevel").msgclass
1379
1559
  DataRiskLevel::DataRiskLevelScore = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DataRiskLevel.DataRiskLevelScore").enummodule
1380
1560
  DataProfileConfigSnapshot = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DataProfileConfigSnapshot").msgclass
@@ -1389,6 +1569,9 @@ module Google
1389
1569
  DataProfilePubSubCondition::PubSubExpressions::PubSubLogicalOperator = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions.PubSubLogicalOperator").enummodule
1390
1570
  DataProfilePubSubCondition::ProfileScoreBucket = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket").enummodule
1391
1571
  DataProfilePubSubMessage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DataProfilePubSubMessage").msgclass
1572
+ TransformationResultStatusType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.TransformationResultStatusType").enummodule
1573
+ TransformationContainerType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.TransformationContainerType").enummodule
1574
+ TransformationType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.TransformationType").enummodule
1392
1575
  RelationalOperator = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.RelationalOperator").enummodule
1393
1576
  MatchingType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.MatchingType").enummodule
1394
1577
  ContentOption = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.ContentOption").enummodule
@@ -74,11 +74,11 @@ module Google
74
74
  # https://cloud.google.com/dlp/docs/pseudonymization#re-identification_in_free_text_code_example
75
75
  # to learn more.
76
76
  rpc :ReidentifyContent, ::Google::Cloud::Dlp::V2::ReidentifyContentRequest, ::Google::Cloud::Dlp::V2::ReidentifyContentResponse
77
- # Returns a list of the sensitive information types that the DLP API
77
+ # Returns a list of the sensitive information types that DLP API
78
78
  # supports. See https://cloud.google.com/dlp/docs/infotypes-reference to
79
79
  # learn more.
80
80
  rpc :ListInfoTypes, ::Google::Cloud::Dlp::V2::ListInfoTypesRequest, ::Google::Cloud::Dlp::V2::ListInfoTypesResponse
81
- # Creates an InspectTemplate for re-using frequently used configuration
81
+ # Creates an InspectTemplate for reusing frequently used configuration
82
82
  # for inspecting content, images, and storage.
83
83
  # See https://cloud.google.com/dlp/docs/creating-templates to learn more.
84
84
  rpc :CreateInspectTemplate, ::Google::Cloud::Dlp::V2::CreateInspectTemplateRequest, ::Google::Cloud::Dlp::V2::InspectTemplate
@@ -94,7 +94,7 @@ module Google
94
94
  # Deletes an InspectTemplate.
95
95
  # See https://cloud.google.com/dlp/docs/creating-templates to learn more.
96
96
  rpc :DeleteInspectTemplate, ::Google::Cloud::Dlp::V2::DeleteInspectTemplateRequest, ::Google::Protobuf::Empty
97
- # Creates a DeidentifyTemplate for re-using frequently used configuration
97
+ # Creates a DeidentifyTemplate for reusing frequently used configuration
98
98
  # for de-identifying content, images, and storage.
99
99
  # See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
100
100
  # more.
@@ -155,7 +155,7 @@ module Google
155
155
  # https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
156
156
  rpc :GetDlpJob, ::Google::Cloud::Dlp::V2::GetDlpJobRequest, ::Google::Cloud::Dlp::V2::DlpJob
157
157
  # Deletes a long-running DlpJob. This method indicates that the client is
158
- # no longer interested in the DlpJob result. The job will be cancelled if
158
+ # no longer interested in the DlpJob result. The job will be canceled if
159
159
  # possible.
160
160
  # See https://cloud.google.com/dlp/docs/inspecting-storage and
161
161
  # https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
@@ -1,9 +1,10 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/privacy/dlp/v2/storage.proto
3
3
 
4
+ require 'google/protobuf'
5
+
4
6
  require 'google/api/resource_pb'
5
7
  require 'google/protobuf/timestamp_pb'
6
- require 'google/protobuf'
7
8
 
8
9
  Google::Protobuf::DescriptorPool.generated_pool.build do
9
10
  add_file("google/privacy/dlp/v2/storage.proto", :syntax => :proto3) do
@@ -11,6 +12,15 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
11
12
  optional :name, :string, 1
12
13
  optional :version, :string, 2
13
14
  end
15
+ add_message "google.privacy.dlp.v2.SensitivityScore" do
16
+ optional :score, :enum, 1, "google.privacy.dlp.v2.SensitivityScore.SensitivityScoreLevel"
17
+ end
18
+ add_enum "google.privacy.dlp.v2.SensitivityScore.SensitivityScoreLevel" do
19
+ value :SENSITIVITY_SCORE_UNSPECIFIED, 0
20
+ value :SENSITIVITY_LOW, 10
21
+ value :SENSITIVITY_MODERATE, 20
22
+ value :SENSITIVITY_HIGH, 30
23
+ end
14
24
  add_message "google.privacy.dlp.v2.StoredType" do
15
25
  optional :name, :string, 1
16
26
  optional :create_time, :message, 2, "google.protobuf.Timestamp"
@@ -212,6 +222,8 @@ module Google
212
222
  module Dlp
213
223
  module V2
214
224
  InfoType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.InfoType").msgclass
225
+ SensitivityScore = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.SensitivityScore").msgclass
226
+ SensitivityScore::SensitivityScoreLevel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.SensitivityScore.SensitivityScoreLevel").enummodule
215
227
  StoredType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.StoredType").msgclass
216
228
  CustomInfoType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.CustomInfoType").msgclass
217
229
  CustomInfoType::Dictionary = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.CustomInfoType.Dictionary").msgclass