google-cloud-dlp-v2 0.1.0 → 0.1.1

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.
@@ -23,36 +23,36 @@ module Google
23
23
  module V2
24
24
  # Type of information detected by the API.
25
25
  # @!attribute [rw] name
26
- # @return [String]
26
+ # @return [::String]
27
27
  # Name of the information type. Either a name of your choosing when
28
28
  # creating a CustomInfoType, or one of the names listed
29
29
  # at https://cloud.google.com/dlp/docs/infotypes-reference when specifying
30
30
  # a built-in type. InfoType names should conform to the pattern
31
31
  # `[a-zA-Z0-9_]{1,64}`.
32
32
  class InfoType
33
- include Google::Protobuf::MessageExts
34
- extend Google::Protobuf::MessageExts::ClassMethods
33
+ include ::Google::Protobuf::MessageExts
34
+ extend ::Google::Protobuf::MessageExts::ClassMethods
35
35
  end
36
36
 
37
37
  # A reference to a StoredInfoType to use with scanning.
38
38
  # @!attribute [rw] name
39
- # @return [String]
39
+ # @return [::String]
40
40
  # Resource name of the requested `StoredInfoType`, for example
41
41
  # `organizations/433245324/storedInfoTypes/432452342` or
42
42
  # `projects/project-id/storedInfoTypes/432452342`.
43
43
  # @!attribute [rw] create_time
44
- # @return [Google::Protobuf::Timestamp]
44
+ # @return [::Google::Protobuf::Timestamp]
45
45
  # Timestamp indicating when the version of the `StoredInfoType` used for
46
46
  # inspection was created. Output-only field, populated by the system.
47
47
  class StoredType
48
- include Google::Protobuf::MessageExts
49
- extend Google::Protobuf::MessageExts::ClassMethods
48
+ include ::Google::Protobuf::MessageExts
49
+ extend ::Google::Protobuf::MessageExts::ClassMethods
50
50
  end
51
51
 
52
52
  # Custom information type provided by the user. Used to find domain-specific
53
53
  # sensitive information configurable to the data in question.
54
54
  # @!attribute [rw] info_type
55
- # @return [Google::Cloud::Dlp::V2::InfoType]
55
+ # @return [::Google::Cloud::Dlp::V2::InfoType]
56
56
  # CustomInfoType can either be a new infoType, or an extension of built-in
57
57
  # infoType, when the name matches one of existing infoTypes and that infoType
58
58
  # is specified in `InspectContent.info_types` field. Specifying the latter
@@ -60,36 +60,36 @@ module Google
60
60
  # not specified in `InspectContent.info_types` list then the name is treated
61
61
  # as a custom info type.
62
62
  # @!attribute [rw] likelihood
63
- # @return [Google::Cloud::Dlp::V2::Likelihood]
63
+ # @return [::Google::Cloud::Dlp::V2::Likelihood]
64
64
  # Likelihood to return for this CustomInfoType. This base value can be
65
65
  # altered by a detection rule if the finding meets the criteria specified by
66
66
  # the rule. Defaults to `VERY_LIKELY` if not specified.
67
67
  # @!attribute [rw] dictionary
68
- # @return [Google::Cloud::Dlp::V2::CustomInfoType::Dictionary]
68
+ # @return [::Google::Cloud::Dlp::V2::CustomInfoType::Dictionary]
69
69
  # A list of phrases to detect as a CustomInfoType.
70
70
  # @!attribute [rw] regex
71
- # @return [Google::Cloud::Dlp::V2::CustomInfoType::Regex]
71
+ # @return [::Google::Cloud::Dlp::V2::CustomInfoType::Regex]
72
72
  # Regular expression based CustomInfoType.
73
73
  # @!attribute [rw] surrogate_type
74
- # @return [Google::Cloud::Dlp::V2::CustomInfoType::SurrogateType]
74
+ # @return [::Google::Cloud::Dlp::V2::CustomInfoType::SurrogateType]
75
75
  # Message for detecting output from deidentification transformations that
76
76
  # support reversing.
77
77
  # @!attribute [rw] stored_type
78
- # @return [Google::Cloud::Dlp::V2::StoredType]
78
+ # @return [::Google::Cloud::Dlp::V2::StoredType]
79
79
  # Load an existing `StoredInfoType` resource for use in
80
80
  # `InspectDataSource`. Not currently supported in `InspectContent`.
81
81
  # @!attribute [rw] detection_rules
82
- # @return [Array<Google::Cloud::Dlp::V2::CustomInfoType::DetectionRule>]
82
+ # @return [::Array<::Google::Cloud::Dlp::V2::CustomInfoType::DetectionRule>]
83
83
  # Set of detection rules to apply to all findings of this CustomInfoType.
84
84
  # Rules are applied in order that they are specified. Not supported for the
85
85
  # `surrogate_type` CustomInfoType.
86
86
  # @!attribute [rw] exclusion_type
87
- # @return [Google::Cloud::Dlp::V2::CustomInfoType::ExclusionType]
87
+ # @return [::Google::Cloud::Dlp::V2::CustomInfoType::ExclusionType]
88
88
  # If set to EXCLUSION_TYPE_EXCLUDE this infoType will not cause a finding
