google-cloud-security-private_ca-v1 0.4.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (23) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +1 -1
  3. data/README.md +2 -2
  4. data/lib/google/cloud/security/private_ca/v1/bindings_override.rb +185 -0
  5. data/lib/google/cloud/security/private_ca/v1/certificate_authority_service/client.rb +415 -330
  6. data/lib/google/cloud/security/private_ca/v1/certificate_authority_service/operations.rb +12 -14
  7. data/lib/google/cloud/security/private_ca/v1/certificate_authority_service/rest/client.rb +2877 -0
  8. data/lib/google/cloud/security/private_ca/v1/certificate_authority_service/rest/operations.rb +795 -0
  9. data/lib/google/cloud/security/private_ca/v1/certificate_authority_service/rest/service_stub.rb +1776 -0
  10. data/lib/google/cloud/security/private_ca/v1/certificate_authority_service/rest.rb +58 -0
  11. data/lib/google/cloud/security/private_ca/v1/certificate_authority_service.rb +10 -3
  12. data/lib/google/cloud/security/private_ca/v1/rest.rb +40 -0
  13. data/lib/google/cloud/security/private_ca/v1/version.rb +1 -1
  14. data/lib/google/cloud/security/private_ca/v1.rb +7 -2
  15. data/lib/google/cloud/security/privateca/v1/resources_pb.rb +14 -0
  16. data/lib/google/cloud/security/privateca/v1/service_services_pb.rb +64 -32
  17. data/proto_docs/google/api/client.rb +318 -0
  18. data/proto_docs/google/api/launch_stage.rb +71 -0
  19. data/proto_docs/google/cloud/security/privateca/v1/resources.rb +588 -302
  20. data/proto_docs/google/cloud/security/privateca/v1/service.rb +297 -223
  21. data/proto_docs/google/protobuf/empty.rb +0 -2
  22. data/proto_docs/google/rpc/status.rb +4 -2
  23. metadata +22 -12
