1 | import { HttpOperationResponse, OperationArguments, OperationSpec, RequestOptionsBase, RequestPrepareOptions, ServiceClient, ServiceClientCredentials, ServiceClientOptions, WebResource } from "@azure/ms-rest-js";
|
2 | import { TokenCredential } from "@azure/core-auth";
|
3 | import { LROPoller } from "./lroPoller";
|
4 | import { LROPollState } from "./lroPollStrategy";
|
5 |
|
6 |
|
7 |
|
8 | export interface AzureServiceClientOptions extends ServiceClientOptions {
|
9 | |
10 |
|
11 |
|
12 | acceptLanguage?: string;
|
13 | |
14 |
|
15 |
|
16 |
|
17 | longRunningOperationRetryTimeout?: number;
|
18 | }
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 | export declare class AzureServiceClient extends ServiceClient {
|
29 | acceptLanguage: string;
|
30 | |
31 |
|
32 |
|
33 | longRunningOperationRetryTimeout?: number;
|
34 | constructor(credentials: ServiceClientCredentials | TokenCredential, options?: AzureServiceClientOptions);
|
35 | /**
|
36 | * Send the initial request of a LRO (long running operation) and get back an
|
37 | * LROPoller that provides methods for polling the LRO and checking if the LRO is finished.
|
38 | * @param operationArguments The arguments to the operation.
|
39 | * @param operationSpec The specification for the operation.
|
40 | * @param options Additional options to be sent while making the request.
|
41 | * @returns The LROPoller object that provides methods for interacting with the LRO.
|
42 | */
|
43 | sendLRORequest(operationArguments: OperationArguments, operationSpec: OperationSpec, options?: RequestOptionsBase): Promise<LROPoller>;
|
44 | /**
|
45 | * Provides a mechanism to make a request that will poll and provide the final result.
|
46 | * @param {msRest.RequestPrepareOptions|msRest.WebResource} request - The request object
|
47 | * @param {AzureRequestOptionsBase} [options] Additional options to be sent while making the request
|
48 | * @returns {Promise<msRest.HttpOperationResponse>} The HttpOperationResponse containing the final polling request, response and the responseBody.
|
49 | */
|
50 | sendLongRunningRequest(request: RequestPrepareOptions | WebResource, options?: RequestOptionsBase): Promise<HttpOperationResponse>;
|
51 | |
52 |
|
53 |
|
54 |
|
55 |
|
56 |
|
57 |
|
58 |
|
59 |
|
60 | beginLongRunningRequest(request: RequestPrepareOptions | WebResource, options?: RequestOptionsBase): Promise<LROPoller>;
|
61 | |
62 |
|
63 |
|
64 |
|
65 | restoreLROPoller(lroPollState: LROPollState): LROPoller;
|
66 | }
|
67 | export declare function getDefaultUserAgentValue(): string;
|
68 | export declare function updateOptionsWithDefaultValues(options?: AzureServiceClientOptions): AzureServiceClientOptions;
|
69 |
|
\ | No newline at end of file |