89
89
  # to be returned. It still can be used for rules matching.
90
90
  class CustomInfoType
91
- include Google::Protobuf::MessageExts
92
- extend Google::Protobuf::MessageExts::ClassMethods
91
+ include ::Google::Protobuf::MessageExts
92
+ extend ::Google::Protobuf::MessageExts::ClassMethods
93
93
 
94
94
  # Custom information type based on a dictionary of words or phrases. This can
95
95
  # be used to match sensitive information specific to the data, such as a list
@@ -115,41 +115,41 @@ module Google
115
115
  # these constraints, consider using `LargeCustomDictionaryConfig` in the
116
116
  # `StoredInfoType` API.
117
117
  # @!attribute [rw] word_list
118
- # @return [Google::Cloud::Dlp::V2::CustomInfoType::Dictionary::WordList]
118
+ # @return [::Google::Cloud::Dlp::V2::CustomInfoType::Dictionary::WordList]
119
119
  # List of words or phrases to search for.
120
120
  # @!attribute [rw] cloud_storage_path
121
- # @return [Google::Cloud::Dlp::V2::CloudStoragePath]
121
+ # @return [::Google::Cloud::Dlp::V2::CloudStoragePath]
122
122
  # Newline-delimited file of words in Cloud Storage. Only a single file
123
123
  # is accepted.
124
124
  class Dictionary
125
- include Google::Protobuf::MessageExts
126
- extend Google::Protobuf::MessageExts::ClassMethods
125
+ include ::Google::Protobuf::MessageExts
126
+ extend ::Google::Protobuf::MessageExts::ClassMethods
127
127
 
128
128
  # Message defining a list of words or phrases to search for in the data.
129
129
  # @!attribute [rw] words
130
- # @return [Array<String>]
130
+ # @return [::Array<::String>]
131
131
  # Words or phrases defining the dictionary. The dictionary must contain
132
132
  # at least one phrase and every phrase must contain at least 2 characters
133
133
  # that are letters or digits. [required]
134
134
  class WordList
135
- include Google::Protobuf::MessageExts
136
- extend Google::Protobuf::MessageExts::ClassMethods
135
+ include ::Google::Protobuf::MessageExts
136
+ extend ::Google::Protobuf::MessageExts::ClassMethods
137
137
  end
138
138
  end
139
139
 
140
140
  # Message defining a custom regular expression.
141
141
  # @!attribute [rw] pattern
142
- # @return [String]
142
+ # @return [::String]
143
143
  # Pattern defining the regular expression. Its syntax
144
144
  # (https://github.com/google/re2/wiki/Syntax) can be found under the
145
145
  # google/re2 repository on GitHub.
146
146
  # @!attribute [rw] group_indexes
147
- # @return [Array<Integer>]
147
+ # @return [::Array<::Integer>]
148
148
  # The index of the submatch to extract as findings. When not
149
149
  # specified, the entire match is returned. No more than 3 may be included.
150
150
  class Regex
151
- include Google::Protobuf::MessageExts
152
- extend Google::Protobuf::MessageExts::ClassMethods
151
+ include ::Google::Protobuf::MessageExts
152
+ extend ::Google::Protobuf::MessageExts::ClassMethods
153
153
  end
154
154
 
155
155
  # Message for detecting output from deidentification transformations
@@ -161,8 +161,8 @@ module Google
161
161
  # transformation such as `surrogate_info_type`. This CustomInfoType does
162
162
  # not support the use of `detection_rules`.
163
163
  class SurrogateType
164
- include Google::Protobuf::MessageExts
165
- extend Google::Protobuf::MessageExts::ClassMethods
164
+ include ::Google::Protobuf::MessageExts
165
+ extend ::Google::Protobuf::MessageExts::ClassMethods
166
166
  end
167
167
 
168
168
  # Deprecated; use `InspectionRuleSet` instead. Rule for modifying a
@@ -170,32 +170,32 @@ module Google
170
170
  # on the specific details of the rule. Not supported for the `surrogate_type`
171
171
  # custom infoType.
172
172
  # @!attribute [rw] hotword_rule
173
- # @return [Google::Cloud::Dlp::V2::CustomInfoType::DetectionRule::HotwordRule]
173
+ # @return [::Google::Cloud::Dlp::V2::CustomInfoType::DetectionRule::HotwordRule]
174
174
  # Hotword-based detection rule.
175
175
  class DetectionRule
176
- include Google::Protobuf::MessageExts
177
- extend Google::Protobuf::MessageExts::ClassMethods
176
+ include ::Google::Protobuf::MessageExts
177
+ extend ::Google::Protobuf::MessageExts::ClassMethods
178
178
 
179
179
  # Message for specifying a window around a finding to apply a detection
180
180
  # rule.
181
181
  # @!attribute [rw] window_before
182
- # @return [Integer]
182
+ # @return [::Integer]
183
183
  # Number of characters before the finding to consider.
184
184
  # @!attribute [rw] window_after
185
- # @return [Integer]
185
+ # @return [::Integer]
186
186
  # Number of characters after the finding to consider.
187
187
  class Proximity
