google-cloud-dlp-v2 0.4.3 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/LICENSE.md +188 -190
- data/README.md +66 -2
- data/lib/google/cloud/dlp/v2.rb +3 -0
- data/lib/google/cloud/dlp/v2/dlp_service/client.rb +132 -118
- data/lib/google/cloud/dlp/v2/dlp_service/paths.rb +11 -11
- data/lib/google/cloud/dlp/v2/version.rb +1 -1
- data/lib/google/privacy/dlp/v2/dlp_pb.rb +5 -0
- data/lib/google/privacy/dlp/v2/dlp_services_pb.rb +34 -34
- data/proto_docs/google/api/field_behavior.rb +6 -0
- data/proto_docs/google/api/resource.rb +50 -14
- data/proto_docs/google/privacy/dlp/v2/dlp.rb +39 -19
- data/proto_docs/google/privacy/dlp/v2/storage.rb +16 -12
- data/proto_docs/google/protobuf/any.rb +5 -2
- data/proto_docs/google/protobuf/timestamp.rb +10 -1
- metadata +9 -7
data/lib/google/cloud/dlp/v2.rb
CHANGED
@@ -68,7 +68,7 @@ module Google
|
|
68
68
|
parent_config = while namespace.any?
|
69
69
|
parent_name = namespace.join "::"
|
70
70
|
parent_const = const_get parent_name
|
71
|
-
break parent_const.configure if parent_const
|
71
|
+
break parent_const.configure if parent_const.respond_to? :configure
|
72
72
|
namespace.pop
|
73
73
|
end
|
74
74
|
default_config = Client::Configuration.new parent_config
|
@@ -76,41 +76,41 @@ module Google
|
|
76
76
|
default_config.rpcs.inspect_content.timeout = 300.0
|
77
77
|
default_config.rpcs.inspect_content.retry_policy = {
|
78
78
|
initial_delay: 0.1,
|
79
|
-
|
80
|
-
|
81
|
-
|
79
|
+
max_delay: 60.0,
|
80
|
+
multiplier: 1.3,
|
81
|
+
retry_codes: [14, 4]
|
82
82
|
}
|
83
83
|
|
84
84
|
default_config.rpcs.redact_image.timeout = 300.0
|
85
85
|
default_config.rpcs.redact_image.retry_policy = {
|
86
86
|
initial_delay: 0.1,
|
87
|
-
|
88
|
-
|
89
|
-
|
87
|
+
max_delay: 60.0,
|
88
|
+
multiplier: 1.3,
|
89
|
+
retry_codes: [14, 4]
|
90
90
|
}
|
91
91
|
|
92
92
|
default_config.rpcs.deidentify_content.timeout = 300.0
|
93
93
|
default_config.rpcs.deidentify_content.retry_policy = {
|
94
94
|
initial_delay: 0.1,
|
95
|
-
|
96
|
-
|
97
|
-
|
95
|
+
max_delay: 60.0,
|
96
|
+
multiplier: 1.3,
|
97
|
+
retry_codes: [14, 4]
|
98
98
|
}
|
99
99
|
|
100
100
|
default_config.rpcs.reidentify_content.timeout = 300.0
|
101
101
|
default_config.rpcs.reidentify_content.retry_policy = {
|
102
102
|
initial_delay: 0.1,
|
103
|
-
|
104
|
-
|
105
|
-
|
103
|
+
max_delay: 60.0,
|
104
|
+
multiplier: 1.3,
|
105
|
+
retry_codes: [14, 4]
|
106
106
|
}
|
107
107
|
|
108
108
|
default_config.rpcs.list_info_types.timeout = 300.0
|
109
109
|
default_config.rpcs.list_info_types.retry_policy = {
|
110
110
|
initial_delay: 0.1,
|
111
|
-
|
112
|
-
|
113
|
-
|
111
|
+
max_delay: 60.0,
|
112
|
+
multiplier: 1.3,
|
113
|
+
retry_codes: [14, 4]
|
114
114
|
}
|
115
115
|
|
116
116
|
default_config.rpcs.create_inspect_template.timeout = 300.0
|
@@ -120,25 +120,25 @@ module Google
|
|
120
120
|
default_config.rpcs.get_inspect_template.timeout = 300.0
|
121
121
|
default_config.rpcs.get_inspect_template.retry_policy = {
|
122
122
|
initial_delay: 0.1,
|
123
|
-
|
124
|
-
|
125
|
-
|
123
|
+
max_delay: 60.0,
|
124
|
+
multiplier: 1.3,
|
125
|
+
retry_codes: [14, 4]
|
126
126
|
}
|
127
127
|
|
128
128
|
default_config.rpcs.list_inspect_templates.timeout = 300.0
|
129
129
|
default_config.rpcs.list_inspect_templates.retry_policy = {
|
130
130
|
initial_delay: 0.1,
|
131
|
-
|
132
|
-
|
133
|
-
|
131
|
+
max_delay: 60.0,
|
132
|
+
multiplier: 1.3,
|
133
|
+
retry_codes: [14, 4]
|
134
134
|
}
|
135
135
|
|
136
136
|
default_config.rpcs.delete_inspect_template.timeout = 300.0
|
137
137
|
default_config.rpcs.delete_inspect_template.retry_policy = {
|
138
138
|
initial_delay: 0.1,
|
139
|
-
|
140
|
-
|
141
|
-
|
139
|
+
max_delay: 60.0,
|
140
|
+
multiplier: 1.3,
|
141
|
+
retry_codes: [14, 4]
|
142
142
|
}
|
143
143
|
|
144
144
|
default_config.rpcs.create_deidentify_template.timeout = 300.0
|
@@ -148,25 +148,25 @@ module Google
|
|
148
148
|
default_config.rpcs.get_deidentify_template.timeout = 300.0
|
149
149
|
default_config.rpcs.get_deidentify_template.retry_policy = {
|
150
150
|
initial_delay: 0.1,
|
151
|
-
|
152
|
-
|
153
|
-
|
151
|
+
max_delay: 60.0,
|
152
|
+
multiplier: 1.3,
|
153
|
+
retry_codes: [14, 4]
|
154
154
|
}
|
155
155
|
|
156
156
|
default_config.rpcs.list_deidentify_templates.timeout = 300.0
|
157
157
|
default_config.rpcs.list_deidentify_templates.retry_policy = {
|
158
158
|
initial_delay: 0.1,
|
159
|
-
|
160
|
-
|
161
|
-
|
159
|
+
max_delay: 60.0,
|
160
|
+
multiplier: 1.3,
|
161
|
+
retry_codes: [14, 4]
|
162
162
|
}
|
163
163
|
|
164
164
|
default_config.rpcs.delete_deidentify_template.timeout = 300.0
|
165
165
|
default_config.rpcs.delete_deidentify_template.retry_policy = {
|
166
166
|
initial_delay: 0.1,
|
167
|
-
|
168
|
-
|
169
|
-
|
167
|
+
max_delay: 60.0,
|
168
|
+
multiplier: 1.3,
|
169
|
+
retry_codes: [14, 4]
|
170
170
|
}
|
171
171
|
|
172
172
|
default_config.rpcs.create_job_trigger.timeout = 300.0
|
@@ -178,25 +178,25 @@ module Google
|
|
178
178
|
default_config.rpcs.get_job_trigger.timeout = 300.0
|
179
179
|
default_config.rpcs.get_job_trigger.retry_policy = {
|
180
180
|
initial_delay: 0.1,
|
181
|
-
|
182
|
-
|
183
|
-
|
181
|
+
max_delay: 60.0,
|
182
|
+
multiplier: 1.3,
|
183
|
+
retry_codes: [14, 4]
|
184
184
|
}
|
185
185
|
|
186
186
|
default_config.rpcs.list_job_triggers.timeout = 300.0
|
187
187
|
default_config.rpcs.list_job_triggers.retry_policy = {
|
188
188
|
initial_delay: 0.1,
|
189
|
-
|
190
|
-
|
191
|
-
|
189
|
+
max_delay: 60.0,
|
190
|
+
multiplier: 1.3,
|
191
|
+
retry_codes: [14, 4]
|
192
192
|
}
|
193
193
|
|
194
194
|
default_config.rpcs.delete_job_trigger.timeout = 300.0
|
195
195
|
default_config.rpcs.delete_job_trigger.retry_policy = {
|
196
196
|
initial_delay: 0.1,
|
197
|
-
|
198
|
-
|
199
|
-
|
197
|
+
max_delay: 60.0,
|
198
|
+
multiplier: 1.3,
|
199
|
+
retry_codes: [14, 4]
|
200
200
|
}
|
201
201
|
|
202
202
|
default_config.rpcs.activate_job_trigger.timeout = 300.0
|
@@ -206,25 +206,25 @@ module Google
|
|
206
206
|
default_config.rpcs.list_dlp_jobs.timeout = 300.0
|
207
207
|
default_config.rpcs.list_dlp_jobs.retry_policy = {
|
208
208
|
initial_delay: 0.1,
|
209
|
-
|
210
|
-
|
211
|
-
|
209
|
+
max_delay: 60.0,
|
210
|
+
multiplier: 1.3,
|
211
|
+
retry_codes: [14, 4]
|
212
212
|
}
|
213
213
|
|
214
214
|
default_config.rpcs.get_dlp_job.timeout = 300.0
|
215
215
|
default_config.rpcs.get_dlp_job.retry_policy = {
|
216
216
|
initial_delay: 0.1,
|
217
|
-
|
218
|
-
|
219
|
-
|
217
|
+
max_delay: 60.0,
|
218
|
+
multiplier: 1.3,
|
219
|
+
retry_codes: [14, 4]
|
220
220
|
}
|
221
221
|
|
222
222
|
default_config.rpcs.delete_dlp_job.timeout = 300.0
|
223
223
|
default_config.rpcs.delete_dlp_job.retry_policy = {
|
224
224
|
initial_delay: 0.1,
|
225
|
-
|
226
|
-
|
227
|
-
|
225
|
+
max_delay: 60.0,
|
226
|
+
multiplier: 1.3,
|
227
|
+
retry_codes: [14, 4]
|
228
228
|
}
|
229
229
|
|
230
230
|
default_config.rpcs.cancel_dlp_job.timeout = 300.0
|
@@ -236,25 +236,25 @@ module Google
|
|
236
236
|
default_config.rpcs.get_stored_info_type.timeout = 300.0
|
237
237
|
default_config.rpcs.get_stored_info_type.retry_policy = {
|
238
238
|
initial_delay: 0.1,
|
239
|
-
|
240
|
-
|
241
|
-
|
239
|
+
max_delay: 60.0,
|
240
|
+
multiplier: 1.3,
|
241
|
+
retry_codes: [14, 4]
|
242
242
|
}
|
243
243
|
|
244
244
|
default_config.rpcs.list_stored_info_types.timeout = 300.0
|
245
245
|
default_config.rpcs.list_stored_info_types.retry_policy = {
|
246
246
|
initial_delay: 0.1,
|
247
|
-
|
248
|
-
|
249
|
-
|
247
|
+
max_delay: 60.0,
|
248
|
+
multiplier: 1.3,
|
249
|
+
retry_codes: [14, 4]
|
250
250
|
}
|
251
251
|
|
252
252
|
default_config.rpcs.delete_stored_info_type.timeout = 300.0
|
253
253
|
default_config.rpcs.delete_stored_info_type.retry_policy = {
|
254
254
|
initial_delay: 0.1,
|
255
|
-
|
256
|
-
|
257
|
-
|
255
|
+
max_delay: 60.0,
|
256
|
+
multiplier: 1.3,
|
257
|
+
retry_codes: [14, 4]
|
258
258
|
}
|
259
259
|
|
260
260
|
default_config.rpcs.hybrid_inspect_dlp_job.timeout = 300.0
|
@@ -322,7 +322,13 @@ module Google
|
|
322
322
|
|
323
323
|
# Create credentials
|
324
324
|
credentials = @config.credentials
|
325
|
-
|
325
|
+
# Use self-signed JWT if the scope and endpoint are unchanged from default,
|
326
|
+
# but only if the default endpoint does not have a region prefix.
|
327
|
+
enable_self_signed_jwt = @config.scope == Client.configure.scope &&
|
328
|
+
@config.endpoint == Client.configure.endpoint &&
|
329
|
+
!@config.endpoint.split(".").first.include?("-")
|
330
|
+
credentials ||= Credentials.default scope: @config.scope,
|
331
|
+
enable_self_signed_jwt: enable_self_signed_jwt
|
326
332
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
327
333
|
credentials = Credentials.new credentials, scope: @config.scope
|
328
334
|
end
|
@@ -370,7 +376,8 @@ module Google
|
|
370
376
|
# Parent resource name.
|
371
377
|
#
|
372
378
|
# The format of this value varies depending on whether you have [specified a
|
373
|
-
# processing
|
379
|
+
# processing
|
380
|
+
# location](https://cloud.google.com/dlp/docs/specifying-location):
|
374
381
|
#
|
375
382
|
# + Projects scope, location specified:<br/>
|
376
383
|
# `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
@@ -470,7 +477,8 @@ module Google
|
|
470
477
|
# Parent resource name.
|
471
478
|
#
|
472
479
|
# The format of this value varies depending on whether you have [specified a
|
473
|
-
# processing
|
480
|
+
# processing
|
481
|
+
# location](https://cloud.google.com/dlp/docs/specifying-location):
|
474
482
|
#
|
475
483
|
# + Projects scope, location specified:<br/>
|
476
484
|
# `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
@@ -568,7 +576,8 @@ module Google
|
|
568
576
|
# Parent resource name.
|
569
577
|
#
|
570
578
|
# The format of this value varies depending on whether you have [specified a
|
571
|
-
# processing
|
579
|
+
# processing
|
580
|
+
# location](https://cloud.google.com/dlp/docs/specifying-location):
|
572
581
|
#
|
573
582
|
# + Projects scope, location specified:<br/>
|
574
583
|
# `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
@@ -675,7 +684,8 @@ module Google
|
|
675
684
|
# Required. Parent resource name.
|
676
685
|
#
|
677
686
|
# The format of this value varies depending on whether you have [specified a
|
678
|
-
# processing
|
687
|
+
# processing
|
688
|
+
# location](https://cloud.google.com/dlp/docs/specifying-location):
|
679
689
|
#
|
680
690
|
# + Projects scope, location specified:<br/>
|
681
691
|
# `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
@@ -864,7 +874,7 @@ module Google
|
|
864
874
|
#
|
865
875
|
# The format of this value varies depending on the scope of the request
|
866
876
|
# (project or organization) and whether you have [specified a processing
|
867
|
-
# location](/dlp/docs/specifying-location):
|
877
|
+
# location](https://cloud.google.com/dlp/docs/specifying-location):
|
868
878
|
#
|
869
879
|
# + Projects scope, location specified:<br/>
|
870
880
|
# `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
@@ -885,7 +895,7 @@ module Google
|
|
885
895
|
# @param template_id [::String]
|
886
896
|
# The template id can contain uppercase and lowercase letters,
|
887
897
|
# numbers, and hyphens; that is, it must match the regular
|
888
|
-
# expression: `[a-zA-Z
|
898
|
+
# expression: `[a-zA-Z\d-_]+`. The maximum length is 100
|
889
899
|
# characters. Can be empty to allow the system to generate one.
|
890
900
|
# @param location_id [::String]
|
891
901
|
# Deprecated. This field has no effect.
|
@@ -1101,7 +1111,7 @@ module Google
|
|
1101
1111
|
#
|
1102
1112
|
# The format of this value varies depending on the scope of the request
|
1103
1113
|
# (project or organization) and whether you have [specified a processing
|
1104
|
-
# location](/dlp/docs/specifying-location):
|
1114
|
+
# location](https://cloud.google.com/dlp/docs/specifying-location):
|
1105
1115
|
#
|
1106
1116
|
# + Projects scope, location specified:<br/>
|
1107
1117
|
# `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
@@ -1281,7 +1291,7 @@ module Google
|
|
1281
1291
|
#
|
1282
1292
|
# The format of this value varies depending on the scope of the request
|
1283
1293
|
# (project or organization) and whether you have [specified a processing
|
1284
|
-
# location](/dlp/docs/specifying-location):
|
1294
|
+
# location](https://cloud.google.com/dlp/docs/specifying-location):
|
1285
1295
|
#
|
1286
1296
|
# + Projects scope, location specified:<br/>
|
1287
1297
|
# `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
@@ -1302,7 +1312,7 @@ module Google
|
|
1302
1312
|
# @param template_id [::String]
|
1303
1313
|
# The template id can contain uppercase and lowercase letters,
|
1304
1314
|
# numbers, and hyphens; that is, it must match the regular
|
1305
|
-
# expression: `[a-zA-Z
|
1315
|
+
# expression: `[a-zA-Z\d-_]+`. The maximum length is 100
|
1306
1316
|
# characters. Can be empty to allow the system to generate one.
|
1307
1317
|
# @param location_id [::String]
|
1308
1318
|
# Deprecated. This field has no effect.
|
@@ -1521,7 +1531,7 @@ module Google
|
|
1521
1531
|
#
|
1522
1532
|
# The format of this value varies depending on the scope of the request
|
1523
1533
|
# (project or organization) and whether you have [specified a processing
|
1524
|
-
# location](/dlp/docs/specifying-location):
|
1534
|
+
# location](https://cloud.google.com/dlp/docs/specifying-location):
|
1525
1535
|
#
|
1526
1536
|
# + Projects scope, location specified:<br/>
|
1527
1537
|
# `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
@@ -1700,7 +1710,8 @@ module Google
|
|
1700
1710
|
# Required. Parent resource name.
|
1701
1711
|
#
|
1702
1712
|
# The format of this value varies depending on whether you have [specified a
|
1703
|
-
# processing
|
1713
|
+
# processing
|
1714
|
+
# location](https://cloud.google.com/dlp/docs/specifying-location):
|
1704
1715
|
#
|
1705
1716
|
# + Projects scope, location specified:<br/>
|
1706
1717
|
# `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
@@ -1717,7 +1728,7 @@ module Google
|
|
1717
1728
|
# @param trigger_id [::String]
|
1718
1729
|
# The trigger id can contain uppercase and lowercase letters,
|
1719
1730
|
# numbers, and hyphens; that is, it must match the regular
|
1720
|
-
# expression: `[a-zA-Z
|
1731
|
+
# expression: `[a-zA-Z\d-_]+`. The maximum length is 100
|
1721
1732
|
# characters. Can be empty to allow the system to generate one.
|
1722
1733
|
# @param location_id [::String]
|
1723
1734
|
# Deprecated. This field has no effect.
|
@@ -2004,7 +2015,8 @@ module Google
|
|
2004
2015
|
# Required. Parent resource name.
|
2005
2016
|
#
|
2006
2017
|
# The format of this value varies depending on whether you have [specified a
|
2007
|
-
# processing
|
2018
|
+
# processing
|
2019
|
+
# location](https://cloud.google.com/dlp/docs/specifying-location):
|
2008
2020
|
#
|
2009
2021
|
# + Projects scope, location specified:<br/>
|
2010
2022
|
# `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
@@ -2276,7 +2288,8 @@ module Google
|
|
2276
2288
|
# Required. Parent resource name.
|
2277
2289
|
#
|
2278
2290
|
# The format of this value varies depending on whether you have [specified a
|
2279
|
-
# processing
|
2291
|
+
# processing
|
2292
|
+
# location](https://cloud.google.com/dlp/docs/specifying-location):
|
2280
2293
|
#
|
2281
2294
|
# + Projects scope, location specified:<br/>
|
2282
2295
|
# `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
@@ -2295,7 +2308,7 @@ module Google
|
|
2295
2308
|
# @param job_id [::String]
|
2296
2309
|
# The job id can contain uppercase and lowercase letters,
|
2297
2310
|
# numbers, and hyphens; that is, it must match the regular
|
2298
|
-
# expression: `[a-zA-Z
|
2311
|
+
# expression: `[a-zA-Z\d-_]+`. The maximum length is 100
|
2299
2312
|
# characters. Can be empty to allow the system to generate one.
|
2300
2313
|
# @param location_id [::String]
|
2301
2314
|
# Deprecated. This field has no effect.
|
@@ -2369,7 +2382,8 @@ module Google
|
|
2369
2382
|
# Required. Parent resource name.
|
2370
2383
|
#
|
2371
2384
|
# The format of this value varies depending on whether you have [specified a
|
2372
|
-
# processing
|
2385
|
+
# processing
|
2386
|
+
# location](https://cloud.google.com/dlp/docs/specifying-location):
|
2373
2387
|
#
|
2374
2388
|
# + Projects scope, location specified:<br/>
|
2375
2389
|
# `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
@@ -2712,7 +2726,7 @@ module Google
|
|
2712
2726
|
#
|
2713
2727
|
# The format of this value varies depending on the scope of the request
|
2714
2728
|
# (project or organization) and whether you have [specified a processing
|
2715
|
-
# location](/dlp/docs/specifying-location):
|
2729
|
+
# location](https://cloud.google.com/dlp/docs/specifying-location):
|
2716
2730
|
#
|
2717
2731
|
# + Projects scope, location specified:<br/>
|
2718
2732
|
# `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
@@ -2733,7 +2747,7 @@ module Google
|
|
2733
2747
|
# @param stored_info_type_id [::String]
|
2734
2748
|
# The storedInfoType ID can contain uppercase and lowercase letters,
|
2735
2749
|
# numbers, and hyphens; that is, it must match the regular
|
2736
|
-
# expression: `[a-zA-Z
|
2750
|
+
# expression: `[a-zA-Z\d-_]+`. The maximum length is 100
|
2737
2751
|
# characters. Can be empty to allow the system to generate one.
|
2738
2752
|
# @param location_id [::String]
|
2739
2753
|
# Deprecated. This field has no effect.
|
@@ -2955,7 +2969,7 @@ module Google
|
|
2955
2969
|
#
|
2956
2970
|
# The format of this value varies depending on the scope of the request
|
2957
2971
|
# (project or organization) and whether you have [specified a processing
|
2958
|
-
# location](/dlp/docs/specifying-location):
|
2972
|
+
# location](https://cloud.google.com/dlp/docs/specifying-location):
|
2959
2973
|
#
|
2960
2974
|
# + Projects scope, location specified:<br/>
|
2961
2975
|
# `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
@@ -3347,7 +3361,7 @@ module Google
|
|
3347
3361
|
config_attr :scope, nil, ::String, ::Array, nil
|
3348
3362
|
config_attr :lib_name, nil, ::String, nil
|
3349
3363
|
config_attr :lib_version, nil, ::String, nil
|
3350
|
-
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
|
3364
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
|
3351
3365
|
config_attr :interceptors, nil, ::Array, nil
|
3352
3366
|
config_attr :timeout, nil, ::Numeric, nil
|
3353
3367
|
config_attr :metadata, nil, ::Hash, nil
|
@@ -3368,7 +3382,7 @@ module Google
|
|
3368
3382
|
def rpcs
|
3369
3383
|
@rpcs ||= begin
|
3370
3384
|
parent_rpcs = nil
|
3371
|
-
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config
|
3385
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
|
3372
3386
|
Rpcs.new parent_rpcs
|
3373
3387
|
end
|
3374
3388
|
end
|
@@ -3380,7 +3394,7 @@ module Google
|
|
3380
3394
|
# Each configuration object is of type `Gapic::Config::Method` and includes
|
3381
3395
|
# the following configuration fields:
|
3382
3396
|
#
|
3383
|
-
# * `timeout` (*type:* `Numeric`) - The call timeout in
|
3397
|
+
# * `timeout` (*type:* `Numeric`) - The call timeout in seconds
|
3384
3398
|
# * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
|
3385
3399
|
# * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
|
3386
3400
|
# include the following keys:
|
@@ -3564,73 +3578,73 @@ module Google
|
|
3564
3578
|
|
3565
3579
|
# @private
|
3566
3580
|
def initialize parent_rpcs = nil
|
3567
|
-
inspect_content_config = parent_rpcs
|
3581
|
+
inspect_content_config = parent_rpcs.inspect_content if parent_rpcs.respond_to? :inspect_content
|
3568
3582
|
@inspect_content = ::Gapic::Config::Method.new inspect_content_config
|
3569
|
-
redact_image_config = parent_rpcs
|
3583
|
+
redact_image_config = parent_rpcs.redact_image if parent_rpcs.respond_to? :redact_image
|
3570
3584
|
@redact_image = ::Gapic::Config::Method.new redact_image_config
|
3571
|
-
deidentify_content_config = parent_rpcs
|
3585
|
+
deidentify_content_config = parent_rpcs.deidentify_content if parent_rpcs.respond_to? :deidentify_content
|
3572
3586
|
@deidentify_content = ::Gapic::Config::Method.new deidentify_content_config
|
3573
|
-
reidentify_content_config = parent_rpcs
|
3587
|
+
reidentify_content_config = parent_rpcs.reidentify_content if parent_rpcs.respond_to? :reidentify_content
|
3574
3588
|
@reidentify_content = ::Gapic::Config::Method.new reidentify_content_config
|
3575
|
-
list_info_types_config = parent_rpcs
|
3589
|
+
list_info_types_config = parent_rpcs.list_info_types if parent_rpcs.respond_to? :list_info_types
|
3576
3590
|
@list_info_types = ::Gapic::Config::Method.new list_info_types_config
|
3577
|
-
create_inspect_template_config = parent_rpcs
|
3591
|
+
create_inspect_template_config = parent_rpcs.create_inspect_template if parent_rpcs.respond_to? :create_inspect_template
|
3578
3592
|
@create_inspect_template = ::Gapic::Config::Method.new create_inspect_template_config
|
3579
|
-
update_inspect_template_config = parent_rpcs
|
3593
|
+
update_inspect_template_config = parent_rpcs.update_inspect_template if parent_rpcs.respond_to? :update_inspect_template
|
3580
3594
|
@update_inspect_template = ::Gapic::Config::Method.new update_inspect_template_config
|
3581
|
-
get_inspect_template_config = parent_rpcs
|
3595
|
+
get_inspect_template_config = parent_rpcs.get_inspect_template if parent_rpcs.respond_to? :get_inspect_template
|
3582
3596
|
@get_inspect_template = ::Gapic::Config::Method.new get_inspect_template_config
|
3583
|
-
list_inspect_templates_config = parent_rpcs
|
3597
|
+
list_inspect_templates_config = parent_rpcs.list_inspect_templates if parent_rpcs.respond_to? :list_inspect_templates
|
3584
3598
|
@list_inspect_templates = ::Gapic::Config::Method.new list_inspect_templates_config
|
3585
|
-
delete_inspect_template_config = parent_rpcs
|
3599
|
+
delete_inspect_template_config = parent_rpcs.delete_inspect_template if parent_rpcs.respond_to? :delete_inspect_template
|
3586
3600
|
@delete_inspect_template = ::Gapic::Config::Method.new delete_inspect_template_config
|
3587
|
-
create_deidentify_template_config = parent_rpcs
|
3601
|
+
create_deidentify_template_config = parent_rpcs.create_deidentify_template if parent_rpcs.respond_to? :create_deidentify_template
|
3588
3602
|
@create_deidentify_template = ::Gapic::Config::Method.new create_deidentify_template_config
|
3589
|
-
update_deidentify_template_config = parent_rpcs
|
3603
|
+
update_deidentify_template_config = parent_rpcs.update_deidentify_template if parent_rpcs.respond_to? :update_deidentify_template
|
3590
3604
|
@update_deidentify_template = ::Gapic::Config::Method.new update_deidentify_template_config
|
3591
|
-
get_deidentify_template_config = parent_rpcs
|
3605
|
+
get_deidentify_template_config = parent_rpcs.get_deidentify_template if parent_rpcs.respond_to? :get_deidentify_template
|
3592
3606
|
@get_deidentify_template = ::Gapic::Config::Method.new get_deidentify_template_config
|
3593
|
-
list_deidentify_templates_config = parent_rpcs
|
3607
|
+
list_deidentify_templates_config = parent_rpcs.list_deidentify_templates if parent_rpcs.respond_to? :list_deidentify_templates
|
3594
3608
|
@list_deidentify_templates = ::Gapic::Config::Method.new list_deidentify_templates_config
|
3595
|
-
delete_deidentify_template_config = parent_rpcs
|
3609
|
+
delete_deidentify_template_config = parent_rpcs.delete_deidentify_template if parent_rpcs.respond_to? :delete_deidentify_template
|
3596
3610
|
@delete_deidentify_template = ::Gapic::Config::Method.new delete_deidentify_template_config
|
3597
|
-
create_job_trigger_config = parent_rpcs
|
3611
|
+
create_job_trigger_config = parent_rpcs.create_job_trigger if parent_rpcs.respond_to? :create_job_trigger
|
3598
3612
|
@create_job_trigger = ::Gapic::Config::Method.new create_job_trigger_config
|
3599
|
-
update_job_trigger_config = parent_rpcs
|
3613
|
+
update_job_trigger_config = parent_rpcs.update_job_trigger if parent_rpcs.respond_to? :update_job_trigger
|
3600
3614
|
@update_job_trigger = ::Gapic::Config::Method.new update_job_trigger_config
|
3601
|
-
hybrid_inspect_job_trigger_config = parent_rpcs
|
3615
|
+
hybrid_inspect_job_trigger_config = parent_rpcs.hybrid_inspect_job_trigger if parent_rpcs.respond_to? :hybrid_inspect_job_trigger
|
3602
3616
|
@hybrid_inspect_job_trigger = ::Gapic::Config::Method.new hybrid_inspect_job_trigger_config
|
3603
|
-
get_job_trigger_config = parent_rpcs
|
3617
|
+
get_job_trigger_config = parent_rpcs.get_job_trigger if parent_rpcs.respond_to? :get_job_trigger
|
3604
3618
|
@get_job_trigger = ::Gapic::Config::Method.new get_job_trigger_config
|
3605
|
-
list_job_triggers_config = parent_rpcs
|
3619
|
+
list_job_triggers_config = parent_rpcs.list_job_triggers if parent_rpcs.respond_to? :list_job_triggers
|
3606
3620
|
@list_job_triggers = ::Gapic::Config::Method.new list_job_triggers_config
|
3607
|
-
delete_job_trigger_config = parent_rpcs
|
3621
|
+
delete_job_trigger_config = parent_rpcs.delete_job_trigger if parent_rpcs.respond_to? :delete_job_trigger
|
3608
3622
|
@delete_job_trigger = ::Gapic::Config::Method.new delete_job_trigger_config
|
3609
|
-
activate_job_trigger_config = parent_rpcs
|
3623
|
+
activate_job_trigger_config = parent_rpcs.activate_job_trigger if parent_rpcs.respond_to? :activate_job_trigger
|
3610
3624
|
@activate_job_trigger = ::Gapic::Config::Method.new activate_job_trigger_config
|
3611
|
-
create_dlp_job_config = parent_rpcs
|
3625
|
+
create_dlp_job_config = parent_rpcs.create_dlp_job if parent_rpcs.respond_to? :create_dlp_job
|
3612
3626
|
@create_dlp_job = ::Gapic::Config::Method.new create_dlp_job_config
|
3613
|
-
list_dlp_jobs_config = parent_rpcs
|
3627
|
+
list_dlp_jobs_config = parent_rpcs.list_dlp_jobs if parent_rpcs.respond_to? :list_dlp_jobs
|
3614
3628
|
@list_dlp_jobs = ::Gapic::Config::Method.new list_dlp_jobs_config
|
3615
|
-
get_dlp_job_config = parent_rpcs
|
3629
|
+
get_dlp_job_config = parent_rpcs.get_dlp_job if parent_rpcs.respond_to? :get_dlp_job
|
3616
3630
|
@get_dlp_job = ::Gapic::Config::Method.new get_dlp_job_config
|
3617
|
-
delete_dlp_job_config = parent_rpcs
|
3631
|
+
delete_dlp_job_config = parent_rpcs.delete_dlp_job if parent_rpcs.respond_to? :delete_dlp_job
|
3618
3632
|
@delete_dlp_job = ::Gapic::Config::Method.new delete_dlp_job_config
|
3619
|
-
cancel_dlp_job_config = parent_rpcs
|
3633
|
+
cancel_dlp_job_config = parent_rpcs.cancel_dlp_job if parent_rpcs.respond_to? :cancel_dlp_job
|
3620
3634
|
@cancel_dlp_job = ::Gapic::Config::Method.new cancel_dlp_job_config
|
3621
|
-
create_stored_info_type_config = parent_rpcs
|
3635
|
+
create_stored_info_type_config = parent_rpcs.create_stored_info_type if parent_rpcs.respond_to? :create_stored_info_type
|
3622
3636
|
@create_stored_info_type = ::Gapic::Config::Method.new create_stored_info_type_config
|
3623
|
-
update_stored_info_type_config = parent_rpcs
|
3637
|
+
update_stored_info_type_config = parent_rpcs.update_stored_info_type if parent_rpcs.respond_to? :update_stored_info_type
|
3624
3638
|
@update_stored_info_type = ::Gapic::Config::Method.new update_stored_info_type_config
|
3625
|
-
get_stored_info_type_config = parent_rpcs
|
3639
|
+
get_stored_info_type_config = parent_rpcs.get_stored_info_type if parent_rpcs.respond_to? :get_stored_info_type
|
3626
3640
|
@get_stored_info_type = ::Gapic::Config::Method.new get_stored_info_type_config
|
3627
|
-
list_stored_info_types_config = parent_rpcs
|
3641
|
+
list_stored_info_types_config = parent_rpcs.list_stored_info_types if parent_rpcs.respond_to? :list_stored_info_types
|
3628
3642
|
@list_stored_info_types = ::Gapic::Config::Method.new list_stored_info_types_config
|
3629
|
-
delete_stored_info_type_config = parent_rpcs
|
3643
|
+
delete_stored_info_type_config = parent_rpcs.delete_stored_info_type if parent_rpcs.respond_to? :delete_stored_info_type
|
3630
3644
|
@delete_stored_info_type = ::Gapic::Config::Method.new delete_stored_info_type_config
|
3631
|
-
hybrid_inspect_dlp_job_config = parent_rpcs
|
3645
|
+
hybrid_inspect_dlp_job_config = parent_rpcs.hybrid_inspect_dlp_job if parent_rpcs.respond_to? :hybrid_inspect_dlp_job
|
3632
3646
|
@hybrid_inspect_dlp_job = ::Gapic::Config::Method.new hybrid_inspect_dlp_job_config
|
3633
|
-
finish_dlp_job_config = parent_rpcs
|
3647
|
+
finish_dlp_job_config = parent_rpcs.finish_dlp_job if parent_rpcs.respond_to? :finish_dlp_job
|
3634
3648
|
@finish_dlp_job = ::Gapic::Config::Method.new finish_dlp_job_config
|
3635
3649
|
|
3636
3650
|
yield self if block_given?
|