@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,25 +3,34 @@
|
|
|
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
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { ScriptExecutionHistory } from "../operationsInterfaces";
|
|
11
|
+
import * as coreClient from "@azure/core-client";
|
|
12
|
+
import * as Mappers from "../models/mappers";
|
|
13
13
|
import * as Parameters from "../models/parameters";
|
|
14
|
-
import {
|
|
14
|
+
import { HDInsightManagementClient } from "../hDInsightManagementClient";
|
|
15
|
+
import {
|
|
16
|
+
RuntimeScriptActionDetail,
|
|
17
|
+
ScriptExecutionHistoryListByClusterNextOptionalParams,
|
|
18
|
+
ScriptExecutionHistoryListByClusterOptionalParams,
|
|
19
|
+
ScriptExecutionHistoryListByClusterResponse,
|
|
20
|
+
ScriptExecutionHistoryPromoteOptionalParams,
|
|
21
|
+
ScriptExecutionHistoryListByClusterNextResponse
|
|
22
|
+
} from "../models";
|
|
15
23
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
24
|
+
/// <reference lib="esnext.asynciterable" />
|
|
25
|
+
/** Class containing ScriptExecutionHistory operations. */
|
|
26
|
+
export class ScriptExecutionHistoryImpl implements ScriptExecutionHistory {
|
|
27
|
+
private readonly client: HDInsightManagementClient;
|
|
19
28
|
|
|
20
29
|
/**
|
|
21
|
-
*
|
|
22
|
-
* @param
|
|
30
|
+
* Initialize a new instance of the class ScriptExecutionHistory class.
|
|
31
|
+
* @param client Reference to the service client
|
|
23
32
|
*/
|
|
24
|
-
constructor(client:
|
|
33
|
+
constructor(client: HDInsightManagementClient) {
|
|
25
34
|
this.client = client;
|
|
26
35
|
}
|
|
27
36
|
|
|
@@ -29,115 +38,135 @@ export class ScriptExecutionHistory {
|
|
|
29
38
|
* Lists all scripts' execution history for the specified cluster.
|
|
30
39
|
* @param resourceGroupName The name of the resource group.
|
|
31
40
|
* @param clusterName The name of the cluster.
|
|
32
|
-
* @param
|
|
33
|
-
* @returns Promise<Models.ScriptExecutionHistoryListByClusterResponse>
|
|
41
|
+
* @param options The options parameters.
|
|
34
42
|
*/
|
|
35
|
-
listByCluster(
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
43
|
+
public listByCluster(
|
|
44
|
+
resourceGroupName: string,
|
|
45
|
+
clusterName: string,
|
|
46
|
+
options?: ScriptExecutionHistoryListByClusterOptionalParams
|
|
47
|
+
): PagedAsyncIterableIterator<RuntimeScriptActionDetail> {
|
|
48
|
+
const iter = this.listByClusterPagingAll(
|
|
49
|
+
resourceGroupName,
|
|
50
|
+
clusterName,
|
|
51
|
+
options
|
|
52
|
+
);
|
|
53
|
+
return {
|
|
54
|
+
next() {
|
|
55
|
+
return iter.next();
|
|
56
|
+
},
|
|
57
|
+
[Symbol.asyncIterator]() {
|
|
58
|
+
return this;
|
|
59
|
+
},
|
|
60
|
+
byPage: () => {
|
|
61
|
+
return this.listByClusterPagingPage(
|
|
62
|
+
resourceGroupName,
|
|
63
|
+
clusterName,
|
|
64
|
+
options
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
private async *listByClusterPagingPage(
|
|
71
|
+
resourceGroupName: string,
|
|
72
|
+
clusterName: string,
|
|
73
|
+
options?: ScriptExecutionHistoryListByClusterOptionalParams
|
|
74
|
+
): AsyncIterableIterator<RuntimeScriptActionDetail[]> {
|
|
75
|
+
let result = await this._listByCluster(
|
|
76
|
+
resourceGroupName,
|
|
77
|
+
clusterName,
|
|
78
|
+
options
|
|
79
|
+
);
|
|
80
|
+
yield result.value || [];
|
|
81
|
+
let continuationToken = result.nextLink;
|
|
82
|
+
while (continuationToken) {
|
|
83
|
+
result = await this._listByClusterNext(
|
|
52
84
|
resourceGroupName,
|
|
53
85
|
clusterName,
|
|
86
|
+
continuationToken,
|
|
54
87
|
options
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
88
|
+
);
|
|
89
|
+
continuationToken = result.nextLink;
|
|
90
|
+
yield result.value || [];
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
private async *listByClusterPagingAll(
|
|
95
|
+
resourceGroupName: string,
|
|
96
|
+
clusterName: string,
|
|
97
|
+
options?: ScriptExecutionHistoryListByClusterOptionalParams
|
|
98
|
+
): AsyncIterableIterator<RuntimeScriptActionDetail> {
|
|
99
|
+
for await (const page of this.listByClusterPagingPage(
|
|
100
|
+
resourceGroupName,
|
|
101
|
+
clusterName,
|
|
102
|
+
options
|
|
103
|
+
)) {
|
|
104
|
+
yield* page;
|
|
105
|
+
}
|
|
58
106
|
}
|
|
59
107
|
|
|
60
108
|
/**
|
|
61
|
-
*
|
|
62
|
-
* @param resourceGroupName The name of the resource group.
|
|
63
|
-
* @param clusterName The name of the cluster.
|
|
64
|
-
* @param scriptExecutionId The script execution Id
|
|
65
|
-
* @param [options] The optional parameters
|
|
66
|
-
* @returns Promise<msRest.RestResponse>
|
|
67
|
-
*/
|
|
68
|
-
promote(resourceGroupName: string, clusterName: string, scriptExecutionId: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>;
|
|
69
|
-
/**
|
|
109
|
+
* Lists all scripts' execution history for the specified cluster.
|
|
70
110
|
* @param resourceGroupName The name of the resource group.
|
|
71
111
|
* @param clusterName The name of the cluster.
|
|
72
|
-
* @param
|
|
73
|
-
* @param callback The callback
|
|
112
|
+
* @param options The options parameters.
|
|
74
113
|
*/
|
|
75
|
-
|
|
114
|
+
private _listByCluster(
|
|
115
|
+
resourceGroupName: string,
|
|
116
|
+
clusterName: string,
|
|
117
|
+
options?: ScriptExecutionHistoryListByClusterOptionalParams
|
|
118
|
+
): Promise<ScriptExecutionHistoryListByClusterResponse> {
|
|
119
|
+
return this.client.sendOperationRequest(
|
|
120
|
+
{ resourceGroupName, clusterName, options },
|
|
121
|
+
listByClusterOperationSpec
|
|
122
|
+
);
|
|
123
|
+
}
|
|
124
|
+
|
|
76
125
|
/**
|
|
126
|
+
* Promotes the specified ad-hoc script execution to a persisted script.
|
|
77
127
|
* @param resourceGroupName The name of the resource group.
|
|
78
128
|
* @param clusterName The name of the cluster.
|
|
79
129
|
* @param scriptExecutionId The script execution Id
|
|
80
|
-
* @param options The
|
|
81
|
-
* @param callback The callback
|
|
130
|
+
* @param options The options parameters.
|
|
82
131
|
*/
|
|
83
|
-
promote(
|
|
84
|
-
|
|
132
|
+
promote(
|
|
133
|
+
resourceGroupName: string,
|
|
134
|
+
clusterName: string,
|
|
135
|
+
scriptExecutionId: string,
|
|
136
|
+
options?: ScriptExecutionHistoryPromoteOptionalParams
|
|
137
|
+
): Promise<void> {
|
|
85
138
|
return this.client.sendOperationRequest(
|
|
86
|
-
{
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
scriptExecutionId,
|
|
90
|
-
options
|
|
91
|
-
},
|
|
92
|
-
promoteOperationSpec,
|
|
93
|
-
callback);
|
|
139
|
+
{ resourceGroupName, clusterName, scriptExecutionId, options },
|
|
140
|
+
promoteOperationSpec
|
|
141
|
+
);
|
|
94
142
|
}
|
|
95
143
|
|
|
96
144
|
/**
|
|
97
|
-
*
|
|
98
|
-
* @param
|
|
99
|
-
* @param
|
|
100
|
-
* @
|
|
101
|
-
|
|
102
|
-
listByClusterNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.ScriptExecutionHistoryListByClusterNextResponse>;
|
|
103
|
-
/**
|
|
104
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
105
|
-
* @param callback The callback
|
|
106
|
-
*/
|
|
107
|
-
listByClusterNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.ScriptActionExecutionHistoryList>): void;
|
|
108
|
-
/**
|
|
109
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
110
|
-
* @param options The optional parameters
|
|
111
|
-
* @param callback The callback
|
|
145
|
+
* ListByClusterNext
|
|
146
|
+
* @param resourceGroupName The name of the resource group.
|
|
147
|
+
* @param clusterName The name of the cluster.
|
|
148
|
+
* @param nextLink The nextLink from the previous successful call to the ListByCluster method.
|
|
149
|
+
* @param options The options parameters.
|
|
112
150
|
*/
|
|
113
|
-
|
|
114
|
-
|
|
151
|
+
private _listByClusterNext(
|
|
152
|
+
resourceGroupName: string,
|
|
153
|
+
clusterName: string,
|
|
154
|
+
nextLink: string,
|
|
155
|
+
options?: ScriptExecutionHistoryListByClusterNextOptionalParams
|
|
156
|
+
): Promise<ScriptExecutionHistoryListByClusterNextResponse> {
|
|
115
157
|
return this.client.sendOperationRequest(
|
|
116
|
-
{
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
},
|
|
120
|
-
listByClusterNextOperationSpec,
|
|
121
|
-
callback) as Promise<Models.ScriptExecutionHistoryListByClusterNextResponse>;
|
|
158
|
+
{ resourceGroupName, clusterName, nextLink, options },
|
|
159
|
+
listByClusterNextOperationSpec
|
|
160
|
+
);
|
|
122
161
|
}
|
|
123
162
|
}
|
|
124
|
-
|
|
125
163
|
// Operation Specifications
|
|
126
|
-
const serializer =
|
|
127
|
-
|
|
164
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
165
|
+
|
|
166
|
+
const listByClusterOperationSpec: coreClient.OperationSpec = {
|
|
167
|
+
path:
|
|
168
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/scriptExecutionHistory",
|
|
128
169
|
httpMethod: "GET",
|
|
129
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/scriptExecutionHistory",
|
|
130
|
-
urlParameters: [
|
|
131
|
-
Parameters.subscriptionId,
|
|
132
|
-
Parameters.resourceGroupName,
|
|
133
|
-
Parameters.clusterName
|
|
134
|
-
],
|
|
135
|
-
queryParameters: [
|
|
136
|
-
Parameters.apiVersion
|
|
137
|
-
],
|
|
138
|
-
headerParameters: [
|
|
139
|
-
Parameters.acceptLanguage
|
|
140
|
-
],
|
|
141
170
|
responses: {
|
|
142
171
|
200: {
|
|
143
172
|
bodyMapper: Mappers.ScriptActionExecutionHistoryList
|
|
@@ -146,46 +175,40 @@ const listByClusterOperationSpec: msRest.OperationSpec = {
|
|
|
146
175
|
bodyMapper: Mappers.ErrorResponse
|
|
147
176
|
}
|
|
148
177
|
},
|
|
149
|
-
|
|
150
|
-
};
|
|
151
|
-
|
|
152
|
-
const promoteOperationSpec: msRest.OperationSpec = {
|
|
153
|
-
httpMethod: "POST",
|
|
154
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/scriptExecutionHistory/{scriptExecutionId}/promote",
|
|
178
|
+
queryParameters: [Parameters.apiVersion],
|
|
155
179
|
urlParameters: [
|
|
180
|
+
Parameters.$host,
|
|
156
181
|
Parameters.subscriptionId,
|
|
157
182
|
Parameters.resourceGroupName,
|
|
158
|
-
Parameters.clusterName
|
|
159
|
-
Parameters.scriptExecutionId
|
|
160
|
-
],
|
|
161
|
-
queryParameters: [
|
|
162
|
-
Parameters.apiVersion
|
|
163
|
-
],
|
|
164
|
-
headerParameters: [
|
|
165
|
-
Parameters.acceptLanguage
|
|
183
|
+
Parameters.clusterName
|
|
166
184
|
],
|
|
185
|
+
headerParameters: [Parameters.accept],
|
|
186
|
+
serializer
|
|
187
|
+
};
|
|
188
|
+
const promoteOperationSpec: coreClient.OperationSpec = {
|
|
189
|
+
path:
|
|
190
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/scriptExecutionHistory/{scriptExecutionId}/promote",
|
|
191
|
+
httpMethod: "POST",
|
|
167
192
|
responses: {
|
|
168
193
|
200: {},
|
|
169
194
|
default: {
|
|
170
195
|
bodyMapper: Mappers.ErrorResponse
|
|
171
196
|
}
|
|
172
197
|
},
|
|
198
|
+
queryParameters: [Parameters.apiVersion],
|
|
199
|
+
urlParameters: [
|
|
200
|
+
Parameters.$host,
|
|
201
|
+
Parameters.subscriptionId,
|
|
202
|
+
Parameters.resourceGroupName,
|
|
203
|
+
Parameters.clusterName,
|
|
204
|
+
Parameters.scriptExecutionId
|
|
205
|
+
],
|
|
206
|
+
headerParameters: [Parameters.accept],
|
|
173
207
|
serializer
|
|
174
208
|
};
|
|
175
|
-
|
|
176
|
-
const listByClusterNextOperationSpec: msRest.OperationSpec = {
|
|
177
|
-
httpMethod: "GET",
|
|
178
|
-
baseUrl: "https://management.azure.com",
|
|
209
|
+
const listByClusterNextOperationSpec: coreClient.OperationSpec = {
|
|
179
210
|
path: "{nextLink}",
|
|
180
|
-
|
|
181
|
-
Parameters.nextPageLink
|
|
182
|
-
],
|
|
183
|
-
queryParameters: [
|
|
184
|
-
Parameters.apiVersion
|
|
185
|
-
],
|
|
186
|
-
headerParameters: [
|
|
187
|
-
Parameters.acceptLanguage
|
|
188
|
-
],
|
|
211
|
+
httpMethod: "GET",
|
|
189
212
|
responses: {
|
|
190
213
|
200: {
|
|
191
214
|
bodyMapper: Mappers.ScriptActionExecutionHistoryList
|
|
@@ -194,5 +217,14 @@ const listByClusterNextOperationSpec: msRest.OperationSpec = {
|
|
|
194
217
|
bodyMapper: Mappers.ErrorResponse
|
|
195
218
|
}
|
|
196
219
|
},
|
|
220
|
+
queryParameters: [Parameters.apiVersion],
|
|
221
|
+
urlParameters: [
|
|
222
|
+
Parameters.$host,
|
|
223
|
+
Parameters.subscriptionId,
|
|
224
|
+
Parameters.resourceGroupName,
|
|
225
|
+
Parameters.clusterName,
|
|
226
|
+
Parameters.nextLink
|
|
227
|
+
],
|
|
228
|
+
headerParameters: [Parameters.accept],
|
|
197
229
|
serializer
|
|
198
230
|
};
|
|
@@ -3,26 +3,33 @@
|
|
|
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 * as
|
|
12
|
-
import * as
|
|
13
|
-
import * as Mappers from "../models/virtualMachinesMappers";
|
|
9
|
+
import { VirtualMachines } from "../operationsInterfaces";
|
|
10
|
+
import * as coreClient from "@azure/core-client";
|
|
11
|
+
import * as Mappers from "../models/mappers";
|
|
14
12
|
import * as Parameters from "../models/parameters";
|
|
15
|
-
import {
|
|
13
|
+
import { HDInsightManagementClient } from "../hDInsightManagementClient";
|
|
14
|
+
import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
|
|
15
|
+
import { LroImpl } from "../lroImpl";
|
|
16
|
+
import {
|
|
17
|
+
VirtualMachinesListHostsOptionalParams,
|
|
18
|
+
VirtualMachinesListHostsResponse,
|
|
19
|
+
VirtualMachinesRestartHostsOptionalParams,
|
|
20
|
+
VirtualMachinesGetAsyncOperationStatusOptionalParams,
|
|
21
|
+
VirtualMachinesGetAsyncOperationStatusResponse
|
|
22
|
+
} from "../models";
|
|
16
23
|
|
|
17
|
-
/** Class
|
|
18
|
-
export class VirtualMachines {
|
|
19
|
-
private readonly client:
|
|
24
|
+
/** Class containing VirtualMachines operations. */
|
|
25
|
+
export class VirtualMachinesImpl implements VirtualMachines {
|
|
26
|
+
private readonly client: HDInsightManagementClient;
|
|
20
27
|
|
|
21
28
|
/**
|
|
22
|
-
*
|
|
23
|
-
* @param
|
|
29
|
+
* Initialize a new instance of the class VirtualMachines class.
|
|
30
|
+
* @param client Reference to the service client
|
|
24
31
|
*/
|
|
25
|
-
constructor(client:
|
|
32
|
+
constructor(client: HDInsightManagementClient) {
|
|
26
33
|
this.client = client;
|
|
27
34
|
}
|
|
28
35
|
|
|
@@ -30,32 +37,81 @@ export class VirtualMachines {
|
|
|
30
37
|
* Lists the HDInsight clusters hosts
|
|
31
38
|
* @param resourceGroupName The name of the resource group.
|
|
32
39
|
* @param clusterName The name of the cluster.
|
|
33
|
-
* @param
|
|
34
|
-
* @returns Promise<Models.VirtualMachinesListHostsResponse>
|
|
40
|
+
* @param options The options parameters.
|
|
35
41
|
*/
|
|
36
|
-
listHosts(
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
42
|
+
listHosts(
|
|
43
|
+
resourceGroupName: string,
|
|
44
|
+
clusterName: string,
|
|
45
|
+
options?: VirtualMachinesListHostsOptionalParams
|
|
46
|
+
): Promise<VirtualMachinesListHostsResponse> {
|
|
47
|
+
return this.client.sendOperationRequest(
|
|
48
|
+
{ resourceGroupName, clusterName, options },
|
|
49
|
+
listHostsOperationSpec
|
|
50
|
+
);
|
|
51
|
+
}
|
|
52
|
+
|
|
43
53
|
/**
|
|
54
|
+
* Restarts the specified HDInsight cluster hosts.
|
|
44
55
|
* @param resourceGroupName The name of the resource group.
|
|
45
56
|
* @param clusterName The name of the cluster.
|
|
46
|
-
* @param
|
|
47
|
-
* @param
|
|
57
|
+
* @param hosts The list of hosts to restart
|
|
58
|
+
* @param options The options parameters.
|
|
48
59
|
*/
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
60
|
+
async beginRestartHosts(
|
|
61
|
+
resourceGroupName: string,
|
|
62
|
+
clusterName: string,
|
|
63
|
+
hosts: string[],
|
|
64
|
+
options?: VirtualMachinesRestartHostsOptionalParams
|
|
65
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
66
|
+
const directSendOperation = async (
|
|
67
|
+
args: coreClient.OperationArguments,
|
|
68
|
+
spec: coreClient.OperationSpec
|
|
69
|
+
): Promise<void> => {
|
|
70
|
+
return this.client.sendOperationRequest(args, spec);
|
|
71
|
+
};
|
|
72
|
+
const sendOperation = async (
|
|
73
|
+
args: coreClient.OperationArguments,
|
|
74
|
+
spec: coreClient.OperationSpec
|
|
75
|
+
) => {
|
|
76
|
+
let currentRawResponse:
|
|
77
|
+
| coreClient.FullOperationResponse
|
|
78
|
+
| undefined = undefined;
|
|
79
|
+
const providedCallback = args.options?.onResponse;
|
|
80
|
+
const callback: coreClient.RawResponseCallback = (
|
|
81
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
82
|
+
flatResponse: unknown
|
|
83
|
+
) => {
|
|
84
|
+
currentRawResponse = rawResponse;
|
|
85
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
86
|
+
};
|
|
87
|
+
const updatedArgs = {
|
|
88
|
+
...args,
|
|
89
|
+
options: {
|
|
90
|
+
...args.options,
|
|
91
|
+
onResponse: callback
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
95
|
+
return {
|
|
96
|
+
flatResponse,
|
|
97
|
+
rawResponse: {
|
|
98
|
+
statusCode: currentRawResponse!.status,
|
|
99
|
+
body: currentRawResponse!.parsedBody,
|
|
100
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
const lro = new LroImpl(
|
|
106
|
+
sendOperation,
|
|
107
|
+
{ resourceGroupName, clusterName, hosts, options },
|
|
108
|
+
restartHostsOperationSpec
|
|
109
|
+
);
|
|
110
|
+
return new LroEngine(lro, {
|
|
111
|
+
resumeFrom: options?.resumeFrom,
|
|
112
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
113
|
+
lroResourceLocationConfig: "location"
|
|
114
|
+
});
|
|
59
115
|
}
|
|
60
116
|
|
|
61
117
|
/**
|
|
@@ -63,63 +119,55 @@ export class VirtualMachines {
|
|
|
63
119
|
* @param resourceGroupName The name of the resource group.
|
|
64
120
|
* @param clusterName The name of the cluster.
|
|
65
121
|
* @param hosts The list of hosts to restart
|
|
66
|
-
* @param
|
|
67
|
-
* @returns Promise<msRest.RestResponse>
|
|
122
|
+
* @param options The options parameters.
|
|
68
123
|
*/
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
124
|
+
async beginRestartHostsAndWait(
|
|
125
|
+
resourceGroupName: string,
|
|
126
|
+
clusterName: string,
|
|
127
|
+
hosts: string[],
|
|
128
|
+
options?: VirtualMachinesRestartHostsOptionalParams
|
|
129
|
+
): Promise<void> {
|
|
130
|
+
const poller = await this.beginRestartHosts(
|
|
131
|
+
resourceGroupName,
|
|
132
|
+
clusterName,
|
|
133
|
+
hosts,
|
|
134
|
+
options
|
|
135
|
+
);
|
|
136
|
+
return poller.pollUntilDone();
|
|
72
137
|
}
|
|
73
138
|
|
|
74
139
|
/**
|
|
75
|
-
*
|
|
140
|
+
* Gets the async operation status.
|
|
76
141
|
* @param resourceGroupName The name of the resource group.
|
|
77
142
|
* @param clusterName The name of the cluster.
|
|
78
|
-
* @param
|
|
79
|
-
* @param
|
|
80
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
143
|
+
* @param operationId The long running operation id.
|
|
144
|
+
* @param options The options parameters.
|
|
81
145
|
*/
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
},
|
|
90
|
-
|
|
91
|
-
|
|
146
|
+
getAsyncOperationStatus(
|
|
147
|
+
resourceGroupName: string,
|
|
148
|
+
clusterName: string,
|
|
149
|
+
operationId: string,
|
|
150
|
+
options?: VirtualMachinesGetAsyncOperationStatusOptionalParams
|
|
151
|
+
): Promise<VirtualMachinesGetAsyncOperationStatusResponse> {
|
|
152
|
+
return this.client.sendOperationRequest(
|
|
153
|
+
{ resourceGroupName, clusterName, operationId, options },
|
|
154
|
+
getAsyncOperationStatusOperationSpec
|
|
155
|
+
);
|
|
92
156
|
}
|
|
93
157
|
}
|
|
94
|
-
|
|
95
158
|
// Operation Specifications
|
|
96
|
-
const serializer =
|
|
97
|
-
|
|
159
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
160
|
+
|
|
161
|
+
const listHostsOperationSpec: coreClient.OperationSpec = {
|
|
162
|
+
path:
|
|
163
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/listHosts",
|
|
98
164
|
httpMethod: "POST",
|
|
99
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/listHosts",
|
|
100
|
-
urlParameters: [
|
|
101
|
-
Parameters.subscriptionId,
|
|
102
|
-
Parameters.resourceGroupName,
|
|
103
|
-
Parameters.clusterName
|
|
104
|
-
],
|
|
105
|
-
queryParameters: [
|
|
106
|
-
Parameters.apiVersion
|
|
107
|
-
],
|
|
108
|
-
headerParameters: [
|
|
109
|
-
Parameters.acceptLanguage
|
|
110
|
-
],
|
|
111
165
|
responses: {
|
|
112
166
|
200: {
|
|
113
167
|
bodyMapper: {
|
|
114
|
-
serializedName: "parsedResponse",
|
|
115
168
|
type: {
|
|
116
169
|
name: "Sequence",
|
|
117
|
-
element: {
|
|
118
|
-
type: {
|
|
119
|
-
name: "Composite",
|
|
120
|
-
className: "HostInfo"
|
|
121
|
-
}
|
|
122
|
-
}
|
|
170
|
+
element: { type: { name: "Composite", className: "HostInfo" } }
|
|
123
171
|
}
|
|
124
172
|
}
|
|
125
173
|
},
|
|
@@ -127,44 +175,61 @@ const listHostsOperationSpec: msRest.OperationSpec = {
|
|
|
127
175
|
bodyMapper: Mappers.ErrorResponse
|
|
128
176
|
}
|
|
129
177
|
},
|
|
178
|
+
queryParameters: [Parameters.apiVersion],
|
|
179
|
+
urlParameters: [
|
|
180
|
+
Parameters.$host,
|
|
181
|
+
Parameters.subscriptionId,
|
|
182
|
+
Parameters.resourceGroupName,
|
|
183
|
+
Parameters.clusterName
|
|
184
|
+
],
|
|
185
|
+
headerParameters: [Parameters.accept],
|
|
130
186
|
serializer
|
|
131
187
|
};
|
|
132
|
-
|
|
133
|
-
|
|
188
|
+
const restartHostsOperationSpec: coreClient.OperationSpec = {
|
|
189
|
+
path:
|
|
190
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/restartHosts",
|
|
134
191
|
httpMethod: "POST",
|
|
135
|
-
|
|
192
|
+
responses: {
|
|
193
|
+
200: {},
|
|
194
|
+
201: {},
|
|
195
|
+
202: {},
|
|
196
|
+
204: {},
|
|
197
|
+
default: {
|
|
198
|
+
bodyMapper: Mappers.ErrorResponse
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
requestBody: Parameters.hosts,
|
|
202
|
+
queryParameters: [Parameters.apiVersion],
|
|
136
203
|
urlParameters: [
|
|
204
|
+
Parameters.$host,
|
|
137
205
|
Parameters.subscriptionId,
|
|
138
206
|
Parameters.resourceGroupName,
|
|
139
207
|
Parameters.clusterName
|
|
140
208
|
],
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
mapper: {
|
|
150
|
-
required: true,
|
|
151
|
-
serializedName: "hosts",
|
|
152
|
-
type: {
|
|
153
|
-
name: "Sequence",
|
|
154
|
-
element: {
|
|
155
|
-
type: {
|
|
156
|
-
name: "String"
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
},
|
|
209
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
210
|
+
mediaType: "json",
|
|
211
|
+
serializer
|
|
212
|
+
};
|
|
213
|
+
const getAsyncOperationStatusOperationSpec: coreClient.OperationSpec = {
|
|
214
|
+
path:
|
|
215
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/restartHosts/azureasyncoperations/{operationId}",
|
|
216
|
+
httpMethod: "GET",
|
|
162
217
|
responses: {
|
|
163
|
-
200: {
|
|
164
|
-
|
|
218
|
+
200: {
|
|
219
|
+
bodyMapper: Mappers.AsyncOperationResult
|
|
220
|
+
},
|
|
165
221
|
default: {
|
|
166
222
|
bodyMapper: Mappers.ErrorResponse
|
|
167
223
|
}
|
|
168
224
|
},
|
|
225
|
+
queryParameters: [Parameters.apiVersion],
|
|
226
|
+
urlParameters: [
|
|
227
|
+
Parameters.$host,
|
|
228
|
+
Parameters.subscriptionId,
|
|
229
|
+
Parameters.resourceGroupName,
|
|
230
|
+
Parameters.clusterName,
|
|
231
|
+
Parameters.operationId
|
|
232
|
+
],
|
|
233
|
+
headerParameters: [Parameters.accept],
|
|
169
234
|
serializer
|
|
170
235
|
};
|