LongRunningOperation interface

Description of a long running operation.

Properties

requestMethod

The HTTP request method. This should be set if the operation is a PUT or a DELETE.

requestPath

The request path. This should be set if the operation is a PUT and needs to poll from the same request path.

sendInitialRequest

A function that can be used to send initial request to the service.

sendPollRequest

A function that can be used to poll for the current status of a long running operation.

Property Details

requestMethod

The HTTP request method. This should be set if the operation is a PUT or a DELETE.

requestMethod?: string

Property Value

string

requestPath

The request path. This should be set if the operation is a PUT and needs to poll from the same request path.

requestPath?: string

Property Value

string

sendInitialRequest

A function that can be used to send initial request to the service.

sendInitialRequest: () => Promise<LroResponse<unknown>>

Property Value

() => Promise<LroResponse<unknown>>

sendPollRequest

A function that can be used to poll for the current status of a long running operation.

sendPollRequest: (path: string, options?: { abortSignal?: AbortSignalLike }) => Promise<LroResponse<T>>

Property Value

(path: string, options?: { abortSignal?: AbortSignalLike }) => Promise<LroResponse<T>>