@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.
- package/CHANGELOG.md +6 -10
- package/README.md +1 -1
- package/dist/index.js +3489 -3399
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/applicationsCreateSample.js +1 -1
- package/dist-esm/samples-dev/applicationsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/applicationsGetAzureAsyncOperationStatusSample.js +1 -1
- package/dist-esm/samples-dev/applicationsGetSample.js +2 -2
- package/dist-esm/samples-dev/applicationsListByClusterSample.js +1 -1
- package/dist-esm/samples-dev/clustersCreateSample.js +26 -13
- package/dist-esm/samples-dev/clustersCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/clustersDeleteSample.js +1 -1
- package/dist-esm/samples-dev/clustersExecuteScriptActionsSample.js +1 -1
- package/dist-esm/samples-dev/clustersGetAzureAsyncOperationStatusSample.js +1 -1
- package/dist-esm/samples-dev/clustersGetGatewaySettingsSample.js +1 -1
- package/dist-esm/samples-dev/clustersGetSample.js +2 -2
- package/dist-esm/samples-dev/clustersListByResourceGroupSample.js +1 -1
- package/dist-esm/samples-dev/clustersListSample.js +1 -1
- package/dist-esm/samples-dev/clustersResizeSample.js +1 -1
- package/dist-esm/samples-dev/clustersRotateDiskEncryptionKeySample.js +1 -1
- package/dist-esm/samples-dev/clustersUpdateAutoScaleConfigurationSample.js +3 -3
- package/dist-esm/samples-dev/clustersUpdateGatewaySettingsSample.js +1 -1
- package/dist-esm/samples-dev/clustersUpdateIdentityCertificateSample.js +1 -1
- package/dist-esm/samples-dev/clustersUpdateSample.js +1 -1
- package/dist-esm/samples-dev/configurationsGetSample.js +1 -1
- package/dist-esm/samples-dev/configurationsListSample.js +1 -1
- package/dist-esm/samples-dev/configurationsUpdateSample.js +2 -2
- package/dist-esm/samples-dev/extensionsCreateSample.js +1 -1
- package/dist-esm/samples-dev/extensionsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/extensionsDisableAzureMonitorSample.js +1 -1
- package/dist-esm/samples-dev/extensionsDisableMonitoringSample.js +1 -1
- package/dist-esm/samples-dev/extensionsEnableAzureMonitorSample.js +1 -1
- package/dist-esm/samples-dev/extensionsEnableMonitoringSample.js +1 -1
- package/dist-esm/samples-dev/extensionsGetAzureAsyncOperationStatusSample.js +1 -1
- package/dist-esm/samples-dev/extensionsGetAzureMonitorStatusSample.js +1 -1
- package/dist-esm/samples-dev/extensionsGetMonitoringStatusSample.js +1 -1
- package/dist-esm/samples-dev/extensionsGetSample.js +1 -1
- package/dist-esm/samples-dev/locationsCheckNameAvailabilitySample.js +1 -1
- package/dist-esm/samples-dev/locationsGetAzureAsyncOperationStatusSample.js +1 -1
- package/dist-esm/samples-dev/locationsGetCapabilitiesSample.js +1 -1
- package/dist-esm/samples-dev/locationsListBillingSpecsSample.js +1 -1
- package/dist-esm/samples-dev/locationsListUsagesSample.js +1 -1
- package/dist-esm/samples-dev/locationsValidateClusterCreateRequestSample.js +2 -1
- package/dist-esm/samples-dev/locationsValidateClusterCreateRequestSample.js.map +1 -1
- package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.js +58 -0
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsListByClusterSample.js +1 -1
- package/dist-esm/samples-dev/privateLinkResourcesGetSample.js +1 -1
- package/dist-esm/samples-dev/privateLinkResourcesListByClusterSample.js +1 -1
- package/dist-esm/samples-dev/scriptActionsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/scriptActionsGetExecutionAsyncOperationStatusSample.js +1 -1
- package/dist-esm/samples-dev/scriptActionsGetExecutionDetailSample.js +1 -1
- package/dist-esm/samples-dev/scriptActionsListByClusterSample.js +1 -1
- package/dist-esm/samples-dev/scriptExecutionHistoryListByClusterSample.js +1 -1
- package/dist-esm/samples-dev/scriptExecutionHistoryPromoteSample.js +1 -1
- package/dist-esm/samples-dev/virtualMachinesGetAsyncOperationStatusSample.js +1 -1
- package/dist-esm/samples-dev/virtualMachinesListHostsSample.js +1 -1
- package/dist-esm/samples-dev/virtualMachinesRestartHostsSample.js +1 -1
- package/dist-esm/src/hDInsightManagementClient.d.ts +6 -6
- package/dist-esm/src/hDInsightManagementClient.d.ts.map +1 -1
- package/dist-esm/src/hDInsightManagementClient.js +8 -8
- package/dist-esm/src/hDInsightManagementClient.js.map +1 -1
- package/dist-esm/src/lroImpl.d.ts +6 -11
- package/dist-esm/src/lroImpl.d.ts.map +1 -1
- package/dist-esm/src/lroImpl.js +12 -20
- package/dist-esm/src/lroImpl.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +696 -694
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +62 -62
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +35 -35
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +1451 -1445
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +12 -12
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +91 -91
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/applications.d.ts +3 -3
- package/dist-esm/src/operations/applications.d.ts.map +1 -1
- package/dist-esm/src/operations/applications.js +30 -16
- package/dist-esm/src/operations/applications.js.map +1 -1
- package/dist-esm/src/operations/clusters.d.ts +9 -9
- package/dist-esm/src/operations/clusters.d.ts.map +1 -1
- package/dist-esm/src/operations/clusters.js +90 -58
- package/dist-esm/src/operations/clusters.js.map +1 -1
- package/dist-esm/src/operations/configurations.d.ts +2 -2
- package/dist-esm/src/operations/configurations.d.ts.map +1 -1
- package/dist-esm/src/operations/configurations.js +19 -15
- package/dist-esm/src/operations/configurations.js.map +1 -1
- package/dist-esm/src/operations/extensions.d.ts +7 -7
- package/dist-esm/src/operations/extensions.d.ts.map +1 -1
- package/dist-esm/src/operations/extensions.js +68 -38
- package/dist-esm/src/operations/extensions.js.map +1 -1
- package/dist-esm/src/operations/index.d.ts +5 -5
- package/dist-esm/src/operations/index.d.ts.map +1 -1
- package/dist-esm/src/operations/index.js +5 -5
- package/dist-esm/src/operations/index.js.map +1 -1
- package/dist-esm/src/operations/locations.js +4 -4
- package/dist-esm/src/operations/locations.js.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.d.ts +3 -3
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.js +32 -24
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
- package/dist-esm/src/operations/virtualMachines.d.ts +2 -2
- package/dist-esm/src/operations/virtualMachines.d.ts.map +1 -1
- package/dist-esm/src/operations/virtualMachines.js +12 -8
- package/dist-esm/src/operations/virtualMachines.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/applications.d.ts +3 -3
- package/dist-esm/src/operationsInterfaces/applications.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/clusters.d.ts +9 -9
- package/dist-esm/src/operationsInterfaces/clusters.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/configurations.d.ts +2 -2
- package/dist-esm/src/operationsInterfaces/configurations.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/extensions.d.ts +7 -7
- package/dist-esm/src/operationsInterfaces/extensions.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +5 -5
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.js +5 -5
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +3 -3
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/virtualMachines.d.ts +2 -2
- package/dist-esm/src/operationsInterfaces/virtualMachines.d.ts.map +1 -1
- package/dist-esm/test/hdinsights_operations_test.spec.d.ts +4 -0
- package/dist-esm/test/hdinsights_operations_test.spec.d.ts.map +1 -0
- package/dist-esm/test/hdinsights_operations_test.spec.js +86 -0
- package/dist-esm/test/hdinsights_operations_test.spec.js.map +1 -0
- package/package.json +7 -7
- package/review/arm-hdinsight.api.md +23 -22
- package/src/hDInsightManagementClient.ts +24 -24
- package/src/lroImpl.ts +31 -23
- package/src/models/index.ts +838 -836
- package/src/models/mappers.ts +1559 -1553
- package/src/models/parameters.ts +101 -101
- package/src/operations/applications.ts +40 -27
- package/src/operations/clusters.ts +106 -99
- package/src/operations/configurations.ts +18 -14
- package/src/operations/extensions.ts +78 -68
- package/src/operations/index.ts +5 -5
- package/src/operations/locations.ts +4 -4
- package/src/operations/privateEndpointConnections.ts +31 -24
- package/src/operations/virtualMachines.ts +17 -13
- package/src/operationsInterfaces/applications.ts +4 -4
- package/src/operationsInterfaces/clusters.ts +10 -10
- package/src/operationsInterfaces/configurations.ts +2 -2
- package/src/operationsInterfaces/extensions.ts +7 -7
- package/src/operationsInterfaces/index.ts +5 -5
- package/src/operationsInterfaces/privateEndpointConnections.ts +4 -4
- package/src/operationsInterfaces/virtualMachines.ts +2 -2
- package/types/arm-hdinsight.d.ts +29 -27
- package/types/tsdoc-metadata.json +1 -1
- package/dist-esm/test/sampleTest.d.ts +0 -2
- package/dist-esm/test/sampleTest.d.ts.map +0 -1
- package/dist-esm/test/sampleTest.js +0 -38
- 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 {
|
|
17
|
-
|
|
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
|
-
|
|
206
|
-
|
|
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
|
|
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 =
|
|
250
|
-
|
|
251
|
-
{ resourceGroupName, clusterName, parameters, options },
|
|
252
|
-
createOperationSpec
|
|
253
|
-
);
|
|
254
|
-
const poller =
|
|
255
|
-
|
|
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
|
-
|
|
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<
|
|
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
|
|
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 =
|
|
355
|
-
|
|
356
|
-
{ resourceGroupName, clusterName, options },
|
|
357
|
-
deleteOperationSpec
|
|
358
|
-
);
|
|
359
|
-
const poller =
|
|
360
|
-
|
|
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
|
-
|
|
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<
|
|
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
|
|
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 =
|
|
474
|
-
|
|
475
|
-
{ resourceGroupName, clusterName, roleName, parameters, options },
|
|
476
|
-
resizeOperationSpec
|
|
477
|
-
);
|
|
478
|
-
const poller =
|
|
479
|
-
|
|
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
|
-
|
|
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<
|
|
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
|
|
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 =
|
|
567
|
-
|
|
568
|
-
{ resourceGroupName, clusterName, roleName, parameters, options },
|
|
569
|
-
updateAutoScaleConfigurationOperationSpec
|
|
570
|
-
);
|
|
571
|
-
const poller =
|
|
572
|
-
|
|
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
|
-
|
|
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<
|
|
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
|
|
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 =
|
|
668
|
-
|
|
669
|
-
{ resourceGroupName, clusterName, parameters, options },
|
|
670
|
-
rotateDiskEncryptionKeyOperationSpec
|
|
671
|
-
);
|
|
672
|
-
const poller =
|
|
673
|
-
|
|
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
|
-
|
|
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<
|
|
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
|
|
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 =
|
|
773
|
-
|
|
774
|
-
{ resourceGroupName, clusterName, parameters, options },
|
|
775
|
-
updateGatewaySettingsOperationSpec
|
|
776
|
-
);
|
|
777
|
-
const poller =
|
|
778
|
-
|
|
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
|
-
|
|
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<
|
|
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
|
|
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 =
|
|
880
|
-
|
|
881
|
-
{ resourceGroupName, clusterName, parameters, options },
|
|
882
|
-
updateIdentityCertificateOperationSpec
|
|
883
|
-
);
|
|
884
|
-
const poller =
|
|
885
|
-
|
|
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
|
-
|
|
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<
|
|
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
|
|
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 =
|
|
968
|
-
|
|
969
|
-
{ resourceGroupName, clusterName, parameters, options },
|
|
970
|
-
executeScriptActionsOperationSpec
|
|
971
|
-
);
|
|
972
|
-
const poller =
|
|
973
|
-
|
|
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
|
-
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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 {
|
|
15
|
-
|
|
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<
|
|
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
|
|
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 =
|
|
109
|
-
|
|
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 =
|
|
120
|
-
|
|
121
|
+
spec: updateOperationSpec
|
|
122
|
+
});
|
|
123
|
+
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
|
|
124
|
+
restoreFrom: options?.resumeFrom,
|
|
121
125
|
intervalInMs: options?.updateIntervalInMs,
|
|
122
|
-
|
|
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.
|
|
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.
|
|
225
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
222
226
|
mediaType: "json",
|
|
223
227
|
serializer
|
|
224
228
|
};
|