google-cloud-backupdr-v1beta 0.2.0 → 0.3.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.
Files changed (30) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -6
  3. data/lib/google/cloud/backupdr/v1beta/appliedautoprotectionpolicy_pb.rb +1 -1
  4. data/lib/google/cloud/backupdr/v1beta/autoprotectionpolicy_pb.rb +2 -1
  5. data/lib/google/cloud/backupdr/v1beta/autoprotectionpolicybinding_pb.rb +2 -1
  6. data/lib/google/cloud/backupdr/v1beta/backupdr/client.rb +2265 -114
  7. data/lib/google/cloud/backupdr/v1beta/backupdr/paths.rb +99 -0
  8. data/lib/google/cloud/backupdr/v1beta/backupdr/rest/client.rb +2137 -112
  9. data/lib/google/cloud/backupdr/v1beta/backupdr/rest/service_stub.rb +1491 -386
  10. data/lib/google/cloud/backupdr/v1beta/backupdr_pb.rb +5 -1
  11. data/lib/google/cloud/backupdr/v1beta/backupdr_services_pb.rb +45 -0
  12. data/lib/google/cloud/backupdr/v1beta/backupvault_pb.rb +3 -1
  13. data/lib/google/cloud/backupdr/v1beta/bindingmatchingresource_pb.rb +1 -1
  14. data/lib/google/cloud/backupdr/v1beta/restore_template_common_pb.rb +28 -0
  15. data/lib/google/cloud/backupdr/v1beta/restore_template_execution_pb.rb +45 -0
  16. data/lib/google/cloud/backupdr/v1beta/restore_template_pb.rb +40 -0
  17. data/lib/google/cloud/backupdr/v1beta/restore_verification_plan_association_pb.rb +36 -0
  18. data/lib/google/cloud/backupdr/v1beta/restore_verification_plan_pb.rb +34 -0
  19. data/lib/google/cloud/backupdr/v1beta/version.rb +1 -1
  20. data/proto_docs/google/cloud/backupdr/v1beta/autoprotectionpolicy.rb +38 -7
  21. data/proto_docs/google/cloud/backupdr/v1beta/autoprotectionpolicybinding.rb +32 -5
  22. data/proto_docs/google/cloud/backupdr/v1beta/backupvault.rb +31 -0
  23. data/proto_docs/google/cloud/backupdr/v1beta/bindingmatchingresource.rb +6 -6
  24. data/proto_docs/google/cloud/backupdr/v1beta/restore_template.rb +292 -0
  25. data/proto_docs/google/cloud/backupdr/v1beta/restore_template_common.rb +80 -0
  26. data/proto_docs/google/cloud/backupdr/v1beta/restore_template_execution.rb +399 -0
  27. data/proto_docs/google/cloud/backupdr/v1beta/restore_verification_plan.rb +270 -0
  28. data/proto_docs/google/cloud/backupdr/v1beta/restore_verification_plan_association.rb +264 -0
  29. data/proto_docs/google/protobuf/struct.rb +108 -0
  30. metadata +12 -1
@@ -234,9 +234,9 @@ module Google
234
234
  end
235
235
 
236
236
  ##
237
- # Baseline implementation for the create_backup_vault REST call
237
+ # Baseline implementation for the create_restore_template REST call
238
238
  #
239
- # @param request_pb [::Google::Cloud::BackupDR::V1beta::CreateBackupVaultRequest]
239
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::CreateRestoreTemplateRequest]
240
240
  # A request object representing the call parameters. Required.
241
241
  # @param options [::Gapic::CallOptions]
242
242
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
@@ -247,10 +247,10 @@ module Google
247
247
  #
248
248
  # @return [::Google::Longrunning::Operation]
249
249
  # A result object deserialized from the server's reply
250
- def create_backup_vault request_pb, options = nil
250
+ def create_restore_template request_pb, options = nil
251
251
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
252
252
 
253
- verb, uri, query_string_params, body = ServiceStub.transcode_create_backup_vault_request request_pb
253
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_restore_template_request request_pb
254
254
  query_string_params = if query_string_params.any?
255
255
  query_string_params.to_h { |p| p.split "=", 2 }
256
256
  else
@@ -262,7 +262,7 @@ module Google
262
262
  uri: uri,
263
263
  body: body || "",
264
264
  params: query_string_params,
265
- method_name: "create_backup_vault",
265
+ method_name: "create_restore_template",
266
266
  options: options
267
267
  )
268
268
  operation = ::Gapic::Rest::TransportOperation.new response
@@ -274,23 +274,23 @@ module Google
274
274
  end
275
275
 
276
276
  ##
277
- # Baseline implementation for the list_backup_vaults REST call
277
+ # Baseline implementation for the get_restore_template REST call
278
278
  #
279
- # @param request_pb [::Google::Cloud::BackupDR::V1beta::ListBackupVaultsRequest]
279
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::GetRestoreTemplateRequest]
280
280
  # A request object representing the call parameters. Required.
281
281
  # @param options [::Gapic::CallOptions]
282
282
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
283
283
  #
284
284
  # @yield [result, operation] Access the result along with the TransportOperation object
285
- # @yieldparam result [::Google::Cloud::BackupDR::V1beta::ListBackupVaultsResponse]
285
+ # @yieldparam result [::Google::Cloud::BackupDR::V1beta::RestoreTemplate]
286
286
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
287
287
  #
288
- # @return [::Google::Cloud::BackupDR::V1beta::ListBackupVaultsResponse]
288
+ # @return [::Google::Cloud::BackupDR::V1beta::RestoreTemplate]
289
289
  # A result object deserialized from the server's reply
290
- def list_backup_vaults request_pb, options = nil
290
+ def get_restore_template request_pb, options = nil
291
291
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
292
292
 
293
- verb, uri, query_string_params, body = ServiceStub.transcode_list_backup_vaults_request request_pb
293
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_restore_template_request request_pb
294
294
  query_string_params = if query_string_params.any?
295
295
  query_string_params.to_h { |p| p.split "=", 2 }
296
296
  else
@@ -302,11 +302,11 @@ module Google
302
302
  uri: uri,
303
303
  body: body || "",
304
304
  params: query_string_params,
305
- method_name: "list_backup_vaults",
305
+ method_name: "get_restore_template",
306
306
  options: options
307
307
  )
308
308
  operation = ::Gapic::Rest::TransportOperation.new response
309
- result = ::Google::Cloud::BackupDR::V1beta::ListBackupVaultsResponse.decode_json response.body, ignore_unknown_fields: true
309
+ result = ::Google::Cloud::BackupDR::V1beta::RestoreTemplate.decode_json response.body, ignore_unknown_fields: true
310
310
  catch :response do
311
311
  yield result, operation if block_given?
312
312
  result
@@ -314,23 +314,23 @@ module Google
314
314
  end
315
315
 
316
316
  ##
317
- # Baseline implementation for the fetch_usable_backup_vaults REST call
317
+ # Baseline implementation for the list_restore_templates REST call
318
318
  #
319
- # @param request_pb [::Google::Cloud::BackupDR::V1beta::FetchUsableBackupVaultsRequest]
319
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::ListRestoreTemplatesRequest]
320
320
  # A request object representing the call parameters. Required.
321
321
  # @param options [::Gapic::CallOptions]
322
322
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
323
323
  #
324
324
  # @yield [result, operation] Access the result along with the TransportOperation object
325
- # @yieldparam result [::Google::Cloud::BackupDR::V1beta::FetchUsableBackupVaultsResponse]
325
+ # @yieldparam result [::Google::Cloud::BackupDR::V1beta::ListRestoreTemplatesResponse]
326
326
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
327
327
  #
328
- # @return [::Google::Cloud::BackupDR::V1beta::FetchUsableBackupVaultsResponse]
328
+ # @return [::Google::Cloud::BackupDR::V1beta::ListRestoreTemplatesResponse]
329
329
  # A result object deserialized from the server's reply
330
- def fetch_usable_backup_vaults request_pb, options = nil
330
+ def list_restore_templates request_pb, options = nil
331
331
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
332
332
 
333
- verb, uri, query_string_params, body = ServiceStub.transcode_fetch_usable_backup_vaults_request request_pb
333
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_restore_templates_request request_pb
334
334
  query_string_params = if query_string_params.any?
335
335
  query_string_params.to_h { |p| p.split "=", 2 }
336
336
  else
@@ -342,11 +342,11 @@ module Google
342
342
  uri: uri,
343
343
  body: body || "",
344
344
  params: query_string_params,
345
- method_name: "fetch_usable_backup_vaults",
345
+ method_name: "list_restore_templates",
346
346
  options: options
347
347
  )
348
348
  operation = ::Gapic::Rest::TransportOperation.new response
349
- result = ::Google::Cloud::BackupDR::V1beta::FetchUsableBackupVaultsResponse.decode_json response.body, ignore_unknown_fields: true
349
+ result = ::Google::Cloud::BackupDR::V1beta::ListRestoreTemplatesResponse.decode_json response.body, ignore_unknown_fields: true
350
350
  catch :response do
351
351
  yield result, operation if block_given?
352
352
  result
@@ -354,23 +354,23 @@ module Google
354
354
  end
355
355
 
356
356
  ##
357
- # Baseline implementation for the get_backup_vault REST call
357
+ # Baseline implementation for the update_restore_template REST call
358
358
  #
359
- # @param request_pb [::Google::Cloud::BackupDR::V1beta::GetBackupVaultRequest]
359
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::UpdateRestoreTemplateRequest]
360
360
  # A request object representing the call parameters. Required.
361
361
  # @param options [::Gapic::CallOptions]
362
362
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
363
363
  #
364
364
  # @yield [result, operation] Access the result along with the TransportOperation object
365
- # @yieldparam result [::Google::Cloud::BackupDR::V1beta::BackupVault]
365
+ # @yieldparam result [::Google::Longrunning::Operation]
366
366
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
367
367
  #
368
- # @return [::Google::Cloud::BackupDR::V1beta::BackupVault]
368
+ # @return [::Google::Longrunning::Operation]
369
369
  # A result object deserialized from the server's reply
370
- def get_backup_vault request_pb, options = nil
370
+ def update_restore_template request_pb, options = nil
371
371
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
372
372
 
373
- verb, uri, query_string_params, body = ServiceStub.transcode_get_backup_vault_request request_pb
373
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_restore_template_request request_pb
374
374
  query_string_params = if query_string_params.any?
375
375
  query_string_params.to_h { |p| p.split "=", 2 }
376
376
  else
@@ -382,11 +382,11 @@ module Google
382
382
  uri: uri,
383
383
  body: body || "",
384
384
  params: query_string_params,
385
- method_name: "get_backup_vault",
385
+ method_name: "update_restore_template",
386
386
  options: options
387
387
  )
388
388
  operation = ::Gapic::Rest::TransportOperation.new response
389
- result = ::Google::Cloud::BackupDR::V1beta::BackupVault.decode_json response.body, ignore_unknown_fields: true
389
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
390
390
  catch :response do
391
391
  yield result, operation if block_given?
392
392
  result
@@ -394,9 +394,9 @@ module Google
394
394
  end
395
395
 
396
396
  ##
397
- # Baseline implementation for the update_backup_vault REST call
397
+ # Baseline implementation for the delete_restore_template REST call
398
398
  #
399
- # @param request_pb [::Google::Cloud::BackupDR::V1beta::UpdateBackupVaultRequest]
399
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::DeleteRestoreTemplateRequest]
400
400
  # A request object representing the call parameters. Required.
401
401
  # @param options [::Gapic::CallOptions]
402
402
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
@@ -407,10 +407,10 @@ module Google
407
407
  #
408
408
  # @return [::Google::Longrunning::Operation]
409
409
  # A result object deserialized from the server's reply
410
- def update_backup_vault request_pb, options = nil
410
+ def delete_restore_template request_pb, options = nil
411
411
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
412
412
 
413
- verb, uri, query_string_params, body = ServiceStub.transcode_update_backup_vault_request request_pb
413
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_restore_template_request request_pb
414
414
  query_string_params = if query_string_params.any?
415
415
  query_string_params.to_h { |p| p.split "=", 2 }
416
416
  else
@@ -422,7 +422,7 @@ module Google
422
422
  uri: uri,
423
423
  body: body || "",
424
424
  params: query_string_params,
425
- method_name: "update_backup_vault",
425
+ method_name: "delete_restore_template",
426
426
  options: options
427
427
  )
428
428
  operation = ::Gapic::Rest::TransportOperation.new response
@@ -434,9 +434,9 @@ module Google
434
434
  end
435
435
 
436
436
  ##
437
- # Baseline implementation for the delete_backup_vault REST call
437
+ # Baseline implementation for the run_restore_template REST call
438
438
  #
439
- # @param request_pb [::Google::Cloud::BackupDR::V1beta::DeleteBackupVaultRequest]
439
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::RunRestoreTemplateRequest]
440
440
  # A request object representing the call parameters. Required.
441
441
  # @param options [::Gapic::CallOptions]
442
442
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
@@ -447,10 +447,10 @@ module Google
447
447
  #
448
448
  # @return [::Google::Longrunning::Operation]
449
449
  # A result object deserialized from the server's reply
450
- def delete_backup_vault request_pb, options = nil
450
+ def run_restore_template request_pb, options = nil
451
451
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
452
452
 
453
- verb, uri, query_string_params, body = ServiceStub.transcode_delete_backup_vault_request request_pb
453
+ verb, uri, query_string_params, body = ServiceStub.transcode_run_restore_template_request request_pb
454
454
  query_string_params = if query_string_params.any?
455
455
  query_string_params.to_h { |p| p.split "=", 2 }
456
456
  else
@@ -462,7 +462,7 @@ module Google
462
462
  uri: uri,
463
463
  body: body || "",
464
464
  params: query_string_params,
465
- method_name: "delete_backup_vault",
465
+ method_name: "run_restore_template",
466
466
  options: options
467
467
  )
468
468
  operation = ::Gapic::Rest::TransportOperation.new response
@@ -474,23 +474,23 @@ module Google
474
474
  end
475
475
 
476
476
  ##
477
- # Baseline implementation for the list_data_sources REST call
477
+ # Baseline implementation for the get_restore_template_execution REST call
478
478
  #
479
- # @param request_pb [::Google::Cloud::BackupDR::V1beta::ListDataSourcesRequest]
479
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::GetRestoreTemplateExecutionRequest]
480
480
  # A request object representing the call parameters. Required.
481
481
  # @param options [::Gapic::CallOptions]
482
482
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
483
483
  #
484
484
  # @yield [result, operation] Access the result along with the TransportOperation object
485
- # @yieldparam result [::Google::Cloud::BackupDR::V1beta::ListDataSourcesResponse]
485
+ # @yieldparam result [::Google::Cloud::BackupDR::V1beta::RestoreTemplateExecution]
486
486
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
487
487
  #
488
- # @return [::Google::Cloud::BackupDR::V1beta::ListDataSourcesResponse]
488
+ # @return [::Google::Cloud::BackupDR::V1beta::RestoreTemplateExecution]
489
489
  # A result object deserialized from the server's reply
490
- def list_data_sources request_pb, options = nil
490
+ def get_restore_template_execution request_pb, options = nil
491
491
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
492
492
 
493
- verb, uri, query_string_params, body = ServiceStub.transcode_list_data_sources_request request_pb
493
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_restore_template_execution_request request_pb
494
494
  query_string_params = if query_string_params.any?
495
495
  query_string_params.to_h { |p| p.split "=", 2 }
496
496
  else
@@ -502,11 +502,11 @@ module Google
502
502
  uri: uri,
503
503
  body: body || "",
504
504
  params: query_string_params,
505
- method_name: "list_data_sources",
505
+ method_name: "get_restore_template_execution",
506
506
  options: options
507
507
  )
508
508
  operation = ::Gapic::Rest::TransportOperation.new response
509
- result = ::Google::Cloud::BackupDR::V1beta::ListDataSourcesResponse.decode_json response.body, ignore_unknown_fields: true
509
+ result = ::Google::Cloud::BackupDR::V1beta::RestoreTemplateExecution.decode_json response.body, ignore_unknown_fields: true
510
510
  catch :response do
511
511
  yield result, operation if block_given?
512
512
  result
@@ -514,23 +514,23 @@ module Google
514
514
  end
515
515
 
516
516
  ##
517
- # Baseline implementation for the get_data_source REST call
517
+ # Baseline implementation for the list_restore_template_executions REST call
518
518
  #
519
- # @param request_pb [::Google::Cloud::BackupDR::V1beta::GetDataSourceRequest]
519
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::ListRestoreTemplateExecutionsRequest]
520
520
  # A request object representing the call parameters. Required.
521
521
  # @param options [::Gapic::CallOptions]
522
522
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
523
523
  #
524
524
  # @yield [result, operation] Access the result along with the TransportOperation object
525
- # @yieldparam result [::Google::Cloud::BackupDR::V1beta::DataSource]
525
+ # @yieldparam result [::Google::Cloud::BackupDR::V1beta::ListRestoreTemplateExecutionsResponse]
526
526
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
527
527
  #
528
- # @return [::Google::Cloud::BackupDR::V1beta::DataSource]
528
+ # @return [::Google::Cloud::BackupDR::V1beta::ListRestoreTemplateExecutionsResponse]
529
529
  # A result object deserialized from the server's reply
530
- def get_data_source request_pb, options = nil
530
+ def list_restore_template_executions request_pb, options = nil
531
531
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
532
532
 
533
- verb, uri, query_string_params, body = ServiceStub.transcode_get_data_source_request request_pb
533
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_restore_template_executions_request request_pb
534
534
  query_string_params = if query_string_params.any?
535
535
  query_string_params.to_h { |p| p.split "=", 2 }
536
536
  else
@@ -542,11 +542,11 @@ module Google
542
542
  uri: uri,
543
543
  body: body || "",
544
544
  params: query_string_params,
545
- method_name: "get_data_source",
545
+ method_name: "list_restore_template_executions",
546
546
  options: options
547
547
  )
548
548
  operation = ::Gapic::Rest::TransportOperation.new response
549
- result = ::Google::Cloud::BackupDR::V1beta::DataSource.decode_json response.body, ignore_unknown_fields: true
549
+ result = ::Google::Cloud::BackupDR::V1beta::ListRestoreTemplateExecutionsResponse.decode_json response.body, ignore_unknown_fields: true
550
550
  catch :response do
551
551
  yield result, operation if block_given?
552
552
  result
@@ -554,9 +554,9 @@ module Google
554
554
  end
