@azure/arm-hdinsight 0.22.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 -74
- 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/configurationsMappers.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 +1813 -1305
- 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 +2 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/dist-esm/src/operations/index.js +19 -0
- 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/virtualMachinesMappers.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/configurationsMappers.ts → dist-esm/src/operationsInterfaces/configurations.js} +2 -5
- 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/virtualMachinesMappers.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 -31
- package/review/arm-hdinsight.api.md +1678 -0
- package/rollup.config.js +181 -30
- package/src/hDInsightManagementClient.ts +106 -44
- package/src/{models/extensionsMappers.ts → index.ts} +4 -6
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +1760 -2084
- package/src/models/mappers.ts +1840 -1291
- package/src/models/parameters.ts +236 -44
- package/src/operations/applications.ts +383 -187
- package/src/operations/clusters.ts +1051 -535
- package/src/operations/configurations.ts +162 -154
- package/src/operations/extensions.ts +693 -216
- package/src/operations/index.ts +3 -2
- package/src/operations/locations.ts +186 -99
- package/src/operations/operations.ts +85 -73
- package/src/operations/privateEndpointConnections.ts +495 -0
- package/src/operations/privateLinkResources.ts +116 -0
- package/src/operations/scriptActions.ts +215 -157
- package/src/operations/scriptExecutionHistory.ts +155 -123
- package/src/operations/virtualMachines.ts +166 -101
- 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/{esm/operations/index.js → src/operationsInterfaces/index.ts} +4 -3
- 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 -5759
- 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 -27
- package/esm/hDInsightManagementClient.d.ts.map +0 -1
- package/esm/hDInsightManagementClient.js +0 -41
- package/esm/hDInsightManagementClient.js.map +0 -1
- package/esm/hDInsightManagementClientContext.d.ts +0 -17
- package/esm/hDInsightManagementClientContext.d.ts.map +0 -1
- package/esm/hDInsightManagementClientContext.js +0 -56
- 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 -2397
- 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 -94
- 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 -15
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -142
- package/esm/models/parameters.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 -115
- package/esm/operations/applications.d.ts.map +0 -1
- package/esm/operations/applications.js +0 -233
- package/esm/operations/applications.js.map +0 -1
- package/esm/operations/clusters.d.ts +0 -273
- package/esm/operations/clusters.d.ts.map +0 -1
- package/esm/operations/clusters.js +0 -621
- 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 -131
- package/esm/operations/extensions.d.ts.map +0 -1
- package/esm/operations/extensions.js +0 -307
- 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 -67
- package/esm/operations/locations.d.ts.map +0 -1
- package/esm/operations/locations.js +0 -113
- 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/scriptActions.d.ts +0 -100
- package/esm/operations/scriptActions.d.ts.map +0 -1
- package/esm/operations/scriptActions.js +0 -151
- 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 -53
- package/esm/operations/virtualMachines.d.ts.map +0 -1
- package/esm/operations/virtualMachines.js +0 -134
- package/esm/operations/virtualMachines.js.map +0 -1
- package/src/hDInsightManagementClientContext.ts +0 -62
- package/src/models/applicationsMappers.ts +0 -56
- package/src/models/clustersMappers.ts +0 -65
- package/src/models/locationsMappers.ts +0 -28
- package/src/models/operationsMappers.ts +0 -18
- package/src/models/scriptActionsMappers.ts +0 -15
- package/src/models/scriptExecutionHistoryMappers.ts +0 -15
|
@@ -3,198 +3,576 @@
|
|
|
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
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|
|
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(
|
|
100
|
+
resourceGroupName,
|
|
101
|
+
continuationToken,
|
|
102
|
+
options
|
|
103
|
+
);
|
|
104
|
+
continuationToken = result.nextLink;
|
|
105
|
+
yield result.value || [];
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
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
|
+
}
|
|
40
119
|
}
|
|
41
120
|
|
|
42
121
|
/**
|
|
43
|
-
*
|
|
122
|
+
* Lists all the HDInsight clusters under the subscription.
|
|
123
|
+
* @param options The options parameters.
|
|
124
|
+
*/
|
|
125
|
+
public list(
|
|
126
|
+
options?: ClustersListOptionalParams
|
|
127
|
+
): PagedAsyncIterableIterator<Cluster> {
|
|
128
|
+
const iter = this.listPagingAll(options);
|
|
129
|
+
return {
|
|
130
|
+
next() {
|
|
131
|
+
return iter.next();
|
|
132
|
+
},
|
|
133
|
+
[Symbol.asyncIterator]() {
|
|
134
|
+
return this;
|
|
135
|
+
},
|
|
136
|
+
byPage: () => {
|
|
137
|
+
return this.listPagingPage(options);
|
|
138
|
+
}
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
|
|
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
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* Creates a new HDInsight cluster with the specified parameters.
|
|
44
165
|
* @param resourceGroupName The name of the resource group.
|
|
45
166
|
* @param clusterName The name of the cluster.
|
|
46
|
-
* @param parameters The cluster
|
|
47
|
-
* @param
|
|
48
|
-
* @returns Promise<Models.ClustersUpdateResponse>
|
|
167
|
+
* @param parameters The cluster create request.
|
|
168
|
+
* @param options The options parameters.
|
|
49
169
|
*/
|
|
50
|
-
|
|
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
|
+
});
|
|
230
|
+
}
|
|
231
|
+
|
|
51
232
|
/**
|
|
233
|
+
* Creates a new HDInsight cluster with the specified parameters.
|
|
52
234
|
* @param resourceGroupName The name of the resource group.
|
|
53
235
|
* @param clusterName The name of the cluster.
|
|
54
|
-
* @param parameters The cluster
|
|
55
|
-
* @param
|
|
236
|
+
* @param parameters The cluster create request.
|
|
237
|
+
* @param options The options parameters.
|
|
56
238
|
*/
|
|
57
|
-
|
|
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();
|
|
252
|
+
}
|
|
253
|
+
|
|
58
254
|
/**
|
|
255
|
+
* Patch HDInsight cluster with the specified parameters.
|
|
59
256
|
* @param resourceGroupName The name of the resource group.
|
|
60
257
|
* @param clusterName The name of the cluster.
|
|
61
258
|
* @param parameters The cluster patch request.
|
|
62
|
-
* @param options The
|
|
63
|
-
* @param callback The callback
|
|
259
|
+
* @param options The options parameters.
|
|
64
260
|
*/
|
|
65
|
-
update(
|
|
66
|
-
|
|
261
|
+
update(
|
|
262
|
+
resourceGroupName: string,
|
|
263
|
+
clusterName: string,
|
|
264
|
+
parameters: ClusterPatchParameters,
|
|
265
|
+
options?: ClustersUpdateOptionalParams
|
|
266
|
+
): Promise<ClustersUpdateResponse> {
|
|
67
267
|
return this.client.sendOperationRequest(
|
|
68
|
-
{
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
parameters,
|
|
72
|
-
options
|
|
73
|
-
},
|
|
74
|
-
updateOperationSpec,
|
|
75
|
-
callback) as Promise<Models.ClustersUpdateResponse>;
|
|
268
|
+
{ resourceGroupName, clusterName, parameters, options },
|
|
269
|
+
updateOperationSpec
|
|
270
|
+
);
|
|
76
271
|
}
|
|
77
272
|
|
|
78
273
|
/**
|
|
79
274
|
* Deletes the specified HDInsight cluster.
|
|
80
275
|
* @param resourceGroupName The name of the resource group.
|
|
81
276
|
* @param clusterName The name of the cluster.
|
|
82
|
-
* @param
|
|
83
|
-
* @returns Promise<msRest.RestResponse>
|
|
277
|
+
* @param options The options parameters.
|
|
84
278
|
*/
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
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
|
+
});
|
|
88
333
|
}
|
|
89
334
|
|
|
90
335
|
/**
|
|
91
|
-
*
|
|
92
|
-
* @param resourceGroupName The name of the resource group.
|
|
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
|
-
/**
|
|
336
|
+
* Deletes the specified HDInsight cluster.
|
|
99
337
|
* @param resourceGroupName The name of the resource group.
|
|
100
338
|
* @param clusterName The name of the cluster.
|
|
101
|
-
* @param
|
|
339
|
+
* @param options The options parameters.
|
|
102
340
|
*/
|
|
103
|
-
|
|
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
|
+
|
|
104
354
|
/**
|
|
355
|
+
* Gets the specified cluster.
|
|
105
356
|
* @param resourceGroupName The name of the resource group.
|
|
106
357
|
* @param clusterName The name of the cluster.
|
|
107
|
-
* @param options The
|
|
108
|
-
* @param callback The callback
|
|
358
|
+
* @param options The options parameters.
|
|
109
359
|
*/
|
|
110
|
-
get(
|
|
111
|
-
|
|
360
|
+
get(
|
|
361
|
+
resourceGroupName: string,
|
|
362
|
+
clusterName: string,
|
|
363
|
+
options?: ClustersGetOptionalParams
|
|
364
|
+
): Promise<ClustersGetResponse> {
|
|
112
365
|
return this.client.sendOperationRequest(
|
|
113
|
-
{
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
options
|
|
117
|
-
},
|
|
118
|
-
getOperationSpec,
|
|
119
|
-
callback) as Promise<Models.ClustersGetResponse>;
|
|
366
|
+
{ resourceGroupName, clusterName, options },
|
|
367
|
+
getOperationSpec
|
|
368
|
+
);
|
|
120
369
|
}
|
|
121
370
|
|
|
122
371
|
/**
|
|
123
372
|
* Lists the HDInsight clusters in a resource group.
|
|
124
373
|
* @param resourceGroupName The name of the resource group.
|
|
125
|
-
* @param
|
|
126
|
-
* @returns Promise<Models.ClustersListByResourceGroupResponse>
|
|
127
|
-
*/
|
|
128
|
-
listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise<Models.ClustersListByResourceGroupResponse>;
|
|
129
|
-
/**
|
|
130
|
-
* @param resourceGroupName The name of the resource group.
|
|
131
|
-
* @param callback The callback
|
|
374
|
+
* @param options The options parameters.
|
|
132
375
|
*/
|
|
133
|
-
|
|
376
|
+
private _listByResourceGroup(
|
|
377
|
+
resourceGroupName: string,
|
|
378
|
+
options?: ClustersListByResourceGroupOptionalParams
|
|
379
|
+
): Promise<ClustersListByResourceGroupResponse> {
|
|
380
|
+
return this.client.sendOperationRequest(
|
|
381
|
+
{ resourceGroupName, options },
|
|
382
|
+
listByResourceGroupOperationSpec
|
|
383
|
+
);
|
|
384
|
+
}
|
|
385
|
+
|
|
134
386
|
/**
|
|
387
|
+
* Resizes the specified HDInsight cluster to the specified size.
|
|
135
388
|
* @param resourceGroupName The name of the resource group.
|
|
136
|
-
* @param
|
|
137
|
-
* @param
|
|
389
|
+
* @param clusterName The name of the cluster.
|
|
390
|
+
* @param roleName The constant value for the roleName
|
|
391
|
+
* @param parameters The parameters for the resize operation.
|
|
392
|
+
* @param options The options parameters.
|
|
138
393
|
*/
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
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
|
+
});
|
|
148
450
|
}
|
|
149
451
|
|
|
150
452
|
/**
|
|
151
453
|
* Resizes the specified HDInsight cluster to the specified size.
|
|
152
454
|
* @param resourceGroupName The name of the resource group.
|
|
153
455
|
* @param clusterName The name of the cluster.
|
|
456
|
+
* @param roleName The constant value for the roleName
|
|
154
457
|
* @param parameters The parameters for the resize operation.
|
|
155
|
-
* @param
|
|
156
|
-
* @returns Promise<msRest.RestResponse>
|
|
458
|
+
* @param options The options parameters.
|
|
157
459
|
*/
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
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();
|
|
161
475
|
}
|
|
162
476
|
|
|
163
477
|
/**
|
|
164
478
|
* Updates the Autoscale Configuration for HDInsight cluster.
|
|
165
479
|
* @param resourceGroupName The name of the resource group.
|
|
166
480
|
* @param clusterName The name of the cluster.
|
|
481
|
+
* @param roleName The constant value for the roleName
|
|
167
482
|
* @param parameters The parameters for the update autoscale configuration operation.
|
|
168
|
-
* @param
|
|
169
|
-
* @returns Promise<msRest.RestResponse>
|
|
483
|
+
* @param options The options parameters.
|
|
170
484
|
*/
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
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
|
+
});
|
|
174
541
|
}
|
|
175
542
|
|
|
176
543
|
/**
|
|
177
|
-
*
|
|
178
|
-
* @param
|
|
179
|
-
* @
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
* @param callback The callback
|
|
544
|
+
* Updates the Autoscale Configuration for HDInsight cluster.
|
|
545
|
+
* @param resourceGroupName The name of the resource group.
|
|
546
|
+
* @param clusterName The name of the cluster.
|
|
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.
|
|
184
550
|
*/
|
|
185
|
-
|
|
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();
|
|
566
|
+
}
|
|
567
|
+
|
|
186
568
|
/**
|
|
187
|
-
*
|
|
188
|
-
* @param
|
|
569
|
+
* Lists all the HDInsight clusters under the subscription.
|
|
570
|
+
* @param options The options parameters.
|
|
189
571
|
*/
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
options
|
|
195
|
-
},
|
|
196
|
-
listOperationSpec,
|
|
197
|
-
callback) as Promise<Models.ClustersListResponse>;
|
|
572
|
+
private _list(
|
|
573
|
+
options?: ClustersListOptionalParams
|
|
574
|
+
): Promise<ClustersListResponse> {
|
|
575
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
198
576
|
}
|
|
199
577
|
|
|
200
578
|
/**
|
|
@@ -202,44 +580,102 @@ export class Clusters {
|
|
|
202
580
|
* @param resourceGroupName The name of the resource group.
|
|
203
581
|
* @param clusterName The name of the cluster.
|
|
204
582
|
* @param parameters The parameters for the disk encryption operation.
|
|
205
|
-
* @param
|
|
206
|
-
* @returns Promise<msRest.RestResponse>
|
|
583
|
+
* @param options The options parameters.
|
|
207
584
|
*/
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
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
|
+
});
|
|
211
640
|
}
|
|
212
641
|
|
|
213
642
|
/**
|
|
214
|
-
*
|
|
215
|
-
* @param resourceGroupName The name of the resource group.
|
|
216
|
-
* @param clusterName The name of the cluster.
|
|
217
|
-
* @param [options] The optional parameters
|
|
218
|
-
* @returns Promise<Models.ClustersGetGatewaySettingsResponse>
|
|
219
|
-
*/
|
|
220
|
-
getGatewaySettings(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase): Promise<Models.ClustersGetGatewaySettingsResponse>;
|
|
221
|
-
/**
|
|
643
|
+
* Rotate disk encryption key of the specified HDInsight cluster.
|
|
222
644
|
* @param resourceGroupName The name of the resource group.
|
|
223
645
|
* @param clusterName The name of the cluster.
|
|
224
|
-
* @param
|
|
646
|
+
* @param parameters The parameters for the disk encryption operation.
|
|
647
|
+
* @param options The options parameters.
|
|
225
648
|
*/
|
|
226
|
-
|
|
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();
|
|
662
|
+
}
|
|
663
|
+
|
|
227
664
|
/**
|
|
665
|
+
* Gets the gateway settings for the specified cluster.
|
|
228
666
|
* @param resourceGroupName The name of the resource group.
|
|
229
667
|
* @param clusterName The name of the cluster.
|
|
230
|
-
* @param options The
|
|
231
|
-
* @param callback The callback
|
|
668
|
+
* @param options The options parameters.
|
|
232
669
|
*/
|
|
233
|
-
getGatewaySettings(
|
|
234
|
-
|
|
670
|
+
getGatewaySettings(
|
|
671
|
+
resourceGroupName: string,
|
|
672
|
+
clusterName: string,
|
|
673
|
+
options?: ClustersGetGatewaySettingsOptionalParams
|
|
674
|
+
): Promise<ClustersGetGatewaySettingsResponse> {
|
|
235
675
|
return this.client.sendOperationRequest(
|
|
236
|
-
{
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
options
|
|
240
|
-
},
|
|
241
|
-
getGatewaySettingsOperationSpec,
|
|
242
|
-
callback) as Promise<Models.ClustersGetGatewaySettingsResponse>;
|
|
676
|
+
{ resourceGroupName, clusterName, options },
|
|
677
|
+
getGatewaySettingsOperationSpec
|
|
678
|
+
);
|
|
243
679
|
}
|
|
244
680
|
|
|
245
681
|
/**
|
|
@@ -247,143 +683,254 @@ export class Clusters {
|
|
|
247
683
|
* @param resourceGroupName The name of the resource group.
|
|
248
684
|
* @param clusterName The name of the cluster.
|
|
249
685
|
* @param parameters The cluster configurations.
|
|
250
|
-
* @param
|
|
251
|
-
* @returns Promise<msRest.RestResponse>
|
|
686
|
+
* @param options The options parameters.
|
|
252
687
|
*/
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
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
|
+
};
|
|
257
732
|
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
.then(lroPoller => lroPoller.pollUntilFinished());
|
|
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
|
+
});
|
|
269
743
|
}
|
|
270
744
|
|
|
271
745
|
/**
|
|
272
|
-
*
|
|
746
|
+
* Configures the gateway settings on the specified cluster.
|
|
273
747
|
* @param resourceGroupName The name of the resource group.
|
|
274
748
|
* @param clusterName The name of the cluster.
|
|
275
|
-
* @param parameters The cluster
|
|
276
|
-
* @param
|
|
277
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
749
|
+
* @param parameters The cluster configurations.
|
|
750
|
+
* @param options The options parameters.
|
|
278
751
|
*/
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
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();
|
|
289
765
|
}
|
|
290
766
|
|
|
291
767
|
/**
|
|
292
|
-
*
|
|
768
|
+
* The the async operation status.
|
|
293
769
|
* @param resourceGroupName The name of the resource group.
|
|
294
770
|
* @param clusterName The name of the cluster.
|
|
295
|
-
* @param
|
|
296
|
-
* @
|
|
771
|
+
* @param operationId The long running operation id.
|
|
772
|
+
* @param options The options parameters.
|
|
297
773
|
*/
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
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
|
+
);
|
|
307
784
|
}
|
|
308
785
|
|
|
309
786
|
/**
|
|
310
|
-
*
|
|
787
|
+
* Updates the cluster identity certificate.
|
|
311
788
|
* @param resourceGroupName The name of the resource group.
|
|
312
789
|
* @param clusterName The name of the cluster.
|
|
313
|
-
* @param parameters The
|
|
314
|
-
* @param
|
|
315
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
790
|
+
* @param parameters The cluster configurations.
|
|
791
|
+
* @param options The options parameters.
|
|
316
792
|
*/
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
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
|
+
};
|
|
328
837
|
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
{
|
|
340
|
-
resourceGroupName,
|
|
341
|
-
clusterName,
|
|
342
|
-
parameters,
|
|
343
|
-
options
|
|
344
|
-
},
|
|
345
|
-
beginUpdateAutoScaleConfigurationOperationSpec,
|
|
346
|
-
options);
|
|
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
|
+
});
|
|
347
848
|
}
|
|
348
849
|
|
|
349
850
|
/**
|
|
350
|
-
*
|
|
851
|
+
* Updates the cluster identity certificate.
|
|
351
852
|
* @param resourceGroupName The name of the resource group.
|
|
352
853
|
* @param clusterName The name of the cluster.
|
|
353
|
-
* @param parameters The
|
|
354
|
-
* @param
|
|
355
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
854
|
+
* @param parameters The cluster configurations.
|
|
855
|
+
* @param options The options parameters.
|
|
356
856
|
*/
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
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();
|
|
367
870
|
}
|
|
368
871
|
|
|
369
872
|
/**
|
|
370
|
-
*
|
|
873
|
+
* Executes script actions on the specified HDInsight cluster.
|
|
371
874
|
* @param resourceGroupName The name of the resource group.
|
|
372
875
|
* @param clusterName The name of the cluster.
|
|
373
|
-
* @param parameters The
|
|
374
|
-
* @param
|
|
375
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
876
|
+
* @param parameters The parameters for executing script actions.
|
|
877
|
+
* @param options The options parameters.
|
|
376
878
|
*/
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
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
|
+
});
|
|
387
934
|
}
|
|
388
935
|
|
|
389
936
|
/**
|
|
@@ -391,126 +938,95 @@ export class Clusters {
|
|
|
391
938
|
* @param resourceGroupName The name of the resource group.
|
|
392
939
|
* @param clusterName The name of the cluster.
|
|
393
940
|
* @param parameters The parameters for executing script actions.
|
|
394
|
-
* @param
|
|
395
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
941
|
+
* @param options The options parameters.
|
|
396
942
|
*/
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
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();
|
|
407
956
|
}
|
|
408
957
|
|
|
409
958
|
/**
|
|
410
|
-
*
|
|
411
|
-
* @param
|
|
412
|
-
* @param
|
|
413
|
-
* @
|
|
414
|
-
*/
|
|
415
|
-
listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.ClustersListByResourceGroupNextResponse>;
|
|
416
|
-
/**
|
|
417
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
418
|
-
* @param callback The callback
|
|
419
|
-
*/
|
|
420
|
-
listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.ClusterListResult>): void;
|
|
421
|
-
/**
|
|
422
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
423
|
-
* @param options The optional parameters
|
|
424
|
-
* @param callback The callback
|
|
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.
|
|
425
963
|
*/
|
|
426
|
-
|
|
427
|
-
|
|
964
|
+
private _listByResourceGroupNext(
|
|
965
|
+
resourceGroupName: string,
|
|
966
|
+
nextLink: string,
|
|
967
|
+
options?: ClustersListByResourceGroupNextOptionalParams
|
|
968
|
+
): Promise<ClustersListByResourceGroupNextResponse> {
|
|
428
969
|
return this.client.sendOperationRequest(
|
|
429
|
-
{
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
},
|
|
433
|
-
listByResourceGroupNextOperationSpec,
|
|
434
|
-
callback) as Promise<Models.ClustersListByResourceGroupNextResponse>;
|
|
970
|
+
{ resourceGroupName, nextLink, options },
|
|
971
|
+
listByResourceGroupNextOperationSpec
|
|
972
|
+
);
|
|
435
973
|
}
|
|
436
974
|
|
|
437
975
|
/**
|
|
438
|
-
*
|
|
439
|
-
* @param
|
|
440
|
-
* @param
|
|
441
|
-
* @returns Promise<Models.ClustersListNextResponse>
|
|
976
|
+
* ListNext
|
|
977
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
978
|
+
* @param options The options parameters.
|
|
442
979
|
*/
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
*/
|
|
448
|
-
listNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.ClusterListResult>): void;
|
|
449
|
-
/**
|
|
450
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
451
|
-
* @param options The optional parameters
|
|
452
|
-
* @param callback The callback
|
|
453
|
-
*/
|
|
454
|
-
listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ClusterListResult>): void;
|
|
455
|
-
listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ClusterListResult>, callback?: msRest.ServiceCallback<Models.ClusterListResult>): Promise<Models.ClustersListNextResponse> {
|
|
980
|
+
private _listNext(
|
|
981
|
+
nextLink: string,
|
|
982
|
+
options?: ClustersListNextOptionalParams
|
|
983
|
+
): Promise<ClustersListNextResponse> {
|
|
456
984
|
return this.client.sendOperationRequest(
|
|
457
|
-
{
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
},
|
|
461
|
-
listNextOperationSpec,
|
|
462
|
-
callback) as Promise<Models.ClustersListNextResponse>;
|
|
985
|
+
{ nextLink, options },
|
|
986
|
+
listNextOperationSpec
|
|
987
|
+
);
|
|
463
988
|
}
|
|
464
989
|
}
|
|
465
|
-
|
|
466
990
|
// Operation Specifications
|
|
467
|
-
const serializer =
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
path:
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
Parameters.resourceGroupName,
|
|
474
|
-
Parameters.clusterName
|
|
475
|
-
],
|
|
476
|
-
queryParameters: [
|
|
477
|
-
Parameters.apiVersion
|
|
478
|
-
],
|
|
479
|
-
headerParameters: [
|
|
480
|
-
Parameters.acceptLanguage
|
|
481
|
-
],
|
|
482
|
-
requestBody: {
|
|
483
|
-
parameterPath: "parameters",
|
|
484
|
-
mapper: {
|
|
485
|
-
...Mappers.ClusterPatchParameters,
|
|
486
|
-
required: true
|
|
487
|
-
}
|
|
488
|
-
},
|
|
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",
|
|
489
997
|
responses: {
|
|
490
998
|
200: {
|
|
491
999
|
bodyMapper: Mappers.Cluster
|
|
492
1000
|
},
|
|
1001
|
+
201: {
|
|
1002
|
+
bodyMapper: Mappers.Cluster
|
|
1003
|
+
},
|
|
1004
|
+
202: {
|
|
1005
|
+
bodyMapper: Mappers.Cluster
|
|
1006
|
+
},
|
|
1007
|
+
204: {
|
|
1008
|
+
bodyMapper: Mappers.Cluster
|
|
1009
|
+
},
|
|
493
1010
|
default: {
|
|
494
1011
|
bodyMapper: Mappers.ErrorResponse
|
|
495
1012
|
}
|
|
496
1013
|
},
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
const getOperationSpec: msRest.OperationSpec = {
|
|
501
|
-
httpMethod: "GET",
|
|
502
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}",
|
|
1014
|
+
requestBody: Parameters.parameters,
|
|
1015
|
+
queryParameters: [Parameters.apiVersion],
|
|
503
1016
|
urlParameters: [
|
|
1017
|
+
Parameters.$host,
|
|
504
1018
|
Parameters.subscriptionId,
|
|
505
1019
|
Parameters.resourceGroupName,
|
|
506
1020
|
Parameters.clusterName
|
|
507
1021
|
],
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
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",
|
|
514
1030
|
responses: {
|
|
515
1031
|
200: {
|
|
516
1032
|
bodyMapper: Mappers.Cluster
|
|
@@ -519,308 +1035,304 @@ const getOperationSpec: msRest.OperationSpec = {
|
|
|
519
1035
|
bodyMapper: Mappers.ErrorResponse
|
|
520
1036
|
}
|
|
521
1037
|
},
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
const listByResourceGroupOperationSpec: msRest.OperationSpec = {
|
|
526
|
-
httpMethod: "GET",
|
|
527
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters",
|
|
1038
|
+
requestBody: Parameters.parameters1,
|
|
1039
|
+
queryParameters: [Parameters.apiVersion],
|
|
528
1040
|
urlParameters: [
|
|
1041
|
+
Parameters.$host,
|
|
529
1042
|
Parameters.subscriptionId,
|
|
530
|
-
Parameters.resourceGroupName
|
|
531
|
-
|
|
532
|
-
queryParameters: [
|
|
533
|
-
Parameters.apiVersion
|
|
534
|
-
],
|
|
535
|
-
headerParameters: [
|
|
536
|
-
Parameters.acceptLanguage
|
|
1043
|
+
Parameters.resourceGroupName,
|
|
1044
|
+
Parameters.clusterName
|
|
537
1045
|
],
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
bodyMapper: Mappers.ClusterListResult
|
|
541
|
-
},
|
|
542
|
-
default: {
|
|
543
|
-
bodyMapper: Mappers.ErrorResponse
|
|
544
|
-
}
|
|
545
|
-
},
|
|
1046
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
1047
|
+
mediaType: "json",
|
|
546
1048
|
serializer
|
|
547
1049
|
};
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
urlParameters: [
|
|
553
|
-
Parameters.subscriptionId
|
|
554
|
-
],
|
|
555
|
-
queryParameters: [
|
|
556
|
-
Parameters.apiVersion
|
|
557
|
-
],
|
|
558
|
-
headerParameters: [
|
|
559
|
-
Parameters.acceptLanguage
|
|
560
|
-
],
|
|
1050
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
1051
|
+
path:
|
|
1052
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}",
|
|
1053
|
+
httpMethod: "DELETE",
|
|
561
1054
|
responses: {
|
|
562
|
-
200: {
|
|
563
|
-
|
|
564
|
-
},
|
|
1055
|
+
200: {},
|
|
1056
|
+
201: {},
|
|
1057
|
+
202: {},
|
|
1058
|
+
204: {},
|
|
565
1059
|
default: {
|
|
566
1060
|
bodyMapper: Mappers.ErrorResponse
|
|
567
1061
|
}
|
|
568
1062
|
},
|
|
569
|
-
|
|
570
|
-
};
|
|
571
|
-
|
|
572
|
-
const getGatewaySettingsOperationSpec: msRest.OperationSpec = {
|
|
573
|
-
httpMethod: "POST",
|
|
574
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/getGatewaySettings",
|
|
1063
|
+
queryParameters: [Parameters.apiVersion],
|
|
575
1064
|
urlParameters: [
|
|
1065
|
+
Parameters.$host,
|
|
576
1066
|
Parameters.subscriptionId,
|
|
577
1067
|
Parameters.resourceGroupName,
|
|
578
1068
|
Parameters.clusterName
|
|
579
1069
|
],
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
1070
|
+
headerParameters: [Parameters.accept],
|
|
1071
|
+
serializer
|
|
1072
|
+
};
|
|
1073
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
1074
|
+
path:
|
|
1075
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}",
|
|
1076
|
+
httpMethod: "GET",
|
|
586
1077
|
responses: {
|
|
587
1078
|
200: {
|
|
588
|
-
bodyMapper: Mappers.
|
|
1079
|
+
bodyMapper: Mappers.Cluster
|
|
589
1080
|
},
|
|
590
1081
|
default: {
|
|
591
1082
|
bodyMapper: Mappers.ErrorResponse
|
|
592
1083
|
}
|
|
593
1084
|
},
|
|
594
|
-
|
|
595
|
-
};
|
|
596
|
-
|
|
597
|
-
const beginCreateOperationSpec: msRest.OperationSpec = {
|
|
598
|
-
httpMethod: "PUT",
|
|
599
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}",
|
|
1085
|
+
queryParameters: [Parameters.apiVersion],
|
|
600
1086
|
urlParameters: [
|
|
1087
|
+
Parameters.$host,
|
|
601
1088
|
Parameters.subscriptionId,
|
|
602
1089
|
Parameters.resourceGroupName,
|
|
603
1090
|
Parameters.clusterName
|
|
604
1091
|
],
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
parameterPath: "parameters",
|
|
613
|
-
mapper: {
|
|
614
|
-
...Mappers.ClusterCreateParametersExtended,
|
|
615
|
-
required: true
|
|
616
|
-
}
|
|
617
|
-
},
|
|
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",
|
|
618
1099
|
responses: {
|
|
619
1100
|
200: {
|
|
620
|
-
bodyMapper: Mappers.
|
|
1101
|
+
bodyMapper: Mappers.ClusterListResult
|
|
621
1102
|
},
|
|
622
1103
|
default: {
|
|
623
1104
|
bodyMapper: Mappers.ErrorResponse
|
|
624
1105
|
}
|
|
625
1106
|
},
|
|
626
|
-
|
|
627
|
-
};
|
|
628
|
-
|
|
629
|
-
const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
|
|
630
|
-
httpMethod: "DELETE",
|
|
631
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}",
|
|
1107
|
+
queryParameters: [Parameters.apiVersion],
|
|
632
1108
|
urlParameters: [
|
|
1109
|
+
Parameters.$host,
|
|
633
1110
|
Parameters.subscriptionId,
|
|
634
|
-
Parameters.resourceGroupName
|
|
635
|
-
Parameters.clusterName
|
|
636
|
-
],
|
|
637
|
-
queryParameters: [
|
|
638
|
-
Parameters.apiVersion
|
|
639
|
-
],
|
|
640
|
-
headerParameters: [
|
|
641
|
-
Parameters.acceptLanguage
|
|
1111
|
+
Parameters.resourceGroupName
|
|
642
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",
|
|
643
1120
|
responses: {
|
|
644
1121
|
200: {},
|
|
1122
|
+
201: {},
|
|
645
1123
|
202: {},
|
|
646
1124
|
204: {},
|
|
647
1125
|
default: {
|
|
648
1126
|
bodyMapper: Mappers.ErrorResponse
|
|
649
1127
|
}
|
|
650
1128
|
},
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
const beginResizeOperationSpec: msRest.OperationSpec = {
|
|
655
|
-
httpMethod: "POST",
|
|
656
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/roles/{roleName}/resize",
|
|
1129
|
+
requestBody: Parameters.parameters2,
|
|
1130
|
+
queryParameters: [Parameters.apiVersion],
|
|
657
1131
|
urlParameters: [
|
|
1132
|
+
Parameters.$host,
|
|
658
1133
|
Parameters.subscriptionId,
|
|
659
1134
|
Parameters.resourceGroupName,
|
|
660
1135
|
Parameters.clusterName,
|
|
661
1136
|
Parameters.roleName
|
|
662
1137
|
],
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
mapper: {
|
|
672
|
-
...Mappers.ClusterResizeParameters,
|
|
673
|
-
required: true
|
|
674
|
-
}
|
|
675
|
-
},
|
|
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",
|
|
676
1146
|
responses: {
|
|
677
1147
|
200: {},
|
|
1148
|
+
201: {},
|
|
678
1149
|
202: {},
|
|
1150
|
+
204: {},
|
|
679
1151
|
default: {
|
|
680
1152
|
bodyMapper: Mappers.ErrorResponse
|
|
681
1153
|
}
|
|
682
1154
|
},
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
const beginUpdateAutoScaleConfigurationOperationSpec: msRest.OperationSpec = {
|
|
687
|
-
httpMethod: "POST",
|
|
688
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/roles/{roleName}/autoscale",
|
|
1155
|
+
requestBody: Parameters.parameters3,
|
|
1156
|
+
queryParameters: [Parameters.apiVersion],
|
|
689
1157
|
urlParameters: [
|
|
1158
|
+
Parameters.$host,
|
|
690
1159
|
Parameters.subscriptionId,
|
|
691
1160
|
Parameters.resourceGroupName,
|
|
692
1161
|
Parameters.clusterName,
|
|
693
1162
|
Parameters.roleName
|
|
694
1163
|
],
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
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
|
|
706
1178
|
}
|
|
707
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",
|
|
708
1189
|
responses: {
|
|
709
1190
|
200: {},
|
|
1191
|
+
201: {},
|
|
710
1192
|
202: {},
|
|
1193
|
+
204: {},
|
|
711
1194
|
default: {
|
|
712
1195
|
bodyMapper: Mappers.ErrorResponse
|
|
713
1196
|
}
|
|
714
1197
|
},
|
|
1198
|
+
requestBody: Parameters.parameters4,
|
|
1199
|
+
queryParameters: [Parameters.apiVersion],
|
|
1200
|
+
urlParameters: [
|
|
1201
|
+
Parameters.$host,
|
|
1202
|
+
Parameters.subscriptionId,
|
|
1203
|
+
Parameters.resourceGroupName,
|
|
1204
|
+
Parameters.clusterName
|
|
1205
|
+
],
|
|
1206
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
1207
|
+
mediaType: "json",
|
|
715
1208
|
serializer
|
|
716
1209
|
};
|
|
717
|
-
|
|
718
|
-
|
|
1210
|
+
const getGatewaySettingsOperationSpec: coreClient.OperationSpec = {
|
|
1211
|
+
path:
|
|
1212
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/getGatewaySettings",
|
|
719
1213
|
httpMethod: "POST",
|
|
720
|
-
|
|
1214
|
+
responses: {
|
|
1215
|
+
200: {
|
|
1216
|
+
bodyMapper: Mappers.GatewaySettings
|
|
1217
|
+
},
|
|
1218
|
+
default: {
|
|
1219
|
+
bodyMapper: Mappers.ErrorResponse
|
|
1220
|
+
}
|
|
1221
|
+
},
|
|
1222
|
+
queryParameters: [Parameters.apiVersion],
|
|
721
1223
|
urlParameters: [
|
|
1224
|
+
Parameters.$host,
|
|
722
1225
|
Parameters.subscriptionId,
|
|
723
1226
|
Parameters.resourceGroupName,
|
|
724
1227
|
Parameters.clusterName
|
|
725
1228
|
],
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
parameterPath: "parameters",
|
|
734
|
-
mapper: {
|
|
735
|
-
...Mappers.ClusterDiskEncryptionParameters,
|
|
736
|
-
required: true
|
|
737
|
-
}
|
|
738
|
-
},
|
|
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",
|
|
739
1236
|
responses: {
|
|
740
1237
|
200: {},
|
|
1238
|
+
201: {},
|
|
741
1239
|
202: {},
|
|
1240
|
+
204: {},
|
|
742
1241
|
default: {
|
|
743
1242
|
bodyMapper: Mappers.ErrorResponse
|
|
744
1243
|
}
|
|
745
1244
|
},
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
const beginUpdateGatewaySettingsOperationSpec: msRest.OperationSpec = {
|
|
750
|
-
httpMethod: "POST",
|
|
751
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/updateGatewaySettings",
|
|
1245
|
+
requestBody: Parameters.parameters5,
|
|
1246
|
+
queryParameters: [Parameters.apiVersion],
|
|
752
1247
|
urlParameters: [
|
|
1248
|
+
Parameters.$host,
|
|
753
1249
|
Parameters.subscriptionId,
|
|
754
1250
|
Parameters.resourceGroupName,
|
|
755
1251
|
Parameters.clusterName
|
|
756
1252
|
],
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
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
|
|
768
1267
|
}
|
|
769
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",
|
|
770
1284
|
responses: {
|
|
771
1285
|
200: {},
|
|
1286
|
+
201: {},
|
|
772
1287
|
202: {},
|
|
1288
|
+
204: {},
|
|
773
1289
|
default: {
|
|
774
1290
|
bodyMapper: Mappers.ErrorResponse
|
|
775
1291
|
}
|
|
776
1292
|
},
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
const beginExecuteScriptActionsOperationSpec: msRest.OperationSpec = {
|
|
781
|
-
httpMethod: "POST",
|
|
782
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/executeScriptActions",
|
|
1293
|
+
requestBody: Parameters.parameters6,
|
|
1294
|
+
queryParameters: [Parameters.apiVersion],
|
|
783
1295
|
urlParameters: [
|
|
1296
|
+
Parameters.$host,
|
|
784
1297
|
Parameters.subscriptionId,
|
|
785
1298
|
Parameters.resourceGroupName,
|
|
786
1299
|
Parameters.clusterName
|
|
787
1300
|
],
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
mapper: {
|
|
797
|
-
...Mappers.ExecuteScriptActionParameters,
|
|
798
|
-
required: true
|
|
799
|
-
}
|
|
800
|
-
},
|
|
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",
|
|
801
1309
|
responses: {
|
|
802
1310
|
200: {},
|
|
1311
|
+
201: {},
|
|
803
1312
|
202: {},
|
|
1313
|
+
204: {},
|
|
1314
|
+
404: {
|
|
1315
|
+
isError: true
|
|
1316
|
+
},
|
|
804
1317
|
default: {
|
|
805
1318
|
bodyMapper: Mappers.ErrorResponse
|
|
806
1319
|
}
|
|
807
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",
|
|
808
1331
|
serializer
|
|
809
1332
|
};
|
|
810
|
-
|
|
811
|
-
const listByResourceGroupNextOperationSpec: msRest.OperationSpec = {
|
|
812
|
-
httpMethod: "GET",
|
|
813
|
-
baseUrl: "https://management.azure.com",
|
|
1333
|
+
const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
|
|
814
1334
|
path: "{nextLink}",
|
|
815
|
-
|
|
816
|
-
Parameters.nextPageLink
|
|
817
|
-
],
|
|
818
|
-
queryParameters: [
|
|
819
|
-
Parameters.apiVersion
|
|
820
|
-
],
|
|
821
|
-
headerParameters: [
|
|
822
|
-
Parameters.acceptLanguage
|
|
823
|
-
],
|
|
1335
|
+
httpMethod: "GET",
|
|
824
1336
|
responses: {
|
|
825
1337
|
200: {
|
|
826
1338
|
bodyMapper: Mappers.ClusterListResult
|
|
@@ -829,22 +1341,19 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = {
|
|
|
829
1341
|
bodyMapper: Mappers.ErrorResponse
|
|
830
1342
|
}
|
|
831
1343
|
},
|
|
1344
|
+
queryParameters: [Parameters.apiVersion],
|
|
1345
|
+
urlParameters: [
|
|
1346
|
+
Parameters.$host,
|
|
1347
|
+
Parameters.subscriptionId,
|
|
1348
|
+
Parameters.resourceGroupName,
|
|
1349
|
+
Parameters.nextLink
|
|
1350
|
+
],
|
|
1351
|
+
headerParameters: [Parameters.accept],
|
|
832
1352
|
serializer
|
|
833
1353
|
};
|
|
834
|
-
|
|
835
|
-
const listNextOperationSpec: msRest.OperationSpec = {
|
|
836
|
-
httpMethod: "GET",
|
|
837
|
-
baseUrl: "https://management.azure.com",
|
|
1354
|
+
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
838
1355
|
path: "{nextLink}",
|
|
839
|
-
|
|
840
|
-
Parameters.nextPageLink
|
|
841
|
-
],
|
|
842
|
-
queryParameters: [
|
|
843
|
-
Parameters.apiVersion
|
|
844
|
-
],
|
|
845
|
-
headerParameters: [
|
|
846
|
-
Parameters.acceptLanguage
|
|
847
|
-
],
|
|
1356
|
+
httpMethod: "GET",
|
|
848
1357
|
responses: {
|
|
849
1358
|
200: {
|
|
850
1359
|
bodyMapper: Mappers.ClusterListResult
|
|
@@ -853,5 +1362,12 @@ const listNextOperationSpec: msRest.OperationSpec = {
|
|
|
853
1362
|
bodyMapper: Mappers.ErrorResponse
|
|
854
1363
|
}
|
|
855
1364
|
},
|
|
1365
|
+
queryParameters: [Parameters.apiVersion],
|
|
1366
|
+
urlParameters: [
|
|
1367
|
+
Parameters.$host,
|
|
1368
|
+
Parameters.subscriptionId,
|
|
1369
|
+
Parameters.nextLink
|
|
1370
|
+
],
|
|
1371
|
+
headerParameters: [Parameters.accept],
|
|
856
1372
|
serializer
|
|
857
1373
|
};
|