def save(self, doc):
        if doc.id:
            return self.update(doc)
        else:
            return self.insert(doc)
def exists(self):
        collection = self.client.api.cm.shared.licensing.pools_s.get_collection(
            requests_params=dict(
                params="$filter=name+eq+'{0}'".format(self.want.name)
            )
        )
        if len(collection) == 1:
            return True
        elif len(collection) == 0:
            return False
        else:
            raise F5ModuleError(
                "Multiple license pools with the provided name were found!"
            )