Ejemplo n.º 1
0
 def cancel(self):
     req = ttypes.TCancelOperationReq(
         operationHandle=self._operationHandle, )
     response = self._connection.client.CancelOperation(req)
     _check_status(response)
Ejemplo n.º 2
0
 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)