@resources.command(<EOL>use_fields_as_options=ACTOR_FIELDS+RESOURCE_FIELDS+['<STR_LIT:type>'])<EOL><INDENT>def list(self, **kwargs):<DEDENT>
data, self.endpoint = self.data_endpoint(kwargs)<EOL>r = super(Resource, self).list(**data)<EOL>self.configure_display(r)<EOL>return r<EOL>
Return a list of roles.

        =====API DOCS=====
        Retrieve a list of objects.

        :param all_pages: Flag that if set, collect all pages of content from the API when returning results.
        :type all_pages: bool
        :param page: The page to show. Ignored if all_pages is set.
        :type page: int
        :param query: Contains 2-tuples used as query parameters to filter resulting resource objects.
        :type query: list
        :param `**kwargs`: Keyword arguments list of available fields used for searching resource objects.
        :returns: A JSON object containing details of all resource objects returned by Tower backend.
        :rtype: dict

        =====API DOCS=====