Options
All
  • Public
  • Public/Protected
  • All
Menu

Class LroImpl<T>

Package version

Type parameters

  • T

Hierarchy

  • LroImpl

Implements

  • any

Index

Constructors

constructor

  • new LroImpl(sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>, args: Record<string, unknown>, spec: { httpMethod: string; path?: undefined | string; requestBody?: unknown } & Record<string, any>, requestPath?: string, requestMethod?: string): LroImpl
  • Parameters

    • sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>
        • (args: any, spec: any): Promise<LroResponse<T>>
        • Parameters

          • args: any
          • spec: any

          Returns Promise<LroResponse<T>>

    • args: Record<string, unknown>
    • spec: { httpMethod: string; path?: undefined | string; requestBody?: unknown } & Record<string, any>
    • Default value requestPath: string = spec.path!
    • Default value requestMethod: string = spec.httpMethod

    Returns LroImpl

Properties

requestMethod

requestMethod: string

requestPath

requestPath: string

Methods

sendInitialRequest

  • sendInitialRequest(): Promise<LroResponse<T>>

sendPollRequest

  • sendPollRequest(path: string): Promise<LroResponse<T>>
  • Parameters

    • path: string

    Returns Promise<LroResponse<T>>

Generated using TypeDoc