@azure/arm-hdinsight 1.3.0-beta.1 → 1.3.0-beta.2
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 +29 -6
- package/LICENSE +1 -1
- package/dist/index.js +2107 -1900
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/applicationsCreateSample.js +10 -10
- package/dist-esm/samples-dev/applicationsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/applicationsGetAzureAsyncOperationStatusSample.js +1 -1
- package/dist-esm/samples-dev/applicationsGetSample.js +2 -2
- package/dist-esm/samples-dev/applicationsListByClusterSample.js +5 -10
- package/dist-esm/samples-dev/applicationsListByClusterSample.js.map +1 -1
- package/dist-esm/samples-dev/clustersCreateSample.js +277 -276
- package/dist-esm/samples-dev/clustersCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/clustersDeleteSample.js +1 -1
- package/dist-esm/samples-dev/clustersExecuteScriptActionsSample.js +5 -5
- package/dist-esm/samples-dev/clustersExecuteScriptActionsSample.js.map +1 -1
- package/dist-esm/samples-dev/clustersGetAzureAsyncOperationStatusSample.js +1 -1
- package/dist-esm/samples-dev/clustersGetGatewaySettingsSample.js +1 -1
- package/dist-esm/samples-dev/clustersGetSample.js +2 -2
- package/dist-esm/samples-dev/clustersListByResourceGroupSample.js +5 -10
- package/dist-esm/samples-dev/clustersListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/clustersListSample.js +5 -10
- package/dist-esm/samples-dev/clustersListSample.js.map +1 -1
- package/dist-esm/samples-dev/clustersResizeSample.js +2 -2
- package/dist-esm/samples-dev/clustersResizeSample.js.map +1 -1
- package/dist-esm/samples-dev/clustersRotateDiskEncryptionKeySample.js +3 -3
- package/dist-esm/samples-dev/clustersRotateDiskEncryptionKeySample.js.map +1 -1
- package/dist-esm/samples-dev/clustersUpdateAutoScaleConfigurationSample.js +11 -11
- package/dist-esm/samples-dev/clustersUpdateAutoScaleConfigurationSample.js.map +1 -1
- package/dist-esm/samples-dev/clustersUpdateGatewaySettingsSample.js +3 -3
- package/dist-esm/samples-dev/clustersUpdateGatewaySettingsSample.js.map +1 -1
- package/dist-esm/samples-dev/clustersUpdateIdentityCertificateSample.js +3 -3
- package/dist-esm/samples-dev/clustersUpdateIdentityCertificateSample.js.map +1 -1
- package/dist-esm/samples-dev/clustersUpdateSample.js +25 -3
- package/dist-esm/samples-dev/clustersUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/configurationsGetSample.js +1 -1
- package/dist-esm/samples-dev/configurationsListSample.js +1 -1
- package/dist-esm/samples-dev/configurationsUpdateSample.js +4 -4
- package/dist-esm/samples-dev/extensionsCreateSample.js +2 -2
- package/dist-esm/samples-dev/extensionsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/extensionsDisableAzureMonitorAgentSample.d.ts +2 -0
- package/dist-esm/samples-dev/extensionsDisableAzureMonitorAgentSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/extensionsDisableAzureMonitorAgentSample.js +38 -0
- package/dist-esm/samples-dev/extensionsDisableAzureMonitorAgentSample.js.map +1 -0
- package/dist-esm/samples-dev/extensionsDisableAzureMonitorSample.js +3 -3
- package/dist-esm/samples-dev/extensionsDisableAzureMonitorSample.js.map +1 -1
- package/dist-esm/samples-dev/extensionsDisableMonitoringSample.js +3 -3
- package/dist-esm/samples-dev/extensionsDisableMonitoringSample.js.map +1 -1
- package/dist-esm/samples-dev/extensionsEnableAzureMonitorAgentSample.d.ts +2 -0
- package/dist-esm/samples-dev/extensionsEnableAzureMonitorAgentSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/extensionsEnableAzureMonitorAgentSample.js +42 -0
- package/dist-esm/samples-dev/extensionsEnableAzureMonitorAgentSample.js.map +1 -0
- package/dist-esm/samples-dev/extensionsEnableAzureMonitorSample.js +5 -5
- package/dist-esm/samples-dev/extensionsEnableAzureMonitorSample.js.map +1 -1
- package/dist-esm/samples-dev/extensionsEnableMonitoringSample.js +3 -3
- package/dist-esm/samples-dev/extensionsEnableMonitoringSample.js.map +1 -1
- package/dist-esm/samples-dev/extensionsGetAzureAsyncOperationStatusSample.js +1 -1
- package/dist-esm/samples-dev/extensionsGetAzureMonitorAgentStatusSample.d.ts +2 -0
- package/dist-esm/samples-dev/extensionsGetAzureMonitorAgentStatusSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/extensionsGetAzureMonitorAgentStatusSample.js +38 -0
- package/dist-esm/samples-dev/extensionsGetAzureMonitorAgentStatusSample.js.map +1 -0
- package/dist-esm/samples-dev/extensionsGetAzureMonitorStatusSample.js +3 -3
- package/dist-esm/samples-dev/extensionsGetAzureMonitorStatusSample.js.map +1 -1
- package/dist-esm/samples-dev/extensionsGetMonitoringStatusSample.js +3 -3
- package/dist-esm/samples-dev/extensionsGetMonitoringStatusSample.js.map +1 -1
- package/dist-esm/samples-dev/extensionsGetSample.js +1 -1
- package/dist-esm/samples-dev/locationsCheckNameAvailabilitySample.js +3 -3
- package/dist-esm/samples-dev/locationsCheckNameAvailabilitySample.js.map +1 -1
- package/dist-esm/samples-dev/locationsGetAzureAsyncOperationStatusSample.js +1 -1
- package/dist-esm/samples-dev/locationsGetCapabilitiesSample.js +1 -1
- package/dist-esm/samples-dev/locationsListBillingSpecsSample.js +1 -1
- package/dist-esm/samples-dev/locationsListUsagesSample.js +1 -1
- package/dist-esm/samples-dev/locationsValidateClusterCreateRequestSample.js +21 -21
- package/dist-esm/samples-dev/locationsValidateClusterCreateRequestSample.js.map +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +5 -10
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js +4 -4
- package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsListByClusterSample.js +5 -10
- package/dist-esm/samples-dev/privateEndpointConnectionsListByClusterSample.js.map +1 -1
- package/dist-esm/samples-dev/privateLinkResourcesGetSample.js +1 -1
- package/dist-esm/samples-dev/privateLinkResourcesListByClusterSample.js +1 -1
- package/dist-esm/samples-dev/scriptActionsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/scriptActionsGetExecutionAsyncOperationStatusSample.js +1 -1
- package/dist-esm/samples-dev/scriptActionsGetExecutionDetailSample.js +1 -1
- package/dist-esm/samples-dev/scriptActionsListByClusterSample.js +5 -10
- package/dist-esm/samples-dev/scriptActionsListByClusterSample.js.map +1 -1
- package/dist-esm/samples-dev/scriptExecutionHistoryListByClusterSample.js +5 -10
- package/dist-esm/samples-dev/scriptExecutionHistoryListByClusterSample.js.map +1 -1
- package/dist-esm/samples-dev/scriptExecutionHistoryPromoteSample.js +1 -1
- package/dist-esm/samples-dev/virtualMachinesGetAsyncOperationStatusSample.js +1 -1
- package/dist-esm/samples-dev/virtualMachinesListHostsSample.js +1 -1
- package/dist-esm/samples-dev/virtualMachinesRestartHostsSample.js +1 -1
- package/dist-esm/samples-dev/virtualMachinesRestartHostsSample.js.map +1 -1
- package/dist-esm/src/hDInsightManagementClient.d.ts.map +1 -1
- package/dist-esm/src/hDInsightManagementClient.js +9 -9
- package/dist-esm/src/hDInsightManagementClient.js.map +1 -1
- package/dist-esm/src/index.d.ts +0 -1
- package/dist-esm/src/index.d.ts.map +1 -1
- package/dist-esm/src/lroImpl.js +1 -1
- package/dist-esm/src/models/index.d.ts +48 -0
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +8 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +1 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +1288 -1244
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.js +79 -79
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/applications.d.ts.map +1 -1
- package/dist-esm/src/operations/applications.js +46 -51
- package/dist-esm/src/operations/applications.js.map +1 -1
- package/dist-esm/src/operations/clusters.d.ts.map +1 -1
- package/dist-esm/src/operations/clusters.js +117 -127
- package/dist-esm/src/operations/clusters.js.map +1 -1
- package/dist-esm/src/operations/configurations.d.ts.map +1 -1
- package/dist-esm/src/operations/configurations.js +21 -21
- package/dist-esm/src/operations/configurations.js.map +1 -1
- package/dist-esm/src/operations/extensions.d.ts +38 -1
- package/dist-esm/src/operations/extensions.d.ts.map +1 -1
- package/dist-esm/src/operations/extensions.js +260 -70
- package/dist-esm/src/operations/extensions.js.map +1 -1
- package/dist-esm/src/operations/locations.js +30 -30
- package/dist-esm/src/operations/locations.js.map +1 -1
- package/dist-esm/src/operations/operations.js +12 -17
- package/dist-esm/src/operations/operations.js.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.js +43 -48
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
- package/dist-esm/src/operations/privateLinkResources.js +10 -10
- package/dist-esm/src/operations/privateLinkResources.js.map +1 -1
- package/dist-esm/src/operations/scriptActions.js +28 -33
- package/dist-esm/src/operations/scriptActions.js.map +1 -1
- package/dist-esm/src/operations/scriptExecutionHistory.js +18 -23
- package/dist-esm/src/operations/scriptExecutionHistory.js.map +1 -1
- package/dist-esm/src/operations/virtualMachines.d.ts.map +1 -1
- package/dist-esm/src/operations/virtualMachines.js +21 -21
- package/dist-esm/src/operations/virtualMachines.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/extensions.d.ts +38 -1
- package/dist-esm/src/operationsInterfaces/extensions.d.ts.map +1 -1
- package/dist-esm/src/pagingHelper.js.map +1 -1
- package/dist-esm/test/hdinsights_operations_test.spec.d.ts.map +1 -1
- package/dist-esm/test/hdinsights_operations_test.spec.js +9 -13
- package/dist-esm/test/hdinsights_operations_test.spec.js.map +1 -1
- package/package.json +20 -25
- package/review/arm-hdinsight.api.md +42 -0
- package/src/hDInsightManagementClient.ts +18 -17
- package/src/lroImpl.ts +4 -4
- package/src/models/index.ts +100 -30
- package/src/models/mappers.ts +1416 -1365
- package/src/models/parameters.ts +80 -80
- package/src/operations/applications.ts +85 -92
- package/src/operations/clusters.ts +230 -252
- package/src/operations/configurations.ts +39 -43
- package/src/operations/extensions.ts +406 -165
- package/src/operations/locations.ts +49 -55
- package/src/operations/operations.ts +16 -16
- package/src/operations/privateEndpointConnections.ts +81 -86
- package/src/operations/privateLinkResources.ts +17 -19
- package/src/operations/scriptActions.ts +64 -67
- package/src/operations/scriptExecutionHistory.ts +32 -34
- package/src/operations/virtualMachines.ts +39 -43
- package/src/operationsInterfaces/applications.ts +8 -8
- package/src/operationsInterfaces/clusters.ts +23 -23
- package/src/operationsInterfaces/configurations.ts +5 -5
- package/src/operationsInterfaces/extensions.ts +80 -17
- package/src/operationsInterfaces/locations.ts +7 -7
- package/src/operationsInterfaces/operations.ts +1 -1
- package/src/operationsInterfaces/privateEndpointConnections.ts +7 -7
- package/src/operationsInterfaces/privateLinkResources.ts +3 -3
- package/src/operationsInterfaces/scriptActions.ts +5 -5
- package/src/operationsInterfaces/scriptExecutionHistory.ts +3 -3
- package/src/operationsInterfaces/virtualMachines.ts +5 -5
- package/src/pagingHelper.ts +1 -1
- package/types/arm-hdinsight.d.ts +92 -0
- package/types/tsdoc-metadata.json +1 -1
- package/rollup.config.js +0 -122
|
@@ -16,7 +16,7 @@ import { HDInsightManagementClient } from "../hDInsightManagementClient";
|
|
|
16
16
|
import {
|
|
17
17
|
SimplePollerLike,
|
|
18
18
|
OperationState,
|
|
19
|
-
createHttpPoller
|
|
19
|
+
createHttpPoller,
|
|
20
20
|
} from "@azure/core-lro";
|
|
21
21
|
import { createLroSpec } from "../lroImpl";
|
|
22
22
|
import {
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
ApplicationsDeleteOptionalParams,
|
|
32
32
|
ApplicationsGetAzureAsyncOperationStatusOptionalParams,
|
|
33
33
|
ApplicationsGetAzureAsyncOperationStatusResponse,
|
|
34
|
-
ApplicationsListByClusterNextResponse
|
|
34
|
+
ApplicationsListByClusterNextResponse,
|
|
35
35
|
} from "../models";
|
|
36
36
|
|
|
37
37
|
/// <reference lib="esnext.asynciterable" />
|
|
@@ -56,12 +56,12 @@ export class ApplicationsImpl implements Applications {
|
|
|
56
56
|
public listByCluster(
|
|
57
57
|
resourceGroupName: string,
|
|
58
58
|
clusterName: string,
|
|
59
|
-
options?: ApplicationsListByClusterOptionalParams
|
|
59
|
+
options?: ApplicationsListByClusterOptionalParams,
|
|
60
60
|
): PagedAsyncIterableIterator<Application> {
|
|
61
61
|
const iter = this.listByClusterPagingAll(
|
|
62
62
|
resourceGroupName,
|
|
63
63
|
clusterName,
|
|
64
|
-
options
|
|
64
|
+
options,
|
|
65
65
|
);
|
|
66
66
|
return {
|
|
67
67
|
next() {
|
|
@@ -78,9 +78,9 @@ export class ApplicationsImpl implements Applications {
|
|
|
78
78
|
resourceGroupName,
|
|
79
79
|
clusterName,
|
|
80
80
|
options,
|
|
81
|
-
settings
|
|
81
|
+
settings,
|
|
82
82
|
);
|
|
83
|
-
}
|
|
83
|
+
},
|
|
84
84
|
};
|
|
85
85
|
}
|
|
86
86
|
|
|
@@ -88,7 +88,7 @@ export class ApplicationsImpl implements Applications {
|
|
|
88
88
|
resourceGroupName: string,
|
|
89
89
|
clusterName: string,
|
|
90
90
|
options?: ApplicationsListByClusterOptionalParams,
|
|
91
|
-
settings?: PageSettings
|
|
91
|
+
settings?: PageSettings,
|
|
92
92
|
): AsyncIterableIterator<Application[]> {
|
|
93
93
|
let result: ApplicationsListByClusterResponse;
|
|
94
94
|
let continuationToken = settings?.continuationToken;
|
|
@@ -96,7 +96,7 @@ export class ApplicationsImpl implements Applications {
|
|
|
96
96
|
result = await this._listByCluster(
|
|
97
97
|
resourceGroupName,
|
|
98
98
|
clusterName,
|
|
99
|
-
options
|
|
99
|
+
options,
|
|
100
100
|
);
|
|
101
101
|
let page = result.value || [];
|
|
102
102
|
continuationToken = result.nextLink;
|
|
@@ -108,7 +108,7 @@ export class ApplicationsImpl implements Applications {
|
|
|
108
108
|
resourceGroupName,
|
|
109
109
|
clusterName,
|
|
110
110
|
continuationToken,
|
|
111
|
-
options
|
|
111
|
+
options,
|
|
112
112
|
);
|
|
113
113
|
continuationToken = result.nextLink;
|
|
114
114
|
let page = result.value || [];
|
|
@@ -120,12 +120,12 @@ export class ApplicationsImpl implements Applications {
|
|
|
120
120
|
private async *listByClusterPagingAll(
|
|
121
121
|
resourceGroupName: string,
|
|
122
122
|
clusterName: string,
|
|
123
|
-
options?: ApplicationsListByClusterOptionalParams
|
|
123
|
+
options?: ApplicationsListByClusterOptionalParams,
|
|
124
124
|
): AsyncIterableIterator<Application> {
|
|
125
125
|
for await (const page of this.listByClusterPagingPage(
|
|
126
126
|
resourceGroupName,
|
|
127
127
|
clusterName,
|
|
128
|
-
options
|
|
128
|
+
options,
|
|
129
129
|
)) {
|
|
130
130
|
yield* page;
|
|
131
131
|
}
|
|
@@ -140,11 +140,11 @@ export class ApplicationsImpl implements Applications {
|
|
|
140
140
|
private _listByCluster(
|
|
141
141
|
resourceGroupName: string,
|
|
142
142
|
clusterName: string,
|
|
143
|
-
options?: ApplicationsListByClusterOptionalParams
|
|
143
|
+
options?: ApplicationsListByClusterOptionalParams,
|
|
144
144
|
): Promise<ApplicationsListByClusterResponse> {
|
|
145
145
|
return this.client.sendOperationRequest(
|
|
146
146
|
{ resourceGroupName, clusterName, options },
|
|
147
|
-
listByClusterOperationSpec
|
|
147
|
+
listByClusterOperationSpec,
|
|
148
148
|
);
|
|
149
149
|
}
|
|
150
150
|
|
|
@@ -159,11 +159,11 @@ export class ApplicationsImpl implements Applications {
|
|
|
159
159
|
resourceGroupName: string,
|
|
160
160
|
clusterName: string,
|
|
161
161
|
applicationName: string,
|
|
162
|
-
options?: ApplicationsGetOptionalParams
|
|
162
|
+
options?: ApplicationsGetOptionalParams,
|
|
163
163
|
): Promise<ApplicationsGetResponse> {
|
|
164
164
|
return this.client.sendOperationRequest(
|
|
165
165
|
{ resourceGroupName, clusterName, applicationName, options },
|
|
166
|
-
getOperationSpec
|
|
166
|
+
getOperationSpec,
|
|
167
167
|
);
|
|
168
168
|
}
|
|
169
169
|
|
|
@@ -180,7 +180,7 @@ export class ApplicationsImpl implements Applications {
|
|
|
180
180
|
clusterName: string,
|
|
181
181
|
applicationName: string,
|
|
182
182
|
parameters: Application,
|
|
183
|
-
options?: ApplicationsCreateOptionalParams
|
|
183
|
+
options?: ApplicationsCreateOptionalParams,
|
|
184
184
|
): Promise<
|
|
185
185
|
SimplePollerLike<
|
|
186
186
|
OperationState<ApplicationsCreateResponse>,
|
|
@@ -189,21 +189,20 @@ export class ApplicationsImpl implements Applications {
|
|
|
189
189
|
> {
|
|
190
190
|
const directSendOperation = async (
|
|
191
191
|
args: coreClient.OperationArguments,
|
|
192
|
-
spec: coreClient.OperationSpec
|
|
192
|
+
spec: coreClient.OperationSpec,
|
|
193
193
|
): Promise<ApplicationsCreateResponse> => {
|
|
194
194
|
return this.client.sendOperationRequest(args, spec);
|
|
195
195
|
};
|
|
196
196
|
const sendOperationFn = async (
|
|
197
197
|
args: coreClient.OperationArguments,
|
|
198
|
-
spec: coreClient.OperationSpec
|
|
198
|
+
spec: coreClient.OperationSpec,
|
|
199
199
|
) => {
|
|
200
|
-
let currentRawResponse:
|
|
201
|
-
|
|
202
|
-
| undefined = undefined;
|
|
200
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
201
|
+
undefined;
|
|
203
202
|
const providedCallback = args.options?.onResponse;
|
|
204
203
|
const callback: coreClient.RawResponseCallback = (
|
|
205
204
|
rawResponse: coreClient.FullOperationResponse,
|
|
206
|
-
flatResponse: unknown
|
|
205
|
+
flatResponse: unknown,
|
|
207
206
|
) => {
|
|
208
207
|
currentRawResponse = rawResponse;
|
|
209
208
|
providedCallback?.(rawResponse, flatResponse);
|
|
@@ -212,8 +211,8 @@ export class ApplicationsImpl implements Applications {
|
|
|
212
211
|
...args,
|
|
213
212
|
options: {
|
|
214
213
|
...args.options,
|
|
215
|
-
onResponse: callback
|
|
216
|
-
}
|
|
214
|
+
onResponse: callback,
|
|
215
|
+
},
|
|
217
216
|
};
|
|
218
217
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
219
218
|
return {
|
|
@@ -221,8 +220,8 @@ export class ApplicationsImpl implements Applications {
|
|
|
221
220
|
rawResponse: {
|
|
222
221
|
statusCode: currentRawResponse!.status,
|
|
223
222
|
body: currentRawResponse!.parsedBody,
|
|
224
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
225
|
-
}
|
|
223
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
224
|
+
},
|
|
226
225
|
};
|
|
227
226
|
};
|
|
228
227
|
|
|
@@ -233,9 +232,9 @@ export class ApplicationsImpl implements Applications {
|
|
|
233
232
|
clusterName,
|
|
234
233
|
applicationName,
|
|
235
234
|
parameters,
|
|
236
|
-
options
|
|
235
|
+
options,
|
|
237
236
|
},
|
|
238
|
-
spec: createOperationSpec
|
|
237
|
+
spec: createOperationSpec,
|
|
239
238
|
});
|
|
240
239
|
const poller = await createHttpPoller<
|
|
241
240
|
ApplicationsCreateResponse,
|
|
@@ -243,7 +242,7 @@ export class ApplicationsImpl implements Applications {
|
|
|
243
242
|
>(lro, {
|
|
244
243
|
restoreFrom: options?.resumeFrom,
|
|
245
244
|
intervalInMs: options?.updateIntervalInMs,
|
|
246
|
-
resourceLocationConfig: "location"
|
|
245
|
+
resourceLocationConfig: "location",
|
|
247
246
|
});
|
|
248
247
|
await poller.poll();
|
|
249
248
|
return poller;
|
|
@@ -262,14 +261,14 @@ export class ApplicationsImpl implements Applications {
|
|
|
262
261
|
clusterName: string,
|
|
263
262
|
applicationName: string,
|
|
264
263
|
parameters: Application,
|
|
265
|
-
options?: ApplicationsCreateOptionalParams
|
|
264
|
+
options?: ApplicationsCreateOptionalParams,
|
|
266
265
|
): Promise<ApplicationsCreateResponse> {
|
|
267
266
|
const poller = await this.beginCreate(
|
|
268
267
|
resourceGroupName,
|
|
269
268
|
clusterName,
|
|
270
269
|
applicationName,
|
|
271
270
|
parameters,
|
|
272
|
-
options
|
|
271
|
+
options,
|
|
273
272
|
);
|
|
274
273
|
return poller.pollUntilDone();
|
|
275
274
|
}
|
|
@@ -285,25 +284,24 @@ export class ApplicationsImpl implements Applications {
|
|
|
285
284
|
resourceGroupName: string,
|
|
286
285
|
clusterName: string,
|
|
287
286
|
applicationName: string,
|
|
288
|
-
options?: ApplicationsDeleteOptionalParams
|
|
287
|
+
options?: ApplicationsDeleteOptionalParams,
|
|
289
288
|
): Promise<SimplePollerLike<OperationState<void>, void>> {
|
|
290
289
|
const directSendOperation = async (
|
|
291
290
|
args: coreClient.OperationArguments,
|
|
292
|
-
spec: coreClient.OperationSpec
|
|
291
|
+
spec: coreClient.OperationSpec,
|
|
293
292
|
): Promise<void> => {
|
|
294
293
|
return this.client.sendOperationRequest(args, spec);
|
|
295
294
|
};
|
|
296
295
|
const sendOperationFn = async (
|
|
297
296
|
args: coreClient.OperationArguments,
|
|
298
|
-
spec: coreClient.OperationSpec
|
|
297
|
+
spec: coreClient.OperationSpec,
|
|
299
298
|
) => {
|
|
300
|
-
let currentRawResponse:
|
|
301
|
-
|
|
302
|
-
| undefined = undefined;
|
|
299
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
300
|
+
undefined;
|
|
303
301
|
const providedCallback = args.options?.onResponse;
|
|
304
302
|
const callback: coreClient.RawResponseCallback = (
|
|
305
303
|
rawResponse: coreClient.FullOperationResponse,
|
|
306
|
-
flatResponse: unknown
|
|
304
|
+
flatResponse: unknown,
|
|
307
305
|
) => {
|
|
308
306
|
currentRawResponse = rawResponse;
|
|
309
307
|
providedCallback?.(rawResponse, flatResponse);
|
|
@@ -312,8 +310,8 @@ export class ApplicationsImpl implements Applications {
|
|
|
312
310
|
...args,
|
|
313
311
|
options: {
|
|
314
312
|
...args.options,
|
|
315
|
-
onResponse: callback
|
|
316
|
-
}
|
|
313
|
+
onResponse: callback,
|
|
314
|
+
},
|
|
317
315
|
};
|
|
318
316
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
319
317
|
return {
|
|
@@ -321,20 +319,20 @@ export class ApplicationsImpl implements Applications {
|
|
|
321
319
|
rawResponse: {
|
|
322
320
|
statusCode: currentRawResponse!.status,
|
|
323
321
|
body: currentRawResponse!.parsedBody,
|
|
324
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
325
|
-
}
|
|
322
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
323
|
+
},
|
|
326
324
|
};
|
|
327
325
|
};
|
|
328
326
|
|
|
329
327
|
const lro = createLroSpec({
|
|
330
328
|
sendOperationFn,
|
|
331
329
|
args: { resourceGroupName, clusterName, applicationName, options },
|
|
332
|
-
spec: deleteOperationSpec
|
|
330
|
+
spec: deleteOperationSpec,
|
|
333
331
|
});
|
|
334
332
|
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
|
|
335
333
|
restoreFrom: options?.resumeFrom,
|
|
336
334
|
intervalInMs: options?.updateIntervalInMs,
|
|
337
|
-
resourceLocationConfig: "location"
|
|
335
|
+
resourceLocationConfig: "location",
|
|
338
336
|
});
|
|
339
337
|
await poller.poll();
|
|
340
338
|
return poller;
|
|
@@ -351,13 +349,13 @@ export class ApplicationsImpl implements Applications {
|
|
|
351
349
|
resourceGroupName: string,
|
|
352
350
|
clusterName: string,
|
|
353
351
|
applicationName: string,
|
|
354
|
-
options?: ApplicationsDeleteOptionalParams
|
|
352
|
+
options?: ApplicationsDeleteOptionalParams,
|
|
355
353
|
): Promise<void> {
|
|
356
354
|
const poller = await this.beginDelete(
|
|
357
355
|
resourceGroupName,
|
|
358
356
|
clusterName,
|
|
359
357
|
applicationName,
|
|
360
|
-
options
|
|
358
|
+
options,
|
|
361
359
|
);
|
|
362
360
|
return poller.pollUntilDone();
|
|
363
361
|
}
|
|
@@ -375,11 +373,11 @@ export class ApplicationsImpl implements Applications {
|
|
|
375
373
|
clusterName: string,
|
|
376
374
|
applicationName: string,
|
|
377
375
|
operationId: string,
|
|
378
|
-
options?: ApplicationsGetAzureAsyncOperationStatusOptionalParams
|
|
376
|
+
options?: ApplicationsGetAzureAsyncOperationStatusOptionalParams,
|
|
379
377
|
): Promise<ApplicationsGetAzureAsyncOperationStatusResponse> {
|
|
380
378
|
return this.client.sendOperationRequest(
|
|
381
379
|
{ resourceGroupName, clusterName, applicationName, operationId, options },
|
|
382
|
-
getAzureAsyncOperationStatusOperationSpec
|
|
380
|
+
getAzureAsyncOperationStatusOperationSpec,
|
|
383
381
|
);
|
|
384
382
|
}
|
|
385
383
|
|
|
@@ -394,11 +392,11 @@ export class ApplicationsImpl implements Applications {
|
|
|
394
392
|
resourceGroupName: string,
|
|
395
393
|
clusterName: string,
|
|
396
394
|
nextLink: string,
|
|
397
|
-
options?: ApplicationsListByClusterNextOptionalParams
|
|
395
|
+
options?: ApplicationsListByClusterNextOptionalParams,
|
|
398
396
|
): Promise<ApplicationsListByClusterNextResponse> {
|
|
399
397
|
return this.client.sendOperationRequest(
|
|
400
398
|
{ resourceGroupName, clusterName, nextLink, options },
|
|
401
|
-
listByClusterNextOperationSpec
|
|
399
|
+
listByClusterNextOperationSpec,
|
|
402
400
|
);
|
|
403
401
|
}
|
|
404
402
|
}
|
|
@@ -406,38 +404,36 @@ export class ApplicationsImpl implements Applications {
|
|
|
406
404
|
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
407
405
|
|
|
408
406
|
const listByClusterOperationSpec: coreClient.OperationSpec = {
|
|
409
|
-
path:
|
|
410
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/applications",
|
|
407
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/applications",
|
|
411
408
|
httpMethod: "GET",
|
|
412
409
|
responses: {
|
|
413
410
|
200: {
|
|
414
|
-
bodyMapper: Mappers.ApplicationListResult
|
|
411
|
+
bodyMapper: Mappers.ApplicationListResult,
|
|
415
412
|
},
|
|
416
413
|
default: {
|
|
417
|
-
bodyMapper: Mappers.ErrorResponse
|
|
418
|
-
}
|
|
414
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
415
|
+
},
|
|
419
416
|
},
|
|
420
417
|
queryParameters: [Parameters.apiVersion],
|
|
421
418
|
urlParameters: [
|
|
422
419
|
Parameters.$host,
|
|
423
420
|
Parameters.subscriptionId,
|
|
424
421
|
Parameters.resourceGroupName,
|
|
425
|
-
Parameters.clusterName
|
|
422
|
+
Parameters.clusterName,
|
|
426
423
|
],
|
|
427
424
|
headerParameters: [Parameters.accept],
|
|
428
|
-
serializer
|
|
425
|
+
serializer,
|
|
429
426
|
};
|
|
430
427
|
const getOperationSpec: coreClient.OperationSpec = {
|
|
431
|
-
path:
|
|
432
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/applications/{applicationName}",
|
|
428
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/applications/{applicationName}",
|
|
433
429
|
httpMethod: "GET",
|
|
434
430
|
responses: {
|
|
435
431
|
200: {
|
|
436
|
-
bodyMapper: Mappers.Application
|
|
432
|
+
bodyMapper: Mappers.Application,
|
|
437
433
|
},
|
|
438
434
|
default: {
|
|
439
|
-
bodyMapper: Mappers.ErrorResponse
|
|
440
|
-
}
|
|
435
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
436
|
+
},
|
|
441
437
|
},
|
|
442
438
|
queryParameters: [Parameters.apiVersion],
|
|
443
439
|
urlParameters: [
|
|
@@ -445,31 +441,30 @@ const getOperationSpec: coreClient.OperationSpec = {
|
|
|
445
441
|
Parameters.subscriptionId,
|
|
446
442
|
Parameters.resourceGroupName,
|
|
447
443
|
Parameters.clusterName,
|
|
448
|
-
Parameters.applicationName
|
|
444
|
+
Parameters.applicationName,
|
|
449
445
|
],
|
|
450
446
|
headerParameters: [Parameters.accept],
|
|
451
|
-
serializer
|
|
447
|
+
serializer,
|
|
452
448
|
};
|
|
453
449
|
const createOperationSpec: coreClient.OperationSpec = {
|
|
454
|
-
path:
|
|
455
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/applications/{applicationName}",
|
|
450
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/applications/{applicationName}",
|
|
456
451
|
httpMethod: "PUT",
|
|
457
452
|
responses: {
|
|
458
453
|
200: {
|
|
459
|
-
bodyMapper: Mappers.Application
|
|
454
|
+
bodyMapper: Mappers.Application,
|
|
460
455
|
},
|
|
461
456
|
201: {
|
|
462
|
-
bodyMapper: Mappers.Application
|
|
457
|
+
bodyMapper: Mappers.Application,
|
|
463
458
|
},
|
|
464
459
|
202: {
|
|
465
|
-
bodyMapper: Mappers.Application
|
|
460
|
+
bodyMapper: Mappers.Application,
|
|
466
461
|
},
|
|
467
462
|
204: {
|
|
468
|
-
bodyMapper: Mappers.Application
|
|
463
|
+
bodyMapper: Mappers.Application,
|
|
469
464
|
},
|
|
470
465
|
default: {
|
|
471
|
-
bodyMapper: Mappers.ErrorResponse
|
|
472
|
-
}
|
|
466
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
467
|
+
},
|
|
473
468
|
},
|
|
474
469
|
requestBody: Parameters.parameters,
|
|
475
470
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -478,15 +473,14 @@ const createOperationSpec: coreClient.OperationSpec = {
|
|
|
478
473
|
Parameters.subscriptionId,
|
|
479
474
|
Parameters.resourceGroupName,
|
|
480
475
|
Parameters.clusterName,
|
|
481
|
-
Parameters.applicationName
|
|
476
|
+
Parameters.applicationName,
|
|
482
477
|
],
|
|
483
478
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
484
479
|
mediaType: "json",
|
|
485
|
-
serializer
|
|
480
|
+
serializer,
|
|
486
481
|
};
|
|
487
482
|
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
488
|
-
path:
|
|
489
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/applications/{applicationName}",
|
|
483
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/applications/{applicationName}",
|
|
490
484
|
httpMethod: "DELETE",
|
|
491
485
|
responses: {
|
|
492
486
|
200: {},
|
|
@@ -494,8 +488,8 @@ const deleteOperationSpec: coreClient.OperationSpec = {
|
|
|
494
488
|
202: {},
|
|
495
489
|
204: {},
|
|
496
490
|
default: {
|
|
497
|
-
bodyMapper: Mappers.ErrorResponse
|
|
498
|
-
}
|
|
491
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
492
|
+
},
|
|
499
493
|
},
|
|
500
494
|
queryParameters: [Parameters.apiVersion],
|
|
501
495
|
urlParameters: [
|
|
@@ -503,22 +497,21 @@ const deleteOperationSpec: coreClient.OperationSpec = {
|
|
|
503
497
|
Parameters.subscriptionId,
|
|
504
498
|
Parameters.resourceGroupName,
|
|
505
499
|
Parameters.clusterName,
|
|
506
|
-
Parameters.applicationName
|
|
500
|
+
Parameters.applicationName,
|
|
507
501
|
],
|
|
508
502
|
headerParameters: [Parameters.accept],
|
|
509
|
-
serializer
|
|
503
|
+
serializer,
|
|
510
504
|
};
|
|
511
505
|
const getAzureAsyncOperationStatusOperationSpec: coreClient.OperationSpec = {
|
|
512
|
-
path:
|
|
513
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/applications/{applicationName}/azureasyncoperations/{operationId}",
|
|
506
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/applications/{applicationName}/azureasyncoperations/{operationId}",
|
|
514
507
|
httpMethod: "GET",
|
|
515
508
|
responses: {
|
|
516
509
|
200: {
|
|
517
|
-
bodyMapper: Mappers.AsyncOperationResult
|
|
510
|
+
bodyMapper: Mappers.AsyncOperationResult,
|
|
518
511
|
},
|
|
519
512
|
default: {
|
|
520
|
-
bodyMapper: Mappers.ErrorResponse
|
|
521
|
-
}
|
|
513
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
514
|
+
},
|
|
522
515
|
},
|
|
523
516
|
queryParameters: [Parameters.apiVersion],
|
|
524
517
|
urlParameters: [
|
|
@@ -527,29 +520,29 @@ const getAzureAsyncOperationStatusOperationSpec: coreClient.OperationSpec = {
|
|
|
527
520
|
Parameters.resourceGroupName,
|
|
528
521
|
Parameters.clusterName,
|
|
529
522
|
Parameters.applicationName,
|
|
530
|
-
Parameters.operationId
|
|
523
|
+
Parameters.operationId,
|
|
531
524
|
],
|
|
532
525
|
headerParameters: [Parameters.accept],
|
|
533
|
-
serializer
|
|
526
|
+
serializer,
|
|
534
527
|
};
|
|
535
528
|
const listByClusterNextOperationSpec: coreClient.OperationSpec = {
|
|
536
529
|
path: "{nextLink}",
|
|
537
530
|
httpMethod: "GET",
|
|
538
531
|
responses: {
|
|
539
532
|
200: {
|
|
540
|
-
bodyMapper: Mappers.ApplicationListResult
|
|
533
|
+
bodyMapper: Mappers.ApplicationListResult,
|
|
541
534
|
},
|
|
542
535
|
default: {
|
|
543
|
-
bodyMapper: Mappers.ErrorResponse
|
|
544
|
-
}
|
|
536
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
537
|
+
},
|
|
545
538
|
},
|
|
546
539
|
urlParameters: [
|
|
547
540
|
Parameters.$host,
|
|
548
541
|
Parameters.subscriptionId,
|
|
549
542
|
Parameters.resourceGroupName,
|
|
550
543
|
Parameters.clusterName,
|
|
551
|
-
Parameters.nextLink
|
|
544
|
+
Parameters.nextLink,
|
|
552
545
|
],
|
|
553
546
|
headerParameters: [Parameters.accept],
|
|
554
|
-
serializer
|
|
547
|
+
serializer,
|
|
555
548
|
};
|