<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def all(self, query=None):
 """ Gets resource collection for _resource_class. """


        if query is None:
            query = {}
        return self.client._get(
            self._url(),
            query
        )