188
- include Google::Protobuf::MessageExts
189
- extend Google::Protobuf::MessageExts::ClassMethods
188
+ include ::Google::Protobuf::MessageExts
189
+ extend ::Google::Protobuf::MessageExts::ClassMethods
190
190
  end
191
191
 
192
192
  # Message for specifying an adjustment to the likelihood of a finding as
193
193
  # part of a detection rule.
194
194
  # @!attribute [rw] fixed_likelihood
195
- # @return [Google::Cloud::Dlp::V2::Likelihood]
195
+ # @return [::Google::Cloud::Dlp::V2::Likelihood]
196
196
  # Set the likelihood of a finding to a fixed value.
197
197
  # @!attribute [rw] relative_likelihood
198
- # @return [Integer]
198
+ # @return [::Integer]
199
199
  # Increase or decrease the likelihood by the specified number of
200
200
  # levels. For example, if a finding would be `POSSIBLE` without the
201
201
  # detection rule and `relative_likelihood` is 1, then it is upgraded to
@@ -205,17 +205,17 @@ module Google
205
205
  # adjustment of -1 when base likelihood is `VERY_LIKELY` will result in
206
206
  # a final likelihood of `LIKELY`.
207
207
  class LikelihoodAdjustment
208
- include Google::Protobuf::MessageExts
209
- extend Google::Protobuf::MessageExts::ClassMethods
208
+ include ::Google::Protobuf::MessageExts
209
+ extend ::Google::Protobuf::MessageExts::ClassMethods
210
210
  end
211
211
 
212
212
  # The rule that adjusts the likelihood of findings within a certain
213
213
  # proximity of hotwords.
214
214
  # @!attribute [rw] hotword_regex
215
- # @return [Google::Cloud::Dlp::V2::CustomInfoType::Regex]
215
+ # @return [::Google::Cloud::Dlp::V2::CustomInfoType::Regex]
216
216
  # Regular expression pattern defining what qualifies as a hotword.
217
217
  # @!attribute [rw] proximity
218
- # @return [Google::Cloud::Dlp::V2::CustomInfoType::DetectionRule::Proximity]
218
+ # @return [::Google::Cloud::Dlp::V2::CustomInfoType::DetectionRule::Proximity]
219
219
  # Proximity of the finding within which the entire hotword must reside.
220
220
  # The total length of the window cannot exceed 1000 characters. Note that
221
221
  # the finding itself will be included in the window, so that hotwords may
@@ -225,11 +225,11 @@ module Google
225
225
  # a company office using the hotword regex "\(xxx\)", where "xxx"
226
226
  # is the area code in question.
227
227
  # @!attribute [rw] likelihood_adjustment
228
- # @return [Google::Cloud::Dlp::V2::CustomInfoType::DetectionRule::LikelihoodAdjustment]
228
+ # @return [::Google::Cloud::Dlp::V2::CustomInfoType::DetectionRule::LikelihoodAdjustment]
229
229
  # Likelihood adjustment to apply to all matching findings.
230
230
  class HotwordRule
231
- include Google::Protobuf::MessageExts
232
- extend Google::Protobuf::MessageExts::ClassMethods
231
+ include ::Google::Protobuf::MessageExts
232
+ extend ::Google::Protobuf::MessageExts::ClassMethods
233
233
  end
234
234
  end
235
235
 
@@ -245,11 +245,11 @@ module Google
245
245
 
246
246
  # General identifier of a data field in a storage service.
247
247
  # @!attribute [rw] name
248
- # @return [String]
248
+ # @return [::String]
249
249
  # Name describing the field.
250
250
  class FieldId
251
- include Google::Protobuf::MessageExts
252
- extend Google::Protobuf::MessageExts::ClassMethods
251
+ include ::Google::Protobuf::MessageExts
252
+ extend ::Google::Protobuf::MessageExts::ClassMethods
253
253
  end
254
254
 
255
255
  # Datastore partition ID.
@@ -259,36 +259,36 @@ module Google
259
259
  # A partition ID contains several dimensions:
260
260
  # project ID and namespace ID.
261
261
  # @!attribute [rw] project_id
262
- # @return [String]
262
+ # @return [::String]
263
263
  # The ID of the project to which the entities belong.
264
264
  # @!attribute [rw] namespace_id
265
- # @return [String]
265
+ # @return [::String]
266
266
  # If not empty, the ID of the namespace to which the entities belong.
267
267
  class PartitionId
268
- include Google::Protobuf::MessageExts
269
- extend Google::Protobuf::MessageExts::ClassMethods
268
+ include ::Google::Protobuf::MessageExts
269
+ extend ::Google::Protobuf::MessageExts::ClassMethods
270
270
  end
271
271
 
272
272
  # A representation of a Datastore kind.
273
273
  # @!attribute [rw] name
274
- # @return [String]
274
+ # @return [::String]
275
275
  # The name of the kind.
276
276
  class KindExpression
277
- include Google::Protobuf::MessageExts
278
- extend Google::Protobuf::MessageExts::ClassMethods
277
+ include ::Google::Protobuf::MessageExts
278
+ extend ::Google::Protobuf::MessageExts::ClassMethods
279
279
  end
280
280
 
281
281
  # Options defining a data set within Google Cloud Datastore.
282
282
  # @!attribute [rw] partition_id
