google-cloud-dlp-v2 0.5.0 → 0.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +8 -8
- data/LICENSE.md +188 -190
- data/README.md +67 -3
- data/lib/google/cloud/dlp/v2.rb +3 -0
- data/lib/google/cloud/dlp/v2/dlp_service/client.rb +66 -120
- data/lib/google/cloud/dlp/v2/dlp_service/paths.rb +11 -11
- data/lib/google/cloud/dlp/v2/version.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +12 -0
- data/proto_docs/google/protobuf/any.rb +5 -2
- data/proto_docs/google/protobuf/timestamp.rb +10 -1
- data/proto_docs/google/type/date.rb +14 -11
- data/proto_docs/google/type/dayofweek.rb +9 -9
- data/proto_docs/google/type/timeofday.rb +2 -1
- metadata +19 -11
data/lib/google/cloud/dlp/v2.rb
CHANGED
@@ -68,49 +68,34 @@ 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
|
75
75
|
|
76
76
|
default_config.rpcs.inspect_content.timeout = 300.0
|
77
77
|
default_config.rpcs.inspect_content.retry_policy = {
|
78
|
-
initial_delay: 0.1,
|
79
|
-
max_delay: 60.0,
|
80
|
-
multiplier: 1.3,
|
81
|
-
retry_codes: [14, 4]
|
78
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
82
79
|
}
|
83
80
|
|
84
81
|
default_config.rpcs.redact_image.timeout = 300.0
|
85
82
|
default_config.rpcs.redact_image.retry_policy = {
|
86
|
-
initial_delay: 0.1,
|
87
|
-
max_delay: 60.0,
|
88
|
-
multiplier: 1.3,
|
89
|
-
retry_codes: [14, 4]
|
83
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
90
84
|
}
|
91
85
|
|
92
86
|
default_config.rpcs.deidentify_content.timeout = 300.0
|
93
87
|
default_config.rpcs.deidentify_content.retry_policy = {
|
94
|
-
initial_delay: 0.1,
|
95
|
-
max_delay: 60.0,
|
96
|
-
multiplier: 1.3,
|
97
|
-
retry_codes: [14, 4]
|
88
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
98
89
|
}
|
99
90
|
|
100
91
|
default_config.rpcs.reidentify_content.timeout = 300.0
|
101
92
|
default_config.rpcs.reidentify_content.retry_policy = {
|
102
|
-
initial_delay: 0.1,
|
103
|
-
max_delay: 60.0,
|
104
|
-
multiplier: 1.3,
|
105
|
-
retry_codes: [14, 4]
|
93
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
106
94
|
}
|
107
95
|
|
108
96
|
default_config.rpcs.list_info_types.timeout = 300.0
|
109
97
|
default_config.rpcs.list_info_types.retry_policy = {
|
110
|
-
initial_delay: 0.1,
|
111
|
-
max_delay: 60.0,
|
112
|
-
multiplier: 1.3,
|
113
|
-
retry_codes: [14, 4]
|
98
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
114
99
|
}
|
115
100
|
|
116
101
|
default_config.rpcs.create_inspect_template.timeout = 300.0
|
@@ -119,26 +104,17 @@ module Google
|
|
119
104
|
|
120
105
|
default_config.rpcs.get_inspect_template.timeout = 300.0
|
121
106
|
default_config.rpcs.get_inspect_template.retry_policy = {
|
122
|
-
initial_delay: 0.1,
|
123
|
-
max_delay: 60.0,
|
124
|
-
multiplier: 1.3,
|
125
|
-
retry_codes: [14, 4]
|
107
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
126
108
|
}
|
127
109
|
|
128
110
|
default_config.rpcs.list_inspect_templates.timeout = 300.0
|
129
111
|
default_config.rpcs.list_inspect_templates.retry_policy = {
|
130
|
-
initial_delay: 0.1,
|
131
|
-
max_delay: 60.0,
|
132
|
-
multiplier: 1.3,
|
133
|
-
retry_codes: [14, 4]
|
112
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
134
113
|
}
|
135
114
|
|
136
115
|
default_config.rpcs.delete_inspect_template.timeout = 300.0
|
137
116
|
default_config.rpcs.delete_inspect_template.retry_policy = {
|
138
|
-
initial_delay: 0.1,
|
139
|
-
max_delay: 60.0,
|
140
|
-
multiplier: 1.3,
|
141
|
-
retry_codes: [14, 4]
|
117
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
142
118
|
}
|
143
119
|
|
144
120
|
default_config.rpcs.create_deidentify_template.timeout = 300.0
|
@@ -147,26 +123,17 @@ module Google
|
|
147
123
|
|
148
124
|
default_config.rpcs.get_deidentify_template.timeout = 300.0
|
149
125
|
default_config.rpcs.get_deidentify_template.retry_policy = {
|
150
|
-
initial_delay: 0.1,
|
151
|
-
max_delay: 60.0,
|
152
|
-
multiplier: 1.3,
|
153
|
-
retry_codes: [14, 4]
|
126
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
154
127
|
}
|
155
128
|
|
156
129
|
default_config.rpcs.list_deidentify_templates.timeout = 300.0
|
157
130
|
default_config.rpcs.list_deidentify_templates.retry_policy = {
|
158
|
-
initial_delay: 0.1,
|
159
|
-
max_delay: 60.0,
|
160
|
-
multiplier: 1.3,
|
161
|
-
retry_codes: [14, 4]
|
131
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
162
132
|
}
|
163
133
|
|
164
134
|
default_config.rpcs.delete_deidentify_template.timeout = 300.0
|
165
135
|
default_config.rpcs.delete_deidentify_template.retry_policy = {
|
166
|
-
initial_delay: 0.1,
|
167
|
-
max_delay: 60.0,
|
168
|
-
multiplier: 1.3,
|
169
|
-
retry_codes: [14, 4]
|
136
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
170
137
|
}
|
171
138
|
|
172
139
|
default_config.rpcs.create_job_trigger.timeout = 300.0
|
@@ -177,26 +144,17 @@ module Google
|
|
177
144
|
|
178
145
|
default_config.rpcs.get_job_trigger.timeout = 300.0
|
179
146
|
default_config.rpcs.get_job_trigger.retry_policy = {
|
180
|
-
initial_delay: 0.1,
|
181
|
-
max_delay: 60.0,
|
182
|
-
multiplier: 1.3,
|
183
|
-
retry_codes: [14, 4]
|
147
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
184
148
|
}
|
185
149
|
|
186
150
|
default_config.rpcs.list_job_triggers.timeout = 300.0
|
187
151
|
default_config.rpcs.list_job_triggers.retry_policy = {
|
188
|
-
initial_delay: 0.1,
|
189
|
-
max_delay: 60.0,
|
190
|
-
multiplier: 1.3,
|
191
|
-
retry_codes: [14, 4]
|
152
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
192
153
|
}
|
193
154
|
|
194
155
|
default_config.rpcs.delete_job_trigger.timeout = 300.0
|
195
156
|
default_config.rpcs.delete_job_trigger.retry_policy = {
|
196
|
-
initial_delay: 0.1,
|
197
|
-
max_delay: 60.0,
|
198
|
-
multiplier: 1.3,
|
199
|
-
retry_codes: [14, 4]
|
157
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
200
158
|
}
|
201
159
|
|
202
160
|
default_config.rpcs.activate_job_trigger.timeout = 300.0
|
@@ -205,26 +163,17 @@ module Google
|
|
205
163
|
|
206
164
|
default_config.rpcs.list_dlp_jobs.timeout = 300.0
|
207
165
|
default_config.rpcs.list_dlp_jobs.retry_policy = {
|
208
|
-
initial_delay: 0.1,
|
209
|
-
max_delay: 60.0,
|
210
|
-
multiplier: 1.3,
|
211
|
-
retry_codes: [14, 4]
|
166
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
212
167
|
}
|
213
168
|
|
214
169
|
default_config.rpcs.get_dlp_job.timeout = 300.0
|
215
170
|
default_config.rpcs.get_dlp_job.retry_policy = {
|
216
|
-
initial_delay: 0.1,
|
217
|
-
max_delay: 60.0,
|
218
|
-
multiplier: 1.3,
|
219
|
-
retry_codes: [14, 4]
|
171
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
220
172
|
}
|
221
173
|
|
222
174
|
default_config.rpcs.delete_dlp_job.timeout = 300.0
|
223
175
|
default_config.rpcs.delete_dlp_job.retry_policy = {
|
224
|
-
initial_delay: 0.1,
|
225
|
-
max_delay: 60.0,
|
226
|
-
multiplier: 1.3,
|
227
|
-
retry_codes: [14, 4]
|
176
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
228
177
|
}
|
229
178
|
|
230
179
|
default_config.rpcs.cancel_dlp_job.timeout = 300.0
|
@@ -235,26 +184,17 @@ module Google
|
|
235
184
|
|
236
185
|
default_config.rpcs.get_stored_info_type.timeout = 300.0
|
237
186
|
default_config.rpcs.get_stored_info_type.retry_policy = {
|
238
|
-
initial_delay: 0.1,
|
239
|
-
max_delay: 60.0,
|
240
|
-
multiplier: 1.3,
|
241
|
-
retry_codes: [14, 4]
|
187
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
242
188
|
}
|
243
189
|
|
244
190
|
default_config.rpcs.list_stored_info_types.timeout = 300.0
|
245
191
|
default_config.rpcs.list_stored_info_types.retry_policy = {
|
246
|
-
initial_delay: 0.1,
|
247
|
-
max_delay: 60.0,
|
248
|
-
multiplier: 1.3,
|
249
|
-
retry_codes: [14, 4]
|
192
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
250
193
|
}
|
251
194
|
|
252
195
|
default_config.rpcs.delete_stored_info_type.timeout = 300.0
|
253
196
|
default_config.rpcs.delete_stored_info_type.retry_policy = {
|
254
|
-
initial_delay: 0.1,
|
255
|
-
max_delay: 60.0,
|
256
|
-
multiplier: 1.3,
|
257
|
-
retry_codes: [14, 4]
|
197
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
258
198
|
}
|
259
199
|
|
260
200
|
default_config.rpcs.hybrid_inspect_dlp_job.timeout = 300.0
|
@@ -322,8 +262,14 @@ module Google
|
|
322
262
|
|
323
263
|
# Create credentials
|
324
264
|
credentials = @config.credentials
|
325
|
-
|
326
|
-
if
|
265
|
+
# Use self-signed JWT if the scope and endpoint are unchanged from default,
|
266
|
+
# but only if the default endpoint does not have a region prefix.
|
267
|
+
enable_self_signed_jwt = @config.scope == Client.configure.scope &&
|
268
|
+
@config.endpoint == Client.configure.endpoint &&
|
269
|
+
!@config.endpoint.split(".").first.include?("-")
|
270
|
+
credentials ||= Credentials.default scope: @config.scope,
|
271
|
+
enable_self_signed_jwt: enable_self_signed_jwt
|
272
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
327
273
|
credentials = Credentials.new credentials, scope: @config.scope
|
328
274
|
end
|
329
275
|
@quota_project_id = @config.quota_project
|
@@ -3355,7 +3301,7 @@ module Google
|
|
3355
3301
|
config_attr :scope, nil, ::String, ::Array, nil
|
3356
3302
|
config_attr :lib_name, nil, ::String, nil
|
3357
3303
|
config_attr :lib_version, nil, ::String, nil
|
3358
|
-
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
|
3304
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
|
3359
3305
|
config_attr :interceptors, nil, ::Array, nil
|
3360
3306
|
config_attr :timeout, nil, ::Numeric, nil
|
3361
3307
|
config_attr :metadata, nil, ::Hash, nil
|
@@ -3376,7 +3322,7 @@ module Google
|
|
3376
3322
|
def rpcs
|
3377
3323
|
@rpcs ||= begin
|
3378
3324
|
parent_rpcs = nil
|
3379
|
-
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config
|
3325
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
|
3380
3326
|
Rpcs.new parent_rpcs
|
3381
3327
|
end
|
3382
3328
|
end
|
@@ -3388,7 +3334,7 @@ module Google
|
|
3388
3334
|
# Each configuration object is of type `Gapic::Config::Method` and includes
|
3389
3335
|
# the following configuration fields:
|
3390
3336
|
#
|
3391
|
-
# * `timeout` (*type:* `Numeric`) - The call timeout in
|
3337
|
+
# * `timeout` (*type:* `Numeric`) - The call timeout in seconds
|
3392
3338
|
# * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
|
3393
3339
|
# * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
|
3394
3340
|
# include the following keys:
|
@@ -3572,73 +3518,73 @@ module Google
|
|
3572
3518
|
|
3573
3519
|
# @private
|
3574
3520
|
def initialize parent_rpcs = nil
|
3575
|
-
inspect_content_config = parent_rpcs
|
3521
|
+
inspect_content_config = parent_rpcs.inspect_content if parent_rpcs.respond_to? :inspect_content
|
3576
3522
|
@inspect_content = ::Gapic::Config::Method.new inspect_content_config
|
3577
|
-
redact_image_config = parent_rpcs
|
3523
|
+
redact_image_config = parent_rpcs.redact_image if parent_rpcs.respond_to? :redact_image
|
3578
3524
|
@redact_image = ::Gapic::Config::Method.new redact_image_config
|
3579
|
-
deidentify_content_config = parent_rpcs
|
3525
|
+
deidentify_content_config = parent_rpcs.deidentify_content if parent_rpcs.respond_to? :deidentify_content
|
3580
3526
|
@deidentify_content = ::Gapic::Config::Method.new deidentify_content_config
|
3581
|
-
reidentify_content_config = parent_rpcs
|
3527
|
+
reidentify_content_config = parent_rpcs.reidentify_content if parent_rpcs.respond_to? :reidentify_content
|
3582
3528
|
@reidentify_content = ::Gapic::Config::Method.new reidentify_content_config
|
3583
|
-
list_info_types_config = parent_rpcs
|
3529
|
+
list_info_types_config = parent_rpcs.list_info_types if parent_rpcs.respond_to? :list_info_types
|
3584
3530
|
@list_info_types = ::Gapic::Config::Method.new list_info_types_config
|
3585
|
-
create_inspect_template_config = parent_rpcs
|
3531
|
+
create_inspect_template_config = parent_rpcs.create_inspect_template if parent_rpcs.respond_to? :create_inspect_template
|
3586
3532
|
@create_inspect_template = ::Gapic::Config::Method.new create_inspect_template_config
|
3587
|
-
update_inspect_template_config = parent_rpcs
|
3533
|
+
update_inspect_template_config = parent_rpcs.update_inspect_template if parent_rpcs.respond_to? :update_inspect_template
|
3588
3534
|
@update_inspect_template = ::Gapic::Config::Method.new update_inspect_template_config
|
3589
|
-
get_inspect_template_config = parent_rpcs
|
3535
|
+
get_inspect_template_config = parent_rpcs.get_inspect_template if parent_rpcs.respond_to? :get_inspect_template
|
3590
3536
|
@get_inspect_template = ::Gapic::Config::Method.new get_inspect_template_config
|
3591
|
-
list_inspect_templates_config = parent_rpcs
|
3537
|
+
list_inspect_templates_config = parent_rpcs.list_inspect_templates if parent_rpcs.respond_to? :list_inspect_templates
|
3592
3538
|
@list_inspect_templates = ::Gapic::Config::Method.new list_inspect_templates_config
|
3593
|
-
delete_inspect_template_config = parent_rpcs
|
3539
|
+
delete_inspect_template_config = parent_rpcs.delete_inspect_template if parent_rpcs.respond_to? :delete_inspect_template
|
3594
3540
|
@delete_inspect_template = ::Gapic::Config::Method.new delete_inspect_template_config
|
3595
|
-
create_deidentify_template_config = parent_rpcs
|
3541
|
+
create_deidentify_template_config = parent_rpcs.create_deidentify_template if parent_rpcs.respond_to? :create_deidentify_template
|
3596
3542
|
@create_deidentify_template = ::Gapic::Config::Method.new create_deidentify_template_config
|
3597
|
-
update_deidentify_template_config = parent_rpcs
|
3543
|
+
update_deidentify_template_config = parent_rpcs.update_deidentify_template if parent_rpcs.respond_to? :update_deidentify_template
|
3598
3544
|
@update_deidentify_template = ::Gapic::Config::Method.new update_deidentify_template_config
|
3599
|
-
get_deidentify_template_config = parent_rpcs
|
3545
|
+
get_deidentify_template_config = parent_rpcs.get_deidentify_template if parent_rpcs.respond_to? :get_deidentify_template
|
3600
3546
|
@get_deidentify_template = ::Gapic::Config::Method.new get_deidentify_template_config
|
3601
|
-
list_deidentify_templates_config = parent_rpcs
|
3547
|
+
list_deidentify_templates_config = parent_rpcs.list_deidentify_templates if parent_rpcs.respond_to? :list_deidentify_templates
|
3602
3548
|
@list_deidentify_templates = ::Gapic::Config::Method.new list_deidentify_templates_config
|
3603
|
-
delete_deidentify_template_config = parent_rpcs
|
3549
|
+
delete_deidentify_template_config = parent_rpcs.delete_deidentify_template if parent_rpcs.respond_to? :delete_deidentify_template
|
3604
3550
|
@delete_deidentify_template = ::Gapic::Config::Method.new delete_deidentify_template_config
|
3605
|
-
create_job_trigger_config = parent_rpcs
|
3551
|
+
create_job_trigger_config = parent_rpcs.create_job_trigger if parent_rpcs.respond_to? :create_job_trigger
|
3606
3552
|
@create_job_trigger = ::Gapic::Config::Method.new create_job_trigger_config
|
3607
|
-
update_job_trigger_config = parent_rpcs
|
3553
|
+
update_job_trigger_config = parent_rpcs.update_job_trigger if parent_rpcs.respond_to? :update_job_trigger
|
3608
3554
|
@update_job_trigger = ::Gapic::Config::Method.new update_job_trigger_config
|
3609
|
-
hybrid_inspect_job_trigger_config = parent_rpcs
|
3555
|
+
hybrid_inspect_job_trigger_config = parent_rpcs.hybrid_inspect_job_trigger if parent_rpcs.respond_to? :hybrid_inspect_job_trigger
|
3610
3556
|
@hybrid_inspect_job_trigger = ::Gapic::Config::Method.new hybrid_inspect_job_trigger_config
|
3611
|
-
get_job_trigger_config = parent_rpcs
|
3557
|
+
get_job_trigger_config = parent_rpcs.get_job_trigger if parent_rpcs.respond_to? :get_job_trigger
|
3612
3558
|
@get_job_trigger = ::Gapic::Config::Method.new get_job_trigger_config
|
3613
|
-
list_job_triggers_config = parent_rpcs
|
3559
|
+
list_job_triggers_config = parent_rpcs.list_job_triggers if parent_rpcs.respond_to? :list_job_triggers
|
3614
3560
|
@list_job_triggers = ::Gapic::Config::Method.new list_job_triggers_config
|
3615
|
-
delete_job_trigger_config = parent_rpcs
|
3561
|
+
delete_job_trigger_config = parent_rpcs.delete_job_trigger if parent_rpcs.respond_to? :delete_job_trigger
|
3616
3562
|
@delete_job_trigger = ::Gapic::Config::Method.new delete_job_trigger_config
|
3617
|
-
activate_job_trigger_config = parent_rpcs
|
3563
|
+
activate_job_trigger_config = parent_rpcs.activate_job_trigger if parent_rpcs.respond_to? :activate_job_trigger
|
3618
3564
|
@activate_job_trigger = ::Gapic::Config::Method.new activate_job_trigger_config
|
3619
|
-
create_dlp_job_config = parent_rpcs
|
3565
|
+
create_dlp_job_config = parent_rpcs.create_dlp_job if parent_rpcs.respond_to? :create_dlp_job
|
3620
3566
|
@create_dlp_job = ::Gapic::Config::Method.new create_dlp_job_config
|
3621
|
-
list_dlp_jobs_config = parent_rpcs
|
3567
|
+
list_dlp_jobs_config = parent_rpcs.list_dlp_jobs if parent_rpcs.respond_to? :list_dlp_jobs
|
3622
3568
|
@list_dlp_jobs = ::Gapic::Config::Method.new list_dlp_jobs_config
|
3623
|
-
get_dlp_job_config = parent_rpcs
|
3569
|
+
get_dlp_job_config = parent_rpcs.get_dlp_job if parent_rpcs.respond_to? :get_dlp_job
|
3624
3570
|
@get_dlp_job = ::Gapic::Config::Method.new get_dlp_job_config
|
3625
|
-
delete_dlp_job_config = parent_rpcs
|
3571
|
+
delete_dlp_job_config = parent_rpcs.delete_dlp_job if parent_rpcs.respond_to? :delete_dlp_job
|
3626
3572
|
@delete_dlp_job = ::Gapic::Config::Method.new delete_dlp_job_config
|
3627
|
-
cancel_dlp_job_config = parent_rpcs
|
3573
|
+
cancel_dlp_job_config = parent_rpcs.cancel_dlp_job if parent_rpcs.respond_to? :cancel_dlp_job
|
3628
3574
|
@cancel_dlp_job = ::Gapic::Config::Method.new cancel_dlp_job_config
|
3629
|
-
create_stored_info_type_config = parent_rpcs
|
3575
|
+
create_stored_info_type_config = parent_rpcs.create_stored_info_type if parent_rpcs.respond_to? :create_stored_info_type
|
3630
3576
|
@create_stored_info_type = ::Gapic::Config::Method.new create_stored_info_type_config
|
3631
|
-
update_stored_info_type_config = parent_rpcs
|
3577
|
+
update_stored_info_type_config = parent_rpcs.update_stored_info_type if parent_rpcs.respond_to? :update_stored_info_type
|
3632
3578
|
@update_stored_info_type = ::Gapic::Config::Method.new update_stored_info_type_config
|
3633
|
-
get_stored_info_type_config = parent_rpcs
|
3579
|
+
get_stored_info_type_config = parent_rpcs.get_stored_info_type if parent_rpcs.respond_to? :get_stored_info_type
|
3634
3580
|
@get_stored_info_type = ::Gapic::Config::Method.new get_stored_info_type_config
|
3635
|
-
list_stored_info_types_config = parent_rpcs
|
3581
|
+
list_stored_info_types_config = parent_rpcs.list_stored_info_types if parent_rpcs.respond_to? :list_stored_info_types
|
3636
3582
|
@list_stored_info_types = ::Gapic::Config::Method.new list_stored_info_types_config
|
3637
|
-
delete_stored_info_type_config = parent_rpcs
|
3583
|
+
delete_stored_info_type_config = parent_rpcs.delete_stored_info_type if parent_rpcs.respond_to? :delete_stored_info_type
|
3638
3584
|
@delete_stored_info_type = ::Gapic::Config::Method.new delete_stored_info_type_config
|
3639
|
-
hybrid_inspect_dlp_job_config = parent_rpcs
|
3585
|
+
hybrid_inspect_dlp_job_config = parent_rpcs.hybrid_inspect_dlp_job if parent_rpcs.respond_to? :hybrid_inspect_dlp_job
|
3640
3586
|
@hybrid_inspect_dlp_job = ::Gapic::Config::Method.new hybrid_inspect_dlp_job_config
|
3641
|
-
finish_dlp_job_config = parent_rpcs
|
3587
|
+
finish_dlp_job_config = parent_rpcs.finish_dlp_job if parent_rpcs.respond_to? :finish_dlp_job
|
3642
3588
|
@finish_dlp_job = ::Gapic::Config::Method.new finish_dlp_job_config
|
3643
3589
|
|
3644
3590
|
yield self if block_given?
|
@@ -64,12 +64,12 @@ module Google
|
|
64
64
|
# @return [::String]
|
65
65
|
def deidentify_template_path **args
|
66
66
|
resources = {
|
67
|
-
"deidentify_template:organization"
|
67
|
+
"deidentify_template:organization" => (proc do |organization:, deidentify_template:|
|
68
68
|
raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
|
69
69
|
|
70
70
|
"organizations/#{organization}/deidentifyTemplates/#{deidentify_template}"
|
71
71
|
end),
|
72
|
-
"deidentify_template:project"
|
72
|
+
"deidentify_template:project" => (proc do |project:, deidentify_template:|
|
73
73
|
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
74
74
|
|
75
75
|
"projects/#{project}/deidentifyTemplates/#{deidentify_template}"
|
@@ -80,7 +80,7 @@ module Google
|
|
80
80
|
|
81
81
|
"organizations/#{organization}/locations/#{location}/deidentifyTemplates/#{deidentify_template}"
|
82
82
|
end),
|
83
|
-
"deidentify_template:location:project"
|
83
|
+
"deidentify_template:location:project" => (proc do |project:, location:, deidentify_template:|
|
84
84
|
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
85
85
|
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
86
86
|
|
@@ -116,7 +116,7 @@ module Google
|
|
116
116
|
# @return [::String]
|
117
117
|
def dlp_job_path **args
|
118
118
|
resources = {
|
119
|
-
"dlp_job:project"
|
119
|
+
"dlp_job:project" => (proc do |project:, dlp_job:|
|
120
120
|
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
121
121
|
|
122
122
|
"projects/#{project}/dlpJobs/#{dlp_job}"
|
@@ -174,12 +174,12 @@ module Google
|
|
174
174
|
# @return [::String]
|
175
175
|
def inspect_template_path **args
|
176
176
|
resources = {
|
177
|
-
"inspect_template:organization"
|
177
|
+
"inspect_template:organization" => (proc do |organization:, inspect_template:|
|
178
178
|
raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
|
179
179
|
|
180
180
|
"organizations/#{organization}/inspectTemplates/#{inspect_template}"
|
181
181
|
end),
|
182
|
-
"inspect_template:project"
|
182
|
+
"inspect_template:project" => (proc do |project:, inspect_template:|
|
183
183
|
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
184
184
|
|
185
185
|
"projects/#{project}/inspectTemplates/#{inspect_template}"
|
@@ -190,7 +190,7 @@ module Google
|
|
190
190
|
|
191
191
|
"organizations/#{organization}/locations/#{location}/inspectTemplates/#{inspect_template}"
|
192
192
|
end),
|
193
|
-
"inspect_template:location:project"
|
193
|
+
"inspect_template:location:project" => (proc do |project:, location:, inspect_template:|
|
194
194
|
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
195
195
|
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
196
196
|
|
@@ -226,7 +226,7 @@ module Google
|
|
226
226
|
# @return [::String]
|
227
227
|
def job_trigger_path **args
|
228
228
|
resources = {
|
229
|
-
"job_trigger:project"
|
229
|
+
"job_trigger:project" => (proc do |project:, job_trigger:|
|
230
230
|
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
231
231
|
|
232
232
|
"projects/#{project}/jobTriggers/#{job_trigger}"
|
@@ -346,12 +346,12 @@ module Google
|
|
346
346
|
# @return [::String]
|
347
347
|
def stored_info_type_path **args
|
348
348
|
resources = {
|
349
|
-
"organization:stored_info_type"
|
349
|
+
"organization:stored_info_type" => (proc do |organization:, stored_info_type:|
|
350
350
|
raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
|
351
351
|
|
352
352
|
"organizations/#{organization}/storedInfoTypes/#{stored_info_type}"
|
353
353
|
end),
|
354
|
-
"project:stored_info_type"
|
354
|
+
"project:stored_info_type" => (proc do |project:, stored_info_type:|
|
355
355
|
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
356
356
|
|
357
357
|
"projects/#{project}/storedInfoTypes/#{stored_info_type}"
|
@@ -362,7 +362,7 @@ module Google
|
|
362
362
|
|
363
363
|
"organizations/#{organization}/locations/#{location}/storedInfoTypes/#{stored_info_type}"
|
364
364
|
end),
|
365
|
-
"location:project:stored_info_type"
|
365
|
+
"location:project:stored_info_type" => (proc do |project:, location:, stored_info_type:|
|
366
366
|
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
367
367
|
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
368
368
|
|