src/longRunningCalls/longrunning.ts
Properties |
|
Methods |
constructor(grpcOp: Operation, longrunningDescriptor: LongRunningDescriptor, backoffSettings: BackoffSettings, callOptions?: CallOptions)
|
||||||||||||||||||||
Defined in src/longRunningCalls/longrunning.ts:72
|
||||||||||||||||||||
Wrapper for a google.longrunnung.Operation.
Parameters :
|
Optional _callOptions |
Type : CallOptions
|
Defined in src/longRunningCalls/longrunning.ts:67
|
backoffSettings |
Type : BackoffSettings
|
Defined in src/longRunningCalls/longrunning.ts:66
|
completeListeners |
Type : number
|
Defined in src/longRunningCalls/longrunning.ts:60
|
Optional currentCallPromise_ |
Type : CancellablePromise<ResultTuple>
|
Defined in src/longRunningCalls/longrunning.ts:68
|
Optional done |
Type : boolean
|
Defined in src/longRunningCalls/longrunning.ts:70
|
Optional error |
Type : GoogleError
|
Defined in src/longRunningCalls/longrunning.ts:71
|
hasActiveListeners |
Type : boolean
|
Defined in src/longRunningCalls/longrunning.ts:61
|
latestResponse |
Type : Operation
|
Defined in src/longRunningCalls/longrunning.ts:62
|
longrunningDescriptor |
Type : LongRunningDescriptor
|
Defined in src/longRunningCalls/longrunning.ts:63
|
metadata |
Type : Metadata | null
|
Defined in src/longRunningCalls/longrunning.ts:65
|
Optional name |
Type : string
|
Defined in src/longRunningCalls/longrunning.ts:69
|
Optional response |
Type : literal type
|
Defined in src/longRunningCalls/longrunning.ts:72
|
result |
Type : literal type | null
|
Defined in src/longRunningCalls/longrunning.ts:64
|
_listenForEvents |
_listenForEvents()
|
Defined in src/longRunningCalls/longrunning.ts:116
|
Begin listening for events on the operation. This method keeps track of how many "complete" listeners are registered and removed, making sure polling is handled automatically. As long as there is one active "complete" listener, the connection is open. When there are no more listeners, the polling stops.
Returns :
void
|
_unpackResponse | |||||||||
_unpackResponse(op: Operation, callback?: GetOperationCallback)
|
|||||||||
Defined in src/longRunningCalls/longrunning.ts:211
|
|||||||||
Parameters :
Returns :
void
|
cancel |
cancel()
|
Defined in src/longRunningCalls/longrunning.ts:141
|
Cancels current polling api call and cancels the operation.
Returns :
any
the promise of the OperationsClient#cancelOperation api request. |
getOperation |
getOperation()
|
Defined in src/longRunningCalls/longrunning.ts:167
|
Get the updated status of the operation. If the Operation has previously completed, this will use the status of the cached completed operation.
Returns :
Promise<literal type>
|
getOperation | ||||||
getOperation(callback: GetOperationCallback)
|
||||||
Defined in src/longRunningCalls/longrunning.ts:168
|
||||||
Parameters :
Returns :
void
|
getOperation | ||||||
getOperation(callback?: GetOperationCallback)
|
||||||
Defined in src/longRunningCalls/longrunning.ts:169
|
||||||
Parameters :
Returns :
Promise | void
|
promise |
promise()
|
Defined in src/longRunningCalls/longrunning.ts:332
|
Wraps the
Returns :
any
|
startPolling_ |
startPolling_()
|
Defined in src/longRunningCalls/longrunning.ts:251
|
Poll Note: This method is automatically called once a "complete" event handler is registered on the operation.
Returns :
void
|