google-cloud-backupdr-v1 0.2.1 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (27) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/backupdr/v1/backupdr/client.rb +2829 -157
  3. data/lib/google/cloud/backupdr/v1/backupdr/operations.rb +3 -10
  4. data/lib/google/cloud/backupdr/v1/backupdr/paths.rb +101 -0
  5. data/lib/google/cloud/backupdr/v1/backupdr/rest/client.rb +2656 -151
  6. data/lib/google/cloud/backupdr/v1/backupdr/rest/operations.rb +3 -10
  7. data/lib/google/cloud/backupdr/v1/backupdr/rest/service_stub.rb +1382 -17
  8. data/lib/google/cloud/backupdr/v1/backupdr_pb.rb +5 -1
  9. data/lib/google/cloud/backupdr/v1/backupdr_services_pb.rb +48 -0
  10. data/lib/google/cloud/backupdr/v1/backupplan_pb.rb +62 -0
  11. data/lib/google/cloud/backupdr/v1/backupplanassociation_pb.rb +59 -0
  12. data/lib/google/cloud/backupdr/v1/backupvault_ba_pb.rb +46 -0
  13. data/lib/google/cloud/backupdr/v1/backupvault_gce_pb.rb +87 -0
  14. data/lib/google/cloud/backupdr/v1/backupvault_pb.rb +99 -0
  15. data/lib/google/cloud/backupdr/v1/version.rb +1 -1
  16. data/proto_docs/google/api/client.rb +20 -0
  17. data/proto_docs/google/api/field_info.rb +88 -0
  18. data/proto_docs/google/cloud/backupdr/v1/backupdr.rb +11 -10
  19. data/proto_docs/google/cloud/backupdr/v1/backupplan.rb +414 -0
  20. data/proto_docs/google/cloud/backupdr/v1/backupplanassociation.rb +272 -0
  21. data/proto_docs/google/cloud/backupdr/v1/backupvault.rb +1103 -0
  22. data/proto_docs/google/cloud/backupdr/v1/backupvault_ba.rb +47 -0
  23. data/proto_docs/google/cloud/backupdr/v1/backupvault_gce.rb +993 -0
  24. data/proto_docs/google/longrunning/operations.rb +19 -14
  25. data/proto_docs/google/type/dayofweek.rb +49 -0
  26. data/proto_docs/google/type/month.rb +64 -0
  27. metadata +16 -3
@@ -124,14 +124,6 @@ module Google
124
124
  # Lists operations that match the specified filter in the request. If the
125
125
  # server doesn't support this method, it returns `UNIMPLEMENTED`.
126
126
  #
127
- # NOTE: the `name` binding allows API services to override the binding
128
- # to use different resource name schemes, such as `users/*/operations`. To
129
- # override the binding, API services can add a binding such as
130
- # `"/v1/{name=users/*}/operations"` to their service configuration.
131
- # For backwards compatibility, the default name includes the operations
132
- # collection id, however overriding users must ensure the name binding
133
- # is the parent resource, without the operations collection id.
134
- #
135
127
  # @overload list_operations(request, options = nil)
136
128
  # Pass arguments to `list_operations` via a request object, either of type
137
129
  # {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash.
@@ -421,8 +413,9 @@ module Google
421
413
  # other methods to check whether the cancellation succeeded or whether the
422
414
  # operation completed despite cancellation. On successful cancellation,
423
415
  # the operation is not deleted; instead, it becomes an operation with
424
- # an {::Google::Longrunning::Operation#error Operation.error} value with a {::Google::Rpc::Status#code google.rpc.Status.code} of 1,
425
- # corresponding to `Code.CANCELLED`.
416
+ # an {::Google::Longrunning::Operation#error Operation.error} value with a
417
+ # {::Google::Rpc::Status#code google.rpc.Status.code} of `1`, corresponding to
418
+ # `Code.CANCELLED`.
426
419
  #
