def cancel(self): req = TCancelOperationReq(operationHandle=self.handle) self._rpc('CancelOperation', req)
def cancel_operation(service, operation_handle): req = TCancelOperationReq(operationHandle=operation_handle) log.debug('cancel_operation: req=%s', req) resp = service.CancelOperation(req) log.debug('cancel_operation: resp=%s', resp) err_if_rpc_not_ok(resp)