@azure/arm-managedapplications 1.0.2 → 2.0.0-alpha.20211011.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.
Files changed (160) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/{LICENSE.txt → LICENSE} +2 -2
  3. package/README.md +66 -72
  4. package/dist/index.js +2896 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/esm/applicationClient.d.ts +50 -0
  9. package/esm/applicationClient.d.ts.map +1 -0
  10. package/esm/applicationClient.js +190 -0
  11. package/esm/applicationClient.js.map +1 -0
  12. package/esm/applicationClientContext.d.ts +16 -0
  13. package/esm/applicationClientContext.d.ts.map +1 -0
  14. package/esm/applicationClientContext.js +49 -0
  15. package/esm/applicationClientContext.js.map +1 -0
  16. package/esm/coreClientLro.d.ts +26 -0
  17. package/esm/coreClientLro.d.ts.map +1 -0
  18. package/esm/coreClientLro.js +186 -0
  19. package/esm/coreClientLro.js.map +1 -0
  20. package/esm/index.d.ts +770 -0
  21. package/esm/index.d.ts.map +1 -0
  22. package/esm/index.js +13 -0
  23. package/esm/index.js.map +1 -0
  24. package/esm/lro/azureAsyncPolling.d.ts +3 -0
  25. package/esm/lro/azureAsyncPolling.d.ts.map +1 -0
  26. package/esm/lro/azureAsyncPolling.js +67 -0
  27. package/esm/lro/azureAsyncPolling.js.map +1 -0
  28. package/esm/lro/bodyPolling.d.ts +8 -0
  29. package/esm/lro/bodyPolling.d.ts.map +1 -0
  30. package/esm/lro/bodyPolling.js +37 -0
  31. package/esm/lro/bodyPolling.js.map +1 -0
  32. package/esm/lro/index.d.ts +4 -0
  33. package/esm/lro/index.d.ts.map +1 -0
  34. package/esm/lro/index.js +12 -0
  35. package/esm/lro/index.js.map +1 -0
  36. package/esm/lro/locationPolling.d.ts +3 -0
  37. package/esm/lro/locationPolling.d.ts.map +1 -0
  38. package/esm/lro/locationPolling.js +19 -0
  39. package/esm/lro/locationPolling.js.map +1 -0
  40. package/esm/lro/lroEngine.d.ts +14 -0
  41. package/esm/lro/lroEngine.d.ts.map +1 -0
  42. package/esm/lro/lroEngine.js +41 -0
  43. package/esm/lro/lroEngine.js.map +1 -0
  44. package/esm/lro/models.d.ts +138 -0
  45. package/esm/lro/models.d.ts.map +1 -0
  46. package/esm/lro/models.js +14 -0
  47. package/esm/lro/models.js.map +1 -0
  48. package/esm/lro/operation.d.ts +36 -0
  49. package/esm/lro/operation.d.ts.map +1 -0
  50. package/esm/lro/operation.js +82 -0
  51. package/esm/lro/operation.js.map +1 -0
  52. package/esm/lro/passthrough.d.ts +3 -0
  53. package/esm/lro/passthrough.d.ts.map +1 -0
  54. package/esm/lro/passthrough.js +15 -0
  55. package/esm/lro/passthrough.js.map +1 -0
  56. package/esm/lro/requestUtils.d.ts +16 -0
  57. package/esm/lro/requestUtils.d.ts.map +1 -0
  58. package/esm/lro/requestUtils.js +73 -0
  59. package/esm/lro/requestUtils.js.map +1 -0
  60. package/esm/lro/stateMachine.d.ts +18 -0
  61. package/esm/lro/stateMachine.d.ts.map +1 -0
  62. package/esm/lro/stateMachine.js +84 -0
  63. package/esm/lro/stateMachine.js.map +1 -0
  64. package/esm/models/index.d.ts +360 -762
  65. package/esm/models/index.d.ts.map +1 -1
  66. package/esm/models/index.js +17 -2
  67. package/esm/models/index.js.map +1 -1
  68. package/esm/models/mappers.d.ts +18 -20
  69. package/esm/models/mappers.d.ts.map +1 -1
  70. package/esm/models/mappers.js +296 -318
  71. package/esm/models/mappers.js.map +1 -1
  72. package/esm/models/parameters.d.ts +15 -10
  73. package/esm/models/parameters.d.ts.map +1 -1
  74. package/esm/models/parameters.js +77 -49
  75. package/esm/models/parameters.js.map +1 -1
  76. package/esm/operations/applicationDefinitions.d.ts +128 -0
  77. package/esm/operations/applicationDefinitions.d.ts.map +1 -0
  78. package/esm/operations/applicationDefinitions.js +574 -0
  79. package/esm/operations/applicationDefinitions.js.map +1 -0
  80. package/esm/operations/applications.d.ts +182 -0
  81. package/esm/operations/applications.d.ts.map +1 -0
  82. package/esm/operations/applications.js +802 -0
  83. package/esm/operations/applications.js.map +1 -0
  84. package/esm/operations/index.d.ts +2 -2
  85. package/esm/operations/index.d.ts.map +1 -1
  86. package/esm/operations/index.js +5 -7
  87. package/esm/operations/index.js.map +1 -1
  88. package/esm/operationsInterfaces/applicationDefinitions.d.ts +95 -0
  89. package/esm/operationsInterfaces/applicationDefinitions.d.ts.map +1 -0
  90. package/esm/operationsInterfaces/applicationDefinitions.js +9 -0
  91. package/esm/operationsInterfaces/applicationDefinitions.js.map +1 -0
  92. package/esm/operationsInterfaces/applications.d.ts +128 -0
  93. package/esm/operationsInterfaces/applications.d.ts.map +1 -0
  94. package/esm/operationsInterfaces/applications.js +9 -0
  95. package/esm/operationsInterfaces/applications.js.map +1 -0
  96. package/esm/operationsInterfaces/index.d.ts +3 -0
  97. package/esm/operationsInterfaces/index.d.ts.map +1 -0
  98. package/esm/operationsInterfaces/index.js +10 -0
  99. package/esm/operationsInterfaces/index.js.map +1 -0
  100. package/package.json +56 -16
  101. package/review/arm-managedapplications.api.md +443 -0
  102. package/rollup.config.js +181 -30
  103. package/src/applicationClient.ts +222 -0
  104. package/src/applicationClientContext.ts +70 -0
  105. package/src/coreClientLro.ts +323 -0
  106. package/src/index.ts +13 -0
  107. package/src/lro/azureAsyncPolling.ts +96 -0
  108. package/src/lro/bodyPolling.ts +54 -0
  109. package/src/lro/index.ts +26 -0
  110. package/src/lro/locationPolling.ts +30 -0
  111. package/src/lro/lroEngine.ts +61 -0
  112. package/src/lro/models.ts +173 -0
  113. package/src/lro/operation.ts +120 -0
  114. package/src/lro/passthrough.ts +23 -0
  115. package/src/lro/requestUtils.ts +105 -0
  116. package/src/lro/stateMachine.ts +138 -0
  117. package/src/models/index.ts +402 -794
  118. package/src/models/mappers.ts +290 -311
  119. package/src/models/parameters.ts +99 -50
  120. package/src/operations/applicationDefinitions.ts +810 -0
  121. package/src/operations/applications.ts +1069 -0
  122. package/src/operations/index.ts +5 -7
  123. package/src/operationsInterfaces/applicationDefinitions.ts +179 -0
  124. package/src/operationsInterfaces/applications.ts +225 -0
  125. package/src/operationsInterfaces/index.ts +10 -0
  126. package/tsconfig.json +3 -2
  127. package/dist/arm-managedapplications.js +0 -1855
  128. package/dist/arm-managedapplications.js.map +0 -1
  129. package/dist/arm-managedapplications.min.js +0 -1
  130. package/dist/arm-managedapplications.min.js.map +0 -1
  131. package/esm/managedApplicationClient.d.ts +0 -52
  132. package/esm/managedApplicationClient.d.ts.map +0 -1
  133. package/esm/managedApplicationClient.js +0 -87
  134. package/esm/managedApplicationClient.js.map +0 -1
  135. package/esm/managedApplicationClientContext.d.ts +0 -16
  136. package/esm/managedApplicationClientContext.d.ts.map +0 -1
  137. package/esm/managedApplicationClientContext.js +0 -56
  138. package/esm/managedApplicationClientContext.js.map +0 -1
  139. package/esm/models/applianceDefinitionsMappers.d.ts +0 -2
  140. package/esm/models/applianceDefinitionsMappers.d.ts.map +0 -1
  141. package/esm/models/applianceDefinitionsMappers.js +0 -9
  142. package/esm/models/applianceDefinitionsMappers.js.map +0 -1
  143. package/esm/models/appliancesMappers.d.ts +0 -2
  144. package/esm/models/appliancesMappers.d.ts.map +0 -1
  145. package/esm/models/appliancesMappers.js +0 -9
  146. package/esm/models/appliancesMappers.js.map +0 -1
  147. package/esm/operations/applianceDefinitions.d.ts +0 -167
  148. package/esm/operations/applianceDefinitions.d.ts.map +0 -1
  149. package/esm/operations/applianceDefinitions.js +0 -358
  150. package/esm/operations/applianceDefinitions.js.map +0 -1
  151. package/esm/operations/appliances.d.ts +0 -247
  152. package/esm/operations/appliances.d.ts.map +0 -1
  153. package/esm/operations/appliances.js +0 -482
  154. package/esm/operations/appliances.js.map +0 -1
  155. package/src/managedApplicationClient.ts +0 -138
  156. package/src/managedApplicationClientContext.ts +0 -62
  157. package/src/models/applianceDefinitionsMappers.ts +0 -24
  158. package/src/models/appliancesMappers.ts +0 -24
  159. package/src/operations/applianceDefinitions.ts +0 -492
  160. package/src/operations/appliances.ts +0 -716
