@azure/arm-hdinsight 1.2.2-alpha.20230718.1 → 1.3.0-beta.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 (163) hide show
  1. package/CHANGELOG.md +6 -10
  2. package/README.md +1 -1
  3. package/dist/index.js +3489 -3399
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist-esm/samples-dev/applicationsCreateSample.js +1 -1
  8. package/dist-esm/samples-dev/applicationsDeleteSample.js +1 -1
  9. package/dist-esm/samples-dev/applicationsGetAzureAsyncOperationStatusSample.js +1 -1
  10. package/dist-esm/samples-dev/applicationsGetSample.js +2 -2
  11. package/dist-esm/samples-dev/applicationsListByClusterSample.js +1 -1
  12. package/dist-esm/samples-dev/clustersCreateSample.js +26 -13
  13. package/dist-esm/samples-dev/clustersCreateSample.js.map +1 -1
  14. package/dist-esm/samples-dev/clustersDeleteSample.js +1 -1
  15. package/dist-esm/samples-dev/clustersExecuteScriptActionsSample.js +1 -1
  16. package/dist-esm/samples-dev/clustersGetAzureAsyncOperationStatusSample.js +1 -1
  17. package/dist-esm/samples-dev/clustersGetGatewaySettingsSample.js +1 -1
  18. package/dist-esm/samples-dev/clustersGetSample.js +2 -2
  19. package/dist-esm/samples-dev/clustersListByResourceGroupSample.js +1 -1
  20. package/dist-esm/samples-dev/clustersListSample.js +1 -1
  21. package/dist-esm/samples-dev/clustersResizeSample.js +1 -1
  22. package/dist-esm/samples-dev/clustersRotateDiskEncryptionKeySample.js +1 -1
  23. package/dist-esm/samples-dev/clustersUpdateAutoScaleConfigurationSample.js +3 -3
  24. package/dist-esm/samples-dev/clustersUpdateGatewaySettingsSample.js +1 -1
  25. package/dist-esm/samples-dev/clustersUpdateIdentityCertificateSample.js +1 -1
  26. package/dist-esm/samples-dev/clustersUpdateSample.js +1 -1
  27. package/dist-esm/samples-dev/configurationsGetSample.js +1 -1
  28. package/dist-esm/samples-dev/configurationsListSample.js +1 -1
  29. package/dist-esm/samples-dev/configurationsUpdateSample.js +2 -2
  30. package/dist-esm/samples-dev/extensionsCreateSample.js +1 -1
  31. package/dist-esm/samples-dev/extensionsDeleteSample.js +1 -1
  32. package/dist-esm/samples-dev/extensionsDisableAzureMonitorSample.js +1 -1
  33. package/dist-esm/samples-dev/extensionsDisableMonitoringSample.js +1 -1
  34. package/dist-esm/samples-dev/extensionsEnableAzureMonitorSample.js +1 -1
  35. package/dist-esm/samples-dev/extensionsEnableMonitoringSample.js +1 -1
  36. package/dist-esm/samples-dev/extensionsGetAzureAsyncOperationStatusSample.js +1 -1
  37. package/dist-esm/samples-dev/extensionsGetAzureMonitorStatusSample.js +1 -1
  38. package/dist-esm/samples-dev/extensionsGetMonitoringStatusSample.js +1 -1
  39. package/dist-esm/samples-dev/extensionsGetSample.js +1 -1
  40. package/dist-esm/samples-dev/locationsCheckNameAvailabilitySample.js +1 -1
  41. package/dist-esm/samples-dev/locationsGetAzureAsyncOperationStatusSample.js +1 -1
  42. package/dist-esm/samples-dev/locationsGetCapabilitiesSample.js +1 -1
  43. package/dist-esm/samples-dev/locationsListBillingSpecsSample.js +1 -1
  44. package/dist-esm/samples-dev/locationsListUsagesSample.js +1 -1
  45. package/dist-esm/samples-dev/locationsValidateClusterCreateRequestSample.js +2 -1
  46. package/dist-esm/samples-dev/locationsValidateClusterCreateRequestSample.js.map +1 -1
  47. package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
  48. package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
  49. package/dist-esm/samples-dev/operationsListSample.js +58 -0
  50. package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
  51. package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js +1 -1
  52. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +1 -1
  53. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +1 -1
  54. package/dist-esm/samples-dev/privateEndpointConnectionsListByClusterSample.js +1 -1
  55. package/dist-esm/samples-dev/privateLinkResourcesGetSample.js +1 -1
  56. package/dist-esm/samples-dev/privateLinkResourcesListByClusterSample.js +1 -1
  57. package/dist-esm/samples-dev/scriptActionsDeleteSample.js +1 -1
  58. package/dist-esm/samples-dev/scriptActionsGetExecutionAsyncOperationStatusSample.js +1 -1
  59. package/dist-esm/samples-dev/scriptActionsGetExecutionDetailSample.js +1 -1
  60. package/dist-esm/samples-dev/scriptActionsListByClusterSample.js +1 -1
  61. package/dist-esm/samples-dev/scriptExecutionHistoryListByClusterSample.js +1 -1
  62. package/dist-esm/samples-dev/scriptExecutionHistoryPromoteSample.js +1 -1
  63. package/dist-esm/samples-dev/virtualMachinesGetAsyncOperationStatusSample.js +1 -1
  64. package/dist-esm/samples-dev/virtualMachinesListHostsSample.js +1 -1
  65. package/dist-esm/samples-dev/virtualMachinesRestartHostsSample.js +1 -1
  66. package/dist-esm/src/hDInsightManagementClient.d.ts +6 -6
  67. package/dist-esm/src/hDInsightManagementClient.d.ts.map +1 -1
  68. package/dist-esm/src/hDInsightManagementClient.js +8 -8
  69. package/dist-esm/src/hDInsightManagementClient.js.map +1 -1
  70. package/dist-esm/src/lroImpl.d.ts +6 -11
  71. package/dist-esm/src/lroImpl.d.ts.map +1 -1
  72. package/dist-esm/src/lroImpl.js +12 -20
  73. package/dist-esm/src/lroImpl.js.map +1 -1
  74. package/dist-esm/src/models/index.d.ts +696 -694
  75. package/dist-esm/src/models/index.d.ts.map +1 -1
  76. package/dist-esm/src/models/index.js +62 -62
  77. package/dist-esm/src/models/index.js.map +1 -1
  78. package/dist-esm/src/models/mappers.d.ts +35 -35
  79. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  80. package/dist-esm/src/models/mappers.js +1451 -1445
  81. package/dist-esm/src/models/mappers.js.map +1 -1
  82. package/dist-esm/src/models/parameters.d.ts +12 -12
  83. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  84. package/dist-esm/src/models/parameters.js +91 -91
  85. package/dist-esm/src/models/parameters.js.map +1 -1
  86. package/dist-esm/src/operations/applications.d.ts +3 -3
  87. package/dist-esm/src/operations/applications.d.ts.map +1 -1
  88. package/dist-esm/src/operations/applications.js +30 -16
  89. package/dist-esm/src/operations/applications.js.map +1 -1
  90. package/dist-esm/src/operations/clusters.d.ts +9 -9
  91. package/dist-esm/src/operations/clusters.d.ts.map +1 -1
  92. package/dist-esm/src/operations/clusters.js +90 -58
  93. package/dist-esm/src/operations/clusters.js.map +1 -1
  94. package/dist-esm/src/operations/configurations.d.ts +2 -2
  95. package/dist-esm/src/operations/configurations.d.ts.map +1 -1
  96. package/dist-esm/src/operations/configurations.js +19 -15
  97. package/dist-esm/src/operations/configurations.js.map +1 -1
  98. package/dist-esm/src/operations/extensions.d.ts +7 -7
  99. package/dist-esm/src/operations/extensions.d.ts.map +1 -1
  100. package/dist-esm/src/operations/extensions.js +68 -38
  101. package/dist-esm/src/operations/extensions.js.map +1 -1
  102. package/dist-esm/src/operations/index.d.ts +5 -5
  103. package/dist-esm/src/operations/index.d.ts.map +1 -1
  104. package/dist-esm/src/operations/index.js +5 -5
  105. package/dist-esm/src/operations/index.js.map +1 -1
  106. package/dist-esm/src/operations/locations.js +4 -4
  107. package/dist-esm/src/operations/locations.js.map +1 -1
  108. package/dist-esm/src/operations/privateEndpointConnections.d.ts +3 -3
  109. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
  110. package/dist-esm/src/operations/privateEndpointConnections.js +32 -24
  111. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
  112. package/dist-esm/src/operations/virtualMachines.d.ts +2 -2
  113. package/dist-esm/src/operations/virtualMachines.d.ts.map +1 -1
  114. package/dist-esm/src/operations/virtualMachines.js +12 -8
  115. package/dist-esm/src/operations/virtualMachines.js.map +1 -1
  116. package/dist-esm/src/operationsInterfaces/applications.d.ts +3 -3
  117. package/dist-esm/src/operationsInterfaces/applications.d.ts.map +1 -1
  118. package/dist-esm/src/operationsInterfaces/clusters.d.ts +9 -9
  119. package/dist-esm/src/operationsInterfaces/clusters.d.ts.map +1 -1
  120. package/dist-esm/src/operationsInterfaces/configurations.d.ts +2 -2
  121. package/dist-esm/src/operationsInterfaces/configurations.d.ts.map +1 -1
  122. package/dist-esm/src/operationsInterfaces/extensions.d.ts +7 -7
  123. package/dist-esm/src/operationsInterfaces/extensions.d.ts.map +1 -1
  124. package/dist-esm/src/operationsInterfaces/index.d.ts +5 -5
  125. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
  126. package/dist-esm/src/operationsInterfaces/index.js +5 -5
  127. package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
  128. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +3 -3
  129. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -1
  130. package/dist-esm/src/operationsInterfaces/virtualMachines.d.ts +2 -2
  131. package/dist-esm/src/operationsInterfaces/virtualMachines.d.ts.map +1 -1
  132. package/dist-esm/test/hdinsights_operations_test.spec.d.ts +4 -0
  133. package/dist-esm/test/hdinsights_operations_test.spec.d.ts.map +1 -0
  134. package/dist-esm/test/hdinsights_operations_test.spec.js +86 -0
  135. package/dist-esm/test/hdinsights_operations_test.spec.js.map +1 -0
  136. package/package.json +7 -7
  137. package/review/arm-hdinsight.api.md +23 -22
  138. package/src/hDInsightManagementClient.ts +24 -24
  139. package/src/lroImpl.ts +31 -23
  140. package/src/models/index.ts +838 -836
  141. package/src/models/mappers.ts +1559 -1553
  142. package/src/models/parameters.ts +101 -101
  143. package/src/operations/applications.ts +40 -27
  144. package/src/operations/clusters.ts +106 -99
  145. package/src/operations/configurations.ts +18 -14
  146. package/src/operations/extensions.ts +78 -68
  147. package/src/operations/index.ts +5 -5
  148. package/src/operations/locations.ts +4 -4
  149. package/src/operations/privateEndpointConnections.ts +31 -24
  150. package/src/operations/virtualMachines.ts +17 -13
  151. package/src/operationsInterfaces/applications.ts +4 -4
  152. package/src/operationsInterfaces/clusters.ts +10 -10
  153. package/src/operationsInterfaces/configurations.ts +2 -2
  154. package/src/operationsInterfaces/extensions.ts +7 -7
  155. package/src/operationsInterfaces/index.ts +5 -5
  156. package/src/operationsInterfaces/privateEndpointConnections.ts +4 -4
  157. package/src/operationsInterfaces/virtualMachines.ts +2 -2
  158. package/types/arm-hdinsight.d.ts +29 -27
  159. package/types/tsdoc-metadata.json +1 -1
  160. package/dist-esm/test/sampleTest.d.ts +0 -2
  161. package/dist-esm/test/sampleTest.d.ts.map +0 -1
  162. package/dist-esm/test/sampleTest.js +0 -38
  163. package/dist-esm/test/sampleTest.js.map +0 -1
@@ -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 { HDInsightManagementClient } from "../hDInsightManagementClient";
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
  Cluster,
20
24
  ClustersListByResourceGroupNextOptionalParams,
@@ -202,8 +206,8 @@ export class ClustersImpl implements Clusters {
202
206
  parameters: ClusterCreateParametersExtended,
203
207
  options?: ClustersCreateOptionalParams
204
208
  ): Promise<
205
- PollerLike<
206
- PollOperationState<ClustersCreateResponse>,
209
+ SimplePollerLike<
210
+ OperationState<ClustersCreateResponse>,
207
211
  ClustersCreateResponse
208
212
  >
209
213
  > {
@@ -213,7 +217,7 @@ export class ClustersImpl implements Clusters {
213
217
  ): Promise<ClustersCreateResponse> => {
214
218
  return this.client.sendOperationRequest(args, spec);
215
219
  };
216
- const sendOperation = async (
220
+ const sendOperationFn = async (
217
221
  args: coreClient.OperationArguments,
218
222
  spec: coreClient.OperationSpec
219
223
  ) => {
@@ -246,15 +250,18 @@ export class ClustersImpl implements Clusters {
246
250
  };
247
251
  };
248
252
 
249
- const lro = new LroImpl(
250
- sendOperation,
251
- { resourceGroupName, clusterName, parameters, options },
252
- createOperationSpec
253
- );
254
- const poller = new LroEngine(lro, {
255
- resumeFrom: options?.resumeFrom,
253
+ const lro = createLroSpec({
254
+ sendOperationFn,
255
+ args: { resourceGroupName, clusterName, parameters, options },
256
+ spec: createOperationSpec
257
+ });
258
+ const poller = await createHttpPoller<
259
+ ClustersCreateResponse,
260
+ OperationState<ClustersCreateResponse>
261
+ >(lro, {
262
+ restoreFrom: options?.resumeFrom,
256
263
  intervalInMs: options?.updateIntervalInMs,
257
- lroResourceLocationConfig: "location"
264
+ resourceLocationConfig: "location"
258
265
  });
259
266
  await poller.poll();
260
267
  return poller;
@@ -311,14 +318,14 @@ export class ClustersImpl implements Clusters {
311
318
  resourceGroupName: string,
312
319
  clusterName: string,
313
320
  options?: ClustersDeleteOptionalParams
314
- ): Promise<PollerLike<PollOperationState<void>, void>> {
321
+ ): Promise<SimplePollerLike<OperationState<void>, void>> {
315
322
  const directSendOperation = async (
316
323
  args: coreClient.OperationArguments,
317
324
  spec: coreClient.OperationSpec
318
325
  ): Promise<void> => {
319
326
  return this.client.sendOperationRequest(args, spec);
320
327
  };
321
- const sendOperation = async (
328
+ const sendOperationFn = async (
322
329
  args: coreClient.OperationArguments,
323
330
  spec: coreClient.OperationSpec
324
331
  ) => {
@@ -351,15 +358,15 @@ export class ClustersImpl implements Clusters {
351
358
  };
352
359
  };
353
360
 
354
- const lro = new LroImpl(
355
- sendOperation,
356
- { resourceGroupName, clusterName, options },
357
- deleteOperationSpec
358
- );
359
- const poller = new LroEngine(lro, {
360
- resumeFrom: options?.resumeFrom,
361
+ const lro = createLroSpec({
362
+ sendOperationFn,
363
+ args: { resourceGroupName, clusterName, options },
364
+ spec: deleteOperationSpec
365
+ });
366
+ const poller = await createHttpPoller<void, OperationState<void>>(lro, {
367
+ restoreFrom: options?.resumeFrom,
361
368
  intervalInMs: options?.updateIntervalInMs,
362
- lroResourceLocationConfig: "location"
369
+ resourceLocationConfig: "location"
363
370
  });
364
371
  await poller.poll();
365
372
  return poller;
@@ -430,14 +437,14 @@ export class ClustersImpl implements Clusters {
430
437
  roleName: RoleName,
431
438
  parameters: ClusterResizeParameters,
432
439
  options?: ClustersResizeOptionalParams
433
- ): Promise<PollerLike<PollOperationState<void>, void>> {
440
+ ): Promise<SimplePollerLike<OperationState<void>, void>> {
434
441
  const directSendOperation = async (
435
442
  args: coreClient.OperationArguments,
436
443
  spec: coreClient.OperationSpec
437
444
  ): Promise<void> => {
438
445
  return this.client.sendOperationRequest(args, spec);
439
446
  };
440
- const sendOperation = async (
447
+ const sendOperationFn = async (
441
448
  args: coreClient.OperationArguments,
442
449
  spec: coreClient.OperationSpec
443
450
  ) => {
@@ -470,15 +477,15 @@ export class ClustersImpl implements Clusters {
470
477
  };
471
478
  };
472
479
 
473
- const lro = new LroImpl(
474
- sendOperation,
475
- { resourceGroupName, clusterName, roleName, parameters, options },
476
- resizeOperationSpec
477
- );
478
- const poller = new LroEngine(lro, {
479
- resumeFrom: options?.resumeFrom,
480
+ const lro = createLroSpec({
481
+ sendOperationFn,
482
+ args: { resourceGroupName, clusterName, roleName, parameters, options },
483
+ spec: resizeOperationSpec
484
+ });
485
+ const poller = await createHttpPoller<void, OperationState<void>>(lro, {
486
+ restoreFrom: options?.resumeFrom,
480
487
  intervalInMs: options?.updateIntervalInMs,
481
- lroResourceLocationConfig: "location"
488
+ resourceLocationConfig: "location"
482
489
  });
483
490
  await poller.poll();
484
491
  return poller;
@@ -523,14 +530,14 @@ export class ClustersImpl implements Clusters {
523
530
  roleName: RoleName,
524
531
  parameters: AutoscaleConfigurationUpdateParameter,
525
532
  options?: ClustersUpdateAutoScaleConfigurationOptionalParams
526
- ): Promise<PollerLike<PollOperationState<void>, void>> {
533
+ ): Promise<SimplePollerLike<OperationState<void>, void>> {
527
534
  const directSendOperation = async (
528
535
  args: coreClient.OperationArguments,
529
536
  spec: coreClient.OperationSpec
530
537
  ): Promise<void> => {
531
538
  return this.client.sendOperationRequest(args, spec);
532
539
  };
533
- const sendOperation = async (
540
+ const sendOperationFn = async (
534
541
  args: coreClient.OperationArguments,
535
542
  spec: coreClient.OperationSpec
536
543
  ) => {
@@ -563,15 +570,15 @@ export class ClustersImpl implements Clusters {
563
570
  };
564
571
  };
565
572
 
566
- const lro = new LroImpl(
567
- sendOperation,
568
- { resourceGroupName, clusterName, roleName, parameters, options },
569
- updateAutoScaleConfigurationOperationSpec
570
- );
571
- const poller = new LroEngine(lro, {
572
- resumeFrom: options?.resumeFrom,
573
+ const lro = createLroSpec({
574
+ sendOperationFn,
575
+ args: { resourceGroupName, clusterName, roleName, parameters, options },
576
+ spec: updateAutoScaleConfigurationOperationSpec
577
+ });
578
+ const poller = await createHttpPoller<void, OperationState<void>>(lro, {
579
+ restoreFrom: options?.resumeFrom,
573
580
  intervalInMs: options?.updateIntervalInMs,
574
- lroResourceLocationConfig: "location"
581
+ resourceLocationConfig: "location"
575
582
  });
576
583
  await poller.poll();
577
584
  return poller;
@@ -624,14 +631,14 @@ export class ClustersImpl implements Clusters {
624
631
  clusterName: string,
625
632
  parameters: ClusterDiskEncryptionParameters,
626
633
  options?: ClustersRotateDiskEncryptionKeyOptionalParams
627
- ): Promise<PollerLike<PollOperationState<void>, void>> {
634
+ ): Promise<SimplePollerLike<OperationState<void>, void>> {
628
635
  const directSendOperation = async (
629
636
  args: coreClient.OperationArguments,
630
637
  spec: coreClient.OperationSpec
631
638
  ): Promise<void> => {
632
639
  return this.client.sendOperationRequest(args, spec);
633
640
  };
634
- const sendOperation = async (
641
+ const sendOperationFn = async (
635
642
  args: coreClient.OperationArguments,
636
643
  spec: coreClient.OperationSpec
637
644
  ) => {
@@ -664,15 +671,15 @@ export class ClustersImpl implements Clusters {
664
671
  };
665
672
  };
666
673
 
667
- const lro = new LroImpl(
668
- sendOperation,
669
- { resourceGroupName, clusterName, parameters, options },
670
- rotateDiskEncryptionKeyOperationSpec
671
- );
672
- const poller = new LroEngine(lro, {
673
- resumeFrom: options?.resumeFrom,
674
+ const lro = createLroSpec({
675
+ sendOperationFn,
676
+ args: { resourceGroupName, clusterName, parameters, options },
677
+ spec: rotateDiskEncryptionKeyOperationSpec
678
+ });
679
+ const poller = await createHttpPoller<void, OperationState<void>>(lro, {
680
+ restoreFrom: options?.resumeFrom,
674
681
  intervalInMs: options?.updateIntervalInMs,
675
- lroResourceLocationConfig: "location"
682
+ resourceLocationConfig: "location"
676
683
  });
677
684
  await poller.poll();
678
685
  return poller;
@@ -729,14 +736,14 @@ export class ClustersImpl implements Clusters {
729
736
  clusterName: string,
730
737
  parameters: UpdateGatewaySettingsParameters,
731
738
  options?: ClustersUpdateGatewaySettingsOptionalParams
732
- ): Promise<PollerLike<PollOperationState<void>, void>> {
739
+ ): Promise<SimplePollerLike<OperationState<void>, void>> {
733
740
  const directSendOperation = async (
734
741
  args: coreClient.OperationArguments,
735
742
  spec: coreClient.OperationSpec
736
743
  ): Promise<void> => {
737
744
  return this.client.sendOperationRequest(args, spec);
738
745
  };
739
- const sendOperation = async (
746
+ const sendOperationFn = async (
740
747
  args: coreClient.OperationArguments,
741
748
  spec: coreClient.OperationSpec
742
749
  ) => {
@@ -769,15 +776,15 @@ export class ClustersImpl implements Clusters {
769
776
  };
770
777
  };
771
778
 
772
- const lro = new LroImpl(
773
- sendOperation,
774
- { resourceGroupName, clusterName, parameters, options },
775
- updateGatewaySettingsOperationSpec
776
- );
777
- const poller = new LroEngine(lro, {
778
- resumeFrom: options?.resumeFrom,
779
+ const lro = createLroSpec({
780
+ sendOperationFn,
781
+ args: { resourceGroupName, clusterName, parameters, options },
782
+ spec: updateGatewaySettingsOperationSpec
783
+ });
784
+ const poller = await createHttpPoller<void, OperationState<void>>(lro, {
785
+ restoreFrom: options?.resumeFrom,
779
786
  intervalInMs: options?.updateIntervalInMs,
780
- lroResourceLocationConfig: "location"
787
+ resourceLocationConfig: "location"
781
788
  });
782
789
  await poller.poll();
783
790
  return poller;
@@ -836,14 +843,14 @@ export class ClustersImpl implements Clusters {
836
843
  clusterName: string,
837
844
  parameters: UpdateClusterIdentityCertificateParameters,
838
845
  options?: ClustersUpdateIdentityCertificateOptionalParams
839
- ): Promise<PollerLike<PollOperationState<void>, void>> {
846
+ ): Promise<SimplePollerLike<OperationState<void>, void>> {
840
847
  const directSendOperation = async (
841
848
  args: coreClient.OperationArguments,
842
849
  spec: coreClient.OperationSpec
843
850
  ): Promise<void> => {
844
851
  return this.client.sendOperationRequest(args, spec);
845
852
  };
846
- const sendOperation = async (
853
+ const sendOperationFn = async (
847
854
  args: coreClient.OperationArguments,
848
855
  spec: coreClient.OperationSpec
849
856
  ) => {
@@ -876,15 +883,15 @@ export class ClustersImpl implements Clusters {
876
883
  };
877
884
  };
878
885
 
879
- const lro = new LroImpl(
880
- sendOperation,
881
- { resourceGroupName, clusterName, parameters, options },
882
- updateIdentityCertificateOperationSpec
883
- );
884
- const poller = new LroEngine(lro, {
885
- resumeFrom: options?.resumeFrom,
886
+ const lro = createLroSpec({
887
+ sendOperationFn,
888
+ args: { resourceGroupName, clusterName, parameters, options },
889
+ spec: updateIdentityCertificateOperationSpec
890
+ });
891
+ const poller = await createHttpPoller<void, OperationState<void>>(lro, {
892
+ restoreFrom: options?.resumeFrom,
886
893
  intervalInMs: options?.updateIntervalInMs,
887
- lroResourceLocationConfig: "location"
894
+ resourceLocationConfig: "location"
888
895
  });
889
896
  await poller.poll();
890
897
  return poller;
@@ -924,14 +931,14 @@ export class ClustersImpl implements Clusters {
924
931
  clusterName: string,
925
932
  parameters: ExecuteScriptActionParameters,
926
933
  options?: ClustersExecuteScriptActionsOptionalParams
927
- ): Promise<PollerLike<PollOperationState<void>, void>> {
934
+ ): Promise<SimplePollerLike<OperationState<void>, void>> {
928
935
  const directSendOperation = async (
929
936
  args: coreClient.OperationArguments,
930
937
  spec: coreClient.OperationSpec
931
938
  ): Promise<void> => {
932
939
  return this.client.sendOperationRequest(args, spec);
933
940
  };
934
- const sendOperation = async (
941
+ const sendOperationFn = async (
935
942
  args: coreClient.OperationArguments,
936
943
  spec: coreClient.OperationSpec
937
944
  ) => {
@@ -964,15 +971,15 @@ export class ClustersImpl implements Clusters {
964
971
  };
965
972
  };
966
973
 
967
- const lro = new LroImpl(
968
- sendOperation,
969
- { resourceGroupName, clusterName, parameters, options },
970
- executeScriptActionsOperationSpec
971
- );
972
- const poller = new LroEngine(lro, {
973
- resumeFrom: options?.resumeFrom,
974
+ const lro = createLroSpec({
975
+ sendOperationFn,
976
+ args: { resourceGroupName, clusterName, parameters, options },
977
+ spec: executeScriptActionsOperationSpec
978
+ });
979
+ const poller = await createHttpPoller<void, OperationState<void>>(lro, {
980
+ restoreFrom: options?.resumeFrom,
974
981
  intervalInMs: options?.updateIntervalInMs,
975
- lroResourceLocationConfig: "location"
982
+ resourceLocationConfig: "location"
976
983
  });
977
984
  await poller.poll();
978
985
  return poller;
@@ -1056,7 +1063,7 @@ const createOperationSpec: coreClient.OperationSpec = {
1056
1063
  bodyMapper: Mappers.ErrorResponse
1057
1064
  }
1058
1065
  },
1059
- requestBody: Parameters.parameters,
1066
+ requestBody: Parameters.parameters1,
1060
1067
  queryParameters: [Parameters.apiVersion],
1061
1068
  urlParameters: [
1062
1069
  Parameters.$host,
@@ -1064,7 +1071,7 @@ const createOperationSpec: coreClient.OperationSpec = {
1064
1071
  Parameters.resourceGroupName,
1065
1072
  Parameters.clusterName
1066
1073
  ],
1067
- headerParameters: [Parameters.contentType, Parameters.accept],
1074
+ headerParameters: [Parameters.accept, Parameters.contentType],
1068
1075
  mediaType: "json",
1069
1076
  serializer
1070
1077
  };
@@ -1080,7 +1087,7 @@ const updateOperationSpec: coreClient.OperationSpec = {
1080
1087
  bodyMapper: Mappers.ErrorResponse
1081
1088
  }
1082
1089
  },
1083
- requestBody: Parameters.parameters1,
1090
+ requestBody: Parameters.parameters2,
1084
1091
  queryParameters: [Parameters.apiVersion],
1085
1092
  urlParameters: [
1086
1093
  Parameters.$host,
@@ -1088,7 +1095,7 @@ const updateOperationSpec: coreClient.OperationSpec = {
1088
1095
  Parameters.resourceGroupName,
1089
1096
  Parameters.clusterName
1090
1097
  ],
1091
- headerParameters: [Parameters.contentType, Parameters.accept],
1098
+ headerParameters: [Parameters.accept, Parameters.contentType],
1092
1099
  mediaType: "json",
1093
1100
  serializer
1094
1101
  };
@@ -1171,7 +1178,7 @@ const resizeOperationSpec: coreClient.OperationSpec = {
1171
1178
  bodyMapper: Mappers.ErrorResponse
1172
1179
  }
1173
1180
  },
1174
- requestBody: Parameters.parameters2,
1181
+ requestBody: Parameters.parameters3,
1175
1182
  queryParameters: [Parameters.apiVersion],
1176
1183
  urlParameters: [
1177
1184
  Parameters.$host,
@@ -1180,7 +1187,7 @@ const resizeOperationSpec: coreClient.OperationSpec = {
1180
1187
  Parameters.clusterName,
1181
1188
  Parameters.roleName
1182
1189
  ],
1183
- headerParameters: [Parameters.contentType, Parameters.accept],
1190
+ headerParameters: [Parameters.accept, Parameters.contentType],
1184
1191
  mediaType: "json",
1185
1192
  serializer
1186
1193
  };
@@ -1197,7 +1204,7 @@ const updateAutoScaleConfigurationOperationSpec: coreClient.OperationSpec = {
1197
1204
  bodyMapper: Mappers.ErrorResponse
1198
1205
  }
1199
1206
  },
1200
- requestBody: Parameters.parameters3,
1207
+ requestBody: Parameters.parameters4,
1201
1208
  queryParameters: [Parameters.apiVersion],
1202
1209
  urlParameters: [
1203
1210
  Parameters.$host,
@@ -1206,7 +1213,7 @@ const updateAutoScaleConfigurationOperationSpec: coreClient.OperationSpec = {
1206
1213
  Parameters.clusterName,
1207
1214
  Parameters.roleName
1208
1215
  ],
1209
- headerParameters: [Parameters.contentType, Parameters.accept],
1216
+ headerParameters: [Parameters.accept, Parameters.contentType],
1210
1217
  mediaType: "json",
1211
1218
  serializer
1212
1219
  };
@@ -1240,7 +1247,7 @@ const rotateDiskEncryptionKeyOperationSpec: coreClient.OperationSpec = {
1240
1247
  bodyMapper: Mappers.ErrorResponse
1241
1248
  }
1242
1249
  },
1243
- requestBody: Parameters.parameters4,
1250
+ requestBody: Parameters.parameters5,
1244
1251
  queryParameters: [Parameters.apiVersion],
1245
1252
  urlParameters: [
1246
1253
  Parameters.$host,
@@ -1248,7 +1255,7 @@ const rotateDiskEncryptionKeyOperationSpec: coreClient.OperationSpec = {
1248
1255
  Parameters.resourceGroupName,
1249
1256
  Parameters.clusterName
1250
1257
  ],
1251
- headerParameters: [Parameters.contentType, Parameters.accept],
1258
+ headerParameters: [Parameters.accept, Parameters.contentType],
1252
1259
  mediaType: "json",
1253
1260
  serializer
1254
1261
  };
@@ -1287,7 +1294,7 @@ const updateGatewaySettingsOperationSpec: coreClient.OperationSpec = {
1287
1294
  bodyMapper: Mappers.ErrorResponse
1288
1295
  }
1289
1296
  },
1290
- requestBody: Parameters.parameters5,
1297
+ requestBody: Parameters.parameters6,
1291
1298
  queryParameters: [Parameters.apiVersion],
1292
1299
  urlParameters: [
1293
1300
  Parameters.$host,
@@ -1295,7 +1302,7 @@ const updateGatewaySettingsOperationSpec: coreClient.OperationSpec = {
1295
1302
  Parameters.resourceGroupName,
1296
1303
  Parameters.clusterName
1297
1304
  ],
1298
- headerParameters: [Parameters.contentType, Parameters.accept],
1305
+ headerParameters: [Parameters.accept, Parameters.contentType],
1299
1306
  mediaType: "json",
1300
1307
  serializer
1301
1308
  };
@@ -1335,7 +1342,7 @@ const updateIdentityCertificateOperationSpec: coreClient.OperationSpec = {
1335
1342
  bodyMapper: Mappers.ErrorResponse
1336
1343
  }
1337
1344
  },
1338
- requestBody: Parameters.parameters6,
1345
+ requestBody: Parameters.parameters7,
1339
1346
  queryParameters: [Parameters.apiVersion],
1340
1347
  urlParameters: [
1341
1348
  Parameters.$host,
@@ -1343,7 +1350,7 @@ const updateIdentityCertificateOperationSpec: coreClient.OperationSpec = {
1343
1350
  Parameters.resourceGroupName,
1344
1351
  Parameters.clusterName
1345
1352
  ],
1346
- headerParameters: [Parameters.contentType, Parameters.accept],
1353
+ headerParameters: [Parameters.accept, Parameters.contentType],
1347
1354
  mediaType: "json",
1348
1355
  serializer
1349
1356
  };
@@ -1363,7 +1370,7 @@ const executeScriptActionsOperationSpec: coreClient.OperationSpec = {
1363
1370
  bodyMapper: Mappers.ErrorResponse
1364
1371
  }
1365
1372
  },
1366
- requestBody: Parameters.parameters7,
1373
+ requestBody: Parameters.parameters8,
1367
1374
  queryParameters: [Parameters.apiVersion],
1368
1375
  urlParameters: [
1369
1376
  Parameters.$host,
@@ -1371,7 +1378,7 @@ const executeScriptActionsOperationSpec: coreClient.OperationSpec = {
1371
1378
  Parameters.resourceGroupName,
1372
1379
  Parameters.clusterName
1373
1380
  ],
1374
- headerParameters: [Parameters.contentType, Parameters.accept],
1381
+ headerParameters: [Parameters.accept, Parameters.contentType],
1375
1382
  mediaType: "json",
1376
1383
  serializer
1377
1384
  };
@@ -11,8 +11,12 @@ import * as coreClient from "@azure/core-client";
11
11
  import * as Mappers from "../models/mappers";
12
12
  import * as Parameters from "../models/parameters";
13
13
  import { HDInsightManagementClient } from "../hDInsightManagementClient";
14
- import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
15
- import { LroImpl } from "../lroImpl";
14
+ import {
15
+ SimplePollerLike,
16
+ OperationState,
17
+ createHttpPoller
18
+ } from "@azure/core-lro";
19
+ import { createLroSpec } from "../lroImpl";
16
20
  import {
17
21
  ConfigurationsListOptionalParams,
18
22
  ConfigurationsListResponse,
@@ -65,14 +69,14 @@ export class ConfigurationsImpl implements Configurations {
65
69
  configurationName: string,
66
70
  parameters: { [propertyName: string]: string },
67
71
  options?: ConfigurationsUpdateOptionalParams
68
- ): Promise<PollerLike<PollOperationState<void>, void>> {
72
+ ): Promise<SimplePollerLike<OperationState<void>, void>> {
69
73
  const directSendOperation = async (
70
74
  args: coreClient.OperationArguments,
71
75
  spec: coreClient.OperationSpec
72
76
  ): Promise<void> => {
73
77
  return this.client.sendOperationRequest(args, spec);
74
78
  };
75
- const sendOperation = async (
79
+ const sendOperationFn = async (
76
80
  args: coreClient.OperationArguments,
77
81
  spec: coreClient.OperationSpec
78
82
  ) => {
@@ -105,21 +109,21 @@ export class ConfigurationsImpl implements Configurations {
105
109
  };
106
110
  };
107
111
 
108
- const lro = new LroImpl(
109
- sendOperation,
110
- {
112
+ const lro = createLroSpec({
113
+ sendOperationFn,
114
+ args: {
111
115
  resourceGroupName,
112
116
  clusterName,
113
117
  configurationName,
114
118
  parameters,
115
119
  options
116
120
  },
117
- updateOperationSpec
118
- );
119
- const poller = new LroEngine(lro, {
120
- resumeFrom: options?.resumeFrom,
121
+ spec: updateOperationSpec
122
+ });
123
+ const poller = await createHttpPoller<void, OperationState<void>>(lro, {
124
+ restoreFrom: options?.resumeFrom,
121
125
  intervalInMs: options?.updateIntervalInMs,
122
- lroResourceLocationConfig: "location"
126
+ resourceLocationConfig: "location"
123
127
  });
124
128
  await poller.poll();
125
129
  return poller;
@@ -209,7 +213,7 @@ const updateOperationSpec: coreClient.OperationSpec = {
209
213
  bodyMapper: Mappers.ErrorResponse
210
214
  }
211
215
  },
212
- requestBody: Parameters.parameters11,
216
+ requestBody: Parameters.parameters9,
213
217
  queryParameters: [Parameters.apiVersion],
214
218
  urlParameters: [
215
219
  Parameters.$host,
@@ -218,7 +222,7 @@ const updateOperationSpec: coreClient.OperationSpec = {
218
222
  Parameters.clusterName,
219
223
  Parameters.configurationName
220
224
  ],
221
- headerParameters: [Parameters.contentType, Parameters.accept],
225
+ headerParameters: [Parameters.accept, Parameters.contentType],
222
226
  mediaType: "json",
223
227
  serializer
224
228
  };