555
555
 
556
556
  ##
557
- # Baseline implementation for the update_data_source REST call
557
+ # Baseline implementation for the trigger_restore_cleanup REST call
558
558
  #
559
- # @param request_pb [::Google::Cloud::BackupDR::V1beta::UpdateDataSourceRequest]
559
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::TriggerRestoreCleanupRequest]
560
560
  # A request object representing the call parameters. Required.
561
561
  # @param options [::Gapic::CallOptions]
562
562
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
@@ -567,10 +567,10 @@ module Google
567
567
  #
568
568
  # @return [::Google::Longrunning::Operation]
569
569
  # A result object deserialized from the server's reply
570
- def update_data_source request_pb, options = nil
570
+ def trigger_restore_cleanup request_pb, options = nil
571
571
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
572
572
 
573
- verb, uri, query_string_params, body = ServiceStub.transcode_update_data_source_request request_pb
573
+ verb, uri, query_string_params, body = ServiceStub.transcode_trigger_restore_cleanup_request request_pb
574
574
  query_string_params = if query_string_params.any?
575
575
  query_string_params.to_h { |p| p.split "=", 2 }
576
576
  else
@@ -582,7 +582,7 @@ module Google
582
582
  uri: uri,
583
583
  body: body || "",
584
584
  params: query_string_params,
585
- method_name: "update_data_source",
585
+ method_name: "trigger_restore_cleanup",
586
586
  options: options
587
587
  )
588
588
  operation = ::Gapic::Rest::TransportOperation.new response
@@ -594,23 +594,23 @@ module Google
594
594
  end
595
595
 
596
596
  ##
597
- # Baseline implementation for the list_backups REST call
597
+ # Baseline implementation for the create_restore_verification_plan REST call
598
598
  #
599
- # @param request_pb [::Google::Cloud::BackupDR::V1beta::ListBackupsRequest]
599
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::CreateRestoreVerificationPlanRequest]
600
600
  # A request object representing the call parameters. Required.
601
601
  # @param options [::Gapic::CallOptions]
602
602
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
603
603
  #
604
604
  # @yield [result, operation] Access the result along with the TransportOperation object
605
- # @yieldparam result [::Google::Cloud::BackupDR::V1beta::ListBackupsResponse]
605
+ # @yieldparam result [::Google::Longrunning::Operation]
606
606
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
607
607
  #
608
- # @return [::Google::Cloud::BackupDR::V1beta::ListBackupsResponse]
608
+ # @return [::Google::Longrunning::Operation]
609
609
  # A result object deserialized from the server's reply
610
- def list_backups request_pb, options = nil
610
+ def create_restore_verification_plan request_pb, options = nil
611
611
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
612
612
 
613
- verb, uri, query_string_params, body = ServiceStub.transcode_list_backups_request request_pb
613
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_restore_verification_plan_request request_pb
614
614
  query_string_params = if query_string_params.any?
615
615
  query_string_params.to_h { |p| p.split "=", 2 }
616
616
  else
@@ -622,11 +622,11 @@ module Google
622
622
  uri: uri,
623
623
  body: body || "",
624
624
  params: query_string_params,
625
- method_name: "list_backups",
625
+ method_name: "create_restore_verification_plan",
626
626
  options: options
627
627
  )
628
628
  operation = ::Gapic::Rest::TransportOperation.new response
629
- result = ::Google::Cloud::BackupDR::V1beta::ListBackupsResponse.decode_json response.body, ignore_unknown_fields: true
629
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
630
630
  catch :response do
631
631
  yield result, operation if block_given?
632
632
  result
@@ -634,23 +634,23 @@ module Google
634
634
  end
635
635
 
636
636
  ##
637
- # Baseline implementation for the fetch_backups_for_resource_type REST call
637
+ # Baseline implementation for the create_restore_verification_plan_association REST call
638
638
  #
639
- # @param request_pb [::Google::Cloud::BackupDR::V1beta::FetchBackupsForResourceTypeRequest]
639
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::CreateRestoreVerificationPlanAssociationRequest]
640
640
  # A request object representing the call parameters. Required.
641
641
  # @param options [::Gapic::CallOptions]
642
642
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
643
643
  #
644
644
  # @yield [result, operation] Access the result along with the TransportOperation object
645
- # @yieldparam result [::Google::Cloud::BackupDR::V1beta::FetchBackupsForResourceTypeResponse]
645
+ # @yieldparam result [::Google::Longrunning::Operation]
646
646
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
647
647
  #
648
- # @return [::Google::Cloud::BackupDR::V1beta::FetchBackupsForResourceTypeResponse]
648
+ # @return [::Google::Longrunning::Operation]
649
649
  # A result object deserialized from the server's reply
650
- def fetch_backups_for_resource_type request_pb, options = nil
650
+ def create_restore_verification_plan_association request_pb, options = nil
651
651
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
652
652
 
653
- verb, uri, query_string_params, body = ServiceStub.transcode_fetch_backups_for_resource_type_request request_pb
653
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_restore_verification_plan_association_request request_pb
654
654
  query_string_params = if query_string_params.any?
655
655
  query_string_params.to_h { |p| p.split "=", 2 }
656
656
  else
@@ -662,11 +662,11 @@ module Google
662
662
  uri: uri,
663
663
  body: body || "",
664
664
  params: query_string_params,
665
- method_name: "fetch_backups_for_resource_type",
665
+ method_name: "create_restore_verification_plan_association",
666
666
  options: options
667
667
  )
668
668
  operation = ::Gapic::Rest::TransportOperation.new response
669
- result = ::Google::Cloud::BackupDR::V1beta::FetchBackupsForResourceTypeResponse.decode_json response.body, ignore_unknown_fields: true
669
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
670
670
  catch :response do
671
671
  yield result, operation if block_given?
672
672
  result
@@ -674,23 +674,23 @@ module Google
674
674
  end
675
675
 
676
676
  ##
677
- # Baseline implementation for the get_backup REST call
677
+ # Baseline implementation for the get_restore_verification_plan_association REST call
678
678
  #
679
- # @param request_pb [::Google::Cloud::BackupDR::V1beta::GetBackupRequest]
679
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::GetRestoreVerificationPlanAssociationRequest]
680
680
  # A request object representing the call parameters. Required.
681
681
  # @param options [::Gapic::CallOptions]
682
682
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
683
683
  #
684
684
  # @yield [result, operation] Access the result along with the TransportOperation object
685
- # @yieldparam result [::Google::Cloud::BackupDR::V1beta::Backup]
685
+ # @yieldparam result [::Google::Cloud::BackupDR::V1beta::RestoreVerificationPlanAssociation]
686
686
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
687
687
  #
688
- # @return [::Google::Cloud::BackupDR::V1beta::Backup]
688
+ # @return [::Google::Cloud::BackupDR::V1beta::RestoreVerificationPlanAssociation]
689
689
  # A result object deserialized from the server's reply
690
- def get_backup request_pb, options = nil
690
+ def get_restore_verification_plan_association request_pb, options = nil
691
691
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
692
692
 
693
- verb, uri, query_string_params, body = ServiceStub.transcode_get_backup_request request_pb
693
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_restore_verification_plan_association_request request_pb
694
694
  query_string_params = if query_string_params.any?
695
695
  query_string_params.to_h { |p| p.split "=", 2 }
696
696
  else
@@ -702,11 +702,11 @@ module Google
702
702
  uri: uri,
703
703
  body: body || "",
704
704
  params: query_string_params,
705
- method_name: "get_backup",
705
+ method_name: "get_restore_verification_plan_association",
706
706
  options: options
707
707
  )
708
708
  operation = ::Gapic::Rest::TransportOperation.new response
709
- result = ::Google::Cloud::BackupDR::V1beta::Backup.decode_json response.body, ignore_unknown_fields: true
709
+ result = ::Google::Cloud::BackupDR::V1beta::RestoreVerificationPlanAssociation.decode_json response.body, ignore_unknown_fields: true
710
710
  catch :response do
711
711
  yield result, operation if block_given?
712
712
  result
@@ -714,23 +714,23 @@ module Google
714
714
  end
715
715
 
716
716
  ##
717
- # Baseline implementation for the update_backup REST call
717
+ # Baseline implementation for the list_restore_verification_plan_associations REST call
718
718
  #
719
- # @param request_pb [::Google::Cloud::BackupDR::V1beta::UpdateBackupRequest]
719
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::ListRestoreVerificationPlanAssociationsRequest]
720
720
  # A request object representing the call parameters. Required.
721
721
  # @param options [::Gapic::CallOptions]
722
722
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
723
723
  #
724
724
  # @yield [result, operation] Access the result along with the TransportOperation object
725
- # @yieldparam result [::Google::Longrunning::Operation]
725
+ # @yieldparam result [::Google::Cloud::BackupDR::V1beta::ListRestoreVerificationPlanAssociationsResponse]
726
726
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
727
727
  #
728
- # @return [::Google::Longrunning::Operation]
728
+ # @return [::Google::Cloud::BackupDR::V1beta::ListRestoreVerificationPlanAssociationsResponse]
729
729
  # A result object deserialized from the server's reply
730
- def update_backup request_pb, options = nil
730
+ def list_restore_verification_plan_associations request_pb, options = nil
731
731
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
732
732
 
733
- verb, uri, query_string_params, body = ServiceStub.transcode_update_backup_request request_pb
733
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_restore_verification_plan_associations_request request_pb
734
734
  query_string_params = if query_string_params.any?
735
735
  query_string_params.to_h { |p| p.split "=", 2 }
736
736
  else
@@ -742,11 +742,11 @@ module Google
742
742
  uri: uri,
743
743
  body: body || "",
744
744
  params: query_string_params,
745
- method_name: "update_backup",
745
+ method_name: "list_restore_verification_plan_associations",
746
746
  options: options
747
747
  )
748
748
  operation = ::Gapic::Rest::TransportOperation.new response
749
- result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
749
+ result = ::Google::Cloud::BackupDR::V1beta::ListRestoreVerificationPlanAssociationsResponse.decode_json response.body, ignore_unknown_fields: true
750
750
  catch :response do
751
751
  yield result, operation if block_given?
752
752
  result
@@ -754,9 +754,9 @@ module Google
754
754
  end
755
755
 
756
756
  ##
757
- # Baseline implementation for the delete_backup REST call
757
+ # Baseline implementation for the delete_restore_verification_plan_association REST call
758
758
  #
759
- # @param request_pb [::Google::Cloud::BackupDR::V1beta::DeleteBackupRequest]
759
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::DeleteRestoreVerificationPlanAssociationRequest]
760
760
  # A request object representing the call parameters. Required.
761
761
  # @param options [::Gapic::CallOptions]
762
762
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
@@ -767,10 +767,10 @@ module Google
767
767
  #
768
768
  # @return [::Google::Longrunning::Operation]
769
769
  # A result object deserialized from the server's reply
770
- def delete_backup request_pb, options = nil
770
+ def delete_restore_verification_plan_association request_pb, options = nil
771
771
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
772
772
 
773
- verb, uri, query_string_params, body = ServiceStub.transcode_delete_backup_request request_pb
773
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_restore_verification_plan_association_request request_pb
774
774
  query_string_params = if query_string_params.any?
775
775
  query_string_params.to_h { |p| p.split "=", 2 }
776
776
  else
@@ -782,7 +782,7 @@ module Google
782
782
  uri: uri,
783
783
  body: body || "",
784
784
  params: query_string_params,
785
- method_name: "delete_backup",
785
+ method_name: "delete_restore_verification_plan_association",
786
786
  options: options
787
787
  )
788
788
  operation = ::Gapic::Rest::TransportOperation.new response
@@ -794,9 +794,9 @@ module Google
794
794
  end
795
795
 
796
796
  ##
797
- # Baseline implementation for the restore_backup REST call
797
+ # Baseline implementation for the trigger_restore_verification REST call
798
798
  #
799
- # @param request_pb [::Google::Cloud::BackupDR::V1beta::RestoreBackupRequest]
799
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::TriggerRestoreVerificationRequest]
800
800
  # A request object representing the call parameters. Required.
801
801
  # @param options [::Gapic::CallOptions]
802
802
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
@@ -807,10 +807,10 @@ module Google
807
807
  #
808
808
  # @return [::Google::Longrunning::Operation]
809
809
  # A result object deserialized from the server's reply
810
- def restore_backup request_pb, options = nil
810
+ def trigger_restore_verification request_pb, options = nil
811
811
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
812
812
 
813
- verb, uri, query_string_params, body = ServiceStub.transcode_restore_backup_request request_pb
813
+ verb, uri, query_string_params, body = ServiceStub.transcode_trigger_restore_verification_request request_pb
814
814
  query_string_params = if query_string_params.any?
815
815
  query_string_params.to_h { |p| p.split "=", 2 }
816
816
  else
@@ -822,7 +822,7 @@ module Google
822
822
  uri: uri,
823
823
  body: body || "",
824
824
  params: query_string_params,
825
- method_name: "restore_backup",
825
+ method_name: "trigger_restore_verification",
826
826
  options: options
827
827
  )
828
828
  operation = ::Gapic::Rest::TransportOperation.new response
@@ -834,23 +834,23 @@ module Google
834
834
  end
835
835
 
836
836
  ##
837
- # Baseline implementation for the create_backup_plan REST call
837
+ # Baseline implementation for the get_restore_verification_plan REST call
838
838
  #
839
- # @param request_pb [::Google::Cloud::BackupDR::V1beta::CreateBackupPlanRequest]
839
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::GetRestoreVerificationPlanRequest]
840
840
  # A request object representing the call parameters. Required.
841
841
  # @param options [::Gapic::CallOptions]
842
842
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
843
843
  #
844
844
  # @yield [result, operation] Access the result along with the TransportOperation object
845
- # @yieldparam result [::Google::Longrunning::Operation]
845
+ # @yieldparam result [::Google::Cloud::BackupDR::V1beta::RestoreVerificationPlan]
846
846
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
847
847
  #
848
- # @return [::Google::Longrunning::Operation]
848
+ # @return [::Google::Cloud::BackupDR::V1beta::RestoreVerificationPlan]
849
849
  # A result object deserialized from the server's reply
850
- def create_backup_plan request_pb, options = nil
850
+ def get_restore_verification_plan request_pb, options = nil
851
851
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
852
852
 
853
- verb, uri, query_string_params, body = ServiceStub.transcode_create_backup_plan_request request_pb
853
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_restore_verification_plan_request request_pb
854
854
  query_string_params = if query_string_params.any?
855
855
  query_string_params.to_h { |p| p.split "=", 2 }
856
856
  else
@@ -862,11 +862,11 @@ module Google
862
862
  uri: uri,
863
863
  body: body || "",
864
864
  params: query_string_params,
865
- method_name: "create_backup_plan",
865
+ method_name: "get_restore_verification_plan",
866
866
  options: options
867
867
  )
868
868
  operation = ::Gapic::Rest::TransportOperation.new response
869
- result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
869
+ result = ::Google::Cloud::BackupDR::V1beta::RestoreVerificationPlan.decode_json response.body, ignore_unknown_fields: true
870
870
  catch :response do
871
871
  yield result, operation if block_given?
872
872
  result
@@ -874,23 +874,23 @@ module Google
874
874
  end
875
875
 
876
876
  ##
877
- # Baseline implementation for the update_backup_plan REST call
877
+ # Baseline implementation for the list_restore_verification_plans REST call
878
878
  #
879
- # @param request_pb [::Google::Cloud::BackupDR::V1beta::UpdateBackupPlanRequest]
879
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::ListRestoreVerificationPlansRequest]
880
880
  # A request object representing the call parameters. Required.
881
881
  # @param options [::Gapic::CallOptions]
882
882
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
883
883
  #
884
884
  # @yield [result, operation] Access the result along with the TransportOperation object
885
- # @yieldparam result [::Google::Longrunning::Operation]
885
+ # @yieldparam result [::Google::Cloud::BackupDR::V1beta::ListRestoreVerificationPlansResponse]
886
886
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
887
887
  #
888
- # @return [::Google::Longrunning::Operation]
888
+ # @return [::Google::Cloud::BackupDR::V1beta::ListRestoreVerificationPlansResponse]
889
889
  # A result object deserialized from the server's reply
890
- def update_backup_plan request_pb, options = nil
890
+ def list_restore_verification_plans request_pb, options = nil
891
891
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
892
892
 
893
- verb, uri, query_string_params, body = ServiceStub.transcode_update_backup_plan_request request_pb
893
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_restore_verification_plans_request request_pb
894
894
  query_string_params = if query_string_params.any?
895
895
  query_string_params.to_h { |p| p.split "=", 2 }
896
896
  else
@@ -902,11 +902,11 @@ module Google
902
902
  uri: uri,
903
903
  body: body || "",
904
904
  params: query_string_params,
905
- method_name: "update_backup_plan",
905
+ method_name: "list_restore_verification_plans",
906
906
  options: options
907
907
  )
908
908
  operation = ::Gapic::Rest::TransportOperation.new response
909
- result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
909
+ result = ::Google::Cloud::BackupDR::V1beta::ListRestoreVerificationPlansResponse.decode_json response.body, ignore_unknown_fields: true
910
910
  catch :response do
911
911
  yield result, operation if block_given?
912
912
  result
@@ -914,23 +914,23 @@ module Google
914
914
  end
915
915
 
916
916
  ##
917
- # Baseline implementation for the get_backup_plan REST call
917
+ # Baseline implementation for the delete_restore_verification_plan REST call
918
918
  #
919
- # @param request_pb [::Google::Cloud::BackupDR::V1beta::GetBackupPlanRequest]
919
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::DeleteRestoreVerificationPlanRequest]
920
920
  # A request object representing the call parameters. Required.
921
921
  # @param options [::Gapic::CallOptions]
922
922
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
923
923
  #
924
924
  # @yield [result, operation] Access the result along with the TransportOperation object
925
- # @yieldparam result [::Google::Cloud::BackupDR::V1beta::BackupPlan]
925
+ # @yieldparam result [::Google::Longrunning::Operation]
926
926
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
927
927
  #
928
- # @return [::Google::Cloud::BackupDR::V1beta::BackupPlan]
928
+ # @return [::Google::Longrunning::Operation]
929
929
  # A result object deserialized from the server's reply
930
- def get_backup_plan request_pb, options = nil
930
+ def delete_restore_verification_plan request_pb, options = nil
931
931
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
932
932
 
