google-cloud-dlp-v2 0.11.0 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7c94ad56435a778ceec6fdeed67ec19e57da323fefd39f48a373feae83e25492
4
- data.tar.gz: 535a84c441b615ee919e164f3e0a94b26f0f2ffd3d8e44fe7db3e49791764bfb
3
+ metadata.gz: 47248e1e45129eef35155efe27d4976f8033217b61c2a2e8d22e3fecabbca797
4
+ data.tar.gz: a3a34a8895709a0a68081837d2bde5322bddb436fde3de77b2a62b388210066e
5
5
  SHA512:
6
- metadata.gz: 2ce78381306a366a1425f5a41723a598174256a27dc0685a1c3364b8dcf1da8378b16506d354bd4bb4c39395358d48a9ae6e8ecaed768585194c1ec25737015b
7
- data.tar.gz: 8a9547cd3122e94f0312d492cdc6226c5201fa3aa6429be49da44543dae9f09f210de0fe1cf7ec98a6f588f7913aa9cf71970a730f9b49979c5d0cc76bcc2d45
6
+ metadata.gz: 54fa81f4e7ea8f866d35548c36bf2ff35b53ffebb02ab10265531eb549ae00246f9d9cb671b71bbc2e70e0ff6903f2552796b134872cba2529215f420968c31b
7
+ data.tar.gz: ac749e5d7b9b3e599b4d2832d63ba10012fe56f41aae2f420c08e0b63d35a49994a47b7eb927b674c398cf6ba2bbffc23c2efcefcf1ddce330314f6fbe97971d
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Dlp
23
23
  module V2
24
- VERSION = "0.11.0"
24
+ VERSION = "0.12.0"
25
25
  end
26
26
  end
27
27
  end
@@ -274,6 +274,73 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
274
274
  optional :display_name, :string, 2
275
275
  repeated :supported_by, :enum, 3, "google.privacy.dlp.v2.InfoTypeSupportedBy"
276
276
  optional :description, :string, 4
277
+ repeated :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
277
344
  end
278
345
  add_message "google.privacy.dlp.v2.ListInfoTypesRequest" do
279
346
  optional :parent, :string, 4
@@ -1228,6 +1295,10 @@ module Google
1228
1295
  InspectDataSourceDetails::Result = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.InspectDataSourceDetails.Result").msgclass
1229
1296
  HybridInspectStatistics = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.HybridInspectStatistics").msgclass
1230
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
1231
1302
  ListInfoTypesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.ListInfoTypesRequest").msgclass
1232
1303
  ListInfoTypesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.ListInfoTypesResponse").msgclass
1233
1304
  RiskAnalysisJobConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.RiskAnalysisJobConfig").msgclass
@@ -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]
@@ -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.
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.11.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-07-02 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