@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,547 @@
|
|
|
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
|
+
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await, __awaiter } from "tslib";
|
|
9
|
+
import * as coreClient from "@azure/core-client";
|
|
10
|
+
import * as Mappers from "../models/mappers";
|
|
11
|
+
import * as Parameters from "../models/parameters";
|
|
12
|
+
import { LroEngine } from "@azure/core-lro";
|
|
13
|
+
import { LroImpl } from "../lroImpl";
|
|
14
|
+
/// <reference lib="esnext.asynciterable" />
|
|
15
|
+
/** Class containing DataConnections operations. */
|
|
16
|
+
export class DataConnectionsImpl {
|
|
17
|
+
/**
|
|
18
|
+
* Initialize a new instance of the class DataConnections class.
|
|
19
|
+
* @param client Reference to the service client
|
|
20
|
+
*/
|
|
21
|
+
constructor(client) {
|
|
22
|
+
this.client = client;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Returns the list of data connections of the given Kusto database.
|
|
26
|
+
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
27
|
+
* @param clusterName The name of the Kusto cluster.
|
|
28
|
+
* @param databaseName The name of the database in the Kusto cluster.
|
|
29
|
+
* @param options The options parameters.
|
|
30
|
+
*/
|
|
31
|
+
listByDatabase(resourceGroupName, clusterName, databaseName, options) {
|
|
32
|
+
const iter = this.listByDatabasePagingAll(resourceGroupName, clusterName, databaseName, options);
|
|
33
|
+
return {
|
|
34
|
+
next() {
|
|
35
|
+
return iter.next();
|
|
36
|
+
},
|
|
37
|
+
[Symbol.asyncIterator]() {
|
|
38
|
+
return this;
|
|
39
|
+
},
|
|
40
|
+
byPage: () => {
|
|
41
|
+
return this.listByDatabasePagingPage(resourceGroupName, clusterName, databaseName, options);
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
listByDatabasePagingPage(resourceGroupName, clusterName, databaseName, options) {
|
|
46
|
+
return __asyncGenerator(this, arguments, function* listByDatabasePagingPage_1() {
|
|
47
|
+
let result = yield __await(this._listByDatabase(resourceGroupName, clusterName, databaseName, options));
|
|
48
|
+
yield yield __await(result.value || []);
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
listByDatabasePagingAll(resourceGroupName, clusterName, databaseName, options) {
|
|
52
|
+
return __asyncGenerator(this, arguments, function* listByDatabasePagingAll_1() {
|
|
53
|
+
var e_1, _a;
|
|
54
|
+
try {
|
|
55
|
+
for (var _b = __asyncValues(this.listByDatabasePagingPage(resourceGroupName, clusterName, databaseName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
56
|
+
const page = _c.value;
|
|
57
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
61
|
+
finally {
|
|
62
|
+
try {
|
|
63
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
64
|
+
}
|
|
65
|
+
finally { if (e_1) throw e_1.error; }
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Returns the list of data connections of the given Kusto database.
|
|
71
|
+
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
72
|
+
* @param clusterName The name of the Kusto cluster.
|
|
73
|
+
* @param databaseName The name of the database in the Kusto cluster.
|
|
74
|
+
* @param options The options parameters.
|
|
75
|
+
*/
|
|
76
|
+
_listByDatabase(resourceGroupName, clusterName, databaseName, options) {
|
|
77
|
+
return this.client.sendOperationRequest({ resourceGroupName, clusterName, databaseName, options }, listByDatabaseOperationSpec);
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Checks that the data connection parameters are valid.
|
|
81
|
+
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
82
|
+
* @param clusterName The name of the Kusto cluster.
|
|
83
|
+
* @param databaseName The name of the database in the Kusto cluster.
|
|
84
|
+
* @param parameters The data connection parameters supplied to the CreateOrUpdate operation.
|
|
85
|
+
* @param options The options parameters.
|
|
86
|
+
*/
|
|
87
|
+
beginDataConnectionValidation(resourceGroupName, clusterName, databaseName, parameters, options) {
|
|
88
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
89
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
90
|
+
return this.client.sendOperationRequest(args, spec);
|
|
91
|
+
});
|
|
92
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
93
|
+
var _a;
|
|
94
|
+
let currentRawResponse = undefined;
|
|
95
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
96
|
+
const callback = (rawResponse, flatResponse) => {
|
|
97
|
+
currentRawResponse = rawResponse;
|
|
98
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
99
|
+
};
|
|
100
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
101
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
102
|
+
return {
|
|
103
|
+
flatResponse,
|
|
104
|
+
rawResponse: {
|
|
105
|
+
statusCode: currentRawResponse.status,
|
|
106
|
+
body: currentRawResponse.parsedBody,
|
|
107
|
+
headers: currentRawResponse.headers.toJSON()
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
});
|
|
111
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, clusterName, databaseName, parameters, options }, dataConnectionValidationOperationSpec);
|
|
112
|
+
return new LroEngine(lro, {
|
|
113
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
114
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
115
|
+
lroResourceLocationConfig: "location"
|
|
116
|
+
});
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Checks that the data connection parameters are valid.
|
|
121
|
+
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
122
|
+
* @param clusterName The name of the Kusto cluster.
|
|
123
|
+
* @param databaseName The name of the database in the Kusto cluster.
|
|
124
|
+
* @param parameters The data connection parameters supplied to the CreateOrUpdate operation.
|
|
125
|
+
* @param options The options parameters.
|
|
126
|
+
*/
|
|
127
|
+
beginDataConnectionValidationAndWait(resourceGroupName, clusterName, databaseName, parameters, options) {
|
|
128
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
129
|
+
const poller = yield this.beginDataConnectionValidation(resourceGroupName, clusterName, databaseName, parameters, options);
|
|
130
|
+
return poller.pollUntilDone();
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Checks that the data connection name is valid and is not already in use.
|
|
135
|
+
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
136
|
+
* @param clusterName The name of the Kusto cluster.
|
|
137
|
+
* @param databaseName The name of the database in the Kusto cluster.
|
|
138
|
+
* @param dataConnectionName The name of the data connection.
|
|
139
|
+
* @param options The options parameters.
|
|
140
|
+
*/
|
|
141
|
+
checkNameAvailability(resourceGroupName, clusterName, databaseName, dataConnectionName, options) {
|
|
142
|
+
return this.client.sendOperationRequest({
|
|
143
|
+
resourceGroupName,
|
|
144
|
+
clusterName,
|
|
145
|
+
databaseName,
|
|
146
|
+
dataConnectionName,
|
|
147
|
+
options
|
|
148
|
+
}, checkNameAvailabilityOperationSpec);
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* Returns a data connection.
|
|
152
|
+
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
153
|
+
* @param clusterName The name of the Kusto cluster.
|
|
154
|
+
* @param databaseName The name of the database in the Kusto cluster.
|
|
155
|
+
* @param dataConnectionName The name of the data connection.
|
|
156
|
+
* @param options The options parameters.
|
|
157
|
+
*/
|
|
158
|
+
get(resourceGroupName, clusterName, databaseName, dataConnectionName, options) {
|
|
159
|
+
return this.client.sendOperationRequest({
|
|
160
|
+
resourceGroupName,
|
|
161
|
+
clusterName,
|
|
162
|
+
databaseName,
|
|
163
|
+
dataConnectionName,
|
|
164
|
+
options
|
|
165
|
+
}, getOperationSpec);
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* Creates or updates a data connection.
|
|
169
|
+
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
170
|
+
* @param clusterName The name of the Kusto cluster.
|
|
171
|
+
* @param databaseName The name of the database in the Kusto cluster.
|
|
172
|
+
* @param dataConnectionName The name of the data connection.
|
|
173
|
+
* @param parameters The data connection parameters supplied to the CreateOrUpdate operation.
|
|
174
|
+
* @param options The options parameters.
|
|
175
|
+
*/
|
|
176
|
+
beginCreateOrUpdate(resourceGroupName, clusterName, databaseName, dataConnectionName, parameters, options) {
|
|
177
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
178
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
179
|
+
return this.client.sendOperationRequest(args, spec);
|
|
180
|
+
});
|
|
181
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
182
|
+
var _a;
|
|
183
|
+
let currentRawResponse = undefined;
|
|
184
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
185
|
+
const callback = (rawResponse, flatResponse) => {
|
|
186
|
+
currentRawResponse = rawResponse;
|
|
187
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
188
|
+
};
|
|
189
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
190
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
191
|
+
return {
|
|
192
|
+
flatResponse,
|
|
193
|
+
rawResponse: {
|
|
194
|
+
statusCode: currentRawResponse.status,
|
|
195
|
+
body: currentRawResponse.parsedBody,
|
|
196
|
+
headers: currentRawResponse.headers.toJSON()
|
|
197
|
+
}
|
|
198
|
+
};
|
|
199
|
+
});
|
|
200
|
+
const lro = new LroImpl(sendOperation, {
|
|
201
|
+
resourceGroupName,
|
|
202
|
+
clusterName,
|
|
203
|
+
databaseName,
|
|
204
|
+
dataConnectionName,
|
|
205
|
+
parameters,
|
|
206
|
+
options
|
|
207
|
+
}, createOrUpdateOperationSpec);
|
|
208
|
+
return new LroEngine(lro, {
|
|
209
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
210
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
211
|
+
});
|
|
212
|
+
});
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* Creates or updates a data connection.
|
|
216
|
+
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
217
|
+
* @param clusterName The name of the Kusto cluster.
|
|
218
|
+
* @param databaseName The name of the database in the Kusto cluster.
|
|
219
|
+
* @param dataConnectionName The name of the data connection.
|
|
220
|
+
* @param parameters The data connection parameters supplied to the CreateOrUpdate operation.
|
|
221
|
+
* @param options The options parameters.
|
|
222
|
+
*/
|
|
223
|
+
beginCreateOrUpdateAndWait(resourceGroupName, clusterName, databaseName, dataConnectionName, parameters, options) {
|
|
224
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
225
|
+
const poller = yield this.beginCreateOrUpdate(resourceGroupName, clusterName, databaseName, dataConnectionName, parameters, options);
|
|
226
|
+
return poller.pollUntilDone();
|
|
227
|
+
});
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* Updates a data connection.
|
|
231
|
+
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
232
|
+
* @param clusterName The name of the Kusto cluster.
|
|
233
|
+
* @param databaseName The name of the database in the Kusto cluster.
|
|
234
|
+
* @param dataConnectionName The name of the data connection.
|
|
235
|
+
* @param parameters The data connection parameters supplied to the Update operation.
|
|
236
|
+
* @param options The options parameters.
|
|
237
|
+
*/
|
|
238
|
+
beginUpdate(resourceGroupName, clusterName, databaseName, dataConnectionName, parameters, options) {
|
|
239
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
240
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
241
|
+
return this.client.sendOperationRequest(args, spec);
|
|
242
|
+
});
|
|
243
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
244
|
+
var _a;
|
|
245
|
+
let currentRawResponse = undefined;
|
|
246
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
247
|
+
const callback = (rawResponse, flatResponse) => {
|
|
248
|
+
currentRawResponse = rawResponse;
|
|
249
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
250
|
+
};
|
|
251
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
252
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
253
|
+
return {
|
|
254
|
+
flatResponse,
|
|
255
|
+
rawResponse: {
|
|
256
|
+
statusCode: currentRawResponse.status,
|
|
257
|
+
body: currentRawResponse.parsedBody,
|
|
258
|
+
headers: currentRawResponse.headers.toJSON()
|
|
259
|
+
}
|
|
260
|
+
};
|
|
261
|
+
});
|
|
262
|
+
const lro = new LroImpl(sendOperation, {
|
|
263
|
+
resourceGroupName,
|
|
264
|
+
clusterName,
|
|
265
|
+
databaseName,
|
|
266
|
+
dataConnectionName,
|
|
267
|
+
parameters,
|
|
268
|
+
options
|
|
269
|
+
}, updateOperationSpec);
|
|
270
|
+
return new LroEngine(lro, {
|
|
271
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
272
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
273
|
+
});
|
|
274
|
+
});
|
|
275
|
+
}
|
|
276
|
+
/**
|
|
277
|
+
* Updates a data connection.
|
|
278
|
+
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
279
|
+
* @param clusterName The name of the Kusto cluster.
|
|
280
|
+
* @param databaseName The name of the database in the Kusto cluster.
|
|
281
|
+
* @param dataConnectionName The name of the data connection.
|
|
282
|
+
* @param parameters The data connection parameters supplied to the Update operation.
|
|
283
|
+
* @param options The options parameters.
|
|
284
|
+
*/
|
|
285
|
+
beginUpdateAndWait(resourceGroupName, clusterName, databaseName, dataConnectionName, parameters, options) {
|
|
286
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
287
|
+
const poller = yield this.beginUpdate(resourceGroupName, clusterName, databaseName, dataConnectionName, parameters, options);
|
|
288
|
+
return poller.pollUntilDone();
|
|
289
|
+
});
|
|
290
|
+
}
|
|
291
|
+
/**
|
|
292
|
+
* Deletes the data connection with the given name.
|
|
293
|
+
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
294
|
+
* @param clusterName The name of the Kusto cluster.
|
|
295
|
+
* @param databaseName The name of the database in the Kusto cluster.
|
|
296
|
+
* @param dataConnectionName The name of the data connection.
|
|
297
|
+
* @param options The options parameters.
|
|
298
|
+
*/
|
|
299
|
+
beginDelete(resourceGroupName, clusterName, databaseName, dataConnectionName, options) {
|
|
300
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
301
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
302
|
+
return this.client.sendOperationRequest(args, spec);
|
|
303
|
+
});
|
|
304
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
305
|
+
var _a;
|
|
306
|
+
let currentRawResponse = undefined;
|
|
307
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
308
|
+
const callback = (rawResponse, flatResponse) => {
|
|
309
|
+
currentRawResponse = rawResponse;
|
|
310
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
311
|
+
};
|
|
312
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
313
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
314
|
+
return {
|
|
315
|
+
flatResponse,
|
|
316
|
+
rawResponse: {
|
|
317
|
+
statusCode: currentRawResponse.status,
|
|
318
|
+
body: currentRawResponse.parsedBody,
|
|
319
|
+
headers: currentRawResponse.headers.toJSON()
|
|
320
|
+
}
|
|
321
|
+
};
|
|
322
|
+
});
|
|
323
|
+
const lro = new LroImpl(sendOperation, {
|
|
324
|
+
resourceGroupName,
|
|
325
|
+
clusterName,
|
|
326
|
+
databaseName,
|
|
327
|
+
dataConnectionName,
|
|
328
|
+
options
|
|
329
|
+
}, deleteOperationSpec);
|
|
330
|
+
return new LroEngine(lro, {
|
|
331
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
332
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
333
|
+
});
|
|
334
|
+
});
|
|
335
|
+
}
|
|
336
|
+
/**
|
|
337
|
+
* Deletes the data connection with the given name.
|
|
338
|
+
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
339
|
+
* @param clusterName The name of the Kusto cluster.
|
|
340
|
+
* @param databaseName The name of the database in the Kusto cluster.
|
|
341
|
+
* @param dataConnectionName The name of the data connection.
|
|
342
|
+
* @param options The options parameters.
|
|
343
|
+
*/
|
|
344
|
+
beginDeleteAndWait(resourceGroupName, clusterName, databaseName, dataConnectionName, options) {
|
|
345
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
346
|
+
const poller = yield this.beginDelete(resourceGroupName, clusterName, databaseName, dataConnectionName, options);
|
|
347
|
+
return poller.pollUntilDone();
|
|
348
|
+
});
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
// Operation Specifications
|
|
352
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
353
|
+
const listByDatabaseOperationSpec = {
|
|
354
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/dataConnections",
|
|
355
|
+
httpMethod: "GET",
|
|
356
|
+
responses: {
|
|
357
|
+
200: {
|
|
358
|
+
bodyMapper: Mappers.DataConnectionListResult
|
|
359
|
+
},
|
|
360
|
+
default: {
|
|
361
|
+
bodyMapper: Mappers.CloudError
|
|
362
|
+
}
|
|
363
|
+
},
|
|
364
|
+
queryParameters: [Parameters.apiVersion],
|
|
365
|
+
urlParameters: [
|
|
366
|
+
Parameters.$host,
|
|
367
|
+
Parameters.resourceGroupName,
|
|
368
|
+
Parameters.clusterName,
|
|
369
|
+
Parameters.subscriptionId,
|
|
370
|
+
Parameters.databaseName
|
|
371
|
+
],
|
|
372
|
+
headerParameters: [Parameters.accept],
|
|
373
|
+
serializer
|
|
374
|
+
};
|
|
375
|
+
const dataConnectionValidationOperationSpec = {
|
|
376
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/dataConnectionValidation",
|
|
377
|
+
httpMethod: "POST",
|
|
378
|
+
responses: {
|
|
379
|
+
200: {
|
|
380
|
+
bodyMapper: Mappers.DataConnectionValidationListResult
|
|
381
|
+
},
|
|
382
|
+
201: {
|
|
383
|
+
bodyMapper: Mappers.DataConnectionValidationListResult
|
|
384
|
+
},
|
|
385
|
+
202: {
|
|
386
|
+
bodyMapper: Mappers.DataConnectionValidationListResult
|
|
387
|
+
},
|
|
388
|
+
204: {
|
|
389
|
+
bodyMapper: Mappers.DataConnectionValidationListResult
|
|
390
|
+
},
|
|
391
|
+
default: {
|
|
392
|
+
bodyMapper: Mappers.CloudError
|
|
393
|
+
}
|
|
394
|
+
},
|
|
395
|
+
requestBody: Parameters.parameters9,
|
|
396
|
+
queryParameters: [Parameters.apiVersion],
|
|
397
|
+
urlParameters: [
|
|
398
|
+
Parameters.$host,
|
|
399
|
+
Parameters.resourceGroupName,
|
|
400
|
+
Parameters.clusterName,
|
|
401
|
+
Parameters.subscriptionId,
|
|
402
|
+
Parameters.databaseName
|
|
403
|
+
],
|
|
404
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
405
|
+
mediaType: "json",
|
|
406
|
+
serializer
|
|
407
|
+
};
|
|
408
|
+
const checkNameAvailabilityOperationSpec = {
|
|
409
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/checkNameAvailability",
|
|
410
|
+
httpMethod: "POST",
|
|
411
|
+
responses: {
|
|
412
|
+
200: {
|
|
413
|
+
bodyMapper: Mappers.CheckNameResult
|
|
414
|
+
},
|
|
415
|
+
default: {
|
|
416
|
+
bodyMapper: Mappers.CloudError
|
|
417
|
+
}
|
|
418
|
+
},
|
|
419
|
+
requestBody: Parameters.dataConnectionName,
|
|
420
|
+
queryParameters: [Parameters.apiVersion],
|
|
421
|
+
urlParameters: [
|
|
422
|
+
Parameters.$host,
|
|
423
|
+
Parameters.resourceGroupName,
|
|
424
|
+
Parameters.clusterName,
|
|
425
|
+
Parameters.subscriptionId,
|
|
426
|
+
Parameters.databaseName
|
|
427
|
+
],
|
|
428
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
429
|
+
mediaType: "json",
|
|
430
|
+
serializer
|
|
431
|
+
};
|
|
432
|
+
const getOperationSpec = {
|
|
433
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/dataConnections/{dataConnectionName}",
|
|
434
|
+
httpMethod: "GET",
|
|
435
|
+
responses: {
|
|
436
|
+
200: {
|
|
437
|
+
bodyMapper: Mappers.DataConnection
|
|
438
|
+
},
|
|
439
|
+
default: {
|
|
440
|
+
bodyMapper: Mappers.CloudError
|
|
441
|
+
}
|
|
442
|
+
},
|
|
443
|
+
queryParameters: [Parameters.apiVersion],
|
|
444
|
+
urlParameters: [
|
|
445
|
+
Parameters.$host,
|
|
446
|
+
Parameters.resourceGroupName,
|
|
447
|
+
Parameters.clusterName,
|
|
448
|
+
Parameters.subscriptionId,
|
|
449
|
+
Parameters.databaseName,
|
|
450
|
+
Parameters.dataConnectionName1
|
|
451
|
+
],
|
|
452
|
+
headerParameters: [Parameters.accept],
|
|
453
|
+
serializer
|
|
454
|
+
};
|
|
455
|
+
const createOrUpdateOperationSpec = {
|
|
456
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/dataConnections/{dataConnectionName}",
|
|
457
|
+
httpMethod: "PUT",
|
|
458
|
+
responses: {
|
|
459
|
+
200: {
|
|
460
|
+
bodyMapper: Mappers.DataConnection
|
|
461
|
+
},
|
|
462
|
+
201: {
|
|
463
|
+
bodyMapper: Mappers.DataConnection
|
|
464
|
+
},
|
|
465
|
+
202: {
|
|
466
|
+
bodyMapper: Mappers.DataConnection
|
|
467
|
+
},
|
|
468
|
+
204: {
|
|
469
|
+
bodyMapper: Mappers.DataConnection
|
|
470
|
+
},
|
|
471
|
+
default: {
|
|
472
|
+
bodyMapper: Mappers.CloudError
|
|
473
|
+
}
|
|
474
|
+
},
|
|
475
|
+
requestBody: Parameters.parameters10,
|
|
476
|
+
queryParameters: [Parameters.apiVersion],
|
|
477
|
+
urlParameters: [
|
|
478
|
+
Parameters.$host,
|
|
479
|
+
Parameters.resourceGroupName,
|
|
480
|
+
Parameters.clusterName,
|
|
481
|
+
Parameters.subscriptionId,
|
|
482
|
+
Parameters.databaseName,
|
|
483
|
+
Parameters.dataConnectionName1
|
|
484
|
+
],
|
|
485
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
486
|
+
mediaType: "json",
|
|
487
|
+
serializer
|
|
488
|
+
};
|
|
489
|
+
const updateOperationSpec = {
|
|
490
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/dataConnections/{dataConnectionName}",
|
|
491
|
+
httpMethod: "PATCH",
|
|
492
|
+
responses: {
|
|
493
|
+
200: {
|
|
494
|
+
bodyMapper: Mappers.DataConnection
|
|
495
|
+
},
|
|
496
|
+
201: {
|
|
497
|
+
bodyMapper: Mappers.DataConnection
|
|
498
|
+
},
|
|
499
|
+
202: {
|
|
500
|
+
bodyMapper: Mappers.DataConnection
|
|
501
|
+
},
|
|
502
|
+
204: {
|
|
503
|
+
bodyMapper: Mappers.DataConnection
|
|
504
|
+
},
|
|
505
|
+
default: {
|
|
506
|
+
bodyMapper: Mappers.CloudError
|
|
507
|
+
}
|
|
508
|
+
},
|
|
509
|
+
requestBody: Parameters.parameters10,
|
|
510
|
+
queryParameters: [Parameters.apiVersion],
|
|
511
|
+
urlParameters: [
|
|
512
|
+
Parameters.$host,
|
|
513
|
+
Parameters.resourceGroupName,
|
|
514
|
+
Parameters.clusterName,
|
|
515
|
+
Parameters.subscriptionId,
|
|
516
|
+
Parameters.databaseName,
|
|
517
|
+
Parameters.dataConnectionName1
|
|
518
|
+
],
|
|
519
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
520
|
+
mediaType: "json",
|
|
521
|
+
serializer
|
|
522
|
+
};
|
|
523
|
+
const deleteOperationSpec = {
|
|
524
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/dataConnections/{dataConnectionName}",
|
|
525
|
+
httpMethod: "DELETE",
|
|
526
|
+
responses: {
|
|
527
|
+
200: {},
|
|
528
|
+
201: {},
|
|
529
|
+
202: {},
|
|
530
|
+
204: {},
|
|
531
|
+
default: {
|
|
532
|
+
bodyMapper: Mappers.CloudError
|
|
533
|
+
}
|
|
534
|
+
},
|
|
535
|
+
queryParameters: [Parameters.apiVersion],
|
|
536
|
+
urlParameters: [
|
|
537
|
+
Parameters.$host,
|
|
538
|
+
Parameters.resourceGroupName,
|
|
539
|
+
Parameters.clusterName,
|
|
540
|
+
Parameters.subscriptionId,
|
|
541
|
+
Parameters.databaseName,
|
|
542
|
+
Parameters.dataConnectionName1
|
|
543
|
+
],
|
|
544
|
+
headerParameters: [Parameters.accept],
|
|
545
|
+
serializer
|
|
546
|
+
};
|
|
547
|
+
//# sourceMappingURL=dataConnections.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dataConnections.js","sourceRoot":"","sources":["../../../src/operations/dataConnections.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAEnD,OAAO,EAAkC,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAoBrC,4CAA4C;AAC5C,mDAAmD;AACnD,MAAM,OAAO,mBAAmB;IAG9B;;;OAGG;IACH,YAAY,MAA6B;QACvC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,cAAc,CACnB,iBAAyB,EACzB,WAAmB,EACnB,YAAoB,EACpB,OAAqD;QAErD,MAAM,IAAI,GAAG,IAAI,CAAC,uBAAuB,CACvC,iBAAiB,EACjB,WAAW,EACX,YAAY,EACZ,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBAC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MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,mBAAmB,GAA6B;IACpD,IAAI,EACF,mLAAmL;IACrL,UAAU,EAAE,QAAQ;IACpB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,mBAAmB;KAC/B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { DatabasePrincipalAssignments } from "../operationsInterfaces";
|
|
3
|
+
import { KustoManagementClient } from "../kustoManagementClient";
|
|
4
|
+
import { PollerLike, PollOperationState } from "@azure/core-lro";
|
|
5
|
+
import { DatabasePrincipalAssignment, DatabasePrincipalAssignmentsListOptionalParams, DatabasePrincipalAssignmentCheckNameRequest, DatabasePrincipalAssignmentsCheckNameAvailabilityOptionalParams, DatabasePrincipalAssignmentsCheckNameAvailabilityResponse, DatabasePrincipalAssignmentsGetOptionalParams, DatabasePrincipalAssignmentsGetResponse, DatabasePrincipalAssignmentsCreateOrUpdateOptionalParams, DatabasePrincipalAssignmentsCreateOrUpdateResponse, DatabasePrincipalAssignmentsDeleteOptionalParams } from "../models";
|
|
6
|
+
/** Class containing DatabasePrincipalAssignments operations. */
|
|
7
|
+
export declare class DatabasePrincipalAssignmentsImpl implements DatabasePrincipalAssignments {
|
|
8
|
+
private readonly client;
|
|
9
|
+
/**
|
|
10
|
+
* Initialize a new instance of the class DatabasePrincipalAssignments class.
|
|
11
|
+
* @param client Reference to the service client
|
|
12
|
+
*/
|
|
13
|
+
constructor(client: KustoManagementClient);
|
|
14
|
+
/**
|
|
15
|
+
* Lists all Kusto cluster database principalAssignments.
|
|
16
|
+
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
17
|
+
* @param clusterName The name of the Kusto cluster.
|
|
18
|
+
* @param databaseName The name of the database in the Kusto cluster.
|
|
19
|
+
* @param options The options parameters.
|
|
20
|
+
*/
|
|
21
|
+
list(resourceGroupName: string, clusterName: string, databaseName: string, options?: DatabasePrincipalAssignmentsListOptionalParams): PagedAsyncIterableIterator<DatabasePrincipalAssignment>;
|
|
22
|
+
private listPagingPage;
|
|
23
|
+
private listPagingAll;
|
|
24
|
+
/**
|
|
25
|
+
* Checks that the database principal assignment is valid and is not already in use.
|
|
26
|
+
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
27
|
+
* @param clusterName The name of the Kusto cluster.
|
|
28
|
+
* @param databaseName The name of the database in the Kusto cluster.
|
|
29
|
+
* @param principalAssignmentName The name of the resource.
|
|
30
|
+
* @param options The options parameters.
|
|
31
|
+
*/
|
|
32
|
+
checkNameAvailability(resourceGroupName: string, clusterName: string, databaseName: string, principalAssignmentName: DatabasePrincipalAssignmentCheckNameRequest, options?: DatabasePrincipalAssignmentsCheckNameAvailabilityOptionalParams): Promise<DatabasePrincipalAssignmentsCheckNameAvailabilityResponse>;
|
|
33
|
+
/**
|
|
34
|
+
* Gets a Kusto cluster database principalAssignment.
|
|
35
|
+
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
36
|
+
* @param clusterName The name of the Kusto cluster.
|
|
37
|
+
* @param databaseName The name of the database in the Kusto cluster.
|
|
38
|
+
* @param principalAssignmentName The name of the Kusto principalAssignment.
|
|
39
|
+
* @param options The options parameters.
|
|
40
|
+
*/
|
|
41
|
+
get(resourceGroupName: string, clusterName: string, databaseName: string, principalAssignmentName: string, options?: DatabasePrincipalAssignmentsGetOptionalParams): Promise<DatabasePrincipalAssignmentsGetResponse>;
|
|
42
|
+
/**
|
|
43
|
+
* Creates a Kusto cluster database principalAssignment.
|
|
44
|
+
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
45
|
+
* @param clusterName The name of the Kusto cluster.
|
|
46
|
+
* @param databaseName The name of the database in the Kusto cluster.
|
|
47
|
+
* @param principalAssignmentName The name of the Kusto principalAssignment.
|
|
48
|
+
* @param parameters The Kusto principalAssignments parameters supplied for the operation.
|
|
49
|
+
* @param options The options parameters.
|
|
50
|
+
*/
|
|
51
|
+
beginCreateOrUpdate(resourceGroupName: string, clusterName: string, databaseName: string, principalAssignmentName: string, parameters: DatabasePrincipalAssignment, options?: DatabasePrincipalAssignmentsCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<DatabasePrincipalAssignmentsCreateOrUpdateResponse>, DatabasePrincipalAssignmentsCreateOrUpdateResponse>>;
|
|
52
|
+
/**
|
|
53
|
+
* Creates a Kusto cluster database principalAssignment.
|
|
54
|
+
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
55
|
+
* @param clusterName The name of the Kusto cluster.
|
|
56
|
+
* @param databaseName The name of the database in the Kusto cluster.
|
|
57
|
+
* @param principalAssignmentName The name of the Kusto principalAssignment.
|
|
58
|
+
* @param parameters The Kusto principalAssignments parameters supplied for the operation.
|
|
59
|
+
* @param options The options parameters.
|
|
60
|
+
*/
|
|
61
|
+
beginCreateOrUpdateAndWait(resourceGroupName: string, clusterName: string, databaseName: string, principalAssignmentName: string, parameters: DatabasePrincipalAssignment, options?: DatabasePrincipalAssignmentsCreateOrUpdateOptionalParams): Promise<DatabasePrincipalAssignmentsCreateOrUpdateResponse>;
|
|
62
|
+
/**
|
|
63
|
+
* Deletes a Kusto principalAssignment.
|
|
64
|
+
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
65
|
+
* @param clusterName The name of the Kusto cluster.
|
|
66
|
+
* @param databaseName The name of the database in the Kusto cluster.
|
|
67
|
+
* @param principalAssignmentName The name of the Kusto principalAssignment.
|
|
68
|
+
* @param options The options parameters.
|
|
69
|
+
*/
|
|
70
|
+
beginDelete(resourceGroupName: string, clusterName: string, databaseName: string, principalAssignmentName: string, options?: DatabasePrincipalAssignmentsDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
|
|
71
|
+
/**
|
|
72
|
+
* Deletes a Kusto principalAssignment.
|
|
73
|
+
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
74
|
+
* @param clusterName The name of the Kusto cluster.
|
|
75
|
+
* @param databaseName The name of the database in the Kusto cluster.
|
|
76
|
+
* @param principalAssignmentName The name of the Kusto principalAssignment.
|
|
77
|
+
* @param options The options parameters.
|
|
78
|
+
*/
|
|
79
|
+
beginDeleteAndWait(resourceGroupName: string, clusterName: string, databaseName: string, principalAssignmentName: string, options?: DatabasePrincipalAssignmentsDeleteOptionalParams): Promise<void>;
|
|
80
|
+
/**
|
|
81
|
+
* Lists all Kusto cluster database principalAssignments.
|
|
82
|
+
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
83
|
+
* @param clusterName The name of the Kusto cluster.
|
|
84
|
+
* @param databaseName The name of the database in the Kusto cluster.
|
|
85
|
+
* @param options The options parameters.
|
|
86
|
+
*/
|
|
87
|
+
private _list;
|
|
88
|
+
}
|
|
89
|
+
//# sourceMappingURL=databasePrincipalAssignments.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"databasePrincipalAssignments.d.ts","sourceRoot":"","sources":["../../../src/operations/databasePrincipalAssignments.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,4BAA4B,EAAE,MAAM,yBAAyB,CAAC;AAIvE,OAAO,EAAE,qBAAqB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