933
- verb, uri, query_string_params, body = ServiceStub.transcode_get_backup_plan_request request_pb
933
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_restore_verification_plan_request request_pb
934
934
  query_string_params = if query_string_params.any?
935
935
  query_string_params.to_h { |p| p.split "=", 2 }
936
936
  else
@@ -942,11 +942,11 @@ module Google
942
942
  uri: uri,
943
943
  body: body || "",
944
944
  params: query_string_params,
945
- method_name: "get_backup_plan",
945
+ method_name: "delete_restore_verification_plan",
946
946
  options: options
947
947
  )
948
948
  operation = ::Gapic::Rest::TransportOperation.new response
949
- result = ::Google::Cloud::BackupDR::V1beta::BackupPlan.decode_json response.body, ignore_unknown_fields: true
949
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
950
950
  catch :response do
951
951
  yield result, operation if block_given?
952
952
  result
@@ -954,23 +954,23 @@ module Google
954
954
  end
955
955
 
956
956
  ##
957
- # Baseline implementation for the list_backup_plans REST call
957
+ # Baseline implementation for the create_backup_vault REST call
958
958
  #
959
- # @param request_pb [::Google::Cloud::BackupDR::V1beta::ListBackupPlansRequest]
959
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::CreateBackupVaultRequest]
960
960
  # A request object representing the call parameters. Required.
961
961
  # @param options [::Gapic::CallOptions]
962
962
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
963
963
  #
964
964
  # @yield [result, operation] Access the result along with the TransportOperation object
965
- # @yieldparam result [::Google::Cloud::BackupDR::V1beta::ListBackupPlansResponse]
965
+ # @yieldparam result [::Google::Longrunning::Operation]
966
966
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
967
967
  #
968
- # @return [::Google::Cloud::BackupDR::V1beta::ListBackupPlansResponse]
968
+ # @return [::Google::Longrunning::Operation]
969
969
  # A result object deserialized from the server's reply
970
- def list_backup_plans request_pb, options = nil
970
+ def create_backup_vault request_pb, options = nil
971
971
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
972
972
 
973
- verb, uri, query_string_params, body = ServiceStub.transcode_list_backup_plans_request request_pb
973
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_backup_vault_request request_pb
974
974
  query_string_params = if query_string_params.any?
975
975
  query_string_params.to_h { |p| p.split "=", 2 }
976
976
  else
@@ -982,11 +982,11 @@ module Google
982
982
  uri: uri,
983
983
  body: body || "",
984
984
  params: query_string_params,
985
- method_name: "list_backup_plans",
985
+ method_name: "create_backup_vault",
986
986
  options: options
987
987
  )
988
988
  operation = ::Gapic::Rest::TransportOperation.new response
989
- result = ::Google::Cloud::BackupDR::V1beta::ListBackupPlansResponse.decode_json response.body, ignore_unknown_fields: true
989
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
990
990
  catch :response do
991
991
  yield result, operation if block_given?
992
992
  result
@@ -994,23 +994,23 @@ module Google
994
994
  end
995
995
 
996
996
  ##
997
- # Baseline implementation for the delete_backup_plan REST call
997
+ # Baseline implementation for the list_backup_vaults REST call
998
998
  #
999
- # @param request_pb [::Google::Cloud::BackupDR::V1beta::DeleteBackupPlanRequest]
999
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::ListBackupVaultsRequest]
1000
1000
  # A request object representing the call parameters. Required.
1001
1001
  # @param options [::Gapic::CallOptions]
1002
1002
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1003
1003
  #
1004
1004
  # @yield [result, operation] Access the result along with the TransportOperation object
1005
- # @yieldparam result [::Google::Longrunning::Operation]
1005
+ # @yieldparam result [::Google::Cloud::BackupDR::V1beta::ListBackupVaultsResponse]
1006
1006
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
1007
1007
  #
1008
- # @return [::Google::Longrunning::Operation]
1008
+ # @return [::Google::Cloud::BackupDR::V1beta::ListBackupVaultsResponse]
1009
1009
  # A result object deserialized from the server's reply
1010
- def delete_backup_plan request_pb, options = nil
1010
+ def list_backup_vaults request_pb, options = nil
1011
1011
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
1012
1012
 
1013
- verb, uri, query_string_params, body = ServiceStub.transcode_delete_backup_plan_request request_pb
1013
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_backup_vaults_request request_pb
1014
1014
  query_string_params = if query_string_params.any?
1015
1015
  query_string_params.to_h { |p| p.split "=", 2 }
1016
1016
  else
@@ -1022,11 +1022,11 @@ module Google
1022
1022
  uri: uri,
1023
1023
  body: body || "",
1024
1024
  params: query_string_params,
1025
- method_name: "delete_backup_plan",
1025
+ method_name: "list_backup_vaults",
1026
1026
  options: options
1027
1027
  )
1028
1028
  operation = ::Gapic::Rest::TransportOperation.new response
1029
- result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
1029
+ result = ::Google::Cloud::BackupDR::V1beta::ListBackupVaultsResponse.decode_json response.body, ignore_unknown_fields: true
1030
1030
  catch :response do
1031
1031
  yield result, operation if block_given?
1032
1032
  result
@@ -1034,23 +1034,23 @@ module Google
1034
1034
  end
1035
1035
 
1036
1036
  ##
1037
- # Baseline implementation for the get_backup_plan_revision REST call
1037
+ # Baseline implementation for the fetch_usable_backup_vaults REST call
1038
1038
  #
1039
- # @param request_pb [::Google::Cloud::BackupDR::V1beta::GetBackupPlanRevisionRequest]
1039
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::FetchUsableBackupVaultsRequest]
1040
1040
  # A request object representing the call parameters. Required.
1041
1041
  # @param options [::Gapic::CallOptions]
1042
1042
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1043
1043
  #
1044
1044
  # @yield [result, operation] Access the result along with the TransportOperation object
1045
- # @yieldparam result [::Google::Cloud::BackupDR::V1beta::BackupPlanRevision]
1045
+ # @yieldparam result [::Google::Cloud::BackupDR::V1beta::FetchUsableBackupVaultsResponse]
1046
1046
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
1047
1047
  #
1048
- # @return [::Google::Cloud::BackupDR::V1beta::BackupPlanRevision]
1048
+ # @return [::Google::Cloud::BackupDR::V1beta::FetchUsableBackupVaultsResponse]
1049
1049
  # A result object deserialized from the server's reply
1050
- def get_backup_plan_revision request_pb, options = nil
1050
+ def fetch_usable_backup_vaults request_pb, options = nil
1051
1051
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
1052
1052
 
1053
- verb, uri, query_string_params, body = ServiceStub.transcode_get_backup_plan_revision_request request_pb
1053
+ verb, uri, query_string_params, body = ServiceStub.transcode_fetch_usable_backup_vaults_request request_pb
1054
1054
  query_string_params = if query_string_params.any?
1055
1055
  query_string_params.to_h { |p| p.split "=", 2 }
1056
1056
  else
@@ -1062,11 +1062,11 @@ module Google
1062
1062
  uri: uri,
1063
1063
  body: body || "",
1064
1064
  params: query_string_params,
1065
- method_name: "get_backup_plan_revision",
1065
+ method_name: "fetch_usable_backup_vaults",
1066
1066
  options: options
1067
1067
  )
1068
1068
  operation = ::Gapic::Rest::TransportOperation.new response
1069
- result = ::Google::Cloud::BackupDR::V1beta::BackupPlanRevision.decode_json response.body, ignore_unknown_fields: true
1069
+ result = ::Google::Cloud::BackupDR::V1beta::FetchUsableBackupVaultsResponse.decode_json response.body, ignore_unknown_fields: true
1070
1070
  catch :response do
1071
1071
  yield result, operation if block_given?
1072
1072
  result
@@ -1074,23 +1074,23 @@ module Google
1074
1074
  end
1075
1075
 
1076
1076
  ##
1077
- # Baseline implementation for the list_backup_plan_revisions REST call
1077
+ # Baseline implementation for the get_backup_vault REST call
1078
1078
  #
1079
- # @param request_pb [::Google::Cloud::BackupDR::V1beta::ListBackupPlanRevisionsRequest]
1079
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::GetBackupVaultRequest]
1080
1080
  # A request object representing the call parameters. Required.
1081
1081
  # @param options [::Gapic::CallOptions]
1082
1082
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1083
1083
  #
1084
1084
  # @yield [result, operation] Access the result along with the TransportOperation object
1085
- # @yieldparam result [::Google::Cloud::BackupDR::V1beta::ListBackupPlanRevisionsResponse]
1085
+ # @yieldparam result [::Google::Cloud::BackupDR::V1beta::BackupVault]
1086
1086
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
1087
1087
  #
1088
- # @return [::Google::Cloud::BackupDR::V1beta::ListBackupPlanRevisionsResponse]
1088
+ # @return [::Google::Cloud::BackupDR::V1beta::BackupVault]
1089
1089
  # A result object deserialized from the server's reply
1090
- def list_backup_plan_revisions request_pb, options = nil
1090
+ def get_backup_vault request_pb, options = nil
1091
1091
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
1092
1092
 
1093
- verb, uri, query_string_params, body = ServiceStub.transcode_list_backup_plan_revisions_request request_pb
1093
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_backup_vault_request request_pb
1094
1094
  query_string_params = if query_string_params.any?
1095
1095
  query_string_params.to_h { |p| p.split "=", 2 }
1096
1096
  else
@@ -1102,11 +1102,11 @@ module Google
1102
1102
  uri: uri,
1103
1103
  body: body || "",
1104
1104
  params: query_string_params,
1105
- method_name: "list_backup_plan_revisions",
1105
+ method_name: "get_backup_vault",
1106
1106
  options: options
1107
1107
  )
1108
1108
  operation = ::Gapic::Rest::TransportOperation.new response
1109
- result = ::Google::Cloud::BackupDR::V1beta::ListBackupPlanRevisionsResponse.decode_json response.body, ignore_unknown_fields: true
1109
+ result = ::Google::Cloud::BackupDR::V1beta::BackupVault.decode_json response.body, ignore_unknown_fields: true
1110
1110
  catch :response do
1111
1111
  yield result, operation if block_given?
1112
1112
  result
@@ -1114,9 +1114,9 @@ module Google
1114
1114
  end
1115
1115
 
1116
1116
  ##
1117
- # Baseline implementation for the create_backup_plan_association REST call
1117
+ # Baseline implementation for the update_backup_vault REST call
1118
1118
  #
1119
- # @param request_pb [::Google::Cloud::BackupDR::V1beta::CreateBackupPlanAssociationRequest]
1119
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::UpdateBackupVaultRequest]
1120
1120
  # A request object representing the call parameters. Required.
1121
1121
  # @param options [::Gapic::CallOptions]
1122
1122
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
@@ -1127,10 +1127,10 @@ module Google
1127
1127
  #
1128
1128
  # @return [::Google::Longrunning::Operation]
1129
1129
  # A result object deserialized from the server's reply
1130
- def create_backup_plan_association request_pb, options = nil
1130
+ def update_backup_vault request_pb, options = nil
1131
1131
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
1132
1132
 
1133
- verb, uri, query_string_params, body = ServiceStub.transcode_create_backup_plan_association_request request_pb
1133
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_backup_vault_request request_pb
1134
1134
  query_string_params = if query_string_params.any?
1135
1135
  query_string_params.to_h { |p| p.split "=", 2 }
1136
1136
  else
@@ -1142,7 +1142,7 @@ module Google
1142
1142
  uri: uri,
1143
1143
  body: body || "",
1144
1144
  params: query_string_params,
1145
- method_name: "create_backup_plan_association",
1145
+ method_name: "update_backup_vault",
1146
1146
  options: options
1147
1147
  )
1148
1148
  operation = ::Gapic::Rest::TransportOperation.new response
@@ -1154,9 +1154,9 @@ module Google
1154
1154
  end
1155
1155
 
1156
1156
  ##
1157
- # Baseline implementation for the update_backup_plan_association REST call
1157
+ # Baseline implementation for the delete_backup_vault REST call
1158
1158
  #
1159
- # @param request_pb [::Google::Cloud::BackupDR::V1beta::UpdateBackupPlanAssociationRequest]
1159
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::DeleteBackupVaultRequest]
1160
1160
  # A request object representing the call parameters. Required.
1161
1161
  # @param options [::Gapic::CallOptions]
1162
1162
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
@@ -1167,10 +1167,10 @@ module Google
1167
1167
  #
1168
1168
  # @return [::Google::Longrunning::Operation]
1169
1169
  # A result object deserialized from the server's reply
1170
- def update_backup_plan_association request_pb, options = nil
1170
+ def delete_backup_vault request_pb, options = nil
1171
1171
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
1172
1172
 
1173
- verb, uri, query_string_params, body = ServiceStub.transcode_update_backup_plan_association_request request_pb
1173
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_backup_vault_request request_pb
1174
1174
  query_string_params = if query_string_params.any?
1175
1175
  query_string_params.to_h { |p| p.split "=", 2 }
1176
1176
  else
@@ -1182,7 +1182,7 @@ module Google
1182
1182
  uri: uri,
1183
1183
  body: body || "",
1184
1184
  params: query_string_params,
1185
- method_name: "update_backup_plan_association",
1185
+ method_name: "delete_backup_vault",
1186
1186
  options: options
1187
1187
  )
1188
1188
  operation = ::Gapic::Rest::TransportOperation.new response
@@ -1194,23 +1194,23 @@ module Google
1194
1194
  end
1195
1195
 
1196
1196
  ##
1197
- # Baseline implementation for the get_backup_plan_association REST call
1197
+ # Baseline implementation for the list_data_sources REST call
1198
1198
  #
1199
- # @param request_pb [::Google::Cloud::BackupDR::V1beta::GetBackupPlanAssociationRequest]
1199
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::ListDataSourcesRequest]
1200
1200
  # A request object representing the call parameters. Required.
1201
1201
  # @param options [::Gapic::CallOptions]
1202
1202
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1203
1203
  #
1204
1204
  # @yield [result, operation] Access the result along with the TransportOperation object
1205
- # @yieldparam result [::Google::Cloud::BackupDR::V1beta::BackupPlanAssociation]
1205
+ # @yieldparam result [::Google::Cloud::BackupDR::V1beta::ListDataSourcesResponse]
1206
1206
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
1207
1207
  #
1208
- # @return [::Google::Cloud::BackupDR::V1beta::BackupPlanAssociation]
1208
+ # @return [::Google::Cloud::BackupDR::V1beta::ListDataSourcesResponse]
1209
1209
  # A result object deserialized from the server's reply
1210
- def get_backup_plan_association request_pb, options = nil
1210
+ def list_data_sources request_pb, options = nil
1211
1211
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
1212
1212
 
1213
- verb, uri, query_string_params, body = ServiceStub.transcode_get_backup_plan_association_request request_pb
1213
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_data_sources_request request_pb
1214
1214
  query_string_params = if query_string_params.any?
1215
1215
  query_string_params.to_h { |p| p.split "=", 2 }
1216
1216
  else
@@ -1222,11 +1222,11 @@ module Google
1222
1222
  uri: uri,
1223
1223
  body: body || "",
1224
1224
  params: query_string_params,
1225
- method_name: "get_backup_plan_association",
1225
+ method_name: "list_data_sources",
1226
1226
  options: options
1227
1227
  )
1228
1228
  operation = ::Gapic::Rest::TransportOperation.new response
1229
- result = ::Google::Cloud::BackupDR::V1beta::BackupPlanAssociation.decode_json response.body, ignore_unknown_fields: true
1229
+ result = ::Google::Cloud::BackupDR::V1beta::ListDataSourcesResponse.decode_json response.body, ignore_unknown_fields: true
1230
1230
  catch :response do
1231
1231
  yield result, operation if block_given?
1232
1232
  result
@@ -1234,23 +1234,23 @@ module Google
1234
1234
  end
1235
1235
 
1236
1236
  ##
1237
- # Baseline implementation for the list_backup_plan_associations REST call
1237
+ # Baseline implementation for the get_data_source REST call
1238
1238
  #
1239
- # @param request_pb [::Google::Cloud::BackupDR::V1beta::ListBackupPlanAssociationsRequest]
1239
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::GetDataSourceRequest]
1240
1240
  # A request object representing the call parameters. Required.
1241
1241
  # @param options [::Gapic::CallOptions]
1242
1242
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1243
1243
  #
1244
1244
  # @yield [result, operation] Access the result along with the TransportOperation object
1245
- # @yieldparam result [::Google::Cloud::BackupDR::V1beta::ListBackupPlanAssociationsResponse]
1245
+ # @yieldparam result [::Google::Cloud::BackupDR::V1beta::DataSource]
1246
1246
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
1247
1247
  #
1248
- # @return [::Google::Cloud::BackupDR::V1beta::ListBackupPlanAssociationsResponse]
1248
+ # @return [::Google::Cloud::BackupDR::V1beta::DataSource]
1249
1249
  # A result object deserialized from the server's reply
1250
- def list_backup_plan_associations request_pb, options = nil
1250
+ def get_data_source request_pb, options = nil
1251
1251
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
1252
1252
 
1253
- verb, uri, query_string_params, body = ServiceStub.transcode_list_backup_plan_associations_request request_pb
1253
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_data_source_request request_pb
1254
1254
  query_string_params = if query_string_params.any?
1255
1255
  query_string_params.to_h { |p| p.split "=", 2 }
1256
1256
  else
@@ -1262,11 +1262,11 @@ module Google
1262
1262
  uri: uri,
1263
1263
  body: body || "",
1264
1264
  params: query_string_params,
1265
- method_name: "list_backup_plan_associations",
1265
+ method_name: "get_data_source",
1266
1266
  options: options
1267
1267
  )
1268
1268
  operation = ::Gapic::Rest::TransportOperation.new response
1269
- result = ::Google::Cloud::BackupDR::V1beta::ListBackupPlanAssociationsResponse.decode_json response.body, ignore_unknown_fields: true
1269
+ result = ::Google::Cloud::BackupDR::V1beta::DataSource.decode_json response.body, ignore_unknown_fields: true
1270
1270
  catch :response do
1271
1271
  yield result, operation if block_given?
1272
1272
  result
@@ -1274,23 +1274,23 @@ module Google
1274
1274
  end
1275
1275
 
1276
1276
  ##
1277
- # Baseline implementation for the fetch_backup_plan_associations_for_resource_type REST call
1277
+ # Baseline implementation for the update_data_source REST call
1278
1278
  #
