google-cloud-gke_backup-v1 0.12.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/google/cloud/gke_backup/v1/backup_for_gke/client.rb +1910 -339
- data/lib/google/cloud/gke_backup/v1/backup_for_gke/paths.rb +80 -0
- data/lib/google/cloud/gke_backup/v1/backup_for_gke/rest/client.rb +1764 -285
- data/lib/google/cloud/gke_backup/v1/backup_for_gke/rest/service_stub.rb +878 -20
- data/lib/google/cloud/gke_backup/v1/version.rb +1 -1
- data/lib/google/cloud/gkebackup/v1/backup_channel_pb.rb +48 -0
- data/lib/google/cloud/gkebackup/v1/backup_pb.rb +1 -1
- data/lib/google/cloud/gkebackup/v1/backup_plan_binding_pb.rb +50 -0
- data/lib/google/cloud/gkebackup/v1/backup_plan_pb.rb +1 -1
- data/lib/google/cloud/gkebackup/v1/gkebackup_pb.rb +27 -1
- data/lib/google/cloud/gkebackup/v1/gkebackup_services_pb.rb +28 -0
- data/lib/google/cloud/gkebackup/v1/restore_channel_pb.rb +48 -0
- data/lib/google/cloud/gkebackup/v1/restore_pb.rb +1 -1
- data/lib/google/cloud/gkebackup/v1/restore_plan_binding_pb.rb +48 -0
- data/lib/google/cloud/gkebackup/v1/volume_pb.rb +1 -1
- data/proto_docs/google/api/client.rb +14 -0
- data/proto_docs/google/api/field_info.rb +88 -0
- data/proto_docs/google/cloud/gkebackup/v1/backup.rb +8 -1
- data/proto_docs/google/cloud/gkebackup/v1/backup_channel.rb +88 -0
- data/proto_docs/google/cloud/gkebackup/v1/backup_plan.rb +8 -1
- data/proto_docs/google/cloud/gkebackup/v1/backup_plan_binding.rb +130 -0
- data/proto_docs/google/cloud/gkebackup/v1/common.rb +2 -2
- data/proto_docs/google/cloud/gkebackup/v1/gkebackup.rb +389 -3
- data/proto_docs/google/cloud/gkebackup/v1/restore.rb +14 -6
- data/proto_docs/google/cloud/gkebackup/v1/restore_channel.rb +87 -0
- data/proto_docs/google/cloud/gkebackup/v1/restore_plan.rb +3 -1
- data/proto_docs/google/cloud/gkebackup/v1/restore_plan_binding.rb +68 -0
- data/proto_docs/google/cloud/gkebackup/v1/volume.rb +13 -1
- metadata +12 -3
@@ -273,6 +273,286 @@ module Google
|
|
273
273
|
end
|
274
274
|
end
|
275
275
|
|
276
|
+
##
|
277
|
+
# Baseline implementation for the create_backup_channel REST call
|
278
|
+
#
|
279
|
+
# @param request_pb [::Google::Cloud::GkeBackup::V1::CreateBackupChannelRequest]
|
280
|
+
# A request object representing the call parameters. Required.
|
281
|
+
# @param options [::Gapic::CallOptions]
|
282
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
283
|
+
#
|
284
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
285
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
286
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
287
|
+
#
|
288
|
+
# @return [::Google::Longrunning::Operation]
|
289
|
+
# A result object deserialized from the server's reply
|
290
|
+
def create_backup_channel request_pb, options = nil
|
291
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
292
|
+
|
293
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_create_backup_channel_request request_pb
|
294
|
+
query_string_params = if query_string_params.any?
|
295
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
296
|
+
else
|
297
|
+
{}
|
298
|
+
end
|
299
|
+
|
300
|
+
response = @client_stub.make_http_request(
|
301
|
+
verb,
|
302
|
+
uri: uri,
|
303
|
+
body: body || "",
|
304
|
+
params: query_string_params,
|
305
|
+
method_name: "create_backup_channel",
|
306
|
+
options: options
|
307
|
+
)
|
308
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
309
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
310
|
+
catch :response do
|
311
|
+
yield result, operation if block_given?
|
312
|
+
result
|
313
|
+
end
|
314
|
+
end
|
315
|
+
|
316
|
+
##
|
317
|
+
# Baseline implementation for the list_backup_channels REST call
|
318
|
+
#
|
319
|
+
# @param request_pb [::Google::Cloud::GkeBackup::V1::ListBackupChannelsRequest]
|
320
|
+
# A request object representing the call parameters. Required.
|
321
|
+
# @param options [::Gapic::CallOptions]
|
322
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
323
|
+
#
|
324
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
325
|
+
# @yieldparam result [::Google::Cloud::GkeBackup::V1::ListBackupChannelsResponse]
|
326
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
327
|
+
#
|
328
|
+
# @return [::Google::Cloud::GkeBackup::V1::ListBackupChannelsResponse]
|
329
|
+
# A result object deserialized from the server's reply
|
330
|
+
def list_backup_channels request_pb, options = nil
|
331
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
332
|
+
|
333
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_backup_channels_request request_pb
|
334
|
+
query_string_params = if query_string_params.any?
|
335
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
336
|
+
else
|
337
|
+
{}
|
338
|
+
end
|
339
|
+
|
340
|
+
response = @client_stub.make_http_request(
|
341
|
+
verb,
|
342
|
+
uri: uri,
|
343
|
+
body: body || "",
|
344
|
+
params: query_string_params,
|
345
|
+
method_name: "list_backup_channels",
|
346
|
+
options: options
|
347
|
+
)
|
348
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
349
|
+
result = ::Google::Cloud::GkeBackup::V1::ListBackupChannelsResponse.decode_json response.body, ignore_unknown_fields: true
|
350
|
+
catch :response do
|
351
|
+
yield result, operation if block_given?
|
352
|
+
result
|
353
|
+
end
|
354
|
+
end
|
355
|
+
|
356
|
+
##
|
357
|
+
# Baseline implementation for the get_backup_channel REST call
|
358
|
+
#
|
359
|
+
# @param request_pb [::Google::Cloud::GkeBackup::V1::GetBackupChannelRequest]
|
360
|
+
# A request object representing the call parameters. Required.
|
361
|
+
# @param options [::Gapic::CallOptions]
|
362
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
363
|
+
#
|
364
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
365
|
+
# @yieldparam result [::Google::Cloud::GkeBackup::V1::BackupChannel]
|
366
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
367
|
+
#
|
368
|
+
# @return [::Google::Cloud::GkeBackup::V1::BackupChannel]
|
369
|
+
# A result object deserialized from the server's reply
|
370
|
+
def get_backup_channel request_pb, options = nil
|
371
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
372
|
+
|
373
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_backup_channel_request request_pb
|
374
|
+
query_string_params = if query_string_params.any?
|
375
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
376
|
+
else
|
377
|
+
{}
|
378
|
+
end
|
379
|
+
|
380
|
+
response = @client_stub.make_http_request(
|
381
|
+
verb,
|
382
|
+
uri: uri,
|
383
|
+
body: body || "",
|
384
|
+
params: query_string_params,
|
385
|
+
method_name: "get_backup_channel",
|
386
|
+
options: options
|
387
|
+
)
|
388
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
389
|
+
result = ::Google::Cloud::GkeBackup::V1::BackupChannel.decode_json response.body, ignore_unknown_fields: true
|
390
|
+
catch :response do
|
391
|
+
yield result, operation if block_given?
|
392
|
+
result
|
393
|
+
end
|
394
|
+
end
|
395
|
+
|
396
|
+
##
|
397
|
+
# Baseline implementation for the update_backup_channel REST call
|
398
|
+
#
|
399
|
+
# @param request_pb [::Google::Cloud::GkeBackup::V1::UpdateBackupChannelRequest]
|
400
|
+
# A request object representing the call parameters. Required.
|
401
|
+
# @param options [::Gapic::CallOptions]
|
402
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
403
|
+
#
|
404
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
405
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
406
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
407
|
+
#
|
408
|
+
# @return [::Google::Longrunning::Operation]
|
409
|
+
# A result object deserialized from the server's reply
|
410
|
+
def update_backup_channel request_pb, options = nil
|
411
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
412
|
+
|
413
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_update_backup_channel_request request_pb
|
414
|
+
query_string_params = if query_string_params.any?
|
415
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
416
|
+
else
|
417
|
+
{}
|
418
|
+
end
|
419
|
+
|
420
|
+
response = @client_stub.make_http_request(
|
421
|
+
verb,
|
422
|
+
uri: uri,
|
423
|
+
body: body || "",
|
424
|
+
params: query_string_params,
|
425
|
+
method_name: "update_backup_channel",
|
426
|
+
options: options
|
427
|
+
)
|
428
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
429
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
430
|
+
catch :response do
|
431
|
+
yield result, operation if block_given?
|
432
|
+
result
|
433
|
+
end
|
434
|
+
end
|
435
|
+
|
436
|
+
##
|
437
|
+
# Baseline implementation for the delete_backup_channel REST call
|
438
|
+
#
|
439
|
+
# @param request_pb [::Google::Cloud::GkeBackup::V1::DeleteBackupChannelRequest]
|
440
|
+
# A request object representing the call parameters. Required.
|
441
|
+
# @param options [::Gapic::CallOptions]
|
442
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
443
|
+
#
|
444
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
445
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
446
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
447
|
+
#
|
448
|
+
# @return [::Google::Longrunning::Operation]
|
449
|
+
# A result object deserialized from the server's reply
|
450
|
+
def delete_backup_channel request_pb, options = nil
|
451
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
452
|
+
|
453
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_backup_channel_request request_pb
|
454
|
+
query_string_params = if query_string_params.any?
|
455
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
456
|
+
else
|
457
|
+
{}
|
458
|
+
end
|
459
|
+
|
460
|
+
response = @client_stub.make_http_request(
|
461
|
+
verb,
|
462
|
+
uri: uri,
|
463
|
+
body: body || "",
|
464
|
+
params: query_string_params,
|
465
|
+
method_name: "delete_backup_channel",
|
466
|
+
options: options
|
467
|
+
)
|
468
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
469
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
470
|
+
catch :response do
|
471
|
+
yield result, operation if block_given?
|
472
|
+
result
|
473
|
+
end
|
474
|
+
end
|
475
|
+
|
476
|
+
##
|
477
|
+
# Baseline implementation for the list_backup_plan_bindings REST call
|
478
|
+
#
|
479
|
+
# @param request_pb [::Google::Cloud::GkeBackup::V1::ListBackupPlanBindingsRequest]
|
480
|
+
# A request object representing the call parameters. Required.
|
481
|
+
# @param options [::Gapic::CallOptions]
|
482
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
483
|
+
#
|
484
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
485
|
+
# @yieldparam result [::Google::Cloud::GkeBackup::V1::ListBackupPlanBindingsResponse]
|
486
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
487
|
+
#
|
488
|
+
# @return [::Google::Cloud::GkeBackup::V1::ListBackupPlanBindingsResponse]
|
489
|
+
# A result object deserialized from the server's reply
|
490
|
+
def list_backup_plan_bindings request_pb, options = nil
|
491
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
492
|
+
|
493
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_backup_plan_bindings_request request_pb
|
494
|
+
query_string_params = if query_string_params.any?
|
495
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
496
|
+
else
|
497
|
+
{}
|
498
|
+
end
|
499
|
+
|
500
|
+
response = @client_stub.make_http_request(
|
501
|
+
verb,
|
502
|
+
uri: uri,
|
503
|
+
body: body || "",
|
504
|
+
params: query_string_params,
|
505
|
+
method_name: "list_backup_plan_bindings",
|
506
|
+
options: options
|
507
|
+
)
|
508
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
509
|
+
result = ::Google::Cloud::GkeBackup::V1::ListBackupPlanBindingsResponse.decode_json response.body, ignore_unknown_fields: true
|
510
|
+
catch :response do
|
511
|
+
yield result, operation if block_given?
|
512
|
+
result
|
513
|
+
end
|
514
|
+
end
|
515
|
+
|
516
|
+
##
|
517
|
+
# Baseline implementation for the get_backup_plan_binding REST call
|
518
|
+
#
|
519
|
+
# @param request_pb [::Google::Cloud::GkeBackup::V1::GetBackupPlanBindingRequest]
|
520
|
+
# A request object representing the call parameters. Required.
|
521
|
+
# @param options [::Gapic::CallOptions]
|
522
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
523
|
+
#
|
524
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
525
|
+
# @yieldparam result [::Google::Cloud::GkeBackup::V1::BackupPlanBinding]
|
526
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
527
|
+
#
|
528
|
+
# @return [::Google::Cloud::GkeBackup::V1::BackupPlanBinding]
|
529
|
+
# A result object deserialized from the server's reply
|
530
|
+
def get_backup_plan_binding request_pb, options = nil
|
531
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
532
|
+
|
533
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_backup_plan_binding_request request_pb
|
534
|
+
query_string_params = if query_string_params.any?
|
535
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
536
|
+
else
|
537
|
+
{}
|
538
|
+
end
|
539
|
+
|
540
|
+
response = @client_stub.make_http_request(
|
541
|
+
verb,
|
542
|
+
uri: uri,
|
543
|
+
body: body || "",
|
544
|
+
params: query_string_params,
|
545
|
+
method_name: "get_backup_plan_binding",
|
546
|
+
options: options
|
547
|
+
)
|
548
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
549
|
+
result = ::Google::Cloud::GkeBackup::V1::BackupPlanBinding.decode_json response.body, ignore_unknown_fields: true
|
550
|
+
catch :response do
|
551
|
+
yield result, operation if block_given?
|
552
|
+
result
|
553
|
+
end
|
554
|
+
end
|
555
|
+
|
276
556
|
##
|
277
557
|
# Baseline implementation for the create_backup REST call
|
278
558
|
#
|
@@ -647,10 +927,290 @@ module Google
|
|
647
927
|
#
|
648
928
|
# @return [::Google::Cloud::GkeBackup::V1::RestorePlan]
|
649
929
|
# A result object deserialized from the server's reply
|
650
|
-
def get_restore_plan request_pb, options = nil
|
930
|
+
def get_restore_plan request_pb, options = nil
|
931
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
932
|
+
|
933
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_restore_plan_request request_pb
|
934
|
+
query_string_params = if query_string_params.any?
|
935
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
936
|
+
else
|
937
|
+
{}
|
938
|
+
end
|
939
|
+
|
940
|
+
response = @client_stub.make_http_request(
|
941
|
+
verb,
|
942
|
+
uri: uri,
|
943
|
+
body: body || "",
|
944
|
+
params: query_string_params,
|
945
|
+
method_name: "get_restore_plan",
|
946
|
+
options: options
|
947
|
+
)
|
948
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
949
|
+
result = ::Google::Cloud::GkeBackup::V1::RestorePlan.decode_json response.body, ignore_unknown_fields: true
|
950
|
+
catch :response do
|
951
|
+
yield result, operation if block_given?
|
952
|
+
result
|
953
|
+
end
|
954
|
+
end
|
955
|
+
|
956
|
+
##
|
957
|
+
# Baseline implementation for the update_restore_plan REST call
|
958
|
+
#
|
959
|
+
# @param request_pb [::Google::Cloud::GkeBackup::V1::UpdateRestorePlanRequest]
|
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 update_restore_plan 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_update_restore_plan_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
|
+
method_name: "update_restore_plan",
|
986
|
+
options: options
|
987
|
+
)
|
988
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
989
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
990
|
+
catch :response do
|
991
|
+
yield result, operation if block_given?
|
992
|
+
result
|
993
|
+
end
|
994
|
+
end
|
995
|
+
|
996
|
+
##
|
997
|
+
# Baseline implementation for the delete_restore_plan REST call
|
998
|
+
#
|
999
|
+
# @param request_pb [::Google::Cloud::GkeBackup::V1::DeleteRestorePlanRequest]
|
1000
|
+
# A request object representing the call parameters. Required.
|
1001
|
+
# @param options [::Gapic::CallOptions]
|
1002
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1003
|
+
#
|
1004
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1005
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
1006
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1007
|
+
#
|
1008
|
+
# @return [::Google::Longrunning::Operation]
|
1009
|
+
# A result object deserialized from the server's reply
|
1010
|
+
def delete_restore_plan request_pb, options = nil
|
1011
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1012
|
+
|
1013
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_restore_plan_request request_pb
|
1014
|
+
query_string_params = if query_string_params.any?
|
1015
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1016
|
+
else
|
1017
|
+
{}
|
1018
|
+
end
|
1019
|
+
|
1020
|
+
response = @client_stub.make_http_request(
|
1021
|
+
verb,
|
1022
|
+
uri: uri,
|
1023
|
+
body: body || "",
|
1024
|
+
params: query_string_params,
|
1025
|
+
method_name: "delete_restore_plan",
|
1026
|
+
options: options
|
1027
|
+
)
|
1028
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1029
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
1030
|
+
catch :response do
|
1031
|
+
yield result, operation if block_given?
|
1032
|
+
result
|
1033
|
+
end
|
1034
|
+
end
|
1035
|
+
|
1036
|
+
##
|
1037
|
+
# Baseline implementation for the create_restore_channel REST call
|
1038
|
+
#
|
1039
|
+
# @param request_pb [::Google::Cloud::GkeBackup::V1::CreateRestoreChannelRequest]
|
1040
|
+
# A request object representing the call parameters. Required.
|
1041
|
+
# @param options [::Gapic::CallOptions]
|
1042
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1043
|
+
#
|
1044
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1045
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
1046
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1047
|
+
#
|
1048
|
+
# @return [::Google::Longrunning::Operation]
|
1049
|
+
# A result object deserialized from the server's reply
|
1050
|
+
def create_restore_channel request_pb, options = nil
|
1051
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1052
|
+
|
1053
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_create_restore_channel_request request_pb
|
1054
|
+
query_string_params = if query_string_params.any?
|
1055
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1056
|
+
else
|
1057
|
+
{}
|
1058
|
+
end
|
1059
|
+
|
1060
|
+
response = @client_stub.make_http_request(
|
1061
|
+
verb,
|
1062
|
+
uri: uri,
|
1063
|
+
body: body || "",
|
1064
|
+
params: query_string_params,
|
1065
|
+
method_name: "create_restore_channel",
|
1066
|
+
options: options
|
1067
|
+
)
|
1068
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1069
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
1070
|
+
catch :response do
|
1071
|
+
yield result, operation if block_given?
|
1072
|
+
result
|
1073
|
+
end
|
1074
|
+
end
|
1075
|
+
|
1076
|
+
##
|
1077
|
+
# Baseline implementation for the list_restore_channels REST call
|
1078
|
+
#
|
1079
|
+
# @param request_pb [::Google::Cloud::GkeBackup::V1::ListRestoreChannelsRequest]
|
1080
|
+
# A request object representing the call parameters. Required.
|
1081
|
+
# @param options [::Gapic::CallOptions]
|
1082
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1083
|
+
#
|
1084
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1085
|
+
# @yieldparam result [::Google::Cloud::GkeBackup::V1::ListRestoreChannelsResponse]
|
1086
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1087
|
+
#
|
1088
|
+
# @return [::Google::Cloud::GkeBackup::V1::ListRestoreChannelsResponse]
|
1089
|
+
# A result object deserialized from the server's reply
|
1090
|
+
def list_restore_channels request_pb, options = nil
|
1091
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1092
|
+
|
1093
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_restore_channels_request request_pb
|
1094
|
+
query_string_params = if query_string_params.any?
|
1095
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1096
|
+
else
|
1097
|
+
{}
|
1098
|
+
end
|
1099
|
+
|
1100
|
+
response = @client_stub.make_http_request(
|
1101
|
+
verb,
|
1102
|
+
uri: uri,
|
1103
|
+
body: body || "",
|
1104
|
+
params: query_string_params,
|
1105
|
+
method_name: "list_restore_channels",
|
1106
|
+
options: options
|
1107
|
+
)
|
1108
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1109
|
+
result = ::Google::Cloud::GkeBackup::V1::ListRestoreChannelsResponse.decode_json response.body, ignore_unknown_fields: true
|
1110
|
+
catch :response do
|
1111
|
+
yield result, operation if block_given?
|
1112
|
+
result
|
1113
|
+
end
|
1114
|
+
end
|
1115
|
+
|
1116
|
+
##
|
1117
|
+
# Baseline implementation for the get_restore_channel REST call
|
1118
|
+
#
|
1119
|
+
# @param request_pb [::Google::Cloud::GkeBackup::V1::GetRestoreChannelRequest]
|
1120
|
+
# A request object representing the call parameters. Required.
|
1121
|
+
# @param options [::Gapic::CallOptions]
|
1122
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1123
|
+
#
|
1124
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1125
|
+
# @yieldparam result [::Google::Cloud::GkeBackup::V1::RestoreChannel]
|
1126
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1127
|
+
#
|
1128
|
+
# @return [::Google::Cloud::GkeBackup::V1::RestoreChannel]
|
1129
|
+
# A result object deserialized from the server's reply
|
1130
|
+
def get_restore_channel request_pb, options = nil
|
1131
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1132
|
+
|
1133
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_restore_channel_request request_pb
|
1134
|
+
query_string_params = if query_string_params.any?
|
1135
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1136
|
+
else
|
1137
|
+
{}
|
1138
|
+
end
|
1139
|
+
|
1140
|
+
response = @client_stub.make_http_request(
|
1141
|
+
verb,
|
1142
|
+
uri: uri,
|
1143
|
+
body: body || "",
|
1144
|
+
params: query_string_params,
|
1145
|
+
method_name: "get_restore_channel",
|
1146
|
+
options: options
|
1147
|
+
)
|
1148
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1149
|
+
result = ::Google::Cloud::GkeBackup::V1::RestoreChannel.decode_json response.body, ignore_unknown_fields: true
|
1150
|
+
catch :response do
|
1151
|
+
yield result, operation if block_given?
|
1152
|
+
result
|
1153
|
+
end
|
1154
|
+
end
|
1155
|
+
|
1156
|
+
##
|
1157
|
+
# Baseline implementation for the update_restore_channel REST call
|
1158
|
+
#
|
1159
|
+
# @param request_pb [::Google::Cloud::GkeBackup::V1::UpdateRestoreChannelRequest]
|
1160
|
+
# A request object representing the call parameters. Required.
|
1161
|
+
# @param options [::Gapic::CallOptions]
|
1162
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1163
|
+
#
|
1164
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1165
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
1166
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1167
|
+
#
|
1168
|
+
# @return [::Google::Longrunning::Operation]
|
1169
|
+
# A result object deserialized from the server's reply
|
1170
|
+
def update_restore_channel request_pb, options = nil
|
1171
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1172
|
+
|
1173
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_update_restore_channel_request request_pb
|
1174
|
+
query_string_params = if query_string_params.any?
|
1175
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1176
|
+
else
|
1177
|
+
{}
|
1178
|
+
end
|
1179
|
+
|
1180
|
+
response = @client_stub.make_http_request(
|
1181
|
+
verb,
|
1182
|
+
uri: uri,
|
1183
|
+
body: body || "",
|
1184
|
+
params: query_string_params,
|
1185
|
+
method_name: "update_restore_channel",
|
1186
|
+
options: options
|
1187
|
+
)
|
1188
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1189
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
1190
|
+
catch :response do
|
1191
|
+
yield result, operation if block_given?
|
1192
|
+
result
|
1193
|
+
end
|
1194
|
+
end
|
1195
|
+
|
1196
|
+
##
|
1197
|
+
# Baseline implementation for the delete_restore_channel REST call
|
1198
|
+
#
|
1199
|
+
# @param request_pb [::Google::Cloud::GkeBackup::V1::DeleteRestoreChannelRequest]
|
1200
|
+
# A request object representing the call parameters. Required.
|
1201
|
+
# @param options [::Gapic::CallOptions]
|
1202
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1203
|
+
#
|
1204
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1205
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
1206
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1207
|
+
#
|
1208
|
+
# @return [::Google::Longrunning::Operation]
|
1209
|
+
# A result object deserialized from the server's reply
|
1210
|
+
def delete_restore_channel request_pb, options = nil
|
651
1211
|
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
652
1212
|
|
653
|
-
verb, uri, query_string_params, body = ServiceStub.
|
1213
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_restore_channel_request request_pb
|
654
1214
|
query_string_params = if query_string_params.any?
|
655
1215
|
query_string_params.to_h { |p| p.split "=", 2 }
|
656
1216
|
else
|
@@ -662,11 +1222,11 @@ module Google
|
|
662
1222
|
uri: uri,
|
663
1223
|
body: body || "",
|
664
1224
|
params: query_string_params,
|
665
|
-
method_name: "
|
1225
|
+
method_name: "delete_restore_channel",
|
666
1226
|
options: options
|
667
1227
|
)
|
668
1228
|
operation = ::Gapic::Rest::TransportOperation.new response
|
669
|
-
result = ::Google::
|
1229
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
670
1230
|
catch :response do
|
671
1231
|
yield result, operation if block_given?
|
672
1232
|
result
|
@@ -674,23 +1234,23 @@ module Google
|
|
674
1234
|
end
|
675
1235
|
|
676
1236
|
##
|
677
|
-
# Baseline implementation for the
|
1237
|
+
# Baseline implementation for the list_restore_plan_bindings REST call
|
678
1238
|
#
|
679
|
-
# @param request_pb [::Google::Cloud::GkeBackup::V1::
|
1239
|
+
# @param request_pb [::Google::Cloud::GkeBackup::V1::ListRestorePlanBindingsRequest]
|
680
1240
|
# A request object representing the call parameters. Required.
|
681
1241
|
# @param options [::Gapic::CallOptions]
|
682
1242
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
683
1243
|
#
|
684
1244
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
685
|
-
# @yieldparam result [::Google::
|
1245
|
+
# @yieldparam result [::Google::Cloud::GkeBackup::V1::ListRestorePlanBindingsResponse]
|
686
1246
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
687
1247
|
#
|
688
|
-
# @return [::Google::
|
1248
|
+
# @return [::Google::Cloud::GkeBackup::V1::ListRestorePlanBindingsResponse]
|
689
1249
|
# A result object deserialized from the server's reply
|
690
|
-
def
|
1250
|
+
def list_restore_plan_bindings request_pb, options = nil
|
691
1251
|
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
692
1252
|
|
693
|
-
verb, uri, query_string_params, body = ServiceStub.
|
1253
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_restore_plan_bindings_request request_pb
|
694
1254
|
query_string_params = if query_string_params.any?
|
695
1255
|
query_string_params.to_h { |p| p.split "=", 2 }
|
696
1256
|
else
|
@@ -702,11 +1262,11 @@ module Google
|
|
702
1262
|
uri: uri,
|
703
1263
|
body: body || "",
|
704
1264
|
params: query_string_params,
|
705
|
-
method_name: "
|
1265
|
+
method_name: "list_restore_plan_bindings",
|
706
1266
|
options: options
|
707
1267
|
)
|
708
1268
|
operation = ::Gapic::Rest::TransportOperation.new response
|
709
|
-
result = ::Google::
|
1269
|
+
result = ::Google::Cloud::GkeBackup::V1::ListRestorePlanBindingsResponse.decode_json response.body, ignore_unknown_fields: true
|
710
1270
|
catch :response do
|
711
1271
|
yield result, operation if block_given?
|
712
1272
|
result
|
@@ -714,23 +1274,23 @@ module Google
|
|
714
1274
|
end
|
715
1275
|
|
716
1276
|
##
|
717
|
-
# Baseline implementation for the
|
1277
|
+
# Baseline implementation for the get_restore_plan_binding REST call
|
718
1278
|
#
|
719
|
-
# @param request_pb [::Google::Cloud::GkeBackup::V1::
|
1279
|
+
# @param request_pb [::Google::Cloud::GkeBackup::V1::GetRestorePlanBindingRequest]
|
720
1280
|
# A request object representing the call parameters. Required.
|
721
1281
|
# @param options [::Gapic::CallOptions]
|
722
1282
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
723
1283
|
#
|
724
1284
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
725
|
-
# @yieldparam result [::Google::
|
1285
|
+
# @yieldparam result [::Google::Cloud::GkeBackup::V1::RestorePlanBinding]
|
726
1286
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
727
1287
|
#
|
728
|
-
# @return [::Google::
|
1288
|
+
# @return [::Google::Cloud::GkeBackup::V1::RestorePlanBinding]
|
729
1289
|
# A result object deserialized from the server's reply
|
730
|
-
def
|
1290
|
+
def get_restore_plan_binding request_pb, options = nil
|
731
1291
|
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
732
1292
|
|
733
|
-
verb, uri, query_string_params, body = ServiceStub.
|
1293
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_restore_plan_binding_request request_pb
|
734
1294
|
query_string_params = if query_string_params.any?
|
735
1295
|
query_string_params.to_h { |p| p.split "=", 2 }
|
736
1296
|
else
|
@@ -742,11 +1302,11 @@ module Google
|
|
742
1302
|
uri: uri,
|
743
1303
|
body: body || "",
|
744
1304
|
params: query_string_params,
|
745
|
-
method_name: "
|
1305
|
+
method_name: "get_restore_plan_binding",
|
746
1306
|
options: options
|
747
1307
|
)
|
748
1308
|
operation = ::Gapic::Rest::TransportOperation.new response
|
749
|
-
result = ::Google::
|
1309
|
+
result = ::Google::Cloud::GkeBackup::V1::RestorePlanBinding.decode_json response.body, ignore_unknown_fields: true
|
750
1310
|
catch :response do
|
751
1311
|
yield result, operation if block_given?
|
752
1312
|
result
|
@@ -1180,6 +1740,155 @@ module Google
|
|
1180
1740
|
transcoder.transcode request_pb
|
1181
1741
|
end
|
1182
1742
|
|
1743
|
+
##
|
1744
|
+
# @private
|
1745
|
+
#
|
1746
|
+
# GRPC transcoding helper method for the create_backup_channel REST call
|
1747
|
+
#
|
1748
|
+
# @param request_pb [::Google::Cloud::GkeBackup::V1::CreateBackupChannelRequest]
|
1749
|
+
# A request object representing the call parameters. Required.
|
1750
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1751
|
+
# Uri, Body, Query string parameters
|
1752
|
+
def self.transcode_create_backup_channel_request request_pb
|
1753
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1754
|
+
.with_bindings(
|
1755
|
+
uri_method: :post,
|
1756
|
+
uri_template: "/v1/{parent}/backupChannels",
|
1757
|
+
body: "backup_channel",
|
1758
|
+
matches: [
|
1759
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
1760
|
+
]
|
1761
|
+
)
|
1762
|
+
transcoder.transcode request_pb
|
1763
|
+
end
|
1764
|
+
|
1765
|
+
##
|
1766
|
+
# @private
|
1767
|
+
#
|
1768
|
+
# GRPC transcoding helper method for the list_backup_channels REST call
|
1769
|
+
#
|
1770
|
+
# @param request_pb [::Google::Cloud::GkeBackup::V1::ListBackupChannelsRequest]
|
1771
|
+
# A request object representing the call parameters. Required.
|
1772
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1773
|
+
# Uri, Body, Query string parameters
|
1774
|
+
def self.transcode_list_backup_channels_request request_pb
|
1775
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1776
|
+
.with_bindings(
|
1777
|
+
uri_method: :get,
|
1778
|
+
uri_template: "/v1/{parent}/backupChannels",
|
1779
|
+
matches: [
|
1780
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
1781
|
+
]
|
1782
|
+
)
|
1783
|
+
transcoder.transcode request_pb
|
1784
|
+
end
|
1785
|
+
|
1786
|
+
##
|
1787
|
+
# @private
|
1788
|
+
#
|
1789
|
+
# GRPC transcoding helper method for the get_backup_channel REST call
|
1790
|
+
#
|
1791
|
+
# @param request_pb [::Google::Cloud::GkeBackup::V1::GetBackupChannelRequest]
|
1792
|
+
# A request object representing the call parameters. Required.
|
1793
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1794
|
+
# Uri, Body, Query string parameters
|
1795
|
+
def self.transcode_get_backup_channel_request request_pb
|
1796
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1797
|
+
.with_bindings(
|
1798
|
+
uri_method: :get,
|
1799
|
+
uri_template: "/v1/{name}",
|
1800
|
+
matches: [
|
1801
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/backupChannels/[^/]+/?$}, false]
|
1802
|
+
]
|
1803
|
+
)
|
1804
|
+
transcoder.transcode request_pb
|
1805
|
+
end
|
1806
|
+
|
1807
|
+
##
|
1808
|
+
# @private
|
1809
|
+
#
|
1810
|
+
# GRPC transcoding helper method for the update_backup_channel REST call
|
1811
|
+
#
|
1812
|
+
# @param request_pb [::Google::Cloud::GkeBackup::V1::UpdateBackupChannelRequest]
|
1813
|
+
# A request object representing the call parameters. Required.
|
1814
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1815
|
+
# Uri, Body, Query string parameters
|
1816
|
+
def self.transcode_update_backup_channel_request request_pb
|
1817
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1818
|
+
.with_bindings(
|
1819
|
+
uri_method: :patch,
|
1820
|
+
uri_template: "/v1/{backup_channel.name}",
|
1821
|
+
body: "backup_channel",
|
1822
|
+
matches: [
|
1823
|
+
["backup_channel.name", %r{^projects/[^/]+/locations/[^/]+/backupChannels/[^/]+/?$}, false]
|
1824
|
+
]
|
1825
|
+
)
|
1826
|
+
transcoder.transcode request_pb
|
1827
|
+
end
|
1828
|
+
|
1829
|
+
##
|
1830
|
+
# @private
|
1831
|
+
#
|
1832
|
+
# GRPC transcoding helper method for the delete_backup_channel REST call
|
1833
|
+
#
|
1834
|
+
# @param request_pb [::Google::Cloud::GkeBackup::V1::DeleteBackupChannelRequest]
|
1835
|
+
# A request object representing the call parameters. Required.
|
1836
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1837
|
+
# Uri, Body, Query string parameters
|
1838
|
+
def self.transcode_delete_backup_channel_request request_pb
|
1839
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1840
|
+
.with_bindings(
|
1841
|
+
uri_method: :delete,
|
1842
|
+
uri_template: "/v1/{name}",
|
1843
|
+
matches: [
|
1844
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/backupChannels/[^/]+/?$}, false]
|
1845
|
+
]
|
1846
|
+
)
|
1847
|
+
transcoder.transcode request_pb
|
1848
|
+
end
|
1849
|
+
|
1850
|
+
##
|
1851
|
+
# @private
|
1852
|
+
#
|
1853
|
+
# GRPC transcoding helper method for the list_backup_plan_bindings REST call
|
1854
|
+
#
|
1855
|
+
# @param request_pb [::Google::Cloud::GkeBackup::V1::ListBackupPlanBindingsRequest]
|
1856
|
+
# A request object representing the call parameters. Required.
|
1857
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1858
|
+
# Uri, Body, Query string parameters
|
1859
|
+
def self.transcode_list_backup_plan_bindings_request request_pb
|
1860
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1861
|
+
.with_bindings(
|
1862
|
+
uri_method: :get,
|
1863
|
+
uri_template: "/v1/{parent}/backupPlanBindings",
|
1864
|
+
matches: [
|
1865
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/backupChannels/[^/]+/?$}, false]
|
1866
|
+
]
|
1867
|
+
)
|
1868
|
+
transcoder.transcode request_pb
|
1869
|
+
end
|
1870
|
+
|
1871
|
+
##
|
1872
|
+
# @private
|
1873
|
+
#
|
1874
|
+
# GRPC transcoding helper method for the get_backup_plan_binding REST call
|
1875
|
+
#
|
1876
|
+
# @param request_pb [::Google::Cloud::GkeBackup::V1::GetBackupPlanBindingRequest]
|
1877
|
+
# A request object representing the call parameters. Required.
|
1878
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1879
|
+
# Uri, Body, Query string parameters
|
1880
|
+
def self.transcode_get_backup_plan_binding_request request_pb
|
1881
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1882
|
+
.with_bindings(
|
1883
|
+
uri_method: :get,
|
1884
|
+
uri_template: "/v1/{name}",
|
1885
|
+
matches: [
|
1886
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/backupChannels/[^/]+/backupPlanBindings/[^/]+/?$}, false]
|
1887
|
+
]
|
1888
|
+
)
|
1889
|
+
transcoder.transcode request_pb
|
1890
|
+
end
|
1891
|
+
|
1183
1892
|
##
|
1184
1893
|
# @private
|
1185
1894
|
#
|
@@ -1436,6 +2145,155 @@ module Google
|
|
1436
2145
|
transcoder.transcode request_pb
|
1437
2146
|
end
|
1438
2147
|
|
2148
|
+
##
|
2149
|
+
# @private
|
2150
|
+
#
|
2151
|
+
# GRPC transcoding helper method for the create_restore_channel REST call
|
2152
|
+
#
|
2153
|
+
# @param request_pb [::Google::Cloud::GkeBackup::V1::CreateRestoreChannelRequest]
|
2154
|
+
# A request object representing the call parameters. Required.
|
2155
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2156
|
+
# Uri, Body, Query string parameters
|
2157
|
+
def self.transcode_create_restore_channel_request request_pb
|
2158
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2159
|
+
.with_bindings(
|
2160
|
+
uri_method: :post,
|
2161
|
+
uri_template: "/v1/{parent}/restoreChannels",
|
2162
|
+
body: "restore_channel",
|
2163
|
+
matches: [
|
2164
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
2165
|
+
]
|
2166
|
+
)
|
2167
|
+
transcoder.transcode request_pb
|
2168
|
+
end
|
2169
|
+
|
2170
|
+
##
|
2171
|
+
# @private
|
2172
|
+
#
|
2173
|
+
# GRPC transcoding helper method for the list_restore_channels REST call
|
2174
|
+
#
|
2175
|
+
# @param request_pb [::Google::Cloud::GkeBackup::V1::ListRestoreChannelsRequest]
|
2176
|
+
# A request object representing the call parameters. Required.
|
2177
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2178
|
+
# Uri, Body, Query string parameters
|
2179
|
+
def self.transcode_list_restore_channels_request request_pb
|
2180
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2181
|
+
.with_bindings(
|
2182
|
+
uri_method: :get,
|
2183
|
+
uri_template: "/v1/{parent}/restoreChannels",
|
2184
|
+
matches: [
|
2185
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
2186
|
+
]
|
2187
|
+
)
|
2188
|
+
transcoder.transcode request_pb
|
2189
|
+
end
|
2190
|
+
|
2191
|
+
##
|
2192
|
+
# @private
|
2193
|
+
#
|
2194
|
+
# GRPC transcoding helper method for the get_restore_channel REST call
|
2195
|
+
#
|
2196
|
+
# @param request_pb [::Google::Cloud::GkeBackup::V1::GetRestoreChannelRequest]
|
2197
|
+
# A request object representing the call parameters. Required.
|
2198
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2199
|
+
# Uri, Body, Query string parameters
|
2200
|
+
def self.transcode_get_restore_channel_request request_pb
|
2201
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2202
|
+
.with_bindings(
|
2203
|
+
uri_method: :get,
|
2204
|
+
uri_template: "/v1/{name}",
|
2205
|
+
matches: [
|
2206
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/restoreChannels/[^/]+/?$}, false]
|
2207
|
+
]
|
2208
|
+
)
|
2209
|
+
transcoder.transcode request_pb
|
2210
|
+
end
|
2211
|
+
|
2212
|
+
##
|
2213
|
+
# @private
|
2214
|
+
#
|
2215
|
+
# GRPC transcoding helper method for the update_restore_channel REST call
|
2216
|
+
#
|
2217
|
+
# @param request_pb [::Google::Cloud::GkeBackup::V1::UpdateRestoreChannelRequest]
|
2218
|
+
# A request object representing the call parameters. Required.
|
2219
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2220
|
+
# Uri, Body, Query string parameters
|
2221
|
+
def self.transcode_update_restore_channel_request request_pb
|
2222
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2223
|
+
.with_bindings(
|
2224
|
+
uri_method: :patch,
|
2225
|
+
uri_template: "/v1/{restore_channel.name}",
|
2226
|
+
body: "restore_channel",
|
2227
|
+
matches: [
|
2228
|
+
["restore_channel.name", %r{^projects/[^/]+/locations/[^/]+/restoreChannels/[^/]+/?$}, false]
|
2229
|
+
]
|
2230
|
+
)
|
2231
|
+
transcoder.transcode request_pb
|
2232
|
+
end
|
2233
|
+
|
2234
|
+
##
|
2235
|
+
# @private
|
2236
|
+
#
|
2237
|
+
# GRPC transcoding helper method for the delete_restore_channel REST call
|
2238
|
+
#
|
2239
|
+
# @param request_pb [::Google::Cloud::GkeBackup::V1::DeleteRestoreChannelRequest]
|
2240
|
+
# A request object representing the call parameters. Required.
|
2241
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2242
|
+
# Uri, Body, Query string parameters
|
2243
|
+
def self.transcode_delete_restore_channel_request request_pb
|
2244
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2245
|
+
.with_bindings(
|
2246
|
+
uri_method: :delete,
|
2247
|
+
uri_template: "/v1/{name}",
|
2248
|
+
matches: [
|
2249
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/restoreChannels/[^/]+/?$}, false]
|
2250
|
+
]
|
2251
|
+
)
|
2252
|
+
transcoder.transcode request_pb
|
2253
|
+
end
|
2254
|
+
|
2255
|
+
##
|
2256
|
+
# @private
|
2257
|
+
#
|
2258
|
+
# GRPC transcoding helper method for the list_restore_plan_bindings REST call
|
2259
|
+
#
|
2260
|
+
# @param request_pb [::Google::Cloud::GkeBackup::V1::ListRestorePlanBindingsRequest]
|
2261
|
+
# A request object representing the call parameters. Required.
|
2262
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2263
|
+
# Uri, Body, Query string parameters
|
2264
|
+
def self.transcode_list_restore_plan_bindings_request request_pb
|
2265
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2266
|
+
.with_bindings(
|
2267
|
+
uri_method: :get,
|
2268
|
+
uri_template: "/v1/{parent}/restorePlanBindings",
|
2269
|
+
matches: [
|
2270
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/restoreChannels/[^/]+/?$}, false]
|
2271
|
+
]
|
2272
|
+
)
|
2273
|
+
transcoder.transcode request_pb
|
2274
|
+
end
|
2275
|
+
|
2276
|
+
##
|
2277
|
+
# @private
|
2278
|
+
#
|
2279
|
+
# GRPC transcoding helper method for the get_restore_plan_binding REST call
|
2280
|
+
#
|
2281
|
+
# @param request_pb [::Google::Cloud::GkeBackup::V1::GetRestorePlanBindingRequest]
|
2282
|
+
# A request object representing the call parameters. Required.
|
2283
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2284
|
+
# Uri, Body, Query string parameters
|
2285
|
+
def self.transcode_get_restore_plan_binding_request request_pb
|
2286
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2287
|
+
.with_bindings(
|
2288
|
+
uri_method: :get,
|
2289
|
+
uri_template: "/v1/{name}",
|
2290
|
+
matches: [
|
2291
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/restoreChannels/[^/]+/restorePlanBindings/[^/]+/?$}, false]
|
2292
|
+
]
|
2293
|
+
)
|
2294
|
+
transcoder.transcode request_pb
|
2295
|
+
end
|
2296
|
+
|
1439
2297
|
##
|
1440
2298
|
# @private
|
1441
2299
|
#
|