@azure/arm-elasticsan 1.0.1-alpha.20240924.1 → 1.1.0

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 (97) hide show
  1. package/CHANGELOG.md +7 -9
  2. package/dist/index.js +849 -837
  3. package/dist/index.js.map +1 -1
  4. package/dist/index.min.js +1 -1
  5. package/dist/index.min.js.map +1 -1
  6. package/dist-esm/samples-dev/elasticSansCreateSample.js +6 -6
  7. package/dist-esm/samples-dev/elasticSansDeleteSample.js +2 -2
  8. package/dist-esm/samples-dev/elasticSansGetSample.js +2 -2
  9. package/dist-esm/samples-dev/elasticSansListByResourceGroupSample.js +2 -2
  10. package/dist-esm/samples-dev/elasticSansListBySubscriptionSample.js +2 -2
  11. package/dist-esm/samples-dev/elasticSansUpdateSample.js +4 -4
  12. package/dist-esm/samples-dev/operationsListSample.js +2 -2
  13. package/dist-esm/samples-dev/privateEndpointConnectionsCreateSample.js +7 -7
  14. package/dist-esm/samples-dev/privateEndpointConnectionsCreateSample.js.map +1 -1
  15. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +2 -2
  16. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +2 -2
  17. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js +2 -2
  18. package/dist-esm/samples-dev/privateLinkResourcesListByElasticSanSample.js +2 -2
  19. package/dist-esm/samples-dev/skusListSample.js +3 -3
  20. package/dist-esm/samples-dev/skusListSample.js.map +1 -1
  21. package/dist-esm/samples-dev/volumeGroupsCreateSample.js +17 -14
  22. package/dist-esm/samples-dev/volumeGroupsCreateSample.js.map +1 -1
  23. package/dist-esm/samples-dev/volumeGroupsDeleteSample.js +2 -2
  24. package/dist-esm/samples-dev/volumeGroupsGetSample.js +2 -2
  25. package/dist-esm/samples-dev/volumeGroupsListByElasticSanSample.js +2 -2
  26. package/dist-esm/samples-dev/volumeGroupsUpdateSample.js +16 -13
  27. package/dist-esm/samples-dev/volumeGroupsUpdateSample.js.map +1 -1
  28. package/dist-esm/samples-dev/volumeSnapshotsCreateSample.js +8 -8
  29. package/dist-esm/samples-dev/volumeSnapshotsDeleteSample.js +2 -2
  30. package/dist-esm/samples-dev/volumeSnapshotsGetSample.js +2 -2
  31. package/dist-esm/samples-dev/volumeSnapshotsListByVolumeGroupSample.js +3 -3
  32. package/dist-esm/samples-dev/volumeSnapshotsListByVolumeGroupSample.js.map +1 -1
  33. package/dist-esm/samples-dev/volumesCreateSample.js +4 -4
  34. package/dist-esm/samples-dev/volumesDeleteSample.js +4 -4
  35. package/dist-esm/samples-dev/volumesDeleteSample.js.map +1 -1
  36. package/dist-esm/samples-dev/volumesGetSample.js +2 -2
  37. package/dist-esm/samples-dev/volumesListByVolumeGroupSample.js +2 -2
  38. package/dist-esm/samples-dev/volumesUpdateSample.js +2 -2
  39. package/dist-esm/src/elasticSanManagement.d.ts.map +1 -1
  40. package/dist-esm/src/elasticSanManagement.js +9 -9
  41. package/dist-esm/src/elasticSanManagement.js.map +1 -1
  42. package/dist-esm/src/lroImpl.js +1 -1
  43. package/dist-esm/src/models/index.d.ts +4 -0
  44. package/dist-esm/src/models/index.d.ts.map +1 -1
  45. package/dist-esm/src/models/index.js.map +1 -1
  46. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  47. package/dist-esm/src/models/mappers.js +531 -519
  48. package/dist-esm/src/models/mappers.js.map +1 -1
  49. package/dist-esm/src/models/parameters.js +61 -61
  50. package/dist-esm/src/models/parameters.js.map +1 -1
  51. package/dist-esm/src/operations/elasticSans.d.ts.map +1 -1
  52. package/dist-esm/src/operations/elasticSans.js +59 -59
  53. package/dist-esm/src/operations/elasticSans.js.map +1 -1
  54. package/dist-esm/src/operations/operations.js +5 -5
  55. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
  56. package/dist-esm/src/operations/privateEndpointConnections.js +35 -35
  57. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
  58. package/dist-esm/src/operations/privateLinkResources.js +5 -5
  59. package/dist-esm/src/operations/privateLinkResources.js.map +1 -1
  60. package/dist-esm/src/operations/skus.js +5 -5
  61. package/dist-esm/src/operations/volumeGroups.d.ts.map +1 -1
  62. package/dist-esm/src/operations/volumeGroups.js +51 -51
  63. package/dist-esm/src/operations/volumeGroups.js.map +1 -1
  64. package/dist-esm/src/operations/volumeSnapshots.d.ts.map +1 -1
  65. package/dist-esm/src/operations/volumeSnapshots.js +40 -40
  66. package/dist-esm/src/operations/volumeSnapshots.js.map +1 -1
  67. package/dist-esm/src/operations/volumes.d.ts.map +1 -1
  68. package/dist-esm/src/operations/volumes.js +54 -54
  69. package/dist-esm/src/operations/volumes.js.map +1 -1
  70. package/dist-esm/test/elasticsan_examples.spec.d.ts.map +1 -1
  71. package/dist-esm/test/elasticsan_examples.spec.js +28 -9
  72. package/dist-esm/test/elasticsan_examples.spec.js.map +1 -1
  73. package/package.json +6 -6
  74. package/review/arm-elasticsan.api.md +2 -0
  75. package/src/elasticSanManagement.ts +18 -17
  76. package/src/lroImpl.ts +3 -3
  77. package/src/models/index.ts +26 -19
  78. package/src/models/mappers.ts +549 -536
  79. package/src/models/parameters.ts +62 -62
  80. package/src/operations/elasticSans.ts +115 -124
  81. package/src/operations/operations.ts +10 -10
  82. package/src/operations/privateEndpointConnections.ts +71 -76
  83. package/src/operations/privateLinkResources.ts +9 -10
  84. package/src/operations/skus.ts +9 -9
  85. package/src/operations/volumeGroups.ts +101 -109
  86. package/src/operations/volumeSnapshots.ts +79 -85
  87. package/src/operations/volumes.ts +104 -112
  88. package/src/operationsInterfaces/elasticSans.ts +10 -10
  89. package/src/operationsInterfaces/operations.ts +1 -1
  90. package/src/operationsInterfaces/privateEndpointConnections.ts +7 -7
  91. package/src/operationsInterfaces/privateLinkResources.ts +2 -2
  92. package/src/operationsInterfaces/skus.ts +1 -1
  93. package/src/operationsInterfaces/volumeGroups.ts +9 -9
  94. package/src/operationsInterfaces/volumeSnapshots.ts +7 -7
  95. package/src/operationsInterfaces/volumes.ts +9 -9
  96. package/src/pagingHelper.ts +1 -1
  97. package/types/arm-elasticsan.d.ts +4 -0
