def delete(self, entity, extras): """ PoP Link DELETE Action implementation :param link: Link to be deleted :param extras: Any extra arguments. It should contain at least PoP Url """ uuid = entity.identifier[1:].split('/')[2] epa_glue.delete_pop_link(extras['pop_url'], uuid)
def update(self, old, new, extras): """ PoP Link PUT Action implementation :param old: old link to be updated :param new: new link :param extras: Any extra arguments. It should contain at least PoP Url """ new.identifier = old.identifier uuid = old.identifier[1:].split('/')[2] epa_glue.delete_pop_link(extras['pop_url'], uuid) self.create(new, extras)