1279
- # @param request_pb [::Google::Cloud::BackupDR::V1beta::FetchBackupPlanAssociationsForResourceTypeRequest]
1279
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::UpdateDataSourceRequest]
1280
1280
  # A request object representing the call parameters. Required.
1281
1281
  # @param options [::Gapic::CallOptions]
1282
1282
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1283
1283
  #
1284
1284
  # @yield [result, operation] Access the result along with the TransportOperation object
1285
- # @yieldparam result [::Google::Cloud::BackupDR::V1beta::FetchBackupPlanAssociationsForResourceTypeResponse]
1285
+ # @yieldparam result [::Google::Longrunning::Operation]
1286
1286
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
1287
1287
  #
1288
- # @return [::Google::Cloud::BackupDR::V1beta::FetchBackupPlanAssociationsForResourceTypeResponse]
1288
+ # @return [::Google::Longrunning::Operation]
1289
1289
  # A result object deserialized from the server's reply
1290
- def fetch_backup_plan_associations_for_resource_type request_pb, options = nil
1290
+ def update_data_source request_pb, options = nil
1291
1291
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
1292
1292
 
1293
- verb, uri, query_string_params, body = ServiceStub.transcode_fetch_backup_plan_associations_for_resource_type_request request_pb
1293
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_data_source_request request_pb
1294
1294
  query_string_params = if query_string_params.any?
1295
1295
  query_string_params.to_h { |p| p.split "=", 2 }
1296
1296
  else
@@ -1302,11 +1302,11 @@ module Google
1302
1302
  uri: uri,
1303
1303
  body: body || "",
1304
1304
  params: query_string_params,
1305
- method_name: "fetch_backup_plan_associations_for_resource_type",
1305
+ method_name: "update_data_source",
1306
1306
  options: options
1307
1307
  )
1308
1308
  operation = ::Gapic::Rest::TransportOperation.new response
1309
- result = ::Google::Cloud::BackupDR::V1beta::FetchBackupPlanAssociationsForResourceTypeResponse.decode_json response.body, ignore_unknown_fields: true
1309
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
1310
1310
  catch :response do
1311
1311
  yield result, operation if block_given?
1312
1312
  result
@@ -1314,23 +1314,23 @@ module Google
1314
1314
  end
1315
1315
 
1316
1316
  ##
1317
- # Baseline implementation for the delete_backup_plan_association REST call
1317
+ # Baseline implementation for the list_backups REST call
1318
1318
  #
1319
- # @param request_pb [::Google::Cloud::BackupDR::V1beta::DeleteBackupPlanAssociationRequest]
1319
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::ListBackupsRequest]
1320
1320
  # A request object representing the call parameters. Required.
1321
1321
  # @param options [::Gapic::CallOptions]
1322
1322
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1323
1323
  #
1324
1324
  # @yield [result, operation] Access the result along with the TransportOperation object
1325
- # @yieldparam result [::Google::Longrunning::Operation]
1325
+ # @yieldparam result [::Google::Cloud::BackupDR::V1beta::ListBackupsResponse]
1326
1326
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
1327
1327
  #
1328
- # @return [::Google::Longrunning::Operation]
1328
+ # @return [::Google::Cloud::BackupDR::V1beta::ListBackupsResponse]
1329
1329
  # A result object deserialized from the server's reply
1330
- def delete_backup_plan_association request_pb, options = nil
1330
+ def list_backups request_pb, options = nil
1331
1331
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
1332
1332
 
1333
- verb, uri, query_string_params, body = ServiceStub.transcode_delete_backup_plan_association_request request_pb
1333
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_backups_request request_pb
1334
1334
  query_string_params = if query_string_params.any?
1335
1335
  query_string_params.to_h { |p| p.split "=", 2 }
1336
1336
  else
@@ -1342,11 +1342,11 @@ module Google
1342
1342
  uri: uri,
1343
1343
  body: body || "",
1344
1344
  params: query_string_params,
1345
- method_name: "delete_backup_plan_association",
1345
+ method_name: "list_backups",
1346
1346
  options: options
1347
1347
  )
1348
1348
  operation = ::Gapic::Rest::TransportOperation.new response
1349
- result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
1349
+ result = ::Google::Cloud::BackupDR::V1beta::ListBackupsResponse.decode_json response.body, ignore_unknown_fields: true
1350
1350
  catch :response do
1351
1351
  yield result, operation if block_given?
1352
1352
  result
@@ -1354,23 +1354,23 @@ module Google
1354
1354
  end
1355
1355
 
1356
1356
  ##
1357
- # Baseline implementation for the trigger_backup REST call
1357
+ # Baseline implementation for the fetch_backups_for_resource_type REST call
1358
1358
  #
1359
- # @param request_pb [::Google::Cloud::BackupDR::V1beta::TriggerBackupRequest]
1359
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::FetchBackupsForResourceTypeRequest]
1360
1360
  # A request object representing the call parameters. Required.
1361
1361
  # @param options [::Gapic::CallOptions]
1362
1362
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1363
1363
  #
1364
1364
  # @yield [result, operation] Access the result along with the TransportOperation object
1365
- # @yieldparam result [::Google::Longrunning::Operation]
1365
+ # @yieldparam result [::Google::Cloud::BackupDR::V1beta::FetchBackupsForResourceTypeResponse]
1366
1366
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
1367
1367
  #
1368
- # @return [::Google::Longrunning::Operation]
1368
+ # @return [::Google::Cloud::BackupDR::V1beta::FetchBackupsForResourceTypeResponse]
1369
1369
  # A result object deserialized from the server's reply
1370
- def trigger_backup request_pb, options = nil
1370
+ def fetch_backups_for_resource_type request_pb, options = nil
1371
1371
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
1372
1372
 
1373
- verb, uri, query_string_params, body = ServiceStub.transcode_trigger_backup_request request_pb
1373
+ verb, uri, query_string_params, body = ServiceStub.transcode_fetch_backups_for_resource_type_request request_pb
1374
1374
  query_string_params = if query_string_params.any?
1375
1375
  query_string_params.to_h { |p| p.split "=", 2 }
1376
1376
  else
@@ -1382,11 +1382,11 @@ module Google
1382
1382
  uri: uri,
1383
1383
  body: body || "",
1384
1384
  params: query_string_params,
1385
- method_name: "trigger_backup",
1385
+ method_name: "fetch_backups_for_resource_type",
1386
1386
  options: options
1387
1387
  )
1388
1388
  operation = ::Gapic::Rest::TransportOperation.new response
1389
- result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
1389
+ result = ::Google::Cloud::BackupDR::V1beta::FetchBackupsForResourceTypeResponse.decode_json response.body, ignore_unknown_fields: true
1390
1390
  catch :response do
1391
1391
  yield result, operation if block_given?
1392
1392
  result
@@ -1394,23 +1394,23 @@ module Google
1394
1394
  end
1395
1395
 
1396
1396
  ##
1397
- # Baseline implementation for the get_data_source_reference REST call
1397
+ # Baseline implementation for the get_backup REST call
1398
1398
  #
1399
- # @param request_pb [::Google::Cloud::BackupDR::V1beta::GetDataSourceReferenceRequest]
1399
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::GetBackupRequest]
1400
1400
  # A request object representing the call parameters. Required.
1401
1401
  # @param options [::Gapic::CallOptions]
1402
1402
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1403
1403
  #
1404
1404
  # @yield [result, operation] Access the result along with the TransportOperation object
1405
- # @yieldparam result [::Google::Cloud::BackupDR::V1beta::DataSourceReference]
1405
+ # @yieldparam result [::Google::Cloud::BackupDR::V1beta::Backup]
1406
1406
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
1407
1407
  #
1408
- # @return [::Google::Cloud::BackupDR::V1beta::DataSourceReference]
1408
+ # @return [::Google::Cloud::BackupDR::V1beta::Backup]
1409
1409
  # A result object deserialized from the server's reply
1410
- def get_data_source_reference request_pb, options = nil
1410
+ def get_backup request_pb, options = nil
1411
1411
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
1412
1412
 
1413
- verb, uri, query_string_params, body = ServiceStub.transcode_get_data_source_reference_request request_pb
1413
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_backup_request request_pb
1414
1414
  query_string_params = if query_string_params.any?
1415
1415
  query_string_params.to_h { |p| p.split "=", 2 }
1416
1416
  else
@@ -1422,11 +1422,11 @@ module Google
1422
1422
  uri: uri,
1423
1423
  body: body || "",
1424
1424
  params: query_string_params,
1425
- method_name: "get_data_source_reference",
1425
+ method_name: "get_backup",
1426
1426
  options: options
1427
1427
  )
1428
1428
  operation = ::Gapic::Rest::TransportOperation.new response
1429
- result = ::Google::Cloud::BackupDR::V1beta::DataSourceReference.decode_json response.body, ignore_unknown_fields: true
1429
+ result = ::Google::Cloud::BackupDR::V1beta::Backup.decode_json response.body, ignore_unknown_fields: true
1430
1430
  catch :response do
1431
1431
  yield result, operation if block_given?
1432
1432
  result
@@ -1434,23 +1434,23 @@ module Google
1434
1434
  end
1435
1435
 
1436
1436
  ##
1437
- # Baseline implementation for the list_data_source_references REST call
1437
+ # Baseline implementation for the update_backup REST call
1438
1438
  #
1439
- # @param request_pb [::Google::Cloud::BackupDR::V1beta::ListDataSourceReferencesRequest]
1439
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::UpdateBackupRequest]
1440
1440
  # A request object representing the call parameters. Required.
1441
1441
  # @param options [::Gapic::CallOptions]
1442
1442
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1443
1443
  #
1444
1444
  # @yield [result, operation] Access the result along with the TransportOperation object
1445
- # @yieldparam result [::Google::Cloud::BackupDR::V1beta::ListDataSourceReferencesResponse]
1445
+ # @yieldparam result [::Google::Longrunning::Operation]
1446
1446
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
1447
1447
  #
1448
- # @return [::Google::Cloud::BackupDR::V1beta::ListDataSourceReferencesResponse]
1448
+ # @return [::Google::Longrunning::Operation]
1449
1449
  # A result object deserialized from the server's reply
1450
- def list_data_source_references request_pb, options = nil
1450
+ def update_backup request_pb, options = nil
1451
1451
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
1452
1452
 
1453
- verb, uri, query_string_params, body = ServiceStub.transcode_list_data_source_references_request request_pb
1453
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_backup_request request_pb
1454
1454
  query_string_params = if query_string_params.any?
1455
1455
  query_string_params.to_h { |p| p.split "=", 2 }
1456
1456
  else
@@ -1462,11 +1462,11 @@ module Google
1462
1462
  uri: uri,
1463
1463
  body: body || "",
1464
1464
  params: query_string_params,
1465
- method_name: "list_data_source_references",
1465
+ method_name: "update_backup",
1466
1466
  options: options
1467
1467
  )
1468
1468
  operation = ::Gapic::Rest::TransportOperation.new response
1469
- result = ::Google::Cloud::BackupDR::V1beta::ListDataSourceReferencesResponse.decode_json response.body, ignore_unknown_fields: true
1469
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
1470
1470
  catch :response do
1471
1471
  yield result, operation if block_given?
1472
1472
  result
@@ -1474,23 +1474,23 @@ module Google
1474
1474
  end
1475
1475
 
1476
1476
  ##
1477
- # Baseline implementation for the fetch_data_source_references_for_resource_type REST call
1477
+ # Baseline implementation for the delete_backup REST call
1478
1478
  #
1479
- # @param request_pb [::Google::Cloud::BackupDR::V1beta::FetchDataSourceReferencesForResourceTypeRequest]
1479
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::DeleteBackupRequest]
1480
1480
  # A request object representing the call parameters. Required.
1481
1481
  # @param options [::Gapic::CallOptions]
1482
1482
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1483
1483
  #
1484
1484
  # @yield [result, operation] Access the result along with the TransportOperation object
1485
- # @yieldparam result [::Google::Cloud::BackupDR::V1beta::FetchDataSourceReferencesForResourceTypeResponse]
1485
+ # @yieldparam result [::Google::Longrunning::Operation]
1486
1486
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
1487
1487
  #
1488
- # @return [::Google::Cloud::BackupDR::V1beta::FetchDataSourceReferencesForResourceTypeResponse]
1488
+ # @return [::Google::Longrunning::Operation]
1489
1489
  # A result object deserialized from the server's reply
1490
- def fetch_data_source_references_for_resource_type request_pb, options = nil
1490
+ def delete_backup request_pb, options = nil
1491
1491
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
1492
1492
 
1493
- verb, uri, query_string_params, body = ServiceStub.transcode_fetch_data_source_references_for_resource_type_request request_pb
1493
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_backup_request request_pb
1494
1494
  query_string_params = if query_string_params.any?
1495
1495
  query_string_params.to_h { |p| p.split "=", 2 }
1496
1496
  else
@@ -1502,11 +1502,11 @@ module Google
1502
1502
  uri: uri,
1503
1503
  body: body || "",
1504
1504
  params: query_string_params,
1505
- method_name: "fetch_data_source_references_for_resource_type",
1505
+ method_name: "delete_backup",
1506
1506
  options: options
1507
1507
  )
1508
1508
  operation = ::Gapic::Rest::TransportOperation.new response
1509
- result = ::Google::Cloud::BackupDR::V1beta::FetchDataSourceReferencesForResourceTypeResponse.decode_json response.body, ignore_unknown_fields: true
1509
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
1510
1510
  catch :response do
1511
1511
  yield result, operation if block_given?
1512
1512
  result
@@ -1514,9 +1514,9 @@ module Google
1514
1514
  end
1515
1515
 
1516
1516
  ##
1517
- # Baseline implementation for the initialize_service REST call
1517
+ # Baseline implementation for the restore_backup REST call
1518
1518
  #
1519
- # @param request_pb [::Google::Cloud::BackupDR::V1beta::InitializeServiceRequest]
1519
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::RestoreBackupRequest]
1520
1520
  # A request object representing the call parameters. Required.
1521
1521
  # @param options [::Gapic::CallOptions]
1522
1522
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
@@ -1527,10 +1527,10 @@ module Google
1527
1527
  #
1528
1528
  # @return [::Google::Longrunning::Operation]
1529
1529
  # A result object deserialized from the server's reply
1530
- def initialize_service request_pb, options = nil
1530
+ def restore_backup request_pb, options = nil
1531
1531
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
1532
1532
 
1533
- verb, uri, query_string_params, body = ServiceStub.transcode_initialize_service_request request_pb
1533
+ verb, uri, query_string_params, body = ServiceStub.transcode_restore_backup_request request_pb
1534
1534
  query_string_params = if query_string_params.any?
1535
1535
  query_string_params.to_h { |p| p.split "=", 2 }
1536
1536
  else
@@ -1542,7 +1542,7 @@ module Google
1542
1542
  uri: uri,
1543
1543
  body: body || "",
1544
1544
  params: query_string_params,
1545
- method_name: "initialize_service",
1545
+ method_name: "restore_backup",
1546
1546
  options: options
1547
1547
  )
1548
1548
  operation = ::Gapic::Rest::TransportOperation.new response
@@ -1554,9 +1554,9 @@ module Google
1554
1554
  end
1555
1555
 
1556
1556
  ##
1557
- # Baseline implementation for the create_auto_protection_policy REST call
1557
+ # Baseline implementation for the create_backup_plan REST call
1558
1558
  #
1559
- # @param request_pb [::Google::Cloud::BackupDR::V1beta::CreateAutoProtectionPolicyRequest]
1559
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::CreateBackupPlanRequest]
1560
1560
  # A request object representing the call parameters. Required.
1561
1561
  # @param options [::Gapic::CallOptions]
1562
1562
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
@@ -1567,10 +1567,10 @@ module Google
1567
1567
  #
1568
1568
  # @return [::Google::Longrunning::Operation]
1569
1569
  # A result object deserialized from the server's reply
1570
- def create_auto_protection_policy request_pb, options = nil
1570
+ def create_backup_plan request_pb, options = nil
1571
1571
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
1572
1572
 
1573
- verb, uri, query_string_params, body = ServiceStub.transcode_create_auto_protection_policy_request request_pb
1573
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_backup_plan_request request_pb
1574
1574
  query_string_params = if query_string_params.any?
1575
1575
  query_string_params.to_h { |p| p.split "=", 2 }
1576
1576
  else
@@ -1582,7 +1582,7 @@ module Google
1582
1582
  uri: uri,
1583
1583
  body: body || "",
1584
1584
  params: query_string_params,
1585
- method_name: "create_auto_protection_policy",
1585
+ method_name: "create_backup_plan",
1586
1586
  options: options
1587
1587
  )
1588
1588
  operation = ::Gapic::Rest::TransportOperation.new response
@@ -1594,23 +1594,23 @@ module Google
1594
1594
  end
1595
1595
 
1596
1596
  ##
1597
- # Baseline implementation for the list_auto_protection_policies REST call
1597
+ # Baseline implementation for the update_backup_plan REST call
1598
1598
  #
1599
- # @param request_pb [::Google::Cloud::BackupDR::V1beta::ListAutoProtectionPoliciesRequest]
1599
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::UpdateBackupPlanRequest]
1600
1600
  # A request object representing the call parameters. Required.
1601
1601
  # @param options [::Gapic::CallOptions]
1602
1602
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1603
1603
  #
1604
1604
  # @yield [result, operation] Access the result along with the TransportOperation object
1605
- # @yieldparam result [::Google::Cloud::BackupDR::V1beta::ListAutoProtectionPoliciesResponse]
1605
+ # @yieldparam result [::Google::Longrunning::Operation]
1606
1606
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
1607
1607
  #
1608
- # @return [::Google::Cloud::BackupDR::V1beta::ListAutoProtectionPoliciesResponse]
1608
+ # @return [::Google::Longrunning::Operation]
1609
1609
  # A result object deserialized from the server's reply
1610
- def list_auto_protection_policies request_pb, options = nil
1610
+ def update_backup_plan request_pb, options = nil
1611
1611
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
1612
1612
 
1613
- verb, uri, query_string_params, body = ServiceStub.transcode_list_auto_protection_policies_request request_pb
1613
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_backup_plan_request request_pb
1614
1614
  query_string_params = if query_string_params.any?
1615
1615
  query_string_params.to_h { |p| p.split "=", 2 }
1616
1616
  else
@@ -1622,11 +1622,11 @@ module Google
1622
1622
  uri: uri,
1623
1623
  body: body || "",
1624
1624
  params: query_string_params,