@@ -16,7 +16,7 @@ import { ElasticSanManagement } from "../elasticSanManagement";
16
16
  import {
17
17
  SimplePollerLike,
18
18
  OperationState,
19
- createHttpPoller
19
+ createHttpPoller,
20
20
  } from "@azure/core-lro";
21
21
  import { createLroSpec } from "../lroImpl";
22
22
  import {
@@ -36,7 +36,7 @@ import {
36
36
  ElasticSansGetOptionalParams,
37
37
  ElasticSansGetResponse,
38
38
  ElasticSansListBySubscriptionNextResponse,
39
- ElasticSansListByResourceGroupNextResponse
39
+ ElasticSansListByResourceGroupNextResponse,
40
40
  } from "../models";
41
41
 
42
42
  /// <reference lib="esnext.asynciterable" />
@@ -57,7 +57,7 @@ export class ElasticSansImpl implements ElasticSans {
57
57
  * @param options The options parameters.
58
58
  */
59
59
  public listBySubscription(
60
- options?: ElasticSansListBySubscriptionOptionalParams
60
+ options?: ElasticSansListBySubscriptionOptionalParams,
61
61
  ): PagedAsyncIterableIterator<ElasticSan> {
62
62
  const iter = this.listBySubscriptionPagingAll(options);
63
63
  return {
@@ -72,13 +72,13 @@ export class ElasticSansImpl implements ElasticSans {
72
72
  throw new Error("maxPageSize is not supported by this operation.");
73
73
  }
74
74
  return this.listBySubscriptionPagingPage(options, settings);
75
- }
75
+ },
76
76
  };
77
77
  }
