@azure/arm-hdinsight 1.2.2-alpha.20230627.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
@@ -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
  ClusterMonitoringRequest,
18
22
  ExtensionsEnableMonitoringOptionalParams,
@@ -57,14 +61,14 @@ export class ExtensionsImpl implements Extensions {
57
61
  clusterName: string,
58
62
  parameters: ClusterMonitoringRequest,
59
63
  options?: ExtensionsEnableMonitoringOptionalParams
60
- ): Promise<PollerLike<PollOperationState<void>, void>> {
64
+ ): Promise<SimplePollerLike<OperationState<void>, void>> {
61
65
  const directSendOperation = async (
62
66
  args: coreClient.OperationArguments,
63
67
  spec: coreClient.OperationSpec
64
68
  ): Promise<void> => {
65
69
  return this.client.sendOperationRequest(args, spec);
66
70
  };
67
- const sendOperation = async (
71
+ const sendOperationFn = async (
68
72
  args: coreClient.OperationArguments,
69
73
  spec: coreClient.OperationSpec
70
74
  ) => {
@@ -97,15 +101,15 @@ export class ExtensionsImpl implements Extensions {
97
101
  };
98
102
  };
99
103
 
100
- const lro = new LroImpl(
101
- sendOperation,
102
- { resourceGroupName, clusterName, parameters, options },
103
- enableMonitoringOperationSpec
104
- );
105
- const poller = new LroEngine(lro, {
106
- resumeFrom: options?.resumeFrom,
104
+ const lro = createLroSpec({
105
+ sendOperationFn,
106
+ args: { resourceGroupName, clusterName, parameters, options },
107
+ spec: enableMonitoringOperationSpec
108
+ });
109
+ const poller = await createHttpPoller<void, OperationState<void>>(lro, {
110
+ restoreFrom: options?.resumeFrom,
107
111
  intervalInMs: options?.updateIntervalInMs,
108
- lroResourceLocationConfig: "location"
112
+ resourceLocationConfig: "location"
109
113
  });
110
114
  await poller.poll();
111
115
  return poller;
@@ -160,14 +164,14 @@ export class ExtensionsImpl implements Extensions {
160
164
  resourceGroupName: string,
161
165
  clusterName: string,
162
166
  options?: ExtensionsDisableMonitoringOptionalParams
163
- ): Promise<PollerLike<PollOperationState<void>, void>> {
167
+ ): Promise<SimplePollerLike<OperationState<void>, void>> {
164
168
  const directSendOperation = async (
165
169
  args: coreClient.OperationArguments,
166
170
  spec: coreClient.OperationSpec
167
171
  ): Promise<void> => {
168
172
  return this.client.sendOperationRequest(args, spec);
169
173
  };
170
- const sendOperation = async (
174
+ const sendOperationFn = async (
171
175
  args: coreClient.OperationArguments,
172
176
  spec: coreClient.OperationSpec
173
177
  ) => {
@@ -200,15 +204,15 @@ export class ExtensionsImpl implements Extensions {
200
204
  };
201
205
  };
202
206
 
203
- const lro = new LroImpl(
204
- sendOperation,
205
- { resourceGroupName, clusterName, options },
206
- disableMonitoringOperationSpec
207
- );
208
- const poller = new LroEngine(lro, {
209
- resumeFrom: options?.resumeFrom,
207
+ const lro = createLroSpec({
208
+ sendOperationFn,
209
+ args: { resourceGroupName, clusterName, options },
210
+ spec: disableMonitoringOperationSpec
211
+ });
212
+ const poller = await createHttpPoller<void, OperationState<void>>(lro, {
213
+ restoreFrom: options?.resumeFrom,
210
214
  intervalInMs: options?.updateIntervalInMs,
211
- lroResourceLocationConfig: "location"
215
+ resourceLocationConfig: "location"
212
216
  });
213
217
  await poller.poll();
214
218
  return poller;
@@ -245,14 +249,14 @@ export class ExtensionsImpl implements Extensions {
245
249
  clusterName: string,
246
250
  parameters: AzureMonitorRequest,
247
251
  options?: ExtensionsEnableAzureMonitorOptionalParams
248
- ): Promise<PollerLike<PollOperationState<void>, void>> {
252
+ ): Promise<SimplePollerLike<OperationState<void>, void>> {
249
253
  const directSendOperation = async (
250
254
  args: coreClient.OperationArguments,
251
255
  spec: coreClient.OperationSpec
252
256
  ): Promise<void> => {
253
257
  return this.client.sendOperationRequest(args, spec);
254
258
  };
255
- const sendOperation = async (
259
+ const sendOperationFn = async (
256
260
  args: coreClient.OperationArguments,
257
261
  spec: coreClient.OperationSpec
258
262
  ) => {
@@ -285,15 +289,15 @@ export class ExtensionsImpl implements Extensions {
285
289
  };
286
290
  };
287
291
 
288
- const lro = new LroImpl(
289
- sendOperation,
290
- { resourceGroupName, clusterName, parameters, options },
291
- enableAzureMonitorOperationSpec
292
- );
293
- const poller = new LroEngine(lro, {
294
- resumeFrom: options?.resumeFrom,
292
+ const lro = createLroSpec({
293
+ sendOperationFn,
294
+ args: { resourceGroupName, clusterName, parameters, options },
295
+ spec: enableAzureMonitorOperationSpec
296
+ });
297
+ const poller = await createHttpPoller<void, OperationState<void>>(lro, {
298
+ restoreFrom: options?.resumeFrom,
295
299
  intervalInMs: options?.updateIntervalInMs,
296
- lroResourceLocationConfig: "location"
300
+ resourceLocationConfig: "location"
297
301
  });
298
302
  await poller.poll();
299
303
  return poller;
@@ -348,14 +352,14 @@ export class ExtensionsImpl implements Extensions {
348
352
  resourceGroupName: string,
349
353
  clusterName: string,
350
354
  options?: ExtensionsDisableAzureMonitorOptionalParams
351
- ): Promise<PollerLike<PollOperationState<void>, void>> {
355
+ ): Promise<SimplePollerLike<OperationState<void>, void>> {
352
356
  const directSendOperation = async (
353
357
  args: coreClient.OperationArguments,
354
358
  spec: coreClient.OperationSpec
355
359
  ): Promise<void> => {
356
360
  return this.client.sendOperationRequest(args, spec);
357
361
  };
358
- const sendOperation = async (
362
+ const sendOperationFn = async (
359
363
  args: coreClient.OperationArguments,
360
364
  spec: coreClient.OperationSpec
361
365
  ) => {
@@ -388,15 +392,15 @@ export class ExtensionsImpl implements Extensions {
388
392
  };
389
393
  };
390
394
 
391
- const lro = new LroImpl(
392
- sendOperation,
393
- { resourceGroupName, clusterName, options },
394
- disableAzureMonitorOperationSpec
395
- );
396
- const poller = new LroEngine(lro, {
397
- resumeFrom: options?.resumeFrom,
395
+ const lro = createLroSpec({
396
+ sendOperationFn,
397
+ args: { resourceGroupName, clusterName, options },
398
+ spec: disableAzureMonitorOperationSpec
399
+ });
400
+ const poller = await createHttpPoller<void, OperationState<void>>(lro, {
401
+ restoreFrom: options?.resumeFrom,
398
402
  intervalInMs: options?.updateIntervalInMs,
399
- lroResourceLocationConfig: "location"
403
+ resourceLocationConfig: "location"
400
404
  });
401
405
  await poller.poll();
402
406
  return poller;
@@ -435,14 +439,14 @@ export class ExtensionsImpl implements Extensions {
435
439
  extensionName: string,
436
440
  parameters: Extension,
437
441
  options?: ExtensionsCreateOptionalParams
438
- ): Promise<PollerLike<PollOperationState<void>, void>> {
442
+ ): Promise<SimplePollerLike<OperationState<void>, void>> {
439
443
  const directSendOperation = async (
440
444
  args: coreClient.OperationArguments,
441
445
  spec: coreClient.OperationSpec
442
446
  ): Promise<void> => {
443
447
  return this.client.sendOperationRequest(args, spec);
444
448
  };
445
- const sendOperation = async (
449
+ const sendOperationFn = async (
446
450
  args: coreClient.OperationArguments,
447
451
  spec: coreClient.OperationSpec
448
452
  ) => {
@@ -475,15 +479,21 @@ export class ExtensionsImpl implements Extensions {
475
479
  };
476
480
  };
477
481
 
478
- const lro = new LroImpl(
479
- sendOperation,
480
- { resourceGroupName, clusterName, extensionName, parameters, options },
481
- createOperationSpec
482
- );
483
- const poller = new LroEngine(lro, {
484
- resumeFrom: options?.resumeFrom,
482
+ const lro = createLroSpec({
483
+ sendOperationFn,
484
+ args: {
485
+ resourceGroupName,
486
+ clusterName,
487
+ extensionName,
488
+ parameters,
489
+ options
490
+ },
491
+ spec: createOperationSpec
492
+ });
493
+ const poller = await createHttpPoller<void, OperationState<void>>(lro, {
494
+ restoreFrom: options?.resumeFrom,
485
495
  intervalInMs: options?.updateIntervalInMs,
486
- lroResourceLocationConfig: "location"
496
+ resourceLocationConfig: "location"
487
497
  });
488
498
  await poller.poll();
489
499
  return poller;
@@ -545,14 +555,14 @@ export class ExtensionsImpl implements Extensions {
545
555
  clusterName: string,
546
556
  extensionName: string,
547
557
  options?: ExtensionsDeleteOptionalParams
548
- ): Promise<PollerLike<PollOperationState<void>, void>> {
558
+ ): Promise<SimplePollerLike<OperationState<void>, void>> {
549
559
  const directSendOperation = async (
550
560
  args: coreClient.OperationArguments,
551
561
  spec: coreClient.OperationSpec
552
562
  ): Promise<void> => {
553
563
  return this.client.sendOperationRequest(args, spec);
554
564
  };
555
- const sendOperation = async (
565
+ const sendOperationFn = async (
556
566
  args: coreClient.OperationArguments,
557
567
  spec: coreClient.OperationSpec
558
568
  ) => {
@@ -585,15 +595,15 @@ export class ExtensionsImpl implements Extensions {
585
595
  };
586
596
  };
587
597
 
588
- const lro = new LroImpl(
589
- sendOperation,
590
- { resourceGroupName, clusterName, extensionName, options },
591
- deleteOperationSpec
592
- );
593
- const poller = new LroEngine(lro, {
594
- resumeFrom: options?.resumeFrom,
598
+ const lro = createLroSpec({
599
+ sendOperationFn,
600
+ args: { resourceGroupName, clusterName, extensionName, options },
601
+ spec: deleteOperationSpec
602
+ });
603
+ const poller = await createHttpPoller<void, OperationState<void>>(lro, {
604
+ restoreFrom: options?.resumeFrom,
595
605
  intervalInMs: options?.updateIntervalInMs,
596
- lroResourceLocationConfig: "location"
606
+ resourceLocationConfig: "location"
597
607
  });
598
608
  await poller.poll();
599
609
  return poller;
@@ -658,7 +668,7 @@ const enableMonitoringOperationSpec: coreClient.OperationSpec = {
658
668
  bodyMapper: Mappers.ErrorResponse
659
669
  }
660
670
  },
661
- requestBody: Parameters.parameters12,
671
+ requestBody: Parameters.parameters10,
662
672
  queryParameters: [Parameters.apiVersion],
663
673
  urlParameters: [
664
674
  Parameters.$host,
@@ -666,7 +676,7 @@ const enableMonitoringOperationSpec: coreClient.OperationSpec = {
666
676
  Parameters.resourceGroupName,
667
677
  Parameters.clusterName
668
678
  ],
669
- headerParameters: [Parameters.contentType, Parameters.accept],
679
+ headerParameters: [Parameters.accept, Parameters.contentType],
670
680
  mediaType: "json",
671
681
  serializer
672
682
  };
@@ -728,7 +738,7 @@ const enableAzureMonitorOperationSpec: coreClient.OperationSpec = {
728
738
  bodyMapper: Mappers.ErrorResponse
729
739
  }
730
740
  },
731
- requestBody: Parameters.parameters13,
741
+ requestBody: Parameters.parameters11,
732
742
  queryParameters: [Parameters.apiVersion],
733
743
  urlParameters: [
734
744
  Parameters.$host,
@@ -736,7 +746,7 @@ const enableAzureMonitorOperationSpec: coreClient.OperationSpec = {
736
746
  Parameters.resourceGroupName,
737
747
  Parameters.clusterName
738
748
  ],
739
- headerParameters: [Parameters.contentType, Parameters.accept],
749
+ headerParameters: [Parameters.accept, Parameters.contentType],
740
750
  mediaType: "json",
741
751
  serializer
742
752
  };
@@ -798,7 +808,7 @@ const createOperationSpec: coreClient.OperationSpec = {
798
808
  bodyMapper: Mappers.ErrorResponse
799
809
  }
800
810
  },
801
- requestBody: Parameters.parameters14,
811
+ requestBody: Parameters.parameters12,
802
812
  queryParameters: [Parameters.apiVersion],
803
813
  urlParameters: [
804
814
  Parameters.$host,
@@ -807,7 +817,7 @@ const createOperationSpec: coreClient.OperationSpec = {
807
817
  Parameters.clusterName,
808
818
  Parameters.extensionName
809
819
  ],
810
- headerParameters: [Parameters.contentType, Parameters.accept],
820
+ headerParameters: [Parameters.accept, Parameters.contentType],
811
821
  mediaType: "json",
812
822
  serializer
813
823
  };
@@ -6,14 +6,14 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
 
9
- export * from "./clusters";
10
9
  export * from "./applications";
11
- export * from "./locations";
10
+ export * from "./clusters";
12
11
  export * from "./configurations";
13
12
  export * from "./extensions";
14
- export * from "./scriptActions";
15
- export * from "./scriptExecutionHistory";
13
+ export * from "./locations";
16
14
  export * from "./operations";
17
- export * from "./virtualMachines";
18
15
  export * from "./privateEndpointConnections";
19
16
  export * from "./privateLinkResources";
17
+ export * from "./scriptActions";
18
+ export * from "./scriptExecutionHistory";
19
+ export * from "./virtualMachines";
@@ -236,14 +236,14 @@ const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = {
236
236
  bodyMapper: Mappers.ErrorResponse
237
237
  }
238
238
  },
239
- requestBody: Parameters.parameters9,
239
+ requestBody: Parameters.parameters13,
240
240
  queryParameters: [Parameters.apiVersion],
241
241
  urlParameters: [
242
242
  Parameters.$host,
243
243
  Parameters.subscriptionId,
244
244
  Parameters.location
245
245
  ],
246
- headerParameters: [Parameters.contentType, Parameters.accept],
246
+ headerParameters: [Parameters.accept, Parameters.contentType],
247
247
  mediaType: "json",
248
248
  serializer
249
249
  };
@@ -259,14 +259,14 @@ const validateClusterCreateRequestOperationSpec: coreClient.OperationSpec = {
259
259
  bodyMapper: Mappers.ErrorResponse
260
260
  }
261
261
  },
262
- requestBody: Parameters.parameters10,
262
+ requestBody: Parameters.parameters14,
263
263
  queryParameters: [Parameters.apiVersion],
264
264
  urlParameters: [
265
265
  Parameters.$host,
266
266
  Parameters.subscriptionId,
267
267
  Parameters.location
268
268
  ],
269
- headerParameters: [Parameters.contentType, Parameters.accept],
269
+ headerParameters: [Parameters.accept, Parameters.contentType],
270
270
  mediaType: "json",
271
271
  serializer
272
272
  };
@@ -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
  PrivateEndpointConnection,
20
24
  PrivateEndpointConnectionsListByClusterNextOptionalParams,
@@ -158,8 +162,8 @@ export class PrivateEndpointConnectionsImpl
158
162
  parameters: PrivateEndpointConnection,
159
163
  options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams
160
164
  ): Promise<
161
- PollerLike<
162
- PollOperationState<PrivateEndpointConnectionsCreateOrUpdateResponse>,
165
+ SimplePollerLike<
166
+ OperationState<PrivateEndpointConnectionsCreateOrUpdateResponse>,
163
167
  PrivateEndpointConnectionsCreateOrUpdateResponse
164
168
  >
165
169
  > {
@@ -169,7 +173,7 @@ export class PrivateEndpointConnectionsImpl
169
173
  ): Promise<PrivateEndpointConnectionsCreateOrUpdateResponse> => {
170
174
  return this.client.sendOperationRequest(args, spec);
171
175
  };
172
- const sendOperation = async (
176
+ const sendOperationFn = async (
173
177
  args: coreClient.OperationArguments,
174
178
  spec: coreClient.OperationSpec
175
179
  ) => {
@@ -202,21 +206,24 @@ export class PrivateEndpointConnectionsImpl
202
206
  };
203
207
  };
204
208
 
205
- const lro = new LroImpl(
206
- sendOperation,
207
- {
209
+ const lro = createLroSpec({
210
+ sendOperationFn,
211
+ args: {
208
212
  resourceGroupName,
209
213
  clusterName,
210
214
  privateEndpointConnectionName,
211
215
  parameters,
212
216
  options
213
217
  },
214
- createOrUpdateOperationSpec
215
- );
216
- const poller = new LroEngine(lro, {
217
- resumeFrom: options?.resumeFrom,
218
+ spec: createOrUpdateOperationSpec
219
+ });
220
+ const poller = await createHttpPoller<
221
+ PrivateEndpointConnectionsCreateOrUpdateResponse,
222
+ OperationState<PrivateEndpointConnectionsCreateOrUpdateResponse>
223
+ >(lro, {
224
+ restoreFrom: options?.resumeFrom,
218
225
  intervalInMs: options?.updateIntervalInMs,
219
- lroResourceLocationConfig: "azure-async-operation"
226
+ resourceLocationConfig: "azure-async-operation"
220
227
  });
221
228
  await poller.poll();
222
229
  return poller;
@@ -283,14 +290,14 @@ export class PrivateEndpointConnectionsImpl
283
290
  clusterName: string,
284
291
  privateEndpointConnectionName: string,
285
292
  options?: PrivateEndpointConnectionsDeleteOptionalParams
286
- ): Promise<PollerLike<PollOperationState<void>, void>> {
293
+ ): Promise<SimplePollerLike<OperationState<void>, void>> {
287
294
  const directSendOperation = async (
288
295
  args: coreClient.OperationArguments,
289
296
  spec: coreClient.OperationSpec
290
297
  ): Promise<void> => {
291
298
  return this.client.sendOperationRequest(args, spec);
292
299
  };
293
- const sendOperation = async (
300
+ const sendOperationFn = async (
294
301
  args: coreClient.OperationArguments,
295
302
  spec: coreClient.OperationSpec
296
303
  ) => {
@@ -323,20 +330,20 @@ export class PrivateEndpointConnectionsImpl
323
330
  };
324
331
  };
325
332
 
326
- const lro = new LroImpl(
327
- sendOperation,
328
- {
333
+ const lro = createLroSpec({
334
+ sendOperationFn,
335
+ args: {
329
336
  resourceGroupName,
330
337
  clusterName,
331
338
  privateEndpointConnectionName,
332
339
  options
333
340
  },
334
- deleteOperationSpec
335
- );
336
- const poller = new LroEngine(lro, {
337
- resumeFrom: options?.resumeFrom,
341
+ spec: deleteOperationSpec
342
+ });
343
+ const poller = await createHttpPoller<void, OperationState<void>>(lro, {
344
+ restoreFrom: options?.resumeFrom,
338
345
  intervalInMs: options?.updateIntervalInMs,
339
- lroResourceLocationConfig: "azure-async-operation"
346
+ resourceLocationConfig: "azure-async-operation"
340
347
  });
341
348
  await poller.poll();
342
349
  return poller;
@@ -438,7 +445,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = {
438
445
  Parameters.clusterName,
439
446
  Parameters.privateEndpointConnectionName
440
447
  ],
441
- headerParameters: [Parameters.contentType, Parameters.accept],
448
+ headerParameters: [Parameters.accept, Parameters.contentType],
442
449
  mediaType: "json",
443
450
  serializer
444
451
  };
@@ -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
  VirtualMachinesListHostsOptionalParams,
18
22
  VirtualMachinesListHostsResponse,
@@ -62,14 +66,14 @@ export class VirtualMachinesImpl implements VirtualMachines {
62
66
  clusterName: string,
63
67
  hosts: string[],
64
68
  options?: VirtualMachinesRestartHostsOptionalParams
65
- ): Promise<PollerLike<PollOperationState<void>, void>> {
69
+ ): Promise<SimplePollerLike<OperationState<void>, void>> {
66
70
  const directSendOperation = async (
67
71
  args: coreClient.OperationArguments,
68
72
  spec: coreClient.OperationSpec
69
73
  ): Promise<void> => {
70
74
  return this.client.sendOperationRequest(args, spec);
71
75
  };
72
- const sendOperation = async (
76
+ const sendOperationFn = async (
73
77
  args: coreClient.OperationArguments,
74
78
  spec: coreClient.OperationSpec
75
79
  ) => {
@@ -102,15 +106,15 @@ export class VirtualMachinesImpl implements VirtualMachines {
102
106
  };
103
107
  };
104
108
 
105
- const lro = new LroImpl(
106
- sendOperation,
107
- { resourceGroupName, clusterName, hosts, options },
108
- restartHostsOperationSpec
109
- );
110
- const poller = new LroEngine(lro, {
111
- resumeFrom: options?.resumeFrom,
109
+ const lro = createLroSpec({
110
+ sendOperationFn,
111
+ args: { resourceGroupName, clusterName, hosts, options },
112
+ spec: restartHostsOperationSpec
113
+ });
114
+ const poller = await createHttpPoller<void, OperationState<void>>(lro, {
115
+ restoreFrom: options?.resumeFrom,
112
116
  intervalInMs: options?.updateIntervalInMs,
113
- lroResourceLocationConfig: "location"
117
+ resourceLocationConfig: "location"
114
118
  });
115
119
  await poller.poll();
116
120
  return poller;
@@ -208,7 +212,7 @@ const restartHostsOperationSpec: coreClient.OperationSpec = {
208
212
  Parameters.resourceGroupName,
209
213
  Parameters.clusterName
210
214
  ],
211
- headerParameters: [Parameters.contentType, Parameters.accept],
215
+ headerParameters: [Parameters.accept, Parameters.contentType],
212
216
  mediaType: "json",
213
217
  serializer
214
218
  };
@@ -7,7 +7,7 @@
7
7
  */
8
8
 
9
9
  import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
- import { PollerLike, PollOperationState } from "@azure/core-lro";
10
+ import { SimplePollerLike, OperationState } from "@azure/core-lro";
11
11
  import {
12
12
  Application,
13
13
  ApplicationsListByClusterOptionalParams,
@@ -62,8 +62,8 @@ export interface Applications {
62
62
  parameters: Application,
63
63
  options?: ApplicationsCreateOptionalParams
64
64
  ): Promise<
65
- PollerLike<
66
- PollOperationState<ApplicationsCreateResponse>,
65
+ SimplePollerLike<
66
+ OperationState<ApplicationsCreateResponse>,
67
67
  ApplicationsCreateResponse
68
68
  >
69
69
  >;
@@ -94,7 +94,7 @@ export interface Applications {
94
94
  clusterName: string,
95
95
  applicationName: string,
96
96
  options?: ApplicationsDeleteOptionalParams
97
- ): Promise<PollerLike<PollOperationState<void>, void>>;
97
+ ): Promise<SimplePollerLike<OperationState<void>, void>>;
98
98
  /**
99
99
  * Deletes the specified application on the HDInsight cluster.
100
100
  * @param resourceGroupName The name of the resource group.
@@ -7,7 +7,7 @@
7
7
  */
8
8
 
9
9
  import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
- import { PollerLike, PollOperationState } from "@azure/core-lro";
10
+ import { SimplePollerLike, OperationState } from "@azure/core-lro";
11
11
  import {
12
12
  Cluster,
13
13
  ClustersListByResourceGroupOptionalParams,
@@ -72,8 +72,8 @@ export interface Clusters {
72
72
  parameters: ClusterCreateParametersExtended,
73
73
  options?: ClustersCreateOptionalParams
74
74
  ): Promise<
75
- PollerLike<
76
- PollOperationState<ClustersCreateResponse>,
75
+ SimplePollerLike<
76
+ OperationState<ClustersCreateResponse>,
77
77
  ClustersCreateResponse
78
78
  >
79
79
  >;
@@ -113,7 +113,7 @@ export interface Clusters {
113
113
  resourceGroupName: string,
114
114
  clusterName: string,
115
115
  options?: ClustersDeleteOptionalParams
116
- ): Promise<PollerLike<PollOperationState<void>, void>>;
116
+ ): Promise<SimplePollerLike<OperationState<void>, void>>;
117
117
  /**
118
118
  * Deletes the specified HDInsight cluster.
119
119
  * @param resourceGroupName The name of the resource group.
@@ -150,7 +150,7 @@ export interface Clusters {
150
150
  roleName: RoleName,
151
151
  parameters: ClusterResizeParameters,
152
152
  options?: ClustersResizeOptionalParams
153
- ): Promise<PollerLike<PollOperationState<void>, void>>;
153
+ ): Promise<SimplePollerLike<OperationState<void>, void>>;
154
154
  /**
155
155
  * Resizes the specified HDInsight cluster to the specified size.
156
156
  * @param resourceGroupName The name of the resource group.
@@ -180,7 +180,7 @@ export interface Clusters {
180
180
  roleName: RoleName,
181
181
  parameters: AutoscaleConfigurationUpdateParameter,
182
182
  options?: ClustersUpdateAutoScaleConfigurationOptionalParams
183
- ): Promise<PollerLike<PollOperationState<void>, void>>;
183
+ ): Promise<SimplePollerLike<OperationState<void>, void>>;
184
184
  /**
185
185
  * Updates the Autoscale Configuration for HDInsight cluster.
186
186
  * @param resourceGroupName The name of the resource group.
@@ -208,7 +208,7 @@ export interface Clusters {
208
208
  clusterName: string,
209
209
  parameters: ClusterDiskEncryptionParameters,
210
210
  options?: ClustersRotateDiskEncryptionKeyOptionalParams
211
- ): Promise<PollerLike<PollOperationState<void>, void>>;
211
+ ): Promise<SimplePollerLike<OperationState<void>, void>>;
212
212
  /**
213
213
  * Rotate disk encryption key of the specified HDInsight cluster.
214
214
  * @param resourceGroupName The name of the resource group.
@@ -245,7 +245,7 @@ export interface Clusters {
245
245
  clusterName: string,
246
246
  parameters: UpdateGatewaySettingsParameters,
247
247
  options?: ClustersUpdateGatewaySettingsOptionalParams
248
- ): Promise<PollerLike<PollOperationState<void>, void>>;
248
+ ): Promise<SimplePollerLike<OperationState<void>, void>>;
249
249
  /**
250
250
  * Configures the gateway settings on the specified cluster.
251
251
  * @param resourceGroupName The name of the resource group.
@@ -284,7 +284,7 @@ export interface Clusters {
284
284
  clusterName: string,
285
285
  parameters: UpdateClusterIdentityCertificateParameters,
286
286
  options?: ClustersUpdateIdentityCertificateOptionalParams
287
- ): Promise<PollerLike<PollOperationState<void>, void>>;
287
+ ): Promise<SimplePollerLike<OperationState<void>, void>>;
288
288
  /**
289
289
  * Updates the cluster identity certificate.
290
290
  * @param resourceGroupName The name of the resource group.
@@ -310,7 +310,7 @@ export interface Clusters {
310
310
  clusterName: string,
311
311
  parameters: ExecuteScriptActionParameters,
312
312
  options?: ClustersExecuteScriptActionsOptionalParams
313
- ): Promise<PollerLike<PollOperationState<void>, void>>;
313
+ ): Promise<SimplePollerLike<OperationState<void>, void>>;
314
314
  /**
315
315
  * Executes script actions on the specified HDInsight cluster.
316
316
  * @param resourceGroupName The name of the resource group.