google-cloud-dlp-v2 0.4.4 → 0.7.1
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 +105 -99
- 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 +1 -1
- data/proto_docs/google/api/field_behavior.rb +6 -0
- data/proto_docs/google/privacy/dlp/v2/dlp.rb +12 -0
- 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 +19 -11
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
|
@@ -3355,7 +3361,7 @@ module Google
|
|
3355
3361
|
config_attr :scope, nil, ::String, ::Array, nil
|
3356
3362
|
config_attr :lib_name, nil, ::String, nil
|
3357
3363
|
config_attr :lib_version, nil, ::String, nil
|
3358
|
-
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)
|
3359
3365
|
config_attr :interceptors, nil, ::Array, nil
|
3360
3366
|
config_attr :timeout, nil, ::Numeric, nil
|
3361
3367
|
config_attr :metadata, nil, ::Hash, nil
|
@@ -3376,7 +3382,7 @@ module Google
|
|
3376
3382
|
def rpcs
|
3377
3383
|
@rpcs ||= begin
|
3378
3384
|
parent_rpcs = nil
|
3379
|
-
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)
|
3380
3386
|
Rpcs.new parent_rpcs
|
3381
3387
|
end
|
3382
3388
|
end
|
@@ -3388,7 +3394,7 @@ module Google
|
|
3388
3394
|
# Each configuration object is of type `Gapic::Config::Method` and includes
|
3389
3395
|
# the following configuration fields:
|
3390
3396
|
#
|
3391
|
-
# * `timeout` (*type:* `Numeric`) - The call timeout in
|
3397
|
+
# * `timeout` (*type:* `Numeric`) - The call timeout in seconds
|
3392
3398
|
# * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
|
3393
3399
|
# * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
|
3394
3400
|
# include the following keys:
|
@@ -3572,73 +3578,73 @@ module Google
|
|
3572
3578
|
|
3573
3579
|
# @private
|
3574
3580
|
def initialize parent_rpcs = nil
|
3575
|
-
inspect_content_config = parent_rpcs
|
3581
|
+
inspect_content_config = parent_rpcs.inspect_content if parent_rpcs.respond_to? :inspect_content
|
3576
3582
|
@inspect_content = ::Gapic::Config::Method.new inspect_content_config
|
3577
|
-
redact_image_config = parent_rpcs
|
3583
|
+
redact_image_config = parent_rpcs.redact_image if parent_rpcs.respond_to? :redact_image
|
3578
3584
|
@redact_image = ::Gapic::Config::Method.new redact_image_config
|
3579
|
-
deidentify_content_config = parent_rpcs
|
3585
|
+
deidentify_content_config = parent_rpcs.deidentify_content if parent_rpcs.respond_to? :deidentify_content
|
3580
3586
|
@deidentify_content = ::Gapic::Config::Method.new deidentify_content_config
|
3581
|
-
reidentify_content_config = parent_rpcs
|
3587
|
+
reidentify_content_config = parent_rpcs.reidentify_content if parent_rpcs.respond_to? :reidentify_content
|
3582
3588
|
@reidentify_content = ::Gapic::Config::Method.new reidentify_content_config
|
3583
|
-
list_info_types_config = parent_rpcs
|
3589
|
+
list_info_types_config = parent_rpcs.list_info_types if parent_rpcs.respond_to? :list_info_types
|
3584
3590
|
@list_info_types = ::Gapic::Config::Method.new list_info_types_config
|
3585
|
-
create_inspect_template_config = parent_rpcs
|
3591
|
+
create_inspect_template_config = parent_rpcs.create_inspect_template if parent_rpcs.respond_to? :create_inspect_template
|
3586
3592
|
@create_inspect_template = ::Gapic::Config::Method.new create_inspect_template_config
|
3587
|
-
update_inspect_template_config = parent_rpcs
|
3593
|
+
update_inspect_template_config = parent_rpcs.update_inspect_template if parent_rpcs.respond_to? :update_inspect_template
|
3588
3594
|
@update_inspect_template = ::Gapic::Config::Method.new update_inspect_template_config
|
3589
|
-
get_inspect_template_config = parent_rpcs
|
3595
|
+
get_inspect_template_config = parent_rpcs.get_inspect_template if parent_rpcs.respond_to? :get_inspect_template
|
3590
3596
|
@get_inspect_template = ::Gapic::Config::Method.new get_inspect_template_config
|
3591
|
-
list_inspect_templates_config = parent_rpcs
|
3597
|
+
list_inspect_templates_config = parent_rpcs.list_inspect_templates if parent_rpcs.respond_to? :list_inspect_templates
|
3592
3598
|
@list_inspect_templates = ::Gapic::Config::Method.new list_inspect_templates_config
|
3593
|
-
delete_inspect_template_config = parent_rpcs
|
3599
|
+
delete_inspect_template_config = parent_rpcs.delete_inspect_template if parent_rpcs.respond_to? :delete_inspect_template
|
3594
3600
|
@delete_inspect_template = ::Gapic::Config::Method.new delete_inspect_template_config
|
3595
|
-
create_deidentify_template_config = parent_rpcs
|
3601
|
+
create_deidentify_template_config = parent_rpcs.create_deidentify_template if parent_rpcs.respond_to? :create_deidentify_template
|
3596
3602
|
@create_deidentify_template = ::Gapic::Config::Method.new create_deidentify_template_config
|
3597
|
-
update_deidentify_template_config = parent_rpcs
|
3603
|
+
update_deidentify_template_config = parent_rpcs.update_deidentify_template if parent_rpcs.respond_to? :update_deidentify_template
|
3598
3604
|
@update_deidentify_template = ::Gapic::Config::Method.new update_deidentify_template_config
|
3599
|
-
get_deidentify_template_config = parent_rpcs
|
3605
|
+
get_deidentify_template_config = parent_rpcs.get_deidentify_template if parent_rpcs.respond_to? :get_deidentify_template
|
3600
3606
|
@get_deidentify_template = ::Gapic::Config::Method.new get_deidentify_template_config
|
3601
|
-
list_deidentify_templates_config = parent_rpcs
|
3607
|
+
list_deidentify_templates_config = parent_rpcs.list_deidentify_templates if parent_rpcs.respond_to? :list_deidentify_templates
|
3602
3608
|
@list_deidentify_templates = ::Gapic::Config::Method.new list_deidentify_templates_config
|
3603
|
-
delete_deidentify_template_config = parent_rpcs
|
3609
|
+
delete_deidentify_template_config = parent_rpcs.delete_deidentify_template if parent_rpcs.respond_to? :delete_deidentify_template
|
3604
3610
|
@delete_deidentify_template = ::Gapic::Config::Method.new delete_deidentify_template_config
|
3605
|
-
create_job_trigger_config = parent_rpcs
|
3611
|
+
create_job_trigger_config = parent_rpcs.create_job_trigger if parent_rpcs.respond_to? :create_job_trigger
|
3606
3612
|
@create_job_trigger = ::Gapic::Config::Method.new create_job_trigger_config
|
3607
|
-
update_job_trigger_config = parent_rpcs
|
3613
|
+
update_job_trigger_config = parent_rpcs.update_job_trigger if parent_rpcs.respond_to? :update_job_trigger
|
3608
3614
|
@update_job_trigger = ::Gapic::Config::Method.new update_job_trigger_config
|
3609
|
-
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
|
3610
3616
|
@hybrid_inspect_job_trigger = ::Gapic::Config::Method.new hybrid_inspect_job_trigger_config
|
3611
|
-
get_job_trigger_config = parent_rpcs
|
3617
|
+
get_job_trigger_config = parent_rpcs.get_job_trigger if parent_rpcs.respond_to? :get_job_trigger
|
3612
3618
|
@get_job_trigger = ::Gapic::Config::Method.new get_job_trigger_config
|
3613
|
-
list_job_triggers_config = parent_rpcs
|
3619
|
+
list_job_triggers_config = parent_rpcs.list_job_triggers if parent_rpcs.respond_to? :list_job_triggers
|
3614
3620
|
@list_job_triggers = ::Gapic::Config::Method.new list_job_triggers_config
|
3615
|
-
delete_job_trigger_config = parent_rpcs
|
3621
|
+
delete_job_trigger_config = parent_rpcs.delete_job_trigger if parent_rpcs.respond_to? :delete_job_trigger
|
3616
3622
|
@delete_job_trigger = ::Gapic::Config::Method.new delete_job_trigger_config
|
3617
|
-
activate_job_trigger_config = parent_rpcs
|
3623
|
+
activate_job_trigger_config = parent_rpcs.activate_job_trigger if parent_rpcs.respond_to? :activate_job_trigger
|
3618
3624
|
@activate_job_trigger = ::Gapic::Config::Method.new activate_job_trigger_config
|
3619
|
-
create_dlp_job_config = parent_rpcs
|
3625
|
+
create_dlp_job_config = parent_rpcs.create_dlp_job if parent_rpcs.respond_to? :create_dlp_job
|
3620
3626
|
@create_dlp_job = ::Gapic::Config::Method.new create_dlp_job_config
|
3621
|
-
list_dlp_jobs_config = parent_rpcs
|
3627
|
+
list_dlp_jobs_config = parent_rpcs.list_dlp_jobs if parent_rpcs.respond_to? :list_dlp_jobs
|
3622
3628
|
@list_dlp_jobs = ::Gapic::Config::Method.new list_dlp_jobs_config
|
3623
|
-
get_dlp_job_config = parent_rpcs
|
3629
|
+
get_dlp_job_config = parent_rpcs.get_dlp_job if parent_rpcs.respond_to? :get_dlp_job
|
3624
3630
|
@get_dlp_job = ::Gapic::Config::Method.new get_dlp_job_config
|
3625
|
-
delete_dlp_job_config = parent_rpcs
|
3631
|
+
delete_dlp_job_config = parent_rpcs.delete_dlp_job if parent_rpcs.respond_to? :delete_dlp_job
|
3626
3632
|
@delete_dlp_job = ::Gapic::Config::Method.new delete_dlp_job_config
|
3627
|
-
cancel_dlp_job_config = parent_rpcs
|
3633
|
+
cancel_dlp_job_config = parent_rpcs.cancel_dlp_job if parent_rpcs.respond_to? :cancel_dlp_job
|
3628
3634
|
@cancel_dlp_job = ::Gapic::Config::Method.new cancel_dlp_job_config
|
3629
|
-
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
|
3630
3636
|
@create_stored_info_type = ::Gapic::Config::Method.new create_stored_info_type_config
|
3631
|
-
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
|
3632
3638
|
@update_stored_info_type = ::Gapic::Config::Method.new update_stored_info_type_config
|
3633
|
-
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
|
3634
3640
|
@get_stored_info_type = ::Gapic::Config::Method.new get_stored_info_type_config
|
3635
|
-
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
|
3636
3642
|
@list_stored_info_types = ::Gapic::Config::Method.new list_stored_info_types_config
|
3637
|
-
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
|
3638
3644
|
@delete_stored_info_type = ::Gapic::Config::Method.new delete_stored_info_type_config
|
3639
|
-
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
|
3640
3646
|
@hybrid_inspect_dlp_job = ::Gapic::Config::Method.new hybrid_inspect_dlp_job_config
|
3641
|
-
finish_dlp_job_config = parent_rpcs
|
3647
|
+
finish_dlp_job_config = parent_rpcs.finish_dlp_job if parent_rpcs.respond_to? :finish_dlp_job
|
3642
3648
|
@finish_dlp_job = ::Gapic::Config::Method.new finish_dlp_job_config
|
3643
3649
|
|
3644
3650
|
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
|
|