1625
- method_name: "list_auto_protection_policies",
1625
+ method_name: "update_backup_plan",
1626
1626
  options: options
1627
1627
  )
1628
1628
  operation = ::Gapic::Rest::TransportOperation.new response
1629
- result = ::Google::Cloud::BackupDR::V1beta::ListAutoProtectionPoliciesResponse.decode_json response.body, ignore_unknown_fields: true
1629
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
1630
1630
  catch :response do
1631
1631
  yield result, operation if block_given?
1632
1632
  result
@@ -1634,23 +1634,23 @@ module Google
1634
1634
  end
1635
1635
 
1636
1636
  ##
1637
- # Baseline implementation for the get_auto_protection_policy REST call
1637
+ # Baseline implementation for the get_backup_plan REST call
1638
1638
  #
1639
- # @param request_pb [::Google::Cloud::BackupDR::V1beta::GetAutoProtectionPolicyRequest]
1639
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::GetBackupPlanRequest]
1640
1640
  # A request object representing the call parameters. Required.
1641
1641
  # @param options [::Gapic::CallOptions]
1642
1642
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1643
1643
  #
1644
1644
  # @yield [result, operation] Access the result along with the TransportOperation object
1645
- # @yieldparam result [::Google::Cloud::BackupDR::V1beta::AutoProtectionPolicy]
1645
+ # @yieldparam result [::Google::Cloud::BackupDR::V1beta::BackupPlan]
1646
1646
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
1647
1647
  #
1648
- # @return [::Google::Cloud::BackupDR::V1beta::AutoProtectionPolicy]
1648
+ # @return [::Google::Cloud::BackupDR::V1beta::BackupPlan]
1649
1649
  # A result object deserialized from the server's reply
1650
- def get_auto_protection_policy request_pb, options = nil
1650
+ def get_backup_plan request_pb, options = nil
1651
1651
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
1652
1652
 
1653
- verb, uri, query_string_params, body = ServiceStub.transcode_get_auto_protection_policy_request request_pb
1653
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_backup_plan_request request_pb
1654
1654
  query_string_params = if query_string_params.any?
1655
1655
  query_string_params.to_h { |p| p.split "=", 2 }
1656
1656
  else
@@ -1662,11 +1662,11 @@ module Google
1662
1662
  uri: uri,
1663
1663
  body: body || "",
1664
1664
  params: query_string_params,
1665
- method_name: "get_auto_protection_policy",
1665
+ method_name: "get_backup_plan",
1666
1666
  options: options
1667
1667
  )
1668
1668
  operation = ::Gapic::Rest::TransportOperation.new response
1669
- result = ::Google::Cloud::BackupDR::V1beta::AutoProtectionPolicy.decode_json response.body, ignore_unknown_fields: true
1669
+ result = ::Google::Cloud::BackupDR::V1beta::BackupPlan.decode_json response.body, ignore_unknown_fields: true
1670
1670
  catch :response do
1671
1671
  yield result, operation if block_given?
1672
1672
  result
@@ -1674,23 +1674,23 @@ module Google
1674
1674
  end
1675
1675
 
1676
1676
  ##
1677
- # Baseline implementation for the update_auto_protection_policy REST call
1677
+ # Baseline implementation for the list_backup_plans REST call
1678
1678
  #
1679
- # @param request_pb [::Google::Cloud::BackupDR::V1beta::UpdateAutoProtectionPolicyRequest]
1679
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::ListBackupPlansRequest]
1680
1680
  # A request object representing the call parameters. Required.
1681
1681
  # @param options [::Gapic::CallOptions]
1682
1682
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1683
1683
  #
1684
1684
  # @yield [result, operation] Access the result along with the TransportOperation object
1685
- # @yieldparam result [::Google::Longrunning::Operation]
1685
+ # @yieldparam result [::Google::Cloud::BackupDR::V1beta::ListBackupPlansResponse]
1686
1686
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
1687
1687
  #
1688
- # @return [::Google::Longrunning::Operation]
1688
+ # @return [::Google::Cloud::BackupDR::V1beta::ListBackupPlansResponse]
1689
1689
  # A result object deserialized from the server's reply
1690
- def update_auto_protection_policy request_pb, options = nil
1690
+ def list_backup_plans request_pb, options = nil
1691
1691
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
1692
1692
 
1693
- verb, uri, query_string_params, body = ServiceStub.transcode_update_auto_protection_policy_request request_pb
1693
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_backup_plans_request request_pb
1694
1694
  query_string_params = if query_string_params.any?
1695
1695
  query_string_params.to_h { |p| p.split "=", 2 }
1696
1696
  else
@@ -1702,11 +1702,11 @@ module Google
1702
1702
  uri: uri,
1703
1703
  body: body || "",
1704
1704
  params: query_string_params,
1705
- method_name: "update_auto_protection_policy",
1705
+ method_name: "list_backup_plans",
1706
1706
  options: options
1707
1707
  )
1708
1708
  operation = ::Gapic::Rest::TransportOperation.new response
1709
- result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
1709
+ result = ::Google::Cloud::BackupDR::V1beta::ListBackupPlansResponse.decode_json response.body, ignore_unknown_fields: true
1710
1710
  catch :response do
1711
1711
  yield result, operation if block_given?
1712
1712
  result
@@ -1714,9 +1714,9 @@ module Google
1714
1714
  end
1715
1715
 
1716
1716
  ##
1717
- # Baseline implementation for the delete_auto_protection_policy REST call
1717
+ # Baseline implementation for the delete_backup_plan REST call
1718
1718
  #
1719
- # @param request_pb [::Google::Cloud::BackupDR::V1beta::DeleteAutoProtectionPolicyRequest]
1719
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::DeleteBackupPlanRequest]
1720
1720
  # A request object representing the call parameters. Required.
1721
1721
  # @param options [::Gapic::CallOptions]
1722
1722
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
@@ -1727,10 +1727,10 @@ module Google
1727
1727
  #
1728
1728
  # @return [::Google::Longrunning::Operation]
1729
1729
  # A result object deserialized from the server's reply
1730
- def delete_auto_protection_policy request_pb, options = nil
1730
+ def delete_backup_plan request_pb, options = nil
1731
1731
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
1732
1732
 
1733
- verb, uri, query_string_params, body = ServiceStub.transcode_delete_auto_protection_policy_request request_pb
1733
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_backup_plan_request request_pb
1734
1734
  query_string_params = if query_string_params.any?
1735
1735
  query_string_params.to_h { |p| p.split "=", 2 }
1736
1736
  else
@@ -1742,7 +1742,7 @@ module Google
1742
1742
  uri: uri,
1743
1743
  body: body || "",
1744
1744
  params: query_string_params,
1745
- method_name: "delete_auto_protection_policy",
1745
+ method_name: "delete_backup_plan",
1746
1746
  options: options
1747
1747
  )
1748
1748
  operation = ::Gapic::Rest::TransportOperation.new response
@@ -1754,23 +1754,23 @@ module Google
1754
1754
  end
1755
1755
 
1756
1756
  ##
1757
- # Baseline implementation for the create_auto_protection_policy_binding REST call
1757
+ # Baseline implementation for the get_backup_plan_revision REST call
1758
1758
  #
1759
- # @param request_pb [::Google::Cloud::BackupDR::V1beta::CreateAutoProtectionPolicyBindingRequest]
1759
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::GetBackupPlanRevisionRequest]
1760
1760
  # A request object representing the call parameters. Required.
1761
1761
  # @param options [::Gapic::CallOptions]
1762
1762
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1763
1763
  #
1764
1764
  # @yield [result, operation] Access the result along with the TransportOperation object
1765
- # @yieldparam result [::Google::Longrunning::Operation]
1765
+ # @yieldparam result [::Google::Cloud::BackupDR::V1beta::BackupPlanRevision]
1766
1766
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
1767
1767
  #
1768
- # @return [::Google::Longrunning::Operation]
1768
+ # @return [::Google::Cloud::BackupDR::V1beta::BackupPlanRevision]
1769
1769
  # A result object deserialized from the server's reply
1770
- def create_auto_protection_policy_binding request_pb, options = nil
1770
+ def get_backup_plan_revision request_pb, options = nil
1771
1771
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
1772
1772
 
1773
- verb, uri, query_string_params, body = ServiceStub.transcode_create_auto_protection_policy_binding_request request_pb
1773
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_backup_plan_revision_request request_pb
1774
1774
  query_string_params = if query_string_params.any?
1775
1775
  query_string_params.to_h { |p| p.split "=", 2 }
1776
1776
  else
@@ -1782,11 +1782,11 @@ module Google
1782
1782
  uri: uri,
1783
1783
  body: body || "",
1784
1784
  params: query_string_params,
1785
- method_name: "create_auto_protection_policy_binding",
1785
+ method_name: "get_backup_plan_revision",
1786
1786
  options: options
1787
1787
  )
1788
1788
  operation = ::Gapic::Rest::TransportOperation.new response
1789
- result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
1789
+ result = ::Google::Cloud::BackupDR::V1beta::BackupPlanRevision.decode_json response.body, ignore_unknown_fields: true
1790
1790
  catch :response do
1791
1791
  yield result, operation if block_given?
1792
1792
  result
@@ -1794,23 +1794,23 @@ module Google
1794
1794
  end
1795
1795
 
1796
1796
  ##
1797
- # Baseline implementation for the get_auto_protection_policy_binding REST call
1797
+ # Baseline implementation for the list_backup_plan_revisions REST call
1798
1798
  #
1799
- # @param request_pb [::Google::Cloud::BackupDR::V1beta::GetAutoProtectionPolicyBindingRequest]
1799
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::ListBackupPlanRevisionsRequest]
1800
1800
  # A request object representing the call parameters. Required.
1801
1801
  # @param options [::Gapic::CallOptions]
1802
1802
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1803
1803
  #
1804
1804
  # @yield [result, operation] Access the result along with the TransportOperation object
1805
- # @yieldparam result [::Google::Cloud::BackupDR::V1beta::AutoProtectionPolicyBinding]
1805
+ # @yieldparam result [::Google::Cloud::BackupDR::V1beta::ListBackupPlanRevisionsResponse]
1806
1806
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
1807
1807
  #
1808
- # @return [::Google::Cloud::BackupDR::V1beta::AutoProtectionPolicyBinding]
1808
+ # @return [::Google::Cloud::BackupDR::V1beta::ListBackupPlanRevisionsResponse]
1809
1809
  # A result object deserialized from the server's reply
1810
- def get_auto_protection_policy_binding request_pb, options = nil
1810
+ def list_backup_plan_revisions request_pb, options = nil
1811
1811
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
1812
1812
 
1813
- verb, uri, query_string_params, body = ServiceStub.transcode_get_auto_protection_policy_binding_request request_pb
1813
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_backup_plan_revisions_request request_pb
1814
1814
  query_string_params = if query_string_params.any?
1815
1815
  query_string_params.to_h { |p| p.split "=", 2 }
1816
1816
  else
@@ -1822,11 +1822,11 @@ module Google
1822
1822
  uri: uri,
1823
1823
  body: body || "",
1824
1824
  params: query_string_params,
1825
- method_name: "get_auto_protection_policy_binding",
1825
+ method_name: "list_backup_plan_revisions",
1826
1826
  options: options
1827
1827
  )
1828
1828
  operation = ::Gapic::Rest::TransportOperation.new response
1829
- result = ::Google::Cloud::BackupDR::V1beta::AutoProtectionPolicyBinding.decode_json response.body, ignore_unknown_fields: true
1829
+ result = ::Google::Cloud::BackupDR::V1beta::ListBackupPlanRevisionsResponse.decode_json response.body, ignore_unknown_fields: true
1830
1830
  catch :response do
1831
1831
  yield result, operation if block_given?
1832
1832
  result
@@ -1834,23 +1834,23 @@ module Google
1834
1834
  end
1835
1835
 
1836
1836
  ##
1837
- # Baseline implementation for the list_auto_protection_policy_bindings REST call
1837
+ # Baseline implementation for the create_backup_plan_association REST call
1838
1838
  #
1839
- # @param request_pb [::Google::Cloud::BackupDR::V1beta::ListAutoProtectionPolicyBindingsRequest]
1839
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::CreateBackupPlanAssociationRequest]
1840
1840
  # A request object representing the call parameters. Required.
1841
1841
  # @param options [::Gapic::CallOptions]
1842
1842
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1843
1843
  #
1844
1844
  # @yield [result, operation] Access the result along with the TransportOperation object
1845
- # @yieldparam result [::Google::Cloud::BackupDR::V1beta::ListAutoProtectionPolicyBindingsResponse]
1845
+ # @yieldparam result [::Google::Longrunning::Operation]
1846
1846
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
1847
1847
  #
1848
- # @return [::Google::Cloud::BackupDR::V1beta::ListAutoProtectionPolicyBindingsResponse]
1848
+ # @return [::Google::Longrunning::Operation]
1849
1849
  # A result object deserialized from the server's reply
1850
- def list_auto_protection_policy_bindings request_pb, options = nil
1850
+ def create_backup_plan_association request_pb, options = nil
1851
1851
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
1852
1852
 
1853
- verb, uri, query_string_params, body = ServiceStub.transcode_list_auto_protection_policy_bindings_request request_pb
1853
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_backup_plan_association_request request_pb
1854
1854
  query_string_params = if query_string_params.any?
1855
1855
  query_string_params.to_h { |p| p.split "=", 2 }
1856
1856
  else
@@ -1862,11 +1862,11 @@ module Google
1862
1862
  uri: uri,
1863
1863
  body: body || "",
1864
1864
  params: query_string_params,
1865
- method_name: "list_auto_protection_policy_bindings",
1865
+ method_name: "create_backup_plan_association",
1866
1866
  options: options
1867
1867
  )
1868
1868
  operation = ::Gapic::Rest::TransportOperation.new response
1869
- result = ::Google::Cloud::BackupDR::V1beta::ListAutoProtectionPolicyBindingsResponse.decode_json response.body, ignore_unknown_fields: true
1869
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
1870
1870
  catch :response do
1871
1871
  yield result, operation if block_given?
1872
1872
  result
@@ -1874,23 +1874,23 @@ module Google
1874
1874
  end
1875
1875
 
1876
1876
  ##
1877
- # Baseline implementation for the list_applied_auto_protection_policies REST call
1877
+ # Baseline implementation for the update_backup_plan_association REST call
1878
1878
  #
1879
- # @param request_pb [::Google::Cloud::BackupDR::V1beta::ListAppliedAutoProtectionPoliciesRequest]
1879
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::UpdateBackupPlanAssociationRequest]
1880
1880
  # A request object representing the call parameters. Required.
1881
1881
  # @param options [::Gapic::CallOptions]
1882
1882
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1883
1883
  #
1884
1884
  # @yield [result, operation] Access the result along with the TransportOperation object
1885
- # @yieldparam result [::Google::Cloud::BackupDR::V1beta::ListAppliedAutoProtectionPoliciesResponse]
1885
+ # @yieldparam result [::Google::Longrunning::Operation]
1886
1886
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
1887
1887
  #
1888
- # @return [::Google::Cloud::BackupDR::V1beta::ListAppliedAutoProtectionPoliciesResponse]
1888
+ # @return [::Google::Longrunning::Operation]
1889
1889
  # A result object deserialized from the server's reply
1890
- def list_applied_auto_protection_policies request_pb, options = nil
1890
+ def update_backup_plan_association request_pb, options = nil
1891
1891
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
1892
1892
 
1893
- verb, uri, query_string_params, body = ServiceStub.transcode_list_applied_auto_protection_policies_request request_pb
1893
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_backup_plan_association_request request_pb
1894
1894
  query_string_params = if query_string_params.any?
1895
1895
  query_string_params.to_h { |p| p.split "=", 2 }
1896
1896
  else
@@ -1902,11 +1902,11 @@ module Google
1902
1902
  uri: uri,
1903
1903
  body: body || "",
1904
1904
  params: query_string_params,
1905
- method_name: "list_applied_auto_protection_policies",
1905
+ method_name: "update_backup_plan_association",
1906
1906
  options: options
1907
1907
  )
1908
1908
  operation = ::Gapic::Rest::TransportOperation.new response
1909
- result = ::Google::Cloud::BackupDR::V1beta::ListAppliedAutoProtectionPoliciesResponse.decode_json response.body, ignore_unknown_fields: true
1909
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
1910
1910
  catch :response do
1911
1911
  yield result, operation if block_given?
1912
1912
  result
@@ -1914,23 +1914,23 @@ module Google
1914
1914
  end
1915
1915
 
1916
1916
  ##
1917
- # Baseline implementation for the initiate_delete_auto_protection_policy_binding REST call
1917
+ # Baseline implementation for the get_backup_plan_association REST call
1918
1918
  #
1919
- # @param request_pb [::Google::Cloud::BackupDR::V1beta::InitiateDeleteAutoProtectionPolicyBindingRequest]
1919
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::GetBackupPlanAssociationRequest]
1920
1920
  # A request object representing the call parameters. Required.
1921
1921
  # @param options [::Gapic::CallOptions]
1922
1922
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1923
1923
  #
1924
1924
  # @yield [result, operation] Access the result along with the TransportOperation object
1925
- # @yieldparam result [::Google::Longrunning::Operation]
1925
+ # @yieldparam result [::Google::Cloud::BackupDR::V1beta::BackupPlanAssociation]
1926
1926
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
1927
1927
  #
1928
- # @return [::Google::Longrunning::Operation]
1928
+ # @return [::Google::Cloud::BackupDR::V1beta::BackupPlanAssociation]
1929
1929
  # A result object deserialized from the server's reply
1930
- def initiate_delete_auto_protection_policy_binding request_pb, options = nil
1930
+ def get_backup_plan_association request_pb, options = nil
1931
1931
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
1932
1932
 
1933
- verb, uri, query_string_params, body = ServiceStub.transcode_initiate_delete_auto_protection_policy_binding_request request_pb
1933
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_backup_plan_association_request request_pb
1934
1934
  query_string_params = if query_string_params.any?
1935
1935
  query_string_params.to_h { |p| p.split "=", 2 }
1936
1936
  else
@@ -1942,11 +1942,11 @@ module Google
1942
1942
  uri: uri,
1943
1943
  body: body || "",
1944
1944
  params: query_string_params,
1945
- method_name: "initiate_delete_auto_protection_policy_binding",
1945
+ method_name: "get_backup_plan_association",
1946
1946
  options: options
1947
1947
  )
1948
1948
  operation = ::Gapic::Rest::TransportOperation.new response
