def update(self, visualization):
        """
        Updates existing visualization
        :param visualization: instance of Visualization that was previously loaded
        :return:
        """
        res = self.es.update(index=self.index, id=visualization.id, doc_type=self.doc_type,
                             body={'doc': visualization.to_kibana()},
                             refresh=True)
        return res
def update ( self , visualization ) : res = self . es . update ( index = self . index , id = visualization . id , doc_type = self . doc_type , body = { 'doc' : visualization . to_kibana ( ) } , refresh = True ) return res
Updates existing visualization
        :param visualization: instance of Visualization that was previously loaded
        :return: