@azure/arm-elasticsan 1.0.0-alpha.20230719.1 → 1.0.0-alpha.20230725.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (154) hide show
  1. package/CHANGELOG.md +62 -8
  2. package/dist/index.js +1035 -284
  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 +16 -15
  7. package/dist-esm/samples-dev/elasticSansCreateSample.js.map +1 -1
  8. package/dist-esm/samples-dev/elasticSansDeleteSample.js +8 -8
  9. package/dist-esm/samples-dev/elasticSansDeleteSample.js.map +1 -1
  10. package/dist-esm/samples-dev/elasticSansGetSample.js +8 -8
  11. package/dist-esm/samples-dev/elasticSansGetSample.js.map +1 -1
  12. package/dist-esm/samples-dev/elasticSansListByResourceGroupSample.js +6 -6
  13. package/dist-esm/samples-dev/elasticSansListByResourceGroupSample.js.map +1 -1
  14. package/dist-esm/samples-dev/elasticSansListBySubscriptionSample.js +4 -4
  15. package/dist-esm/samples-dev/elasticSansListBySubscriptionSample.js.map +1 -1
  16. package/dist-esm/samples-dev/elasticSansUpdateSample.js +11 -11
  17. package/dist-esm/samples-dev/elasticSansUpdateSample.js.map +1 -1
  18. package/dist-esm/samples-dev/operationsListSample.js +2 -2
  19. package/dist-esm/samples-dev/privateEndpointConnectionsCreateSample.d.ts +2 -0
  20. package/dist-esm/samples-dev/privateEndpointConnectionsCreateSample.d.ts.map +1 -0
  21. package/dist-esm/samples-dev/privateEndpointConnectionsCreateSample.js +74 -0
  22. package/dist-esm/samples-dev/privateEndpointConnectionsCreateSample.js.map +1 -0
  23. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.d.ts +2 -0
  24. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.d.ts.map +1 -0
  25. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +58 -0
  26. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js.map +1 -0
  27. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts +2 -0
  28. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts.map +1 -0
  29. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +58 -0
  30. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js.map +1 -0
  31. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.d.ts +2 -0
  32. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.d.ts.map +1 -0
  33. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js +98 -0
  34. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js.map +1 -0
  35. package/dist-esm/samples-dev/privateLinkResourcesListByElasticSanSample.d.ts +2 -0
  36. package/dist-esm/samples-dev/privateLinkResourcesListByElasticSanSample.d.ts.map +1 -0
  37. package/dist-esm/samples-dev/privateLinkResourcesListByElasticSanSample.js +56 -0
  38. package/dist-esm/samples-dev/privateLinkResourcesListByElasticSanSample.js.map +1 -0
  39. package/dist-esm/samples-dev/skusListSample.js +5 -5
  40. package/dist-esm/samples-dev/skusListSample.js.map +1 -1
  41. package/dist-esm/samples-dev/volumeGroupsCreateSample.js +15 -13
  42. package/dist-esm/samples-dev/volumeGroupsCreateSample.js.map +1 -1
  43. package/dist-esm/samples-dev/volumeGroupsDeleteSample.js +10 -10
  44. package/dist-esm/samples-dev/volumeGroupsDeleteSample.js.map +1 -1
  45. package/dist-esm/samples-dev/volumeGroupsGetSample.js +10 -10
  46. package/dist-esm/samples-dev/volumeGroupsGetSample.js.map +1 -1
  47. package/dist-esm/samples-dev/volumeGroupsListByElasticSanSample.js +8 -8
  48. package/dist-esm/samples-dev/volumeGroupsListByElasticSanSample.js.map +1 -1
  49. package/dist-esm/samples-dev/volumeGroupsUpdateSample.js +15 -13
  50. package/dist-esm/samples-dev/volumeGroupsUpdateSample.js.map +1 -1
  51. package/dist-esm/samples-dev/volumesCreateSample.js +15 -16
  52. package/dist-esm/samples-dev/volumesCreateSample.js.map +1 -1
  53. package/dist-esm/samples-dev/volumesDeleteSample.js +12 -12
  54. package/dist-esm/samples-dev/volumesDeleteSample.js.map +1 -1
  55. package/dist-esm/samples-dev/volumesGetSample.js +12 -12
  56. package/dist-esm/samples-dev/volumesGetSample.js.map +1 -1
  57. package/dist-esm/samples-dev/volumesListByVolumeGroupSample.js +10 -10
  58. package/dist-esm/samples-dev/volumesListByVolumeGroupSample.js.map +1 -1
  59. package/dist-esm/samples-dev/volumesUpdateSample.js +13 -16
  60. package/dist-esm/samples-dev/volumesUpdateSample.js.map +1 -1
  61. package/dist-esm/src/elasticSanManagement.d.ts +3 -1
  62. package/dist-esm/src/elasticSanManagement.d.ts.map +1 -1
  63. package/dist-esm/src/elasticSanManagement.js +4 -2
  64. package/dist-esm/src/elasticSanManagement.js.map +1 -1
  65. package/dist-esm/src/lroImpl.d.ts +6 -11
  66. package/dist-esm/src/lroImpl.d.ts.map +1 -1
  67. package/dist-esm/src/lroImpl.js +12 -20
  68. package/dist-esm/src/lroImpl.js.map +1 -1
  69. package/dist-esm/src/models/index.d.ts +305 -98
  70. package/dist-esm/src/models/index.d.ts.map +1 -1
  71. package/dist-esm/src/models/index.js +28 -0
  72. package/dist-esm/src/models/index.js.map +1 -1
  73. package/dist-esm/src/models/mappers.d.ts +20 -6
  74. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  75. package/dist-esm/src/models/mappers.js +400 -112
  76. package/dist-esm/src/models/mappers.js.map +1 -1
  77. package/dist-esm/src/models/parameters.d.ts +2 -0
  78. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  79. package/dist-esm/src/models/parameters.js +16 -3
  80. package/dist-esm/src/models/parameters.js.map +1 -1
  81. package/dist-esm/src/operations/elasticSans.d.ts +4 -4
  82. package/dist-esm/src/operations/elasticSans.d.ts.map +1 -1
  83. package/dist-esm/src/operations/elasticSans.js +37 -25
  84. package/dist-esm/src/operations/elasticSans.js.map +1 -1
  85. package/dist-esm/src/operations/index.d.ts +2 -0
  86. package/dist-esm/src/operations/index.d.ts.map +1 -1
  87. package/dist-esm/src/operations/index.js +2 -0
  88. package/dist-esm/src/operations/index.js.map +1 -1
  89. package/dist-esm/src/operations/operations.d.ts +2 -2
  90. package/dist-esm/src/operations/operations.d.ts.map +1 -1
  91. package/dist-esm/src/operations/operations.js +2 -2
  92. package/dist-esm/src/operations/operations.js.map +1 -1
  93. package/dist-esm/src/operations/privateEndpointConnections.d.ts +73 -0
  94. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -0
  95. package/dist-esm/src/operations/privateEndpointConnections.js +334 -0
  96. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -0
  97. package/dist-esm/src/operations/privateLinkResources.d.ts +20 -0
  98. package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -0
  99. package/dist-esm/src/operations/privateLinkResources.js +53 -0
  100. package/dist-esm/src/operations/privateLinkResources.js.map +1 -0
  101. package/dist-esm/src/operations/skus.js +1 -1
  102. package/dist-esm/src/operations/skus.js.map +1 -1
  103. package/dist-esm/src/operations/volumeGroups.d.ts +4 -4
  104. package/dist-esm/src/operations/volumeGroups.d.ts.map +1 -1
  105. package/dist-esm/src/operations/volumeGroups.js +47 -35
  106. package/dist-esm/src/operations/volumeGroups.js.map +1 -1
  107. package/dist-esm/src/operations/volumes.d.ts +4 -4
  108. package/dist-esm/src/operations/volumes.d.ts.map +1 -1
  109. package/dist-esm/src/operations/volumes.js +55 -43
  110. package/dist-esm/src/operations/volumes.js.map +1 -1
  111. package/dist-esm/src/operationsInterfaces/elasticSans.d.ts +4 -4
  112. package/dist-esm/src/operationsInterfaces/elasticSans.d.ts.map +1 -1
  113. package/dist-esm/src/operationsInterfaces/index.d.ts +2 -0
  114. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
  115. package/dist-esm/src/operationsInterfaces/index.js +2 -0
  116. package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
  117. package/dist-esm/src/operationsInterfaces/operations.d.ts +2 -2
  118. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -1
  119. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +56 -0
  120. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  121. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js +9 -0
  122. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  123. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts +12 -0
  124. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
  125. package/dist-esm/src/operationsInterfaces/privateLinkResources.js +9 -0
  126. package/dist-esm/src/operationsInterfaces/privateLinkResources.js.map +1 -0
  127. package/dist-esm/src/operationsInterfaces/volumeGroups.d.ts +4 -4
  128. package/dist-esm/src/operationsInterfaces/volumeGroups.d.ts.map +1 -1
  129. package/dist-esm/src/operationsInterfaces/volumes.d.ts +4 -4
  130. package/dist-esm/src/operationsInterfaces/volumes.d.ts.map +1 -1
  131. package/package.json +4 -4
  132. package/review/arm-elasticsan.api.md +226 -60
  133. package/src/elasticSanManagement.ts +11 -3
  134. package/src/lroImpl.ts +31 -23
  135. package/src/models/index.ts +334 -93
  136. package/src/models/mappers.ts +429 -114
  137. package/src/models/parameters.ts +19 -3
  138. package/src/operations/elasticSans.ts +52 -42
  139. package/src/operations/index.ts +2 -0
  140. package/src/operations/operations.ts +6 -6
  141. package/src/operations/privateEndpointConnections.ts +450 -0
  142. package/src/operations/privateLinkResources.ts +72 -0
  143. package/src/operations/skus.ts +1 -1
  144. package/src/operations/volumeGroups.ts +50 -40
  145. package/src/operations/volumes.ts +54 -38
  146. package/src/operationsInterfaces/elasticSans.ts +6 -6
  147. package/src/operationsInterfaces/index.ts +2 -0
  148. package/src/operationsInterfaces/operations.ts +2 -2
  149. package/src/operationsInterfaces/privateEndpointConnections.ts +109 -0
  150. package/src/operationsInterfaces/privateLinkResources.ts +27 -0
  151. package/src/operationsInterfaces/volumeGroups.ts +6 -6
  152. package/src/operationsInterfaces/volumes.ts +10 -4
  153. package/types/arm-elasticsan.d.ts +400 -98
  154. package/types/tsdoc-metadata.json +1 -1
@@ -17,7 +17,8 @@ import {
17
17
  VolumeGroup as VolumeGroupMapper,
18
18
  VolumeGroupUpdate as VolumeGroupUpdateMapper,
19
19
  Volume as VolumeMapper,
20
- VolumeUpdate as VolumeUpdateMapper
20
+ VolumeUpdate as VolumeUpdateMapper,
21
+ PrivateEndpointConnection as PrivateEndpointConnectionMapper
21
22
  } from "../models/mappers";
22
23
 
23
24
  export const accept: OperationParameter = {
@@ -47,7 +48,7 @@ export const $host: OperationURLParameter = {
47
48
  export const apiVersion: OperationQueryParameter = {
48
49
  parameterPath: "apiVersion",
49
50
  mapper: {
50
- defaultValue: "2021-11-20-preview",
51
+ defaultValue: "2022-12-01-preview",
51
52
  isConstant: true,
52
53
  serializedName: "api-version",
53
54
  type: {
@@ -84,7 +85,6 @@ export const resourceGroupName: OperationURLParameter = {
84
85
  parameterPath: "resourceGroupName",
85
86
  mapper: {
86
87
  constraints: {
87
- Pattern: new RegExp("^[-\\w\\._]*[0-9A-Za-z]$"),
88
88
  MaxLength: 90,
89
89
  MinLength: 1
90
90
  },
@@ -197,3 +197,19 @@ export const parameters5: OperationParameter = {
197
197
  parameterPath: "parameters",
198
198
  mapper: VolumeUpdateMapper
199
199
  };
200
+
201
+ export const parameters6: OperationParameter = {
202
+ parameterPath: "parameters",
203
+ mapper: PrivateEndpointConnectionMapper
204
+ };
205
+
206
+ export const privateEndpointConnectionName: OperationURLParameter = {
207
+ parameterPath: "privateEndpointConnectionName",
208
+ mapper: {
209
+ serializedName: "privateEndpointConnectionName",
210
+ required: true,
211
+ type: {
212
+ name: "String"
213
+ }
214
+ }
215
+ };
@@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client";
13
13
  import * as Mappers from "../models/mappers";
14
14
  import * as Parameters from "../models/parameters";
15
15
  import { ElasticSanManagement } from "../elasticSanManagement";
16
- import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
17
- import { LroImpl } from "../lroImpl";
16
+ import {
17
+ SimplePollerLike,
18
+ OperationState,
19
+ createHttpPoller
20
+ } from "@azure/core-lro";
21
+ import { createLroSpec } from "../lroImpl";
18
22
  import {
19
23
  ElasticSan,
20
24
  ElasticSansListBySubscriptionNextOptionalParams,
@@ -212,8 +216,8 @@ export class ElasticSansImpl implements ElasticSans {
212
216
  parameters: ElasticSan,
213
217
  options?: ElasticSansCreateOptionalParams
214
218
  ): Promise<
215
- PollerLike<
216
- PollOperationState<ElasticSansCreateResponse>,
219
+ SimplePollerLike<
220
+ OperationState<ElasticSansCreateResponse>,
217
221
  ElasticSansCreateResponse
218
222
  >
219
223
  > {
@@ -223,7 +227,7 @@ export class ElasticSansImpl implements ElasticSans {
223
227
  ): Promise<ElasticSansCreateResponse> => {
224
228
  return this.client.sendOperationRequest(args, spec);
225
229
  };
226
- const sendOperation = async (
230
+ const sendOperationFn = async (
227
231
  args: coreClient.OperationArguments,
228
232
  spec: coreClient.OperationSpec
229
233
  ) => {
@@ -256,15 +260,18 @@ export class ElasticSansImpl implements ElasticSans {
256
260
  };
257
261
  };
258
262
 
259
- const lro = new LroImpl(
260
- sendOperation,
261
- { resourceGroupName, elasticSanName, parameters, options },
262
- createOperationSpec
263
- );
264
- const poller = new LroEngine(lro, {
265
- resumeFrom: options?.resumeFrom,
263
+ const lro = createLroSpec({
264
+ sendOperationFn,
265
+ args: { resourceGroupName, elasticSanName, parameters, options },
266
+ spec: createOperationSpec
267
+ });
268
+ const poller = await createHttpPoller<
269
+ ElasticSansCreateResponse,
270
+ OperationState<ElasticSansCreateResponse>
271
+ >(lro, {
272
+ restoreFrom: options?.resumeFrom,
266
273
  intervalInMs: options?.updateIntervalInMs,
267
- lroResourceLocationConfig: "azure-async-operation"
274
+ resourceLocationConfig: "location"
268
275
  });
269
276
  await poller.poll();
270
277
  return poller;
@@ -305,8 +312,8 @@ export class ElasticSansImpl implements ElasticSans {
305
312
  parameters: ElasticSanUpdate,
306
313
  options?: ElasticSansUpdateOptionalParams
307
314
  ): Promise<
308
- PollerLike<
309
- PollOperationState<ElasticSansUpdateResponse>,
315
+ SimplePollerLike<
316
+ OperationState<ElasticSansUpdateResponse>,
310
317
  ElasticSansUpdateResponse
311
318
  >
312
319
  > {
@@ -316,7 +323,7 @@ export class ElasticSansImpl implements ElasticSans {
316
323
  ): Promise<ElasticSansUpdateResponse> => {
317
324
  return this.client.sendOperationRequest(args, spec);
318
325
  };
319
- const sendOperation = async (
326
+ const sendOperationFn = async (
320
327
  args: coreClient.OperationArguments,
321
328
  spec: coreClient.OperationSpec
322
329
  ) => {
@@ -349,15 +356,18 @@ export class ElasticSansImpl implements ElasticSans {
349
356
  };
350
357
  };
351
358
 
352
- const lro = new LroImpl(
353
- sendOperation,
354
- { resourceGroupName, elasticSanName, parameters, options },
355
- updateOperationSpec
356
- );
357
- const poller = new LroEngine(lro, {
358
- resumeFrom: options?.resumeFrom,
359
+ const lro = createLroSpec({
360
+ sendOperationFn,
361
+ args: { resourceGroupName, elasticSanName, parameters, options },
362
+ spec: updateOperationSpec
363
+ });
364
+ const poller = await createHttpPoller<
365
+ ElasticSansUpdateResponse,
366
+ OperationState<ElasticSansUpdateResponse>
367
+ >(lro, {
368
+ restoreFrom: options?.resumeFrom,
359
369
  intervalInMs: options?.updateIntervalInMs,
360
- lroResourceLocationConfig: "azure-async-operation"
370
+ resourceLocationConfig: "location"
361
371
  });
362
372
  await poller.poll();
363
373
  return poller;
@@ -395,14 +405,14 @@ export class ElasticSansImpl implements ElasticSans {
395
405
  resourceGroupName: string,
396
406
  elasticSanName: string,
397
407
  options?: ElasticSansDeleteOptionalParams
398
- ): Promise<PollerLike<PollOperationState<void>, void>> {
408
+ ): Promise<SimplePollerLike<OperationState<void>, void>> {
399
409
  const directSendOperation = async (
400
410
  args: coreClient.OperationArguments,
401
411
  spec: coreClient.OperationSpec
402
412
  ): Promise<void> => {
403
413
  return this.client.sendOperationRequest(args, spec);
404
414
  };
405
- const sendOperation = async (
415
+ const sendOperationFn = async (
406
416
  args: coreClient.OperationArguments,
407
417
  spec: coreClient.OperationSpec
408
418
  ) => {
@@ -435,15 +445,15 @@ export class ElasticSansImpl implements ElasticSans {
435
445
  };
436
446
  };
437
447
 
438
- const lro = new LroImpl(
439
- sendOperation,
440
- { resourceGroupName, elasticSanName, options },
441
- deleteOperationSpec
442
- );
443
- const poller = new LroEngine(lro, {
444
- resumeFrom: options?.resumeFrom,
448
+ const lro = createLroSpec({
449
+ sendOperationFn,
450
+ args: { resourceGroupName, elasticSanName, options },
451
+ spec: deleteOperationSpec
452
+ });
453
+ const poller = await createHttpPoller<void, OperationState<void>>(lro, {
454
+ restoreFrom: options?.resumeFrom,
445
455
  intervalInMs: options?.updateIntervalInMs,
446
- lroResourceLocationConfig: "azure-async-operation"
456
+ resourceLocationConfig: "location"
447
457
  });
448
458
  await poller.poll();
449
459
  return poller;
@@ -529,7 +539,7 @@ const listBySubscriptionOperationSpec: coreClient.OperationSpec = {
529
539
  bodyMapper: Mappers.ElasticSanList
530
540
  },
531
541
  default: {
532
- bodyMapper: Mappers.ErrorModel
542
+ bodyMapper: Mappers.ErrorResponse
533
543
  }
534
544
  },
535
545
  queryParameters: [Parameters.apiVersion],
@@ -546,7 +556,7 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
546
556
  bodyMapper: Mappers.ElasticSanList
547
557
  },
548
558
  default: {
549
- bodyMapper: Mappers.ErrorModel
559
+ bodyMapper: Mappers.ErrorResponse
550
560
  }
551
561
  },
552
562
  queryParameters: [Parameters.apiVersion],
@@ -576,7 +586,7 @@ const createOperationSpec: coreClient.OperationSpec = {
576
586
  bodyMapper: Mappers.ElasticSan
577
587
  },
578
588
  default: {
579
- bodyMapper: Mappers.ErrorModel
589
+ bodyMapper: Mappers.ErrorResponse
580
590
  }
581
591
  },
582
592
  requestBody: Parameters.parameters,
@@ -609,7 +619,7 @@ const updateOperationSpec: coreClient.OperationSpec = {
609
619
  bodyMapper: Mappers.ElasticSan
610
620
  },
611
621
  default: {
612
- bodyMapper: Mappers.ErrorModel
622
+ bodyMapper: Mappers.ErrorResponse
613
623
  }
614
624
  },
615
625
  requestBody: Parameters.parameters1,
@@ -634,7 +644,7 @@ const deleteOperationSpec: coreClient.OperationSpec = {
634
644
  202: {},
635
645
  204: {},
636
646
  default: {
637
- bodyMapper: Mappers.ErrorModel
647
+ bodyMapper: Mappers.ErrorResponse
638
648
  }
639
649
  },
640
650
  queryParameters: [Parameters.apiVersion],
@@ -656,7 +666,7 @@ const getOperationSpec: coreClient.OperationSpec = {
656
666
  bodyMapper: Mappers.ElasticSan
657
667
  },
658
668
  default: {
659
- bodyMapper: Mappers.ErrorModel
669
+ bodyMapper: Mappers.ErrorResponse
660
670
  }
661
671
  },
662
672
  queryParameters: [Parameters.apiVersion],
@@ -677,7 +687,7 @@ const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {
677
687
  bodyMapper: Mappers.ElasticSanList
678
688
  },
679
689
  default: {
680
- bodyMapper: Mappers.ErrorModel
690
+ bodyMapper: Mappers.ErrorResponse
681
691
  }
682
692
  },
683
693
  urlParameters: [
@@ -696,7 +706,7 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
696
706
  bodyMapper: Mappers.ElasticSanList
697
707
  },
698
708
  default: {
699
- bodyMapper: Mappers.ErrorModel
709
+ bodyMapper: Mappers.ErrorResponse
700
710
  }
701
711
  },
702
712
  urlParameters: [
@@ -11,3 +11,5 @@ export * from "./skus";
11
11
  export * from "./elasticSans";
12
12
  export * from "./volumeGroups";
13
13
  export * from "./volumes";
14
+ export * from "./privateEndpointConnections";
15
+ export * from "./privateLinkResources";
@@ -13,7 +13,7 @@ import * as Mappers from "../models/mappers";
13
13
  import * as Parameters from "../models/parameters";
14
14
  import { ElasticSanManagement } from "../elasticSanManagement";
15
15
  import {
16
- ElasticSanRPOperation,
16
+ Operation,
17
17
  OperationsListOptionalParams,
18
18
  OperationsListResponse
19
19
  } from "../models";
@@ -37,7 +37,7 @@ export class OperationsImpl implements Operations {
37
37
  */
38
38
  public list(
39
39
  options?: OperationsListOptionalParams
40
- ): PagedAsyncIterableIterator<ElasticSanRPOperation> {
40
+ ): PagedAsyncIterableIterator<Operation> {
41
41
  const iter = this.listPagingAll(options);
42
42
  return {
43
43
  next() {
@@ -58,7 +58,7 @@ export class OperationsImpl implements Operations {
58
58
  private async *listPagingPage(
59
59
  options?: OperationsListOptionalParams,
60
60
  _settings?: PageSettings
61
- ): AsyncIterableIterator<ElasticSanRPOperation[]> {
61
+ ): AsyncIterableIterator<Operation[]> {
62
62
  let result: OperationsListResponse;
63
63
  result = await this._list(options);
64
64
  yield result.value || [];
@@ -66,7 +66,7 @@ export class OperationsImpl implements Operations {
66
66
 
67
67
  private async *listPagingAll(
68
68
  options?: OperationsListOptionalParams
69
- ): AsyncIterableIterator<ElasticSanRPOperation> {
69
+ ): AsyncIterableIterator<Operation> {
70
70
  for await (const page of this.listPagingPage(options)) {
71
71
  yield* page;
72
72
  }
@@ -90,10 +90,10 @@ const listOperationSpec: coreClient.OperationSpec = {
90
90
  httpMethod: "GET",
91
91
  responses: {
92
92
  200: {
93
- bodyMapper: Mappers.ElasticSanOperationListResult
93
+ bodyMapper: Mappers.OperationListResult
94
94
  },
95
95
  default: {
96
- bodyMapper: Mappers.ErrorModel
96
+ bodyMapper: Mappers.ErrorResponse
97
97
  }
98
98
  },
99
99
  queryParameters: [Parameters.apiVersion],