google-cloud-dlp-v2 0.12.0 → 0.13.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 47248e1e45129eef35155efe27d4976f8033217b61c2a2e8d22e3fecabbca797
4
- data.tar.gz: a3a34a8895709a0a68081837d2bde5322bddb436fde3de77b2a62b388210066e
3
+ metadata.gz: c39607989cede0e961d7cbe3fe8ef8dbad91ee3fa60191fe694bfab3f9b51aeb
4
+ data.tar.gz: 16c66b119f6cdd9768070d26ee294fc6d288795d7c104cb92474a90e67f74091
5
5
  SHA512:
6
- metadata.gz: 54fa81f4e7ea8f866d35548c36bf2ff35b53ffebb02ab10265531eb549ae00246f9d9cb671b71bbc2e70e0ff6903f2552796b134872cba2529215f420968c31b
7
- data.tar.gz: ac749e5d7b9b3e599b4d2832d63ba10012fe56f41aae2f420c08e0b63d35a49994a47b7eb927b674c398cf6ba2bbffc23c2efcefcf1ddce330314f6fbe97971d
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
@@ -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.12.0"
24
+ VERSION = "0.13.0"
25
25
  end
26
26
  end
27
27
  end
@@ -274,6 +274,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
274
274
  optional :display_name, :string, 2
275
275
  repeated :supported_by, :enum, 3, "google.privacy.dlp.v2.InfoTypeSupportedBy"
276
276
  optional :description, :string, 4
277
+ repeated :versions, :message, 9, "google.privacy.dlp.v2.VersionDescription"
277
278
  repeated :categories, :message, 10, "google.privacy.dlp.v2.InfoTypeCategory"
278
279
  end
279
280
  add_message "google.privacy.dlp.v2.InfoTypeCategory" do
@@ -342,6 +343,10 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
342
343
  value :DOCUMENT, 6
343
344
  value :CONTEXTUAL_INFORMATION, 7
344
345
  end
346
+ add_message "google.privacy.dlp.v2.VersionDescription" do
347
+ optional :version, :string, 1
348
+ optional :description, :string, 2
349
+ end
345
350
  add_message "google.privacy.dlp.v2.ListInfoTypesRequest" do
346
351
  optional :parent, :string, 4
347
352
  optional :language_code, :string, 1
@@ -548,8 +553,27 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
548
553
  oneof :transformation do
549
554
  optional :info_type_transformations, :message, 1, "google.privacy.dlp.v2.InfoTypeTransformations"
550
555
  optional :record_transformations, :message, 2, "google.privacy.dlp.v2.RecordTransformations"
556
+ optional :image_transformations, :message, 4, "google.privacy.dlp.v2.ImageTransformations"
557
+ end
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"
551
568
  end
552
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
553
577
  add_message "google.privacy.dlp.v2.TransformationErrorHandling" do
554
578
  oneof :mode do
555
579
  optional :throw_error, :message, 1, "google.privacy.dlp.v2.TransformationErrorHandling.ThrowError"
@@ -749,6 +773,41 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
749
773
  value :SUCCESS, 1
750
774
  value :ERROR, 2
751
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
752
811
  add_message "google.privacy.dlp.v2.Schedule" do
753
812
  oneof :option do
754
813
  optional :recurrence_period_duration, :message, 1, "google.protobuf.Duration"
@@ -808,6 +867,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
808
867
  optional :pub_sub, :message, 2, "google.privacy.dlp.v2.Action.PublishToPubSub"
809
868
  optional :publish_summary_to_cscc, :message, 3, "google.privacy.dlp.v2.Action.PublishSummaryToCscc"
810
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"
811
871
  optional :job_notification_emails, :message, 8, "google.privacy.dlp.v2.Action.JobNotificationEmails"
812
872
  optional :publish_to_stackdriver, :message, 9, "google.privacy.dlp.v2.Action.PublishToStackdriver"
813
873
  end
@@ -822,10 +882,23 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
822
882
  end
823
883
  add_message "google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog" do
824
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
825
893
  add_message "google.privacy.dlp.v2.Action.JobNotificationEmails" do
826
894
  end
827
895
  add_message "google.privacy.dlp.v2.Action.PublishToStackdriver" do
828
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
829
902
  add_message "google.privacy.dlp.v2.CreateInspectTemplateRequest" do
830
903
  optional :parent, :string, 1
831
904
  optional :inspect_template, :message, 2, "google.privacy.dlp.v2.InspectTemplate"
@@ -1102,15 +1175,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
1102
1175
  end
1103
1176
  add_message "google.privacy.dlp.v2.HybridInspectResponse" do
1104
1177
  end
1105
- add_message "google.privacy.dlp.v2.SensitivityScore" do
1106
- optional :score, :enum, 1, "google.privacy.dlp.v2.SensitivityScore.SensitivityScoreLevel"
1107
- end
1108
- add_enum "google.privacy.dlp.v2.SensitivityScore.SensitivityScoreLevel" do
1109
- value :SENSITIVITY_SCORE_UNSPECIFIED, 0
1110
- value :SENSITIVITY_LOW, 10
1111
- value :SENSITIVITY_MODERATE, 20
1112
- value :SENSITIVITY_HIGH, 30
1113
- end
1114
1178
  add_message "google.privacy.dlp.v2.DataRiskLevel" do
1115
1179
  optional :score, :enum, 1, "google.privacy.dlp.v2.DataRiskLevel.DataRiskLevelScore"