1949
- result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
1949
+ result = ::Google::Cloud::BackupDR::V1beta::BackupPlanAssociation.decode_json response.body, ignore_unknown_fields: true
1950
1950
  catch :response do
1951
1951
  yield result, operation if block_given?
1952
1952
  result
@@ -1954,9 +1954,729 @@ module Google
1954
1954
  end
1955
1955
 
1956
1956
  ##
1957
- # Baseline implementation for the get_binding_matching_resource REST call
1957
+ # Baseline implementation for the list_backup_plan_associations REST call
1958
1958
  #
1959
- # @param request_pb [::Google::Cloud::BackupDR::V1beta::GetBindingMatchingResourceRequest]
1959
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::ListBackupPlanAssociationsRequest]
1960
+ # A request object representing the call parameters. Required.
1961
+ # @param options [::Gapic::CallOptions]
1962
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1963
+ #
1964
+ # @yield [result, operation] Access the result along with the TransportOperation object
1965
+ # @yieldparam result [::Google::Cloud::BackupDR::V1beta::ListBackupPlanAssociationsResponse]
1966
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1967
+ #
1968
+ # @return [::Google::Cloud::BackupDR::V1beta::ListBackupPlanAssociationsResponse]
1969
+ # A result object deserialized from the server's reply
1970
+ def list_backup_plan_associations request_pb, options = nil
1971
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1972
+
1973
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_backup_plan_associations_request request_pb
1974
+ query_string_params = if query_string_params.any?
1975
+ query_string_params.to_h { |p| p.split "=", 2 }
1976
+ else
1977
+ {}
1978
+ end
1979
+
1980
+ response = @client_stub.make_http_request(
1981
+ verb,
1982
+ uri: uri,
1983
+ body: body || "",
1984
+ params: query_string_params,
1985
+ method_name: "list_backup_plan_associations",
1986
+ options: options
1987
+ )
1988
+ operation = ::Gapic::Rest::TransportOperation.new response
1989
+ result = ::Google::Cloud::BackupDR::V1beta::ListBackupPlanAssociationsResponse.decode_json response.body, ignore_unknown_fields: true
1990
+ catch :response do
1991
+ yield result, operation if block_given?
1992
+ result
1993
+ end
1994
+ end
1995
+
1996
+ ##
1997
+ # Baseline implementation for the fetch_backup_plan_associations_for_resource_type REST call
1998
+ #
1999
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::FetchBackupPlanAssociationsForResourceTypeRequest]
2000
+ # A request object representing the call parameters. Required.
2001
+ # @param options [::Gapic::CallOptions]
2002
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2003
+ #
2004
+ # @yield [result, operation] Access the result along with the TransportOperation object
2005
+ # @yieldparam result [::Google::Cloud::BackupDR::V1beta::FetchBackupPlanAssociationsForResourceTypeResponse]
2006
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2007
+ #
2008
+ # @return [::Google::Cloud::BackupDR::V1beta::FetchBackupPlanAssociationsForResourceTypeResponse]
2009
+ # A result object deserialized from the server's reply
2010
+ def fetch_backup_plan_associations_for_resource_type request_pb, options = nil
2011
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
2012
+
2013
+ verb, uri, query_string_params, body = ServiceStub.transcode_fetch_backup_plan_associations_for_resource_type_request request_pb
2014
+ query_string_params = if query_string_params.any?
2015
+ query_string_params.to_h { |p| p.split "=", 2 }
2016
+ else
2017
+ {}
2018
+ end
2019
+
2020
+ response = @client_stub.make_http_request(
2021
+ verb,
2022
+ uri: uri,
2023
+ body: body || "",
2024
+ params: query_string_params,
2025
+ method_name: "fetch_backup_plan_associations_for_resource_type",
2026
+ options: options
2027
+ )
2028
+ operation = ::Gapic::Rest::TransportOperation.new response
2029
+ result = ::Google::Cloud::BackupDR::V1beta::FetchBackupPlanAssociationsForResourceTypeResponse.decode_json response.body, ignore_unknown_fields: true
2030
+ catch :response do
2031
+ yield result, operation if block_given?
2032
+ result
2033
+ end
2034
+ end
2035
+
2036
+ ##
2037
+ # Baseline implementation for the delete_backup_plan_association REST call
2038
+ #
2039
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::DeleteBackupPlanAssociationRequest]
2040
+ # A request object representing the call parameters. Required.
2041
+ # @param options [::Gapic::CallOptions]
2042
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2043
+ #
2044
+ # @yield [result, operation] Access the result along with the TransportOperation object
2045
+ # @yieldparam result [::Google::Longrunning::Operation]
2046
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2047
+ #
2048
+ # @return [::Google::Longrunning::Operation]
2049
+ # A result object deserialized from the server's reply
2050
+ def delete_backup_plan_association request_pb, options = nil
2051
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
2052
+
2053
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_backup_plan_association_request request_pb
2054
+ query_string_params = if query_string_params.any?
2055
+ query_string_params.to_h { |p| p.split "=", 2 }
2056
+ else
2057
+ {}
2058
+ end
2059
+
2060
+ response = @client_stub.make_http_request(
2061
+ verb,
2062
+ uri: uri,
2063
+ body: body || "",
2064
+ params: query_string_params,
2065
+ method_name: "delete_backup_plan_association",
2066
+ options: options
2067
+ )
2068
+ operation = ::Gapic::Rest::TransportOperation.new response
2069
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
2070
+ catch :response do
2071
+ yield result, operation if block_given?
2072
+ result
2073
+ end
2074
+ end
2075
+
2076
+ ##
2077
+ # Baseline implementation for the trigger_backup REST call
2078
+ #
2079
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::TriggerBackupRequest]
2080
+ # A request object representing the call parameters. Required.
2081
+ # @param options [::Gapic::CallOptions]
2082
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2083
+ #
2084
+ # @yield [result, operation] Access the result along with the TransportOperation object
2085
+ # @yieldparam result [::Google::Longrunning::Operation]
2086
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2087
+ #
2088
+ # @return [::Google::Longrunning::Operation]
2089
+ # A result object deserialized from the server's reply
2090
+ def trigger_backup request_pb, options = nil
2091
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
2092
+
2093
+ verb, uri, query_string_params, body = ServiceStub.transcode_trigger_backup_request request_pb
2094
+ query_string_params = if query_string_params.any?
2095
+ query_string_params.to_h { |p| p.split "=", 2 }
2096
+ else
2097
+ {}
2098
+ end
2099
+
2100
+ response = @client_stub.make_http_request(
2101
+ verb,
2102
+ uri: uri,
2103
+ body: body || "",
2104
+ params: query_string_params,
2105
+ method_name: "trigger_backup",
2106
+ options: options
2107
+ )
2108
+ operation = ::Gapic::Rest::TransportOperation.new response
2109
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
2110
+ catch :response do
2111
+ yield result, operation if block_given?
2112
+ result
2113
+ end
2114
+ end
2115
+
2116
+ ##
2117
+ # Baseline implementation for the get_data_source_reference REST call
2118
+ #
2119
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::GetDataSourceReferenceRequest]
2120
+ # A request object representing the call parameters. Required.
2121
+ # @param options [::Gapic::CallOptions]
2122
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2123
+ #
2124
+ # @yield [result, operation] Access the result along with the TransportOperation object
2125
+ # @yieldparam result [::Google::Cloud::BackupDR::V1beta::DataSourceReference]
2126
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2127
+ #
2128
+ # @return [::Google::Cloud::BackupDR::V1beta::DataSourceReference]
2129
+ # A result object deserialized from the server's reply
2130
+ def get_data_source_reference request_pb, options = nil
2131
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
2132
+
2133
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_data_source_reference_request request_pb
2134
+ query_string_params = if query_string_params.any?
2135
+ query_string_params.to_h { |p| p.split "=", 2 }
2136
+ else
2137
+ {}
2138
+ end
2139
+
2140
+ response = @client_stub.make_http_request(
2141
+ verb,
2142
+ uri: uri,
2143
+ body: body || "",
2144
+ params: query_string_params,
2145
+ method_name: "get_data_source_reference",
2146
+ options: options
2147
+ )
2148
+ operation = ::Gapic::Rest::TransportOperation.new response
2149
+ result = ::Google::Cloud::BackupDR::V1beta::DataSourceReference.decode_json response.body, ignore_unknown_fields: true
2150
+ catch :response do
2151
+ yield result, operation if block_given?
2152
+ result
2153
+ end
2154
+ end
2155
+
2156
+ ##
2157
+ # Baseline implementation for the list_data_source_references REST call
2158
+ #
2159
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::ListDataSourceReferencesRequest]
2160
+ # A request object representing the call parameters. Required.
2161
+ # @param options [::Gapic::CallOptions]
2162
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2163
+ #
2164
+ # @yield [result, operation] Access the result along with the TransportOperation object
2165
+ # @yieldparam result [::Google::Cloud::BackupDR::V1beta::ListDataSourceReferencesResponse]
2166
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2167
+ #
2168
+ # @return [::Google::Cloud::BackupDR::V1beta::ListDataSourceReferencesResponse]
2169
+ # A result object deserialized from the server's reply
2170
+ def list_data_source_references request_pb, options = nil
2171
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
2172
+
2173
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_data_source_references_request request_pb
2174
+ query_string_params = if query_string_params.any?
2175
+ query_string_params.to_h { |p| p.split "=", 2 }
2176
+ else
2177
+ {}
2178
+ end
2179
+
2180
+ response = @client_stub.make_http_request(
2181
+ verb,
2182
+ uri: uri,
2183
+ body: body || "",
2184
+ params: query_string_params,
2185
+ method_name: "list_data_source_references",
2186
+ options: options
2187
+ )
2188
+ operation = ::Gapic::Rest::TransportOperation.new response
2189
+ result = ::Google::Cloud::BackupDR::V1beta::ListDataSourceReferencesResponse.decode_json response.body, ignore_unknown_fields: true
2190
+ catch :response do
2191
+ yield result, operation if block_given?
2192
+ result
2193
+ end
2194
+ end
2195
+
2196
+ ##
2197
+ # Baseline implementation for the fetch_data_source_references_for_resource_type REST call
2198
+ #
2199
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::FetchDataSourceReferencesForResourceTypeRequest]
2200
+ # A request object representing the call parameters. Required.
2201
+ # @param options [::Gapic::CallOptions]
2202
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2203
+ #
2204
+ # @yield [result, operation] Access the result along with the TransportOperation object
2205
+ # @yieldparam result [::Google::Cloud::BackupDR::V1beta::FetchDataSourceReferencesForResourceTypeResponse]
2206
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2207
+ #
2208
+ # @return [::Google::Cloud::BackupDR::V1beta::FetchDataSourceReferencesForResourceTypeResponse]
2209
+ # A result object deserialized from the server's reply
2210
+ def fetch_data_source_references_for_resource_type request_pb, options = nil
2211
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
2212
+
2213
+ verb, uri, query_string_params, body = ServiceStub.transcode_fetch_data_source_references_for_resource_type_request request_pb
2214
+ query_string_params = if query_string_params.any?
2215
+ query_string_params.to_h { |p| p.split "=", 2 }
2216
+ else
2217
+ {}
2218
+ end
2219
+
2220
+ response = @client_stub.make_http_request(
2221
+ verb,
2222
+ uri: uri,
2223
+ body: body || "",
2224
+ params: query_string_params,
2225
+ method_name: "fetch_data_source_references_for_resource_type",
2226
+ options: options
2227
+ )
2228
+ operation = ::Gapic::Rest::TransportOperation.new response
2229
+ result = ::Google::Cloud::BackupDR::V1beta::FetchDataSourceReferencesForResourceTypeResponse.decode_json response.body, ignore_unknown_fields: true
2230
+ catch :response do
2231
+ yield result, operation if block_given?
2232
+ result
2233
+ end
2234
+ end
2235
+
2236
+ ##
2237
+ # Baseline implementation for the initialize_service REST call
2238
+ #
2239
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::InitializeServiceRequest]
2240
+ # A request object representing the call parameters. Required.
2241
+ # @param options [::Gapic::CallOptions]
2242
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2243
+ #
2244
+ # @yield [result, operation] Access the result along with the TransportOperation object
2245
+ # @yieldparam result [::Google::Longrunning::Operation]
2246
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2247
+ #
2248
+ # @return [::Google::Longrunning::Operation]
2249
+ # A result object deserialized from the server's reply
2250
+ def initialize_service request_pb, options = nil
2251
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
2252
+
2253
+ verb, uri, query_string_params, body = ServiceStub.transcode_initialize_service_request request_pb
2254
+ query_string_params = if query_string_params.any?
2255
+ query_string_params.to_h { |p| p.split "=", 2 }
2256
+ else
2257
+ {}
2258
+ end
2259
+
2260
+ response = @client_stub.make_http_request(
2261
+ verb,
2262
+ uri: uri,
2263
+ body: body || "",
2264
+ params: query_string_params,
2265
+ method_name: "initialize_service",
2266
+ options: options
2267
+ )
2268
+ operation = ::Gapic::Rest::TransportOperation.new response
2269
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
2270
+ catch :response do
2271
+ yield result, operation if block_given?
2272
+ result
2273
+ end
2274
+ end
2275
+
2276
+ ##
2277
+ # Baseline implementation for the create_auto_protection_policy REST call
2278
+ #
2279
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::CreateAutoProtectionPolicyRequest]
2280
+ # A request object representing the call parameters. Required.
2281
+ # @param options [::Gapic::CallOptions]
2282
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2283
+ #
2284
+ # @yield [result, operation] Access the result along with the TransportOperation object
2285
+ # @yieldparam result [::Google::Longrunning::Operation]
2286
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2287
+ #
2288
+ # @return [::Google::Longrunning::Operation]
2289
+ # A result object deserialized from the server's reply
2290
+ def create_auto_protection_policy request_pb, options = nil
2291
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
2292
+
2293
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_auto_protection_policy_request request_pb
2294
+ query_string_params = if query_string_params.any?
2295
+ query_string_params.to_h { |p| p.split "=", 2 }
2296
+ else
2297
+ {}
2298
+ end
2299
+
2300
+ response = @client_stub.make_http_request(
2301
+ verb,
2302
+ uri: uri,
2303
+ body: body || "",
2304
+ params: query_string_params,
2305
+ method_name: "create_auto_protection_policy",
2306
+ options: options
2307
+ )
2308
+ operation = ::Gapic::Rest::TransportOperation.new response
2309
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
2310
+ catch :response do
2311
+ yield result, operation if block_given?
2312
+ result
2313
+ end
2314
+ end
2315
+
2316
+ ##
2317
+ # Baseline implementation for the list_auto_protection_policies REST call
2318
+ #
2319
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::ListAutoProtectionPoliciesRequest]
2320
+ # A request object representing the call parameters. Required.
2321
+ # @param options [::Gapic::CallOptions]
2322
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2323
+ #
2324
+ # @yield [result, operation] Access the result along with the TransportOperation object
2325
+ # @yieldparam result [::Google::Cloud::BackupDR::V1beta::ListAutoProtectionPoliciesResponse]
2326
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2327
+ #
2328
+ # @return [::Google::Cloud::BackupDR::V1beta::ListAutoProtectionPoliciesResponse]
2329
+ # A result object deserialized from the server's reply
2330
+ def list_auto_protection_policies request_pb, options = nil
2331
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
2332
+
2333
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_auto_protection_policies_request request_pb
2334
+ query_string_params = if query_string_params.any?
2335
+ query_string_params.to_h { |p| p.split "=", 2 }
2336
+ else
2337
+ {}
2338
+ end
2339
+
2340
+ response = @client_stub.make_http_request(
2341
+ verb,
2342
+ uri: uri,
2343
+ body: body || "",
2344
+ params: query_string_params,
2345
+ method_name: "list_auto_protection_policies",
2346
+ options: options
2347
+ )
2348
+ operation = ::Gapic::Rest::TransportOperation.new response
2349
+ result = ::Google::Cloud::BackupDR::V1beta::ListAutoProtectionPoliciesResponse.decode_json response.body, ignore_unknown_fields: true
2350
+ catch :response do
2351
+ yield result, operation if block_given?
2352
+ result
2353
+ end
2354
+ end
2355
+
2356
+ ##
2357
+ # Baseline implementation for the get_auto_protection_policy REST call
2358
+ #
2359
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::GetAutoProtectionPolicyRequest]
2360
+ # A request object representing the call parameters. Required.
2361
+ # @param options [::Gapic::CallOptions]
2362
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2363
+ #
2364
+ # @yield [result, operation] Access the result along with the TransportOperation object
2365
+ # @yieldparam result [::Google::Cloud::BackupDR::V1beta::AutoProtectionPolicy]
2366
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2367
+ #
2368
+ # @return [::Google::Cloud::BackupDR::V1beta::AutoProtectionPolicy]
2369
+ # A result object deserialized from the server's reply
2370
+ def get_auto_protection_policy request_pb, options = nil
2371
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
2372
+
2373
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_auto_protection_policy_request request_pb
2374
+ query_string_params = if query_string_params.any?
2375
+ query_string_params.to_h { |p| p.split "=", 2 }
2376
+ else
2377
+ {}
2378
+ end
2379
+
2380
+ response = @client_stub.make_http_request(
2381
+ verb,
2382
+ uri: uri,
2383
+ body: body || "",
2384
+ params: query_string_params,
2385
+ method_name: "get_auto_protection_policy",
2386
+ options: options
2387
+ )
2388
+ operation = ::Gapic::Rest::TransportOperation.new response
2389
+ result = ::Google::Cloud::BackupDR::V1beta::AutoProtectionPolicy.decode_json response.body, ignore_unknown_fields: true
2390
+ catch :response do
2391
+ yield result, operation if block_given?
2392
+ result
2393
+ end
2394
+ end
2395
+
2396
+ ##
2397
+ # Baseline implementation for the update_auto_protection_policy REST call
2398
+ #
2399
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::UpdateAutoProtectionPolicyRequest]
2400
+ # A request object representing the call parameters. Required.
2401
+ # @param options [::Gapic::CallOptions]
2402
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2403
+ #
2404
+ # @yield [result, operation] Access the result along with the TransportOperation object
2405
+ # @yieldparam result [::Google::Longrunning::Operation]
2406
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2407
+ #
2408
+ # @return [::Google::Longrunning::Operation]
2409
+ # A result object deserialized from the server's reply
2410
+ def update_auto_protection_policy request_pb, options = nil
2411
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
2412
+
2413
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_auto_protection_policy_request request_pb
2414
+ query_string_params = if query_string_params.any?
2415
+ query_string_params.to_h { |p| p.split "=", 2 }
2416
+ else
2417
+ {}
2418
+ end
2419
+
2420
+ response = @client_stub.make_http_request(
2421
+ verb,
2422
+ uri: uri,
2423
+ body: body || "",
2424
+ params: query_string_params,
2425
+ method_name: "update_auto_protection_policy",
2426
+ options: options
2427
+ )
2428
+ operation = ::Gapic::Rest::TransportOperation.new response
2429
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
2430
+ catch :response do
2431
+ yield result, operation if block_given?
2432
+ result
2433
+ end
2434
+ end
2435
+
2436
+ ##
2437
+ # Baseline implementation for the delete_auto_protection_policy REST call
2438
+ #
2439
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::DeleteAutoProtectionPolicyRequest]
2440
+ # A request object representing the call parameters. Required.
2441
+ # @param options [::Gapic::CallOptions]
2442
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2443
+ #
2444
+ # @yield [result, operation] Access the result along with the TransportOperation object
2445
+ # @yieldparam result [::Google::Longrunning::Operation]
2446
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2447
+ #
2448
+ # @return [::Google::Longrunning::Operation]
2449
+ # A result object deserialized from the server's reply
2450
+ def delete_auto_protection_policy request_pb, options = nil
2451
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
2452
+
2453
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_auto_protection_policy_request request_pb
2454
+ query_string_params = if query_string_params.any?
2455
+ query_string_params.to_h { |p| p.split "=", 2 }
2456
+ else
2457
+ {}
2458
+ end
2459
+
2460
+ response = @client_stub.make_http_request(
2461
+ verb,
2462
+ uri: uri,
2463
+ body: body || "",
2464
+ params: query_string_params,
2465
+ method_name: "delete_auto_protection_policy",
2466
+ options: options
2467
+ )
2468
+ operation = ::Gapic::Rest::TransportOperation.new response
2469
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
2470
+ catch :response do
2471
+ yield result, operation if block_given?
2472
+ result
2473
+ end
2474
+ end
2475
+
2476
+ ##
2477
+ # Baseline implementation for the create_auto_protection_policy_binding REST call
2478
+ #
2479
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::CreateAutoProtectionPolicyBindingRequest]
2480
+ # A request object representing the call parameters. Required.
2481
+ # @param options [::Gapic::CallOptions]
2482
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2483
+ #
2484
+ # @yield [result, operation] Access the result along with the TransportOperation object
2485
+ # @yieldparam result [::Google::Longrunning::Operation]
2486
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2487
+ #
2488
+ # @return [::Google::Longrunning::Operation]
2489
+ # A result object deserialized from the server's reply
2490
+ def create_auto_protection_policy_binding request_pb, options = nil
2491
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
2492
+
2493
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_auto_protection_policy_binding_request request_pb
2494
+ query_string_params = if query_string_params.any?
2495
+ query_string_params.to_h { |p| p.split "=", 2 }
2496
+ else
2497
+ {}
2498
+ end
2499
+
2500
+ response = @client_stub.make_http_request(
2501
+ verb,
2502
+ uri: uri,
2503
+ body: body || "",
2504
+ params: query_string_params,
2505
+ method_name: "create_auto_protection_policy_binding",
2506
+ options: options
2507
+ )
2508
+ operation = ::Gapic::Rest::TransportOperation.new response
2509
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
2510
+ catch :response do
2511
+ yield result, operation if block_given?
2512
+ result
2513
+ end
2514
+ end
2515
+
2516
+ ##
2517
+ # Baseline implementation for the get_auto_protection_policy_binding REST call
2518
+ #
2519
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::GetAutoProtectionPolicyBindingRequest]
2520
+ # A request object representing the call parameters. Required.
2521
+ # @param options [::Gapic::CallOptions]
2522
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2523
+ #
2524
+ # @yield [result, operation] Access the result along with the TransportOperation object
2525
+ # @yieldparam result [::Google::Cloud::BackupDR::V1beta::AutoProtectionPolicyBinding]
2526
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2527
+ #
2528
+ # @return [::Google::Cloud::BackupDR::V1beta::AutoProtectionPolicyBinding]
2529
+ # A result object deserialized from the server's reply
2530
+ def get_auto_protection_policy_binding request_pb, options = nil
2531
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
2532
+
2533
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_auto_protection_policy_binding_request request_pb
2534
+ query_string_params = if query_string_params.any?
2535
+ query_string_params.to_h { |p| p.split "=", 2 }
2536
+ else
2537
+ {}
2538
+ end
2539
+
2540
+ response = @client_stub.make_http_request(
2541
+ verb,
2542
+ uri: uri,
2543
+ body: body || "",
2544
+ params: query_string_params,
2545
+ method_name: "get_auto_protection_policy_binding",
2546
+ options: options
2547
+ )
2548
+ operation = ::Gapic::Rest::TransportOperation.new response
2549
+ result = ::Google::Cloud::BackupDR::V1beta::AutoProtectionPolicyBinding.decode_json response.body, ignore_unknown_fields: true
2550
+ catch :response do
2551
+ yield result, operation if block_given?
2552
+ result
2553
+ end
2554
+ end
2555
+
2556
+ ##
2557
+ # Baseline implementation for the list_auto_protection_policy_bindings REST call
2558
+ #
2559
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::ListAutoProtectionPolicyBindingsRequest]
2560
+ # A request object representing the call parameters. Required.
2561
+ # @param options [::Gapic::CallOptions]
2562
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2563
+ #
2564
+ # @yield [result, operation] Access the result along with the TransportOperation object
2565
+ # @yieldparam result [::Google::Cloud::BackupDR::V1beta::ListAutoProtectionPolicyBindingsResponse]
2566
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2567
+ #
2568
+ # @return [::Google::Cloud::BackupDR::V1beta::ListAutoProtectionPolicyBindingsResponse]
2569
+ # A result object deserialized from the server's reply
2570
+ def list_auto_protection_policy_bindings request_pb, options = nil
2571
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
2572
+
2573
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_auto_protection_policy_bindings_request request_pb
2574
+ query_string_params = if query_string_params.any?
2575
+ query_string_params.to_h { |p| p.split "=", 2 }
2576
+ else
2577
+ {}
2578
+ end
2579
+
2580
+ response = @client_stub.make_http_request(
2581
+ verb,
2582
+ uri: uri,
2583
+ body: body || "",
2584
+ params: query_string_params,
2585
+ method_name: "list_auto_protection_policy_bindings",
2586
+ options: options
2587
+ )
2588
+ operation = ::Gapic::Rest::TransportOperation.new response
2589
+ result = ::Google::Cloud::BackupDR::V1beta::ListAutoProtectionPolicyBindingsResponse.decode_json response.body, ignore_unknown_fields: true
2590
+ catch :response do
2591
+ yield result, operation if block_given?
2592
+ result
2593
+ end
2594
+ end
2595
+
2596
+ ##
2597
+ # Baseline implementation for the list_applied_auto_protection_policies REST call
2598
+ #
2599
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::ListAppliedAutoProtectionPoliciesRequest]
2600
+ # A request object representing the call parameters. Required.
2601
+ # @param options [::Gapic::CallOptions]
2602
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2603
+ #
2604
+ # @yield [result, operation] Access the result along with the TransportOperation object
2605
+ # @yieldparam result [::Google::Cloud::BackupDR::V1beta::ListAppliedAutoProtectionPoliciesResponse]
2606
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2607
+ #
2608
+ # @return [::Google::Cloud::BackupDR::V1beta::ListAppliedAutoProtectionPoliciesResponse]
2609
+ # A result object deserialized from the server's reply
2610
+ def list_applied_auto_protection_policies request_pb, options = nil
2611
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
2612
+
2613
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_applied_auto_protection_policies_request request_pb
2614
+ query_string_params = if query_string_params.any?
2615
+ query_string_params.to_h { |p| p.split "=", 2 }
2616
+ else
2617
+ {}
2618
+ end
2619
+
2620
+ response = @client_stub.make_http_request(
2621
+ verb,
2622
+ uri: uri,
2623
+ body: body || "",
2624
+ params: query_string_params,
2625
+ method_name: "list_applied_auto_protection_policies",
2626
+ options: options
2627
+ )
2628
+ operation = ::Gapic::Rest::TransportOperation.new response
2629
+ result = ::Google::Cloud::BackupDR::V1beta::ListAppliedAutoProtectionPoliciesResponse.decode_json response.body, ignore_unknown_fields: true
2630
+ catch :response do
2631
+ yield result, operation if block_given?
2632
+ result
2633
+ end
2634
+ end
2635
+
2636
+ ##
2637
+ # Baseline implementation for the initiate_delete_auto_protection_policy_binding REST call
2638
+ #
2639
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::InitiateDeleteAutoProtectionPolicyBindingRequest]
2640
+ # A request object representing the call parameters. Required.
2641
+ # @param options [::Gapic::CallOptions]
2642
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2643
+ #
2644
+ # @yield [result, operation] Access the result along with the TransportOperation object
2645
+ # @yieldparam result [::Google::Longrunning::Operation]
2646
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2647
+ #
2648
+ # @return [::Google::Longrunning::Operation]
2649
+ # A result object deserialized from the server's reply
2650
+ def initiate_delete_auto_protection_policy_binding request_pb, options = nil
2651
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
2652
+
2653
+ verb, uri, query_string_params, body = ServiceStub.transcode_initiate_delete_auto_protection_policy_binding_request request_pb
2654
+ query_string_params = if query_string_params.any?
2655
+ query_string_params.to_h { |p| p.split "=", 2 }
2656
+ else
2657
+ {}
2658
+ end
2659
+
2660
+ response = @client_stub.make_http_request(
2661
+ verb,
2662
+ uri: uri,
2663
+ body: body || "",
2664
+ params: query_string_params,
2665
+ method_name: "initiate_delete_auto_protection_policy_binding",
2666
+ options: options
2667
+ )
2668
+ operation = ::Gapic::Rest::TransportOperation.new response
2669
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
2670
+ catch :response do
2671
+ yield result, operation if block_given?
2672
+ result
2673
+ end
2674
+ end
2675
+
2676
+ ##
2677
+ # Baseline implementation for the get_binding_matching_resource REST call
2678
+ #
2679
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::GetBindingMatchingResourceRequest]
1960
2680
  # A request object representing the call parameters. Required.
