google-cloud-dlp-v2 0.3.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -0
- data/lib/google/cloud/dlp/v2/dlp_service/client.rb +99 -91
- data/lib/google/cloud/dlp/v2/version.rb +1 -1
- data/lib/google/privacy/dlp/v2/dlp_pb.rb +3 -1
- data/lib/google/privacy/dlp/v2/storage_pb.rb +3 -0
- data/proto_docs/google/privacy/dlp/v2/dlp.rb +114 -84
- data/proto_docs/google/privacy/dlp/v2/storage.rb +18 -3
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7253887dacebc8f2315ffbc3189e78b50a10f670737719ba390fba3a00c492d2
|
4
|
+
data.tar.gz: d1b989d31f3dad4314d380d0a878ef39e767c256742fb8a8aef12808d438d514
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 39890c398b458a6c3430ad538275cc7fd72cb43d30a526b5d2248f472d34a453b302b0396e58d4c8bcb8929ea4706608fd2216eb5137c949029078853072a936
|
7
|
+
data.tar.gz: 9697fa95e2b199eb464de747f5d9421b1f1e4dd375136eda6596490b8a5171f1b118e4a60736c2e235560c53e7c187b8a860ed798dc512b639376d23420b8b60
|
data/README.md
CHANGED
@@ -18,6 +18,7 @@ In order to use this library, you first need to go through the following steps:
|
|
18
18
|
|
19
19
|
1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
|
20
20
|
1. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
|
21
|
+
1. [Enable the API.](https://console.cloud.google.com/apis/library/dlp.googleapis.com)
|
21
22
|
1. {file:AUTHENTICATION.md Set up authentication.}
|
22
23
|
|
23
24
|
## Quick Start
|
@@ -33,6 +34,9 @@ response = client.inspect_content request
|
|
33
34
|
View the [Client Library Documentation](https://googleapis.dev/ruby/google-cloud-dlp-v2/latest)
|
34
35
|
for class and method documentation.
|
35
36
|
|
37
|
+
See also the [Product Documentation](https://cloud.google.com/dlp)
|
38
|
+
for general usage information.
|
39
|
+
|
36
40
|
## Enabling Logging
|
37
41
|
|
38
42
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
@@ -78,7 +78,7 @@ module Google
|
|
78
78
|
initial_delay: 0.1,
|
79
79
|
max_delay: 60.0,
|
80
80
|
multiplier: 1.3,
|
81
|
-
retry_codes: [
|
81
|
+
retry_codes: [14, 4]
|
82
82
|
}
|
83
83
|
|
84
84
|
default_config.rpcs.redact_image.timeout = 300.0
|
@@ -86,7 +86,7 @@ module Google
|
|
86
86
|
initial_delay: 0.1,
|
87
87
|
max_delay: 60.0,
|
88
88
|
multiplier: 1.3,
|
89
|
-
retry_codes: [
|
89
|
+
retry_codes: [14, 4]
|
90
90
|
}
|
91
91
|
|
92
92
|
default_config.rpcs.deidentify_content.timeout = 300.0
|
@@ -94,7 +94,7 @@ module Google
|
|
94
94
|
initial_delay: 0.1,
|
95
95
|
max_delay: 60.0,
|
96
96
|
multiplier: 1.3,
|
97
|
-
retry_codes: [
|
97
|
+
retry_codes: [14, 4]
|
98
98
|
}
|
99
99
|
|
100
100
|
default_config.rpcs.reidentify_content.timeout = 300.0
|
@@ -102,7 +102,7 @@ module Google
|
|
102
102
|
initial_delay: 0.1,
|
103
103
|
max_delay: 60.0,
|
104
104
|
multiplier: 1.3,
|
105
|
-
retry_codes: [
|
105
|
+
retry_codes: [14, 4]
|
106
106
|
}
|
107
107
|
|
108
108
|
default_config.rpcs.list_info_types.timeout = 300.0
|
@@ -110,7 +110,7 @@ module Google
|
|
110
110
|
initial_delay: 0.1,
|
111
111
|
max_delay: 60.0,
|
112
112
|
multiplier: 1.3,
|
113
|
-
retry_codes: [
|
113
|
+
retry_codes: [14, 4]
|
114
114
|
}
|
115
115
|
|
116
116
|
default_config.rpcs.create_inspect_template.timeout = 300.0
|
@@ -122,7 +122,7 @@ module Google
|
|
122
122
|
initial_delay: 0.1,
|
123
123
|
max_delay: 60.0,
|
124
124
|
multiplier: 1.3,
|
125
|
-
retry_codes: [
|
125
|
+
retry_codes: [14, 4]
|
126
126
|
}
|
127
127
|
|
128
128
|
default_config.rpcs.list_inspect_templates.timeout = 300.0
|
@@ -130,7 +130,7 @@ module Google
|
|
130
130
|
initial_delay: 0.1,
|
131
131
|
max_delay: 60.0,
|
132
132
|
multiplier: 1.3,
|
133
|
-
retry_codes: [
|
133
|
+
retry_codes: [14, 4]
|
134
134
|
}
|
135
135
|
|
136
136
|
default_config.rpcs.delete_inspect_template.timeout = 300.0
|
@@ -138,7 +138,7 @@ module Google
|
|
138
138
|
initial_delay: 0.1,
|
139
139
|
max_delay: 60.0,
|
140
140
|
multiplier: 1.3,
|
141
|
-
retry_codes: [
|
141
|
+
retry_codes: [14, 4]
|
142
142
|
}
|
143
143
|
|
144
144
|
default_config.rpcs.create_deidentify_template.timeout = 300.0
|
@@ -150,7 +150,7 @@ module Google
|
|
150
150
|
initial_delay: 0.1,
|
151
151
|
max_delay: 60.0,
|
152
152
|
multiplier: 1.3,
|
153
|
-
retry_codes: [
|
153
|
+
retry_codes: [14, 4]
|
154
154
|
}
|
155
155
|
|
156
156
|
default_config.rpcs.list_deidentify_templates.timeout = 300.0
|
@@ -158,7 +158,7 @@ module Google
|
|
158
158
|
initial_delay: 0.1,
|
159
159
|
max_delay: 60.0,
|
160
160
|
multiplier: 1.3,
|
161
|
-
retry_codes: [
|
161
|
+
retry_codes: [14, 4]
|
162
162
|
}
|
163
163
|
|
164
164
|
default_config.rpcs.delete_deidentify_template.timeout = 300.0
|
@@ -166,7 +166,7 @@ module Google
|
|
166
166
|
initial_delay: 0.1,
|
167
167
|
max_delay: 60.0,
|
168
168
|
multiplier: 1.3,
|
169
|
-
retry_codes: [
|
169
|
+
retry_codes: [14, 4]
|
170
170
|
}
|
171
171
|
|
172
172
|
default_config.rpcs.create_job_trigger.timeout = 300.0
|
@@ -174,19 +174,13 @@ module Google
|
|
174
174
|
default_config.rpcs.update_job_trigger.timeout = 300.0
|
175
175
|
|
176
176
|
default_config.rpcs.hybrid_inspect_job_trigger.timeout = 300.0
|
177
|
-
default_config.rpcs.hybrid_inspect_job_trigger.retry_policy = {
|
178
|
-
initial_delay: 0.1,
|
179
|
-
max_delay: 60.0,
|
180
|
-
multiplier: 1.3,
|
181
|
-
retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
|
182
|
-
}
|
183
177
|
|
184
178
|
default_config.rpcs.get_job_trigger.timeout = 300.0
|
185
179
|
default_config.rpcs.get_job_trigger.retry_policy = {
|
186
180
|
initial_delay: 0.1,
|
187
181
|
max_delay: 60.0,
|
188
182
|
multiplier: 1.3,
|
189
|
-
retry_codes: [
|
183
|
+
retry_codes: [14, 4]
|
190
184
|
}
|
191
185
|
|
192
186
|
default_config.rpcs.list_job_triggers.timeout = 300.0
|
@@ -194,7 +188,7 @@ module Google
|
|
194
188
|
initial_delay: 0.1,
|
195
189
|
max_delay: 60.0,
|
196
190
|
multiplier: 1.3,
|
197
|
-
retry_codes: [
|
191
|
+
retry_codes: [14, 4]
|
198
192
|
}
|
199
193
|
|
200
194
|
default_config.rpcs.delete_job_trigger.timeout = 300.0
|
@@ -202,7 +196,7 @@ module Google
|
|
202
196
|
initial_delay: 0.1,
|
203
197
|
max_delay: 60.0,
|
204
198
|
multiplier: 1.3,
|
205
|
-
retry_codes: [
|
199
|
+
retry_codes: [14, 4]
|
206
200
|
}
|
207
201
|
|
208
202
|
default_config.rpcs.activate_job_trigger.timeout = 300.0
|
@@ -214,7 +208,7 @@ module Google
|
|
214
208
|
initial_delay: 0.1,
|
215
209
|
max_delay: 60.0,
|
216
210
|
multiplier: 1.3,
|
217
|
-
retry_codes: [
|
211
|
+
retry_codes: [14, 4]
|
218
212
|
}
|
219
213
|
|
220
214
|
default_config.rpcs.get_dlp_job.timeout = 300.0
|
@@ -222,7 +216,7 @@ module Google
|
|
222
216
|
initial_delay: 0.1,
|
223
217
|
max_delay: 60.0,
|
224
218
|
multiplier: 1.3,
|
225
|
-
retry_codes: [
|
219
|
+
retry_codes: [14, 4]
|
226
220
|
}
|
227
221
|
|
228
222
|
default_config.rpcs.delete_dlp_job.timeout = 300.0
|
@@ -230,7 +224,7 @@ module Google
|
|
230
224
|
initial_delay: 0.1,
|
231
225
|
max_delay: 60.0,
|
232
226
|
multiplier: 1.3,
|
233
|
-
retry_codes: [
|
227
|
+
retry_codes: [14, 4]
|
234
228
|
}
|
235
229
|
|
236
230
|
default_config.rpcs.cancel_dlp_job.timeout = 300.0
|
@@ -244,7 +238,7 @@ module Google
|
|
244
238
|
initial_delay: 0.1,
|
245
239
|
max_delay: 60.0,
|
246
240
|
multiplier: 1.3,
|
247
|
-
retry_codes: [
|
241
|
+
retry_codes: [14, 4]
|
248
242
|
}
|
249
243
|
|
250
244
|
default_config.rpcs.list_stored_info_types.timeout = 300.0
|
@@ -252,7 +246,7 @@ module Google
|
|
252
246
|
initial_delay: 0.1,
|
253
247
|
max_delay: 60.0,
|
254
248
|
multiplier: 1.3,
|
255
|
-
retry_codes: [
|
249
|
+
retry_codes: [14, 4]
|
256
250
|
}
|
257
251
|
|
258
252
|
default_config.rpcs.delete_stored_info_type.timeout = 300.0
|
@@ -260,24 +254,12 @@ module Google
|
|
260
254
|
initial_delay: 0.1,
|
261
255
|
max_delay: 60.0,
|
262
256
|
multiplier: 1.3,
|
263
|
-
retry_codes: [
|
257
|
+
retry_codes: [14, 4]
|
264
258
|
}
|
265
259
|
|
266
260
|
default_config.rpcs.hybrid_inspect_dlp_job.timeout = 300.0
|
267
|
-
default_config.rpcs.hybrid_inspect_dlp_job.retry_policy = {
|
268
|
-
initial_delay: 0.1,
|
269
|
-
max_delay: 60.0,
|
270
|
-
multiplier: 1.3,
|
271
|
-
retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
|
272
|
-
}
|
273
261
|
|
274
262
|
default_config.rpcs.finish_dlp_job.timeout = 300.0
|
275
|
-
default_config.rpcs.finish_dlp_job.retry_policy = {
|
276
|
-
initial_delay: 0.1,
|
277
|
-
max_delay: 60.0,
|
278
|
-
multiplier: 1.3,
|
279
|
-
retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
|
280
|
-
}
|
281
263
|
|
282
264
|
default_config
|
283
265
|
end
|
@@ -385,8 +367,9 @@ module Google
|
|
385
367
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
386
368
|
#
|
387
369
|
# @param parent [::String]
|
388
|
-
#
|
389
|
-
#
|
370
|
+
# Parent resource name.
|
371
|
+
# - Format:projects/[PROJECT-ID]
|
372
|
+
# - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
|
390
373
|
# @param inspect_config [::Google::Cloud::Dlp::V2::InspectConfig, ::Hash]
|
391
374
|
# Configuration for the inspector. What specified here will override
|
392
375
|
# the template referenced by the inspect_template_name argument.
|
@@ -472,8 +455,9 @@ module Google
|
|
472
455
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
473
456
|
#
|
474
457
|
# @param parent [::String]
|
475
|
-
# The parent resource name
|
476
|
-
#
|
458
|
+
# The parent resource name.
|
459
|
+
# - Format:projects/[PROJECT-ID]
|
460
|
+
# - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
|
477
461
|
# @param location_id [::String]
|
478
462
|
# Deprecated. This field has no effect.
|
479
463
|
# @param inspect_config [::Google::Cloud::Dlp::V2::InspectConfig, ::Hash]
|
@@ -557,8 +541,9 @@ module Google
|
|
557
541
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
558
542
|
#
|
559
543
|
# @param parent [::String]
|
560
|
-
#
|
561
|
-
#
|
544
|
+
# Parent resource name.
|
545
|
+
# - Format:projects/[PROJECT-ID]
|
546
|
+
# - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
|
562
547
|
# @param deidentify_config [::Google::Cloud::Dlp::V2::DeidentifyConfig, ::Hash]
|
563
548
|
# Configuration for the de-identification of the content item.
|
564
549
|
# Items specified here will override the template referenced by the
|
@@ -652,6 +637,8 @@ module Google
|
|
652
637
|
#
|
653
638
|
# @param parent [::String]
|
654
639
|
# Required. The parent resource name.
|
640
|
+
# - Format:projects/[PROJECT-ID]
|
641
|
+
# - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
|
655
642
|
# @param reidentify_config [::Google::Cloud::Dlp::V2::DeidentifyConfig, ::Hash]
|
656
643
|
# Configuration for the re-identification of the content item.
|
657
644
|
# This field shares the same proto message type that is used for
|
@@ -749,7 +736,8 @@ module Google
|
|
749
736
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
750
737
|
#
|
751
738
|
# @param parent [::String]
|
752
|
-
# The parent resource name
|
739
|
+
# The parent resource name.
|
740
|
+
# - Format:locations/[LOCATION-ID]
|
753
741
|
# @param language_code [::String]
|
754
742
|
# BCP-47 language code for localized infoType friendly
|
755
743
|
# names. If omitted, or if localized strings are not available,
|
@@ -820,8 +808,11 @@ module Google
|
|
820
808
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
821
809
|
#
|
822
810
|
# @param parent [::String]
|
823
|
-
# Required.
|
824
|
-
#
|
811
|
+
# Required. Parent resource name.
|
812
|
+
# - Format:projects/[PROJECT-ID]
|
813
|
+
# - Format:organizations/[ORGANIZATION-ID]
|
814
|
+
# - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
|
815
|
+
# - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID]
|
825
816
|
# @param inspect_template [::Google::Cloud::Dlp::V2::InspectTemplate, ::Hash]
|
826
817
|
# Required. The InspectTemplate to create.
|
827
818
|
# @param template_id [::String]
|
@@ -897,8 +888,8 @@ module Google
|
|
897
888
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
898
889
|
#
|
899
890
|
# @param name [::String]
|
900
|
-
# Required. Resource name of organization and inspectTemplate to be updated,
|
901
|
-
#
|
891
|
+
# Required. Resource name of organization and inspectTemplate to be updated, for
|
892
|
+
# example `organizations/433245324/inspectTemplates/432452342` or
|
902
893
|
# projects/project-id/inspectTemplates/432452342.
|
903
894
|
# @param inspect_template [::Google::Cloud::Dlp::V2::InspectTemplate, ::Hash]
|
904
895
|
# New InspectTemplate value.
|
@@ -970,8 +961,8 @@ module Google
|
|
970
961
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
971
962
|
#
|
972
963
|
# @param name [::String]
|
973
|
-
# Required. Resource name of the organization and inspectTemplate to be read,
|
974
|
-
#
|
964
|
+
# Required. Resource name of the organization and inspectTemplate to be read, for
|
965
|
+
# example `organizations/433245324/inspectTemplates/432452342` or
|
975
966
|
# projects/project-id/inspectTemplates/432452342.
|
976
967
|
#
|
977
968
|
# @yield [response, operation] Access the result along with the RPC operation
|
@@ -1039,8 +1030,11 @@ module Google
|
|
1039
1030
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1040
1031
|
#
|
1041
1032
|
# @param parent [::String]
|
1042
|
-
# Required.
|
1043
|
-
#
|
1033
|
+
# Required. Parent resource name.
|
1034
|
+
# - Format:projects/[PROJECT-ID]
|
1035
|
+
# - Format:organizations/[ORGANIZATION-ID]
|
1036
|
+
# - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
|
1037
|
+
# - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID]
|
1044
1038
|
# @param page_token [::String]
|
1045
1039
|
# Page token to continue retrieval. Comes from previous call
|
1046
1040
|
# to `ListInspectTemplates`.
|
@@ -1130,9 +1124,9 @@ module Google
|
|
1130
1124
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1131
1125
|
#
|
1132
1126
|
# @param name [::String]
|
1133
|
-
# Required. Resource name of the organization and inspectTemplate to be
|
1134
|
-
#
|
1135
|
-
#
|
1127
|
+
# Required. Resource name of the organization and inspectTemplate to be deleted, for
|
1128
|
+
# example `organizations/433245324/inspectTemplates/432452342` or
|
1129
|
+
# projects/project-id/inspectTemplates/432452342.
|
1136
1130
|
#
|
1137
1131
|
# @yield [response, operation] Access the result along with the RPC operation
|
1138
1132
|
# @yieldparam response [::Google::Protobuf::Empty]
|
@@ -1201,8 +1195,11 @@ module Google
|
|
1201
1195
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1202
1196
|
#
|
1203
1197
|
# @param parent [::String]
|
1204
|
-
# Required.
|
1205
|
-
#
|
1198
|
+
# Required. Parent resource name.
|
1199
|
+
# - Format:projects/[PROJECT-ID]
|
1200
|
+
# - Format:organizations/[ORGANIZATION-ID]
|
1201
|
+
# - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
|
1202
|
+
# - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID]
|
1206
1203
|
# @param deidentify_template [::Google::Cloud::Dlp::V2::DeidentifyTemplate, ::Hash]
|
1207
1204
|
# Required. The DeidentifyTemplate to create.
|
1208
1205
|
# @param template_id [::String]
|
@@ -1279,9 +1276,8 @@ module Google
|
|
1279
1276
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1280
1277
|
#
|
1281
1278
|
# @param name [::String]
|
1282
|
-
# Required. Resource name of organization and deidentify template to be
|
1283
|
-
#
|
1284
|
-
# `organizations/433245324/deidentifyTemplates/432452342` or
|
1279
|
+
# Required. Resource name of organization and deidentify template to be updated, for
|
1280
|
+
# example `organizations/433245324/deidentifyTemplates/432452342` or
|
1285
1281
|
# projects/project-id/deidentifyTemplates/432452342.
|
1286
1282
|
# @param deidentify_template [::Google::Cloud::Dlp::V2::DeidentifyTemplate, ::Hash]
|
1287
1283
|
# New DeidentifyTemplate value.
|
@@ -1354,9 +1350,9 @@ module Google
|
|
1354
1350
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1355
1351
|
#
|
1356
1352
|
# @param name [::String]
|
1357
|
-
# Required. Resource name of the organization and deidentify template to be
|
1358
|
-
#
|
1359
|
-
#
|
1353
|
+
# Required. Resource name of the organization and deidentify template to be read, for
|
1354
|
+
# example `organizations/433245324/deidentifyTemplates/432452342` or
|
1355
|
+
# projects/project-id/deidentifyTemplates/432452342.
|
1360
1356
|
#
|
1361
1357
|
# @yield [response, operation] Access the result along with the RPC operation
|
1362
1358
|
# @yieldparam response [::Google::Cloud::Dlp::V2::DeidentifyTemplate]
|
@@ -1424,8 +1420,11 @@ module Google
|
|
1424
1420
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1425
1421
|
#
|
1426
1422
|
# @param parent [::String]
|
1427
|
-
# Required.
|
1428
|
-
#
|
1423
|
+
# Required. Parent resource name.
|
1424
|
+
# - Format:projects/[PROJECT-ID]
|
1425
|
+
# - Format:organizations/[ORGANIZATION-ID]
|
1426
|
+
# - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
|
1427
|
+
# - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID]
|
1429
1428
|
# @param page_token [::String]
|
1430
1429
|
# Page token to continue retrieval. Comes from previous call
|
1431
1430
|
# to `ListDeidentifyTemplates`.
|
@@ -1516,9 +1515,8 @@ module Google
|
|
1516
1515
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1517
1516
|
#
|
1518
1517
|
# @param name [::String]
|
1519
|
-
# Required. Resource name of the organization and deidentify template to be
|
1520
|
-
#
|
1521
|
-
# `organizations/433245324/deidentifyTemplates/432452342` or
|
1518
|
+
# Required. Resource name of the organization and deidentify template to be deleted,
|
1519
|
+
# for example `organizations/433245324/deidentifyTemplates/432452342` or
|
1522
1520
|
# projects/project-id/deidentifyTemplates/432452342.
|
1523
1521
|
#
|
1524
1522
|
# @yield [response, operation] Access the result along with the RPC operation
|
@@ -1587,8 +1585,9 @@ module Google
|
|
1587
1585
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1588
1586
|
#
|
1589
1587
|
# @param parent [::String]
|
1590
|
-
# Required.
|
1591
|
-
#
|
1588
|
+
# Required. Parent resource name.
|
1589
|
+
# - Format:projects/[PROJECT-ID]
|
1590
|
+
# - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
|
1592
1591
|
# @param job_trigger [::Google::Cloud::Dlp::V2::JobTrigger, ::Hash]
|
1593
1592
|
# Required. The JobTrigger to create.
|
1594
1593
|
# @param trigger_id [::String]
|
@@ -1740,8 +1739,8 @@ module Google
|
|
1740
1739
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1741
1740
|
#
|
1742
1741
|
# @param name [::String]
|
1743
|
-
# Required. Resource name of the trigger to execute a hybrid inspect on, for
|
1744
|
-
#
|
1742
|
+
# Required. Resource name of the trigger to execute a hybrid inspect on, for example
|
1743
|
+
# `projects/dlp-test-project/jobTriggers/53234423`.
|
1745
1744
|
# @param hybrid_item [::Google::Cloud::Dlp::V2::HybridContentItem, ::Hash]
|
1746
1745
|
# The item to inspect.
|
1747
1746
|
#
|
@@ -1878,8 +1877,9 @@ module Google
|
|
1878
1877
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1879
1878
|
#
|
1880
1879
|
# @param parent [::String]
|
1881
|
-
# Required.
|
1882
|
-
#
|
1880
|
+
# Required. Parent resource name.
|
1881
|
+
# - Format:projects/[PROJECT-ID]
|
1882
|
+
# - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
|
1883
1883
|
# @param page_token [::String]
|
1884
1884
|
# Page token to continue retrieval. Comes from previous call
|
1885
1885
|
# to ListJobTriggers. `order_by` field must not
|
@@ -2137,8 +2137,9 @@ module Google
|
|
2137
2137
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
2138
2138
|
#
|
2139
2139
|
# @param parent [::String]
|
2140
|
-
# Required.
|
2141
|
-
#
|
2140
|
+
# Required. Parent resource name.
|
2141
|
+
# - Format:projects/[PROJECT-ID]
|
2142
|
+
# - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
|
2142
2143
|
# @param inspect_job [::Google::Cloud::Dlp::V2::InspectJobConfig, ::Hash]
|
2143
2144
|
# Set to control what and how to inspect.
|
2144
2145
|
# @param risk_job [::Google::Cloud::Dlp::V2::RiskAnalysisJobConfig, ::Hash]
|
@@ -2217,8 +2218,9 @@ module Google
|
|
2217
2218
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
2218
2219
|
#
|
2219
2220
|
# @param parent [::String]
|
2220
|
-
# Required.
|
2221
|
-
#
|
2221
|
+
# Required. Parent resource name.
|
2222
|
+
# - Format:projects/[PROJECT-ID]
|
2223
|
+
# - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
|
2222
2224
|
# @param filter [::String]
|
2223
2225
|
# Allows filtering.
|
2224
2226
|
#
|
@@ -2546,8 +2548,11 @@ module Google
|
|
2546
2548
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
2547
2549
|
#
|
2548
2550
|
# @param parent [::String]
|
2549
|
-
# Required.
|
2550
|
-
#
|
2551
|
+
# Required. Parent resource name.
|
2552
|
+
# - Format:projects/[PROJECT-ID]
|
2553
|
+
# - Format:organizations/[ORGANIZATION-ID]
|
2554
|
+
# - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
|
2555
|
+
# - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID]
|
2551
2556
|
# @param config [::Google::Cloud::Dlp::V2::StoredInfoTypeConfig, ::Hash]
|
2552
2557
|
# Required. Configuration of the storedInfoType to create.
|
2553
2558
|
# @param stored_info_type_id [::String]
|
@@ -2701,8 +2706,8 @@ module Google
|
|
2701
2706
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
2702
2707
|
#
|
2703
2708
|
# @param name [::String]
|
2704
|
-
# Required. Resource name of the organization and storedInfoType to be read,
|
2705
|
-
#
|
2709
|
+
# Required. Resource name of the organization and storedInfoType to be read, for
|
2710
|
+
# example `organizations/433245324/storedInfoTypes/432452342` or
|
2706
2711
|
# projects/project-id/storedInfoTypes/432452342.
|
2707
2712
|
#
|
2708
2713
|
# @yield [response, operation] Access the result along with the RPC operation
|
@@ -2771,8 +2776,11 @@ module Google
|
|
2771
2776
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
2772
2777
|
#
|
2773
2778
|
# @param parent [::String]
|
2774
|
-
# Required.
|
2775
|
-
#
|
2779
|
+
# Required. Parent resource name.
|
2780
|
+
# - Format:projects/[PROJECT-ID]
|
2781
|
+
# - Format:organizations/[ORGANIZATION-ID]
|
2782
|
+
# - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
|
2783
|
+
# - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID]
|
2776
2784
|
# @param page_token [::String]
|
2777
2785
|
# Page token to continue retrieval. Comes from previous call
|
2778
2786
|
# to `ListStoredInfoTypes`.
|
@@ -2864,8 +2872,8 @@ module Google
|
|
2864
2872
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
2865
2873
|
#
|
2866
2874
|
# @param name [::String]
|
2867
|
-
# Required. Resource name of the organization and storedInfoType to be
|
2868
|
-
#
|
2875
|
+
# Required. Resource name of the organization and storedInfoType to be deleted, for
|
2876
|
+
# example `organizations/433245324/storedInfoTypes/432452342` or
|
2869
2877
|
# projects/project-id/storedInfoTypes/432452342.
|
2870
2878
|
#
|
2871
2879
|
# @yield [response, operation] Access the result along with the RPC operation
|
@@ -2937,8 +2945,8 @@ module Google
|
|
2937
2945
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
2938
2946
|
#
|
2939
2947
|
# @param name [::String]
|
2940
|
-
# Required. Resource name of the job to execute a hybrid inspect on, for
|
2941
|
-
#
|
2948
|
+
# Required. Resource name of the job to execute a hybrid inspect on, for example
|
2949
|
+
# `projects/dlp-test-project/dlpJob/53234423`.
|
2942
2950
|
# @param hybrid_item [::Google::Cloud::Dlp::V2::HybridContentItem, ::Hash]
|
2943
2951
|
# The item to inspect.
|
2944
2952
|
#
|
@@ -3142,7 +3150,7 @@ module Google
|
|
3142
3150
|
|
3143
3151
|
config_attr :endpoint, "dlp.googleapis.com", ::String
|
3144
3152
|
config_attr :credentials, nil do |value|
|
3145
|
-
allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
3153
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
3146
3154
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
3147
3155
|
allowed.any? { |klass| klass === value }
|
3148
3156
|
end
|
@@ -3170,7 +3178,7 @@ module Google
|
|
3170
3178
|
def rpcs
|
3171
3179
|
@rpcs ||= begin
|
3172
3180
|
parent_rpcs = nil
|
3173
|
-
parent_rpcs = @parent_config.rpcs if @parent_config&.respond_to?
|
3181
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
|
3174
3182
|
Rpcs.new parent_rpcs
|
3175
3183
|
end
|
3176
3184
|
end
|
@@ -3,7 +3,6 @@
|
|
3
3
|
|
4
4
|
require 'google/protobuf'
|
5
5
|
|
6
|
-
require 'google/api/annotations_pb'
|
7
6
|
require 'google/api/client_pb'
|
8
7
|
require 'google/api/field_behavior_pb'
|
9
8
|
require 'google/api/resource_pb'
|
@@ -16,6 +15,7 @@ require 'google/rpc/status_pb'
|
|
16
15
|
require 'google/type/date_pb'
|
17
16
|
require 'google/type/dayofweek_pb'
|
18
17
|
require 'google/type/timeofday_pb'
|
18
|
+
require 'google/api/annotations_pb'
|
19
19
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
20
20
|
add_file("google/privacy/dlp/v2/dlp.proto", :syntax => :proto3) do
|
21
21
|
add_message "google.privacy.dlp.v2.ExcludeInfoTypes" do
|
@@ -73,6 +73,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
73
73
|
value :WORD_DOCUMENT, 7
|
74
74
|
value :PDF, 8
|
75
75
|
value :AVRO, 11
|
76
|
+
value :CSV, 12
|
77
|
+
value :TSV, 13
|
76
78
|
end
|
77
79
|
add_message "google.privacy.dlp.v2.ContentItem" do
|
78
80
|
oneof :data_item do
|
@@ -5,6 +5,7 @@ require 'google/protobuf'
|
|
5
5
|
|
6
6
|
require 'google/api/resource_pb'
|
7
7
|
require 'google/protobuf/timestamp_pb'
|
8
|
+
require 'google/api/annotations_pb'
|
8
9
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
10
|
add_file("google/privacy/dlp/v2/storage.proto", :syntax => :proto3) do
|
10
11
|
add_message "google.privacy.dlp.v2.InfoType" do
|
@@ -197,6 +198,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
197
198
|
value :WORD, 5
|
198
199
|
value :PDF, 6
|
199
200
|
value :AVRO, 7
|
201
|
+
value :CSV, 8
|
202
|
+
value :TSV, 9
|
200
203
|
end
|
201
204
|
end
|
202
205
|
end
|
@@ -209,6 +209,12 @@ module Google
|
|
209
209
|
|
210
210
|
# avro
|
211
211
|
AVRO = 11
|
212
|
+
|
213
|
+
# csv
|
214
|
+
CSV = 12
|
215
|
+
|
216
|
+
# tsv
|
217
|
+
TSV = 13
|
212
218
|
end
|
213
219
|
end
|
214
220
|
|
@@ -273,8 +279,8 @@ module Google
|
|
273
279
|
# @!attribute [rw] name
|
274
280
|
# @return [::String]
|
275
281
|
# Resource name in format
|
276
|
-
# projects/\\{project}/locations/\\{location}/findings/\\{finding}
|
277
|
-
#
|
282
|
+
# projects/\\{project}/locations/\\{location}/findings/\\{finding} Populated only
|
283
|
+
# when viewing persisted findings.
|
278
284
|
# @!attribute [rw] quote
|
279
285
|
# @return [::String]
|
280
286
|
# The content that was found. Even if the content is not textual, it
|
@@ -555,8 +561,9 @@ module Google
|
|
555
561
|
# by covering it with a colored rectangle.
|
556
562
|
# @!attribute [rw] parent
|
557
563
|
# @return [::String]
|
558
|
-
# The parent resource name
|
559
|
-
#
|
564
|
+
# The parent resource name.
|
565
|
+
# - Format:projects/[PROJECT-ID]
|
566
|
+
# - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
|
560
567
|
# @!attribute [rw] location_id
|
561
568
|
# @return [::String]
|
562
569
|
# Deprecated. This field has no effect.
|
@@ -633,8 +640,9 @@ module Google
|
|
633
640
|
# Request to de-identify a list of items.
|
634
641
|
# @!attribute [rw] parent
|
635
642
|
# @return [::String]
|
636
|
-
#
|
637
|
-
#
|
643
|
+
# Parent resource name.
|
644
|
+
# - Format:projects/[PROJECT-ID]
|
645
|
+
# - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
|
638
646
|
# @!attribute [rw] deidentify_config
|
639
647
|
# @return [::Google::Cloud::Dlp::V2::DeidentifyConfig]
|
640
648
|
# Configuration for the de-identification of the content item.
|
@@ -686,6 +694,8 @@ module Google
|
|
686
694
|
# @!attribute [rw] parent
|
687
695
|
# @return [::String]
|
688
696
|
# Required. The parent resource name.
|
697
|
+
# - Format:projects/[PROJECT-ID]
|
698
|
+
# - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
|
689
699
|
# @!attribute [rw] reidentify_config
|
690
700
|
# @return [::Google::Cloud::Dlp::V2::DeidentifyConfig]
|
691
701
|
# Configuration for the re-identification of the content item.
|
@@ -742,8 +752,9 @@ module Google
|
|
742
752
|
# Request to search for potentially sensitive info in a ContentItem.
|
743
753
|
# @!attribute [rw] parent
|
744
754
|
# @return [::String]
|
745
|
-
#
|
746
|
-
#
|
755
|
+
# Parent resource name.
|
756
|
+
# - Format:projects/[PROJECT-ID]
|
757
|
+
# - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
|
747
758
|
# @!attribute [rw] inspect_config
|
748
759
|
# @return [::Google::Cloud::Dlp::V2::InspectConfig]
|
749
760
|
# Configuration for the inspector. What specified here will override
|
@@ -891,7 +902,7 @@ module Google
|
|
891
902
|
end
|
892
903
|
end
|
893
904
|
|
894
|
-
# Statistics related to processing hybrid inspect requests.
|
905
|
+
# Statistics related to processing hybrid inspect requests.
|
895
906
|
# @!attribute [rw] processed_count
|
896
907
|
# @return [::Integer]
|
897
908
|
# The number of hybrid inspection requests processed within this job.
|
@@ -933,7 +944,8 @@ module Google
|
|
933
944
|
# Request for the list of infoTypes.
|
934
945
|
# @!attribute [rw] parent
|
935
946
|
# @return [::String]
|
936
|
-
# The parent resource name
|
947
|
+
# The parent resource name.
|
948
|
+
# - Format:locations/[LOCATION-ID]
|
937
949
|
# @!attribute [rw] language_code
|
938
950
|
# @return [::String]
|
939
951
|
# BCP-47 language code for localized infoType friendly
|
@@ -1017,8 +1029,8 @@ module Google
|
|
1017
1029
|
# Required. Quasi-identifier columns.
|
1018
1030
|
# @!attribute [rw] relative_frequency
|
1019
1031
|
# @return [::Google::Cloud::Dlp::V2::FieldId]
|
1020
|
-
# Required. The relative frequency column must contain a floating-point
|
1021
|
-
#
|
1032
|
+
# Required. The relative frequency column must contain a floating-point number
|
1033
|
+
# between 0 and 1 (inclusive). Null values are assumed to be zero.
|
1022
1034
|
class StatisticalTable
|
1023
1035
|
include ::Google::Protobuf::MessageExts
|
1024
1036
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -1133,8 +1145,8 @@ module Google
|
|
1133
1145
|
# extrapolating from the distribution of values in the input dataset.
|
1134
1146
|
# @!attribute [rw] quasi_ids
|
1135
1147
|
# @return [::Array<::Google::Cloud::Dlp::V2::PrivacyMetric::KMapEstimationConfig::TaggedField>]
|
1136
|
-
# Required. Fields considered to be quasi-identifiers. No two columns can
|
1137
|
-
#
|
1148
|
+
# Required. Fields considered to be quasi-identifiers. No two columns can have the
|
1149
|
+
# same tag.
|
1138
1150
|
# @!attribute [rw] region_code
|
1139
1151
|
# @return [::String]
|
1140
1152
|
# ISO 3166-1 alpha-2 region code to use in the statistical modeling.
|
@@ -1189,8 +1201,8 @@ module Google
|
|
1189
1201
|
# Required. Quasi-identifier columns.
|
1190
1202
|
# @!attribute [rw] relative_frequency
|
1191
1203
|
# @return [::Google::Cloud::Dlp::V2::FieldId]
|
1192
|
-
# Required. The relative frequency column must contain a floating-point
|
1193
|
-
#
|
1204
|
+
# Required. The relative frequency column must contain a floating-point number
|
1205
|
+
# between 0 and 1 (inclusive). Null values are assumed to be zero.
|
1194
1206
|
class AuxiliaryTable
|
1195
1207
|
include ::Google::Protobuf::MessageExts
|
1196
1208
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -1216,8 +1228,8 @@ module Google
|
|
1216
1228
|
# knowing the attack dataset, so we use a statistical model instead.
|
1217
1229
|
# @!attribute [rw] quasi_ids
|
1218
1230
|
# @return [::Array<::Google::Cloud::Dlp::V2::QuasiId>]
|
1219
|
-
# Required. Fields considered to be quasi-identifiers. No two fields can
|
1220
|
-
#
|
1231
|
+
# Required. Fields considered to be quasi-identifiers. No two fields can have the
|
1232
|
+
# same tag.
|
1221
1233
|
# @!attribute [rw] region_code
|
1222
1234
|
# @return [::String]
|
1223
1235
|
# ISO 3166-1 alpha-2 region code to use in the statistical modeling.
|
@@ -1935,18 +1947,18 @@ module Google
|
|
1935
1947
|
# See https://cloud.google.com/dlp/docs/concepts-bucketing to learn more.
|
1936
1948
|
# @!attribute [rw] lower_bound
|
1937
1949
|
# @return [::Google::Cloud::Dlp::V2::Value]
|
1938
|
-
# Required. Lower bound value of buckets. All values less than `lower_bound`
|
1939
|
-
#
|
1940
|
-
#
|
1950
|
+
# Required. Lower bound value of buckets. All values less than `lower_bound` are
|
1951
|
+
# grouped together into a single bucket; for example if `lower_bound` = 10,
|
1952
|
+
# then all values less than 10 are replaced with the value "-10".
|
1941
1953
|
# @!attribute [rw] upper_bound
|
1942
1954
|
# @return [::Google::Cloud::Dlp::V2::Value]
|
1943
|
-
# Required. Upper bound value of buckets. All values greater than upper_bound
|
1944
|
-
#
|
1945
|
-
#
|
1955
|
+
# Required. Upper bound value of buckets. All values greater than upper_bound are
|
1956
|
+
# grouped together into a single bucket; for example if `upper_bound` = 89,
|
1957
|
+
# then all values greater than 89 are replaced with the value "89+".
|
1946
1958
|
# @!attribute [rw] bucket_size
|
1947
1959
|
# @return [::Float]
|
1948
|
-
# Required. Size of each bucket (except for minimum and maximum buckets). So
|
1949
|
-
#
|
1960
|
+
# Required. Size of each bucket (except for minimum and maximum buckets). So if
|
1961
|
+
# `lower_bound` = 10, `upper_bound` = 89, and `bucket_size` = 10, then the
|
1950
1962
|
# following buckets would be used: -10, 10-20, 20-30, 30-40, 40-50, 50-60,
|
1951
1963
|
# 60-70, 70-80, 80-89, 89+. Precision up to 2 decimals works.
|
1952
1964
|
class FixedSizeBucketingConfig
|
@@ -1980,8 +1992,7 @@ module Google
|
|
1980
1992
|
# Upper bound of the range, exclusive; type must match min.
|
1981
1993
|
# @!attribute [rw] replacement_value
|
1982
1994
|
# @return [::Google::Cloud::Dlp::V2::Value]
|
1983
|
-
# Replacement value for this bucket.
|
1984
|
-
# the default behavior will be to hyphenate the min-max range.
|
1995
|
+
# Required. Replacement value for this bucket.
|
1985
1996
|
class Bucket
|
1986
1997
|
include ::Google::Protobuf::MessageExts
|
1987
1998
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -2055,7 +2066,7 @@ module Google
|
|
2055
2066
|
#
|
2056
2067
|
# This annotation identifies the surrogate when inspecting content using the
|
2057
2068
|
# custom infoType
|
2058
|
-
# [`SurrogateType`](/dlp/docs/reference/rest/v2/InspectConfig#surrogatetype).
|
2069
|
+
# [`SurrogateType`](https://cloud.google.com/dlp/docs/reference/rest/v2/InspectConfig#surrogatetype).
|
2059
2070
|
# This facilitates reversal of the surrogate when it occurs in free text.
|
2060
2071
|
#
|
2061
2072
|
# In order for inspection to work properly, the name of this infoType must
|
@@ -2079,16 +2090,16 @@ module Google
|
|
2079
2090
|
# Unused.
|
2080
2091
|
FFX_COMMON_NATIVE_ALPHABET_UNSPECIFIED = 0
|
2081
2092
|
|
2082
|
-
# [0-9] (radix of 10)
|
2093
|
+
# `[0-9]` (radix of 10)
|
2083
2094
|
NUMERIC = 1
|
2084
2095
|
|
2085
|
-
# [0-9A-F] (radix of 16)
|
2096
|
+
# `[0-9A-F]` (radix of 16)
|
2086
2097
|
HEXADECIMAL = 2
|
2087
2098
|
|
2088
|
-
# [0-9A-Z] (radix of 36)
|
2099
|
+
# `[0-9A-Z]` (radix of 36)
|
2089
2100
|
UPPER_CASE_ALPHA_NUMERIC = 3
|
2090
2101
|
|
2091
|
-
# [0-9A-Za-z] (radix of 62)
|
2102
|
+
# `[0-9A-Za-z]` (radix of 62)
|
2092
2103
|
ALPHA_NUMERIC = 4
|
2093
2104
|
end
|
2094
2105
|
end
|
@@ -2158,15 +2169,14 @@ module Google
|
|
2158
2169
|
# to learn more.
|
2159
2170
|
# @!attribute [rw] upper_bound_days
|
2160
2171
|
# @return [::Integer]
|
2161
|
-
# Required. Range of shift in days. Actual shift will be selected at random
|
2162
|
-
#
|
2163
|
-
#
|
2172
|
+
# Required. Range of shift in days. Actual shift will be selected at random within this
|
2173
|
+
# range (inclusive ends). Negative means shift to earlier in time. Must not
|
2174
|
+
# be more than 365250 days (1000 years) each direction.
|
2164
2175
|
#
|
2165
2176
|
# For example, 3 means shift date to at most 3 days into the future.
|
2166
2177
|
# @!attribute [rw] lower_bound_days
|
2167
2178
|
# @return [::Integer]
|
2168
|
-
# Required. For example, -5 means shift date to at most 5 days back in the
|
2169
|
-
# past.
|
2179
|
+
# Required. For example, -5 means shift date to at most 5 days back in the past.
|
2170
2180
|
# @!attribute [rw] context
|
2171
2181
|
# @return [::Google::Cloud::Dlp::V2::FieldId]
|
2172
2182
|
# Points to the field that contains the context, for example, an entity id.
|
@@ -2621,7 +2631,7 @@ module Google
|
|
2621
2631
|
# Publish a message into given Pub/Sub topic when DlpJob has completed. The
|
2622
2632
|
# message contains a single field, `DlpJobName`, which is equal to the
|
2623
2633
|
# finished job's
|
2624
|
-
# [`DlpJob.name`](/dlp/docs/reference/rest/v2/projects.dlpJobs#DlpJob).
|
2634
|
+
# [`DlpJob.name`](https://cloud.google.com/dlp/docs/reference/rest/v2/projects.dlpJobs#DlpJob).
|
2625
2635
|
# Compatible with: Inspect, Risk
|
2626
2636
|
# @!attribute [rw] topic
|
2627
2637
|
# @return [::String]
|
@@ -2684,8 +2694,11 @@ module Google
|
|
2684
2694
|
# Request message for CreateInspectTemplate.
|
2685
2695
|
# @!attribute [rw] parent
|
2686
2696
|
# @return [::String]
|
2687
|
-
# Required.
|
2688
|
-
#
|
2697
|
+
# Required. Parent resource name.
|
2698
|
+
# - Format:projects/[PROJECT-ID]
|
2699
|
+
# - Format:organizations/[ORGANIZATION-ID]
|
2700
|
+
# - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
|
2701
|
+
# - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID]
|
2689
2702
|
# @!attribute [rw] inspect_template
|
2690
2703
|
# @return [::Google::Cloud::Dlp::V2::InspectTemplate]
|
2691
2704
|
# Required. The InspectTemplate to create.
|
@@ -2706,8 +2719,8 @@ module Google
|
|
2706
2719
|
# Request message for UpdateInspectTemplate.
|
2707
2720
|
# @!attribute [rw] name
|
2708
2721
|
# @return [::String]
|
2709
|
-
# Required. Resource name of organization and inspectTemplate to be updated,
|
2710
|
-
#
|
2722
|
+
# Required. Resource name of organization and inspectTemplate to be updated, for
|
2723
|
+
# example `organizations/433245324/inspectTemplates/432452342` or
|
2711
2724
|
# projects/project-id/inspectTemplates/432452342.
|
2712
2725
|
# @!attribute [rw] inspect_template
|
2713
2726
|
# @return [::Google::Cloud::Dlp::V2::InspectTemplate]
|
@@ -2723,8 +2736,8 @@ module Google
|
|
2723
2736
|
# Request message for GetInspectTemplate.
|
2724
2737
|
# @!attribute [rw] name
|
2725
2738
|
# @return [::String]
|
2726
|
-
# Required. Resource name of the organization and inspectTemplate to be read,
|
2727
|
-
#
|
2739
|
+
# Required. Resource name of the organization and inspectTemplate to be read, for
|
2740
|
+
# example `organizations/433245324/inspectTemplates/432452342` or
|
2728
2741
|
# projects/project-id/inspectTemplates/432452342.
|
2729
2742
|
class GetInspectTemplateRequest
|
2730
2743
|
include ::Google::Protobuf::MessageExts
|
@@ -2734,8 +2747,11 @@ module Google
|
|
2734
2747
|
# Request message for ListInspectTemplates.
|
2735
2748
|
# @!attribute [rw] parent
|
2736
2749
|
# @return [::String]
|
2737
|
-
# Required.
|
2738
|
-
#
|
2750
|
+
# Required. Parent resource name.
|
2751
|
+
# - Format:projects/[PROJECT-ID]
|
2752
|
+
# - Format:organizations/[ORGANIZATION-ID]
|
2753
|
+
# - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
|
2754
|
+
# - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID]
|
2739
2755
|
# @!attribute [rw] page_token
|
2740
2756
|
# @return [::String]
|
2741
2757
|
# Page token to continue retrieval. Comes from previous call
|
@@ -2783,9 +2799,9 @@ module Google
|
|
2783
2799
|
# Request message for DeleteInspectTemplate.
|
2784
2800
|
# @!attribute [rw] name
|
2785
2801
|
# @return [::String]
|
2786
|
-
# Required. Resource name of the organization and inspectTemplate to be
|
2787
|
-
#
|
2788
|
-
#
|
2802
|
+
# Required. Resource name of the organization and inspectTemplate to be deleted, for
|
2803
|
+
# example `organizations/433245324/inspectTemplates/432452342` or
|
2804
|
+
# projects/project-id/inspectTemplates/432452342.
|
2789
2805
|
class DeleteInspectTemplateRequest
|
2790
2806
|
include ::Google::Protobuf::MessageExts
|
2791
2807
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -2794,8 +2810,9 @@ module Google
|
|
2794
2810
|
# Request message for CreateJobTrigger.
|
2795
2811
|
# @!attribute [rw] parent
|
2796
2812
|
# @return [::String]
|
2797
|
-
# Required.
|
2798
|
-
#
|
2813
|
+
# Required. Parent resource name.
|
2814
|
+
# - Format:projects/[PROJECT-ID]
|
2815
|
+
# - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
|
2799
2816
|
# @!attribute [rw] job_trigger
|
2800
2817
|
# @return [::Google::Cloud::Dlp::V2::JobTrigger]
|
2801
2818
|
# Required. The JobTrigger to create.
|
@@ -2854,8 +2871,9 @@ module Google
|
|
2854
2871
|
# Storage.
|
2855
2872
|
# @!attribute [rw] parent
|
2856
2873
|
# @return [::String]
|
2857
|
-
# Required.
|
2858
|
-
#
|
2874
|
+
# Required. Parent resource name.
|
2875
|
+
# - Format:projects/[PROJECT-ID]
|
2876
|
+
# - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
|
2859
2877
|
# @!attribute [rw] inspect_job
|
2860
2878
|
# @return [::Google::Cloud::Dlp::V2::InspectJobConfig]
|
2861
2879
|
# Set to control what and how to inspect.
|
@@ -2879,8 +2897,9 @@ module Google
|
|
2879
2897
|
# Request message for ListJobTriggers.
|
2880
2898
|
# @!attribute [rw] parent
|
2881
2899
|
# @return [::String]
|
2882
|
-
# Required.
|
2883
|
-
#
|
2900
|
+
# Required. Parent resource name.
|
2901
|
+
# - Format:projects/[PROJECT-ID]
|
2902
|
+
# - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
|
2884
2903
|
# @!attribute [rw] page_token
|
2885
2904
|
# @return [::String]
|
2886
2905
|
# Page token to continue retrieval. Comes from previous call
|
@@ -3060,8 +3079,9 @@ module Google
|
|
3060
3079
|
# The request message for listing DLP jobs.
|
3061
3080
|
# @!attribute [rw] parent
|
3062
3081
|
# @return [::String]
|
3063
|
-
# Required.
|
3064
|
-
#
|
3082
|
+
# Required. Parent resource name.
|
3083
|
+
# - Format:projects/[PROJECT-ID]
|
3084
|
+
# - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
|
3065
3085
|
# @!attribute [rw] filter
|
3066
3086
|
# @return [::String]
|
3067
3087
|
# Allows filtering.
|
@@ -3166,8 +3186,11 @@ module Google
|
|
3166
3186
|
# Request message for CreateDeidentifyTemplate.
|
3167
3187
|
# @!attribute [rw] parent
|
3168
3188
|
# @return [::String]
|
3169
|
-
# Required.
|
3170
|
-
#
|
3189
|
+
# Required. Parent resource name.
|
3190
|
+
# - Format:projects/[PROJECT-ID]
|
3191
|
+
# - Format:organizations/[ORGANIZATION-ID]
|
3192
|
+
# - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
|
3193
|
+
# - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID]
|
3171
3194
|
# @!attribute [rw] deidentify_template
|
3172
3195
|
# @return [::Google::Cloud::Dlp::V2::DeidentifyTemplate]
|
3173
3196
|
# Required. The DeidentifyTemplate to create.
|
@@ -3188,9 +3211,8 @@ module Google
|
|
3188
3211
|
# Request message for UpdateDeidentifyTemplate.
|
3189
3212
|
# @!attribute [rw] name
|
3190
3213
|
# @return [::String]
|
3191
|
-
# Required. Resource name of organization and deidentify template to be
|
3192
|
-
#
|
3193
|
-
# `organizations/433245324/deidentifyTemplates/432452342` or
|
3214
|
+
# Required. Resource name of organization and deidentify template to be updated, for
|
3215
|
+
# example `organizations/433245324/deidentifyTemplates/432452342` or
|
3194
3216
|
# projects/project-id/deidentifyTemplates/432452342.
|
3195
3217
|
# @!attribute [rw] deidentify_template
|
3196
3218
|
# @return [::Google::Cloud::Dlp::V2::DeidentifyTemplate]
|
@@ -3206,9 +3228,9 @@ module Google
|
|
3206
3228
|
# Request message for GetDeidentifyTemplate.
|
3207
3229
|
# @!attribute [rw] name
|
3208
3230
|
# @return [::String]
|
3209
|
-
# Required. Resource name of the organization and deidentify template to be
|
3210
|
-
#
|
3211
|
-
#
|
3231
|
+
# Required. Resource name of the organization and deidentify template to be read, for
|
3232
|
+
# example `organizations/433245324/deidentifyTemplates/432452342` or
|
3233
|
+
# projects/project-id/deidentifyTemplates/432452342.
|
3212
3234
|
class GetDeidentifyTemplateRequest
|
3213
3235
|
include ::Google::Protobuf::MessageExts
|
3214
3236
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -3217,8 +3239,11 @@ module Google
|
|
3217
3239
|
# Request message for ListDeidentifyTemplates.
|
3218
3240
|
# @!attribute [rw] parent
|
3219
3241
|
# @return [::String]
|
3220
|
-
# Required.
|
3221
|
-
#
|
3242
|
+
# Required. Parent resource name.
|
3243
|
+
# - Format:projects/[PROJECT-ID]
|
3244
|
+
# - Format:organizations/[ORGANIZATION-ID]
|
3245
|
+
# - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
|
3246
|
+
# - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID]
|
3222
3247
|
# @!attribute [rw] page_token
|
3223
3248
|
# @return [::String]
|
3224
3249
|
# Page token to continue retrieval. Comes from previous call
|
@@ -3267,9 +3292,8 @@ module Google
|
|
3267
3292
|
# Request message for DeleteDeidentifyTemplate.
|
3268
3293
|
# @!attribute [rw] name
|
3269
3294
|
# @return [::String]
|
3270
|
-
# Required. Resource name of the organization and deidentify template to be
|
3271
|
-
#
|
3272
|
-
# `organizations/433245324/deidentifyTemplates/432452342` or
|
3295
|
+
# Required. Resource name of the organization and deidentify template to be deleted,
|
3296
|
+
# for example `organizations/433245324/deidentifyTemplates/432452342` or
|
3273
3297
|
# projects/project-id/deidentifyTemplates/432452342.
|
3274
3298
|
class DeleteDeidentifyTemplateRequest
|
3275
3299
|
include ::Google::Protobuf::MessageExts
|
@@ -3396,8 +3420,11 @@ module Google
|
|
3396
3420
|
# Request message for CreateStoredInfoType.
|
3397
3421
|
# @!attribute [rw] parent
|
3398
3422
|
# @return [::String]
|
3399
|
-
# Required.
|
3400
|
-
#
|
3423
|
+
# Required. Parent resource name.
|
3424
|
+
# - Format:projects/[PROJECT-ID]
|
3425
|
+
# - Format:organizations/[ORGANIZATION-ID]
|
3426
|
+
# - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
|
3427
|
+
# - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID]
|
3401
3428
|
# @!attribute [rw] config
|
3402
3429
|
# @return [::Google::Cloud::Dlp::V2::StoredInfoTypeConfig]
|
3403
3430
|
# Required. Configuration of the storedInfoType to create.
|
@@ -3437,8 +3464,8 @@ module Google
|
|
3437
3464
|
# Request message for GetStoredInfoType.
|
3438
3465
|
# @!attribute [rw] name
|
3439
3466
|
# @return [::String]
|
3440
|
-
# Required. Resource name of the organization and storedInfoType to be read,
|
3441
|
-
#
|
3467
|
+
# Required. Resource name of the organization and storedInfoType to be read, for
|
3468
|
+
# example `organizations/433245324/storedInfoTypes/432452342` or
|
3442
3469
|
# projects/project-id/storedInfoTypes/432452342.
|
3443
3470
|
class GetStoredInfoTypeRequest
|
3444
3471
|
include ::Google::Protobuf::MessageExts
|
@@ -3448,8 +3475,11 @@ module Google
|
|
3448
3475
|
# Request message for ListStoredInfoTypes.
|
3449
3476
|
# @!attribute [rw] parent
|
3450
3477
|
# @return [::String]
|
3451
|
-
# Required.
|
3452
|
-
#
|
3478
|
+
# Required. Parent resource name.
|
3479
|
+
# - Format:projects/[PROJECT-ID]
|
3480
|
+
# - Format:organizations/[ORGANIZATION-ID]
|
3481
|
+
# - Format:projects/[PROJECT-ID]/locations/[LOCATION-ID]
|
3482
|
+
# - Format:organizations/[ORGANIZATION-ID]/locations/[LOCATION-ID]
|
3453
3483
|
# @!attribute [rw] page_token
|
3454
3484
|
# @return [::String]
|
3455
3485
|
# Page token to continue retrieval. Comes from previous call
|
@@ -3498,8 +3528,8 @@ module Google
|
|
3498
3528
|
# Request message for DeleteStoredInfoType.
|
3499
3529
|
# @!attribute [rw] name
|
3500
3530
|
# @return [::String]
|
3501
|
-
# Required. Resource name of the organization and storedInfoType to be
|
3502
|
-
#
|
3531
|
+
# Required. Resource name of the organization and storedInfoType to be deleted, for
|
3532
|
+
# example `organizations/433245324/storedInfoTypes/432452342` or
|
3503
3533
|
# projects/project-id/storedInfoTypes/432452342.
|
3504
3534
|
class DeleteStoredInfoTypeRequest
|
3505
3535
|
include ::Google::Protobuf::MessageExts
|
@@ -3509,8 +3539,8 @@ module Google
|
|
3509
3539
|
# Request to search for potentially sensitive info in a custom location.
|
3510
3540
|
# @!attribute [rw] name
|
3511
3541
|
# @return [::String]
|
3512
|
-
# Required. Resource name of the trigger to execute a hybrid inspect on, for
|
3513
|
-
#
|
3542
|
+
# Required. Resource name of the trigger to execute a hybrid inspect on, for example
|
3543
|
+
# `projects/dlp-test-project/jobTriggers/53234423`.
|
3514
3544
|
# @!attribute [rw] hybrid_item
|
3515
3545
|
# @return [::Google::Cloud::Dlp::V2::HybridContentItem]
|
3516
3546
|
# The item to inspect.
|
@@ -3522,8 +3552,8 @@ module Google
|
|
3522
3552
|
# Request to search for potentially sensitive info in a custom location.
|
3523
3553
|
# @!attribute [rw] name
|
3524
3554
|
# @return [::String]
|
3525
|
-
# Required. Resource name of the job to execute a hybrid inspect on, for
|
3526
|
-
#
|
3555
|
+
# Required. Resource name of the job to execute a hybrid inspect on, for example
|
3556
|
+
# `projects/dlp-test-project/dlpJob/53234423`.
|
3527
3557
|
# @!attribute [rw] hybrid_item
|
3528
3558
|
# @return [::Google::Cloud::Dlp::V2::HybridContentItem]
|
3529
3559
|
# The item to inspect.
|
@@ -3678,7 +3708,7 @@ module Google
|
|
3678
3708
|
# Unused
|
3679
3709
|
METADATATYPE_UNSPECIFIED = 0
|
3680
3710
|
|
3681
|
-
# General file metadata provided by
|
3711
|
+
# General file metadata provided by Cloud Storage.
|
3682
3712
|
STORAGE_METADATA = 2
|
3683
3713
|
end
|
3684
3714
|
|
@@ -154,7 +154,7 @@ module Google
|
|
154
154
|
|
155
155
|
# Message for detecting output from deidentification transformations
|
156
156
|
# such as
|
157
|
-
# [`CryptoReplaceFfxFpeConfig`](/dlp/docs/reference/rest/v2/organizations.deidentifyTemplates#cryptoreplaceffxfpeconfig).
|
157
|
+
# [`CryptoReplaceFfxFpeConfig`](https://cloud.google.com/dlp/docs/reference/rest/v2/organizations.deidentifyTemplates#cryptoreplaceffxfpeconfig).
|
158
158
|
# These types of transformations are
|
159
159
|
# those that perform pseudonymization, thereby producing a "surrogate" as
|
160
160
|
# output. This should be used in conjunction with a field on the
|
@@ -767,12 +767,17 @@ module Google
|
|
767
767
|
VERY_LIKELY = 5
|
768
768
|
end
|
769
769
|
|
770
|
-
# Definitions of file type groups to scan.
|
770
|
+
# Definitions of file type groups to scan. New types will be added to this
|
771
|
+
# list.
|
771
772
|
module FileType
|
772
773
|
# Includes all files.
|
773
774
|
FILE_TYPE_UNSPECIFIED = 0
|
774
775
|
|
775
|
-
# Includes all file extensions not covered by
|
776
|
+
# Includes all file extensions not covered by another entry. Binary
|
777
|
+
# scanning attempts to convert the content of the file to utf_8 to scan
|
778
|
+
# the file.
|
779
|
+
# If you wish to avoid this fall back, specify one or more of the other
|
780
|
+
# FileType's in your storage scan.
|
776
781
|
BINARY_FILE = 1
|
777
782
|
|
778
783
|
# Included file extensions:
|
@@ -789,10 +794,12 @@ module Google
|
|
789
794
|
# Image inspection is restricted to 'global', 'us', 'asia', and 'europe'.
|
790
795
|
IMAGE = 3
|
791
796
|
|
797
|
+
# Word files >30 MB will be scanned as binary files.
|
792
798
|
# Included file extensions:
|
793
799
|
# docx, dotx, docm, dotm
|
794
800
|
WORD = 5
|
795
801
|
|
802
|
+
# PDF files >30 MB will be scanned as binary files.
|
796
803
|
# Included file extensions:
|
797
804
|
# pdf
|
798
805
|
PDF = 6
|
@@ -800,6 +807,14 @@ module Google
|
|
800
807
|
# Included file extensions:
|
801
808
|
# avro
|
802
809
|
AVRO = 7
|
810
|
+
|
811
|
+
# Included file extensions:
|
812
|
+
# csv
|
813
|
+
CSV = 8
|
814
|
+
|
815
|
+
# Included file extensions:
|
816
|
+
# tsv
|
817
|
+
TSV = 9
|
803
818
|
end
|
804
819
|
end
|
805
820
|
end
|
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.4.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: 2020-
|
11
|
+
date: 2020-08-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.3'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0.
|
26
|
+
version: '0.3'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: google-cloud-errors
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -204,7 +204,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
204
204
|
- !ruby/object:Gem::Version
|
205
205
|
version: '0'
|
206
206
|
requirements: []
|
207
|
-
rubygems_version: 3.
|
207
|
+
rubygems_version: 3.1.3
|
208
208
|
signing_key:
|
209
209
|
specification_version: 4
|
210
210
|
summary: API Client library for the Cloud Data Loss Prevention (DLP) V2 API
|