class Google::Cloud::Storage::Service
def restore_file bucket_name,
#
def restore_file bucket_name, file_path, generation, copy_source_acl: nil, if_generation_match: nil, if_generation_not_match: nil, if_metageneration_match: nil, if_metageneration_not_match: nil, projection: nil, user_project: nil, fields: nil, options: {} if options[:retries].nil? is_idempotent = retry? generation: generation, if_generation_match: if_generation_match options = is_idempotent ? {} : { retries: 0 } end execute do service.restore_object bucket_name, file_path, generation, copy_source_acl: copy_source_acl, if_generation_match: if_generation_match, if_generation_not_match: if_generation_not_match, if_metageneration_match: if_metageneration_match, if_metageneration_not_match: if_metageneration_not_match, projection: projection, user_project: user_project(user_project), fields: fields, options: options end end