@azure-rest/arm-servicefabric 1.0.0-beta.1 → 1.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +4 -4
- package/README.md +4 -6
- package/dist/browser/clientDefinitions.d.ts +137 -0
- package/dist/browser/clientDefinitions.d.ts.map +1 -0
- package/dist/browser/clientDefinitions.js +4 -0
- package/dist/browser/clientDefinitions.js.map +1 -0
- package/dist/browser/customizedApiVersionPolicy.d.ts +10 -0
- package/dist/browser/customizedApiVersionPolicy.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/customizedApiVersionPolicy.js +1 -1
- package/dist/browser/customizedApiVersionPolicy.js.map +1 -0
- package/dist/browser/index.d.ts +12 -0
- package/dist/browser/index.d.ts.map +1 -0
- package/dist/browser/index.js +14 -0
- package/dist/browser/index.js.map +1 -0
- package/dist/browser/isUnexpected.d.ts +32 -0
- package/dist/browser/isUnexpected.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/isUnexpected.js +64 -120
- package/dist/browser/isUnexpected.js.map +1 -0
- package/dist/browser/logger.d.ts +2 -0
- package/dist/browser/logger.d.ts.map +1 -0
- package/dist/browser/logger.js +5 -0
- package/dist/browser/logger.js.map +1 -0
- package/dist/browser/models.d.ts +772 -0
- package/dist/browser/models.d.ts.map +1 -0
- package/dist/browser/models.js +4 -0
- package/dist/browser/models.js.map +1 -0
- package/dist/browser/outputModels.d.ts +861 -0
- package/dist/browser/outputModels.d.ts.map +1 -0
- package/dist/browser/outputModels.js +4 -0
- package/dist/browser/outputModels.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/dist/browser/paginateHelper.d.ts +68 -0
- package/dist/browser/paginateHelper.d.ts.map +1 -0
- package/dist/browser/paginateHelper.js +167 -0
- package/dist/browser/paginateHelper.js.map +1 -0
- package/dist/browser/parameters.d.ts +105 -0
- package/dist/browser/parameters.d.ts.map +1 -0
- package/dist/browser/parameters.js +4 -0
- package/dist/browser/parameters.js.map +1 -0
- package/dist/browser/pollingHelper.d.ts +76 -0
- package/dist/browser/pollingHelper.d.ts.map +1 -0
- package/dist/browser/pollingHelper.js +104 -0
- package/dist/browser/pollingHelper.js.map +1 -0
- package/dist/browser/responses.d.ts +328 -0
- package/dist/browser/responses.d.ts.map +1 -0
- package/dist/browser/responses.js +4 -0
- package/dist/browser/responses.js.map +1 -0
- package/dist/browser/serviceFabricClient.d.ts +15 -0
- package/dist/browser/serviceFabricClient.d.ts.map +1 -0
- package/dist/browser/serviceFabricClient.js +42 -0
- package/dist/browser/serviceFabricClient.js.map +1 -0
- package/dist/commonjs/clientDefinitions.d.ts +137 -0
- package/dist/commonjs/clientDefinitions.d.ts.map +1 -0
- package/dist/commonjs/clientDefinitions.js +5 -0
- package/dist/commonjs/clientDefinitions.js.map +1 -0
- package/dist/commonjs/customizedApiVersionPolicy.d.ts +10 -0
- package/dist/commonjs/customizedApiVersionPolicy.d.ts.map +1 -0
- package/dist/commonjs/customizedApiVersionPolicy.js +27 -0
- package/dist/commonjs/customizedApiVersionPolicy.js.map +1 -0
- package/dist/commonjs/index.d.ts +12 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +17 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/isUnexpected.d.ts +32 -0
- package/dist/commonjs/isUnexpected.d.ts.map +1 -0
- package/dist/commonjs/isUnexpected.js +102 -0
- package/dist/commonjs/isUnexpected.js.map +1 -0
- package/dist/commonjs/logger.d.ts +2 -0
- package/dist/commonjs/logger.d.ts.map +1 -0
- package/dist/commonjs/logger.js +8 -0
- package/dist/commonjs/logger.js.map +1 -0
- package/dist/commonjs/models.d.ts +772 -0
- package/dist/commonjs/models.d.ts.map +1 -0
- package/dist/commonjs/models.js +5 -0
- package/dist/commonjs/models.js.map +1 -0
- package/dist/commonjs/outputModels.d.ts +861 -0
- package/dist/commonjs/outputModels.d.ts.map +1 -0
- package/dist/commonjs/outputModels.js +5 -0
- package/dist/commonjs/outputModels.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/paginateHelper.d.ts +68 -0
- package/dist/commonjs/paginateHelper.d.ts.map +1 -0
- package/dist/commonjs/paginateHelper.js +170 -0
- package/dist/commonjs/paginateHelper.js.map +1 -0
- package/dist/commonjs/parameters.d.ts +105 -0
- package/dist/commonjs/parameters.d.ts.map +1 -0
- package/dist/commonjs/parameters.js +5 -0
- package/dist/commonjs/parameters.js.map +1 -0
- package/dist/commonjs/pollingHelper.d.ts +76 -0
- package/dist/commonjs/pollingHelper.d.ts.map +1 -0
- package/dist/commonjs/pollingHelper.js +107 -0
- package/dist/commonjs/pollingHelper.js.map +1 -0
- package/dist/commonjs/responses.d.ts +328 -0
- package/dist/commonjs/responses.d.ts.map +1 -0
- package/dist/commonjs/responses.js +5 -0
- package/dist/commonjs/responses.js.map +1 -0
- package/dist/commonjs/serviceFabricClient.d.ts +15 -0
- package/dist/commonjs/serviceFabricClient.d.ts.map +1 -0
- package/dist/commonjs/serviceFabricClient.js +45 -0
- package/dist/commonjs/serviceFabricClient.js.map +1 -0
- package/dist/commonjs/tsdoc-metadata.json +11 -0
- package/dist/esm/clientDefinitions.d.ts +137 -0
- package/dist/esm/clientDefinitions.d.ts.map +1 -0
- package/dist/esm/clientDefinitions.js +4 -0
- package/dist/esm/clientDefinitions.js.map +1 -0
- package/dist/esm/customizedApiVersionPolicy.d.ts +10 -0
- package/dist/esm/customizedApiVersionPolicy.d.ts.map +1 -0
- package/dist/esm/customizedApiVersionPolicy.js +23 -0
- package/dist/esm/customizedApiVersionPolicy.js.map +1 -0
- package/dist/esm/index.d.ts +12 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +14 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/isUnexpected.d.ts +32 -0
- package/dist/esm/isUnexpected.d.ts.map +1 -0
- package/dist/esm/isUnexpected.js +99 -0
- package/dist/esm/isUnexpected.js.map +1 -0
- package/dist/esm/logger.d.ts +2 -0
- package/dist/esm/logger.d.ts.map +1 -0
- package/dist/esm/logger.js +5 -0
- package/dist/esm/logger.js.map +1 -0
- package/dist/esm/models.d.ts +772 -0
- package/dist/esm/models.d.ts.map +1 -0
- package/dist/esm/models.js +4 -0
- package/dist/esm/models.js.map +1 -0
- package/dist/esm/outputModels.d.ts +861 -0
- package/dist/esm/outputModels.d.ts.map +1 -0
- package/dist/esm/outputModels.js +4 -0
- package/dist/esm/outputModels.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/paginateHelper.d.ts +68 -0
- package/dist/esm/paginateHelper.d.ts.map +1 -0
- package/dist/esm/paginateHelper.js +167 -0
- package/dist/esm/paginateHelper.js.map +1 -0
- package/dist/esm/parameters.d.ts +105 -0
- package/dist/esm/parameters.d.ts.map +1 -0
- package/dist/esm/parameters.js +4 -0
- package/dist/esm/parameters.js.map +1 -0
- package/dist/esm/pollingHelper.d.ts +76 -0
- package/dist/esm/pollingHelper.d.ts.map +1 -0
- package/dist/esm/pollingHelper.js +104 -0
- package/dist/esm/pollingHelper.js.map +1 -0
- package/dist/esm/responses.d.ts +328 -0
- package/dist/esm/responses.d.ts.map +1 -0
- package/dist/esm/responses.js +4 -0
- package/dist/esm/responses.js.map +1 -0
- package/dist/esm/serviceFabricClient.d.ts +15 -0
- package/dist/esm/serviceFabricClient.d.ts.map +1 -0
- package/dist/esm/serviceFabricClient.js +42 -0
- package/dist/esm/serviceFabricClient.js.map +1 -0
- package/dist/react-native/clientDefinitions.d.ts +137 -0
- package/dist/react-native/clientDefinitions.d.ts.map +1 -0
- package/dist/react-native/clientDefinitions.js +4 -0
- package/dist/react-native/clientDefinitions.js.map +1 -0
- package/dist/react-native/customizedApiVersionPolicy.d.ts +10 -0
- package/dist/react-native/customizedApiVersionPolicy.d.ts.map +1 -0
- package/dist/react-native/customizedApiVersionPolicy.js +23 -0
- package/dist/react-native/customizedApiVersionPolicy.js.map +1 -0
- package/dist/react-native/index.d.ts +12 -0
- package/dist/react-native/index.d.ts.map +1 -0
- package/dist/react-native/index.js +14 -0
- package/dist/react-native/index.js.map +1 -0
- package/dist/react-native/isUnexpected.d.ts +32 -0
- package/dist/react-native/isUnexpected.d.ts.map +1 -0
- package/dist/react-native/isUnexpected.js +99 -0
- package/dist/react-native/isUnexpected.js.map +1 -0
- package/dist/react-native/logger.d.ts +2 -0
- package/dist/react-native/logger.d.ts.map +1 -0
- package/dist/react-native/logger.js +5 -0
- package/dist/react-native/logger.js.map +1 -0
- package/dist/react-native/models.d.ts +772 -0
- package/dist/react-native/models.d.ts.map +1 -0
- package/dist/react-native/models.js +4 -0
- package/dist/react-native/models.js.map +1 -0
- package/dist/react-native/outputModels.d.ts +861 -0
- package/dist/react-native/outputModels.d.ts.map +1 -0
- package/dist/react-native/outputModels.js +4 -0
- package/dist/react-native/outputModels.js.map +1 -0
- package/dist/react-native/package.json +3 -0
- package/dist/react-native/paginateHelper.d.ts +68 -0
- package/dist/react-native/paginateHelper.d.ts.map +1 -0
- package/dist/react-native/paginateHelper.js +167 -0
- package/dist/react-native/paginateHelper.js.map +1 -0
- package/dist/react-native/parameters.d.ts +105 -0
- package/dist/react-native/parameters.d.ts.map +1 -0
- package/dist/react-native/parameters.js +4 -0
- package/dist/react-native/parameters.js.map +1 -0
- package/dist/react-native/pollingHelper.d.ts +76 -0
- package/dist/react-native/pollingHelper.d.ts.map +1 -0
- package/dist/react-native/pollingHelper.js +104 -0
- package/dist/react-native/pollingHelper.js.map +1 -0
- package/dist/react-native/responses.d.ts +328 -0
- package/dist/react-native/responses.d.ts.map +1 -0
- package/dist/react-native/responses.js +4 -0
- package/dist/react-native/responses.js.map +1 -0
- package/dist/react-native/serviceFabricClient.d.ts +15 -0
- package/dist/react-native/serviceFabricClient.d.ts.map +1 -0
- package/dist/react-native/serviceFabricClient.js +42 -0
- package/dist/react-native/serviceFabricClient.js.map +1 -0
- package/package.json +82 -66
- package/dist/index.js +0 -330
- package/dist/index.js.map +0 -1
- package/dist-esm/src/clientDefinitions.js +0 -4
- package/dist-esm/src/clientDefinitions.js.map +0 -1
- package/dist-esm/src/customizedApiVersionPolicy.js.map +0 -1
- package/dist-esm/src/index.js +0 -14
- package/dist-esm/src/index.js.map +0 -1
- package/dist-esm/src/isUnexpected.js.map +0 -1
- package/dist-esm/src/models.js +0 -4
- package/dist-esm/src/models.js.map +0 -1
- package/dist-esm/src/outputModels.js +0 -4
- package/dist-esm/src/outputModels.js.map +0 -1
- package/dist-esm/src/paginateHelper.js +0 -70
- package/dist-esm/src/paginateHelper.js.map +0 -1
- package/dist-esm/src/parameters.js +0 -4
- package/dist-esm/src/parameters.js.map +0 -1
- package/dist-esm/src/pollingHelper.js +0 -48
- package/dist-esm/src/pollingHelper.js.map +0 -1
- package/dist-esm/src/responses.js +0 -4
- package/dist-esm/src/responses.js.map +0 -1
- package/dist-esm/src/serviceFabricClient.js +0 -27
- package/dist-esm/src/serviceFabricClient.js.map +0 -1
- package/review/arm-servicefabric.api.md +0 -2071
- package/types/arm-servicefabric.d.ts +0 -2480
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import type { Client, HttpResponse } from "@azure-rest/core-client";
|
|
2
|
+
import type { AbortSignalLike } from "@azure/abort-controller";
|
|
3
|
+
import type { CancelOnProgress, CreateHttpPollerOptions, OperationState } from "@azure/core-lro";
|
|
4
|
+
/**
|
|
5
|
+
* A simple poller that can be used to poll a long running operation.
|
|
6
|
+
*/
|
|
7
|
+
export interface SimplePollerLike<TState extends OperationState<TResult>, TResult> {
|
|
8
|
+
/**
|
|
9
|
+
* Returns true if the poller has finished polling.
|
|
10
|
+
*/
|
|
11
|
+
isDone(): boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Returns the state of the operation.
|
|
14
|
+
*/
|
|
15
|
+
getOperationState(): TState;
|
|
16
|
+
/**
|
|
17
|
+
* Returns the result value of the operation,
|
|
18
|
+
* regardless of the state of the poller.
|
|
19
|
+
* It can return undefined or an incomplete form of the final TResult value
|
|
20
|
+
* depending on the implementation.
|
|
21
|
+
*/
|
|
22
|
+
getResult(): TResult | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* Returns a promise that will resolve once a single polling request finishes.
|
|
25
|
+
* It does this by calling the update method of the Poller's operation.
|
|
26
|
+
*/
|
|
27
|
+
poll(options?: {
|
|
28
|
+
abortSignal?: AbortSignalLike;
|
|
29
|
+
}): Promise<TState>;
|
|
30
|
+
/**
|
|
31
|
+
* Returns a promise that will resolve once the underlying operation is completed.
|
|
32
|
+
*/
|
|
33
|
+
pollUntilDone(pollOptions?: {
|
|
34
|
+
abortSignal?: AbortSignalLike;
|
|
35
|
+
}): Promise<TResult>;
|
|
36
|
+
/**
|
|
37
|
+
* Invokes the provided callback after each polling is completed,
|
|
38
|
+
* sending the current state of the poller's operation.
|
|
39
|
+
*
|
|
40
|
+
* It returns a method that can be used to stop receiving updates on the given callback function.
|
|
41
|
+
*/
|
|
42
|
+
onProgress(callback: (state: TState) => void): CancelOnProgress;
|
|
43
|
+
/**
|
|
44
|
+
* Returns a promise that could be used for serialized version of the poller's operation
|
|
45
|
+
* by invoking the operation's serialize method.
|
|
46
|
+
*/
|
|
47
|
+
serialize(): Promise<string>;
|
|
48
|
+
/**
|
|
49
|
+
* Wait the poller to be submitted.
|
|
50
|
+
*/
|
|
51
|
+
submitted(): Promise<void>;
|
|
52
|
+
/**
|
|
53
|
+
* Returns a string representation of the poller's operation. Similar to serialize but returns a string.
|
|
54
|
+
* @deprecated Use serialize() instead.
|
|
55
|
+
*/
|
|
56
|
+
toString(): string;
|
|
57
|
+
/**
|
|
58
|
+
* Stops the poller from continuing to poll. Please note this will only stop the client-side polling
|
|
59
|
+
* @deprecated Use abortSignal to stop polling instead.
|
|
60
|
+
*/
|
|
61
|
+
stopPolling(): void;
|
|
62
|
+
/**
|
|
63
|
+
* Returns true if the poller is stopped.
|
|
64
|
+
* @deprecated Use abortSignal status to track this instead.
|
|
65
|
+
*/
|
|
66
|
+
isStopped(): boolean;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Helper function that builds a Poller object to help polling a long running operation.
|
|
70
|
+
* @param client - Client to use for sending the request to get additional pages.
|
|
71
|
+
* @param initialResponse - The initial response.
|
|
72
|
+
* @param options - Options to set a resume state or custom polling interval.
|
|
73
|
+
* @returns - A poller object to poll for operation state updates and eventually get the final response.
|
|
74
|
+
*/
|
|
75
|
+
export declare function getLongRunningPoller<TResult extends HttpResponse>(client: Client, initialResponse: TResult, options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>): Promise<SimplePollerLike<OperationState<TResult>, TResult>>;
|
|
76
|
+
//# sourceMappingURL=pollingHelper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pollingHelper.d.ts","sourceRoot":"","sources":["../../src/pollingHelper.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACpE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,KAAK,EACV,gBAAgB,EAChB,uBAAuB,EAGvB,cAAc,EACf,MAAM,iBAAiB,CAAC;AAGzB;;GAEG;AACH,MAAM,WAAW,gBAAgB,CAAC,MAAM,SAAS,cAAc,CAAC,OAAO,CAAC,EAAE,OAAO;IAC/E;;OAEG;IACH,MAAM,IAAI,OAAO,CAAC;IAClB;;OAEG;IACH,iBAAiB,IAAI,MAAM,CAAC;IAC5B;;;;;OAKG;IACH,SAAS,IAAI,OAAO,GAAG,SAAS,CAAC;IACjC;;;OAGG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE;QAAE,WAAW,CAAC,EAAE,eAAe,CAAA;KAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IACnE;;OAEG;IACH,aAAa,CAAC,WAAW,CAAC,EAAE;QAAE,WAAW,CAAC,EAAE,eAAe,CAAA;KAAE,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IACjF;;;;;OAKG;IACH,UAAU,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,GAAG,gBAAgB,CAAC;IAEhE;;;OAGG;IACH,SAAS,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IAE7B;;OAEG;IACH,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAE3B;;;OAGG;IACH,QAAQ,IAAI,MAAM,CAAC;IAEnB;;;OAGG;IACH,WAAW,IAAI,IAAI,CAAC;IAEpB;;;OAGG;IACH,SAAS,IAAI,OAAO,CAAC;CACtB;AAED;;;;;;GAMG;AACH,wBAAsB,oBAAoB,CAAC,OAAO,SAAS,YAAY,EACrE,MAAM,EAAE,MAAM,EACd,eAAe,EAAE,OAAO,EACxB,OAAO,GAAE,uBAAuB,CAAC,OAAO,EAAE,cAAc,CAAC,OAAO,CAAC,CAAM,GACtE,OAAO,CAAC,gBAAgB,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,CAAC,CAgF7D"}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { createHttpPoller } from "@azure/core-lro";
|
|
4
|
+
/**
|
|
5
|
+
* Helper function that builds a Poller object to help polling a long running operation.
|
|
6
|
+
* @param client - Client to use for sending the request to get additional pages.
|
|
7
|
+
* @param initialResponse - The initial response.
|
|
8
|
+
* @param options - Options to set a resume state or custom polling interval.
|
|
9
|
+
* @returns - A poller object to poll for operation state updates and eventually get the final response.
|
|
10
|
+
*/
|
|
11
|
+
export async function getLongRunningPoller(client, initialResponse, options = {}) {
|
|
12
|
+
var _a;
|
|
13
|
+
const abortController = new AbortController();
|
|
14
|
+
const poller = {
|
|
15
|
+
sendInitialRequest: async () => {
|
|
16
|
+
// In the case of Rest Clients we are building the LRO poller object from a response that's the reason
|
|
17
|
+
// we are not triggering the initial request here, just extracting the information from the
|
|
18
|
+
// response we were provided.
|
|
19
|
+
return getLroResponse(initialResponse);
|
|
20
|
+
},
|
|
21
|
+
sendPollRequest: async (path, pollOptions) => {
|
|
22
|
+
// This is the callback that is going to be called to poll the service
|
|
23
|
+
// to get the latest status. We use the client provided and the polling path
|
|
24
|
+
// which is an opaque URL provided by caller, the service sends this in one of the following headers: operation-location, azure-asyncoperation or location
|
|
25
|
+
// depending on the lro pattern that the service implements. If non is provided we default to the initial path.
|
|
26
|
+
function abortListener() {
|
|
27
|
+
abortController.abort();
|
|
28
|
+
}
|
|
29
|
+
const inputAbortSignal = pollOptions === null || pollOptions === void 0 ? void 0 : pollOptions.abortSignal;
|
|
30
|
+
const abortSignal = abortController.signal;
|
|
31
|
+
if (inputAbortSignal === null || inputAbortSignal === void 0 ? void 0 : inputAbortSignal.aborted) {
|
|
32
|
+
abortController.abort();
|
|
33
|
+
}
|
|
34
|
+
else if (!abortSignal.aborted) {
|
|
35
|
+
inputAbortSignal === null || inputAbortSignal === void 0 ? void 0 : inputAbortSignal.addEventListener("abort", abortListener, {
|
|
36
|
+
once: true,
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
let response;
|
|
40
|
+
try {
|
|
41
|
+
response = await client
|
|
42
|
+
.pathUnchecked(path !== null && path !== void 0 ? path : initialResponse.request.url)
|
|
43
|
+
.get({ abortSignal });
|
|
44
|
+
}
|
|
45
|
+
finally {
|
|
46
|
+
inputAbortSignal === null || inputAbortSignal === void 0 ? void 0 : inputAbortSignal.removeEventListener("abort", abortListener);
|
|
47
|
+
}
|
|
48
|
+
const lroResponse = getLroResponse(response);
|
|
49
|
+
lroResponse.rawResponse.headers["x-ms-original-url"] = initialResponse.request.url;
|
|
50
|
+
return lroResponse;
|
|
51
|
+
},
|
|
52
|
+
};
|
|
53
|
+
options.resolveOnUnsuccessful = (_a = options.resolveOnUnsuccessful) !== null && _a !== void 0 ? _a : true;
|
|
54
|
+
const httpPoller = createHttpPoller(poller, options);
|
|
55
|
+
const simplePoller = {
|
|
56
|
+
isDone() {
|
|
57
|
+
return httpPoller.isDone;
|
|
58
|
+
},
|
|
59
|
+
isStopped() {
|
|
60
|
+
return abortController.signal.aborted;
|
|
61
|
+
},
|
|
62
|
+
getOperationState() {
|
|
63
|
+
if (!httpPoller.operationState) {
|
|
64
|
+
throw new Error("Operation state is not available. The poller may not have been started and you could await submitted() before calling getOperationState().");
|
|
65
|
+
}
|
|
66
|
+
return httpPoller.operationState;
|
|
67
|
+
},
|
|
68
|
+
getResult() {
|
|
69
|
+
return httpPoller.result;
|
|
70
|
+
},
|
|
71
|
+
toString() {
|
|
72
|
+
if (!httpPoller.operationState) {
|
|
73
|
+
throw new Error("Operation state is not available. The poller may not have been started and you could await submitted() before calling getOperationState().");
|
|
74
|
+
}
|
|
75
|
+
return JSON.stringify({
|
|
76
|
+
state: httpPoller.operationState,
|
|
77
|
+
});
|
|
78
|
+
},
|
|
79
|
+
stopPolling() {
|
|
80
|
+
abortController.abort();
|
|
81
|
+
},
|
|
82
|
+
onProgress: httpPoller.onProgress,
|
|
83
|
+
poll: httpPoller.poll,
|
|
84
|
+
pollUntilDone: httpPoller.pollUntilDone,
|
|
85
|
+
serialize: httpPoller.serialize,
|
|
86
|
+
submitted: httpPoller.submitted,
|
|
87
|
+
};
|
|
88
|
+
return simplePoller;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Converts a Rest Client response to a response that the LRO implementation understands
|
|
92
|
+
* @param response - a rest client http response
|
|
93
|
+
* @returns - An LRO response that the LRO implementation understands
|
|
94
|
+
*/
|
|
95
|
+
function getLroResponse(response) {
|
|
96
|
+
if (Number.isNaN(response.status)) {
|
|
97
|
+
throw new TypeError(`Status code of the response is not a number. Value: ${response.status}`);
|
|
98
|
+
}
|
|
99
|
+
return {
|
|
100
|
+
flatResponse: response,
|
|
101
|
+
rawResponse: Object.assign(Object.assign({}, response), { statusCode: Number.parseInt(response.status), body: response.body }),
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
//# sourceMapping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L,CAAC;QACD,WAAW;YACT,eAAe,CAAC,KAAK,EAAE,CAAC;QAC1B,CAAC;QACD,UAAU,EAAE,UAAU,CAAC,UAAU;QACjC,IAAI,EAAE,UAAU,CAAC,IAAI;QACrB,aAAa,EAAE,UAAU,CAAC,aAAa;QACvC,SAAS,EAAE,UAAU,CAAC,SAAS;QAC/B,SAAS,EAAE,UAAU,CAAC,SAAS;KAChC,CAAC;IACF,OAAO,YAAY,CAAC;AACtB,CAAC;AAED;;;;GAIG;AACH,SAAS,cAAc,CACrB,QAAiB;IAEjB,IAAI,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;QAClC,MAAM,IAAI,SAAS,CAAC,uDAAuD,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC;IAChG,CAAC;IAED,OAAO;QACL,YAAY,EAAE,QAAQ;QACtB,WAAW,kCACN,QAAQ,KACX,UAAU,EAAE,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,EAC5C,IAAI,EAAE,QAAQ,CAAC,IAAI,GACpB;KACF,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { Client, HttpResponse } from \"@azure-rest/core-client\";\nimport type { AbortSignalLike } from \"@azure/abort-controller\";\nimport type {\n CancelOnProgress,\n CreateHttpPollerOptions,\n RunningOperation,\n OperationResponse,\n OperationState,\n} from \"@azure/core-lro\";\nimport { createHttpPoller } from \"@azure/core-lro\";\n\n/**\n * A simple poller that can be used to poll a long running operation.\n */\nexport interface SimplePollerLike<TState extends OperationState<TResult>, TResult> {\n /**\n * Returns true if the poller has finished polling.\n */\n isDone(): boolean;\n /**\n * Returns the state of the operation.\n */\n getOperationState(): TState;\n /**\n * Returns the result value of the operation,\n * regardless of the state of the poller.\n * It can return undefined or an incomplete form of the final TResult value\n * depending on the implementation.\n */\n getResult(): TResult | undefined;\n /**\n * Returns a promise that will resolve once a single polling request finishes.\n * It does this by calling the update method of the Poller's operation.\n */\n poll(options?: { abortSignal?: AbortSignalLike }): Promise<TState>;\n /**\n * Returns a promise that will resolve once the underlying operation is completed.\n */\n pollUntilDone(pollOptions?: { abortSignal?: AbortSignalLike }): Promise<TResult>;\n /**\n * Invokes the provided callback after each polling is completed,\n * sending the current state of the poller's operation.\n *\n * It returns a method that can be used to stop receiving updates on the given callback function.\n */\n onProgress(callback: (state: TState) => void): CancelOnProgress;\n\n /**\n * Returns a promise that could be used for serialized version of the poller's operation\n * by invoking the operation's serialize method.\n */\n serialize(): Promise<string>;\n\n /**\n * Wait the poller to be submitted.\n */\n submitted(): Promise<void>;\n\n /**\n * Returns a string representation of the poller's operation. Similar to serialize but returns a string.\n * @deprecated Use serialize() instead.\n */\n toString(): string;\n\n /**\n * Stops the poller from continuing to poll. Please note this will only stop the client-side polling\n * @deprecated Use abortSignal to stop polling instead.\n */\n stopPolling(): void;\n\n /**\n * Returns true if the poller is stopped.\n * @deprecated Use abortSignal status to track this instead.\n */\n isStopped(): boolean;\n}\n\n/**\n * Helper function that builds a Poller object to help polling a long running operation.\n * @param client - Client to use for sending the request to get additional pages.\n * @param initialResponse - The initial response.\n * @param options - Options to set a resume state or custom polling interval.\n * @returns - A poller object to poll for operation state updates and eventually get the final response.\n */\nexport async function getLongRunningPoller<TResult extends HttpResponse>(\n client: Client,\n initialResponse: TResult,\n options: CreateHttpPollerOptions<TResult, OperationState<TResult>> = {},\n): Promise<SimplePollerLike<OperationState<TResult>, TResult>> {\n const abortController = new AbortController();\n const poller: RunningOperation<TResult> = {\n sendInitialRequest: async () => {\n // In the case of Rest Clients we are building the LRO poller object from a response that's the reason\n // we are not triggering the initial request here, just extracting the information from the\n // response we were provided.\n return getLroResponse(initialResponse);\n },\n sendPollRequest: async (path: string, pollOptions?: { abortSignal?: AbortSignalLike }) => {\n // This is the callback that is going to be called to poll the service\n // to get the latest status. We use the client provided and the polling path\n // which is an opaque URL provided by caller, the service sends this in one of the following headers: operation-location, azure-asyncoperation or location\n // depending on the lro pattern that the service implements. If non is provided we default to the initial path.\n function abortListener(): void {\n abortController.abort();\n }\n const inputAbortSignal = pollOptions?.abortSignal;\n const abortSignal = abortController.signal;\n if (inputAbortSignal?.aborted) {\n abortController.abort();\n } else if (!abortSignal.aborted) {\n inputAbortSignal?.addEventListener(\"abort\", abortListener, {\n once: true,\n });\n }\n let response;\n try {\n response = await client\n .pathUnchecked(path ?? initialResponse.request.url)\n .get({ abortSignal });\n } finally {\n inputAbortSignal?.removeEventListener(\"abort\", abortListener);\n }\n const lroResponse = getLroResponse(response as TResult);\n lroResponse.rawResponse.headers[\"x-ms-original-url\"] = initialResponse.request.url;\n return lroResponse;\n },\n };\n\n options.resolveOnUnsuccessful = options.resolveOnUnsuccessful ?? true;\n const httpPoller = createHttpPoller(poller, options);\n const simplePoller: SimplePollerLike<OperationState<TResult>, TResult> = {\n isDone() {\n return httpPoller.isDone;\n },\n isStopped() {\n return abortController.signal.aborted;\n },\n getOperationState() {\n if (!httpPoller.operationState) {\n throw new Error(\n \"Operation state is not available. The poller may not have been started and you could await submitted() before calling getOperationState().\",\n );\n }\n return httpPoller.operationState;\n },\n getResult() {\n return httpPoller.result;\n },\n toString() {\n if (!httpPoller.operationState) {\n throw new Error(\n \"Operation state is not available. The poller may not have been started and you could await submitted() before calling getOperationState().\",\n );\n }\n return JSON.stringify({\n state: httpPoller.operationState,\n });\n },\n stopPolling() {\n abortController.abort();\n },\n onProgress: httpPoller.onProgress,\n poll: httpPoller.poll,\n pollUntilDone: httpPoller.pollUntilDone,\n serialize: httpPoller.serialize,\n submitted: httpPoller.submitted,\n };\n return simplePoller;\n}\n\n/**\n * Converts a Rest Client response to a response that the LRO implementation understands\n * @param response - a rest client http response\n * @returns - An LRO response that the LRO implementation understands\n */\nfunction getLroResponse<TResult extends HttpResponse>(\n response: TResult,\n): OperationResponse<TResult> {\n if (Number.isNaN(response.status)) {\n throw new TypeError(`Status code of the response is not a number. Value: ${response.status}`);\n }\n\n return {\n flatResponse: response,\n rawResponse: {\n ...response,\n statusCode: Number.parseInt(response.status),\n body: response.body,\n },\n };\n}\n"]}
|
|
@@ -0,0 +1,328 @@
|
|
|
1
|
+
import type { HttpResponse } from "@azure-rest/core-client";
|
|
2
|
+
import type { ClusterOutput, ErrorModelOutput, ClusterListResultOutput, UpgradableVersionPathResultOutput, ClusterCodeVersionsListResultOutput, OperationListResultOutput, ApplicationTypeResourceOutput, ApplicationTypeResourceListOutput, ApplicationTypeVersionResourceOutput, ApplicationTypeVersionResourceListOutput, ApplicationResourceOutput, ApplicationResourceListOutput, ServiceResourceOutput, ServiceResourceListOutput } from "./outputModels.js";
|
|
3
|
+
/** Get a Service Fabric cluster resource created or in the process of being created in the specified resource group. */
|
|
4
|
+
export interface ClustersGet200Response extends HttpResponse {
|
|
5
|
+
status: "200";
|
|
6
|
+
body: ClusterOutput;
|
|
7
|
+
}
|
|
8
|
+
/** Get a Service Fabric cluster resource created or in the process of being created in the specified resource group. */
|
|
9
|
+
export interface ClustersGetDefaultResponse extends HttpResponse {
|
|
10
|
+
status: string;
|
|
11
|
+
body: ErrorModelOutput;
|
|
12
|
+
}
|
|
13
|
+
/** Create or update a Service Fabric cluster resource with the specified name. */
|
|
14
|
+
export interface ClustersCreateOrUpdate200Response extends HttpResponse {
|
|
15
|
+
status: "200";
|
|
16
|
+
body: ClusterOutput;
|
|
17
|
+
}
|
|
18
|
+
/** Create or update a Service Fabric cluster resource with the specified name. */
|
|
19
|
+
export interface ClustersCreateOrUpdate202Response extends HttpResponse {
|
|
20
|
+
status: "202";
|
|
21
|
+
body: ClusterOutput;
|
|
22
|
+
}
|
|
23
|
+
/** Create or update a Service Fabric cluster resource with the specified name. */
|
|
24
|
+
export interface ClustersCreateOrUpdateDefaultResponse extends HttpResponse {
|
|
25
|
+
status: string;
|
|
26
|
+
body: ErrorModelOutput;
|
|
27
|
+
}
|
|
28
|
+
/** Update the configuration of a Service Fabric cluster resource with the specified name. */
|
|
29
|
+
export interface ClustersUpdate200Response extends HttpResponse {
|
|
30
|
+
status: "200";
|
|
31
|
+
body: ClusterOutput;
|
|
32
|
+
}
|
|
33
|
+
/** Update the configuration of a Service Fabric cluster resource with the specified name. */
|
|
34
|
+
export interface ClustersUpdate202Response extends HttpResponse {
|
|
35
|
+
status: "202";
|
|
36
|
+
body: ClusterOutput;
|
|
37
|
+
}
|
|
38
|
+
/** Update the configuration of a Service Fabric cluster resource with the specified name. */
|
|
39
|
+
export interface ClustersUpdateDefaultResponse extends HttpResponse {
|
|
40
|
+
status: string;
|
|
41
|
+
body: ErrorModelOutput;
|
|
42
|
+
}
|
|
43
|
+
/** Delete a Service Fabric cluster resource with the specified name. */
|
|
44
|
+
export interface ClustersDelete200Response extends HttpResponse {
|
|
45
|
+
status: "200";
|
|
46
|
+
}
|
|
47
|
+
/** Delete a Service Fabric cluster resource with the specified name. */
|
|
48
|
+
export interface ClustersDelete204Response extends HttpResponse {
|
|
49
|
+
status: "204";
|
|
50
|
+
}
|
|
51
|
+
/** Delete a Service Fabric cluster resource with the specified name. */
|
|
52
|
+
export interface ClustersDeleteDefaultResponse extends HttpResponse {
|
|
53
|
+
status: string;
|
|
54
|
+
body: ErrorModelOutput;
|
|
55
|
+
}
|
|
56
|
+
/** Gets all Service Fabric cluster resources created or in the process of being created in the resource group. */
|
|
57
|
+
export interface ClustersListByResourceGroup200Response extends HttpResponse {
|
|
58
|
+
status: "200";
|
|
59
|
+
body: ClusterListResultOutput;
|
|
60
|
+
}
|
|
61
|
+
/** Gets all Service Fabric cluster resources created or in the process of being created in the resource group. */
|
|
62
|
+
export interface ClustersListByResourceGroupDefaultResponse extends HttpResponse {
|
|
63
|
+
status: string;
|
|
64
|
+
body: ErrorModelOutput;
|
|
65
|
+
}
|
|
66
|
+
/** Gets all Service Fabric cluster resources created or in the process of being created in the subscription. */
|
|
67
|
+
export interface ClustersList200Response extends HttpResponse {
|
|
68
|
+
status: "200";
|
|
69
|
+
body: ClusterListResultOutput;
|
|
70
|
+
}
|
|
71
|
+
/** Gets all Service Fabric cluster resources created or in the process of being created in the subscription. */
|
|
72
|
+
export interface ClustersListDefaultResponse extends HttpResponse {
|
|
73
|
+
status: string;
|
|
74
|
+
body: ErrorModelOutput;
|
|
75
|
+
}
|
|
76
|
+
/** If a target is not provided, it will get the minimum and maximum versions available from the current cluster version. If a target is given, it will provide the required path to get from the current cluster version to the target version. */
|
|
77
|
+
export interface ClustersListUpgradableVersions200Response extends HttpResponse {
|
|
78
|
+
status: "200";
|
|
79
|
+
body: UpgradableVersionPathResultOutput;
|
|
80
|
+
}
|
|
81
|
+
/** If a target is not provided, it will get the minimum and maximum versions available from the current cluster version. If a target is given, it will provide the required path to get from the current cluster version to the target version. */
|
|
82
|
+
export interface ClustersListUpgradableVersionsDefaultResponse extends HttpResponse {
|
|
83
|
+
status: string;
|
|
84
|
+
body: ErrorModelOutput;
|
|
85
|
+
}
|
|
86
|
+
/** Gets information about an available Service Fabric cluster code version. */
|
|
87
|
+
export interface ClusterVersionsGet200Response extends HttpResponse {
|
|
88
|
+
status: "200";
|
|
89
|
+
body: ClusterCodeVersionsListResultOutput;
|
|
90
|
+
}
|
|
91
|
+
/** Gets information about an available Service Fabric cluster code version. */
|
|
92
|
+
export interface ClusterVersionsGetDefaultResponse extends HttpResponse {
|
|
93
|
+
status: string;
|
|
94
|
+
body: ErrorModelOutput;
|
|
95
|
+
}
|
|
96
|
+
/** Gets information about an available Service Fabric cluster code version by environment. */
|
|
97
|
+
export interface ClusterVersionsGetByEnvironment200Response extends HttpResponse {
|
|
98
|
+
status: "200";
|
|
99
|
+
body: ClusterCodeVersionsListResultOutput;
|
|
100
|
+
}
|
|
101
|
+
/** Gets information about an available Service Fabric cluster code version by environment. */
|
|
102
|
+
export interface ClusterVersionsGetByEnvironmentDefaultResponse extends HttpResponse {
|
|
103
|
+
status: string;
|
|
104
|
+
body: ErrorModelOutput;
|
|
105
|
+
}
|
|
106
|
+
/** Gets all available code versions for Service Fabric cluster resources by location. */
|
|
107
|
+
export interface ClusterVersionsList200Response extends HttpResponse {
|
|
108
|
+
status: "200";
|
|
109
|
+
body: ClusterCodeVersionsListResultOutput;
|
|
110
|
+
}
|
|
111
|
+
/** Gets all available code versions for Service Fabric cluster resources by location. */
|
|
112
|
+
export interface ClusterVersionsListDefaultResponse extends HttpResponse {
|
|
113
|
+
status: string;
|
|
114
|
+
body: ErrorModelOutput;
|
|
115
|
+
}
|
|
116
|
+
/** Gets all available code versions for Service Fabric cluster resources by environment. */
|
|
117
|
+
export interface ClusterVersionsListByEnvironment200Response extends HttpResponse {
|
|
118
|
+
status: "200";
|
|
119
|
+
body: ClusterCodeVersionsListResultOutput;
|
|
120
|
+
}
|
|
121
|
+
/** Gets all available code versions for Service Fabric cluster resources by environment. */
|
|
122
|
+
export interface ClusterVersionsListByEnvironmentDefaultResponse extends HttpResponse {
|
|
123
|
+
status: string;
|
|
124
|
+
body: ErrorModelOutput;
|
|
125
|
+
}
|
|
126
|
+
/** Get the list of available Service Fabric resource provider API operations. */
|
|
127
|
+
export interface OperationsList200Response extends HttpResponse {
|
|
128
|
+
status: "200";
|
|
129
|
+
body: OperationListResultOutput;
|
|
130
|
+
}
|
|
131
|
+
/** Get the list of available Service Fabric resource provider API operations. */
|
|
132
|
+
export interface OperationsListDefaultResponse extends HttpResponse {
|
|
133
|
+
status: string;
|
|
134
|
+
body: ErrorModelOutput;
|
|
135
|
+
}
|
|
136
|
+
/** Get a Service Fabric application type name resource created or in the process of being created in the Service Fabric cluster resource. */
|
|
137
|
+
export interface ApplicationTypesGet200Response extends HttpResponse {
|
|
138
|
+
status: "200";
|
|
139
|
+
body: ApplicationTypeResourceOutput;
|
|
140
|
+
}
|
|
141
|
+
/** Get a Service Fabric application type name resource created or in the process of being created in the Service Fabric cluster resource. */
|
|
142
|
+
export interface ApplicationTypesGetDefaultResponse extends HttpResponse {
|
|
143
|
+
status: string;
|
|
144
|
+
body: ErrorModelOutput;
|
|
145
|
+
}
|
|
146
|
+
/** Create or update a Service Fabric application type name resource with the specified name. */
|
|
147
|
+
export interface ApplicationTypesCreateOrUpdate200Response extends HttpResponse {
|
|
148
|
+
status: "200";
|
|
149
|
+
body: ApplicationTypeResourceOutput;
|
|
150
|
+
}
|
|
151
|
+
/** Create or update a Service Fabric application type name resource with the specified name. */
|
|
152
|
+
export interface ApplicationTypesCreateOrUpdateDefaultResponse extends HttpResponse {
|
|
153
|
+
status: string;
|
|
154
|
+
body: ErrorModelOutput;
|
|
155
|
+
}
|
|
156
|
+
/** Delete a Service Fabric application type name resource with the specified name. */
|
|
157
|
+
export interface ApplicationTypesDelete202Response extends HttpResponse {
|
|
158
|
+
status: "202";
|
|
159
|
+
}
|
|
160
|
+
/** Delete a Service Fabric application type name resource with the specified name. */
|
|
161
|
+
export interface ApplicationTypesDelete204Response extends HttpResponse {
|
|
162
|
+
status: "204";
|
|
163
|
+
}
|
|
164
|
+
/** Delete a Service Fabric application type name resource with the specified name. */
|
|
165
|
+
export interface ApplicationTypesDeleteDefaultResponse extends HttpResponse {
|
|
166
|
+
status: string;
|
|
167
|
+
body: ErrorModelOutput;
|
|
168
|
+
}
|
|
169
|
+
/** Gets all application type name resources created or in the process of being created in the Service Fabric cluster resource. */
|
|
170
|
+
export interface ApplicationTypesList200Response extends HttpResponse {
|
|
171
|
+
status: "200";
|
|
172
|
+
body: ApplicationTypeResourceListOutput;
|
|
173
|
+
}
|
|
174
|
+
/** Gets all application type name resources created or in the process of being created in the Service Fabric cluster resource. */
|
|
175
|
+
export interface ApplicationTypesListDefaultResponse extends HttpResponse {
|
|
176
|
+
status: string;
|
|
177
|
+
body: ErrorModelOutput;
|
|
178
|
+
}
|
|
179
|
+
/** Get a Service Fabric application type version resource created or in the process of being created in the Service Fabric application type name resource. */
|
|
180
|
+
export interface ApplicationTypeVersionsGet200Response extends HttpResponse {
|
|
181
|
+
status: "200";
|
|
182
|
+
body: ApplicationTypeVersionResourceOutput;
|
|
183
|
+
}
|
|
184
|
+
/** Get a Service Fabric application type version resource created or in the process of being created in the Service Fabric application type name resource. */
|
|
185
|
+
export interface ApplicationTypeVersionsGetDefaultResponse extends HttpResponse {
|
|
186
|
+
status: string;
|
|
187
|
+
body: ErrorModelOutput;
|
|
188
|
+
}
|
|
189
|
+
/** Create or update a Service Fabric application type version resource with the specified name. */
|
|
190
|
+
export interface ApplicationTypeVersionsCreateOrUpdate202Response extends HttpResponse {
|
|
191
|
+
status: "202";
|
|
192
|
+
body: ApplicationTypeVersionResourceOutput;
|
|
193
|
+
}
|
|
194
|
+
/** Create or update a Service Fabric application type version resource with the specified name. */
|
|
195
|
+
export interface ApplicationTypeVersionsCreateOrUpdateDefaultResponse extends HttpResponse {
|
|
196
|
+
status: string;
|
|
197
|
+
body: ErrorModelOutput;
|
|
198
|
+
}
|
|
199
|
+
/** Delete a Service Fabric application type version resource with the specified name. */
|
|
200
|
+
export interface ApplicationTypeVersionsDelete202Response extends HttpResponse {
|
|
201
|
+
status: "202";
|
|
202
|
+
}
|
|
203
|
+
/** Delete a Service Fabric application type version resource with the specified name. */
|
|
204
|
+
export interface ApplicationTypeVersionsDelete204Response extends HttpResponse {
|
|
205
|
+
status: "204";
|
|
206
|
+
}
|
|
207
|
+
/** Delete a Service Fabric application type version resource with the specified name. */
|
|
208
|
+
export interface ApplicationTypeVersionsDeleteDefaultResponse extends HttpResponse {
|
|
209
|
+
status: string;
|
|
210
|
+
body: ErrorModelOutput;
|
|
211
|
+
}
|
|
212
|
+
/** Gets all application type version resources created or in the process of being created in the Service Fabric application type name resource. */
|
|
213
|
+
export interface ApplicationTypeVersionsList200Response extends HttpResponse {
|
|
214
|
+
status: "200";
|
|
215
|
+
body: ApplicationTypeVersionResourceListOutput;
|
|
216
|
+
}
|
|
217
|
+
/** Gets all application type version resources created or in the process of being created in the Service Fabric application type name resource. */
|
|
218
|
+
export interface ApplicationTypeVersionsListDefaultResponse extends HttpResponse {
|
|
219
|
+
status: string;
|
|
220
|
+
body: ErrorModelOutput;
|
|
221
|
+
}
|
|
222
|
+
/** Get a Service Fabric application resource created or in the process of being created in the Service Fabric cluster resource. */
|
|
223
|
+
export interface ApplicationsGet200Response extends HttpResponse {
|
|
224
|
+
status: "200";
|
|
225
|
+
body: ApplicationResourceOutput;
|
|
226
|
+
}
|
|
227
|
+
/** Get a Service Fabric application resource created or in the process of being created in the Service Fabric cluster resource. */
|
|
228
|
+
export interface ApplicationsGetDefaultResponse extends HttpResponse {
|
|
229
|
+
status: string;
|
|
230
|
+
body: ErrorModelOutput;
|
|
231
|
+
}
|
|
232
|
+
/** Create or update a Service Fabric application resource with the specified name. */
|
|
233
|
+
export interface ApplicationsCreateOrUpdate202Response extends HttpResponse {
|
|
234
|
+
status: "202";
|
|
235
|
+
body: ApplicationResourceOutput;
|
|
236
|
+
}
|
|
237
|
+
/** Create or update a Service Fabric application resource with the specified name. */
|
|
238
|
+
export interface ApplicationsCreateOrUpdateDefaultResponse extends HttpResponse {
|
|
239
|
+
status: string;
|
|
240
|
+
body: ErrorModelOutput;
|
|
241
|
+
}
|
|
242
|
+
/** Update a Service Fabric application resource with the specified name. */
|
|
243
|
+
export interface ApplicationsUpdate202Response extends HttpResponse {
|
|
244
|
+
status: "202";
|
|
245
|
+
body: ApplicationResourceOutput;
|
|
246
|
+
}
|
|
247
|
+
/** Update a Service Fabric application resource with the specified name. */
|
|
248
|
+
export interface ApplicationsUpdateDefaultResponse extends HttpResponse {
|
|
249
|
+
status: string;
|
|
250
|
+
body: ErrorModelOutput;
|
|
251
|
+
}
|
|
252
|
+
/** Delete a Service Fabric application resource with the specified name. */
|
|
253
|
+
export interface ApplicationsDelete202Response extends HttpResponse {
|
|
254
|
+
status: "202";
|
|
255
|
+
}
|
|
256
|
+
/** Delete a Service Fabric application resource with the specified name. */
|
|
257
|
+
export interface ApplicationsDelete204Response extends HttpResponse {
|
|
258
|
+
status: "204";
|
|
259
|
+
}
|
|
260
|
+
/** Delete a Service Fabric application resource with the specified name. */
|
|
261
|
+
export interface ApplicationsDeleteDefaultResponse extends HttpResponse {
|
|
262
|
+
status: string;
|
|
263
|
+
body: ErrorModelOutput;
|
|
264
|
+
}
|
|
265
|
+
/** Gets all application resources created or in the process of being created in the Service Fabric cluster resource. */
|
|
266
|
+
export interface ApplicationsList200Response extends HttpResponse {
|
|
267
|
+
status: "200";
|
|
268
|
+
body: ApplicationResourceListOutput;
|
|
269
|
+
}
|
|
270
|
+
/** Gets all application resources created or in the process of being created in the Service Fabric cluster resource. */
|
|
271
|
+
export interface ApplicationsListDefaultResponse extends HttpResponse {
|
|
272
|
+
status: string;
|
|
273
|
+
body: ErrorModelOutput;
|
|
274
|
+
}
|
|
275
|
+
/** Get a Service Fabric service resource created or in the process of being created in the Service Fabric application resource. */
|
|
276
|
+
export interface ServicesGet200Response extends HttpResponse {
|
|
277
|
+
status: "200";
|
|
278
|
+
body: ServiceResourceOutput;
|
|
279
|
+
}
|
|
280
|
+
/** Get a Service Fabric service resource created or in the process of being created in the Service Fabric application resource. */
|
|
281
|
+
export interface ServicesGetDefaultResponse extends HttpResponse {
|
|
282
|
+
status: string;
|
|
283
|
+
body: ErrorModelOutput;
|
|
284
|
+
}
|
|
285
|
+
/** Create or update a Service Fabric service resource with the specified name. */
|
|
286
|
+
export interface ServicesCreateOrUpdate202Response extends HttpResponse {
|
|
287
|
+
status: "202";
|
|
288
|
+
body: ServiceResourceOutput;
|
|
289
|
+
}
|
|
290
|
+
/** Create or update a Service Fabric service resource with the specified name. */
|
|
291
|
+
export interface ServicesCreateOrUpdateDefaultResponse extends HttpResponse {
|
|
292
|
+
status: string;
|
|
293
|
+
body: ErrorModelOutput;
|
|
294
|
+
}
|
|
295
|
+
/** Update a Service Fabric service resource with the specified name. */
|
|
296
|
+
export interface ServicesUpdate202Response extends HttpResponse {
|
|
297
|
+
status: "202";
|
|
298
|
+
body: ServiceResourceOutput;
|
|
299
|
+
}
|
|
300
|
+
/** Update a Service Fabric service resource with the specified name. */
|
|
301
|
+
export interface ServicesUpdateDefaultResponse extends HttpResponse {
|
|
302
|
+
status: string;
|
|
303
|
+
body: ErrorModelOutput;
|
|
304
|
+
}
|
|
305
|
+
/** Delete a Service Fabric service resource with the specified name. */
|
|
306
|
+
export interface ServicesDelete202Response extends HttpResponse {
|
|
307
|
+
status: "202";
|
|
308
|
+
}
|
|
309
|
+
/** Delete a Service Fabric service resource with the specified name. */
|
|
310
|
+
export interface ServicesDelete204Response extends HttpResponse {
|
|
311
|
+
status: "204";
|
|
312
|
+
}
|
|
313
|
+
/** Delete a Service Fabric service resource with the specified name. */
|
|
314
|
+
export interface ServicesDeleteDefaultResponse extends HttpResponse {
|
|
315
|
+
status: string;
|
|
316
|
+
body: ErrorModelOutput;
|
|
317
|
+
}
|
|
318
|
+
/** Gets all service resources created or in the process of being created in the Service Fabric application resource. */
|
|
319
|
+
export interface ServicesList200Response extends HttpResponse {
|
|
320
|
+
status: "200";
|
|
321
|
+
body: ServiceResourceListOutput;
|
|
322
|
+
}
|
|
323
|
+
/** Gets all service resources created or in the process of being created in the Service Fabric application resource. */
|
|
324
|
+
export interface ServicesListDefaultResponse extends HttpResponse {
|
|
325
|
+
status: string;
|
|
326
|
+
body: ErrorModelOutput;
|
|
327
|
+
}
|
|
328
|
+
//# sourceMappingURL=responses.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../src/responses.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,KAAK,EACV,aAAa,EACb,gBAAgB,EAChB,uBAAuB,EACvB,iCAAiC,EACjC,mCAAmC,EACnC,yBAAyB,EACzB,6BAA6B,EAC7B,iCAAiC,EACjC,oCAAoC,EACpC,wCAAwC,EACxC,yBAAyB,EACzB,6BAA6B,EAC7B,qBAAqB,EACrB,yBAAyB,EAC1B,MAAM,mBAAmB,CAAC;AAE3B,wHAAwH;AACxH,MAAM,WAAW,sBAAuB,SAAQ,YAAY;IAC1D,MAA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MAAM,WAAW,6BAA8B,SAAQ,YAAY;IACjE,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,gBAAgB,CAAC;CACxB;AAED,wHAAwH;AACxH,MAAM,WAAW,uBAAwB,SAAQ,YAAY;IAC3D,MAAM,EAAE,KAAK,CAAC;IACd,IAAI,EAAE,yBAAyB,CAAC;CACjC;AAED,wHAAwH;AACxH,MAAM,WAAW,2BAA4B,SAAQ,YAAY;IAC/D,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,gBAAgB,CAAC;CACxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"responses.js","sourceRoot":"","sources":["../../src/responses.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { HttpResponse } from \"@azure-rest/core-client\";\nimport type {\n ClusterOutput,\n ErrorModelOutput,\n ClusterListResultOutput,\n UpgradableVersionPathResultOutput,\n ClusterCodeVersionsListResultOutput,\n OperationListResultOutput,\n ApplicationTypeResourceOutput,\n ApplicationTypeResourceListOutput,\n ApplicationTypeVersionResourceOutput,\n ApplicationTypeVersionResourceListOutput,\n ApplicationResourceOutput,\n ApplicationResourceListOutput,\n ServiceResourceOutput,\n ServiceResourceListOutput,\n} from \"./outputModels.js\";\n\n/** Get a Service Fabric cluster resource created or in the process of being created in the specified resource group. */\nexport interface ClustersGet200Response extends HttpResponse {\n status: \"200\";\n body: ClusterOutput;\n}\n\n/** Get a Service Fabric cluster resource created or in the process of being created in the specified resource group. */\nexport interface ClustersGetDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** Create or update a Service Fabric cluster resource with the specified name. */\nexport interface ClustersCreateOrUpdate200Response extends HttpResponse {\n status: \"200\";\n body: ClusterOutput;\n}\n\n/** Create or update a Service Fabric cluster resource with the specified name. */\nexport interface ClustersCreateOrUpdate202Response extends HttpResponse {\n status: \"202\";\n body: ClusterOutput;\n}\n\n/** Create or update a Service Fabric cluster resource with the specified name. */\nexport interface ClustersCreateOrUpdateDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** Update the configuration of a Service Fabric cluster resource with the specified name. */\nexport interface ClustersUpdate200Response extends HttpResponse {\n status: \"200\";\n body: ClusterOutput;\n}\n\n/** Update the configuration of a Service Fabric cluster resource with the specified name. */\nexport interface ClustersUpdate202Response extends HttpResponse {\n status: \"202\";\n body: ClusterOutput;\n}\n\n/** Update the configuration of a Service Fabric cluster resource with the specified name. */\nexport interface ClustersUpdateDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** Delete a Service Fabric cluster resource with the specified name. */\nexport interface ClustersDelete200Response extends HttpResponse {\n status: \"200\";\n}\n\n/** Delete a Service Fabric cluster resource with the specified name. */\nexport interface ClustersDelete204Response extends HttpResponse {\n status: \"204\";\n}\n\n/** Delete a Service Fabric cluster resource with the specified name. */\nexport interface ClustersDeleteDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** Gets all Service Fabric cluster resources created or in the process of being created in the resource group. */\nexport interface ClustersListByResourceGroup200Response extends HttpResponse {\n status: \"200\";\n body: ClusterListResultOutput;\n}\n\n/** Gets all Service Fabric cluster resources created or in the process of being created in the resource group. */\nexport interface ClustersListByResourceGroupDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** Gets all Service Fabric cluster resources created or in the process of being created in the subscription. */\nexport interface ClustersList200Response extends HttpResponse {\n status: \"200\";\n body: ClusterListResultOutput;\n}\n\n/** Gets all Service Fabric cluster resources created or in the process of being created in the subscription. */\nexport interface ClustersListDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** If a target is not provided, it will get the minimum and maximum versions available from the current cluster version. If a target is given, it will provide the required path to get from the current cluster version to the target version. */\nexport interface ClustersListUpgradableVersions200Response extends HttpResponse {\n status: \"200\";\n body: UpgradableVersionPathResultOutput;\n}\n\n/** If a target is not provided, it will get the minimum and maximum versions available from the current cluster version. If a target is given, it will provide the required path to get from the current cluster version to the target version. */\nexport interface ClustersListUpgradableVersionsDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** Gets information about an available Service Fabric cluster code version. */\nexport interface ClusterVersionsGet200Response extends HttpResponse {\n status: \"200\";\n body: ClusterCodeVersionsListResultOutput;\n}\n\n/** Gets information about an available Service Fabric cluster code version. */\nexport interface ClusterVersionsGetDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** Gets information about an available Service Fabric cluster code version by environment. */\nexport interface ClusterVersionsGetByEnvironment200Response extends HttpResponse {\n status: \"200\";\n body: ClusterCodeVersionsListResultOutput;\n}\n\n/** Gets information about an available Service Fabric cluster code version by environment. */\nexport interface ClusterVersionsGetByEnvironmentDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** Gets all available code versions for Service Fabric cluster resources by location. */\nexport interface ClusterVersionsList200Response extends HttpResponse {\n status: \"200\";\n body: ClusterCodeVersionsListResultOutput;\n}\n\n/** Gets all available code versions for Service Fabric cluster resources by location. */\nexport interface ClusterVersionsListDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** Gets all available code versions for Service Fabric cluster resources by environment. */\nexport interface ClusterVersionsListByEnvironment200Response extends HttpResponse {\n status: \"200\";\n body: ClusterCodeVersionsListResultOutput;\n}\n\n/** Gets all available code versions for Service Fabric cluster resources by environment. */\nexport interface ClusterVersionsListByEnvironmentDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** Get the list of available Service Fabric resource provider API operations. */\nexport interface OperationsList200Response extends HttpResponse {\n status: \"200\";\n body: OperationListResultOutput;\n}\n\n/** Get the list of available Service Fabric resource provider API operations. */\nexport interface OperationsListDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** Get a Service Fabric application type name resource created or in the process of being created in the Service Fabric cluster resource. */\nexport interface ApplicationTypesGet200Response extends HttpResponse {\n status: \"200\";\n body: ApplicationTypeResourceOutput;\n}\n\n/** Get a Service Fabric application type name resource created or in the process of being created in the Service Fabric cluster resource. */\nexport interface ApplicationTypesGetDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** Create or update a Service Fabric application type name resource with the specified name. */\nexport interface ApplicationTypesCreateOrUpdate200Response extends HttpResponse {\n status: \"200\";\n body: ApplicationTypeResourceOutput;\n}\n\n/** Create or update a Service Fabric application type name resource with the specified name. */\nexport interface ApplicationTypesCreateOrUpdateDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** Delete a Service Fabric application type name resource with the specified name. */\nexport interface ApplicationTypesDelete202Response extends HttpResponse {\n status: \"202\";\n}\n\n/** Delete a Service Fabric application type name resource with the specified name. */\nexport interface ApplicationTypesDelete204Response extends HttpResponse {\n status: \"204\";\n}\n\n/** Delete a Service Fabric application type name resource with the specified name. */\nexport interface ApplicationTypesDeleteDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** Gets all application type name resources created or in the process of being created in the Service Fabric cluster resource. */\nexport interface ApplicationTypesList200Response extends HttpResponse {\n status: \"200\";\n body: ApplicationTypeResourceListOutput;\n}\n\n/** Gets all application type name resources created or in the process of being created in the Service Fabric cluster resource. */\nexport interface ApplicationTypesListDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** Get a Service Fabric application type version resource created or in the process of being created in the Service Fabric application type name resource. */\nexport interface ApplicationTypeVersionsGet200Response extends HttpResponse {\n status: \"200\";\n body: ApplicationTypeVersionResourceOutput;\n}\n\n/** Get a Service Fabric application type version resource created or in the process of being created in the Service Fabric application type name resource. */\nexport interface ApplicationTypeVersionsGetDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** Create or update a Service Fabric application type version resource with the specified name. */\nexport interface ApplicationTypeVersionsCreateOrUpdate202Response extends HttpResponse {\n status: \"202\";\n body: ApplicationTypeVersionResourceOutput;\n}\n\n/** Create or update a Service Fabric application type version resource with the specified name. */\nexport interface ApplicationTypeVersionsCreateOrUpdateDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** Delete a Service Fabric application type version resource with the specified name. */\nexport interface ApplicationTypeVersionsDelete202Response extends HttpResponse {\n status: \"202\";\n}\n\n/** Delete a Service Fabric application type version resource with the specified name. */\nexport interface ApplicationTypeVersionsDelete204Response extends HttpResponse {\n status: \"204\";\n}\n\n/** Delete a Service Fabric application type version resource with the specified name. */\nexport interface ApplicationTypeVersionsDeleteDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** Gets all application type version resources created or in the process of being created in the Service Fabric application type name resource. */\nexport interface ApplicationTypeVersionsList200Response extends HttpResponse {\n status: \"200\";\n body: ApplicationTypeVersionResourceListOutput;\n}\n\n/** Gets all application type version resources created or in the process of being created in the Service Fabric application type name resource. */\nexport interface ApplicationTypeVersionsListDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** Get a Service Fabric application resource created or in the process of being created in the Service Fabric cluster resource. */\nexport interface ApplicationsGet200Response extends HttpResponse {\n status: \"200\";\n body: ApplicationResourceOutput;\n}\n\n/** Get a Service Fabric application resource created or in the process of being created in the Service Fabric cluster resource. */\nexport interface ApplicationsGetDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** Create or update a Service Fabric application resource with the specified name. */\nexport interface ApplicationsCreateOrUpdate202Response extends HttpResponse {\n status: \"202\";\n body: ApplicationResourceOutput;\n}\n\n/** Create or update a Service Fabric application resource with the specified name. */\nexport interface ApplicationsCreateOrUpdateDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** Update a Service Fabric application resource with the specified name. */\nexport interface ApplicationsUpdate202Response extends HttpResponse {\n status: \"202\";\n body: ApplicationResourceOutput;\n}\n\n/** Update a Service Fabric application resource with the specified name. */\nexport interface ApplicationsUpdateDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** Delete a Service Fabric application resource with the specified name. */\nexport interface ApplicationsDelete202Response extends HttpResponse {\n status: \"202\";\n}\n\n/** Delete a Service Fabric application resource with the specified name. */\nexport interface ApplicationsDelete204Response extends HttpResponse {\n status: \"204\";\n}\n\n/** Delete a Service Fabric application resource with the specified name. */\nexport interface ApplicationsDeleteDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** Gets all application resources created or in the process of being created in the Service Fabric cluster resource. */\nexport interface ApplicationsList200Response extends HttpResponse {\n status: \"200\";\n body: ApplicationResourceListOutput;\n}\n\n/** Gets all application resources created or in the process of being created in the Service Fabric cluster resource. */\nexport interface ApplicationsListDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** Get a Service Fabric service resource created or in the process of being created in the Service Fabric application resource. */\nexport interface ServicesGet200Response extends HttpResponse {\n status: \"200\";\n body: ServiceResourceOutput;\n}\n\n/** Get a Service Fabric service resource created or in the process of being created in the Service Fabric application resource. */\nexport interface ServicesGetDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** Create or update a Service Fabric service resource with the specified name. */\nexport interface ServicesCreateOrUpdate202Response extends HttpResponse {\n status: \"202\";\n body: ServiceResourceOutput;\n}\n\n/** Create or update a Service Fabric service resource with the specified name. */\nexport interface ServicesCreateOrUpdateDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** Update a Service Fabric service resource with the specified name. */\nexport interface ServicesUpdate202Response extends HttpResponse {\n status: \"202\";\n body: ServiceResourceOutput;\n}\n\n/** Update a Service Fabric service resource with the specified name. */\nexport interface ServicesUpdateDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** Delete a Service Fabric service resource with the specified name. */\nexport interface ServicesDelete202Response extends HttpResponse {\n status: \"202\";\n}\n\n/** Delete a Service Fabric service resource with the specified name. */\nexport interface ServicesDelete204Response extends HttpResponse {\n status: \"204\";\n}\n\n/** Delete a Service Fabric service resource with the specified name. */\nexport interface ServicesDeleteDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n\n/** Gets all service resources created or in the process of being created in the Service Fabric application resource. */\nexport interface ServicesList200Response extends HttpResponse {\n status: \"200\";\n body: ServiceResourceListOutput;\n}\n\n/** Gets all service resources created or in the process of being created in the Service Fabric application resource. */\nexport interface ServicesListDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorModelOutput;\n}\n"]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ClientOptions } from "@azure-rest/core-client";
|
|
2
|
+
import type { TokenCredential } from "@azure/core-auth";
|
|
3
|
+
import type { ServiceFabricClient } from "./clientDefinitions.js";
|
|
4
|
+
/** The optional parameters for the client */
|
|
5
|
+
export interface ServiceFabricClientOptions extends ClientOptions {
|
|
6
|
+
/** The api version option of the client */
|
|
7
|
+
apiVersion?: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Initialize a new instance of `ServiceFabricClient`
|
|
11
|
+
* @param credentials - uniquely identify client credential
|
|
12
|
+
* @param options - the parameter for all optional parameters
|
|
13
|
+
*/
|
|
14
|
+
export default function createClient(credentials: TokenCredential, { apiVersion, ...options }?: ServiceFabricClientOptions): ServiceFabricClient;
|
|
15
|
+
//# sourceMappingURL=serviceFabricClient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"serviceFabricClient.d.ts","sourceRoot":"","sources":["../../src/serviceFabricClient.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAG7D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAElE,6CAA6C;AAC7C,MAAM,WAAW,0BAA2B,SAAQ,aAAa;IAC/D,2CAA2C;IAC3C,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAClC,WAAW,EAAE,eAAe,EAC5B,EAAE,UAAyB,EAAE,GAAG,OAAO,EAAE,GAAE,0BAA+B,GACzE,mBAAmB,CAuCrB"}
|