google-cloud-dlp-v2 0.9.0 → 0.12.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: e37b5c2a20db558a06589da232dda1197ed292328cd9eb86ca9b5651a8ba94ad
4
- data.tar.gz: ad66a533c643f66a009a3fbe61c941c4600fb25570abdac27f047cf5810783bc
3
+ metadata.gz: 47248e1e45129eef35155efe27d4976f8033217b61c2a2e8d22e3fecabbca797
4
+ data.tar.gz: a3a34a8895709a0a68081837d2bde5322bddb436fde3de77b2a62b388210066e
5
5
  SHA512:
6
- metadata.gz: b382823c5263cd5abccbcc691b6a9d7a15692ec841e0919b6359bda4df3fb7513ce2418d08ec656287def8d9c42a2c3176322927531203ab2cef2adce55003a8
7
- data.tar.gz: 82c3ae0255f92910e306d40d78cc0dc292c374b6499524895980bef9ff8a1d39d0341d22c52799d6c4136612abc66b11d092e1d702d26757ffe9d97de7adb485
6
+ metadata.gz: 54fa81f4e7ea8f866d35548c36bf2ff35b53ffebb02ab10265531eb549ae00246f9d9cb671b71bbc2e70e0ff6903f2552796b134872cba2529215f420968c31b
7
+ data.tar.gz: ac749e5d7b9b3e599b4d2832d63ba10012fe56f41aae2f420c08e0b63d35a49994a47b7eb927b674c398cf6ba2bbffc23c2efcefcf1ddce330314f6fbe97971d
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
 
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Dlp
23
23
  module V2
24
- VERSION = "0.9.0"
24
+ VERSION = "0.12.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,73 @@ 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 :categories, :message, 10, "google.privacy.dlp.v2.InfoTypeCategory"
278
+ end
279
+ add_message "google.privacy.dlp.v2.InfoTypeCategory" do
280
+ oneof :category do
281
+ optional :location_category, :enum, 1, "google.privacy.dlp.v2.InfoTypeCategory.LocationCategory"
282
+ optional :industry_category, :enum, 2, "google.privacy.dlp.v2.InfoTypeCategory.IndustryCategory"
283
+ optional :type_category, :enum, 3, "google.privacy.dlp.v2.InfoTypeCategory.TypeCategory"
284
+ end
285
+ end
286
+ add_enum "google.privacy.dlp.v2.InfoTypeCategory.LocationCategory" do
287
+ value :LOCATION_UNSPECIFIED, 0
288
+ value :GLOBAL, 1
289
+ value :ARGENTINA, 2
290
+ value :AUSTRALIA, 3
291
+ value :BELGIUM, 4
292
+ value :BRAZIL, 5
293
+ value :CANADA, 6
294
+ value :CHILE, 7
295
+ value :CHINA, 8
296
+ value :COLOMBIA, 9
297
+ value :DENMARK, 10
298
+ value :FRANCE, 11
299
+ value :FINLAND, 12
300
+ value :GERMANY, 13
301
+ value :HONG_KONG, 14
302
+ value :INDIA, 15
303
+ value :INDONESIA, 16
304
+ value :IRELAND, 17
305
+ value :ISRAEL, 18
306
+ value :ITALY, 19
307
+ value :JAPAN, 20
308
+ value :KOREA, 21
309
+ value :MEXICO, 22
310
+ value :THE_NETHERLANDS, 23
311
+ value :NORWAY, 24
312
+ value :PARAGUAY, 25
313
+ value :PERU, 26
314
+ value :POLAND, 27
315
+ value :PORTUGAL, 28
316
+ value :SINGAPORE, 29
317
+ value :SOUTH_AFRICA, 30
318
+ value :SPAIN, 31
319
+ value :SWEDEN, 32
320
+ value :TAIWAN, 33
321
+ value :THAILAND, 34
322
+ value :TURKEY, 35
323
+ value :UNITED_KINGDOM, 36
324
+ value :UNITED_STATES, 37
325
+ value :URUGUAY, 38
326
+ value :VENEZUELA, 39
327
+ value :INTERNAL, 40
328
+ end
329
+ add_enum "google.privacy.dlp.v2.InfoTypeCategory.IndustryCategory" do
330
+ value :INDUSTRY_UNSPECIFIED, 0
331
+ value :FINANCE, 1
332
+ value :HEALTH, 2
333
+ value :TELECOMMUNICATIONS, 3
334
+ end
335
+ add_enum "google.privacy.dlp.v2.InfoTypeCategory.TypeCategory" do
336
+ value :TYPE_UNSPECIFIED, 0
337
+ value :PII, 1
338
+ value :SPII, 2
339
+ value :DEMOGRAPHIC, 3
340
+ value :CREDENTIAL, 4
341
+ value :GOVERNMENT_ID, 5
342
+ value :DOCUMENT, 6
343
+ value :CONTEXTUAL_INFORMATION, 7
276
344
  end
277
345
  add_message "google.privacy.dlp.v2.ListInfoTypesRequest" do
278
346
  optional :parent, :string, 4
@@ -834,6 +902,45 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
834
902
  optional :inspect_template_name, :string, 3
835
903
  repeated :actions, :message, 4, "google.privacy.dlp.v2.Action"
836
904
  end
905
+ add_message "google.privacy.dlp.v2.DataProfileAction" do
906
+ oneof :action do
907
+ optional :export_data, :message, 1, "google.privacy.dlp.v2.DataProfileAction.Export"
908
+ optional :pub_sub_notification, :message, 2, "google.privacy.dlp.v2.DataProfileAction.PubSubNotification"
909
+ end
910
+ end
911
+ add_message "google.privacy.dlp.v2.DataProfileAction.Export" do
912
+ optional :profile_table, :message, 1, "google.privacy.dlp.v2.BigQueryTable"
913
+ end
914
+ add_message "google.privacy.dlp.v2.DataProfileAction.PubSubNotification" do
915
+ optional :topic, :string, 1
916
+ optional :event, :enum, 2, "google.privacy.dlp.v2.DataProfileAction.EventType"
917
+ optional :pubsub_condition, :message, 3, "google.privacy.dlp.v2.DataProfilePubSubCondition"
918
+ optional :detail_of_message, :enum, 4, "google.privacy.dlp.v2.DataProfileAction.PubSubNotification.DetailLevel"
919
+ end
920
+ add_enum "google.privacy.dlp.v2.DataProfileAction.PubSubNotification.DetailLevel" do
921
+ value :DETAIL_LEVEL_UNSPECIFIED, 0
922
+ value :TABLE_PROFILE, 1
923
+ value :RESOURCE_NAME, 2
924
+ end
925
+ add_enum "google.privacy.dlp.v2.DataProfileAction.EventType" do
926
+ value :EVENT_TYPE_UNSPECIFIED, 0
927
+ value :NEW_PROFILE, 1
928
+ value :CHANGED_PROFILE, 2
929
+ value :SCORE_INCREASED, 3
930
+ value :ERROR_CHANGED, 4
931
+ end
932
+ add_message "google.privacy.dlp.v2.DataProfileJobConfig" do
933
+ optional :location, :message, 1, "google.privacy.dlp.v2.DataProfileLocation"
934
+ optional :project_id, :string, 5
935
+ repeated :inspect_templates, :string, 7
936
+ repeated :data_profile_actions, :message, 6, "google.privacy.dlp.v2.DataProfileAction"
937
+ end
938
+ add_message "google.privacy.dlp.v2.DataProfileLocation" do
939
+ oneof :location do
940
+ optional :organization_id, :int64, 1
941
+ optional :folder_id, :int64, 2
942
+ end
943
+ end
837
944
  add_message "google.privacy.dlp.v2.DlpJob" do
