def METHOD_NAME(self, data):
    self.schema_validate(data)
    dictionary = {
        "cluster": Cluster,
        "service": ClusterObject,
        "component": ServiceComponent,
        "provider": HostProvider,
        "host": Host,
    }
    objects = []
    for obj in data:
        objects.append(dictionary[obj["type"]].obj.get(id=obj["id"]))
    return objects