def cancel(self): req = ttypes.TCancelOperationReq( operationHandle=self._operationHandle, ) response = self._connection.client.CancelOperation(req) _check_status(response)
def cancel(self, operation_handle=None): operation_handle = operation_handle or self._operationHandle req = ttypes.TCancelOperationReq(operationHandle=operation_handle) response = self._connection.client.CancelOperation(req) _check_status(response)