838
945
  optional :name, :string, 1
839
946
  optional :type, :enum, 2, "google.privacy.dlp.v2.DlpJobType"
@@ -995,6 +1102,97 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
995
1102
  end
996
1103
  add_message "google.privacy.dlp.v2.HybridInspectResponse" do
997
1104
  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
+ add_message "google.privacy.dlp.v2.DataRiskLevel" do
1115
+ optional :score, :enum, 1, "google.privacy.dlp.v2.DataRiskLevel.DataRiskLevelScore"
1116
+ end
1117
+ add_enum "google.privacy.dlp.v2.DataRiskLevel.DataRiskLevelScore" do
1118
+ value :RISK_SCORE_UNSPECIFIED, 0
1119
+ value :RISK_LOW, 10
1120
+ value :RISK_MODERATE, 20
1121
+ value :RISK_HIGH, 30
1122
+ end
1123
+ add_message "google.privacy.dlp.v2.DataProfileConfigSnapshot" do
1124
+ optional :inspect_config, :message, 2, "google.privacy.dlp.v2.InspectConfig"
1125
+ optional :data_profile_job, :message, 3, "google.privacy.dlp.v2.DataProfileJobConfig"
1126
+ end
1127
+ add_message "google.privacy.dlp.v2.TableDataProfile" do
1128
+ optional :name, :string, 1
1129
+ optional :project_data_profile, :string, 2
1130
+ optional :dataset_project_id, :string, 24
1131
+ optional :dataset_location, :string, 29
1132
+ optional :dataset_id, :string, 25
1133
+ optional :table_id, :string, 26
1134
+ optional :full_resource, :string, 3
1135
+ optional :profile_status, :message, 21, "google.privacy.dlp.v2.ProfileStatus"
1136
+ optional :state, :enum, 22, "google.privacy.dlp.v2.TableDataProfile.State"
1137
+ optional :sensitivity_score, :message, 5, "google.privacy.dlp.v2.SensitivityScore"
1138
+ optional :data_risk_level, :message, 6, "google.privacy.dlp.v2.DataRiskLevel"
1139
+ repeated :predicted_info_types, :message, 27, "google.privacy.dlp.v2.InfoTypeSummary"
1140
+ repeated :other_info_types, :message, 28, "google.privacy.dlp.v2.OtherInfoTypeSummary"
1141
+ optional :config_snapshot, :message, 7, "google.privacy.dlp.v2.DataProfileConfigSnapshot"
1142
+ optional :last_modified_time, :message, 8, "google.protobuf.Timestamp"
1143
+ optional :expiration_time, :message, 9, "google.protobuf.Timestamp"
1144
+ optional :scanned_column_count, :int64, 10
1145
+ optional :failed_column_count, :int64, 11
1146
+ optional :table_size_bytes, :int64, 12
1147
+ optional :row_count, :int64, 13
1148
+ optional :encryption_status, :enum, 14, "google.privacy.dlp.v2.EncryptionStatus"
1149
+ optional :resource_visibility, :enum, 15, "google.privacy.dlp.v2.ResourceVisibility"
1150
+ optional :profile_last_generated, :message, 16, "google.protobuf.Timestamp"
1151
+ map :resource_labels, :string, :string, 17
1152
+ optional :create_time, :message, 23, "google.protobuf.Timestamp"
1153
+ end
1154
+ add_enum "google.privacy.dlp.v2.TableDataProfile.State" do
1155
+ value :STATE_UNSPECIFIED, 0
1156
+ value :RUNNING, 1
1157
+ value :DONE, 2
1158
+ end
1159
+ add_message "google.privacy.dlp.v2.ProfileStatus" do
1160
+ optional :status, :message, 1, "google.rpc.Status"
1161
+ optional :timestamp, :message, 3, "google.protobuf.Timestamp"
1162
+ end
1163
+ add_message "google.privacy.dlp.v2.InfoTypeSummary" do
1164
+ optional :info_type, :message, 1, "google.privacy.dlp.v2.InfoType"
1165
+ end
1166
+ add_message "google.privacy.dlp.v2.OtherInfoTypeSummary" do
1167
+ optional :info_type, :message, 1, "google.privacy.dlp.v2.InfoType"
1168
+ end
1169
+ add_message "google.privacy.dlp.v2.DataProfilePubSubCondition" do
1170
+ optional :expressions, :message, 1, "google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions"
1171
+ end
1172
+ add_message "google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition" do
1173
+ oneof :value do
1174
+ optional :minimum_risk_score, :enum, 1, "google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket"
1175
+ optional :minimum_sensitivity_score, :enum, 2, "google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket"
1176
+ end
1177
+ end
1178
+ add_message "google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions" do
1179
+ optional :logical_operator, :enum, 1, "google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions.PubSubLogicalOperator"
1180
+ repeated :conditions, :message, 2, "google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition"
1181
+ end
1182
+ add_enum "google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions.PubSubLogicalOperator" do
1183
+ value :LOGICAL_OPERATOR_UNSPECIFIED, 0
1184
+ value :OR, 1
1185
+ value :AND, 2
1186
+ end
1187
+ add_enum "google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket" do
1188
+ value :PROFILE_SCORE_BUCKET_UNSPECIFIED, 0
1189
+ value :HIGH, 1
1190
+ value :MEDIUM_OR_HIGH, 2
1191
+ end
1192
+ add_message "google.privacy.dlp.v2.DataProfilePubSubMessage" do
1193
+ optional :profile, :message, 1, "google.privacy.dlp.v2.TableDataProfile"
1194
+ optional :event, :enum, 2, "google.privacy.dlp.v2.DataProfileAction.EventType"
1195
+ end
998
1196
  add_enum "google.privacy.dlp.v2.RelationalOperator" do
