'Retrieve definitions of all of the resources.
:param q: Filter rules for the resources to be returned.
:param limit: Maximum number of resources to return.
:param meter_links: option to include related meter links.'

@wsme_pecan.wsexpose([Resource], [base.Query], int, int)
def get_all(self, q=None, limit=None, meter_links=1):

    rbac.enforce('get_resources', pecan.request)
    q = (q or [])
    limit = utils.enforce_limit(limit)
    kwargs = utils.query_to_kwargs(q, pecan.request.storage_conn.get_resources, ['limit'])
    resources = [Resource.from_db_and_links(r, self._resource_links(r.resource_id, meter_links)) for r in pecan.request.storage_conn.get_resources(limit=limit, **kwargs)]
    return resources
