@classmethod
def list(cls, session, paginated=False, **params):
    'This method is a generator which yields queue objects.\n\n        This is almost the copy of list method of resource.Resource class.\n        The only difference is the request header now includes `Client-ID`\n        and `X-PROJECT-ID` fields which are required by Zaqar v2 API.\n        '
    more_data = True
    query_params = cls._query_mapping._transpose(params)
    uri = (cls.base_path % params)
    headers = {'Client-ID': (params.get('client_id', None) or str(uuid.uuid4())), 'X-PROJECT-ID': (params.get('project_id', None) or session.get_project_id())}
    while more_data:
        resp = session.get(uri, headers=headers, params=query_params)
        resp = resp.json()
        resp = resp[cls.resources_key]
        if (not resp):
            more_data = False
        yielded = 0
        new_marker = None
        for data in resp:
            value = cls.existing(**data)
            new_marker = value.id
            yielded += 1
            (yield value)
        if (not paginated):
            return
        if (('limit' in query_params) and (yielded < query_params['limit'])):
            return
        query_params['limit'] = yielded
        query_params['marker'] = new_marker
This method is a generator which yields queue objects.

This is almost the copy of list method of resource.Resource class.
The only difference is the request header now includes `Client-ID`
and `X-PROJECT-ID` fields which are required by Zaqar v2 API.
@classmethod
def list(cls, session, paginated=False, **params):
    'This method is a generator which yields queue objects.\n\n        This is almost the copy of list method of resource.Resource class.\n        The only difference is the request header now includes `Client-ID`\n        and `X-PROJECT-ID` fields which are required by Zaqar v2 API.\n        '
    more_data = True
    query_params = cls._query_mapping._transpose(params)
    uri = (cls.base_path % params)
    headers = {'Client-ID': (params.get('client_id', None) or str(uuid.uuid4())), 'X-PROJECT-ID': (params.get('project_id', None) or session.get_project_id())}
    while more_data:
        resp = session.get(uri, headers=headers, params=query_params)
        resp = resp.json()
        resp = resp[cls.resources_key]
        if (not resp):
            more_data = False
        yielded = 0
        new_marker = None
        for data in resp:
            value = cls.existing(**data)
            new_marker = value.id
            yielded += 1
            (yield value)
        if (not paginated):
            return
        if (('limit' in query_params) and (yielded < query_params['limit'])):
            return
        query_params['limit'] = yielded
        query_params['marker'] = new_marker