999
1197
  value :RELATIONAL_OPERATOR_UNSPECIFIED, 0
1000
1198
  value :EQUAL_TO, 1
@@ -1037,6 +1235,16 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
1037
1235
  value :FAILED, 3
1038
1236
  value :INVALID, 4
1039
1237
  end
1238
+ add_enum "google.privacy.dlp.v2.ResourceVisibility" do
1239
+ value :RESOURCE_VISIBILITY_UNSPECIFIED, 0
1240
+ value :RESOURCE_VISIBILITY_PUBLIC, 10
1241
+ value :RESOURCE_VISIBILITY_RESTRICTED, 20
1242
+ end
1243
+ add_enum "google.privacy.dlp.v2.EncryptionStatus" do
1244
+ value :ENCRYPTION_STATUS_UNSPECIFIED, 0
1245
+ value :ENCRYPTION_GOOGLE_MANAGED, 1
1246
+ value :ENCRYPTION_CUSTOMER_MANAGED, 2
1247
+ end
1040
1248
  end
1041
1249
  end
1042
1250
 
@@ -1087,6 +1295,10 @@ module Google
1087
1295
  InspectDataSourceDetails::Result = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.InspectDataSourceDetails.Result").msgclass
1088
1296
  HybridInspectStatistics = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.HybridInspectStatistics").msgclass
1089
1297
  InfoTypeDescription = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.InfoTypeDescription").msgclass
1298
+ InfoTypeCategory = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.InfoTypeCategory").msgclass
1299
+ InfoTypeCategory::LocationCategory = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.InfoTypeCategory.LocationCategory").enummodule
1300
+ InfoTypeCategory::IndustryCategory = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.InfoTypeCategory.IndustryCategory").enummodule
1301
+ InfoTypeCategory::TypeCategory = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.InfoTypeCategory.TypeCategory").enummodule
1090
1302
  ListInfoTypesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.ListInfoTypesRequest").msgclass
1091
1303
  ListInfoTypesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.ListInfoTypesResponse").msgclass
1092
1304
  RiskAnalysisJobConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.RiskAnalysisJobConfig").msgclass
@@ -1195,6 +1407,13 @@ module Google
1195
1407
  ListJobTriggersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.ListJobTriggersResponse").msgclass
1196
1408
  DeleteJobTriggerRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DeleteJobTriggerRequest").msgclass
1197
1409
  InspectJobConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.InspectJobConfig").msgclass
1410
+ DataProfileAction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DataProfileAction").msgclass
1411
+ DataProfileAction::Export = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DataProfileAction.Export").msgclass
1412
+ DataProfileAction::PubSubNotification = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DataProfileAction.PubSubNotification").msgclass
1413
+ DataProfileAction::PubSubNotification::DetailLevel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DataProfileAction.PubSubNotification.DetailLevel").enummodule
1414
+ DataProfileAction::EventType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DataProfileAction.EventType").enummodule
1415
+ DataProfileJobConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DataProfileJobConfig").msgclass
1416
+ DataProfileLocation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DataProfileLocation").msgclass
1198
1417
  DlpJob = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DlpJob").msgclass
1199
1418
  DlpJob::JobState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DlpJob.JobState").enummodule
1200
1419
  GetDlpJobRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.GetDlpJobRequest").msgclass
@@ -1226,6 +1445,22 @@ module Google
1226
1445
  HybridContentItem = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.HybridContentItem").msgclass
1227
1446
  HybridFindingDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.HybridFindingDetails").msgclass
1228
1447
  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
+ DataRiskLevel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DataRiskLevel").msgclass
1451
+ DataRiskLevel::DataRiskLevelScore = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DataRiskLevel.DataRiskLevelScore").enummodule
1452
+ DataProfileConfigSnapshot = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DataProfileConfigSnapshot").msgclass
1453
+ TableDataProfile = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.TableDataProfile").msgclass
1454
+ TableDataProfile::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.TableDataProfile.State").enummodule
1455
+ ProfileStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.ProfileStatus").msgclass
1456
+ InfoTypeSummary = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.InfoTypeSummary").msgclass
1457
+ OtherInfoTypeSummary = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.OtherInfoTypeSummary").msgclass
1458
+ DataProfilePubSubCondition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DataProfilePubSubCondition").msgclass
1459
+ DataProfilePubSubCondition::PubSubCondition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition").msgclass
1460
+ DataProfilePubSubCondition::PubSubExpressions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions").msgclass
1461
+ DataProfilePubSubCondition::PubSubExpressions::PubSubLogicalOperator = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions.PubSubLogicalOperator").enummodule
1462
+ DataProfilePubSubCondition::ProfileScoreBucket = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket").enummodule
1463
+ DataProfilePubSubMessage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DataProfilePubSubMessage").msgclass
1229
1464
  RelationalOperator = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.RelationalOperator").enummodule
1230
1465
  MatchingType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.MatchingType").enummodule
1231
1466
  ContentOption = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.ContentOption").enummodule
@@ -1233,6 +1468,8 @@ module Google
1233
1468
  InfoTypeSupportedBy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.InfoTypeSupportedBy").enummodule
1234
1469
  DlpJobType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DlpJobType").enummodule
1235
1470
  StoredInfoTypeState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.StoredInfoTypeState").enummodule
1471
+ ResourceVisibility = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.ResourceVisibility").enummodule
1472
+ EncryptionStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.EncryptionStatus").enummodule
1236
1473
  end
1237
1474
  end
1238
1475
  end
@@ -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
@@ -110,7 +110,7 @@ module Google
110
110
  # @!attribute [rw] include_quote
111
111
  # @return [::Boolean]
112
112
  # When true, a contextual quote from the data that triggered a finding is
113
- # included in the response; see Finding.quote.
113
+ # included in the response; see {::Google::Cloud::Dlp::V2::Finding#quote Finding.quote}.
114
114
  # This is not used for data profiling.
115
115
  # @!attribute [rw] exclude_info_types
116
116
  # @return [::Boolean]
@@ -1000,11 +1000,207 @@ module Google
1000
1000
  # @return [::String]
1001
1001
  # Description of the infotype. Translated when language is provided in the
1002
1002
  # request.
1003
+ # @!attribute [rw] categories
1004
+ # @return [::Array<::Google::Cloud::Dlp::V2::InfoTypeCategory>]
1005
+ # The category of the infoType.
1003
1006
  class InfoTypeDescription
