google-cloud-dlp-v2 0.3.2 → 0.4.3
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 +293 -95
- 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 +306 -83
- data/proto_docs/google/privacy/dlp/v2/storage.rb +24 -7
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c442dfa4c79234288f3a3a5dea9eedeb9c2ae129a0cf0f38b9e32091a234e66b
|
4
|
+
data.tar.gz: 48a3361f8b5ee95b6818261c11490c85b21e602ce4a3956861aa893121df5be5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c9eecb41e377b9b6740ec13a22b5c671594e050aeaf12c9ded0532191d9e47885e76492ca40b28db437898b5a2b0e94a8987d61d526fbe819c70ae92be40e51
|
7
|
+
data.tar.gz: f61f24f342f8bb89be2497716b46fbfb6cd385b197c1eb47b3218d29ecf0f8e838e8123921d911c93e031ee75454b6e4492d767455ed8e94b9a2d392276c329f
|
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,21 @@ 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
|
+
#
|
372
|
+
# The format of this value varies depending on whether you have [specified a
|
373
|
+
# processing location](/dlp/docs/specifying-location):
|
374
|
+
#
|
375
|
+
# + Projects scope, location specified:<br/>
|
376
|
+
# `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
377
|
+
# + Projects scope, no location specified (defaults to global):<br/>
|
378
|
+
# `projects/`<var>PROJECT_ID</var>
|
379
|
+
#
|
380
|
+
# The following example `parent` string specifies a parent project with the
|
381
|
+
# identifier `example-project`, and specifies the `europe-west3` location
|
382
|
+
# for processing data:
|
383
|
+
#
|
384
|
+
# parent=projects/example-project/locations/europe-west3
|
390
385
|
# @param inspect_config [::Google::Cloud::Dlp::V2::InspectConfig, ::Hash]
|
391
386
|
# Configuration for the inspector. What specified here will override
|
392
387
|
# the template referenced by the inspect_template_name argument.
|
@@ -472,8 +467,21 @@ module Google
|
|
472
467
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
473
468
|
#
|
474
469
|
# @param parent [::String]
|
475
|
-
#
|
476
|
-
#
|
470
|
+
# Parent resource name.
|
471
|
+
#
|
472
|
+
# The format of this value varies depending on whether you have [specified a
|
473
|
+
# processing location](/dlp/docs/specifying-location):
|
474
|
+
#
|
475
|
+
# + Projects scope, location specified:<br/>
|
476
|
+
# `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
477
|
+
# + Projects scope, no location specified (defaults to global):<br/>
|
478
|
+
# `projects/`<var>PROJECT_ID</var>
|
479
|
+
#
|
480
|
+
# The following example `parent` string specifies a parent project with the
|
481
|
+
# identifier `example-project`, and specifies the `europe-west3` location
|
482
|
+
# for processing data:
|
483
|
+
#
|
484
|
+
# parent=projects/example-project/locations/europe-west3
|
477
485
|
# @param location_id [::String]
|
478
486
|
# Deprecated. This field has no effect.
|
479
487
|
# @param inspect_config [::Google::Cloud::Dlp::V2::InspectConfig, ::Hash]
|
@@ -557,8 +565,21 @@ module Google
|
|
557
565
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
558
566
|
#
|
559
567
|
# @param parent [::String]
|
560
|
-
#
|
561
|
-
#
|
568
|
+
# Parent resource name.
|
569
|
+
#
|
570
|
+
# The format of this value varies depending on whether you have [specified a
|
571
|
+
# processing location](/dlp/docs/specifying-location):
|
572
|
+
#
|
573
|
+
# + Projects scope, location specified:<br/>
|
574
|
+
# `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
575
|
+
# + Projects scope, no location specified (defaults to global):<br/>
|
576
|
+
# `projects/`<var>PROJECT_ID</var>
|
577
|
+
#
|
578
|
+
# The following example `parent` string specifies a parent project with the
|
579
|
+
# identifier `example-project`, and specifies the `europe-west3` location
|
580
|
+
# for processing data:
|
581
|
+
#
|
582
|
+
# parent=projects/example-project/locations/europe-west3
|
562
583
|
# @param deidentify_config [::Google::Cloud::Dlp::V2::DeidentifyConfig, ::Hash]
|
563
584
|
# Configuration for the de-identification of the content item.
|
564
585
|
# Items specified here will override the template referenced by the
|
@@ -651,7 +672,21 @@ module Google
|
|
651
672
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
652
673
|
#
|
653
674
|
# @param parent [::String]
|
654
|
-
# Required.
|
675
|
+
# Required. Parent resource name.
|
676
|
+
#
|
677
|
+
# The format of this value varies depending on whether you have [specified a
|
678
|
+
# processing location](/dlp/docs/specifying-location):
|
679
|
+
#
|
680
|
+
# + Projects scope, location specified:<br/>
|
681
|
+
# `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
682
|
+
# + Projects scope, no location specified (defaults to global):<br/>
|
683
|
+
# `projects/`<var>PROJECT_ID</var>
|
684
|
+
#
|
685
|
+
# The following example `parent` string specifies a parent project with the
|
686
|
+
# identifier `example-project`, and specifies the `europe-west3` location
|
687
|
+
# for processing data:
|
688
|
+
#
|
689
|
+
# parent=projects/example-project/locations/europe-west3
|
655
690
|
# @param reidentify_config [::Google::Cloud::Dlp::V2::DeidentifyConfig, ::Hash]
|
656
691
|
# Configuration for the re-identification of the content item.
|
657
692
|
# This field shares the same proto message type that is used for
|
@@ -676,10 +711,11 @@ module Google
|
|
676
711
|
# @param reidentify_template_name [::String]
|
677
712
|
# Template to use. References an instance of `DeidentifyTemplate`.
|
678
713
|
# Any configuration directly specified in `reidentify_config` or
|
679
|
-
# `inspect_config` will override those set in the template.
|
680
|
-
#
|
681
|
-
#
|
682
|
-
#
|
714
|
+
# `inspect_config` will override those set in the template. The
|
715
|
+
# `DeidentifyTemplate` used must include only reversible transformations.
|
716
|
+
# Singular fields that are set in this request will replace their
|
717
|
+
# corresponding fields in the template. Repeated fields are appended.
|
718
|
+
# Singular sub-messages and groups are recursively merged.
|
683
719
|
# @param location_id [::String]
|
684
720
|
# Deprecated. This field has no effect.
|
685
721
|
#
|
@@ -749,7 +785,11 @@ module Google
|
|
749
785
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
750
786
|
#
|
751
787
|
# @param parent [::String]
|
752
|
-
# The parent resource name
|
788
|
+
# The parent resource name.
|
789
|
+
#
|
790
|
+
# The format of this value is as follows:
|
791
|
+
#
|
792
|
+
# locations/<var>LOCATION_ID</var>
|
753
793
|
# @param language_code [::String]
|
754
794
|
# BCP-47 language code for localized infoType friendly
|
755
795
|
# names. If omitted, or if localized strings are not available,
|
@@ -820,8 +860,26 @@ module Google
|
|
820
860
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
821
861
|
#
|
822
862
|
# @param parent [::String]
|
823
|
-
# Required.
|
824
|
-
#
|
863
|
+
# Required. Parent resource name.
|
864
|
+
#
|
865
|
+
# The format of this value varies depending on the scope of the request
|
866
|
+
# (project or organization) and whether you have [specified a processing
|
867
|
+
# location](/dlp/docs/specifying-location):
|
868
|
+
#
|
869
|
+
# + Projects scope, location specified:<br/>
|
870
|
+
# `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
871
|
+
# + Projects scope, no location specified (defaults to global):<br/>
|
872
|
+
# `projects/`<var>PROJECT_ID</var>
|
873
|
+
# + Organizations scope, location specified:<br/>
|
874
|
+
# `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
|
875
|
+
# + Organizations scope, no location specified (defaults to global):<br/>
|
876
|
+
# `organizations/`<var>ORG_ID</var>
|
877
|
+
#
|
878
|
+
# The following example `parent` string specifies a parent project with the
|
879
|
+
# identifier `example-project`, and specifies the `europe-west3` location
|
880
|
+
# for processing data:
|
881
|
+
#
|
882
|
+
# parent=projects/example-project/locations/europe-west3
|
825
883
|
# @param inspect_template [::Google::Cloud::Dlp::V2::InspectTemplate, ::Hash]
|
826
884
|
# Required. The InspectTemplate to create.
|
827
885
|
# @param template_id [::String]
|
@@ -897,8 +955,8 @@ module Google
|
|
897
955
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
898
956
|
#
|
899
957
|
# @param name [::String]
|
900
|
-
# Required. Resource name of organization and inspectTemplate to be updated,
|
901
|
-
#
|
958
|
+
# Required. Resource name of organization and inspectTemplate to be updated, for
|
959
|
+
# example `organizations/433245324/inspectTemplates/432452342` or
|
902
960
|
# projects/project-id/inspectTemplates/432452342.
|
903
961
|
# @param inspect_template [::Google::Cloud::Dlp::V2::InspectTemplate, ::Hash]
|
904
962
|
# New InspectTemplate value.
|
@@ -970,8 +1028,8 @@ module Google
|
|
970
1028
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
971
1029
|
#
|
972
1030
|
# @param name [::String]
|
973
|
-
# Required. Resource name of the organization and inspectTemplate to be read,
|
974
|
-
#
|
1031
|
+
# Required. Resource name of the organization and inspectTemplate to be read, for
|
1032
|
+
# example `organizations/433245324/inspectTemplates/432452342` or
|
975
1033
|
# projects/project-id/inspectTemplates/432452342.
|
976
1034
|
#
|
977
1035
|
# @yield [response, operation] Access the result along with the RPC operation
|
@@ -1039,8 +1097,26 @@ module Google
|
|
1039
1097
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1040
1098
|
#
|
1041
1099
|
# @param parent [::String]
|
1042
|
-
# Required.
|
1043
|
-
#
|
1100
|
+
# Required. Parent resource name.
|
1101
|
+
#
|
1102
|
+
# The format of this value varies depending on the scope of the request
|
1103
|
+
# (project or organization) and whether you have [specified a processing
|
1104
|
+
# location](/dlp/docs/specifying-location):
|
1105
|
+
#
|
1106
|
+
# + Projects scope, location specified:<br/>
|
1107
|
+
# `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
1108
|
+
# + Projects scope, no location specified (defaults to global):<br/>
|
1109
|
+
# `projects/`<var>PROJECT_ID</var>
|
1110
|
+
# + Organizations scope, location specified:<br/>
|
1111
|
+
# `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
|
1112
|
+
# + Organizations scope, no location specified (defaults to global):<br/>
|
1113
|
+
# `organizations/`<var>ORG_ID</var>
|
1114
|
+
#
|
1115
|
+
# The following example `parent` string specifies a parent project with the
|
1116
|
+
# identifier `example-project`, and specifies the `europe-west3` location
|
1117
|
+
# for processing data:
|
1118
|
+
#
|
1119
|
+
# parent=projects/example-project/locations/europe-west3
|
1044
1120
|
# @param page_token [::String]
|
1045
1121
|
# Page token to continue retrieval. Comes from previous call
|
1046
1122
|
# to `ListInspectTemplates`.
|
@@ -1130,9 +1206,9 @@ module Google
|
|
1130
1206
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1131
1207
|
#
|
1132
1208
|
# @param name [::String]
|
1133
|
-
# Required. Resource name of the organization and inspectTemplate to be
|
1134
|
-
#
|
1135
|
-
#
|
1209
|
+
# Required. Resource name of the organization and inspectTemplate to be deleted, for
|
1210
|
+
# example `organizations/433245324/inspectTemplates/432452342` or
|
1211
|
+
# projects/project-id/inspectTemplates/432452342.
|
1136
1212
|
#
|
1137
1213
|
# @yield [response, operation] Access the result along with the RPC operation
|
1138
1214
|
# @yieldparam response [::Google::Protobuf::Empty]
|
@@ -1201,8 +1277,26 @@ module Google
|
|
1201
1277
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1202
1278
|
#
|
1203
1279
|
# @param parent [::String]
|
1204
|
-
# Required.
|
1205
|
-
#
|
1280
|
+
# Required. Parent resource name.
|
1281
|
+
#
|
1282
|
+
# The format of this value varies depending on the scope of the request
|
1283
|
+
# (project or organization) and whether you have [specified a processing
|
1284
|
+
# location](/dlp/docs/specifying-location):
|
1285
|
+
#
|
1286
|
+
# + Projects scope, location specified:<br/>
|
1287
|
+
# `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
1288
|
+
# + Projects scope, no location specified (defaults to global):<br/>
|
1289
|
+
# `projects/`<var>PROJECT_ID</var>
|
1290
|
+
# + Organizations scope, location specified:<br/>
|
1291
|
+
# `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
|
1292
|
+
# + Organizations scope, no location specified (defaults to global):<br/>
|
1293
|
+
# `organizations/`<var>ORG_ID</var>
|
1294
|
+
#
|
1295
|
+
# The following example `parent` string specifies a parent project with the
|
1296
|
+
# identifier `example-project`, and specifies the `europe-west3` location
|
1297
|
+
# for processing data:
|
1298
|
+
#
|
1299
|
+
# parent=projects/example-project/locations/europe-west3
|
1206
1300
|
# @param deidentify_template [::Google::Cloud::Dlp::V2::DeidentifyTemplate, ::Hash]
|
1207
1301
|
# Required. The DeidentifyTemplate to create.
|
1208
1302
|
# @param template_id [::String]
|
@@ -1279,9 +1373,8 @@ module Google
|
|
1279
1373
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1280
1374
|
#
|
1281
1375
|
# @param name [::String]
|
1282
|
-
# Required. Resource name of organization and deidentify template to be
|
1283
|
-
#
|
1284
|
-
# `organizations/433245324/deidentifyTemplates/432452342` or
|
1376
|
+
# Required. Resource name of organization and deidentify template to be updated, for
|
1377
|
+
# example `organizations/433245324/deidentifyTemplates/432452342` or
|
1285
1378
|
# projects/project-id/deidentifyTemplates/432452342.
|
1286
1379
|
# @param deidentify_template [::Google::Cloud::Dlp::V2::DeidentifyTemplate, ::Hash]
|
1287
1380
|
# New DeidentifyTemplate value.
|
@@ -1354,9 +1447,9 @@ module Google
|
|
1354
1447
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1355
1448
|
#
|
1356
1449
|
# @param name [::String]
|
1357
|
-
# Required. Resource name of the organization and deidentify template to be
|
1358
|
-
#
|
1359
|
-
#
|
1450
|
+
# Required. Resource name of the organization and deidentify template to be read, for
|
1451
|
+
# example `organizations/433245324/deidentifyTemplates/432452342` or
|
1452
|
+
# projects/project-id/deidentifyTemplates/432452342.
|
1360
1453
|
#
|
1361
1454
|
# @yield [response, operation] Access the result along with the RPC operation
|
1362
1455
|
# @yieldparam response [::Google::Cloud::Dlp::V2::DeidentifyTemplate]
|
@@ -1424,8 +1517,26 @@ module Google
|
|
1424
1517
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1425
1518
|
#
|
1426
1519
|
# @param parent [::String]
|
1427
|
-
# Required.
|
1428
|
-
#
|
1520
|
+
# Required. Parent resource name.
|
1521
|
+
#
|
1522
|
+
# The format of this value varies depending on the scope of the request
|
1523
|
+
# (project or organization) and whether you have [specified a processing
|
1524
|
+
# location](/dlp/docs/specifying-location):
|
1525
|
+
#
|
1526
|
+
# + Projects scope, location specified:<br/>
|
1527
|
+
# `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
1528
|
+
# + Projects scope, no location specified (defaults to global):<br/>
|
1529
|
+
# `projects/`<var>PROJECT_ID</var>
|
1530
|
+
# + Organizations scope, location specified:<br/>
|
1531
|
+
# `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
|
1532
|
+
# + Organizations scope, no location specified (defaults to global):<br/>
|
1533
|
+
# `organizations/`<var>ORG_ID</var>
|
1534
|
+
#
|
1535
|
+
# The following example `parent` string specifies a parent project with the
|
1536
|
+
# identifier `example-project`, and specifies the `europe-west3` location
|
1537
|
+
# for processing data:
|
1538
|
+
#
|
1539
|
+
# parent=projects/example-project/locations/europe-west3
|
1429
1540
|
# @param page_token [::String]
|
1430
1541
|
# Page token to continue retrieval. Comes from previous call
|
1431
1542
|
# to `ListDeidentifyTemplates`.
|
@@ -1516,9 +1627,8 @@ module Google
|
|
1516
1627
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1517
1628
|
#
|
1518
1629
|
# @param name [::String]
|
1519
|
-
# Required. Resource name of the organization and deidentify template to be
|
1520
|
-
#
|
1521
|
-
# `organizations/433245324/deidentifyTemplates/432452342` or
|
1630
|
+
# Required. Resource name of the organization and deidentify template to be deleted,
|
1631
|
+
# for example `organizations/433245324/deidentifyTemplates/432452342` or
|
1522
1632
|
# projects/project-id/deidentifyTemplates/432452342.
|
1523
1633
|
#
|
1524
1634
|
# @yield [response, operation] Access the result along with the RPC operation
|
@@ -1587,8 +1697,21 @@ module Google
|
|
1587
1697
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1588
1698
|
#
|
1589
1699
|
# @param parent [::String]
|
1590
|
-
# Required.
|
1591
|
-
#
|
1700
|
+
# Required. Parent resource name.
|
1701
|
+
#
|
1702
|
+
# The format of this value varies depending on whether you have [specified a
|
1703
|
+
# processing location](/dlp/docs/specifying-location):
|
1704
|
+
#
|
1705
|
+
# + Projects scope, location specified:<br/>
|
1706
|
+
# `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
1707
|
+
# + Projects scope, no location specified (defaults to global):<br/>
|
1708
|
+
# `projects/`<var>PROJECT_ID</var>
|
1709
|
+
#
|
1710
|
+
# The following example `parent` string specifies a parent project with the
|
1711
|
+
# identifier `example-project`, and specifies the `europe-west3` location
|
1712
|
+
# for processing data:
|
1713
|
+
#
|
1714
|
+
# parent=projects/example-project/locations/europe-west3
|
1592
1715
|
# @param job_trigger [::Google::Cloud::Dlp::V2::JobTrigger, ::Hash]
|
1593
1716
|
# Required. The JobTrigger to create.
|
1594
1717
|
# @param trigger_id [::String]
|
@@ -1740,8 +1863,8 @@ module Google
|
|
1740
1863
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1741
1864
|
#
|
1742
1865
|
# @param name [::String]
|
1743
|
-
# Required. Resource name of the trigger to execute a hybrid inspect on, for
|
1744
|
-
#
|
1866
|
+
# Required. Resource name of the trigger to execute a hybrid inspect on, for example
|
1867
|
+
# `projects/dlp-test-project/jobTriggers/53234423`.
|
1745
1868
|
# @param hybrid_item [::Google::Cloud::Dlp::V2::HybridContentItem, ::Hash]
|
1746
1869
|
# The item to inspect.
|
1747
1870
|
#
|
@@ -1878,8 +2001,21 @@ module Google
|
|
1878
2001
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1879
2002
|
#
|
1880
2003
|
# @param parent [::String]
|
1881
|
-
# Required.
|
1882
|
-
#
|
2004
|
+
# Required. Parent resource name.
|
2005
|
+
#
|
2006
|
+
# The format of this value varies depending on whether you have [specified a
|
2007
|
+
# processing location](/dlp/docs/specifying-location):
|
2008
|
+
#
|
2009
|
+
# + Projects scope, location specified:<br/>
|
2010
|
+
# `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
2011
|
+
# + Projects scope, no location specified (defaults to global):<br/>
|
2012
|
+
# `projects/`<var>PROJECT_ID</var>
|
2013
|
+
#
|
2014
|
+
# The following example `parent` string specifies a parent project with the
|
2015
|
+
# identifier `example-project`, and specifies the `europe-west3` location
|
2016
|
+
# for processing data:
|
2017
|
+
#
|
2018
|
+
# parent=projects/example-project/locations/europe-west3
|
1883
2019
|
# @param page_token [::String]
|
1884
2020
|
# Page token to continue retrieval. Comes from previous call
|
1885
2021
|
# to ListJobTriggers. `order_by` field must not
|
@@ -2137,8 +2273,21 @@ module Google
|
|
2137
2273
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
2138
2274
|
#
|
2139
2275
|
# @param parent [::String]
|
2140
|
-
# Required.
|
2141
|
-
#
|
2276
|
+
# Required. Parent resource name.
|
2277
|
+
#
|
2278
|
+
# The format of this value varies depending on whether you have [specified a
|
2279
|
+
# processing location](/dlp/docs/specifying-location):
|
2280
|
+
#
|
2281
|
+
# + Projects scope, location specified:<br/>
|
2282
|
+
# `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
2283
|
+
# + Projects scope, no location specified (defaults to global):<br/>
|
2284
|
+
# `projects/`<var>PROJECT_ID</var>
|
2285
|
+
#
|
2286
|
+
# The following example `parent` string specifies a parent project with the
|
2287
|
+
# identifier `example-project`, and specifies the `europe-west3` location
|
2288
|
+
# for processing data:
|
2289
|
+
#
|
2290
|
+
# parent=projects/example-project/locations/europe-west3
|
2142
2291
|
# @param inspect_job [::Google::Cloud::Dlp::V2::InspectJobConfig, ::Hash]
|
2143
2292
|
# Set to control what and how to inspect.
|
2144
2293
|
# @param risk_job [::Google::Cloud::Dlp::V2::RiskAnalysisJobConfig, ::Hash]
|
@@ -2217,8 +2366,21 @@ module Google
|
|
2217
2366
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
2218
2367
|
#
|
2219
2368
|
# @param parent [::String]
|
2220
|
-
# Required.
|
2221
|
-
#
|
2369
|
+
# Required. Parent resource name.
|
2370
|
+
#
|
2371
|
+
# The format of this value varies depending on whether you have [specified a
|
2372
|
+
# processing location](/dlp/docs/specifying-location):
|
2373
|
+
#
|
2374
|
+
# + Projects scope, location specified:<br/>
|
2375
|
+
# `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
2376
|
+
# + Projects scope, no location specified (defaults to global):<br/>
|
2377
|
+
# `projects/`<var>PROJECT_ID</var>
|
2378
|
+
#
|
2379
|
+
# The following example `parent` string specifies a parent project with the
|
2380
|
+
# identifier `example-project`, and specifies the `europe-west3` location
|
2381
|
+
# for processing data:
|
2382
|
+
#
|
2383
|
+
# parent=projects/example-project/locations/europe-west3
|
2222
2384
|
# @param filter [::String]
|
2223
2385
|
# Allows filtering.
|
2224
2386
|
#
|
@@ -2546,8 +2708,26 @@ module Google
|
|
2546
2708
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
2547
2709
|
#
|
2548
2710
|
# @param parent [::String]
|
2549
|
-
# Required.
|
2550
|
-
#
|
2711
|
+
# Required. Parent resource name.
|
2712
|
+
#
|
2713
|
+
# The format of this value varies depending on the scope of the request
|
2714
|
+
# (project or organization) and whether you have [specified a processing
|
2715
|
+
# location](/dlp/docs/specifying-location):
|
2716
|
+
#
|
2717
|
+
# + Projects scope, location specified:<br/>
|
2718
|
+
# `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
2719
|
+
# + Projects scope, no location specified (defaults to global):<br/>
|
2720
|
+
# `projects/`<var>PROJECT_ID</var>
|
2721
|
+
# + Organizations scope, location specified:<br/>
|
2722
|
+
# `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
|
2723
|
+
# + Organizations scope, no location specified (defaults to global):<br/>
|
2724
|
+
# `organizations/`<var>ORG_ID</var>
|
2725
|
+
#
|
2726
|
+
# The following example `parent` string specifies a parent project with the
|
2727
|
+
# identifier `example-project`, and specifies the `europe-west3` location
|
2728
|
+
# for processing data:
|
2729
|
+
#
|
2730
|
+
# parent=projects/example-project/locations/europe-west3
|
2551
2731
|
# @param config [::Google::Cloud::Dlp::V2::StoredInfoTypeConfig, ::Hash]
|
2552
2732
|
# Required. Configuration of the storedInfoType to create.
|
2553
2733
|
# @param stored_info_type_id [::String]
|
@@ -2701,8 +2881,8 @@ module Google
|
|
2701
2881
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
2702
2882
|
#
|
2703
2883
|
# @param name [::String]
|
2704
|
-
# Required. Resource name of the organization and storedInfoType to be read,
|
2705
|
-
#
|
2884
|
+
# Required. Resource name of the organization and storedInfoType to be read, for
|
2885
|
+
# example `organizations/433245324/storedInfoTypes/432452342` or
|
2706
2886
|
# projects/project-id/storedInfoTypes/432452342.
|
2707
2887
|
#
|
2708
2888
|
# @yield [response, operation] Access the result along with the RPC operation
|
@@ -2771,8 +2951,26 @@ module Google
|
|
2771
2951
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
2772
2952
|
#
|
2773
2953
|
# @param parent [::String]
|
2774
|
-
# Required.
|
2775
|
-
#
|
2954
|
+
# Required. Parent resource name.
|
2955
|
+
#
|
2956
|
+
# The format of this value varies depending on the scope of the request
|
2957
|
+
# (project or organization) and whether you have [specified a processing
|
2958
|
+
# location](/dlp/docs/specifying-location):
|
2959
|
+
#
|
2960
|
+
# + Projects scope, location specified:<br/>
|
2961
|
+
# `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
2962
|
+
# + Projects scope, no location specified (defaults to global):<br/>
|
2963
|
+
# `projects/`<var>PROJECT_ID</var>
|
2964
|
+
# + Organizations scope, location specified:<br/>
|
2965
|
+
# `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
|
2966
|
+
# + Organizations scope, no location specified (defaults to global):<br/>
|
2967
|
+
# `organizations/`<var>ORG_ID</var>
|
2968
|
+
#
|
2969
|
+
# The following example `parent` string specifies a parent project with the
|
2970
|
+
# identifier `example-project`, and specifies the `europe-west3` location
|
2971
|
+
# for processing data:
|
2972
|
+
#
|
2973
|
+
# parent=projects/example-project/locations/europe-west3
|
2776
2974
|
# @param page_token [::String]
|
2777
2975
|
# Page token to continue retrieval. Comes from previous call
|
2778
2976
|
# to `ListStoredInfoTypes`.
|
@@ -2864,8 +3062,8 @@ module Google
|
|
2864
3062
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
2865
3063
|
#
|
2866
3064
|
# @param name [::String]
|
2867
|
-
# Required. Resource name of the organization and storedInfoType to be
|
2868
|
-
#
|
3065
|
+
# Required. Resource name of the organization and storedInfoType to be deleted, for
|
3066
|
+
# example `organizations/433245324/storedInfoTypes/432452342` or
|
2869
3067
|
# projects/project-id/storedInfoTypes/432452342.
|
2870
3068
|
#
|
2871
3069
|
# @yield [response, operation] Access the result along with the RPC operation
|
@@ -2937,8 +3135,8 @@ module Google
|
|
2937
3135
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
2938
3136
|
#
|
2939
3137
|
# @param name [::String]
|
2940
|
-
# Required. Resource name of the job to execute a hybrid inspect on, for
|
2941
|
-
#
|
3138
|
+
# Required. Resource name of the job to execute a hybrid inspect on, for example
|
3139
|
+
# `projects/dlp-test-project/dlpJob/53234423`.
|
2942
3140
|
# @param hybrid_item [::Google::Cloud::Dlp::V2::HybridContentItem, ::Hash]
|
2943
3141
|
# The item to inspect.
|
2944
3142
|
#
|
@@ -3142,7 +3340,7 @@ module Google
|
|
3142
3340
|
|
3143
3341
|
config_attr :endpoint, "dlp.googleapis.com", ::String
|
3144
3342
|
config_attr :credentials, nil do |value|
|
3145
|
-
allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
3343
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
3146
3344
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
3147
3345
|
allowed.any? { |klass| klass === value }
|
3148
3346
|
end
|