

def new_actor(self, rt, actor_type, actor_name, credentials=None, timeout=DEFAULT_TIMEOUT, async=False):
    data = {
        'actor_type': actor_type,
        'args': {
            'name': actor_name,
        },
        'deploy_args': ({
            'credentials': credentials,
        } if credentials else None),
    }
    r = self._post(rt, timeout, async, ACTOR, data)
    return self.check_response(r, key='actor_id')

dataset/ETHPy150Open EricssonResearch/calvin-base/calvin/requests/request_handler.py RequestHandler.new_actor/original