1004
1007
  include ::Google::Protobuf::MessageExts
1005
1008
  extend ::Google::Protobuf::MessageExts::ClassMethods
1006
1009
  end
1007
1010
 
1011
+ # Classification of infoTypes to organize them according to geographic
1012
+ # location, industry, and data type.
1013
+ # @!attribute [rw] location_category
1014
+ # @return [::Google::Cloud::Dlp::V2::InfoTypeCategory::LocationCategory]
1015
+ # The region or country that issued the ID or document represented by the
1016
+ # infoType.
1017
+ # @!attribute [rw] industry_category
1018
+ # @return [::Google::Cloud::Dlp::V2::InfoTypeCategory::IndustryCategory]
1019
+ # The group of relevant businesses where this infoType is commonly used
1020
+ # @!attribute [rw] type_category
1021
+ # @return [::Google::Cloud::Dlp::V2::InfoTypeCategory::TypeCategory]
1022
+ # The class of identifiers where this infoType belongs
1023
+ class InfoTypeCategory
1024
+ include ::Google::Protobuf::MessageExts
1025
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1026
+
1027
+ # Enum of the current locations.
1028
+ # We might add more locations in the future.
1029
+ module LocationCategory
1030
+ # Unused location
1031
+ LOCATION_UNSPECIFIED = 0
1032
+
1033
+ # The infoType is not issued by or tied to a specific region, but is used
1034
+ # almost everywhere.
1035
+ GLOBAL = 1
1036
+
1037
+ # The infoType is typically used in Argentina.
1038
+ ARGENTINA = 2
1039
+
1040
+ # The infoType is typically used in Australia.
1041
+ AUSTRALIA = 3
1042
+
1043
+ # The infoType is typically used in Belgium.
1044
+ BELGIUM = 4
1045
+
1046
+ # The infoType is typically used in Brazil.
1047
+ BRAZIL = 5
1048
+
1049
+ # The infoType is typically used in Canada.
1050
+ CANADA = 6
1051
+
1052
+ # The infoType is typically used in Chile.
1053
+ CHILE = 7
1054
+
1055
+ # The infoType is typically used in China.
1056
+ CHINA = 8
1057
+
1058
+ # The infoType is typically used in Colombia.
1059
+ COLOMBIA = 9
1060
+
1061
+ # The infoType is typically used in Denmark.
1062
+ DENMARK = 10
1063
+
1064
+ # The infoType is typically used in France.
1065
+ FRANCE = 11
1066
+
1067
+ # The infoType is typically used in Finland.
1068
+ FINLAND = 12
1069
+
1070
+ # The infoType is typically used in Germany.
1071
+ GERMANY = 13
1072
+
1073
+ # The infoType is typically used in Hong Kong.
1074
+ HONG_KONG = 14
1075
+
1076
+ # The infoType is typically used in India.
1077
+ INDIA = 15
1078
+
1079
+ # The infoType is typically used in Indonesia.
1080
+ INDONESIA = 16
1081
+
1082
+ # The infoType is typically used in Ireland.
1083
+ IRELAND = 17
1084
+
1085
+ # The infoType is typically used in Israel.
1086
+ ISRAEL = 18
1087
+
1088
+ # The infoType is typically used in Italy.
1089
+ ITALY = 19
1090
+
1091
+ # The infoType is typically used in Japan.
1092
+ JAPAN = 20
1093
+
1094
+ # The infoType is typically used in Korea.
1095
+ KOREA = 21
1096
+
1097
+ # The infoType is typically used in Mexico.
1098
+ MEXICO = 22
1099
+
1100
+ # The infoType is typically used in the Netherlands.
1101
+ THE_NETHERLANDS = 23
1102
+
1103
+ # The infoType is typically used in Norway.
1104
+ NORWAY = 24
1105
+
1106
+ # The infoType is typically used in Paraguay.
1107
+ PARAGUAY = 25
1108
+
1109
+ # The infoType is typically used in Peru.
1110
+ PERU = 26
1111
+
1112
+ # The infoType is typically used in Poland.
1113
+ POLAND = 27
1114
+
1115
+ # The infoType is typically used in Portugal.
1116
+ PORTUGAL = 28
1117
+
1118
+ # The infoType is typically used in Singapore.
1119
+ SINGAPORE = 29
1120
+
1121
+ # The infoType is typically used in South Africa.
1122
+ SOUTH_AFRICA = 30
1123
+
1124
+ # The infoType is typically used in Spain.
1125
+ SPAIN = 31
1126
+
1127
+ # The infoType is typically used in Sweden.
1128
+ SWEDEN = 32
1129
+
1130
+ # The infoType is typically used in Taiwan.
1131
+ TAIWAN = 33
1132
+
1133
+ # The infoType is typically used in Thailand.
1134
+ THAILAND = 34
1135
+
1136
+ # The infoType is typically used in Turkey.
1137
+ TURKEY = 35
1138
+
1139
+ # The infoType is typically used in the United Kingdom.
1140
+ UNITED_KINGDOM = 36
1141
+
1142
+ # The infoType is typically used in the United States.
1143
+ UNITED_STATES = 37
1144
+
1145
+ # The infoType is typically used in Uruguay.
1146
+ URUGUAY = 38
1147
+
1148
+ # The infoType is typically used in Venezuela.
1149
+ VENEZUELA = 39
1150
+
1151
+ # The infoType is typically used in Google internally.
1152
+ INTERNAL = 40
1153
+ end
1154
+
1155
+ # Enum of the current industries in the category.
1156
+ # We might add more industries in the future.
1157
+ module IndustryCategory
1158
+ # Unused industry
1159
+ INDUSTRY_UNSPECIFIED = 0
1160
+
1161
+ # The infoType is typically used in the finance industry.
1162
+ FINANCE = 1
1163
+
1164
+ # The infoType is typically used in the health industry.
1165
+ HEALTH = 2
1166
+
1167
+ # The infoType is typically used in the telecommunications industry.
1168
+ TELECOMMUNICATIONS = 3
1169
+ end
1170
+
1171
+ # Enum of the current types in the category.
1172
+ # We might add more types in the future.
1173
+ module TypeCategory
1174
+ # Unused type
1175
+ TYPE_UNSPECIFIED = 0
1176
+
1177
+ # Personally identifiable information, for example, a
1178
+ # name or phone number
1179
+ PII = 1
1180
+
1181
+ # Personally identifiable information that is especially sensitive, for
1182
+ # example, a passport number.
1183
+ SPII = 2
1184
+
1185
+ # Attributes that can partially identify someone, especially in
1186
+ # combination with other attributes, like age, height, and gender.
1187
+ DEMOGRAPHIC = 3
1188
+
1189
+ # Confidential or secret information, for example, a password.
1190
+ CREDENTIAL = 4
1191
+
1192
+ # An identification document issued by a government.
1193
+ GOVERNMENT_ID = 5
1194
+
1195
+ # A document, for example, a resume or source code.
1196
+ DOCUMENT = 6
1197
+
1198
+ # Information that is not sensitive on its own, but provides details about
1199
+ # the circumstances surrounding an entity or an event.
1200
+ CONTEXTUAL_INFORMATION = 7
1201
+ end
1202
+ end
1203
+
1008
1204
  # Request for the list of infoTypes.
