@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
|
@@ -3,26 +3,46 @@
|
|
|
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 { DataConnections } 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 { KustoManagementClient } from "../kustoManagementClient";
|
|
15
|
+
import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
|
|
16
|
+
import { LroImpl } from "../lroImpl";
|
|
17
|
+
import {
|
|
18
|
+
DataConnectionUnion,
|
|
19
|
+
DataConnectionsListByDatabaseOptionalParams,
|
|
20
|
+
DataConnectionsListByDatabaseResponse,
|
|
21
|
+
DataConnectionValidation,
|
|
22
|
+
DataConnectionsDataConnectionValidationOptionalParams,
|
|
23
|
+
DataConnectionsDataConnectionValidationResponse,
|
|
24
|
+
DataConnectionCheckNameRequest,
|
|
25
|
+
DataConnectionsCheckNameAvailabilityOptionalParams,
|
|
26
|
+
DataConnectionsCheckNameAvailabilityResponse,
|
|
27
|
+
DataConnectionsGetOptionalParams,
|
|
28
|
+
DataConnectionsGetResponse,
|
|
29
|
+
DataConnectionsCreateOrUpdateOptionalParams,
|
|
30
|
+
DataConnectionsCreateOrUpdateResponse,
|
|
31
|
+
DataConnectionsUpdateOptionalParams,
|
|
32
|
+
DataConnectionsUpdateResponse,
|
|
33
|
+
DataConnectionsDeleteOptionalParams
|
|
34
|
+
} from "../models";
|
|
16
35
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
36
|
+
/// <reference lib="esnext.asynciterable" />
|
|
37
|
+
/** Class containing DataConnections operations. */
|
|
38
|
+
export class DataConnectionsImpl implements DataConnections {
|
|
39
|
+
private readonly client: KustoManagementClient;
|
|
20
40
|
|
|
21
41
|
/**
|
|
22
|
-
*
|
|
23
|
-
* @param
|
|
42
|
+
* Initialize a new instance of the class DataConnections class.
|
|
43
|
+
* @param client Reference to the service client
|
|
24
44
|
*/
|
|
25
|
-
constructor(client:
|
|
45
|
+
constructor(client: KustoManagementClient) {
|
|
26
46
|
this.client = client;
|
|
27
47
|
}
|
|
28
48
|
|
|
@@ -31,58 +51,157 @@ export class DataConnections {
|
|
|
31
51
|
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
32
52
|
* @param clusterName The name of the Kusto cluster.
|
|
33
53
|
* @param databaseName The name of the database in the Kusto cluster.
|
|
34
|
-
* @param
|
|
35
|
-
* @returns Promise<Models.DataConnectionsListByDatabaseResponse>
|
|
54
|
+
* @param options The options parameters.
|
|
36
55
|
*/
|
|
37
|
-
listByDatabase(
|
|
56
|
+
public listByDatabase(
|
|
38
57
|
resourceGroupName: string,
|
|
39
58
|
clusterName: string,
|
|
40
59
|
databaseName: string,
|
|
41
|
-
options?:
|
|
42
|
-
):
|
|
60
|
+
options?: DataConnectionsListByDatabaseOptionalParams
|
|
61
|
+
): PagedAsyncIterableIterator<DataConnectionUnion> {
|
|
62
|
+
const iter = this.listByDatabasePagingAll(
|
|
63
|
+
resourceGroupName,
|
|
64
|
+
clusterName,
|
|
65
|
+
databaseName,
|
|
66
|
+
options
|
|
67
|
+
);
|
|
68
|
+
return {
|
|
69
|
+
next() {
|
|
70
|
+
return iter.next();
|
|
71
|
+
},
|
|
72
|
+
[Symbol.asyncIterator]() {
|
|
73
|
+
return this;
|
|
74
|
+
},
|
|
75
|
+
byPage: () => {
|
|
76
|
+
return this.listByDatabasePagingPage(
|
|
77
|
+
resourceGroupName,
|
|
78
|
+
clusterName,
|
|
79
|
+
databaseName,
|
|
80
|
+
options
|
|
81
|
+
);
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
private async *listByDatabasePagingPage(
|
|
87
|
+
resourceGroupName: string,
|
|
88
|
+
clusterName: string,
|
|
89
|
+
databaseName: string,
|
|
90
|
+
options?: DataConnectionsListByDatabaseOptionalParams
|
|
91
|
+
): AsyncIterableIterator<DataConnectionUnion[]> {
|
|
92
|
+
let result = await this._listByDatabase(
|
|
93
|
+
resourceGroupName,
|
|
94
|
+
clusterName,
|
|
95
|
+
databaseName,
|
|
96
|
+
options
|
|
97
|
+
);
|
|
98
|
+
yield result.value || [];
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
private async *listByDatabasePagingAll(
|
|
102
|
+
resourceGroupName: string,
|
|
103
|
+
clusterName: string,
|
|
104
|
+
databaseName: string,
|
|
105
|
+
options?: DataConnectionsListByDatabaseOptionalParams
|
|
106
|
+
): AsyncIterableIterator<DataConnectionUnion> {
|
|
107
|
+
for await (const page of this.listByDatabasePagingPage(
|
|
108
|
+
resourceGroupName,
|
|
109
|
+
clusterName,
|
|
110
|
+
databaseName,
|
|
111
|
+
options
|
|
112
|
+
)) {
|
|
113
|
+
yield* page;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
43
117
|
/**
|
|
118
|
+
* Returns the list of data connections of the given Kusto database.
|
|
44
119
|
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
45
120
|
* @param clusterName The name of the Kusto cluster.
|
|
46
121
|
* @param databaseName The name of the database in the Kusto cluster.
|
|
47
|
-
* @param
|
|
122
|
+
* @param options The options parameters.
|
|
48
123
|
*/
|
|
49
|
-
|
|
124
|
+
private _listByDatabase(
|
|
50
125
|
resourceGroupName: string,
|
|
51
126
|
clusterName: string,
|
|
52
127
|
databaseName: string,
|
|
53
|
-
|
|
54
|
-
):
|
|
128
|
+
options?: DataConnectionsListByDatabaseOptionalParams
|
|
129
|
+
): Promise<DataConnectionsListByDatabaseResponse> {
|
|
130
|
+
return this.client.sendOperationRequest(
|
|
131
|
+
{ resourceGroupName, clusterName, databaseName, options },
|
|
132
|
+
listByDatabaseOperationSpec
|
|
133
|
+
);
|
|
134
|
+
}
|
|
135
|
+
|
|
55
136
|
/**
|
|
137
|
+
* Checks that the data connection parameters are valid.
|
|
56
138
|
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
57
139
|
* @param clusterName The name of the Kusto cluster.
|
|
58
140
|
* @param databaseName The name of the database in the Kusto cluster.
|
|
59
|
-
* @param
|
|
60
|
-
* @param
|
|
141
|
+
* @param parameters The data connection parameters supplied to the CreateOrUpdate operation.
|
|
142
|
+
* @param options The options parameters.
|
|
61
143
|
*/
|
|
62
|
-
|
|
144
|
+
async beginDataConnectionValidation(
|
|
63
145
|
resourceGroupName: string,
|
|
64
146
|
clusterName: string,
|
|
65
147
|
databaseName: string,
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
):
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
148
|
+
parameters: DataConnectionValidation,
|
|
149
|
+
options?: DataConnectionsDataConnectionValidationOptionalParams
|
|
150
|
+
): Promise<
|
|
151
|
+
PollerLike<
|
|
152
|
+
PollOperationState<DataConnectionsDataConnectionValidationResponse>,
|
|
153
|
+
DataConnectionsDataConnectionValidationResponse
|
|
154
|
+
>
|
|
155
|
+
> {
|
|
156
|
+
const directSendOperation = async (
|
|
157
|
+
args: coreClient.OperationArguments,
|
|
158
|
+
spec: coreClient.OperationSpec
|
|
159
|
+
): Promise<DataConnectionsDataConnectionValidationResponse> => {
|
|
160
|
+
return this.client.sendOperationRequest(args, spec);
|
|
161
|
+
};
|
|
162
|
+
const sendOperation = async (
|
|
163
|
+
args: coreClient.OperationArguments,
|
|
164
|
+
spec: coreClient.OperationSpec
|
|
165
|
+
) => {
|
|
166
|
+
let currentRawResponse:
|
|
167
|
+
| coreClient.FullOperationResponse
|
|
168
|
+
| undefined = undefined;
|
|
169
|
+
const providedCallback = args.options?.onResponse;
|
|
170
|
+
const callback: coreClient.RawResponseCallback = (
|
|
171
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
172
|
+
flatResponse: unknown
|
|
173
|
+
) => {
|
|
174
|
+
currentRawResponse = rawResponse;
|
|
175
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
176
|
+
};
|
|
177
|
+
const updatedArgs = {
|
|
178
|
+
...args,
|
|
179
|
+
options: {
|
|
180
|
+
...args.options,
|
|
181
|
+
onResponse: callback
|
|
182
|
+
}
|
|
183
|
+
};
|
|
184
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
185
|
+
return {
|
|
186
|
+
flatResponse,
|
|
187
|
+
rawResponse: {
|
|
188
|
+
statusCode: currentRawResponse!.status,
|
|
189
|
+
body: currentRawResponse!.parsedBody,
|
|
190
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
191
|
+
}
|
|
192
|
+
};
|
|
193
|
+
};
|
|
194
|
+
|
|
195
|
+
const lro = new LroImpl(
|
|
196
|
+
sendOperation,
|
|
197
|
+
{ resourceGroupName, clusterName, databaseName, parameters, options },
|
|
198
|
+
dataConnectionValidationOperationSpec
|
|
199
|
+
);
|
|
200
|
+
return new LroEngine(lro, {
|
|
201
|
+
resumeFrom: options?.resumeFrom,
|
|
202
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
203
|
+
lroResourceLocationConfig: "location"
|
|
204
|
+
});
|
|
86
205
|
}
|
|
87
206
|
|
|
88
207
|
/**
|
|
@@ -91,25 +210,23 @@ export class DataConnections {
|
|
|
91
210
|
* @param clusterName The name of the Kusto cluster.
|
|
92
211
|
* @param databaseName The name of the database in the Kusto cluster.
|
|
93
212
|
* @param parameters The data connection parameters supplied to the CreateOrUpdate operation.
|
|
94
|
-
* @param
|
|
95
|
-
* @returns Promise<Models.DataConnectionsDataConnectionValidationMethodResponse>
|
|
213
|
+
* @param options The options parameters.
|
|
96
214
|
*/
|
|
97
|
-
|
|
215
|
+
async beginDataConnectionValidationAndWait(
|
|
98
216
|
resourceGroupName: string,
|
|
99
217
|
clusterName: string,
|
|
100
218
|
databaseName: string,
|
|
101
|
-
parameters:
|
|
102
|
-
options?:
|
|
103
|
-
): Promise<
|
|
104
|
-
|
|
219
|
+
parameters: DataConnectionValidation,
|
|
220
|
+
options?: DataConnectionsDataConnectionValidationOptionalParams
|
|
221
|
+
): Promise<DataConnectionsDataConnectionValidationResponse> {
|
|
222
|
+
const poller = await this.beginDataConnectionValidation(
|
|
105
223
|
resourceGroupName,
|
|
106
224
|
clusterName,
|
|
107
225
|
databaseName,
|
|
108
226
|
parameters,
|
|
109
227
|
options
|
|
110
|
-
)
|
|
111
|
-
|
|
112
|
-
>;
|
|
228
|
+
);
|
|
229
|
+
return poller.pollUntilDone();
|
|
113
230
|
}
|
|
114
231
|
|
|
115
232
|
/**
|
|
@@ -118,54 +235,15 @@ export class DataConnections {
|
|
|
118
235
|
* @param clusterName The name of the Kusto cluster.
|
|
119
236
|
* @param databaseName The name of the database in the Kusto cluster.
|
|
120
237
|
* @param dataConnectionName The name of the data connection.
|
|
121
|
-
* @param
|
|
122
|
-
* @returns Promise<Models.DataConnectionsCheckNameAvailabilityResponse>
|
|
123
|
-
*/
|
|
124
|
-
checkNameAvailability(
|
|
125
|
-
resourceGroupName: string,
|
|
126
|
-
clusterName: string,
|
|
127
|
-
databaseName: string,
|
|
128
|
-
dataConnectionName: Models.DataConnectionCheckNameRequest,
|
|
129
|
-
options?: msRest.RequestOptionsBase
|
|
130
|
-
): Promise<Models.DataConnectionsCheckNameAvailabilityResponse>;
|
|
131
|
-
/**
|
|
132
|
-
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
133
|
-
* @param clusterName The name of the Kusto cluster.
|
|
134
|
-
* @param databaseName The name of the database in the Kusto cluster.
|
|
135
|
-
* @param dataConnectionName The name of the data connection.
|
|
136
|
-
* @param callback The callback
|
|
137
|
-
*/
|
|
138
|
-
checkNameAvailability(
|
|
139
|
-
resourceGroupName: string,
|
|
140
|
-
clusterName: string,
|
|
141
|
-
databaseName: string,
|
|
142
|
-
dataConnectionName: Models.DataConnectionCheckNameRequest,
|
|
143
|
-
callback: msRest.ServiceCallback<Models.CheckNameResult>
|
|
144
|
-
): void;
|
|
145
|
-
/**
|
|
146
|
-
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
147
|
-
* @param clusterName The name of the Kusto cluster.
|
|
148
|
-
* @param databaseName The name of the database in the Kusto cluster.
|
|
149
|
-
* @param dataConnectionName The name of the data connection.
|
|
150
|
-
* @param options The optional parameters
|
|
151
|
-
* @param callback The callback
|
|
238
|
+
* @param options The options parameters.
|
|
152
239
|
*/
|
|
153
240
|
checkNameAvailability(
|
|
154
241
|
resourceGroupName: string,
|
|
155
242
|
clusterName: string,
|
|
156
243
|
databaseName: string,
|
|
157
|
-
dataConnectionName:
|
|
158
|
-
options
|
|
159
|
-
|
|
160
|
-
): void;
|
|
161
|
-
checkNameAvailability(
|
|
162
|
-
resourceGroupName: string,
|
|
163
|
-
clusterName: string,
|
|
164
|
-
databaseName: string,
|
|
165
|
-
dataConnectionName: Models.DataConnectionCheckNameRequest,
|
|
166
|
-
options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.CheckNameResult>,
|
|
167
|
-
callback?: msRest.ServiceCallback<Models.CheckNameResult>
|
|
168
|
-
): Promise<Models.DataConnectionsCheckNameAvailabilityResponse> {
|
|
244
|
+
dataConnectionName: DataConnectionCheckNameRequest,
|
|
245
|
+
options?: DataConnectionsCheckNameAvailabilityOptionalParams
|
|
246
|
+
): Promise<DataConnectionsCheckNameAvailabilityResponse> {
|
|
169
247
|
return this.client.sendOperationRequest(
|
|
170
248
|
{
|
|
171
249
|
resourceGroupName,
|
|
@@ -174,9 +252,8 @@ export class DataConnections {
|
|
|
174
252
|
dataConnectionName,
|
|
175
253
|
options
|
|
176
254
|
},
|
|
177
|
-
checkNameAvailabilityOperationSpec
|
|
178
|
-
|
|
179
|
-
) as Promise<Models.DataConnectionsCheckNameAvailabilityResponse>;
|
|
255
|
+
checkNameAvailabilityOperationSpec
|
|
256
|
+
);
|
|
180
257
|
}
|
|
181
258
|
|
|
182
259
|
/**
|
|
@@ -185,54 +262,15 @@ export class DataConnections {
|
|
|
185
262
|
* @param clusterName The name of the Kusto cluster.
|
|
186
263
|
* @param databaseName The name of the database in the Kusto cluster.
|
|
187
264
|
* @param dataConnectionName The name of the data connection.
|
|
188
|
-
* @param
|
|
189
|
-
* @returns Promise<Models.DataConnectionsGetResponse>
|
|
190
|
-
*/
|
|
191
|
-
get(
|
|
192
|
-
resourceGroupName: string,
|
|
193
|
-
clusterName: string,
|
|
194
|
-
databaseName: string,
|
|
195
|
-
dataConnectionName: string,
|
|
196
|
-
options?: msRest.RequestOptionsBase
|
|
197
|
-
): Promise<Models.DataConnectionsGetResponse>;
|
|
198
|
-
/**
|
|
199
|
-
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
200
|
-
* @param clusterName The name of the Kusto cluster.
|
|
201
|
-
* @param databaseName The name of the database in the Kusto cluster.
|
|
202
|
-
* @param dataConnectionName The name of the data connection.
|
|
203
|
-
* @param callback The callback
|
|
204
|
-
*/
|
|
205
|
-
get(
|
|
206
|
-
resourceGroupName: string,
|
|
207
|
-
clusterName: string,
|
|
208
|
-
databaseName: string,
|
|
209
|
-
dataConnectionName: string,
|
|
210
|
-
callback: msRest.ServiceCallback<Models.DataConnectionUnion>
|
|
211
|
-
): void;
|
|
212
|
-
/**
|
|
213
|
-
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
214
|
-
* @param clusterName The name of the Kusto cluster.
|
|
215
|
-
* @param databaseName The name of the database in the Kusto cluster.
|
|
216
|
-
* @param dataConnectionName The name of the data connection.
|
|
217
|
-
* @param options The optional parameters
|
|
218
|
-
* @param callback The callback
|
|
265
|
+
* @param options The options parameters.
|
|
219
266
|
*/
|
|
220
267
|
get(
|
|
221
268
|
resourceGroupName: string,
|
|
222
269
|
clusterName: string,
|
|
223
270
|
databaseName: string,
|
|
224
271
|
dataConnectionName: string,
|
|
225
|
-
options
|
|
226
|
-
|
|
227
|
-
): void;
|
|
228
|
-
get(
|
|
229
|
-
resourceGroupName: string,
|
|
230
|
-
clusterName: string,
|
|
231
|
-
databaseName: string,
|
|
232
|
-
dataConnectionName: string,
|
|
233
|
-
options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.DataConnectionUnion>,
|
|
234
|
-
callback?: msRest.ServiceCallback<Models.DataConnectionUnion>
|
|
235
|
-
): Promise<Models.DataConnectionsGetResponse> {
|
|
272
|
+
options?: DataConnectionsGetOptionalParams
|
|
273
|
+
): Promise<DataConnectionsGetResponse> {
|
|
236
274
|
return this.client.sendOperationRequest(
|
|
237
275
|
{
|
|
238
276
|
resourceGroupName,
|
|
@@ -241,9 +279,8 @@ export class DataConnections {
|
|
|
241
279
|
dataConnectionName,
|
|
242
280
|
options
|
|
243
281
|
},
|
|
244
|
-
getOperationSpec
|
|
245
|
-
|
|
246
|
-
) as Promise<Models.DataConnectionsGetResponse>;
|
|
282
|
+
getOperationSpec
|
|
283
|
+
);
|
|
247
284
|
}
|
|
248
285
|
|
|
249
286
|
/**
|
|
@@ -253,175 +290,282 @@ export class DataConnections {
|
|
|
253
290
|
* @param databaseName The name of the database in the Kusto cluster.
|
|
254
291
|
* @param dataConnectionName The name of the data connection.
|
|
255
292
|
* @param parameters The data connection parameters supplied to the CreateOrUpdate operation.
|
|
256
|
-
* @param
|
|
257
|
-
* @returns Promise<Models.DataConnectionsCreateOrUpdateResponse>
|
|
293
|
+
* @param options The options parameters.
|
|
258
294
|
*/
|
|
259
|
-
|
|
295
|
+
async beginCreateOrUpdate(
|
|
260
296
|
resourceGroupName: string,
|
|
261
297
|
clusterName: string,
|
|
262
298
|
databaseName: string,
|
|
263
299
|
dataConnectionName: string,
|
|
264
|
-
parameters:
|
|
265
|
-
options?:
|
|
266
|
-
): Promise<
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
300
|
+
parameters: DataConnectionUnion,
|
|
301
|
+
options?: DataConnectionsCreateOrUpdateOptionalParams
|
|
302
|
+
): Promise<
|
|
303
|
+
PollerLike<
|
|
304
|
+
PollOperationState<DataConnectionsCreateOrUpdateResponse>,
|
|
305
|
+
DataConnectionsCreateOrUpdateResponse
|
|
306
|
+
>
|
|
307
|
+
> {
|
|
308
|
+
const directSendOperation = async (
|
|
309
|
+
args: coreClient.OperationArguments,
|
|
310
|
+
spec: coreClient.OperationSpec
|
|
311
|
+
): Promise<DataConnectionsCreateOrUpdateResponse> => {
|
|
312
|
+
return this.client.sendOperationRequest(args, spec);
|
|
313
|
+
};
|
|
314
|
+
const sendOperation = async (
|
|
315
|
+
args: coreClient.OperationArguments,
|
|
316
|
+
spec: coreClient.OperationSpec
|
|
317
|
+
) => {
|
|
318
|
+
let currentRawResponse:
|
|
319
|
+
| coreClient.FullOperationResponse
|
|
320
|
+
| undefined = undefined;
|
|
321
|
+
const providedCallback = args.options?.onResponse;
|
|
322
|
+
const callback: coreClient.RawResponseCallback = (
|
|
323
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
324
|
+
flatResponse: unknown
|
|
325
|
+
) => {
|
|
326
|
+
currentRawResponse = rawResponse;
|
|
327
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
328
|
+
};
|
|
329
|
+
const updatedArgs = {
|
|
330
|
+
...args,
|
|
331
|
+
options: {
|
|
332
|
+
...args.options,
|
|
333
|
+
onResponse: callback
|
|
334
|
+
}
|
|
335
|
+
};
|
|
336
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
337
|
+
return {
|
|
338
|
+
flatResponse,
|
|
339
|
+
rawResponse: {
|
|
340
|
+
statusCode: currentRawResponse!.status,
|
|
341
|
+
body: currentRawResponse!.parsedBody,
|
|
342
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
343
|
+
}
|
|
344
|
+
};
|
|
345
|
+
};
|
|
346
|
+
|
|
347
|
+
const lro = new LroImpl(
|
|
348
|
+
sendOperation,
|
|
349
|
+
{
|
|
350
|
+
resourceGroupName,
|
|
351
|
+
clusterName,
|
|
352
|
+
databaseName,
|
|
353
|
+
dataConnectionName,
|
|
354
|
+
parameters,
|
|
355
|
+
options
|
|
356
|
+
},
|
|
357
|
+
createOrUpdateOperationSpec
|
|
358
|
+
);
|
|
359
|
+
return new LroEngine(lro, {
|
|
360
|
+
resumeFrom: options?.resumeFrom,
|
|
361
|
+
intervalInMs: options?.updateIntervalInMs
|
|
362
|
+
});
|
|
277
363
|
}
|
|
278
364
|
|
|
279
365
|
/**
|
|
280
|
-
*
|
|
366
|
+
* Creates or updates a data connection.
|
|
281
367
|
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
282
368
|
* @param clusterName The name of the Kusto cluster.
|
|
283
369
|
* @param databaseName The name of the database in the Kusto cluster.
|
|
284
370
|
* @param dataConnectionName The name of the data connection.
|
|
285
|
-
* @param parameters The data connection parameters supplied to the
|
|
286
|
-
* @param
|
|
287
|
-
* @returns Promise<Models.DataConnectionsUpdateResponse>
|
|
371
|
+
* @param parameters The data connection parameters supplied to the CreateOrUpdate operation.
|
|
372
|
+
* @param options The options parameters.
|
|
288
373
|
*/
|
|
289
|
-
|
|
374
|
+
async beginCreateOrUpdateAndWait(
|
|
290
375
|
resourceGroupName: string,
|
|
291
376
|
clusterName: string,
|
|
292
377
|
databaseName: string,
|
|
293
378
|
dataConnectionName: string,
|
|
294
|
-
parameters:
|
|
295
|
-
options?:
|
|
296
|
-
): Promise<
|
|
297
|
-
|
|
379
|
+
parameters: DataConnectionUnion,
|
|
380
|
+
options?: DataConnectionsCreateOrUpdateOptionalParams
|
|
381
|
+
): Promise<DataConnectionsCreateOrUpdateResponse> {
|
|
382
|
+
const poller = await this.beginCreateOrUpdate(
|
|
298
383
|
resourceGroupName,
|
|
299
384
|
clusterName,
|
|
300
385
|
databaseName,
|
|
301
386
|
dataConnectionName,
|
|
302
387
|
parameters,
|
|
303
388
|
options
|
|
304
|
-
)
|
|
305
|
-
|
|
306
|
-
>;
|
|
389
|
+
);
|
|
390
|
+
return poller.pollUntilDone();
|
|
307
391
|
}
|
|
308
392
|
|
|
309
393
|
/**
|
|
310
|
-
*
|
|
394
|
+
* Updates a data connection.
|
|
311
395
|
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
312
396
|
* @param clusterName The name of the Kusto cluster.
|
|
313
397
|
* @param databaseName The name of the database in the Kusto cluster.
|
|
314
398
|
* @param dataConnectionName The name of the data connection.
|
|
315
|
-
* @param
|
|
316
|
-
* @
|
|
399
|
+
* @param parameters The data connection parameters supplied to the Update operation.
|
|
400
|
+
* @param options The options parameters.
|
|
317
401
|
*/
|
|
318
|
-
|
|
402
|
+
async beginUpdate(
|
|
319
403
|
resourceGroupName: string,
|
|
320
404
|
clusterName: string,
|
|
321
405
|
databaseName: string,
|
|
322
406
|
dataConnectionName: string,
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
407
|
+
parameters: DataConnectionUnion,
|
|
408
|
+
options?: DataConnectionsUpdateOptionalParams
|
|
409
|
+
): Promise<
|
|
410
|
+
PollerLike<
|
|
411
|
+
PollOperationState<DataConnectionsUpdateResponse>,
|
|
412
|
+
DataConnectionsUpdateResponse
|
|
413
|
+
>
|
|
414
|
+
> {
|
|
415
|
+
const directSendOperation = async (
|
|
416
|
+
args: coreClient.OperationArguments,
|
|
417
|
+
spec: coreClient.OperationSpec
|
|
418
|
+
): Promise<DataConnectionsUpdateResponse> => {
|
|
419
|
+
return this.client.sendOperationRequest(args, spec);
|
|
420
|
+
};
|
|
421
|
+
const sendOperation = async (
|
|
422
|
+
args: coreClient.OperationArguments,
|
|
423
|
+
spec: coreClient.OperationSpec
|
|
424
|
+
) => {
|
|
425
|
+
let currentRawResponse:
|
|
426
|
+
| coreClient.FullOperationResponse
|
|
427
|
+
| undefined = undefined;
|
|
428
|
+
const providedCallback = args.options?.onResponse;
|
|
429
|
+
const callback: coreClient.RawResponseCallback = (
|
|
430
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
431
|
+
flatResponse: unknown
|
|
432
|
+
) => {
|
|
433
|
+
currentRawResponse = rawResponse;
|
|
434
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
435
|
+
};
|
|
436
|
+
const updatedArgs = {
|
|
437
|
+
...args,
|
|
438
|
+
options: {
|
|
439
|
+
...args.options,
|
|
440
|
+
onResponse: callback
|
|
441
|
+
}
|
|
442
|
+
};
|
|
443
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
444
|
+
return {
|
|
445
|
+
flatResponse,
|
|
446
|
+
rawResponse: {
|
|
447
|
+
statusCode: currentRawResponse!.status,
|
|
448
|
+
body: currentRawResponse!.parsedBody,
|
|
449
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
450
|
+
}
|
|
451
|
+
};
|
|
452
|
+
};
|
|
333
453
|
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
337
|
-
* @param clusterName The name of the Kusto cluster.
|
|
338
|
-
* @param databaseName The name of the database in the Kusto cluster.
|
|
339
|
-
* @param parameters The data connection parameters supplied to the CreateOrUpdate operation.
|
|
340
|
-
* @param [options] The optional parameters
|
|
341
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
342
|
-
*/
|
|
343
|
-
beginDataConnectionValidationMethod(
|
|
344
|
-
resourceGroupName: string,
|
|
345
|
-
clusterName: string,
|
|
346
|
-
databaseName: string,
|
|
347
|
-
parameters: Models.DataConnectionValidation,
|
|
348
|
-
options?: msRest.RequestOptionsBase
|
|
349
|
-
): Promise<msRestAzure.LROPoller> {
|
|
350
|
-
return this.client.sendLRORequest(
|
|
454
|
+
const lro = new LroImpl(
|
|
455
|
+
sendOperation,
|
|
351
456
|
{
|
|
352
457
|
resourceGroupName,
|
|
353
458
|
clusterName,
|
|
354
459
|
databaseName,
|
|
460
|
+
dataConnectionName,
|
|
355
461
|
parameters,
|
|
356
462
|
options
|
|
357
463
|
},
|
|
358
|
-
|
|
359
|
-
options
|
|
464
|
+
updateOperationSpec
|
|
360
465
|
);
|
|
466
|
+
return new LroEngine(lro, {
|
|
467
|
+
resumeFrom: options?.resumeFrom,
|
|
468
|
+
intervalInMs: options?.updateIntervalInMs
|
|
469
|
+
});
|
|
361
470
|
}
|
|
362
471
|
|
|
363
472
|
/**
|
|
364
|
-
*
|
|
473
|
+
* Updates a data connection.
|
|
365
474
|
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
366
475
|
* @param clusterName The name of the Kusto cluster.
|
|
367
476
|
* @param databaseName The name of the database in the Kusto cluster.
|
|
368
477
|
* @param dataConnectionName The name of the data connection.
|
|
369
|
-
* @param parameters The data connection parameters supplied to the
|
|
370
|
-
* @param
|
|
371
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
478
|
+
* @param parameters The data connection parameters supplied to the Update operation.
|
|
479
|
+
* @param options The options parameters.
|
|
372
480
|
*/
|
|
373
|
-
|
|
481
|
+
async beginUpdateAndWait(
|
|
374
482
|
resourceGroupName: string,
|
|
375
483
|
clusterName: string,
|
|
376
484
|
databaseName: string,
|
|
377
485
|
dataConnectionName: string,
|
|
378
|
-
parameters:
|
|
379
|
-
options?:
|
|
380
|
-
): Promise<
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
parameters,
|
|
388
|
-
options
|
|
389
|
-
},
|
|
390
|
-
beginCreateOrUpdateOperationSpec,
|
|
486
|
+
parameters: DataConnectionUnion,
|
|
487
|
+
options?: DataConnectionsUpdateOptionalParams
|
|
488
|
+
): Promise<DataConnectionsUpdateResponse> {
|
|
489
|
+
const poller = await this.beginUpdate(
|
|
490
|
+
resourceGroupName,
|
|
491
|
+
clusterName,
|
|
492
|
+
databaseName,
|
|
493
|
+
dataConnectionName,
|
|
494
|
+
parameters,
|
|
391
495
|
options
|
|
392
496
|
);
|
|
497
|
+
return poller.pollUntilDone();
|
|
393
498
|
}
|
|
394
499
|
|
|
395
500
|
/**
|
|
396
|
-
*
|
|
501
|
+
* Deletes the data connection with the given name.
|
|
397
502
|
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
398
503
|
* @param clusterName The name of the Kusto cluster.
|
|
399
504
|
* @param databaseName The name of the database in the Kusto cluster.
|
|
400
505
|
* @param dataConnectionName The name of the data connection.
|
|
401
|
-
* @param
|
|
402
|
-
* @param [options] The optional parameters
|
|
403
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
506
|
+
* @param options The options parameters.
|
|
404
507
|
*/
|
|
405
|
-
|
|
508
|
+
async beginDelete(
|
|
406
509
|
resourceGroupName: string,
|
|
407
510
|
clusterName: string,
|
|
408
511
|
databaseName: string,
|
|
409
512
|
dataConnectionName: string,
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
513
|
+
options?: DataConnectionsDeleteOptionalParams
|
|
514
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
515
|
+
const directSendOperation = async (
|
|
516
|
+
args: coreClient.OperationArguments,
|
|
517
|
+
spec: coreClient.OperationSpec
|
|
518
|
+
): Promise<void> => {
|
|
519
|
+
return this.client.sendOperationRequest(args, spec);
|
|
520
|
+
};
|
|
521
|
+
const sendOperation = async (
|
|
522
|
+
args: coreClient.OperationArguments,
|
|
523
|
+
spec: coreClient.OperationSpec
|
|
524
|
+
) => {
|
|
525
|
+
let currentRawResponse:
|
|
526
|
+
| coreClient.FullOperationResponse
|
|
527
|
+
| undefined = undefined;
|
|
528
|
+
const providedCallback = args.options?.onResponse;
|
|
529
|
+
const callback: coreClient.RawResponseCallback = (
|
|
530
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
531
|
+
flatResponse: unknown
|
|
532
|
+
) => {
|
|
533
|
+
currentRawResponse = rawResponse;
|
|
534
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
535
|
+
};
|
|
536
|
+
const updatedArgs = {
|
|
537
|
+
...args,
|
|
538
|
+
options: {
|
|
539
|
+
...args.options,
|
|
540
|
+
onResponse: callback
|
|
541
|
+
}
|
|
542
|
+
};
|
|
543
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
544
|
+
return {
|
|
545
|
+
flatResponse,
|
|
546
|
+
rawResponse: {
|
|
547
|
+
statusCode: currentRawResponse!.status,
|
|
548
|
+
body: currentRawResponse!.parsedBody,
|
|
549
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
550
|
+
}
|
|
551
|
+
};
|
|
552
|
+
};
|
|
553
|
+
|
|
554
|
+
const lro = new LroImpl(
|
|
555
|
+
sendOperation,
|
|
414
556
|
{
|
|
415
557
|
resourceGroupName,
|
|
416
558
|
clusterName,
|
|
417
559
|
databaseName,
|
|
418
560
|
dataConnectionName,
|
|
419
|
-
parameters,
|
|
420
561
|
options
|
|
421
562
|
},
|
|
422
|
-
|
|
423
|
-
options
|
|
563
|
+
deleteOperationSpec
|
|
424
564
|
);
|
|
565
|
+
return new LroEngine(lro, {
|
|
566
|
+
resumeFrom: options?.resumeFrom,
|
|
567
|
+
intervalInMs: options?.updateIntervalInMs
|
|
568
|
+
});
|
|
425
569
|
}
|
|
426
570
|
|
|
427
571
|
/**
|
|
@@ -430,44 +574,32 @@ export class DataConnections {
|
|
|
430
574
|
* @param clusterName The name of the Kusto cluster.
|
|
431
575
|
* @param databaseName The name of the database in the Kusto cluster.
|
|
432
576
|
* @param dataConnectionName The name of the data connection.
|
|
433
|
-
* @param
|
|
434
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
577
|
+
* @param options The options parameters.
|
|
435
578
|
*/
|
|
436
|
-
|
|
579
|
+
async beginDeleteAndWait(
|
|
437
580
|
resourceGroupName: string,
|
|
438
581
|
clusterName: string,
|
|
439
582
|
databaseName: string,
|
|
440
583
|
dataConnectionName: string,
|
|
441
|
-
options?:
|
|
442
|
-
): Promise<
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
dataConnectionName,
|
|
449
|
-
options
|
|
450
|
-
},
|
|
451
|
-
beginDeleteMethodOperationSpec,
|
|
584
|
+
options?: DataConnectionsDeleteOptionalParams
|
|
585
|
+
): Promise<void> {
|
|
586
|
+
const poller = await this.beginDelete(
|
|
587
|
+
resourceGroupName,
|
|
588
|
+
clusterName,
|
|
589
|
+
databaseName,
|
|
590
|
+
dataConnectionName,
|
|
452
591
|
options
|
|
453
592
|
);
|
|
593
|
+
return poller.pollUntilDone();
|
|
454
594
|
}
|
|
455
595
|
}
|
|
456
|
-
|
|
457
596
|
// Operation Specifications
|
|
458
|
-
const serializer =
|
|
459
|
-
|
|
460
|
-
|
|
597
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
598
|
+
|
|
599
|
+
const listByDatabaseOperationSpec: coreClient.OperationSpec = {
|
|
461
600
|
path:
|
|
462
|
-
"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/dataConnections",
|
|
463
|
-
|
|
464
|
-
Parameters.resourceGroupName,
|
|
465
|
-
Parameters.clusterName,
|
|
466
|
-
Parameters.databaseName,
|
|
467
|
-
Parameters.subscriptionId
|
|
468
|
-
],
|
|
469
|
-
queryParameters: [Parameters.apiVersion],
|
|
470
|
-
headerParameters: [Parameters.acceptLanguage],
|
|
601
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/dataConnections",
|
|
602
|
+
httpMethod: "GET",
|
|
471
603
|
responses: {
|
|
472
604
|
200: {
|
|
473
605
|
bodyMapper: Mappers.DataConnectionListResult
|
|
@@ -476,114 +608,104 @@ const listByDatabaseOperationSpec: msRest.OperationSpec = {
|
|
|
476
608
|
bodyMapper: Mappers.CloudError
|
|
477
609
|
}
|
|
478
610
|
},
|
|
479
|
-
|
|
480
|
-
};
|
|
481
|
-
|
|
482
|
-
const checkNameAvailabilityOperationSpec: msRest.OperationSpec = {
|
|
483
|
-
httpMethod: "POST",
|
|
484
|
-
path:
|
|
485
|
-
"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/checkNameAvailability",
|
|
611
|
+
queryParameters: [Parameters.apiVersion],
|
|
486
612
|
urlParameters: [
|
|
613
|
+
Parameters.$host,
|
|
487
614
|
Parameters.resourceGroupName,
|
|
488
615
|
Parameters.clusterName,
|
|
489
|
-
Parameters.
|
|
490
|
-
Parameters.
|
|
616
|
+
Parameters.subscriptionId,
|
|
617
|
+
Parameters.databaseName
|
|
491
618
|
],
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
}
|
|
500
|
-
},
|
|
619
|
+
headerParameters: [Parameters.accept],
|
|
620
|
+
serializer
|
|
621
|
+
};
|
|
622
|
+
const dataConnectionValidationOperationSpec: coreClient.OperationSpec = {
|
|
623
|
+
path:
|
|
624
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/dataConnectionValidation",
|
|
625
|
+
httpMethod: "POST",
|
|
501
626
|
responses: {
|
|
502
627
|
200: {
|
|
503
|
-
bodyMapper: Mappers.
|
|
628
|
+
bodyMapper: Mappers.DataConnectionValidationListResult
|
|
629
|
+
},
|
|
630
|
+
201: {
|
|
631
|
+
bodyMapper: Mappers.DataConnectionValidationListResult
|
|
632
|
+
},
|
|
633
|
+
202: {
|
|
634
|
+
bodyMapper: Mappers.DataConnectionValidationListResult
|
|
635
|
+
},
|
|
636
|
+
204: {
|
|
637
|
+
bodyMapper: Mappers.DataConnectionValidationListResult
|
|
504
638
|
},
|
|
505
639
|
default: {
|
|
506
640
|
bodyMapper: Mappers.CloudError
|
|
507
641
|
}
|
|
508
642
|
},
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
const getOperationSpec: msRest.OperationSpec = {
|
|
513
|
-
httpMethod: "GET",
|
|
514
|
-
path:
|
|
515
|
-
"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/dataConnections/{dataConnectionName}",
|
|
643
|
+
requestBody: Parameters.parameters9,
|
|
644
|
+
queryParameters: [Parameters.apiVersion],
|
|
516
645
|
urlParameters: [
|
|
646
|
+
Parameters.$host,
|
|
517
647
|
Parameters.resourceGroupName,
|
|
518
648
|
Parameters.clusterName,
|
|
519
|
-
Parameters.
|
|
520
|
-
Parameters.
|
|
521
|
-
Parameters.subscriptionId
|
|
649
|
+
Parameters.subscriptionId,
|
|
650
|
+
Parameters.databaseName
|
|
522
651
|
],
|
|
523
|
-
|
|
524
|
-
|
|
652
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
653
|
+
mediaType: "json",
|
|
654
|
+
serializer
|
|
655
|
+
};
|
|
656
|
+
const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = {
|
|
657
|
+
path:
|
|
658
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/checkNameAvailability",
|
|
659
|
+
httpMethod: "POST",
|
|
525
660
|
responses: {
|
|
526
661
|
200: {
|
|
527
|
-
bodyMapper: Mappers.
|
|
662
|
+
bodyMapper: Mappers.CheckNameResult
|
|
528
663
|
},
|
|
529
664
|
default: {
|
|
530
665
|
bodyMapper: Mappers.CloudError
|
|
531
666
|
}
|
|
532
667
|
},
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
const beginDataConnectionValidationMethodOperationSpec: msRest.OperationSpec = {
|
|
537
|
-
httpMethod: "POST",
|
|
538
|
-
path:
|
|
539
|
-
"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/dataConnectionValidation",
|
|
668
|
+
requestBody: Parameters.dataConnectionName,
|
|
669
|
+
queryParameters: [Parameters.apiVersion],
|
|
540
670
|
urlParameters: [
|
|
671
|
+
Parameters.$host,
|
|
541
672
|
Parameters.resourceGroupName,
|
|
542
673
|
Parameters.clusterName,
|
|
543
|
-
Parameters.
|
|
544
|
-
Parameters.
|
|
674
|
+
Parameters.subscriptionId,
|
|
675
|
+
Parameters.databaseName
|
|
545
676
|
],
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
},
|
|
677
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
678
|
+
mediaType: "json",
|
|
679
|
+
serializer
|
|
680
|
+
};
|
|
681
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
682
|
+
path:
|
|
683
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/dataConnections/{dataConnectionName}",
|
|
684
|
+
httpMethod: "GET",
|
|
555
685
|
responses: {
|
|
556
686
|
200: {
|
|
557
|
-
bodyMapper: Mappers.
|
|
687
|
+
bodyMapper: Mappers.DataConnection
|
|
558
688
|
},
|
|
559
|
-
202: {},
|
|
560
689
|
default: {
|
|
561
690
|
bodyMapper: Mappers.CloudError
|
|
562
691
|
}
|
|
563
692
|
},
|
|
564
|
-
|
|
565
|
-
};
|
|
566
|
-
|
|
567
|
-
const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = {
|
|
568
|
-
httpMethod: "PUT",
|
|
569
|
-
path:
|
|
570
|
-
"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/dataConnections/{dataConnectionName}",
|
|
693
|
+
queryParameters: [Parameters.apiVersion],
|
|
571
694
|
urlParameters: [
|
|
695
|
+
Parameters.$host,
|
|
572
696
|
Parameters.resourceGroupName,
|
|
573
697
|
Parameters.clusterName,
|
|
698
|
+
Parameters.subscriptionId,
|
|
574
699
|
Parameters.databaseName,
|
|
575
|
-
Parameters.
|
|
576
|
-
Parameters.subscriptionId
|
|
700
|
+
Parameters.dataConnectionName1
|
|
577
701
|
],
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
}
|
|
586
|
-
},
|
|
702
|
+
headerParameters: [Parameters.accept],
|
|
703
|
+
serializer
|
|
704
|
+
};
|
|
705
|
+
const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
706
|
+
path:
|
|
707
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/dataConnections/{dataConnectionName}",
|
|
708
|
+
httpMethod: "PUT",
|
|
587
709
|
responses: {
|
|
588
710
|
200: {
|
|
589
711
|
bodyMapper: Mappers.DataConnection
|
|
@@ -594,33 +716,31 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = {
|
|
|
594
716
|
202: {
|
|
595
717
|
bodyMapper: Mappers.DataConnection
|
|
596
718
|
},
|
|
719
|
+
204: {
|
|
720
|
+
bodyMapper: Mappers.DataConnection
|
|
721
|
+
},
|
|
597
722
|
default: {
|
|
598
723
|
bodyMapper: Mappers.CloudError
|
|
599
724
|
}
|
|
600
725
|
},
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
const beginUpdateOperationSpec: msRest.OperationSpec = {
|
|
605
|
-
httpMethod: "PATCH",
|
|
606
|
-
path:
|
|
607
|
-
"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/dataConnections/{dataConnectionName}",
|
|
726
|
+
requestBody: Parameters.parameters10,
|
|
727
|
+
queryParameters: [Parameters.apiVersion],
|
|
608
728
|
urlParameters: [
|
|
729
|
+
Parameters.$host,
|
|
609
730
|
Parameters.resourceGroupName,
|
|
610
731
|
Parameters.clusterName,
|
|
732
|
+
Parameters.subscriptionId,
|
|
611
733
|
Parameters.databaseName,
|
|
612
|
-
Parameters.
|
|
613
|
-
Parameters.subscriptionId
|
|
734
|
+
Parameters.dataConnectionName1
|
|
614
735
|
],
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
},
|
|
736
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
737
|
+
mediaType: "json",
|
|
738
|
+
serializer
|
|
739
|
+
};
|
|
740
|
+
const updateOperationSpec: coreClient.OperationSpec = {
|
|
741
|
+
path:
|
|
742
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/dataConnections/{dataConnectionName}",
|
|
743
|
+
httpMethod: "PATCH",
|
|
624
744
|
responses: {
|
|
625
745
|
200: {
|
|
626
746
|
bodyMapper: Mappers.DataConnection
|
|
@@ -631,33 +751,49 @@ const beginUpdateOperationSpec: msRest.OperationSpec = {
|
|
|
631
751
|
202: {
|
|
632
752
|
bodyMapper: Mappers.DataConnection
|
|
633
753
|
},
|
|
754
|
+
204: {
|
|
755
|
+
bodyMapper: Mappers.DataConnection
|
|
756
|
+
},
|
|
634
757
|
default: {
|
|
635
758
|
bodyMapper: Mappers.CloudError
|
|
636
759
|
}
|
|
637
760
|
},
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
|
|
642
|
-
httpMethod: "DELETE",
|
|
643
|
-
path:
|
|
644
|
-
"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/dataConnections/{dataConnectionName}",
|
|
761
|
+
requestBody: Parameters.parameters10,
|
|
762
|
+
queryParameters: [Parameters.apiVersion],
|
|
645
763
|
urlParameters: [
|
|
764
|
+
Parameters.$host,
|
|
646
765
|
Parameters.resourceGroupName,
|
|
647
766
|
Parameters.clusterName,
|
|
767
|
+
Parameters.subscriptionId,
|
|
648
768
|
Parameters.databaseName,
|
|
649
|
-
Parameters.
|
|
650
|
-
Parameters.subscriptionId
|
|
769
|
+
Parameters.dataConnectionName1
|
|
651
770
|
],
|
|
652
|
-
|
|
653
|
-
|
|
771
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
772
|
+
mediaType: "json",
|
|
773
|
+
serializer
|
|
774
|
+
};
|
|
775
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
776
|
+
path:
|
|
777
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/dataConnections/{dataConnectionName}",
|
|
778
|
+
httpMethod: "DELETE",
|
|
654
779
|
responses: {
|
|
655
780
|
200: {},
|
|
781
|
+
201: {},
|
|
656
782
|
202: {},
|
|
657
783
|
204: {},
|
|
658
784
|
default: {
|
|
659
785
|
bodyMapper: Mappers.CloudError
|
|
660
786
|
}
|
|
661
787
|
},
|
|
788
|
+
queryParameters: [Parameters.apiVersion],
|
|
789
|
+
urlParameters: [
|
|
790
|
+
Parameters.$host,
|
|
791
|
+
Parameters.resourceGroupName,
|
|
792
|
+
Parameters.clusterName,
|
|
793
|
+
Parameters.subscriptionId,
|
|
794
|
+
Parameters.databaseName,
|
|
795
|
+
Parameters.dataConnectionName1
|
|
796
|
+
],
|
|
797
|
+
headerParameters: [Parameters.accept],
|
|
662
798
|
serializer
|
|
663
799
|
};
|