'Returns a list of backups, transformed through view builder.'

def _get_backups(self, req, is_detail):

    context = req.environ['cinder.context']
    filters = req.params.copy()
    req_version = req.api_version_request
    (marker, limit, offset) = common.get_pagination_params(filters)
    (sort_keys, sort_dirs) = common.get_sort_params(filters)
    self._convert_sort_name(req_version, sort_keys)
    self._process_backup_filtering(context=context, filters=filters, req_version=req_version)
    if ('name' in filters):
        filters['display_name'] = filters.pop('name')
    backups = self.backup_api.get_all(context, search_opts=filters, marker=marker, limit=limit, offset=offset, sort_keys=sort_keys, sort_dirs=sort_dirs)
    req.cache_db_backups(backups.objects)
    if is_detail:
        backups = self._view_builder.detail_list(req, backups.objects)
    else:
        backups = self._view_builder.summary_list(req, backups.objects)
    return backups
