def save(self, doc):
        if doc.id:
            return self.update(doc)
        else:
            return self.insert(doc)
def delete_snapshot(self, snapshot_id):
        """Delete Snapshot."""
        return self.delete("snapshots/%s" % str(snapshot_id))