1116
1180
  end
@@ -1162,9 +1226,11 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
1162
1226
  end
1163
1227
  add_message "google.privacy.dlp.v2.InfoTypeSummary" do
1164
1228
  optional :info_type, :message, 1, "google.privacy.dlp.v2.InfoType"
1229
+ optional :estimated_prevalence, :int32, 2
1165
1230
  end
1166
1231
  add_message "google.privacy.dlp.v2.OtherInfoTypeSummary" do
1167
1232
  optional :info_type, :message, 1, "google.privacy.dlp.v2.InfoType"
1233
+ optional :estimated_prevalence, :int32, 2
1168
1234
  end
1169
1235
  add_message "google.privacy.dlp.v2.DataProfilePubSubCondition" do
1170
1236
  optional :expressions, :message, 1, "google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions"
@@ -1193,6 +1259,36 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
1193
1259
  optional :profile, :message, 1, "google.privacy.dlp.v2.TableDataProfile"
1194
1260
  optional :event, :enum, 2, "google.privacy.dlp.v2.DataProfileAction.EventType"
1195
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
1196
1292
  add_enum "google.privacy.dlp.v2.RelationalOperator" do
1197
1293
  value :RELATIONAL_OPERATOR_UNSPECIFIED, 0
1198
1294
  value :EQUAL_TO, 1
@@ -1299,6 +1395,7 @@ module Google
1299
1395
  InfoTypeCategory::LocationCategory = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.InfoTypeCategory.LocationCategory").enummodule
1300
1396
  InfoTypeCategory::IndustryCategory = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.InfoTypeCategory.IndustryCategory").enummodule
1301
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
1302
1399
  ListInfoTypesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.ListInfoTypesRequest").msgclass
1303
1400
  ListInfoTypesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.ListInfoTypesResponse").msgclass
1304
1401
  RiskAnalysisJobConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.RiskAnalysisJobConfig").msgclass
@@ -1338,6 +1435,11 @@ module Google
1338
1435
  DateTime = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DateTime").msgclass
1339
1436
  DateTime::TimeZone = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DateTime.TimeZone").msgclass
1340
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
1341
1443
  TransformationErrorHandling = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.TransformationErrorHandling").msgclass
1342
1444
  TransformationErrorHandling::ThrowError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.TransformationErrorHandling.ThrowError").msgclass
1343
1445
  TransformationErrorHandling::LeaveUntransformed = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed").msgclass
@@ -1377,6 +1479,12 @@ module Google
1377
1479
  TransformationSummary = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.TransformationSummary").msgclass
1378
1480
  TransformationSummary::SummaryResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.TransformationSummary.SummaryResult").msgclass
1379
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
1380
1488
  Schedule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.Schedule").msgclass
1381
1489
  Manual = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.Manual").msgclass
1382
1490
  InspectTemplate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.InspectTemplate").msgclass
@@ -1390,8 +1498,10 @@ module Google
1390
1498
  Action::PublishToPubSub = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.Action.PublishToPubSub").msgclass
1391
1499
  Action::PublishSummaryToCscc = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.Action.PublishSummaryToCscc").msgclass
1392
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
1393
1502
  Action::JobNotificationEmails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.Action.JobNotificationEmails").msgclass
1394
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
1395
1505
  CreateInspectTemplateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.CreateInspectTemplateRequest").msgclass
1396
1506
  UpdateInspectTemplateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.UpdateInspectTemplateRequest").msgclass
1397
1507
  GetInspectTemplateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.GetInspectTemplateRequest").msgclass
@@ -1445,8 +1555,6 @@ module Google
1445
1555
  HybridContentItem = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.HybridContentItem").msgclass
1446
1556
  HybridFindingDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.HybridFindingDetails").msgclass
1447
1557
  HybridInspectResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.HybridInspectResponse").msgclass
1448
- SensitivityScore = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.SensitivityScore").msgclass
1449
- SensitivityScore::SensitivityScoreLevel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.SensitivityScore.SensitivityScoreLevel").enummodule
1450
1558
  DataRiskLevel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DataRiskLevel").msgclass
1451
1559
  DataRiskLevel::DataRiskLevelScore = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DataRiskLevel.DataRiskLevelScore").enummodule
1452
1560
  DataProfileConfigSnapshot = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DataProfileConfigSnapshot").msgclass
@@ -1461,6 +1569,9 @@ module Google
1461
1569
  DataProfilePubSubCondition::PubSubExpressions::PubSubLogicalOperator = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions.PubSubLogicalOperator").enummodule
1462
1570
  DataProfilePubSubCondition::ProfileScoreBucket = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket").enummodule
1463
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
1464
1575
  RelationalOperator = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.RelationalOperator").enummodule
1465
1576
  MatchingType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.MatchingType").enummodule
1466
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.
@@ -12,6 +12,15 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
12
12
  optional :name, :string, 1
13
13
  optional :version, :string, 2
14
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
15
24
  add_message "google.privacy.dlp.v2.StoredType" do
16
25
  optional :name, :string, 1
17
26
  optional :create_time, :message, 2, "google.protobuf.Timestamp"
@@ -213,6 +222,8 @@ module Google
213
222
  module Dlp
214
223
  module V2
215
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
216
227
  StoredType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.StoredType").msgclass
217
228
  CustomInfoType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.CustomInfoType").msgclass
218
229
  CustomInfoType::Dictionary = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.CustomInfoType.Dictionary").msgclass