@azure/arm-hdinsight 0.24.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -0
- package/{LICENSE.txt → LICENSE} +1 -1
- package/README.md +70 -82
- package/dist/index.js +7702 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/src/hDInsightManagementClient.d.ts +29 -0
- package/dist-esm/src/hDInsightManagementClient.d.ts.map +1 -0
- package/dist-esm/src/hDInsightManagementClient.js +62 -0
- package/dist-esm/src/hDInsightManagementClient.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/{esm/models/virtualMachinesMappers.js → dist-esm/src/index.js} +5 -2
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +1966 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +133 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +111 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +1516 -1670
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +37 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +280 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/applications.d.ts +90 -0
- package/dist-esm/src/operations/applications.d.ts.map +1 -0
- package/dist-esm/src/operations/applications.js +367 -0
- package/dist-esm/src/operations/applications.js.map +1 -0
- package/dist-esm/src/operations/clusters.d.ts +214 -0
- package/dist-esm/src/operations/clusters.d.ts.map +1 -0
- package/dist-esm/src/operations/clusters.js +979 -0
- package/dist-esm/src/operations/clusters.js.map +1 -0
- package/dist-esm/src/operations/configurations.d.ts +54 -0
- package/dist-esm/src/operations/configurations.d.ts.map +1 -0
- package/dist-esm/src/operations/configurations.js +178 -0
- package/dist-esm/src/operations/configurations.js.map +1 -0
- package/dist-esm/src/operations/extensions.d.ts +139 -0
- package/dist-esm/src/operations/extensions.d.ts.map +1 -0
- package/dist-esm/src/operations/extensions.js +602 -0
- package/dist-esm/src/operations/extensions.js.map +1 -0
- package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/index.js +1 -2
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/locations.d.ts +52 -0
- package/dist-esm/src/operations/locations.d.ts.map +1 -0
- package/dist-esm/src/operations/locations.js +199 -0
- package/dist-esm/src/operations/locations.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +32 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +120 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/privateEndpointConnections.d.ts +81 -0
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -0
- package/dist-esm/src/operations/privateEndpointConnections.js +349 -0
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -0
- package/dist-esm/src/operations/privateLinkResources.d.ts +28 -0
- package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -0
- package/dist-esm/src/operations/privateLinkResources.js +85 -0
- package/dist-esm/src/operations/privateLinkResources.js.map +1 -0
- package/dist-esm/src/operations/scriptActions.d.ts +62 -0
- package/dist-esm/src/operations/scriptActions.d.ts.map +1 -0
- package/dist-esm/src/operations/scriptActions.js +232 -0
- package/dist-esm/src/operations/scriptActions.js.map +1 -0
- package/dist-esm/src/operations/scriptExecutionHistory.d.ts +46 -0
- package/dist-esm/src/operations/scriptExecutionHistory.d.ts.map +1 -0
- package/dist-esm/src/operations/scriptExecutionHistory.js +167 -0
- package/dist-esm/src/operations/scriptExecutionHistory.js.map +1 -0
- package/dist-esm/src/operations/virtualMachines.d.ts +45 -0
- package/dist-esm/src/operations/virtualMachines.d.ts.map +1 -0
- package/dist-esm/src/operations/virtualMachines.js +169 -0
- package/dist-esm/src/operations/virtualMachines.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/applications.d.ts +65 -0
- package/dist-esm/src/operationsInterfaces/applications.d.ts.map +1 -0
- package/{src/models/configurationsMappers.ts → dist-esm/src/operationsInterfaces/applications.js} +2 -5
- package/dist-esm/src/operationsInterfaces/applications.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/clusters.d.ts +178 -0
- package/dist-esm/src/operationsInterfaces/clusters.d.ts.map +1 -0
- package/{esm/models/index.js → dist-esm/src/operationsInterfaces/clusters.js} +2 -1
- package/dist-esm/src/operationsInterfaces/clusters.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/configurations.d.ts +46 -0
- package/dist-esm/src/operationsInterfaces/configurations.d.ts.map +1 -0
- package/{src/models/virtualMachinesMappers.ts → dist-esm/src/operationsInterfaces/configurations.js} +2 -7
- package/dist-esm/src/operationsInterfaces/configurations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/extensions.d.ts +131 -0
- package/dist-esm/src/operationsInterfaces/extensions.d.ts.map +1 -0
- package/{esm/models/configurationsMappers.js → dist-esm/src/operationsInterfaces/extensions.js} +2 -2
- package/dist-esm/src/operationsInterfaces/extensions.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +12 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +19 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/locations.d.ts +44 -0
- package/dist-esm/src/operationsInterfaces/locations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/locations.js +9 -0
- package/dist-esm/src/operationsInterfaces/locations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +56 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js +9 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts +20 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.js +9 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/scriptActions.d.ts +37 -0
- package/dist-esm/src/operationsInterfaces/scriptActions.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/scriptActions.js +9 -0
- package/dist-esm/src/operationsInterfaces/scriptActions.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/scriptExecutionHistory.d.ts +21 -0
- package/dist-esm/src/operationsInterfaces/scriptExecutionHistory.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/scriptExecutionHistory.js +9 -0
- package/dist-esm/src/operationsInterfaces/scriptExecutionHistory.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/virtualMachines.d.ts +37 -0
- package/dist-esm/src/operationsInterfaces/virtualMachines.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/virtualMachines.js +9 -0
- package/dist-esm/src/operationsInterfaces/virtualMachines.js.map +1 -0
- package/dist-esm/test/sampleTest.d.ts +2 -0
- package/dist-esm/test/sampleTest.d.ts.map +1 -0
- package/dist-esm/test/sampleTest.js +40 -0
- package/dist-esm/test/sampleTest.js.map +1 -0
- package/package.json +65 -32
- package/review/arm-hdinsight.api.md +1678 -0
- package/rollup.config.js +181 -30
- package/src/hDInsightManagementClient.ts +105 -53
- package/src/{models/scriptExecutionHistoryMappers.ts → index.ts} +4 -7
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +1810 -2954
- package/src/models/mappers.ts +1607 -1764
- package/src/models/parameters.ts +215 -53
- package/src/operations/applications.ts +376 -247
- package/src/operations/clusters.ts +1038 -649
- package/src/operations/configurations.ts +162 -154
- package/src/operations/extensions.ts +644 -410
- package/src/operations/index.ts +1 -2
- package/src/operations/locations.ts +143 -239
- package/src/operations/operations.ts +85 -73
- package/src/operations/privateEndpointConnections.ts +345 -182
- package/src/operations/privateLinkResources.ts +60 -92
- package/src/operations/scriptActions.ts +202 -206
- package/src/operations/scriptExecutionHistory.ts +155 -123
- package/src/operations/virtualMachines.ts +157 -154
- package/src/operationsInterfaces/applications.ts +126 -0
- package/src/operationsInterfaces/clusters.ts +327 -0
- package/src/operationsInterfaces/configurations.ts +77 -0
- package/src/operationsInterfaces/extensions.ts +234 -0
- package/src/operationsInterfaces/index.ts +19 -0
- package/src/operationsInterfaces/locations.ts +88 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/privateEndpointConnections.ts +109 -0
- package/src/operationsInterfaces/privateLinkResources.ts +42 -0
- package/src/operationsInterfaces/scriptActions.ts +73 -0
- package/src/operationsInterfaces/scriptExecutionHistory.ts +43 -0
- package/src/operationsInterfaces/virtualMachines.ts +70 -0
- package/tsconfig.json +3 -3
- package/types/arm-hdinsight.d.ts +2866 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-hdinsight.js +0 -7464
- package/dist/arm-hdinsight.js.map +0 -1
- package/dist/arm-hdinsight.min.js +0 -1
- package/dist/arm-hdinsight.min.js.map +0 -1
- package/esm/hDInsightManagementClient.d.ts +0 -35
- package/esm/hDInsightManagementClient.d.ts.map +0 -1
- package/esm/hDInsightManagementClient.js +0 -48
- package/esm/hDInsightManagementClient.js.map +0 -1
- package/esm/hDInsightManagementClientContext.d.ts +0 -23
- package/esm/hDInsightManagementClientContext.d.ts.map +0 -1
- package/esm/hDInsightManagementClientContext.js +0 -61
- package/esm/hDInsightManagementClientContext.js.map +0 -1
- package/esm/models/applicationsMappers.d.ts +0 -2
- package/esm/models/applicationsMappers.d.ts.map +0 -1
- package/esm/models/applicationsMappers.js +0 -9
- package/esm/models/applicationsMappers.js.map +0 -1
- package/esm/models/clustersMappers.d.ts +0 -2
- package/esm/models/clustersMappers.d.ts.map +0 -1
- package/esm/models/clustersMappers.js +0 -9
- package/esm/models/clustersMappers.js.map +0 -1
- package/esm/models/configurationsMappers.d.ts +0 -2
- package/esm/models/configurationsMappers.d.ts.map +0 -1
- package/esm/models/configurationsMappers.js.map +0 -1
- package/esm/models/extensionsMappers.d.ts +0 -2
- package/esm/models/extensionsMappers.d.ts.map +0 -1
- package/esm/models/extensionsMappers.js +0 -9
- package/esm/models/extensionsMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -3163
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js.map +0 -1
- package/esm/models/locationsMappers.d.ts +0 -2
- package/esm/models/locationsMappers.d.ts.map +0 -1
- package/esm/models/locationsMappers.js +0 -9
- package/esm/models/locationsMappers.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -113
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/operationsMappers.d.ts +0 -2
- package/esm/models/operationsMappers.d.ts.map +0 -1
- package/esm/models/operationsMappers.js +0 -9
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -18
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -172
- package/esm/models/parameters.js.map +0 -1
- package/esm/models/privateEndpointConnectionsMappers.d.ts +0 -2
- package/esm/models/privateEndpointConnectionsMappers.d.ts.map +0 -1
- package/esm/models/privateEndpointConnectionsMappers.js +0 -9
- package/esm/models/privateEndpointConnectionsMappers.js.map +0 -1
- package/esm/models/privateLinkResourcesMappers.d.ts +0 -2
- package/esm/models/privateLinkResourcesMappers.d.ts.map +0 -1
- package/esm/models/privateLinkResourcesMappers.js +0 -9
- package/esm/models/privateLinkResourcesMappers.js.map +0 -1
- package/esm/models/scriptActionsMappers.d.ts +0 -2
- package/esm/models/scriptActionsMappers.d.ts.map +0 -1
- package/esm/models/scriptActionsMappers.js +0 -9
- package/esm/models/scriptActionsMappers.js.map +0 -1
- package/esm/models/scriptExecutionHistoryMappers.d.ts +0 -2
- package/esm/models/scriptExecutionHistoryMappers.d.ts.map +0 -1
- package/esm/models/scriptExecutionHistoryMappers.js +0 -9
- package/esm/models/scriptExecutionHistoryMappers.js.map +0 -1
- package/esm/models/virtualMachinesMappers.d.ts +0 -2
- package/esm/models/virtualMachinesMappers.d.ts.map +0 -1
- package/esm/models/virtualMachinesMappers.js.map +0 -1
- package/esm/operations/applications.d.ts +0 -142
- package/esm/operations/applications.d.ts.map +0 -1
- package/esm/operations/applications.js +0 -268
- package/esm/operations/applications.js.map +0 -1
- package/esm/operations/clusters.d.ts +0 -315
- package/esm/operations/clusters.d.ts.map +0 -1
- package/esm/operations/clusters.js +0 -710
- package/esm/operations/clusters.js.map +0 -1
- package/esm/operations/configurations.d.ts +0 -90
- package/esm/operations/configurations.d.ts.map +0 -1
- package/esm/operations/configurations.js +0 -173
- package/esm/operations/configurations.js.map +0 -1
- package/esm/operations/extensions.d.ts +0 -213
- package/esm/operations/extensions.d.ts.map +0 -1
- package/esm/operations/extensions.js +0 -477
- package/esm/operations/extensions.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/locations.d.ts +0 -130
- package/esm/operations/locations.d.ts.map +0 -1
- package/esm/operations/locations.js +0 -213
- package/esm/operations/locations.js.map +0 -1
- package/esm/operations/operations.d.ts +0 -46
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -79
- package/esm/operations/operations.js.map +0 -1
- package/esm/operations/privateEndpointConnections.d.ts +0 -115
- package/esm/operations/privateEndpointConnections.d.ts.map +0 -1
- package/esm/operations/privateEndpointConnections.js +0 -236
- package/esm/operations/privateEndpointConnections.js.map +0 -1
- package/esm/operations/privateLinkResources.d.ts +0 -58
- package/esm/operations/privateLinkResources.d.ts.map +0 -1
- package/esm/operations/privateLinkResources.js +0 -90
- package/esm/operations/privateLinkResources.js.map +0 -1
- package/esm/operations/scriptActions.d.ts +0 -124
- package/esm/operations/scriptActions.d.ts.map +0 -1
- package/esm/operations/scriptActions.js +0 -184
- package/esm/operations/scriptActions.js.map +0 -1
- package/esm/operations/scriptExecutionHistory.d.ts +0 -76
- package/esm/operations/scriptExecutionHistory.d.ts.map +0 -1
- package/esm/operations/scriptExecutionHistory.js +0 -117
- package/esm/operations/scriptExecutionHistory.js.map +0 -1
- package/esm/operations/virtualMachines.d.ts +0 -77
- package/esm/operations/virtualMachines.d.ts.map +0 -1
- package/esm/operations/virtualMachines.js +0 -167
- package/esm/operations/virtualMachines.js.map +0 -1
- package/src/hDInsightManagementClientContext.ts +0 -68
- package/src/models/applicationsMappers.ts +0 -66
- package/src/models/clustersMappers.ts +0 -77
- package/src/models/extensionsMappers.ts +0 -20
- package/src/models/locationsMappers.ts +0 -66
- package/src/models/operationsMappers.ts +0 -18
- package/src/models/privateEndpointConnectionsMappers.ts +0 -65
- package/src/models/privateLinkResourcesMappers.ts +0 -65
- package/src/models/scriptActionsMappers.ts +0 -17
|
@@ -3,26 +3,42 @@
|
|
|
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 { Applications } 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
|
+
Application,
|
|
19
|
+
ApplicationsListByClusterNextOptionalParams,
|
|
20
|
+
ApplicationsListByClusterOptionalParams,
|
|
21
|
+
ApplicationsListByClusterResponse,
|
|
22
|
+
ApplicationsGetOptionalParams,
|
|
23
|
+
ApplicationsGetResponse,
|
|
24
|
+
ApplicationsCreateOptionalParams,
|
|
25
|
+
ApplicationsCreateResponse,
|
|
26
|
+
ApplicationsDeleteOptionalParams,
|
|
27
|
+
ApplicationsGetAzureAsyncOperationStatusOptionalParams,
|
|
28
|
+
ApplicationsGetAzureAsyncOperationStatusResponse,
|
|
29
|
+
ApplicationsListByClusterNextResponse
|
|
30
|
+
} from "../models";
|
|
16
31
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
32
|
+
/// <reference lib="esnext.asynciterable" />
|
|
33
|
+
/** Class containing Applications operations. */
|
|
34
|
+
export class ApplicationsImpl implements Applications {
|
|
35
|
+
private readonly client: HDInsightManagementClient;
|
|
20
36
|
|
|
21
37
|
/**
|
|
22
|
-
*
|
|
23
|
-
* @param
|
|
38
|
+
* Initialize a new instance of the class Applications class.
|
|
39
|
+
* @param client Reference to the service client
|
|
24
40
|
*/
|
|
25
|
-
constructor(client:
|
|
41
|
+
constructor(client: HDInsightManagementClient) {
|
|
26
42
|
this.client = client;
|
|
27
43
|
}
|
|
28
44
|
|
|
@@ -30,68 +46,107 @@ export class Applications {
|
|
|
30
46
|
* Lists all of the applications for the HDInsight cluster.
|
|
31
47
|
* @param resourceGroupName The name of the resource group.
|
|
32
48
|
* @param clusterName The name of the cluster.
|
|
33
|
-
* @param
|
|
34
|
-
* @returns Promise<Models.ApplicationsListByClusterResponse>
|
|
49
|
+
* @param options The options parameters.
|
|
35
50
|
*/
|
|
36
|
-
listByCluster(
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
public listByCluster(
|
|
52
|
+
resourceGroupName: string,
|
|
53
|
+
clusterName: string,
|
|
54
|
+
options?: ApplicationsListByClusterOptionalParams
|
|
55
|
+
): PagedAsyncIterableIterator<Application> {
|
|
56
|
+
const iter = this.listByClusterPagingAll(
|
|
57
|
+
resourceGroupName,
|
|
58
|
+
clusterName,
|
|
59
|
+
options
|
|
60
|
+
);
|
|
61
|
+
return {
|
|
62
|
+
next() {
|
|
63
|
+
return iter.next();
|
|
64
|
+
},
|
|
65
|
+
[Symbol.asyncIterator]() {
|
|
66
|
+
return this;
|
|
67
|
+
},
|
|
68
|
+
byPage: () => {
|
|
69
|
+
return this.listByClusterPagingPage(
|
|
70
|
+
resourceGroupName,
|
|
71
|
+
clusterName,
|
|
72
|
+
options
|
|
73
|
+
);
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
private async *listByClusterPagingPage(
|
|
79
|
+
resourceGroupName: string,
|
|
80
|
+
clusterName: string,
|
|
81
|
+
options?: ApplicationsListByClusterOptionalParams
|
|
82
|
+
): AsyncIterableIterator<Application[]> {
|
|
83
|
+
let result = await this._listByCluster(
|
|
84
|
+
resourceGroupName,
|
|
85
|
+
clusterName,
|
|
86
|
+
options
|
|
87
|
+
);
|
|
88
|
+
yield result.value || [];
|
|
89
|
+
let continuationToken = result.nextLink;
|
|
90
|
+
while (continuationToken) {
|
|
91
|
+
result = await this._listByClusterNext(
|
|
53
92
|
resourceGroupName,
|
|
54
93
|
clusterName,
|
|
94
|
+
continuationToken,
|
|
55
95
|
options
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
96
|
+
);
|
|
97
|
+
continuationToken = result.nextLink;
|
|
98
|
+
yield result.value || [];
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
private async *listByClusterPagingAll(
|
|
103
|
+
resourceGroupName: string,
|
|
104
|
+
clusterName: string,
|
|
105
|
+
options?: ApplicationsListByClusterOptionalParams
|
|
106
|
+
): AsyncIterableIterator<Application> {
|
|
107
|
+
for await (const page of this.listByClusterPagingPage(
|
|
108
|
+
resourceGroupName,
|
|
109
|
+
clusterName,
|
|
110
|
+
options
|
|
111
|
+
)) {
|
|
112
|
+
yield* page;
|
|
113
|
+
}
|
|
59
114
|
}
|
|
60
115
|
|
|
61
116
|
/**
|
|
62
|
-
*
|
|
63
|
-
* @param resourceGroupName The name of the resource group.
|
|
64
|
-
* @param clusterName The name of the cluster.
|
|
65
|
-
* @param applicationName The constant value for the application name.
|
|
66
|
-
* @param [options] The optional parameters
|
|
67
|
-
* @returns Promise<Models.ApplicationsGetResponse>
|
|
68
|
-
*/
|
|
69
|
-
get(resourceGroupName: string, clusterName: string, applicationName: string, options?: msRest.RequestOptionsBase): Promise<Models.ApplicationsGetResponse>;
|
|
70
|
-
/**
|
|
117
|
+
* Lists all of the applications for the HDInsight cluster.
|
|
71
118
|
* @param resourceGroupName The name of the resource group.
|
|
72
119
|
* @param clusterName The name of the cluster.
|
|
73
|
-
* @param
|
|
74
|
-
* @param callback The callback
|
|
120
|
+
* @param options The options parameters.
|
|
75
121
|
*/
|
|
76
|
-
|
|
122
|
+
private _listByCluster(
|
|
123
|
+
resourceGroupName: string,
|
|
124
|
+
clusterName: string,
|
|
125
|
+
options?: ApplicationsListByClusterOptionalParams
|
|
126
|
+
): Promise<ApplicationsListByClusterResponse> {
|
|
127
|
+
return this.client.sendOperationRequest(
|
|
128
|
+
{ resourceGroupName, clusterName, options },
|
|
129
|
+
listByClusterOperationSpec
|
|
130
|
+
);
|
|
131
|
+
}
|
|
132
|
+
|
|
77
133
|
/**
|
|
134
|
+
* Gets properties of the specified application.
|
|
78
135
|
* @param resourceGroupName The name of the resource group.
|
|
79
136
|
* @param clusterName The name of the cluster.
|
|
80
137
|
* @param applicationName The constant value for the application name.
|
|
81
|
-
* @param options The
|
|
82
|
-
* @param callback The callback
|
|
138
|
+
* @param options The options parameters.
|
|
83
139
|
*/
|
|
84
|
-
get(
|
|
85
|
-
|
|
140
|
+
get(
|
|
141
|
+
resourceGroupName: string,
|
|
142
|
+
clusterName: string,
|
|
143
|
+
applicationName: string,
|
|
144
|
+
options?: ApplicationsGetOptionalParams
|
|
145
|
+
): Promise<ApplicationsGetResponse> {
|
|
86
146
|
return this.client.sendOperationRequest(
|
|
87
|
-
{
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
applicationName,
|
|
91
|
-
options
|
|
92
|
-
},
|
|
93
|
-
getOperationSpec,
|
|
94
|
-
callback) as Promise<Models.ApplicationsGetResponse>;
|
|
147
|
+
{ resourceGroupName, clusterName, applicationName, options },
|
|
148
|
+
getOperationSpec
|
|
149
|
+
);
|
|
95
150
|
}
|
|
96
151
|
|
|
97
152
|
/**
|
|
@@ -100,290 +155,355 @@ export class Applications {
|
|
|
100
155
|
* @param clusterName The name of the cluster.
|
|
101
156
|
* @param applicationName The constant value for the application name.
|
|
102
157
|
* @param parameters The application create request.
|
|
103
|
-
* @param
|
|
104
|
-
* @returns Promise<Models.ApplicationsCreateResponse>
|
|
158
|
+
* @param options The options parameters.
|
|
105
159
|
*/
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
160
|
+
async beginCreate(
|
|
161
|
+
resourceGroupName: string,
|
|
162
|
+
clusterName: string,
|
|
163
|
+
applicationName: string,
|
|
164
|
+
parameters: Application,
|
|
165
|
+
options?: ApplicationsCreateOptionalParams
|
|
166
|
+
): Promise<
|
|
167
|
+
PollerLike<
|
|
168
|
+
PollOperationState<ApplicationsCreateResponse>,
|
|
169
|
+
ApplicationsCreateResponse
|
|
170
|
+
>
|
|
171
|
+
> {
|
|
172
|
+
const directSendOperation = async (
|
|
173
|
+
args: coreClient.OperationArguments,
|
|
174
|
+
spec: coreClient.OperationSpec
|
|
175
|
+
): Promise<ApplicationsCreateResponse> => {
|
|
176
|
+
return this.client.sendOperationRequest(args, spec);
|
|
177
|
+
};
|
|
178
|
+
const sendOperation = async (
|
|
179
|
+
args: coreClient.OperationArguments,
|
|
180
|
+
spec: coreClient.OperationSpec
|
|
181
|
+
) => {
|
|
182
|
+
let currentRawResponse:
|
|
183
|
+
| coreClient.FullOperationResponse
|
|
184
|
+
| undefined = undefined;
|
|
185
|
+
const providedCallback = args.options?.onResponse;
|
|
186
|
+
const callback: coreClient.RawResponseCallback = (
|
|
187
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
188
|
+
flatResponse: unknown
|
|
189
|
+
) => {
|
|
190
|
+
currentRawResponse = rawResponse;
|
|
191
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
192
|
+
};
|
|
193
|
+
const updatedArgs = {
|
|
194
|
+
...args,
|
|
195
|
+
options: {
|
|
196
|
+
...args.options,
|
|
197
|
+
onResponse: callback
|
|
198
|
+
}
|
|
199
|
+
};
|
|
200
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
201
|
+
return {
|
|
202
|
+
flatResponse,
|
|
203
|
+
rawResponse: {
|
|
204
|
+
statusCode: currentRawResponse!.status,
|
|
205
|
+
body: currentRawResponse!.parsedBody,
|
|
206
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
207
|
+
}
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
|
|
211
|
+
const lro = new LroImpl(
|
|
212
|
+
sendOperation,
|
|
213
|
+
{ resourceGroupName, clusterName, applicationName, parameters, options },
|
|
214
|
+
createOperationSpec
|
|
215
|
+
);
|
|
216
|
+
return new LroEngine(lro, {
|
|
217
|
+
resumeFrom: options?.resumeFrom,
|
|
218
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
219
|
+
lroResourceLocationConfig: "location"
|
|
220
|
+
});
|
|
109
221
|
}
|
|
110
222
|
|
|
111
223
|
/**
|
|
112
|
-
*
|
|
224
|
+
* Creates applications for the HDInsight cluster.
|
|
113
225
|
* @param resourceGroupName The name of the resource group.
|
|
114
226
|
* @param clusterName The name of the cluster.
|
|
115
227
|
* @param applicationName The constant value for the application name.
|
|
116
|
-
* @param
|
|
117
|
-
* @
|
|
228
|
+
* @param parameters The application create request.
|
|
229
|
+
* @param options The options parameters.
|
|
118
230
|
*/
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
231
|
+
async beginCreateAndWait(
|
|
232
|
+
resourceGroupName: string,
|
|
233
|
+
clusterName: string,
|
|
234
|
+
applicationName: string,
|
|
235
|
+
parameters: Application,
|
|
236
|
+
options?: ApplicationsCreateOptionalParams
|
|
237
|
+
): Promise<ApplicationsCreateResponse> {
|
|
238
|
+
const poller = await this.beginCreate(
|
|
239
|
+
resourceGroupName,
|
|
240
|
+
clusterName,
|
|
241
|
+
applicationName,
|
|
242
|
+
parameters,
|
|
243
|
+
options
|
|
244
|
+
);
|
|
245
|
+
return poller.pollUntilDone();
|
|
122
246
|
}
|
|
123
247
|
|
|
124
248
|
/**
|
|
125
|
-
*
|
|
126
|
-
* @param resourceGroupName The name of the resource group.
|
|
127
|
-
* @param clusterName The name of the cluster.
|
|
128
|
-
* @param applicationName The constant value for the application name.
|
|
129
|
-
* @param operationId The long running operation id.
|
|
130
|
-
* @param [options] The optional parameters
|
|
131
|
-
* @returns Promise<Models.ApplicationsGetAzureAsyncOperationStatusResponse>
|
|
132
|
-
*/
|
|
133
|
-
getAzureAsyncOperationStatus(resourceGroupName: string, clusterName: string, applicationName: string, operationId: string, options?: msRest.RequestOptionsBase): Promise<Models.ApplicationsGetAzureAsyncOperationStatusResponse>;
|
|
134
|
-
/**
|
|
135
|
-
* @param resourceGroupName The name of the resource group.
|
|
136
|
-
* @param clusterName The name of the cluster.
|
|
137
|
-
* @param applicationName The constant value for the application name.
|
|
138
|
-
* @param operationId The long running operation id.
|
|
139
|
-
* @param callback The callback
|
|
140
|
-
*/
|
|
141
|
-
getAzureAsyncOperationStatus(resourceGroupName: string, clusterName: string, applicationName: string, operationId: string, callback: msRest.ServiceCallback<Models.AsyncOperationResult>): void;
|
|
142
|
-
/**
|
|
249
|
+
* Deletes the specified application on the HDInsight cluster.
|
|
143
250
|
* @param resourceGroupName The name of the resource group.
|
|
144
251
|
* @param clusterName The name of the cluster.
|
|
145
252
|
* @param applicationName The constant value for the application name.
|
|
146
|
-
* @param
|
|
147
|
-
* @param options The optional parameters
|
|
148
|
-
* @param callback The callback
|
|
253
|
+
* @param options The options parameters.
|
|
149
254
|
*/
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
255
|
+
async beginDelete(
|
|
256
|
+
resourceGroupName: string,
|
|
257
|
+
clusterName: string,
|
|
258
|
+
applicationName: string,
|
|
259
|
+
options?: ApplicationsDeleteOptionalParams
|
|
260
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
261
|
+
const directSendOperation = async (
|
|
262
|
+
args: coreClient.OperationArguments,
|
|
263
|
+
spec: coreClient.OperationSpec
|
|
264
|
+
): Promise<void> => {
|
|
265
|
+
return this.client.sendOperationRequest(args, spec);
|
|
266
|
+
};
|
|
267
|
+
const sendOperation = async (
|
|
268
|
+
args: coreClient.OperationArguments,
|
|
269
|
+
spec: coreClient.OperationSpec
|
|
270
|
+
) => {
|
|
271
|
+
let currentRawResponse:
|
|
272
|
+
| coreClient.FullOperationResponse
|
|
273
|
+
| undefined = undefined;
|
|
274
|
+
const providedCallback = args.options?.onResponse;
|
|
275
|
+
const callback: coreClient.RawResponseCallback = (
|
|
276
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
277
|
+
flatResponse: unknown
|
|
278
|
+
) => {
|
|
279
|
+
currentRawResponse = rawResponse;
|
|
280
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
281
|
+
};
|
|
282
|
+
const updatedArgs = {
|
|
283
|
+
...args,
|
|
284
|
+
options: {
|
|
285
|
+
...args.options,
|
|
286
|
+
onResponse: callback
|
|
287
|
+
}
|
|
288
|
+
};
|
|
289
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
290
|
+
return {
|
|
291
|
+
flatResponse,
|
|
292
|
+
rawResponse: {
|
|
293
|
+
statusCode: currentRawResponse!.status,
|
|
294
|
+
body: currentRawResponse!.parsedBody,
|
|
295
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
296
|
+
}
|
|
297
|
+
};
|
|
298
|
+
};
|
|
299
|
+
|
|
300
|
+
const lro = new LroImpl(
|
|
301
|
+
sendOperation,
|
|
302
|
+
{ resourceGroupName, clusterName, applicationName, options },
|
|
303
|
+
deleteOperationSpec
|
|
304
|
+
);
|
|
305
|
+
return new LroEngine(lro, {
|
|
306
|
+
resumeFrom: options?.resumeFrom,
|
|
307
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
308
|
+
lroResourceLocationConfig: "location"
|
|
309
|
+
});
|
|
162
310
|
}
|
|
163
311
|
|
|
164
312
|
/**
|
|
165
|
-
*
|
|
313
|
+
* Deletes the specified application on the HDInsight cluster.
|
|
166
314
|
* @param resourceGroupName The name of the resource group.
|
|
167
315
|
* @param clusterName The name of the cluster.
|
|
168
316
|
* @param applicationName The constant value for the application name.
|
|
169
|
-
* @param
|
|
170
|
-
* @param [options] The optional parameters
|
|
171
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
317
|
+
* @param options The options parameters.
|
|
172
318
|
*/
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
options
|
|
319
|
+
async beginDeleteAndWait(
|
|
320
|
+
resourceGroupName: string,
|
|
321
|
+
clusterName: string,
|
|
322
|
+
applicationName: string,
|
|
323
|
+
options?: ApplicationsDeleteOptionalParams
|
|
324
|
+
): Promise<void> {
|
|
325
|
+
const poller = await this.beginDelete(
|
|
326
|
+
resourceGroupName,
|
|
327
|
+
clusterName,
|
|
328
|
+
applicationName,
|
|
329
|
+
options
|
|
330
|
+
);
|
|
331
|
+
return poller.pollUntilDone();
|
|
184
332
|
}
|
|
185
333
|
|
|
186
334
|
/**
|
|
187
|
-
*
|
|
335
|
+
* Gets the async operation status.
|
|
188
336
|
* @param resourceGroupName The name of the resource group.
|
|
189
337
|
* @param clusterName The name of the cluster.
|
|
190
338
|
* @param applicationName The constant value for the application name.
|
|
191
|
-
* @param
|
|
192
|
-
* @
|
|
339
|
+
* @param operationId The long running operation id.
|
|
340
|
+
* @param options The options parameters.
|
|
193
341
|
*/
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
342
|
+
getAzureAsyncOperationStatus(
|
|
343
|
+
resourceGroupName: string,
|
|
344
|
+
clusterName: string,
|
|
345
|
+
applicationName: string,
|
|
346
|
+
operationId: string,
|
|
347
|
+
options?: ApplicationsGetAzureAsyncOperationStatusOptionalParams
|
|
348
|
+
): Promise<ApplicationsGetAzureAsyncOperationStatusResponse> {
|
|
349
|
+
return this.client.sendOperationRequest(
|
|
350
|
+
{ resourceGroupName, clusterName, applicationName, operationId, options },
|
|
351
|
+
getAzureAsyncOperationStatusOperationSpec
|
|
352
|
+
);
|
|
204
353
|
}
|
|
205
354
|
|
|
206
355
|
/**
|
|
207
|
-
*
|
|
208
|
-
* @param
|
|
209
|
-
* @param
|
|
210
|
-
* @
|
|
211
|
-
|
|
212
|
-
listByClusterNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.ApplicationsListByClusterNextResponse>;
|
|
213
|
-
/**
|
|
214
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
215
|
-
* @param callback The callback
|
|
216
|
-
*/
|
|
217
|
-
listByClusterNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.ApplicationListResult>): void;
|
|
218
|
-
/**
|
|
219
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
220
|
-
* @param options The optional parameters
|
|
221
|
-
* @param callback The callback
|
|
356
|
+
* ListByClusterNext
|
|
357
|
+
* @param resourceGroupName The name of the resource group.
|
|
358
|
+
* @param clusterName The name of the cluster.
|
|
359
|
+
* @param nextLink The nextLink from the previous successful call to the ListByCluster method.
|
|
360
|
+
* @param options The options parameters.
|
|
222
361
|
*/
|
|
223
|
-
|
|
224
|
-
|
|
362
|
+
private _listByClusterNext(
|
|
363
|
+
resourceGroupName: string,
|
|
364
|
+
clusterName: string,
|
|
365
|
+
nextLink: string,
|
|
366
|
+
options?: ApplicationsListByClusterNextOptionalParams
|
|
367
|
+
): Promise<ApplicationsListByClusterNextResponse> {
|
|
225
368
|
return this.client.sendOperationRequest(
|
|
226
|
-
{
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
},
|
|
230
|
-
listByClusterNextOperationSpec,
|
|
231
|
-
callback) as Promise<Models.ApplicationsListByClusterNextResponse>;
|
|
369
|
+
{ resourceGroupName, clusterName, nextLink, options },
|
|
370
|
+
listByClusterNextOperationSpec
|
|
371
|
+
);
|
|
232
372
|
}
|
|
233
373
|
}
|
|
234
|
-
|
|
235
374
|
// Operation Specifications
|
|
236
|
-
const serializer =
|
|
237
|
-
|
|
375
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
376
|
+
|
|
377
|
+
const listByClusterOperationSpec: coreClient.OperationSpec = {
|
|
378
|
+
path:
|
|
379
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/applications",
|
|
238
380
|
httpMethod: "GET",
|
|
239
|
-
|
|
381
|
+
responses: {
|
|
382
|
+
200: {
|
|
383
|
+
bodyMapper: Mappers.ApplicationListResult
|
|
384
|
+
},
|
|
385
|
+
default: {
|
|
386
|
+
bodyMapper: Mappers.ErrorResponse
|
|
387
|
+
}
|
|
388
|
+
},
|
|
389
|
+
queryParameters: [Parameters.apiVersion],
|
|
240
390
|
urlParameters: [
|
|
391
|
+
Parameters.$host,
|
|
241
392
|
Parameters.subscriptionId,
|
|
242
393
|
Parameters.resourceGroupName,
|
|
243
394
|
Parameters.clusterName
|
|
244
395
|
],
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
396
|
+
headerParameters: [Parameters.accept],
|
|
397
|
+
serializer
|
|
398
|
+
};
|
|
399
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
400
|
+
path:
|
|
401
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/applications/{applicationName}",
|
|
402
|
+
httpMethod: "GET",
|
|
251
403
|
responses: {
|
|
252
404
|
200: {
|
|
253
|
-
bodyMapper: Mappers.
|
|
405
|
+
bodyMapper: Mappers.Application
|
|
254
406
|
},
|
|
255
407
|
default: {
|
|
256
408
|
bodyMapper: Mappers.ErrorResponse
|
|
257
409
|
}
|
|
258
410
|
},
|
|
259
|
-
|
|
260
|
-
};
|
|
261
|
-
|
|
262
|
-
const getOperationSpec: msRest.OperationSpec = {
|
|
263
|
-
httpMethod: "GET",
|
|
264
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/applications/{applicationName}",
|
|
411
|
+
queryParameters: [Parameters.apiVersion],
|
|
265
412
|
urlParameters: [
|
|
413
|
+
Parameters.$host,
|
|
266
414
|
Parameters.subscriptionId,
|
|
267
415
|
Parameters.resourceGroupName,
|
|
268
416
|
Parameters.clusterName,
|
|
269
417
|
Parameters.applicationName
|
|
270
418
|
],
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
419
|
+
headerParameters: [Parameters.accept],
|
|
420
|
+
serializer
|
|
421
|
+
};
|
|
422
|
+
const createOperationSpec: coreClient.OperationSpec = {
|
|
423
|
+
path:
|
|
424
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/applications/{applicationName}",
|
|
425
|
+
httpMethod: "PUT",
|
|
277
426
|
responses: {
|
|
278
427
|
200: {
|
|
279
428
|
bodyMapper: Mappers.Application
|
|
280
429
|
},
|
|
430
|
+
201: {
|
|
431
|
+
bodyMapper: Mappers.Application
|
|
432
|
+
},
|
|
433
|
+
202: {
|
|
434
|
+
bodyMapper: Mappers.Application
|
|
435
|
+
},
|
|
436
|
+
204: {
|
|
437
|
+
bodyMapper: Mappers.Application
|
|
438
|
+
},
|
|
281
439
|
default: {
|
|
282
440
|
bodyMapper: Mappers.ErrorResponse
|
|
283
441
|
}
|
|
284
442
|
},
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
const getAzureAsyncOperationStatusOperationSpec: msRest.OperationSpec = {
|
|
289
|
-
httpMethod: "GET",
|
|
290
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/applications/{applicationName}/azureasyncoperations/{operationId}",
|
|
443
|
+
requestBody: Parameters.parameters8,
|
|
444
|
+
queryParameters: [Parameters.apiVersion],
|
|
291
445
|
urlParameters: [
|
|
446
|
+
Parameters.$host,
|
|
292
447
|
Parameters.subscriptionId,
|
|
293
448
|
Parameters.resourceGroupName,
|
|
294
449
|
Parameters.clusterName,
|
|
295
|
-
Parameters.applicationName
|
|
296
|
-
Parameters.operationId
|
|
297
|
-
],
|
|
298
|
-
queryParameters: [
|
|
299
|
-
Parameters.apiVersion
|
|
300
|
-
],
|
|
301
|
-
headerParameters: [
|
|
302
|
-
Parameters.acceptLanguage
|
|
450
|
+
Parameters.applicationName
|
|
303
451
|
],
|
|
452
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
453
|
+
mediaType: "json",
|
|
454
|
+
serializer
|
|
455
|
+
};
|
|
456
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
457
|
+
path:
|
|
458
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/applications/{applicationName}",
|
|
459
|
+
httpMethod: "DELETE",
|
|
304
460
|
responses: {
|
|
305
|
-
200: {
|
|
306
|
-
|
|
307
|
-
},
|
|
461
|
+
200: {},
|
|
462
|
+
201: {},
|
|
463
|
+
202: {},
|
|
464
|
+
204: {},
|
|
308
465
|
default: {
|
|
309
466
|
bodyMapper: Mappers.ErrorResponse
|
|
310
467
|
}
|
|
311
468
|
},
|
|
312
|
-
|
|
313
|
-
};
|
|
314
|
-
|
|
315
|
-
const beginCreateOperationSpec: msRest.OperationSpec = {
|
|
316
|
-
httpMethod: "PUT",
|
|
317
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/applications/{applicationName}",
|
|
469
|
+
queryParameters: [Parameters.apiVersion],
|
|
318
470
|
urlParameters: [
|
|
471
|
+
Parameters.$host,
|
|
319
472
|
Parameters.subscriptionId,
|
|
320
473
|
Parameters.resourceGroupName,
|
|
321
474
|
Parameters.clusterName,
|
|
322
475
|
Parameters.applicationName
|
|
323
476
|
],
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
parameterPath: "parameters",
|
|
332
|
-
mapper: {
|
|
333
|
-
...Mappers.Application,
|
|
334
|
-
required: true
|
|
335
|
-
}
|
|
336
|
-
},
|
|
477
|
+
headerParameters: [Parameters.accept],
|
|
478
|
+
serializer
|
|
479
|
+
};
|
|
480
|
+
const getAzureAsyncOperationStatusOperationSpec: coreClient.OperationSpec = {
|
|
481
|
+
path:
|
|
482
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/applications/{applicationName}/azureasyncoperations/{operationId}",
|
|
483
|
+
httpMethod: "GET",
|
|
337
484
|
responses: {
|
|
338
485
|
200: {
|
|
339
|
-
bodyMapper: Mappers.
|
|
486
|
+
bodyMapper: Mappers.AsyncOperationResult
|
|
340
487
|
},
|
|
341
488
|
default: {
|
|
342
489
|
bodyMapper: Mappers.ErrorResponse
|
|
343
490
|
}
|
|
344
491
|
},
|
|
345
|
-
|
|
346
|
-
};
|
|
347
|
-
|
|
348
|
-
const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
|
|
349
|
-
httpMethod: "DELETE",
|
|
350
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/applications/{applicationName}",
|
|
492
|
+
queryParameters: [Parameters.apiVersion],
|
|
351
493
|
urlParameters: [
|
|
494
|
+
Parameters.$host,
|
|
352
495
|
Parameters.subscriptionId,
|
|
353
496
|
Parameters.resourceGroupName,
|
|
354
497
|
Parameters.clusterName,
|
|
498
|
+
Parameters.operationId,
|
|
355
499
|
Parameters.applicationName
|
|
356
500
|
],
|
|
357
|
-
|
|
358
|
-
Parameters.apiVersion
|
|
359
|
-
],
|
|
360
|
-
headerParameters: [
|
|
361
|
-
Parameters.acceptLanguage
|
|
362
|
-
],
|
|
363
|
-
responses: {
|
|
364
|
-
200: {},
|
|
365
|
-
202: {},
|
|
366
|
-
204: {},
|
|
367
|
-
default: {
|
|
368
|
-
bodyMapper: Mappers.ErrorResponse
|
|
369
|
-
}
|
|
370
|
-
},
|
|
501
|
+
headerParameters: [Parameters.accept],
|
|
371
502
|
serializer
|
|
372
503
|
};
|
|
373
|
-
|
|
374
|
-
const listByClusterNextOperationSpec: msRest.OperationSpec = {
|
|
375
|
-
httpMethod: "GET",
|
|
376
|
-
baseUrl: "https://management.azure.com",
|
|
504
|
+
const listByClusterNextOperationSpec: coreClient.OperationSpec = {
|
|
377
505
|
path: "{nextLink}",
|
|
378
|
-
|
|
379
|
-
Parameters.nextPageLink
|
|
380
|
-
],
|
|
381
|
-
queryParameters: [
|
|
382
|
-
Parameters.apiVersion
|
|
383
|
-
],
|
|
384
|
-
headerParameters: [
|
|
385
|
-
Parameters.acceptLanguage
|
|
386
|
-
],
|
|
506
|
+
httpMethod: "GET",
|
|
387
507
|
responses: {
|
|
388
508
|
200: {
|
|
389
509
|
bodyMapper: Mappers.ApplicationListResult
|
|
@@ -392,5 +512,14 @@ const listByClusterNextOperationSpec: msRest.OperationSpec = {
|
|
|
392
512
|
bodyMapper: Mappers.ErrorResponse
|
|
393
513
|
}
|
|
394
514
|
},
|
|
515
|
+
queryParameters: [Parameters.apiVersion],
|
|
516
|
+
urlParameters: [
|
|
517
|
+
Parameters.$host,
|
|
518
|
+
Parameters.subscriptionId,
|
|
519
|
+
Parameters.resourceGroupName,
|
|
520
|
+
Parameters.clusterName,
|
|
521
|
+
Parameters.nextLink
|
|
522
|
+
],
|
|
523
|
+
headerParameters: [Parameters.accept],
|
|
395
524
|
serializer
|
|
396
525
|
};
|