1009
1205
  # @!attribute [rw] parent
1010
1206
  # @return [::String]
@@ -3180,6 +3376,144 @@ module Google
3180
3376
  extend ::Google::Protobuf::MessageExts::ClassMethods
3181
3377
  end
3182
3378
 
3379
+ # A task to execute when a data profile has been generated.
3380
+ # @!attribute [rw] export_data
3381
+ # @return [::Google::Cloud::Dlp::V2::DataProfileAction::Export]
3382
+ # Export data profiles into a provided location.
3383
+ # @!attribute [rw] pub_sub_notification
3384
+ # @return [::Google::Cloud::Dlp::V2::DataProfileAction::PubSubNotification]
3385
+ # Publish a message into the Pub/Sub topic.
3386
+ class DataProfileAction
3387
+ include ::Google::Protobuf::MessageExts
3388
+ extend ::Google::Protobuf::MessageExts::ClassMethods
3389
+
3390
+ # If set, the detailed data profiles will be persisted to the location
3391
+ # of your choice whenever updated.
3392
+ # @!attribute [rw] profile_table
3393
+ # @return [::Google::Cloud::Dlp::V2::BigQueryTable]
3394
+ # Store all table and column profiles in an existing table or a new table
3395
+ # in an existing dataset. Each re-generation will result in a new row in
3396
+ # BigQuery.
3397
+ class Export
3398
+ include ::Google::Protobuf::MessageExts
3399
+ extend ::Google::Protobuf::MessageExts::ClassMethods
3400
+ end
3401
+
3402
+ # Send a Pub/Sub message into the given Pub/Sub topic to connect other
3403
+ # systems to data profile generation. The message payload data will
3404
+ # be the byte serialization of `DataProfilePubSubMessage`.
3405
+ # @!attribute [rw] topic
3406
+ # @return [::String]
3407
+ # Cloud Pub/Sub topic to send notifications to.
3408
+ # Format is projects/\\{project}/topics/\\{topic}.
3409
+ # @!attribute [rw] event
3410
+ # @return [::Google::Cloud::Dlp::V2::DataProfileAction::EventType]
3411
+ # The type of event that triggers a Pub/Sub. At most one
3412
+ # `PubSubNotification` per EventType is permitted.
3413
+ # @!attribute [rw] pubsub_condition
3414
+ # @return [::Google::Cloud::Dlp::V2::DataProfilePubSubCondition]
3415
+ # Conditions (e.g., data risk or sensitivity level) for triggering a
3416
+ # Pub/Sub.
3417
+ # @!attribute [rw] detail_of_message
3418
+ # @return [::Google::Cloud::Dlp::V2::DataProfileAction::PubSubNotification::DetailLevel]
3419
+ # How much data to include in the Pub/Sub message. If the user wishes to
3420
+ # limit the size of the message, they can use resource_name and fetch the
3421
+ # profile fields they wish to. Per table profile (not per column).
3422
+ class PubSubNotification
3423
+ include ::Google::Protobuf::MessageExts
3424
+ extend ::Google::Protobuf::MessageExts::ClassMethods
3425
+
3426
+ # The levels of detail that can be included in the Pub/Sub message.
3427
+ module DetailLevel
3428
+ # Unused.
3429
+ DETAIL_LEVEL_UNSPECIFIED = 0
3430
+
3431
+ # The full table data profile.
3432
+ TABLE_PROFILE = 1
3433
+
3434
+ # The resource name of the table.
3435
+ RESOURCE_NAME = 2
3436
+ end
3437
+ end
3438
+
3439
+ # Types of event that can trigger an action.
3440
+ module EventType
3441
+ # Unused.
3442
+ EVENT_TYPE_UNSPECIFIED = 0
3443
+
3444
+ # New profile (not a re-profile).
3445
+ NEW_PROFILE = 1
3446
+
3447
+ # Changed one of the following profile metrics:
3448
+ # * Table data risk score
3449
+ # * Table sensitivity score
3450
+ # * Table resource visibility
3451
+ # * Table encryption type
3452
+ # * Table predicted infoTypes
3453
+ # * Table other infoTypes
3454
+ CHANGED_PROFILE = 2
3455
+
3456
+ # Table data risk score or sensitivity score increased.
3457
+ SCORE_INCREASED = 3
3458
+
3459
+ # A user (non-internal) error occurred.
3460
+ ERROR_CHANGED = 4
3461
+ end
3462
+ end
3463
+
3464
+ # Configuration for setting up a job to scan resources for profile generation.
3465
+ # Only one data profile configuration may exist per organization, folder,
3466
+ # or project.
3467
+ #
3468
+ # The generated data profiles are retained according to the
3469
+ # [data retention policy]
3470
+ # (https://cloud.google.com/dlp/docs/data-profiles#retention).
3471
+ # @!attribute [rw] location
3472
+ # @return [::Google::Cloud::Dlp::V2::DataProfileLocation]
3473
+ # The data to scan.
3474
+ # @!attribute [rw] project_id
3475
+ # @return [::String]
3476
+ # The project that will run the scan. The DLP service
3477
+ # account that exists within this project must have access to all resources
3478
+ # that are profiled, and the Cloud DLP API must be enabled.
3479
+ # @!attribute [rw] inspect_templates
3480
+ # @return [::Array<::String>]
3481
+ # Detection logic for profile generation.
3482
+ #
3483
+ # Not all template features are used by profiles. FindingLimits,
3484
+ # include_quote and exclude_info_types have no impact on
3485
+ # data profiling.
3486
+ #
3487
+ # Multiple templates may be provided if there is data in multiple regions.
3488
+ # At most one template must be specified per-region (including "global").
3489
+ # Each region is scanned using the applicable template. If no region-specific
3490
+ # template is specified, but a "global" template is specified, it will be
3491
+ # copied to that region and used instead. If no global or region-specific
3492
+ # template is provided for a region with data, that region's data will not be
3493
+ # scanned.
3494
+ #
3495
+ # For more information, see
3496
+ # https://cloud.google.com/dlp/docs/data-profiles#data_residency.
3497
+ # @!attribute [rw] data_profile_actions
3498
+ # @return [::Array<::Google::Cloud::Dlp::V2::DataProfileAction>]
3499
+ # Actions to execute at the completion of the job.
3500
+ class DataProfileJobConfig
3501
+ include ::Google::Protobuf::MessageExts
3502
+ extend ::Google::Protobuf::MessageExts::ClassMethods
3503
+ end
3504
+
3505
+ # The data that will be profiled.
3506
+ # @!attribute [rw] organization_id
3507
+ # @return [::Integer]
3508
+ # The ID of an organization to scan.
3509
+ # @!attribute [rw] folder_id
3510
+ # @return [::Integer]
3511
+ # The ID of the Folder within an organization to scan.
3512
+ class DataProfileLocation
3513
+ include ::Google::Protobuf::MessageExts
3514
+ extend ::Google::Protobuf::MessageExts::ClassMethods
3515
+ end
3516
+
3183
3517
  # Combines all of the information about a DLP job.
3184
3518
  # @!attribute [rw] name
3185
3519
  # @return [::String]
@@ -3886,6 +4220,291 @@ module Google
3886
4220
  extend ::Google::Protobuf::MessageExts::ClassMethods
3887
4221
  end
3888
4222
 
4223
+ # Score is a summary of all elements in the data profile.
4224
+ # A higher number means more sensitive.
4225
+ # @!attribute [rw] score
4226
+ # @return [::Google::Cloud::Dlp::V2::SensitivityScore::SensitivityScoreLevel]
4227
+ # The score applied to the resource.
4228
+ class SensitivityScore
4229
+ include ::Google::Protobuf::MessageExts
4230
+ extend ::Google::Protobuf::MessageExts::ClassMethods
4231
+
4232
+ # Various score levels for resources.
4233
+ module SensitivityScoreLevel
4234
+ # Unused.
4235
+ SENSITIVITY_SCORE_UNSPECIFIED = 0
4236
+
4237
+ # No sensitive information detected. Limited access.
4238
+ SENSITIVITY_LOW = 10
4239
+
4240
+ # Medium risk - PII, potentially sensitive data, or fields with free-text
4241
+ # data that are at higher risk of having intermittent sensitive data.
4242
+ # Consider limiting access.
4243
+ SENSITIVITY_MODERATE = 20
4244
+
4245
+ # High risk – SPII may be present. Exfiltration of data may lead to user
4246
+ # data loss. Re-identification of users may be possible. Consider limiting
4247
+ # usage and or removing SPII.
4248
+ SENSITIVITY_HIGH = 30
4249
+ end
4250
+ end
4251
+
4252
+ # Score is a summary of all elements in the data profile.
4253
+ # A higher number means more risky.
4254
+ # @!attribute [rw] score
4255
+ # @return [::Google::Cloud::Dlp::V2::DataRiskLevel::DataRiskLevelScore]
4256
+ # The score applied to the resource.
4257
+ class DataRiskLevel
4258
+ include ::Google::Protobuf::MessageExts
4259
+ extend ::Google::Protobuf::MessageExts::ClassMethods
4260
+
4261
+ # Various score levels for resources.
4262
+ module DataRiskLevelScore
4263
+ # Unused.
4264
+ RISK_SCORE_UNSPECIFIED = 0
4265
+
4266
+ # Low risk - Lower indication of sensitive data that appears to have
4267
+ # additional access restrictions in place or no indication of sensitive
4268
+ # data found.
4269
+ RISK_LOW = 10
4270
+
4271
+ # Medium risk - Sensitive data may be present but additional access or fine
4272
+ # grain access restrictions appears to be present. Consider limiting
4273
+ # access even further or transforming data to mask.
4274
+ RISK_MODERATE = 20
4275
+
4276
+ # High risk – SPII may be present. Access controls may include public
4277
+ # ACLs. Exfiltration of data may lead to user data loss. Re-identification
4278
+ # of users may be possible. Consider limiting usage and or removing SPII.
4279
+ RISK_HIGH = 30
4280
+ end
4281
+ end
4282
+
4283
+ # Snapshot of the configurations used to generate the profile.
4284
+ # @!attribute [rw] inspect_config
4285
+ # @return [::Google::Cloud::Dlp::V2::InspectConfig]
4286
+ # A copy of the inspection config used to generate this profile. This
4287
+ # is a copy of the inspect_template specified in `DataProfileJobConfig`.
4288
+ # @!attribute [rw] data_profile_job
4289
+ # @return [::Google::Cloud::Dlp::V2::DataProfileJobConfig]
4290
+ # A copy of the configuration used to generate this profile.
4291
+ class DataProfileConfigSnapshot
4292
+ include ::Google::Protobuf::MessageExts
4293
+ extend ::Google::Protobuf::MessageExts::ClassMethods
4294
+ end
4295
+
4296
+ # The profile for a scanned table.
4297
+ # @!attribute [rw] name
4298
+ # @return [::String]
4299
+ # The name of the profile.
4300
+ # @!attribute [rw] project_data_profile
4301
+ # @return [::String]
4302
+ # The resource name to the project data profile for this table.
4303
+ # @!attribute [rw] dataset_project_id
4304
+ # @return [::String]
4305
+ # The GCP project ID that owns the BigQuery dataset.
4306
+ # @!attribute [rw] dataset_location
4307
+ # @return [::String]
4308
+ # The BigQuery location where the dataset's data is stored.
4309
+ # See https://cloud.google.com/bigquery/docs/locations for supported
4310
+ # locations.
4311
+ # @!attribute [rw] dataset_id
4312
+ # @return [::String]
4313
+ # The BigQuery dataset ID.
4314
+ # @!attribute [rw] table_id
4315
+ # @return [::String]
4316
+ # The BigQuery table ID.
4317
+ # @!attribute [rw] full_resource
4318
+ # @return [::String]
4319
+ # The resource name of the table.
4320
+ # https://cloud.google.com/apis/design/resource_names#full_resource_name
4321
+ # @!attribute [rw] profile_status
4322
+ # @return [::Google::Cloud::Dlp::V2::ProfileStatus]
4323
+ # Success or error status from the most recent profile generation attempt.
4324
+ # May be empty if the profile is still being generated.
4325
+ # @!attribute [rw] state
4326
+ # @return [::Google::Cloud::Dlp::V2::TableDataProfile::State]
4327
+ # State of a profile.
4328
+ # @!attribute [rw] sensitivity_score
4329
+ # @return [::Google::Cloud::Dlp::V2::SensitivityScore]
4330
+ # The sensitivity score of this table.
4331
+ # @!attribute [rw] data_risk_level
4332
+ # @return [::Google::Cloud::Dlp::V2::DataRiskLevel]
4333
+ # The data risk level of this table.
4334
+ # @!attribute [rw] predicted_info_types
4335
+ # @return [::Array<::Google::Cloud::Dlp::V2::InfoTypeSummary>]
4336
+ # The infoTypes predicted from this table's data.
4337
+ # @!attribute [rw] other_info_types
4338
+ # @return [::Array<::Google::Cloud::Dlp::V2::OtherInfoTypeSummary>]
4339
+ # Other infoTypes found in this table's data.
4340
+ # @!attribute [rw] config_snapshot
4341
+ # @return [::Google::Cloud::Dlp::V2::DataProfileConfigSnapshot]
4342
+ # The snapshot of the configurations used to generate the profile.
4343
+ # @!attribute [rw] last_modified_time
4344
+ # @return [::Google::Protobuf::Timestamp]
4345
+ # The time when this table was last modified
4346
+ # @!attribute [rw] expiration_time
4347
+ # @return [::Google::Protobuf::Timestamp]
4348
+ # Optional. The time when this table expires.
4349
+ # @!attribute [rw] scanned_column_count
4350
+ # @return [::Integer]
4351
+ # The number of columns profiled in the table.
4352
+ # @!attribute [rw] failed_column_count
4353
+ # @return [::Integer]
4354
+ # The number of columns skipped in the table because of an error.
4355
+ # @!attribute [rw] table_size_bytes
4356
+ # @return [::Integer]
4357
+ # The size of the table when the profile was generated.
4358
+ # @!attribute [rw] row_count
4359
+ # @return [::Integer]
4360
+ # Number of rows in the table when the profile was generated.
4361
+ # @!attribute [rw] encryption_status
4362
+ # @return [::Google::Cloud::Dlp::V2::EncryptionStatus]
4363
+ # How the table is encrypted.
4364
+ # @!attribute [rw] resource_visibility
4365
+ # @return [::Google::Cloud::Dlp::V2::ResourceVisibility]
4366
+ # How broadly a resource has been shared.
4367
+ # @!attribute [rw] profile_last_generated
4368
+ # @return [::Google::Protobuf::Timestamp]
4369
+ # The last time the profile was generated.
4370
+ # @!attribute [rw] resource_labels
4371
+ # @return [::Google::Protobuf::Map{::String => ::String}]
4372
+ # The labels applied to the resource at the time the profile was generated.
4373
+ # @!attribute [rw] create_time
4374
+ # @return [::Google::Protobuf::Timestamp]
4375
+ # The time at which the table was created.
4376
+ class TableDataProfile
4377
+ include ::Google::Protobuf::MessageExts
4378
+ extend ::Google::Protobuf::MessageExts::ClassMethods
4379
+
4380
+ # @!attribute [rw] key
4381
+ # @return [::String]
4382
+ # @!attribute [rw] value
4383
+ # @return [::String]
4384
+ class ResourceLabelsEntry
4385
+ include ::Google::Protobuf::MessageExts
4386
+ extend ::Google::Protobuf::MessageExts::ClassMethods
4387
+ end
4388
+
4389
+ # Possible states of a profile. New items may be added.
4390
+ module State
4391
+ # Unused.
4392
+ STATE_UNSPECIFIED = 0
4393
+
4394
+ # The profile is currently running. Once a profile has finished it will
4395
+ # transition to DONE.
4396
+ RUNNING = 1
4397
+
4398
+ # The profile is no longer generating.
4399
+ # If profile_status.status.code is 0, the profile succeeded, otherwise, it
4400
+ # failed.
4401
+ DONE = 2
4402
+ end
4403
+ end
4404
+
4405
+ # @!attribute [rw] status
4406
+ # @return [::Google::Rpc::Status]
4407
+ # Profiling status code and optional message
4408
+ # @!attribute [rw] timestamp
4409
+ # @return [::Google::Protobuf::Timestamp]
4410
+ # Time when the profile generation status was updated
4411
+ class ProfileStatus
4412
+ include ::Google::Protobuf::MessageExts
4413
+ extend ::Google::Protobuf::MessageExts::ClassMethods
4414
+ end
4415
+
4416
+ # The infoType details for this column.
4417
+ # @!attribute [rw] info_type
4418
+ # @return [::Google::Cloud::Dlp::V2::InfoType]
4419
+ # The infoType.
4420
+ class InfoTypeSummary
4421
+ include ::Google::Protobuf::MessageExts
4422
+ extend ::Google::Protobuf::MessageExts::ClassMethods
4423
+ end
4424
+
4425
+ # Infotype details for other infoTypes found within a column.
4426
+ # @!attribute [rw] info_type
4427
+ # @return [::Google::Cloud::Dlp::V2::InfoType]
4428
+ # The other infoType.
4429
+ class OtherInfoTypeSummary
4430
+ include ::Google::Protobuf::MessageExts
4431
+ extend ::Google::Protobuf::MessageExts::ClassMethods
4432
+ end
4433
+
4434
+ # A condition for determining whether a PubSub should be triggered.
4435
+ # @!attribute [rw] expressions
4436
+ # @return [::Google::Cloud::Dlp::V2::DataProfilePubSubCondition::PubSubExpressions]
4437
+ # An expression.
4438
+ class DataProfilePubSubCondition
4439
+ include ::Google::Protobuf::MessageExts
4440
+ extend ::Google::Protobuf::MessageExts::ClassMethods
4441
+
4442
+ # A condition consisting of a value.
4443
+ # @!attribute [rw] minimum_risk_score
4444
+ # @return [::Google::Cloud::Dlp::V2::DataProfilePubSubCondition::ProfileScoreBucket]
4445
+ # The minimum data risk score that triggers the condition.
4446
+ # @!attribute [rw] minimum_sensitivity_score
4447
+ # @return [::Google::Cloud::Dlp::V2::DataProfilePubSubCondition::ProfileScoreBucket]
4448
+ # The minimum sensitivity level that triggers the condition.
4449
+ class PubSubCondition
4450
+ include ::Google::Protobuf::MessageExts
4451
+ extend ::Google::Protobuf::MessageExts::ClassMethods
4452
+ end
4453
+
4454
+ # An expression, consisting of an operator and conditions.
4455
+ # @!attribute [rw] logical_operator
4456
+ # @return [::Google::Cloud::Dlp::V2::DataProfilePubSubCondition::PubSubExpressions::PubSubLogicalOperator]
4457
+ # The operator to apply to the collection of conditions.
4458
+ # @!attribute [rw] conditions
4459
+ # @return [::Array<::Google::Cloud::Dlp::V2::DataProfilePubSubCondition::PubSubCondition>]
4460
+ # Conditions to apply to the expression.
4461
+ class PubSubExpressions
4462
+ include ::Google::Protobuf::MessageExts
4463
+ extend ::Google::Protobuf::MessageExts::ClassMethods
4464
+
4465
+ # Logical operators for conditional checks.
4466
+ module PubSubLogicalOperator
4467
+ # Unused.
4468
+ LOGICAL_OPERATOR_UNSPECIFIED = 0
4469
+
4470
+ # Conditional OR.
4471
+ OR = 1
4472
+
4473
+ # Conditional AND.
4474
+ AND = 2
4475
+ end
4476
+ end
4477
+
4478
+ # Various score levels for resources.
4479
+ module ProfileScoreBucket
4480
+ # Unused.
4481
+ PROFILE_SCORE_BUCKET_UNSPECIFIED = 0
4482
+
4483
+ # High risk/sensitivity detected.
4484
+ HIGH = 1
4485
+
4486
+ # Medium or high risk/sensitivity detected.
4487
+ MEDIUM_OR_HIGH = 2
4488
+ end
4489
+ end
4490
+
4491
+ # The message that will be published to a Pub/Sub topic.
4492
+ # To receive a message of protocol buffer schema type, convert the message data
4493
+ # to an object of this proto class.
4494
+ # https://cloud.google.com/pubsub/docs/samples/pubsub-subscribe-proto-messages
4495
+ # @!attribute [rw] profile
4496
+ # @return [::Google::Cloud::Dlp::V2::TableDataProfile]
4497
+ # If `DetailLevel` is `TABLE_PROFILE` this will be fully populated.
4498
+ # Otherwise, if `DetailLevel` is `RESOURCE_NAME`, then only `name` and
4499
+ # `full_resource` will be populated.
4500
+ # @!attribute [rw] event
4501
+ # @return [::Google::Cloud::Dlp::V2::DataProfileAction::EventType]
4502
+ # The event that caused the Pub/Sub message to be sent.
4503
+ class DataProfilePubSubMessage
4504
+ include ::Google::Protobuf::MessageExts
4505
+ extend ::Google::Protobuf::MessageExts::ClassMethods
4506
+ end
4507
+
3889
4508
  # Operators available for comparing the value of fields.