283
- # @return [Google::Cloud::Dlp::V2::PartitionId]
283
+ # @return [::Google::Cloud::Dlp::V2::PartitionId]
284
284
  # A partition ID identifies a grouping of entities. The grouping is always
285
285
  # by project and namespace, however the namespace ID may be empty.
286
286
  # @!attribute [rw] kind
287
- # @return [Google::Cloud::Dlp::V2::KindExpression]
287
+ # @return [::Google::Cloud::Dlp::V2::KindExpression]
288
288
  # The kind to process.
289
289
  class DatastoreOptions
290
- include Google::Protobuf::MessageExts
291
- extend Google::Protobuf::MessageExts::ClassMethods
290
+ include ::Google::Protobuf::MessageExts
291
+ extend ::Google::Protobuf::MessageExts::ClassMethods
292
292
  end
293
293
 
294
294
  # Message representing a set of files in a Cloud Storage bucket. Regular
@@ -324,10 +324,10 @@ module Google
324
324
  # include all files directly under `gs://mybucket/directory/`, without matching
325
325
  # across `/`
326
326
  # @!attribute [rw] bucket_name
327
- # @return [String]
327
+ # @return [::String]
328
328
  # The name of a Cloud Storage bucket. Required.
329
329
  # @!attribute [rw] include_regex
330
- # @return [Array<String>]
330
+ # @return [::Array<::String>]
331
331
  # A list of regular expressions matching file paths to include. All files in
332
332
  # the bucket that match at least one of these regular expressions will be
333
333
  # included in the set of files, except for those that also match an item in
@@ -338,7 +338,7 @@ module Google
338
338
  # [syntax](https://github.com/google/re2/wiki/Syntax); a guide can be found
339
339
  # under the google/re2 repository on GitHub.
340
340
  # @!attribute [rw] exclude_regex
341
- # @return [Array<String>]
341
+ # @return [::Array<::String>]
342
342
  # A list of regular expressions matching file paths to exclude. All files in
343
343
  # the bucket that match at least one of these regular expressions will be
344
344
  # excluded from the scan.
@@ -347,46 +347,46 @@ module Google
347
347
  # [syntax](https://github.com/google/re2/wiki/Syntax); a guide can be found
348
348
  # under the google/re2 repository on GitHub.
349
349
  class CloudStorageRegexFileSet
350
- include Google::Protobuf::MessageExts
351
- extend Google::Protobuf::MessageExts::ClassMethods
350
+ include ::Google::Protobuf::MessageExts
351
+ extend ::Google::Protobuf::MessageExts::ClassMethods
352
352
  end
353
353
 
354
354
  # Options defining a file or a set of files within a Google Cloud Storage
355
355
  # bucket.
356
356
  # @!attribute [rw] file_set
357
- # @return [Google::Cloud::Dlp::V2::CloudStorageOptions::FileSet]
357
+ # @return [::Google::Cloud::Dlp::V2::CloudStorageOptions::FileSet]
358
358
  # The set of one or more files to scan.
359
359
  # @!attribute [rw] bytes_limit_per_file
360
- # @return [Integer]
360
+ # @return [::Integer]
361
361
  # Max number of bytes to scan from a file. If a scanned file's size is bigger
362
362
  # than this value then the rest of the bytes are omitted. Only one
363
363
  # of bytes_limit_per_file and bytes_limit_per_file_percent can be specified.
364
364
  # @!attribute [rw] bytes_limit_per_file_percent
365
- # @return [Integer]
365
+ # @return [::Integer]
366
366
  # Max percentage of bytes to scan from a file. The rest are omitted. The
367
367
  # number of bytes scanned is rounded down. Must be between 0 and 100,
368
368
  # inclusively. Both 0 and 100 means no limit. Defaults to 0. Only one
369
369
  # of bytes_limit_per_file and bytes_limit_per_file_percent can be specified.
370
370
  # @!attribute [rw] file_types
371
- # @return [Array<Google::Cloud::Dlp::V2::FileType>]
371
+ # @return [::Array<::Google::Cloud::Dlp::V2::FileType>]
372
372
  # List of file type groups to include in the scan.
373
373
  # If empty, all files are scanned and available data format processors
374
374
  # are applied. In addition, the binary content of the selected files
375
375
  # is always scanned as well.
376
376
  # @!attribute [rw] sample_method
377
- # @return [Google::Cloud::Dlp::V2::CloudStorageOptions::SampleMethod]
377
+ # @return [::Google::Cloud::Dlp::V2::CloudStorageOptions::SampleMethod]
378
378
  # @!attribute [rw] files_limit_percent
379
- # @return [Integer]
379
+ # @return [::Integer]
380
380
  # Limits the number of files to scan to this percentage of the input FileSet.
381
381
  # Number of files scanned is rounded down. Must be between 0 and 100,
382
382
  # inclusively. Both 0 and 100 means no limit. Defaults to 0.
383
383
  class CloudStorageOptions
384
- include Google::Protobuf::MessageExts
385
- extend Google::Protobuf::MessageExts::ClassMethods
384
+ include ::Google::Protobuf::MessageExts
385
+ extend ::Google::Protobuf::MessageExts::ClassMethods
386
386
 
387
387
  # Set of files to scan.
