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