google-apis-backupdr_v1 0.10.0 → 0.12.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.
@@ -124,11 +124,857 @@ module Google
124
124
  execute_or_queue_command(command, &block)
125
125
  end
126
126
 
127
+ #
128
+ # @param [String] parent
129
+ # Required. Value for parent.
130
+ # @param [Google::Apis::BackupdrV1::BackupVault] backup_vault_object
131
+ # @param [String] backup_vault_id
132
+ # Required. ID of the requesting object If auto-generating ID server-side,
133
+ # remove this field and backup_vault_id from the method_signature of Create RPC
134
+ # @param [String] request_id
135
+ # Optional. An optional request ID to identify requests. Specify a unique
136
+ # request ID so that if you must retry your request, the server will know to
137
+ # ignore the request if it has already been completed. The server will guarantee
138
+ # that for at least 60 minutes since the first request. For example, consider a
139
+ # situation where you make an initial request and the request times out. If you
140
+ # make the request again with the same request ID, the server can check if
141
+ # original operation with the same request ID was received, and if so, will
142
+ # ignore the second request. This prevents clients from accidentally creating
143
+ # duplicate commitments. The request ID must be a valid UUID with the exception
144
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
145
+ # @param [Boolean] validate_only
146
+ # Optional. Only validate the request, but do not perform mutations. The default
147
+ # is 'false'.
148
+ # @param [String] fields
149
+ # Selector specifying which fields to include in a partial response.
150
+ # @param [String] quota_user
151
+ # Available to use for quota purposes for server-side applications. Can be any
152
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
153
+ # @param [Google::Apis::RequestOptions] options
154
+ # Request-specific options
155
+ #
156
+ # @yield [result, err] Result & error if block supplied
157
+ # @yieldparam result [Google::Apis::BackupdrV1::Operation] parsed result object
158
+ # @yieldparam err [StandardError] error object if request failed
159
+ #
160
+ # @return [Google::Apis::BackupdrV1::Operation]
161
+ #
162
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
163
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
164
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
165
+ def create_project_location_backup_vault(parent, backup_vault_object = nil, backup_vault_id: nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
166
+ command = make_simple_command(:post, 'v1/{+parent}/backupVaults', options)
167
+ command.request_representation = Google::Apis::BackupdrV1::BackupVault::Representation
168
+ command.request_object = backup_vault_object
169
+ command.response_representation = Google::Apis::BackupdrV1::Operation::Representation
170
+ command.response_class = Google::Apis::BackupdrV1::Operation
171
+ command.params['parent'] = parent unless parent.nil?
172
+ command.query['backupVaultId'] = backup_vault_id unless backup_vault_id.nil?
173
+ command.query['requestId'] = request_id unless request_id.nil?
174
+ command.query['validateOnly'] = validate_only unless validate_only.nil?
175
+ command.query['fields'] = fields unless fields.nil?
176
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
177
+ execute_or_queue_command(command, &block)
178
+ end
179
+
180
+ # Deletes a BackupVault.
181
+ # @param [String] name
182
+ # Required. Name of the resource.
183
+ # @param [Boolean] allow_missing
184
+ # Optional. If true and the BackupVault is not found, the request will succeed
185
+ # but no action will be taken.
186
+ # @param [String] etag
187
+ # The current etag of the backup vault. If an etag is provided and does not
188
+ # match the current etag of the connection, deletion will be blocked.
189
+ # @param [Boolean] force
190
+ # Optional. If set to true, any data source from this backup vault will also be
191
+ # deleted.
192
+ # @param [String] request_id
193
+ # Optional. An optional request ID to identify requests. Specify a unique
194
+ # request ID so that if you must retry your request, the server will know to
195
+ # ignore the request if it has already been completed. The server will guarantee
196
+ # that for at least 60 minutes after the first request. For example, consider a
197
+ # situation where you make an initial request and the request times out. If you
198
+ # make the request again with the same request ID, the server can check if
199
+ # original operation with the same request ID was received, and if so, will
200
+ # ignore the second request. This prevents clients from accidentally creating
201
+ # duplicate commitments. The request ID must be a valid UUID with the exception
202
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
203
+ # @param [Boolean] validate_only
204
+ # Optional. Only validate the request, but do not perform mutations. The default
205
+ # is 'false'.
206
+ # @param [String] fields
207
+ # Selector specifying which fields to include in a partial response.
208
+ # @param [String] quota_user
209
+ # Available to use for quota purposes for server-side applications. Can be any
210
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
211
+ # @param [Google::Apis::RequestOptions] options
212
+ # Request-specific options
213
+ #
214
+ # @yield [result, err] Result & error if block supplied
215
+ # @yieldparam result [Google::Apis::BackupdrV1::Operation] parsed result object
216
+ # @yieldparam err [StandardError] error object if request failed
217
+ #
218
+ # @return [Google::Apis::BackupdrV1::Operation]
219
+ #
220
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
221
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
222
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
223
+ def delete_project_location_backup_vault(name, allow_missing: nil, etag: nil, force: nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
224
+ command = make_simple_command(:delete, 'v1/{+name}', options)
225
+ command.response_representation = Google::Apis::BackupdrV1::Operation::Representation
226
+ command.response_class = Google::Apis::BackupdrV1::Operation
227
+ command.params['name'] = name unless name.nil?
228
+ command.query['allowMissing'] = allow_missing unless allow_missing.nil?
229
+ command.query['etag'] = etag unless etag.nil?
230
+ command.query['force'] = force unless force.nil?
231
+ command.query['requestId'] = request_id unless request_id.nil?
232
+ command.query['validateOnly'] = validate_only unless validate_only.nil?
233
+ command.query['fields'] = fields unless fields.nil?
234
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
235
+ execute_or_queue_command(command, &block)
236
+ end
237
+
238
+ # FetchUsableBackupVaults lists usable BackupVaults in a given project and
239
+ # location. Usable BackupVault are the ones that user has backupdr.backupVaults.
240
+ # get permission.
241
+ # @param [String] parent
242
+ # Required. The project and location for which to retrieve backupvault stores
243
+ # information, in the format 'projects/`project_id`/locations/`location`'. In
244
+ # Cloud Backup and DR, locations map to Google Cloud regions, for example **us-
245
+ # central1**. To retrieve backupvault stores for all locations, use "-" for the '
246
+ # `location`' value.
247
+ # @param [String] filter
248
+ # Optional. Filtering results.
249
+ # @param [String] order_by
250
+ # Optional. Hint for how to order the results.
251
+ # @param [Fixnum] page_size
252
+ # Optional. Requested page size. Server may return fewer items than requested.
253
+ # If unspecified, server will pick an appropriate default.
254
+ # @param [String] page_token
255
+ # Optional. A token identifying a page of results the server should return.
256
+ # @param [String] fields
257
+ # Selector specifying which fields to include in a partial response.
258
+ # @param [String] quota_user
259
+ # Available to use for quota purposes for server-side applications. Can be any
260
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
261
+ # @param [Google::Apis::RequestOptions] options
262
+ # Request-specific options
263
+ #
264
+ # @yield [result, err] Result & error if block supplied
265
+ # @yieldparam result [Google::Apis::BackupdrV1::FetchUsableBackupVaultsResponse] parsed result object
266
+ # @yieldparam err [StandardError] error object if request failed
267
+ #
268
+ # @return [Google::Apis::BackupdrV1::FetchUsableBackupVaultsResponse]
269
+ #
270
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
271
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
272
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
273
+ def fetch_project_location_backup_vault_usable(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
274
+ command = make_simple_command(:get, 'v1/{+parent}/backupVaults:fetchUsable', options)
275
+ command.response_representation = Google::Apis::BackupdrV1::FetchUsableBackupVaultsResponse::Representation
276
+ command.response_class = Google::Apis::BackupdrV1::FetchUsableBackupVaultsResponse
277
+ command.params['parent'] = parent unless parent.nil?
278
+ command.query['filter'] = filter unless filter.nil?
279
+ command.query['orderBy'] = order_by unless order_by.nil?
280
+ command.query['pageSize'] = page_size unless page_size.nil?
281
+ command.query['pageToken'] = page_token unless page_token.nil?
282
+ command.query['fields'] = fields unless fields.nil?
283
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
284
+ execute_or_queue_command(command, &block)
285
+ end
286
+
287
+ # Gets details of a BackupVault.
288
+ # @param [String] name
289
+ # Required. Name of the backupvault store resource name, in the format 'projects/
290
+ # `project_id`/locations/`location`/backupVaults/`resource_name`'
291
+ # @param [String] fields
292
+ # Selector specifying which fields to include in a partial response.
293
+ # @param [String] quota_user
294
+ # Available to use for quota purposes for server-side applications. Can be any
295
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
296
+ # @param [Google::Apis::RequestOptions] options
297
+ # Request-specific options
298
+ #
299
+ # @yield [result, err] Result & error if block supplied
300
+ # @yieldparam result [Google::Apis::BackupdrV1::BackupVault] parsed result object
301
+ # @yieldparam err [StandardError] error object if request failed
302
+ #
303
+ # @return [Google::Apis::BackupdrV1::BackupVault]
304
+ #
305
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
306
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
307
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
308
+ def get_project_location_backup_vault(name, fields: nil, quota_user: nil, options: nil, &block)
309
+ command = make_simple_command(:get, 'v1/{+name}', options)
310
+ command.response_representation = Google::Apis::BackupdrV1::BackupVault::Representation
311
+ command.response_class = Google::Apis::BackupdrV1::BackupVault
312
+ command.params['name'] = name unless name.nil?
313
+ command.query['fields'] = fields unless fields.nil?
314
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
315
+ execute_or_queue_command(command, &block)
316
+ end
317
+
318
+ # Lists BackupVaults in a given project and location.
319
+ # @param [String] parent
320
+ # Required. The project and location for which to retrieve backupvault stores
321
+ # information, in the format 'projects/`project_id`/locations/`location`'. In
322
+ # Cloud Backup and DR, locations map to Google Cloud regions, for example **us-
323
+ # central1**. To retrieve backupvault stores for all locations, use "-" for the '
324
+ # `location`' value.
325
+ # @param [String] filter
326
+ # Optional. Filtering results.
327
+ # @param [String] order_by
328
+ # Optional. Hint for how to order the results.
329
+ # @param [Fixnum] page_size
330
+ # Optional. Requested page size. Server may return fewer items than requested.
331
+ # If unspecified, server will pick an appropriate default.
332
+ # @param [String] page_token
333
+ # Optional. A token identifying a page of results the server should return.
334
+ # @param [String] fields
335
+ # Selector specifying which fields to include in a partial response.
336
+ # @param [String] quota_user
337
+ # Available to use for quota purposes for server-side applications. Can be any
338
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
339
+ # @param [Google::Apis::RequestOptions] options
340
+ # Request-specific options
341
+ #
342
+ # @yield [result, err] Result & error if block supplied
343
+ # @yieldparam result [Google::Apis::BackupdrV1::ListBackupVaultsResponse] parsed result object
344
+ # @yieldparam err [StandardError] error object if request failed
345
+ #
346
+ # @return [Google::Apis::BackupdrV1::ListBackupVaultsResponse]
347
+ #
348
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
349
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
350
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
351
+ def list_project_location_backup_vaults(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
352
+ command = make_simple_command(:get, 'v1/{+parent}/backupVaults', options)
353
+ command.response_representation = Google::Apis::BackupdrV1::ListBackupVaultsResponse::Representation
354
+ command.response_class = Google::Apis::BackupdrV1::ListBackupVaultsResponse
355
+ command.params['parent'] = parent unless parent.nil?
356
+ command.query['filter'] = filter unless filter.nil?
357
+ command.query['orderBy'] = order_by unless order_by.nil?
358
+ command.query['pageSize'] = page_size unless page_size.nil?
359
+ command.query['pageToken'] = page_token unless page_token.nil?
360
+ command.query['fields'] = fields unless fields.nil?
361
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
362
+ execute_or_queue_command(command, &block)
363
+ end
364
+
365
+ # Updates the settings of a BackupVault.
366
+ # @param [String] name
367
+ # Output only. The resource name.
368
+ # @param [Google::Apis::BackupdrV1::BackupVault] backup_vault_object
369
+ # @param [Boolean] force
370
+ # Optional. If set to true, will not check plan duration against backup vault
371
+ # enforcement duration. Non-standard field.
372
+ # @param [String] request_id
373
+ # Optional. An optional request ID to identify requests. Specify a unique
374
+ # request ID so that if you must retry your request, the server will know to
375
+ # ignore the request if it has already been completed. The server will guarantee
376
+ # that for at least 60 minutes since the first request. For example, consider a
377
+ # situation where you make an initial request and the request times out. If you
378
+ # make the request again with the same request ID, the server can check if
379
+ # original operation with the same request ID was received, and if so, will
380
+ # ignore the second request. This prevents clients from accidentally creating
381
+ # duplicate commitments. The request ID must be a valid UUID with the exception
382
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
383
+ # @param [String] update_mask
384
+ # Required. Field mask is used to specify the fields to be overwritten in the
385
+ # BackupVault resource by the update. The fields specified in the update_mask
386
+ # are relative to the resource, not the full request. A field will be
387
+ # overwritten if it is in the mask. If the user does not provide a mask then the
388
+ # request will fail.
389
+ # @param [Boolean] validate_only
390
+ # Optional. Only validate the request, but do not perform mutations. The default
391
+ # is 'false'.
392
+ # @param [String] fields
393
+ # Selector specifying which fields to include in a partial response.
394
+ # @param [String] quota_user
395
+ # Available to use for quota purposes for server-side applications. Can be any
396
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
397
+ # @param [Google::Apis::RequestOptions] options
398
+ # Request-specific options
399
+ #
400
+ # @yield [result, err] Result & error if block supplied
401
+ # @yieldparam result [Google::Apis::BackupdrV1::Operation] parsed result object
402
+ # @yieldparam err [StandardError] error object if request failed
403
+ #
404
+ # @return [Google::Apis::BackupdrV1::Operation]
405
+ #
406
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
407
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
408
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
409
+ def patch_project_location_backup_vault(name, backup_vault_object = nil, force: nil, request_id: nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
410
+ command = make_simple_command(:patch, 'v1/{+name}', options)
411
+ command.request_representation = Google::Apis::BackupdrV1::BackupVault::Representation
412
+ command.request_object = backup_vault_object
413
+ command.response_representation = Google::Apis::BackupdrV1::Operation::Representation
414
+ command.response_class = Google::Apis::BackupdrV1::Operation
415
+ command.params['name'] = name unless name.nil?
416
+ command.query['force'] = force unless force.nil?
417
+ command.query['requestId'] = request_id unless request_id.nil?
418
+ command.query['updateMask'] = update_mask unless update_mask.nil?
419
+ command.query['validateOnly'] = validate_only unless validate_only.nil?
420
+ command.query['fields'] = fields unless fields.nil?
421
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
422
+ execute_or_queue_command(command, &block)
423
+ end
424
+
425
+ # Returns the caller's permissions on a BackupVault resource. A caller is not
426
+ # required to have Google IAM permission to make this request.
427
+ # @param [String] resource
428
+ # REQUIRED: The resource for which the policy detail is being requested. See [
429
+ # Resource names](https://cloud.google.com/apis/design/resource_names) for the
430
+ # appropriate value for this field.
431
+ # @param [Google::Apis::BackupdrV1::TestIamPermissionsRequest] test_iam_permissions_request_object
432
+ # @param [String] fields
433
+ # Selector specifying which fields to include in a partial response.
434
+ # @param [String] quota_user
435
+ # Available to use for quota purposes for server-side applications. Can be any
436
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
437
+ # @param [Google::Apis::RequestOptions] options
438
+ # Request-specific options
439
+ #
440
+ # @yield [result, err] Result & error if block supplied
441
+ # @yieldparam result [Google::Apis::BackupdrV1::TestIamPermissionsResponse] parsed result object
442
+ # @yieldparam err [StandardError] error object if request failed
443
+ #
444
+ # @return [Google::Apis::BackupdrV1::TestIamPermissionsResponse]
445
+ #
446
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
447
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
448
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
449
+ def test_backup_vault_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
450
+ command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
451
+ command.request_representation = Google::Apis::BackupdrV1::TestIamPermissionsRequest::Representation
452
+ command.request_object = test_iam_permissions_request_object
453
+ command.response_representation = Google::Apis::BackupdrV1::TestIamPermissionsResponse::Representation
454
+ command.response_class = Google::Apis::BackupdrV1::TestIamPermissionsResponse
455
+ command.params['resource'] = resource unless resource.nil?
456
+ command.query['fields'] = fields unless fields.nil?
457
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
458
+ execute_or_queue_command(command, &block)
459
+ end
460
+
461
+ # Internal only. Abandons a backup.
462
+ # @param [String] data_source
463
+ # Required. The resource name of the instance, in the format 'projects/*/
464
+ # locations/*/backupVaults/*/dataSources/'.
465
+ # @param [Google::Apis::BackupdrV1::AbandonBackupRequest] abandon_backup_request_object
466
+ # @param [String] fields
467
+ # Selector specifying which fields to include in a partial response.
468
+ # @param [String] quota_user
469
+ # Available to use for quota purposes for server-side applications. Can be any
470
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
471
+ # @param [Google::Apis::RequestOptions] options
472
+ # Request-specific options
473
+ #
474
+ # @yield [result, err] Result & error if block supplied
475
+ # @yieldparam result [Google::Apis::BackupdrV1::Operation] parsed result object
476
+ # @yieldparam err [StandardError] error object if request failed
477
+ #
478
+ # @return [Google::Apis::BackupdrV1::Operation]
479
+ #
480
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
481
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
482
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
483
+ def abandon_data_source_backup(data_source, abandon_backup_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
484
+ command = make_simple_command(:post, 'v1/{+dataSource}:abandonBackup', options)
485
+ command.request_representation = Google::Apis::BackupdrV1::AbandonBackupRequest::Representation
486
+ command.request_object = abandon_backup_request_object
487
+ command.response_representation = Google::Apis::BackupdrV1::Operation::Representation
488
+ command.response_class = Google::Apis::BackupdrV1::Operation
489
+ command.params['dataSource'] = data_source unless data_source.nil?
490
+ command.query['fields'] = fields unless fields.nil?
491
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
492
+ execute_or_queue_command(command, &block)
493
+ end
494
+
495
+ # Internal only. Fetch access token for a given data source.
496
+ # @param [String] name
497
+ # Required. The resource name for the location for which static IPs should be
498
+ # returned. Must be in the format 'projects/*/locations/*/backupVaults/*/
499
+ # dataSources'.
500
+ # @param [Google::Apis::BackupdrV1::FetchAccessTokenRequest] fetch_access_token_request_object
501
+ # @param [String] fields
502
+ # Selector specifying which fields to include in a partial response.
503
+ # @param [String] quota_user
504
+ # Available to use for quota purposes for server-side applications. Can be any
505
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
506
+ # @param [Google::Apis::RequestOptions] options
507
+ # Request-specific options
508
+ #
509
+ # @yield [result, err] Result & error if block supplied
510
+ # @yieldparam result [Google::Apis::BackupdrV1::FetchAccessTokenResponse] parsed result object
511
+ # @yieldparam err [StandardError] error object if request failed
512
+ #
513
+ # @return [Google::Apis::BackupdrV1::FetchAccessTokenResponse]
514
+ #
515
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
516
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
517
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
518
+ def fetch_data_source_access_token(name, fetch_access_token_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
519
+ command = make_simple_command(:post, 'v1/{+name}:fetchAccessToken', options)
520
+ command.request_representation = Google::Apis::BackupdrV1::FetchAccessTokenRequest::Representation
521
+ command.request_object = fetch_access_token_request_object
522
+ command.response_representation = Google::Apis::BackupdrV1::FetchAccessTokenResponse::Representation
523
+ command.response_class = Google::Apis::BackupdrV1::FetchAccessTokenResponse
524
+ command.params['name'] = name unless name.nil?
525
+ command.query['fields'] = fields unless fields.nil?
526
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
527
+ execute_or_queue_command(command, &block)
528
+ end
529
+
530
+ # Internal only. Finalize a backup that was started by a call to InitiateBackup.
531
+ # @param [String] data_source
532
+ # Required. The resource name of the instance, in the format 'projects/*/
533
+ # locations/*/backupVaults/*/dataSources/'.
534
+ # @param [Google::Apis::BackupdrV1::FinalizeBackupRequest] finalize_backup_request_object
535
+ # @param [String] fields
536
+ # Selector specifying which fields to include in a partial response.
537
+ # @param [String] quota_user
538
+ # Available to use for quota purposes for server-side applications. Can be any
539
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
540
+ # @param [Google::Apis::RequestOptions] options
541
+ # Request-specific options
542
+ #
543
+ # @yield [result, err] Result & error if block supplied
544
+ # @yieldparam result [Google::Apis::BackupdrV1::Operation] parsed result object
545
+ # @yieldparam err [StandardError] error object if request failed
546
+ #
547
+ # @return [Google::Apis::BackupdrV1::Operation]
548
+ #
549
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
550
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
551
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
552
+ def finalize_data_source_backup(data_source, finalize_backup_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
553
+ command = make_simple_command(:post, 'v1/{+dataSource}:finalizeBackup', options)
554
+ command.request_representation = Google::Apis::BackupdrV1::FinalizeBackupRequest::Representation
555
+ command.request_object = finalize_backup_request_object
556
+ command.response_representation = Google::Apis::BackupdrV1::Operation::Representation
557
+ command.response_class = Google::Apis::BackupdrV1::Operation
558
+ command.params['dataSource'] = data_source unless data_source.nil?
559
+ command.query['fields'] = fields unless fields.nil?
560
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
561
+ execute_or_queue_command(command, &block)
562
+ end
563
+
564
+ # Gets details of a DataSource.
565
+ # @param [String] name
566
+ # Required. Name of the data source resource name, in the format 'projects/`
567
+ # project_id`/locations/`location`/backupVaults/`resource_name`/dataSource/`
568
+ # resource_name`'
569
+ # @param [String] fields
570
+ # Selector specifying which fields to include in a partial response.
571
+ # @param [String] quota_user
572
+ # Available to use for quota purposes for server-side applications. Can be any
573
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
574
+ # @param [Google::Apis::RequestOptions] options
575
+ # Request-specific options
576
+ #
577
+ # @yield [result, err] Result & error if block supplied
578
+ # @yieldparam result [Google::Apis::BackupdrV1::DataSource] parsed result object
579
+ # @yieldparam err [StandardError] error object if request failed
580
+ #
581
+ # @return [Google::Apis::BackupdrV1::DataSource]
582
+ #
583
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
584
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
585
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
586
+ def get_project_location_backup_vault_data_source(name, fields: nil, quota_user: nil, options: nil, &block)
587
+ command = make_simple_command(:get, 'v1/{+name}', options)
588
+ command.response_representation = Google::Apis::BackupdrV1::DataSource::Representation
589
+ command.response_class = Google::Apis::BackupdrV1::DataSource
590
+ command.params['name'] = name unless name.nil?
591
+ command.query['fields'] = fields unless fields.nil?
592
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
593
+ execute_or_queue_command(command, &block)
594
+ end
595
+
596
+ # Internal only. Initiates a backup.
597
+ # @param [String] data_source
598
+ # Required. The resource name of the instance, in the format 'projects/*/
599
+ # locations/*/backupVaults/*/dataSources/'.
600
+ # @param [Google::Apis::BackupdrV1::InitiateBackupRequest] initiate_backup_request_object
601
+ # @param [String] fields
602
+ # Selector specifying which fields to include in a partial response.
603
+ # @param [String] quota_user
604
+ # Available to use for quota purposes for server-side applications. Can be any
605
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
606
+ # @param [Google::Apis::RequestOptions] options
607
+ # Request-specific options
608
+ #
609
+ # @yield [result, err] Result & error if block supplied
610
+ # @yieldparam result [Google::Apis::BackupdrV1::InitiateBackupResponse] parsed result object
611
+ # @yieldparam err [StandardError] error object if request failed
612
+ #
613
+ # @return [Google::Apis::BackupdrV1::InitiateBackupResponse]
614
+ #
615
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
616
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
617
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
618
+ def initiate_data_source_backup(data_source, initiate_backup_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
619
+ command = make_simple_command(:post, 'v1/{+dataSource}:initiateBackup', options)
620
+ command.request_representation = Google::Apis::BackupdrV1::InitiateBackupRequest::Representation
621
+ command.request_object = initiate_backup_request_object
622
+ command.response_representation = Google::Apis::BackupdrV1::InitiateBackupResponse::Representation
623
+ command.response_class = Google::Apis::BackupdrV1::InitiateBackupResponse
624
+ command.params['dataSource'] = data_source unless data_source.nil?
625
+ command.query['fields'] = fields unless fields.nil?
626
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
627
+ execute_or_queue_command(command, &block)
628
+ end
629
+
630
+ # Lists DataSources in a given project and location.
631
+ # @param [String] parent
632
+ # Required. The project and location for which to retrieve data sources
633
+ # information, in the format 'projects/`project_id`/locations/`location`'. In
634
+ # Cloud Backup and DR, locations map to Google Cloud regions, for example **us-
635
+ # central1**. To retrieve data sources for all locations, use "-" for the '`
636
+ # location`' value.
637
+ # @param [String] filter
638
+ # Optional. Filtering results.
639
+ # @param [String] order_by
640
+ # Optional. Hint for how to order the results.
641
+ # @param [Fixnum] page_size
642
+ # Optional. Requested page size. Server may return fewer items than requested.
643
+ # If unspecified, server will pick an appropriate default.
644
+ # @param [String] page_token
645
+ # Optional. A token identifying a page of results the server should return.
646
+ # @param [String] fields
647
+ # Selector specifying which fields to include in a partial response.
648
+ # @param [String] quota_user
649
+ # Available to use for quota purposes for server-side applications. Can be any
650
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
651
+ # @param [Google::Apis::RequestOptions] options
652
+ # Request-specific options
653
+ #
654
+ # @yield [result, err] Result & error if block supplied
655
+ # @yieldparam result [Google::Apis::BackupdrV1::ListDataSourcesResponse] parsed result object
656
+ # @yieldparam err [StandardError] error object if request failed
657
+ #
658
+ # @return [Google::Apis::BackupdrV1::ListDataSourcesResponse]
659
+ #
660
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
661
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
662
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
663
+ def list_project_location_backup_vault_data_sources(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
664
+ command = make_simple_command(:get, 'v1/{+parent}/dataSources', options)
665
+ command.response_representation = Google::Apis::BackupdrV1::ListDataSourcesResponse::Representation
666
+ command.response_class = Google::Apis::BackupdrV1::ListDataSourcesResponse
667
+ command.params['parent'] = parent unless parent.nil?
668
+ command.query['filter'] = filter unless filter.nil?
669
+ command.query['orderBy'] = order_by unless order_by.nil?
670
+ command.query['pageSize'] = page_size unless page_size.nil?
671
+ command.query['pageToken'] = page_token unless page_token.nil?
672
+ command.query['fields'] = fields unless fields.nil?
673
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
674
+ execute_or_queue_command(command, &block)
675
+ end
676
+
677
+ # Updates the settings of a DataSource.
678
+ # @param [String] name
679
+ # Output only. The resource name.
680
+ # @param [Google::Apis::BackupdrV1::DataSource] data_source_object
681
+ # @param [Boolean] allow_missing
682
+ # Optional. Enable upsert.
683
+ # @param [String] request_id
684
+ # Optional. An optional request ID to identify requests. Specify a unique
685
+ # request ID so that if you must retry your request, the server will know to
686
+ # ignore the request if it has already been completed. The server will guarantee
687
+ # that for at least 60 minutes since the first request. For example, consider a
688
+ # situation where you make an initial request and the request times out. If you
689
+ # make the request again with the same request ID, the server can check if
690
+ # original operation with the same request ID was received, and if so, will
691
+ # ignore the second request. This prevents clients from accidentally creating
692
+ # duplicate commitments. The request ID must be a valid UUID with the exception
693
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
694
+ # @param [String] update_mask
695
+ # Required. Field mask is used to specify the fields to be overwritten in the
696
+ # DataSource resource by the update. The fields specified in the update_mask are
697
+ # relative to the resource, not the full request. A field will be overwritten if
698
+ # it is in the mask. If the user does not provide a mask then the request will
699
+ # fail.
700
+ # @param [String] fields
701
+ # Selector specifying which fields to include in a partial response.
702
+ # @param [String] quota_user
703
+ # Available to use for quota purposes for server-side applications. Can be any
704
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
705
+ # @param [Google::Apis::RequestOptions] options
706
+ # Request-specific options
707
+ #
708
+ # @yield [result, err] Result & error if block supplied
709
+ # @yieldparam result [Google::Apis::BackupdrV1::Operation] parsed result object
710
+ # @yieldparam err [StandardError] error object if request failed
711
+ #
712
+ # @return [Google::Apis::BackupdrV1::Operation]
713
+ #
714
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
715
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
716
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
717
+ def patch_project_location_backup_vault_data_source(name, data_source_object = nil, allow_missing: nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
718
+ command = make_simple_command(:patch, 'v1/{+name}', options)
719
+ command.request_representation = Google::Apis::BackupdrV1::DataSource::Representation
720
+ command.request_object = data_source_object
721
+ command.response_representation = Google::Apis::BackupdrV1::Operation::Representation
722
+ command.response_class = Google::Apis::BackupdrV1::Operation
723
+ command.params['name'] = name unless name.nil?
724
+ command.query['allowMissing'] = allow_missing unless allow_missing.nil?
725
+ command.query['requestId'] = request_id unless request_id.nil?
726
+ command.query['updateMask'] = update_mask unless update_mask.nil?
727
+ command.query['fields'] = fields unless fields.nil?
728
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
729
+ execute_or_queue_command(command, &block)
730
+ end
731
+
732
+ # Deletes a DataSource. This is a custom method instead of a standard delete
733
+ # method because external clients will not delete DataSources except for
734
+ # BackupDR backup appliances.
735
+ # @param [String] name
736
+ # Required. Name of the resource.
737
+ # @param [Google::Apis::BackupdrV1::RemoveDataSourceRequest] remove_data_source_request_object
738
+ # @param [String] fields
739
+ # Selector specifying which fields to include in a partial response.
740
+ # @param [String] quota_user
741
+ # Available to use for quota purposes for server-side applications. Can be any
742
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
743
+ # @param [Google::Apis::RequestOptions] options
744
+ # Request-specific options
745
+ #
746
+ # @yield [result, err] Result & error if block supplied
747
+ # @yieldparam result [Google::Apis::BackupdrV1::Operation] parsed result object
748
+ # @yieldparam err [StandardError] error object if request failed
749
+ #
750
+ # @return [Google::Apis::BackupdrV1::Operation]
751
+ #
752
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
753
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
754
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
755
+ def remove_data_source(name, remove_data_source_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
756
+ command = make_simple_command(:post, 'v1/{+name}:remove', options)
757
+ command.request_representation = Google::Apis::BackupdrV1::RemoveDataSourceRequest::Representation
758
+ command.request_object = remove_data_source_request_object
759
+ command.response_representation = Google::Apis::BackupdrV1::Operation::Representation
760
+ command.response_class = Google::Apis::BackupdrV1::Operation
761
+ command.params['name'] = name unless name.nil?
762
+ command.query['fields'] = fields unless fields.nil?
763
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
764
+ execute_or_queue_command(command, &block)
765
+ end
766
+
767
+ # Sets the internal status of a DataSource.
768
+ # @param [String] data_source
769
+ # Required. The resource name of the instance, in the format 'projects/*/
770
+ # locations/*/backupVaults/*/dataSources/'.
771
+ # @param [Google::Apis::BackupdrV1::SetInternalStatusRequest] set_internal_status_request_object
772
+ # @param [String] fields
773
+ # Selector specifying which fields to include in a partial response.
774
+ # @param [String] quota_user
775
+ # Available to use for quota purposes for server-side applications. Can be any
776
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
777
+ # @param [Google::Apis::RequestOptions] options
778
+ # Request-specific options
779
+ #
780
+ # @yield [result, err] Result & error if block supplied
781
+ # @yieldparam result [Google::Apis::BackupdrV1::Operation] parsed result object
782
+ # @yieldparam err [StandardError] error object if request failed
783
+ #
784
+ # @return [Google::Apis::BackupdrV1::Operation]
785
+ #
786
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
787
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
788
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
789
+ def set_data_source_internal_status(data_source, set_internal_status_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
790
+ command = make_simple_command(:post, 'v1/{+dataSource}:setInternalStatus', options)
791
+ command.request_representation = Google::Apis::BackupdrV1::SetInternalStatusRequest::Representation
792
+ command.request_object = set_internal_status_request_object
793
+ command.response_representation = Google::Apis::BackupdrV1::Operation::Representation
794
+ command.response_class = Google::Apis::BackupdrV1::Operation
795
+ command.params['dataSource'] = data_source unless data_source.nil?
796
+ command.query['fields'] = fields unless fields.nil?
797
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
798
+ execute_or_queue_command(command, &block)
799
+ end
800
+
801
+ # Deletes a Backup.
802
+ # @param [String] name
803
+ # Required. Name of the resource.
804
+ # @param [String] request_id
805
+ # Optional. An optional request ID to identify requests. Specify a unique
806
+ # request ID so that if you must retry your request, the server will know to
807
+ # ignore the request if it has already been completed. The server will guarantee
808
+ # that for at least 60 minutes after the first request. For example, consider a
809
+ # situation where you make an initial request and the request times out. If you
810
+ # make the request again with the same request ID, the server can check if
811
+ # original operation with the same request ID was received, and if so, will
812
+ # ignore the second request. This prevents clients from accidentally creating
813
+ # duplicate commitments. The request ID must be a valid UUID with the exception
814
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
815
+ # @param [String] fields
816
+ # Selector specifying which fields to include in a partial response.
817
+ # @param [String] quota_user
818
+ # Available to use for quota purposes for server-side applications. Can be any
819
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
820
+ # @param [Google::Apis::RequestOptions] options
821
+ # Request-specific options
822
+ #
823
+ # @yield [result, err] Result & error if block supplied
824
+ # @yieldparam result [Google::Apis::BackupdrV1::Operation] parsed result object
825
+ # @yieldparam err [StandardError] error object if request failed
826
+ #
827
+ # @return [Google::Apis::BackupdrV1::Operation]
828
+ #
829
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
830
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
831
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
832
+ def delete_project_location_backup_vault_data_source_backup(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
833
+ command = make_simple_command(:delete, 'v1/{+name}', options)
834
+ command.response_representation = Google::Apis::BackupdrV1::Operation::Representation
835
+ command.response_class = Google::Apis::BackupdrV1::Operation
836
+ command.params['name'] = name unless name.nil?
837
+ command.query['requestId'] = request_id unless request_id.nil?
838
+ command.query['fields'] = fields unless fields.nil?
839
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
840
+ execute_or_queue_command(command, &block)
841
+ end
842
+
843
+ # Gets details of a Backup.
844
+ # @param [String] name
845
+ # Required. Name of the data source resource name, in the format 'projects/`
846
+ # project_id`/locations/`location`/backupVaults/`backupVault`/dataSources/`
847
+ # datasource`/backups/`backup`'
848
+ # @param [String] fields
849
+ # Selector specifying which fields to include in a partial response.
850
+ # @param [String] quota_user
851
+ # Available to use for quota purposes for server-side applications. Can be any
852
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
853
+ # @param [Google::Apis::RequestOptions] options
854
+ # Request-specific options
855
+ #
856
+ # @yield [result, err] Result & error if block supplied
857
+ # @yieldparam result [Google::Apis::BackupdrV1::Backup] parsed result object
858
+ # @yieldparam err [StandardError] error object if request failed
859
+ #
860
+ # @return [Google::Apis::BackupdrV1::Backup]
861
+ #
862
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
863
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
864
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
865
+ def get_project_location_backup_vault_data_source_backup(name, fields: nil, quota_user: nil, options: nil, &block)
866
+ command = make_simple_command(:get, 'v1/{+name}', options)
867
+ command.response_representation = Google::Apis::BackupdrV1::Backup::Representation
868
+ command.response_class = Google::Apis::BackupdrV1::Backup
869
+ command.params['name'] = name unless name.nil?
870
+ command.query['fields'] = fields unless fields.nil?
871
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
872
+ execute_or_queue_command(command, &block)
873
+ end
874
+
875
+ # Lists Backups in a given project and location.
876
+ # @param [String] parent
877
+ # Required. The project and location for which to retrieve backup information,
878
+ # in the format 'projects/`project_id`/locations/`location`'. In Cloud Backup
879
+ # and DR, locations map to Google Cloud regions, for example **us-central1**. To
880
+ # retrieve data sources for all locations, use "-" for the '`location`' value.
881
+ # @param [String] filter
882
+ # Optional. Filtering results.
883
+ # @param [String] order_by
884
+ # Optional. Hint for how to order the results.
885
+ # @param [Fixnum] page_size
886
+ # Optional. Requested page size. Server may return fewer items than requested.
887
+ # If unspecified, server will pick an appropriate default.
888
+ # @param [String] page_token
889
+ # Optional. A token identifying a page of results the server should return.
890
+ # @param [String] fields
891
+ # Selector specifying which fields to include in a partial response.
892
+ # @param [String] quota_user
893
+ # Available to use for quota purposes for server-side applications. Can be any
894
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
895
+ # @param [Google::Apis::RequestOptions] options
896
+ # Request-specific options
897
+ #
898
+ # @yield [result, err] Result & error if block supplied
899
+ # @yieldparam result [Google::Apis::BackupdrV1::ListBackupsResponse] parsed result object
900
+ # @yieldparam err [StandardError] error object if request failed
901
+ #
902
+ # @return [Google::Apis::BackupdrV1::ListBackupsResponse]
903
+ #
904
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
905
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
906
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
907
+ def list_project_location_backup_vault_data_source_backups(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
908
+ command = make_simple_command(:get, 'v1/{+parent}/backups', options)
909
+ command.response_representation = Google::Apis::BackupdrV1::ListBackupsResponse::Representation
910
+ command.response_class = Google::Apis::BackupdrV1::ListBackupsResponse
911
+ command.params['parent'] = parent unless parent.nil?
912
+ command.query['filter'] = filter unless filter.nil?
913
+ command.query['orderBy'] = order_by unless order_by.nil?
914
+ command.query['pageSize'] = page_size unless page_size.nil?
915
+ command.query['pageToken'] = page_token unless page_token.nil?
916
+ command.query['fields'] = fields unless fields.nil?
917
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
918
+ execute_or_queue_command(command, &block)
919
+ end
920
+
921
+ # Updates the settings of a Backup.
922
+ # @param [String] name
923
+ # Output only. Name of the resource.
924
+ # @param [Google::Apis::BackupdrV1::Backup] backup_object
925
+ # @param [String] request_id
926
+ # Optional. An optional request ID to identify requests. Specify a unique
927
+ # request ID so that if you must retry your request, the server will know to
928
+ # ignore the request if it has already been completed. The server will guarantee
929
+ # that for at least 60 minutes since the first request. For example, consider a
930
+ # situation where you make an initial request and the request times out. If you
931
+ # make the request again with the same request ID, the server can check if
932
+ # original operation with the same request ID was received, and if so, will
933
+ # ignore the second request. This prevents clients from accidentally creating
934
+ # duplicate commitments. The request ID must be a valid UUID with the exception
935
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
936
+ # @param [String] update_mask
937
+ # Required. Field mask is used to specify the fields to be overwritten in the
938
+ # Backup resource by the update. The fields specified in the update_mask are
939
+ # relative to the resource, not the full request. A field will be overwritten if
940
+ # it is in the mask. If the user does not provide a mask then the request will
941
+ # fail.
942
+ # @param [String] fields
943
+ # Selector specifying which fields to include in a partial response.
944
+ # @param [String] quota_user
945
+ # Available to use for quota purposes for server-side applications. Can be any
946
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
947
+ # @param [Google::Apis::RequestOptions] options
948
+ # Request-specific options
949
+ #
950
+ # @yield [result, err] Result & error if block supplied
951
+ # @yieldparam result [Google::Apis::BackupdrV1::Operation] parsed result object
952
+ # @yieldparam err [StandardError] error object if request failed
953
+ #
954
+ # @return [Google::Apis::BackupdrV1::Operation]
955
+ #
956
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
957
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
958
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
959
+ def patch_project_location_backup_vault_data_source_backup(name, backup_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
960
+ command = make_simple_command(:patch, 'v1/{+name}', options)
961
+ command.request_representation = Google::Apis::BackupdrV1::Backup::Representation
962
+ command.request_object = backup_object
963
+ command.response_representation = Google::Apis::BackupdrV1::Operation::Representation
964
+ command.response_class = Google::Apis::BackupdrV1::Operation
965
+ command.params['name'] = name unless name.nil?
966
+ command.query['requestId'] = request_id unless request_id.nil?
967
+ command.query['updateMask'] = update_mask unless update_mask.nil?
968
+ command.query['fields'] = fields unless fields.nil?
969
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
970
+ execute_or_queue_command(command, &block)
971
+ end
972
+
127
973
  # Creates a new ManagementServer in a given project and location.
128
974
  # @param [String] parent
129
- # Required. The management server project and location in the format `projects/`
130
- # project_id`/locations/`location``. In Cloud Backup and DR locations map to GCP
131
- # regions, for example **us-central1**.
975
+ # Required. The management server project and location in the format 'projects/`
976
+ # project_id`/locations/`location`'. In Cloud Backup and DR locations map to
977
+ # Google Cloud regions, for example **us-central1**.
132
978
  # @param [Google::Apis::BackupdrV1::ManagementServer] management_server_object
133
979
  # @param [String] management_server_id
134
980
  # Required. The name of the management server to create. The name must be unique
@@ -219,8 +1065,8 @@ module Google
219
1065
 
220
1066
  # Gets details of a single ManagementServer.
221
1067
  # @param [String] name
222
- # Required. Name of the management server resource name, in the format `projects/
223
- # `project_id`/locations/`location`/managementServers/`resource_name``
1068
+ # Required. Name of the management server resource name, in the format 'projects/
1069
+ # `project_id`/locations/`location`/managementServers/`resource_name`'
224
1070
  # @param [String] fields
225
1071
  # Selector specifying which fields to include in a partial response.
226
1072
  # @param [String] quota_user
@@ -296,10 +1142,10 @@ module Google
296
1142
  # Lists ManagementServers in a given project and location.
297
1143
  # @param [String] parent
298
1144
  # Required. The project and location for which to retrieve management servers
299
- # information, in the format `projects/`project_id`/locations/`location``. In
300
- # Cloud BackupDR, locations map to GCP regions, for example **us-central1**. To
301
- # retrieve management servers for all locations, use "-" for the ``location``
302
- # value.
1145
+ # information, in the format 'projects/`project_id`/locations/`location`'. In
1146
+ # Cloud BackupDR, locations map to Google Cloud regions, for example **us-
1147
+ # central1**. To retrieve management servers for all locations, use "-" for the '
1148
+ # `location`' value.
303
1149
  # @param [String] filter
304
1150
  # Optional. Filtering results.
305
1151
  # @param [String] order_by