def query(cls, project=None, volume=None, state=None, offset=None,
              limit=None, api=None):
        """
        Query (List) imports.
        :param project: Optional project identifier.
        :param volume: Optional volume identifier.
        :param state: Optional import sate.
        :param offset: Pagination offset.
        :param limit: Pagination limit.
        :param api: Api instance.
        :return: Collection object.
        """
        api = api or cls._API

        if project:
            project = Transform.to_project(project)
        if volume:
            volume = Transform.to_volume(volume)

        return super(Import, cls)._query(
            url=cls._URL['query'], project=project, volume=volume, state=state,
            fields='_all', offset=offset, limit=limit, api=api
        )
def query ( cls , project = None , volume = None , state = None , offset = None , limit = None , api = None ) : api = api or cls . _API if project : project = Transform . to_project ( project ) if volume : volume = Transform . to_volume ( volume ) return super ( Import , cls ) . _query ( url = cls . _URL [ 'query' ] , project = project , volume = volume , state = state , fields = '_all' , offset = offset , limit = limit , api = api )
Query (List) imports.
        :param project: Optional project identifier.
        :param volume: Optional volume identifier.
        :param state: Optional import sate.
        :param offset: Pagination offset.
        :param limit: Pagination limit.
        :param api: Api instance.
        :return: Collection object.