388
388
  # @!attribute [rw] url
389
- # @return [String]
389
+ # @return [::String]
390
390
  # The Cloud Storage url of the file(s) to scan, in the format
391
391
  # `gs://<bucket>/<path>`. Trailing wildcard in the path is allowed.
392
392
  #
@@ -398,12 +398,12 @@ module Google
398
398
  #
399
399
  # Exactly one of `url` or `regex_file_set` must be set.
400
400
  # @!attribute [rw] regex_file_set
401
- # @return [Google::Cloud::Dlp::V2::CloudStorageRegexFileSet]
401
+ # @return [::Google::Cloud::Dlp::V2::CloudStorageRegexFileSet]
402
402
  # The regex-filtered set of files to scan. Exactly one of `url` or
403
403
  # `regex_file_set` must be set.
404
404
  class FileSet
405
- include Google::Protobuf::MessageExts
406
- extend Google::Protobuf::MessageExts::ClassMethods
405
+ include ::Google::Protobuf::MessageExts
406
+ extend ::Google::Protobuf::MessageExts::ClassMethods
407
407
  end
408
408
 
409
409
  # How to sample bytes if not all bytes are scanned. Meaningful only when used
@@ -423,57 +423,57 @@ module Google
423
423
 
424
424
  # Message representing a set of files in Cloud Storage.
425
425
  # @!attribute [rw] url
426
- # @return [String]
426
+ # @return [::String]
427
427
  # The url, in the format `gs://<bucket>/<path>`. Trailing wildcard in the
428
428
  # path is allowed.
429
429
  class CloudStorageFileSet
430
- include Google::Protobuf::MessageExts
431
- extend Google::Protobuf::MessageExts::ClassMethods
430
+ include ::Google::Protobuf::MessageExts
431
+ extend ::Google::Protobuf::MessageExts::ClassMethods
432
432
  end
433
433
 
434
434
  # Message representing a single file or path in Cloud Storage.
435
435
  # @!attribute [rw] path
436
- # @return [String]
436
+ # @return [::String]
437
437
  # A url representing a file or path (no wildcards) in Cloud Storage.
438
438
  # Example: gs://[BUCKET_NAME]/dictionary.txt
439
439
  class CloudStoragePath
440
- include Google::Protobuf::MessageExts
441
- extend Google::Protobuf::MessageExts::ClassMethods
440
+ include ::Google::Protobuf::MessageExts
441
+ extend ::Google::Protobuf::MessageExts::ClassMethods
442
442
  end
443
443
 
444
444
  # Options defining BigQuery table and row identifiers.
445
445
  # @!attribute [rw] table_reference
446
- # @return [Google::Cloud::Dlp::V2::BigQueryTable]
446
+ # @return [::Google::Cloud::Dlp::V2::BigQueryTable]
447
447
  # Complete BigQuery table reference.
448
448
  # @!attribute [rw] identifying_fields
449
- # @return [Array<Google::Cloud::Dlp::V2::FieldId>]
449
+ # @return [::Array<::Google::Cloud::Dlp::V2::FieldId>]
450
450
  # Table fields that may uniquely identify a row within the table. When
451
451
  # `actions.saveFindings.outputConfig.table` is specified, the values of
452
452
  # columns specified here are available in the output table under
453
453
  # `location.content_locations.record_location.record_key.id_values`. Nested
454
454
  # fields such as `person.birthdate.year` are allowed.
455
455
  # @!attribute [rw] rows_limit
456
- # @return [Integer]
456
+ # @return [::Integer]
457
457
  # Max number of rows to scan. If the table has more rows than this value, the
458
458
  # rest of the rows are omitted. If not set, or if set to 0, all rows will be
459
459
  # scanned. Only one of rows_limit and rows_limit_percent can be specified.
460
460
  # Cannot be used in conjunction with TimespanConfig.
461
461
  # @!attribute [rw] rows_limit_percent
462
- # @return [Integer]
462
+ # @return [::Integer]
463
463
  # Max percentage of rows to scan. The rest are omitted. The number of rows
464
464
  # scanned is rounded down. Must be between 0 and 100, inclusively. Both 0 and
465
465
  # 100 means no limit. Defaults to 0. Only one of rows_limit and
466
466
  # rows_limit_percent can be specified. Cannot be used in conjunction with
467
467
  # TimespanConfig.
468
468
  # @!attribute [rw] sample_method
469
- # @return [Google::Cloud::Dlp::V2::BigQueryOptions::SampleMethod]
469
+ # @return [::Google::Cloud::Dlp::V2::BigQueryOptions::SampleMethod]
470
470
  # @!attribute [rw] excluded_fields
471
- # @return [Array<Google::Cloud::Dlp::V2::FieldId>]
471
+ # @return [::Array<::Google::Cloud::Dlp::V2::FieldId>]
472
472
  # References to fields excluded from scanning. This allows you to skip
473
473
  # inspection of entire columns which you know have no findings.
474
474
  class BigQueryOptions
475
- include Google::Protobuf::MessageExts
476
- extend Google::Protobuf::MessageExts::ClassMethods
475
+ include ::Google::Protobuf::MessageExts
476
+ extend ::Google::Protobuf::MessageExts::ClassMethods
477
477
 
