@azure/arm-servicefabric 3.0.1-alpha.20250619.1 → 3.0.1-alpha.20250729.1
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/dist/browser/lroImpl.js +7 -3
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/mappers.js +253 -118
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/applicationTypeVersions.js +45 -52
- package/dist/browser/operations/applicationTypeVersions.js.map +1 -1
- package/dist/browser/operations/applicationTypes.js +34 -46
- package/dist/browser/operations/applicationTypes.js.map +1 -1
- package/dist/browser/operations/applications.js +56 -58
- package/dist/browser/operations/applications.js.map +1 -1
- package/dist/browser/operations/clusterVersions.js +1 -0
- package/dist/browser/operations/clusterVersions.js.map +1 -1
- package/dist/browser/operations/clusters.js +67 -91
- package/dist/browser/operations/clusters.js.map +1 -1
- package/dist/browser/operations/operations.js +23 -40
- package/dist/browser/operations/operations.js.map +1 -1
- package/dist/browser/operations/services.js +56 -58
- package/dist/browser/operations/services.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/browser/serviceFabricManagementClient.js +20 -5
- package/dist/browser/serviceFabricManagementClient.js.map +1 -1
- package/dist/commonjs/lroImpl.js +7 -3
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/mappers.js +253 -118
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/applicationTypeVersions.js +45 -51
- package/dist/commonjs/operations/applicationTypeVersions.js.map +1 -1
- package/dist/commonjs/operations/applicationTypes.js +34 -45
- package/dist/commonjs/operations/applicationTypes.js.map +1 -1
- package/dist/commonjs/operations/applications.js +56 -57
- package/dist/commonjs/operations/applications.js.map +1 -1
- package/dist/commonjs/operations/clusterVersions.js +1 -0
- package/dist/commonjs/operations/clusterVersions.js.map +1 -1
- package/dist/commonjs/operations/clusters.js +67 -90
- package/dist/commonjs/operations/clusters.js.map +1 -1
- package/dist/commonjs/operations/operations.js +23 -39
- package/dist/commonjs/operations/operations.js.map +1 -1
- package/dist/commonjs/operations/services.js +56 -57
- package/dist/commonjs/operations/services.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/serviceFabricManagementClient.js +20 -5
- package/dist/commonjs/serviceFabricManagementClient.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/lroImpl.js +7 -3
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/mappers.js +253 -118
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/applicationTypeVersions.js +45 -52
- package/dist/esm/operations/applicationTypeVersions.js.map +1 -1
- package/dist/esm/operations/applicationTypes.js +34 -46
- package/dist/esm/operations/applicationTypes.js.map +1 -1
- package/dist/esm/operations/applications.js +56 -58
- package/dist/esm/operations/applications.js.map +1 -1
- package/dist/esm/operations/clusterVersions.js +1 -0
- package/dist/esm/operations/clusterVersions.js.map +1 -1
- package/dist/esm/operations/clusters.js +67 -91
- package/dist/esm/operations/clusters.js.map +1 -1
- package/dist/esm/operations/operations.js +23 -40
- package/dist/esm/operations/operations.js.map +1 -1
- package/dist/esm/operations/services.js +56 -58
- package/dist/esm/operations/services.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/esm/serviceFabricManagementClient.js +20 -5
- package/dist/esm/serviceFabricManagementClient.js.map +1 -1
- package/dist/react-native/lroImpl.js +7 -3
- package/dist/react-native/lroImpl.js.map +1 -1
- package/dist/react-native/models/mappers.js +253 -118
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/applicationTypeVersions.js +45 -52
- package/dist/react-native/operations/applicationTypeVersions.js.map +1 -1
- package/dist/react-native/operations/applicationTypes.js +34 -46
- package/dist/react-native/operations/applicationTypes.js.map +1 -1
- package/dist/react-native/operations/applications.js +56 -58
- package/dist/react-native/operations/applications.js.map +1 -1
- package/dist/react-native/operations/clusterVersions.js +1 -0
- package/dist/react-native/operations/clusterVersions.js.map +1 -1
- package/dist/react-native/operations/clusters.js +67 -91
- package/dist/react-native/operations/clusters.js.map +1 -1
- package/dist/react-native/operations/operations.js +23 -40
- package/dist/react-native/operations/operations.js.map +1 -1
- package/dist/react-native/operations/services.js +56 -58
- package/dist/react-native/operations/services.js.map +1 -1
- package/dist/react-native/pagingHelper.js +2 -4
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/dist/react-native/serviceFabricManagementClient.js +20 -5
- package/dist/react-native/serviceFabricManagementClient.js.map +1 -1
- package/package.json +2 -2
- /package/review/{arm-servicefabric.api.md → arm-servicefabric-node.api.md} +0 -0
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
8
|
import { setContinuationToken } from "../pagingHelper.js";
|
|
10
9
|
import * as coreClient from "@azure/core-client";
|
|
11
10
|
import * as Mappers from "../models/mappers.js";
|
|
@@ -15,6 +14,7 @@ import { createLroSpec } from "../lroImpl.js";
|
|
|
15
14
|
/// <reference lib="esnext.asynciterable" />
|
|
16
15
|
/** Class containing ApplicationTypeVersions operations. */
|
|
17
16
|
export class ApplicationTypeVersionsImpl {
|
|
17
|
+
client;
|
|
18
18
|
/**
|
|
19
19
|
* Initialize a new instance of the class ApplicationTypeVersions class.
|
|
20
20
|
* @param client Reference to the service client
|
|
@@ -40,52 +40,35 @@ export class ApplicationTypeVersionsImpl {
|
|
|
40
40
|
return this;
|
|
41
41
|
},
|
|
42
42
|
byPage: (settings) => {
|
|
43
|
-
if (settings
|
|
43
|
+
if (settings?.maxPageSize) {
|
|
44
44
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
45
45
|
}
|
|
46
46
|
return this.listPagingPage(resourceGroupName, clusterName, applicationTypeName, options, settings);
|
|
47
47
|
}
|
|
48
48
|
};
|
|
49
49
|
}
|
|
50
|
-
listPagingPage(resourceGroupName, clusterName, applicationTypeName, options, settings) {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
}
|
|
68
|
-
});
|
|
50
|
+
async *listPagingPage(resourceGroupName, clusterName, applicationTypeName, options, settings) {
|
|
51
|
+
let result;
|
|
52
|
+
let continuationToken = settings?.continuationToken;
|
|
53
|
+
if (!continuationToken) {
|
|
54
|
+
result = await this._list(resourceGroupName, clusterName, applicationTypeName, options);
|
|
55
|
+
let page = result.value || [];
|
|
56
|
+
continuationToken = result.nextLink;
|
|
57
|
+
setContinuationToken(page, continuationToken);
|
|
58
|
+
yield page;
|
|
59
|
+
}
|
|
60
|
+
while (continuationToken) {
|
|
61
|
+
result = await this._listNext(resourceGroupName, clusterName, applicationTypeName, continuationToken, options);
|
|
62
|
+
continuationToken = result.nextLink;
|
|
63
|
+
let page = result.value || [];
|
|
64
|
+
setContinuationToken(page, continuationToken);
|
|
65
|
+
yield page;
|
|
66
|
+
}
|
|
69
67
|
}
|
|
70
|
-
listPagingAll(resourceGroupName, clusterName, applicationTypeName, options) {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
for (var _d = true, _e = __asyncValues(this.listPagingPage(resourceGroupName, clusterName, applicationTypeName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
75
|
-
_c = _f.value;
|
|
76
|
-
_d = false;
|
|
77
|
-
const page = _c;
|
|
78
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
82
|
-
finally {
|
|
83
|
-
try {
|
|
84
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
85
|
-
}
|
|
86
|
-
finally { if (e_1) throw e_1.error; }
|
|
87
|
-
}
|
|
88
|
-
});
|
|
68
|
+
async *listPagingAll(resourceGroupName, clusterName, applicationTypeName, options) {
|
|
69
|
+
for await (const page of this.listPagingPage(resourceGroupName, clusterName, applicationTypeName, options)) {
|
|
70
|
+
yield* page;
|
|
71
|
+
}
|
|
89
72
|
}
|
|
90
73
|
/**
|
|
91
74
|
* Get a Service Fabric application type version resource created or in the process of being created in
|
|
@@ -113,14 +96,19 @@ export class ApplicationTypeVersionsImpl {
|
|
|
113
96
|
return this.client.sendOperationRequest(args, spec);
|
|
114
97
|
};
|
|
115
98
|
const sendOperationFn = async (args, spec) => {
|
|
116
|
-
var _a;
|
|
117
99
|
let currentRawResponse = undefined;
|
|
118
|
-
const providedCallback =
|
|
100
|
+
const providedCallback = args.options?.onResponse;
|
|
119
101
|
const callback = (rawResponse, flatResponse) => {
|
|
120
102
|
currentRawResponse = rawResponse;
|
|
121
|
-
providedCallback
|
|
103
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
104
|
+
};
|
|
105
|
+
const updatedArgs = {
|
|
106
|
+
...args,
|
|
107
|
+
options: {
|
|
108
|
+
...args.options,
|
|
109
|
+
onResponse: callback
|
|
110
|
+
}
|
|
122
111
|
};
|
|
123
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
124
112
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
125
113
|
return {
|
|
126
114
|
flatResponse,
|
|
@@ -144,8 +132,8 @@ export class ApplicationTypeVersionsImpl {
|
|
|
144
132
|
spec: createOrUpdateOperationSpec
|
|
145
133
|
});
|
|
146
134
|
const poller = await createHttpPoller(lro, {
|
|
147
|
-
restoreFrom: options
|
|
148
|
-
intervalInMs: options
|
|
135
|
+
restoreFrom: options?.resumeFrom,
|
|
136
|
+
intervalInMs: options?.updateIntervalInMs
|
|
149
137
|
});
|
|
150
138
|
await poller.poll();
|
|
151
139
|
return poller;
|
|
@@ -176,14 +164,19 @@ export class ApplicationTypeVersionsImpl {
|
|
|
176
164
|
return this.client.sendOperationRequest(args, spec);
|
|
177
165
|
};
|
|
178
166
|
const sendOperationFn = async (args, spec) => {
|
|
179
|
-
var _a;
|
|
180
167
|
let currentRawResponse = undefined;
|
|
181
|
-
const providedCallback =
|
|
168
|
+
const providedCallback = args.options?.onResponse;
|
|
182
169
|
const callback = (rawResponse, flatResponse) => {
|
|
183
170
|
currentRawResponse = rawResponse;
|
|
184
|
-
providedCallback
|
|
171
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
172
|
+
};
|
|
173
|
+
const updatedArgs = {
|
|
174
|
+
...args,
|
|
175
|
+
options: {
|
|
176
|
+
...args.options,
|
|
177
|
+
onResponse: callback
|
|
178
|
+
}
|
|
185
179
|
};
|
|
186
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
187
180
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
188
181
|
return {
|
|
189
182
|
flatResponse,
|
|
@@ -206,8 +199,8 @@ export class ApplicationTypeVersionsImpl {
|
|
|
206
199
|
spec: deleteOperationSpec
|
|
207
200
|
});
|
|
208
201
|
const poller = await createHttpPoller(lro, {
|
|
209
|
-
restoreFrom: options
|
|
210
|
-
intervalInMs: options
|
|
202
|
+
restoreFrom: options?.resumeFrom,
|
|
203
|
+
intervalInMs: options?.updateIntervalInMs
|
|
211
204
|
});
|
|
212
205
|
await poller.poll();
|
|
213
206
|
return poller;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applicationTypeVersions.js","sourceRoot":"","sources":["../../../src/operations/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AAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,mBAAmB;QAC9B,UAAU,CAAC,OAAO;KACnB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EACF,6KAA6K;IAC/K,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,kCAAkC;SACvD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,mBAAmB;KAC/B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,kCAAkC;SACvD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,mBAAmB;KAC/B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { ApplicationTypeVersions } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { ServiceFabricManagementClient } from \"../serviceFabricManagementClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n ApplicationTypeVersionResource,\n ApplicationTypeVersionsListNextOptionalParams,\n ApplicationTypeVersionsListOptionalParams,\n ApplicationTypeVersionsListResponse,\n ApplicationTypeVersionsGetOptionalParams,\n ApplicationTypeVersionsGetResponse,\n ApplicationTypeVersionsCreateOrUpdateOptionalParams,\n ApplicationTypeVersionsCreateOrUpdateResponse,\n ApplicationTypeVersionsDeleteOptionalParams,\n ApplicationTypeVersionsListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ApplicationTypeVersions operations. */\nexport class ApplicationTypeVersionsImpl implements ApplicationTypeVersions {\n private readonly client: ServiceFabricManagementClient;\n\n /**\n * Initialize a new instance of the class ApplicationTypeVersions class.\n * @param client Reference to the service client\n */\n constructor(client: ServiceFabricManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets all application type version resources created or in the process of being created in the\n * Service Fabric application type name resource.\n * @param resourceGroupName The name of the resource group.\n * @param clusterName The name of the cluster resource.\n * @param applicationTypeName The name of the application type name resource.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n clusterName: string,\n applicationTypeName: string,\n options?: ApplicationTypeVersionsListOptionalParams\n ): PagedAsyncIterableIterator<ApplicationTypeVersionResource> {\n const iter = this.listPagingAll(\n resourceGroupName,\n clusterName,\n applicationTypeName,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(\n resourceGroupName,\n clusterName,\n applicationTypeName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n clusterName: string,\n applicationTypeName: string,\n options?: ApplicationTypeVersionsListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<ApplicationTypeVersionResource[]> {\n let result: ApplicationTypeVersionsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(\n resourceGroupName,\n clusterName,\n applicationTypeName,\n options\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(\n resourceGroupName,\n clusterName,\n applicationTypeName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n clusterName: string,\n applicationTypeName: string,\n options?: ApplicationTypeVersionsListOptionalParams\n ): AsyncIterableIterator<ApplicationTypeVersionResource> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n clusterName,\n applicationTypeName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Get a Service Fabric application type version resource created or in the process of being created in\n * the Service Fabric application type name resource.\n * @param resourceGroupName The name of the resource group.\n * @param clusterName The name of the cluster resource.\n * @param applicationTypeName The name of the application type name resource.\n * @param version The application type version.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n clusterName: string,\n applicationTypeName: string,\n version: string,\n options?: ApplicationTypeVersionsGetOptionalParams\n ): Promise<ApplicationTypeVersionsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, clusterName, applicationTypeName, version, options },\n getOperationSpec\n );\n }\n\n /**\n * Create or update a Service Fabric application type version resource with the specified name.\n * @param resourceGroupName The name of the resource group.\n * @param clusterName The name of the cluster resource.\n * @param applicationTypeName The name of the application type name resource.\n * @param version The application type version.\n * @param parameters The application type version resource.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n clusterName: string,\n applicationTypeName: string,\n version: string,\n parameters: ApplicationTypeVersionResource,\n options?: ApplicationTypeVersionsCreateOrUpdateOptionalParams\n ): Promise<\n SimplePollerLike<\n OperationState<ApplicationTypeVersionsCreateOrUpdateResponse>,\n ApplicationTypeVersionsCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<ApplicationTypeVersionsCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n clusterName,\n applicationTypeName,\n version,\n parameters,\n options\n },\n spec: createOrUpdateOperationSpec\n });\n const poller = await createHttpPoller<\n ApplicationTypeVersionsCreateOrUpdateResponse,\n OperationState<ApplicationTypeVersionsCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Create or update a Service Fabric application type version resource with the specified name.\n * @param resourceGroupName The name of the resource group.\n * @param clusterName The name of the cluster resource.\n * @param applicationTypeName The name of the application type name resource.\n * @param version The application type version.\n * @param parameters The application type version resource.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n clusterName: string,\n applicationTypeName: string,\n version: string,\n parameters: ApplicationTypeVersionResource,\n options?: ApplicationTypeVersionsCreateOrUpdateOptionalParams\n ): Promise<ApplicationTypeVersionsCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n clusterName,\n applicationTypeName,\n version,\n parameters,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Delete a Service Fabric application type version resource with the specified name.\n * @param resourceGroupName The name of the resource group.\n * @param clusterName The name of the cluster resource.\n * @param applicationTypeName The name of the application type name resource.\n * @param version The application type version.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n clusterName: string,\n applicationTypeName: string,\n version: string,\n options?: ApplicationTypeVersionsDeleteOptionalParams\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n clusterName,\n applicationTypeName,\n version,\n options\n },\n spec: deleteOperationSpec\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Delete a Service Fabric application type version resource with the specified name.\n * @param resourceGroupName The name of the resource group.\n * @param clusterName The name of the cluster resource.\n * @param applicationTypeName The name of the application type name resource.\n * @param version The application type version.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n clusterName: string,\n applicationTypeName: string,\n version: string,\n options?: ApplicationTypeVersionsDeleteOptionalParams\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n clusterName,\n applicationTypeName,\n version,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Gets all application type version resources created or in the process of being created in the\n * Service Fabric application type name resource.\n * @param resourceGroupName The name of the resource group.\n * @param clusterName The name of the cluster resource.\n * @param applicationTypeName The name of the application type name resource.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n clusterName: string,\n applicationTypeName: string,\n options?: ApplicationTypeVersionsListOptionalParams\n ): Promise<ApplicationTypeVersionsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, clusterName, applicationTypeName, options },\n listOperationSpec\n );\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group.\n * @param clusterName The name of the cluster resource.\n * @param applicationTypeName The name of the application type name resource.\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n resourceGroupName: string,\n clusterName: string,\n applicationTypeName: string,\n nextLink: string,\n options?: ApplicationTypeVersionsListNextOptionalParams\n ): Promise<ApplicationTypeVersionsListNextResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n clusterName,\n applicationTypeName,\n nextLink,\n options\n },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applicationTypes/{applicationTypeName}/versions/{version}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationTypeVersionResource\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n Parameters.subscriptionId,\n Parameters.applicationTypeName,\n Parameters.version\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applicationTypes/{applicationTypeName}/versions/{version}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationTypeVersionResource\n },\n 201: {\n bodyMapper: Mappers.ApplicationTypeVersionResource\n },\n 202: {\n bodyMapper: Mappers.ApplicationTypeVersionResource\n },\n 204: {\n bodyMapper: Mappers.ApplicationTypeVersionResource\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n requestBody: Parameters.parameters3,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n Parameters.subscriptionId,\n Parameters.applicationTypeName,\n Parameters.version\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applicationTypes/{applicationTypeName}/versions/{version}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n Parameters.subscriptionId,\n Parameters.applicationTypeName,\n Parameters.version\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applicationTypes/{applicationTypeName}/versions\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationTypeVersionResourceList\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n Parameters.subscriptionId,\n Parameters.applicationTypeName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationTypeVersionResourceList\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n Parameters.subscriptionId,\n Parameters.nextLink,\n Parameters.applicationTypeName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
1
|
+
{"version":3,"file":"applicationTypeVersions.js","sourceRoot":"","sources":["../../../src/operations/applicationTypeVersions.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAGL,gBAAgB,EACjB,MAAM,iBAAiB,CAAC;AACz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,UAAU,CAAC,mBAAmB;KAC/B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,kCAAkC;SACvD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,mBAAmB;KAC/B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { ApplicationTypeVersions } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { ServiceFabricManagementClient } from \"../serviceFabricManagementClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n ApplicationTypeVersionResource,\n ApplicationTypeVersionsListNextOptionalParams,\n ApplicationTypeVersionsListOptionalParams,\n ApplicationTypeVersionsListResponse,\n ApplicationTypeVersionsGetOptionalParams,\n ApplicationTypeVersionsGetResponse,\n ApplicationTypeVersionsCreateOrUpdateOptionalParams,\n ApplicationTypeVersionsCreateOrUpdateResponse,\n ApplicationTypeVersionsDeleteOptionalParams,\n ApplicationTypeVersionsListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ApplicationTypeVersions operations. */\nexport class ApplicationTypeVersionsImpl implements ApplicationTypeVersions {\n private readonly client: ServiceFabricManagementClient;\n\n /**\n * Initialize a new instance of the class ApplicationTypeVersions class.\n * @param client Reference to the service client\n */\n constructor(client: ServiceFabricManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets all application type version resources created or in the process of being created in the\n * Service Fabric application type name resource.\n * @param resourceGroupName The name of the resource group.\n * @param clusterName The name of the cluster resource.\n * @param applicationTypeName The name of the application type name resource.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n clusterName: string,\n applicationTypeName: string,\n options?: ApplicationTypeVersionsListOptionalParams\n ): PagedAsyncIterableIterator<ApplicationTypeVersionResource> {\n const iter = this.listPagingAll(\n resourceGroupName,\n clusterName,\n applicationTypeName,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(\n resourceGroupName,\n clusterName,\n applicationTypeName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n clusterName: string,\n applicationTypeName: string,\n options?: ApplicationTypeVersionsListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<ApplicationTypeVersionResource[]> {\n let result: ApplicationTypeVersionsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(\n resourceGroupName,\n clusterName,\n applicationTypeName,\n options\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(\n resourceGroupName,\n clusterName,\n applicationTypeName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n clusterName: string,\n applicationTypeName: string,\n options?: ApplicationTypeVersionsListOptionalParams\n ): AsyncIterableIterator<ApplicationTypeVersionResource> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n clusterName,\n applicationTypeName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Get a Service Fabric application type version resource created or in the process of being created in\n * the Service Fabric application type name resource.\n * @param resourceGroupName The name of the resource group.\n * @param clusterName The name of the cluster resource.\n * @param applicationTypeName The name of the application type name resource.\n * @param version The application type version.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n clusterName: string,\n applicationTypeName: string,\n version: string,\n options?: ApplicationTypeVersionsGetOptionalParams\n ): Promise<ApplicationTypeVersionsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, clusterName, applicationTypeName, version, options },\n getOperationSpec\n );\n }\n\n /**\n * Create or update a Service Fabric application type version resource with the specified name.\n * @param resourceGroupName The name of the resource group.\n * @param clusterName The name of the cluster resource.\n * @param applicationTypeName The name of the application type name resource.\n * @param version The application type version.\n * @param parameters The application type version resource.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n clusterName: string,\n applicationTypeName: string,\n version: string,\n parameters: ApplicationTypeVersionResource,\n options?: ApplicationTypeVersionsCreateOrUpdateOptionalParams\n ): Promise<\n SimplePollerLike<\n OperationState<ApplicationTypeVersionsCreateOrUpdateResponse>,\n ApplicationTypeVersionsCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<ApplicationTypeVersionsCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n clusterName,\n applicationTypeName,\n version,\n parameters,\n options\n },\n spec: createOrUpdateOperationSpec\n });\n const poller = await createHttpPoller<\n ApplicationTypeVersionsCreateOrUpdateResponse,\n OperationState<ApplicationTypeVersionsCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Create or update a Service Fabric application type version resource with the specified name.\n * @param resourceGroupName The name of the resource group.\n * @param clusterName The name of the cluster resource.\n * @param applicationTypeName The name of the application type name resource.\n * @param version The application type version.\n * @param parameters The application type version resource.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n clusterName: string,\n applicationTypeName: string,\n version: string,\n parameters: ApplicationTypeVersionResource,\n options?: ApplicationTypeVersionsCreateOrUpdateOptionalParams\n ): Promise<ApplicationTypeVersionsCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n clusterName,\n applicationTypeName,\n version,\n parameters,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Delete a Service Fabric application type version resource with the specified name.\n * @param resourceGroupName The name of the resource group.\n * @param clusterName The name of the cluster resource.\n * @param applicationTypeName The name of the application type name resource.\n * @param version The application type version.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n clusterName: string,\n applicationTypeName: string,\n version: string,\n options?: ApplicationTypeVersionsDeleteOptionalParams\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n clusterName,\n applicationTypeName,\n version,\n options\n },\n spec: deleteOperationSpec\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Delete a Service Fabric application type version resource with the specified name.\n * @param resourceGroupName The name of the resource group.\n * @param clusterName The name of the cluster resource.\n * @param applicationTypeName The name of the application type name resource.\n * @param version The application type version.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n clusterName: string,\n applicationTypeName: string,\n version: string,\n options?: ApplicationTypeVersionsDeleteOptionalParams\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n clusterName,\n applicationTypeName,\n version,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Gets all application type version resources created or in the process of being created in the\n * Service Fabric application type name resource.\n * @param resourceGroupName The name of the resource group.\n * @param clusterName The name of the cluster resource.\n * @param applicationTypeName The name of the application type name resource.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n clusterName: string,\n applicationTypeName: string,\n options?: ApplicationTypeVersionsListOptionalParams\n ): Promise<ApplicationTypeVersionsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, clusterName, applicationTypeName, options },\n listOperationSpec\n );\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group.\n * @param clusterName The name of the cluster resource.\n * @param applicationTypeName The name of the application type name resource.\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n resourceGroupName: string,\n clusterName: string,\n applicationTypeName: string,\n nextLink: string,\n options?: ApplicationTypeVersionsListNextOptionalParams\n ): Promise<ApplicationTypeVersionsListNextResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n clusterName,\n applicationTypeName,\n nextLink,\n options\n },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applicationTypes/{applicationTypeName}/versions/{version}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationTypeVersionResource\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n Parameters.subscriptionId,\n Parameters.applicationTypeName,\n Parameters.version\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applicationTypes/{applicationTypeName}/versions/{version}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationTypeVersionResource\n },\n 201: {\n bodyMapper: Mappers.ApplicationTypeVersionResource\n },\n 202: {\n bodyMapper: Mappers.ApplicationTypeVersionResource\n },\n 204: {\n bodyMapper: Mappers.ApplicationTypeVersionResource\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n requestBody: Parameters.parameters3,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n Parameters.subscriptionId,\n Parameters.applicationTypeName,\n Parameters.version\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applicationTypes/{applicationTypeName}/versions/{version}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n Parameters.subscriptionId,\n Parameters.applicationTypeName,\n Parameters.version\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applicationTypes/{applicationTypeName}/versions\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationTypeVersionResourceList\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n Parameters.subscriptionId,\n Parameters.applicationTypeName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationTypeVersionResourceList\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n Parameters.subscriptionId,\n Parameters.nextLink,\n Parameters.applicationTypeName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
8
|
import { setContinuationToken } from "../pagingHelper.js";
|
|
10
9
|
import * as coreClient from "@azure/core-client";
|
|
11
10
|
import * as Mappers from "../models/mappers.js";
|
|
@@ -15,6 +14,7 @@ import { createLroSpec } from "../lroImpl.js";
|
|
|
15
14
|
/// <reference lib="esnext.asynciterable" />
|
|
16
15
|
/** Class containing ApplicationTypes operations. */
|
|
17
16
|
export class ApplicationTypesImpl {
|
|
17
|
+
client;
|
|
18
18
|
/**
|
|
19
19
|
* Initialize a new instance of the class ApplicationTypes class.
|
|
20
20
|
* @param client Reference to the service client
|
|
@@ -39,52 +39,35 @@ export class ApplicationTypesImpl {
|
|
|
39
39
|
return this;
|
|
40
40
|
},
|
|
41
41
|
byPage: (settings) => {
|
|
42
|
-
if (settings
|
|
42
|
+
if (settings?.maxPageSize) {
|
|
43
43
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
44
44
|
}
|
|
45
45
|
return this.listPagingPage(resourceGroupName, clusterName, options, settings);
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
|
-
listPagingPage(resourceGroupName, clusterName, options, settings) {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
});
|
|
49
|
+
async *listPagingPage(resourceGroupName, clusterName, options, settings) {
|
|
50
|
+
let result;
|
|
51
|
+
let continuationToken = settings?.continuationToken;
|
|
52
|
+
if (!continuationToken) {
|
|
53
|
+
result = await this._list(resourceGroupName, clusterName, options);
|
|
54
|
+
let page = result.value || [];
|
|
55
|
+
continuationToken = result.nextLink;
|
|
56
|
+
setContinuationToken(page, continuationToken);
|
|
57
|
+
yield page;
|
|
58
|
+
}
|
|
59
|
+
while (continuationToken) {
|
|
60
|
+
result = await this._listNext(resourceGroupName, clusterName, continuationToken, options);
|
|
61
|
+
continuationToken = result.nextLink;
|
|
62
|
+
let page = result.value || [];
|
|
63
|
+
setContinuationToken(page, continuationToken);
|
|
64
|
+
yield page;
|
|
65
|
+
}
|
|
68
66
|
}
|
|
69
|
-
listPagingAll(resourceGroupName, clusterName, options) {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
for (var _d = true, _e = __asyncValues(this.listPagingPage(resourceGroupName, clusterName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
74
|
-
_c = _f.value;
|
|
75
|
-
_d = false;
|
|
76
|
-
const page = _c;
|
|
77
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
81
|
-
finally {
|
|
82
|
-
try {
|
|
83
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
84
|
-
}
|
|
85
|
-
finally { if (e_1) throw e_1.error; }
|
|
86
|
-
}
|
|
87
|
-
});
|
|
67
|
+
async *listPagingAll(resourceGroupName, clusterName, options) {
|
|
68
|
+
for await (const page of this.listPagingPage(resourceGroupName, clusterName, options)) {
|
|
69
|
+
yield* page;
|
|
70
|
+
}
|
|
88
71
|
}
|
|
89
72
|
/**
|
|
90
73
|
* Get a Service Fabric application type name resource created or in the process of being created in
|
|
@@ -126,14 +109,19 @@ export class ApplicationTypesImpl {
|
|
|
126
109
|
return this.client.sendOperationRequest(args, spec);
|
|
127
110
|
};
|
|
128
111
|
const sendOperationFn = async (args, spec) => {
|
|
129
|
-
var _a;
|
|
130
112
|
let currentRawResponse = undefined;
|
|
131
|
-
const providedCallback =
|
|
113
|
+
const providedCallback = args.options?.onResponse;
|
|
132
114
|
const callback = (rawResponse, flatResponse) => {
|
|
133
115
|
currentRawResponse = rawResponse;
|
|
134
|
-
providedCallback
|
|
116
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
117
|
+
};
|
|
118
|
+
const updatedArgs = {
|
|
119
|
+
...args,
|
|
120
|
+
options: {
|
|
121
|
+
...args.options,
|
|
122
|
+
onResponse: callback
|
|
123
|
+
}
|
|
135
124
|
};
|
|
136
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
137
125
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
138
126
|
return {
|
|
139
127
|
flatResponse,
|
|
@@ -150,8 +138,8 @@ export class ApplicationTypesImpl {
|
|
|
150
138
|
spec: deleteOperationSpec
|
|
151
139
|
});
|
|
152
140
|
const poller = await createHttpPoller(lro, {
|
|
153
|
-
restoreFrom: options
|
|
154
|
-
intervalInMs: options
|
|
141
|
+
restoreFrom: options?.resumeFrom,
|
|
142
|
+
intervalInMs: options?.updateIntervalInMs
|
|
155
143
|
});
|
|
156
144
|
await poller.poll();
|
|
157
145
|
return poller;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applicationTypes.js","sourceRoot":"","sources":["../../../src/operations/applicationTypes.ts"],"names":[],"mappings":"AAAA;;;;;;GA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AChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { ApplicationTypes } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { ServiceFabricManagementClient } from \"../serviceFabricManagementClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n ApplicationTypeResource,\n ApplicationTypesListNextOptionalParams,\n ApplicationTypesListOptionalParams,\n ApplicationTypesListResponse,\n ApplicationTypesGetOptionalParams,\n ApplicationTypesGetResponse,\n ApplicationTypesCreateOrUpdateOptionalParams,\n ApplicationTypesCreateOrUpdateResponse,\n ApplicationTypesDeleteOptionalParams,\n ApplicationTypesListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ApplicationTypes operations. */\nexport class ApplicationTypesImpl implements ApplicationTypes {\n private readonly client: ServiceFabricManagementClient;\n\n /**\n * Initialize a new instance of the class ApplicationTypes class.\n * @param client Reference to the service client\n */\n constructor(client: ServiceFabricManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets all application type name resources created or in the process of being created in the Service\n * Fabric cluster resource.\n * @param resourceGroupName The name of the resource group.\n * @param clusterName The name of the cluster resource.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n clusterName: string,\n options?: ApplicationTypesListOptionalParams\n ): PagedAsyncIterableIterator<ApplicationTypeResource> {\n const iter = this.listPagingAll(resourceGroupName, clusterName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(\n resourceGroupName,\n clusterName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n clusterName: string,\n options?: ApplicationTypesListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<ApplicationTypeResource[]> {\n let result: ApplicationTypesListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(resourceGroupName, clusterName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(\n resourceGroupName,\n clusterName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n clusterName: string,\n options?: ApplicationTypesListOptionalParams\n ): AsyncIterableIterator<ApplicationTypeResource> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n clusterName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Get a Service Fabric application type name resource created or in the process of being created in\n * the Service Fabric cluster resource.\n * @param resourceGroupName The name of the resource group.\n * @param clusterName The name of the cluster resource.\n * @param applicationTypeName The name of the application type name resource.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n clusterName: string,\n applicationTypeName: string,\n options?: ApplicationTypesGetOptionalParams\n ): Promise<ApplicationTypesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, clusterName, applicationTypeName, options },\n getOperationSpec\n );\n }\n\n /**\n * Create or update a Service Fabric application type name resource with the specified name.\n * @param resourceGroupName The name of the resource group.\n * @param clusterName The name of the cluster resource.\n * @param applicationTypeName The name of the application type name resource.\n * @param parameters The application type name resource.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n clusterName: string,\n applicationTypeName: string,\n parameters: ApplicationTypeResource,\n options?: ApplicationTypesCreateOrUpdateOptionalParams\n ): Promise<ApplicationTypesCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n clusterName,\n applicationTypeName,\n parameters,\n options\n },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Delete a Service Fabric application type name resource with the specified name.\n * @param resourceGroupName The name of the resource group.\n * @param clusterName The name of the cluster resource.\n * @param applicationTypeName The name of the application type name resource.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n clusterName: string,\n applicationTypeName: string,\n options?: ApplicationTypesDeleteOptionalParams\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, clusterName, applicationTypeName, options },\n spec: deleteOperationSpec\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Delete a Service Fabric application type name resource with the specified name.\n * @param resourceGroupName The name of the resource group.\n * @param clusterName The name of the cluster resource.\n * @param applicationTypeName The name of the application type name resource.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n clusterName: string,\n applicationTypeName: string,\n options?: ApplicationTypesDeleteOptionalParams\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n clusterName,\n applicationTypeName,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Gets all application type name resources created or in the process of being created in the Service\n * Fabric cluster resource.\n * @param resourceGroupName The name of the resource group.\n * @param clusterName The name of the cluster resource.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n clusterName: string,\n options?: ApplicationTypesListOptionalParams\n ): Promise<ApplicationTypesListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, clusterName, options },\n listOperationSpec\n );\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group.\n * @param clusterName The name of the cluster resource.\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n resourceGroupName: string,\n clusterName: string,\n nextLink: string,\n options?: ApplicationTypesListNextOptionalParams\n ): Promise<ApplicationTypesListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, clusterName, nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applicationTypes/{applicationTypeName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationTypeResource\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n Parameters.subscriptionId,\n Parameters.applicationTypeName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applicationTypes/{applicationTypeName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationTypeResource\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n requestBody: Parameters.parameters2,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n Parameters.subscriptionId,\n Parameters.applicationTypeName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applicationTypes/{applicationTypeName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n Parameters.subscriptionId,\n Parameters.applicationTypeName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applicationTypes\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationTypeResourceList\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n Parameters.subscriptionId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationTypeResourceList\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n Parameters.subscriptionId,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
1
|
+
{"version":3,"file":"applicationTypes.js","sourceRoot":"","sources":["../../../src/operations/applicationTypes.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAGL,gBAAgB,EACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAc9C,4CAA4C;AAC5C,oDAAoD;AACpD,MAAM,OAAO,oBAAoB;IACd,MAAM,CAAgC;IAEvD;;;OAGG;IACH,YAAY,MAAqC;QAC/C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,IAAI,CACT,iBAAyB,EACzB,WAAmB,EACnB,OAA4C;QAE5C,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,iBAAiB,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;QACzE,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EA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I,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,2BAA2B;SAChD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { ApplicationTypes } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { ServiceFabricManagementClient } from \"../serviceFabricManagementClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n ApplicationTypeResource,\n ApplicationTypesListNextOptionalParams,\n ApplicationTypesListOptionalParams,\n ApplicationTypesListResponse,\n ApplicationTypesGetOptionalParams,\n ApplicationTypesGetResponse,\n ApplicationTypesCreateOrUpdateOptionalParams,\n ApplicationTypesCreateOrUpdateResponse,\n ApplicationTypesDeleteOptionalParams,\n ApplicationTypesListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ApplicationTypes operations. */\nexport class ApplicationTypesImpl implements ApplicationTypes {\n private readonly client: ServiceFabricManagementClient;\n\n /**\n * Initialize a new instance of the class ApplicationTypes class.\n * @param client Reference to the service client\n */\n constructor(client: ServiceFabricManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets all application type name resources created or in the process of being created in the Service\n * Fabric cluster resource.\n * @param resourceGroupName The name of the resource group.\n * @param clusterName The name of the cluster resource.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n clusterName: string,\n options?: ApplicationTypesListOptionalParams\n ): PagedAsyncIterableIterator<ApplicationTypeResource> {\n const iter = this.listPagingAll(resourceGroupName, clusterName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(\n resourceGroupName,\n clusterName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n clusterName: string,\n options?: ApplicationTypesListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<ApplicationTypeResource[]> {\n let result: ApplicationTypesListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(resourceGroupName, clusterName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(\n resourceGroupName,\n clusterName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n clusterName: string,\n options?: ApplicationTypesListOptionalParams\n ): AsyncIterableIterator<ApplicationTypeResource> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n clusterName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Get a Service Fabric application type name resource created or in the process of being created in\n * the Service Fabric cluster resource.\n * @param resourceGroupName The name of the resource group.\n * @param clusterName The name of the cluster resource.\n * @param applicationTypeName The name of the application type name resource.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n clusterName: string,\n applicationTypeName: string,\n options?: ApplicationTypesGetOptionalParams\n ): Promise<ApplicationTypesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, clusterName, applicationTypeName, options },\n getOperationSpec\n );\n }\n\n /**\n * Create or update a Service Fabric application type name resource with the specified name.\n * @param resourceGroupName The name of the resource group.\n * @param clusterName The name of the cluster resource.\n * @param applicationTypeName The name of the application type name resource.\n * @param parameters The application type name resource.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n clusterName: string,\n applicationTypeName: string,\n parameters: ApplicationTypeResource,\n options?: ApplicationTypesCreateOrUpdateOptionalParams\n ): Promise<ApplicationTypesCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n clusterName,\n applicationTypeName,\n parameters,\n options\n },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Delete a Service Fabric application type name resource with the specified name.\n * @param resourceGroupName The name of the resource group.\n * @param clusterName The name of the cluster resource.\n * @param applicationTypeName The name of the application type name resource.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n clusterName: string,\n applicationTypeName: string,\n options?: ApplicationTypesDeleteOptionalParams\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, clusterName, applicationTypeName, options },\n spec: deleteOperationSpec\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Delete a Service Fabric application type name resource with the specified name.\n * @param resourceGroupName The name of the resource group.\n * @param clusterName The name of the cluster resource.\n * @param applicationTypeName The name of the application type name resource.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n clusterName: string,\n applicationTypeName: string,\n options?: ApplicationTypesDeleteOptionalParams\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n clusterName,\n applicationTypeName,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Gets all application type name resources created or in the process of being created in the Service\n * Fabric cluster resource.\n * @param resourceGroupName The name of the resource group.\n * @param clusterName The name of the cluster resource.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n clusterName: string,\n options?: ApplicationTypesListOptionalParams\n ): Promise<ApplicationTypesListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, clusterName, options },\n listOperationSpec\n );\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group.\n * @param clusterName The name of the cluster resource.\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n resourceGroupName: string,\n clusterName: string,\n nextLink: string,\n options?: ApplicationTypesListNextOptionalParams\n ): Promise<ApplicationTypesListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, clusterName, nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applicationTypes/{applicationTypeName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationTypeResource\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n Parameters.subscriptionId,\n Parameters.applicationTypeName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applicationTypes/{applicationTypeName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationTypeResource\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n requestBody: Parameters.parameters2,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n Parameters.subscriptionId,\n Parameters.applicationTypeName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applicationTypes/{applicationTypeName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n Parameters.subscriptionId,\n Parameters.applicationTypeName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applicationTypes\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationTypeResourceList\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n Parameters.subscriptionId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationTypeResourceList\n },\n default: {\n bodyMapper: Mappers.ErrorModel\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n Parameters.subscriptionId,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|