78
78
 
79
79
  private async *listBySubscriptionPagingPage(
80
80
  options?: ElasticSansListBySubscriptionOptionalParams,
81
- settings?: PageSettings
81
+ settings?: PageSettings,
82
82
  ): AsyncIterableIterator<ElasticSan[]> {
83
83
  let result: ElasticSansListBySubscriptionResponse;
84
84
  let continuationToken = settings?.continuationToken;
@@ -99,7 +99,7 @@ export class ElasticSansImpl implements ElasticSans {
99
99
  }
100
100
 
101
101
  private async *listBySubscriptionPagingAll(
102
- options?: ElasticSansListBySubscriptionOptionalParams
102
+ options?: ElasticSansListBySubscriptionOptionalParams,
103
103
  ): AsyncIterableIterator<ElasticSan> {
104
104
  for await (const page of this.listBySubscriptionPagingPage(options)) {
105
105
  yield* page;
@@ -113,7 +113,7 @@ export class ElasticSansImpl implements ElasticSans {
113
113
  */
114
114
  public listByResourceGroup(
115
115
  resourceGroupName: string,
116
- options?: ElasticSansListByResourceGroupOptionalParams
116
+ options?: ElasticSansListByResourceGroupOptionalParams,
117
117
  ): PagedAsyncIterableIterator<ElasticSan> {
118
118
  const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
119
119
  return {
@@ -130,16 +130,16 @@ export class ElasticSansImpl implements ElasticSans {
130
130
  return this.listByResourceGroupPagingPage(
131
131
  resourceGroupName,
132
132
  options,
133
- settings
133
+ settings,
134
134
  );
135
- }
135
+ },
136
136
  };
137
137
  }
138
138
 
139
139
  private async *listByResourceGroupPagingPage(
140
140
  resourceGroupName: string,
141
141
  options?: ElasticSansListByResourceGroupOptionalParams,
142
- settings?: PageSettings
142
+ settings?: PageSettings,
143
143
  ): AsyncIterableIterator<ElasticSan[]> {
144
144
  let result: ElasticSansListByResourceGroupResponse;
145
145
  let continuationToken = settings?.continuationToken;
@@ -154,7 +154,7 @@ export class ElasticSansImpl implements ElasticSans {
154
154
  result = await this._listByResourceGroupNext(
155
155
  resourceGroupName,
156
156
  continuationToken,
157
- options
157
+ options,
158
158
  );
159
159
  continuationToken = result.nextLink;
160
160
  let page = result.value || [];
@@ -165,11 +165,11 @@ export class ElasticSansImpl implements ElasticSans {
165
165
 
166
166
  private async *listByResourceGroupPagingAll(
167
167
  resourceGroupName: string,
168
- options?: ElasticSansListByResourceGroupOptionalParams
168
+ options?: ElasticSansListByResourceGroupOptionalParams,
169
169
  ): AsyncIterableIterator<ElasticSan> {
170
170
  for await (const page of this.listByResourceGroupPagingPage(
171
171
  resourceGroupName,
172
- options
172
+ options,
173
173
  )) {
174
174
  yield* page;
175
175
  }
@@ -180,11 +180,11 @@ export class ElasticSansImpl implements ElasticSans {
180
180
  * @param options The options parameters.
181
181
  */
182
182
  private _listBySubscription(
183
- options?: ElasticSansListBySubscriptionOptionalParams
183
+ options?: ElasticSansListBySubscriptionOptionalParams,
184
184
  ): Promise<ElasticSansListBySubscriptionResponse> {
185
185
  return this.client.sendOperationRequest(
186
186
  { options },
187
- listBySubscriptionOperationSpec
187
+ listBySubscriptionOperationSpec,
188
188
  );
189
189
  }
190
190
 
@@ -195,11 +195,11 @@ export class ElasticSansImpl implements ElasticSans {
195
195
  */
196
196
  private _listByResourceGroup(
197
197
  resourceGroupName: string,
198
- options?: ElasticSansListByResourceGroupOptionalParams
198
+ options?: ElasticSansListByResourceGroupOptionalParams,
199
199
  ): Promise<ElasticSansListByResourceGroupResponse> {
200
200
  return this.client.sendOperationRequest(
201
201
  { resourceGroupName, options },
202
- listByResourceGroupOperationSpec
202
+ listByResourceGroupOperationSpec,
203
203
  );
204
204
  }
205
205
 
@@ -214,7 +214,7 @@ export class ElasticSansImpl implements ElasticSans {
214
214
  resourceGroupName: string,
215
215
  elasticSanName: string,
216
216
  parameters: ElasticSan,
217
- options?: ElasticSansCreateOptionalParams
217
+ options?: ElasticSansCreateOptionalParams,
218
218
  ): Promise<
219
219
  SimplePollerLike<
220
220
  OperationState<ElasticSansCreateResponse>,
@@ -223,21 +223,20 @@ export class ElasticSansImpl implements ElasticSans {
223
223
  > {
224
224
  const directSendOperation = async (
225
225
  args: coreClient.OperationArguments,
226
- spec: coreClient.OperationSpec
226
+ spec: coreClient.OperationSpec,
227
227
  ): Promise<ElasticSansCreateResponse> => {
228
228
  return this.client.sendOperationRequest(args, spec);
229
229
  };
230
230
  const sendOperationFn = async (
231
231
  args: coreClient.OperationArguments,
232
- spec: coreClient.OperationSpec
232
+ spec: coreClient.OperationSpec,
233
233
  ) => {
234
- let currentRawResponse:
235
- | coreClient.FullOperationResponse
236
- | undefined = undefined;
234
+ let currentRawResponse: coreClient.FullOperationResponse | undefined =
235
+ undefined;
237
236
  const providedCallback = args.options?.onResponse;
238
237
  const callback: coreClient.RawResponseCallback = (
239
238
  rawResponse: coreClient.FullOperationResponse,
240
- flatResponse: unknown
239
+ flatResponse: unknown,
241
240
  ) => {
242
241
  currentRawResponse = rawResponse;
243
242
  providedCallback?.(rawResponse, flatResponse);
@@ -246,8 +245,8 @@ export class ElasticSansImpl implements ElasticSans {
246
245
  ...args,
247
246
  options: {
248
247
  ...args.options,
249
- onResponse: callback
250
- }
248
+ onResponse: callback,
249
+ },
251
250
  };
252
251
  const flatResponse = await directSendOperation(updatedArgs, spec);
253
252
  return {
@@ -255,15 +254,15 @@ export class ElasticSansImpl implements ElasticSans {
255
254
  rawResponse: {
256
255
  statusCode: currentRawResponse!.status,
257
256
  body: currentRawResponse!.parsedBody,
258
- headers: currentRawResponse!.headers.toJSON()
259
- }
257
+ headers: currentRawResponse!.headers.toJSON(),
258
+ },
260
259
  };
261
260
  };
262
261
 
263
262
  const lro = createLroSpec({
264
263
  sendOperationFn,
265
264
  args: { resourceGroupName, elasticSanName, parameters, options },
266
- spec: createOperationSpec
265
+ spec: createOperationSpec,
267
266
  });
268
267
  const poller = await createHttpPoller<
269
268
  ElasticSansCreateResponse,
@@ -271,7 +270,7 @@ export class ElasticSansImpl implements ElasticSans {
271
270
  >(lro, {
272
271
  restoreFrom: options?.resumeFrom,
273
272
  intervalInMs: options?.updateIntervalInMs,
274
- resourceLocationConfig: "location"
273
+ resourceLocationConfig: "location",
275
274
  });
276
275
  await poller.poll();
277
276
  return poller;
@@ -288,13 +287,13 @@ export class ElasticSansImpl implements ElasticSans {
288
287
  resourceGroupName: string,
289
288
  elasticSanName: string,
290
289
  parameters: ElasticSan,
291
- options?: ElasticSansCreateOptionalParams
290
+ options?: ElasticSansCreateOptionalParams,
292
291
  ): Promise<ElasticSansCreateResponse> {
293
292
  const poller = await this.beginCreate(
294
293
  resourceGroupName,
295
294
  elasticSanName,
296
295
  parameters,
297
- options
296
+ options,
298
297
  );
299
298
  return poller.pollUntilDone();
300
299
  }
@@ -310,7 +309,7 @@ export class ElasticSansImpl implements ElasticSans {
310
309
  resourceGroupName: string,
311
310
  elasticSanName: string,
312
311
  parameters: ElasticSanUpdate,
313
- options?: ElasticSansUpdateOptionalParams
312
+ options?: ElasticSansUpdateOptionalParams,
314
313
  ): Promise<
315
314
  SimplePollerLike<
316
315
  OperationState<ElasticSansUpdateResponse>,
@@ -319,21 +318,20 @@ export class ElasticSansImpl implements ElasticSans {
319
318
  > {
320
319
  const directSendOperation = async (
321
320
  args: coreClient.OperationArguments,
322
- spec: coreClient.OperationSpec
321
+ spec: coreClient.OperationSpec,
323
322
  ): Promise<ElasticSansUpdateResponse> => {
324
323
  return this.client.sendOperationRequest(args, spec);
325
324
  };
326
325
  const sendOperationFn = async (
327
326
  args: coreClient.OperationArguments,
328
- spec: coreClient.OperationSpec
327
+ spec: coreClient.OperationSpec,
329
328
  ) => {
330
- let currentRawResponse:
331
- | coreClient.FullOperationResponse
332
- | undefined = undefined;
329
+ let currentRawResponse: coreClient.FullOperationResponse | undefined =
330
+ undefined;
333
331
  const providedCallback = args.options?.onResponse;
334
332
  const callback: coreClient.RawResponseCallback = (
335
333
  rawResponse: coreClient.FullOperationResponse,
336
- flatResponse: unknown
334
+ flatResponse: unknown,
337
335
  ) => {
338
336
  currentRawResponse = rawResponse;
339
337
  providedCallback?.(rawResponse, flatResponse);
@@ -342,8 +340,8 @@ export class ElasticSansImpl implements ElasticSans {
342
340
  ...args,
343
341
  options: {
344
342
  ...args.options,
345
- onResponse: callback
346
- }
343
+ onResponse: callback,
344
+ },
347
345
  };
348
346
  const flatResponse = await directSendOperation(updatedArgs, spec);
349
347
  return {
@@ -351,15 +349,15 @@ export class ElasticSansImpl implements ElasticSans {
351
349
  rawResponse: {
352
350
  statusCode: currentRawResponse!.status,
353
351
  body: currentRawResponse!.parsedBody,
354
- headers: currentRawResponse!.headers.toJSON()
355
- }
352
+ headers: currentRawResponse!.headers.toJSON(),
353
+ },
356
354
  };
357
355
  };
358
356
 
359
357
  const lro = createLroSpec({
360
358
  sendOperationFn,
361
359
  args: { resourceGroupName, elasticSanName, parameters, options },
362
- spec: updateOperationSpec
360
+ spec: updateOperationSpec,
363
361
  });
364
362
  const poller = await createHttpPoller<
365
363
  ElasticSansUpdateResponse,
@@ -367,7 +365,7 @@ export class ElasticSansImpl implements ElasticSans {
367
365
  >(lro, {
368
366
  restoreFrom: options?.resumeFrom,
369
367
  intervalInMs: options?.updateIntervalInMs,
370
- resourceLocationConfig: "location"
368
+ resourceLocationConfig: "location",
371
369
  });
372
370
  await poller.poll();
373
371
  return poller;
@@ -384,13 +382,13 @@ export class ElasticSansImpl implements ElasticSans {
384
382
  resourceGroupName: string,
385
383
  elasticSanName: string,
386
384
  parameters: ElasticSanUpdate,
387
- options?: ElasticSansUpdateOptionalParams
385
+ options?: ElasticSansUpdateOptionalParams,
388
386
  ): Promise<ElasticSansUpdateResponse> {
389
387
  const poller = await this.beginUpdate(
390
388
  resourceGroupName,
391
389
  elasticSanName,
392
390
  parameters,
393
- options
391
+ options,
394
392
  );
395
393
  return poller.pollUntilDone();
396
394
  }
@@ -404,25 +402,24 @@ export class ElasticSansImpl implements ElasticSans {
404
402
  async beginDelete(
405
403
  resourceGroupName: string,
406
404
  elasticSanName: string,
407
- options?: ElasticSansDeleteOptionalParams
405
+ options?: ElasticSansDeleteOptionalParams,
408
406
  ): Promise<SimplePollerLike<OperationState<void>, void>> {
409
407
  const directSendOperation = async (
410
408
  args: coreClient.OperationArguments,
411
- spec: coreClient.OperationSpec
409
+ spec: coreClient.OperationSpec,
412
410
  ): Promise<void> => {
413
411
  return this.client.sendOperationRequest(args, spec);
414
412
  };
415
413
  const sendOperationFn = async (
416
414
  args: coreClient.OperationArguments,
417
- spec: coreClient.OperationSpec
415
+ spec: coreClient.OperationSpec,
418
416
  ) => {
419
- let currentRawResponse:
420
- | coreClient.FullOperationResponse
421
- | undefined = undefined;
417
+ let currentRawResponse: coreClient.FullOperationResponse | undefined =
418
+ undefined;
422
419
  const providedCallback = args.options?.onResponse;
423
420
  const callback: coreClient.RawResponseCallback = (
424
421
  rawResponse: coreClient.FullOperationResponse,
425
- flatResponse: unknown
422
+ flatResponse: unknown,
426
423
  ) => {
427
424
  currentRawResponse = rawResponse;
428
425
  providedCallback?.(rawResponse, flatResponse);
@@ -431,8 +428,8 @@ export class ElasticSansImpl implements ElasticSans {
431
428
  ...args,
432
429
  options: {
433
430
  ...args.options,
434
- onResponse: callback
435
- }
431
+ onResponse: callback,
432
+ },
436
433
  };
437
434
  const flatResponse = await directSendOperation(updatedArgs, spec);
438
435
  return {
@@ -440,20 +437,20 @@ export class ElasticSansImpl implements ElasticSans {
440
437
  rawResponse: {
441
438
  statusCode: currentRawResponse!.status,
442
439
  body: currentRawResponse!.parsedBody,
443
- headers: currentRawResponse!.headers.toJSON()
444
- }
440
+ headers: currentRawResponse!.headers.toJSON(),
441
+ },
445
442
  };
446
443
  };
447
444
 
448
445
  const lro = createLroSpec({
449
446
  sendOperationFn,
450
447
  args: { resourceGroupName, elasticSanName, options },
451
- spec: deleteOperationSpec
448
+ spec: deleteOperationSpec,
452
449
  });
453
450
  const poller = await createHttpPoller<void, OperationState<void>>(lro, {
454
451
  restoreFrom: options?.resumeFrom,
455
452
  intervalInMs: options?.updateIntervalInMs,
456
- resourceLocationConfig: "location"
453
+ resourceLocationConfig: "location",
457
454
  });
458
455
  await poller.poll();
459
456
  return poller;
@@ -468,12 +465,12 @@ export class ElasticSansImpl implements ElasticSans {
468
465
  async beginDeleteAndWait(
469
466
  resourceGroupName: string,
470
467
  elasticSanName: string,
471
- options?: ElasticSansDeleteOptionalParams
468
+ options?: ElasticSansDeleteOptionalParams,
472
469
  ): Promise<void> {
473
470
  const poller = await this.beginDelete(
474
471
  resourceGroupName,
475
472
  elasticSanName,
476
- options
473
+ options,
477
474
  );
478
475
  return poller.pollUntilDone();
479
476
  }
@@ -487,11 +484,11 @@ export class ElasticSansImpl implements ElasticSans {
487
484
  get(
488
485
  resourceGroupName: string,
489
486
  elasticSanName: string,
490
- options?: ElasticSansGetOptionalParams
487
+ options?: ElasticSansGetOptionalParams,
491
488
  ): Promise<ElasticSansGetResponse> {
492
489
  return this.client.sendOperationRequest(
493
490
  { resourceGroupName, elasticSanName, options },
494
- getOperationSpec
491
+ getOperationSpec,
495
492
  );
496
493
  }
497
494
 
@@ -502,11 +499,11 @@ export class ElasticSansImpl implements ElasticSans {
502
499
  */
503
500
  private _listBySubscriptionNext(
504
501
  nextLink: string,
505
- options?: ElasticSansListBySubscriptionNextOptionalParams
502
+ options?: ElasticSansListBySubscriptionNextOptionalParams,
506
503
  ): Promise<ElasticSansListBySubscriptionNextResponse> {
507
504
  return this.client.sendOperationRequest(
508
505
  { nextLink, options },
509
- listBySubscriptionNextOperationSpec
506
+ listBySubscriptionNextOperationSpec,
510
507
  );
511
508
  }
512
509
 
@@ -519,11 +516,11 @@ export class ElasticSansImpl implements ElasticSans {
519
516
  private _listByResourceGroupNext(
520
517
  resourceGroupName: string,
521
518
  nextLink: string,
522
- options?: ElasticSansListByResourceGroupNextOptionalParams
519
+ options?: ElasticSansListByResourceGroupNextOptionalParams,
523
520
  ): Promise<ElasticSansListByResourceGroupNextResponse> {
524
521
  return this.client.sendOperationRequest(
525
522
  { resourceGroupName, nextLink, options },
526
- listByResourceGroupNextOperationSpec
523
+ listByResourceGroupNextOperationSpec,
527
524
  );
528
525
  }
529
526
  }
@@ -531,63 +528,60 @@ export class ElasticSansImpl implements ElasticSans {
531
528
  const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
532
529
 
533
530
  const listBySubscriptionOperationSpec: coreClient.OperationSpec = {
534
- path:
535
- "/subscriptions/{subscriptionId}/providers/Microsoft.ElasticSan/elasticSans",
531
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.ElasticSan/elasticSans",
536
532
  httpMethod: "GET",
537
533
  responses: {
538
534
  200: {
539
- bodyMapper: Mappers.ElasticSanList
535
+ bodyMapper: Mappers.ElasticSanList,
540
536
  },
541
537
  default: {
542
- bodyMapper: Mappers.ErrorResponse
543
- }
538
+ bodyMapper: Mappers.ErrorResponse,
539
+ },
544
540
  },
545
541
  queryParameters: [Parameters.apiVersion],
546
542
  urlParameters: [Parameters.$host, Parameters.subscriptionId],
547
543
  headerParameters: [Parameters.accept],
548
- serializer
544
+ serializer,
549
545
  };
550
546
  const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
551
- path:
552
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans",
547
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans",
553
548
  httpMethod: "GET",
554
549
  responses: {
555
550
  200: {
556
- bodyMapper: Mappers.ElasticSanList
551
+ bodyMapper: Mappers.ElasticSanList,
557
552
  },
558
553
  default: {
559
- bodyMapper: Mappers.ErrorResponse
560
- }
554
+ bodyMapper: Mappers.ErrorResponse,
555
+ },
561
556
  },
562
557
  queryParameters: [Parameters.apiVersion],
563
558
  urlParameters: [
564
559
  Parameters.$host,
565
560
  Parameters.subscriptionId,
566
- Parameters.resourceGroupName
561
+ Parameters.resourceGroupName,
567
562
  ],
568
563
  headerParameters: [Parameters.accept],
569
- serializer
564
+ serializer,
570
565
  };
571
566
  const createOperationSpec: coreClient.OperationSpec = {
572
- path:
573
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}",
567
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}",
574
568
  httpMethod: "PUT",
575
569
  responses: {
576
570
  200: {
577
- bodyMapper: Mappers.ElasticSan
571
+ bodyMapper: Mappers.ElasticSan,
578
572
  },
579
573
  201: {
580
- bodyMapper: Mappers.ElasticSan
574
+ bodyMapper: Mappers.ElasticSan,
581
575
  },
582
576
  202: {
583
- bodyMapper: Mappers.ElasticSan
577
+ bodyMapper: Mappers.ElasticSan,
584
578
  },
585
579
  204: {
586
- bodyMapper: Mappers.ElasticSan
580
+ bodyMapper: Mappers.ElasticSan,
587
581
  },
588
582
  default: {
589
- bodyMapper: Mappers.ErrorResponse
590
- }
583
+ bodyMapper: Mappers.ErrorResponse,
584
+ },
591
585
  },
592
586
  requestBody: Parameters.parameters,
593
587
  queryParameters: [Parameters.apiVersion],
@@ -595,32 +589,31 @@ const createOperationSpec: coreClient.OperationSpec = {
595
589
  Parameters.$host,
596
590
  Parameters.subscriptionId,
597
591
  Parameters.resourceGroupName,
598
- Parameters.elasticSanName
592
+ Parameters.elasticSanName,
599
593
  ],
600
594
  headerParameters: [Parameters.accept, Parameters.contentType],
601
595
  mediaType: "json",
602
- serializer
596
+ serializer,
603
597
  };
604
598
  const updateOperationSpec: coreClient.OperationSpec = {
605
- path:
606
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}",
599
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}",
607
600
  httpMethod: "PATCH",
608
601
  responses: {
609
602
  200: {
610
- bodyMapper: Mappers.ElasticSan
603
+ bodyMapper: Mappers.ElasticSan,
611
604
  },
612
605
  201: {
613
- bodyMapper: Mappers.ElasticSan
606
+ bodyMapper: Mappers.ElasticSan,
614
607
  },
615
608
  202: {
616
- bodyMapper: Mappers.ElasticSan
609
+ bodyMapper: Mappers.ElasticSan,
617
610
  },
618
611
  204: {
619
- bodyMapper: Mappers.ElasticSan
612
+ bodyMapper: Mappers.ElasticSan,
620
613
  },
621
614
  default: {
622
- bodyMapper: Mappers.ErrorResponse
623
- }
615
+ bodyMapper: Mappers.ErrorResponse,
616
+ },
624
617
  },
625
618
  requestBody: Parameters.parameters1,
626
619
  queryParameters: [Parameters.apiVersion],
@@ -628,15 +621,14 @@ const updateOperationSpec: coreClient.OperationSpec = {
628
621
  Parameters.$host,
629
622
  Parameters.subscriptionId,
630
623
  Parameters.resourceGroupName,
631
- Parameters.elasticSanName
624
+ Parameters.elasticSanName,
632
625
  ],
633
626
  headerParameters: [Parameters.accept, Parameters.contentType],
634
627
  mediaType: "json",
635
- serializer
628
+ serializer,
636
629
  };
637
630
  const deleteOperationSpec: coreClient.OperationSpec = {
638
- path:
639
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}",
631
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}",
640
632
  httpMethod: "DELETE",
641
633
  responses: {
642
634
  200: {},
@@ -644,77 +636,76 @@ const deleteOperationSpec: coreClient.OperationSpec = {
644
636
  202: {},
645
637
  204: {},
646
638
  default: {
647
- bodyMapper: Mappers.ErrorResponse
648
- }
639
+ bodyMapper: Mappers.ErrorResponse,
640
+ },
649
641
  },
650
642
  queryParameters: [Parameters.apiVersion],
651
643
  urlParameters: [
652
644
  Parameters.$host,
653
645
  Parameters.subscriptionId,
654
646
  Parameters.resourceGroupName,
655
- Parameters.elasticSanName
647
+ Parameters.elasticSanName,
656
648
  ],
657
649
  headerParameters: [Parameters.accept],
658
- serializer
650
+ serializer,
659
651
  };
660
652
  const getOperationSpec: coreClient.OperationSpec = {
661
- path:
662
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}",
653
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}",
663
654
  httpMethod: "GET",
664
655
  responses: {
665
656
  200: {
666
- bodyMapper: Mappers.ElasticSan
657
+ bodyMapper: Mappers.ElasticSan,
667
658
  },
668
659
  default: {
669
- bodyMapper: Mappers.ErrorResponse
670
- }
660
+ bodyMapper: Mappers.ErrorResponse,
661
+ },
671
662
  },
672
663
  queryParameters: [Parameters.apiVersion],
673
664
  urlParameters: [
674
665
  Parameters.$host,
675
666
  Parameters.subscriptionId,
676
667
  Parameters.resourceGroupName,
677
- Parameters.elasticSanName
668
+ Parameters.elasticSanName,
678
669
  ],
679
670
  headerParameters: [Parameters.accept],
680
- serializer
671
+ serializer,
681
672
  };
682
673
  const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {
683
674
  path: "{nextLink}",
684
675
  httpMethod: "GET",
685
676
  responses: {
686
677
  200: {
687
- bodyMapper: Mappers.ElasticSanList
678
+ bodyMapper: Mappers.ElasticSanList,
688
679
  },
689
680
  default: {
690
- bodyMapper: Mappers.ErrorResponse
691
- }
681
+ bodyMapper: Mappers.ErrorResponse,
682
+ },
692
683
  },
693
684
  urlParameters: [
694
685
  Parameters.$host,
695
686
  Parameters.subscriptionId,
696
- Parameters.nextLink
687
+ Parameters.nextLink,
697
688
  ],
698
689
  headerParameters: [Parameters.accept],
699
- serializer
690
+ serializer,
700
691
  };
701
692
  const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
702
693
  path: "{nextLink}",
703
694
  httpMethod: "GET",
704
695
  responses: {
705
696
  200: {
706
- bodyMapper: Mappers.ElasticSanList
697
+ bodyMapper: Mappers.ElasticSanList,
707
698
  },
708
699
  default: {
709
- bodyMapper: Mappers.ErrorResponse
710
- }
700
+ bodyMapper: Mappers.ErrorResponse,
701
+ },
711
702
  },
712
703
  urlParameters: [
713
704
  Parameters.$host,
714
705
  Parameters.subscriptionId,
715
706
  Parameters.resourceGroupName,
716
- Parameters.nextLink
707
+ Parameters.nextLink,
717
708
  ],
718
709
  headerParameters: [Parameters.accept],
719
- serializer
710
+ serializer,
720
711
  };