google-cloud-dlp-v2 0.8.1 → 0.11.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: bfe5c508619660414cbad43e9ff2e3a412101a2d279bad41c59b58da1c350347
4
- data.tar.gz: 45f06e8ec4d5452890bf5bb76552697bc65ba5016d73f7fcdecf36025a5bad75
3
+ metadata.gz: 7c94ad56435a778ceec6fdeed67ec19e57da323fefd39f48a373feae83e25492
4
+ data.tar.gz: 535a84c441b615ee919e164f3e0a94b26f0f2ffd3d8e44fe7db3e49791764bfb
5
5
  SHA512:
6
- metadata.gz: bc5944495c1df882df55ed217df31117809f1ed44965ecf2201ef688fe4380b400c7f6fe64522d831cf7ec2c7231139d18b280b39a1288380daa2245c61c70fa
7
- data.tar.gz: 78c3693c89ac3c5e9d0c6003ec08d679177f15b31ed6b3dacc1fc6a76db926580f14a354dfa2868665bc6218278bf5138cd531e7df2318fbe3ba46bba444ed48
6
+ metadata.gz: 2ce78381306a366a1425f5a41723a598174256a27dc0685a1c3364b8dcf1da8378b16506d354bd4bb4c39395358d48a9ae6e8ecaed768585194c1ec25737015b
7
+ data.tar.gz: 8a9547cd3122e94f0312d492cdc6226c5201fa3aa6429be49da44543dae9f09f210de0fe1cf7ec98a6f588f7913aa9cf71970a730f9b49979c5d0cc76bcc2d45
data/README.md CHANGED
@@ -37,7 +37,7 @@ request = ::Google::Cloud::Dlp::V2::InspectContentRequest.new # (request fields
37
37
  response = client.inspect_content request
