new Operation(grpcOp, longrunningDescriptor, backoffSettings, callOptions)
Wrapper for a google.longrunnung.Operation.
Parameters:
Name | Type | Description |
---|---|---|
grpcOp |
google.longrunning.Operation |
The operation to be wrapped. |
longrunningDescriptor |
LongRunningDescriptor |
This defines the operations service client and unpacking mechanisms for the operation. |
backoffSettings |
BackoffSettings |
The backoff settings used in in polling the operation. |
callOptions |
CallOptions |
CallOptions used in making get operation requests. |
Methods
cancel() → {Promise}
Cancels current polling api call and cancels the operation.
Returns:
Type | Description |
---|---|
Promise |
the promise of the OperationsClient#cancelOperation api request. |
promise() → {promise}
Wraps the complete
and error
events in a Promise.
Returns:
Type | Description |
---|---|
promise |
|