google-cloud-backupdr-v1beta 0.1.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 (39) 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/backupplan_pb.rb +1 -1
  13. data/lib/google/cloud/backupdr/v1beta/backupplanassociation_pb.rb +1 -1
  14. data/lib/google/cloud/backupdr/v1beta/backupvault_alloydb_pb.rb +1 -1
  15. data/lib/google/cloud/backupdr/v1beta/backupvault_ba_pb.rb +1 -1
  16. data/lib/google/cloud/backupdr/v1beta/backupvault_cloudsql_pb.rb +1 -1
  17. data/lib/google/cloud/backupdr/v1beta/backupvault_disk_pb.rb +1 -1
  18. data/lib/google/cloud/backupdr/v1beta/backupvault_gce_pb.rb +1 -1
  19. data/lib/google/cloud/backupdr/v1beta/backupvault_pb.rb +3 -1
  20. data/lib/google/cloud/backupdr/v1beta/bindingmatchingresource_pb.rb +1 -1
  21. data/lib/google/cloud/backupdr/v1beta/datasourcereference_pb.rb +1 -1
  22. data/lib/google/cloud/backupdr/v1beta/protection_summary_pb.rb +1 -1
  23. data/lib/google/cloud/backupdr/v1beta/restore_template_common_pb.rb +28 -0
  24. data/lib/google/cloud/backupdr/v1beta/restore_template_execution_pb.rb +45 -0
  25. data/lib/google/cloud/backupdr/v1beta/restore_template_pb.rb +40 -0
  26. data/lib/google/cloud/backupdr/v1beta/restore_verification_plan_association_pb.rb +36 -0
  27. data/lib/google/cloud/backupdr/v1beta/restore_verification_plan_pb.rb +34 -0
  28. data/lib/google/cloud/backupdr/v1beta/version.rb +1 -1
  29. data/proto_docs/google/cloud/backupdr/v1beta/autoprotectionpolicy.rb +38 -7
  30. data/proto_docs/google/cloud/backupdr/v1beta/autoprotectionpolicybinding.rb +32 -5
  31. data/proto_docs/google/cloud/backupdr/v1beta/backupvault.rb +31 -0
  32. data/proto_docs/google/cloud/backupdr/v1beta/bindingmatchingresource.rb +6 -6
  33. data/proto_docs/google/cloud/backupdr/v1beta/restore_template.rb +292 -0
  34. data/proto_docs/google/cloud/backupdr/v1beta/restore_template_common.rb +80 -0
  35. data/proto_docs/google/cloud/backupdr/v1beta/restore_template_execution.rb +399 -0
  36. data/proto_docs/google/cloud/backupdr/v1beta/restore_verification_plan.rb +270 -0
  37. data/proto_docs/google/cloud/backupdr/v1beta/restore_verification_plan_association.rb +264 -0
  38. data/proto_docs/google/protobuf/struct.rb +108 -0
  39. metadata +14 -3
@@ -308,6 +308,25 @@ module Google
308
308
  "projects/#{project}/instances/#{instance}"
309
309
  end
310
310
 
311
+ ##
312
+ # Create a fully-qualified Job resource string.
313
+ #
314
+ # The resource will be in the following format:
315
+ #
316
+ # `projects/{project}/locations/{location}/jobs/{job}`
317
+ #
318
+ # @param project [String]
319
+ # @param location [String]
320
+ # @param job [String]
321
+ #
322
+ # @return [::String]
323
+ def job_path project:, location:, job:
324
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
325
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
326
+
327
+ "projects/#{project}/locations/#{location}/jobs/#{job}"
328
+ end
329
+
311
330
  ##
312
331
  # Create a fully-qualified Location resource string.
313
332
  #
@@ -344,6 +363,86 @@ module Google
344
363
  "projects/#{project}/locations/#{location}/managementServers/#{managementserver}"
345
364
  end
346
365
 
366
+ ##
367
+ # Create a fully-qualified RestoreTemplate resource string.
368
+ #
369
+ # The resource will be in the following format:
370
+ #
371
+ # `projects/{project}/locations/{location}/restoreTemplates/{restore_template}`
372
+ #
373
+ # @param project [String]
374
+ # @param location [String]
375
+ # @param restore_template [String]
376
+ #
377
+ # @return [::String]
378
+ def restore_template_path project:, location:, restore_template:
379
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
380
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
381
+
382
+ "projects/#{project}/locations/#{location}/restoreTemplates/#{restore_template}"
383
+ end
384
+
385
+ ##
386
+ # Create a fully-qualified RestoreTemplateExecution resource string.
387
+ #
388
+ # The resource will be in the following format:
389
+ #
390
+ # `projects/{project}/locations/{location}/restoreTemplates/{restore_template}/executions/{execution}`
391
+ #
392
+ # @param project [String]
393
+ # @param location [String]
394
+ # @param restore_template [String]
395
+ # @param execution [String]
396
+ #
397
+ # @return [::String]
398
+ def restore_template_execution_path project:, location:, restore_template:, execution:
399
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
400
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
401
+ raise ::ArgumentError, "restore_template cannot contain /" if restore_template.to_s.include? "/"
402
+
403
+ "projects/#{project}/locations/#{location}/restoreTemplates/#{restore_template}/executions/#{execution}"
404
+ end
405
+
406
+ ##
407
+ # Create a fully-qualified RestoreVerificationPlan resource string.
408
+ #
409
+ # The resource will be in the following format:
410
+ #
411
+ # `projects/{project}/locations/{location}/restoreVerificationPlans/{restore_verification_plan}`
412
+ #
413
+ # @param project [String]
414
+ # @param location [String]
415
+ # @param restore_verification_plan [String]
416
+ #
417
+ # @return [::String]
418
+ def restore_verification_plan_path project:, location:, restore_verification_plan:
419
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
420
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
421
+
422
+ "projects/#{project}/locations/#{location}/restoreVerificationPlans/#{restore_verification_plan}"
423
+ end
424
+
425
+ ##
426
+ # Create a fully-qualified RestoreVerificationPlanAssociation resource string.
427
+ #
428
+ # The resource will be in the following format:
429
+ #
430
+ # `projects/{project}/locations/{location}/restoreVerificationPlans/{restore_verification_plan}/associations/{association}`
431
+ #
432
+ # @param project [String]
433
+ # @param location [String]
434
+ # @param restore_verification_plan [String]
435
+ # @param association [String]
436
+ #
437
+ # @return [::String]
438
+ def restore_verification_plan_association_path project:, location:, restore_verification_plan:, association:
439
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
440
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
441
+ raise ::ArgumentError, "restore_verification_plan cannot contain /" if restore_verification_plan.to_s.include? "/"
442
+
443
+ "projects/#{project}/locations/#{location}/restoreVerificationPlans/#{restore_verification_plan}/associations/#{association}"
444
+ end
445
+
347
446
  ##
348
447
  # Create a fully-qualified StoragePool resource string.
349
448
  #