def update_resource(self, ctx: HandlerContext, changes: dict, resource: AgentConfig) -> None: agent_config = ctx.get("map") agent_config[resource.agentname] = resource.uri self._set_map(agent_config)
def delete_resource(self, ctx: HandlerContext, resource: AgentConfig) -> None: agent_config = ctx.get("map") del agent_config[resource.agentname] self._set_map(agent_config)