@@ -0,0 +1,1776 @@
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/v1/service_pb"
20
+
21
+ module Google
22
+ module Cloud
23
+ module Security
24
+ module PrivateCA
25
+ module V1
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::V1::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::V1::Certificate]
54
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
55
+ #
56
+ # @return [::Google::Cloud::Security::PrivateCA::V1::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::V1::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::V1::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::V1::Certificate]
92
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
93
+ #
94
+ # @return [::Google::Cloud::Security::PrivateCA::V1::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::V1::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::V1::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::V1::ListCertificatesResponse]
130
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
131
+ #
132
+ # @return [::Google::Cloud::Security::PrivateCA::V1::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::V1::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::V1::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::V1::Certificate]
168
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
169
+ #
170
+ # @return [::Google::Cloud::Security::PrivateCA::V1::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::V1::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::V1::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::V1::Certificate]
206
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
207
+ #
208
+ # @return [::Google::Cloud::Security::PrivateCA::V1::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::V1::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::V1::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::V1::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::V1::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::V1::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::V1::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::V1::FetchCertificateAuthorityCsrResponse]
396
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
397
+ #
398
+ # @return [::Google::Cloud::Security::PrivateCA::V1::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::V1::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::V1::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::V1::CertificateAuthority]
434
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
435
+ #
436
+ # @return [::Google::Cloud::Security::PrivateCA::V1::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::V1::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::V1::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::V1::ListCertificateAuthoritiesResponse]
472
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
473
+ #
474
+ # @return [::Google::Cloud::Security::PrivateCA::V1::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::V1::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 undelete_certificate_authority REST call
502
+ #
503
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1::UndeleteCertificateAuthorityRequest]
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 undelete_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_undelete_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 delete_certificate_authority REST call
540
+ #
541
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1::DeleteCertificateAuthorityRequest]
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 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_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::V1::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 create_ca_pool REST call
616
+ #
617
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1::CreateCaPoolRequest]
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::Longrunning::Operation]
624
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
625
+ #
626
+ # @return [::Google::Longrunning::Operation]
627
+ # A result object deserialized from the server's reply
628
+ def create_ca_pool 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_create_ca_pool_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::Longrunning::Operation.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 update_ca_pool REST call
654
+ #
655
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1::UpdateCaPoolRequest]
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::Longrunning::Operation]
662
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
663
+ #
664
+ # @return [::Google::Longrunning::Operation]
665
+ # A result object deserialized from the server's reply
666
+ def update_ca_pool 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_update_ca_pool_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::Longrunning::Operation.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 get_ca_pool REST call
692
+ #
693
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1::GetCaPoolRequest]
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::Cloud::Security::PrivateCA::V1::CaPool]
700
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
701
+ #
702
+ # @return [::Google::Cloud::Security::PrivateCA::V1::CaPool]
703
+ # A result object deserialized from the server's reply
704
+ def get_ca_pool 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_get_ca_pool_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::Cloud::Security::PrivateCA::V1::CaPool.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 list_ca_pools REST call
730
+ #
731
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1::ListCaPoolsRequest]
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::V1::ListCaPoolsResponse]
738
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
739
+ #
740
+ # @return [::Google::Cloud::Security::PrivateCA::V1::ListCaPoolsResponse]
741
+ # A result object deserialized from the server's reply
742
+ def list_ca_pools 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_list_ca_pools_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::V1::ListCaPoolsResponse.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 delete_ca_pool REST call
768
+ #
769
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1::DeleteCaPoolRequest]
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::Longrunning::Operation]
776
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
777
+ #
778
+ # @return [::Google::Longrunning::Operation]
779
+ # A result object deserialized from the server's reply
780
+ def delete_ca_pool 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_delete_ca_pool_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::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
799
+
800
+ yield result, operation if block_given?
801
+ result
802
+ end
803
+
804
+ ##
805
+ # Baseline implementation for the fetch_ca_certs REST call
806
+ #
807
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1::FetchCaCertsRequest]
808
+ # A request object representing the call parameters. Required.
809
+ # @param options [::Gapic::CallOptions]
810
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
811
+ #
812
+ # @yield [result, operation] Access the result along with the TransportOperation object
813
+ # @yieldparam result [::Google::Cloud::Security::PrivateCA::V1::FetchCaCertsResponse]
814
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
815
+ #
816
+ # @return [::Google::Cloud::Security::PrivateCA::V1::FetchCaCertsResponse]
817
+ # A result object deserialized from the server's reply
818
+ def fetch_ca_certs request_pb, options = nil
819
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
820
+
821
+ verb, uri, query_string_params, body = ServiceStub.transcode_fetch_ca_certs_request request_pb
822
+ query_string_params = if query_string_params.any?
823
+ query_string_params.to_h { |p| p.split("=", 2) }
824
+ else
825
+ {}
826
+ end
827
+
828
+ response = @client_stub.make_http_request(
829
+ verb,
830
+ uri: uri,
831
+ body: body || "",
832
+ params: query_string_params,
833
+ options: options
834
+ )
835
+ operation = ::Gapic::Rest::TransportOperation.new response
836
+ result = ::Google::Cloud::Security::PrivateCA::V1::FetchCaCertsResponse.decode_json response.body, ignore_unknown_fields: true
837
+
838
+ yield result, operation if block_given?
839
+ result
840
+ end
841
+
842
+ ##
843
+ # Baseline implementation for the get_certificate_revocation_list REST call
844
+ #
845
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1::GetCertificateRevocationListRequest]
846
+ # A request object representing the call parameters. Required.
847
+ # @param options [::Gapic::CallOptions]
848
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
849
+ #
850
+ # @yield [result, operation] Access the result along with the TransportOperation object
851
+ # @yieldparam result [::Google::Cloud::Security::PrivateCA::V1::CertificateRevocationList]
852
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
853
+ #
854
+ # @return [::Google::Cloud::Security::PrivateCA::V1::CertificateRevocationList]
855
+ # A result object deserialized from the server's reply
856
+ def get_certificate_revocation_list request_pb, options = nil
857
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
858
+
859
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_certificate_revocation_list_request request_pb
860
+ query_string_params = if query_string_params.any?
861
+ query_string_params.to_h { |p| p.split("=", 2) }
862
+ else
863
+ {}
864
+ end
865
+
866
+ response = @client_stub.make_http_request(
867
+ verb,
868
+ uri: uri,
869
+ body: body || "",
870
+ params: query_string_params,
871
+ options: options
872
+ )
873
+ operation = ::Gapic::Rest::TransportOperation.new response
874
+ result = ::Google::Cloud::Security::PrivateCA::V1::CertificateRevocationList.decode_json response.body, ignore_unknown_fields: true
875
+
876
+ yield result, operation if block_given?
877
+ result
878
+ end
879
+
880
+ ##
881
+ # Baseline implementation for the list_certificate_revocation_lists REST call
882
+ #
883
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1::ListCertificateRevocationListsRequest]
884
+ # A request object representing the call parameters. Required.
885
+ # @param options [::Gapic::CallOptions]
886
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
887
+ #
888
+ # @yield [result, operation] Access the result along with the TransportOperation object
889
+ # @yieldparam result [::Google::Cloud::Security::PrivateCA::V1::ListCertificateRevocationListsResponse]
890
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
891
+ #
892
+ # @return [::Google::Cloud::Security::PrivateCA::V1::ListCertificateRevocationListsResponse]
893
+ # A result object deserialized from the server's reply
894
+ def list_certificate_revocation_lists request_pb, options = nil
895
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
896
+
897
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_certificate_revocation_lists_request request_pb
898
+ query_string_params = if query_string_params.any?
899
+ query_string_params.to_h { |p| p.split("=", 2) }
900
+ else
901
+ {}
902
+ end
903
+
904
+ response = @client_stub.make_http_request(
905
+ verb,
906
+ uri: uri,
907
+ body: body || "",
908
+ params: query_string_params,
909
+ options: options
910
+ )
911
+ operation = ::Gapic::Rest::TransportOperation.new response
912
+ result = ::Google::Cloud::Security::PrivateCA::V1::ListCertificateRevocationListsResponse.decode_json response.body, ignore_unknown_fields: true
913
+
914
+ yield result, operation if block_given?
915
+ result
916
+ end
917
+
918
+ ##
919
+ # Baseline implementation for the update_certificate_revocation_list REST call
920
+ #
921
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1::UpdateCertificateRevocationListRequest]
922
+ # A request object representing the call parameters. Required.
923
+ # @param options [::Gapic::CallOptions]
924
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
925
+ #
926
+ # @yield [result, operation] Access the result along with the TransportOperation object
927
+ # @yieldparam result [::Google::Longrunning::Operation]
928
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
929
+ #
930
+ # @return [::Google::Longrunning::Operation]
931
+ # A result object deserialized from the server's reply
932
+ def update_certificate_revocation_list request_pb, options = nil
933
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
934
+
935
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_certificate_revocation_list_request request_pb
936
+ query_string_params = if query_string_params.any?
937
+ query_string_params.to_h { |p| p.split("=", 2) }
938
+ else
939
+ {}
940
+ end
941
+
942
+ response = @client_stub.make_http_request(
943
+ verb,
944
+ uri: uri,
945
+ body: body || "",
946
+ params: query_string_params,
947
+ options: options
948
+ )
949
+ operation = ::Gapic::Rest::TransportOperation.new response
950
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
951
+
952
+ yield result, operation if block_given?
953
+ result
954
+ end
955
+
956
+ ##
957
+ # Baseline implementation for the create_certificate_template REST call
958
+ #
959
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1::CreateCertificateTemplateRequest]
960
+ # A request object representing the call parameters. Required.
961
+ # @param options [::Gapic::CallOptions]
962
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
963
+ #
964
+ # @yield [result, operation] Access the result along with the TransportOperation object
965
+ # @yieldparam result [::Google::Longrunning::Operation]
966
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
967
+ #
968
+ # @return [::Google::Longrunning::Operation]
969
+ # A result object deserialized from the server's reply
970
+ def create_certificate_template request_pb, options = nil
971
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
972
+
973
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_certificate_template_request request_pb
974
+ query_string_params = if query_string_params.any?
975
+ query_string_params.to_h { |p| p.split("=", 2) }
976
+ else
977
+ {}
978
+ end
979
+
980
+ response = @client_stub.make_http_request(
981
+ verb,
982
+ uri: uri,
983
+ body: body || "",
984
+ params: query_string_params,
985
+ options: options
986
+ )
987
+ operation = ::Gapic::Rest::TransportOperation.new response
988
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
989
+
990
+ yield result, operation if block_given?
991
+ result
992
+ end
993
+
994
+ ##
995
+ # Baseline implementation for the delete_certificate_template REST call
996
+ #
997
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1::DeleteCertificateTemplateRequest]
998
+ # A request object representing the call parameters. Required.
999
+ # @param options [::Gapic::CallOptions]
1000
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1001
+ #
1002
+ # @yield [result, operation] Access the result along with the TransportOperation object
1003
+ # @yieldparam result [::Google::Longrunning::Operation]
1004
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1005
+ #
1006
+ # @return [::Google::Longrunning::Operation]
1007
+ # A result object deserialized from the server's reply
1008
+ def delete_certificate_template request_pb, options = nil
1009
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1010
+
1011
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_certificate_template_request request_pb
1012
+ query_string_params = if query_string_params.any?
1013
+ query_string_params.to_h { |p| p.split("=", 2) }
1014
+ else
1015
+ {}
1016
+ end
1017
+
1018
+ response = @client_stub.make_http_request(
1019
+ verb,
1020
+ uri: uri,
1021
+ body: body || "",
1022
+ params: query_string_params,
1023
+ options: options
1024
+ )
1025
+ operation = ::Gapic::Rest::TransportOperation.new response
1026
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
1027
+
1028
+ yield result, operation if block_given?
1029
+ result
1030
+ end
1031
+
1032
+ ##
1033
+ # Baseline implementation for the get_certificate_template REST call
1034
+ #
1035
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1::GetCertificateTemplateRequest]
1036
+ # A request object representing the call parameters. Required.
1037
+ # @param options [::Gapic::CallOptions]
1038
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1039
+ #
1040
+ # @yield [result, operation] Access the result along with the TransportOperation object
1041
+ # @yieldparam result [::Google::Cloud::Security::PrivateCA::V1::CertificateTemplate]
1042
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1043
+ #
1044
+ # @return [::Google::Cloud::Security::PrivateCA::V1::CertificateTemplate]
1045
+ # A result object deserialized from the server's reply
1046
+ def get_certificate_template request_pb, options = nil
1047
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1048
+
1049
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_certificate_template_request request_pb
1050
+ query_string_params = if query_string_params.any?
1051
+ query_string_params.to_h { |p| p.split("=", 2) }
1052
+ else
1053
+ {}
1054
+ end
1055
+
1056
+ response = @client_stub.make_http_request(
1057
+ verb,
1058
+ uri: uri,
1059
+ body: body || "",
1060
+ params: query_string_params,
1061
+ options: options
1062
+ )
1063
+ operation = ::Gapic::Rest::TransportOperation.new response
1064
+ result = ::Google::Cloud::Security::PrivateCA::V1::CertificateTemplate.decode_json response.body, ignore_unknown_fields: true
1065
+
1066
+ yield result, operation if block_given?
1067
+ result
1068
+ end
1069
+
1070
+ ##
1071
+ # Baseline implementation for the list_certificate_templates REST call
1072
+ #
1073
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1::ListCertificateTemplatesRequest]
1074
+ # A request object representing the call parameters. Required.
1075
+ # @param options [::Gapic::CallOptions]
1076
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1077
+ #
1078
+ # @yield [result, operation] Access the result along with the TransportOperation object
1079
+ # @yieldparam result [::Google::Cloud::Security::PrivateCA::V1::ListCertificateTemplatesResponse]
1080
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1081
+ #
1082
+ # @return [::Google::Cloud::Security::PrivateCA::V1::ListCertificateTemplatesResponse]
1083
+ # A result object deserialized from the server's reply
1084
+ def list_certificate_templates request_pb, options = nil
1085
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1086
+
1087
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_certificate_templates_request request_pb
1088
+ query_string_params = if query_string_params.any?
1089
+ query_string_params.to_h { |p| p.split("=", 2) }
1090
+ else
1091
+ {}
1092
+ end
1093
+
1094
+ response = @client_stub.make_http_request(
1095
+ verb,
1096
+ uri: uri,
1097
+ body: body || "",
1098
+ params: query_string_params,
1099
+ options: options
1100
+ )
1101
+ operation = ::Gapic::Rest::TransportOperation.new response
1102
+ result = ::Google::Cloud::Security::PrivateCA::V1::ListCertificateTemplatesResponse.decode_json response.body, ignore_unknown_fields: true
1103
+
1104
+ yield result, operation if block_given?
1105
+ result
1106
+ end
1107
+
1108
+ ##
1109
+ # Baseline implementation for the update_certificate_template REST call
1110
+ #
1111
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1::UpdateCertificateTemplateRequest]
1112
+ # A request object representing the call parameters. Required.
1113
+ # @param options [::Gapic::CallOptions]
1114
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1115
+ #
1116
+ # @yield [result, operation] Access the result along with the TransportOperation object
1117
+ # @yieldparam result [::Google::Longrunning::Operation]
1118
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1119
+ #
1120
+ # @return [::Google::Longrunning::Operation]
1121
+ # A result object deserialized from the server's reply
1122
+ def update_certificate_template request_pb, options = nil
1123
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1124
+
1125
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_certificate_template_request request_pb
1126
+ query_string_params = if query_string_params.any?
1127
+ query_string_params.to_h { |p| p.split("=", 2) }
1128
+ else
1129
+ {}
1130
+ end
1131
+
1132
+ response = @client_stub.make_http_request(
1133
+ verb,
1134
+ uri: uri,
1135
+ body: body || "",
1136
+ params: query_string_params,
1137
+ options: options
1138
+ )
1139
+ operation = ::Gapic::Rest::TransportOperation.new response
1140
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
1141
+
1142
+ yield result, operation if block_given?
1143
+ result
1144
+ end
1145
+
1146
+ ##
1147
+ # @private
1148
+ #
1149
+ # GRPC transcoding helper method for the create_certificate REST call
1150
+ #
1151
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1::CreateCertificateRequest]
1152
+ # A request object representing the call parameters. Required.
1153
+ # @return [Array(String, [String, nil], Hash{String => String})]
1154
+ # Uri, Body, Query string parameters
1155
+ def self.transcode_create_certificate_request request_pb
1156
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1157
+ .with_bindings(
1158
+ uri_method: :post,
1159
+ uri_template: "/v1/{parent}/certificates",
1160
+ body: "certificate",
1161
+ matches: [
1162
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/caPools/[^/]+/?$}, false]
1163
+ ]
1164
+ )
1165
+ transcoder.transcode request_pb
1166
+ end
1167
+
1168
+ ##
1169
+ # @private
1170
+ #
1171
+ # GRPC transcoding helper method for the get_certificate REST call
1172
+ #
1173
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1::GetCertificateRequest]
1174
+ # A request object representing the call parameters. Required.
1175
+ # @return [Array(String, [String, nil], Hash{String => String})]
1176
+ # Uri, Body, Query string parameters
1177
+ def self.transcode_get_certificate_request request_pb
1178
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1179
+ .with_bindings(
1180
+ uri_method: :get,
1181
+ uri_template: "/v1/{name}",
1182
+ matches: [
1183
+ ["name", %r{^projects/[^/]+/locations/[^/]+/caPools/[^/]+/certificates/[^/]+/?$}, false]
1184
+ ]
1185
+ )
1186
+ transcoder.transcode request_pb
1187
+ end
1188
+
1189
+ ##
1190
+ # @private
1191
+ #
1192
+ # GRPC transcoding helper method for the list_certificates REST call
1193
+ #
1194
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1::ListCertificatesRequest]
1195
+ # A request object representing the call parameters. Required.
1196
+ # @return [Array(String, [String, nil], Hash{String => String})]
1197
+ # Uri, Body, Query string parameters
1198
+ def self.transcode_list_certificates_request request_pb
1199
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1200
+ .with_bindings(
1201
+ uri_method: :get,
1202
+ uri_template: "/v1/{parent}/certificates",
1203
+ matches: [
1204
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/caPools/[^/]+/?$}, false]
1205
+ ]
1206
+ )
1207
+ transcoder.transcode request_pb
1208
+ end
1209
+
1210
+ ##
1211
+ # @private
1212
+ #
1213
+ # GRPC transcoding helper method for the revoke_certificate REST call
1214
+ #
1215
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1::RevokeCertificateRequest]
1216
+ # A request object representing the call parameters. Required.
1217
+ # @return [Array(String, [String, nil], Hash{String => String})]
1218
+ # Uri, Body, Query string parameters
1219
+ def self.transcode_revoke_certificate_request request_pb
1220
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1221
+ .with_bindings(
1222
+ uri_method: :post,
1223
+ uri_template: "/v1/{name}:revoke",
1224
+ body: "*",
1225
+ matches: [
1226
+ ["name", %r{^projects/[^/]+/locations/[^/]+/caPools/[^/]+/certificates/[^/]+/?$}, false]
1227
+ ]
1228
+ )
1229
+ transcoder.transcode request_pb
1230
+ end
1231
+
1232
+ ##
1233
+ # @private
1234
+ #
1235
+ # GRPC transcoding helper method for the update_certificate REST call
1236
+ #
1237
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1::UpdateCertificateRequest]
1238
+ # A request object representing the call parameters. Required.
1239
+ # @return [Array(String, [String, nil], Hash{String => String})]
1240
+ # Uri, Body, Query string parameters
1241
+ def self.transcode_update_certificate_request request_pb
1242
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1243
+ .with_bindings(
1244
+ uri_method: :patch,
1245
+ uri_template: "/v1/{certificate.name}",
1246
+ body: "certificate",
1247
+ matches: [
1248
+ ["certificate.name", %r{^projects/[^/]+/locations/[^/]+/caPools/[^/]+/certificates/[^/]+/?$}, false]
1249
+ ]
1250
+ )
1251
+ transcoder.transcode request_pb
1252
+ end
1253
+
1254
+ ##
1255
+ # @private
1256
+ #
1257
+ # GRPC transcoding helper method for the activate_certificate_authority REST call
1258
+ #
1259
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1::ActivateCertificateAuthorityRequest]
1260
+ # A request object representing the call parameters. Required.
1261
+ # @return [Array(String, [String, nil], Hash{String => String})]
1262
+ # Uri, Body, Query string parameters
1263
+ def self.transcode_activate_certificate_authority_request request_pb
1264
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1265
+ .with_bindings(
1266
+ uri_method: :post,
1267
+ uri_template: "/v1/{name}:activate",
1268
+ body: "*",
1269
+ matches: [
1270
+ ["name", %r{^projects/[^/]+/locations/[^/]+/caPools/[^/]+/certificateAuthorities/[^/]+/?$}, false]
1271
+ ]
1272
+ )
1273
+ transcoder.transcode request_pb
1274
+ end
1275
+
1276
+ ##
1277
+ # @private
1278
+ #
1279
+ # GRPC transcoding helper method for the create_certificate_authority REST call
1280
+ #
1281
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1::CreateCertificateAuthorityRequest]
1282
+ # A request object representing the call parameters. Required.
1283
+ # @return [Array(String, [String, nil], Hash{String => String})]
1284
+ # Uri, Body, Query string parameters
1285
+ def self.transcode_create_certificate_authority_request request_pb
1286
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1287
+ .with_bindings(
1288
+ uri_method: :post,
1289
+ uri_template: "/v1/{parent}/certificateAuthorities",
1290
+ body: "certificate_authority",
1291
+ matches: [
1292
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/caPools/[^/]+/?$}, false]
1293
+ ]
1294
+ )
1295
+ transcoder.transcode request_pb
1296
+ end
1297
+
1298
+ ##
1299
+ # @private
1300
+ #
1301
+ # GRPC transcoding helper method for the disable_certificate_authority REST call
1302
+ #
1303
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1::DisableCertificateAuthorityRequest]
1304
+ # A request object representing the call parameters. Required.
1305
+ # @return [Array(String, [String, nil], Hash{String => String})]
1306
+ # Uri, Body, Query string parameters
1307
+ def self.transcode_disable_certificate_authority_request request_pb
1308
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1309
+ .with_bindings(
1310
+ uri_method: :post,
1311
+ uri_template: "/v1/{name}:disable",
1312
+ body: "*",
1313
+ matches: [
1314
+ ["name", %r{^projects/[^/]+/locations/[^/]+/caPools/[^/]+/certificateAuthorities/[^/]+/?$}, false]
1315
+ ]
1316
+ )
1317
+ transcoder.transcode request_pb
1318
+ end
1319
+
1320
+ ##
1321
+ # @private
1322
+ #
1323
+ # GRPC transcoding helper method for the enable_certificate_authority REST call
1324
+ #
1325
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1::EnableCertificateAuthorityRequest]
1326
+ # A request object representing the call parameters. Required.
1327
+ # @return [Array(String, [String, nil], Hash{String => String})]
1328
+ # Uri, Body, Query string parameters
1329
+ def self.transcode_enable_certificate_authority_request request_pb
1330
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1331
+ .with_bindings(
1332
+ uri_method: :post,
1333
+ uri_template: "/v1/{name}:enable",
1334
+ body: "*",
1335
+ matches: [
1336
+ ["name", %r{^projects/[^/]+/locations/[^/]+/caPools/[^/]+/certificateAuthorities/[^/]+/?$}, false]
1337
+ ]
1338
+ )
1339
+ transcoder.transcode request_pb
1340
+ end
1341
+
1342
+ ##
1343
+ # @private
1344
+ #
1345
+ # GRPC transcoding helper method for the fetch_certificate_authority_csr REST call
1346
+ #
1347
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1::FetchCertificateAuthorityCsrRequest]
1348
+ # A request object representing the call parameters. Required.
1349
+ # @return [Array(String, [String, nil], Hash{String => String})]
1350
+ # Uri, Body, Query string parameters
1351
+ def self.transcode_fetch_certificate_authority_csr_request request_pb
1352
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1353
+ .with_bindings(
1354
+ uri_method: :get,
1355
+ uri_template: "/v1/{name}:fetch",
1356
+ matches: [
1357
+ ["name", %r{^projects/[^/]+/locations/[^/]+/caPools/[^/]+/certificateAuthorities/[^/]+/?$}, false]
1358
+ ]
1359
+ )
1360
+ transcoder.transcode request_pb
1361
+ end
1362
+
1363
+ ##
1364
+ # @private
1365
+ #
1366
+ # GRPC transcoding helper method for the get_certificate_authority REST call
1367
+ #
1368
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1::GetCertificateAuthorityRequest]
1369
+ # A request object representing the call parameters. Required.
1370
+ # @return [Array(String, [String, nil], Hash{String => String})]
1371
+ # Uri, Body, Query string parameters
1372
+ def self.transcode_get_certificate_authority_request request_pb
1373
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1374
+ .with_bindings(
1375
+ uri_method: :get,
1376
+ uri_template: "/v1/{name}",
1377
+ matches: [
1378
+ ["name", %r{^projects/[^/]+/locations/[^/]+/caPools/[^/]+/certificateAuthorities/[^/]+/?$}, false]
1379
+ ]
1380
+ )
1381
+ transcoder.transcode request_pb
1382
+ end
1383
+
1384
+ ##
1385
+ # @private
1386
+ #
1387
+ # GRPC transcoding helper method for the list_certificate_authorities REST call
1388
+ #
1389
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1::ListCertificateAuthoritiesRequest]
1390
+ # A request object representing the call parameters. Required.
1391
+ # @return [Array(String, [String, nil], Hash{String => String})]
1392
+ # Uri, Body, Query string parameters
1393
+ def self.transcode_list_certificate_authorities_request request_pb
1394
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1395
+ .with_bindings(
1396
+ uri_method: :get,
1397
+ uri_template: "/v1/{parent}/certificateAuthorities",
1398
+ matches: [
1399
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/caPools/[^/]+/?$}, false]
1400
+ ]
1401
+ )
1402
+ transcoder.transcode request_pb
1403
+ end
1404
+
1405
+ ##
1406
+ # @private
1407
+ #
1408
+ # GRPC transcoding helper method for the undelete_certificate_authority REST call
1409
+ #
1410
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1::UndeleteCertificateAuthorityRequest]
1411
+ # A request object representing the call parameters. Required.
1412
+ # @return [Array(String, [String, nil], Hash{String => String})]
1413
+ # Uri, Body, Query string parameters
1414
+ def self.transcode_undelete_certificate_authority_request request_pb
1415
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1416
+ .with_bindings(
1417
+ uri_method: :post,
1418
+ uri_template: "/v1/{name}:undelete",
1419
+ body: "*",
1420
+ matches: [
1421
+ ["name", %r{^projects/[^/]+/locations/[^/]+/caPools/[^/]+/certificateAuthorities/[^/]+/?$}, false]
1422
+ ]
1423
+ )
1424
+ transcoder.transcode request_pb
1425
+ end
1426
+
1427
+ ##
1428
+ # @private
1429
+ #
1430
+ # GRPC transcoding helper method for the delete_certificate_authority REST call
1431
+ #
1432
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1::DeleteCertificateAuthorityRequest]
1433
+ # A request object representing the call parameters. Required.
1434
+ # @return [Array(String, [String, nil], Hash{String => String})]
1435
+ # Uri, Body, Query string parameters
1436
+ def self.transcode_delete_certificate_authority_request request_pb
1437
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1438
+ .with_bindings(
1439
+ uri_method: :delete,
1440
+ uri_template: "/v1/{name}",
1441
+ matches: [
1442
+ ["name", %r{^projects/[^/]+/locations/[^/]+/caPools/[^/]+/certificateAuthorities/[^/]+/?$}, false]
1443
+ ]
1444
+ )
1445
+ transcoder.transcode request_pb
1446
+ end
1447
+
1448
+ ##
1449
+ # @private
1450
+ #
1451
+ # GRPC transcoding helper method for the update_certificate_authority REST call
1452
+ #
1453
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1::UpdateCertificateAuthorityRequest]
1454
+ # A request object representing the call parameters. Required.
1455
+ # @return [Array(String, [String, nil], Hash{String => String})]
1456
+ # Uri, Body, Query string parameters
1457
+ def self.transcode_update_certificate_authority_request request_pb
1458
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1459
+ .with_bindings(
1460
+ uri_method: :patch,
1461
+ uri_template: "/v1/{certificate_authority.name}",
1462
+ body: "certificate_authority",
1463
+ matches: [
1464
+ ["certificate_authority.name", %r{^projects/[^/]+/locations/[^/]+/caPools/[^/]+/certificateAuthorities/[^/]+/?$}, false]
1465
+ ]
1466
+ )
1467
+ transcoder.transcode request_pb
1468
+ end
1469
+
1470
+ ##
1471
+ # @private
1472
+ #
1473
+ # GRPC transcoding helper method for the create_ca_pool REST call
1474
+ #
1475
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1::CreateCaPoolRequest]
1476
+ # A request object representing the call parameters. Required.
1477
+ # @return [Array(String, [String, nil], Hash{String => String})]
1478
+ # Uri, Body, Query string parameters
1479
+ def self.transcode_create_ca_pool_request request_pb
1480
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1481
+ .with_bindings(
1482
+ uri_method: :post,
1483
+ uri_template: "/v1/{parent}/caPools",
1484
+ body: "ca_pool",
1485
+ matches: [
1486
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
1487
+ ]
1488
+ )
1489
+ transcoder.transcode request_pb
1490
+ end
1491
+
1492
+ ##
1493
+ # @private
1494
+ #
1495
+ # GRPC transcoding helper method for the update_ca_pool REST call
1496
+ #
1497
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1::UpdateCaPoolRequest]
1498
+ # A request object representing the call parameters. Required.
1499
+ # @return [Array(String, [String, nil], Hash{String => String})]
1500
+ # Uri, Body, Query string parameters
1501
+ def self.transcode_update_ca_pool_request request_pb
1502
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1503
+ .with_bindings(
1504
+ uri_method: :patch,
1505
+ uri_template: "/v1/{ca_pool.name}",
1506
+ body: "ca_pool",
1507
+ matches: [
1508
+ ["ca_pool.name", %r{^projects/[^/]+/locations/[^/]+/caPools/[^/]+/?$}, false]
1509
+ ]
1510
+ )
1511
+ transcoder.transcode request_pb
1512
+ end
1513
+
1514
+ ##
1515
+ # @private
1516
+ #
1517
+ # GRPC transcoding helper method for the get_ca_pool REST call
1518
+ #
1519
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1::GetCaPoolRequest]
1520
+ # A request object representing the call parameters. Required.
1521
+ # @return [Array(String, [String, nil], Hash{String => String})]
1522
+ # Uri, Body, Query string parameters
1523
+ def self.transcode_get_ca_pool_request request_pb
1524
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1525
+ .with_bindings(
1526
+ uri_method: :get,
1527
+ uri_template: "/v1/{name}",
1528
+ matches: [
1529
+ ["name", %r{^projects/[^/]+/locations/[^/]+/caPools/[^/]+/?$}, false]
1530
+ ]
1531
+ )
1532
+ transcoder.transcode request_pb
1533
+ end
1534
+
1535
+ ##
1536
+ # @private
1537
+ #
1538
+ # GRPC transcoding helper method for the list_ca_pools REST call
1539
+ #
1540
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1::ListCaPoolsRequest]
1541
+ # A request object representing the call parameters. Required.
1542
+ # @return [Array(String, [String, nil], Hash{String => String})]
1543
+ # Uri, Body, Query string parameters
1544
+ def self.transcode_list_ca_pools_request request_pb
1545
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1546
+ .with_bindings(
1547
+ uri_method: :get,
1548
+ uri_template: "/v1/{parent}/caPools",
1549
+ matches: [
1550
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
1551
+ ]
1552
+ )
1553
+ transcoder.transcode request_pb
1554
+ end
1555
+
1556
+ ##
1557
+ # @private
1558
+ #
1559
+ # GRPC transcoding helper method for the delete_ca_pool REST call
1560
+ #
1561
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1::DeleteCaPoolRequest]
1562
+ # A request object representing the call parameters. Required.
1563
+ # @return [Array(String, [String, nil], Hash{String => String})]
1564
+ # Uri, Body, Query string parameters
1565
+ def self.transcode_delete_ca_pool_request request_pb
1566
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1567
+ .with_bindings(
1568
+ uri_method: :delete,
1569
+ uri_template: "/v1/{name}",
1570
+ matches: [
1571
+ ["name", %r{^projects/[^/]+/locations/[^/]+/caPools/[^/]+/?$}, false]
1572
+ ]
1573
+ )
1574
+ transcoder.transcode request_pb
1575
+ end
1576
+
1577
+ ##
1578
+ # @private
1579
+ #
1580
+ # GRPC transcoding helper method for the fetch_ca_certs REST call
1581
+ #
1582
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1::FetchCaCertsRequest]
1583
+ # A request object representing the call parameters. Required.
1584
+ # @return [Array(String, [String, nil], Hash{String => String})]
1585
+ # Uri, Body, Query string parameters
1586
+ def self.transcode_fetch_ca_certs_request request_pb
1587
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1588
+ .with_bindings(
1589
+ uri_method: :post,
1590
+ uri_template: "/v1/{ca_pool}:fetchCaCerts",
1591
+ body: "*",
1592
+ matches: [
1593
+ ["ca_pool", %r{^projects/[^/]+/locations/[^/]+/caPools/[^/]+/?$}, false]
1594
+ ]
1595
+ )
1596
+ transcoder.transcode request_pb
1597
+ end
1598
+
1599
+ ##
1600
+ # @private
1601
+ #
1602
+ # GRPC transcoding helper method for the get_certificate_revocation_list REST call
1603
+ #
1604
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1::GetCertificateRevocationListRequest]
1605
+ # A request object representing the call parameters. Required.
1606
+ # @return [Array(String, [String, nil], Hash{String => String})]
1607
+ # Uri, Body, Query string parameters
1608
+ def self.transcode_get_certificate_revocation_list_request request_pb
1609
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1610
+ .with_bindings(
1611
+ uri_method: :get,
1612
+ uri_template: "/v1/{name}",
1613
+ matches: [
1614
+ ["name", %r{^projects/[^/]+/locations/[^/]+/caPools/[^/]+/certificateAuthorities/[^/]+/certificateRevocationLists/[^/]+/?$}, false]
1615
+ ]
1616
+ )
1617
+ transcoder.transcode request_pb
1618
+ end
1619
+
1620
+ ##
1621
+ # @private
1622
+ #
1623
+ # GRPC transcoding helper method for the list_certificate_revocation_lists REST call
1624
+ #
1625
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1::ListCertificateRevocationListsRequest]
1626
+ # A request object representing the call parameters. Required.
1627
+ # @return [Array(String, [String, nil], Hash{String => String})]
1628
+ # Uri, Body, Query string parameters
1629
+ def self.transcode_list_certificate_revocation_lists_request request_pb
1630
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1631
+ .with_bindings(
1632
+ uri_method: :get,
1633
+ uri_template: "/v1/{parent}/certificateRevocationLists",
1634
+ matches: [
1635
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/caPools/[^/]+/certificateAuthorities/[^/]+/?$}, false]
1636
+ ]
1637
+ )
1638
+ transcoder.transcode request_pb
1639
+ end
1640
+
1641
+ ##
1642
+ # @private
1643
+ #
1644
+ # GRPC transcoding helper method for the update_certificate_revocation_list REST call
1645
+ #
1646
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1::UpdateCertificateRevocationListRequest]
1647
+ # A request object representing the call parameters. Required.
1648
+ # @return [Array(String, [String, nil], Hash{String => String})]
1649
+ # Uri, Body, Query string parameters
1650
+ def self.transcode_update_certificate_revocation_list_request request_pb
1651
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1652
+ .with_bindings(
1653
+ uri_method: :patch,
1654
+ uri_template: "/v1/{certificate_revocation_list.name}",
1655
+ body: "certificate_revocation_list",
1656
+ matches: [
1657
+ ["certificate_revocation_list.name", %r{^projects/[^/]+/locations/[^/]+/caPools/[^/]+/certificateAuthorities/[^/]+/certificateRevocationLists/[^/]+/?$}, false]
1658
+ ]
1659
+ )
1660
+ transcoder.transcode request_pb
1661
+ end
1662
+
1663
+ ##
1664
+ # @private
1665
+ #
1666
+ # GRPC transcoding helper method for the create_certificate_template REST call
1667
+ #
1668
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1::CreateCertificateTemplateRequest]
1669
+ # A request object representing the call parameters. Required.
1670
+ # @return [Array(String, [String, nil], Hash{String => String})]
1671
+ # Uri, Body, Query string parameters
1672
+ def self.transcode_create_certificate_template_request request_pb
1673
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1674
+ .with_bindings(
1675
+ uri_method: :post,
1676
+ uri_template: "/v1/{parent}/certificateTemplates",
1677
+ body: "certificate_template",
1678
+ matches: [
1679
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
1680
+ ]
1681
+ )
1682
+ transcoder.transcode request_pb
1683
+ end
1684
+
1685
+ ##
1686
+ # @private
1687
+ #
1688
+ # GRPC transcoding helper method for the delete_certificate_template REST call
1689
+ #
1690
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1::DeleteCertificateTemplateRequest]
1691
+ # A request object representing the call parameters. Required.
1692
+ # @return [Array(String, [String, nil], Hash{String => String})]
1693
+ # Uri, Body, Query string parameters
1694
+ def self.transcode_delete_certificate_template_request request_pb
1695
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1696
+ .with_bindings(
1697
+ uri_method: :delete,
1698
+ uri_template: "/v1/{name}",
1699
+ matches: [
1700
+ ["name", %r{^projects/[^/]+/locations/[^/]+/certificateTemplates/[^/]+/?$}, false]
1701
+ ]
1702
+ )
1703
+ transcoder.transcode request_pb
1704
+ end
1705
+
1706
+ ##
1707
+ # @private
1708
+ #
1709
+ # GRPC transcoding helper method for the get_certificate_template REST call
1710
+ #
1711
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1::GetCertificateTemplateRequest]
1712
+ # A request object representing the call parameters. Required.
1713
+ # @return [Array(String, [String, nil], Hash{String => String})]
1714
+ # Uri, Body, Query string parameters
1715
+ def self.transcode_get_certificate_template_request request_pb
1716
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1717
+ .with_bindings(
1718
+ uri_method: :get,
1719
+ uri_template: "/v1/{name}",
1720
+ matches: [
1721
+ ["name", %r{^projects/[^/]+/locations/[^/]+/certificateTemplates/[^/]+/?$}, false]
1722
+ ]
1723
+ )
1724
+ transcoder.transcode request_pb
1725
+ end
1726
+
1727
+ ##
1728
+ # @private
1729
+ #
1730
+ # GRPC transcoding helper method for the list_certificate_templates REST call
1731
+ #
1732
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1::ListCertificateTemplatesRequest]
1733
+ # A request object representing the call parameters. Required.
1734
+ # @return [Array(String, [String, nil], Hash{String => String})]
1735
+ # Uri, Body, Query string parameters
1736
+ def self.transcode_list_certificate_templates_request request_pb
1737
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1738
+ .with_bindings(
1739
+ uri_method: :get,
1740
+ uri_template: "/v1/{parent}/certificateTemplates",
1741
+ matches: [
1742
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
1743
+ ]
1744
+ )
1745
+ transcoder.transcode request_pb
1746
+ end
1747
+
1748
+ ##
1749
+ # @private
1750
+ #
1751
+ # GRPC transcoding helper method for the update_certificate_template REST call
1752
+ #
1753
+ # @param request_pb [::Google::Cloud::Security::PrivateCA::V1::UpdateCertificateTemplateRequest]
1754
+ # A request object representing the call parameters. Required.
1755
+ # @return [Array(String, [String, nil], Hash{String => String})]
1756
+ # Uri, Body, Query string parameters
1757
+ def self.transcode_update_certificate_template_request request_pb
1758
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1759
+ .with_bindings(
1760
+ uri_method: :patch,
1761
+ uri_template: "/v1/{certificate_template.name}",
1762
+ body: "certificate_template",
1763
+ matches: [
1764
+ ["certificate_template.name", %r{^projects/[^/]+/locations/[^/]+/certificateTemplates/[^/]+/?$}, false]
1765
+ ]
1766
+ )
1767
+ transcoder.transcode request_pb
1768
+ end
1769
+ end
1770
+ end
1771
+ end
1772
+ end
1773
+ end
1774
+ end
1775
+ end
1776
+ end