(self, marker=None, limit=None, sort_key='id',
                sort_dir='asc', all_tenants=False)
return self._get_quota_collection(marker,
                                          limit,
                                          sort_key,
                                          sort_dir,
                                          filters)
Retrieve a list of quotas.

        :param marker: pagination marker for large data sets.
        :param limit: maximum number of resources to return in a single result.
        :param sort_key: column to sort results by. Default: id.
        :param sort_dir: direction to sort. "asc" or "desc". Default: asc.
        :param all_tenants: a flag to indicate all or current tenant.
Retrieve a list of quotas.
Retrieve a list of quotas .
def get_all(self, marker=None, limit=None, sort_key='id',
                sort_dir='asc', all_tenants=False):
        """Retrieve a list of quotas.

        :param marker: pagination marker for large data sets.
        :param limit: maximum number of resources to return in a single result.
        :param sort_key: column to sort results by. Default: id.
        :param sort_dir: direction to sort. "asc" or "desc". Default: asc.
        :param all_tenants: a flag to indicate all or current tenant.
        """
        context = pecan.request.context
        policy.enforce(context, 'quota:get_all',
                       action='quota:get_all')

        filters = {}
        if not context.is_admin or not all_tenants:
            filters = {"project_id": context.project_id}

        return self._get_quota_collection(marker,
                                          limit,
                                          sort_key,
                                          sort_dir,
                                          filters)
def get_all ( self , marker = None , limit = None , sort_key = 'id' , sort_dir = 'asc' , all_tenants = False ) : context = pecan . request . context policy . enforce ( context , 'quota:get_all' , action = 'quota:get_all' ) filters = { } if not context . is_admin or not all_tenants : filters = { "project_id" : context . project_id } return self . _get_quota_collection ( marker , limit , sort_key , sort_dir , filters )