38
38
  ```
39
39
 
40
- View the [Client Library Documentation](https://googleapis.dev/ruby/google-cloud-dlp-v2/latest)
40
+ View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest)
41
41
  for class and method documentation.
42
42
 
43
43
  See also the [Product Documentation](https://cloud.google.com/dlp)
@@ -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
 
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Dlp
23
23
  module V2
24
- VERSION = "0.8.1"
24
+ VERSION = "0.11.0"
25
25
  end
26
26
  end
27
27
  end
@@ -25,6 +25,8 @@ module Google
25
25
  ##
26
26
  # To load this package, including all its services, and instantiate a client:
27
27
  #
28
+ # @example
29
+ #
28
30
  # require "google/cloud/dlp/v2"
29
31
  # client = ::Google::Cloud::Dlp::V2::DlpService::Client.new
30
32
  #
@@ -1,6 +1,9 @@
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
+
6
+ require 'google/api/annotations_pb'
4
7
  require 'google/api/client_pb'
5
8
  require 'google/api/field_behavior_pb'
6
9
  require 'google/api/resource_pb'
@@ -13,8 +16,6 @@ require 'google/rpc/status_pb'
13
16
  require 'google/type/date_pb'
14
17
  require 'google/type/dayofweek_pb'
15
18
  require 'google/type/timeofday_pb'
16
- require 'google/api/annotations_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
@@ -72,6 +73,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
72
73
  value :TEXT_UTF8, 5
73
74
  value :WORD_DOCUMENT, 7
74
75
  value :PDF, 8
76
+ value :POWERPOINT_DOCUMENT, 9
77
+ value :EXCEL_DOCUMENT, 10
75
78
  value :AVRO, 11
76
79
  value :CSV, 12
77
80
  value :TSV, 13
@@ -832,6 +835,45 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
832
835
  optional :inspect_template_name, :string, 3
833
836
  repeated :actions, :message, 4, "google.privacy.dlp.v2.Action"
834
837
  end
838
+ add_message "google.privacy.dlp.v2.DataProfileAction" do
839
+ oneof :action do
840
+ optional :export_data, :message, 1, "google.privacy.dlp.v2.DataProfileAction.Export"
841
+ optional :pub_sub_notification, :message, 2, "google.privacy.dlp.v2.DataProfileAction.PubSubNotification"
842
+ end
843
+ end
844
+ add_message "google.privacy.dlp.v2.DataProfileAction.Export" do
845
+ optional :profile_table, :message, 1, "google.privacy.dlp.v2.BigQueryTable"
846
+ end
847
+ add_message "google.privacy.dlp.v2.DataProfileAction.PubSubNotification" do
848
+ optional :topic, :string, 1
849
+ optional :event, :enum, 2, "google.privacy.dlp.v2.DataProfileAction.EventType"
850
+ optional :pubsub_condition, :message, 3, "google.privacy.dlp.v2.DataProfilePubSubCondition"
851
+ optional :detail_of_message, :enum, 4, "google.privacy.dlp.v2.DataProfileAction.PubSubNotification.DetailLevel"
852
+ end
853
+ add_enum "google.privacy.dlp.v2.DataProfileAction.PubSubNotification.DetailLevel" do
854
+ value :DETAIL_LEVEL_UNSPECIFIED, 0
855
+ value :TABLE_PROFILE, 1
856
+ value :RESOURCE_NAME, 2
857
+ end
858
+ add_enum "google.privacy.dlp.v2.DataProfileAction.EventType" do
859
+ value :EVENT_TYPE_UNSPECIFIED, 0
860
+ value :NEW_PROFILE, 1
861
+ value :CHANGED_PROFILE, 2
862
+ value :SCORE_INCREASED, 3
863
+ value :ERROR_CHANGED, 4
864
+ end
865
+ add_message "google.privacy.dlp.v2.DataProfileJobConfig" do
866
+ optional :location, :message, 1, "google.privacy.dlp.v2.DataProfileLocation"
867
+ optional :project_id, :string, 5
868
+ repeated :inspect_templates, :string, 7
869
+ repeated :data_profile_actions, :message, 6, "google.privacy.dlp.v2.DataProfileAction"
870
+ end
871
+ add_message "google.privacy.dlp.v2.DataProfileLocation" do
872
+ oneof :location do
873
+ optional :organization_id, :int64, 1
874
+ optional :folder_id, :int64, 2
875
+ end
876
+ end
835
877
  add_message "google.privacy.dlp.v2.DlpJob" do
836
878
  optional :name, :string, 1
837
879
  optional :type, :enum, 2, "google.privacy.dlp.v2.DlpJobType"
@@ -993,6 +1035,97 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
993
1035
  end
994
1036
  add_message "google.privacy.dlp.v2.HybridInspectResponse" do
995
1037
  end
1038
+ add_message "google.privacy.dlp.v2.SensitivityScore" do
1039
+ optional :score, :enum, 1, "google.privacy.dlp.v2.SensitivityScore.SensitivityScoreLevel"
1040
+ end
1041
+ add_enum "google.privacy.dlp.v2.SensitivityScore.SensitivityScoreLevel" do
1042
+ value :SENSITIVITY_SCORE_UNSPECIFIED, 0
1043
+ value :SENSITIVITY_LOW, 10
1044
+ value :SENSITIVITY_MODERATE, 20
1045
+ value :SENSITIVITY_HIGH, 30
1046
+ end
1047
+ add_message "google.privacy.dlp.v2.DataRiskLevel" do
1048
+ optional :score, :enum, 1, "google.privacy.dlp.v2.DataRiskLevel.DataRiskLevelScore"
1049
+ end
1050
+ add_enum "google.privacy.dlp.v2.DataRiskLevel.DataRiskLevelScore" do
1051
+ value :RISK_SCORE_UNSPECIFIED, 0
1052
+ value :RISK_LOW, 10
1053
+ value :RISK_MODERATE, 20
1054
+ value :RISK_HIGH, 30
1055
+ end
1056
+ add_message "google.privacy.dlp.v2.DataProfileConfigSnapshot" do
1057
+ optional :inspect_config, :message, 2, "google.privacy.dlp.v2.InspectConfig"
1058
+ optional :data_profile_job, :message, 3, "google.privacy.dlp.v2.DataProfileJobConfig"
1059
+ end
1060
+ add_message "google.privacy.dlp.v2.TableDataProfile" do
1061
+ optional :name, :string, 1
1062
+ optional :project_data_profile, :string, 2
1063
+ optional :dataset_project_id, :string, 24
1064
+ optional :dataset_location, :string, 29
1065
+ optional :dataset_id, :string, 25
1066
+ optional :table_id, :string, 26
1067
+ optional :full_resource, :string, 3
1068
+ optional :profile_status, :message, 21, "google.privacy.dlp.v2.ProfileStatus"
1069
+ optional :state, :enum, 22, "google.privacy.dlp.v2.TableDataProfile.State"
1070
+ optional :sensitivity_score, :message, 5, "google.privacy.dlp.v2.SensitivityScore"
1071
+ optional :data_risk_level, :message, 6, "google.privacy.dlp.v2.DataRiskLevel"
1072
+ repeated :predicted_info_types, :message, 27, "google.privacy.dlp.v2.InfoTypeSummary"
1073
+ repeated :other_info_types, :message, 28, "google.privacy.dlp.v2.OtherInfoTypeSummary"
1074
+ optional :config_snapshot, :message, 7, "google.privacy.dlp.v2.DataProfileConfigSnapshot"
1075
+ optional :last_modified_time, :message, 8, "google.protobuf.Timestamp"
1076
+ optional :expiration_time, :message, 9, "google.protobuf.Timestamp"
1077
+ optional :scanned_column_count, :int64, 10
1078
+ optional :failed_column_count, :int64, 11
1079
+ optional :table_size_bytes, :int64, 12
1080
+ optional :row_count, :int64, 13
1081
+ optional :encryption_status, :enum, 14, "google.privacy.dlp.v2.EncryptionStatus"
1082
+ optional :resource_visibility, :enum, 15, "google.privacy.dlp.v2.ResourceVisibility"
1083
+ optional :profile_last_generated, :message, 16, "google.protobuf.Timestamp"
1084
+ map :resource_labels, :string, :string, 17
1085
+ optional :create_time, :message, 23, "google.protobuf.Timestamp"
1086
+ end
1087
+ add_enum "google.privacy.dlp.v2.TableDataProfile.State" do
1088
+ value :STATE_UNSPECIFIED, 0
1089
+ value :RUNNING, 1
1090
+ value :DONE, 2
1091
+ end
1092
+ add_message "google.privacy.dlp.v2.ProfileStatus" do
1093
+ optional :status, :message, 1, "google.rpc.Status"
1094
+ optional :timestamp, :message, 3, "google.protobuf.Timestamp"
1095
+ end
1096
+ add_message "google.privacy.dlp.v2.InfoTypeSummary" do
1097
+ optional :info_type, :message, 1, "google.privacy.dlp.v2.InfoType"
1098
+ end
1099
+ add_message "google.privacy.dlp.v2.OtherInfoTypeSummary" do
1100
+ optional :info_type, :message, 1, "google.privacy.dlp.v2.InfoType"
1101
+ end
1102
+ add_message "google.privacy.dlp.v2.DataProfilePubSubCondition" do
1103
+ optional :expressions, :message, 1, "google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions"
1104
+ end
1105
+ add_message "google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition" do
1106
+ oneof :value do
1107
+ optional :minimum_risk_score, :enum, 1, "google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket"
1108
+ optional :minimum_sensitivity_score, :enum, 2, "google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket"
1109
+ end
1110
+ end
1111
+ add_message "google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions" do
1112
+ optional :logical_operator, :enum, 1, "google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions.PubSubLogicalOperator"
1113
+ repeated :conditions, :message, 2, "google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition"
1114
+ end
1115
+ add_enum "google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions.PubSubLogicalOperator" do
1116
+ value :LOGICAL_OPERATOR_UNSPECIFIED, 0
1117
+ value :OR, 1
1118
+ value :AND, 2
1119
+ end
1120
+ add_enum "google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket" do
1121
+ value :PROFILE_SCORE_BUCKET_UNSPECIFIED, 0
1122
+ value :HIGH, 1
1123
+ value :MEDIUM_OR_HIGH, 2
1124
+ end
1125
+ add_message "google.privacy.dlp.v2.DataProfilePubSubMessage" do
1126
+ optional :profile, :message, 1, "google.privacy.dlp.v2.TableDataProfile"
1127
+ optional :event, :enum, 2, "google.privacy.dlp.v2.DataProfileAction.EventType"
1128
+ end
996
1129
  add_enum "google.privacy.dlp.v2.RelationalOperator" do
997
1130
  value :RELATIONAL_OPERATOR_UNSPECIFIED, 0
998
1131
  value :EQUAL_TO, 1
@@ -1035,6 +1168,16 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
1035
1168
  value :FAILED, 3
1036
1169
  value :INVALID, 4
1037
1170
  end
1171
+ add_enum "google.privacy.dlp.v2.ResourceVisibility" do
1172
+ value :RESOURCE_VISIBILITY_UNSPECIFIED, 0
1173
+ value :RESOURCE_VISIBILITY_PUBLIC, 10
1174
+ value :RESOURCE_VISIBILITY_RESTRICTED, 20
1175
+ end
1176
+ add_enum "google.privacy.dlp.v2.EncryptionStatus" do
1177
+ value :ENCRYPTION_STATUS_UNSPECIFIED, 0
1178
+ value :ENCRYPTION_GOOGLE_MANAGED, 1
1179
+ value :ENCRYPTION_CUSTOMER_MANAGED, 2
1180
+ end
1038
1181
  end
1039
1182
  end
1040
1183
 
@@ -1193,6 +1336,13 @@ module Google
1193
1336
  ListJobTriggersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.ListJobTriggersResponse").msgclass
1194
1337
  DeleteJobTriggerRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DeleteJobTriggerRequest").msgclass
1195
1338
  InspectJobConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.InspectJobConfig").msgclass
1339
+ DataProfileAction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DataProfileAction").msgclass
1340
+ DataProfileAction::Export = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DataProfileAction.Export").msgclass
1341
+ DataProfileAction::PubSubNotification = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DataProfileAction.PubSubNotification").msgclass
1342
+ DataProfileAction::PubSubNotification::DetailLevel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DataProfileAction.PubSubNotification.DetailLevel").enummodule
1343
+ DataProfileAction::EventType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DataProfileAction.EventType").enummodule
1344
+ DataProfileJobConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DataProfileJobConfig").msgclass
1345
+ DataProfileLocation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DataProfileLocation").msgclass
1196
1346
  DlpJob = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DlpJob").msgclass
1197
1347
  DlpJob::JobState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DlpJob.JobState").enummodule
1198
1348
  GetDlpJobRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.GetDlpJobRequest").msgclass
@@ -1224,6 +1374,22 @@ module Google
1224
1374
  HybridContentItem = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.HybridContentItem").msgclass
1225
1375
  HybridFindingDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.HybridFindingDetails").msgclass
1226
1376
  HybridInspectResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.HybridInspectResponse").msgclass
1377
+ SensitivityScore = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.SensitivityScore").msgclass
1378
+ SensitivityScore::SensitivityScoreLevel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.SensitivityScore.SensitivityScoreLevel").enummodule
1379
+ DataRiskLevel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DataRiskLevel").msgclass
1380
+ DataRiskLevel::DataRiskLevelScore = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DataRiskLevel.DataRiskLevelScore").enummodule
1381
+ DataProfileConfigSnapshot = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DataProfileConfigSnapshot").msgclass
1382
+ TableDataProfile = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.TableDataProfile").msgclass
1383
+ TableDataProfile::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.TableDataProfile.State").enummodule
1384
+ ProfileStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.ProfileStatus").msgclass
1385
+ InfoTypeSummary = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.InfoTypeSummary").msgclass
1386
+ OtherInfoTypeSummary = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.OtherInfoTypeSummary").msgclass
1387
+ DataProfilePubSubCondition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DataProfilePubSubCondition").msgclass
1388
+ DataProfilePubSubCondition::PubSubCondition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition").msgclass
1389
+ DataProfilePubSubCondition::PubSubExpressions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions").msgclass
1390
+ DataProfilePubSubCondition::PubSubExpressions::PubSubLogicalOperator = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions.PubSubLogicalOperator").enummodule
1391
+ DataProfilePubSubCondition::ProfileScoreBucket = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket").enummodule
1392
+ DataProfilePubSubMessage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DataProfilePubSubMessage").msgclass
1227
1393
  RelationalOperator = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.RelationalOperator").enummodule
1228
1394
  MatchingType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.MatchingType").enummodule
1229
1395
  ContentOption = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.ContentOption").enummodule
@@ -1231,6 +1397,8 @@ module Google
1231
1397
  InfoTypeSupportedBy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.InfoTypeSupportedBy").enummodule
1232
1398
  DlpJobType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DlpJobType").enummodule
1233
1399
  StoredInfoTypeState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.StoredInfoTypeState").enummodule
1400
+ ResourceVisibility = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.ResourceVisibility").enummodule
1401
+ EncryptionStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.EncryptionStatus").enummodule
1234
1402
  end
1235
1403
  end
1236
1404
  end
@@ -1,10 +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/api/annotations_pb'
4
+ require 'google/protobuf'
5
+
5
6
  require 'google/api/resource_pb'
6
7
  require 'google/protobuf/timestamp_pb'
7
- require 'google/protobuf'
8
8
 
9
9
  Google::Protobuf::DescriptorPool.generated_pool.build do
10
10
  add_file("google/privacy/dlp/v2/storage.proto", :syntax => :proto3) do
@@ -202,6 +202,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
202
202
  value :AVRO, 7
203
203
  value :CSV, 8
204
204
  value :TSV, 9
205
+ value :POWERPOINT, 11
206
+ value :EXCEL, 12
205
207
  end
206
208
  end
207
209
  end
@@ -106,21 +106,23 @@ module Google
106
106
  # @!attribute [rw] limits
107
107
  # @return [::Google::Cloud::Dlp::V2::InspectConfig::FindingLimits]
108
108
  # Configuration to control the number of findings returned.
109
+ # This is not used for data profiling.
109
110
  # @!attribute [rw] include_quote
110
111
  # @return [::Boolean]
111
112
  # When true, a contextual quote from the data that triggered a finding is
112
113
  # included in the response; see Finding.quote.
114
+ # This is not used for data profiling.
113
115
  # @!attribute [rw] exclude_info_types
114
116
  # @return [::Boolean]
115
117
  # When true, excludes type information of the findings.
118
+ # This is not used for data profiling.
116
119
  # @!attribute [rw] custom_info_types
117
120
  # @return [::Array<::Google::Cloud::Dlp::V2::CustomInfoType>]
118
121
  # CustomInfoTypes provided by the user. See
119
122
  # https://cloud.google.com/dlp/docs/creating-custom-infotypes to learn more.
120
123
  # @!attribute [rw] content_options
121
124
  # @return [::Array<::Google::Cloud::Dlp::V2::ContentOption>]
122
- # List of options defining data content to scan.
123
- # If empty, text, images, and other content will be included.
125
+ # Deprecated and unused.
124
126
  # @!attribute [rw] rule_set
125
127
  # @return [::Array<::Google::Cloud::Dlp::V2::InspectionRuleSet>]
126
128
  # Set of rules to apply to the findings for this InspectConfig.
@@ -130,8 +132,8 @@ module Google
130
132
  include ::Google::Protobuf::MessageExts
131
133
  extend ::Google::Protobuf::MessageExts::ClassMethods
132
134
 
133
- # Configuration to control the number of findings returned. Cannot be set if
134
- # de-identification is requested.
135
+ # Configuration to control the number of findings returned for inspection.
136
+ # This is not used for de-identification or data profiling.
135
137
  # @!attribute [rw] max_findings_per_item
136
138
  # @return [::Integer]
137
139
  # Max number of findings that will be returned for each item scanned.
@@ -210,6 +212,12 @@ module Google
210
212
  # pdf
211
213
  PDF = 8
212
214
 
215
+ # pptx, pptm, potx, potm, pot
216
+ POWERPOINT_DOCUMENT = 9
217
+
218
+ # xlsx, xlsm, xltx, xltm
219
+ EXCEL_DOCUMENT = 10
220
+
213
221
  # avro
214
222
  AVRO = 11
215
223
 
@@ -3172,6 +3180,144 @@ module Google
3172
3180
  extend ::Google::Protobuf::MessageExts::ClassMethods
3173
3181
  end
3174
3182
 
3183
+ # A task to execute when a data profile has been generated.
3184
+ # @!attribute [rw] export_data
3185
+ # @return [::Google::Cloud::Dlp::V2::DataProfileAction::Export]
3186
+ # Export data profiles into a provided location.
3187
+ # @!attribute [rw] pub_sub_notification
3188
+ # @return [::Google::Cloud::Dlp::V2::DataProfileAction::PubSubNotification]
3189
+ # Publish a message into the Pub/Sub topic.
3190
+ class DataProfileAction
3191
+ include ::Google::Protobuf::MessageExts
3192
+ extend ::Google::Protobuf::MessageExts::ClassMethods
3193
+
3194
+ # If set, the detailed data profiles will be persisted to the location
3195
+ # of your choice whenever updated.
3196
+ # @!attribute [rw] profile_table
3197
+ # @return [::Google::Cloud::Dlp::V2::BigQueryTable]
3198
+ # Store all table and column profiles in an existing table or a new table
3199
+ # in an existing dataset. Each re-generation will result in a new row in
3200
+ # BigQuery.
3201
+ class Export
3202
+ include ::Google::Protobuf::MessageExts
3203
+ extend ::Google::Protobuf::MessageExts::ClassMethods
3204
+ end
3205
+
3206
+ # Send a Pub/Sub message into the given Pub/Sub topic to connect other
3207
+ # systems to data profile generation. The message payload data will
3208
+ # be the byte serialization of `DataProfilePubSubMessage`.
3209
+ # @!attribute [rw] topic
3210
+ # @return [::String]
3211
+ # Cloud Pub/Sub topic to send notifications to.
3212
+ # Format is projects/\\{project}/topics/\\{topic}.
3213
+ # @!attribute [rw] event
3214
+ # @return [::Google::Cloud::Dlp::V2::DataProfileAction::EventType]
3215
+ # The type of event that triggers a Pub/Sub. At most one
3216
+ # `PubSubNotification` per EventType is permitted.
3217
+ # @!attribute [rw] pubsub_condition
3218
+ # @return [::Google::Cloud::Dlp::V2::DataProfilePubSubCondition]
3219
+ # Conditions (e.g., data risk or sensitivity level) for triggering a
3220
+ # Pub/Sub.
3221
+ # @!attribute [rw] detail_of_message
3222
+ # @return [::Google::Cloud::Dlp::V2::DataProfileAction::PubSubNotification::DetailLevel]
3223
+ # How much data to include in the Pub/Sub message. If the user wishes to
3224
+ # limit the size of the message, they can use resource_name and fetch the
3225
+ # profile fields they wish to. Per table profile (not per column).
3226
+ class PubSubNotification
3227
+ include ::Google::Protobuf::MessageExts
3228
+ extend ::Google::Protobuf::MessageExts::ClassMethods
3229
+
3230
+ # The levels of detail that can be included in the Pub/Sub message.
3231
+ module DetailLevel
3232
+ # Unused.
3233
+ DETAIL_LEVEL_UNSPECIFIED = 0
3234
+
3235
+ # The full table data profile.
3236
+ TABLE_PROFILE = 1
3237
+
3238
+ # The resource name of the table.
3239
+ RESOURCE_NAME = 2
3240
+ end
3241
+ end
3242
+
3243
+ # Types of event that can trigger an action.
3244
+ module EventType
3245
+ # Unused.
3246
+ EVENT_TYPE_UNSPECIFIED = 0
3247
+
3248
+ # New profile (not a re-profile).
3249
+ NEW_PROFILE = 1
3250
+
3251
+ # Changed one of the following profile metrics:
3252
+ # * Table data risk score
3253
+ # * Table sensitivity score
3254
+ # * Table resource visibility
3255
+ # * Table encryption type
3256
+ # * Table predicted infoTypes
3257
+ # * Table other infoTypes
3258
+ CHANGED_PROFILE = 2
3259
+
3260
+ # Table data risk score or sensitivity score increased.
3261
+ SCORE_INCREASED = 3
3262
+
3263
+ # A user (non-internal) error occurred.
3264
+ ERROR_CHANGED = 4
3265
+ end
3266
+ end
3267
+
3268
+ # Configuration for setting up a job to scan resources for profile generation.
3269
+ # Only one data profile configuration may exist per organization, folder,
3270
+ # or project.
3271
+ #
3272
+ # The generated data profiles are retained according to the
3273
+ # [data retention policy]
3274
+ # (https://cloud.google.com/dlp/docs/data-profiles#retention).
3275
+ # @!attribute [rw] location
3276
+ # @return [::Google::Cloud::Dlp::V2::DataProfileLocation]
3277
+ # The data to scan.
3278
+ # @!attribute [rw] project_id
3279
+ # @return [::String]
3280
+ # The project that will run the scan. The DLP service
3281
+ # account that exists within this project must have access to all resources
3282
+ # that are profiled, and the Cloud DLP API must be enabled.
3283
+ # @!attribute [rw] inspect_templates
3284
+ # @return [::Array<::String>]
3285
+ # Detection logic for profile generation.
3286
+ #
3287
+ # Not all template features are used by profiles. FindingLimits,
3288
+ # include_quote and exclude_info_types have no impact on
3289
+ # data profiling.
3290
+ #
3291
+ # Multiple templates may be provided if there is data in multiple regions.
3292
+ # At most one template must be specified per-region (including "global").
3293
+ # Each region is scanned using the applicable template. If no region-specific
3294
+ # template is specified, but a "global" template is specified, it will be
3295
+ # copied to that region and used instead. If no global or region-specific
3296
+ # template is provided for a region with data, that region's data will not be
3297
+ # scanned.
3298
+ #
3299
+ # For more information, see
3300
+ # https://cloud.google.com/dlp/docs/data-profiles#data_residency.
3301
+ # @!attribute [rw] data_profile_actions
3302
+ # @return [::Array<::Google::Cloud::Dlp::V2::DataProfileAction>]
3303
+ # Actions to execute at the completion of the job.
3304
+ class DataProfileJobConfig
3305
+ include ::Google::Protobuf::MessageExts
3306
+ extend ::Google::Protobuf::MessageExts::ClassMethods
3307
+ end
3308
+
3309
+ # The data that will be profiled.
3310
+ # @!attribute [rw] organization_id
3311
+ # @return [::Integer]
3312
+ # The ID of an organization to scan.
3313
+ # @!attribute [rw] folder_id
3314
+ # @return [::Integer]
3315
+ # The ID of the Folder within an organization to scan.
3316
+ class DataProfileLocation
3317
+ include ::Google::Protobuf::MessageExts
3318
+ extend ::Google::Protobuf::MessageExts::ClassMethods
3319
+ end
3320
+
3175
3321
  # Combines all of the information about a DLP job.
3176
3322
  # @!attribute [rw] name
3177
3323
  # @return [::String]
@@ -3878,6 +4024,291 @@ module Google
3878
4024
  extend ::Google::Protobuf::MessageExts::ClassMethods
3879
4025
  end
3880
4026
 
4027
+ # Score is a summary of all elements in the data profile.
4028
+ # A higher number means more sensitive.
4029
+ # @!attribute [rw] score
4030
+ # @return [::Google::Cloud::Dlp::V2::SensitivityScore::SensitivityScoreLevel]
4031
+ # The score applied to the resource.
4032
+ class SensitivityScore
4033
+ include ::Google::Protobuf::MessageExts
4034
+ extend ::Google::Protobuf::MessageExts::ClassMethods
4035
+
4036
+ # Various score levels for resources.
4037
+ module SensitivityScoreLevel
4038
+ # Unused.
4039
+ SENSITIVITY_SCORE_UNSPECIFIED = 0
4040
+
4041
+ # No sensitive information detected. Limited access.
4042
+ SENSITIVITY_LOW = 10
4043
+
4044
+ # Medium risk - PII, potentially sensitive data, or fields with free-text
4045
+ # data that are at higher risk of having intermittent sensitive data.
4046
+ # Consider limiting access.
4047
+ SENSITIVITY_MODERATE = 20
4048
+
4049
+ # High risk – SPII may be present. Exfiltration of data may lead to user
4050
+ # data loss. Re-identification of users may be possible. Consider limiting
4051
+ # usage and or removing SPII.
4052
+ SENSITIVITY_HIGH = 30
4053
+ end
4054
+ end
4055
+
4056
+ # Score is a summary of all elements in the data profile.
4057
+ # A higher number means more risky.
4058
+ # @!attribute [rw] score
4059
+ # @return [::Google::Cloud::Dlp::V2::DataRiskLevel::DataRiskLevelScore]
4060
+ # The score applied to the resource.
4061
+ class DataRiskLevel
4062
+ include ::Google::Protobuf::MessageExts
4063
+ extend ::Google::Protobuf::MessageExts::ClassMethods
4064
+
4065
+ # Various score levels for resources.
4066
+ module DataRiskLevelScore
4067
+ # Unused.
4068
+ RISK_SCORE_UNSPECIFIED = 0
4069
+
4070
+ # Low risk - Lower indication of sensitive data that appears to have
4071
+ # additional access restrictions in place or no indication of sensitive
4072
+ # data found.
4073
+ RISK_LOW = 10
4074
+
4075
+ # Medium risk - Sensitive data may be present but additional access or fine
4076
+ # grain access restrictions appears to be present. Consider limiting
4077
+ # access even further or transforming data to mask.
4078
+ RISK_MODERATE = 20
4079
+
4080
+ # High risk – SPII may be present. Access controls may include public
4081
+ # ACLs. Exfiltration of data may lead to user data loss. Re-identification
4082
+ # of users may be possible. Consider limiting usage and or removing SPII.
4083
+ RISK_HIGH = 30
4084
+ end
4085
+ end
4086
+
4087
+ # Snapshot of the configurations used to generate the profile.
4088
+ # @!attribute [rw] inspect_config
4089
+ # @return [::Google::Cloud::Dlp::V2::InspectConfig]
4090
+ # A copy of the inspection config used to generate this profile. This
4091
+ # is a copy of the inspect_template specified in `DataProfileJobConfig`.
4092
+ # @!attribute [rw] data_profile_job
4093
+ # @return [::Google::Cloud::Dlp::V2::DataProfileJobConfig]
4094
+ # A copy of the configuration used to generate this profile.
4095
+ class DataProfileConfigSnapshot
4096
+ include ::Google::Protobuf::MessageExts
4097
+ extend ::Google::Protobuf::MessageExts::ClassMethods
4098
+ end
4099
+
4100
+ # The profile for a scanned table.
4101
+ # @!attribute [rw] name
4102
+ # @return [::String]
4103
+ # The name of the profile.
4104
+ # @!attribute [rw] project_data_profile
4105
+ # @return [::String]
4106
+ # The resource name to the project data profile for this table.
4107
+ # @!attribute [rw] dataset_project_id
4108
+ # @return [::String]
4109
+ # The GCP project ID that owns the BigQuery dataset.
4110
+ # @!attribute [rw] dataset_location
4111
+ # @return [::String]
4112
+ # The BigQuery location where the dataset's data is stored.
4113
+ # See https://cloud.google.com/bigquery/docs/locations for supported
4114
+ # locations.
4115
+ # @!attribute [rw] dataset_id
4116
+ # @return [::String]
4117
+ # The BigQuery dataset ID.
4118
+ # @!attribute [rw] table_id
4119
+ # @return [::String]
4120
+ # The BigQuery table ID.
4121
+ # @!attribute [rw] full_resource
4122
+ # @return [::String]
4123
+ # The resource name of the table.
4124
+ # https://cloud.google.com/apis/design/resource_names#full_resource_name
4125
+ # @!attribute [rw] profile_status
4126
+ # @return [::Google::Cloud::Dlp::V2::ProfileStatus]
4127
+ # Success or error status from the most recent profile generation attempt.
4128
+ # May be empty if the profile is still being generated.
4129
+ # @!attribute [rw] state
4130
+ # @return [::Google::Cloud::Dlp::V2::TableDataProfile::State]
4131
+ # State of a profile.
4132
+ # @!attribute [rw] sensitivity_score
4133
+ # @return [::Google::Cloud::Dlp::V2::SensitivityScore]
4134
+ # The sensitivity score of this table.
4135
+ # @!attribute [rw] data_risk_level
4136
+ # @return [::Google::Cloud::Dlp::V2::DataRiskLevel]
4137
+ # The data risk level of this table.
4138
+ # @!attribute [rw] predicted_info_types
4139
+ # @return [::Array<::Google::Cloud::Dlp::V2::InfoTypeSummary>]
4140
+ # The infoTypes predicted from this table's data.
4141
+ # @!attribute [rw] other_info_types
4142
+ # @return [::Array<::Google::Cloud::Dlp::V2::OtherInfoTypeSummary>]
4143
+ # Other infoTypes found in this table's data.
4144
+ # @!attribute [rw] config_snapshot
4145
+ # @return [::Google::Cloud::Dlp::V2::DataProfileConfigSnapshot]
4146
+ # The snapshot of the configurations used to generate the profile.
4147
+ # @!attribute [rw] last_modified_time
4148
+ # @return [::Google::Protobuf::Timestamp]
4149
+ # The time when this table was last modified
4150
+ # @!attribute [rw] expiration_time
4151
+ # @return [::Google::Protobuf::Timestamp]
4152
+ # Optional. The time when this table expires.
4153
+ # @!attribute [rw] scanned_column_count
4154
+ # @return [::Integer]
4155
+ # The number of columns profiled in the table.
4156
+ # @!attribute [rw] failed_column_count
4157
+ # @return [::Integer]
4158
+ # The number of columns skipped in the table because of an error.
4159
+ # @!attribute [rw] table_size_bytes
4160
+ # @return [::Integer]
4161
+ # The size of the table when the profile was generated.
4162
+ # @!attribute [rw] row_count
4163
+ # @return [::Integer]
4164
+ # Number of rows in the table when the profile was generated.
4165
+ # @!attribute [rw] encryption_status
4166
+ # @return [::Google::Cloud::Dlp::V2::EncryptionStatus]
4167
+ # How the table is encrypted.
4168
+ # @!attribute [rw] resource_visibility
4169
+ # @return [::Google::Cloud::Dlp::V2::ResourceVisibility]
4170
+ # How broadly a resource has been shared.
4171
+ # @!attribute [rw] profile_last_generated
4172
+ # @return [::Google::Protobuf::Timestamp]
4173
+ # The last time the profile was generated.
4174
+ # @!attribute [rw] resource_labels
4175
+ # @return [::Google::Protobuf::Map{::String => ::String}]
4176
+ # The labels applied to the resource at the time the profile was generated.
4177
+ # @!attribute [rw] create_time
4178
+ # @return [::Google::Protobuf::Timestamp]
4179
+ # The time at which the table was created.
4180
+ class TableDataProfile
4181
+ include ::Google::Protobuf::MessageExts
4182
+ extend ::Google::Protobuf::MessageExts::ClassMethods
4183
+
4184
+ # @!attribute [rw] key
4185
+ # @return [::String]
4186
+ # @!attribute [rw] value
4187
+ # @return [::String]
4188
+ class ResourceLabelsEntry
4189
+ include ::Google::Protobuf::MessageExts
4190
+ extend ::Google::Protobuf::MessageExts::ClassMethods
4191
+ end
4192
+
4193
+ # Possible states of a profile. New items may be added.
4194
+ module State
4195
+ # Unused.
4196
+ STATE_UNSPECIFIED = 0
4197
+
4198
+ # The profile is currently running. Once a profile has finished it will
4199
+ # transition to DONE.
4200
+ RUNNING = 1
4201
+
4202
+ # The profile is no longer generating.
4203
+ # If profile_status.status.code is 0, the profile succeeded, otherwise, it
4204
+ # failed.
4205
+ DONE = 2
4206
+ end
4207
+ end
4208
+
4209
+ # @!attribute [rw] status
4210
+ # @return [::Google::Rpc::Status]
4211
+ # Profiling status code and optional message
4212
+ # @!attribute [rw] timestamp
4213
+ # @return [::Google::Protobuf::Timestamp]
4214
+ # Time when the profile generation status was updated
4215
+ class ProfileStatus
4216
+ include ::Google::Protobuf::MessageExts
4217
+ extend ::Google::Protobuf::MessageExts::ClassMethods
4218
+ end
4219
+
4220
+ # The infoType details for this column.
4221
+ # @!attribute [rw] info_type
4222
+ # @return [::Google::Cloud::Dlp::V2::InfoType]
4223
+ # The infoType.
4224
+ class InfoTypeSummary
4225
+ include ::Google::Protobuf::MessageExts
4226
+ extend ::Google::Protobuf::MessageExts::ClassMethods
4227
+ end
4228
+
4229
+ # Infotype details for other infoTypes found within a column.
4230
+ # @!attribute [rw] info_type
4231
+ # @return [::Google::Cloud::Dlp::V2::InfoType]
4232
+ # The other infoType.
4233
+ class OtherInfoTypeSummary
4234
+ include ::Google::Protobuf::MessageExts
4235
+ extend ::Google::Protobuf::MessageExts::ClassMethods
4236
+ end
4237
+
4238
+ # A condition for determining whether a PubSub should be triggered.
4239
+ # @!attribute [rw] expressions
4240
+ # @return [::Google::Cloud::Dlp::V2::DataProfilePubSubCondition::PubSubExpressions]
4241
+ # An expression.
4242
+ class DataProfilePubSubCondition
4243
+ include ::Google::Protobuf::MessageExts
4244
+ extend ::Google::Protobuf::MessageExts::ClassMethods
4245
+
4246
+ # A condition consisting of a value.
4247
+ # @!attribute [rw] minimum_risk_score
4248
+ # @return [::Google::Cloud::Dlp::V2::DataProfilePubSubCondition::ProfileScoreBucket]
4249
+ # The minimum data risk score that triggers the condition.
4250
+ # @!attribute [rw] minimum_sensitivity_score
4251
+ # @return [::Google::Cloud::Dlp::V2::DataProfilePubSubCondition::ProfileScoreBucket]
4252
+ # The minimum sensitivity level that triggers the condition.
4253
+ class PubSubCondition
4254
+ include ::Google::Protobuf::MessageExts
4255
+ extend ::Google::Protobuf::MessageExts::ClassMethods
4256
+ end
4257
+
4258
+ # An expression, consisting of an operator and conditions.
4259
+ # @!attribute [rw] logical_operator
4260
+ # @return [::Google::Cloud::Dlp::V2::DataProfilePubSubCondition::PubSubExpressions::PubSubLogicalOperator]
4261
+ # The operator to apply to the collection of conditions.
4262
+ # @!attribute [rw] conditions
4263
+ # @return [::Array<::Google::Cloud::Dlp::V2::DataProfilePubSubCondition::PubSubCondition>]
4264
+ # Conditions to apply to the expression.
4265
+ class PubSubExpressions
4266
+ include ::Google::Protobuf::MessageExts
4267
+ extend ::Google::Protobuf::MessageExts::ClassMethods
4268
+
4269
+ # Logical operators for conditional checks.
4270
+ module PubSubLogicalOperator
4271
+ # Unused.
4272
+ LOGICAL_OPERATOR_UNSPECIFIED = 0
4273
+
4274
+ # Conditional OR.
4275
+ OR = 1
4276
+
4277
+ # Conditional AND.
4278
+ AND = 2
4279
+ end
4280
+ end
4281
+
4282
+ # Various score levels for resources.
4283
+ module ProfileScoreBucket
4284
+ # Unused.
4285
+ PROFILE_SCORE_BUCKET_UNSPECIFIED = 0
4286
+
4287
+ # High risk/sensitivity detected.
4288
+ HIGH = 1
4289
+
4290
+ # Medium or high risk/sensitivity detected.
4291
+ MEDIUM_OR_HIGH = 2
4292
+ end
4293
+ end
4294
+
4295
+ # The message that will be published to a Pub/Sub topic.
4296
+ # To receive a message of protocol buffer schema type, convert the message data
4297
+ # to an object of this proto class.
4298
+ # https://cloud.google.com/pubsub/docs/samples/pubsub-subscribe-proto-messages
4299
+ # @!attribute [rw] profile
4300
+ # @return [::Google::Cloud::Dlp::V2::TableDataProfile]
4301
+ # If `DetailLevel` is `TABLE_PROFILE` this will be fully populated.
4302
+ # Otherwise, if `DetailLevel` is `RESOURCE_NAME`, then only `name` and
4303
+ # `full_resource` will be populated.
4304
+ # @!attribute [rw] event
4305
+ # @return [::Google::Cloud::Dlp::V2::DataProfileAction::EventType]
4306
+ # The event that caused the Pub/Sub message to be sent.
4307
+ class DataProfilePubSubMessage
4308
+ include ::Google::Protobuf::MessageExts
4309
+ extend ::Google::Protobuf::MessageExts::ClassMethods
4310
+ end
4311
+
3881
4312
  # Operators available for comparing the value of fields.
3882
4313
  module RelationalOperator
3883
4314
  # Unused
@@ -3934,7 +4365,7 @@ module Google
3934
4365
  MATCHING_TYPE_INVERSE_MATCH = 3
3935
4366
  end
3936
4367
 
3937
- # Options describing which parts of the provided content should be scanned.
4368
+ # Deprecated and unused.
3938
4369
  module ContentOption
3939
4370
  # Includes entire content of a file or a data stream.
3940
4371
  CONTENT_UNSPECIFIED = 0
@@ -3999,6 +4430,31 @@ module Google
3999
4430
  # use the `UpdateStoredInfoType` method to create a new version.
4000
4431
  INVALID = 4
4001
4432
  end
4433
+
4434
+ # How broadly a resource has been shared. New items may be added over time.
4435
+ # A higher number means more restricted.
4436
+ module ResourceVisibility
4437
+ # Unused.
4438
+ RESOURCE_VISIBILITY_UNSPECIFIED = 0
4439
+
4440
+ # Visible to any user.
4441
+ RESOURCE_VISIBILITY_PUBLIC = 10
4442
+
4443
+ # Visible only to specific users.
4444
+ RESOURCE_VISIBILITY_RESTRICTED = 20
4445
+ end
4446
+
4447
+ # How a resource is encrypted.
4448
+ module EncryptionStatus
4449
+ # Unused.
4450
+ ENCRYPTION_STATUS_UNSPECIFIED = 0
4451
+
4452
+ # Google manages server-side encryption keys on your behalf.
4453
+ ENCRYPTION_GOOGLE_MANAGED = 1
4454
+
4455
+ # Customer provides the key.
4456
+ ENCRYPTION_CUSTOMER_MANAGED = 2
4457
+ end
4002
4458
  end
4003
4459
  end
4004
4460
  end
@@ -103,7 +103,7 @@ module Google
103
103
  # Plane](https://en.wikipedia.org/wiki/Plane_%28Unicode%29#Basic_Multilingual_Plane)
104
104
  # will be replaced with whitespace when scanning for matches, so the
105
105
  # dictionary phrase "Sam Johnson" will match all three phrases "sam johnson",
106
- # Plane](https://en.wikipedia.org/wiki/Plane_%28Unicode%29#Basic_Multilingual_Plane)
106
+ # "Sam, Johnson", and "Sam (Johnson)". Additionally, the characters
107
107
  # surrounding any match must be of a different type than the adjacent
108
108
  # characters within the word, so letters must be next to non-letters and
109
109
  # digits next to non-digits. For example, the dictionary word "jen" will
@@ -116,7 +116,7 @@ module Google
116
116
  # [limits](https://cloud.google.com/dlp/limits) page contains details about
117
117
  # the size limits of dictionaries. For dictionaries that do not fit within
118
118
  # these constraints, consider using `LargeCustomDictionaryConfig` in the
119
- # [limits](https://cloud.google.com/dlp/limits) page contains details about
119
+ # `StoredInfoType` API.
120
120
  # @!attribute [rw] word_list
121
121
  # @return [::Google::Cloud::Dlp::V2::CustomInfoType::Dictionary::WordList]
122
122
  # List of words or phrases to search for.
@@ -148,7 +148,6 @@ module Google
148
148
  # google/re2 repository on GitHub.
149
149
  # @!attribute [rw] group_indexes
150
150
  # @return [::Array<::Integer>]
151
- # (https://github.com/google/re2/wiki/Syntax) can be found under the
152
151
  # The index of the submatch to extract as findings. When not
153
152
  # specified, the entire match is returned. No more than 3 may be included.
154
153
  class Regex
@@ -161,7 +160,7 @@ module Google
161
160
  # [`CryptoReplaceFfxFpeConfig`](https://cloud.google.com/dlp/docs/reference/rest/v2/organizations.deidentifyTemplates#cryptoreplaceffxfpeconfig).
162
161
  # These types of transformations are
163
162
  # those that perform pseudonymization, thereby producing a "surrogate" as
164
- # [`CryptoReplaceFfxFpeConfig`](https://cloud.google.com/dlp/docs/reference/rest/v2/organizations.deidentifyTemplates#cryptoreplaceffxfpeconfig).
163
+ # output. This should be used in conjunction with a field on the
165
164
  # transformation such as `surrogate_info_type`. This CustomInfoType does
166
165
  # not support the use of `detection_rules`.
167
166
  class SurrogateType
@@ -343,7 +342,6 @@ module Google
343
342
  # under the google/re2 repository on GitHub.
344
343
  # @!attribute [rw] exclude_regex
345
344
  # @return [::Array<::String>]
346
- # [syntax](https://github.com/google/re2/wiki/Syntax); a guide can be found
347
345
  # A list of regular expressions matching file paths to exclude. All files in
348
346
  # the bucket that match at least one of these regular expressions will be
349
347
  # excluded from the scan.
@@ -829,6 +827,16 @@ module Google
829
827
  # Included file extensions:
830
828
  # tsv
831
829
  TSV = 9
830
+
831
+ # Powerpoint files >30 MB will be scanned as binary files.
832
+ # Included file extensions:
833
+ # pptx, pptm, potx, potm, pot
834
+ POWERPOINT = 11
835
+
836
+ # Excel files >30 MB will be scanned as binary files.
837
+ # Included file extensions:
838
+ # xlsx, xlsm, xltx, xltm
839
+ EXCEL = 12
832
840
  end
833
841
  end
834
842
  end
@@ -44,7 +44,7 @@ module Google
44
44
  # foo = any.unpack(Foo.class);
45
45
  # }
46
46
  #
47
- # Example 3: Pack and unpack a message in Python.
47
+ # Example 3: Pack and unpack a message in Python.
48
48
  #
49
49
  # foo = Foo(...)
50
50
  # any = Any()
@@ -54,7 +54,7 @@ module Google
54
54
  # any.Unpack(foo)
55
55
  # ...
56
56
  #
57
- # Example 4: Pack and unpack a message in Go
57
+ # Example 4: Pack and unpack a message in Go
58
58
  #
59
59
  # foo := &pb.Foo{...}
60
60
  # any, err := anypb.New(foo)
@@ -75,7 +75,7 @@ module Google
75
75
  #
76
76
  #
77
77
  # JSON
78
- # ====
78
+ #
79
79
  # The JSON representation of an `Any` value uses the regular
80
80
  # representation of the deserialized, embedded message, with an
81
81
  # additional field `@type` which contains the type URL. Example:
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-dlp-v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-11 00:00:00.000000000 Z
11
+ date: 2022-07-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.7'
19
+ version: '0.10'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.7'
29
+ version: '0.10'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -50,28 +50,28 @@ dependencies:
50
50
  requirements:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: 1.25.1
53
+ version: 1.26.1
54
54
  type: :development
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
58
  - - "~>"
59
59
  - !ruby/object:Gem::Version
60
- version: 1.25.1
60
+ version: 1.26.1
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: minitest
63
63
  requirement: !ruby/object:Gem::Requirement
64
64
  requirements:
65
65
  - - "~>"
66
66
  - !ruby/object:Gem::Version
67
- version: '5.14'
67
+ version: '5.16'
68
68
  type: :development
69
69
  prerelease: false
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
72
  - - "~>"
73
73
  - !ruby/object:Gem::Version
74
- version: '5.14'
74
+ version: '5.16'
75
75
  - !ruby/object:Gem::Dependency
76
76
  name: minitest-focus
77
77
  requirement: !ruby/object:Gem::Requirement
@@ -106,14 +106,14 @@ dependencies:
106
106
  requirements:
107
107
  - - ">="
108
108
  - !ruby/object:Gem::Version
109
- version: '12.0'
109
+ version: '13.0'
110
110
  type: :development
111
111
  prerelease: false
112
112
  version_requirements: !ruby/object:Gem::Requirement
113
113
  requirements:
114
114
  - - ">="
115
115
  - !ruby/object:Gem::Version
116
- version: '12.0'
116
+ version: '13.0'
117
117
  - !ruby/object:Gem::Dependency
118
118
  name: redcarpet
119
119
  requirement: !ruby/object:Gem::Requirement
@@ -205,14 +205,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
205
205
  requirements:
206
206
  - - ">="
207
207
  - !ruby/object:Gem::Version
208
- version: '2.5'
208
+ version: '2.6'
209
209
  required_rubygems_version: !ruby/object:Gem::Requirement
210
210
  requirements:
211
211
  - - ">="
212
212
  - !ruby/object:Gem::Version
213
213
  version: '0'
214
214
  requirements: []
215
- rubygems_version: 3.3.4
215
+ rubygems_version: 3.3.14
216
216
  signing_key:
217
217
  specification_version: 4
218
218
  summary: API Client library for the Cloud Data Loss Prevention (DLP) V2 API