def save(self, doc):
        if doc.id:
            return self.update(doc)
        else:
            return self.insert(doc)
def get_long_running_output(pipeline_response):
            deserialized = self._deserialize('CalculateExchangeOperationResultResponse', pipeline_response)

            if cls:
                return cls(pipeline_response, deserialized, {})
            return deserialized