427
420
  # @overload cancel_operation(request, options = nil)
428
421
  # Pass arguments to `cancel_operation` via a request object, either of type
@@ -24,6 +24,107 @@ 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 Backup resource string.
29
+ #
30
+ # The resource will be in the following format:
31
+ #
32
+ # `projects/{project}/locations/{location}/backupVaults/{backupvault}/dataSources/{datasource}/backups/{backup}`
33
+ #
34
+ # @param project [String]
35
+ # @param location [String]
36
+ # @param backupvault [String]
37
+ # @param datasource [String]
38
+ # @param backup [String]
39
+ #
40
+ # @return [::String]
41
+ def backup_path project:, location:, backupvault:, datasource:, backup:
42
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
43
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
44
+ raise ::ArgumentError, "backupvault cannot contain /" if backupvault.to_s.include? "/"
45
+ raise ::ArgumentError, "datasource cannot contain /" if datasource.to_s.include? "/"
46
+
47
+ "projects/#{project}/locations/#{location}/backupVaults/#{backupvault}/dataSources/#{datasource}/backups/#{backup}"
48
+ end
49
+
50
+ ##
51
+ # Create a fully-qualified BackupPlan resource string.
52
+ #
53
+ # The resource will be in the following format:
54
+ #
55
+ # `projects/{project}/locations/{location}/backupPlans/{backup_plan}`
56
+ #
57
+ # @param project [String]
58
+ # @param location [String]
59
+ # @param backup_plan [String]
60
+ #
61
+ # @return [::String]
62
+ def backup_plan_path project:, location:, backup_plan:
63
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
64
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
65
+
66
+ "projects/#{project}/locations/#{location}/backupPlans/#{backup_plan}"
67
+ end
68
+
69
+ ##
70
+ # Create a fully-qualified BackupPlanAssociation resource string.
71
+ #
72
+ # The resource will be in the following format:
73
+ #
74
+ # `projects/{project}/locations/{location}/backupPlanAssociations/{backup_plan_association}`
75
+ #
76
+ # @param project [String]
77
+ # @param location [String]
78
+ # @param backup_plan_association [String]
79
+ #
80
+ # @return [::String]
81
+ def backup_plan_association_path project:, location:, backup_plan_association:
82
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
83
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
84
+
85
+ "projects/#{project}/locations/#{location}/backupPlanAssociations/#{backup_plan_association}"
86
+ end
87
+
88
+ ##
89
+ # Create a fully-qualified BackupVault resource string.
90
+ #
91
+ # The resource will be in the following format:
92
+ #
93
+ # `projects/{project}/locations/{location}/backupVaults/{backupvault}`
94
+ #
95
+ # @param project [String]
96
+ # @param location [String]
97
+ # @param backupvault [String]
98
+ #
99
+ # @return [::String]
100
+ def backup_vault_path project:, location:, backupvault:
101
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
102
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
103
+
104
+ "projects/#{project}/locations/#{location}/backupVaults/#{backupvault}"
105
+ end
106
+
107
+ ##
108
+ # Create a fully-qualified DataSource resource string.
109
+ #
110
+ # The resource will be in the following format:
111
+ #
112
+ # `projects/{project}/locations/{location}/backupVaults/{backupvault}/dataSources/{datasource}`
113
+ #
114
+ # @param project [String]
115
+ # @param location [String]
116
+ # @param backupvault [String]
117
+ # @param datasource [String]
118
+ #
119
+ # @return [::String]
120
+ def data_source_path project:, location:, backupvault:, datasource:
121
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
122
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
123
+ raise ::ArgumentError, "backupvault cannot contain /" if backupvault.to_s.include? "/"
124
+
125
+ "projects/#{project}/locations/#{location}/backupVaults/#{backupvault}/dataSources/#{datasource}"
126
+ end
127
+
27
128
  ##
28
129
  # Create a fully-qualified Location resource string.
29
130
  #