google-apis-backupdr_v1 0.12.0 → 0.14.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -124,6 +124,391 @@ module Google
124
124
  execute_or_queue_command(command, &block)
125
125
  end
126
126
 
127
+ # Create a BackupPlanAssociation
128
+ # @param [String] parent
129
+ # Required. The backup plan association project and location in the format `
130
+ # projects/`project_id`/locations/`location``. In Cloud BackupDR locations map
131
+ # to GCP regions, for example **us-central1**.
132
+ # @param [Google::Apis::BackupdrV1::BackupPlanAssociation] backup_plan_association_object
133
+ # @param [String] backup_plan_association_id
134
+ # Required. The name of the backup plan association to create. The name must be
135
+ # unique for the specified project and location.
136
+ # @param [String] request_id
137
+ # Optional. An optional request ID to identify requests. Specify a unique
138
+ # request ID so that if you must retry your request, the server will know to
139
+ # ignore the request if it has already been completed. The server will guarantee
140
+ # that for at least 60 minutes since the first request. For example, consider a
141
+ # situation where you make an initial request and t he request times out. If you
142
+ # make the request again with the same request ID, the server can check if
143
+ # original operation with the same request ID was received, and if so, will
144
+ # ignore the second request. This prevents clients from accidentally creating
145
+ # duplicate commitments. The request ID must be a valid UUID with the exception
146
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
147
+ # @param [String] fields
148
+ # Selector specifying which fields to include in a partial response.
149
+ # @param [String] quota_user
150
+ # Available to use for quota purposes for server-side applications. Can be any
151
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
152
+ # @param [Google::Apis::RequestOptions] options
153
+ # Request-specific options
154
+ #
155
+ # @yield [result, err] Result & error if block supplied
156
+ # @yieldparam result [Google::Apis::BackupdrV1::Operation] parsed result object
157
+ # @yieldparam err [StandardError] error object if request failed
158
+ #
159
+ # @return [Google::Apis::BackupdrV1::Operation]
160
+ #
161
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
162
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
163
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
164
+ def create_project_location_backup_plan_association(parent, backup_plan_association_object = nil, backup_plan_association_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
165
+ command = make_simple_command(:post, 'v1/{+parent}/backupPlanAssociations', options)
166
+ command.request_representation = Google::Apis::BackupdrV1::BackupPlanAssociation::Representation
167
+ command.request_object = backup_plan_association_object
168
+ command.response_representation = Google::Apis::BackupdrV1::Operation::Representation
169
+ command.response_class = Google::Apis::BackupdrV1::Operation
170
+ command.params['parent'] = parent unless parent.nil?
171
+ command.query['backupPlanAssociationId'] = backup_plan_association_id unless backup_plan_association_id.nil?
172
+ command.query['requestId'] = request_id unless request_id.nil?
173
+ command.query['fields'] = fields unless fields.nil?
174
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
175
+ execute_or_queue_command(command, &block)
176
+ end
177
+
178
+ # Deletes a single BackupPlanAssociation.
179
+ # @param [String] name
180
+ # Required. Name of the backup plan association resource, in the format `
181
+ # projects/`project`/locations/`location`/backupPlanAssociations/`
182
+ # backupPlanAssociationId``
183
+ # @param [String] request_id
184
+ # Optional. An optional request ID to identify requests. Specify a unique
185
+ # request ID so that if you must retry your request, the server will know to
186
+ # ignore the request if it has already been completed. The server will guarantee
187
+ # that for at least 60 minutes after the first request. For example, consider a
188
+ # situation where you make an initial request and the request times out. If you
189
+ # make the request again with the same request ID, the server can check if
190
+ # original operation with the same request ID was received, and if so, will
191
+ # ignore the second request. This prevents clients from accidentally creating
192
+ # duplicate commitments. The request ID must be a valid UUID with the exception
193
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
194
+ # @param [String] fields
195
+ # Selector specifying which fields to include in a partial response.
196
+ # @param [String] quota_user
197
+ # Available to use for quota purposes for server-side applications. Can be any
198
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
199
+ # @param [Google::Apis::RequestOptions] options
200
+ # Request-specific options
201
+ #
202
+ # @yield [result, err] Result & error if block supplied
203
+ # @yieldparam result [Google::Apis::BackupdrV1::Operation] parsed result object
204
+ # @yieldparam err [StandardError] error object if request failed
205
+ #
206
+ # @return [Google::Apis::BackupdrV1::Operation]
207
+ #
208
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
209
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
210
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
211
+ def delete_project_location_backup_plan_association(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
212
+ command = make_simple_command(:delete, 'v1/{+name}', options)
213
+ command.response_representation = Google::Apis::BackupdrV1::Operation::Representation
214
+ command.response_class = Google::Apis::BackupdrV1::Operation
215
+ command.params['name'] = name unless name.nil?
216
+ command.query['requestId'] = request_id unless request_id.nil?
217
+ command.query['fields'] = fields unless fields.nil?
218
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
219
+ execute_or_queue_command(command, &block)
220
+ end
221
+
222
+ # Gets details of a single BackupPlanAssociation.
223
+ # @param [String] name
224
+ # Required. Name of the backup plan association resource, in the format `
225
+ # projects/`project`/locations/`location`/backupPlanAssociations/`
226
+ # backupPlanAssociationId``
227
+ # @param [String] fields
228
+ # Selector specifying which fields to include in a partial response.
229
+ # @param [String] quota_user
230
+ # Available to use for quota purposes for server-side applications. Can be any
231
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
232
+ # @param [Google::Apis::RequestOptions] options
233
+ # Request-specific options
234
+ #
235
+ # @yield [result, err] Result & error if block supplied
236
+ # @yieldparam result [Google::Apis::BackupdrV1::BackupPlanAssociation] parsed result object
237
+ # @yieldparam err [StandardError] error object if request failed
238
+ #
239
+ # @return [Google::Apis::BackupdrV1::BackupPlanAssociation]
240
+ #
241
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
242
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
243
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
244
+ def get_project_location_backup_plan_association(name, fields: nil, quota_user: nil, options: nil, &block)
245
+ command = make_simple_command(:get, 'v1/{+name}', options)
246
+ command.response_representation = Google::Apis::BackupdrV1::BackupPlanAssociation::Representation
247
+ command.response_class = Google::Apis::BackupdrV1::BackupPlanAssociation
248
+ command.params['name'] = name unless name.nil?
249
+ command.query['fields'] = fields unless fields.nil?
250
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
251
+ execute_or_queue_command(command, &block)
252
+ end
253
+
254
+ # Lists BackupPlanAssociations in a given project and location.
255
+ # @param [String] parent
256
+ # Required. The project and location for which to retrieve backup Plan
257
+ # Associations information, in the format `projects/`project_id`/locations/`
258
+ # location``. In Cloud BackupDR, locations map to GCP regions, for example **us-
259
+ # central1**. To retrieve backup plan associations for all locations, use "-"
260
+ # for the ``location`` value.
261
+ # @param [String] filter
262
+ # Optional. Filtering results
263
+ # @param [Fixnum] page_size
264
+ # Optional. Requested page size. Server may return fewer items than requested.
265
+ # If unspecified, server will pick an appropriate default.
266
+ # @param [String] page_token
267
+ # Optional. A token identifying a page of results the server should return.
268
+ # @param [String] fields
269
+ # Selector specifying which fields to include in a partial response.
270
+ # @param [String] quota_user
271
+ # Available to use for quota purposes for server-side applications. Can be any
272
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
273
+ # @param [Google::Apis::RequestOptions] options
274
+ # Request-specific options
275
+ #
276
+ # @yield [result, err] Result & error if block supplied
277
+ # @yieldparam result [Google::Apis::BackupdrV1::ListBackupPlanAssociationsResponse] parsed result object
278
+ # @yieldparam err [StandardError] error object if request failed
279
+ #
280
+ # @return [Google::Apis::BackupdrV1::ListBackupPlanAssociationsResponse]
281
+ #
282
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
283
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
284
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
285
+ def list_project_location_backup_plan_associations(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
286
+ command = make_simple_command(:get, 'v1/{+parent}/backupPlanAssociations', options)
287
+ command.response_representation = Google::Apis::BackupdrV1::ListBackupPlanAssociationsResponse::Representation
288
+ command.response_class = Google::Apis::BackupdrV1::ListBackupPlanAssociationsResponse
289
+ command.params['parent'] = parent unless parent.nil?
290
+ command.query['filter'] = filter unless filter.nil?
291
+ command.query['pageSize'] = page_size unless page_size.nil?
292
+ command.query['pageToken'] = page_token unless page_token.nil?
293
+ command.query['fields'] = fields unless fields.nil?
294
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
295
+ execute_or_queue_command(command, &block)
296
+ end
297
+
298
+ # Triggers a new Backup.
299
+ # @param [String] name
300
+ # Required. Name of the backup plan association resource, in the format `
301
+ # projects/`project`/locations/`location`/backupPlanAssociations/`
302
+ # backupPlanAssociationId``
303
+ # @param [Google::Apis::BackupdrV1::TriggerBackupRequest] trigger_backup_request_object
304
+ # @param [String] fields
305
+ # Selector specifying which fields to include in a partial response.
306
+ # @param [String] quota_user
307
+ # Available to use for quota purposes for server-side applications. Can be any
308
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
309
+ # @param [Google::Apis::RequestOptions] options
310
+ # Request-specific options
311
+ #
312
+ # @yield [result, err] Result & error if block supplied
313
+ # @yieldparam result [Google::Apis::BackupdrV1::Operation] parsed result object
314
+ # @yieldparam err [StandardError] error object if request failed
315
+ #
316
+ # @return [Google::Apis::BackupdrV1::Operation]
317
+ #
318
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
319
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
320
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
321
+ def trigger_backup_plan_association_backup(name, trigger_backup_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
322
+ command = make_simple_command(:post, 'v1/{+name}:triggerBackup', options)
323
+ command.request_representation = Google::Apis::BackupdrV1::TriggerBackupRequest::Representation
324
+ command.request_object = trigger_backup_request_object
325
+ command.response_representation = Google::Apis::BackupdrV1::Operation::Representation
326
+ command.response_class = Google::Apis::BackupdrV1::Operation
327
+ command.params['name'] = name unless name.nil?
328
+ command.query['fields'] = fields unless fields.nil?
329
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
330
+ execute_or_queue_command(command, &block)
331
+ end
332
+
333
+ # Create a BackupPlan
334
+ # @param [String] parent
335
+ # Required. The `BackupPlan` project and location in the format `projects/`
336
+ # project`/locations/`location``. In Cloud BackupDR locations map to GCP regions,
337
+ # for example **us-central1**.
338
+ # @param [Google::Apis::BackupdrV1::BackupPlan] backup_plan_object
339
+ # @param [String] backup_plan_id
340
+ # Required. The name of the `BackupPlan` to create. The name must be unique for
341
+ # the specified project and location.The name must start with a lowercase letter
342
+ # followed by up to 62 lowercase letters, numbers, or hyphens. Pattern, /a-z`,62`
343
+ # /.
344
+ # @param [String] request_id
345
+ # Optional. An optional request ID to identify requests. Specify a unique
346
+ # request ID so that if you must retry your request, the server will know to
347
+ # ignore the request if it has already been completed. The server will guarantee
348
+ # that for at least 60 minutes since the first request. For example, consider a
349
+ # situation where you make an initial request and t he request times out. If you
350
+ # make the request again with the same request ID, the server can check if
351
+ # original operation with the same request ID was received, and if so, will
352
+ # ignore the second request. This prevents clients from accidentally creating
353
+ # duplicate commitments. The request ID must be a valid UUID with the exception
354
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
355
+ # @param [String] fields
356
+ # Selector specifying which fields to include in a partial response.
357
+ # @param [String] quota_user
358
+ # Available to use for quota purposes for server-side applications. Can be any
359
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
360
+ # @param [Google::Apis::RequestOptions] options
361
+ # Request-specific options
362
+ #
363
+ # @yield [result, err] Result & error if block supplied
364
+ # @yieldparam result [Google::Apis::BackupdrV1::Operation] parsed result object
365
+ # @yieldparam err [StandardError] error object if request failed
366
+ #
367
+ # @return [Google::Apis::BackupdrV1::Operation]
368
+ #
369
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
370
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
371
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
372
+ def create_project_location_backup_plan(parent, backup_plan_object = nil, backup_plan_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
373
+ command = make_simple_command(:post, 'v1/{+parent}/backupPlans', options)
374
+ command.request_representation = Google::Apis::BackupdrV1::BackupPlan::Representation
375
+ command.request_object = backup_plan_object
376
+ command.response_representation = Google::Apis::BackupdrV1::Operation::Representation
377
+ command.response_class = Google::Apis::BackupdrV1::Operation
378
+ command.params['parent'] = parent unless parent.nil?
379
+ command.query['backupPlanId'] = backup_plan_id unless backup_plan_id.nil?
380
+ command.query['requestId'] = request_id unless request_id.nil?
381
+ command.query['fields'] = fields unless fields.nil?
382
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
383
+ execute_or_queue_command(command, &block)
384
+ end
385
+
386
+ # Deletes a single BackupPlan.
387
+ # @param [String] name
388
+ # Required. The resource name of the `BackupPlan` to delete. Format: `projects/`
389
+ # project`/locations/`location`/backupPlans/`backup_plan``
390
+ # @param [String] request_id
391
+ # Optional. An optional request ID to identify requests. Specify a unique
392
+ # request ID so that if you must retry your request, the server will know to
393
+ # ignore the request if it has already been completed. The server will guarantee
394
+ # that for at least 60 minutes after the first request. For example, consider a
395
+ # situation where you make an initial request and the request times out. If you
396
+ # make the request again with the same request ID, the server can check if
397
+ # original operation with the same request ID was received, and if so, will
398
+ # ignore the second request. This prevents clients from accidentally creating
399
+ # duplicate commitments. The request ID must be a valid UUID with the exception
400
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
401
+ # @param [String] fields
402
+ # Selector specifying which fields to include in a partial response.
403
+ # @param [String] quota_user
404
+ # Available to use for quota purposes for server-side applications. Can be any
405
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
406
+ # @param [Google::Apis::RequestOptions] options
407
+ # Request-specific options
408
+ #
409
+ # @yield [result, err] Result & error if block supplied
410
+ # @yieldparam result [Google::Apis::BackupdrV1::Operation] parsed result object
411
+ # @yieldparam err [StandardError] error object if request failed
412
+ #
413
+ # @return [Google::Apis::BackupdrV1::Operation]
414
+ #
415
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
416
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
417
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
418
+ def delete_project_location_backup_plan(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
419
+ command = make_simple_command(:delete, 'v1/{+name}', options)
420
+ command.response_representation = Google::Apis::BackupdrV1::Operation::Representation
421
+ command.response_class = Google::Apis::BackupdrV1::Operation
422
+ command.params['name'] = name unless name.nil?
423
+ command.query['requestId'] = request_id unless request_id.nil?
424
+ command.query['fields'] = fields unless fields.nil?
425
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
426
+ execute_or_queue_command(command, &block)
427
+ end
428
+
429
+ # Gets details of a single BackupPlan.
430
+ # @param [String] name
431
+ # Required. The resource name of the `BackupPlan` to retrieve. Format: `projects/
432
+ # `project`/locations/`location`/backupPlans/`backup_plan``
433
+ # @param [String] fields
434
+ # Selector specifying which fields to include in a partial response.
435
+ # @param [String] quota_user
436
+ # Available to use for quota purposes for server-side applications. Can be any
437
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
438
+ # @param [Google::Apis::RequestOptions] options
439
+ # Request-specific options
440
+ #
441
+ # @yield [result, err] Result & error if block supplied
442
+ # @yieldparam result [Google::Apis::BackupdrV1::BackupPlan] parsed result object
443
+ # @yieldparam err [StandardError] error object if request failed
444
+ #
445
+ # @return [Google::Apis::BackupdrV1::BackupPlan]
446
+ #
447
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
448
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
449
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
450
+ def get_project_location_backup_plan(name, fields: nil, quota_user: nil, options: nil, &block)
451
+ command = make_simple_command(:get, 'v1/{+name}', options)
452
+ command.response_representation = Google::Apis::BackupdrV1::BackupPlan::Representation
453
+ command.response_class = Google::Apis::BackupdrV1::BackupPlan
454
+ command.params['name'] = name unless name.nil?
455
+ command.query['fields'] = fields unless fields.nil?
456
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
457
+ execute_or_queue_command(command, &block)
458
+ end
459
+
460
+ # Lists BackupPlans in a given project and location.
461
+ # @param [String] parent
462
+ # Required. The project and location for which to retrieve `BackupPlans`
463
+ # information. Format: `projects/`project`/locations/`location``. In Cloud
464
+ # BackupDR, locations map to GCP regions, for e.g. **us-central1**. To retrieve
465
+ # backup plans for all locations, use "-" for the ``location`` value.
466
+ # @param [String] filter
467
+ # Optional. Field match expression used to filter the results.
468
+ # @param [String] order_by
469
+ # Optional. Field by which to sort the results.
470
+ # @param [Fixnum] page_size
471
+ # Optional. The maximum number of `BackupPlans` to return in a single response.
472
+ # If not specified, a default value will be chosen by the service. Note that the
473
+ # response may include a partial list and a caller should only rely on the
474
+ # response's next_page_token to determine if there are more instances left to be
475
+ # queried.
476
+ # @param [String] page_token
477
+ # Optional. The value of next_page_token received from a previous `
478
+ # ListBackupPlans` call. Provide this to retrieve the subsequent page in a multi-
479
+ # page list of results. When paginating, all other parameters provided to `
480
+ # ListBackupPlans` must match the call that provided the page token.
481
+ # @param [String] fields
482
+ # Selector specifying which fields to include in a partial response.
483
+ # @param [String] quota_user
484
+ # Available to use for quota purposes for server-side applications. Can be any
485
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
486
+ # @param [Google::Apis::RequestOptions] options
487
+ # Request-specific options
488
+ #
489
+ # @yield [result, err] Result & error if block supplied
490
+ # @yieldparam result [Google::Apis::BackupdrV1::ListBackupPlansResponse] parsed result object
491
+ # @yieldparam err [StandardError] error object if request failed
492
+ #
493
+ # @return [Google::Apis::BackupdrV1::ListBackupPlansResponse]
494
+ #
495
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
496
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
497
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
498
+ def list_project_location_backup_plans(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
499
+ command = make_simple_command(:get, 'v1/{+parent}/backupPlans', options)
500
+ command.response_representation = Google::Apis::BackupdrV1::ListBackupPlansResponse::Representation
501
+ command.response_class = Google::Apis::BackupdrV1::ListBackupPlansResponse
502
+ command.params['parent'] = parent unless parent.nil?
503
+ command.query['filter'] = filter unless filter.nil?
504
+ command.query['orderBy'] = order_by unless order_by.nil?
505
+ command.query['pageSize'] = page_size unless page_size.nil?
506
+ command.query['pageToken'] = page_token unless page_token.nil?
507
+ command.query['fields'] = fields unless fields.nil?
508
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
509
+ execute_or_queue_command(command, &block)
510
+ end
511
+
127
512
  #
128
513
  # @param [String] parent
129
514
  # Required. Value for parent.
@@ -364,11 +749,11 @@ module Google
364
749
 
365
750
  # Updates the settings of a BackupVault.
366
751
  # @param [String] name
367
- # Output only. The resource name.
752
+ # Output only. Identifier. The resource name.
368
753
  # @param [Google::Apis::BackupdrV1::BackupVault] backup_vault_object
369
754
  # @param [Boolean] force
370
755
  # Optional. If set to true, will not check plan duration against backup vault
371
- # enforcement duration. Non-standard field.
756
+ # enforcement duration.
372
757
  # @param [String] request_id
373
758
  # Optional. An optional request ID to identify requests. Specify a unique
374
759
  # request ID so that if you must retry your request, the server will know to
@@ -676,7 +1061,7 @@ module Google
676
1061
 
677
1062
  # Updates the settings of a DataSource.
678
1063
  # @param [String] name
679
- # Output only. The resource name.
1064
+ # Output only. Identifier. The resource name.
680
1065
  # @param [Google::Apis::BackupdrV1::DataSource] data_source_object
681
1066
  # @param [Boolean] allow_missing
682
1067
  # Optional. Enable upsert.
@@ -920,7 +1305,7 @@ module Google
920
1305
 
921
1306
  # Updates the settings of a Backup.
922
1307
  # @param [String] name
923
- # Output only. Name of the resource.
1308
+ # Output only. Identifier. Name of the resource.
924
1309
  # @param [Google::Apis::BackupdrV1::Backup] backup_object
925
1310
  # @param [String] request_id
926
1311
  # Optional. An optional request ID to identify requests. Specify a unique
@@ -970,6 +1355,40 @@ module Google
970
1355
  execute_or_queue_command(command, &block)
971
1356
  end
972
1357
 
1358
+ # Restore from a Backup
1359
+ # @param [String] name
1360
+ # Required. The resource name of the Backup instance, in the format 'projects/*/
1361
+ # locations/*/backupVaults/*/dataSources/*/backups/'.
1362
+ # @param [Google::Apis::BackupdrV1::RestoreBackupRequest] restore_backup_request_object
1363
+ # @param [String] fields
1364
+ # Selector specifying which fields to include in a partial response.
1365
+ # @param [String] quota_user
1366
+ # Available to use for quota purposes for server-side applications. Can be any
1367
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1368
+ # @param [Google::Apis::RequestOptions] options
1369
+ # Request-specific options
1370
+ #
1371
+ # @yield [result, err] Result & error if block supplied
1372
+ # @yieldparam result [Google::Apis::BackupdrV1::Operation] parsed result object
1373
+ # @yieldparam err [StandardError] error object if request failed
1374
+ #
1375
+ # @return [Google::Apis::BackupdrV1::Operation]
1376
+ #
1377
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1378
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1379
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1380
+ def restore_backup(name, restore_backup_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1381
+ command = make_simple_command(:post, 'v1/{+name}:restore', options)
1382
+ command.request_representation = Google::Apis::BackupdrV1::RestoreBackupRequest::Representation
1383
+ command.request_object = restore_backup_request_object
1384
+ command.response_representation = Google::Apis::BackupdrV1::Operation::Representation
1385
+ command.response_class = Google::Apis::BackupdrV1::Operation
1386
+ command.params['name'] = name unless name.nil?
1387
+ command.query['fields'] = fields unless fields.nil?
1388
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1389
+ execute_or_queue_command(command, &block)
1390
+ end
1391
+
973
1392
  # Creates a new ManagementServer in a given project and location.
974
1393
  # @param [String] parent
975
1394
  # Required. The management server project and location in the format 'projects/`
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-backupdr_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.14.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-07-25 00:00:00.000000000 Z
11
+ date: 2024-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-backupdr_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-backupdr_v1/v0.12.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-backupdr_v1/v0.14.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-backupdr_v1
63
63
  post_install_message:
64
64
  rdoc_options: []