3890
4509
  module RelationalOperator
3891
4510
  # Unused
@@ -4007,6 +4626,31 @@ module Google
4007
4626
  # use the `UpdateStoredInfoType` method to create a new version.
4008
4627
  INVALID = 4
4009
4628
  end
4629
+
4630
+ # How broadly a resource has been shared. New items may be added over time.
4631
+ # A higher number means more restricted.
4632
+ module ResourceVisibility
4633
+ # Unused.
4634
+ RESOURCE_VISIBILITY_UNSPECIFIED = 0
4635
+
4636
+ # Visible to any user.
4637
+ RESOURCE_VISIBILITY_PUBLIC = 10
4638
+
4639
+ # Visible only to specific users.
4640
+ RESOURCE_VISIBILITY_RESTRICTED = 20
4641
+ end
4642
+
4643
+ # How a resource is encrypted.
4644
+ module EncryptionStatus
4645
+ # Unused.
4646
+ ENCRYPTION_STATUS_UNSPECIFIED = 0
4647
+
4648
+ # Google manages server-side encryption keys on your behalf.
4649
+ ENCRYPTION_GOOGLE_MANAGED = 1
4650
+
4651
+ # Customer provides the key.
4652
+ ENCRYPTION_CUSTOMER_MANAGED = 2
4653
+ end
4010
4654
  end
