google-cloud-backupdr-v1 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/google/cloud/backupdr/v1/backupdr/client.rb +852 -14
- data/lib/google/cloud/backupdr/v1/backupdr/paths.rb +76 -0
- data/lib/google/cloud/backupdr/v1/backupdr/rest/client.rb +818 -29
- data/lib/google/cloud/backupdr/v1/backupdr/rest/service_stub.rb +429 -0
- data/lib/google/cloud/backupdr/v1/backupdr_pb.rb +4 -1
- data/lib/google/cloud/backupdr/v1/backupdr_services_pb.rb +14 -0
- data/lib/google/cloud/backupdr/v1/backupplan_pb.rb +9 -1
- data/lib/google/cloud/backupdr/v1/backupplanassociation_pb.rb +8 -1
- data/lib/google/cloud/backupdr/v1/backupvault_cloudsql_pb.rb +52 -0
- data/lib/google/cloud/backupdr/v1/backupvault_disk_pb.rb +54 -0
- data/lib/google/cloud/backupdr/v1/backupvault_gce_pb.rb +1 -1
- data/lib/google/cloud/backupdr/v1/backupvault_pb.rb +5 -1
- data/lib/google/cloud/backupdr/v1/datasourcereference_pb.rb +55 -0
- data/lib/google/cloud/backupdr/v1/version.rb +1 -1
- data/proto_docs/google/cloud/backupdr/v1/backupdr.rb +3 -0
- data/proto_docs/google/cloud/backupdr/v1/backupplan.rb +176 -8
- data/proto_docs/google/cloud/backupdr/v1/backupplanassociation.rb +117 -2
- data/proto_docs/google/cloud/backupdr/v1/backupvault.rb +85 -2
- data/proto_docs/google/cloud/backupdr/v1/backupvault_cloudsql.rb +125 -0
- data/proto_docs/google/cloud/backupdr/v1/backupvault_disk.rb +241 -0
- data/proto_docs/google/cloud/backupdr/v1/backupvault_gce.rb +7 -5
- data/proto_docs/google/cloud/backupdr/v1/datasourcereference.rb +165 -0
- metadata +8 -2
@@ -85,6 +85,27 @@ module Google
|
|
85
85
|
"projects/#{project}/locations/#{location}/backupPlanAssociations/#{backup_plan_association}"
|
86
86
|
end
|
87
87
|
|
88
|
+
##
|
89
|
+
# Create a fully-qualified BackupPlanRevision resource string.
|
90
|
+
#
|
91
|
+
# The resource will be in the following format:
|
92
|
+
#
|
93
|
+
# `projects/{project}/locations/{location}/backupPlans/{backup_plan}/revisions/{revision}`
|
94
|
+
#
|
95
|
+
# @param project [String]
|
96
|
+
# @param location [String]
|
97
|
+
# @param backup_plan [String]
|
98
|
+
# @param revision [String]
|
99
|
+
#
|
100
|
+
# @return [::String]
|
101
|
+
def backup_plan_revision_path project:, location:, backup_plan:, revision:
|
102
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
103
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
104
|
+
raise ::ArgumentError, "backup_plan cannot contain /" if backup_plan.to_s.include? "/"
|
105
|
+
|
106
|
+
"projects/#{project}/locations/#{location}/backupPlans/#{backup_plan}/revisions/#{revision}"
|
107
|
+
end
|
108
|
+
|
88
109
|
##
|
89
110
|
# Create a fully-qualified BackupVault resource string.
|
90
111
|
#
|
@@ -125,6 +146,42 @@ module Google
|
|
125
146
|
"projects/#{project}/locations/#{location}/backupVaults/#{backupvault}/dataSources/#{datasource}"
|
126
147
|
end
|
127
148
|
|
149
|
+
##
|
150
|
+
# Create a fully-qualified DataSourceReference resource string.
|
151
|
+
#
|
152
|
+
# The resource will be in the following format:
|
153
|
+
#
|
154
|
+
# `projects/{project}/locations/{location}/dataSourceReferences/{data_source_reference}`
|
155
|
+
#
|
156
|
+
# @param project [String]
|
157
|
+
# @param location [String]
|
158
|
+
# @param data_source_reference [String]
|
159
|
+
#
|
160
|
+
# @return [::String]
|
161
|
+
def data_source_reference_path project:, location:, data_source_reference:
|
162
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
163
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
164
|
+
|
165
|
+
"projects/#{project}/locations/#{location}/dataSourceReferences/#{data_source_reference}"
|
166
|
+
end
|
167
|
+
|
168
|
+
##
|
169
|
+
# Create a fully-qualified Instance resource string.
|
170
|
+
#
|
171
|
+
# The resource will be in the following format:
|
172
|
+
#
|
173
|
+
# `projects/{project}/instances/{instance}`
|
174
|
+
#
|
175
|
+
# @param project [String]
|
176
|
+
# @param instance [String]
|
177
|
+
#
|
178
|
+
# @return [::String]
|
179
|
+
def instance_path project:, instance:
|
180
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
181
|
+
|
182
|
+
"projects/#{project}/instances/#{instance}"
|
183
|
+
end
|
184
|
+
|
128
185
|
##
|
129
186
|
# Create a fully-qualified Location resource string.
|
130
187
|
#
|
@@ -161,6 +218,25 @@ module Google
|
|
161
218
|
"projects/#{project}/locations/#{location}/managementServers/#{managementserver}"
|
162
219
|
end
|
163
220
|
|
221
|
+
##
|
222
|
+
# Create a fully-qualified StoragePool resource string.
|
223
|
+
#
|
224
|
+
# The resource will be in the following format:
|
225
|
+
#
|
226
|
+
# `projects/{project}/zones/{zone}/storagePools/{storage_pool}`
|
227
|
+
#
|
228
|
+
# @param project [String]
|
229
|
+
# @param zone [String]
|
230
|
+
# @param storage_pool [String]
|
231
|
+
#
|
232
|
+
# @return [::String]
|
233
|
+
def storage_pool_path project:, zone:, storage_pool:
|
234
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
235
|
+
raise ::ArgumentError, "zone cannot contain /" if zone.to_s.include? "/"
|
236
|
+
|
237
|
+
"projects/#{project}/zones/#{zone}/storagePools/#{storage_pool}"
|
238
|
+
end
|
239
|
+
|
164
240
|
extend self
|
165
241
|
end
|
166
242
|
end
|