@azure/arm-hdinsight 0.22.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -0
- package/{LICENSE.txt → LICENSE} +1 -1
- package/README.md +70 -74
- package/dist/index.js +7702 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/src/hDInsightManagementClient.d.ts +29 -0
- package/dist-esm/src/hDInsightManagementClient.d.ts.map +1 -0
- package/dist-esm/src/hDInsightManagementClient.js +62 -0
- package/dist-esm/src/hDInsightManagementClient.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/{esm/models/configurationsMappers.js → dist-esm/src/index.js} +5 -2
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +1966 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +133 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +111 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +1813 -1305
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +37 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +280 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/applications.d.ts +90 -0
- package/dist-esm/src/operations/applications.d.ts.map +1 -0
- package/dist-esm/src/operations/applications.js +367 -0
- package/dist-esm/src/operations/applications.js.map +1 -0
- package/dist-esm/src/operations/clusters.d.ts +214 -0
- package/dist-esm/src/operations/clusters.d.ts.map +1 -0
- package/dist-esm/src/operations/clusters.js +979 -0
- package/dist-esm/src/operations/clusters.js.map +1 -0
- package/dist-esm/src/operations/configurations.d.ts +54 -0
- package/dist-esm/src/operations/configurations.d.ts.map +1 -0
- package/dist-esm/src/operations/configurations.js +178 -0
- package/dist-esm/src/operations/configurations.js.map +1 -0
- package/dist-esm/src/operations/extensions.d.ts +139 -0
- package/dist-esm/src/operations/extensions.d.ts.map +1 -0
- package/dist-esm/src/operations/extensions.js +602 -0
- package/dist-esm/src/operations/extensions.js.map +1 -0
- package/{esm → dist-esm/src}/operations/index.d.ts +2 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/dist-esm/src/operations/index.js +19 -0
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/locations.d.ts +52 -0
- package/dist-esm/src/operations/locations.d.ts.map +1 -0
- package/dist-esm/src/operations/locations.js +199 -0
- package/dist-esm/src/operations/locations.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +32 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +120 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/privateEndpointConnections.d.ts +81 -0
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -0
- package/dist-esm/src/operations/privateEndpointConnections.js +349 -0
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -0
- package/dist-esm/src/operations/privateLinkResources.d.ts +28 -0
- package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -0
- package/dist-esm/src/operations/privateLinkResources.js +85 -0
- package/dist-esm/src/operations/privateLinkResources.js.map +1 -0
- package/dist-esm/src/operations/scriptActions.d.ts +62 -0
- package/dist-esm/src/operations/scriptActions.d.ts.map +1 -0
- package/dist-esm/src/operations/scriptActions.js +232 -0
- package/dist-esm/src/operations/scriptActions.js.map +1 -0
- package/dist-esm/src/operations/scriptExecutionHistory.d.ts +46 -0
- package/dist-esm/src/operations/scriptExecutionHistory.d.ts.map +1 -0
- package/dist-esm/src/operations/scriptExecutionHistory.js +167 -0
- package/dist-esm/src/operations/scriptExecutionHistory.js.map +1 -0
- package/dist-esm/src/operations/virtualMachines.d.ts +45 -0
- package/dist-esm/src/operations/virtualMachines.d.ts.map +1 -0
- package/dist-esm/src/operations/virtualMachines.js +169 -0
- package/dist-esm/src/operations/virtualMachines.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/applications.d.ts +65 -0
- package/dist-esm/src/operationsInterfaces/applications.d.ts.map +1 -0
- package/{src/models/virtualMachinesMappers.ts → dist-esm/src/operationsInterfaces/applications.js} +2 -5
- package/dist-esm/src/operationsInterfaces/applications.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/clusters.d.ts +178 -0
- package/dist-esm/src/operationsInterfaces/clusters.d.ts.map +1 -0
- package/{esm/models/index.js → dist-esm/src/operationsInterfaces/clusters.js} +2 -1
- package/dist-esm/src/operationsInterfaces/clusters.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/configurations.d.ts +46 -0
- package/dist-esm/src/operationsInterfaces/configurations.d.ts.map +1 -0
- package/{src/models/configurationsMappers.ts → dist-esm/src/operationsInterfaces/configurations.js} +2 -5
- package/dist-esm/src/operationsInterfaces/configurations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/extensions.d.ts +131 -0
- package/dist-esm/src/operationsInterfaces/extensions.d.ts.map +1 -0
- package/{esm/models/virtualMachinesMappers.js → dist-esm/src/operationsInterfaces/extensions.js} +2 -2
- package/dist-esm/src/operationsInterfaces/extensions.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +12 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +19 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/locations.d.ts +44 -0
- package/dist-esm/src/operationsInterfaces/locations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/locations.js +9 -0
- package/dist-esm/src/operationsInterfaces/locations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +56 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js +9 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts +20 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.js +9 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/scriptActions.d.ts +37 -0
- package/dist-esm/src/operationsInterfaces/scriptActions.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/scriptActions.js +9 -0
- package/dist-esm/src/operationsInterfaces/scriptActions.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/scriptExecutionHistory.d.ts +21 -0
- package/dist-esm/src/operationsInterfaces/scriptExecutionHistory.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/scriptExecutionHistory.js +9 -0
- package/dist-esm/src/operationsInterfaces/scriptExecutionHistory.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/virtualMachines.d.ts +37 -0
- package/dist-esm/src/operationsInterfaces/virtualMachines.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/virtualMachines.js +9 -0
- package/dist-esm/src/operationsInterfaces/virtualMachines.js.map +1 -0
- package/dist-esm/test/sampleTest.d.ts +2 -0
- package/dist-esm/test/sampleTest.d.ts.map +1 -0
- package/dist-esm/test/sampleTest.js +40 -0
- package/dist-esm/test/sampleTest.js.map +1 -0
- package/package.json +65 -31
- package/review/arm-hdinsight.api.md +1678 -0
- package/rollup.config.js +181 -30
- package/src/hDInsightManagementClient.ts +106 -44
- package/src/{models/extensionsMappers.ts → index.ts} +4 -6
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +1760 -2084
- package/src/models/mappers.ts +1840 -1291
- package/src/models/parameters.ts +236 -44
- package/src/operations/applications.ts +383 -187
- package/src/operations/clusters.ts +1051 -535
- package/src/operations/configurations.ts +162 -154
- package/src/operations/extensions.ts +693 -216
- package/src/operations/index.ts +3 -2
- package/src/operations/locations.ts +186 -99
- package/src/operations/operations.ts +85 -73
- package/src/operations/privateEndpointConnections.ts +495 -0
- package/src/operations/privateLinkResources.ts +116 -0
- package/src/operations/scriptActions.ts +215 -157
- package/src/operations/scriptExecutionHistory.ts +155 -123
- package/src/operations/virtualMachines.ts +166 -101
- package/src/operationsInterfaces/applications.ts +126 -0
- package/src/operationsInterfaces/clusters.ts +327 -0
- package/src/operationsInterfaces/configurations.ts +77 -0
- package/src/operationsInterfaces/extensions.ts +234 -0
- package/{esm/operations/index.js → src/operationsInterfaces/index.ts} +4 -3
- package/src/operationsInterfaces/locations.ts +88 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/privateEndpointConnections.ts +109 -0
- package/src/operationsInterfaces/privateLinkResources.ts +42 -0
- package/src/operationsInterfaces/scriptActions.ts +73 -0
- package/src/operationsInterfaces/scriptExecutionHistory.ts +43 -0
- package/src/operationsInterfaces/virtualMachines.ts +70 -0
- package/tsconfig.json +3 -3
- package/types/arm-hdinsight.d.ts +2866 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-hdinsight.js +0 -5759
- package/dist/arm-hdinsight.js.map +0 -1
- package/dist/arm-hdinsight.min.js +0 -1
- package/dist/arm-hdinsight.min.js.map +0 -1
- package/esm/hDInsightManagementClient.d.ts +0 -27
- package/esm/hDInsightManagementClient.d.ts.map +0 -1
- package/esm/hDInsightManagementClient.js +0 -41
- package/esm/hDInsightManagementClient.js.map +0 -1
- package/esm/hDInsightManagementClientContext.d.ts +0 -17
- package/esm/hDInsightManagementClientContext.d.ts.map +0 -1
- package/esm/hDInsightManagementClientContext.js +0 -56
- package/esm/hDInsightManagementClientContext.js.map +0 -1
- package/esm/models/applicationsMappers.d.ts +0 -2
- package/esm/models/applicationsMappers.d.ts.map +0 -1
- package/esm/models/applicationsMappers.js +0 -9
- package/esm/models/applicationsMappers.js.map +0 -1
- package/esm/models/clustersMappers.d.ts +0 -2
- package/esm/models/clustersMappers.d.ts.map +0 -1
- package/esm/models/clustersMappers.js +0 -9
- package/esm/models/clustersMappers.js.map +0 -1
- package/esm/models/configurationsMappers.d.ts +0 -2
- package/esm/models/configurationsMappers.d.ts.map +0 -1
- package/esm/models/configurationsMappers.js.map +0 -1
- package/esm/models/extensionsMappers.d.ts +0 -2
- package/esm/models/extensionsMappers.d.ts.map +0 -1
- package/esm/models/extensionsMappers.js +0 -9
- package/esm/models/extensionsMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -2397
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js.map +0 -1
- package/esm/models/locationsMappers.d.ts +0 -2
- package/esm/models/locationsMappers.d.ts.map +0 -1
- package/esm/models/locationsMappers.js +0 -9
- package/esm/models/locationsMappers.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -94
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/operationsMappers.d.ts +0 -2
- package/esm/models/operationsMappers.d.ts.map +0 -1
- package/esm/models/operationsMappers.js +0 -9
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -15
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -142
- package/esm/models/parameters.js.map +0 -1
- package/esm/models/scriptActionsMappers.d.ts +0 -2
- package/esm/models/scriptActionsMappers.d.ts.map +0 -1
- package/esm/models/scriptActionsMappers.js +0 -9
- package/esm/models/scriptActionsMappers.js.map +0 -1
- package/esm/models/scriptExecutionHistoryMappers.d.ts +0 -2
- package/esm/models/scriptExecutionHistoryMappers.d.ts.map +0 -1
- package/esm/models/scriptExecutionHistoryMappers.js +0 -9
- package/esm/models/scriptExecutionHistoryMappers.js.map +0 -1
- package/esm/models/virtualMachinesMappers.d.ts +0 -2
- package/esm/models/virtualMachinesMappers.d.ts.map +0 -1
- package/esm/models/virtualMachinesMappers.js.map +0 -1
- package/esm/operations/applications.d.ts +0 -115
- package/esm/operations/applications.d.ts.map +0 -1
- package/esm/operations/applications.js +0 -233
- package/esm/operations/applications.js.map +0 -1
- package/esm/operations/clusters.d.ts +0 -273
- package/esm/operations/clusters.d.ts.map +0 -1
- package/esm/operations/clusters.js +0 -621
- package/esm/operations/clusters.js.map +0 -1
- package/esm/operations/configurations.d.ts +0 -90
- package/esm/operations/configurations.d.ts.map +0 -1
- package/esm/operations/configurations.js +0 -173
- package/esm/operations/configurations.js.map +0 -1
- package/esm/operations/extensions.d.ts +0 -131
- package/esm/operations/extensions.d.ts.map +0 -1
- package/esm/operations/extensions.js +0 -307
- package/esm/operations/extensions.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/locations.d.ts +0 -67
- package/esm/operations/locations.d.ts.map +0 -1
- package/esm/operations/locations.js +0 -113
- package/esm/operations/locations.js.map +0 -1
- package/esm/operations/operations.d.ts +0 -46
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -79
- package/esm/operations/operations.js.map +0 -1
- package/esm/operations/scriptActions.d.ts +0 -100
- package/esm/operations/scriptActions.d.ts.map +0 -1
- package/esm/operations/scriptActions.js +0 -151
- package/esm/operations/scriptActions.js.map +0 -1
- package/esm/operations/scriptExecutionHistory.d.ts +0 -76
- package/esm/operations/scriptExecutionHistory.d.ts.map +0 -1
- package/esm/operations/scriptExecutionHistory.js +0 -117
- package/esm/operations/scriptExecutionHistory.js.map +0 -1
- package/esm/operations/virtualMachines.d.ts +0 -53
- package/esm/operations/virtualMachines.d.ts.map +0 -1
- package/esm/operations/virtualMachines.js +0 -134
- package/esm/operations/virtualMachines.js.map +0 -1
- package/src/hDInsightManagementClientContext.ts +0 -62
- package/src/models/applicationsMappers.ts +0 -56
- package/src/models/clustersMappers.ts +0 -65
- package/src/models/locationsMappers.ts +0 -28
- package/src/models/operationsMappers.ts +0 -18
- package/src/models/scriptActionsMappers.ts +0 -15
- package/src/models/scriptExecutionHistoryMappers.ts +0 -15
|
@@ -3,26 +3,33 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
7
|
-
* regenerated.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
7
|
*/
|
|
9
8
|
|
|
10
|
-
import
|
|
11
|
-
import * as
|
|
12
|
-
import * as
|
|
13
|
-
import * as Mappers from "../models/configurationsMappers";
|
|
9
|
+
import { Configurations } 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
|
+
ConfigurationsListOptionalParams,
|
|
18
|
+
ConfigurationsListResponse,
|
|
19
|
+
ConfigurationsUpdateOptionalParams,
|
|
20
|
+
ConfigurationsGetOptionalParams,
|
|
21
|
+
ConfigurationsGetResponse
|
|
22
|
+
} from "../models";
|
|
16
23
|
|
|
17
|
-
/** Class
|
|
18
|
-
export class Configurations {
|
|
19
|
-
private readonly client:
|
|
24
|
+
/** Class containing Configurations operations. */
|
|
25
|
+
export class ConfigurationsImpl implements Configurations {
|
|
26
|
+
private readonly client: HDInsightManagementClient;
|
|
20
27
|
|
|
21
28
|
/**
|
|
22
|
-
*
|
|
23
|
-
* @param
|
|
29
|
+
* Initialize a new instance of the class Configurations class.
|
|
30
|
+
* @param client Reference to the service client
|
|
24
31
|
*/
|
|
25
|
-
constructor(client:
|
|
32
|
+
constructor(client: HDInsightManagementClient) {
|
|
26
33
|
this.client = client;
|
|
27
34
|
}
|
|
28
35
|
|
|
@@ -30,32 +37,17 @@ export class Configurations {
|
|
|
30
37
|
* Gets all configuration information for an HDI cluster.
|
|
31
38
|
* @param resourceGroupName The name of the resource group.
|
|
32
39
|
* @param clusterName The name of the cluster.
|
|
33
|
-
* @param
|
|
34
|
-
* @returns Promise<Models.ConfigurationsListResponse>
|
|
40
|
+
* @param options The options parameters.
|
|
35
41
|
*/
|
|
36
|
-
list(
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
*/
|
|
42
|
-
list(resourceGroupName: string, clusterName: string, callback: msRest.ServiceCallback<Models.ClusterConfigurations>): void;
|
|
43
|
-
/**
|
|
44
|
-
* @param resourceGroupName The name of the resource group.
|
|
45
|
-
* @param clusterName The name of the cluster.
|
|
46
|
-
* @param options The optional parameters
|
|
47
|
-
* @param callback The callback
|
|
48
|
-
*/
|
|
49
|
-
list(resourceGroupName: string, clusterName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ClusterConfigurations>): void;
|
|
50
|
-
list(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ClusterConfigurations>, callback?: msRest.ServiceCallback<Models.ClusterConfigurations>): Promise<Models.ConfigurationsListResponse> {
|
|
42
|
+
list(
|
|
43
|
+
resourceGroupName: string,
|
|
44
|
+
clusterName: string,
|
|
45
|
+
options?: ConfigurationsListOptionalParams
|
|
46
|
+
): Promise<ConfigurationsListResponse> {
|
|
51
47
|
return this.client.sendOperationRequest(
|
|
52
|
-
{
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
options
|
|
56
|
-
},
|
|
57
|
-
listOperationSpec,
|
|
58
|
-
callback) as Promise<Models.ConfigurationsListResponse>;
|
|
48
|
+
{ resourceGroupName, clusterName, options },
|
|
49
|
+
listOperationSpec
|
|
50
|
+
);
|
|
59
51
|
}
|
|
60
52
|
|
|
61
53
|
/**
|
|
@@ -65,49 +57,70 @@ export class Configurations {
|
|
|
65
57
|
* @param clusterName The name of the cluster.
|
|
66
58
|
* @param configurationName The name of the cluster configuration.
|
|
67
59
|
* @param parameters The cluster configurations.
|
|
68
|
-
* @param
|
|
69
|
-
* @returns Promise<msRest.RestResponse>
|
|
60
|
+
* @param options The options parameters.
|
|
70
61
|
*/
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
62
|
+
async beginUpdate(
|
|
63
|
+
resourceGroupName: string,
|
|
64
|
+
clusterName: string,
|
|
65
|
+
configurationName: string,
|
|
66
|
+
parameters: { [propertyName: string]: string },
|
|
67
|
+
options?: ConfigurationsUpdateOptionalParams
|
|
68
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
69
|
+
const directSendOperation = async (
|
|
70
|
+
args: coreClient.OperationArguments,
|
|
71
|
+
spec: coreClient.OperationSpec
|
|
72
|
+
): Promise<void> => {
|
|
73
|
+
return this.client.sendOperationRequest(args, spec);
|
|
74
|
+
};
|
|
75
|
+
const sendOperation = async (
|
|
76
|
+
args: coreClient.OperationArguments,
|
|
77
|
+
spec: coreClient.OperationSpec
|
|
78
|
+
) => {
|
|
79
|
+
let currentRawResponse:
|
|
80
|
+
| coreClient.FullOperationResponse
|
|
81
|
+
| undefined = undefined;
|
|
82
|
+
const providedCallback = args.options?.onResponse;
|
|
83
|
+
const callback: coreClient.RawResponseCallback = (
|
|
84
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
85
|
+
flatResponse: unknown
|
|
86
|
+
) => {
|
|
87
|
+
currentRawResponse = rawResponse;
|
|
88
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
89
|
+
};
|
|
90
|
+
const updatedArgs = {
|
|
91
|
+
...args,
|
|
92
|
+
options: {
|
|
93
|
+
...args.options,
|
|
94
|
+
onResponse: callback
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
98
|
+
return {
|
|
99
|
+
flatResponse,
|
|
100
|
+
rawResponse: {
|
|
101
|
+
statusCode: currentRawResponse!.status,
|
|
102
|
+
body: currentRawResponse!.parsedBody,
|
|
103
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
};
|
|
75
107
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
* removed in the future. Please consider using List configurations API instead.
|
|
79
|
-
* @param resourceGroupName The name of the resource group.
|
|
80
|
-
* @param clusterName The name of the cluster.
|
|
81
|
-
* @param configurationName The name of the cluster configuration.
|
|
82
|
-
* @param [options] The optional parameters
|
|
83
|
-
* @returns Promise<Models.ConfigurationsGetResponse>
|
|
84
|
-
*/
|
|
85
|
-
get(resourceGroupName: string, clusterName: string, configurationName: string, options?: msRest.RequestOptionsBase): Promise<Models.ConfigurationsGetResponse>;
|
|
86
|
-
/**
|
|
87
|
-
* @param resourceGroupName The name of the resource group.
|
|
88
|
-
* @param clusterName The name of the cluster.
|
|
89
|
-
* @param configurationName The name of the cluster configuration.
|
|
90
|
-
* @param callback The callback
|
|
91
|
-
*/
|
|
92
|
-
get(resourceGroupName: string, clusterName: string, configurationName: string, callback: msRest.ServiceCallback<{ [propertyName: string]: string }>): void;
|
|
93
|
-
/**
|
|
94
|
-
* @param resourceGroupName The name of the resource group.
|
|
95
|
-
* @param clusterName The name of the cluster.
|
|
96
|
-
* @param configurationName The name of the cluster configuration.
|
|
97
|
-
* @param options The optional parameters
|
|
98
|
-
* @param callback The callback
|
|
99
|
-
*/
|
|
100
|
-
get(resourceGroupName: string, clusterName: string, configurationName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<{ [propertyName: string]: string }>): void;
|
|
101
|
-
get(resourceGroupName: string, clusterName: string, configurationName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<{ [propertyName: string]: string }>, callback?: msRest.ServiceCallback<{ [propertyName: string]: string }>): Promise<Models.ConfigurationsGetResponse> {
|
|
102
|
-
return this.client.sendOperationRequest(
|
|
108
|
+
const lro = new LroImpl(
|
|
109
|
+
sendOperation,
|
|
103
110
|
{
|
|
104
111
|
resourceGroupName,
|
|
105
112
|
clusterName,
|
|
106
113
|
configurationName,
|
|
114
|
+
parameters,
|
|
107
115
|
options
|
|
108
116
|
},
|
|
109
|
-
|
|
110
|
-
|
|
117
|
+
updateOperationSpec
|
|
118
|
+
);
|
|
119
|
+
return new LroEngine(lro, {
|
|
120
|
+
resumeFrom: options?.resumeFrom,
|
|
121
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
122
|
+
lroResourceLocationConfig: "location"
|
|
123
|
+
});
|
|
111
124
|
}
|
|
112
125
|
|
|
113
126
|
/**
|
|
@@ -117,39 +130,52 @@ export class Configurations {
|
|
|
117
130
|
* @param clusterName The name of the cluster.
|
|
118
131
|
* @param configurationName The name of the cluster configuration.
|
|
119
132
|
* @param parameters The cluster configurations.
|
|
120
|
-
* @param
|
|
121
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
133
|
+
* @param options The options parameters.
|
|
122
134
|
*/
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
135
|
+
async beginUpdateAndWait(
|
|
136
|
+
resourceGroupName: string,
|
|
137
|
+
clusterName: string,
|
|
138
|
+
configurationName: string,
|
|
139
|
+
parameters: { [propertyName: string]: string },
|
|
140
|
+
options?: ConfigurationsUpdateOptionalParams
|
|
141
|
+
): Promise<void> {
|
|
142
|
+
const poller = await this.beginUpdate(
|
|
143
|
+
resourceGroupName,
|
|
144
|
+
clusterName,
|
|
145
|
+
configurationName,
|
|
146
|
+
parameters,
|
|
147
|
+
options
|
|
148
|
+
);
|
|
149
|
+
return poller.pollUntilDone();
|
|
134
150
|
}
|
|
135
|
-
}
|
|
136
151
|
|
|
152
|
+
/**
|
|
153
|
+
* The configuration object for the specified cluster. This API is not recommended and might be removed
|
|
154
|
+
* in the future. Please consider using List configurations API instead.
|
|
155
|
+
* @param resourceGroupName The name of the resource group.
|
|
156
|
+
* @param clusterName The name of the cluster.
|
|
157
|
+
* @param configurationName The name of the cluster configuration.
|
|
158
|
+
* @param options The options parameters.
|
|
159
|
+
*/
|
|
160
|
+
get(
|
|
161
|
+
resourceGroupName: string,
|
|
162
|
+
clusterName: string,
|
|
163
|
+
configurationName: string,
|
|
164
|
+
options?: ConfigurationsGetOptionalParams
|
|
165
|
+
): Promise<ConfigurationsGetResponse> {
|
|
166
|
+
return this.client.sendOperationRequest(
|
|
167
|
+
{ resourceGroupName, clusterName, configurationName, options },
|
|
168
|
+
getOperationSpec
|
|
169
|
+
);
|
|
170
|
+
}
|
|
171
|
+
}
|
|
137
172
|
// Operation Specifications
|
|
138
|
-
const serializer =
|
|
139
|
-
|
|
173
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
174
|
+
|
|
175
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
176
|
+
path:
|
|
177
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/configurations",
|
|
140
178
|
httpMethod: "POST",
|
|
141
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/configurations",
|
|
142
|
-
urlParameters: [
|
|
143
|
-
Parameters.subscriptionId,
|
|
144
|
-
Parameters.resourceGroupName,
|
|
145
|
-
Parameters.clusterName
|
|
146
|
-
],
|
|
147
|
-
queryParameters: [
|
|
148
|
-
Parameters.apiVersion
|
|
149
|
-
],
|
|
150
|
-
headerParameters: [
|
|
151
|
-
Parameters.acceptLanguage
|
|
152
|
-
],
|
|
153
179
|
responses: {
|
|
154
180
|
200: {
|
|
155
181
|
bodyMapper: Mappers.ClusterConfigurations
|
|
@@ -158,82 +184,64 @@ const listOperationSpec: msRest.OperationSpec = {
|
|
|
158
184
|
bodyMapper: Mappers.ErrorResponse
|
|
159
185
|
}
|
|
160
186
|
},
|
|
187
|
+
queryParameters: [Parameters.apiVersion],
|
|
188
|
+
urlParameters: [
|
|
189
|
+
Parameters.$host,
|
|
190
|
+
Parameters.subscriptionId,
|
|
191
|
+
Parameters.resourceGroupName,
|
|
192
|
+
Parameters.clusterName
|
|
193
|
+
],
|
|
194
|
+
headerParameters: [Parameters.accept],
|
|
161
195
|
serializer
|
|
162
196
|
};
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
197
|
+
const updateOperationSpec: coreClient.OperationSpec = {
|
|
198
|
+
path:
|
|
199
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/configurations/{configurationName}",
|
|
200
|
+
httpMethod: "POST",
|
|
201
|
+
responses: {
|
|
202
|
+
200: {},
|
|
203
|
+
201: {},
|
|
204
|
+
202: {},
|
|
205
|
+
204: {},
|
|
206
|
+
default: {
|
|
207
|
+
bodyMapper: Mappers.ErrorResponse
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
requestBody: Parameters.parameters11,
|
|
211
|
+
queryParameters: [Parameters.apiVersion],
|
|
167
212
|
urlParameters: [
|
|
213
|
+
Parameters.$host,
|
|
168
214
|
Parameters.subscriptionId,
|
|
169
215
|
Parameters.resourceGroupName,
|
|
170
216
|
Parameters.clusterName,
|
|
171
217
|
Parameters.configurationName
|
|
172
218
|
],
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
219
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
220
|
+
mediaType: "json",
|
|
221
|
+
serializer
|
|
222
|
+
};
|
|
223
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
224
|
+
path:
|
|
225
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/configurations/{configurationName}",
|
|
226
|
+
httpMethod: "GET",
|
|
179
227
|
responses: {
|
|
180
228
|
200: {
|
|
181
229
|
bodyMapper: {
|
|
182
|
-
|
|
183
|
-
type: {
|
|
184
|
-
name: "Dictionary",
|
|
185
|
-
value: {
|
|
186
|
-
type: {
|
|
187
|
-
name: "String"
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
}
|
|
230
|
+
type: { name: "Dictionary", value: { type: { name: "String" } } }
|
|
191
231
|
}
|
|
192
232
|
},
|
|
193
233
|
default: {
|
|
194
234
|
bodyMapper: Mappers.ErrorResponse
|
|
195
235
|
}
|
|
196
236
|
},
|
|
197
|
-
|
|
198
|
-
};
|
|
199
|
-
|
|
200
|
-
const beginUpdateOperationSpec: msRest.OperationSpec = {
|
|
201
|
-
httpMethod: "POST",
|
|
202
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/configurations/{configurationName}",
|
|
237
|
+
queryParameters: [Parameters.apiVersion],
|
|
203
238
|
urlParameters: [
|
|
239
|
+
Parameters.$host,
|
|
204
240
|
Parameters.subscriptionId,
|
|
205
241
|
Parameters.resourceGroupName,
|
|
206
242
|
Parameters.clusterName,
|
|
207
243
|
Parameters.configurationName
|
|
208
244
|
],
|
|
209
|
-
|
|
210
|
-
Parameters.apiVersion
|
|
211
|
-
],
|
|
212
|
-
headerParameters: [
|
|
213
|
-
Parameters.acceptLanguage
|
|
214
|
-
],
|
|
215
|
-
requestBody: {
|
|
216
|
-
parameterPath: "parameters",
|
|
217
|
-
mapper: {
|
|
218
|
-
required: true,
|
|
219
|
-
serializedName: "parameters",
|
|
220
|
-
type: {
|
|
221
|
-
name: "Dictionary",
|
|
222
|
-
value: {
|
|
223
|
-
type: {
|
|
224
|
-
name: "String"
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
},
|
|
230
|
-
responses: {
|
|
231
|
-
200: {},
|
|
232
|
-
202: {},
|
|
233
|
-
204: {},
|
|
234
|
-
default: {
|
|
235
|
-
bodyMapper: Mappers.ErrorResponse
|
|
236
|
-
}
|
|
237
|
-
},
|
|
245
|
+
headerParameters: [Parameters.accept],
|
|
238
246
|
serializer
|
|
239
247
|
};
|