1961
2681
  # @param options [::Gapic::CallOptions]
1962
2682
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
@@ -1965,90 +2685,412 @@ module Google
1965
2685
  # @yieldparam result [::Google::Cloud::BackupDR::V1beta::BindingMatchingResource]
1966
2686
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
1967
2687
  #
1968
- # @return [::Google::Cloud::BackupDR::V1beta::BindingMatchingResource]
1969
- # A result object deserialized from the server's reply
1970
- def get_binding_matching_resource request_pb, options = nil
1971
- raise ::ArgumentError, "request must be provided" if request_pb.nil?
2688
+ # @return [::Google::Cloud::BackupDR::V1beta::BindingMatchingResource]
2689
+ # A result object deserialized from the server's reply
2690
+ def get_binding_matching_resource request_pb, options = nil
2691
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
2692
+
2693
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_binding_matching_resource_request request_pb
2694
+ query_string_params = if query_string_params.any?
2695
+ query_string_params.to_h { |p| p.split "=", 2 }
2696
+ else
2697
+ {}
2698
+ end
2699
+
2700
+ response = @client_stub.make_http_request(
2701
+ verb,
2702
+ uri: uri,
2703
+ body: body || "",
2704
+ params: query_string_params,
2705
+ method_name: "get_binding_matching_resource",
2706
+ options: options
2707
+ )
2708
+ operation = ::Gapic::Rest::TransportOperation.new response
2709
+ result = ::Google::Cloud::BackupDR::V1beta::BindingMatchingResource.decode_json response.body, ignore_unknown_fields: true
2710
+ catch :response do
2711
+ yield result, operation if block_given?
2712
+ result
2713
+ end
2714
+ end
2715
+
2716
+ ##
2717
+ # Baseline implementation for the list_binding_matching_resources REST call
2718
+ #
2719
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::ListBindingMatchingResourcesRequest]
2720
+ # A request object representing the call parameters. Required.
2721
+ # @param options [::Gapic::CallOptions]
2722
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2723
+ #
2724
+ # @yield [result, operation] Access the result along with the TransportOperation object
2725
+ # @yieldparam result [::Google::Cloud::BackupDR::V1beta::ListBindingMatchingResourcesResponse]
2726
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2727
+ #
2728
+ # @return [::Google::Cloud::BackupDR::V1beta::ListBindingMatchingResourcesResponse]
2729
+ # A result object deserialized from the server's reply
2730
+ def list_binding_matching_resources request_pb, options = nil
2731
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
2732
+
2733
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_binding_matching_resources_request request_pb
2734
+ query_string_params = if query_string_params.any?
2735
+ query_string_params.to_h { |p| p.split "=", 2 }
2736
+ else
2737
+ {}
2738
+ end
2739
+
2740
+ response = @client_stub.make_http_request(
2741
+ verb,
2742
+ uri: uri,
2743
+ body: body || "",
2744
+ params: query_string_params,
2745
+ method_name: "list_binding_matching_resources",
2746
+ options: options
2747
+ )
2748
+ operation = ::Gapic::Rest::TransportOperation.new response
2749
+ result = ::Google::Cloud::BackupDR::V1beta::ListBindingMatchingResourcesResponse.decode_json response.body, ignore_unknown_fields: true
2750
+ catch :response do
2751
+ yield result, operation if block_given?
2752
+ result
2753
+ end
2754
+ end
2755
+
2756
+ ##
2757
+ # @private
2758
+ #
2759
+ # GRPC transcoding helper method for the list_management_servers REST call
2760
+ #
2761
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::ListManagementServersRequest]
2762
+ # A request object representing the call parameters. Required.
2763
+ # @return [Array(String, [String, nil], Hash{String => String})]
2764
+ # Uri, Body, Query string parameters
2765
+ def self.transcode_list_management_servers_request request_pb
2766
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2767
+ .with_bindings(
2768
+ uri_method: :get,
2769
+ uri_template: "/v1beta/{parent}/managementServers",
2770
+ matches: [
2771
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
2772
+ ]
2773
+ )
2774
+ transcoder.transcode request_pb
2775
+ end
2776
+
2777
+ ##
2778
+ # @private
2779
+ #
2780
+ # GRPC transcoding helper method for the get_management_server REST call
2781
+ #
2782
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::GetManagementServerRequest]
2783
+ # A request object representing the call parameters. Required.
2784
+ # @return [Array(String, [String, nil], Hash{String => String})]
2785
+ # Uri, Body, Query string parameters
2786
+ def self.transcode_get_management_server_request request_pb
2787
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2788
+ .with_bindings(
2789
+ uri_method: :get,
2790
+ uri_template: "/v1beta/{name}",
2791
+ matches: [
2792
+ ["name", %r{^projects/[^/]+/locations/[^/]+/managementServers/[^/]+/?$}, false]
2793
+ ]
2794
+ )
2795
+ transcoder.transcode request_pb
2796
+ end
2797
+
2798
+ ##
2799
+ # @private
2800
+ #
2801
+ # GRPC transcoding helper method for the create_management_server REST call
2802
+ #
2803
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::CreateManagementServerRequest]
2804
+ # A request object representing the call parameters. Required.
2805
+ # @return [Array(String, [String, nil], Hash{String => String})]
2806
+ # Uri, Body, Query string parameters
2807
+ def self.transcode_create_management_server_request request_pb
2808
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2809
+ .with_bindings(
2810
+ uri_method: :post,
2811
+ uri_template: "/v1beta/{parent}/managementServers",
2812
+ body: "management_server",
2813
+ matches: [
2814
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
2815
+ ]
2816
+ )
2817
+ transcoder.transcode request_pb
2818
+ end
2819
+
2820
+ ##
2821
+ # @private
2822
+ #
2823
+ # GRPC transcoding helper method for the delete_management_server REST call
2824
+ #
2825
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::DeleteManagementServerRequest]
2826
+ # A request object representing the call parameters. Required.
2827
+ # @return [Array(String, [String, nil], Hash{String => String})]
2828
+ # Uri, Body, Query string parameters
2829
+ def self.transcode_delete_management_server_request request_pb
2830
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2831
+ .with_bindings(
2832
+ uri_method: :delete,
2833
+ uri_template: "/v1beta/{name}",
2834
+ matches: [
2835
+ ["name", %r{^projects/[^/]+/locations/[^/]+/managementServers/[^/]+/?$}, false]
2836
+ ]
2837
+ )
2838
+ transcoder.transcode request_pb
2839
+ end
2840
+
2841
+ ##
2842
+ # @private
2843
+ #
2844
+ # GRPC transcoding helper method for the create_restore_template REST call
2845
+ #
2846
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::CreateRestoreTemplateRequest]
2847
+ # A request object representing the call parameters. Required.
2848
+ # @return [Array(String, [String, nil], Hash{String => String})]
2849
+ # Uri, Body, Query string parameters
2850
+ def self.transcode_create_restore_template_request request_pb
2851
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2852
+ .with_bindings(
2853
+ uri_method: :post,
2854
+ uri_template: "/v1beta/{parent}/restoreTemplates",
2855
+ body: "restore_template",
2856
+ matches: [
2857
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
2858
+ ]
2859
+ )
2860
+ transcoder.transcode request_pb
2861
+ end
2862
+
2863
+ ##
2864
+ # @private
2865
+ #
2866
+ # GRPC transcoding helper method for the get_restore_template REST call
2867
+ #
2868
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::GetRestoreTemplateRequest]
2869
+ # A request object representing the call parameters. Required.
2870
+ # @return [Array(String, [String, nil], Hash{String => String})]
2871
+ # Uri, Body, Query string parameters
2872
+ def self.transcode_get_restore_template_request request_pb
2873
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2874
+ .with_bindings(
2875
+ uri_method: :get,
2876
+ uri_template: "/v1beta/{name}",
2877
+ matches: [
2878
+ ["name", %r{^projects/[^/]+/locations/[^/]+/restoreTemplates/[^/]+/?$}, false]
2879
+ ]
2880
+ )
2881
+ transcoder.transcode request_pb
2882
+ end
2883
+
2884
+ ##
2885
+ # @private
2886
+ #
2887
+ # GRPC transcoding helper method for the list_restore_templates REST call
2888
+ #
2889
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::ListRestoreTemplatesRequest]
2890
+ # A request object representing the call parameters. Required.
2891
+ # @return [Array(String, [String, nil], Hash{String => String})]
2892
+ # Uri, Body, Query string parameters
2893
+ def self.transcode_list_restore_templates_request request_pb
2894
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2895
+ .with_bindings(
2896
+ uri_method: :get,
2897
+ uri_template: "/v1beta/{parent}/restoreTemplates",
2898
+ matches: [
2899
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
2900
+ ]
2901
+ )
2902
+ transcoder.transcode request_pb
2903
+ end
2904
+
2905
+ ##
2906
+ # @private
2907
+ #
2908
+ # GRPC transcoding helper method for the update_restore_template REST call
2909
+ #
2910
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::UpdateRestoreTemplateRequest]
2911
+ # A request object representing the call parameters. Required.
2912
+ # @return [Array(String, [String, nil], Hash{String => String})]
2913
+ # Uri, Body, Query string parameters
2914
+ def self.transcode_update_restore_template_request request_pb
2915
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2916
+ .with_bindings(
2917
+ uri_method: :patch,
2918
+ uri_template: "/v1beta/{restore_template.name}",
2919
+ body: "restore_template",
2920
+ matches: [
2921
+ ["restore_template.name", %r{^projects/[^/]+/locations/[^/]+/restoreTemplates/[^/]+/?$}, false]
2922
+ ]
2923
+ )
2924
+ transcoder.transcode request_pb
2925
+ end
1972
2926
 