4011
4655
  end
4012
4656
  end
@@ -183,7 +183,11 @@ module Google
183
183
  # rule.
184
184
  # @!attribute [rw] window_before
185
185
  # @return [::Integer]
186
- # Number of characters before the finding to consider.
186
+ # Number of characters before the finding to consider. For tabular data,
187
+ # if you want to modify the likelihood of an entire column of findngs,
188
+ # set this to 1. For more information, see
189
+ # [Hotword example: Set the match likelihood of a table column]
190
+ # (https://cloud.google.com/dlp/docs/creating-custom-infotypes-likelihood#match-column-values).
187
191
  # @!attribute [rw] window_after
188
192
  # @return [::Integer]
189
193
  # Number of characters after the finding to consider.
@@ -219,14 +223,19 @@ module Google
219
223
  # Regular expression pattern defining what qualifies as a hotword.
220
224
  # @!attribute [rw] proximity
221
225
  # @return [::Google::Cloud::Dlp::V2::CustomInfoType::DetectionRule::Proximity]
222
- # Proximity of the finding within which the entire hotword must reside.
223
- # The total length of the window cannot exceed 1000 characters. Note that
224
- # the finding itself will be included in the window, so that hotwords may
225
- # be used to match substrings of the finding itself. For example, the
226
- # certainty of a phone number regex "\(\d\\{3}\) \d\\{3}-\d\\{4}" could be
227
- # adjusted upwards if the area code is known to be the local area code of
228
- # a company office using the hotword regex "\(xxx\)", where "xxx"
229
- # is the area code in question.
226
+ # Range of characters within which the entire hotword must reside.
227
+ # The total length of the window cannot exceed 1000 characters.
228
+ # The finding itself will be included in the window, so that hotwords can
229
+ # be used to match substrings of the finding itself. Suppose you
230
+ # want Cloud DLP to promote the likelihood of the phone number
231
+ # regex "\(\d\\{3}\) \d\\{3}-\d\\{4}" if the area code is known to be the
232
+ # area code of a company's office. In this case, use the hotword regex
233
+ # "\(xxx\)", where "xxx" is the area code in question.
234
+ #
235
+ # For tabular data, if you want to modify the likelihood of an entire
236
+ # column of findngs, see
237
+ # [Hotword example: Set the match likelihood of a table column]
238
+ # (https://cloud.google.com/dlp/docs/creating-custom-infotypes-likelihood#match-column-values).
230
239
  # @!attribute [rw] likelihood_adjustment
231
240
  # @return [::Google::Cloud::Dlp::V2::CustomInfoType::DetectionRule::LikelihoodAdjustment]
232
241
  # Likelihood adjustment to apply to all matching findings.
@@ -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.9.0
4
+ version: 0.12.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-03-30 00:00:00.000000000 Z
11
+ date: 2022-07-20 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.5
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