@@ -0,0 +1,1069 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ import "@azure/core-paging";
10
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
11
+ import { Applications } from "../operationsInterfaces";
12
+ import * as coreClient from "@azure/core-client";
13
+ import * as Mappers from "../models/mappers";
14
+ import * as Parameters from "../models/parameters";
15
+ import { ApplicationClientContext } from "../applicationClientContext";
16
+ import { PollerLike, PollOperationState } from "@azure/core-lro";
17
+ import { LroEngine } from "../lro";
18
+ import { CoreClientLro, shouldDeserializeLro } from "../coreClientLro";
19
+ import {
20
+ Application,
21
+ ApplicationsListByResourceGroupNextOptionalParams,
22
+ ApplicationsListByResourceGroupOptionalParams,
23
+ ApplicationsListBySubscriptionNextOptionalParams,
24
+ ApplicationsListBySubscriptionOptionalParams,
25
+ ApplicationsListByResourceGroupNextNextOptionalParams,
26
+ ApplicationsListBySubscriptionNextNextOptionalParams,
27
+ ApplicationsGetOptionalParams,
28
+ ApplicationsGetResponse,
29
+ ApplicationsDeleteOptionalParams,
30
+ ApplicationsCreateOrUpdateOptionalParams,
31
+ ApplicationsCreateOrUpdateResponse,
32
+ ApplicationsUpdateOptionalParams,
33
+ ApplicationsUpdateResponse,
34
+ ApplicationsListByResourceGroupResponse,
35
+ ApplicationsListBySubscriptionResponse,
36
+ ApplicationsGetByIdOptionalParams,
37
+ ApplicationsGetByIdResponse,
38
+ ApplicationsDeleteByIdOptionalParams,
39
+ ApplicationsCreateOrUpdateByIdOptionalParams,
40
+ ApplicationsCreateOrUpdateByIdResponse,
41
+ ApplicationsUpdateByIdOptionalParams,
42
+ ApplicationsUpdateByIdResponse,
43
+ ApplicationsListByResourceGroupNextResponse,
44
+ ApplicationsListBySubscriptionNextResponse,
45
+ ApplicationsListByResourceGroupNextNextResponse,
46
+ ApplicationsListBySubscriptionNextNextResponse
47
+ } from "../models";
48
+
49
+ /// <reference lib="esnext.asynciterable" />
50
+ /** Class representing a Applications. */
51
+ export class ApplicationsImpl implements Applications {
52
+ private readonly client: ApplicationClientContext;
53
+
54
+ /**
55
+ * Initialize a new instance of the class Applications class.
56
+ * @param client Reference to the service client
57
+ */
58
+ constructor(client: ApplicationClientContext) {
59
+ this.client = client;
60
+ }
61
+
62
+ /**
63
+ * Gets all the applications within a resource group.
64
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
65
+ * @param options The options parameters.
66
+ */
67
+ public listByResourceGroup(
68
+ resourceGroupName: string,
69
+ options?: ApplicationsListByResourceGroupOptionalParams
70
+ ): PagedAsyncIterableIterator<Application> {
71
+ const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
72
+ return {
73
+ next() {
74
+ return iter.next();
75
+ },
76
+ [Symbol.asyncIterator]() {
77
+ return this;
78
+ },
79
+ byPage: () => {
80
+ return this.listByResourceGroupPagingPage(resourceGroupName, options);
81
+ }
82
+ };
83
+ }
84
+
85
+ private async *listByResourceGroupPagingPage(
86
+ resourceGroupName: string,
87
+ options?: ApplicationsListByResourceGroupOptionalParams
88
+ ): AsyncIterableIterator<Application[]> {
89
+ let result = await this._listByResourceGroup(resourceGroupName, options);
90
+ yield result.value || [];
91
+ let continuationToken = result.nextLink;
92
+ while (continuationToken) {
93
+ result = await this._listByResourceGroupNext(
94
+ resourceGroupName,
95
+ continuationToken,
96
+ options
97
+ );
98
+ continuationToken = result.nextLink;
99
+ yield result.value || [];
100
+ }
101
+ }
102
+
103
+ private async *listByResourceGroupPagingAll(
104
+ resourceGroupName: string,
105
+ options?: ApplicationsListByResourceGroupOptionalParams
106
+ ): AsyncIterableIterator<Application> {
107
+ for await (const page of this.listByResourceGroupPagingPage(
108
+ resourceGroupName,
109
+ options
110
+ )) {
111
+ yield* page;
112
+ }
113
+ }
114
+
115
+ /**
116
+ * Gets all the applications within a subscription.
117
+ * @param options The options parameters.
118
+ */
119
+ public listBySubscription(
120
+ options?: ApplicationsListBySubscriptionOptionalParams
121
+ ): PagedAsyncIterableIterator<Application> {
122
+ const iter = this.listBySubscriptionPagingAll(options);
123
+ return {
124
+ next() {
125
+ return iter.next();
126
+ },
127
+ [Symbol.asyncIterator]() {
128
+ return this;
129
+ },
130
+ byPage: () => {
131
+ return this.listBySubscriptionPagingPage(options);
132
+ }
133
+ };
134
+ }
135
+
136
+ private async *listBySubscriptionPagingPage(
137
+ options?: ApplicationsListBySubscriptionOptionalParams
138
+ ): AsyncIterableIterator<Application[]> {
139
+ let result = await this._listBySubscription(options);
140
+ yield result.value || [];
141
+ let continuationToken = result.nextLink;
142
+ while (continuationToken) {
143
+ result = await this._listBySubscriptionNext(continuationToken, options);
144
+ continuationToken = result.nextLink;
145
+ yield result.value || [];
146
+ }
147
+ }
148
+
149
+ private async *listBySubscriptionPagingAll(
150
+ options?: ApplicationsListBySubscriptionOptionalParams
151
+ ): AsyncIterableIterator<Application> {
152
+ for await (const page of this.listBySubscriptionPagingPage(options)) {
153
+ yield* page;
154
+ }
155
+ }
156
+
157
+ /**
158
+ * ListByResourceGroupNext
159
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
160
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
161
+ * @param options The options parameters.
162
+ */
163
+ public listByResourceGroupNext(
164
+ resourceGroupName: string,
165
+ nextLink: string,
166
+ options?: ApplicationsListByResourceGroupNextOptionalParams
167
+ ): PagedAsyncIterableIterator<Application> {
168
+ const iter = this.listByResourceGroupNextPagingAll(
169
+ resourceGroupName,
170
+ nextLink,
171
+ options
172
+ );
173
+ return {
174
+ next() {
175
+ return iter.next();
176
+ },
177
+ [Symbol.asyncIterator]() {
178
+ return this;
179
+ },
180
+ byPage: () => {
181
+ return this.listByResourceGroupNextPagingPage(
182
+ resourceGroupName,
183
+ nextLink,
184
+ options
185
+ );
186
+ }
187
+ };
188
+ }
189
+
190
+ private async *listByResourceGroupNextPagingPage(
191
+ resourceGroupName: string,
192
+ nextLink: string,
193
+ options?: ApplicationsListByResourceGroupNextOptionalParams
194
+ ): AsyncIterableIterator<Application[]> {
195
+ let result = await this._listByResourceGroupNext(
196
+ resourceGroupName,
197
+ nextLink,
198
+ options
199
+ );
200
+ yield result.value || [];
201
+ let continuationToken = result.nextLink;
202
+ while (continuationToken) {
203
+ result = await this._listByResourceGroupNextNext(
204
+ resourceGroupName,
205
+ continuationToken,
206
+ options
207
+ );
208
+ continuationToken = result.nextLink;
209
+ yield result.value || [];
210
+ }
211
+ }
212
+
213
+ private async *listByResourceGroupNextPagingAll(
214
+ resourceGroupName: string,
215
+ nextLink: string,
216
+ options?: ApplicationsListByResourceGroupNextOptionalParams
217
+ ): AsyncIterableIterator<Application> {
218
+ for await (const page of this.listByResourceGroupNextPagingPage(
219
+ resourceGroupName,
220
+ nextLink,
221
+ options
222
+ )) {
223
+ yield* page;
224
+ }
225
+ }
226
+
227
+ /**
228
+ * ListBySubscriptionNext
229
+ * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
230
+ * @param options The options parameters.
231
+ */
232
+ public listBySubscriptionNext(
233
+ nextLink: string,
234
+ options?: ApplicationsListBySubscriptionNextOptionalParams
235
+ ): PagedAsyncIterableIterator<Application> {
236
+ const iter = this.listBySubscriptionNextPagingAll(nextLink, options);
237
+ return {
238
+ next() {
239
+ return iter.next();
240
+ },
241
+ [Symbol.asyncIterator]() {
242
+ return this;
243
+ },
244
+ byPage: () => {
245
+ return this.listBySubscriptionNextPagingPage(nextLink, options);
246
+ }
247
+ };
248
+ }
249
+
250
+ private async *listBySubscriptionNextPagingPage(
251
+ nextLink: string,
252
+ options?: ApplicationsListBySubscriptionNextOptionalParams
253
+ ): AsyncIterableIterator<Application[]> {
254
+ let result = await this._listBySubscriptionNext(nextLink, options);
255
+ yield result.value || [];
256
+ let continuationToken = result.nextLink;
257
+ while (continuationToken) {
258
+ result = await this._listBySubscriptionNextNext(
259
+ continuationToken,
260
+ options
261
+ );
262
+ continuationToken = result.nextLink;
263
+ yield result.value || [];
264
+ }
265
+ }
266
+
267
+ private async *listBySubscriptionNextPagingAll(
268
+ nextLink: string,
269
+ options?: ApplicationsListBySubscriptionNextOptionalParams
270
+ ): AsyncIterableIterator<Application> {
271
+ for await (const page of this.listBySubscriptionNextPagingPage(
272
+ nextLink,
273
+ options
274
+ )) {
275
+ yield* page;
276
+ }
277
+ }
278
+
279
+ /**
280
+ * Gets the managed application.
281
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
282
+ * @param applicationName The name of the managed application.
283
+ * @param options The options parameters.
284
+ */
285
+ get(
286
+ resourceGroupName: string,
287
+ applicationName: string,
288
+ options?: ApplicationsGetOptionalParams
289
+ ): Promise<ApplicationsGetResponse> {
290
+ return this.client.sendOperationRequest(
291
+ { resourceGroupName, applicationName, options },
292
+ getOperationSpec
293
+ );
294
+ }
295
+
296
+ /**
297
+ * Deletes the managed application.
298
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
299
+ * @param applicationName The name of the managed application.
300
+ * @param options The options parameters.
301
+ */
302
+ async beginDelete(
303
+ resourceGroupName: string,
304
+ applicationName: string,
305
+ options?: ApplicationsDeleteOptionalParams
306
+ ): Promise<PollerLike<PollOperationState<void>, void>> {
307
+ const directSendOperation = async (
308
+ args: coreClient.OperationArguments,
309
+ spec: coreClient.OperationSpec
310
+ ): Promise<void> => {
311
+ return this.client.sendOperationRequest(args, spec);
312
+ };
313
+ const sendOperation = async (
314
+ args: coreClient.OperationArguments,
315
+ spec: coreClient.OperationSpec
316
+ ) => {
317
+ let currentRawResponse:
318
+ | coreClient.FullOperationResponse
319
+ | undefined = undefined;
320
+ const providedCallback = args.options?.onResponse;
321
+ const callback: coreClient.RawResponseCallback = (
322
+ rawResponse: coreClient.FullOperationResponse,
323
+ flatResponse: unknown
324
+ ) => {
325
+ currentRawResponse = rawResponse;
326
+ providedCallback?.(rawResponse, flatResponse);
327
+ };
328
+ const updatedArgs = {
329
+ ...args,
330
+ options: {
331
+ ...args.options,
332
+ onResponse: callback
333
+ }
334
+ };
335
+ const flatResponse = await directSendOperation(updatedArgs, spec);
336
+ return {
337
+ flatResponse,
338
+ rawResponse: {
339
+ statusCode: currentRawResponse!.status,
340
+ body: currentRawResponse!.parsedBody,
341
+ headers: currentRawResponse!.headers.toJSON()
342
+ }
343
+ };
344
+ };
345
+
346
+ const lro = new CoreClientLro(
347
+ sendOperation,
348
+ { resourceGroupName, applicationName, options },
349
+ deleteOperationSpec
350
+ );
351
+ return new LroEngine(lro, { intervalInMs: options?.updateIntervalInMs });
352
+ }
353
+
354
+ /**
355
+ * Deletes the managed application.
356
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
357
+ * @param applicationName The name of the managed application.
358
+ * @param options The options parameters.
359
+ */
360
+ async beginDeleteAndWait(
361
+ resourceGroupName: string,
362
+ applicationName: string,
363
+ options?: ApplicationsDeleteOptionalParams
364
+ ): Promise<void> {
365
+ const poller = await this.beginDelete(
366
+ resourceGroupName,
367
+ applicationName,
368
+ options
369
+ );
370
+ return poller.pollUntilDone();
371
+ }
372
+
373
+ /**
374
+ * Creates a new managed application.
375
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
376
+ * @param applicationName The name of the managed application.
377
+ * @param parameters Parameters supplied to the create or update a managed application.
378
+ * @param options The options parameters.
379
+ */
380
+ async beginCreateOrUpdate(
381
+ resourceGroupName: string,
382
+ applicationName: string,
383
+ parameters: Application,
384
+ options?: ApplicationsCreateOrUpdateOptionalParams
385
+ ): Promise<
386
+ PollerLike<
387
+ PollOperationState<ApplicationsCreateOrUpdateResponse>,
388
+ ApplicationsCreateOrUpdateResponse
389
+ >
390
+ > {
391
+ const directSendOperation = async (
392
+ args: coreClient.OperationArguments,
393
+ spec: coreClient.OperationSpec
394
+ ): Promise<ApplicationsCreateOrUpdateResponse> => {
395
+ return this.client.sendOperationRequest(args, spec);
396
+ };
397
+ const sendOperation = async (
398
+ args: coreClient.OperationArguments,
399
+ spec: coreClient.OperationSpec
400
+ ) => {
401
+ let currentRawResponse:
402
+ | coreClient.FullOperationResponse
403
+ | undefined = undefined;
404
+ const providedCallback = args.options?.onResponse;
405
+ const callback: coreClient.RawResponseCallback = (
406
+ rawResponse: coreClient.FullOperationResponse,
407
+ flatResponse: unknown
408
+ ) => {
409
+ currentRawResponse = rawResponse;
410
+ providedCallback?.(rawResponse, flatResponse);
411
+ };
412
+ const updatedArgs = {
413
+ ...args,
414
+ options: {
415
+ ...args.options,
416
+ onResponse: callback
417
+ }
418
+ };
419
+ const flatResponse = await directSendOperation(updatedArgs, spec);
420
+ return {
421
+ flatResponse,
422
+ rawResponse: {
423
+ statusCode: currentRawResponse!.status,
424
+ body: currentRawResponse!.parsedBody,
425
+ headers: currentRawResponse!.headers.toJSON()
426
+ }
427
+ };
428
+ };
429
+
430
+ const lro = new CoreClientLro(
431
+ sendOperation,
432
+ { resourceGroupName, applicationName, parameters, options },
433
+ createOrUpdateOperationSpec
434
+ );
435
+ return new LroEngine(lro, { intervalInMs: options?.updateIntervalInMs });
436
+ }
437
+
438
+ /**
439
+ * Creates a new managed application.
440
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
441
+ * @param applicationName The name of the managed application.
442
+ * @param parameters Parameters supplied to the create or update a managed application.
443
+ * @param options The options parameters.
444
+ */
445
+ async beginCreateOrUpdateAndWait(
446
+ resourceGroupName: string,
447
+ applicationName: string,
448
+ parameters: Application,
449
+ options?: ApplicationsCreateOrUpdateOptionalParams
450
+ ): Promise<ApplicationsCreateOrUpdateResponse> {
451
+ const poller = await this.beginCreateOrUpdate(
452
+ resourceGroupName,
453
+ applicationName,
454
+ parameters,
455
+ options
456
+ );
457
+ return poller.pollUntilDone();
458
+ }
459
+
460
+ /**
461
+ * Updates an existing managed application. The only value that can be updated via PATCH currently is
462
+ * the tags.
463
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
464
+ * @param applicationName The name of the managed application.
465
+ * @param options The options parameters.
466
+ */
467
+ update(
468
+ resourceGroupName: string,
469
+ applicationName: string,
470
+ options?: ApplicationsUpdateOptionalParams
471
+ ): Promise<ApplicationsUpdateResponse> {
472
+ return this.client.sendOperationRequest(
473
+ { resourceGroupName, applicationName, options },
474
+ updateOperationSpec
475
+ );
476
+ }
477
+
478
+ /**
479
+ * Gets all the applications within a resource group.
480
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
481
+ * @param options The options parameters.
482
+ */
483
+ private _listByResourceGroup(
484
+ resourceGroupName: string,
485
+ options?: ApplicationsListByResourceGroupOptionalParams
486
+ ): Promise<ApplicationsListByResourceGroupResponse> {
487
+ return this.client.sendOperationRequest(
488
+ { resourceGroupName, options },
489
+ listByResourceGroupOperationSpec
490
+ );
491
+ }
492
+
493
+ /**
494
+ * Gets all the applications within a subscription.
495
+ * @param options The options parameters.
496
+ */
497
+ private _listBySubscription(
498
+ options?: ApplicationsListBySubscriptionOptionalParams
499
+ ): Promise<ApplicationsListBySubscriptionResponse> {
500
+ return this.client.sendOperationRequest(
501
+ { options },
502
+ listBySubscriptionOperationSpec
503
+ );
504
+ }
505
+
506
+ /**
507
+ * Gets the managed application.
508
+ * @param applicationId The fully qualified ID of the managed application, including the managed
509
+ * application name and the managed application resource type. Use the format,
510
+ * /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}
511
+ * @param options The options parameters.
512
+ */
513
+ getById(
514
+ applicationId: string,
515
+ options?: ApplicationsGetByIdOptionalParams
516
+ ): Promise<ApplicationsGetByIdResponse> {
517
+ return this.client.sendOperationRequest(
518
+ { applicationId, options },
519
+ getByIdOperationSpec
520
+ );
521
+ }
522
+
523
+ /**
524
+ * Deletes the managed application.
525
+ * @param applicationId The fully qualified ID of the managed application, including the managed
526
+ * application name and the managed application resource type. Use the format,
527
+ * /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}
528
+ * @param options The options parameters.
529
+ */
530
+ async beginDeleteById(
531
+ applicationId: string,
532
+ options?: ApplicationsDeleteByIdOptionalParams
533
+ ): Promise<PollerLike<PollOperationState<void>, void>> {
534
+ const directSendOperation = async (
535
+ args: coreClient.OperationArguments,
536
+ spec: coreClient.OperationSpec
537
+ ): Promise<void> => {
538
+ return this.client.sendOperationRequest(args, spec);
539
+ };
540
+ const sendOperation = async (
541
+ args: coreClient.OperationArguments,
542
+ spec: coreClient.OperationSpec
543
+ ) => {
544
+ let currentRawResponse:
545
+ | coreClient.FullOperationResponse
546
+ | undefined = undefined;
547
+ const providedCallback = args.options?.onResponse;
548
+ const callback: coreClient.RawResponseCallback = (
549
+ rawResponse: coreClient.FullOperationResponse,
550
+ flatResponse: unknown
551
+ ) => {
552
+ currentRawResponse = rawResponse;
553
+ providedCallback?.(rawResponse, flatResponse);
554
+ };
555
+ const updatedArgs = {
556
+ ...args,
557
+ options: {
558
+ ...args.options,
559
+ onResponse: callback
560
+ }
561
+ };
562
+ const flatResponse = await directSendOperation(updatedArgs, spec);
563
+ return {
564
+ flatResponse,
565
+ rawResponse: {
566
+ statusCode: currentRawResponse!.status,
567
+ body: currentRawResponse!.parsedBody,
568
+ headers: currentRawResponse!.headers.toJSON()
569
+ }
570
+ };
571
+ };
572
+
573
+ const lro = new CoreClientLro(
574
+ sendOperation,
575
+ { applicationId, options },
576
+ deleteByIdOperationSpec
577
+ );
578
+ return new LroEngine(lro, { intervalInMs: options?.updateIntervalInMs });
579
+ }
580
+
581
+ /**
582
+ * Deletes the managed application.
583
+ * @param applicationId The fully qualified ID of the managed application, including the managed
584
+ * application name and the managed application resource type. Use the format,
585
+ * /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}
586
+ * @param options The options parameters.
587
+ */
588
+ async beginDeleteByIdAndWait(
589
+ applicationId: string,
590
+ options?: ApplicationsDeleteByIdOptionalParams
591
+ ): Promise<void> {
592
+ const poller = await this.beginDeleteById(applicationId, options);
593
+ return poller.pollUntilDone();
594
+ }
595
+
596
+ /**
597
+ * Creates a new managed application.
598
+ * @param applicationId The fully qualified ID of the managed application, including the managed
599
+ * application name and the managed application resource type. Use the format,
600
+ * /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}
601
+ * @param parameters Parameters supplied to the create or update a managed application.
602
+ * @param options The options parameters.
603
+ */
604
+ async beginCreateOrUpdateById(
605
+ applicationId: string,
606
+ parameters: Application,
607
+ options?: ApplicationsCreateOrUpdateByIdOptionalParams
608
+ ): Promise<
609
+ PollerLike<
610
+ PollOperationState<ApplicationsCreateOrUpdateByIdResponse>,
611
+ ApplicationsCreateOrUpdateByIdResponse
612
+ >
613
+ > {
614
+ const directSendOperation = async (
615
+ args: coreClient.OperationArguments,
616
+ spec: coreClient.OperationSpec
617
+ ): Promise<ApplicationsCreateOrUpdateByIdResponse> => {
618
+ return this.client.sendOperationRequest(args, spec);
619
+ };
620
+ const sendOperation = async (
621
+ args: coreClient.OperationArguments,
622
+ spec: coreClient.OperationSpec
623
+ ) => {
624
+ let currentRawResponse:
625
+ | coreClient.FullOperationResponse
626
+ | undefined = undefined;
627
+ const providedCallback = args.options?.onResponse;
628
+ const callback: coreClient.RawResponseCallback = (
629
+ rawResponse: coreClient.FullOperationResponse,
630
+ flatResponse: unknown
631
+ ) => {
632
+ currentRawResponse = rawResponse;
633
+ providedCallback?.(rawResponse, flatResponse);
634
+ };
635
+ const updatedArgs = {
636
+ ...args,
637
+ options: {
638
+ ...args.options,
639
+ onResponse: callback
640
+ }
641
+ };
642
+ const flatResponse = await directSendOperation(updatedArgs, spec);
643
+ return {
644
+ flatResponse,
645
+ rawResponse: {
646
+ statusCode: currentRawResponse!.status,
647
+ body: currentRawResponse!.parsedBody,
648
+ headers: currentRawResponse!.headers.toJSON()
649
+ }
650
+ };
651
+ };
652
+
653
+ const lro = new CoreClientLro(
654
+ sendOperation,
655
+ { applicationId, parameters, options },
656
+ createOrUpdateByIdOperationSpec
657
+ );
658
+ return new LroEngine(lro, { intervalInMs: options?.updateIntervalInMs });
659
+ }
660
+
661
+ /**
662
+ * Creates a new managed application.
663
+ * @param applicationId The fully qualified ID of the managed application, including the managed
664
+ * application name and the managed application resource type. Use the format,
665
+ * /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}
666
+ * @param parameters Parameters supplied to the create or update a managed application.
667
+ * @param options The options parameters.
668
+ */
669
+ async beginCreateOrUpdateByIdAndWait(
670
+ applicationId: string,
671
+ parameters: Application,
672
+ options?: ApplicationsCreateOrUpdateByIdOptionalParams
673
+ ): Promise<ApplicationsCreateOrUpdateByIdResponse> {
674
+ const poller = await this.beginCreateOrUpdateById(
675
+ applicationId,
676
+ parameters,
677
+ options
678
+ );
679
+ return poller.pollUntilDone();
680
+ }
681
+
682
+ /**
683
+ * Updates an existing managed application. The only value that can be updated via PATCH currently is
684
+ * the tags.
685
+ * @param applicationId The fully qualified ID of the managed application, including the managed
686
+ * application name and the managed application resource type. Use the format,
687
+ * /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applications/{application-name}
688
+ * @param options The options parameters.
689
+ */
690
+ updateById(
691
+ applicationId: string,
692
+ options?: ApplicationsUpdateByIdOptionalParams
693
+ ): Promise<ApplicationsUpdateByIdResponse> {
694
+ return this.client.sendOperationRequest(
695
+ { applicationId, options },
696
+ updateByIdOperationSpec
697
+ );
698
+ }
699
+
700
+ /**
701
+ * ListByResourceGroupNext
702
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
703
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
704
+ * @param options The options parameters.
705
+ */
706
+ private _listByResourceGroupNext(
707
+ resourceGroupName: string,
708
+ nextLink: string,
709
+ options?: ApplicationsListByResourceGroupNextOptionalParams
710
+ ): Promise<ApplicationsListByResourceGroupNextResponse> {
711
+ return this.client.sendOperationRequest(
712
+ { resourceGroupName, nextLink, options },
713
+ listByResourceGroupNextOperationSpec
714
+ );
715
+ }
716
+
717
+ /**
718
+ * ListBySubscriptionNext
719
+ * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
720
+ * @param options The options parameters.
721
+ */
722
+ private _listBySubscriptionNext(
723
+ nextLink: string,
724
+ options?: ApplicationsListBySubscriptionNextOptionalParams
725
+ ): Promise<ApplicationsListBySubscriptionNextResponse> {
726
+ return this.client.sendOperationRequest(
727
+ { nextLink, options },
728
+ listBySubscriptionNextOperationSpec
729
+ );
730
+ }
731
+
732
+ /**
733
+ * ListByResourceGroupNextNext
734
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
735
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroupNext
736
+ * method.
737
+ * @param options The options parameters.
738
+ */
739
+ private _listByResourceGroupNextNext(
740
+ resourceGroupName: string,
741
+ nextLink: string,
742
+ options?: ApplicationsListByResourceGroupNextNextOptionalParams
743
+ ): Promise<ApplicationsListByResourceGroupNextNextResponse> {
744
+ return this.client.sendOperationRequest(
745
+ { resourceGroupName, nextLink, options },
746
+ listByResourceGroupNextNextOperationSpec
747
+ );
748
+ }
749
+
750
+ /**
751
+ * ListBySubscriptionNextNext
752
+ * @param nextLink The nextLink from the previous successful call to the ListBySubscriptionNext method.
753
+ * @param options The options parameters.
754
+ */
755
+ private _listBySubscriptionNextNext(
756
+ nextLink: string,
757
+ options?: ApplicationsListBySubscriptionNextNextOptionalParams
758
+ ): Promise<ApplicationsListBySubscriptionNextNextResponse> {
759
+ return this.client.sendOperationRequest(
760
+ { nextLink, options },
761
+ listBySubscriptionNextNextOperationSpec
762
+ );
763
+ }
764
+ }
765
+ // Operation Specifications
766
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
767
+
768
+ const getOperationSpec: coreClient.OperationSpec = {
769
+ path:
770
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}",
771
+ httpMethod: "GET",
772
+ responses: {
773
+ 200: {
774
+ bodyMapper: Mappers.Application
775
+ },
776
+ 404: {},
777
+ default: {
778
+ bodyMapper: Mappers.ErrorResponse
779
+ }
780
+ },
781
+ queryParameters: [Parameters.apiVersion],
782
+ urlParameters: [
783
+ Parameters.$host,
784
+ Parameters.resourceGroupName,
785
+ Parameters.applicationName,
786
+ Parameters.subscriptionId
787
+ ],
788
+ headerParameters: [Parameters.accept],
789
+ serializer
790
+ };
791
+ const deleteOperationSpec: coreClient.OperationSpec = {
792
+ path:
793
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}",
794
+ httpMethod: "DELETE",
795
+ responses: {
796
+ 200: {},
797
+ 201: {},
798
+ 202: {},
799
+ 204: {},
800
+ default: {
801
+ bodyMapper: Mappers.ErrorResponse
802
+ }
803
+ },
804
+ queryParameters: [Parameters.apiVersion],
805
+ urlParameters: [
806
+ Parameters.$host,
807
+ Parameters.resourceGroupName,
808
+ Parameters.applicationName,
809
+ Parameters.subscriptionId
810
+ ],
811
+ headerParameters: [Parameters.accept],
812
+ serializer
813
+ };
814
+ const createOrUpdateOperationSpec: coreClient.OperationSpec = {
815
+ path:
816
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}",
817
+ httpMethod: "PUT",
818
+ responses: {
819
+ 200: {
820
+ bodyMapper: Mappers.Application
821
+ },
822
+ 201: {
823
+ bodyMapper: Mappers.Application
824
+ },
825
+ 202: {
826
+ bodyMapper: Mappers.Application
827
+ },
828
+ 204: {
829
+ bodyMapper: Mappers.Application
830
+ },
831
+ default: {
832
+ bodyMapper: Mappers.ErrorResponse
833
+ }
834
+ },
835
+ requestBody: Parameters.parameters,
836
+ queryParameters: [Parameters.apiVersion],
837
+ urlParameters: [
838
+ Parameters.$host,
839
+ Parameters.resourceGroupName,
840
+ Parameters.applicationName,
841
+ Parameters.subscriptionId
842
+ ],
843
+ headerParameters: [Parameters.accept, Parameters.contentType],
844
+ mediaType: "json",
845
+ serializer
846
+ };
847
+ const updateOperationSpec: coreClient.OperationSpec = {
848
+ path:
849
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}",
850
+ httpMethod: "PATCH",
851
+ responses: {
852
+ 200: {
853
+ bodyMapper: Mappers.Application
854
+ },
855
+ default: {
856
+ bodyMapper: Mappers.ErrorResponse
857
+ }
858
+ },
859
+ requestBody: Parameters.parameters1,
860
+ queryParameters: [Parameters.apiVersion],
861
+ urlParameters: [
862
+ Parameters.$host,
863
+ Parameters.resourceGroupName,
864
+ Parameters.applicationName,
865
+ Parameters.subscriptionId
866
+ ],
867
+ headerParameters: [Parameters.accept, Parameters.contentType],
868
+ mediaType: "json",
869
+ serializer
870
+ };
871
+ const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
872
+ path:
873
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications",
874
+ httpMethod: "GET",
875
+ responses: {
876
+ 200: {
877
+ bodyMapper: Mappers.ApplicationListResult
878
+ },
879
+ default: {
880
+ bodyMapper: Mappers.ErrorResponse
881
+ }
882
+ },
883
+ queryParameters: [Parameters.apiVersion],
884
+ urlParameters: [
885
+ Parameters.$host,
886
+ Parameters.resourceGroupName,
887
+ Parameters.subscriptionId
888
+ ],
889
+ headerParameters: [Parameters.accept],
890
+ serializer
891
+ };
892
+ const listBySubscriptionOperationSpec: coreClient.OperationSpec = {
893
+ path:
894
+ "/subscriptions/{subscriptionId}/providers/Microsoft.Solutions/applications",
895
+ httpMethod: "GET",
896
+ responses: {
897
+ 200: {
898
+ bodyMapper: Mappers.ApplicationListResult
899
+ },
900
+ default: {
901
+ bodyMapper: Mappers.ErrorResponse
902
+ }
903
+ },
904
+ queryParameters: [Parameters.apiVersion],
905
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
906
+ headerParameters: [Parameters.accept],
907
+ serializer
908
+ };
909
+ const getByIdOperationSpec: coreClient.OperationSpec = {
910
+ path: "/{applicationId}",
911
+ httpMethod: "GET",
912
+ responses: {
913
+ 200: {
914
+ bodyMapper: Mappers.Application
915
+ },
916
+ 404: {},
917
+ default: {
918
+ bodyMapper: Mappers.ErrorResponse
919
+ }
920
+ },
921
+ queryParameters: [Parameters.apiVersion],
922
+ urlParameters: [Parameters.$host, Parameters.applicationId],
923
+ headerParameters: [Parameters.accept],
924
+ serializer
925
+ };
926
+ const deleteByIdOperationSpec: coreClient.OperationSpec = {
927
+ path: "/{applicationId}",
928
+ httpMethod: "DELETE",
929
+ responses: {
930
+ 200: {},
931
+ 201: {},
932
+ 202: {},
933
+ 204: {},
934
+ default: {
935
+ bodyMapper: Mappers.ErrorResponse
936
+ }
937
+ },
938
+ queryParameters: [Parameters.apiVersion],
939
+ urlParameters: [Parameters.$host, Parameters.applicationId],
940
+ headerParameters: [Parameters.accept],
941
+ serializer
942
+ };
943
+ const createOrUpdateByIdOperationSpec: coreClient.OperationSpec = {
944
+ path: "/{applicationId}",
945
+ httpMethod: "PUT",
946
+ responses: {
947
+ 200: {
948
+ bodyMapper: Mappers.Application
949
+ },
950
+ 201: {
951
+ bodyMapper: Mappers.Application
952
+ },
953
+ 202: {
954
+ bodyMapper: Mappers.Application
955
+ },
956
+ 204: {
957
+ bodyMapper: Mappers.Application
958
+ },
959
+ default: {
960
+ bodyMapper: Mappers.ErrorResponse
961
+ }
962
+ },
963
+ requestBody: Parameters.parameters,
964
+ queryParameters: [Parameters.apiVersion],
965
+ urlParameters: [Parameters.$host, Parameters.applicationId],
966
+ headerParameters: [Parameters.accept, Parameters.contentType],
967
+ mediaType: "json",
968
+ serializer
969
+ };
970
+ const updateByIdOperationSpec: coreClient.OperationSpec = {
971
+ path: "/{applicationId}",
972
+ httpMethod: "PATCH",
973
+ responses: {
974
+ 200: {
975
+ bodyMapper: Mappers.Application
976
+ },
977
+ default: {
978
+ bodyMapper: Mappers.ErrorResponse
979
+ }
980
+ },
981
+ requestBody: Parameters.parameters2,
982
+ queryParameters: [Parameters.apiVersion],
983
+ urlParameters: [Parameters.$host, Parameters.applicationId],
984
+ headerParameters: [Parameters.accept, Parameters.contentType],
985
+ mediaType: "json",
986
+ serializer
987
+ };
988
+ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
989
+ path: "{nextLink}",
990
+ httpMethod: "GET",
991
+ responses: {
992
+ 200: {
993
+ bodyMapper: Mappers.ApplicationListResult
994
+ },
995
+ default: {
996
+ bodyMapper: Mappers.ErrorResponse
997
+ }
998
+ },
999
+ queryParameters: [Parameters.apiVersion],
1000
+ urlParameters: [
1001
+ Parameters.$host,
1002
+ Parameters.nextLink,
1003
+ Parameters.resourceGroupName,
1004
+ Parameters.subscriptionId
1005
+ ],
1006
+ headerParameters: [Parameters.accept],
1007
+ serializer
1008
+ };
1009
+ const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {
1010
+ path: "{nextLink}",
1011
+ httpMethod: "GET",
1012
+ responses: {
1013
+ 200: {
1014
+ bodyMapper: Mappers.ApplicationListResult
1015
+ },
1016
+ default: {
1017
+ bodyMapper: Mappers.ErrorResponse
1018
+ }
1019
+ },
1020
+ queryParameters: [Parameters.apiVersion],
1021
+ urlParameters: [
1022
+ Parameters.$host,
1023
+ Parameters.nextLink,
1024
+ Parameters.subscriptionId
1025
+ ],
1026
+ headerParameters: [Parameters.accept],
1027
+ serializer
1028
+ };
1029
+ const listByResourceGroupNextNextOperationSpec: coreClient.OperationSpec = {
1030
+ path: "{nextLink}",
1031
+ httpMethod: "GET",
1032
+ responses: {
1033
+ 200: {
1034
+ bodyMapper: Mappers.ApplicationListResult
1035
+ },
1036
+ default: {
1037
+ bodyMapper: Mappers.ErrorResponse
1038
+ }
1039
+ },
1040
+ queryParameters: [Parameters.apiVersion],
1041
+ urlParameters: [
1042
+ Parameters.$host,
1043
+ Parameters.nextLink,
1044
+ Parameters.resourceGroupName,
1045
+ Parameters.subscriptionId
1046
+ ],
1047
+ headerParameters: [Parameters.accept],
1048
+ serializer
1049
+ };
1050
+ const listBySubscriptionNextNextOperationSpec: coreClient.OperationSpec = {
1051
+ path: "{nextLink}",
1052
+ httpMethod: "GET",
1053
+ responses: {
1054
+ 200: {
1055
+ bodyMapper: Mappers.ApplicationListResult
1056
+ },
1057
+ default: {
1058
+ bodyMapper: Mappers.ErrorResponse
1059
+ }
1060
+ },
1061
+ queryParameters: [Parameters.apiVersion],
1062
+ urlParameters: [
1063
+ Parameters.$host,
1064
+ Parameters.nextLink,
1065
+ Parameters.subscriptionId
1066
+ ],
1067
+ headerParameters: [Parameters.accept],
1068
+ serializer
1069
+ };