@azure/arm-kusto 6.2.0 → 7.0.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 +11 -0
- package/LICENSE +21 -0
- package/README.md +69 -83
- package/dist/index.js +8198 -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/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +12 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/kustoManagementClient.d.ts +30 -0
- package/dist-esm/src/kustoManagementClient.d.ts.map +1 -0
- package/dist-esm/src/kustoManagementClient.js +63 -0
- package/dist-esm/src/kustoManagementClient.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 +2023 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +256 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +89 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +1710 -1269
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +46 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +308 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/attachedDatabaseConfigurations.d.ts +81 -0
- package/dist-esm/src/operations/attachedDatabaseConfigurations.d.ts.map +1 -0
- package/dist-esm/src/operations/attachedDatabaseConfigurations.js +342 -0
- package/dist-esm/src/operations/attachedDatabaseConfigurations.js.map +1 -0
- package/dist-esm/src/operations/clusterPrincipalAssignments.d.ts +81 -0
- package/dist-esm/src/operations/clusterPrincipalAssignments.d.ts.map +1 -0
- package/dist-esm/src/operations/clusterPrincipalAssignments.js +332 -0
- package/dist-esm/src/operations/clusterPrincipalAssignments.js.map +1 -0
- package/dist-esm/src/operations/clusters.d.ts +276 -0
- package/dist-esm/src/operations/clusters.d.ts.map +1 -0
- package/dist-esm/src/operations/clusters.js +1317 -0
- package/dist-esm/src/operations/clusters.js.map +1 -0
- package/dist-esm/src/operations/dataConnections.d.ts +127 -0
- package/dist-esm/src/operations/dataConnections.d.ts.map +1 -0
- package/dist-esm/src/operations/dataConnections.js +547 -0
- package/dist-esm/src/operations/dataConnections.js.map +1 -0
- package/dist-esm/src/operations/databasePrincipalAssignments.d.ts +89 -0
- package/dist-esm/src/operations/databasePrincipalAssignments.d.ts.map +1 -0
- package/dist-esm/src/operations/databasePrincipalAssignments.js +364 -0
- package/dist-esm/src/operations/databasePrincipalAssignments.js.map +1 -0
- package/dist-esm/src/operations/databases.d.ts +135 -0
- package/dist-esm/src/operations/databases.d.ts.map +1 -0
- package/dist-esm/src/operations/databases.js +571 -0
- package/dist-esm/src/operations/databases.js.map +1 -0
- package/{esm → dist-esm/src}/operations/index.d.ts +4 -1
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/dist-esm/src/operations/index.js +20 -0
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/managedPrivateEndpoints.d.ts +99 -0
- package/dist-esm/src/operations/managedPrivateEndpoints.d.ts.map +1 -0
- package/dist-esm/src/operations/managedPrivateEndpoints.js +424 -0
- package/dist-esm/src/operations/managedPrivateEndpoints.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/operationsResults.d.ts +20 -0
- package/dist-esm/src/operations/operationsResults.d.ts.map +1 -0
- package/dist-esm/src/operations/operationsResults.js +53 -0
- package/dist-esm/src/operations/operationsResults.js.map +1 -0
- package/dist-esm/src/operations/privateEndpointConnections.d.ts +73 -0
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -0
- package/dist-esm/src/operations/privateEndpointConnections.js +309 -0
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -0
- package/dist-esm/src/operations/privateLinkResources.d.ts +38 -0
- package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -0
- package/dist-esm/src/operations/privateLinkResources.js +131 -0
- package/dist-esm/src/operations/privateLinkResources.js.map +1 -0
- package/dist-esm/src/operations/scripts.d.ts +109 -0
- package/dist-esm/src/operations/scripts.d.ts.map +1 -0
- package/dist-esm/src/operations/scripts.js +442 -0
- package/dist-esm/src/operations/scripts.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/attachedDatabaseConfigurations.d.ts +64 -0
- package/dist-esm/src/operationsInterfaces/attachedDatabaseConfigurations.d.ts.map +1 -0
- package/{src/models/operationsResultsMappers.ts → dist-esm/src/operationsInterfaces/attachedDatabaseConfigurations.js} +2 -2
- package/dist-esm/src/operationsInterfaces/attachedDatabaseConfigurations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/clusterPrincipalAssignments.d.ts +64 -0
- package/dist-esm/src/operationsInterfaces/clusterPrincipalAssignments.d.ts.map +1 -0
- package/{src/models/operationsMappers.ts → dist-esm/src/operationsInterfaces/clusterPrincipalAssignments.js} +2 -8
- package/dist-esm/src/operationsInterfaces/clusterPrincipalAssignments.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/clusters.d.ts +201 -0
- package/dist-esm/src/operationsInterfaces/clusters.d.ts.map +1 -0
- package/{esm/models/operationsResultsMappers.js → dist-esm/src/operationsInterfaces/clusters.js} +2 -2
- package/dist-esm/src/operationsInterfaces/clusters.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/dataConnections.d.ts +109 -0
- package/dist-esm/src/operationsInterfaces/dataConnections.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/dataConnections.js +9 -0
- package/dist-esm/src/operationsInterfaces/dataConnections.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/databasePrincipalAssignments.d.ts +71 -0
- package/dist-esm/src/operationsInterfaces/databasePrincipalAssignments.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/databasePrincipalAssignments.js +9 -0
- package/dist-esm/src/operationsInterfaces/databasePrincipalAssignments.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/databases.d.ts +108 -0
- package/dist-esm/src/operationsInterfaces/databases.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/databases.js +9 -0
- package/dist-esm/src/operationsInterfaces/databases.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +13 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +20 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/managedPrivateEndpoints.d.ts +82 -0
- package/dist-esm/src/operationsInterfaces/managedPrivateEndpoints.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/managedPrivateEndpoints.js +9 -0
- package/dist-esm/src/operationsInterfaces/managedPrivateEndpoints.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/operationsResults.d.ts +12 -0
- package/dist-esm/src/operationsInterfaces/operationsResults.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operationsResults.js +9 -0
- package/dist-esm/src/operationsInterfaces/operationsResults.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 +21 -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/scripts.d.ts +91 -0
- package/dist-esm/src/operationsInterfaces/scripts.d.ts.map +1 -0
- package/{esm/models/index.js → dist-esm/src/operationsInterfaces/scripts.js} +2 -1
- package/dist-esm/src/operationsInterfaces/scripts.js.map +1 -0
- package/dist-esm/test/kusto-client-test.d.ts +4 -0
- package/dist-esm/test/kusto-client-test.d.ts.map +1 -0
- package/dist-esm/test/kusto-client-test.js +117 -0
- package/dist-esm/test/kusto-client-test.js.map +1 -0
- package/package.json +65 -22
- package/review/arm-kusto.api.md +1798 -0
- package/rollup.config.js +181 -24
- package/{esm/models/operationsMappers.js → src/index.ts} +5 -2
- package/src/kustoManagementClient.ts +112 -49
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +1853 -2535
- package/src/models/mappers.ts +1798 -1302
- package/src/models/parameters.ts +264 -44
- package/src/operations/attachedDatabaseConfigurations.ts +314 -177
- package/src/operations/clusterPrincipalAssignments.ts +300 -264
- package/src/operations/clusters.ts +1396 -724
- package/src/operations/dataConnections.ts +499 -363
- package/src/operations/databasePrincipalAssignments.ts +326 -281
- package/src/operations/databases.ts +538 -517
- package/src/operations/index.ts +5 -3
- package/src/operations/managedPrivateEndpoints.ts +599 -0
- package/src/operations/operations.ts +85 -85
- package/src/operations/operationsResults.ts +34 -60
- package/src/operations/privateEndpointConnections.ts +427 -0
- package/src/operations/privateLinkResources.ts +167 -0
- package/src/operations/scripts.ts +408 -334
- package/src/operationsInterfaces/attachedDatabaseConfigurations.ts +125 -0
- package/src/operationsInterfaces/clusterPrincipalAssignments.ts +125 -0
- package/src/operationsInterfaces/clusters.ts +371 -0
- package/src/operationsInterfaces/dataConnections.ts +218 -0
- package/src/operationsInterfaces/databasePrincipalAssignments.ts +139 -0
- package/src/operationsInterfaces/databases.ts +212 -0
- package/{esm/operations/index.js → src/operationsInterfaces/index.ts} +6 -4
- package/src/operationsInterfaces/managedPrivateEndpoints.ts +162 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/operationsResults.ts +27 -0
- package/src/operationsInterfaces/privateEndpointConnections.ts +109 -0
- package/src/operationsInterfaces/privateLinkResources.ts +44 -0
- package/src/operationsInterfaces/scripts.ts +177 -0
- package/tsconfig.json +14 -6
- package/types/arm-kusto.d.ts +3174 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-kusto.js +0 -5320
- package/dist/arm-kusto.js.map +0 -1
- package/dist/arm-kusto.min.js +0 -1
- package/dist/arm-kusto.min.js.map +0 -1
- package/esm/kustoManagementClient.d.ts +0 -33
- package/esm/kustoManagementClient.d.ts.map +0 -1
- package/esm/kustoManagementClient.js +0 -46
- package/esm/kustoManagementClient.js.map +0 -1
- package/esm/kustoManagementClientContext.d.ts +0 -23
- package/esm/kustoManagementClientContext.d.ts.map +0 -1
- package/esm/kustoManagementClientContext.js +0 -62
- package/esm/kustoManagementClientContext.js.map +0 -1
- package/esm/models/attachedDatabaseConfigurationsMappers.d.ts +0 -2
- package/esm/models/attachedDatabaseConfigurationsMappers.d.ts.map +0 -1
- package/esm/models/attachedDatabaseConfigurationsMappers.js +0 -9
- package/esm/models/attachedDatabaseConfigurationsMappers.js.map +0 -1
- package/esm/models/clusterPrincipalAssignmentsMappers.d.ts +0 -2
- package/esm/models/clusterPrincipalAssignmentsMappers.d.ts.map +0 -1
- package/esm/models/clusterPrincipalAssignmentsMappers.js +0 -9
- package/esm/models/clusterPrincipalAssignmentsMappers.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/dataConnectionsMappers.d.ts +0 -2
- package/esm/models/dataConnectionsMappers.d.ts.map +0 -1
- package/esm/models/dataConnectionsMappers.js +0 -9
- package/esm/models/dataConnectionsMappers.js.map +0 -1
- package/esm/models/databasePrincipalAssignmentsMappers.d.ts +0 -2
- package/esm/models/databasePrincipalAssignmentsMappers.d.ts.map +0 -1
- package/esm/models/databasePrincipalAssignmentsMappers.js +0 -9
- package/esm/models/databasePrincipalAssignmentsMappers.js.map +0 -1
- package/esm/models/databasesMappers.d.ts +0 -2
- package/esm/models/databasesMappers.d.ts.map +0 -1
- package/esm/models/databasesMappers.js +0 -9
- package/esm/models/databasesMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -2705
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -75
- 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.map +0 -1
- package/esm/models/operationsResultsMappers.d.ts +0 -2
- package/esm/models/operationsResultsMappers.d.ts.map +0 -1
- package/esm/models/operationsResultsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -17
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -158
- package/esm/models/parameters.js.map +0 -1
- package/esm/models/scriptsMappers.d.ts +0 -2
- package/esm/models/scriptsMappers.d.ts.map +0 -1
- package/esm/models/scriptsMappers.js +0 -9
- package/esm/models/scriptsMappers.js.map +0 -1
- package/esm/operations/attachedDatabaseConfigurations.d.ts +0 -97
- package/esm/operations/attachedDatabaseConfigurations.d.ts.map +0 -1
- package/esm/operations/attachedDatabaseConfigurations.js +0 -188
- package/esm/operations/attachedDatabaseConfigurations.js.map +0 -1
- package/esm/operations/clusterPrincipalAssignments.d.ts +0 -121
- package/esm/operations/clusterPrincipalAssignments.d.ts.map +0 -1
- package/esm/operations/clusterPrincipalAssignments.js +0 -213
- package/esm/operations/clusterPrincipalAssignments.js.map +0 -1
- package/esm/operations/clusters.d.ts +0 -323
- package/esm/operations/clusters.d.ts.map +0 -1
- package/esm/operations/clusters.js +0 -620
- package/esm/operations/clusters.js.map +0 -1
- package/esm/operations/dataConnections.d.ts +0 -176
- package/esm/operations/dataConnections.d.ts.map +0 -1
- package/esm/operations/dataConnections.js +0 -359
- package/esm/operations/dataConnections.js.map +0 -1
- package/esm/operations/databasePrincipalAssignments.d.ts +0 -134
- package/esm/operations/databasePrincipalAssignments.d.ts.map +0 -1
- package/esm/operations/databasePrincipalAssignments.js +0 -235
- package/esm/operations/databasePrincipalAssignments.js.map +0 -1
- package/esm/operations/databases.d.ts +0 -219
- package/esm/operations/databases.d.ts.map +0 -1
- package/esm/operations/databases.js +0 -374
- package/esm/operations/databases.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.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 -69
- package/esm/operations/operations.js.map +0 -1
- package/esm/operations/operationsResults.d.ts +0 -34
- package/esm/operations/operationsResults.d.ts.map +0 -1
- package/esm/operations/operationsResults.js +0 -49
- package/esm/operations/operationsResults.js.map +0 -1
- package/esm/operations/scripts.d.ts +0 -156
- package/esm/operations/scripts.d.ts.map +0 -1
- package/esm/operations/scripts.js +0 -300
- package/esm/operations/scripts.js.map +0 -1
- package/src/kustoManagementClientContext.ts +0 -75
- package/src/models/attachedDatabaseConfigurationsMappers.ts +0 -43
- package/src/models/clusterPrincipalAssignmentsMappers.ts +0 -45
- package/src/models/clustersMappers.ts +0 -54
- package/src/models/dataConnectionsMappers.ts +0 -48
- package/src/models/databasePrincipalAssignmentsMappers.ts +0 -45
- package/src/models/databasesMappers.ts +0 -48
- package/src/models/scriptsMappers.ts +0 -45
|
@@ -0,0 +1,427 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
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";
|
|
13
|
+
import * as Parameters from "../models/parameters";
|
|
14
|
+
import { KustoManagementClient } from "../kustoManagementClient";
|
|
15
|
+
import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
|
|
16
|
+
import { LroImpl } from "../lroImpl";
|
|
17
|
+
import {
|
|
18
|
+
PrivateEndpointConnection,
|
|
19
|
+
PrivateEndpointConnectionsListOptionalParams,
|
|
20
|
+
PrivateEndpointConnectionsListResponse,
|
|
21
|
+
PrivateEndpointConnectionsGetOptionalParams,
|
|
22
|
+
PrivateEndpointConnectionsGetResponse,
|
|
23
|
+
PrivateEndpointConnectionsCreateOrUpdateOptionalParams,
|
|
24
|
+
PrivateEndpointConnectionsCreateOrUpdateResponse,
|
|
25
|
+
PrivateEndpointConnectionsDeleteOptionalParams
|
|
26
|
+
} from "../models";
|
|
27
|
+
|
|
28
|
+
/// <reference lib="esnext.asynciterable" />
|
|
29
|
+
/** Class containing PrivateEndpointConnections operations. */
|
|
30
|
+
export class PrivateEndpointConnectionsImpl
|
|
31
|
+
implements PrivateEndpointConnections {
|
|
32
|
+
private readonly client: KustoManagementClient;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Initialize a new instance of the class PrivateEndpointConnections class.
|
|
36
|
+
* @param client Reference to the service client
|
|
37
|
+
*/
|
|
38
|
+
constructor(client: KustoManagementClient) {
|
|
39
|
+
this.client = client;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Returns the list of private endpoint connections.
|
|
44
|
+
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
45
|
+
* @param clusterName The name of the Kusto cluster.
|
|
46
|
+
* @param options The options parameters.
|
|
47
|
+
*/
|
|
48
|
+
public list(
|
|
49
|
+
resourceGroupName: string,
|
|
50
|
+
clusterName: string,
|
|
51
|
+
options?: PrivateEndpointConnectionsListOptionalParams
|
|
52
|
+
): PagedAsyncIterableIterator<PrivateEndpointConnection> {
|
|
53
|
+
const iter = this.listPagingAll(resourceGroupName, clusterName, options);
|
|
54
|
+
return {
|
|
55
|
+
next() {
|
|
56
|
+
return iter.next();
|
|
57
|
+
},
|
|
58
|
+
[Symbol.asyncIterator]() {
|
|
59
|
+
return this;
|
|
60
|
+
},
|
|
61
|
+
byPage: () => {
|
|
62
|
+
return this.listPagingPage(resourceGroupName, clusterName, options);
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
private async *listPagingPage(
|
|
68
|
+
resourceGroupName: string,
|
|
69
|
+
clusterName: string,
|
|
70
|
+
options?: PrivateEndpointConnectionsListOptionalParams
|
|
71
|
+
): AsyncIterableIterator<PrivateEndpointConnection[]> {
|
|
72
|
+
let result = await this._list(resourceGroupName, clusterName, options);
|
|
73
|
+
yield result.value || [];
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
private async *listPagingAll(
|
|
77
|
+
resourceGroupName: string,
|
|
78
|
+
clusterName: string,
|
|
79
|
+
options?: PrivateEndpointConnectionsListOptionalParams
|
|
80
|
+
): AsyncIterableIterator<PrivateEndpointConnection> {
|
|
81
|
+
for await (const page of this.listPagingPage(
|
|
82
|
+
resourceGroupName,
|
|
83
|
+
clusterName,
|
|
84
|
+
options
|
|
85
|
+
)) {
|
|
86
|
+
yield* page;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Returns the list of private endpoint connections.
|
|
92
|
+
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
93
|
+
* @param clusterName The name of the Kusto cluster.
|
|
94
|
+
* @param options The options parameters.
|
|
95
|
+
*/
|
|
96
|
+
private _list(
|
|
97
|
+
resourceGroupName: string,
|
|
98
|
+
clusterName: string,
|
|
99
|
+
options?: PrivateEndpointConnectionsListOptionalParams
|
|
100
|
+
): Promise<PrivateEndpointConnectionsListResponse> {
|
|
101
|
+
return this.client.sendOperationRequest(
|
|
102
|
+
{ resourceGroupName, clusterName, options },
|
|
103
|
+
listOperationSpec
|
|
104
|
+
);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Gets a private endpoint connection.
|
|
109
|
+
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
110
|
+
* @param clusterName The name of the Kusto cluster.
|
|
111
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection.
|
|
112
|
+
* @param options The options parameters.
|
|
113
|
+
*/
|
|
114
|
+
get(
|
|
115
|
+
resourceGroupName: string,
|
|
116
|
+
clusterName: string,
|
|
117
|
+
privateEndpointConnectionName: string,
|
|
118
|
+
options?: PrivateEndpointConnectionsGetOptionalParams
|
|
119
|
+
): Promise<PrivateEndpointConnectionsGetResponse> {
|
|
120
|
+
return this.client.sendOperationRequest(
|
|
121
|
+
{
|
|
122
|
+
resourceGroupName,
|
|
123
|
+
clusterName,
|
|
124
|
+
privateEndpointConnectionName,
|
|
125
|
+
options
|
|
126
|
+
},
|
|
127
|
+
getOperationSpec
|
|
128
|
+
);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Approve or reject a private endpoint connection with a given name.
|
|
133
|
+
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
134
|
+
* @param clusterName The name of the Kusto cluster.
|
|
135
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection.
|
|
136
|
+
* @param parameters A private endpoint connection
|
|
137
|
+
* @param options The options parameters.
|
|
138
|
+
*/
|
|
139
|
+
async beginCreateOrUpdate(
|
|
140
|
+
resourceGroupName: string,
|
|
141
|
+
clusterName: string,
|
|
142
|
+
privateEndpointConnectionName: string,
|
|
143
|
+
parameters: PrivateEndpointConnection,
|
|
144
|
+
options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams
|
|
145
|
+
): Promise<
|
|
146
|
+
PollerLike<
|
|
147
|
+
PollOperationState<PrivateEndpointConnectionsCreateOrUpdateResponse>,
|
|
148
|
+
PrivateEndpointConnectionsCreateOrUpdateResponse
|
|
149
|
+
>
|
|
150
|
+
> {
|
|
151
|
+
const directSendOperation = async (
|
|
152
|
+
args: coreClient.OperationArguments,
|
|
153
|
+
spec: coreClient.OperationSpec
|
|
154
|
+
): Promise<PrivateEndpointConnectionsCreateOrUpdateResponse> => {
|
|
155
|
+
return this.client.sendOperationRequest(args, spec);
|
|
156
|
+
};
|
|
157
|
+
const sendOperation = async (
|
|
158
|
+
args: coreClient.OperationArguments,
|
|
159
|
+
spec: coreClient.OperationSpec
|
|
160
|
+
) => {
|
|
161
|
+
let currentRawResponse:
|
|
162
|
+
| coreClient.FullOperationResponse
|
|
163
|
+
| undefined = undefined;
|
|
164
|
+
const providedCallback = args.options?.onResponse;
|
|
165
|
+
const callback: coreClient.RawResponseCallback = (
|
|
166
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
167
|
+
flatResponse: unknown
|
|
168
|
+
) => {
|
|
169
|
+
currentRawResponse = rawResponse;
|
|
170
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
171
|
+
};
|
|
172
|
+
const updatedArgs = {
|
|
173
|
+
...args,
|
|
174
|
+
options: {
|
|
175
|
+
...args.options,
|
|
176
|
+
onResponse: callback
|
|
177
|
+
}
|
|
178
|
+
};
|
|
179
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
180
|
+
return {
|
|
181
|
+
flatResponse,
|
|
182
|
+
rawResponse: {
|
|
183
|
+
statusCode: currentRawResponse!.status,
|
|
184
|
+
body: currentRawResponse!.parsedBody,
|
|
185
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
186
|
+
}
|
|
187
|
+
};
|
|
188
|
+
};
|
|
189
|
+
|
|
190
|
+
const lro = new LroImpl(
|
|
191
|
+
sendOperation,
|
|
192
|
+
{
|
|
193
|
+
resourceGroupName,
|
|
194
|
+
clusterName,
|
|
195
|
+
privateEndpointConnectionName,
|
|
196
|
+
parameters,
|
|
197
|
+
options
|
|
198
|
+
},
|
|
199
|
+
createOrUpdateOperationSpec
|
|
200
|
+
);
|
|
201
|
+
return new LroEngine(lro, {
|
|
202
|
+
resumeFrom: options?.resumeFrom,
|
|
203
|
+
intervalInMs: options?.updateIntervalInMs
|
|
204
|
+
});
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* Approve or reject a private endpoint connection with a given name.
|
|
209
|
+
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
210
|
+
* @param clusterName The name of the Kusto cluster.
|
|
211
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection.
|
|
212
|
+
* @param parameters A private endpoint connection
|
|
213
|
+
* @param options The options parameters.
|
|
214
|
+
*/
|
|
215
|
+
async beginCreateOrUpdateAndWait(
|
|
216
|
+
resourceGroupName: string,
|
|
217
|
+
clusterName: string,
|
|
218
|
+
privateEndpointConnectionName: string,
|
|
219
|
+
parameters: PrivateEndpointConnection,
|
|
220
|
+
options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams
|
|
221
|
+
): Promise<PrivateEndpointConnectionsCreateOrUpdateResponse> {
|
|
222
|
+
const poller = await this.beginCreateOrUpdate(
|
|
223
|
+
resourceGroupName,
|
|
224
|
+
clusterName,
|
|
225
|
+
privateEndpointConnectionName,
|
|
226
|
+
parameters,
|
|
227
|
+
options
|
|
228
|
+
);
|
|
229
|
+
return poller.pollUntilDone();
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* Deletes a private endpoint connection with a given name.
|
|
234
|
+
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
235
|
+
* @param clusterName The name of the Kusto cluster.
|
|
236
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection.
|
|
237
|
+
* @param options The options parameters.
|
|
238
|
+
*/
|
|
239
|
+
async beginDelete(
|
|
240
|
+
resourceGroupName: string,
|
|
241
|
+
clusterName: string,
|
|
242
|
+
privateEndpointConnectionName: string,
|
|
243
|
+
options?: PrivateEndpointConnectionsDeleteOptionalParams
|
|
244
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
245
|
+
const directSendOperation = async (
|
|
246
|
+
args: coreClient.OperationArguments,
|
|
247
|
+
spec: coreClient.OperationSpec
|
|
248
|
+
): Promise<void> => {
|
|
249
|
+
return this.client.sendOperationRequest(args, spec);
|
|
250
|
+
};
|
|
251
|
+
const sendOperation = async (
|
|
252
|
+
args: coreClient.OperationArguments,
|
|
253
|
+
spec: coreClient.OperationSpec
|
|
254
|
+
) => {
|
|
255
|
+
let currentRawResponse:
|
|
256
|
+
| coreClient.FullOperationResponse
|
|
257
|
+
| undefined = undefined;
|
|
258
|
+
const providedCallback = args.options?.onResponse;
|
|
259
|
+
const callback: coreClient.RawResponseCallback = (
|
|
260
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
261
|
+
flatResponse: unknown
|
|
262
|
+
) => {
|
|
263
|
+
currentRawResponse = rawResponse;
|
|
264
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
265
|
+
};
|
|
266
|
+
const updatedArgs = {
|
|
267
|
+
...args,
|
|
268
|
+
options: {
|
|
269
|
+
...args.options,
|
|
270
|
+
onResponse: callback
|
|
271
|
+
}
|
|
272
|
+
};
|
|
273
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
274
|
+
return {
|
|
275
|
+
flatResponse,
|
|
276
|
+
rawResponse: {
|
|
277
|
+
statusCode: currentRawResponse!.status,
|
|
278
|
+
body: currentRawResponse!.parsedBody,
|
|
279
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
280
|
+
}
|
|
281
|
+
};
|
|
282
|
+
};
|
|
283
|
+
|
|
284
|
+
const lro = new LroImpl(
|
|
285
|
+
sendOperation,
|
|
286
|
+
{
|
|
287
|
+
resourceGroupName,
|
|
288
|
+
clusterName,
|
|
289
|
+
privateEndpointConnectionName,
|
|
290
|
+
options
|
|
291
|
+
},
|
|
292
|
+
deleteOperationSpec
|
|
293
|
+
);
|
|
294
|
+
return new LroEngine(lro, {
|
|
295
|
+
resumeFrom: options?.resumeFrom,
|
|
296
|
+
intervalInMs: options?.updateIntervalInMs
|
|
297
|
+
});
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
/**
|
|
301
|
+
* Deletes a private endpoint connection with a given name.
|
|
302
|
+
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
303
|
+
* @param clusterName The name of the Kusto cluster.
|
|
304
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection.
|
|
305
|
+
* @param options The options parameters.
|
|
306
|
+
*/
|
|
307
|
+
async beginDeleteAndWait(
|
|
308
|
+
resourceGroupName: string,
|
|
309
|
+
clusterName: string,
|
|
310
|
+
privateEndpointConnectionName: string,
|
|
311
|
+
options?: PrivateEndpointConnectionsDeleteOptionalParams
|
|
312
|
+
): Promise<void> {
|
|
313
|
+
const poller = await this.beginDelete(
|
|
314
|
+
resourceGroupName,
|
|
315
|
+
clusterName,
|
|
316
|
+
privateEndpointConnectionName,
|
|
317
|
+
options
|
|
318
|
+
);
|
|
319
|
+
return poller.pollUntilDone();
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
// Operation Specifications
|
|
323
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
324
|
+
|
|
325
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
326
|
+
path:
|
|
327
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/privateEndpointConnections",
|
|
328
|
+
httpMethod: "GET",
|
|
329
|
+
responses: {
|
|
330
|
+
200: {
|
|
331
|
+
bodyMapper: Mappers.PrivateEndpointConnectionListResult
|
|
332
|
+
},
|
|
333
|
+
default: {
|
|
334
|
+
bodyMapper: Mappers.CloudError
|
|
335
|
+
}
|
|
336
|
+
},
|
|
337
|
+
queryParameters: [Parameters.apiVersion],
|
|
338
|
+
urlParameters: [
|
|
339
|
+
Parameters.$host,
|
|
340
|
+
Parameters.resourceGroupName,
|
|
341
|
+
Parameters.clusterName,
|
|
342
|
+
Parameters.subscriptionId
|
|
343
|
+
],
|
|
344
|
+
headerParameters: [Parameters.accept],
|
|
345
|
+
serializer
|
|
346
|
+
};
|
|
347
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
348
|
+
path:
|
|
349
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
350
|
+
httpMethod: "GET",
|
|
351
|
+
responses: {
|
|
352
|
+
200: {
|
|
353
|
+
bodyMapper: Mappers.PrivateEndpointConnection
|
|
354
|
+
},
|
|
355
|
+
default: {
|
|
356
|
+
bodyMapper: Mappers.CloudError
|
|
357
|
+
}
|
|
358
|
+
},
|
|
359
|
+
queryParameters: [Parameters.apiVersion],
|
|
360
|
+
urlParameters: [
|
|
361
|
+
Parameters.$host,
|
|
362
|
+
Parameters.resourceGroupName,
|
|
363
|
+
Parameters.clusterName,
|
|
364
|
+
Parameters.subscriptionId,
|
|
365
|
+
Parameters.privateEndpointConnectionName
|
|
366
|
+
],
|
|
367
|
+
headerParameters: [Parameters.accept],
|
|
368
|
+
serializer
|
|
369
|
+
};
|
|
370
|
+
const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
371
|
+
path:
|
|
372
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
373
|
+
httpMethod: "PUT",
|
|
374
|
+
responses: {
|
|
375
|
+
200: {
|
|
376
|
+
bodyMapper: Mappers.PrivateEndpointConnection
|
|
377
|
+
},
|
|
378
|
+
201: {
|
|
379
|
+
bodyMapper: Mappers.PrivateEndpointConnection
|
|
380
|
+
},
|
|
381
|
+
202: {
|
|
382
|
+
bodyMapper: Mappers.PrivateEndpointConnection
|
|
383
|
+
},
|
|
384
|
+
204: {
|
|
385
|
+
bodyMapper: Mappers.PrivateEndpointConnection
|
|
386
|
+
},
|
|
387
|
+
default: {
|
|
388
|
+
bodyMapper: Mappers.CloudError
|
|
389
|
+
}
|
|
390
|
+
},
|
|
391
|
+
requestBody: Parameters.parameters8,
|
|
392
|
+
queryParameters: [Parameters.apiVersion],
|
|
393
|
+
urlParameters: [
|
|
394
|
+
Parameters.$host,
|
|
395
|
+
Parameters.resourceGroupName,
|
|
396
|
+
Parameters.clusterName,
|
|
397
|
+
Parameters.subscriptionId,
|
|
398
|
+
Parameters.privateEndpointConnectionName
|
|
399
|
+
],
|
|
400
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
401
|
+
mediaType: "json",
|
|
402
|
+
serializer
|
|
403
|
+
};
|
|
404
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
405
|
+
path:
|
|
406
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
407
|
+
httpMethod: "DELETE",
|
|
408
|
+
responses: {
|
|
409
|
+
200: {},
|
|
410
|
+
201: {},
|
|
411
|
+
202: {},
|
|
412
|
+
204: {},
|
|
413
|
+
default: {
|
|
414
|
+
bodyMapper: Mappers.CloudError
|
|
415
|
+
}
|
|
416
|
+
},
|
|
417
|
+
queryParameters: [Parameters.apiVersion],
|
|
418
|
+
urlParameters: [
|
|
419
|
+
Parameters.$host,
|
|
420
|
+
Parameters.resourceGroupName,
|
|
421
|
+
Parameters.clusterName,
|
|
422
|
+
Parameters.subscriptionId,
|
|
423
|
+
Parameters.privateEndpointConnectionName
|
|
424
|
+
],
|
|
425
|
+
headerParameters: [Parameters.accept],
|
|
426
|
+
serializer
|
|
427
|
+
};
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { PrivateLinkResources } from "../operationsInterfaces";
|
|
11
|
+
import * as coreClient from "@azure/core-client";
|
|
12
|
+
import * as Mappers from "../models/mappers";
|
|
13
|
+
import * as Parameters from "../models/parameters";
|
|
14
|
+
import { KustoManagementClient } from "../kustoManagementClient";
|
|
15
|
+
import {
|
|
16
|
+
PrivateLinkResource,
|
|
17
|
+
PrivateLinkResourcesListOptionalParams,
|
|
18
|
+
PrivateLinkResourcesListResponse,
|
|
19
|
+
PrivateLinkResourcesGetOptionalParams,
|
|
20
|
+
PrivateLinkResourcesGetResponse
|
|
21
|
+
} from "../models";
|
|
22
|
+
|
|
23
|
+
/// <reference lib="esnext.asynciterable" />
|
|
24
|
+
/** Class containing PrivateLinkResources operations. */
|
|
25
|
+
export class PrivateLinkResourcesImpl implements PrivateLinkResources {
|
|
26
|
+
private readonly client: KustoManagementClient;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Initialize a new instance of the class PrivateLinkResources class.
|
|
30
|
+
* @param client Reference to the service client
|
|
31
|
+
*/
|
|
32
|
+
constructor(client: KustoManagementClient) {
|
|
33
|
+
this.client = client;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Returns the list of private link resources.
|
|
38
|
+
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
39
|
+
* @param clusterName The name of the Kusto cluster.
|
|
40
|
+
* @param options The options parameters.
|
|
41
|
+
*/
|
|
42
|
+
public list(
|
|
43
|
+
resourceGroupName: string,
|
|
44
|
+
clusterName: string,
|
|
45
|
+
options?: PrivateLinkResourcesListOptionalParams
|
|
46
|
+
): PagedAsyncIterableIterator<PrivateLinkResource> {
|
|
47
|
+
const iter = this.listPagingAll(resourceGroupName, clusterName, options);
|
|
48
|
+
return {
|
|
49
|
+
next() {
|
|
50
|
+
return iter.next();
|
|
51
|
+
},
|
|
52
|
+
[Symbol.asyncIterator]() {
|
|
53
|
+
return this;
|
|
54
|
+
},
|
|
55
|
+
byPage: () => {
|
|
56
|
+
return this.listPagingPage(resourceGroupName, clusterName, options);
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
private async *listPagingPage(
|
|
62
|
+
resourceGroupName: string,
|
|
63
|
+
clusterName: string,
|
|
64
|
+
options?: PrivateLinkResourcesListOptionalParams
|
|
65
|
+
): AsyncIterableIterator<PrivateLinkResource[]> {
|
|
66
|
+
let result = await this._list(resourceGroupName, clusterName, options);
|
|
67
|
+
yield result.value || [];
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
private async *listPagingAll(
|
|
71
|
+
resourceGroupName: string,
|
|
72
|
+
clusterName: string,
|
|
73
|
+
options?: PrivateLinkResourcesListOptionalParams
|
|
74
|
+
): AsyncIterableIterator<PrivateLinkResource> {
|
|
75
|
+
for await (const page of this.listPagingPage(
|
|
76
|
+
resourceGroupName,
|
|
77
|
+
clusterName,
|
|
78
|
+
options
|
|
79
|
+
)) {
|
|
80
|
+
yield* page;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Returns the list of private link resources.
|
|
86
|
+
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
87
|
+
* @param clusterName The name of the Kusto cluster.
|
|
88
|
+
* @param options The options parameters.
|
|
89
|
+
*/
|
|
90
|
+
private _list(
|
|
91
|
+
resourceGroupName: string,
|
|
92
|
+
clusterName: string,
|
|
93
|
+
options?: PrivateLinkResourcesListOptionalParams
|
|
94
|
+
): Promise<PrivateLinkResourcesListResponse> {
|
|
95
|
+
return this.client.sendOperationRequest(
|
|
96
|
+
{ resourceGroupName, clusterName, options },
|
|
97
|
+
listOperationSpec
|
|
98
|
+
);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Gets a private link resource.
|
|
103
|
+
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
104
|
+
* @param clusterName The name of the Kusto cluster.
|
|
105
|
+
* @param privateLinkResourceName The name of the private link resource.
|
|
106
|
+
* @param options The options parameters.
|
|
107
|
+
*/
|
|
108
|
+
get(
|
|
109
|
+
resourceGroupName: string,
|
|
110
|
+
clusterName: string,
|
|
111
|
+
privateLinkResourceName: string,
|
|
112
|
+
options?: PrivateLinkResourcesGetOptionalParams
|
|
113
|
+
): Promise<PrivateLinkResourcesGetResponse> {
|
|
114
|
+
return this.client.sendOperationRequest(
|
|
115
|
+
{ resourceGroupName, clusterName, privateLinkResourceName, options },
|
|
116
|
+
getOperationSpec
|
|
117
|
+
);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
// Operation Specifications
|
|
121
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
122
|
+
|
|
123
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
124
|
+
path:
|
|
125
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/privateLinkResources",
|
|
126
|
+
httpMethod: "GET",
|
|
127
|
+
responses: {
|
|
128
|
+
200: {
|
|
129
|
+
bodyMapper: Mappers.PrivateLinkResourceListResult
|
|
130
|
+
},
|
|
131
|
+
default: {
|
|
132
|
+
bodyMapper: Mappers.CloudError
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
queryParameters: [Parameters.apiVersion],
|
|
136
|
+
urlParameters: [
|
|
137
|
+
Parameters.$host,
|
|
138
|
+
Parameters.resourceGroupName,
|
|
139
|
+
Parameters.clusterName,
|
|
140
|
+
Parameters.subscriptionId
|
|
141
|
+
],
|
|
142
|
+
headerParameters: [Parameters.accept],
|
|
143
|
+
serializer
|
|
144
|
+
};
|
|
145
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
146
|
+
path:
|
|
147
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/privateLinkResources/{privateLinkResourceName}",
|
|
148
|
+
httpMethod: "GET",
|
|
149
|
+
responses: {
|
|
150
|
+
200: {
|
|
151
|
+
bodyMapper: Mappers.PrivateLinkResource
|
|
152
|
+
},
|
|
153
|
+
default: {
|
|
154
|
+
bodyMapper: Mappers.CloudError
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
queryParameters: [Parameters.apiVersion],
|
|
158
|
+
urlParameters: [
|
|
159
|
+
Parameters.$host,
|
|
160
|
+
Parameters.resourceGroupName,
|
|
161
|
+
Parameters.clusterName,
|
|
162
|
+
Parameters.subscriptionId,
|
|
163
|
+
Parameters.privateLinkResourceName
|
|
164
|
+
],
|
|
165
|
+
headerParameters: [Parameters.accept],
|
|
166
|
+
serializer
|
|
167
|
+
};
|