478
478
  # How to sample rows if not all rows are scanned. Meaningful only when used
479
479
  # in conjunction with either rows_limit or rows_limit_percent. If not
@@ -491,37 +491,37 @@ module Google
491
491
 
492
492
  # Shared message indicating Cloud storage type.
493
493
  # @!attribute [rw] datastore_options
494
- # @return [Google::Cloud::Dlp::V2::DatastoreOptions]
494
+ # @return [::Google::Cloud::Dlp::V2::DatastoreOptions]
495
495
  # Google Cloud Datastore options.
496
496
  # @!attribute [rw] cloud_storage_options
497
- # @return [Google::Cloud::Dlp::V2::CloudStorageOptions]
497
+ # @return [::Google::Cloud::Dlp::V2::CloudStorageOptions]
498
498
  # Google Cloud Storage options.
499
499
  # @!attribute [rw] big_query_options
500
- # @return [Google::Cloud::Dlp::V2::BigQueryOptions]
500
+ # @return [::Google::Cloud::Dlp::V2::BigQueryOptions]
501
501
  # BigQuery options.
502
502
  # @!attribute [rw] hybrid_options
503
- # @return [Google::Cloud::Dlp::V2::HybridOptions]
503
+ # @return [::Google::Cloud::Dlp::V2::HybridOptions]
504
504
  # Hybrid inspection options.
505
505
  # Early access feature is in a pre-release state and might change or have
506
506
  # limited support. For more information, see
507
507
  # https://cloud.google.com/products#product-launch-stages.
508
508
  # @!attribute [rw] timespan_config
509
- # @return [Google::Cloud::Dlp::V2::StorageConfig::TimespanConfig]
509
+ # @return [::Google::Cloud::Dlp::V2::StorageConfig::TimespanConfig]
510
510
  class StorageConfig
511
- include Google::Protobuf::MessageExts
512
- extend Google::Protobuf::MessageExts::ClassMethods
511
+ include ::Google::Protobuf::MessageExts
512
+ extend ::Google::Protobuf::MessageExts::ClassMethods
513
513
 
514
514
  # Configuration of the timespan of the items to include in scanning.
515
515
  # Currently only supported when inspecting Google Cloud Storage and BigQuery.
516
516
  # @!attribute [rw] start_time
517
- # @return [Google::Protobuf::Timestamp]
517
+ # @return [::Google::Protobuf::Timestamp]
518
518
  # Exclude files or rows older than this value.
519
519
  # @!attribute [rw] end_time
520
- # @return [Google::Protobuf::Timestamp]
520
+ # @return [::Google::Protobuf::Timestamp]
521
521
  # Exclude files or rows newer than this value.
522
522
  # If set to zero, no upper time limit is applied.
523
523
  # @!attribute [rw] timestamp_field
524
- # @return [Google::Cloud::Dlp::V2::FieldId]
524
+ # @return [::Google::Cloud::Dlp::V2::FieldId]
525
525
  # Specification of the field containing the timestamp of scanned items.
526
526
  # Used for data sources like Datastore and BigQuery.
527
527
  #
@@ -537,25 +537,25 @@ module Google
537
537
  # Datastore entity will be scanned if the timestamp property does not
538
538
  # exist or its value is empty or invalid.
539
539
  # @!attribute [rw] enable_auto_population_of_timespan_config
540
- # @return [Boolean]
540
+ # @return [::Boolean]
541
541
  # When the job is started by a JobTrigger we will automatically figure out
542
542
  # a valid start_time to avoid scanning files that have not been modified
543
543
  # since the last time the JobTrigger executed. This will be based on the
544
544
  # time of the execution of the last run of the JobTrigger.
545
545
  class TimespanConfig
546
- include Google::Protobuf::MessageExts
547
- extend Google::Protobuf::MessageExts::ClassMethods
546
+ include ::Google::Protobuf::MessageExts
547
+ extend ::Google::Protobuf::MessageExts::ClassMethods
548
548
  end
549
549
  end
550
550
 
551
551
  # Configuration to control jobs where the content being inspected is outside
552
552
  # of Google Cloud Platform.
553
553
  # @!attribute [rw] description
554
- # @return [String]
554
+ # @return [::String]
555
555
  # A short description of where the data is coming from. Will be stored once
556
556
  # in the job. 256 max length.
557
557
  # @!attribute [rw] required_finding_label_keys
558
- # @return [Array<String>]
558
+ # @return [::Array<::String>]
559
559
  # These are labels that each inspection request must include within their
560
560
  # 'finding_labels' map. Request may contain others, but any missing one of
561
561
  # these will be rejected.
@@ -565,7 +565,7 @@ module Google
565
565
  #
566
566
  # No more than 10 keys can be required.
567
567
  # @!attribute [rw] labels
568
- # @return [Google::Protobuf::Map{String => String}]
568
+ # @return [::Google::Protobuf::Map{::String => ::String}]
569
569
  # To organize findings, these labels will be added to each finding.
570
570
  #
571
571
  # Label keys must be between 1 and 63 characters long and must conform
@@ -580,46 +580,46 @@ module Google
580
580
  # * `"environment" : "production"`
581
581
  # * `"pipeline" : "etl"`
582
582
  # @!attribute [rw] table_options
583
- # @return [Google::Cloud::Dlp::V2::TableOptions]
583
+ # @return [::Google::Cloud::Dlp::V2::TableOptions]
584
584
  # If the container is a table, additional information to make findings
585
585
  # meaningful such as the columns that are primary keys.
586
586
  class HybridOptions
587
- include Google::Protobuf::MessageExts
588
- extend Google::Protobuf::MessageExts::ClassMethods
587
+ include ::Google::Protobuf::MessageExts
588
+ extend ::Google::Protobuf::MessageExts::ClassMethods
589
589
 
590
590
  # @!attribute [rw] key
591
- # @return [String]
591
+ # @return [::String]
592
592
  # @!attribute [rw] value
593
- # @return [String]
593
+ # @return [::String]
594
594
  class LabelsEntry
595
- include Google::Protobuf::MessageExts
596
- extend Google::Protobuf::MessageExts::ClassMethods
595
+ include ::Google::Protobuf::MessageExts
596
+ extend ::Google::Protobuf::MessageExts::ClassMethods
597
597
  end
598
598
  end
599
599
 
600
600
  # Row key for identifying a record in BigQuery table.
601
601
  # @!attribute [rw] table_reference
602
- # @return [Google::Cloud::Dlp::V2::BigQueryTable]
602
+ # @return [::Google::Cloud::Dlp::V2::BigQueryTable]
603
603
  # Complete BigQuery table reference.
604
604
  # @!attribute [rw] row_number
605
- # @return [Integer]
605
+ # @return [::Integer]
606
606
  # Row number inferred at the time the table was scanned. This value is
607
607
  # nondeterministic, cannot be queried, and may be null for inspection
608
608
  # jobs. To locate findings within a table, specify
609
609
  # `inspect_job.storage_config.big_query_options.identifying_fields` in
610
610
  # `CreateDlpJobRequest`.
611
611
  class BigQueryKey
612
- include Google::Protobuf::MessageExts
613
- extend Google::Protobuf::MessageExts::ClassMethods
612
+ include ::Google::Protobuf::MessageExts
613
+ extend ::Google::Protobuf::MessageExts::ClassMethods
614
614
  end
615
615
 
616
616
  # Record key for a finding in Cloud Datastore.
617
617
  # @!attribute [rw] entity_key
618
- # @return [Google::Cloud::Dlp::V2::Key]
618
+ # @return [::Google::Cloud::Dlp::V2::Key]
619
619
  # Datastore entity key.
620
620
  class DatastoreKey
621
- include Google::Protobuf::MessageExts
622
- extend Google::Protobuf::MessageExts::ClassMethods
621
+ include ::Google::Protobuf::MessageExts
622
+ extend ::Google::Protobuf::MessageExts::ClassMethods
623
623
  end
624
624
 
625
625
  # A unique identifier for a Datastore entity.
@@ -627,12 +627,12 @@ module Google
627
627
  # reserved/read-only, the key is reserved/read-only.
628
628
  # A reserved/read-only key is forbidden in certain documented contexts.
629
629
  # @!attribute [rw] partition_id
630
- # @return [Google::Cloud::Dlp::V2::PartitionId]
630
+ # @return [::Google::Cloud::Dlp::V2::PartitionId]
631
631
  # Entities are partitioned into subsets, currently identified by a project
632
632
  # ID and namespace ID.
633
633
  # Queries are scoped to a single partition.
634
634
  # @!attribute [rw] path
635
- # @return [Array<Google::Cloud::Dlp::V2::Key::PathElement>]
635
+ # @return [::Array<::Google::Cloud::Dlp::V2::Key::PathElement>]
636
636
  # The entity path.
637
637
  # An entity path consists of one or more elements composed of a kind and a
638
638
  # string or numerical identifier, which identify entities. The first
@@ -643,48 +643,48 @@ module Google
643
643
  #
644
644
  # A path can never be empty, and a path can have at most 100 elements.
645
645
  class Key
646
- include Google::Protobuf::MessageExts
647
- extend Google::Protobuf::MessageExts::ClassMethods
646
+ include ::Google::Protobuf::MessageExts
647
+ extend ::Google::Protobuf::MessageExts::ClassMethods
648
648
 
649
649
  # A (kind, ID/name) pair used to construct a key path.
650
650
  #
651
651
  # If either name or ID is set, the element is complete.
652
652
  # If neither is set, the element is incomplete.
653
653
  # @!attribute [rw] kind
654
- # @return [String]
654
+ # @return [::String]
655
655
  # The kind of the entity.
656
656
  # A kind matching regex `__.*__` is reserved/read-only.
657
657
  # A kind must not contain more than 1500 bytes when UTF-8 encoded.
658
658
  # Cannot be `""`.
659
659
  # @!attribute [rw] id
660
- # @return [Integer]
660
+ # @return [::Integer]
661
661
  # The auto-allocated ID of the entity.
662
662
  # Never equal to zero. Values less than zero are discouraged and may not
663
663
  # be supported in the future.
664
664
  # @!attribute [rw] name
665
- # @return [String]
665
+ # @return [::String]
666
666
  # The name of the entity.
667
667
  # A name matching regex `__.*__` is reserved/read-only.
668
668
  # A name must not be more than 1500 bytes when UTF-8 encoded.
669
669
  # Cannot be `""`.
670
670
  class PathElement
671
- include Google::Protobuf::MessageExts
672
- extend Google::Protobuf::MessageExts::ClassMethods
671
+ include ::Google::Protobuf::MessageExts
672
+ extend ::Google::Protobuf::MessageExts::ClassMethods
673
673
  end
674
674
  end
675
675
 
676
676
  # Message for a unique key indicating a record that contains a finding.
677
677
  # @!attribute [rw] datastore_key
678
- # @return [Google::Cloud::Dlp::V2::DatastoreKey]
678
+ # @return [::Google::Cloud::Dlp::V2::DatastoreKey]
679
679
  # @!attribute [rw] big_query_key
680
- # @return [Google::Cloud::Dlp::V2::BigQueryKey]
680
+ # @return [::Google::Cloud::Dlp::V2::BigQueryKey]
681
681
  # @!attribute [rw] id_values
682
- # @return [Array<String>]
682
+ # @return [::Array<::String>]
683
683
  # Values of identifying columns in the given row. Order of values matches
684
684
  # the order of `identifying_fields` specified in the scanning request.
685
685
  class RecordKey
686
- include Google::Protobuf::MessageExts
687
- extend Google::Protobuf::MessageExts::ClassMethods
686
+ include ::Google::Protobuf::MessageExts
687
+ extend ::Google::Protobuf::MessageExts::ClassMethods
688
688
  end
689
689
 
690
690
  # Message defining the location of a BigQuery table. A table is uniquely
@@ -693,30 +693,30 @@ module Google
693
693
  # `<project_id>:<dataset_id>.<table_id>` or
694
694
  # `<project_id>.<dataset_id>.<table_id>`.
695
695
  # @!attribute [rw] project_id
696
- # @return [String]
696
+ # @return [::String]
697
697
  # The Google Cloud Platform project ID of the project containing the table.
698
698
  # If omitted, project ID is inferred from the API call.
699
699
  # @!attribute [rw] dataset_id
700
- # @return [String]
700
+ # @return [::String]
701
701
  # Dataset ID of the table.
702
702
  # @!attribute [rw] table_id
703
- # @return [String]
703
+ # @return [::String]
704
704
  # Name of the table.
705
705
  class BigQueryTable
706
- include Google::Protobuf::MessageExts
707
- extend Google::Protobuf::MessageExts::ClassMethods
706
+ include ::Google::Protobuf::MessageExts
707
+ extend ::Google::Protobuf::MessageExts::ClassMethods
708
708
  end
709
709
 
710
710
  # Message defining a field of a BigQuery table.
711
711
  # @!attribute [rw] table
712
- # @return [Google::Cloud::Dlp::V2::BigQueryTable]
712
+ # @return [::Google::Cloud::Dlp::V2::BigQueryTable]
713
713
  # Source table of the field.
714
714
  # @!attribute [rw] field
715
- # @return [Google::Cloud::Dlp::V2::FieldId]
715
+ # @return [::Google::Cloud::Dlp::V2::FieldId]
716
716
  # Designated field in the BigQuery table.
717
717
  class BigQueryField
718
- include Google::Protobuf::MessageExts
719
- extend Google::Protobuf::MessageExts::ClassMethods
718
+ include ::Google::Protobuf::MessageExts
719
+ extend ::Google::Protobuf::MessageExts::ClassMethods
720
720
  end
721
721
 
722
722
  # An entity in a dataset is a field or set of fields that correspond to a
@@ -725,23 +725,23 @@ module Google
725
725
  # identifier. This message is used when generalizations or analysis must take
726
726
  # into account that multiple rows correspond to the same entity.
727
727
  # @!attribute [rw] field
728
- # @return [Google::Cloud::Dlp::V2::FieldId]
728
+ # @return [::Google::Cloud::Dlp::V2::FieldId]
729
729
  # Composite key indicating which field contains the entity identifier.
730
730
  class EntityId
731
- include Google::Protobuf::MessageExts
732
- extend Google::Protobuf::MessageExts::ClassMethods
731
+ include ::Google::Protobuf::MessageExts
732
+ extend ::Google::Protobuf::MessageExts::ClassMethods
733
733
  end
734
734
 
735
735
  # Instructions regarding the table content being inspected.
736
736
  # @!attribute [rw] identifying_fields
737
- # @return [Array<Google::Cloud::Dlp::V2::FieldId>]
737
+ # @return [::Array<::Google::Cloud::Dlp::V2::FieldId>]
738
738
  # The columns that are the primary keys for table objects included in
739
739
  # ContentItem. A copy of this cell's value will stored alongside alongside
740
740
  # each finding so that the finding can be traced to the specific row it came
741
741
  # from. No more than 3 may be provided.
742
742
  class TableOptions
743
- include Google::Protobuf::MessageExts
744
- extend Google::Protobuf::MessageExts::ClassMethods
743
+ include ::Google::Protobuf::MessageExts
744
+ extend ::Google::Protobuf::MessageExts::ClassMethods
745
745
  end
746
746
 
747
747
  # Categorization of results based on how likely they are to represent a match,