'Convert the quota object to a result dict.'

def _format_quota_set(self, project_id, quota_set, filtered_quotas):

    if project_id:
        result = dict(id=str(project_id))
    else:
        result = {}
    for resource in QUOTAS.resources:
        if ((resource not in filtered_quotas) and (resource in quota_set)):
            result[resource] = quota_set[resource]
    return dict(quota_set=result)
