@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 {
|
|
@@ -29,13 +29,14 @@ import {
|
|
|
29
29
|
PrivateEndpointConnectionsGetOptionalParams,
|
|
30
30
|
PrivateEndpointConnectionsGetResponse,
|
|
31
31
|
PrivateEndpointConnectionsDeleteOptionalParams,
|
|
32
|
-
PrivateEndpointConnectionsListByClusterNextResponse
|
|
32
|
+
PrivateEndpointConnectionsListByClusterNextResponse,
|
|
33
33
|
} from "../models";
|
|
34
34
|
|
|
35
35
|
/// <reference lib="esnext.asynciterable" />
|
|
36
36
|
/** Class containing PrivateEndpointConnections operations. */
|
|
37
37
|
export class PrivateEndpointConnectionsImpl
|
|
38
|
-
implements PrivateEndpointConnections
|
|
38
|
+
implements PrivateEndpointConnections
|
|
39
|
+
{
|
|
39
40
|
private readonly client: HDInsightManagementClient;
|
|
40
41
|
|
|
41
42
|
/**
|
|
@@ -55,12 +56,12 @@ export class PrivateEndpointConnectionsImpl
|
|
|
55
56
|
public listByCluster(
|
|
56
57
|
resourceGroupName: string,
|
|
57
58
|
clusterName: string,
|
|
58
|
-
options?: PrivateEndpointConnectionsListByClusterOptionalParams
|
|
59
|
+
options?: PrivateEndpointConnectionsListByClusterOptionalParams,
|
|
59
60
|
): PagedAsyncIterableIterator<PrivateEndpointConnection> {
|
|
60
61
|
const iter = this.listByClusterPagingAll(
|
|
61
62
|
resourceGroupName,
|
|
62
63
|
clusterName,
|
|
63
|
-
options
|
|
64
|
+
options,
|
|
64
65
|
);
|
|
65
66
|
return {
|
|
66
67
|
next() {
|
|
@@ -77,9 +78,9 @@ export class PrivateEndpointConnectionsImpl
|
|
|
77
78
|
resourceGroupName,
|
|
78
79
|
clusterName,
|
|
79
80
|
options,
|
|
80
|
-
settings
|
|
81
|
+
settings,
|
|
81
82
|
);
|
|
82
|
-
}
|
|
83
|
+
},
|
|
83
84
|
};
|
|
84
85
|
}
|
|
85
86
|
|
|
@@ -87,7 +88,7 @@ export class PrivateEndpointConnectionsImpl
|
|
|
87
88
|
resourceGroupName: string,
|
|
88
89
|
clusterName: string,
|
|
89
90
|
options?: PrivateEndpointConnectionsListByClusterOptionalParams,
|
|
90
|
-
settings?: PageSettings
|
|
91
|
+
settings?: PageSettings,
|
|
91
92
|
): AsyncIterableIterator<PrivateEndpointConnection[]> {
|
|
92
93
|
let result: PrivateEndpointConnectionsListByClusterResponse;
|
|
93
94
|
let continuationToken = settings?.continuationToken;
|
|
@@ -95,7 +96,7 @@ export class PrivateEndpointConnectionsImpl
|
|
|
95
96
|
result = await this._listByCluster(
|
|
96
97
|
resourceGroupName,
|
|
97
98
|
clusterName,
|
|
98
|
-
options
|
|
99
|
+
options,
|
|
99
100
|
);
|
|
100
101
|
let page = result.value || [];
|
|
101
102
|
continuationToken = result.nextLink;
|
|
@@ -107,7 +108,7 @@ export class PrivateEndpointConnectionsImpl
|
|
|
107
108
|
resourceGroupName,
|
|
108
109
|
clusterName,
|
|
109
110
|
continuationToken,
|
|
110
|
-
options
|
|
111
|
+
options,
|
|
111
112
|
);
|
|
112
113
|
continuationToken = result.nextLink;
|
|
113
114
|
let page = result.value || [];
|
|
@@ -119,12 +120,12 @@ export class PrivateEndpointConnectionsImpl
|
|
|
119
120
|
private async *listByClusterPagingAll(
|
|
120
121
|
resourceGroupName: string,
|
|
121
122
|
clusterName: string,
|
|
122
|
-
options?: PrivateEndpointConnectionsListByClusterOptionalParams
|
|
123
|
+
options?: PrivateEndpointConnectionsListByClusterOptionalParams,
|
|
123
124
|
): AsyncIterableIterator<PrivateEndpointConnection> {
|
|
124
125
|
for await (const page of this.listByClusterPagingPage(
|
|
125
126
|
resourceGroupName,
|
|
126
127
|
clusterName,
|
|
127
|
-
options
|
|
128
|
+
options,
|
|
128
129
|
)) {
|
|
129
130
|
yield* page;
|
|
130
131
|
}
|
|
@@ -139,11 +140,11 @@ export class PrivateEndpointConnectionsImpl
|
|
|
139
140
|
private _listByCluster(
|
|
140
141
|
resourceGroupName: string,
|
|
141
142
|
clusterName: string,
|
|
142
|
-
options?: PrivateEndpointConnectionsListByClusterOptionalParams
|
|
143
|
+
options?: PrivateEndpointConnectionsListByClusterOptionalParams,
|
|
143
144
|
): Promise<PrivateEndpointConnectionsListByClusterResponse> {
|
|
144
145
|
return this.client.sendOperationRequest(
|
|
145
146
|
{ resourceGroupName, clusterName, options },
|
|
146
|
-
listByClusterOperationSpec
|
|
147
|
+
listByClusterOperationSpec,
|
|
147
148
|
);
|
|
148
149
|
}
|
|
149
150
|
|
|
@@ -160,7 +161,7 @@ export class PrivateEndpointConnectionsImpl
|
|
|
160
161
|
clusterName: string,
|
|
161
162
|
privateEndpointConnectionName: string,
|
|
162
163
|
parameters: PrivateEndpointConnection,
|
|
163
|
-
options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams
|
|
164
|
+
options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams,
|
|
164
165
|
): Promise<
|
|
165
166
|
SimplePollerLike<
|
|
166
167
|
OperationState<PrivateEndpointConnectionsCreateOrUpdateResponse>,
|
|
@@ -169,21 +170,20 @@ export class PrivateEndpointConnectionsImpl
|
|
|
169
170
|
> {
|
|
170
171
|
const directSendOperation = async (
|
|
171
172
|
args: coreClient.OperationArguments,
|
|
172
|
-
spec: coreClient.OperationSpec
|
|
173
|
+
spec: coreClient.OperationSpec,
|
|
173
174
|
): Promise<PrivateEndpointConnectionsCreateOrUpdateResponse> => {
|
|
174
175
|
return this.client.sendOperationRequest(args, spec);
|
|
175
176
|
};
|
|
176
177
|
const sendOperationFn = async (
|
|
177
178
|
args: coreClient.OperationArguments,
|
|
178
|
-
spec: coreClient.OperationSpec
|
|
179
|
+
spec: coreClient.OperationSpec,
|
|
179
180
|
) => {
|
|
180
|
-
let currentRawResponse:
|
|
181
|
-
|
|
182
|
-
| undefined = undefined;
|
|
181
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
182
|
+
undefined;
|
|
183
183
|
const providedCallback = args.options?.onResponse;
|
|
184
184
|
const callback: coreClient.RawResponseCallback = (
|
|
185
185
|
rawResponse: coreClient.FullOperationResponse,
|
|
186
|
-
flatResponse: unknown
|
|
186
|
+
flatResponse: unknown,
|
|
187
187
|
) => {
|
|
188
188
|
currentRawResponse = rawResponse;
|
|
189
189
|
providedCallback?.(rawResponse, flatResponse);
|
|
@@ -192,8 +192,8 @@ export class PrivateEndpointConnectionsImpl
|
|
|
192
192
|
...args,
|
|
193
193
|
options: {
|
|
194
194
|
...args.options,
|
|
195
|
-
onResponse: callback
|
|
196
|
-
}
|
|
195
|
+
onResponse: callback,
|
|
196
|
+
},
|
|
197
197
|
};
|
|
198
198
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
199
199
|
return {
|
|
@@ -201,8 +201,8 @@ export class PrivateEndpointConnectionsImpl
|
|
|
201
201
|
rawResponse: {
|
|
202
202
|
statusCode: currentRawResponse!.status,
|
|
203
203
|
body: currentRawResponse!.parsedBody,
|
|
204
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
205
|
-
}
|
|
204
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
205
|
+
},
|
|
206
206
|
};
|
|
207
207
|
};
|
|
208
208
|
|
|
@@ -213,9 +213,9 @@ export class PrivateEndpointConnectionsImpl
|
|
|
213
213
|
clusterName,
|
|
214
214
|
privateEndpointConnectionName,
|
|
215
215
|
parameters,
|
|
216
|
-
options
|
|
216
|
+
options,
|
|
217
217
|
},
|
|
218
|
-
spec: createOrUpdateOperationSpec
|
|
218
|
+
spec: createOrUpdateOperationSpec,
|
|
219
219
|
});
|
|
220
220
|
const poller = await createHttpPoller<
|
|
221
221
|
PrivateEndpointConnectionsCreateOrUpdateResponse,
|
|
@@ -223,7 +223,7 @@ export class PrivateEndpointConnectionsImpl
|
|
|
223
223
|
>(lro, {
|
|
224
224
|
restoreFrom: options?.resumeFrom,
|
|
225
225
|
intervalInMs: options?.updateIntervalInMs,
|
|
226
|
-
resourceLocationConfig: "azure-async-operation"
|
|
226
|
+
resourceLocationConfig: "azure-async-operation",
|
|
227
227
|
});
|
|
228
228
|
await poller.poll();
|
|
229
229
|
return poller;
|
|
@@ -242,14 +242,14 @@ export class PrivateEndpointConnectionsImpl
|
|
|
242
242
|
clusterName: string,
|
|
243
243
|
privateEndpointConnectionName: string,
|
|
244
244
|
parameters: PrivateEndpointConnection,
|
|
245
|
-
options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams
|
|
245
|
+
options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams,
|
|
246
246
|
): Promise<PrivateEndpointConnectionsCreateOrUpdateResponse> {
|
|
247
247
|
const poller = await this.beginCreateOrUpdate(
|
|
248
248
|
resourceGroupName,
|
|
249
249
|
clusterName,
|
|
250
250
|
privateEndpointConnectionName,
|
|
251
251
|
parameters,
|
|
252
|
-
options
|
|
252
|
+
options,
|
|
253
253
|
);
|
|
254
254
|
return poller.pollUntilDone();
|
|
255
255
|
}
|
|
@@ -265,16 +265,16 @@ export class PrivateEndpointConnectionsImpl
|
|
|
265
265
|
resourceGroupName: string,
|
|
266
266
|
clusterName: string,
|
|
267
267
|
privateEndpointConnectionName: string,
|
|
268
|
-
options?: PrivateEndpointConnectionsGetOptionalParams
|
|
268
|
+
options?: PrivateEndpointConnectionsGetOptionalParams,
|
|
269
269
|
): Promise<PrivateEndpointConnectionsGetResponse> {
|
|
270
270
|
return this.client.sendOperationRequest(
|
|
271
271
|
{
|
|
272
272
|
resourceGroupName,
|
|
273
273
|
clusterName,
|
|
274
274
|
privateEndpointConnectionName,
|
|
275
|
-
options
|
|
275
|
+
options,
|
|
276
276
|
},
|
|
277
|
-
getOperationSpec
|
|
277
|
+
getOperationSpec,
|
|
278
278
|
);
|
|
279
279
|
}
|
|
280
280
|
|
|
@@ -289,25 +289,24 @@ export class PrivateEndpointConnectionsImpl
|
|
|
289
289
|
resourceGroupName: string,
|
|
290
290
|
clusterName: string,
|
|
291
291
|
privateEndpointConnectionName: string,
|
|
292
|
-
options?: PrivateEndpointConnectionsDeleteOptionalParams
|
|
292
|
+
options?: PrivateEndpointConnectionsDeleteOptionalParams,
|
|
293
293
|
): Promise<SimplePollerLike<OperationState<void>, void>> {
|
|
294
294
|
const directSendOperation = async (
|
|
295
295
|
args: coreClient.OperationArguments,
|
|
296
|
-
spec: coreClient.OperationSpec
|
|
296
|
+
spec: coreClient.OperationSpec,
|
|
297
297
|
): Promise<void> => {
|
|
298
298
|
return this.client.sendOperationRequest(args, spec);
|
|
299
299
|
};
|
|
300
300
|
const sendOperationFn = async (
|
|
301
301
|
args: coreClient.OperationArguments,
|
|
302
|
-
spec: coreClient.OperationSpec
|
|
302
|
+
spec: coreClient.OperationSpec,
|
|
303
303
|
) => {
|
|
304
|
-
let currentRawResponse:
|
|
305
|
-
|
|
306
|
-
| undefined = undefined;
|
|
304
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
305
|
+
undefined;
|
|
307
306
|
const providedCallback = args.options?.onResponse;
|
|
308
307
|
const callback: coreClient.RawResponseCallback = (
|
|
309
308
|
rawResponse: coreClient.FullOperationResponse,
|
|
310
|
-
flatResponse: unknown
|
|
309
|
+
flatResponse: unknown,
|
|
311
310
|
) => {
|
|
312
311
|
currentRawResponse = rawResponse;
|
|
313
312
|
providedCallback?.(rawResponse, flatResponse);
|
|
@@ -316,8 +315,8 @@ export class PrivateEndpointConnectionsImpl
|
|
|
316
315
|
...args,
|
|
317
316
|
options: {
|
|
318
317
|
...args.options,
|
|
319
|
-
onResponse: callback
|
|
320
|
-
}
|
|
318
|
+
onResponse: callback,
|
|
319
|
+
},
|
|
321
320
|
};
|
|
322
321
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
323
322
|
return {
|
|
@@ -325,8 +324,8 @@ export class PrivateEndpointConnectionsImpl
|
|
|
325
324
|
rawResponse: {
|
|
326
325
|
statusCode: currentRawResponse!.status,
|
|
327
326
|
body: currentRawResponse!.parsedBody,
|
|
328
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
329
|
-
}
|
|
327
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
328
|
+
},
|
|
330
329
|
};
|
|
331
330
|
};
|
|
332
331
|
|
|
@@ -336,14 +335,14 @@ export class PrivateEndpointConnectionsImpl
|
|
|
336
335
|
resourceGroupName,
|
|
337
336
|
clusterName,
|
|
338
337
|
privateEndpointConnectionName,
|
|
339
|
-
options
|
|
338
|
+
options,
|
|
340
339
|
},
|
|
341
|
-
spec: deleteOperationSpec
|
|
340
|
+
spec: deleteOperationSpec,
|
|
342
341
|
});
|
|
343
342
|
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
|
|
344
343
|
restoreFrom: options?.resumeFrom,
|
|
345
344
|
intervalInMs: options?.updateIntervalInMs,
|
|
346
|
-
resourceLocationConfig: "azure-async-operation"
|
|
345
|
+
resourceLocationConfig: "azure-async-operation",
|
|
347
346
|
});
|
|
348
347
|
await poller.poll();
|
|
349
348
|
return poller;
|
|
@@ -360,13 +359,13 @@ export class PrivateEndpointConnectionsImpl
|
|
|
360
359
|
resourceGroupName: string,
|
|
361
360
|
clusterName: string,
|
|
362
361
|
privateEndpointConnectionName: string,
|
|
363
|
-
options?: PrivateEndpointConnectionsDeleteOptionalParams
|
|
362
|
+
options?: PrivateEndpointConnectionsDeleteOptionalParams,
|
|
364
363
|
): Promise<void> {
|
|
365
364
|
const poller = await this.beginDelete(
|
|
366
365
|
resourceGroupName,
|
|
367
366
|
clusterName,
|
|
368
367
|
privateEndpointConnectionName,
|
|
369
|
-
options
|
|
368
|
+
options,
|
|
370
369
|
);
|
|
371
370
|
return poller.pollUntilDone();
|
|
372
371
|
}
|
|
@@ -382,11 +381,11 @@ export class PrivateEndpointConnectionsImpl
|
|
|
382
381
|
resourceGroupName: string,
|
|
383
382
|
clusterName: string,
|
|
384
383
|
nextLink: string,
|
|
385
|
-
options?: PrivateEndpointConnectionsListByClusterNextOptionalParams
|
|
384
|
+
options?: PrivateEndpointConnectionsListByClusterNextOptionalParams,
|
|
386
385
|
): Promise<PrivateEndpointConnectionsListByClusterNextResponse> {
|
|
387
386
|
return this.client.sendOperationRequest(
|
|
388
387
|
{ resourceGroupName, clusterName, nextLink, options },
|
|
389
|
-
listByClusterNextOperationSpec
|
|
388
|
+
listByClusterNextOperationSpec,
|
|
390
389
|
);
|
|
391
390
|
}
|
|
392
391
|
}
|
|
@@ -394,47 +393,45 @@ export class PrivateEndpointConnectionsImpl
|
|
|
394
393
|
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
395
394
|
|
|
396
395
|
const listByClusterOperationSpec: coreClient.OperationSpec = {
|
|
397
|
-
path:
|
|
398
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/privateEndpointConnections",
|
|
396
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/privateEndpointConnections",
|
|
399
397
|
httpMethod: "GET",
|
|
400
398
|
responses: {
|
|
401
399
|
200: {
|
|
402
|
-
bodyMapper: Mappers.PrivateEndpointConnectionListResult
|
|
400
|
+
bodyMapper: Mappers.PrivateEndpointConnectionListResult,
|
|
403
401
|
},
|
|
404
402
|
default: {
|
|
405
|
-
bodyMapper: Mappers.ErrorResponse
|
|
406
|
-
}
|
|
403
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
404
|
+
},
|
|
407
405
|
},
|
|
408
406
|
queryParameters: [Parameters.apiVersion],
|
|
409
407
|
urlParameters: [
|
|
410
408
|
Parameters.$host,
|
|
411
409
|
Parameters.subscriptionId,
|
|
412
410
|
Parameters.resourceGroupName,
|
|
413
|
-
Parameters.clusterName
|
|
411
|
+
Parameters.clusterName,
|
|
414
412
|
],
|
|
415
413
|
headerParameters: [Parameters.accept],
|
|
416
|
-
serializer
|
|
414
|
+
serializer,
|
|
417
415
|
};
|
|
418
416
|
const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
419
|
-
path:
|
|
420
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
417
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
421
418
|
httpMethod: "PUT",
|
|
422
419
|
responses: {
|
|
423
420
|
200: {
|
|
424
|
-
bodyMapper: Mappers.PrivateEndpointConnection
|
|
421
|
+
bodyMapper: Mappers.PrivateEndpointConnection,
|
|
425
422
|
},
|
|
426
423
|
201: {
|
|
427
|
-
bodyMapper: Mappers.PrivateEndpointConnection
|
|
424
|
+
bodyMapper: Mappers.PrivateEndpointConnection,
|
|
428
425
|
},
|
|
429
426
|
202: {
|
|
430
|
-
bodyMapper: Mappers.PrivateEndpointConnection
|
|
427
|
+
bodyMapper: Mappers.PrivateEndpointConnection,
|
|
431
428
|
},
|
|
432
429
|
204: {
|
|
433
|
-
bodyMapper: Mappers.PrivateEndpointConnection
|
|
430
|
+
bodyMapper: Mappers.PrivateEndpointConnection,
|
|
434
431
|
},
|
|
435
432
|
default: {
|
|
436
|
-
bodyMapper: Mappers.ErrorResponse
|
|
437
|
-
}
|
|
433
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
434
|
+
},
|
|
438
435
|
},
|
|
439
436
|
requestBody: Parameters.parameters15,
|
|
440
437
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -443,23 +440,22 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
|
443
440
|
Parameters.subscriptionId,
|
|
444
441
|
Parameters.resourceGroupName,
|
|
445
442
|
Parameters.clusterName,
|
|
446
|
-
Parameters.privateEndpointConnectionName
|
|
443
|
+
Parameters.privateEndpointConnectionName,
|
|
447
444
|
],
|
|
448
445
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
449
446
|
mediaType: "json",
|
|
450
|
-
serializer
|
|
447
|
+
serializer,
|
|
451
448
|
};
|
|
452
449
|
const getOperationSpec: coreClient.OperationSpec = {
|
|
453
|
-
path:
|
|
454
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
450
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
455
451
|
httpMethod: "GET",
|
|
456
452
|
responses: {
|
|
457
453
|
200: {
|
|
458
|
-
bodyMapper: Mappers.PrivateEndpointConnection
|
|
454
|
+
bodyMapper: Mappers.PrivateEndpointConnection,
|
|
459
455
|
},
|
|
460
456
|
default: {
|
|
461
|
-
bodyMapper: Mappers.ErrorResponse
|
|
462
|
-
}
|
|
457
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
458
|
+
},
|
|
463
459
|
},
|
|
464
460
|
queryParameters: [Parameters.apiVersion],
|
|
465
461
|
urlParameters: [
|
|
@@ -467,14 +463,13 @@ const getOperationSpec: coreClient.OperationSpec = {
|
|
|
467
463
|
Parameters.subscriptionId,
|
|
468
464
|
Parameters.resourceGroupName,
|
|
469
465
|
Parameters.clusterName,
|
|
470
|
-
Parameters.privateEndpointConnectionName
|
|
466
|
+
Parameters.privateEndpointConnectionName,
|
|
471
467
|
],
|
|
472
468
|
headerParameters: [Parameters.accept],
|
|
473
|
-
serializer
|
|
469
|
+
serializer,
|
|
474
470
|
};
|
|
475
471
|
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
476
|
-
path:
|
|
477
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
472
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
478
473
|
httpMethod: "DELETE",
|
|
479
474
|
responses: {
|
|
480
475
|
200: {},
|
|
@@ -482,8 +477,8 @@ const deleteOperationSpec: coreClient.OperationSpec = {
|
|
|
482
477
|
202: {},
|
|
483
478
|
204: {},
|
|
484
479
|
default: {
|
|
485
|
-
bodyMapper: Mappers.ErrorResponse
|
|
486
|
-
}
|
|
480
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
481
|
+
},
|
|
487
482
|
},
|
|
488
483
|
queryParameters: [Parameters.apiVersion],
|
|
489
484
|
urlParameters: [
|
|
@@ -491,29 +486,29 @@ const deleteOperationSpec: coreClient.OperationSpec = {
|
|
|
491
486
|
Parameters.subscriptionId,
|
|
492
487
|
Parameters.resourceGroupName,
|
|
493
488
|
Parameters.clusterName,
|
|
494
|
-
Parameters.privateEndpointConnectionName
|
|
489
|
+
Parameters.privateEndpointConnectionName,
|
|
495
490
|
],
|
|
496
491
|
headerParameters: [Parameters.accept],
|
|
497
|
-
serializer
|
|
492
|
+
serializer,
|
|
498
493
|
};
|
|
499
494
|
const listByClusterNextOperationSpec: coreClient.OperationSpec = {
|
|
500
495
|
path: "{nextLink}",
|
|
501
496
|
httpMethod: "GET",
|
|
502
497
|
responses: {
|
|
503
498
|
200: {
|
|
504
|
-
bodyMapper: Mappers.PrivateEndpointConnectionListResult
|
|
499
|
+
bodyMapper: Mappers.PrivateEndpointConnectionListResult,
|
|
505
500
|
},
|
|
506
501
|
default: {
|
|
507
|
-
bodyMapper: Mappers.ErrorResponse
|
|
508
|
-
}
|
|
502
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
503
|
+
},
|
|
509
504
|
},
|
|
510
505
|
urlParameters: [
|
|
511
506
|
Parameters.$host,
|
|
512
507
|
Parameters.subscriptionId,
|
|
513
508
|
Parameters.resourceGroupName,
|
|
514
509
|
Parameters.clusterName,
|
|
515
|
-
Parameters.nextLink
|
|
510
|
+
Parameters.nextLink,
|
|
516
511
|
],
|
|
517
512
|
headerParameters: [Parameters.accept],
|
|
518
|
-
serializer
|
|
513
|
+
serializer,
|
|
519
514
|
};
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
PrivateLinkResourcesListByClusterOptionalParams,
|
|
16
16
|
PrivateLinkResourcesListByClusterResponse,
|
|
17
17
|
PrivateLinkResourcesGetOptionalParams,
|
|
18
|
-
PrivateLinkResourcesGetResponse
|
|
18
|
+
PrivateLinkResourcesGetResponse,
|
|
19
19
|
} from "../models";
|
|
20
20
|
|
|
21
21
|
/** Class containing PrivateLinkResources operations. */
|
|
@@ -39,11 +39,11 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources {
|
|
|
39
39
|
listByCluster(
|
|
40
40
|
resourceGroupName: string,
|
|
41
41
|
clusterName: string,
|
|
42
|
-
options?: PrivateLinkResourcesListByClusterOptionalParams
|
|
42
|
+
options?: PrivateLinkResourcesListByClusterOptionalParams,
|
|
43
43
|
): Promise<PrivateLinkResourcesListByClusterResponse> {
|
|
44
44
|
return this.client.sendOperationRequest(
|
|
45
45
|
{ resourceGroupName, clusterName, options },
|
|
46
|
-
listByClusterOperationSpec
|
|
46
|
+
listByClusterOperationSpec,
|
|
47
47
|
);
|
|
48
48
|
}
|
|
49
49
|
|
|
@@ -58,11 +58,11 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources {
|
|
|
58
58
|
resourceGroupName: string,
|
|
59
59
|
clusterName: string,
|
|
60
60
|
privateLinkResourceName: string,
|
|
61
|
-
options?: PrivateLinkResourcesGetOptionalParams
|
|
61
|
+
options?: PrivateLinkResourcesGetOptionalParams,
|
|
62
62
|
): Promise<PrivateLinkResourcesGetResponse> {
|
|
63
63
|
return this.client.sendOperationRequest(
|
|
64
64
|
{ resourceGroupName, clusterName, privateLinkResourceName, options },
|
|
65
|
-
getOperationSpec
|
|
65
|
+
getOperationSpec,
|
|
66
66
|
);
|
|
67
67
|
}
|
|
68
68
|
}
|
|
@@ -70,38 +70,36 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources {
|
|
|
70
70
|
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
71
71
|
|
|
72
72
|
const listByClusterOperationSpec: coreClient.OperationSpec = {
|
|
73
|
-
path:
|
|
74
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/privateLinkResources",
|
|
73
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/privateLinkResources",
|
|
75
74
|
httpMethod: "GET",
|
|
76
75
|
responses: {
|
|
77
76
|
200: {
|
|
78
|
-
bodyMapper: Mappers.PrivateLinkResourceListResult
|
|
77
|
+
bodyMapper: Mappers.PrivateLinkResourceListResult,
|
|
79
78
|
},
|
|
80
79
|
default: {
|
|
81
|
-
bodyMapper: Mappers.ErrorResponse
|
|
82
|
-
}
|
|
80
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
81
|
+
},
|
|
83
82
|
},
|
|
84
83
|
queryParameters: [Parameters.apiVersion],
|
|
85
84
|
urlParameters: [
|
|
86
85
|
Parameters.$host,
|
|
87
86
|
Parameters.subscriptionId,
|
|
88
87
|
Parameters.resourceGroupName,
|
|
89
|
-
Parameters.clusterName
|
|
88
|
+
Parameters.clusterName,
|
|
90
89
|
],
|
|
91
90
|
headerParameters: [Parameters.accept],
|
|
92
|
-
serializer
|
|
91
|
+
serializer,
|
|
93
92
|
};
|
|
94
93
|
const getOperationSpec: coreClient.OperationSpec = {
|
|
95
|
-
path:
|
|
96
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/privateLinkResources/{privateLinkResourceName}",
|
|
94
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/privateLinkResources/{privateLinkResourceName}",
|
|
97
95
|
httpMethod: "GET",
|
|
98
96
|
responses: {
|
|
99
97
|
200: {
|
|
100
|
-
bodyMapper: Mappers.PrivateLinkResource
|
|
98
|
+
bodyMapper: Mappers.PrivateLinkResource,
|
|
101
99
|
},
|
|
102
100
|
default: {
|
|
103
|
-
bodyMapper: Mappers.ErrorResponse
|
|
104
|
-
}
|
|
101
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
102
|
+
},
|
|
105
103
|
},
|
|
106
104
|
queryParameters: [Parameters.apiVersion],
|
|
107
105
|
urlParameters: [
|
|
@@ -109,8 +107,8 @@ const getOperationSpec: coreClient.OperationSpec = {
|
|
|
109
107
|
Parameters.subscriptionId,
|
|
110
108
|
Parameters.resourceGroupName,
|
|
111
109
|
Parameters.clusterName,
|
|
112
|
-
Parameters.privateLinkResourceName
|
|
110
|
+
Parameters.privateLinkResourceName,
|
|
113
111
|
],
|
|
114
112
|
headerParameters: [Parameters.accept],
|
|
115
|
-
serializer
|
|
113
|
+
serializer,
|
|
116
114
|
};
|