def yaml(self):
        return yaml.dump(self.serialized, default_flow_style=False,
                         encoding=None)
def is_resource_deleted(self, id):
        try:
            self.get_snapshot(id)
        except exceptions.NotFound:
            return True
        return False