google-cloud-dlp-v2 0.7.1 → 0.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +8 -8
- data/README.md +1 -1
- data/lib/google/cloud/dlp/v2/dlp_service/client.rb +21 -81
- data/lib/google/cloud/dlp/v2/version.rb +1 -1
- data/lib/google/privacy/dlp/v2/dlp_services_pb.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +7 -1
- data/proto_docs/google/type/date.rb +14 -11
- data/proto_docs/google/type/dayofweek.rb +9 -9
- data/proto_docs/google/type/timeofday.rb +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e1bc6462da8a7ba3334516d6eaa8467c37d63f09371272c54890786d772f2e58
|
4
|
+
data.tar.gz: 16982aaf8ae9c899d74e65a4de7f6919c1cc4a17d7fefb6e152551c2c234d33b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fbff389d047cc85516eb413a71fd843e38db86891e5420e3933b60b3e9f80c1f5736e77bd877774f2361cd3a2b2f6098d71d901b41eb85e507ca5d63d9d00a30
|
7
|
+
data.tar.gz: 8ad2e0b08ec79d4e864e321cf5909c20a76bef22a747bd51d2950181150a0a7a20ab94a914cd89b60b1ba18948775b8156dc215710dfd7f8de8b3bf9d6086cb9
|
data/AUTHENTICATION.md
CHANGED
@@ -66,11 +66,11 @@ The environment variables that google-cloud-dlp-v2
|
|
66
66
|
checks for credentials are configured on the service Credentials class (such as
|
67
67
|
{::Google::Cloud::Dlp::V2::DlpService::Credentials}):
|
68
68
|
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
69
|
+
* `DLP_CREDENTIALS` - Path to JSON file, or JSON contents
|
70
|
+
* `DLP_KEYFILE` - Path to JSON file, or JSON contents
|
71
|
+
* `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
|
72
|
+
* `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
|
73
|
+
* `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
|
74
74
|
|
75
75
|
```ruby
|
76
76
|
require "google/cloud/dlp/v2"
|
@@ -82,8 +82,8 @@ client = ::Google::Cloud::Dlp::V2::DlpService::Client.new
|
|
82
82
|
|
83
83
|
### Configuration
|
84
84
|
|
85
|
-
The **Credentials JSON** can be configured instead of
|
86
|
-
environment
|
85
|
+
The path to the **Credentials JSON** file can be configured instead of storing
|
86
|
+
it in an environment variable. Either on an individual client initialization:
|
87
87
|
|
88
88
|
```ruby
|
89
89
|
require "google/cloud/dlp/v2"
|
@@ -93,7 +93,7 @@ client = ::Google::Cloud::Dlp::V2::DlpService::Client.new do |config|
|
|
93
93
|
end
|
94
94
|
```
|
95
95
|
|
96
|
-
Or
|
96
|
+
Or globally for all clients:
|
97
97
|
|
98
98
|
```ruby
|
99
99
|
require "google/cloud/dlp/v2"
|
data/README.md
CHANGED
@@ -33,7 +33,7 @@ In order to use this library, you first need to go through the following steps:
|
|
33
33
|
require "google/cloud/dlp/v2"
|
34
34
|
|
35
35
|
client = ::Google::Cloud::Dlp::V2::DlpService::Client.new
|
36
|
-
request =
|
36
|
+
request = ::Google::Cloud::Dlp::V2::InspectContentRequest.new # (request fields as keyword arguments...)
|
37
37
|
response = client.inspect_content request
|
38
38
|
```
|
39
39
|
|
@@ -75,42 +75,27 @@ module Google
|
|
75
75
|
|
76
76
|
default_config.rpcs.inspect_content.timeout = 300.0
|
77
77
|
default_config.rpcs.inspect_content.retry_policy = {
|
78
|
-
initial_delay: 0.1,
|
79
|
-
max_delay: 60.0,
|
80
|
-
multiplier: 1.3,
|
81
|
-
retry_codes: [14, 4]
|
78
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
82
79
|
}
|
83
80
|
|
84
81
|
default_config.rpcs.redact_image.timeout = 300.0
|
85
82
|
default_config.rpcs.redact_image.retry_policy = {
|
86
|
-
initial_delay: 0.1,
|
87
|
-
max_delay: 60.0,
|
88
|
-
multiplier: 1.3,
|
89
|
-
retry_codes: [14, 4]
|
83
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
90
84
|
}
|
91
85
|
|
92
86
|
default_config.rpcs.deidentify_content.timeout = 300.0
|
93
87
|
default_config.rpcs.deidentify_content.retry_policy = {
|
94
|
-
initial_delay: 0.1,
|
95
|
-
max_delay: 60.0,
|
96
|
-
multiplier: 1.3,
|
97
|
-
retry_codes: [14, 4]
|
88
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
98
89
|
}
|
99
90
|
|
100
91
|
default_config.rpcs.reidentify_content.timeout = 300.0
|
101
92
|
default_config.rpcs.reidentify_content.retry_policy = {
|
102
|
-
initial_delay: 0.1,
|
103
|
-
max_delay: 60.0,
|
104
|
-
multiplier: 1.3,
|
105
|
-
retry_codes: [14, 4]
|
93
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
106
94
|
}
|
107
95
|
|
108
96
|
default_config.rpcs.list_info_types.timeout = 300.0
|
109
97
|
default_config.rpcs.list_info_types.retry_policy = {
|
110
|
-
initial_delay: 0.1,
|
111
|
-
max_delay: 60.0,
|
112
|
-
multiplier: 1.3,
|
113
|
-
retry_codes: [14, 4]
|
98
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
114
99
|
}
|
115
100
|
|
116
101
|
default_config.rpcs.create_inspect_template.timeout = 300.0
|
@@ -119,26 +104,17 @@ module Google
|
|
119
104
|
|
120
105
|
default_config.rpcs.get_inspect_template.timeout = 300.0
|
121
106
|
default_config.rpcs.get_inspect_template.retry_policy = {
|
122
|
-
initial_delay: 0.1,
|
123
|
-
max_delay: 60.0,
|
124
|
-
multiplier: 1.3,
|
125
|
-
retry_codes: [14, 4]
|
107
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
126
108
|
}
|
127
109
|
|
128
110
|
default_config.rpcs.list_inspect_templates.timeout = 300.0
|
129
111
|
default_config.rpcs.list_inspect_templates.retry_policy = {
|
130
|
-
initial_delay: 0.1,
|
131
|
-
max_delay: 60.0,
|
132
|
-
multiplier: 1.3,
|
133
|
-
retry_codes: [14, 4]
|
112
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
134
113
|
}
|
135
114
|
|
136
115
|
default_config.rpcs.delete_inspect_template.timeout = 300.0
|
137
116
|
default_config.rpcs.delete_inspect_template.retry_policy = {
|
138
|
-
initial_delay: 0.1,
|
139
|
-
max_delay: 60.0,
|
140
|
-
multiplier: 1.3,
|
141
|
-
retry_codes: [14, 4]
|
117
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
142
118
|
}
|
143
119
|
|
144
120
|
default_config.rpcs.create_deidentify_template.timeout = 300.0
|
@@ -147,26 +123,17 @@ module Google
|
|
147
123
|
|
148
124
|
default_config.rpcs.get_deidentify_template.timeout = 300.0
|
149
125
|
default_config.rpcs.get_deidentify_template.retry_policy = {
|
150
|
-
initial_delay: 0.1,
|
151
|
-
max_delay: 60.0,
|
152
|
-
multiplier: 1.3,
|
153
|
-
retry_codes: [14, 4]
|
126
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
154
127
|
}
|
155
128
|
|
156
129
|
default_config.rpcs.list_deidentify_templates.timeout = 300.0
|
157
130
|
default_config.rpcs.list_deidentify_templates.retry_policy = {
|
158
|
-
initial_delay: 0.1,
|
159
|
-
max_delay: 60.0,
|
160
|
-
multiplier: 1.3,
|
161
|
-
retry_codes: [14, 4]
|
131
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
162
132
|
}
|
163
133
|
|
164
134
|
default_config.rpcs.delete_deidentify_template.timeout = 300.0
|
165
135
|
default_config.rpcs.delete_deidentify_template.retry_policy = {
|
166
|
-
initial_delay: 0.1,
|
167
|
-
max_delay: 60.0,
|
168
|
-
multiplier: 1.3,
|
169
|
-
retry_codes: [14, 4]
|
136
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
170
137
|
}
|
171
138
|
|
172
139
|
default_config.rpcs.create_job_trigger.timeout = 300.0
|
@@ -177,26 +144,17 @@ module Google
|
|
177
144
|
|
178
145
|
default_config.rpcs.get_job_trigger.timeout = 300.0
|
179
146
|
default_config.rpcs.get_job_trigger.retry_policy = {
|
180
|
-
initial_delay: 0.1,
|
181
|
-
max_delay: 60.0,
|
182
|
-
multiplier: 1.3,
|
183
|
-
retry_codes: [14, 4]
|
147
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
184
148
|
}
|
185
149
|
|
186
150
|
default_config.rpcs.list_job_triggers.timeout = 300.0
|
187
151
|
default_config.rpcs.list_job_triggers.retry_policy = {
|
188
|
-
initial_delay: 0.1,
|
189
|
-
max_delay: 60.0,
|
190
|
-
multiplier: 1.3,
|
191
|
-
retry_codes: [14, 4]
|
152
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
192
153
|
}
|
193
154
|
|
194
155
|
default_config.rpcs.delete_job_trigger.timeout = 300.0
|
195
156
|
default_config.rpcs.delete_job_trigger.retry_policy = {
|
196
|
-
initial_delay: 0.1,
|
197
|
-
max_delay: 60.0,
|
198
|
-
multiplier: 1.3,
|
199
|
-
retry_codes: [14, 4]
|
157
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
200
158
|
}
|
201
159
|
|
202
160
|
default_config.rpcs.activate_job_trigger.timeout = 300.0
|
@@ -205,26 +163,17 @@ module Google
|
|
205
163
|
|
206
164
|
default_config.rpcs.list_dlp_jobs.timeout = 300.0
|
207
165
|
default_config.rpcs.list_dlp_jobs.retry_policy = {
|
208
|
-
initial_delay: 0.1,
|
209
|
-
max_delay: 60.0,
|
210
|
-
multiplier: 1.3,
|
211
|
-
retry_codes: [14, 4]
|
166
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
212
167
|
}
|
213
168
|
|
214
169
|
default_config.rpcs.get_dlp_job.timeout = 300.0
|
215
170
|
default_config.rpcs.get_dlp_job.retry_policy = {
|
216
|
-
initial_delay: 0.1,
|
217
|
-
max_delay: 60.0,
|
218
|
-
multiplier: 1.3,
|
219
|
-
retry_codes: [14, 4]
|
171
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
220
172
|
}
|
221
173
|
|
222
174
|
default_config.rpcs.delete_dlp_job.timeout = 300.0
|
223
175
|
default_config.rpcs.delete_dlp_job.retry_policy = {
|
224
|
-
initial_delay: 0.1,
|
225
|
-
max_delay: 60.0,
|
226
|
-
multiplier: 1.3,
|
227
|
-
retry_codes: [14, 4]
|
176
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
228
177
|
}
|
229
178
|
|
230
179
|
default_config.rpcs.cancel_dlp_job.timeout = 300.0
|
@@ -235,26 +184,17 @@ module Google
|
|
235
184
|
|
236
185
|
default_config.rpcs.get_stored_info_type.timeout = 300.0
|
237
186
|
default_config.rpcs.get_stored_info_type.retry_policy = {
|
238
|
-
initial_delay: 0.1,
|
239
|
-
max_delay: 60.0,
|
240
|
-
multiplier: 1.3,
|
241
|
-
retry_codes: [14, 4]
|
187
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
242
188
|
}
|
243
189
|
|
244
190
|
default_config.rpcs.list_stored_info_types.timeout = 300.0
|
245
191
|
default_config.rpcs.list_stored_info_types.retry_policy = {
|
246
|
-
initial_delay: 0.1,
|
247
|
-
max_delay: 60.0,
|
248
|
-
multiplier: 1.3,
|
249
|
-
retry_codes: [14, 4]
|
192
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
250
193
|
}
|
251
194
|
|
252
195
|
default_config.rpcs.delete_stored_info_type.timeout = 300.0
|
253
196
|
default_config.rpcs.delete_stored_info_type.retry_policy = {
|
254
|
-
initial_delay: 0.1,
|
255
|
-
max_delay: 60.0,
|
256
|
-
multiplier: 1.3,
|
257
|
-
retry_codes: [14, 4]
|
197
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
258
198
|
}
|
259
199
|
|
260
200
|
default_config.rpcs.hybrid_inspect_dlp_job.timeout = 300.0
|
@@ -329,7 +269,7 @@ module Google
|
|
329
269
|
!@config.endpoint.split(".").first.include?("-")
|
330
270
|
credentials ||= Credentials.default scope: @config.scope,
|
331
271
|
enable_self_signed_jwt: enable_self_signed_jwt
|
332
|
-
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
272
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
333
273
|
credentials = Credentials.new credentials, scope: @config.scope
|
334
274
|
end
|
335
275
|
@quota_project_id = @config.quota_project
|
@@ -57,9 +57,15 @@ module Google
|
|
57
57
|
|
58
58
|
# Denotes that a (repeated) field is an unordered list.
|
59
59
|
# This indicates that the service may provide the elements of the list
|
60
|
-
# in any arbitrary
|
60
|
+
# in any arbitrary order, rather than the order the user originally
|
61
61
|
# provided. Additionally, the list's order may or may not be stable.
|
62
62
|
UNORDERED_LIST = 6
|
63
|
+
|
64
|
+
# Denotes that this field returns a non-empty default value if not set.
|
65
|
+
# This indicates that if the user provides the empty value in a request,
|
66
|
+
# a non-empty value will be returned. The user will not be aware of what
|
67
|
+
# non-empty value to expect.
|
68
|
+
NON_EMPTY_DEFAULT = 7
|
63
69
|
end
|
64
70
|
end
|
65
71
|
end
|
@@ -19,28 +19,31 @@
|
|
19
19
|
|
20
20
|
module Google
|
21
21
|
module Type
|
22
|
-
# Represents a whole or partial calendar date,
|
23
|
-
# and time zone are either specified elsewhere or are
|
24
|
-
# is relative to the
|
22
|
+
# Represents a whole or partial calendar date, such as a birthday. The time of
|
23
|
+
# day and time zone are either specified elsewhere or are insignificant. The
|
24
|
+
# date is relative to the Gregorian Calendar. This can represent one of the
|
25
|
+
# following:
|
25
26
|
#
|
26
|
-
# * A full date, with non-zero year, month and day values
|
27
|
-
# * A month and day value, with a zero year,
|
27
|
+
# * A full date, with non-zero year, month, and day values
|
28
|
+
# * A month and day value, with a zero year, such as an anniversary
|
28
29
|
# * A year on its own, with zero month and day values
|
29
|
-
# * A year and month value, with a zero day,
|
30
|
+
# * A year and month value, with a zero day, such as a credit card expiration
|
31
|
+
# date
|
30
32
|
#
|
31
|
-
# Related types are {::Google::Type::TimeOfDay google.type.TimeOfDay} and
|
33
|
+
# Related types are {::Google::Type::TimeOfDay google.type.TimeOfDay} and
|
34
|
+
# `google.protobuf.Timestamp`.
|
32
35
|
# @!attribute [rw] year
|
33
36
|
# @return [::Integer]
|
34
|
-
# Year of date. Must be from 1 to 9999, or 0
|
37
|
+
# Year of the date. Must be from 1 to 9999, or 0 to specify a date without
|
35
38
|
# a year.
|
36
39
|
# @!attribute [rw] month
|
37
40
|
# @return [::Integer]
|
38
|
-
# Month of year. Must be from 1 to 12, or 0
|
41
|
+
# Month of a year. Must be from 1 to 12, or 0 to specify a year without a
|
39
42
|
# month and day.
|
40
43
|
# @!attribute [rw] day
|
41
44
|
# @return [::Integer]
|
42
|
-
# Day of month. Must be from 1 to 31 and valid for the year and month, or 0
|
43
|
-
#
|
45
|
+
# Day of a month. Must be from 1 to 31 and valid for the year and month, or 0
|
46
|
+
# to specify a year by itself or a year and month where the day isn't
|
44
47
|
# significant.
|
45
48
|
class Date
|
46
49
|
include ::Google::Protobuf::MessageExts
|
@@ -19,30 +19,30 @@
|
|
19
19
|
|
20
20
|
module Google
|
21
21
|
module Type
|
22
|
-
# Represents a day of week.
|
22
|
+
# Represents a day of the week.
|
23
23
|
module DayOfWeek
|
24
|
-
# The
|
24
|
+
# The day of the week is unspecified.
|
25
25
|
DAY_OF_WEEK_UNSPECIFIED = 0
|
26
26
|
|
27
|
-
#
|
27
|
+
# Monday
|
28
28
|
MONDAY = 1
|
29
29
|
|
30
|
-
#
|
30
|
+
# Tuesday
|
31
31
|
TUESDAY = 2
|
32
32
|
|
33
|
-
#
|
33
|
+
# Wednesday
|
34
34
|
WEDNESDAY = 3
|
35
35
|
|
36
|
-
#
|
36
|
+
# Thursday
|
37
37
|
THURSDAY = 4
|
38
38
|
|
39
|
-
#
|
39
|
+
# Friday
|
40
40
|
FRIDAY = 5
|
41
41
|
|
42
|
-
#
|
42
|
+
# Saturday
|
43
43
|
SATURDAY = 6
|
44
44
|
|
45
|
-
#
|
45
|
+
# Sunday
|
46
46
|
SUNDAY = 7
|
47
47
|
end
|
48
48
|
end
|
@@ -21,7 +21,8 @@ module Google
|
|
21
21
|
module Type
|
22
22
|
# Represents a time of day. The date and time zone are either not significant
|
23
23
|
# or are specified elsewhere. An API may choose to allow leap seconds. Related
|
24
|
-
# types are {::Google::Type::Date google.type.Date} and
|
24
|
+
# types are {::Google::Type::Date google.type.Date} and
|
25
|
+
# `google.protobuf.Timestamp`.
|
25
26
|
# @!attribute [rw] hours
|
26
27
|
# @return [::Integer]
|
27
28
|
# Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
|
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.7.
|
4
|
+
version: 0.7.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-07-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|