Class: Google::Apis::GkebackupV1::BackupforGKEService
- Inherits:
-
Core::BaseService
- Object
- Core::BaseService
- Google::Apis::GkebackupV1::BackupforGKEService
- Defined in:
- lib/google/apis/gkebackup_v1/service.rb
Overview
Backup for GKE API
Backup for GKE is a managed Kubernetes workload backup and restore service for GKE clusters.
Constant Summary collapse
- DEFAULT_ENDPOINT_TEMPLATE =
"https://gkebackup.$UNIVERSE_DOMAIN$/"
Instance Attribute Summary collapse
-
#key ⇒ String
API key.
-
#quota_user ⇒ String
Available to use for quota purposes for server-side applications.
Instance Method Summary collapse
-
#cancel_project_location_operation(name, google_longrunning_cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::Empty
Starts asynchronous cancellation on a long-running operation.
-
#create_project_location_backup_channel(parent, backup_channel_object = nil, backup_channel_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::GoogleLongrunningOperation
Creates a new BackupChannel in a given location.
-
#create_project_location_backup_plan(parent, backup_plan_object = nil, backup_plan_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::GoogleLongrunningOperation
Creates a new BackupPlan in a given location.
-
#create_project_location_backup_plan_backup(parent, backup_object = nil, backup_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::GoogleLongrunningOperation
Creates a Backup for the given BackupPlan.
-
#create_project_location_restore_channel(parent, restore_channel_object = nil, restore_channel_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::GoogleLongrunningOperation
Creates a new RestoreChannel in a given location.
-
#create_project_location_restore_plan(parent, restore_plan_object = nil, restore_plan_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::GoogleLongrunningOperation
Creates a new RestorePlan in a given location.
-
#create_project_location_restore_plan_restore(parent, restore_object = nil, restore_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::GoogleLongrunningOperation
Creates a new Restore for the given RestorePlan.
-
#delete_project_location_backup_channel(name, etag: nil, force: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::GoogleLongrunningOperation
Deletes an existing BackupChannel.
-
#delete_project_location_backup_plan(name, etag: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::GoogleLongrunningOperation
Deletes an existing BackupPlan.
-
#delete_project_location_backup_plan_backup(name, etag: nil, force: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::GoogleLongrunningOperation
Deletes an existing Backup.
-
#delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::Empty
Deletes a long-running operation.
-
#delete_project_location_restore_channel(name, etag: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::GoogleLongrunningOperation
Deletes an existing RestoreChannel.
-
#delete_project_location_restore_plan(name, etag: nil, force: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::GoogleLongrunningOperation
Deletes an existing RestorePlan.
-
#delete_project_location_restore_plan_restore(name, etag: nil, force: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::GoogleLongrunningOperation
Deletes an existing Restore.
-
#get_project_location(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::Location
Gets information about a location.
-
#get_project_location_backup_channel(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::BackupChannel
Retrieve the details of a single BackupChannel.
-
#get_project_location_backup_channel_backup_plan_binding(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::BackupPlanBinding
Retrieve the details of a single BackupPlanBinding.
-
#get_project_location_backup_plan(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::BackupPlan
Retrieve the details of a single BackupPlan.
-
#get_project_location_backup_plan_backup(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::Backup
Retrieve the details of a single Backup.
-
#get_project_location_backup_plan_backup_backup_index_download_url(backup, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::GetBackupIndexDownloadUrlResponse
Retrieve the link to the backupIndex.
-
#get_project_location_backup_plan_backup_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::Policy
Gets the access control policy for a resource.
-
#get_project_location_backup_plan_backup_volume_backup(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::VolumeBackup
Retrieve the details of a single VolumeBackup.
-
#get_project_location_backup_plan_backup_volume_backup_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::Policy
Gets the access control policy for a resource.
-
#get_project_location_backup_plan_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::Policy
Gets the access control policy for a resource.
-
#get_project_location_backup_plan_tags(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::GetTagsResponse
Returns tags directly bound to a GCP resource.
-
#get_project_location_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::GoogleLongrunningOperation
Gets the latest state of a long-running operation.
-
#get_project_location_restore_channel(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::RestoreChannel
Retrieve the details of a single RestoreChannel.
-
#get_project_location_restore_channel_restore_plan_binding(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::RestorePlanBinding
Retrieve the details of a single RestorePlanBinding.
-
#get_project_location_restore_plan(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::RestorePlan
Retrieve the details of a single RestorePlan.
-
#get_project_location_restore_plan_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::Policy
Gets the access control policy for a resource.
-
#get_project_location_restore_plan_restore(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::Restore
Retrieves the details of a single Restore.
-
#get_project_location_restore_plan_restore_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::Policy
Gets the access control policy for a resource.
-
#get_project_location_restore_plan_restore_volume_restore(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::VolumeRestore
Retrieve the details of a single VolumeRestore.
-
#get_project_location_restore_plan_restore_volume_restore_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::Policy
Gets the access control policy for a resource.
-
#get_project_location_restore_plan_tags(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::GetTagsResponse
Returns tags directly bound to a GCP resource.
-
#initialize ⇒ BackupforGKEService
constructor
A new instance of BackupforGKEService.
-
#list_project_location_backup_channel_backup_plan_bindings(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::ListBackupPlanBindingsResponse
Lists BackupPlanBindings in a given location.
-
#list_project_location_backup_channels(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::ListBackupChannelsResponse
Lists BackupChannels in a given location.
-
#list_project_location_backup_plan_backup_volume_backups(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::ListVolumeBackupsResponse
Lists the VolumeBackups for a given Backup.
-
#list_project_location_backup_plan_backups(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::ListBackupsResponse
Lists the Backups for a given BackupPlan.
-
#list_project_location_backup_plans(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::ListBackupPlansResponse
Lists BackupPlans in a given location.
-
#list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::GoogleLongrunningListOperationsResponse
Lists operations that match the specified filter in the request.
-
#list_project_location_restore_channel_restore_plan_bindings(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::ListRestorePlanBindingsResponse
Lists RestorePlanBindings in a given location.
-
#list_project_location_restore_channels(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::ListRestoreChannelsResponse
Lists RestoreChannels in a given location.
-
#list_project_location_restore_plan_restore_volume_restores(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::ListVolumeRestoresResponse
Lists the VolumeRestores for a given Restore.
-
#list_project_location_restore_plan_restores(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::ListRestoresResponse
Lists the Restores for a given RestorePlan.
-
#list_project_location_restore_plans(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::ListRestorePlansResponse
Lists RestorePlans in a given location.
-
#list_project_locations(name, extra_location_types: nil, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::ListLocationsResponse
Lists information about the supported locations for this service.
-
#patch_project_location_backup_channel(name, backup_channel_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::GoogleLongrunningOperation
Update a BackupChannel.
-
#patch_project_location_backup_plan(name, backup_plan_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::GoogleLongrunningOperation
Update a BackupPlan.
-
#patch_project_location_backup_plan_backup(name, backup_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::GoogleLongrunningOperation
Update a Backup.
-
#patch_project_location_restore_channel(name, restore_channel_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::GoogleLongrunningOperation
Update a RestoreChannel.
-
#patch_project_location_restore_plan(name, restore_plan_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::GoogleLongrunningOperation
Update a RestorePlan.
-
#patch_project_location_restore_plan_restore(name, restore_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::GoogleLongrunningOperation
Update a Restore.
-
#set_backup_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::Policy
Sets the access control policy on the specified resource.
-
#set_backup_plan_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::Policy
Sets the access control policy on the specified resource.
-
#set_backup_plan_tags(name, set_tags_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::SetTagsResponse
Updates tags directly bound to a GCP resource.
-
#set_restore_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::Policy
Sets the access control policy on the specified resource.
-
#set_restore_plan_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::Policy
Sets the access control policy on the specified resource.
-
#set_restore_plan_tags(name, set_tags_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::SetTagsResponse
Updates tags directly bound to a GCP resource.
-
#set_volume_backup_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::Policy
Sets the access control policy on the specified resource.
-
#set_volume_restore_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::Policy
Sets the access control policy on the specified resource.
-
#test_backup_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::TestIamPermissionsResponse
Returns permissions that a caller has on the specified resource.
-
#test_backup_plan_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::TestIamPermissionsResponse
Returns permissions that a caller has on the specified resource.
-
#test_restore_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::TestIamPermissionsResponse
Returns permissions that a caller has on the specified resource.
-
#test_restore_plan_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::TestIamPermissionsResponse
Returns permissions that a caller has on the specified resource.
-
#test_volume_backup_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::TestIamPermissionsResponse
Returns permissions that a caller has on the specified resource.
-
#test_volume_restore_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::TestIamPermissionsResponse
Returns permissions that a caller has on the specified resource.
Constructor Details
#initialize ⇒ BackupforGKEService
Returns a new instance of BackupforGKEService.
48 49 50 51 52 53 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 48 def initialize super(DEFAULT_ENDPOINT_TEMPLATE, '', client_name: 'google-apis-gkebackup_v1', client_version: Google::Apis::GkebackupV1::GEM_VERSION) @batch_path = 'batch' end |
Instance Attribute Details
#key ⇒ String
Returns API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
41 42 43 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 41 def key @key end |
#quota_user ⇒ String
Returns Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
46 47 48 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 46 def quota_user @quota_user end |
Instance Method Details
#cancel_project_location_operation(name, google_longrunning_cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::Empty
Starts asynchronous cancellation on a long-running operation. The server makes
a best effort to cancel the operation, but success is not guaranteed. If the
server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.
Clients can use Operations.GetOperation or other methods to check whether the
cancellation succeeded or whether the operation completed despite cancellation.
On successful cancellation, the operation is not deleted; instead, it becomes
an operation with an Operation.error value with a google.rpc.Status.code of 1
, corresponding to Code.CANCELLED.
1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 1396 def cancel_project_location_operation(name, google_longrunning_cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+name}:cancel', ) command.request_representation = Google::Apis::GkebackupV1::GoogleLongrunningCancelOperationRequest::Representation command.request_object = google_longrunning_cancel_operation_request_object command.response_representation = Google::Apis::GkebackupV1::Empty::Representation command.response_class = Google::Apis::GkebackupV1::Empty command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_location_backup_channel(parent, backup_channel_object = nil, backup_channel_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::GoogleLongrunningOperation
Creates a new BackupChannel in a given location.
161 162 163 164 165 166 167 168 169 170 171 172 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 161 def create_project_location_backup_channel(parent, backup_channel_object = nil, backup_channel_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/backupChannels', ) command.request_representation = Google::Apis::GkebackupV1::BackupChannel::Representation command.request_object = backup_channel_object command.response_representation = Google::Apis::GkebackupV1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::GkebackupV1::GoogleLongrunningOperation command.params['parent'] = parent unless parent.nil? command.query['backupChannelId'] = backup_channel_id unless backup_channel_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_location_backup_plan(parent, backup_plan_object = nil, backup_plan_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::GoogleLongrunningOperation
Creates a new BackupPlan in a given location.
448 449 450 451 452 453 454 455 456 457 458 459 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 448 def create_project_location_backup_plan(parent, backup_plan_object = nil, backup_plan_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/backupPlans', ) command.request_representation = Google::Apis::GkebackupV1::BackupPlan::Representation command.request_object = backup_plan_object command.response_representation = Google::Apis::GkebackupV1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::GkebackupV1::GoogleLongrunningOperation command.params['parent'] = parent unless parent.nil? command.query['backupPlanId'] = backup_plan_id unless backup_plan_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_location_backup_plan_backup(parent, backup_object = nil, backup_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::GoogleLongrunningOperation
Creates a Backup for the given BackupPlan.
833 834 835 836 837 838 839 840 841 842 843 844 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 833 def create_project_location_backup_plan_backup(parent, backup_object = nil, backup_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/backups', ) command.request_representation = Google::Apis::GkebackupV1::Backup::Representation command.request_object = backup_object command.response_representation = Google::Apis::GkebackupV1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::GkebackupV1::GoogleLongrunningOperation command.params['parent'] = parent unless parent.nil? command.query['backupId'] = backup_id unless backup_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_location_restore_channel(parent, restore_channel_object = nil, restore_channel_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::GoogleLongrunningOperation
Creates a new RestoreChannel in a given location.
1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 1550 def create_project_location_restore_channel(parent, restore_channel_object = nil, restore_channel_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/restoreChannels', ) command.request_representation = Google::Apis::GkebackupV1::RestoreChannel::Representation command.request_object = restore_channel_object command.response_representation = Google::Apis::GkebackupV1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::GkebackupV1::GoogleLongrunningOperation command.params['parent'] = parent unless parent.nil? command.query['restoreChannelId'] = restore_channel_id unless restore_channel_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_location_restore_plan(parent, restore_plan_object = nil, restore_plan_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::GoogleLongrunningOperation
Creates a new RestorePlan in a given location.
1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 1832 def create_project_location_restore_plan(parent, restore_plan_object = nil, restore_plan_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/restorePlans', ) command.request_representation = Google::Apis::GkebackupV1::RestorePlan::Representation command.request_object = restore_plan_object command.response_representation = Google::Apis::GkebackupV1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::GkebackupV1::GoogleLongrunningOperation command.params['parent'] = parent unless parent.nil? command.query['restorePlanId'] = restore_plan_id unless restore_plan_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_location_restore_plan_restore(parent, restore_object = nil, restore_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::GoogleLongrunningOperation
Creates a new Restore for the given RestorePlan.
2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 2221 def create_project_location_restore_plan_restore(parent, restore_object = nil, restore_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/restores', ) command.request_representation = Google::Apis::GkebackupV1::Restore::Representation command.request_object = restore_object command.response_representation = Google::Apis::GkebackupV1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::GkebackupV1::GoogleLongrunningOperation command.params['parent'] = parent unless parent.nil? command.query['restoreId'] = restore_id unless restore_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_backup_channel(name, etag: nil, force: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::GoogleLongrunningOperation
Deletes an existing BackupChannel.
202 203 204 205 206 207 208 209 210 211 212 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 202 def delete_project_location_backup_channel(name, etag: nil, force: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', ) command.response_representation = Google::Apis::GkebackupV1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::GkebackupV1::GoogleLongrunningOperation command.params['name'] = name unless name.nil? command.query['etag'] = etag unless etag.nil? command.query['force'] = force unless force.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_backup_plan(name, etag: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::GoogleLongrunningOperation
Deletes an existing BackupPlan.
485 486 487 488 489 490 491 492 493 494 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 485 def delete_project_location_backup_plan(name, etag: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', ) command.response_representation = Google::Apis::GkebackupV1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::GkebackupV1::GoogleLongrunningOperation command.params['name'] = name unless name.nil? command.query['etag'] = etag unless etag.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_backup_plan_backup(name, etag: nil, force: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::GoogleLongrunningOperation
Deletes an existing Backup.
874 875 876 877 878 879 880 881 882 883 884 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 874 def delete_project_location_backup_plan_backup(name, etag: nil, force: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', ) command.response_representation = Google::Apis::GkebackupV1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::GkebackupV1::GoogleLongrunningOperation command.params['name'] = name unless name.nil? command.query['etag'] = etag unless etag.nil? command.query['force'] = force unless force.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::Empty
Deletes a long-running operation. This method indicates that the client is no
longer interested in the operation result. It does not cancel the operation.
If the server doesn't support this method, it returns google.rpc.Code.
UNIMPLEMENTED.
1431 1432 1433 1434 1435 1436 1437 1438 1439 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 1431 def delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', ) command.response_representation = Google::Apis::GkebackupV1::Empty::Representation command.response_class = Google::Apis::GkebackupV1::Empty command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_restore_channel(name, etag: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::GoogleLongrunningOperation
Deletes an existing RestoreChannel.
1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 1587 def delete_project_location_restore_channel(name, etag: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', ) command.response_representation = Google::Apis::GkebackupV1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::GkebackupV1::GoogleLongrunningOperation command.params['name'] = name unless name.nil? command.query['etag'] = etag unless etag.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_restore_plan(name, etag: nil, force: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::GoogleLongrunningOperation
Deletes an existing RestorePlan.
1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 1873 def delete_project_location_restore_plan(name, etag: nil, force: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', ) command.response_representation = Google::Apis::GkebackupV1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::GkebackupV1::GoogleLongrunningOperation command.params['name'] = name unless name.nil? command.query['etag'] = etag unless etag.nil? command.query['force'] = force unless force.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_restore_plan_restore(name, etag: nil, force: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::GoogleLongrunningOperation
Deletes an existing Restore.
2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 2262 def delete_project_location_restore_plan_restore(name, etag: nil, force: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', ) command.response_representation = Google::Apis::GkebackupV1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::GkebackupV1::GoogleLongrunningOperation command.params['name'] = name unless name.nil? command.query['etag'] = etag unless etag.nil? command.query['force'] = force unless force.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::Location
Gets information about a location.
75 76 77 78 79 80 81 82 83 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 75 def get_project_location(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::GkebackupV1::Location::Representation command.response_class = Google::Apis::GkebackupV1::Location command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_backup_channel(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::BackupChannel
Retrieve the details of a single BackupChannel.
235 236 237 238 239 240 241 242 243 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 235 def get_project_location_backup_channel(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::GkebackupV1::BackupChannel::Representation command.response_class = Google::Apis::GkebackupV1::BackupChannel command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_backup_channel_backup_plan_binding(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::BackupPlanBinding
Retrieve the details of a single BackupPlanBinding.
360 361 362 363 364 365 366 367 368 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 360 def get_project_location_backup_channel_backup_plan_binding(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::GkebackupV1::BackupPlanBinding::Representation command.response_class = Google::Apis::GkebackupV1::BackupPlanBinding command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_backup_plan(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::BackupPlan
Retrieve the details of a single BackupPlan.
517 518 519 520 521 522 523 524 525 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 517 def get_project_location_backup_plan(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::GkebackupV1::BackupPlan::Representation command.response_class = Google::Apis::GkebackupV1::BackupPlan command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_backup_plan_backup(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::Backup
Retrieve the details of a single Backup.
907 908 909 910 911 912 913 914 915 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 907 def get_project_location_backup_plan_backup(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::GkebackupV1::Backup::Representation command.response_class = Google::Apis::GkebackupV1::Backup command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_backup_plan_backup_backup_index_download_url(backup, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::GetBackupIndexDownloadUrlResponse
Retrieve the link to the backupIndex.
938 939 940 941 942 943 944 945 946 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 938 def get_project_location_backup_plan_backup_backup_index_download_url(backup, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+backup}:getBackupIndexDownloadUrl', ) command.response_representation = Google::Apis::GkebackupV1::GetBackupIndexDownloadUrlResponse::Representation command.response_class = Google::Apis::GkebackupV1::GetBackupIndexDownloadUrlResponse command.params['backup'] = backup unless backup.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_backup_plan_backup_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::Policy
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
982 983 984 985 986 987 988 989 990 991 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 982 def get_project_location_backup_plan_backup_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', ) command.response_representation = Google::Apis::GkebackupV1::Policy::Representation command.response_class = Google::Apis::GkebackupV1::Policy command.params['resource'] = resource unless resource.nil? command.query['options.requestedPolicyVersion'] = unless .nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_backup_plan_backup_volume_backup(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::VolumeBackup
Retrieve the details of a single VolumeBackup.
1187 1188 1189 1190 1191 1192 1193 1194 1195 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 1187 def get_project_location_backup_plan_backup_volume_backup(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::GkebackupV1::VolumeBackup::Representation command.response_class = Google::Apis::GkebackupV1::VolumeBackup command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_backup_plan_backup_volume_backup_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::Policy
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 1231 def get_project_location_backup_plan_backup_volume_backup_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', ) command.response_representation = Google::Apis::GkebackupV1::Policy::Representation command.response_class = Google::Apis::GkebackupV1::Policy command.params['resource'] = resource unless resource.nil? command.query['options.requestedPolicyVersion'] = unless .nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_backup_plan_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::Policy
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
561 562 563 564 565 566 567 568 569 570 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 561 def get_project_location_backup_plan_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', ) command.response_representation = Google::Apis::GkebackupV1::Policy::Representation command.response_class = Google::Apis::GkebackupV1::Policy command.params['resource'] = resource unless resource.nil? command.query['options.requestedPolicyVersion'] = unless .nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_backup_plan_tags(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::GetTagsResponse
Returns tags directly bound to a GCP resource.
592 593 594 595 596 597 598 599 600 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 592 def (name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}:getTags', ) command.response_representation = Google::Apis::GkebackupV1::GetTagsResponse::Representation command.response_class = Google::Apis::GkebackupV1::GetTagsResponse command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::GoogleLongrunningOperation
Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
1462 1463 1464 1465 1466 1467 1468 1469 1470 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 1462 def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::GkebackupV1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::GkebackupV1::GoogleLongrunningOperation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_restore_channel(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::RestoreChannel
Retrieve the details of a single RestoreChannel.
1619 1620 1621 1622 1623 1624 1625 1626 1627 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 1619 def get_project_location_restore_channel(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::GkebackupV1::RestoreChannel::Representation command.response_class = Google::Apis::GkebackupV1::RestoreChannel command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_restore_channel_restore_plan_binding(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::RestorePlanBinding
Retrieve the details of a single RestorePlanBinding.
1744 1745 1746 1747 1748 1749 1750 1751 1752 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 1744 def get_project_location_restore_channel_restore_plan_binding(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::GkebackupV1::RestorePlanBinding::Representation command.response_class = Google::Apis::GkebackupV1::RestorePlanBinding command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_restore_plan(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::RestorePlan
Retrieve the details of a single RestorePlan.
1906 1907 1908 1909 1910 1911 1912 1913 1914 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 1906 def get_project_location_restore_plan(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::GkebackupV1::RestorePlan::Representation command.response_class = Google::Apis::GkebackupV1::RestorePlan command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_restore_plan_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::Policy
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 1950 def get_project_location_restore_plan_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', ) command.response_representation = Google::Apis::GkebackupV1::Policy::Representation command.response_class = Google::Apis::GkebackupV1::Policy command.params['resource'] = resource unless resource.nil? command.query['options.requestedPolicyVersion'] = unless .nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_restore_plan_restore(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::Restore
Retrieves the details of a single Restore.
2295 2296 2297 2298 2299 2300 2301 2302 2303 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 2295 def get_project_location_restore_plan_restore(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::GkebackupV1::Restore::Representation command.response_class = Google::Apis::GkebackupV1::Restore command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_restore_plan_restore_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::Policy
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 2339 def get_project_location_restore_plan_restore_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', ) command.response_representation = Google::Apis::GkebackupV1::Policy::Representation command.response_class = Google::Apis::GkebackupV1::Policy command.params['resource'] = resource unless resource.nil? command.query['options.requestedPolicyVersion'] = unless .nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_restore_plan_restore_volume_restore(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::VolumeRestore
Retrieve the details of a single VolumeRestore.
2540 2541 2542 2543 2544 2545 2546 2547 2548 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 2540 def get_project_location_restore_plan_restore_volume_restore(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::GkebackupV1::VolumeRestore::Representation command.response_class = Google::Apis::GkebackupV1::VolumeRestore command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_restore_plan_restore_volume_restore_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::Policy
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 2584 def get_project_location_restore_plan_restore_volume_restore_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', ) command.response_representation = Google::Apis::GkebackupV1::Policy::Representation command.response_class = Google::Apis::GkebackupV1::Policy command.params['resource'] = resource unless resource.nil? command.query['options.requestedPolicyVersion'] = unless .nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_restore_plan_tags(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::GetTagsResponse
Returns tags directly bound to a GCP resource.
1981 1982 1983 1984 1985 1986 1987 1988 1989 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 1981 def (name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}:getTags', ) command.response_representation = Google::Apis::GkebackupV1::GetTagsResponse::Representation command.response_class = Google::Apis::GkebackupV1::GetTagsResponse command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_backup_channel_backup_plan_bindings(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::ListBackupPlanBindingsResponse
Lists BackupPlanBindings in a given location.
406 407 408 409 410 411 412 413 414 415 416 417 418 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 406 def list_project_location_backup_channel_backup_plan_bindings(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/backupPlanBindings', ) command.response_representation = Google::Apis::GkebackupV1::ListBackupPlanBindingsResponse::Representation command.response_class = Google::Apis::GkebackupV1::ListBackupPlanBindingsResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_backup_channels(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::ListBackupChannelsResponse
Lists BackupChannels in a given location.
281 282 283 284 285 286 287 288 289 290 291 292 293 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 281 def list_project_location_backup_channels(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/backupChannels', ) command.response_representation = Google::Apis::GkebackupV1::ListBackupChannelsResponse::Representation command.response_class = Google::Apis::GkebackupV1::ListBackupChannelsResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_backup_plan_backup_volume_backups(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::ListVolumeBackupsResponse
Lists the VolumeBackups for a given Backup.
1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 1278 def list_project_location_backup_plan_backup_volume_backups(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/volumeBackups', ) command.response_representation = Google::Apis::GkebackupV1::ListVolumeBackupsResponse::Representation command.response_class = Google::Apis::GkebackupV1::ListVolumeBackupsResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_backup_plan_backups(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::ListBackupsResponse
Lists the Backups for a given BackupPlan.
1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 1032 def list_project_location_backup_plan_backups(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/backups', ) command.response_representation = Google::Apis::GkebackupV1::ListBackupsResponse::Representation command.response_class = Google::Apis::GkebackupV1::ListBackupsResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_backup_plans(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::ListBackupPlansResponse
Lists BackupPlans in a given location.
638 639 640 641 642 643 644 645 646 647 648 649 650 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 638 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) command = make_simple_command(:get, 'v1/{+parent}/backupPlans', ) command.response_representation = Google::Apis::GkebackupV1::ListBackupPlansResponse::Representation command.response_class = Google::Apis::GkebackupV1::ListBackupPlansResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::GoogleLongrunningListOperationsResponse
Lists operations that match the specified filter in the request. If the server
doesn't support this method, it returns UNIMPLEMENTED.
1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 1507 def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}/operations', ) command.response_representation = Google::Apis::GkebackupV1::GoogleLongrunningListOperationsResponse::Representation command.response_class = Google::Apis::GkebackupV1::GoogleLongrunningListOperationsResponse command.params['name'] = name unless name.nil? command.query['filter'] = filter unless filter.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_restore_channel_restore_plan_bindings(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::ListRestorePlanBindingsResponse
Lists RestorePlanBindings in a given location.
1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 1790 def list_project_location_restore_channel_restore_plan_bindings(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/restorePlanBindings', ) command.response_representation = Google::Apis::GkebackupV1::ListRestorePlanBindingsResponse::Representation command.response_class = Google::Apis::GkebackupV1::ListRestorePlanBindingsResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_restore_channels(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::ListRestoreChannelsResponse
Lists RestoreChannels in a given location.
1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 1665 def list_project_location_restore_channels(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/restoreChannels', ) command.response_representation = Google::Apis::GkebackupV1::ListRestoreChannelsResponse::Representation command.response_class = Google::Apis::GkebackupV1::ListRestoreChannelsResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_restore_plan_restore_volume_restores(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::ListVolumeRestoresResponse
Lists the VolumeRestores for a given Restore.
2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 2631 def list_project_location_restore_plan_restore_volume_restores(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/volumeRestores', ) command.response_representation = Google::Apis::GkebackupV1::ListVolumeRestoresResponse::Representation command.response_class = Google::Apis::GkebackupV1::ListVolumeRestoresResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_restore_plan_restores(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::ListRestoresResponse
Lists the Restores for a given RestorePlan.
2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 2386 def list_project_location_restore_plan_restores(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/restores', ) command.response_representation = Google::Apis::GkebackupV1::ListRestoresResponse::Representation command.response_class = Google::Apis::GkebackupV1::ListRestoresResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_restore_plans(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::ListRestorePlansResponse
Lists RestorePlans in a given location.
2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 2027 def list_project_location_restore_plans(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/restorePlans', ) command.response_representation = Google::Apis::GkebackupV1::ListRestorePlansResponse::Representation command.response_class = Google::Apis::GkebackupV1::ListRestorePlansResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_locations(name, extra_location_types: nil, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::ListLocationsResponse
Lists information about the supported locations for this service.
118 119 120 121 122 123 124 125 126 127 128 129 130 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 118 def list_project_locations(name, extra_location_types: nil, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}/locations', ) command.response_representation = Google::Apis::GkebackupV1::ListLocationsResponse::Representation command.response_class = Google::Apis::GkebackupV1::ListLocationsResponse command.params['name'] = name unless name.nil? command.query['extraLocationTypes'] = extra_location_types unless extra_location_types.nil? command.query['filter'] = filter unless filter.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_project_location_backup_channel(name, backup_channel_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::GoogleLongrunningOperation
Update a BackupChannel.
326 327 328 329 330 331 332 333 334 335 336 337 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 326 def patch_project_location_backup_channel(name, backup_channel_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1/{+name}', ) command.request_representation = Google::Apis::GkebackupV1::BackupChannel::Representation command.request_object = backup_channel_object command.response_representation = Google::Apis::GkebackupV1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::GkebackupV1::GoogleLongrunningOperation command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_project_location_backup_plan(name, backup_plan_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::GoogleLongrunningOperation
Update a BackupPlan.
683 684 685 686 687 688 689 690 691 692 693 694 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 683 def patch_project_location_backup_plan(name, backup_plan_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1/{+name}', ) command.request_representation = Google::Apis::GkebackupV1::BackupPlan::Representation command.request_object = backup_plan_object command.response_representation = Google::Apis::GkebackupV1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::GkebackupV1::GoogleLongrunningOperation command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_project_location_backup_plan_backup(name, backup_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::GoogleLongrunningOperation
Update a Backup.
1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 1077 def patch_project_location_backup_plan_backup(name, backup_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1/{+name}', ) command.request_representation = Google::Apis::GkebackupV1::Backup::Representation command.request_object = backup_object command.response_representation = Google::Apis::GkebackupV1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::GkebackupV1::GoogleLongrunningOperation command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_project_location_restore_channel(name, restore_channel_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::GoogleLongrunningOperation
Update a RestoreChannel.
1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 1710 def patch_project_location_restore_channel(name, restore_channel_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1/{+name}', ) command.request_representation = Google::Apis::GkebackupV1::RestoreChannel::Representation command.request_object = restore_channel_object command.response_representation = Google::Apis::GkebackupV1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::GkebackupV1::GoogleLongrunningOperation command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_project_location_restore_plan(name, restore_plan_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::GoogleLongrunningOperation
Update a RestorePlan.
2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 2071 def patch_project_location_restore_plan(name, restore_plan_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1/{+name}', ) command.request_representation = Google::Apis::GkebackupV1::RestorePlan::Representation command.request_object = restore_plan_object command.response_representation = Google::Apis::GkebackupV1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::GkebackupV1::GoogleLongrunningOperation command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_project_location_restore_plan_restore(name, restore_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::GoogleLongrunningOperation
Update a Restore.
2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 2430 def patch_project_location_restore_plan_restore(name, restore_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1/{+name}', ) command.request_representation = Google::Apis::GkebackupV1::Restore::Representation command.request_object = restore_object command.response_representation = Google::Apis::GkebackupV1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::GkebackupV1::GoogleLongrunningOperation command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#set_backup_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::Policy
Sets the access control policy on the specified resource. Replaces any
existing policy. Can return NOT_FOUND, INVALID_ARGUMENT, and
PERMISSION_DENIED errors.
1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 1115 def set_backup_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', ) command.request_representation = Google::Apis::GkebackupV1::SetIamPolicyRequest::Representation command.request_object = set_iam_policy_request_object command.response_representation = Google::Apis::GkebackupV1::Policy::Representation command.response_class = Google::Apis::GkebackupV1::Policy command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#set_backup_plan_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::Policy
Sets the access control policy on the specified resource. Replaces any
existing policy. Can return NOT_FOUND, INVALID_ARGUMENT, and
PERMISSION_DENIED errors.
721 722 723 724 725 726 727 728 729 730 731 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 721 def set_backup_plan_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', ) command.request_representation = Google::Apis::GkebackupV1::SetIamPolicyRequest::Representation command.request_object = set_iam_policy_request_object command.response_representation = Google::Apis::GkebackupV1::Policy::Representation command.response_class = Google::Apis::GkebackupV1::Policy command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#set_backup_plan_tags(name, set_tags_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::SetTagsResponse
Updates tags directly bound to a GCP resource.
754 755 756 757 758 759 760 761 762 763 764 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 754 def (name, = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+name}:setTags', ) command.request_representation = Google::Apis::GkebackupV1::SetTagsRequest::Representation command.request_object = command.response_representation = Google::Apis::GkebackupV1::SetTagsResponse::Representation command.response_class = Google::Apis::GkebackupV1::SetTagsResponse command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#set_restore_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::Policy
Sets the access control policy on the specified resource. Replaces any
existing policy. Can return NOT_FOUND, INVALID_ARGUMENT, and
PERMISSION_DENIED errors.
2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 2468 def set_restore_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', ) command.request_representation = Google::Apis::GkebackupV1::SetIamPolicyRequest::Representation command.request_object = set_iam_policy_request_object command.response_representation = Google::Apis::GkebackupV1::Policy::Representation command.response_class = Google::Apis::GkebackupV1::Policy command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#set_restore_plan_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::Policy
Sets the access control policy on the specified resource. Replaces any
existing policy. Can return NOT_FOUND, INVALID_ARGUMENT, and
PERMISSION_DENIED errors.
2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 2109 def set_restore_plan_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', ) command.request_representation = Google::Apis::GkebackupV1::SetIamPolicyRequest::Representation command.request_object = set_iam_policy_request_object command.response_representation = Google::Apis::GkebackupV1::Policy::Representation command.response_class = Google::Apis::GkebackupV1::Policy command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#set_restore_plan_tags(name, set_tags_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::SetTagsResponse
Updates tags directly bound to a GCP resource.
2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 2142 def (name, = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+name}:setTags', ) command.request_representation = Google::Apis::GkebackupV1::SetTagsRequest::Representation command.request_object = command.response_representation = Google::Apis::GkebackupV1::SetTagsResponse::Representation command.response_class = Google::Apis::GkebackupV1::SetTagsResponse command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#set_volume_backup_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::Policy
Sets the access control policy on the specified resource. Replaces any
existing policy. Can return NOT_FOUND, INVALID_ARGUMENT, and
PERMISSION_DENIED errors.
1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 1317 def set_volume_backup_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', ) command.request_representation = Google::Apis::GkebackupV1::SetIamPolicyRequest::Representation command.request_object = set_iam_policy_request_object command.response_representation = Google::Apis::GkebackupV1::Policy::Representation command.response_class = Google::Apis::GkebackupV1::Policy command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#set_volume_restore_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::Policy
Sets the access control policy on the specified resource. Replaces any
existing policy. Can return NOT_FOUND, INVALID_ARGUMENT, and
PERMISSION_DENIED errors.
2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 2670 def set_volume_restore_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', ) command.request_representation = Google::Apis::GkebackupV1::SetIamPolicyRequest::Representation command.request_object = set_iam_policy_request_object command.response_representation = Google::Apis::GkebackupV1::Policy::Representation command.response_class = Google::Apis::GkebackupV1::Policy command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#test_backup_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::TestIamPermissionsResponse
Returns permissions that a caller has on the specified resource. If the
resource does not exist, this will return an empty set of permissions, not a
NOT_FOUND error. Note: This operation is designed to be used for building
permission-aware UIs and command-line tools, not for authorization checking.
This operation may "fail open" without warning.
1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 1154 def (resource, = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', ) command.request_representation = Google::Apis::GkebackupV1::TestIamPermissionsRequest::Representation command.request_object = command.response_representation = Google::Apis::GkebackupV1::TestIamPermissionsResponse::Representation command.response_class = Google::Apis::GkebackupV1::TestIamPermissionsResponse command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#test_backup_plan_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::TestIamPermissionsResponse
Returns permissions that a caller has on the specified resource. If the
resource does not exist, this will return an empty set of permissions, not a
NOT_FOUND error. Note: This operation is designed to be used for building
permission-aware UIs and command-line tools, not for authorization checking.
This operation may "fail open" without warning.
793 794 795 796 797 798 799 800 801 802 803 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 793 def (resource, = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', ) command.request_representation = Google::Apis::GkebackupV1::TestIamPermissionsRequest::Representation command.request_object = command.response_representation = Google::Apis::GkebackupV1::TestIamPermissionsResponse::Representation command.response_class = Google::Apis::GkebackupV1::TestIamPermissionsResponse command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#test_restore_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::TestIamPermissionsResponse
Returns permissions that a caller has on the specified resource. If the
resource does not exist, this will return an empty set of permissions, not a
NOT_FOUND error. Note: This operation is designed to be used for building
permission-aware UIs and command-line tools, not for authorization checking.
This operation may "fail open" without warning.
2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 2507 def (resource, = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', ) command.request_representation = Google::Apis::GkebackupV1::TestIamPermissionsRequest::Representation command.request_object = command.response_representation = Google::Apis::GkebackupV1::TestIamPermissionsResponse::Representation command.response_class = Google::Apis::GkebackupV1::TestIamPermissionsResponse command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#test_restore_plan_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::TestIamPermissionsResponse
Returns permissions that a caller has on the specified resource. If the
resource does not exist, this will return an empty set of permissions, not a
NOT_FOUND error. Note: This operation is designed to be used for building
permission-aware UIs and command-line tools, not for authorization checking.
This operation may "fail open" without warning.
2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 2181 def (resource, = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', ) command.request_representation = Google::Apis::GkebackupV1::TestIamPermissionsRequest::Representation command.request_object = command.response_representation = Google::Apis::GkebackupV1::TestIamPermissionsResponse::Representation command.response_class = Google::Apis::GkebackupV1::TestIamPermissionsResponse command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#test_volume_backup_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::TestIamPermissionsResponse
Returns permissions that a caller has on the specified resource. If the
resource does not exist, this will return an empty set of permissions, not a
NOT_FOUND error. Note: This operation is designed to be used for building
permission-aware UIs and command-line tools, not for authorization checking.
This operation may "fail open" without warning.
1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 1356 def (resource, = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', ) command.request_representation = Google::Apis::GkebackupV1::TestIamPermissionsRequest::Representation command.request_object = command.response_representation = Google::Apis::GkebackupV1::TestIamPermissionsResponse::Representation command.response_class = Google::Apis::GkebackupV1::TestIamPermissionsResponse command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#test_volume_restore_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::TestIamPermissionsResponse
Returns permissions that a caller has on the specified resource. If the
resource does not exist, this will return an empty set of permissions, not a
NOT_FOUND error. Note: This operation is designed to be used for building
permission-aware UIs and command-line tools, not for authorization checking.
This operation may "fail open" without warning.
2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 2709 def (resource, = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', ) command.request_representation = Google::Apis::GkebackupV1::TestIamPermissionsRequest::Representation command.request_object = command.response_representation = Google::Apis::GkebackupV1::TestIamPermissionsResponse::Representation command.response_class = Google::Apis::GkebackupV1::TestIamPermissionsResponse command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |