@azure/arm-hdinsight 0.24.0 → 1.1.0
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 +5 -0
- package/{LICENSE.txt → LICENSE} +1 -1
- package/README.md +70 -82
- package/dist/index.js +7702 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/src/hDInsightManagementClient.d.ts +29 -0
- package/dist-esm/src/hDInsightManagementClient.d.ts.map +1 -0
- package/dist-esm/src/hDInsightManagementClient.js +62 -0
- package/dist-esm/src/hDInsightManagementClient.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/{esm/models/virtualMachinesMappers.js → dist-esm/src/index.js} +5 -2
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +1966 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +133 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +111 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +1516 -1670
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +37 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +280 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/applications.d.ts +90 -0
- package/dist-esm/src/operations/applications.d.ts.map +1 -0
- package/dist-esm/src/operations/applications.js +367 -0
- package/dist-esm/src/operations/applications.js.map +1 -0
- package/dist-esm/src/operations/clusters.d.ts +214 -0
- package/dist-esm/src/operations/clusters.d.ts.map +1 -0
- package/dist-esm/src/operations/clusters.js +979 -0
- package/dist-esm/src/operations/clusters.js.map +1 -0
- package/dist-esm/src/operations/configurations.d.ts +54 -0
- package/dist-esm/src/operations/configurations.d.ts.map +1 -0
- package/dist-esm/src/operations/configurations.js +178 -0
- package/dist-esm/src/operations/configurations.js.map +1 -0
- package/dist-esm/src/operations/extensions.d.ts +139 -0
- package/dist-esm/src/operations/extensions.d.ts.map +1 -0
- package/dist-esm/src/operations/extensions.js +602 -0
- package/dist-esm/src/operations/extensions.js.map +1 -0
- package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/index.js +1 -2
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/locations.d.ts +52 -0
- package/dist-esm/src/operations/locations.d.ts.map +1 -0
- package/dist-esm/src/operations/locations.js +199 -0
- package/dist-esm/src/operations/locations.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +32 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +120 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/privateEndpointConnections.d.ts +81 -0
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -0
- package/dist-esm/src/operations/privateEndpointConnections.js +349 -0
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -0
- package/dist-esm/src/operations/privateLinkResources.d.ts +28 -0
- package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -0
- package/dist-esm/src/operations/privateLinkResources.js +85 -0
- package/dist-esm/src/operations/privateLinkResources.js.map +1 -0
- package/dist-esm/src/operations/scriptActions.d.ts +62 -0
- package/dist-esm/src/operations/scriptActions.d.ts.map +1 -0
- package/dist-esm/src/operations/scriptActions.js +232 -0
- package/dist-esm/src/operations/scriptActions.js.map +1 -0
- package/dist-esm/src/operations/scriptExecutionHistory.d.ts +46 -0
- package/dist-esm/src/operations/scriptExecutionHistory.d.ts.map +1 -0
- package/dist-esm/src/operations/scriptExecutionHistory.js +167 -0
- package/dist-esm/src/operations/scriptExecutionHistory.js.map +1 -0
- package/dist-esm/src/operations/virtualMachines.d.ts +45 -0
- package/dist-esm/src/operations/virtualMachines.d.ts.map +1 -0
- package/dist-esm/src/operations/virtualMachines.js +169 -0
- package/dist-esm/src/operations/virtualMachines.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/applications.d.ts +65 -0
- package/dist-esm/src/operationsInterfaces/applications.d.ts.map +1 -0
- package/{src/models/configurationsMappers.ts → dist-esm/src/operationsInterfaces/applications.js} +2 -5
- package/dist-esm/src/operationsInterfaces/applications.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/clusters.d.ts +178 -0
- package/dist-esm/src/operationsInterfaces/clusters.d.ts.map +1 -0
- package/{esm/models/index.js → dist-esm/src/operationsInterfaces/clusters.js} +2 -1
- package/dist-esm/src/operationsInterfaces/clusters.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/configurations.d.ts +46 -0
- package/dist-esm/src/operationsInterfaces/configurations.d.ts.map +1 -0
- package/{src/models/virtualMachinesMappers.ts → dist-esm/src/operationsInterfaces/configurations.js} +2 -7
- package/dist-esm/src/operationsInterfaces/configurations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/extensions.d.ts +131 -0
- package/dist-esm/src/operationsInterfaces/extensions.d.ts.map +1 -0
- package/{esm/models/configurationsMappers.js → dist-esm/src/operationsInterfaces/extensions.js} +2 -2
- package/dist-esm/src/operationsInterfaces/extensions.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +12 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +19 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/locations.d.ts +44 -0
- package/dist-esm/src/operationsInterfaces/locations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/locations.js +9 -0
- package/dist-esm/src/operationsInterfaces/locations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +56 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js +9 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts +20 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.js +9 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/scriptActions.d.ts +37 -0
- package/dist-esm/src/operationsInterfaces/scriptActions.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/scriptActions.js +9 -0
- package/dist-esm/src/operationsInterfaces/scriptActions.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/scriptExecutionHistory.d.ts +21 -0
- package/dist-esm/src/operationsInterfaces/scriptExecutionHistory.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/scriptExecutionHistory.js +9 -0
- package/dist-esm/src/operationsInterfaces/scriptExecutionHistory.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/virtualMachines.d.ts +37 -0
- package/dist-esm/src/operationsInterfaces/virtualMachines.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/virtualMachines.js +9 -0
- package/dist-esm/src/operationsInterfaces/virtualMachines.js.map +1 -0
- package/dist-esm/test/sampleTest.d.ts +2 -0
- package/dist-esm/test/sampleTest.d.ts.map +1 -0
- package/dist-esm/test/sampleTest.js +40 -0
- package/dist-esm/test/sampleTest.js.map +1 -0
- package/package.json +65 -32
- package/review/arm-hdinsight.api.md +1678 -0
- package/rollup.config.js +181 -30
- package/src/hDInsightManagementClient.ts +105 -53
- package/src/{models/scriptExecutionHistoryMappers.ts → index.ts} +4 -7
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +1810 -2954
- package/src/models/mappers.ts +1607 -1764
- package/src/models/parameters.ts +215 -53
- package/src/operations/applications.ts +376 -247
- package/src/operations/clusters.ts +1038 -649
- package/src/operations/configurations.ts +162 -154
- package/src/operations/extensions.ts +644 -410
- package/src/operations/index.ts +1 -2
- package/src/operations/locations.ts +143 -239
- package/src/operations/operations.ts +85 -73
- package/src/operations/privateEndpointConnections.ts +345 -182
- package/src/operations/privateLinkResources.ts +60 -92
- package/src/operations/scriptActions.ts +202 -206
- package/src/operations/scriptExecutionHistory.ts +155 -123
- package/src/operations/virtualMachines.ts +157 -154
- package/src/operationsInterfaces/applications.ts +126 -0
- package/src/operationsInterfaces/clusters.ts +327 -0
- package/src/operationsInterfaces/configurations.ts +77 -0
- package/src/operationsInterfaces/extensions.ts +234 -0
- package/src/operationsInterfaces/index.ts +19 -0
- package/src/operationsInterfaces/locations.ts +88 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/privateEndpointConnections.ts +109 -0
- package/src/operationsInterfaces/privateLinkResources.ts +42 -0
- package/src/operationsInterfaces/scriptActions.ts +73 -0
- package/src/operationsInterfaces/scriptExecutionHistory.ts +43 -0
- package/src/operationsInterfaces/virtualMachines.ts +70 -0
- package/tsconfig.json +3 -3
- package/types/arm-hdinsight.d.ts +2866 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-hdinsight.js +0 -7464
- package/dist/arm-hdinsight.js.map +0 -1
- package/dist/arm-hdinsight.min.js +0 -1
- package/dist/arm-hdinsight.min.js.map +0 -1
- package/esm/hDInsightManagementClient.d.ts +0 -35
- package/esm/hDInsightManagementClient.d.ts.map +0 -1
- package/esm/hDInsightManagementClient.js +0 -48
- package/esm/hDInsightManagementClient.js.map +0 -1
- package/esm/hDInsightManagementClientContext.d.ts +0 -23
- package/esm/hDInsightManagementClientContext.d.ts.map +0 -1
- package/esm/hDInsightManagementClientContext.js +0 -61
- package/esm/hDInsightManagementClientContext.js.map +0 -1
- package/esm/models/applicationsMappers.d.ts +0 -2
- package/esm/models/applicationsMappers.d.ts.map +0 -1
- package/esm/models/applicationsMappers.js +0 -9
- package/esm/models/applicationsMappers.js.map +0 -1
- package/esm/models/clustersMappers.d.ts +0 -2
- package/esm/models/clustersMappers.d.ts.map +0 -1
- package/esm/models/clustersMappers.js +0 -9
- package/esm/models/clustersMappers.js.map +0 -1
- package/esm/models/configurationsMappers.d.ts +0 -2
- package/esm/models/configurationsMappers.d.ts.map +0 -1
- package/esm/models/configurationsMappers.js.map +0 -1
- package/esm/models/extensionsMappers.d.ts +0 -2
- package/esm/models/extensionsMappers.d.ts.map +0 -1
- package/esm/models/extensionsMappers.js +0 -9
- package/esm/models/extensionsMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -3163
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js.map +0 -1
- package/esm/models/locationsMappers.d.ts +0 -2
- package/esm/models/locationsMappers.d.ts.map +0 -1
- package/esm/models/locationsMappers.js +0 -9
- package/esm/models/locationsMappers.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -113
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/operationsMappers.d.ts +0 -2
- package/esm/models/operationsMappers.d.ts.map +0 -1
- package/esm/models/operationsMappers.js +0 -9
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -18
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -172
- package/esm/models/parameters.js.map +0 -1
- package/esm/models/privateEndpointConnectionsMappers.d.ts +0 -2
- package/esm/models/privateEndpointConnectionsMappers.d.ts.map +0 -1
- package/esm/models/privateEndpointConnectionsMappers.js +0 -9
- package/esm/models/privateEndpointConnectionsMappers.js.map +0 -1
- package/esm/models/privateLinkResourcesMappers.d.ts +0 -2
- package/esm/models/privateLinkResourcesMappers.d.ts.map +0 -1
- package/esm/models/privateLinkResourcesMappers.js +0 -9
- package/esm/models/privateLinkResourcesMappers.js.map +0 -1
- package/esm/models/scriptActionsMappers.d.ts +0 -2
- package/esm/models/scriptActionsMappers.d.ts.map +0 -1
- package/esm/models/scriptActionsMappers.js +0 -9
- package/esm/models/scriptActionsMappers.js.map +0 -1
- package/esm/models/scriptExecutionHistoryMappers.d.ts +0 -2
- package/esm/models/scriptExecutionHistoryMappers.d.ts.map +0 -1
- package/esm/models/scriptExecutionHistoryMappers.js +0 -9
- package/esm/models/scriptExecutionHistoryMappers.js.map +0 -1
- package/esm/models/virtualMachinesMappers.d.ts +0 -2
- package/esm/models/virtualMachinesMappers.d.ts.map +0 -1
- package/esm/models/virtualMachinesMappers.js.map +0 -1
- package/esm/operations/applications.d.ts +0 -142
- package/esm/operations/applications.d.ts.map +0 -1
- package/esm/operations/applications.js +0 -268
- package/esm/operations/applications.js.map +0 -1
- package/esm/operations/clusters.d.ts +0 -315
- package/esm/operations/clusters.d.ts.map +0 -1
- package/esm/operations/clusters.js +0 -710
- package/esm/operations/clusters.js.map +0 -1
- package/esm/operations/configurations.d.ts +0 -90
- package/esm/operations/configurations.d.ts.map +0 -1
- package/esm/operations/configurations.js +0 -173
- package/esm/operations/configurations.js.map +0 -1
- package/esm/operations/extensions.d.ts +0 -213
- package/esm/operations/extensions.d.ts.map +0 -1
- package/esm/operations/extensions.js +0 -477
- package/esm/operations/extensions.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/locations.d.ts +0 -130
- package/esm/operations/locations.d.ts.map +0 -1
- package/esm/operations/locations.js +0 -213
- package/esm/operations/locations.js.map +0 -1
- package/esm/operations/operations.d.ts +0 -46
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -79
- package/esm/operations/operations.js.map +0 -1
- package/esm/operations/privateEndpointConnections.d.ts +0 -115
- package/esm/operations/privateEndpointConnections.d.ts.map +0 -1
- package/esm/operations/privateEndpointConnections.js +0 -236
- package/esm/operations/privateEndpointConnections.js.map +0 -1
- package/esm/operations/privateLinkResources.d.ts +0 -58
- package/esm/operations/privateLinkResources.d.ts.map +0 -1
- package/esm/operations/privateLinkResources.js +0 -90
- package/esm/operations/privateLinkResources.js.map +0 -1
- package/esm/operations/scriptActions.d.ts +0 -124
- package/esm/operations/scriptActions.d.ts.map +0 -1
- package/esm/operations/scriptActions.js +0 -184
- package/esm/operations/scriptActions.js.map +0 -1
- package/esm/operations/scriptExecutionHistory.d.ts +0 -76
- package/esm/operations/scriptExecutionHistory.d.ts.map +0 -1
- package/esm/operations/scriptExecutionHistory.js +0 -117
- package/esm/operations/scriptExecutionHistory.js.map +0 -1
- package/esm/operations/virtualMachines.d.ts +0 -77
- package/esm/operations/virtualMachines.d.ts.map +0 -1
- package/esm/operations/virtualMachines.js +0 -167
- package/esm/operations/virtualMachines.js.map +0 -1
- package/src/hDInsightManagementClientContext.ts +0 -68
- package/src/models/applicationsMappers.ts +0 -66
- package/src/models/clustersMappers.ts +0 -77
- package/src/models/extensionsMappers.ts +0 -20
- package/src/models/locationsMappers.ts +0 -66
- package/src/models/operationsMappers.ts +0 -18
- package/src/models/privateEndpointConnectionsMappers.ts +0 -65
- package/src/models/privateLinkResourcesMappers.ts +0 -65
- package/src/models/scriptActionsMappers.ts +0 -17
|
@@ -3,436 +3,848 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
7
|
-
* regenerated.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
7
|
*/
|
|
9
8
|
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import * as
|
|
13
|
-
import * as Mappers from "../models/
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { Clusters } from "../operationsInterfaces";
|
|
11
|
+
import * as coreClient from "@azure/core-client";
|
|
12
|
+
import * as Mappers from "../models/mappers";
|
|
14
13
|
import * as Parameters from "../models/parameters";
|
|
15
|
-
import {
|
|
14
|
+
import { HDInsightManagementClient } from "../hDInsightManagementClient";
|
|
15
|
+
import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
|
|
16
|
+
import { LroImpl } from "../lroImpl";
|
|
17
|
+
import {
|
|
18
|
+
Cluster,
|
|
19
|
+
ClustersListByResourceGroupNextOptionalParams,
|
|
20
|
+
ClustersListByResourceGroupOptionalParams,
|
|
21
|
+
ClustersListNextOptionalParams,
|
|
22
|
+
ClustersListOptionalParams,
|
|
23
|
+
ClusterCreateParametersExtended,
|
|
24
|
+
ClustersCreateOptionalParams,
|
|
25
|
+
ClustersCreateResponse,
|
|
26
|
+
ClusterPatchParameters,
|
|
27
|
+
ClustersUpdateOptionalParams,
|
|
28
|
+
ClustersUpdateResponse,
|
|
29
|
+
ClustersDeleteOptionalParams,
|
|
30
|
+
ClustersGetOptionalParams,
|
|
31
|
+
ClustersGetResponse,
|
|
32
|
+
ClustersListByResourceGroupResponse,
|
|
33
|
+
ClusterResizeParameters,
|
|
34
|
+
RoleName,
|
|
35
|
+
ClustersResizeOptionalParams,
|
|
36
|
+
AutoscaleConfigurationUpdateParameter,
|
|
37
|
+
ClustersUpdateAutoScaleConfigurationOptionalParams,
|
|
38
|
+
ClustersListResponse,
|
|
39
|
+
ClusterDiskEncryptionParameters,
|
|
40
|
+
ClustersRotateDiskEncryptionKeyOptionalParams,
|
|
41
|
+
ClustersGetGatewaySettingsOptionalParams,
|
|
42
|
+
ClustersGetGatewaySettingsResponse,
|
|
43
|
+
UpdateGatewaySettingsParameters,
|
|
44
|
+
ClustersUpdateGatewaySettingsOptionalParams,
|
|
45
|
+
ClustersGetAzureAsyncOperationStatusOptionalParams,
|
|
46
|
+
ClustersGetAzureAsyncOperationStatusResponse,
|
|
47
|
+
UpdateClusterIdentityCertificateParameters,
|
|
48
|
+
ClustersUpdateIdentityCertificateOptionalParams,
|
|
49
|
+
ExecuteScriptActionParameters,
|
|
50
|
+
ClustersExecuteScriptActionsOptionalParams,
|
|
51
|
+
ClustersListByResourceGroupNextResponse,
|
|
52
|
+
ClustersListNextResponse
|
|
53
|
+
} from "../models";
|
|
16
54
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
55
|
+
/// <reference lib="esnext.asynciterable" />
|
|
56
|
+
/** Class containing Clusters operations. */
|
|
57
|
+
export class ClustersImpl implements Clusters {
|
|
58
|
+
private readonly client: HDInsightManagementClient;
|
|
20
59
|
|
|
21
60
|
/**
|
|
22
|
-
*
|
|
23
|
-
* @param
|
|
61
|
+
* Initialize a new instance of the class Clusters class.
|
|
62
|
+
* @param client Reference to the service client
|
|
24
63
|
*/
|
|
25
|
-
constructor(client:
|
|
64
|
+
constructor(client: HDInsightManagementClient) {
|
|
26
65
|
this.client = client;
|
|
27
66
|
}
|
|
28
67
|
|
|
29
68
|
/**
|
|
30
|
-
*
|
|
69
|
+
* Lists the HDInsight clusters in a resource group.
|
|
31
70
|
* @param resourceGroupName The name of the resource group.
|
|
32
|
-
* @param
|
|
33
|
-
* @param parameters The cluster create request.
|
|
34
|
-
* @param [options] The optional parameters
|
|
35
|
-
* @returns Promise<Models.ClustersCreateResponse>
|
|
71
|
+
* @param options The options parameters.
|
|
36
72
|
*/
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
73
|
+
public listByResourceGroup(
|
|
74
|
+
resourceGroupName: string,
|
|
75
|
+
options?: ClustersListByResourceGroupOptionalParams
|
|
76
|
+
): PagedAsyncIterableIterator<Cluster> {
|
|
77
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
78
|
+
return {
|
|
79
|
+
next() {
|
|
80
|
+
return iter.next();
|
|
81
|
+
},
|
|
82
|
+
[Symbol.asyncIterator]() {
|
|
83
|
+
return this;
|
|
84
|
+
},
|
|
85
|
+
byPage: () => {
|
|
86
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options);
|
|
87
|
+
}
|
|
88
|
+
};
|
|
40
89
|
}
|
|
41
90
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* @param resourceGroupName The name of the resource group.
|
|
53
|
-
* @param clusterName The name of the cluster.
|
|
54
|
-
* @param parameters The cluster patch request.
|
|
55
|
-
* @param callback The callback
|
|
56
|
-
*/
|
|
57
|
-
update(resourceGroupName: string, clusterName: string, parameters: Models.ClusterPatchParameters, callback: msRest.ServiceCallback<Models.Cluster>): void;
|
|
58
|
-
/**
|
|
59
|
-
* @param resourceGroupName The name of the resource group.
|
|
60
|
-
* @param clusterName The name of the cluster.
|
|
61
|
-
* @param parameters The cluster patch request.
|
|
62
|
-
* @param options The optional parameters
|
|
63
|
-
* @param callback The callback
|
|
64
|
-
*/
|
|
65
|
-
update(resourceGroupName: string, clusterName: string, parameters: Models.ClusterPatchParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.Cluster>): void;
|
|
66
|
-
update(resourceGroupName: string, clusterName: string, parameters: Models.ClusterPatchParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.Cluster>, callback?: msRest.ServiceCallback<Models.Cluster>): Promise<Models.ClustersUpdateResponse> {
|
|
67
|
-
return this.client.sendOperationRequest(
|
|
68
|
-
{
|
|
91
|
+
private async *listByResourceGroupPagingPage(
|
|
92
|
+
resourceGroupName: string,
|
|
93
|
+
options?: ClustersListByResourceGroupOptionalParams
|
|
94
|
+
): AsyncIterableIterator<Cluster[]> {
|
|
95
|
+
let result = await this._listByResourceGroup(resourceGroupName, options);
|
|
96
|
+
yield result.value || [];
|
|
97
|
+
let continuationToken = result.nextLink;
|
|
98
|
+
while (continuationToken) {
|
|
99
|
+
result = await this._listByResourceGroupNext(
|
|
69
100
|
resourceGroupName,
|
|
70
|
-
|
|
71
|
-
parameters,
|
|
101
|
+
continuationToken,
|
|
72
102
|
options
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
103
|
+
);
|
|
104
|
+
continuationToken = result.nextLink;
|
|
105
|
+
yield result.value || [];
|
|
106
|
+
}
|
|
76
107
|
}
|
|
77
108
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
109
|
+
private async *listByResourceGroupPagingAll(
|
|
110
|
+
resourceGroupName: string,
|
|
111
|
+
options?: ClustersListByResourceGroupOptionalParams
|
|
112
|
+
): AsyncIterableIterator<Cluster> {
|
|
113
|
+
for await (const page of this.listByResourceGroupPagingPage(
|
|
114
|
+
resourceGroupName,
|
|
115
|
+
options
|
|
116
|
+
)) {
|
|
117
|
+
yield* page;
|
|
118
|
+
}
|
|
88
119
|
}
|
|
89
120
|
|
|
90
121
|
/**
|
|
91
|
-
*
|
|
92
|
-
* @param
|
|
93
|
-
* @param clusterName The name of the cluster.
|
|
94
|
-
* @param [options] The optional parameters
|
|
95
|
-
* @returns Promise<Models.ClustersGetResponse>
|
|
96
|
-
*/
|
|
97
|
-
get(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase): Promise<Models.ClustersGetResponse>;
|
|
98
|
-
/**
|
|
99
|
-
* @param resourceGroupName The name of the resource group.
|
|
100
|
-
* @param clusterName The name of the cluster.
|
|
101
|
-
* @param callback The callback
|
|
102
|
-
*/
|
|
103
|
-
get(resourceGroupName: string, clusterName: string, callback: msRest.ServiceCallback<Models.Cluster>): void;
|
|
104
|
-
/**
|
|
105
|
-
* @param resourceGroupName The name of the resource group.
|
|
106
|
-
* @param clusterName The name of the cluster.
|
|
107
|
-
* @param options The optional parameters
|
|
108
|
-
* @param callback The callback
|
|
122
|
+
* Lists all the HDInsight clusters under the subscription.
|
|
123
|
+
* @param options The options parameters.
|
|
109
124
|
*/
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
125
|
+
public list(
|
|
126
|
+
options?: ClustersListOptionalParams
|
|
127
|
+
): PagedAsyncIterableIterator<Cluster> {
|
|
128
|
+
const iter = this.listPagingAll(options);
|
|
129
|
+
return {
|
|
130
|
+
next() {
|
|
131
|
+
return iter.next();
|
|
117
132
|
},
|
|
118
|
-
|
|
119
|
-
|
|
133
|
+
[Symbol.asyncIterator]() {
|
|
134
|
+
return this;
|
|
135
|
+
},
|
|
136
|
+
byPage: () => {
|
|
137
|
+
return this.listPagingPage(options);
|
|
138
|
+
}
|
|
139
|
+
};
|
|
120
140
|
}
|
|
121
141
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
return this.client.sendOperationRequest(
|
|
142
|
-
{
|
|
143
|
-
resourceGroupName,
|
|
144
|
-
options
|
|
145
|
-
},
|
|
146
|
-
listByResourceGroupOperationSpec,
|
|
147
|
-
callback) as Promise<Models.ClustersListByResourceGroupResponse>;
|
|
142
|
+
private async *listPagingPage(
|
|
143
|
+
options?: ClustersListOptionalParams
|
|
144
|
+
): AsyncIterableIterator<Cluster[]> {
|
|
145
|
+
let result = await this._list(options);
|
|
146
|
+
yield result.value || [];
|
|
147
|
+
let continuationToken = result.nextLink;
|
|
148
|
+
while (continuationToken) {
|
|
149
|
+
result = await this._listNext(continuationToken, options);
|
|
150
|
+
continuationToken = result.nextLink;
|
|
151
|
+
yield result.value || [];
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
private async *listPagingAll(
|
|
156
|
+
options?: ClustersListOptionalParams
|
|
157
|
+
): AsyncIterableIterator<Cluster> {
|
|
158
|
+
for await (const page of this.listPagingPage(options)) {
|
|
159
|
+
yield* page;
|
|
160
|
+
}
|
|
148
161
|
}
|
|
149
162
|
|
|
150
163
|
/**
|
|
151
|
-
*
|
|
164
|
+
* Creates a new HDInsight cluster with the specified parameters.
|
|
152
165
|
* @param resourceGroupName The name of the resource group.
|
|
153
166
|
* @param clusterName The name of the cluster.
|
|
154
|
-
* @param parameters The
|
|
155
|
-
* @param
|
|
156
|
-
* @returns Promise<msRest.RestResponse>
|
|
167
|
+
* @param parameters The cluster create request.
|
|
168
|
+
* @param options The options parameters.
|
|
157
169
|
*/
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
170
|
+
async beginCreate(
|
|
171
|
+
resourceGroupName: string,
|
|
172
|
+
clusterName: string,
|
|
173
|
+
parameters: ClusterCreateParametersExtended,
|
|
174
|
+
options?: ClustersCreateOptionalParams
|
|
175
|
+
): Promise<
|
|
176
|
+
PollerLike<
|
|
177
|
+
PollOperationState<ClustersCreateResponse>,
|
|
178
|
+
ClustersCreateResponse
|
|
179
|
+
>
|
|
180
|
+
> {
|
|
181
|
+
const directSendOperation = async (
|
|
182
|
+
args: coreClient.OperationArguments,
|
|
183
|
+
spec: coreClient.OperationSpec
|
|
184
|
+
): Promise<ClustersCreateResponse> => {
|
|
185
|
+
return this.client.sendOperationRequest(args, spec);
|
|
186
|
+
};
|
|
187
|
+
const sendOperation = async (
|
|
188
|
+
args: coreClient.OperationArguments,
|
|
189
|
+
spec: coreClient.OperationSpec
|
|
190
|
+
) => {
|
|
191
|
+
let currentRawResponse:
|
|
192
|
+
| coreClient.FullOperationResponse
|
|
193
|
+
| undefined = undefined;
|
|
194
|
+
const providedCallback = args.options?.onResponse;
|
|
195
|
+
const callback: coreClient.RawResponseCallback = (
|
|
196
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
197
|
+
flatResponse: unknown
|
|
198
|
+
) => {
|
|
199
|
+
currentRawResponse = rawResponse;
|
|
200
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
201
|
+
};
|
|
202
|
+
const updatedArgs = {
|
|
203
|
+
...args,
|
|
204
|
+
options: {
|
|
205
|
+
...args.options,
|
|
206
|
+
onResponse: callback
|
|
207
|
+
}
|
|
208
|
+
};
|
|
209
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
210
|
+
return {
|
|
211
|
+
flatResponse,
|
|
212
|
+
rawResponse: {
|
|
213
|
+
statusCode: currentRawResponse!.status,
|
|
214
|
+
body: currentRawResponse!.parsedBody,
|
|
215
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
216
|
+
}
|
|
217
|
+
};
|
|
218
|
+
};
|
|
219
|
+
|
|
220
|
+
const lro = new LroImpl(
|
|
221
|
+
sendOperation,
|
|
222
|
+
{ resourceGroupName, clusterName, parameters, options },
|
|
223
|
+
createOperationSpec
|
|
224
|
+
);
|
|
225
|
+
return new LroEngine(lro, {
|
|
226
|
+
resumeFrom: options?.resumeFrom,
|
|
227
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
228
|
+
lroResourceLocationConfig: "location"
|
|
229
|
+
});
|
|
161
230
|
}
|
|
162
231
|
|
|
163
232
|
/**
|
|
164
|
-
*
|
|
233
|
+
* Creates a new HDInsight cluster with the specified parameters.
|
|
165
234
|
* @param resourceGroupName The name of the resource group.
|
|
166
235
|
* @param clusterName The name of the cluster.
|
|
167
|
-
* @param parameters The
|
|
168
|
-
* @param
|
|
169
|
-
* @returns Promise<msRest.RestResponse>
|
|
236
|
+
* @param parameters The cluster create request.
|
|
237
|
+
* @param options The options parameters.
|
|
170
238
|
*/
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
239
|
+
async beginCreateAndWait(
|
|
240
|
+
resourceGroupName: string,
|
|
241
|
+
clusterName: string,
|
|
242
|
+
parameters: ClusterCreateParametersExtended,
|
|
243
|
+
options?: ClustersCreateOptionalParams
|
|
244
|
+
): Promise<ClustersCreateResponse> {
|
|
245
|
+
const poller = await this.beginCreate(
|
|
246
|
+
resourceGroupName,
|
|
247
|
+
clusterName,
|
|
248
|
+
parameters,
|
|
249
|
+
options
|
|
250
|
+
);
|
|
251
|
+
return poller.pollUntilDone();
|
|
174
252
|
}
|
|
175
253
|
|
|
176
254
|
/**
|
|
177
|
-
*
|
|
178
|
-
* @param
|
|
179
|
-
* @
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
/**
|
|
183
|
-
* @param callback The callback
|
|
184
|
-
*/
|
|
185
|
-
list(callback: msRest.ServiceCallback<Models.ClusterListResult>): void;
|
|
186
|
-
/**
|
|
187
|
-
* @param options The optional parameters
|
|
188
|
-
* @param callback The callback
|
|
255
|
+
* Patch HDInsight cluster with the specified parameters.
|
|
256
|
+
* @param resourceGroupName The name of the resource group.
|
|
257
|
+
* @param clusterName The name of the cluster.
|
|
258
|
+
* @param parameters The cluster patch request.
|
|
259
|
+
* @param options The options parameters.
|
|
189
260
|
*/
|
|
190
|
-
|
|
191
|
-
|
|
261
|
+
update(
|
|
262
|
+
resourceGroupName: string,
|
|
263
|
+
clusterName: string,
|
|
264
|
+
parameters: ClusterPatchParameters,
|
|
265
|
+
options?: ClustersUpdateOptionalParams
|
|
266
|
+
): Promise<ClustersUpdateResponse> {
|
|
192
267
|
return this.client.sendOperationRequest(
|
|
193
|
-
{
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
listOperationSpec,
|
|
197
|
-
callback) as Promise<Models.ClustersListResponse>;
|
|
268
|
+
{ resourceGroupName, clusterName, parameters, options },
|
|
269
|
+
updateOperationSpec
|
|
270
|
+
);
|
|
198
271
|
}
|
|
199
272
|
|
|
200
273
|
/**
|
|
201
|
-
*
|
|
274
|
+
* Deletes the specified HDInsight cluster.
|
|
202
275
|
* @param resourceGroupName The name of the resource group.
|
|
203
276
|
* @param clusterName The name of the cluster.
|
|
204
|
-
* @param
|
|
205
|
-
* @param [options] The optional parameters
|
|
206
|
-
* @returns Promise<msRest.RestResponse>
|
|
277
|
+
* @param options The options parameters.
|
|
207
278
|
*/
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
279
|
+
async beginDelete(
|
|
280
|
+
resourceGroupName: string,
|
|
281
|
+
clusterName: string,
|
|
282
|
+
options?: ClustersDeleteOptionalParams
|
|
283
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
284
|
+
const directSendOperation = async (
|
|
285
|
+
args: coreClient.OperationArguments,
|
|
286
|
+
spec: coreClient.OperationSpec
|
|
287
|
+
): Promise<void> => {
|
|
288
|
+
return this.client.sendOperationRequest(args, spec);
|
|
289
|
+
};
|
|
290
|
+
const sendOperation = async (
|
|
291
|
+
args: coreClient.OperationArguments,
|
|
292
|
+
spec: coreClient.OperationSpec
|
|
293
|
+
) => {
|
|
294
|
+
let currentRawResponse:
|
|
295
|
+
| coreClient.FullOperationResponse
|
|
296
|
+
| undefined = undefined;
|
|
297
|
+
const providedCallback = args.options?.onResponse;
|
|
298
|
+
const callback: coreClient.RawResponseCallback = (
|
|
299
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
300
|
+
flatResponse: unknown
|
|
301
|
+
) => {
|
|
302
|
+
currentRawResponse = rawResponse;
|
|
303
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
304
|
+
};
|
|
305
|
+
const updatedArgs = {
|
|
306
|
+
...args,
|
|
307
|
+
options: {
|
|
308
|
+
...args.options,
|
|
309
|
+
onResponse: callback
|
|
310
|
+
}
|
|
311
|
+
};
|
|
312
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
313
|
+
return {
|
|
314
|
+
flatResponse,
|
|
315
|
+
rawResponse: {
|
|
316
|
+
statusCode: currentRawResponse!.status,
|
|
317
|
+
body: currentRawResponse!.parsedBody,
|
|
318
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
319
|
+
}
|
|
320
|
+
};
|
|
321
|
+
};
|
|
322
|
+
|
|
323
|
+
const lro = new LroImpl(
|
|
324
|
+
sendOperation,
|
|
325
|
+
{ resourceGroupName, clusterName, options },
|
|
326
|
+
deleteOperationSpec
|
|
327
|
+
);
|
|
328
|
+
return new LroEngine(lro, {
|
|
329
|
+
resumeFrom: options?.resumeFrom,
|
|
330
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
331
|
+
lroResourceLocationConfig: "location"
|
|
332
|
+
});
|
|
211
333
|
}
|
|
212
334
|
|
|
213
335
|
/**
|
|
214
|
-
*
|
|
336
|
+
* Deletes the specified HDInsight cluster.
|
|
215
337
|
* @param resourceGroupName The name of the resource group.
|
|
216
338
|
* @param clusterName The name of the cluster.
|
|
217
|
-
* @param
|
|
218
|
-
* @returns Promise<Models.ClustersGetGatewaySettingsResponse>
|
|
339
|
+
* @param options The options parameters.
|
|
219
340
|
*/
|
|
220
|
-
|
|
341
|
+
async beginDeleteAndWait(
|
|
342
|
+
resourceGroupName: string,
|
|
343
|
+
clusterName: string,
|
|
344
|
+
options?: ClustersDeleteOptionalParams
|
|
345
|
+
): Promise<void> {
|
|
346
|
+
const poller = await this.beginDelete(
|
|
347
|
+
resourceGroupName,
|
|
348
|
+
clusterName,
|
|
349
|
+
options
|
|
350
|
+
);
|
|
351
|
+
return poller.pollUntilDone();
|
|
352
|
+
}
|
|
353
|
+
|
|
221
354
|
/**
|
|
355
|
+
* Gets the specified cluster.
|
|
222
356
|
* @param resourceGroupName The name of the resource group.
|
|
223
357
|
* @param clusterName The name of the cluster.
|
|
224
|
-
* @param
|
|
358
|
+
* @param options The options parameters.
|
|
225
359
|
*/
|
|
226
|
-
|
|
360
|
+
get(
|
|
361
|
+
resourceGroupName: string,
|
|
362
|
+
clusterName: string,
|
|
363
|
+
options?: ClustersGetOptionalParams
|
|
364
|
+
): Promise<ClustersGetResponse> {
|
|
365
|
+
return this.client.sendOperationRequest(
|
|
366
|
+
{ resourceGroupName, clusterName, options },
|
|
367
|
+
getOperationSpec
|
|
368
|
+
);
|
|
369
|
+
}
|
|
370
|
+
|
|
227
371
|
/**
|
|
372
|
+
* Lists the HDInsight clusters in a resource group.
|
|
228
373
|
* @param resourceGroupName The name of the resource group.
|
|
229
|
-
* @param
|
|
230
|
-
* @param options The optional parameters
|
|
231
|
-
* @param callback The callback
|
|
374
|
+
* @param options The options parameters.
|
|
232
375
|
*/
|
|
233
|
-
|
|
234
|
-
|
|
376
|
+
private _listByResourceGroup(
|
|
377
|
+
resourceGroupName: string,
|
|
378
|
+
options?: ClustersListByResourceGroupOptionalParams
|
|
379
|
+
): Promise<ClustersListByResourceGroupResponse> {
|
|
235
380
|
return this.client.sendOperationRequest(
|
|
236
|
-
{
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
options
|
|
240
|
-
},
|
|
241
|
-
getGatewaySettingsOperationSpec,
|
|
242
|
-
callback) as Promise<Models.ClustersGetGatewaySettingsResponse>;
|
|
381
|
+
{ resourceGroupName, options },
|
|
382
|
+
listByResourceGroupOperationSpec
|
|
383
|
+
);
|
|
243
384
|
}
|
|
244
385
|
|
|
245
386
|
/**
|
|
246
|
-
*
|
|
387
|
+
* Resizes the specified HDInsight cluster to the specified size.
|
|
247
388
|
* @param resourceGroupName The name of the resource group.
|
|
248
389
|
* @param clusterName The name of the cluster.
|
|
249
|
-
* @param
|
|
250
|
-
* @param
|
|
251
|
-
* @
|
|
390
|
+
* @param roleName The constant value for the roleName
|
|
391
|
+
* @param parameters The parameters for the resize operation.
|
|
392
|
+
* @param options The options parameters.
|
|
252
393
|
*/
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
394
|
+
async beginResize(
|
|
395
|
+
resourceGroupName: string,
|
|
396
|
+
clusterName: string,
|
|
397
|
+
roleName: RoleName,
|
|
398
|
+
parameters: ClusterResizeParameters,
|
|
399
|
+
options?: ClustersResizeOptionalParams
|
|
400
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
401
|
+
const directSendOperation = async (
|
|
402
|
+
args: coreClient.OperationArguments,
|
|
403
|
+
spec: coreClient.OperationSpec
|
|
404
|
+
): Promise<void> => {
|
|
405
|
+
return this.client.sendOperationRequest(args, spec);
|
|
406
|
+
};
|
|
407
|
+
const sendOperation = async (
|
|
408
|
+
args: coreClient.OperationArguments,
|
|
409
|
+
spec: coreClient.OperationSpec
|
|
410
|
+
) => {
|
|
411
|
+
let currentRawResponse:
|
|
412
|
+
| coreClient.FullOperationResponse
|
|
413
|
+
| undefined = undefined;
|
|
414
|
+
const providedCallback = args.options?.onResponse;
|
|
415
|
+
const callback: coreClient.RawResponseCallback = (
|
|
416
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
417
|
+
flatResponse: unknown
|
|
418
|
+
) => {
|
|
419
|
+
currentRawResponse = rawResponse;
|
|
420
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
421
|
+
};
|
|
422
|
+
const updatedArgs = {
|
|
423
|
+
...args,
|
|
424
|
+
options: {
|
|
425
|
+
...args.options,
|
|
426
|
+
onResponse: callback
|
|
427
|
+
}
|
|
428
|
+
};
|
|
429
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
430
|
+
return {
|
|
431
|
+
flatResponse,
|
|
432
|
+
rawResponse: {
|
|
433
|
+
statusCode: currentRawResponse!.status,
|
|
434
|
+
body: currentRawResponse!.parsedBody,
|
|
435
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
436
|
+
}
|
|
437
|
+
};
|
|
438
|
+
};
|
|
439
|
+
|
|
440
|
+
const lro = new LroImpl(
|
|
441
|
+
sendOperation,
|
|
442
|
+
{ resourceGroupName, clusterName, roleName, parameters, options },
|
|
443
|
+
resizeOperationSpec
|
|
444
|
+
);
|
|
445
|
+
return new LroEngine(lro, {
|
|
446
|
+
resumeFrom: options?.resumeFrom,
|
|
447
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
448
|
+
lroResourceLocationConfig: "location"
|
|
449
|
+
});
|
|
256
450
|
}
|
|
257
451
|
|
|
258
452
|
/**
|
|
259
|
-
*
|
|
453
|
+
* Resizes the specified HDInsight cluster to the specified size.
|
|
260
454
|
* @param resourceGroupName The name of the resource group.
|
|
261
455
|
* @param clusterName The name of the cluster.
|
|
262
|
-
* @param
|
|
263
|
-
* @param
|
|
264
|
-
* @
|
|
456
|
+
* @param roleName The constant value for the roleName
|
|
457
|
+
* @param parameters The parameters for the resize operation.
|
|
458
|
+
* @param options The options parameters.
|
|
265
459
|
*/
|
|
266
|
-
|
|
460
|
+
async beginResizeAndWait(
|
|
461
|
+
resourceGroupName: string,
|
|
462
|
+
clusterName: string,
|
|
463
|
+
roleName: RoleName,
|
|
464
|
+
parameters: ClusterResizeParameters,
|
|
465
|
+
options?: ClustersResizeOptionalParams
|
|
466
|
+
): Promise<void> {
|
|
467
|
+
const poller = await this.beginResize(
|
|
468
|
+
resourceGroupName,
|
|
469
|
+
clusterName,
|
|
470
|
+
roleName,
|
|
471
|
+
parameters,
|
|
472
|
+
options
|
|
473
|
+
);
|
|
474
|
+
return poller.pollUntilDone();
|
|
475
|
+
}
|
|
476
|
+
|
|
267
477
|
/**
|
|
478
|
+
* Updates the Autoscale Configuration for HDInsight cluster.
|
|
268
479
|
* @param resourceGroupName The name of the resource group.
|
|
269
480
|
* @param clusterName The name of the cluster.
|
|
270
|
-
* @param
|
|
271
|
-
* @param
|
|
481
|
+
* @param roleName The constant value for the roleName
|
|
482
|
+
* @param parameters The parameters for the update autoscale configuration operation.
|
|
483
|
+
* @param options The options parameters.
|
|
272
484
|
*/
|
|
273
|
-
|
|
485
|
+
async beginUpdateAutoScaleConfiguration(
|
|
486
|
+
resourceGroupName: string,
|
|
487
|
+
clusterName: string,
|
|
488
|
+
roleName: RoleName,
|
|
489
|
+
parameters: AutoscaleConfigurationUpdateParameter,
|
|
490
|
+
options?: ClustersUpdateAutoScaleConfigurationOptionalParams
|
|
491
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
492
|
+
const directSendOperation = async (
|
|
493
|
+
args: coreClient.OperationArguments,
|
|
494
|
+
spec: coreClient.OperationSpec
|
|
495
|
+
): Promise<void> => {
|
|
496
|
+
return this.client.sendOperationRequest(args, spec);
|
|
497
|
+
};
|
|
498
|
+
const sendOperation = async (
|
|
499
|
+
args: coreClient.OperationArguments,
|
|
500
|
+
spec: coreClient.OperationSpec
|
|
501
|
+
) => {
|
|
502
|
+
let currentRawResponse:
|
|
503
|
+
| coreClient.FullOperationResponse
|
|
504
|
+
| undefined = undefined;
|
|
505
|
+
const providedCallback = args.options?.onResponse;
|
|
506
|
+
const callback: coreClient.RawResponseCallback = (
|
|
507
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
508
|
+
flatResponse: unknown
|
|
509
|
+
) => {
|
|
510
|
+
currentRawResponse = rawResponse;
|
|
511
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
512
|
+
};
|
|
513
|
+
const updatedArgs = {
|
|
514
|
+
...args,
|
|
515
|
+
options: {
|
|
516
|
+
...args.options,
|
|
517
|
+
onResponse: callback
|
|
518
|
+
}
|
|
519
|
+
};
|
|
520
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
521
|
+
return {
|
|
522
|
+
flatResponse,
|
|
523
|
+
rawResponse: {
|
|
524
|
+
statusCode: currentRawResponse!.status,
|
|
525
|
+
body: currentRawResponse!.parsedBody,
|
|
526
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
527
|
+
}
|
|
528
|
+
};
|
|
529
|
+
};
|
|
530
|
+
|
|
531
|
+
const lro = new LroImpl(
|
|
532
|
+
sendOperation,
|
|
533
|
+
{ resourceGroupName, clusterName, roleName, parameters, options },
|
|
534
|
+
updateAutoScaleConfigurationOperationSpec
|
|
535
|
+
);
|
|
536
|
+
return new LroEngine(lro, {
|
|
537
|
+
resumeFrom: options?.resumeFrom,
|
|
538
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
539
|
+
lroResourceLocationConfig: "location"
|
|
540
|
+
});
|
|
541
|
+
}
|
|
542
|
+
|
|
274
543
|
/**
|
|
544
|
+
* Updates the Autoscale Configuration for HDInsight cluster.
|
|
275
545
|
* @param resourceGroupName The name of the resource group.
|
|
276
546
|
* @param clusterName The name of the cluster.
|
|
277
|
-
* @param
|
|
278
|
-
* @param
|
|
279
|
-
* @param
|
|
547
|
+
* @param roleName The constant value for the roleName
|
|
548
|
+
* @param parameters The parameters for the update autoscale configuration operation.
|
|
549
|
+
* @param options The options parameters.
|
|
280
550
|
*/
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
551
|
+
async beginUpdateAutoScaleConfigurationAndWait(
|
|
552
|
+
resourceGroupName: string,
|
|
553
|
+
clusterName: string,
|
|
554
|
+
roleName: RoleName,
|
|
555
|
+
parameters: AutoscaleConfigurationUpdateParameter,
|
|
556
|
+
options?: ClustersUpdateAutoScaleConfigurationOptionalParams
|
|
557
|
+
): Promise<void> {
|
|
558
|
+
const poller = await this.beginUpdateAutoScaleConfiguration(
|
|
559
|
+
resourceGroupName,
|
|
560
|
+
clusterName,
|
|
561
|
+
roleName,
|
|
562
|
+
parameters,
|
|
563
|
+
options
|
|
564
|
+
);
|
|
565
|
+
return poller.pollUntilDone();
|
|
292
566
|
}
|
|
293
567
|
|
|
294
568
|
/**
|
|
295
|
-
*
|
|
296
|
-
* @param
|
|
297
|
-
* @param clusterName The name of the cluster.
|
|
298
|
-
* @param parameters The cluster configurations.
|
|
299
|
-
* @param [options] The optional parameters
|
|
300
|
-
* @returns Promise<msRest.RestResponse>
|
|
569
|
+
* Lists all the HDInsight clusters under the subscription.
|
|
570
|
+
* @param options The options parameters.
|
|
301
571
|
*/
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
572
|
+
private _list(
|
|
573
|
+
options?: ClustersListOptionalParams
|
|
574
|
+
): Promise<ClustersListResponse> {
|
|
575
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
305
576
|
}
|
|
306
577
|
|
|
307
578
|
/**
|
|
308
|
-
*
|
|
579
|
+
* Rotate disk encryption key of the specified HDInsight cluster.
|
|
309
580
|
* @param resourceGroupName The name of the resource group.
|
|
310
581
|
* @param clusterName The name of the cluster.
|
|
311
|
-
* @param parameters The parameters for
|
|
312
|
-
* @param
|
|
313
|
-
* @returns Promise<msRest.RestResponse>
|
|
582
|
+
* @param parameters The parameters for the disk encryption operation.
|
|
583
|
+
* @param options The options parameters.
|
|
314
584
|
*/
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
585
|
+
async beginRotateDiskEncryptionKey(
|
|
586
|
+
resourceGroupName: string,
|
|
587
|
+
clusterName: string,
|
|
588
|
+
parameters: ClusterDiskEncryptionParameters,
|
|
589
|
+
options?: ClustersRotateDiskEncryptionKeyOptionalParams
|
|
590
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
591
|
+
const directSendOperation = async (
|
|
592
|
+
args: coreClient.OperationArguments,
|
|
593
|
+
spec: coreClient.OperationSpec
|
|
594
|
+
): Promise<void> => {
|
|
595
|
+
return this.client.sendOperationRequest(args, spec);
|
|
596
|
+
};
|
|
597
|
+
const sendOperation = async (
|
|
598
|
+
args: coreClient.OperationArguments,
|
|
599
|
+
spec: coreClient.OperationSpec
|
|
600
|
+
) => {
|
|
601
|
+
let currentRawResponse:
|
|
602
|
+
| coreClient.FullOperationResponse
|
|
603
|
+
| undefined = undefined;
|
|
604
|
+
const providedCallback = args.options?.onResponse;
|
|
605
|
+
const callback: coreClient.RawResponseCallback = (
|
|
606
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
607
|
+
flatResponse: unknown
|
|
608
|
+
) => {
|
|
609
|
+
currentRawResponse = rawResponse;
|
|
610
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
611
|
+
};
|
|
612
|
+
const updatedArgs = {
|
|
613
|
+
...args,
|
|
614
|
+
options: {
|
|
615
|
+
...args.options,
|
|
616
|
+
onResponse: callback
|
|
617
|
+
}
|
|
618
|
+
};
|
|
619
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
620
|
+
return {
|
|
621
|
+
flatResponse,
|
|
622
|
+
rawResponse: {
|
|
623
|
+
statusCode: currentRawResponse!.status,
|
|
624
|
+
body: currentRawResponse!.parsedBody,
|
|
625
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
626
|
+
}
|
|
627
|
+
};
|
|
628
|
+
};
|
|
629
|
+
|
|
630
|
+
const lro = new LroImpl(
|
|
631
|
+
sendOperation,
|
|
632
|
+
{ resourceGroupName, clusterName, parameters, options },
|
|
633
|
+
rotateDiskEncryptionKeyOperationSpec
|
|
634
|
+
);
|
|
635
|
+
return new LroEngine(lro, {
|
|
636
|
+
resumeFrom: options?.resumeFrom,
|
|
637
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
638
|
+
lroResourceLocationConfig: "location"
|
|
639
|
+
});
|
|
318
640
|
}
|
|
319
641
|
|
|
320
642
|
/**
|
|
321
|
-
*
|
|
643
|
+
* Rotate disk encryption key of the specified HDInsight cluster.
|
|
322
644
|
* @param resourceGroupName The name of the resource group.
|
|
323
645
|
* @param clusterName The name of the cluster.
|
|
324
|
-
* @param parameters The
|
|
325
|
-
* @param
|
|
326
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
646
|
+
* @param parameters The parameters for the disk encryption operation.
|
|
647
|
+
* @param options The options parameters.
|
|
327
648
|
*/
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
649
|
+
async beginRotateDiskEncryptionKeyAndWait(
|
|
650
|
+
resourceGroupName: string,
|
|
651
|
+
clusterName: string,
|
|
652
|
+
parameters: ClusterDiskEncryptionParameters,
|
|
653
|
+
options?: ClustersRotateDiskEncryptionKeyOptionalParams
|
|
654
|
+
): Promise<void> {
|
|
655
|
+
const poller = await this.beginRotateDiskEncryptionKey(
|
|
656
|
+
resourceGroupName,
|
|
657
|
+
clusterName,
|
|
658
|
+
parameters,
|
|
659
|
+
options
|
|
660
|
+
);
|
|
661
|
+
return poller.pollUntilDone();
|
|
338
662
|
}
|
|
339
663
|
|
|
340
664
|
/**
|
|
341
|
-
*
|
|
665
|
+
* Gets the gateway settings for the specified cluster.
|
|
342
666
|
* @param resourceGroupName The name of the resource group.
|
|
343
667
|
* @param clusterName The name of the cluster.
|
|
344
|
-
* @param
|
|
345
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
668
|
+
* @param options The options parameters.
|
|
346
669
|
*/
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
},
|
|
354
|
-
|
|
355
|
-
|
|
670
|
+
getGatewaySettings(
|
|
671
|
+
resourceGroupName: string,
|
|
672
|
+
clusterName: string,
|
|
673
|
+
options?: ClustersGetGatewaySettingsOptionalParams
|
|
674
|
+
): Promise<ClustersGetGatewaySettingsResponse> {
|
|
675
|
+
return this.client.sendOperationRequest(
|
|
676
|
+
{ resourceGroupName, clusterName, options },
|
|
677
|
+
getGatewaySettingsOperationSpec
|
|
678
|
+
);
|
|
356
679
|
}
|
|
357
680
|
|
|
358
681
|
/**
|
|
359
|
-
*
|
|
682
|
+
* Configures the gateway settings on the specified cluster.
|
|
360
683
|
* @param resourceGroupName The name of the resource group.
|
|
361
684
|
* @param clusterName The name of the cluster.
|
|
362
|
-
* @param parameters The
|
|
363
|
-
* @param
|
|
364
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
685
|
+
* @param parameters The cluster configurations.
|
|
686
|
+
* @param options The options parameters.
|
|
365
687
|
*/
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
688
|
+
async beginUpdateGatewaySettings(
|
|
689
|
+
resourceGroupName: string,
|
|
690
|
+
clusterName: string,
|
|
691
|
+
parameters: UpdateGatewaySettingsParameters,
|
|
692
|
+
options?: ClustersUpdateGatewaySettingsOptionalParams
|
|
693
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
694
|
+
const directSendOperation = async (
|
|
695
|
+
args: coreClient.OperationArguments,
|
|
696
|
+
spec: coreClient.OperationSpec
|
|
697
|
+
): Promise<void> => {
|
|
698
|
+
return this.client.sendOperationRequest(args, spec);
|
|
699
|
+
};
|
|
700
|
+
const sendOperation = async (
|
|
701
|
+
args: coreClient.OperationArguments,
|
|
702
|
+
spec: coreClient.OperationSpec
|
|
703
|
+
) => {
|
|
704
|
+
let currentRawResponse:
|
|
705
|
+
| coreClient.FullOperationResponse
|
|
706
|
+
| undefined = undefined;
|
|
707
|
+
const providedCallback = args.options?.onResponse;
|
|
708
|
+
const callback: coreClient.RawResponseCallback = (
|
|
709
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
710
|
+
flatResponse: unknown
|
|
711
|
+
) => {
|
|
712
|
+
currentRawResponse = rawResponse;
|
|
713
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
714
|
+
};
|
|
715
|
+
const updatedArgs = {
|
|
716
|
+
...args,
|
|
717
|
+
options: {
|
|
718
|
+
...args.options,
|
|
719
|
+
onResponse: callback
|
|
720
|
+
}
|
|
721
|
+
};
|
|
722
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
723
|
+
return {
|
|
724
|
+
flatResponse,
|
|
725
|
+
rawResponse: {
|
|
726
|
+
statusCode: currentRawResponse!.status,
|
|
727
|
+
body: currentRawResponse!.parsedBody,
|
|
728
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
729
|
+
}
|
|
730
|
+
};
|
|
731
|
+
};
|
|
732
|
+
|
|
733
|
+
const lro = new LroImpl(
|
|
734
|
+
sendOperation,
|
|
735
|
+
{ resourceGroupName, clusterName, parameters, options },
|
|
736
|
+
updateGatewaySettingsOperationSpec
|
|
737
|
+
);
|
|
738
|
+
return new LroEngine(lro, {
|
|
739
|
+
resumeFrom: options?.resumeFrom,
|
|
740
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
741
|
+
lroResourceLocationConfig: "location"
|
|
742
|
+
});
|
|
376
743
|
}
|
|
377
744
|
|
|
378
745
|
/**
|
|
379
|
-
*
|
|
746
|
+
* Configures the gateway settings on the specified cluster.
|
|
380
747
|
* @param resourceGroupName The name of the resource group.
|
|
381
748
|
* @param clusterName The name of the cluster.
|
|
382
|
-
* @param parameters The
|
|
383
|
-
* @param
|
|
384
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
749
|
+
* @param parameters The cluster configurations.
|
|
750
|
+
* @param options The options parameters.
|
|
385
751
|
*/
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
752
|
+
async beginUpdateGatewaySettingsAndWait(
|
|
753
|
+
resourceGroupName: string,
|
|
754
|
+
clusterName: string,
|
|
755
|
+
parameters: UpdateGatewaySettingsParameters,
|
|
756
|
+
options?: ClustersUpdateGatewaySettingsOptionalParams
|
|
757
|
+
): Promise<void> {
|
|
758
|
+
const poller = await this.beginUpdateGatewaySettings(
|
|
759
|
+
resourceGroupName,
|
|
760
|
+
clusterName,
|
|
761
|
+
parameters,
|
|
762
|
+
options
|
|
763
|
+
);
|
|
764
|
+
return poller.pollUntilDone();
|
|
396
765
|
}
|
|
397
766
|
|
|
398
767
|
/**
|
|
399
|
-
*
|
|
768
|
+
* The the async operation status.
|
|
400
769
|
* @param resourceGroupName The name of the resource group.
|
|
401
770
|
* @param clusterName The name of the cluster.
|
|
402
|
-
* @param
|
|
403
|
-
* @param
|
|
404
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
771
|
+
* @param operationId The long running operation id.
|
|
772
|
+
* @param options The options parameters.
|
|
405
773
|
*/
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
},
|
|
414
|
-
|
|
415
|
-
|
|
774
|
+
getAzureAsyncOperationStatus(
|
|
775
|
+
resourceGroupName: string,
|
|
776
|
+
clusterName: string,
|
|
777
|
+
operationId: string,
|
|
778
|
+
options?: ClustersGetAzureAsyncOperationStatusOptionalParams
|
|
779
|
+
): Promise<ClustersGetAzureAsyncOperationStatusResponse> {
|
|
780
|
+
return this.client.sendOperationRequest(
|
|
781
|
+
{ resourceGroupName, clusterName, operationId, options },
|
|
782
|
+
getAzureAsyncOperationStatusOperationSpec
|
|
783
|
+
);
|
|
416
784
|
}
|
|
417
785
|
|
|
418
786
|
/**
|
|
419
|
-
*
|
|
787
|
+
* Updates the cluster identity certificate.
|
|
420
788
|
* @param resourceGroupName The name of the resource group.
|
|
421
789
|
* @param clusterName The name of the cluster.
|
|
422
790
|
* @param parameters The cluster configurations.
|
|
423
|
-
* @param
|
|
424
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
791
|
+
* @param options The options parameters.
|
|
425
792
|
*/
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
793
|
+
async beginUpdateIdentityCertificate(
|
|
794
|
+
resourceGroupName: string,
|
|
795
|
+
clusterName: string,
|
|
796
|
+
parameters: UpdateClusterIdentityCertificateParameters,
|
|
797
|
+
options?: ClustersUpdateIdentityCertificateOptionalParams
|
|
798
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
799
|
+
const directSendOperation = async (
|
|
800
|
+
args: coreClient.OperationArguments,
|
|
801
|
+
spec: coreClient.OperationSpec
|
|
802
|
+
): Promise<void> => {
|
|
803
|
+
return this.client.sendOperationRequest(args, spec);
|
|
804
|
+
};
|
|
805
|
+
const sendOperation = async (
|
|
806
|
+
args: coreClient.OperationArguments,
|
|
807
|
+
spec: coreClient.OperationSpec
|
|
808
|
+
) => {
|
|
809
|
+
let currentRawResponse:
|
|
810
|
+
| coreClient.FullOperationResponse
|
|
811
|
+
| undefined = undefined;
|
|
812
|
+
const providedCallback = args.options?.onResponse;
|
|
813
|
+
const callback: coreClient.RawResponseCallback = (
|
|
814
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
815
|
+
flatResponse: unknown
|
|
816
|
+
) => {
|
|
817
|
+
currentRawResponse = rawResponse;
|
|
818
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
819
|
+
};
|
|
820
|
+
const updatedArgs = {
|
|
821
|
+
...args,
|
|
822
|
+
options: {
|
|
823
|
+
...args.options,
|
|
824
|
+
onResponse: callback
|
|
825
|
+
}
|
|
826
|
+
};
|
|
827
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
828
|
+
return {
|
|
829
|
+
flatResponse,
|
|
830
|
+
rawResponse: {
|
|
831
|
+
statusCode: currentRawResponse!.status,
|
|
832
|
+
body: currentRawResponse!.parsedBody,
|
|
833
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
834
|
+
}
|
|
835
|
+
};
|
|
836
|
+
};
|
|
837
|
+
|
|
838
|
+
const lro = new LroImpl(
|
|
839
|
+
sendOperation,
|
|
840
|
+
{ resourceGroupName, clusterName, parameters, options },
|
|
841
|
+
updateIdentityCertificateOperationSpec
|
|
842
|
+
);
|
|
843
|
+
return new LroEngine(lro, {
|
|
844
|
+
resumeFrom: options?.resumeFrom,
|
|
845
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
846
|
+
lroResourceLocationConfig: "location"
|
|
847
|
+
});
|
|
436
848
|
}
|
|
437
849
|
|
|
438
850
|
/**
|
|
@@ -440,19 +852,21 @@ export class Clusters {
|
|
|
440
852
|
* @param resourceGroupName The name of the resource group.
|
|
441
853
|
* @param clusterName The name of the cluster.
|
|
442
854
|
* @param parameters The cluster configurations.
|
|
443
|
-
* @param
|
|
444
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
855
|
+
* @param options The options parameters.
|
|
445
856
|
*/
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
857
|
+
async beginUpdateIdentityCertificateAndWait(
|
|
858
|
+
resourceGroupName: string,
|
|
859
|
+
clusterName: string,
|
|
860
|
+
parameters: UpdateClusterIdentityCertificateParameters,
|
|
861
|
+
options?: ClustersUpdateIdentityCertificateOptionalParams
|
|
862
|
+
): Promise<void> {
|
|
863
|
+
const poller = await this.beginUpdateIdentityCertificate(
|
|
864
|
+
resourceGroupName,
|
|
865
|
+
clusterName,
|
|
866
|
+
parameters,
|
|
867
|
+
options
|
|
868
|
+
);
|
|
869
|
+
return poller.pollUntilDone();
|
|
456
870
|
}
|
|
457
871
|
|
|
458
872
|
/**
|
|
@@ -460,126 +874,159 @@ export class Clusters {
|
|
|
460
874
|
* @param resourceGroupName The name of the resource group.
|
|
461
875
|
* @param clusterName The name of the cluster.
|
|
462
876
|
* @param parameters The parameters for executing script actions.
|
|
463
|
-
* @param
|
|
464
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
877
|
+
* @param options The options parameters.
|
|
465
878
|
*/
|
|
466
|
-
beginExecuteScriptActions(
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
879
|
+
async beginExecuteScriptActions(
|
|
880
|
+
resourceGroupName: string,
|
|
881
|
+
clusterName: string,
|
|
882
|
+
parameters: ExecuteScriptActionParameters,
|
|
883
|
+
options?: ClustersExecuteScriptActionsOptionalParams
|
|
884
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
885
|
+
const directSendOperation = async (
|
|
886
|
+
args: coreClient.OperationArguments,
|
|
887
|
+
spec: coreClient.OperationSpec
|
|
888
|
+
): Promise<void> => {
|
|
889
|
+
return this.client.sendOperationRequest(args, spec);
|
|
890
|
+
};
|
|
891
|
+
const sendOperation = async (
|
|
892
|
+
args: coreClient.OperationArguments,
|
|
893
|
+
spec: coreClient.OperationSpec
|
|
894
|
+
) => {
|
|
895
|
+
let currentRawResponse:
|
|
896
|
+
| coreClient.FullOperationResponse
|
|
897
|
+
| undefined = undefined;
|
|
898
|
+
const providedCallback = args.options?.onResponse;
|
|
899
|
+
const callback: coreClient.RawResponseCallback = (
|
|
900
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
901
|
+
flatResponse: unknown
|
|
902
|
+
) => {
|
|
903
|
+
currentRawResponse = rawResponse;
|
|
904
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
905
|
+
};
|
|
906
|
+
const updatedArgs = {
|
|
907
|
+
...args,
|
|
908
|
+
options: {
|
|
909
|
+
...args.options,
|
|
910
|
+
onResponse: callback
|
|
911
|
+
}
|
|
912
|
+
};
|
|
913
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
914
|
+
return {
|
|
915
|
+
flatResponse,
|
|
916
|
+
rawResponse: {
|
|
917
|
+
statusCode: currentRawResponse!.status,
|
|
918
|
+
body: currentRawResponse!.parsedBody,
|
|
919
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
920
|
+
}
|
|
921
|
+
};
|
|
922
|
+
};
|
|
923
|
+
|
|
924
|
+
const lro = new LroImpl(
|
|
925
|
+
sendOperation,
|
|
926
|
+
{ resourceGroupName, clusterName, parameters, options },
|
|
927
|
+
executeScriptActionsOperationSpec
|
|
928
|
+
);
|
|
929
|
+
return new LroEngine(lro, {
|
|
930
|
+
resumeFrom: options?.resumeFrom,
|
|
931
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
932
|
+
lroResourceLocationConfig: "location"
|
|
933
|
+
});
|
|
476
934
|
}
|
|
477
935
|
|
|
478
936
|
/**
|
|
479
|
-
*
|
|
480
|
-
* @param
|
|
481
|
-
* @param
|
|
482
|
-
* @
|
|
483
|
-
|
|
484
|
-
listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.ClustersListByResourceGroupNextResponse>;
|
|
485
|
-
/**
|
|
486
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
487
|
-
* @param callback The callback
|
|
937
|
+
* Executes script actions on the specified HDInsight cluster.
|
|
938
|
+
* @param resourceGroupName The name of the resource group.
|
|
939
|
+
* @param clusterName The name of the cluster.
|
|
940
|
+
* @param parameters The parameters for executing script actions.
|
|
941
|
+
* @param options The options parameters.
|
|
488
942
|
*/
|
|
489
|
-
|
|
943
|
+
async beginExecuteScriptActionsAndWait(
|
|
944
|
+
resourceGroupName: string,
|
|
945
|
+
clusterName: string,
|
|
946
|
+
parameters: ExecuteScriptActionParameters,
|
|
947
|
+
options?: ClustersExecuteScriptActionsOptionalParams
|
|
948
|
+
): Promise<void> {
|
|
949
|
+
const poller = await this.beginExecuteScriptActions(
|
|
950
|
+
resourceGroupName,
|
|
951
|
+
clusterName,
|
|
952
|
+
parameters,
|
|
953
|
+
options
|
|
954
|
+
);
|
|
955
|
+
return poller.pollUntilDone();
|
|
956
|
+
}
|
|
957
|
+
|
|
490
958
|
/**
|
|
491
|
-
*
|
|
492
|
-
* @param
|
|
493
|
-
* @param
|
|
959
|
+
* ListByResourceGroupNext
|
|
960
|
+
* @param resourceGroupName The name of the resource group.
|
|
961
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
962
|
+
* @param options The options parameters.
|
|
494
963
|
*/
|
|
495
|
-
|
|
496
|
-
|
|
964
|
+
private _listByResourceGroupNext(
|
|
965
|
+
resourceGroupName: string,
|
|
966
|
+
nextLink: string,
|
|
967
|
+
options?: ClustersListByResourceGroupNextOptionalParams
|
|
968
|
+
): Promise<ClustersListByResourceGroupNextResponse> {
|
|
497
969
|
return this.client.sendOperationRequest(
|
|
498
|
-
{
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
},
|
|
502
|
-
listByResourceGroupNextOperationSpec,
|
|
503
|
-
callback) as Promise<Models.ClustersListByResourceGroupNextResponse>;
|
|
970
|
+
{ resourceGroupName, nextLink, options },
|
|
971
|
+
listByResourceGroupNextOperationSpec
|
|
972
|
+
);
|
|
504
973
|
}
|
|
505
974
|
|
|
506
975
|
/**
|
|
507
|
-
*
|
|
508
|
-
* @param
|
|
509
|
-
* @param
|
|
510
|
-
* @returns Promise<Models.ClustersListNextResponse>
|
|
511
|
-
*/
|
|
512
|
-
listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.ClustersListNextResponse>;
|
|
513
|
-
/**
|
|
514
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
515
|
-
* @param callback The callback
|
|
516
|
-
*/
|
|
517
|
-
listNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.ClusterListResult>): void;
|
|
518
|
-
/**
|
|
519
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
520
|
-
* @param options The optional parameters
|
|
521
|
-
* @param callback The callback
|
|
976
|
+
* ListNext
|
|
977
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
978
|
+
* @param options The options parameters.
|
|
522
979
|
*/
|
|
523
|
-
|
|
524
|
-
|
|
980
|
+
private _listNext(
|
|
981
|
+
nextLink: string,
|
|
982
|
+
options?: ClustersListNextOptionalParams
|
|
983
|
+
): Promise<ClustersListNextResponse> {
|
|
525
984
|
return this.client.sendOperationRequest(
|
|
526
|
-
{
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
},
|
|
530
|
-
listNextOperationSpec,
|
|
531
|
-
callback) as Promise<Models.ClustersListNextResponse>;
|
|
985
|
+
{ nextLink, options },
|
|
986
|
+
listNextOperationSpec
|
|
987
|
+
);
|
|
532
988
|
}
|
|
533
989
|
}
|
|
534
|
-
|
|
535
990
|
// Operation Specifications
|
|
536
|
-
const serializer =
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
path:
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
Parameters.resourceGroupName,
|
|
543
|
-
Parameters.clusterName
|
|
544
|
-
],
|
|
545
|
-
queryParameters: [
|
|
546
|
-
Parameters.apiVersion
|
|
547
|
-
],
|
|
548
|
-
headerParameters: [
|
|
549
|
-
Parameters.acceptLanguage
|
|
550
|
-
],
|
|
551
|
-
requestBody: {
|
|
552
|
-
parameterPath: "parameters",
|
|
553
|
-
mapper: {
|
|
554
|
-
...Mappers.ClusterPatchParameters,
|
|
555
|
-
required: true
|
|
556
|
-
}
|
|
557
|
-
},
|
|
991
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
992
|
+
|
|
993
|
+
const createOperationSpec: coreClient.OperationSpec = {
|
|
994
|
+
path:
|
|
995
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}",
|
|
996
|
+
httpMethod: "PUT",
|
|
558
997
|
responses: {
|
|
559
998
|
200: {
|
|
560
999
|
bodyMapper: Mappers.Cluster
|
|
561
1000
|
},
|
|
1001
|
+
201: {
|
|
1002
|
+
bodyMapper: Mappers.Cluster
|
|
1003
|
+
},
|
|
1004
|
+
202: {
|
|
1005
|
+
bodyMapper: Mappers.Cluster
|
|
1006
|
+
},
|
|
1007
|
+
204: {
|
|
1008
|
+
bodyMapper: Mappers.Cluster
|
|
1009
|
+
},
|
|
562
1010
|
default: {
|
|
563
1011
|
bodyMapper: Mappers.ErrorResponse
|
|
564
1012
|
}
|
|
565
1013
|
},
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
const getOperationSpec: msRest.OperationSpec = {
|
|
570
|
-
httpMethod: "GET",
|
|
571
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}",
|
|
1014
|
+
requestBody: Parameters.parameters,
|
|
1015
|
+
queryParameters: [Parameters.apiVersion],
|
|
572
1016
|
urlParameters: [
|
|
1017
|
+
Parameters.$host,
|
|
573
1018
|
Parameters.subscriptionId,
|
|
574
1019
|
Parameters.resourceGroupName,
|
|
575
1020
|
Parameters.clusterName
|
|
576
1021
|
],
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
1022
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
1023
|
+
mediaType: "json",
|
|
1024
|
+
serializer
|
|
1025
|
+
};
|
|
1026
|
+
const updateOperationSpec: coreClient.OperationSpec = {
|
|
1027
|
+
path:
|
|
1028
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}",
|
|
1029
|
+
httpMethod: "PATCH",
|
|
583
1030
|
responses: {
|
|
584
1031
|
200: {
|
|
585
1032
|
bodyMapper: Mappers.Cluster
|
|
@@ -588,366 +1035,304 @@ const getOperationSpec: msRest.OperationSpec = {
|
|
|
588
1035
|
bodyMapper: Mappers.ErrorResponse
|
|
589
1036
|
}
|
|
590
1037
|
},
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
const listByResourceGroupOperationSpec: msRest.OperationSpec = {
|
|
595
|
-
httpMethod: "GET",
|
|
596
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters",
|
|
1038
|
+
requestBody: Parameters.parameters1,
|
|
1039
|
+
queryParameters: [Parameters.apiVersion],
|
|
597
1040
|
urlParameters: [
|
|
1041
|
+
Parameters.$host,
|
|
598
1042
|
Parameters.subscriptionId,
|
|
599
|
-
Parameters.resourceGroupName
|
|
600
|
-
|
|
601
|
-
queryParameters: [
|
|
602
|
-
Parameters.apiVersion
|
|
603
|
-
],
|
|
604
|
-
headerParameters: [
|
|
605
|
-
Parameters.acceptLanguage
|
|
1043
|
+
Parameters.resourceGroupName,
|
|
1044
|
+
Parameters.clusterName
|
|
606
1045
|
],
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
bodyMapper: Mappers.ClusterListResult
|
|
610
|
-
},
|
|
611
|
-
default: {
|
|
612
|
-
bodyMapper: Mappers.ErrorResponse
|
|
613
|
-
}
|
|
614
|
-
},
|
|
1046
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
1047
|
+
mediaType: "json",
|
|
615
1048
|
serializer
|
|
616
1049
|
};
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
urlParameters: [
|
|
622
|
-
Parameters.subscriptionId
|
|
623
|
-
],
|
|
624
|
-
queryParameters: [
|
|
625
|
-
Parameters.apiVersion
|
|
626
|
-
],
|
|
627
|
-
headerParameters: [
|
|
628
|
-
Parameters.acceptLanguage
|
|
629
|
-
],
|
|
1050
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
1051
|
+
path:
|
|
1052
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}",
|
|
1053
|
+
httpMethod: "DELETE",
|
|
630
1054
|
responses: {
|
|
631
|
-
200: {
|
|
632
|
-
|
|
633
|
-
},
|
|
1055
|
+
200: {},
|
|
1056
|
+
201: {},
|
|
1057
|
+
202: {},
|
|
1058
|
+
204: {},
|
|
634
1059
|
default: {
|
|
635
1060
|
bodyMapper: Mappers.ErrorResponse
|
|
636
1061
|
}
|
|
637
1062
|
},
|
|
638
|
-
|
|
639
|
-
};
|
|
640
|
-
|
|
641
|
-
const getGatewaySettingsOperationSpec: msRest.OperationSpec = {
|
|
642
|
-
httpMethod: "POST",
|
|
643
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/getGatewaySettings",
|
|
1063
|
+
queryParameters: [Parameters.apiVersion],
|
|
644
1064
|
urlParameters: [
|
|
1065
|
+
Parameters.$host,
|
|
645
1066
|
Parameters.subscriptionId,
|
|
646
1067
|
Parameters.resourceGroupName,
|
|
647
1068
|
Parameters.clusterName
|
|
648
1069
|
],
|
|
649
|
-
|
|
650
|
-
Parameters.apiVersion
|
|
651
|
-
],
|
|
652
|
-
headerParameters: [
|
|
653
|
-
Parameters.acceptLanguage
|
|
654
|
-
],
|
|
655
|
-
responses: {
|
|
656
|
-
200: {
|
|
657
|
-
bodyMapper: Mappers.GatewaySettings
|
|
658
|
-
},
|
|
659
|
-
default: {
|
|
660
|
-
bodyMapper: Mappers.ErrorResponse
|
|
661
|
-
}
|
|
662
|
-
},
|
|
1070
|
+
headerParameters: [Parameters.accept],
|
|
663
1071
|
serializer
|
|
664
1072
|
};
|
|
665
|
-
|
|
666
|
-
|
|
1073
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
1074
|
+
path:
|
|
1075
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}",
|
|
667
1076
|
httpMethod: "GET",
|
|
668
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/azureasyncoperations/{operationId}",
|
|
669
|
-
urlParameters: [
|
|
670
|
-
Parameters.subscriptionId,
|
|
671
|
-
Parameters.resourceGroupName,
|
|
672
|
-
Parameters.clusterName,
|
|
673
|
-
Parameters.operationId
|
|
674
|
-
],
|
|
675
|
-
queryParameters: [
|
|
676
|
-
Parameters.apiVersion
|
|
677
|
-
],
|
|
678
|
-
headerParameters: [
|
|
679
|
-
Parameters.acceptLanguage
|
|
680
|
-
],
|
|
681
1077
|
responses: {
|
|
682
1078
|
200: {
|
|
683
|
-
bodyMapper: Mappers.
|
|
1079
|
+
bodyMapper: Mappers.Cluster
|
|
684
1080
|
},
|
|
685
1081
|
default: {
|
|
686
1082
|
bodyMapper: Mappers.ErrorResponse
|
|
687
1083
|
}
|
|
688
1084
|
},
|
|
689
|
-
|
|
690
|
-
};
|
|
691
|
-
|
|
692
|
-
const beginCreateOperationSpec: msRest.OperationSpec = {
|
|
693
|
-
httpMethod: "PUT",
|
|
694
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}",
|
|
1085
|
+
queryParameters: [Parameters.apiVersion],
|
|
695
1086
|
urlParameters: [
|
|
1087
|
+
Parameters.$host,
|
|
696
1088
|
Parameters.subscriptionId,
|
|
697
1089
|
Parameters.resourceGroupName,
|
|
698
1090
|
Parameters.clusterName
|
|
699
1091
|
],
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
parameterPath: "parameters",
|
|
708
|
-
mapper: {
|
|
709
|
-
...Mappers.ClusterCreateParametersExtended,
|
|
710
|
-
required: true
|
|
711
|
-
}
|
|
712
|
-
},
|
|
1092
|
+
headerParameters: [Parameters.accept],
|
|
1093
|
+
serializer
|
|
1094
|
+
};
|
|
1095
|
+
const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
|
|
1096
|
+
path:
|
|
1097
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters",
|
|
1098
|
+
httpMethod: "GET",
|
|
713
1099
|
responses: {
|
|
714
1100
|
200: {
|
|
715
|
-
bodyMapper: Mappers.
|
|
1101
|
+
bodyMapper: Mappers.ClusterListResult
|
|
716
1102
|
},
|
|
717
1103
|
default: {
|
|
718
1104
|
bodyMapper: Mappers.ErrorResponse
|
|
719
1105
|
}
|
|
720
1106
|
},
|
|
721
|
-
|
|
722
|
-
};
|
|
723
|
-
|
|
724
|
-
const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
|
|
725
|
-
httpMethod: "DELETE",
|
|
726
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}",
|
|
1107
|
+
queryParameters: [Parameters.apiVersion],
|
|
727
1108
|
urlParameters: [
|
|
1109
|
+
Parameters.$host,
|
|
728
1110
|
Parameters.subscriptionId,
|
|
729
|
-
Parameters.resourceGroupName
|
|
730
|
-
Parameters.clusterName
|
|
731
|
-
],
|
|
732
|
-
queryParameters: [
|
|
733
|
-
Parameters.apiVersion
|
|
734
|
-
],
|
|
735
|
-
headerParameters: [
|
|
736
|
-
Parameters.acceptLanguage
|
|
1111
|
+
Parameters.resourceGroupName
|
|
737
1112
|
],
|
|
1113
|
+
headerParameters: [Parameters.accept],
|
|
1114
|
+
serializer
|
|
1115
|
+
};
|
|
1116
|
+
const resizeOperationSpec: coreClient.OperationSpec = {
|
|
1117
|
+
path:
|
|
1118
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/roles/{roleName}/resize",
|
|
1119
|
+
httpMethod: "POST",
|
|
738
1120
|
responses: {
|
|
739
1121
|
200: {},
|
|
1122
|
+
201: {},
|
|
740
1123
|
202: {},
|
|
741
1124
|
204: {},
|
|
742
1125
|
default: {
|
|
743
1126
|
bodyMapper: Mappers.ErrorResponse
|
|
744
1127
|
}
|
|
745
1128
|
},
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
const beginResizeOperationSpec: msRest.OperationSpec = {
|
|
750
|
-
httpMethod: "POST",
|
|
751
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/roles/{roleName}/resize",
|
|
1129
|
+
requestBody: Parameters.parameters2,
|
|
1130
|
+
queryParameters: [Parameters.apiVersion],
|
|
752
1131
|
urlParameters: [
|
|
1132
|
+
Parameters.$host,
|
|
753
1133
|
Parameters.subscriptionId,
|
|
754
1134
|
Parameters.resourceGroupName,
|
|
755
1135
|
Parameters.clusterName,
|
|
756
1136
|
Parameters.roleName
|
|
757
1137
|
],
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
mapper: {
|
|
767
|
-
...Mappers.ClusterResizeParameters,
|
|
768
|
-
required: true
|
|
769
|
-
}
|
|
770
|
-
},
|
|
1138
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
1139
|
+
mediaType: "json",
|
|
1140
|
+
serializer
|
|
1141
|
+
};
|
|
1142
|
+
const updateAutoScaleConfigurationOperationSpec: coreClient.OperationSpec = {
|
|
1143
|
+
path:
|
|
1144
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/roles/{roleName}/autoscale",
|
|
1145
|
+
httpMethod: "POST",
|
|
771
1146
|
responses: {
|
|
772
1147
|
200: {},
|
|
1148
|
+
201: {},
|
|
773
1149
|
202: {},
|
|
1150
|
+
204: {},
|
|
774
1151
|
default: {
|
|
775
1152
|
bodyMapper: Mappers.ErrorResponse
|
|
776
1153
|
}
|
|
777
1154
|
},
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
const beginUpdateAutoScaleConfigurationOperationSpec: msRest.OperationSpec = {
|
|
782
|
-
httpMethod: "POST",
|
|
783
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/roles/{roleName}/autoscale",
|
|
1155
|
+
requestBody: Parameters.parameters3,
|
|
1156
|
+
queryParameters: [Parameters.apiVersion],
|
|
784
1157
|
urlParameters: [
|
|
1158
|
+
Parameters.$host,
|
|
785
1159
|
Parameters.subscriptionId,
|
|
786
1160
|
Parameters.resourceGroupName,
|
|
787
1161
|
Parameters.clusterName,
|
|
788
1162
|
Parameters.roleName
|
|
789
1163
|
],
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
1164
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
1165
|
+
mediaType: "json",
|
|
1166
|
+
serializer
|
|
1167
|
+
};
|
|
1168
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
1169
|
+
path:
|
|
1170
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.HDInsight/clusters",
|
|
1171
|
+
httpMethod: "GET",
|
|
1172
|
+
responses: {
|
|
1173
|
+
200: {
|
|
1174
|
+
bodyMapper: Mappers.ClusterListResult
|
|
1175
|
+
},
|
|
1176
|
+
default: {
|
|
1177
|
+
bodyMapper: Mappers.ErrorResponse
|
|
801
1178
|
}
|
|
802
1179
|
},
|
|
1180
|
+
queryParameters: [Parameters.apiVersion],
|
|
1181
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
1182
|
+
headerParameters: [Parameters.accept],
|
|
1183
|
+
serializer
|
|
1184
|
+
};
|
|
1185
|
+
const rotateDiskEncryptionKeyOperationSpec: coreClient.OperationSpec = {
|
|
1186
|
+
path:
|
|
1187
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/rotatediskencryptionkey",
|
|
1188
|
+
httpMethod: "POST",
|
|
803
1189
|
responses: {
|
|
804
1190
|
200: {},
|
|
1191
|
+
201: {},
|
|
805
1192
|
202: {},
|
|
1193
|
+
204: {},
|
|
806
1194
|
default: {
|
|
807
1195
|
bodyMapper: Mappers.ErrorResponse
|
|
808
1196
|
}
|
|
809
1197
|
},
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
const beginRotateDiskEncryptionKeyOperationSpec: msRest.OperationSpec = {
|
|
814
|
-
httpMethod: "POST",
|
|
815
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/rotatediskencryptionkey",
|
|
1198
|
+
requestBody: Parameters.parameters4,
|
|
1199
|
+
queryParameters: [Parameters.apiVersion],
|
|
816
1200
|
urlParameters: [
|
|
1201
|
+
Parameters.$host,
|
|
817
1202
|
Parameters.subscriptionId,
|
|
818
1203
|
Parameters.resourceGroupName,
|
|
819
1204
|
Parameters.clusterName
|
|
820
1205
|
],
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
mapper: {
|
|
830
|
-
...Mappers.ClusterDiskEncryptionParameters,
|
|
831
|
-
required: true
|
|
832
|
-
}
|
|
833
|
-
},
|
|
1206
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
1207
|
+
mediaType: "json",
|
|
1208
|
+
serializer
|
|
1209
|
+
};
|
|
1210
|
+
const getGatewaySettingsOperationSpec: coreClient.OperationSpec = {
|
|
1211
|
+
path:
|
|
1212
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/getGatewaySettings",
|
|
1213
|
+
httpMethod: "POST",
|
|
834
1214
|
responses: {
|
|
835
|
-
200: {
|
|
836
|
-
|
|
1215
|
+
200: {
|
|
1216
|
+
bodyMapper: Mappers.GatewaySettings
|
|
1217
|
+
},
|
|
837
1218
|
default: {
|
|
838
1219
|
bodyMapper: Mappers.ErrorResponse
|
|
839
1220
|
}
|
|
840
1221
|
},
|
|
841
|
-
|
|
842
|
-
};
|
|
843
|
-
|
|
844
|
-
const beginUpdateGatewaySettingsOperationSpec: msRest.OperationSpec = {
|
|
845
|
-
httpMethod: "POST",
|
|
846
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/updateGatewaySettings",
|
|
1222
|
+
queryParameters: [Parameters.apiVersion],
|
|
847
1223
|
urlParameters: [
|
|
1224
|
+
Parameters.$host,
|
|
848
1225
|
Parameters.subscriptionId,
|
|
849
1226
|
Parameters.resourceGroupName,
|
|
850
1227
|
Parameters.clusterName
|
|
851
1228
|
],
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
parameterPath: "parameters",
|
|
860
|
-
mapper: {
|
|
861
|
-
...Mappers.UpdateGatewaySettingsParameters,
|
|
862
|
-
required: true
|
|
863
|
-
}
|
|
864
|
-
},
|
|
1229
|
+
headerParameters: [Parameters.accept],
|
|
1230
|
+
serializer
|
|
1231
|
+
};
|
|
1232
|
+
const updateGatewaySettingsOperationSpec: coreClient.OperationSpec = {
|
|
1233
|
+
path:
|
|
1234
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/updateGatewaySettings",
|
|
1235
|
+
httpMethod: "POST",
|
|
865
1236
|
responses: {
|
|
866
1237
|
200: {},
|
|
1238
|
+
201: {},
|
|
867
1239
|
202: {},
|
|
1240
|
+
204: {},
|
|
868
1241
|
default: {
|
|
869
1242
|
bodyMapper: Mappers.ErrorResponse
|
|
870
1243
|
}
|
|
871
1244
|
},
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
const beginUpdateIdentityCertificateOperationSpec: msRest.OperationSpec = {
|
|
876
|
-
httpMethod: "POST",
|
|
877
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/updateClusterIdentityCertificate",
|
|
1245
|
+
requestBody: Parameters.parameters5,
|
|
1246
|
+
queryParameters: [Parameters.apiVersion],
|
|
878
1247
|
urlParameters: [
|
|
1248
|
+
Parameters.$host,
|
|
879
1249
|
Parameters.subscriptionId,
|
|
880
1250
|
Parameters.resourceGroupName,
|
|
881
1251
|
Parameters.clusterName
|
|
882
1252
|
],
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
1253
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
1254
|
+
mediaType: "json",
|
|
1255
|
+
serializer
|
|
1256
|
+
};
|
|
1257
|
+
const getAzureAsyncOperationStatusOperationSpec: coreClient.OperationSpec = {
|
|
1258
|
+
path:
|
|
1259
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/azureasyncoperations/{operationId}",
|
|
1260
|
+
httpMethod: "GET",
|
|
1261
|
+
responses: {
|
|
1262
|
+
200: {
|
|
1263
|
+
bodyMapper: Mappers.AsyncOperationResult
|
|
1264
|
+
},
|
|
1265
|
+
default: {
|
|
1266
|
+
bodyMapper: Mappers.ErrorResponse
|
|
894
1267
|
}
|
|
895
1268
|
},
|
|
1269
|
+
queryParameters: [Parameters.apiVersion],
|
|
1270
|
+
urlParameters: [
|
|
1271
|
+
Parameters.$host,
|
|
1272
|
+
Parameters.subscriptionId,
|
|
1273
|
+
Parameters.resourceGroupName,
|
|
1274
|
+
Parameters.clusterName,
|
|
1275
|
+
Parameters.operationId
|
|
1276
|
+
],
|
|
1277
|
+
headerParameters: [Parameters.accept],
|
|
1278
|
+
serializer
|
|
1279
|
+
};
|
|
1280
|
+
const updateIdentityCertificateOperationSpec: coreClient.OperationSpec = {
|
|
1281
|
+
path:
|
|
1282
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/updateClusterIdentityCertificate",
|
|
1283
|
+
httpMethod: "POST",
|
|
896
1284
|
responses: {
|
|
897
1285
|
200: {},
|
|
1286
|
+
201: {},
|
|
898
1287
|
202: {},
|
|
1288
|
+
204: {},
|
|
899
1289
|
default: {
|
|
900
1290
|
bodyMapper: Mappers.ErrorResponse
|
|
901
1291
|
}
|
|
902
1292
|
},
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
const beginExecuteScriptActionsOperationSpec: msRest.OperationSpec = {
|
|
907
|
-
httpMethod: "POST",
|
|
908
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/executeScriptActions",
|
|
1293
|
+
requestBody: Parameters.parameters6,
|
|
1294
|
+
queryParameters: [Parameters.apiVersion],
|
|
909
1295
|
urlParameters: [
|
|
1296
|
+
Parameters.$host,
|
|
910
1297
|
Parameters.subscriptionId,
|
|
911
1298
|
Parameters.resourceGroupName,
|
|
912
1299
|
Parameters.clusterName
|
|
913
1300
|
],
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
mapper: {
|
|
923
|
-
...Mappers.ExecuteScriptActionParameters,
|
|
924
|
-
required: true
|
|
925
|
-
}
|
|
926
|
-
},
|
|
1301
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
1302
|
+
mediaType: "json",
|
|
1303
|
+
serializer
|
|
1304
|
+
};
|
|
1305
|
+
const executeScriptActionsOperationSpec: coreClient.OperationSpec = {
|
|
1306
|
+
path:
|
|
1307
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/executeScriptActions",
|
|
1308
|
+
httpMethod: "POST",
|
|
927
1309
|
responses: {
|
|
928
1310
|
200: {},
|
|
1311
|
+
201: {},
|
|
929
1312
|
202: {},
|
|
930
|
-
|
|
1313
|
+
204: {},
|
|
1314
|
+
404: {
|
|
1315
|
+
isError: true
|
|
1316
|
+
},
|
|
931
1317
|
default: {
|
|
932
1318
|
bodyMapper: Mappers.ErrorResponse
|
|
933
1319
|
}
|
|
934
1320
|
},
|
|
1321
|
+
requestBody: Parameters.parameters7,
|
|
1322
|
+
queryParameters: [Parameters.apiVersion],
|
|
1323
|
+
urlParameters: [
|
|
1324
|
+
Parameters.$host,
|
|
1325
|
+
Parameters.subscriptionId,
|
|
1326
|
+
Parameters.resourceGroupName,
|
|
1327
|
+
Parameters.clusterName
|
|
1328
|
+
],
|
|
1329
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
1330
|
+
mediaType: "json",
|
|
935
1331
|
serializer
|
|
936
1332
|
};
|
|
937
|
-
|
|
938
|
-
const listByResourceGroupNextOperationSpec: msRest.OperationSpec = {
|
|
939
|
-
httpMethod: "GET",
|
|
940
|
-
baseUrl: "https://management.azure.com",
|
|
1333
|
+
const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
|
|
941
1334
|
path: "{nextLink}",
|
|
942
|
-
|
|
943
|
-
Parameters.nextPageLink
|
|
944
|
-
],
|
|
945
|
-
queryParameters: [
|
|
946
|
-
Parameters.apiVersion
|
|
947
|
-
],
|
|
948
|
-
headerParameters: [
|
|
949
|
-
Parameters.acceptLanguage
|
|
950
|
-
],
|
|
1335
|
+
httpMethod: "GET",
|
|
951
1336
|
responses: {
|
|
952
1337
|
200: {
|
|
953
1338
|
bodyMapper: Mappers.ClusterListResult
|
|
@@ -956,22 +1341,19 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = {
|
|
|
956
1341
|
bodyMapper: Mappers.ErrorResponse
|
|
957
1342
|
}
|
|
958
1343
|
},
|
|
1344
|
+
queryParameters: [Parameters.apiVersion],
|
|
1345
|
+
urlParameters: [
|
|
1346
|
+
Parameters.$host,
|
|
1347
|
+
Parameters.subscriptionId,
|
|
1348
|
+
Parameters.resourceGroupName,
|
|
1349
|
+
Parameters.nextLink
|
|
1350
|
+
],
|
|
1351
|
+
headerParameters: [Parameters.accept],
|
|
959
1352
|
serializer
|
|
960
1353
|
};
|
|
961
|
-
|
|
962
|
-
const listNextOperationSpec: msRest.OperationSpec = {
|
|
963
|
-
httpMethod: "GET",
|
|
964
|
-
baseUrl: "https://management.azure.com",
|
|
1354
|
+
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
965
1355
|
path: "{nextLink}",
|
|
966
|
-
|
|
967
|
-
Parameters.nextPageLink
|
|
968
|
-
],
|
|
969
|
-
queryParameters: [
|
|
970
|
-
Parameters.apiVersion
|
|
971
|
-
],
|
|
972
|
-
headerParameters: [
|
|
973
|
-
Parameters.acceptLanguage
|
|
974
|
-
],
|
|
1356
|
+
httpMethod: "GET",
|
|
975
1357
|
responses: {
|
|
976
1358
|
200: {
|
|
977
1359
|
bodyMapper: Mappers.ClusterListResult
|
|
@@ -980,5 +1362,12 @@ const listNextOperationSpec: msRest.OperationSpec = {
|
|
|
980
1362
|
bodyMapper: Mappers.ErrorResponse
|
|
981
1363
|
}
|
|
982
1364
|
},
|
|
1365
|
+
queryParameters: [Parameters.apiVersion],
|
|
1366
|
+
urlParameters: [
|
|
1367
|
+
Parameters.$host,
|
|
1368
|
+
Parameters.subscriptionId,
|
|
1369
|
+
Parameters.nextLink
|
|
1370
|
+
],
|
|
1371
|
+
headerParameters: [Parameters.accept],
|
|
983
1372
|
serializer
|
|
984
1373
|
};
|