google-cloud-backupdr-v1 1.12.0 → 1.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +4 -6
- data/lib/google/cloud/backupdr/v1/appliedautoprotectionpolicy_pb.rb +30 -0
- data/lib/google/cloud/backupdr/v1/autoprotectionpolicy_pb.rb +40 -0
- data/lib/google/cloud/backupdr/v1/autoprotectionpolicybinding_pb.rb +33 -0
- data/lib/google/cloud/backupdr/v1/backupdr/client.rb +3484 -150
- data/lib/google/cloud/backupdr/v1/backupdr/paths.rb +139 -0
- data/lib/google/cloud/backupdr/v1/backupdr/rest/client.rb +3268 -137
- data/lib/google/cloud/backupdr/v1/backupdr/rest/service_stub.rb +1989 -209
- data/lib/google/cloud/backupdr/v1/backupdr_pb.rb +9 -1
- data/lib/google/cloud/backupdr/v1/backupdr_services_pb.rb +69 -0
- data/lib/google/cloud/backupdr/v1/backupplanassociation_pb.rb +1 -1
- data/lib/google/cloud/backupdr/v1/backupvault_pb.rb +3 -1
- data/lib/google/cloud/backupdr/v1/bindingmatchingresource_pb.rb +30 -0
- data/lib/google/cloud/backupdr/v1/restore_template_common_pb.rb +28 -0
- data/lib/google/cloud/backupdr/v1/restore_template_execution_pb.rb +45 -0
- data/lib/google/cloud/backupdr/v1/restore_template_pb.rb +40 -0
- data/lib/google/cloud/backupdr/v1/restore_verification_plan_association_pb.rb +36 -0
- data/lib/google/cloud/backupdr/v1/restore_verification_plan_pb.rb +34 -0
- data/lib/google/cloud/backupdr/v1/version.rb +1 -1
- data/proto_docs/google/cloud/backupdr/v1/appliedautoprotectionpolicy.rb +123 -0
- data/proto_docs/google/cloud/backupdr/v1/autoprotectionpolicy.rb +307 -0
- data/proto_docs/google/cloud/backupdr/v1/autoprotectionpolicybinding.rb +207 -0
- data/proto_docs/google/cloud/backupdr/v1/backupplanassociation.rb +13 -1
- data/proto_docs/google/cloud/backupdr/v1/backupvault.rb +37 -0
- data/proto_docs/google/cloud/backupdr/v1/bindingmatchingresource.rb +149 -0
- data/proto_docs/google/cloud/backupdr/v1/restore_template.rb +292 -0
- data/proto_docs/google/cloud/backupdr/v1/restore_template_common.rb +80 -0
- data/proto_docs/google/cloud/backupdr/v1/restore_template_execution.rb +399 -0
- data/proto_docs/google/cloud/backupdr/v1/restore_verification_plan.rb +270 -0
- data/proto_docs/google/cloud/backupdr/v1/restore_verification_plan_association.rb +264 -0
- data/proto_docs/google/protobuf/struct.rb +108 -0
- metadata +20 -1
|
@@ -24,6 +24,46 @@ module Google
|
|
|
24
24
|
module BackupDR
|
|
25
25
|
# Path helper methods for the BackupDR API.
|
|
26
26
|
module Paths
|
|
27
|
+
##
|
|
28
|
+
# Create a fully-qualified AutoProtectionPolicy resource string.
|
|
29
|
+
#
|
|
30
|
+
# The resource will be in the following format:
|
|
31
|
+
#
|
|
32
|
+
# `projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}`
|
|
33
|
+
#
|
|
34
|
+
# @param project [String]
|
|
35
|
+
# @param location [String]
|
|
36
|
+
# @param auto_protection_policy [String]
|
|
37
|
+
#
|
|
38
|
+
# @return [::String]
|
|
39
|
+
def auto_protection_policy_path project:, location:, auto_protection_policy:
|
|
40
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
41
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
42
|
+
|
|
43
|
+
"projects/#{project}/locations/#{location}/autoProtectionPolicies/#{auto_protection_policy}"
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
##
|
|
47
|
+
# Create a fully-qualified AutoProtectionPolicyBinding resource string.
|
|
48
|
+
#
|
|
49
|
+
# The resource will be in the following format:
|
|
50
|
+
#
|
|
51
|
+
# `projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}`
|
|
52
|
+
#
|
|
53
|
+
# @param project [String]
|
|
54
|
+
# @param location [String]
|
|
55
|
+
# @param auto_protection_policy [String]
|
|
56
|
+
# @param binding [String]
|
|
57
|
+
#
|
|
58
|
+
# @return [::String]
|
|
59
|
+
def auto_protection_policy_binding_path project:, location:, auto_protection_policy:, binding:
|
|
60
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
61
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
62
|
+
raise ::ArgumentError, "auto_protection_policy cannot contain /" if auto_protection_policy.to_s.include? "/"
|
|
63
|
+
|
|
64
|
+
"projects/#{project}/locations/#{location}/autoProtectionPolicies/#{auto_protection_policy}/bindings/#{binding}"
|
|
65
|
+
end
|
|
66
|
+
|
|
27
67
|
##
|
|
28
68
|
# Create a fully-qualified Backup resource string.
|
|
29
69
|
#
|
|
@@ -245,6 +285,25 @@ module Google
|
|
|
245
285
|
"projects/#{project}/instances/#{instance}"
|
|
246
286
|
end
|
|
247
287
|
|
|
288
|
+
##
|
|
289
|
+
# Create a fully-qualified Job resource string.
|
|
290
|
+
#
|
|
291
|
+
# The resource will be in the following format:
|
|
292
|
+
#
|
|
293
|
+
# `projects/{project}/locations/{location}/jobs/{job}`
|
|
294
|
+
#
|
|
295
|
+
# @param project [String]
|
|
296
|
+
# @param location [String]
|
|
297
|
+
# @param job [String]
|
|
298
|
+
#
|
|
299
|
+
# @return [::String]
|
|
300
|
+
def job_path project:, location:, job:
|
|
301
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
302
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
303
|
+
|
|
304
|
+
"projects/#{project}/locations/#{location}/jobs/#{job}"
|
|
305
|
+
end
|
|
306
|
+
|
|
248
307
|
##
|
|
249
308
|
# Create a fully-qualified Location resource string.
|
|
250
309
|
#
|
|
@@ -281,6 +340,86 @@ module Google
|
|
|
281
340
|
"projects/#{project}/locations/#{location}/managementServers/#{managementserver}"
|
|
282
341
|
end
|
|
283
342
|
|
|
343
|
+
##
|
|
344
|
+
# Create a fully-qualified RestoreTemplate resource string.
|
|
345
|
+
#
|
|
346
|
+
# The resource will be in the following format:
|
|
347
|
+
#
|
|
348
|
+
# `projects/{project}/locations/{location}/restoreTemplates/{restore_template}`
|
|
349
|
+
#
|
|
350
|
+
# @param project [String]
|
|
351
|
+
# @param location [String]
|
|
352
|
+
# @param restore_template [String]
|
|
353
|
+
#
|
|
354
|
+
# @return [::String]
|
|
355
|
+
def restore_template_path project:, location:, restore_template:
|
|
356
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
357
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
358
|
+
|
|
359
|
+
"projects/#{project}/locations/#{location}/restoreTemplates/#{restore_template}"
|
|
360
|
+
end
|
|
361
|
+
|
|
362
|
+
##
|
|
363
|
+
# Create a fully-qualified RestoreTemplateExecution resource string.
|
|
364
|
+
#
|
|
365
|
+
# The resource will be in the following format:
|
|
366
|
+
#
|
|
367
|
+
# `projects/{project}/locations/{location}/restoreTemplates/{restore_template}/executions/{execution}`
|
|
368
|
+
#
|
|
369
|
+
# @param project [String]
|
|
370
|
+
# @param location [String]
|
|
371
|
+
# @param restore_template [String]
|
|
372
|
+
# @param execution [String]
|
|
373
|
+
#
|
|
374
|
+
# @return [::String]
|
|
375
|
+
def restore_template_execution_path project:, location:, restore_template:, execution:
|
|
376
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
377
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
378
|
+
raise ::ArgumentError, "restore_template cannot contain /" if restore_template.to_s.include? "/"
|
|
379
|
+
|
|
380
|
+
"projects/#{project}/locations/#{location}/restoreTemplates/#{restore_template}/executions/#{execution}"
|
|
381
|
+
end
|
|
382
|
+
|
|
383
|
+
##
|
|
384
|
+
# Create a fully-qualified RestoreVerificationPlan resource string.
|
|
385
|
+
#
|
|
386
|
+
# The resource will be in the following format:
|
|
387
|
+
#
|
|
388
|
+
# `projects/{project}/locations/{location}/restoreVerificationPlans/{restore_verification_plan}`
|
|
389
|
+
#
|
|
390
|
+
# @param project [String]
|
|
391
|
+
# @param location [String]
|
|
392
|
+
# @param restore_verification_plan [String]
|
|
393
|
+
#
|
|
394
|
+
# @return [::String]
|
|
395
|
+
def restore_verification_plan_path project:, location:, restore_verification_plan:
|
|
396
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
397
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
398
|
+
|
|
399
|
+
"projects/#{project}/locations/#{location}/restoreVerificationPlans/#{restore_verification_plan}"
|
|
400
|
+
end
|
|
401
|
+
|
|
402
|
+
##
|
|
403
|
+
# Create a fully-qualified RestoreVerificationPlanAssociation resource string.
|
|
404
|
+
#
|
|
405
|
+
# The resource will be in the following format:
|
|
406
|
+
#
|
|
407
|
+
# `projects/{project}/locations/{location}/restoreVerificationPlans/{restore_verification_plan}/associations/{association}`
|
|
408
|
+
#
|
|
409
|
+
# @param project [String]
|
|
410
|
+
# @param location [String]
|
|
411
|
+
# @param restore_verification_plan [String]
|
|
412
|
+
# @param association [String]
|
|
413
|
+
#
|
|
414
|
+
# @return [::String]
|
|
415
|
+
def restore_verification_plan_association_path project:, location:, restore_verification_plan:, association:
|
|
416
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
417
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
418
|
+
raise ::ArgumentError, "restore_verification_plan cannot contain /" if restore_verification_plan.to_s.include? "/"
|
|
419
|
+
|
|
420
|
+
"projects/#{project}/locations/#{location}/restoreVerificationPlans/#{restore_verification_plan}/associations/#{association}"
|
|
421
|
+
end
|
|
422
|
+
|
|
284
423
|
##
|
|
285
424
|
# Create a fully-qualified StoragePool resource string.
|
|
286
425
|
#
|