google-cloud-security-private_ca-v1beta1 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,1241 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2023 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "google/cloud/security/privateca/v1beta1/service_pb"
20
+
21
+ module Google
22
+ module Cloud
23
+ module Security
24
+ module PrivateCA
25
+ module V1beta1
26
+ module CertificateAuthorityService
27
+ module Rest
28
+ ##
29
+ # REST service stub for the CertificateAuthorityService service.
30
+ # Service stub contains baseline method implementations
31
+ # including transcoding, making the REST call, and deserialing the response.
32
+ #
33
+ class ServiceStub
34
+ def initialize endpoint:, credentials:
35
+ # These require statements are intentionally placed here to initialize
36
+ # the REST modules only when it's required.
37
+ require "gapic/rest"
38
+
39
+ @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, credentials: credentials,
40
+ numeric_enums: true,
41
+ raise_faraday_errors: false
42
+ end
43
+
44
+ ##
45
+ # Baseline implementation for the create_certificate REST call
46
+ #
47
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1beta1::CreateCertificateRequest]
48
+ # A request object representing the call parameters. Required.
49
+ # @param options [::Gapic::CallOptions]
50
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
51
+ #
52
+ # @yield [result, operation] Access the result along with the TransportOperation object
53
+ # @yieldparam result [::Google::Cloud::Security::PrivateCA::V1beta1::Certificate]
54
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
55
+ #
56
+ # @return [::Google::Cloud::Security::PrivateCA::V1beta1::Certificate]
57
+ # A result object deserialized from the server's reply
58
+ def create_certificate request_pb, options = nil
59
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
60
+
61
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_certificate_request request_pb
62
+ query_string_params = if query_string_params.any?
63
+ query_string_params.to_h { |p| p.split("=", 2) }
64
+ else
65
+ {}
66
+ end
67
+
68
+ response = @client_stub.make_http_request(
69
+ verb,
70
+ uri: uri,
71
+ body: body || "",
72
+ params: query_string_params,
73
+ options: options
74
+ )
75
+ operation = ::Gapic::Rest::TransportOperation.new response
76
+ result = ::Google::Cloud::Security::PrivateCA::V1beta1::Certificate.decode_json response.body, ignore_unknown_fields: true
77
+
78
+ yield result, operation if block_given?
79
+ result
80
+ end
81
+
82
+ ##
83
+ # Baseline implementation for the get_certificate REST call
84
+ #
85
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1beta1::GetCertificateRequest]
86
+ # A request object representing the call parameters. Required.
87
+ # @param options [::Gapic::CallOptions]
88
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
89
+ #
90
+ # @yield [result, operation] Access the result along with the TransportOperation object
91
+ # @yieldparam result [::Google::Cloud::Security::PrivateCA::V1beta1::Certificate]
92
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
93
+ #
94
+ # @return [::Google::Cloud::Security::PrivateCA::V1beta1::Certificate]
95
+ # A result object deserialized from the server's reply
96
+ def get_certificate request_pb, options = nil
97
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
98
+
99
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_certificate_request request_pb
100
+ query_string_params = if query_string_params.any?
101
+ query_string_params.to_h { |p| p.split("=", 2) }
102
+ else
103
+ {}
104
+ end
105
+
106
+ response = @client_stub.make_http_request(
107
+ verb,
108
+ uri: uri,
109
+ body: body || "",
110
+ params: query_string_params,
111
+ options: options
112
+ )
113
+ operation = ::Gapic::Rest::TransportOperation.new response
114
+ result = ::Google::Cloud::Security::PrivateCA::V1beta1::Certificate.decode_json response.body, ignore_unknown_fields: true
115
+
116
+ yield result, operation if block_given?
117
+ result
118
+ end
119
+
120
+ ##
121
+ # Baseline implementation for the list_certificates REST call
122
+ #
123
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1beta1::ListCertificatesRequest]
124
+ # A request object representing the call parameters. Required.
125
+ # @param options [::Gapic::CallOptions]
126
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
127
+ #
128
+ # @yield [result, operation] Access the result along with the TransportOperation object
129
+ # @yieldparam result [::Google::Cloud::Security::PrivateCA::V1beta1::ListCertificatesResponse]
130
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
131
+ #
132
+ # @return [::Google::Cloud::Security::PrivateCA::V1beta1::ListCertificatesResponse]
133
+ # A result object deserialized from the server's reply
134
+ def list_certificates request_pb, options = nil
135
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
136
+
137
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_certificates_request request_pb
138
+ query_string_params = if query_string_params.any?
139
+ query_string_params.to_h { |p| p.split("=", 2) }
140
+ else
141
+ {}
142
+ end
143
+
144
+ response = @client_stub.make_http_request(
145
+ verb,
146
+ uri: uri,
147
+ body: body || "",
148
+ params: query_string_params,
149
+ options: options
150
+ )
151
+ operation = ::Gapic::Rest::TransportOperation.new response
152
+ result = ::Google::Cloud::Security::PrivateCA::V1beta1::ListCertificatesResponse.decode_json response.body, ignore_unknown_fields: true
153
+
154
+ yield result, operation if block_given?
155
+ result
156
+ end
157
+
158
+ ##
159
+ # Baseline implementation for the revoke_certificate REST call
160
+ #
161
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1beta1::RevokeCertificateRequest]
162
+ # A request object representing the call parameters. Required.
163
+ # @param options [::Gapic::CallOptions]
164
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
165
+ #
166
+ # @yield [result, operation] Access the result along with the TransportOperation object
167
+ # @yieldparam result [::Google::Cloud::Security::PrivateCA::V1beta1::Certificate]
168
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
169
+ #
170
+ # @return [::Google::Cloud::Security::PrivateCA::V1beta1::Certificate]
171
+ # A result object deserialized from the server's reply
172
+ def revoke_certificate request_pb, options = nil
173
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
174
+
175
+ verb, uri, query_string_params, body = ServiceStub.transcode_revoke_certificate_request request_pb
176
+ query_string_params = if query_string_params.any?
177
+ query_string_params.to_h { |p| p.split("=", 2) }
178
+ else
179
+ {}
180
+ end
181
+
182
+ response = @client_stub.make_http_request(
183
+ verb,
184
+ uri: uri,
185
+ body: body || "",
186
+ params: query_string_params,
187
+ options: options
188
+ )
189
+ operation = ::Gapic::Rest::TransportOperation.new response
190
+ result = ::Google::Cloud::Security::PrivateCA::V1beta1::Certificate.decode_json response.body, ignore_unknown_fields: true
191
+
192
+ yield result, operation if block_given?
193
+ result
194
+ end
195
+
196
+ ##
197
+ # Baseline implementation for the update_certificate REST call
198
+ #
199
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1beta1::UpdateCertificateRequest]
200
+ # A request object representing the call parameters. Required.
201
+ # @param options [::Gapic::CallOptions]
202
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
203
+ #
204
+ # @yield [result, operation] Access the result along with the TransportOperation object
205
+ # @yieldparam result [::Google::Cloud::Security::PrivateCA::V1beta1::Certificate]
206
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
207
+ #
208
+ # @return [::Google::Cloud::Security::PrivateCA::V1beta1::Certificate]
209
+ # A result object deserialized from the server's reply
210
+ def update_certificate request_pb, options = nil
211
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
212
+
213
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_certificate_request request_pb
214
+ query_string_params = if query_string_params.any?
215
+ query_string_params.to_h { |p| p.split("=", 2) }
216
+ else
217
+ {}
218
+ end
219
+
220
+ response = @client_stub.make_http_request(
221
+ verb,
222
+ uri: uri,
223
+ body: body || "",
224
+ params: query_string_params,
225
+ options: options
226
+ )
227
+ operation = ::Gapic::Rest::TransportOperation.new response
228
+ result = ::Google::Cloud::Security::PrivateCA::V1beta1::Certificate.decode_json response.body, ignore_unknown_fields: true
229
+
230
+ yield result, operation if block_given?
231
+ result
232
+ end
233
+
234
+ ##
235
+ # Baseline implementation for the activate_certificate_authority REST call
236
+ #
237
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1beta1::ActivateCertificateAuthorityRequest]
238
+ # A request object representing the call parameters. Required.
239
+ # @param options [::Gapic::CallOptions]
240
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
241
+ #
242
+ # @yield [result, operation] Access the result along with the TransportOperation object
243
+ # @yieldparam result [::Google::Longrunning::Operation]
244
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
245
+ #
246
+ # @return [::Google::Longrunning::Operation]
247
+ # A result object deserialized from the server's reply
248
+ def activate_certificate_authority request_pb, options = nil
249
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
250
+
251
+ verb, uri, query_string_params, body = ServiceStub.transcode_activate_certificate_authority_request request_pb
252
+ query_string_params = if query_string_params.any?
253
+ query_string_params.to_h { |p| p.split("=", 2) }
254
+ else
255
+ {}
256
+ end
257
+
258
+ response = @client_stub.make_http_request(
259
+ verb,
260
+ uri: uri,
261
+ body: body || "",
262
+ params: query_string_params,
263
+ options: options
264
+ )
265
+ operation = ::Gapic::Rest::TransportOperation.new response
266
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
267
+
268
+ yield result, operation if block_given?
269
+ result
270
+ end
271
+
272
+ ##
273
+ # Baseline implementation for the create_certificate_authority REST call
274
+ #
275
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1beta1::CreateCertificateAuthorityRequest]
276
+ # A request object representing the call parameters. Required.
277
+ # @param options [::Gapic::CallOptions]
278
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
279
+ #
280
+ # @yield [result, operation] Access the result along with the TransportOperation object
281
+ # @yieldparam result [::Google::Longrunning::Operation]
282
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
283
+ #
284
+ # @return [::Google::Longrunning::Operation]
285
+ # A result object deserialized from the server's reply
286
+ def create_certificate_authority request_pb, options = nil
287
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
288
+
289
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_certificate_authority_request request_pb
290
+ query_string_params = if query_string_params.any?
291
+ query_string_params.to_h { |p| p.split("=", 2) }
292
+ else
293
+ {}
294
+ end
295
+
296
+ response = @client_stub.make_http_request(
297
+ verb,
298
+ uri: uri,
299
+ body: body || "",
300
+ params: query_string_params,
301
+ options: options
302
+ )
303
+ operation = ::Gapic::Rest::TransportOperation.new response
304
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
305
+
306
+ yield result, operation if block_given?
307
+ result
308
+ end
309
+
310
+ ##
311
+ # Baseline implementation for the disable_certificate_authority REST call
312
+ #
313
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1beta1::DisableCertificateAuthorityRequest]
314
+ # A request object representing the call parameters. Required.
315
+ # @param options [::Gapic::CallOptions]
316
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
317
+ #
318
+ # @yield [result, operation] Access the result along with the TransportOperation object
319
+ # @yieldparam result [::Google::Longrunning::Operation]
320
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
321
+ #
322
+ # @return [::Google::Longrunning::Operation]
323
+ # A result object deserialized from the server's reply
324
+ def disable_certificate_authority request_pb, options = nil
325
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
326
+
327
+ verb, uri, query_string_params, body = ServiceStub.transcode_disable_certificate_authority_request request_pb
328
+ query_string_params = if query_string_params.any?
329
+ query_string_params.to_h { |p| p.split("=", 2) }
330
+ else
331
+ {}
332
+ end
333
+
334
+ response = @client_stub.make_http_request(
335
+ verb,
336
+ uri: uri,
337
+ body: body || "",
338
+ params: query_string_params,
339
+ options: options
340
+ )
341
+ operation = ::Gapic::Rest::TransportOperation.new response
342
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
343
+
344
+ yield result, operation if block_given?
345
+ result
346
+ end
347
+
348
+ ##
349
+ # Baseline implementation for the enable_certificate_authority REST call
350
+ #
351
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1beta1::EnableCertificateAuthorityRequest]
352
+ # A request object representing the call parameters. Required.
353
+ # @param options [::Gapic::CallOptions]
354
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
355
+ #
356
+ # @yield [result, operation] Access the result along with the TransportOperation object
357
+ # @yieldparam result [::Google::Longrunning::Operation]
358
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
359
+ #
360
+ # @return [::Google::Longrunning::Operation]
361
+ # A result object deserialized from the server's reply
362
+ def enable_certificate_authority request_pb, options = nil
363
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
364
+
365
+ verb, uri, query_string_params, body = ServiceStub.transcode_enable_certificate_authority_request request_pb
366
+ query_string_params = if query_string_params.any?
367
+ query_string_params.to_h { |p| p.split("=", 2) }
368
+ else
369
+ {}
370
+ end
371
+
372
+ response = @client_stub.make_http_request(
373
+ verb,
374
+ uri: uri,
375
+ body: body || "",
376
+ params: query_string_params,
377
+ options: options
378
+ )
379
+ operation = ::Gapic::Rest::TransportOperation.new response
380
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
381
+
382
+ yield result, operation if block_given?
383
+ result
384
+ end
385
+
386
+ ##
387
+ # Baseline implementation for the fetch_certificate_authority_csr REST call
388
+ #
389
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1beta1::FetchCertificateAuthorityCsrRequest]
390
+ # A request object representing the call parameters. Required.
391
+ # @param options [::Gapic::CallOptions]
392
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
393
+ #
394
+ # @yield [result, operation] Access the result along with the TransportOperation object
395
+ # @yieldparam result [::Google::Cloud::Security::PrivateCA::V1beta1::FetchCertificateAuthorityCsrResponse]
396
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
397
+ #
398
+ # @return [::Google::Cloud::Security::PrivateCA::V1beta1::FetchCertificateAuthorityCsrResponse]
399
+ # A result object deserialized from the server's reply
400
+ def fetch_certificate_authority_csr request_pb, options = nil
401
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
402
+
403
+ verb, uri, query_string_params, body = ServiceStub.transcode_fetch_certificate_authority_csr_request request_pb
404
+ query_string_params = if query_string_params.any?
405
+ query_string_params.to_h { |p| p.split("=", 2) }
406
+ else
407
+ {}
408
+ end
409
+
410
+ response = @client_stub.make_http_request(
411
+ verb,
412
+ uri: uri,
413
+ body: body || "",
414
+ params: query_string_params,
415
+ options: options
416
+ )
417
+ operation = ::Gapic::Rest::TransportOperation.new response
418
+ result = ::Google::Cloud::Security::PrivateCA::V1beta1::FetchCertificateAuthorityCsrResponse.decode_json response.body, ignore_unknown_fields: true
419
+
420
+ yield result, operation if block_given?
421
+ result
422
+ end
423
+
424
+ ##
425
+ # Baseline implementation for the get_certificate_authority REST call
426
+ #
427
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1beta1::GetCertificateAuthorityRequest]
428
+ # A request object representing the call parameters. Required.
429
+ # @param options [::Gapic::CallOptions]
430
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
431
+ #
432
+ # @yield [result, operation] Access the result along with the TransportOperation object
433
+ # @yieldparam result [::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthority]
434
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
435
+ #
436
+ # @return [::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthority]
437
+ # A result object deserialized from the server's reply
438
+ def get_certificate_authority request_pb, options = nil
439
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
440
+
441
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_certificate_authority_request request_pb
442
+ query_string_params = if query_string_params.any?
443
+ query_string_params.to_h { |p| p.split("=", 2) }
444
+ else
445
+ {}
446
+ end
447
+
448
+ response = @client_stub.make_http_request(
449
+ verb,
450
+ uri: uri,
451
+ body: body || "",
452
+ params: query_string_params,
453
+ options: options
454
+ )
455
+ operation = ::Gapic::Rest::TransportOperation.new response
456
+ result = ::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthority.decode_json response.body, ignore_unknown_fields: true
457
+
458
+ yield result, operation if block_given?
459
+ result
460
+ end
461
+
462
+ ##
463
+ # Baseline implementation for the list_certificate_authorities REST call
464
+ #
465
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1beta1::ListCertificateAuthoritiesRequest]
466
+ # A request object representing the call parameters. Required.
467
+ # @param options [::Gapic::CallOptions]
468
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
469
+ #
470
+ # @yield [result, operation] Access the result along with the TransportOperation object
471
+ # @yieldparam result [::Google::Cloud::Security::PrivateCA::V1beta1::ListCertificateAuthoritiesResponse]
472
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
473
+ #
474
+ # @return [::Google::Cloud::Security::PrivateCA::V1beta1::ListCertificateAuthoritiesResponse]
475
+ # A result object deserialized from the server's reply
476
+ def list_certificate_authorities request_pb, options = nil
477
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
478
+
479
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_certificate_authorities_request request_pb
480
+ query_string_params = if query_string_params.any?
481
+ query_string_params.to_h { |p| p.split("=", 2) }
482
+ else
483
+ {}
484
+ end
485
+
486
+ response = @client_stub.make_http_request(
487
+ verb,
488
+ uri: uri,
489
+ body: body || "",
490
+ params: query_string_params,
491
+ options: options
492
+ )
493
+ operation = ::Gapic::Rest::TransportOperation.new response
494
+ result = ::Google::Cloud::Security::PrivateCA::V1beta1::ListCertificateAuthoritiesResponse.decode_json response.body, ignore_unknown_fields: true
495
+
496
+ yield result, operation if block_given?
497
+ result
498
+ end
499
+
500
+ ##
501
+ # Baseline implementation for the restore_certificate_authority REST call
502
+ #
503
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1beta1::RestoreCertificateAuthorityRequest]
504
+ # A request object representing the call parameters. Required.
505
+ # @param options [::Gapic::CallOptions]
506
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
507
+ #
508
+ # @yield [result, operation] Access the result along with the TransportOperation object
509
+ # @yieldparam result [::Google::Longrunning::Operation]
510
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
511
+ #
512
+ # @return [::Google::Longrunning::Operation]
513
+ # A result object deserialized from the server's reply
514
+ def restore_certificate_authority request_pb, options = nil
515
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
516
+
517
+ verb, uri, query_string_params, body = ServiceStub.transcode_restore_certificate_authority_request request_pb
518
+ query_string_params = if query_string_params.any?
519
+ query_string_params.to_h { |p| p.split("=", 2) }
520
+ else
521
+ {}
522
+ end
523
+
524
+ response = @client_stub.make_http_request(
525
+ verb,
526
+ uri: uri,
527
+ body: body || "",
528
+ params: query_string_params,
529
+ options: options
530
+ )
531
+ operation = ::Gapic::Rest::TransportOperation.new response
532
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
533
+
534
+ yield result, operation if block_given?
535
+ result
536
+ end
537
+
538
+ ##
539
+ # Baseline implementation for the schedule_delete_certificate_authority REST call
540
+ #
541
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1beta1::ScheduleDeleteCertificateAuthorityRequest]
542
+ # A request object representing the call parameters. Required.
543
+ # @param options [::Gapic::CallOptions]
544
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
545
+ #
546
+ # @yield [result, operation] Access the result along with the TransportOperation object
547
+ # @yieldparam result [::Google::Longrunning::Operation]
548
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
549
+ #
550
+ # @return [::Google::Longrunning::Operation]
551
+ # A result object deserialized from the server's reply
552
+ def schedule_delete_certificate_authority request_pb, options = nil
553
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
554
+
555
+ verb, uri, query_string_params, body = ServiceStub.transcode_schedule_delete_certificate_authority_request request_pb
556
+ query_string_params = if query_string_params.any?
557
+ query_string_params.to_h { |p| p.split("=", 2) }
558
+ else
559
+ {}
560
+ end
561
+
562
+ response = @client_stub.make_http_request(
563
+ verb,
564
+ uri: uri,
565
+ body: body || "",
566
+ params: query_string_params,
567
+ options: options
568
+ )
569
+ operation = ::Gapic::Rest::TransportOperation.new response
570
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
571
+
572
+ yield result, operation if block_given?
573
+ result
574
+ end
575
+
576
+ ##
577
+ # Baseline implementation for the update_certificate_authority REST call
578
+ #
579
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1beta1::UpdateCertificateAuthorityRequest]
580
+ # A request object representing the call parameters. Required.
581
+ # @param options [::Gapic::CallOptions]
582
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
583
+ #
584
+ # @yield [result, operation] Access the result along with the TransportOperation object
585
+ # @yieldparam result [::Google::Longrunning::Operation]
586
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
587
+ #
588
+ # @return [::Google::Longrunning::Operation]
589
+ # A result object deserialized from the server's reply
590
+ def update_certificate_authority request_pb, options = nil
591
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
592
+
593
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_certificate_authority_request request_pb
594
+ query_string_params = if query_string_params.any?
595
+ query_string_params.to_h { |p| p.split("=", 2) }
596
+ else
597
+ {}
598
+ end
599
+
600
+ response = @client_stub.make_http_request(
601
+ verb,
602
+ uri: uri,
603
+ body: body || "",
604
+ params: query_string_params,
605
+ options: options
606
+ )
607
+ operation = ::Gapic::Rest::TransportOperation.new response
608
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
609
+
610
+ yield result, operation if block_given?
611
+ result
612
+ end
613
+
614
+ ##
615
+ # Baseline implementation for the get_certificate_revocation_list REST call
616
+ #
617
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1beta1::GetCertificateRevocationListRequest]
618
+ # A request object representing the call parameters. Required.
619
+ # @param options [::Gapic::CallOptions]
620
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
621
+ #
622
+ # @yield [result, operation] Access the result along with the TransportOperation object
623
+ # @yieldparam result [::Google::Cloud::Security::PrivateCA::V1beta1::CertificateRevocationList]
624
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
625
+ #
626
+ # @return [::Google::Cloud::Security::PrivateCA::V1beta1::CertificateRevocationList]
627
+ # A result object deserialized from the server's reply
628
+ def get_certificate_revocation_list request_pb, options = nil
629
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
630
+
631
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_certificate_revocation_list_request request_pb
632
+ query_string_params = if query_string_params.any?
633
+ query_string_params.to_h { |p| p.split("=", 2) }
634
+ else
635
+ {}
636
+ end
637
+
638
+ response = @client_stub.make_http_request(
639
+ verb,
640
+ uri: uri,
641
+ body: body || "",
642
+ params: query_string_params,
643
+ options: options
644
+ )
645
+ operation = ::Gapic::Rest::TransportOperation.new response
646
+ result = ::Google::Cloud::Security::PrivateCA::V1beta1::CertificateRevocationList.decode_json response.body, ignore_unknown_fields: true
647
+
648
+ yield result, operation if block_given?
649
+ result
650
+ end
651
+
652
+ ##
653
+ # Baseline implementation for the list_certificate_revocation_lists REST call
654
+ #
655
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1beta1::ListCertificateRevocationListsRequest]
656
+ # A request object representing the call parameters. Required.
657
+ # @param options [::Gapic::CallOptions]
658
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
659
+ #
660
+ # @yield [result, operation] Access the result along with the TransportOperation object
661
+ # @yieldparam result [::Google::Cloud::Security::PrivateCA::V1beta1::ListCertificateRevocationListsResponse]
662
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
663
+ #
664
+ # @return [::Google::Cloud::Security::PrivateCA::V1beta1::ListCertificateRevocationListsResponse]
665
+ # A result object deserialized from the server's reply
666
+ def list_certificate_revocation_lists request_pb, options = nil
667
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
668
+
669
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_certificate_revocation_lists_request request_pb
670
+ query_string_params = if query_string_params.any?
671
+ query_string_params.to_h { |p| p.split("=", 2) }
672
+ else
673
+ {}
674
+ end
675
+
676
+ response = @client_stub.make_http_request(
677
+ verb,
678
+ uri: uri,
679
+ body: body || "",
680
+ params: query_string_params,
681
+ options: options
682
+ )
683
+ operation = ::Gapic::Rest::TransportOperation.new response
684
+ result = ::Google::Cloud::Security::PrivateCA::V1beta1::ListCertificateRevocationListsResponse.decode_json response.body, ignore_unknown_fields: true
685
+
686
+ yield result, operation if block_given?
687
+ result
688
+ end
689
+
690
+ ##
691
+ # Baseline implementation for the update_certificate_revocation_list REST call
692
+ #
693
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1beta1::UpdateCertificateRevocationListRequest]
694
+ # A request object representing the call parameters. Required.
695
+ # @param options [::Gapic::CallOptions]
696
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
697
+ #
698
+ # @yield [result, operation] Access the result along with the TransportOperation object
699
+ # @yieldparam result [::Google::Longrunning::Operation]
700
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
701
+ #
702
+ # @return [::Google::Longrunning::Operation]
703
+ # A result object deserialized from the server's reply
704
+ def update_certificate_revocation_list request_pb, options = nil
705
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
706
+
707
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_certificate_revocation_list_request request_pb
708
+ query_string_params = if query_string_params.any?
709
+ query_string_params.to_h { |p| p.split("=", 2) }
710
+ else
711
+ {}
712
+ end
713
+
714
+ response = @client_stub.make_http_request(
715
+ verb,
716
+ uri: uri,
717
+ body: body || "",
718
+ params: query_string_params,
719
+ options: options
720
+ )
721
+ operation = ::Gapic::Rest::TransportOperation.new response
722
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
723
+
724
+ yield result, operation if block_given?
725
+ result
726
+ end
727
+
728
+ ##
729
+ # Baseline implementation for the get_reusable_config REST call
730
+ #
731
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1beta1::GetReusableConfigRequest]
732
+ # A request object representing the call parameters. Required.
733
+ # @param options [::Gapic::CallOptions]
734
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
735
+ #
736
+ # @yield [result, operation] Access the result along with the TransportOperation object
737
+ # @yieldparam result [::Google::Cloud::Security::PrivateCA::V1beta1::ReusableConfig]
738
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
739
+ #
740
+ # @return [::Google::Cloud::Security::PrivateCA::V1beta1::ReusableConfig]
741
+ # A result object deserialized from the server's reply
742
+ def get_reusable_config request_pb, options = nil
743
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
744
+
745
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_reusable_config_request request_pb
746
+ query_string_params = if query_string_params.any?
747
+ query_string_params.to_h { |p| p.split("=", 2) }
748
+ else
749
+ {}
750
+ end
751
+
752
+ response = @client_stub.make_http_request(
753
+ verb,
754
+ uri: uri,
755
+ body: body || "",
756
+ params: query_string_params,
757
+ options: options
758
+ )
759
+ operation = ::Gapic::Rest::TransportOperation.new response
760
+ result = ::Google::Cloud::Security::PrivateCA::V1beta1::ReusableConfig.decode_json response.body, ignore_unknown_fields: true
761
+
762
+ yield result, operation if block_given?
763
+ result
764
+ end
765
+
766
+ ##
767
+ # Baseline implementation for the list_reusable_configs REST call
768
+ #
769
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1beta1::ListReusableConfigsRequest]
770
+ # A request object representing the call parameters. Required.
771
+ # @param options [::Gapic::CallOptions]
772
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
773
+ #
774
+ # @yield [result, operation] Access the result along with the TransportOperation object
775
+ # @yieldparam result [::Google::Cloud::Security::PrivateCA::V1beta1::ListReusableConfigsResponse]
776
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
777
+ #
778
+ # @return [::Google::Cloud::Security::PrivateCA::V1beta1::ListReusableConfigsResponse]
779
+ # A result object deserialized from the server's reply
780
+ def list_reusable_configs request_pb, options = nil
781
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
782
+
783
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_reusable_configs_request request_pb
784
+ query_string_params = if query_string_params.any?
785
+ query_string_params.to_h { |p| p.split("=", 2) }
786
+ else
787
+ {}
788
+ end
789
+
790
+ response = @client_stub.make_http_request(
791
+ verb,
792
+ uri: uri,
793
+ body: body || "",
794
+ params: query_string_params,
795
+ options: options
796
+ )
797
+ operation = ::Gapic::Rest::TransportOperation.new response
798
+ result = ::Google::Cloud::Security::PrivateCA::V1beta1::ListReusableConfigsResponse.decode_json response.body, ignore_unknown_fields: true
799
+
800
+ yield result, operation if block_given?
801
+ result
802
+ end
803
+
804
+ ##
805
+ # @private
806
+ #
807
+ # GRPC transcoding helper method for the create_certificate REST call
808
+ #
809
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1beta1::CreateCertificateRequest]
810
+ # A request object representing the call parameters. Required.
811
+ # @return [Array(String, [String, nil], Hash{String => String})]
812
+ # Uri, Body, Query string parameters
813
+ def self.transcode_create_certificate_request request_pb
814
+ transcoder = Gapic::Rest::GrpcTranscoder.new
815
+ .with_bindings(
816
+ uri_method: :post,
817
+ uri_template: "/v1beta1/{parent}/certificates",
818
+ body: "certificate",
819
+ matches: [
820
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+/?$}, false]
821
+ ]
822
+ )
823
+ transcoder.transcode request_pb
824
+ end
825
+
826
+ ##
827
+ # @private
828
+ #
829
+ # GRPC transcoding helper method for the get_certificate REST call
830
+ #
831
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1beta1::GetCertificateRequest]
832
+ # A request object representing the call parameters. Required.
833
+ # @return [Array(String, [String, nil], Hash{String => String})]
834
+ # Uri, Body, Query string parameters
835
+ def self.transcode_get_certificate_request request_pb
836
+ transcoder = Gapic::Rest::GrpcTranscoder.new
837
+ .with_bindings(
838
+ uri_method: :get,
839
+ uri_template: "/v1beta1/{name}",
840
+ matches: [
841
+ ["name", %r{^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+/certificates/[^/]+/?$}, false]
842
+ ]
843
+ )
844
+ transcoder.transcode request_pb
845
+ end
846
+
847
+ ##
848
+ # @private
849
+ #
850
+ # GRPC transcoding helper method for the list_certificates REST call
851
+ #
852
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1beta1::ListCertificatesRequest]
853
+ # A request object representing the call parameters. Required.
854
+ # @return [Array(String, [String, nil], Hash{String => String})]
855
+ # Uri, Body, Query string parameters
856
+ def self.transcode_list_certificates_request request_pb
857
+ transcoder = Gapic::Rest::GrpcTranscoder.new
858
+ .with_bindings(
859
+ uri_method: :get,
860
+ uri_template: "/v1beta1/{parent}/certificates",
861
+ matches: [
862
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+/?$}, false]
863
+ ]
864
+ )
865
+ transcoder.transcode request_pb
866
+ end
867
+
868
+ ##
869
+ # @private
870
+ #
871
+ # GRPC transcoding helper method for the revoke_certificate REST call
872
+ #
873
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1beta1::RevokeCertificateRequest]
874
+ # A request object representing the call parameters. Required.
875
+ # @return [Array(String, [String, nil], Hash{String => String})]
876
+ # Uri, Body, Query string parameters
877
+ def self.transcode_revoke_certificate_request request_pb
878
+ transcoder = Gapic::Rest::GrpcTranscoder.new
879
+ .with_bindings(
880
+ uri_method: :post,
881
+ uri_template: "/v1beta1/{name}:revoke",
882
+ body: "*",
883
+ matches: [
884
+ ["name", %r{^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+/certificates/[^/]+/?$}, false]
885
+ ]
886
+ )
887
+ transcoder.transcode request_pb
888
+ end
889
+
890
+ ##
891
+ # @private
892
+ #
893
+ # GRPC transcoding helper method for the update_certificate REST call
894
+ #
895
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1beta1::UpdateCertificateRequest]
896
+ # A request object representing the call parameters. Required.
897
+ # @return [Array(String, [String, nil], Hash{String => String})]
898
+ # Uri, Body, Query string parameters
899
+ def self.transcode_update_certificate_request request_pb
900
+ transcoder = Gapic::Rest::GrpcTranscoder.new
901
+ .with_bindings(
902
+ uri_method: :patch,
903
+ uri_template: "/v1beta1/{certificate.name}",
904
+ body: "certificate",
905
+ matches: [
906
+ ["certificate.name", %r{^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+/certificates/[^/]+/?$}, false]
907
+ ]
908
+ )
909
+ transcoder.transcode request_pb
910
+ end
911
+
912
+ ##
913
+ # @private
914
+ #
915
+ # GRPC transcoding helper method for the activate_certificate_authority REST call
916
+ #
917
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1beta1::ActivateCertificateAuthorityRequest]
918
+ # A request object representing the call parameters. Required.
919
+ # @return [Array(String, [String, nil], Hash{String => String})]
920
+ # Uri, Body, Query string parameters
921
+ def self.transcode_activate_certificate_authority_request request_pb
922
+ transcoder = Gapic::Rest::GrpcTranscoder.new
923
+ .with_bindings(
924
+ uri_method: :post,
925
+ uri_template: "/v1beta1/{name}:activate",
926
+ body: "*",
927
+ matches: [
928
+ ["name", %r{^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+/?$}, false]
929
+ ]
930
+ )
931
+ transcoder.transcode request_pb
932
+ end
933
+
934
+ ##
935
+ # @private
936
+ #
937
+ # GRPC transcoding helper method for the create_certificate_authority REST call
938
+ #
939
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1beta1::CreateCertificateAuthorityRequest]
940
+ # A request object representing the call parameters. Required.
941
+ # @return [Array(String, [String, nil], Hash{String => String})]
942
+ # Uri, Body, Query string parameters
943
+ def self.transcode_create_certificate_authority_request request_pb
944
+ transcoder = Gapic::Rest::GrpcTranscoder.new
945
+ .with_bindings(
946
+ uri_method: :post,
947
+ uri_template: "/v1beta1/{parent}/certificateAuthorities",
948
+ body: "certificate_authority",
949
+ matches: [
950
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
951
+ ]
952
+ )
953
+ transcoder.transcode request_pb
954
+ end
955
+
956
+ ##
957
+ # @private
958
+ #
959
+ # GRPC transcoding helper method for the disable_certificate_authority REST call
960
+ #
961
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1beta1::DisableCertificateAuthorityRequest]
962
+ # A request object representing the call parameters. Required.
963
+ # @return [Array(String, [String, nil], Hash{String => String})]
964
+ # Uri, Body, Query string parameters
965
+ def self.transcode_disable_certificate_authority_request request_pb
966
+ transcoder = Gapic::Rest::GrpcTranscoder.new
967
+ .with_bindings(
968
+ uri_method: :post,
969
+ uri_template: "/v1beta1/{name}:disable",
970
+ body: "*",
971
+ matches: [
972
+ ["name", %r{^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+/?$}, false]
973
+ ]
974
+ )
975
+ transcoder.transcode request_pb
976
+ end
977
+
978
+ ##
979
+ # @private
980
+ #
981
+ # GRPC transcoding helper method for the enable_certificate_authority REST call
982
+ #
983
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1beta1::EnableCertificateAuthorityRequest]
984
+ # A request object representing the call parameters. Required.
985
+ # @return [Array(String, [String, nil], Hash{String => String})]
986
+ # Uri, Body, Query string parameters
987
+ def self.transcode_enable_certificate_authority_request request_pb
988
+ transcoder = Gapic::Rest::GrpcTranscoder.new
989
+ .with_bindings(
990
+ uri_method: :post,
991
+ uri_template: "/v1beta1/{name}:enable",
992
+ body: "*",
993
+ matches: [
994
+ ["name", %r{^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+/?$}, false]
995
+ ]
996
+ )
997
+ transcoder.transcode request_pb
998
+ end
999
+
1000
+ ##
1001
+ # @private
1002
+ #
1003
+ # GRPC transcoding helper method for the fetch_certificate_authority_csr REST call
1004
+ #
1005
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1beta1::FetchCertificateAuthorityCsrRequest]
1006
+ # A request object representing the call parameters. Required.
1007
+ # @return [Array(String, [String, nil], Hash{String => String})]
1008
+ # Uri, Body, Query string parameters
1009
+ def self.transcode_fetch_certificate_authority_csr_request request_pb
1010
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1011
+ .with_bindings(
1012
+ uri_method: :get,
1013
+ uri_template: "/v1beta1/{name}:fetch",
1014
+ matches: [
1015
+ ["name", %r{^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+/?$}, false]
1016
+ ]
1017
+ )
1018
+ transcoder.transcode request_pb
1019
+ end
1020
+
1021
+ ##
1022
+ # @private
1023
+ #
1024
+ # GRPC transcoding helper method for the get_certificate_authority REST call
1025
+ #
1026
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1beta1::GetCertificateAuthorityRequest]
1027
+ # A request object representing the call parameters. Required.
1028
+ # @return [Array(String, [String, nil], Hash{String => String})]
1029
+ # Uri, Body, Query string parameters
1030
+ def self.transcode_get_certificate_authority_request request_pb
1031
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1032
+ .with_bindings(
1033
+ uri_method: :get,
1034
+ uri_template: "/v1beta1/{name}",
1035
+ matches: [
1036
+ ["name", %r{^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+/?$}, false]
1037
+ ]
1038
+ )
1039
+ transcoder.transcode request_pb
1040
+ end
1041
+
1042
+ ##
1043
+ # @private
1044
+ #
1045
+ # GRPC transcoding helper method for the list_certificate_authorities REST call
1046
+ #
1047
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1beta1::ListCertificateAuthoritiesRequest]
1048
+ # A request object representing the call parameters. Required.
1049
+ # @return [Array(String, [String, nil], Hash{String => String})]
1050
+ # Uri, Body, Query string parameters
1051
+ def self.transcode_list_certificate_authorities_request request_pb
1052
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1053
+ .with_bindings(
1054
+ uri_method: :get,
1055
+ uri_template: "/v1beta1/{parent}/certificateAuthorities",
1056
+ matches: [
1057
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
1058
+ ]
1059
+ )
1060
+ transcoder.transcode request_pb
1061
+ end
1062
+
1063
+ ##
1064
+ # @private
1065
+ #
1066
+ # GRPC transcoding helper method for the restore_certificate_authority REST call
1067
+ #
1068
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1beta1::RestoreCertificateAuthorityRequest]
1069
+ # A request object representing the call parameters. Required.
1070
+ # @return [Array(String, [String, nil], Hash{String => String})]
1071
+ # Uri, Body, Query string parameters
1072
+ def self.transcode_restore_certificate_authority_request request_pb
1073
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1074
+ .with_bindings(
1075
+ uri_method: :post,
1076
+ uri_template: "/v1beta1/{name}:restore",
1077
+ body: "*",
1078
+ matches: [
1079
+ ["name", %r{^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+/?$}, false]
1080
+ ]
1081
+ )
1082
+ transcoder.transcode request_pb
1083
+ end
1084
+
1085
+ ##
1086
+ # @private
1087
+ #
1088
+ # GRPC transcoding helper method for the schedule_delete_certificate_authority REST call
1089
+ #
1090
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1beta1::ScheduleDeleteCertificateAuthorityRequest]
1091
+ # A request object representing the call parameters. Required.
1092
+ # @return [Array(String, [String, nil], Hash{String => String})]
1093
+ # Uri, Body, Query string parameters
1094
+ def self.transcode_schedule_delete_certificate_authority_request request_pb
1095
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1096
+ .with_bindings(
1097
+ uri_method: :post,
1098
+ uri_template: "/v1beta1/{name}:scheduleDelete",
1099
+ body: "*",
1100
+ matches: [
1101
+ ["name", %r{^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+/?$}, false]
1102
+ ]
1103
+ )
1104
+ transcoder.transcode request_pb
1105
+ end
1106
+
1107
+ ##
1108
+ # @private
1109
+ #
1110
+ # GRPC transcoding helper method for the update_certificate_authority REST call
1111
+ #
1112
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1beta1::UpdateCertificateAuthorityRequest]
1113
+ # A request object representing the call parameters. Required.
1114
+ # @return [Array(String, [String, nil], Hash{String => String})]
1115
+ # Uri, Body, Query string parameters
1116
+ def self.transcode_update_certificate_authority_request request_pb
1117
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1118
+ .with_bindings(
1119
+ uri_method: :patch,
1120
+ uri_template: "/v1beta1/{certificate_authority.name}",
1121
+ body: "certificate_authority",
1122
+ matches: [
1123
+ ["certificate_authority.name", %r{^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+/?$}, false]
1124
+ ]
1125
+ )
1126
+ transcoder.transcode request_pb
1127
+ end
1128
+
1129
+ ##
1130
+ # @private
1131
+ #
1132
+ # GRPC transcoding helper method for the get_certificate_revocation_list REST call
1133
+ #
1134
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1beta1::GetCertificateRevocationListRequest]
1135
+ # A request object representing the call parameters. Required.
1136
+ # @return [Array(String, [String, nil], Hash{String => String})]
1137
+ # Uri, Body, Query string parameters
1138
+ def self.transcode_get_certificate_revocation_list_request request_pb
1139
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1140
+ .with_bindings(
1141
+ uri_method: :get,
1142
+ uri_template: "/v1beta1/{name}",
1143
+ matches: [
1144
+ ["name", %r{^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+/certificateRevocationLists/[^/]+/?$}, false]
1145
+ ]
1146
+ )
1147
+ transcoder.transcode request_pb
1148
+ end
1149
+
1150
+ ##
1151
+ # @private
1152
+ #
1153
+ # GRPC transcoding helper method for the list_certificate_revocation_lists REST call
1154
+ #
1155
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1beta1::ListCertificateRevocationListsRequest]
1156
+ # A request object representing the call parameters. Required.
1157
+ # @return [Array(String, [String, nil], Hash{String => String})]
1158
+ # Uri, Body, Query string parameters
1159
+ def self.transcode_list_certificate_revocation_lists_request request_pb
1160
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1161
+ .with_bindings(
1162
+ uri_method: :get,
1163
+ uri_template: "/v1beta1/{parent}/certificateRevocationLists",
1164
+ matches: [
1165
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+/?$}, false]
1166
+ ]
1167
+ )
1168
+ transcoder.transcode request_pb
1169
+ end
1170
+
1171
+ ##
1172
+ # @private
1173
+ #
1174
+ # GRPC transcoding helper method for the update_certificate_revocation_list REST call
1175
+ #
1176
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1beta1::UpdateCertificateRevocationListRequest]
1177
+ # A request object representing the call parameters. Required.
1178
+ # @return [Array(String, [String, nil], Hash{String => String})]
1179
+ # Uri, Body, Query string parameters
1180
+ def self.transcode_update_certificate_revocation_list_request request_pb
1181
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1182
+ .with_bindings(
1183
+ uri_method: :patch,
1184
+ uri_template: "/v1beta1/{certificate_revocation_list.name}",
1185
+ body: "certificate_revocation_list",
1186
+ matches: [
1187
+ ["certificate_revocation_list.name", %r{^projects/[^/]+/locations/[^/]+/certificateAuthorities/[^/]+/certificateRevocationLists/[^/]+/?$}, false]
1188
+ ]
1189
+ )
1190
+ transcoder.transcode request_pb
1191
+ end
1192
+
1193
+ ##
1194
+ # @private
1195
+ #
1196
+ # GRPC transcoding helper method for the get_reusable_config REST call
1197
+ #
1198
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1beta1::GetReusableConfigRequest]
1199
+ # A request object representing the call parameters. Required.
1200
+ # @return [Array(String, [String, nil], Hash{String => String})]
1201
+ # Uri, Body, Query string parameters
1202
+ def self.transcode_get_reusable_config_request request_pb
1203
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1204
+ .with_bindings(
1205
+ uri_method: :get,
1206
+ uri_template: "/v1beta1/{name}",
1207
+ matches: [
1208
+ ["name", %r{^projects/[^/]+/locations/[^/]+/reusableConfigs/[^/]+/?$}, false]
1209
+ ]
1210
+ )
1211
+ transcoder.transcode request_pb
1212
+ end
1213
+
1214
+ ##
1215
+ # @private
1216
+ #
1217
+ # GRPC transcoding helper method for the list_reusable_configs REST call
1218
+ #
1219
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1beta1::ListReusableConfigsRequest]
1220
+ # A request object representing the call parameters. Required.
1221
+ # @return [Array(String, [String, nil], Hash{String => String})]
1222
+ # Uri, Body, Query string parameters
1223
+ def self.transcode_list_reusable_configs_request request_pb
1224
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1225
+ .with_bindings(
1226
+ uri_method: :get,
1227
+ uri_template: "/v1beta1/{parent}/reusableConfigs",
1228
+ matches: [
1229
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
1230
+ ]
1231
+ )
1232
+ transcoder.transcode request_pb
1233
+ end
1234
+ end
1235
+ end
1236
+ end
1237
+ end
1238
+ end
1239
+ end
1240
+ end
1241
+ end