1973
- verb, uri, query_string_params, body = ServiceStub.transcode_get_binding_matching_resource_request request_pb
1974
- query_string_params = if query_string_params.any?
1975
- query_string_params.to_h { |p| p.split "=", 2 }
1976
- else
1977
- {}
1978
- end
2927
+ ##
2928
+ # @private
2929
+ #
2930
+ # GRPC transcoding helper method for the delete_restore_template REST call
2931
+ #
2932
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::DeleteRestoreTemplateRequest]
2933
+ # A request object representing the call parameters. Required.
2934
+ # @return [Array(String, [String, nil], Hash{String => String})]
2935
+ # Uri, Body, Query string parameters
2936
+ def self.transcode_delete_restore_template_request request_pb
2937
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2938
+ .with_bindings(
2939
+ uri_method: :delete,
2940
+ uri_template: "/v1beta/{name}",
2941
+ matches: [
2942
+ ["name", %r{^projects/[^/]+/locations/[^/]+/restoreTemplates/[^/]+/?$}, false]
2943
+ ]
2944
+ )
2945
+ transcoder.transcode request_pb
2946
+ end
1979
2947
 
1980
- response = @client_stub.make_http_request(
1981
- verb,
1982
- uri: uri,
1983
- body: body || "",
1984
- params: query_string_params,
1985
- method_name: "get_binding_matching_resource",
1986
- options: options
1987
- )
1988
- operation = ::Gapic::Rest::TransportOperation.new response
1989
- result = ::Google::Cloud::BackupDR::V1beta::BindingMatchingResource.decode_json response.body, ignore_unknown_fields: true
1990
- catch :response do
1991
- yield result, operation if block_given?
1992
- result
1993
- end
2948
+ ##
2949
+ # @private
2950
+ #
2951
+ # GRPC transcoding helper method for the run_restore_template REST call
2952
+ #
2953
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::RunRestoreTemplateRequest]
2954
+ # A request object representing the call parameters. Required.
2955
+ # @return [Array(String, [String, nil], Hash{String => String})]
2956
+ # Uri, Body, Query string parameters
2957
+ def self.transcode_run_restore_template_request request_pb
2958
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2959
+ .with_bindings(
2960
+ uri_method: :post,
2961
+ uri_template: "/v1beta/{name}:run",
2962
+ body: "*",
2963
+ matches: [
2964
+ ["name", %r{^projects/[^/]+/locations/[^/]+/restoreTemplates/[^/]+/?$}, false]
2965
+ ]
2966
+ )
2967
+ transcoder.transcode request_pb
1994
2968
  end
1995
2969
 
1996
2970
  ##
1997
- # Baseline implementation for the list_binding_matching_resources REST call
2971
+ # @private
1998
2972
  #
1999
- # @param request_pb [::Google::Cloud::BackupDR::V1beta::ListBindingMatchingResourcesRequest]
2973
+ # GRPC transcoding helper method for the get_restore_template_execution REST call
2974
+ #
2975
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::GetRestoreTemplateExecutionRequest]
2000
2976
  # A request object representing the call parameters. Required.
2001
- # @param options [::Gapic::CallOptions]
2002
- # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2977
+ # @return [Array(String, [String, nil], Hash{String => String})]
2978
+ # Uri, Body, Query string parameters
2979
+ def self.transcode_get_restore_template_execution_request request_pb
2980
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2981
+ .with_bindings(
2982
+ uri_method: :get,
2983
+ uri_template: "/v1beta/{name}",
2984
+ matches: [
2985
+ ["name", %r{^projects/[^/]+/locations/[^/]+/restoreTemplates/[^/]+/executions/[^/]+/?$}, false]
2986
+ ]
2987
+ )
2988
+ transcoder.transcode request_pb
2989
+ end
2990
+
2991
+ ##
2992
+ # @private
2003
2993
  #
2004
- # @yield [result, operation] Access the result along with the TransportOperation object
2005
- # @yieldparam result [::Google::Cloud::BackupDR::V1beta::ListBindingMatchingResourcesResponse]
2006
- # @yieldparam operation [::Gapic::Rest::TransportOperation]
2994
+ # GRPC transcoding helper method for the list_restore_template_executions REST call
2007
2995
  #
2008
- # @return [::Google::Cloud::BackupDR::V1beta::ListBindingMatchingResourcesResponse]
2009
- # A result object deserialized from the server's reply
2010
- def list_binding_matching_resources request_pb, options = nil
2011
- raise ::ArgumentError, "request must be provided" if request_pb.nil?
2996
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::ListRestoreTemplateExecutionsRequest]
2997
+ # A request object representing the call parameters. Required.
2998
+ # @return [Array(String, [String, nil], Hash{String => String})]
2999
+ # Uri, Body, Query string parameters
3000
+ def self.transcode_list_restore_template_executions_request request_pb
3001
+ transcoder = Gapic::Rest::GrpcTranscoder.new
3002
+ .with_bindings(
3003
+ uri_method: :get,
3004
+ uri_template: "/v1beta/{parent}/executions",
3005
+ matches: [
3006
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/restoreTemplates/[^/]+/?$}, false]
3007
+ ]
3008
+ )
3009
+ transcoder.transcode request_pb
3010
+ end
2012
3011
 
2013
- verb, uri, query_string_params, body = ServiceStub.transcode_list_binding_matching_resources_request request_pb
2014
- query_string_params = if query_string_params.any?
2015
- query_string_params.to_h { |p| p.split "=", 2 }
2016
- else
2017
- {}
2018
- end
3012
+ ##
3013
+ # @private
3014
+ #
3015
+ # GRPC transcoding helper method for the trigger_restore_cleanup REST call
3016
+ #
3017
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::TriggerRestoreCleanupRequest]
3018
+ # A request object representing the call parameters. Required.
3019
+ # @return [Array(String, [String, nil], Hash{String => String})]
3020
+ # Uri, Body, Query string parameters
3021
+ def self.transcode_trigger_restore_cleanup_request request_pb
3022
+ transcoder = Gapic::Rest::GrpcTranscoder.new
3023
+ .with_bindings(
3024
+ uri_method: :post,
3025
+ uri_template: "/v1beta/{name}:triggerRestoreCleanup",
3026
+ body: "*",
3027
+ matches: [
3028
+ ["name", %r{^projects/[^/]+/locations/[^/]+/restoreTemplates/[^/]+/executions/[^/]+/?$}, false]
3029
+ ]
3030
+ )
3031
+ transcoder.transcode request_pb
3032
+ end
2019
3033
 
2020
- response = @client_stub.make_http_request(
2021
- verb,
2022
- uri: uri,
2023
- body: body || "",
2024
- params: query_string_params,
2025
- method_name: "list_binding_matching_resources",
2026
- options: options
2027
- )
2028
- operation = ::Gapic::Rest::TransportOperation.new response
2029
- result = ::Google::Cloud::BackupDR::V1beta::ListBindingMatchingResourcesResponse.decode_json response.body, ignore_unknown_fields: true
2030
- catch :response do
2031
- yield result, operation if block_given?
2032
- result
2033
- end
3034
+ ##
3035
+ # @private
3036
+ #
3037
+ # GRPC transcoding helper method for the create_restore_verification_plan REST call
3038
+ #
3039
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::CreateRestoreVerificationPlanRequest]
3040
+ # A request object representing the call parameters. Required.
3041
+ # @return [Array(String, [String, nil], Hash{String => String})]
3042
+ # Uri, Body, Query string parameters
3043
+ def self.transcode_create_restore_verification_plan_request request_pb
3044
+ transcoder = Gapic::Rest::GrpcTranscoder.new
3045
+ .with_bindings(
3046
+ uri_method: :post,
3047
+ uri_template: "/v1beta/{parent}/restoreVerificationPlans",
3048
+ body: "restore_verification_plan",
3049
+ matches: [
3050
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
3051
+ ]
3052
+ )
3053
+ transcoder.transcode request_pb
2034
3054
  end
2035
3055
 
2036
3056
  ##
2037
3057
  # @private
2038
3058
  #
2039
- # GRPC transcoding helper method for the list_management_servers REST call
3059
+ # GRPC transcoding helper method for the create_restore_verification_plan_association REST call
2040
3060
  #
2041
- # @param request_pb [::Google::Cloud::BackupDR::V1beta::ListManagementServersRequest]
3061
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::CreateRestoreVerificationPlanAssociationRequest]
2042
3062
  # A request object representing the call parameters. Required.
2043
3063
  # @return [Array(String, [String, nil], Hash{String => String})]
2044
3064
  # Uri, Body, Query string parameters
2045
- def self.transcode_list_management_servers_request request_pb
3065
+ def self.transcode_create_restore_verification_plan_association_request request_pb
3066
+ transcoder = Gapic::Rest::GrpcTranscoder.new
3067
+ .with_bindings(
3068
+ uri_method: :post,
3069
+ uri_template: "/v1beta/{parent}/associations",
3070
+ body: "restore_verification_plan_association",
3071
+ matches: [
3072
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/restoreVerificationPlans/[^/]+/?$}, false]
3073
+ ]
3074
+ )
3075
+ transcoder.transcode request_pb
3076
+ end
3077
+
3078
+ ##
3079
+ # @private
3080
+ #
3081
+ # GRPC transcoding helper method for the get_restore_verification_plan_association REST call
3082
+ #
3083
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::GetRestoreVerificationPlanAssociationRequest]
3084
+ # A request object representing the call parameters. Required.
3085
+ # @return [Array(String, [String, nil], Hash{String => String})]
3086
+ # Uri, Body, Query string parameters
3087
+ def self.transcode_get_restore_verification_plan_association_request request_pb
2046
3088
  transcoder = Gapic::Rest::GrpcTranscoder.new
2047
3089
  .with_bindings(
2048
3090
  uri_method: :get,
2049
- uri_template: "/v1beta/{parent}/managementServers",
3091
+ uri_template: "/v1beta/{name}",
2050
3092
  matches: [
2051
- ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
3093
+ ["name", %r{^projects/[^/]+/locations/[^/]+/restoreVerificationPlans/[^/]+/associations/[^/]+/?$}, false]
2052
3094
  ]
2053
3095
  )
2054
3096
  transcoder.transcode request_pb
@@ -2057,19 +3099,40 @@ module Google
2057
3099
  ##
2058
3100
  # @private
2059
3101
  #
2060
- # GRPC transcoding helper method for the get_management_server REST call
3102
+ # GRPC transcoding helper method for the list_restore_verification_plan_associations REST call
2061
3103
  #
2062
- # @param request_pb [::Google::Cloud::BackupDR::V1beta::GetManagementServerRequest]
3104
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::ListRestoreVerificationPlanAssociationsRequest]
2063
3105
  # A request object representing the call parameters. Required.
2064
3106
  # @return [Array(String, [String, nil], Hash{String => String})]
2065
3107
  # Uri, Body, Query string parameters
2066
- def self.transcode_get_management_server_request request_pb
3108
+ def self.transcode_list_restore_verification_plan_associations_request request_pb
2067
3109
  transcoder = Gapic::Rest::GrpcTranscoder.new
2068
3110
  .with_bindings(
2069
3111
  uri_method: :get,
3112
+ uri_template: "/v1beta/{parent}/associations",
3113
+ matches: [
3114
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/restoreVerificationPlans/[^/]+/?$}, false]
3115
+ ]
3116
+ )
3117
+ transcoder.transcode request_pb
3118
+ end
3119
+
3120
+ ##
3121
+ # @private
3122
+ #
3123
+ # GRPC transcoding helper method for the delete_restore_verification_plan_association REST call
3124
+ #
3125
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::DeleteRestoreVerificationPlanAssociationRequest]
3126
+ # A request object representing the call parameters. Required.
3127
+ # @return [Array(String, [String, nil], Hash{String => String})]
3128
+ # Uri, Body, Query string parameters
3129
+ def self.transcode_delete_restore_verification_plan_association_request request_pb
3130
+ transcoder = Gapic::Rest::GrpcTranscoder.new
3131
+ .with_bindings(
3132
+ uri_method: :delete,
2070
3133
  uri_template: "/v1beta/{name}",
2071
3134
  matches: [
2072
- ["name", %r{^projects/[^/]+/locations/[^/]+/managementServers/[^/]+/?$}, false]
3135
+ ["name", %r{^projects/[^/]+/locations/[^/]+/restoreVerificationPlans/[^/]+/associations/[^/]+/?$}, false]
2073
3136
  ]
2074
3137
  )
2075
3138
  transcoder.transcode request_pb
@@ -2078,18 +3141,60 @@ module Google
2078
3141
  ##
2079
3142
  # @private
2080
3143
  #
2081
- # GRPC transcoding helper method for the create_management_server REST call
3144
+ # GRPC transcoding helper method for the trigger_restore_verification REST call
2082
3145
  #
2083
- # @param request_pb [::Google::Cloud::BackupDR::V1beta::CreateManagementServerRequest]
3146
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::TriggerRestoreVerificationRequest]
2084
3147
  # A request object representing the call parameters. Required.
2085
3148
  # @return [Array(String, [String, nil], Hash{String => String})]
2086
3149
  # Uri, Body, Query string parameters
2087
- def self.transcode_create_management_server_request request_pb
3150
+ def self.transcode_trigger_restore_verification_request request_pb
2088
3151
  transcoder = Gapic::Rest::GrpcTranscoder.new
2089
3152
  .with_bindings(
2090
3153
  uri_method: :post,
2091
- uri_template: "/v1beta/{parent}/managementServers",
2092
- body: "management_server",
3154
+ uri_template: "/v1beta/{name}:triggerRestoreVerification",
3155
+ body: "*",
3156
+ matches: [
3157
+ ["name", %r{^projects/[^/]+/locations/[^/]+/restoreVerificationPlans/[^/]+/associations/[^/]+/?$}, false]
3158
+ ]
3159
+ )
3160
+ transcoder.transcode request_pb
3161
+ end
3162
+
3163
+ ##
3164
+ # @private
3165
+ #
3166
+ # GRPC transcoding helper method for the get_restore_verification_plan REST call
3167
+ #
3168
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::GetRestoreVerificationPlanRequest]
3169
+ # A request object representing the call parameters. Required.
3170
+ # @return [Array(String, [String, nil], Hash{String => String})]
3171
+ # Uri, Body, Query string parameters
3172
+ def self.transcode_get_restore_verification_plan_request request_pb
3173
+ transcoder = Gapic::Rest::GrpcTranscoder.new
3174
+ .with_bindings(
3175
+ uri_method: :get,
3176
+ uri_template: "/v1beta/{name}",
3177
+ matches: [
3178
+ ["name", %r{^projects/[^/]+/locations/[^/]+/restoreVerificationPlans/[^/]+/?$}, false]
3179
+ ]
3180
+ )
3181
+ transcoder.transcode request_pb
3182
+ end
3183
+
3184
+ ##
3185
+ # @private
3186
+ #
3187
+ # GRPC transcoding helper method for the list_restore_verification_plans REST call
3188
+ #
3189
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::ListRestoreVerificationPlansRequest]
3190
+ # A request object representing the call parameters. Required.
3191
+ # @return [Array(String, [String, nil], Hash{String => String})]
3192
+ # Uri, Body, Query string parameters
3193
+ def self.transcode_list_restore_verification_plans_request request_pb
3194
+ transcoder = Gapic::Rest::GrpcTranscoder.new
3195
+ .with_bindings(
3196
+ uri_method: :get,
3197
+ uri_template: "/v1beta/{parent}/restoreVerificationPlans",
2093
3198
  matches: [
2094
3199
  ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
2095
3200
  ]
@@ -2100,19 +3205,19 @@ module Google
2100
3205
  ##
2101
3206
  # @private
2102
3207
  #
2103
- # GRPC transcoding helper method for the delete_management_server REST call
3208
+ # GRPC transcoding helper method for the delete_restore_verification_plan REST call
2104
3209
  #
2105
- # @param request_pb [::Google::Cloud::BackupDR::V1beta::DeleteManagementServerRequest]
3210
+ # @param request_pb [::Google::Cloud::BackupDR::V1beta::DeleteRestoreVerificationPlanRequest]
2106
3211
  # A request object representing the call parameters. Required.
2107
3212
  # @return [Array(String, [String, nil], Hash{String => String})]
2108
3213
  # Uri, Body, Query string parameters
2109
- def self.transcode_delete_management_server_request request_pb
3214
+ def self.transcode_delete_restore_verification_plan_request request_pb
2110
3215
  transcoder = Gapic::Rest::GrpcTranscoder.new
2111
3216
  .with_bindings(
2112
3217
  uri_method: :delete,
2113
3218
  uri_template: "/v1beta/{name}",
2114
3219
  matches: [
2115
- ["name", %r{^projects/[^/]+/locations/[^/]+/managementServers/[^/]+/?$}, false]
3220
+ ["name", %r{^projects/[^/]+/locations/[^/]+/restoreVerificationPlans/[^/]+/?$}, false]
2116
3221
  ]
2117
3222
  )
2118
3223
  transcoder.transcode request_pb