@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,45 @@
|
|
|
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/extensionsMappers";
|
|
9
|
+
import { Extensions } 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
|
+
ClusterMonitoringRequest,
|
|
18
|
+
ExtensionsEnableMonitoringOptionalParams,
|
|
19
|
+
ExtensionsGetMonitoringStatusOptionalParams,
|
|
20
|
+
ExtensionsGetMonitoringStatusResponse,
|
|
21
|
+
ExtensionsDisableMonitoringOptionalParams,
|
|
22
|
+
AzureMonitorRequest,
|
|
23
|
+
ExtensionsEnableAzureMonitorOptionalParams,
|
|
24
|
+
ExtensionsGetAzureMonitorStatusOptionalParams,
|
|
25
|
+
ExtensionsGetAzureMonitorStatusResponse,
|
|
26
|
+
ExtensionsDisableAzureMonitorOptionalParams,
|
|
27
|
+
Extension,
|
|
28
|
+
ExtensionsCreateOptionalParams,
|
|
29
|
+
ExtensionsGetOptionalParams,
|
|
30
|
+
ExtensionsGetResponse,
|
|
31
|
+
ExtensionsDeleteOptionalParams,
|
|
32
|
+
ExtensionsGetAzureAsyncOperationStatusOptionalParams,
|
|
33
|
+
ExtensionsGetAzureAsyncOperationStatusResponse
|
|
34
|
+
} from "../models";
|
|
16
35
|
|
|
17
|
-
/** Class
|
|
18
|
-
export class Extensions {
|
|
19
|
-
private readonly client:
|
|
36
|
+
/** Class containing Extensions operations. */
|
|
37
|
+
export class ExtensionsImpl implements Extensions {
|
|
38
|
+
private readonly client: HDInsightManagementClient;
|
|
20
39
|
|
|
21
40
|
/**
|
|
22
|
-
*
|
|
23
|
-
* @param
|
|
41
|
+
* Initialize a new instance of the class Extensions class.
|
|
42
|
+
* @param client Reference to the service client
|
|
24
43
|
*/
|
|
25
|
-
constructor(client:
|
|
44
|
+
constructor(client: HDInsightManagementClient) {
|
|
26
45
|
this.client = client;
|
|
27
46
|
}
|
|
28
47
|
|
|
@@ -31,56 +50,183 @@ export class Extensions {
|
|
|
31
50
|
* @param resourceGroupName The name of the resource group.
|
|
32
51
|
* @param clusterName The name of the cluster.
|
|
33
52
|
* @param parameters The Operations Management Suite (OMS) workspace parameters.
|
|
34
|
-
* @param
|
|
35
|
-
* @returns Promise<msRest.RestResponse>
|
|
53
|
+
* @param options The options parameters.
|
|
36
54
|
*/
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
55
|
+
async beginEnableMonitoring(
|
|
56
|
+
resourceGroupName: string,
|
|
57
|
+
clusterName: string,
|
|
58
|
+
parameters: ClusterMonitoringRequest,
|
|
59
|
+
options?: ExtensionsEnableMonitoringOptionalParams
|
|
60
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
61
|
+
const directSendOperation = async (
|
|
62
|
+
args: coreClient.OperationArguments,
|
|
63
|
+
spec: coreClient.OperationSpec
|
|
64
|
+
): Promise<void> => {
|
|
65
|
+
return this.client.sendOperationRequest(args, spec);
|
|
66
|
+
};
|
|
67
|
+
const sendOperation = async (
|
|
68
|
+
args: coreClient.OperationArguments,
|
|
69
|
+
spec: coreClient.OperationSpec
|
|
70
|
+
) => {
|
|
71
|
+
let currentRawResponse:
|
|
72
|
+
| coreClient.FullOperationResponse
|
|
73
|
+
| undefined = undefined;
|
|
74
|
+
const providedCallback = args.options?.onResponse;
|
|
75
|
+
const callback: coreClient.RawResponseCallback = (
|
|
76
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
77
|
+
flatResponse: unknown
|
|
78
|
+
) => {
|
|
79
|
+
currentRawResponse = rawResponse;
|
|
80
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
81
|
+
};
|
|
82
|
+
const updatedArgs = {
|
|
83
|
+
...args,
|
|
84
|
+
options: {
|
|
85
|
+
...args.options,
|
|
86
|
+
onResponse: callback
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
90
|
+
return {
|
|
91
|
+
flatResponse,
|
|
92
|
+
rawResponse: {
|
|
93
|
+
statusCode: currentRawResponse!.status,
|
|
94
|
+
body: currentRawResponse!.parsedBody,
|
|
95
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
const lro = new LroImpl(
|
|
101
|
+
sendOperation,
|
|
102
|
+
{ resourceGroupName, clusterName, parameters, options },
|
|
103
|
+
enableMonitoringOperationSpec
|
|
104
|
+
);
|
|
105
|
+
return new LroEngine(lro, {
|
|
106
|
+
resumeFrom: options?.resumeFrom,
|
|
107
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
108
|
+
lroResourceLocationConfig: "location"
|
|
109
|
+
});
|
|
40
110
|
}
|
|
41
111
|
|
|
42
112
|
/**
|
|
43
|
-
*
|
|
113
|
+
* Enables the Operations Management Suite (OMS) on the HDInsight cluster.
|
|
44
114
|
* @param resourceGroupName The name of the resource group.
|
|
45
115
|
* @param clusterName The name of the cluster.
|
|
46
|
-
* @param
|
|
47
|
-
* @
|
|
116
|
+
* @param parameters The Operations Management Suite (OMS) workspace parameters.
|
|
117
|
+
* @param options The options parameters.
|
|
48
118
|
*/
|
|
49
|
-
|
|
119
|
+
async beginEnableMonitoringAndWait(
|
|
120
|
+
resourceGroupName: string,
|
|
121
|
+
clusterName: string,
|
|
122
|
+
parameters: ClusterMonitoringRequest,
|
|
123
|
+
options?: ExtensionsEnableMonitoringOptionalParams
|
|
124
|
+
): Promise<void> {
|
|
125
|
+
const poller = await this.beginEnableMonitoring(
|
|
126
|
+
resourceGroupName,
|
|
127
|
+
clusterName,
|
|
128
|
+
parameters,
|
|
129
|
+
options
|
|
130
|
+
);
|
|
131
|
+
return poller.pollUntilDone();
|
|
132
|
+
}
|
|
133
|
+
|
|
50
134
|
/**
|
|
135
|
+
* Gets the status of Operations Management Suite (OMS) on the HDInsight cluster.
|
|
51
136
|
* @param resourceGroupName The name of the resource group.
|
|
52
137
|
* @param clusterName The name of the cluster.
|
|
53
|
-
* @param
|
|
138
|
+
* @param options The options parameters.
|
|
54
139
|
*/
|
|
55
|
-
getMonitoringStatus(
|
|
140
|
+
getMonitoringStatus(
|
|
141
|
+
resourceGroupName: string,
|
|
142
|
+
clusterName: string,
|
|
143
|
+
options?: ExtensionsGetMonitoringStatusOptionalParams
|
|
144
|
+
): Promise<ExtensionsGetMonitoringStatusResponse> {
|
|
145
|
+
return this.client.sendOperationRequest(
|
|
146
|
+
{ resourceGroupName, clusterName, options },
|
|
147
|
+
getMonitoringStatusOperationSpec
|
|
148
|
+
);
|
|
149
|
+
}
|
|
150
|
+
|
|
56
151
|
/**
|
|
152
|
+
* Disables the Operations Management Suite (OMS) on the HDInsight cluster.
|
|
57
153
|
* @param resourceGroupName The name of the resource group.
|
|
58
154
|
* @param clusterName The name of the cluster.
|
|
59
|
-
* @param options The
|
|
60
|
-
* @param callback The callback
|
|
155
|
+
* @param options The options parameters.
|
|
61
156
|
*/
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
157
|
+
async beginDisableMonitoring(
|
|
158
|
+
resourceGroupName: string,
|
|
159
|
+
clusterName: string,
|
|
160
|
+
options?: ExtensionsDisableMonitoringOptionalParams
|
|
161
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
162
|
+
const directSendOperation = async (
|
|
163
|
+
args: coreClient.OperationArguments,
|
|
164
|
+
spec: coreClient.OperationSpec
|
|
165
|
+
): Promise<void> => {
|
|
166
|
+
return this.client.sendOperationRequest(args, spec);
|
|
167
|
+
};
|
|
168
|
+
const sendOperation = async (
|
|
169
|
+
args: coreClient.OperationArguments,
|
|
170
|
+
spec: coreClient.OperationSpec
|
|
171
|
+
) => {
|
|
172
|
+
let currentRawResponse:
|
|
173
|
+
| coreClient.FullOperationResponse
|
|
174
|
+
| undefined = undefined;
|
|
175
|
+
const providedCallback = args.options?.onResponse;
|
|
176
|
+
const callback: coreClient.RawResponseCallback = (
|
|
177
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
178
|
+
flatResponse: unknown
|
|
179
|
+
) => {
|
|
180
|
+
currentRawResponse = rawResponse;
|
|
181
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
182
|
+
};
|
|
183
|
+
const updatedArgs = {
|
|
184
|
+
...args,
|
|
185
|
+
options: {
|
|
186
|
+
...args.options,
|
|
187
|
+
onResponse: callback
|
|
188
|
+
}
|
|
189
|
+
};
|
|
190
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
191
|
+
return {
|
|
192
|
+
flatResponse,
|
|
193
|
+
rawResponse: {
|
|
194
|
+
statusCode: currentRawResponse!.status,
|
|
195
|
+
body: currentRawResponse!.parsedBody,
|
|
196
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
197
|
+
}
|
|
198
|
+
};
|
|
199
|
+
};
|
|
200
|
+
|
|
201
|
+
const lro = new LroImpl(
|
|
202
|
+
sendOperation,
|
|
203
|
+
{ resourceGroupName, clusterName, options },
|
|
204
|
+
disableMonitoringOperationSpec
|
|
205
|
+
);
|
|
206
|
+
return new LroEngine(lro, {
|
|
207
|
+
resumeFrom: options?.resumeFrom,
|
|
208
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
209
|
+
lroResourceLocationConfig: "location"
|
|
210
|
+
});
|
|
72
211
|
}
|
|
73
212
|
|
|
74
213
|
/**
|
|
75
214
|
* Disables the Operations Management Suite (OMS) on the HDInsight cluster.
|
|
76
215
|
* @param resourceGroupName The name of the resource group.
|
|
77
216
|
* @param clusterName The name of the cluster.
|
|
78
|
-
* @param
|
|
79
|
-
* @returns Promise<msRest.RestResponse>
|
|
217
|
+
* @param options The options parameters.
|
|
80
218
|
*/
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
219
|
+
async beginDisableMonitoringAndWait(
|
|
220
|
+
resourceGroupName: string,
|
|
221
|
+
clusterName: string,
|
|
222
|
+
options?: ExtensionsDisableMonitoringOptionalParams
|
|
223
|
+
): Promise<void> {
|
|
224
|
+
const poller = await this.beginDisableMonitoring(
|
|
225
|
+
resourceGroupName,
|
|
226
|
+
clusterName,
|
|
227
|
+
options
|
|
228
|
+
);
|
|
229
|
+
return poller.pollUntilDone();
|
|
84
230
|
}
|
|
85
231
|
|
|
86
232
|
/**
|
|
@@ -88,296 +234,434 @@ export class Extensions {
|
|
|
88
234
|
* @param resourceGroupName The name of the resource group.
|
|
89
235
|
* @param clusterName The name of the cluster.
|
|
90
236
|
* @param parameters The Log Analytics workspace parameters.
|
|
91
|
-
* @param
|
|
92
|
-
* @returns Promise<msRest.RestResponse>
|
|
237
|
+
* @param options The options parameters.
|
|
93
238
|
*/
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
239
|
+
async beginEnableAzureMonitor(
|
|
240
|
+
resourceGroupName: string,
|
|
241
|
+
clusterName: string,
|
|
242
|
+
parameters: AzureMonitorRequest,
|
|
243
|
+
options?: ExtensionsEnableAzureMonitorOptionalParams
|
|
244
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
245
|
+
const directSendOperation = async (
|
|
246
|
+
args: coreClient.OperationArguments,
|
|
247
|
+
spec: coreClient.OperationSpec
|
|
248
|
+
): Promise<void> => {
|
|
249
|
+
return this.client.sendOperationRequest(args, spec);
|
|
250
|
+
};
|
|
251
|
+
const sendOperation = async (
|
|
252
|
+
args: coreClient.OperationArguments,
|
|
253
|
+
spec: coreClient.OperationSpec
|
|
254
|
+
) => {
|
|
255
|
+
let currentRawResponse:
|
|
256
|
+
| coreClient.FullOperationResponse
|
|
257
|
+
| undefined = undefined;
|
|
258
|
+
const providedCallback = args.options?.onResponse;
|
|
259
|
+
const callback: coreClient.RawResponseCallback = (
|
|
260
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
261
|
+
flatResponse: unknown
|
|
262
|
+
) => {
|
|
263
|
+
currentRawResponse = rawResponse;
|
|
264
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
265
|
+
};
|
|
266
|
+
const updatedArgs = {
|
|
267
|
+
...args,
|
|
268
|
+
options: {
|
|
269
|
+
...args.options,
|
|
270
|
+
onResponse: callback
|
|
271
|
+
}
|
|
272
|
+
};
|
|
273
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
274
|
+
return {
|
|
275
|
+
flatResponse,
|
|
276
|
+
rawResponse: {
|
|
277
|
+
statusCode: currentRawResponse!.status,
|
|
278
|
+
body: currentRawResponse!.parsedBody,
|
|
279
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
280
|
+
}
|
|
281
|
+
};
|
|
282
|
+
};
|
|
283
|
+
|
|
284
|
+
const lro = new LroImpl(
|
|
285
|
+
sendOperation,
|
|
286
|
+
{ resourceGroupName, clusterName, parameters, options },
|
|
287
|
+
enableAzureMonitorOperationSpec
|
|
288
|
+
);
|
|
289
|
+
return new LroEngine(lro, {
|
|
290
|
+
resumeFrom: options?.resumeFrom,
|
|
291
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
292
|
+
lroResourceLocationConfig: "location"
|
|
293
|
+
});
|
|
97
294
|
}
|
|
98
295
|
|
|
99
296
|
/**
|
|
100
|
-
*
|
|
101
|
-
* @param resourceGroupName The name of the resource group.
|
|
102
|
-
* @param clusterName The name of the cluster.
|
|
103
|
-
* @param [options] The optional parameters
|
|
104
|
-
* @returns Promise<Models.ExtensionsGetAzureMonitorStatusResponse>
|
|
105
|
-
*/
|
|
106
|
-
getAzureMonitorStatus(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase): Promise<Models.ExtensionsGetAzureMonitorStatusResponse>;
|
|
107
|
-
/**
|
|
297
|
+
* Enables the Azure Monitor on the HDInsight cluster.
|
|
108
298
|
* @param resourceGroupName The name of the resource group.
|
|
109
299
|
* @param clusterName The name of the cluster.
|
|
110
|
-
* @param
|
|
300
|
+
* @param parameters The Log Analytics workspace parameters.
|
|
301
|
+
* @param options The options parameters.
|
|
111
302
|
*/
|
|
112
|
-
|
|
303
|
+
async beginEnableAzureMonitorAndWait(
|
|
304
|
+
resourceGroupName: string,
|
|
305
|
+
clusterName: string,
|
|
306
|
+
parameters: AzureMonitorRequest,
|
|
307
|
+
options?: ExtensionsEnableAzureMonitorOptionalParams
|
|
308
|
+
): Promise<void> {
|
|
309
|
+
const poller = await this.beginEnableAzureMonitor(
|
|
310
|
+
resourceGroupName,
|
|
311
|
+
clusterName,
|
|
312
|
+
parameters,
|
|
313
|
+
options
|
|
314
|
+
);
|
|
315
|
+
return poller.pollUntilDone();
|
|
316
|
+
}
|
|
317
|
+
|
|
113
318
|
/**
|
|
319
|
+
* Gets the status of Azure Monitor on the HDInsight cluster.
|
|
114
320
|
* @param resourceGroupName The name of the resource group.
|
|
115
321
|
* @param clusterName The name of the cluster.
|
|
116
|
-
* @param options The
|
|
117
|
-
* @param callback The callback
|
|
322
|
+
* @param options The options parameters.
|
|
118
323
|
*/
|
|
119
|
-
getAzureMonitorStatus(
|
|
120
|
-
|
|
324
|
+
getAzureMonitorStatus(
|
|
325
|
+
resourceGroupName: string,
|
|
326
|
+
clusterName: string,
|
|
327
|
+
options?: ExtensionsGetAzureMonitorStatusOptionalParams
|
|
328
|
+
): Promise<ExtensionsGetAzureMonitorStatusResponse> {
|
|
121
329
|
return this.client.sendOperationRequest(
|
|
122
|
-
{
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
options
|
|
126
|
-
},
|
|
127
|
-
getAzureMonitorStatusOperationSpec,
|
|
128
|
-
callback) as Promise<Models.ExtensionsGetAzureMonitorStatusResponse>;
|
|
330
|
+
{ resourceGroupName, clusterName, options },
|
|
331
|
+
getAzureMonitorStatusOperationSpec
|
|
332
|
+
);
|
|
129
333
|
}
|
|
130
334
|
|
|
131
335
|
/**
|
|
132
336
|
* Disables the Azure Monitor on the HDInsight cluster.
|
|
133
337
|
* @param resourceGroupName The name of the resource group.
|
|
134
338
|
* @param clusterName The name of the cluster.
|
|
135
|
-
* @param
|
|
136
|
-
* @returns Promise<msRest.RestResponse>
|
|
339
|
+
* @param options The options parameters.
|
|
137
340
|
*/
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
341
|
+
async beginDisableAzureMonitor(
|
|
342
|
+
resourceGroupName: string,
|
|
343
|
+
clusterName: string,
|
|
344
|
+
options?: ExtensionsDisableAzureMonitorOptionalParams
|
|
345
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
346
|
+
const directSendOperation = async (
|
|
347
|
+
args: coreClient.OperationArguments,
|
|
348
|
+
spec: coreClient.OperationSpec
|
|
349
|
+
): Promise<void> => {
|
|
350
|
+
return this.client.sendOperationRequest(args, spec);
|
|
351
|
+
};
|
|
352
|
+
const sendOperation = async (
|
|
353
|
+
args: coreClient.OperationArguments,
|
|
354
|
+
spec: coreClient.OperationSpec
|
|
355
|
+
) => {
|
|
356
|
+
let currentRawResponse:
|
|
357
|
+
| coreClient.FullOperationResponse
|
|
358
|
+
| undefined = undefined;
|
|
359
|
+
const providedCallback = args.options?.onResponse;
|
|
360
|
+
const callback: coreClient.RawResponseCallback = (
|
|
361
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
362
|
+
flatResponse: unknown
|
|
363
|
+
) => {
|
|
364
|
+
currentRawResponse = rawResponse;
|
|
365
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
366
|
+
};
|
|
367
|
+
const updatedArgs = {
|
|
368
|
+
...args,
|
|
369
|
+
options: {
|
|
370
|
+
...args.options,
|
|
371
|
+
onResponse: callback
|
|
372
|
+
}
|
|
373
|
+
};
|
|
374
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
375
|
+
return {
|
|
376
|
+
flatResponse,
|
|
377
|
+
rawResponse: {
|
|
378
|
+
statusCode: currentRawResponse!.status,
|
|
379
|
+
body: currentRawResponse!.parsedBody,
|
|
380
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
381
|
+
}
|
|
382
|
+
};
|
|
383
|
+
};
|
|
384
|
+
|
|
385
|
+
const lro = new LroImpl(
|
|
386
|
+
sendOperation,
|
|
387
|
+
{ resourceGroupName, clusterName, options },
|
|
388
|
+
disableAzureMonitorOperationSpec
|
|
389
|
+
);
|
|
390
|
+
return new LroEngine(lro, {
|
|
391
|
+
resumeFrom: options?.resumeFrom,
|
|
392
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
393
|
+
lroResourceLocationConfig: "location"
|
|
394
|
+
});
|
|
141
395
|
}
|
|
142
396
|
|
|
143
397
|
/**
|
|
144
|
-
*
|
|
398
|
+
* Disables the Azure Monitor on the HDInsight cluster.
|
|
145
399
|
* @param resourceGroupName The name of the resource group.
|
|
146
400
|
* @param clusterName The name of the cluster.
|
|
147
|
-
* @param
|
|
148
|
-
* @param parameters The cluster extensions create request.
|
|
149
|
-
* @param [options] The optional parameters
|
|
150
|
-
* @returns Promise<msRest.RestResponse>
|
|
401
|
+
* @param options The options parameters.
|
|
151
402
|
*/
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
403
|
+
async beginDisableAzureMonitorAndWait(
|
|
404
|
+
resourceGroupName: string,
|
|
405
|
+
clusterName: string,
|
|
406
|
+
options?: ExtensionsDisableAzureMonitorOptionalParams
|
|
407
|
+
): Promise<void> {
|
|
408
|
+
const poller = await this.beginDisableAzureMonitor(
|
|
409
|
+
resourceGroupName,
|
|
410
|
+
clusterName,
|
|
411
|
+
options
|
|
412
|
+
);
|
|
413
|
+
return poller.pollUntilDone();
|
|
155
414
|
}
|
|
156
415
|
|
|
157
416
|
/**
|
|
158
|
-
*
|
|
159
|
-
* @param resourceGroupName The name of the resource group.
|
|
160
|
-
* @param clusterName The name of the cluster.
|
|
161
|
-
* @param extensionName The name of the cluster extension.
|
|
162
|
-
* @param [options] The optional parameters
|
|
163
|
-
* @returns Promise<Models.ExtensionsGetResponse>
|
|
164
|
-
*/
|
|
165
|
-
get(resourceGroupName: string, clusterName: string, extensionName: string, options?: msRest.RequestOptionsBase): Promise<Models.ExtensionsGetResponse>;
|
|
166
|
-
/**
|
|
167
|
-
* @param resourceGroupName The name of the resource group.
|
|
168
|
-
* @param clusterName The name of the cluster.
|
|
169
|
-
* @param extensionName The name of the cluster extension.
|
|
170
|
-
* @param callback The callback
|
|
171
|
-
*/
|
|
172
|
-
get(resourceGroupName: string, clusterName: string, extensionName: string, callback: msRest.ServiceCallback<Models.ClusterMonitoringResponse>): void;
|
|
173
|
-
/**
|
|
417
|
+
* Creates an HDInsight cluster extension.
|
|
174
418
|
* @param resourceGroupName The name of the resource group.
|
|
175
419
|
* @param clusterName The name of the cluster.
|
|
176
420
|
* @param extensionName The name of the cluster extension.
|
|
177
|
-
* @param
|
|
178
|
-
* @param
|
|
421
|
+
* @param parameters The cluster extensions create request.
|
|
422
|
+
* @param options The options parameters.
|
|
179
423
|
*/
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
424
|
+
async beginCreate(
|
|
425
|
+
resourceGroupName: string,
|
|
426
|
+
clusterName: string,
|
|
427
|
+
extensionName: string,
|
|
428
|
+
parameters: Extension,
|
|
429
|
+
options?: ExtensionsCreateOptionalParams
|
|
430
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
431
|
+
const directSendOperation = async (
|
|
432
|
+
args: coreClient.OperationArguments,
|
|
433
|
+
spec: coreClient.OperationSpec
|
|
434
|
+
): Promise<void> => {
|
|
435
|
+
return this.client.sendOperationRequest(args, spec);
|
|
436
|
+
};
|
|
437
|
+
const sendOperation = async (
|
|
438
|
+
args: coreClient.OperationArguments,
|
|
439
|
+
spec: coreClient.OperationSpec
|
|
440
|
+
) => {
|
|
441
|
+
let currentRawResponse:
|
|
442
|
+
| coreClient.FullOperationResponse
|
|
443
|
+
| undefined = undefined;
|
|
444
|
+
const providedCallback = args.options?.onResponse;
|
|
445
|
+
const callback: coreClient.RawResponseCallback = (
|
|
446
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
447
|
+
flatResponse: unknown
|
|
448
|
+
) => {
|
|
449
|
+
currentRawResponse = rawResponse;
|
|
450
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
451
|
+
};
|
|
452
|
+
const updatedArgs = {
|
|
453
|
+
...args,
|
|
454
|
+
options: {
|
|
455
|
+
...args.options,
|
|
456
|
+
onResponse: callback
|
|
457
|
+
}
|
|
458
|
+
};
|
|
459
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
460
|
+
return {
|
|
461
|
+
flatResponse,
|
|
462
|
+
rawResponse: {
|
|
463
|
+
statusCode: currentRawResponse!.status,
|
|
464
|
+
body: currentRawResponse!.parsedBody,
|
|
465
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
466
|
+
}
|
|
467
|
+
};
|
|
468
|
+
};
|
|
469
|
+
|
|
470
|
+
const lro = new LroImpl(
|
|
471
|
+
sendOperation,
|
|
472
|
+
{ resourceGroupName, clusterName, extensionName, parameters, options },
|
|
473
|
+
createOperationSpec
|
|
474
|
+
);
|
|
475
|
+
return new LroEngine(lro, {
|
|
476
|
+
resumeFrom: options?.resumeFrom,
|
|
477
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
478
|
+
lroResourceLocationConfig: "location"
|
|
479
|
+
});
|
|
191
480
|
}
|
|
192
481
|
|
|
193
482
|
/**
|
|
194
|
-
*
|
|
483
|
+
* Creates an HDInsight cluster extension.
|
|
195
484
|
* @param resourceGroupName The name of the resource group.
|
|
196
485
|
* @param clusterName The name of the cluster.
|
|
197
486
|
* @param extensionName The name of the cluster extension.
|
|
198
|
-
* @param
|
|
199
|
-
* @
|
|
487
|
+
* @param parameters The cluster extensions create request.
|
|
488
|
+
* @param options The options parameters.
|
|
200
489
|
*/
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
490
|
+
async beginCreateAndWait(
|
|
491
|
+
resourceGroupName: string,
|
|
492
|
+
clusterName: string,
|
|
493
|
+
extensionName: string,
|
|
494
|
+
parameters: Extension,
|
|
495
|
+
options?: ExtensionsCreateOptionalParams
|
|
496
|
+
): Promise<void> {
|
|
497
|
+
const poller = await this.beginCreate(
|
|
498
|
+
resourceGroupName,
|
|
499
|
+
clusterName,
|
|
500
|
+
extensionName,
|
|
501
|
+
parameters,
|
|
502
|
+
options
|
|
503
|
+
);
|
|
504
|
+
return poller.pollUntilDone();
|
|
204
505
|
}
|
|
205
506
|
|
|
206
507
|
/**
|
|
207
|
-
* Gets the
|
|
208
|
-
* @param resourceGroupName The name of the resource group.
|
|
209
|
-
* @param clusterName The name of the cluster.
|
|
210
|
-
* @param extensionName The name of the cluster extension.
|
|
211
|
-
* @param operationId The long running operation id.
|
|
212
|
-
* @param [options] The optional parameters
|
|
213
|
-
* @returns Promise<Models.ExtensionsGetAzureAsyncOperationStatusResponse>
|
|
214
|
-
*/
|
|
215
|
-
getAzureAsyncOperationStatus(resourceGroupName: string, clusterName: string, extensionName: string, operationId: string, options?: msRest.RequestOptionsBase): Promise<Models.ExtensionsGetAzureAsyncOperationStatusResponse>;
|
|
216
|
-
/**
|
|
217
|
-
* @param resourceGroupName The name of the resource group.
|
|
218
|
-
* @param clusterName The name of the cluster.
|
|
219
|
-
* @param extensionName The name of the cluster extension.
|
|
220
|
-
* @param operationId The long running operation id.
|
|
221
|
-
* @param callback The callback
|
|
222
|
-
*/
|
|
223
|
-
getAzureAsyncOperationStatus(resourceGroupName: string, clusterName: string, extensionName: string, operationId: string, callback: msRest.ServiceCallback<Models.AsyncOperationResult>): void;
|
|
224
|
-
/**
|
|
508
|
+
* Gets the extension properties for the specified HDInsight cluster extension.
|
|
225
509
|
* @param resourceGroupName The name of the resource group.
|
|
226
510
|
* @param clusterName The name of the cluster.
|
|
227
511
|
* @param extensionName The name of the cluster extension.
|
|
228
|
-
* @param
|
|
229
|
-
* @param options The optional parameters
|
|
230
|
-
* @param callback The callback
|
|
512
|
+
* @param options The options parameters.
|
|
231
513
|
*/
|
|
232
|
-
|
|
233
|
-
|
|
514
|
+
get(
|
|
515
|
+
resourceGroupName: string,
|
|
516
|
+
clusterName: string,
|
|
517
|
+
extensionName: string,
|
|
518
|
+
options?: ExtensionsGetOptionalParams
|
|
519
|
+
): Promise<ExtensionsGetResponse> {
|
|
234
520
|
return this.client.sendOperationRequest(
|
|
235
|
-
{
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
extensionName,
|
|
239
|
-
operationId,
|
|
240
|
-
options
|
|
241
|
-
},
|
|
242
|
-
getAzureAsyncOperationStatusOperationSpec,
|
|
243
|
-
callback) as Promise<Models.ExtensionsGetAzureAsyncOperationStatusResponse>;
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
/**
|
|
247
|
-
* Enables the Operations Management Suite (OMS) on the HDInsight cluster.
|
|
248
|
-
* @param resourceGroupName The name of the resource group.
|
|
249
|
-
* @param clusterName The name of the cluster.
|
|
250
|
-
* @param parameters The Operations Management Suite (OMS) workspace parameters.
|
|
251
|
-
* @param [options] The optional parameters
|
|
252
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
253
|
-
*/
|
|
254
|
-
beginEnableMonitoring(resourceGroupName: string, clusterName: string, parameters: Models.ClusterMonitoringRequest, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
|
|
255
|
-
return this.client.sendLRORequest(
|
|
256
|
-
{
|
|
257
|
-
resourceGroupName,
|
|
258
|
-
clusterName,
|
|
259
|
-
parameters,
|
|
260
|
-
options
|
|
261
|
-
},
|
|
262
|
-
beginEnableMonitoringOperationSpec,
|
|
263
|
-
options);
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
/**
|
|
267
|
-
* Disables the Operations Management Suite (OMS) on the HDInsight cluster.
|
|
268
|
-
* @param resourceGroupName The name of the resource group.
|
|
269
|
-
* @param clusterName The name of the cluster.
|
|
270
|
-
* @param [options] The optional parameters
|
|
271
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
272
|
-
*/
|
|
273
|
-
beginDisableMonitoring(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
|
|
274
|
-
return this.client.sendLRORequest(
|
|
275
|
-
{
|
|
276
|
-
resourceGroupName,
|
|
277
|
-
clusterName,
|
|
278
|
-
options
|
|
279
|
-
},
|
|
280
|
-
beginDisableMonitoringOperationSpec,
|
|
281
|
-
options);
|
|
521
|
+
{ resourceGroupName, clusterName, extensionName, options },
|
|
522
|
+
getOperationSpec
|
|
523
|
+
);
|
|
282
524
|
}
|
|
283
525
|
|
|
284
526
|
/**
|
|
285
|
-
*
|
|
527
|
+
* Deletes the specified extension for HDInsight cluster.
|
|
286
528
|
* @param resourceGroupName The name of the resource group.
|
|
287
529
|
* @param clusterName The name of the cluster.
|
|
288
|
-
* @param
|
|
289
|
-
* @param
|
|
290
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
530
|
+
* @param extensionName The name of the cluster extension.
|
|
531
|
+
* @param options The options parameters.
|
|
291
532
|
*/
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
533
|
+
async beginDelete(
|
|
534
|
+
resourceGroupName: string,
|
|
535
|
+
clusterName: string,
|
|
536
|
+
extensionName: string,
|
|
537
|
+
options?: ExtensionsDeleteOptionalParams
|
|
538
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
539
|
+
const directSendOperation = async (
|
|
540
|
+
args: coreClient.OperationArguments,
|
|
541
|
+
spec: coreClient.OperationSpec
|
|
542
|
+
): Promise<void> => {
|
|
543
|
+
return this.client.sendOperationRequest(args, spec);
|
|
544
|
+
};
|
|
545
|
+
const sendOperation = async (
|
|
546
|
+
args: coreClient.OperationArguments,
|
|
547
|
+
spec: coreClient.OperationSpec
|
|
548
|
+
) => {
|
|
549
|
+
let currentRawResponse:
|
|
550
|
+
| coreClient.FullOperationResponse
|
|
551
|
+
| undefined = undefined;
|
|
552
|
+
const providedCallback = args.options?.onResponse;
|
|
553
|
+
const callback: coreClient.RawResponseCallback = (
|
|
554
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
555
|
+
flatResponse: unknown
|
|
556
|
+
) => {
|
|
557
|
+
currentRawResponse = rawResponse;
|
|
558
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
559
|
+
};
|
|
560
|
+
const updatedArgs = {
|
|
561
|
+
...args,
|
|
562
|
+
options: {
|
|
563
|
+
...args.options,
|
|
564
|
+
onResponse: callback
|
|
565
|
+
}
|
|
566
|
+
};
|
|
567
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
568
|
+
return {
|
|
569
|
+
flatResponse,
|
|
570
|
+
rawResponse: {
|
|
571
|
+
statusCode: currentRawResponse!.status,
|
|
572
|
+
body: currentRawResponse!.parsedBody,
|
|
573
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
574
|
+
}
|
|
575
|
+
};
|
|
576
|
+
};
|
|
303
577
|
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
resourceGroupName,
|
|
315
|
-
clusterName,
|
|
316
|
-
options
|
|
317
|
-
},
|
|
318
|
-
beginDisableAzureMonitorOperationSpec,
|
|
319
|
-
options);
|
|
578
|
+
const lro = new LroImpl(
|
|
579
|
+
sendOperation,
|
|
580
|
+
{ resourceGroupName, clusterName, extensionName, options },
|
|
581
|
+
deleteOperationSpec
|
|
582
|
+
);
|
|
583
|
+
return new LroEngine(lro, {
|
|
584
|
+
resumeFrom: options?.resumeFrom,
|
|
585
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
586
|
+
lroResourceLocationConfig: "location"
|
|
587
|
+
});
|
|
320
588
|
}
|
|
321
589
|
|
|
322
590
|
/**
|
|
323
|
-
*
|
|
591
|
+
* Deletes the specified extension for HDInsight cluster.
|
|
324
592
|
* @param resourceGroupName The name of the resource group.
|
|
325
593
|
* @param clusterName The name of the cluster.
|
|
326
594
|
* @param extensionName The name of the cluster extension.
|
|
327
|
-
* @param
|
|
328
|
-
* @param [options] The optional parameters
|
|
329
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
595
|
+
* @param options The options parameters.
|
|
330
596
|
*/
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
options
|
|
597
|
+
async beginDeleteAndWait(
|
|
598
|
+
resourceGroupName: string,
|
|
599
|
+
clusterName: string,
|
|
600
|
+
extensionName: string,
|
|
601
|
+
options?: ExtensionsDeleteOptionalParams
|
|
602
|
+
): Promise<void> {
|
|
603
|
+
const poller = await this.beginDelete(
|
|
604
|
+
resourceGroupName,
|
|
605
|
+
clusterName,
|
|
606
|
+
extensionName,
|
|
607
|
+
options
|
|
608
|
+
);
|
|
609
|
+
return poller.pollUntilDone();
|
|
342
610
|
}
|
|
343
611
|
|
|
344
612
|
/**
|
|
345
|
-
*
|
|
613
|
+
* Gets the async operation status.
|
|
346
614
|
* @param resourceGroupName The name of the resource group.
|
|
347
615
|
* @param clusterName The name of the cluster.
|
|
348
616
|
* @param extensionName The name of the cluster extension.
|
|
349
|
-
* @param
|
|
350
|
-
* @
|
|
617
|
+
* @param operationId The long running operation id.
|
|
618
|
+
* @param options The options parameters.
|
|
351
619
|
*/
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
620
|
+
getAzureAsyncOperationStatus(
|
|
621
|
+
resourceGroupName: string,
|
|
622
|
+
clusterName: string,
|
|
623
|
+
extensionName: string,
|
|
624
|
+
operationId: string,
|
|
625
|
+
options?: ExtensionsGetAzureAsyncOperationStatusOptionalParams
|
|
626
|
+
): Promise<ExtensionsGetAzureAsyncOperationStatusResponse> {
|
|
627
|
+
return this.client.sendOperationRequest(
|
|
628
|
+
{ resourceGroupName, clusterName, extensionName, operationId, options },
|
|
629
|
+
getAzureAsyncOperationStatusOperationSpec
|
|
630
|
+
);
|
|
362
631
|
}
|
|
363
632
|
}
|
|
364
|
-
|
|
365
633
|
// Operation Specifications
|
|
366
|
-
const serializer =
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
path:
|
|
634
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
635
|
+
|
|
636
|
+
const enableMonitoringOperationSpec: coreClient.OperationSpec = {
|
|
637
|
+
path:
|
|
638
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/clustermonitoring",
|
|
639
|
+
httpMethod: "PUT",
|
|
640
|
+
responses: {
|
|
641
|
+
200: {},
|
|
642
|
+
201: {},
|
|
643
|
+
202: {},
|
|
644
|
+
204: {},
|
|
645
|
+
default: {
|
|
646
|
+
bodyMapper: Mappers.ErrorResponse
|
|
647
|
+
}
|
|
648
|
+
},
|
|
649
|
+
requestBody: Parameters.parameters12,
|
|
650
|
+
queryParameters: [Parameters.apiVersion],
|
|
370
651
|
urlParameters: [
|
|
652
|
+
Parameters.$host,
|
|
371
653
|
Parameters.subscriptionId,
|
|
372
654
|
Parameters.resourceGroupName,
|
|
373
655
|
Parameters.clusterName
|
|
374
656
|
],
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
657
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
658
|
+
mediaType: "json",
|
|
659
|
+
serializer
|
|
660
|
+
};
|
|
661
|
+
const getMonitoringStatusOperationSpec: coreClient.OperationSpec = {
|
|
662
|
+
path:
|
|
663
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/clustermonitoring",
|
|
664
|
+
httpMethod: "GET",
|
|
381
665
|
responses: {
|
|
382
666
|
200: {
|
|
383
667
|
bodyMapper: Mappers.ClusterMonitoringResponse
|
|
@@ -386,253 +670,203 @@ const getMonitoringStatusOperationSpec: msRest.OperationSpec = {
|
|
|
386
670
|
bodyMapper: Mappers.ErrorResponse
|
|
387
671
|
}
|
|
388
672
|
},
|
|
389
|
-
|
|
390
|
-
};
|
|
391
|
-
|
|
392
|
-
const getAzureMonitorStatusOperationSpec: msRest.OperationSpec = {
|
|
393
|
-
httpMethod: "GET",
|
|
394
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/azureMonitor",
|
|
673
|
+
queryParameters: [Parameters.apiVersion],
|
|
395
674
|
urlParameters: [
|
|
675
|
+
Parameters.$host,
|
|
396
676
|
Parameters.subscriptionId,
|
|
397
677
|
Parameters.resourceGroupName,
|
|
398
678
|
Parameters.clusterName
|
|
399
679
|
],
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
680
|
+
headerParameters: [Parameters.accept],
|
|
681
|
+
serializer
|
|
682
|
+
};
|
|
683
|
+
const disableMonitoringOperationSpec: coreClient.OperationSpec = {
|
|
684
|
+
path:
|
|
685
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/clustermonitoring",
|
|
686
|
+
httpMethod: "DELETE",
|
|
406
687
|
responses: {
|
|
407
|
-
200: {
|
|
408
|
-
|
|
409
|
-
},
|
|
688
|
+
200: {},
|
|
689
|
+
201: {},
|
|
690
|
+
202: {},
|
|
691
|
+
204: {},
|
|
410
692
|
default: {
|
|
411
693
|
bodyMapper: Mappers.ErrorResponse
|
|
412
694
|
}
|
|
413
695
|
},
|
|
414
|
-
|
|
415
|
-
};
|
|
416
|
-
|
|
417
|
-
const getOperationSpec: msRest.OperationSpec = {
|
|
418
|
-
httpMethod: "GET",
|
|
419
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/{extensionName}",
|
|
696
|
+
queryParameters: [Parameters.apiVersion],
|
|
420
697
|
urlParameters: [
|
|
698
|
+
Parameters.$host,
|
|
421
699
|
Parameters.subscriptionId,
|
|
422
700
|
Parameters.resourceGroupName,
|
|
423
|
-
Parameters.clusterName
|
|
424
|
-
Parameters.extensionName
|
|
425
|
-
],
|
|
426
|
-
queryParameters: [
|
|
427
|
-
Parameters.apiVersion
|
|
428
|
-
],
|
|
429
|
-
headerParameters: [
|
|
430
|
-
Parameters.acceptLanguage
|
|
701
|
+
Parameters.clusterName
|
|
431
702
|
],
|
|
703
|
+
headerParameters: [Parameters.accept],
|
|
704
|
+
serializer
|
|
705
|
+
};
|
|
706
|
+
const enableAzureMonitorOperationSpec: coreClient.OperationSpec = {
|
|
707
|
+
path:
|
|
708
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/azureMonitor",
|
|
709
|
+
httpMethod: "PUT",
|
|
432
710
|
responses: {
|
|
433
|
-
200: {
|
|
434
|
-
|
|
435
|
-
},
|
|
711
|
+
200: {},
|
|
712
|
+
201: {},
|
|
713
|
+
202: {},
|
|
714
|
+
204: {},
|
|
436
715
|
default: {
|
|
437
716
|
bodyMapper: Mappers.ErrorResponse
|
|
438
717
|
}
|
|
439
718
|
},
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
const getAzureAsyncOperationStatusOperationSpec: msRest.OperationSpec = {
|
|
444
|
-
httpMethod: "GET",
|
|
445
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/{extensionName}/azureAsyncOperations/{operationId}",
|
|
719
|
+
requestBody: Parameters.parameters13,
|
|
720
|
+
queryParameters: [Parameters.apiVersion],
|
|
446
721
|
urlParameters: [
|
|
722
|
+
Parameters.$host,
|
|
447
723
|
Parameters.subscriptionId,
|
|
448
724
|
Parameters.resourceGroupName,
|
|
449
|
-
Parameters.clusterName
|
|
450
|
-
Parameters.extensionName,
|
|
451
|
-
Parameters.operationId
|
|
452
|
-
],
|
|
453
|
-
queryParameters: [
|
|
454
|
-
Parameters.apiVersion
|
|
455
|
-
],
|
|
456
|
-
headerParameters: [
|
|
457
|
-
Parameters.acceptLanguage
|
|
725
|
+
Parameters.clusterName
|
|
458
726
|
],
|
|
727
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
728
|
+
mediaType: "json",
|
|
729
|
+
serializer
|
|
730
|
+
};
|
|
731
|
+
const getAzureMonitorStatusOperationSpec: coreClient.OperationSpec = {
|
|
732
|
+
path:
|
|
733
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/azureMonitor",
|
|
734
|
+
httpMethod: "GET",
|
|
459
735
|
responses: {
|
|
460
736
|
200: {
|
|
461
|
-
bodyMapper: Mappers.
|
|
737
|
+
bodyMapper: Mappers.AzureMonitorResponse
|
|
462
738
|
},
|
|
463
739
|
default: {
|
|
464
740
|
bodyMapper: Mappers.ErrorResponse
|
|
465
741
|
}
|
|
466
742
|
},
|
|
467
|
-
|
|
468
|
-
};
|
|
469
|
-
|
|
470
|
-
const beginEnableMonitoringOperationSpec: msRest.OperationSpec = {
|
|
471
|
-
httpMethod: "PUT",
|
|
472
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/clustermonitoring",
|
|
743
|
+
queryParameters: [Parameters.apiVersion],
|
|
473
744
|
urlParameters: [
|
|
745
|
+
Parameters.$host,
|
|
474
746
|
Parameters.subscriptionId,
|
|
475
747
|
Parameters.resourceGroupName,
|
|
476
748
|
Parameters.clusterName
|
|
477
749
|
],
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
parameterPath: "parameters",
|
|
486
|
-
mapper: {
|
|
487
|
-
...Mappers.ClusterMonitoringRequest,
|
|
488
|
-
required: true
|
|
489
|
-
}
|
|
490
|
-
},
|
|
750
|
+
headerParameters: [Parameters.accept],
|
|
751
|
+
serializer
|
|
752
|
+
};
|
|
753
|
+
const disableAzureMonitorOperationSpec: coreClient.OperationSpec = {
|
|
754
|
+
path:
|
|
755
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/azureMonitor",
|
|
756
|
+
httpMethod: "DELETE",
|
|
491
757
|
responses: {
|
|
492
758
|
200: {},
|
|
759
|
+
201: {},
|
|
493
760
|
202: {},
|
|
761
|
+
204: {},
|
|
494
762
|
default: {
|
|
495
763
|
bodyMapper: Mappers.ErrorResponse
|
|
496
764
|
}
|
|
497
765
|
},
|
|
498
|
-
|
|
499
|
-
};
|
|
500
|
-
|
|
501
|
-
const beginDisableMonitoringOperationSpec: msRest.OperationSpec = {
|
|
502
|
-
httpMethod: "DELETE",
|
|
503
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/clustermonitoring",
|
|
766
|
+
queryParameters: [Parameters.apiVersion],
|
|
504
767
|
urlParameters: [
|
|
768
|
+
Parameters.$host,
|
|
505
769
|
Parameters.subscriptionId,
|
|
506
770
|
Parameters.resourceGroupName,
|
|
507
771
|
Parameters.clusterName
|
|
508
772
|
],
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
773
|
+
headerParameters: [Parameters.accept],
|
|
774
|
+
serializer
|
|
775
|
+
};
|
|
776
|
+
const createOperationSpec: coreClient.OperationSpec = {
|
|
777
|
+
path:
|
|
778
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/{extensionName}",
|
|
779
|
+
httpMethod: "PUT",
|
|
515
780
|
responses: {
|
|
516
781
|
200: {},
|
|
782
|
+
201: {},
|
|
517
783
|
202: {},
|
|
518
784
|
204: {},
|
|
519
785
|
default: {
|
|
520
786
|
bodyMapper: Mappers.ErrorResponse
|
|
521
787
|
}
|
|
522
788
|
},
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
const beginEnableAzureMonitorOperationSpec: msRest.OperationSpec = {
|
|
527
|
-
httpMethod: "PUT",
|
|
528
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/azureMonitor",
|
|
789
|
+
requestBody: Parameters.parameters14,
|
|
790
|
+
queryParameters: [Parameters.apiVersion],
|
|
529
791
|
urlParameters: [
|
|
792
|
+
Parameters.$host,
|
|
530
793
|
Parameters.subscriptionId,
|
|
531
794
|
Parameters.resourceGroupName,
|
|
532
|
-
Parameters.clusterName
|
|
533
|
-
|
|
534
|
-
queryParameters: [
|
|
535
|
-
Parameters.apiVersion
|
|
536
|
-
],
|
|
537
|
-
headerParameters: [
|
|
538
|
-
Parameters.acceptLanguage
|
|
795
|
+
Parameters.clusterName,
|
|
796
|
+
Parameters.extensionName
|
|
539
797
|
],
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
798
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
799
|
+
mediaType: "json",
|
|
800
|
+
serializer
|
|
801
|
+
};
|
|
802
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
803
|
+
path:
|
|
804
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/{extensionName}",
|
|
805
|
+
httpMethod: "GET",
|
|
547
806
|
responses: {
|
|
548
|
-
200: {
|
|
549
|
-
|
|
807
|
+
200: {
|
|
808
|
+
bodyMapper: Mappers.ClusterMonitoringResponse
|
|
809
|
+
},
|
|
550
810
|
default: {
|
|
551
811
|
bodyMapper: Mappers.ErrorResponse
|
|
552
812
|
}
|
|
553
813
|
},
|
|
554
|
-
|
|
555
|
-
};
|
|
556
|
-
|
|
557
|
-
const beginDisableAzureMonitorOperationSpec: msRest.OperationSpec = {
|
|
558
|
-
httpMethod: "DELETE",
|
|
559
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/azureMonitor",
|
|
814
|
+
queryParameters: [Parameters.apiVersion],
|
|
560
815
|
urlParameters: [
|
|
816
|
+
Parameters.$host,
|
|
561
817
|
Parameters.subscriptionId,
|
|
562
818
|
Parameters.resourceGroupName,
|
|
563
|
-
Parameters.clusterName
|
|
564
|
-
|
|
565
|
-
queryParameters: [
|
|
566
|
-
Parameters.apiVersion
|
|
567
|
-
],
|
|
568
|
-
headerParameters: [
|
|
569
|
-
Parameters.acceptLanguage
|
|
819
|
+
Parameters.clusterName,
|
|
820
|
+
Parameters.extensionName
|
|
570
821
|
],
|
|
822
|
+
headerParameters: [Parameters.accept],
|
|
823
|
+
serializer
|
|
824
|
+
};
|
|
825
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
826
|
+
path:
|
|
827
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/{extensionName}",
|
|
828
|
+
httpMethod: "DELETE",
|
|
571
829
|
responses: {
|
|
572
830
|
200: {},
|
|
831
|
+
201: {},
|
|
573
832
|
202: {},
|
|
574
833
|
204: {},
|
|
575
834
|
default: {
|
|
576
835
|
bodyMapper: Mappers.ErrorResponse
|
|
577
836
|
}
|
|
578
837
|
},
|
|
579
|
-
|
|
580
|
-
};
|
|
581
|
-
|
|
582
|
-
const beginCreateOperationSpec: msRest.OperationSpec = {
|
|
583
|
-
httpMethod: "PUT",
|
|
584
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/{extensionName}",
|
|
838
|
+
queryParameters: [Parameters.apiVersion],
|
|
585
839
|
urlParameters: [
|
|
840
|
+
Parameters.$host,
|
|
586
841
|
Parameters.subscriptionId,
|
|
587
842
|
Parameters.resourceGroupName,
|
|
588
843
|
Parameters.clusterName,
|
|
589
844
|
Parameters.extensionName
|
|
590
845
|
],
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
parameterPath: "parameters",
|
|
599
|
-
mapper: {
|
|
600
|
-
...Mappers.Extension,
|
|
601
|
-
required: true
|
|
602
|
-
}
|
|
603
|
-
},
|
|
846
|
+
headerParameters: [Parameters.accept],
|
|
847
|
+
serializer
|
|
848
|
+
};
|
|
849
|
+
const getAzureAsyncOperationStatusOperationSpec: coreClient.OperationSpec = {
|
|
850
|
+
path:
|
|
851
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/{extensionName}/azureAsyncOperations/{operationId}",
|
|
852
|
+
httpMethod: "GET",
|
|
604
853
|
responses: {
|
|
605
|
-
200: {
|
|
606
|
-
|
|
854
|
+
200: {
|
|
855
|
+
bodyMapper: Mappers.AsyncOperationResult
|
|
856
|
+
},
|
|
607
857
|
default: {
|
|
608
858
|
bodyMapper: Mappers.ErrorResponse
|
|
609
859
|
}
|
|
610
860
|
},
|
|
611
|
-
|
|
612
|
-
};
|
|
613
|
-
|
|
614
|
-
const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
|
|
615
|
-
httpMethod: "DELETE",
|
|
616
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/{extensionName}",
|
|
861
|
+
queryParameters: [Parameters.apiVersion],
|
|
617
862
|
urlParameters: [
|
|
863
|
+
Parameters.$host,
|
|
618
864
|
Parameters.subscriptionId,
|
|
619
865
|
Parameters.resourceGroupName,
|
|
620
866
|
Parameters.clusterName,
|
|
867
|
+
Parameters.operationId,
|
|
621
868
|
Parameters.extensionName
|
|
622
869
|
],
|
|
623
|
-
|
|
624
|
-
Parameters.apiVersion
|
|
625
|
-
],
|
|
626
|
-
headerParameters: [
|
|
627
|
-
Parameters.acceptLanguage
|
|
628
|
-
],
|
|
629
|
-
responses: {
|
|
630
|
-
200: {},
|
|
631
|
-
202: {},
|
|
632
|
-
204: {},
|
|
633
|
-
default: {
|
|
634
|
-
bodyMapper: Mappers.ErrorResponse
|
|
635
|
-
}
|
|
636
|
-
},
|
|
870
|
+
headerParameters: [Parameters.accept],
|
|
637
871
|
serializer
|
|
638
872
|
};
|