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_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_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_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_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_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_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_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.
-
#initialize ⇒ BackupforGKEService
constructor
A new instance of BackupforGKEService.
-
#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, 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, 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_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, 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_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_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_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_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
.
1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 1037 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_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.
156 157 158 159 160 161 162 163 164 165 166 167 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 156 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.
478 479 480 481 482 483 484 485 486 487 488 489 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 478 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_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.
1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 1181 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.
1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 1507 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_plan(name, etag: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::GoogleLongrunningOperation
Deletes an existing BackupPlan.
193 194 195 196 197 198 199 200 201 202 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 193 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.
519 520 521 522 523 524 525 526 527 528 529 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 519 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
.
1072 1073 1074 1075 1076 1077 1078 1079 1080 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 1072 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_plan(name, etag: nil, force: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::GoogleLongrunningOperation
Deletes an existing RestorePlan.
1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 1222 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.
1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 1548 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_plan(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::BackupPlan
Retrieve the details of a single BackupPlan.
225 226 227 228 229 230 231 232 233 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 225 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.
552 553 554 555 556 557 558 559 560 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 552 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.
583 584 585 586 587 588 589 590 591 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 583 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.
627 628 629 630 631 632 633 634 635 636 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 627 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.
828 829 830 831 832 833 834 835 836 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 828 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.
872 873 874 875 876 877 878 879 880 881 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 872 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.
269 270 271 272 273 274 275 276 277 278 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 269 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_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.
1103 1104 1105 1106 1107 1108 1109 1110 1111 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 1103 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_plan(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::RestorePlan
Retrieve the details of a single RestorePlan.
1255 1256 1257 1258 1259 1260 1261 1262 1263 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 1255 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.
1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 1299 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.
1581 1582 1583 1584 1585 1586 1587 1588 1589 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 1581 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.
1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 1625 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.
1826 1827 1828 1829 1830 1831 1832 1833 1834 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 1826 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.
1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 1870 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 |
#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.
919 920 921 922 923 924 925 926 927 928 929 930 931 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 919 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, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GkebackupV1::ListBackupsResponse
Lists the Backups for a given BackupPlan.
674 675 676 677 678 679 680 681 682 683 684 685 686 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 674 def list_project_location_backup_plan_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}/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['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.
316 317 318 319 320 321 322 323 324 325 326 327 328 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 316 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, 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
.
1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 1140 def list_project_location_operations(name, filter: nil, page_size: nil, page_token: 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['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.
1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 1917 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.
1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 1672 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.
1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 1346 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, 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.
115 116 117 118 119 120 121 122 123 124 125 126 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 115 def list_project_locations(name, 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['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_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.
361 362 363 364 365 366 367 368 369 370 371 372 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 361 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.
718 719 720 721 722 723 724 725 726 727 728 729 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 718 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_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.
1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 1390 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.
1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 1716 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.
756 757 758 759 760 761 762 763 764 765 766 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 756 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.
399 400 401 402 403 404 405 406 407 408 409 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 399 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_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.
1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 1754 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.
1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 1428 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_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.
958 959 960 961 962 963 964 965 966 967 968 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 958 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.
1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 1956 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.
795 796 797 798 799 800 801 802 803 804 805 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 795 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.
438 439 440 441 442 443 444 445 446 447 448 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 438 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.
1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 1793 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.
1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 1467 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.
997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 997 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.
1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 |
# File 'lib/google/apis/gkebackup_v1/service.rb', line 1995 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 |