@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
|
@@ -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
|
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<
|
|
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
|
|
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 =
|
|
101
|
-
|
|
102
|
-
{ resourceGroupName, clusterName, parameters, options },
|
|
103
|
-
enableMonitoringOperationSpec
|
|
104
|
-
);
|
|
105
|
-
const poller =
|
|
106
|
-
|
|
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
|
-
|
|
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<
|
|
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
|
|
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 =
|
|
204
|
-
|
|
205
|
-
{ resourceGroupName, clusterName, options },
|
|
206
|
-
disableMonitoringOperationSpec
|
|
207
|
-
);
|
|
208
|
-
const poller =
|
|
209
|
-
|
|
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
|
-
|
|
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<
|
|
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
|
|
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 =
|
|
289
|
-
|
|
290
|
-
{ resourceGroupName, clusterName, parameters, options },
|
|
291
|
-
enableAzureMonitorOperationSpec
|
|
292
|
-
);
|
|
293
|
-
const poller =
|
|
294
|
-
|
|
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
|
-
|
|
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<
|
|
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
|
|
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 =
|
|
392
|
-
|
|
393
|
-
{ resourceGroupName, clusterName, options },
|
|
394
|
-
disableAzureMonitorOperationSpec
|
|
395
|
-
);
|
|
396
|
-
const poller =
|
|
397
|
-
|
|
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
|
-
|
|
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<
|
|
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
|
|
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 =
|
|
479
|
-
|
|
480
|
-
{
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
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
|
-
|
|
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<
|
|
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
|
|
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 =
|
|
589
|
-
|
|
590
|
-
{ resourceGroupName, clusterName, extensionName, options },
|
|
591
|
-
deleteOperationSpec
|
|
592
|
-
);
|
|
593
|
-
const poller =
|
|
594
|
-
|
|
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
|
-
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
820
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
811
821
|
mediaType: "json",
|
|
812
822
|
serializer
|
|
813
823
|
};
|
package/src/operations/index.ts
CHANGED
|
@@ -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 "./
|
|
10
|
+
export * from "./clusters";
|
|
12
11
|
export * from "./configurations";
|
|
13
12
|
export * from "./extensions";
|
|
14
|
-
export * from "./
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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 {
|
|
17
|
-
|
|
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
|
-
|
|
162
|
-
|
|
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
|
|
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 =
|
|
206
|
-
|
|
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 =
|
|
217
|
-
|
|
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
|
-
|
|
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<
|
|
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
|
|
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 =
|
|
327
|
-
|
|
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 =
|
|
337
|
-
|
|
341
|
+
spec: deleteOperationSpec
|
|
342
|
+
});
|
|
343
|
+
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
|
|
344
|
+
restoreFrom: options?.resumeFrom,
|
|
338
345
|
intervalInMs: options?.updateIntervalInMs,
|
|
339
|
-
|
|
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.
|
|
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 {
|
|
15
|
-
|
|
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<
|
|
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
|
|
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 =
|
|
106
|
-
|
|
107
|
-
{ resourceGroupName, clusterName, hosts, options },
|
|
108
|
-
restartHostsOperationSpec
|
|
109
|
-
);
|
|
110
|
-
const poller =
|
|
111
|
-
|
|
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
|
-
|
|
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.
|
|
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 {
|
|
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
|
-
|
|
66
|
-
|
|
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<
|
|
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 {
|
|
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
|
-
|
|
76
|
-
|
|
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<
|
|
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<
|
|
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<
|
|
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<
|
|
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<
|
|
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<
|
|
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<
|
|
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.
|