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.
1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 1405 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.
170 171 172 173 174 175 176 177 178 179 180 181 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 170 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.
457 458 459 460 461 462 463 464 465 466 467 468 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 457 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.
842 843 844 845 846 847 848 849 850 851 852 853 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 842 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.
1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 1559 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.
1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 1841 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.
2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 2230 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.
211 212 213 214 215 216 217 218 219 220 221 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 211 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.
494 495 496 497 498 499 500 501 502 503 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 494 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.
883 884 885 886 887 888 889 890 891 892 893 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 883 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.
1440 1441 1442 1443 1444 1445 1446 1447 1448 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 1440 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.
1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 1596 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.
1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 1882 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.
2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 2271 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.
244 245 246 247 248 249 250 251 252 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 244 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.
369 370 371 372 373 374 375 376 377 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 369 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.
526 527 528 529 530 531 532 533 534 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 526 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.
916 917 918 919 920 921 922 923 924 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 916 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.
947 948 949 950 951 952 953 954 955 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 947 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.
991 992 993 994 995 996 997 998 999 1000 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 991 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.
1196 1197 1198 1199 1200 1201 1202 1203 1204 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 1196 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.
1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 1240 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.
570 571 572 573 574 575 576 577 578 579 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 570 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.
601 602 603 604 605 606 607 608 609 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 601 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.
1471 1472 1473 1474 1475 1476 1477 1478 1479 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 1471 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.
1628 1629 1630 1631 1632 1633 1634 1635 1636 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 1628 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.
1753 1754 1755 1756 1757 1758 1759 1760 1761 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 1753 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.
1915 1916 1917 1918 1919 1920 1921 1922 1923 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 1915 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.
1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 1959 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.
2304 2305 2306 2307 2308 2309 2310 2311 2312 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 2304 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.
2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 2348 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.
2549 2550 2551 2552 2553 2554 2555 2556 2557 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 2549 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.
2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 2593 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.
1990 1991 1992 1993 1994 1995 1996 1997 1998 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 1990 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.
415 416 417 418 419 420 421 422 423 424 425 426 427 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 415 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.
290 291 292 293 294 295 296 297 298 299 300 301 302 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 290 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.
1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 1287 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.
1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 1041 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.
647 648 649 650 651 652 653 654 655 656 657 658 659 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 647 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.
1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 1516 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.
1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 1799 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.
1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 1674 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.
2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 2640 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.
2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 2395 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.
2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 2036 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. This method
lists locations based on the resource scope provided in the [
ListLocationsRequest.name] field: * Global locations: If name is empty,
the method lists the public locations available to all projects. * Project-
specific locations: If name follows the format projects/project`, the
method lists locations visible to that specific project. This includes public,
private, or other project-specific locations enabled for the project. For gRPC
and client library implementations, the resource name is passed as thename`
field. For direct service calls, the resource name is incorporated into the
request path based on the specific service implementation and version.
127 128 129 130 131 132 133 134 135 136 137 138 139 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 127 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.
335 336 337 338 339 340 341 342 343 344 345 346 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 335 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.
692 693 694 695 696 697 698 699 700 701 702 703 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 692 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.
1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 1086 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.
1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 1719 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.
2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 2080 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.
2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 2439 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.
1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 1124 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.
730 731 732 733 734 735 736 737 738 739 740 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 730 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.
763 764 765 766 767 768 769 770 771 772 773 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 763 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.
2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 2477 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.
2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 2118 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.
2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 2151 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.
1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 1326 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.
2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 2679 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.
1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 1163 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.
802 803 804 805 806 807 808 809 810 811 812 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 802 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.
2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 2516 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.
2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 2190 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.
1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 1365 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.
2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 2718 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 |