google-cloud-dlp-v2 0.10.0 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +1 -1
- data/README.md +10 -5
- data/lib/google/cloud/dlp/v2/dlp_service/client.rb +28 -32
- data/lib/google/cloud/dlp/v2/version.rb +1 -1
- data/lib/google/privacy/dlp/v2/dlp_pb.rb +195 -12
- data/lib/google/privacy/dlp/v2/dlp_services_pb.rb +4 -4
- data/lib/google/privacy/dlp/v2/storage_pb.rb +13 -1
- data/proto_docs/google/privacy/dlp/v2/dlp.rb +692 -119
- data/proto_docs/google/privacy/dlp/v2/storage.rb +71 -15
- data/proto_docs/google/protobuf/any.rb +3 -3
- data/proto_docs/google/protobuf/empty.rb +0 -2
- metadata +12 -12
@@ -37,6 +37,35 @@ module Google
|
|
37
37
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
38
38
|
end
|
39
39
|
|
40
|
+
# Score is a summary of all elements in the data profile.
|
41
|
+
# A higher number means more sensitive.
|
42
|
+
# @!attribute [rw] score
|
43
|
+
# @return [::Google::Cloud::Dlp::V2::SensitivityScore::SensitivityScoreLevel]
|
44
|
+
# The score applied to the resource.
|
45
|
+
class SensitivityScore
|
46
|
+
include ::Google::Protobuf::MessageExts
|
47
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
48
|
+
|
49
|
+
# Various score levels for resources.
|
50
|
+
module SensitivityScoreLevel
|
51
|
+
# Unused.
|
52
|
+
SENSITIVITY_SCORE_UNSPECIFIED = 0
|
53
|
+
|
54
|
+
# No sensitive information detected. Limited access.
|
55
|
+
SENSITIVITY_LOW = 10
|
56
|
+
|
57
|
+
# Medium risk - PII, potentially sensitive data, or fields with free-text
|
58
|
+
# data that are at higher risk of having intermittent sensitive data.
|
59
|
+
# Consider limiting access.
|
60
|
+
SENSITIVITY_MODERATE = 20
|
61
|
+
|
62
|
+
# High risk – SPII may be present. Exfiltration of data may lead to user
|
63
|
+
# data loss. Re-identification of users may be possible. Consider limiting
|
64
|
+
# usage and or removing SPII.
|
65
|
+
SENSITIVITY_HIGH = 30
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
40
69
|
# A reference to a StoredInfoType to use with scanning.
|
41
70
|
# @!attribute [rw] name
|
42
71
|
# @return [::String]
|
@@ -183,7 +212,11 @@ module Google
|
|
183
212
|
# rule.
|
184
213
|
# @!attribute [rw] window_before
|
185
214
|
# @return [::Integer]
|
186
|
-
# Number of characters before the finding to consider.
|
215
|
+
# Number of characters before the finding to consider. For tabular data,
|
216
|
+
# if you want to modify the likelihood of an entire column of findngs,
|
217
|
+
# set this to 1. For more information, see
|
218
|
+
# [Hotword example: Set the match likelihood of a table column]
|
219
|
+
# (https://cloud.google.com/dlp/docs/creating-custom-infotypes-likelihood#match-column-values).
|
187
220
|
# @!attribute [rw] window_after
|
188
221
|
# @return [::Integer]
|
189
222
|
# Number of characters after the finding to consider.
|
@@ -219,14 +252,19 @@ module Google
|
|
219
252
|
# Regular expression pattern defining what qualifies as a hotword.
|
220
253
|
# @!attribute [rw] proximity
|
221
254
|
# @return [::Google::Cloud::Dlp::V2::CustomInfoType::DetectionRule::Proximity]
|
222
|
-
#
|
223
|
-
# The total length of the window cannot exceed 1000 characters.
|
224
|
-
#
|
225
|
-
# be used to match substrings of the finding itself.
|
226
|
-
#
|
227
|
-
#
|
228
|
-
# a company office
|
229
|
-
# is the area code in question.
|
255
|
+
# Range of characters within which the entire hotword must reside.
|
256
|
+
# The total length of the window cannot exceed 1000 characters.
|
257
|
+
# The finding itself will be included in the window, so that hotwords can
|
258
|
+
# be used to match substrings of the finding itself. Suppose you
|
259
|
+
# want Cloud DLP to promote the likelihood of the phone number
|
260
|
+
# regex "\(\d\\{3}\) \d\\{3}-\d\\{4}" if the area code is known to be the
|
261
|
+
# area code of a company's office. In this case, use the hotword regex
|
262
|
+
# "\(xxx\)", where "xxx" is the area code in question.
|
263
|
+
#
|
264
|
+
# For tabular data, if you want to modify the likelihood of an entire
|
265
|
+
# column of findngs, see
|
266
|
+
# [Hotword example: Set the match likelihood of a table column]
|
267
|
+
# (https://cloud.google.com/dlp/docs/creating-custom-infotypes-likelihood#match-column-values).
|
230
268
|
# @!attribute [rw] likelihood_adjustment
|
231
269
|
# @return [::Google::Cloud::Dlp::V2::CustomInfoType::DetectionRule::LikelihoodAdjustment]
|
232
270
|
# Likelihood adjustment to apply to all matching findings.
|
@@ -354,7 +392,7 @@ module Google
|
|
354
392
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
355
393
|
end
|
356
394
|
|
357
|
-
# Options defining a file or a set of files within a
|
395
|
+
# Options defining a file or a set of files within a Cloud Storage
|
358
396
|
# bucket.
|
359
397
|
# @!attribute [rw] file_set
|
360
398
|
# @return [::Google::Cloud::Dlp::V2::CloudStorageOptions::FileSet]
|
@@ -508,7 +546,7 @@ module Google
|
|
508
546
|
# Google Cloud Datastore options.
|
509
547
|
# @!attribute [rw] cloud_storage_options
|
510
548
|
# @return [::Google::Cloud::Dlp::V2::CloudStorageOptions]
|
511
|
-
#
|
549
|
+
# Cloud Storage options.
|
512
550
|
# @!attribute [rw] big_query_options
|
513
551
|
# @return [::Google::Cloud::Dlp::V2::BigQueryOptions]
|
514
552
|
# BigQuery options.
|
@@ -522,7 +560,7 @@ module Google
|
|
522
560
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
523
561
|
|
524
562
|
# Configuration of the timespan of the items to include in scanning.
|
525
|
-
# Currently only supported when inspecting
|
563
|
+
# Currently only supported when inspecting Cloud Storage and BigQuery.
|
526
564
|
# @!attribute [rw] start_time
|
527
565
|
# @return [::Google::Protobuf::Timestamp]
|
528
566
|
# Exclude files, tables, or rows older than this value.
|
@@ -536,7 +574,8 @@ module Google
|
|
536
574
|
# Specification of the field containing the timestamp of scanned items.
|
537
575
|
# Used for data sources like Datastore and BigQuery.
|
538
576
|
#
|
539
|
-
# For BigQuery
|
577
|
+
# <b>For BigQuery</b>
|
578
|
+
#
|
540
579
|
# If this value is not specified and the table was modified between the
|
541
580
|
# given start and end times, the entire table will be scanned. If this
|
542
581
|
# value is specified, then rows are filtered based on the given start and
|
@@ -545,17 +584,34 @@ module Google
|
|
545
584
|
# Valid data types of the provided BigQuery column are: `INTEGER`, `DATE`,
|
546
585
|
# `TIMESTAMP`, and `DATETIME`.
|
547
586
|
#
|
548
|
-
#
|
587
|
+
# If your BigQuery table is [partitioned at ingestion
|
588
|
+
# time](https://cloud.google.com/bigquery/docs/partitioned-tables#ingestion_time),
|
589
|
+
# you can use any of the following pseudo-columns as your timestamp field.
|
590
|
+
# When used with Cloud DLP, these pseudo-column names are case sensitive.
|
591
|
+
#
|
592
|
+
# <ul>
|
593
|
+
# <li><code>_PARTITIONTIME</code></li>
|
594
|
+
# <li><code>_PARTITIONDATE</code></li>
|
595
|
+
# <li><code>_PARTITION_LOAD_TIME</code></li>
|
596
|
+
# </ul>
|
597
|
+
#
|
598
|
+
# <b>For Datastore</b>
|
599
|
+
#
|
549
600
|
# If this value is specified, then entities are filtered based on the given
|
550
601
|
# start and end times. If an entity does not contain the provided timestamp
|
551
602
|
# property or contains empty or invalid values, then it is included.
|
552
603
|
# Valid data types of the provided timestamp property are: `TIMESTAMP`.
|
604
|
+
#
|
605
|
+
# See the
|
606
|
+
# [known issue](https://cloud.google.com/dlp/docs/known-issues#bq-timespan)
|
607
|
+
# related to this operation.
|
553
608
|
# @!attribute [rw] enable_auto_population_of_timespan_config
|
554
609
|
# @return [::Boolean]
|
555
610
|
# When the job is started by a JobTrigger we will automatically figure out
|
556
611
|
# a valid start_time to avoid scanning files that have not been modified
|
557
612
|
# since the last time the JobTrigger executed. This will be based on the
|
558
|
-
# time of the execution of the last run of the JobTrigger
|
613
|
+
# time of the execution of the last run of the JobTrigger or the timespan
|
614
|
+
# end_time used in the last run of the JobTrigger.
|
559
615
|
class TimespanConfig
|
560
616
|
include ::Google::Protobuf::MessageExts
|
561
617
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -44,7 +44,7 @@ module Google
|
|
44
44
|
# foo = any.unpack(Foo.class);
|
45
45
|
# }
|
46
46
|
#
|
47
|
-
#
|
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
|
-
#
|
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:
|
@@ -26,8 +26,6 @@ module Google
|
|
26
26
|
# service Foo {
|
27
27
|
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
28
28
|
# }
|
29
|
-
#
|
30
|
-
# The JSON representation for `Empty` is empty JSON object `{}`.
|
31
29
|
class Empty
|
32
30
|
include ::Google::Protobuf::MessageExts
|
33
31
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
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.
|
4
|
+
version: 0.13.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-
|
11
|
+
date: 2022-09-07 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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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: '
|
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: '
|
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.
|
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.
|
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
|