def __init__(self, client, resource_type):
        self._resources = None
        self._resources_by_name = None
        self.client = client

        if resource_type in self.known_resources:
            self.resource_type = resource_type
        else:
            raise Exception("{} is an unknown resource!".format(resource_type))
dataset/ETHPy150Open girder/girder/clients/ansible/girder.py/Resource.__init__/original