@azure/arm-kusto 8.2.1-alpha.20250717.1 → 8.2.1-alpha.20250718.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/kustoManagementClient.js +29 -5
- package/dist/browser/kustoManagementClient.js.map +1 -1
- package/dist/browser/lroImpl.js +7 -3
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/mappers.js +443 -211
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/attachedDatabaseConfigurations.js +32 -39
- package/dist/browser/operations/attachedDatabaseConfigurations.js.map +1 -1
- package/dist/browser/operations/clusterPrincipalAssignments.js +32 -39
- package/dist/browser/operations/clusterPrincipalAssignments.js.map +1 -1
- package/dist/browser/operations/clusters.js +228 -321
- package/dist/browser/operations/clusters.js.map +1 -1
- package/dist/browser/operations/dataConnections.js +54 -51
- package/dist/browser/operations/dataConnections.js.map +1 -1
- package/dist/browser/operations/databaseOperations.js +1 -0
- package/dist/browser/operations/databaseOperations.js.map +1 -1
- package/dist/browser/operations/databasePrincipalAssignments.js +32 -39
- package/dist/browser/operations/databasePrincipalAssignments.js.map +1 -1
- package/dist/browser/operations/databases.js +65 -84
- package/dist/browser/operations/databases.js.map +1 -1
- package/dist/browser/operations/managedPrivateEndpoints.js +43 -45
- package/dist/browser/operations/managedPrivateEndpoints.js.map +1 -1
- package/dist/browser/operations/operations.js +23 -40
- package/dist/browser/operations/operations.js.map +1 -1
- package/dist/browser/operations/operationsResults.js +1 -0
- package/dist/browser/operations/operationsResults.js.map +1 -1
- package/dist/browser/operations/operationsResultsLocation.js +1 -0
- package/dist/browser/operations/operationsResultsLocation.js.map +1 -1
- package/dist/browser/operations/privateEndpointConnections.js +32 -39
- package/dist/browser/operations/privateEndpointConnections.js.map +1 -1
- package/dist/browser/operations/privateLinkResources.js +10 -27
- package/dist/browser/operations/privateLinkResources.js.map +1 -1
- package/dist/browser/operations/sandboxCustomImages.js +43 -45
- package/dist/browser/operations/sandboxCustomImages.js.map +1 -1
- package/dist/browser/operations/scripts.js +43 -45
- package/dist/browser/operations/scripts.js.map +1 -1
- package/dist/browser/operations/skus.js +10 -27
- package/dist/browser/operations/skus.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/commonjs/kustoManagementClient.js +29 -5
- package/dist/commonjs/kustoManagementClient.js.map +1 -1
- package/dist/commonjs/lroImpl.js +7 -3
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/mappers.js +443 -211
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/attachedDatabaseConfigurations.js +32 -38
- package/dist/commonjs/operations/attachedDatabaseConfigurations.js.map +1 -1
- package/dist/commonjs/operations/clusterPrincipalAssignments.js +32 -38
- package/dist/commonjs/operations/clusterPrincipalAssignments.js.map +1 -1
- package/dist/commonjs/operations/clusters.js +228 -320
- package/dist/commonjs/operations/clusters.js.map +1 -1
- package/dist/commonjs/operations/dataConnections.js +54 -50
- package/dist/commonjs/operations/dataConnections.js.map +1 -1
- package/dist/commonjs/operations/databaseOperations.js +1 -0
- package/dist/commonjs/operations/databaseOperations.js.map +1 -1
- package/dist/commonjs/operations/databasePrincipalAssignments.js +32 -38
- package/dist/commonjs/operations/databasePrincipalAssignments.js.map +1 -1
- package/dist/commonjs/operations/databases.js +65 -83
- package/dist/commonjs/operations/databases.js.map +1 -1
- package/dist/commonjs/operations/managedPrivateEndpoints.js +43 -44
- package/dist/commonjs/operations/managedPrivateEndpoints.js.map +1 -1
- package/dist/commonjs/operations/operations.js +23 -39
- package/dist/commonjs/operations/operations.js.map +1 -1
- package/dist/commonjs/operations/operationsResults.js +1 -0
- package/dist/commonjs/operations/operationsResults.js.map +1 -1
- package/dist/commonjs/operations/operationsResultsLocation.js +1 -0
- package/dist/commonjs/operations/operationsResultsLocation.js.map +1 -1
- package/dist/commonjs/operations/privateEndpointConnections.js +32 -38
- package/dist/commonjs/operations/privateEndpointConnections.js.map +1 -1
- package/dist/commonjs/operations/privateLinkResources.js +10 -26
- package/dist/commonjs/operations/privateLinkResources.js.map +1 -1
- package/dist/commonjs/operations/sandboxCustomImages.js +43 -44
- package/dist/commonjs/operations/sandboxCustomImages.js.map +1 -1
- package/dist/commonjs/operations/scripts.js +43 -44
- package/dist/commonjs/operations/scripts.js.map +1 -1
- package/dist/commonjs/operations/skus.js +10 -26
- package/dist/commonjs/operations/skus.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/kustoManagementClient.js +29 -5
- package/dist/esm/kustoManagementClient.js.map +1 -1
- package/dist/esm/lroImpl.js +7 -3
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/mappers.js +443 -211
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/attachedDatabaseConfigurations.js +32 -39
- package/dist/esm/operations/attachedDatabaseConfigurations.js.map +1 -1
- package/dist/esm/operations/clusterPrincipalAssignments.js +32 -39
- package/dist/esm/operations/clusterPrincipalAssignments.js.map +1 -1
- package/dist/esm/operations/clusters.js +228 -321
- package/dist/esm/operations/clusters.js.map +1 -1
- package/dist/esm/operations/dataConnections.js +54 -51
- package/dist/esm/operations/dataConnections.js.map +1 -1
- package/dist/esm/operations/databaseOperations.js +1 -0
- package/dist/esm/operations/databaseOperations.js.map +1 -1
- package/dist/esm/operations/databasePrincipalAssignments.js +32 -39
- package/dist/esm/operations/databasePrincipalAssignments.js.map +1 -1
- package/dist/esm/operations/databases.js +65 -84
- package/dist/esm/operations/databases.js.map +1 -1
- package/dist/esm/operations/managedPrivateEndpoints.js +43 -45
- package/dist/esm/operations/managedPrivateEndpoints.js.map +1 -1
- package/dist/esm/operations/operations.js +23 -40
- package/dist/esm/operations/operations.js.map +1 -1
- package/dist/esm/operations/operationsResults.js +1 -0
- package/dist/esm/operations/operationsResults.js.map +1 -1
- package/dist/esm/operations/operationsResultsLocation.js +1 -0
- package/dist/esm/operations/operationsResultsLocation.js.map +1 -1
- package/dist/esm/operations/privateEndpointConnections.js +32 -39
- package/dist/esm/operations/privateEndpointConnections.js.map +1 -1
- package/dist/esm/operations/privateLinkResources.js +10 -27
- package/dist/esm/operations/privateLinkResources.js.map +1 -1
- package/dist/esm/operations/sandboxCustomImages.js +43 -45
- package/dist/esm/operations/sandboxCustomImages.js.map +1 -1
- package/dist/esm/operations/scripts.js +43 -45
- package/dist/esm/operations/scripts.js.map +1 -1
- package/dist/esm/operations/skus.js +10 -27
- package/dist/esm/operations/skus.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/react-native/kustoManagementClient.js +29 -5
- package/dist/react-native/kustoManagementClient.js.map +1 -1
- package/dist/react-native/lroImpl.js +7 -3
- package/dist/react-native/lroImpl.js.map +1 -1
- package/dist/react-native/models/mappers.js +443 -211
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/attachedDatabaseConfigurations.js +32 -39
- package/dist/react-native/operations/attachedDatabaseConfigurations.js.map +1 -1
- package/dist/react-native/operations/clusterPrincipalAssignments.js +32 -39
- package/dist/react-native/operations/clusterPrincipalAssignments.js.map +1 -1
- package/dist/react-native/operations/clusters.js +228 -321
- package/dist/react-native/operations/clusters.js.map +1 -1
- package/dist/react-native/operations/dataConnections.js +54 -51
- package/dist/react-native/operations/dataConnections.js.map +1 -1
- package/dist/react-native/operations/databaseOperations.js +1 -0
- package/dist/react-native/operations/databaseOperations.js.map +1 -1
- package/dist/react-native/operations/databasePrincipalAssignments.js +32 -39
- package/dist/react-native/operations/databasePrincipalAssignments.js.map +1 -1
- package/dist/react-native/operations/databases.js +65 -84
- package/dist/react-native/operations/databases.js.map +1 -1
- package/dist/react-native/operations/managedPrivateEndpoints.js +43 -45
- package/dist/react-native/operations/managedPrivateEndpoints.js.map +1 -1
- package/dist/react-native/operations/operations.js +23 -40
- package/dist/react-native/operations/operations.js.map +1 -1
- package/dist/react-native/operations/operationsResults.js +1 -0
- package/dist/react-native/operations/operationsResults.js.map +1 -1
- package/dist/react-native/operations/operationsResultsLocation.js +1 -0
- package/dist/react-native/operations/operationsResultsLocation.js.map +1 -1
- package/dist/react-native/operations/privateEndpointConnections.js +32 -39
- package/dist/react-native/operations/privateEndpointConnections.js.map +1 -1
- package/dist/react-native/operations/privateLinkResources.js +10 -27
- package/dist/react-native/operations/privateLinkResources.js.map +1 -1
- package/dist/react-native/operations/sandboxCustomImages.js +43 -45
- package/dist/react-native/operations/sandboxCustomImages.js.map +1 -1
- package/dist/react-native/operations/scripts.js +43 -45
- package/dist/react-native/operations/scripts.js.map +1 -1
- package/dist/react-native/operations/skus.js +10 -27
- package/dist/react-native/operations/skus.js.map +1 -1
- package/dist/react-native/pagingHelper.js +2 -4
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/package.json +2 -2
- package/review/arm-kusto-node.api.md +2342 -2342
|
@@ -17,6 +17,7 @@ const lroImpl_js_1 = require("../lroImpl.js");
|
|
|
17
17
|
/// <reference lib="esnext.asynciterable" />
|
|
18
18
|
/** Class containing DataConnections operations. */
|
|
19
19
|
class DataConnectionsImpl {
|
|
20
|
+
client;
|
|
20
21
|
/**
|
|
21
22
|
* Initialize a new instance of the class DataConnections class.
|
|
22
23
|
* @param client Reference to the service client
|
|
@@ -41,39 +42,22 @@ class DataConnectionsImpl {
|
|
|
41
42
|
return this;
|
|
42
43
|
},
|
|
43
44
|
byPage: (settings) => {
|
|
44
|
-
if (settings
|
|
45
|
+
if (settings?.maxPageSize) {
|
|
45
46
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
46
47
|
}
|
|
47
48
|
return this.listByDatabasePagingPage(resourceGroupName, clusterName, databaseName, options, settings);
|
|
48
49
|
},
|
|
49
50
|
};
|
|
50
51
|
}
|
|
51
|
-
listByDatabasePagingPage(resourceGroupName, clusterName, databaseName, options, _settings) {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
yield yield tslib_1.__await(result.value || []);
|
|
56
|
-
});
|
|
52
|
+
async *listByDatabasePagingPage(resourceGroupName, clusterName, databaseName, options, _settings) {
|
|
53
|
+
let result;
|
|
54
|
+
result = await this._listByDatabase(resourceGroupName, clusterName, databaseName, options);
|
|
55
|
+
yield result.value || [];
|
|
57
56
|
}
|
|
58
|
-
listByDatabasePagingAll(resourceGroupName, clusterName, databaseName, options) {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listByDatabasePagingPage(resourceGroupName, clusterName, databaseName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
63
|
-
_c = _f.value;
|
|
64
|
-
_d = false;
|
|
65
|
-
const page = _c;
|
|
66
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
70
|
-
finally {
|
|
71
|
-
try {
|
|
72
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
73
|
-
}
|
|
74
|
-
finally { if (e_1) throw e_1.error; }
|
|
75
|
-
}
|
|
76
|
-
});
|
|
57
|
+
async *listByDatabasePagingAll(resourceGroupName, clusterName, databaseName, options) {
|
|
58
|
+
for await (const page of this.listByDatabasePagingPage(resourceGroupName, clusterName, databaseName, options)) {
|
|
59
|
+
yield* page;
|
|
60
|
+
}
|
|
77
61
|
}
|
|
78
62
|
/**
|
|
79
63
|
* Returns the list of data connections of the given Kusto database.
|
|
@@ -98,14 +82,19 @@ class DataConnectionsImpl {
|
|
|
98
82
|
return this.client.sendOperationRequest(args, spec);
|
|
99
83
|
};
|
|
100
84
|
const sendOperationFn = async (args, spec) => {
|
|
101
|
-
var _a;
|
|
102
85
|
let currentRawResponse = undefined;
|
|
103
|
-
const providedCallback =
|
|
86
|
+
const providedCallback = args.options?.onResponse;
|
|
104
87
|
const callback = (rawResponse, flatResponse) => {
|
|
105
88
|
currentRawResponse = rawResponse;
|
|
106
|
-
providedCallback
|
|
89
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
90
|
+
};
|
|
91
|
+
const updatedArgs = {
|
|
92
|
+
...args,
|
|
93
|
+
options: {
|
|
94
|
+
...args.options,
|
|
95
|
+
onResponse: callback,
|
|
96
|
+
},
|
|
107
97
|
};
|
|
108
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
109
98
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
110
99
|
return {
|
|
111
100
|
flatResponse,
|
|
@@ -128,8 +117,8 @@ class DataConnectionsImpl {
|
|
|
128
117
|
spec: dataConnectionValidationOperationSpec,
|
|
129
118
|
});
|
|
130
119
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
131
|
-
restoreFrom: options
|
|
132
|
-
intervalInMs: options
|
|
120
|
+
restoreFrom: options?.resumeFrom,
|
|
121
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
133
122
|
});
|
|
134
123
|
await poller.poll();
|
|
135
124
|
return poller;
|
|
@@ -194,14 +183,19 @@ class DataConnectionsImpl {
|
|
|
194
183
|
return this.client.sendOperationRequest(args, spec);
|
|
195
184
|
};
|
|
196
185
|
const sendOperationFn = async (args, spec) => {
|
|
197
|
-
var _a;
|
|
198
186
|
let currentRawResponse = undefined;
|
|
199
|
-
const providedCallback =
|
|
187
|
+
const providedCallback = args.options?.onResponse;
|
|
200
188
|
const callback = (rawResponse, flatResponse) => {
|
|
201
189
|
currentRawResponse = rawResponse;
|
|
202
|
-
providedCallback
|
|
190
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
191
|
+
};
|
|
192
|
+
const updatedArgs = {
|
|
193
|
+
...args,
|
|
194
|
+
options: {
|
|
195
|
+
...args.options,
|
|
196
|
+
onResponse: callback,
|
|
197
|
+
},
|
|
203
198
|
};
|
|
204
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
205
199
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
206
200
|
return {
|
|
207
201
|
flatResponse,
|
|
@@ -225,8 +219,8 @@ class DataConnectionsImpl {
|
|
|
225
219
|
spec: createOrUpdateOperationSpec,
|
|
226
220
|
});
|
|
227
221
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
228
|
-
restoreFrom: options
|
|
229
|
-
intervalInMs: options
|
|
222
|
+
restoreFrom: options?.resumeFrom,
|
|
223
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
230
224
|
});
|
|
231
225
|
await poller.poll();
|
|
232
226
|
return poller;
|
|
@@ -258,14 +252,19 @@ class DataConnectionsImpl {
|
|
|
258
252
|
return this.client.sendOperationRequest(args, spec);
|
|
259
253
|
};
|
|
260
254
|
const sendOperationFn = async (args, spec) => {
|
|
261
|
-
var _a;
|
|
262
255
|
let currentRawResponse = undefined;
|
|
263
|
-
const providedCallback =
|
|
256
|
+
const providedCallback = args.options?.onResponse;
|
|
264
257
|
const callback = (rawResponse, flatResponse) => {
|
|
265
258
|
currentRawResponse = rawResponse;
|
|
266
|
-
providedCallback
|
|
259
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
260
|
+
};
|
|
261
|
+
const updatedArgs = {
|
|
262
|
+
...args,
|
|
263
|
+
options: {
|
|
264
|
+
...args.options,
|
|
265
|
+
onResponse: callback,
|
|
266
|
+
},
|
|
267
267
|
};
|
|
268
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
269
268
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
270
269
|
return {
|
|
271
270
|
flatResponse,
|
|
@@ -289,8 +288,8 @@ class DataConnectionsImpl {
|
|
|
289
288
|
spec: updateOperationSpec,
|
|
290
289
|
});
|
|
291
290
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
292
|
-
restoreFrom: options
|
|
293
|
-
intervalInMs: options
|
|
291
|
+
restoreFrom: options?.resumeFrom,
|
|
292
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
294
293
|
});
|
|
295
294
|
await poller.poll();
|
|
296
295
|
return poller;
|
|
@@ -321,14 +320,19 @@ class DataConnectionsImpl {
|
|
|
321
320
|
return this.client.sendOperationRequest(args, spec);
|
|
322
321
|
};
|
|
323
322
|
const sendOperationFn = async (args, spec) => {
|
|
324
|
-
var _a;
|
|
325
323
|
let currentRawResponse = undefined;
|
|
326
|
-
const providedCallback =
|
|
324
|
+
const providedCallback = args.options?.onResponse;
|
|
327
325
|
const callback = (rawResponse, flatResponse) => {
|
|
328
326
|
currentRawResponse = rawResponse;
|
|
329
|
-
providedCallback
|
|
327
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
328
|
+
};
|
|
329
|
+
const updatedArgs = {
|
|
330
|
+
...args,
|
|
331
|
+
options: {
|
|
332
|
+
...args.options,
|
|
333
|
+
onResponse: callback,
|
|
334
|
+
},
|
|
330
335
|
};
|
|
331
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
332
336
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
333
337
|
return {
|
|
334
338
|
flatResponse,
|
|
@@ -351,8 +355,8 @@ class DataConnectionsImpl {
|
|
|
351
355
|
spec: deleteOperationSpec,
|
|
352
356
|
});
|
|
353
357
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
354
|
-
restoreFrom: options
|
|
355
|
-
intervalInMs: options
|
|
358
|
+
restoreFrom: options?.resumeFrom,
|
|
359
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
356
360
|
});
|
|
357
361
|
await poller.poll();
|
|
358
362
|
return poller;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dataConnections.js","sourceRoot":"","sources":["../../../src/operations/dataConnections.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAIH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAIyB;AACzB,8CAA8C;AAoB9C,4CAA4C;AAC5C,mDAAmD;AACnD,MAAa,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;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,wBAAwB,CAClC,iBAAiB,EACjB,WAAW,EACX,YAAY,EACZ,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,wBAAwB,CACrC,iBAAyB,EACzB,WAAmB,EACnB,YAAoB,EACpB,OAAqD,EACrD,SAAwB;;YAExB,IAAI,MAA6C,CAAC;YAClD,MAAM,GAAG,sBAAM,IAAI,CAAC,eAAe,CACjC,iBAAiB,EACjB,WAAW,EACX,YAAY,EACZ,OAAO,CACR,CAAA,CAAC;YACF,4BAAM,MAAM,CAA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AU,CAAC,WAAW;QACtB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,mBAAmB;KAC/B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,mBAAmB,GAA6B;IACpD,IAAI,EAAE,mLAAmL;IACzL,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,aAAa;SAClC;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","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { DataConnections } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { KustoManagementClient } from \"../kustoManagementClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n DataConnectionUnion,\n DataConnectionsListByDatabaseOptionalParams,\n DataConnectionsListByDatabaseResponse,\n DataConnectionValidation,\n DataConnectionsDataConnectionValidationOptionalParams,\n DataConnectionsDataConnectionValidationResponse,\n DataConnectionCheckNameRequest,\n DataConnectionsCheckNameAvailabilityOptionalParams,\n DataConnectionsCheckNameAvailabilityResponse,\n DataConnectionsGetOptionalParams,\n DataConnectionsGetResponse,\n DataConnectionsCreateOrUpdateOptionalParams,\n DataConnectionsCreateOrUpdateResponse,\n DataConnectionsUpdateOptionalParams,\n DataConnectionsUpdateResponse,\n DataConnectionsDeleteOptionalParams,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing DataConnections operations. */\nexport class DataConnectionsImpl implements DataConnections {\n private readonly client: KustoManagementClient;\n\n /**\n * Initialize a new instance of the class DataConnections class.\n * @param client Reference to the service client\n */\n constructor(client: KustoManagementClient) {\n this.client = client;\n }\n\n /**\n * Returns the list of data connections of the given Kusto database.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Kusto cluster.\n * @param databaseName The name of the database in the Kusto cluster.\n * @param options The options parameters.\n */\n public listByDatabase(\n resourceGroupName: string,\n clusterName: string,\n databaseName: string,\n options?: DataConnectionsListByDatabaseOptionalParams,\n ): PagedAsyncIterableIterator<DataConnectionUnion> {\n const iter = this.listByDatabasePagingAll(\n resourceGroupName,\n clusterName,\n databaseName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByDatabasePagingPage(\n resourceGroupName,\n clusterName,\n databaseName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByDatabasePagingPage(\n resourceGroupName: string,\n clusterName: string,\n databaseName: string,\n options?: DataConnectionsListByDatabaseOptionalParams,\n _settings?: PageSettings,\n ): AsyncIterableIterator<DataConnectionUnion[]> {\n let result: DataConnectionsListByDatabaseResponse;\n result = await this._listByDatabase(\n resourceGroupName,\n clusterName,\n databaseName,\n options,\n );\n yield result.value || [];\n }\n\n private async *listByDatabasePagingAll(\n resourceGroupName: string,\n clusterName: string,\n databaseName: string,\n options?: DataConnectionsListByDatabaseOptionalParams,\n ): AsyncIterableIterator<DataConnectionUnion> {\n for await (const page of this.listByDatabasePagingPage(\n resourceGroupName,\n clusterName,\n databaseName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Returns the list of data connections of the given Kusto database.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Kusto cluster.\n * @param databaseName The name of the database in the Kusto cluster.\n * @param options The options parameters.\n */\n private _listByDatabase(\n resourceGroupName: string,\n clusterName: string,\n databaseName: string,\n options?: DataConnectionsListByDatabaseOptionalParams,\n ): Promise<DataConnectionsListByDatabaseResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, clusterName, databaseName, options },\n listByDatabaseOperationSpec,\n );\n }\n\n /**\n * Checks that the data connection parameters are valid.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Kusto cluster.\n * @param databaseName The name of the database in the Kusto cluster.\n * @param parameters The data connection parameters supplied to the CreateOrUpdate operation.\n * @param options The options parameters.\n */\n async beginDataConnectionValidation(\n resourceGroupName: string,\n clusterName: string,\n databaseName: string,\n parameters: DataConnectionValidation,\n options?: DataConnectionsDataConnectionValidationOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<DataConnectionsDataConnectionValidationResponse>,\n DataConnectionsDataConnectionValidationResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<DataConnectionsDataConnectionValidationResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n clusterName,\n databaseName,\n parameters,\n options,\n },\n spec: dataConnectionValidationOperationSpec,\n });\n const poller = await createHttpPoller<\n DataConnectionsDataConnectionValidationResponse,\n OperationState<DataConnectionsDataConnectionValidationResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Checks that the data connection parameters are valid.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Kusto cluster.\n * @param databaseName The name of the database in the Kusto cluster.\n * @param parameters The data connection parameters supplied to the CreateOrUpdate operation.\n * @param options The options parameters.\n */\n async beginDataConnectionValidationAndWait(\n resourceGroupName: string,\n clusterName: string,\n databaseName: string,\n parameters: DataConnectionValidation,\n options?: DataConnectionsDataConnectionValidationOptionalParams,\n ): Promise<DataConnectionsDataConnectionValidationResponse> {\n const poller = await this.beginDataConnectionValidation(\n resourceGroupName,\n clusterName,\n databaseName,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Checks that the data connection name is valid and is not already in use.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Kusto cluster.\n * @param databaseName The name of the database in the Kusto cluster.\n * @param dataConnectionName The name of the data connection.\n * @param options The options parameters.\n */\n checkNameAvailability(\n resourceGroupName: string,\n clusterName: string,\n databaseName: string,\n dataConnectionName: DataConnectionCheckNameRequest,\n options?: DataConnectionsCheckNameAvailabilityOptionalParams,\n ): Promise<DataConnectionsCheckNameAvailabilityResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n clusterName,\n databaseName,\n dataConnectionName,\n options,\n },\n checkNameAvailabilityOperationSpec,\n );\n }\n\n /**\n * Returns a data connection.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Kusto cluster.\n * @param databaseName The name of the database in the Kusto cluster.\n * @param dataConnectionName The name of the data connection.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n clusterName: string,\n databaseName: string,\n dataConnectionName: string,\n options?: DataConnectionsGetOptionalParams,\n ): Promise<DataConnectionsGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n clusterName,\n databaseName,\n dataConnectionName,\n options,\n },\n getOperationSpec,\n );\n }\n\n /**\n * Creates or updates a data connection.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Kusto cluster.\n * @param databaseName The name of the database in the Kusto cluster.\n * @param dataConnectionName The name of the data connection.\n * @param parameters The data connection parameters supplied to the CreateOrUpdate operation.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n clusterName: string,\n databaseName: string,\n dataConnectionName: string,\n parameters: DataConnectionUnion,\n options?: DataConnectionsCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<DataConnectionsCreateOrUpdateResponse>,\n DataConnectionsCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<DataConnectionsCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n clusterName,\n databaseName,\n dataConnectionName,\n parameters,\n options,\n },\n spec: createOrUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n DataConnectionsCreateOrUpdateResponse,\n OperationState<DataConnectionsCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Creates or updates a data connection.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Kusto cluster.\n * @param databaseName The name of the database in the Kusto cluster.\n * @param dataConnectionName The name of the data connection.\n * @param parameters The data connection parameters supplied to the CreateOrUpdate operation.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n clusterName: string,\n databaseName: string,\n dataConnectionName: string,\n parameters: DataConnectionUnion,\n options?: DataConnectionsCreateOrUpdateOptionalParams,\n ): Promise<DataConnectionsCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n clusterName,\n databaseName,\n dataConnectionName,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Updates a data connection.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Kusto cluster.\n * @param databaseName The name of the database in the Kusto cluster.\n * @param dataConnectionName The name of the data connection.\n * @param parameters The data connection parameters supplied to the Update operation.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n clusterName: string,\n databaseName: string,\n dataConnectionName: string,\n parameters: DataConnectionUnion,\n options?: DataConnectionsUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<DataConnectionsUpdateResponse>,\n DataConnectionsUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<DataConnectionsUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n clusterName,\n databaseName,\n dataConnectionName,\n parameters,\n options,\n },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n DataConnectionsUpdateResponse,\n OperationState<DataConnectionsUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Updates a data connection.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Kusto cluster.\n * @param databaseName The name of the database in the Kusto cluster.\n * @param dataConnectionName The name of the data connection.\n * @param parameters The data connection parameters supplied to the Update operation.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n clusterName: string,\n databaseName: string,\n dataConnectionName: string,\n parameters: DataConnectionUnion,\n options?: DataConnectionsUpdateOptionalParams,\n ): Promise<DataConnectionsUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n clusterName,\n databaseName,\n dataConnectionName,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes the data connection with the given name.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Kusto cluster.\n * @param databaseName The name of the database in the Kusto cluster.\n * @param dataConnectionName The name of the data connection.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n clusterName: string,\n databaseName: string,\n dataConnectionName: string,\n options?: DataConnectionsDeleteOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n clusterName,\n databaseName,\n dataConnectionName,\n options,\n },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes the data connection with the given name.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Kusto cluster.\n * @param databaseName The name of the database in the Kusto cluster.\n * @param dataConnectionName The name of the data connection.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n clusterName: string,\n databaseName: string,\n dataConnectionName: string,\n options?: DataConnectionsDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n clusterName,\n databaseName,\n dataConnectionName,\n options,\n );\n return poller.pollUntilDone();\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByDatabaseOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/dataConnections\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DataConnectionListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n Parameters.subscriptionId,\n Parameters.databaseName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst dataConnectionValidationOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/dataConnectionValidation\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.DataConnectionValidationListResult,\n },\n 201: {\n bodyMapper: Mappers.DataConnectionValidationListResult,\n },\n 202: {\n bodyMapper: Mappers.DataConnectionValidationListResult,\n },\n 204: {\n bodyMapper: Mappers.DataConnectionValidationListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.parameters11,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n Parameters.subscriptionId,\n Parameters.databaseName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst checkNameAvailabilityOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/checkNameAvailability\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CheckNameResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.dataConnectionName,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n Parameters.subscriptionId,\n Parameters.databaseName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/dataConnections/{dataConnectionName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DataConnection,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n Parameters.subscriptionId,\n Parameters.databaseName,\n Parameters.dataConnectionName1,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/dataConnections/{dataConnectionName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.DataConnection,\n },\n 201: {\n bodyMapper: Mappers.DataConnection,\n },\n 202: {\n bodyMapper: Mappers.DataConnection,\n },\n 204: {\n bodyMapper: Mappers.DataConnection,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.parameters12,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n Parameters.subscriptionId,\n Parameters.databaseName,\n Parameters.dataConnectionName1,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/dataConnections/{dataConnectionName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.DataConnection,\n },\n 201: {\n bodyMapper: Mappers.DataConnection,\n },\n 202: {\n bodyMapper: Mappers.DataConnection,\n },\n 204: {\n bodyMapper: Mappers.DataConnection,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.parameters12,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n Parameters.subscriptionId,\n Parameters.databaseName,\n Parameters.dataConnectionName1,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/dataConnections/{dataConnectionName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n Parameters.subscriptionId,\n Parameters.databaseName,\n Parameters.dataConnectionName1,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"dataConnections.js","sourceRoot":"","sources":["../../../src/operations/dataConnections.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAIH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAIyB;AACzB,8CAA8C;AAoB9C,4CAA4C;AAC5C,mDAAmD;AACnD,MAAa,mBAAmB;IACb,MAAM,CAAwB;IAE/C;;;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;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,wBAAwB,CAClC,iBAAiB,EACjB,WAAW,EACX,YAAY,EACZ,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;IAEO,KAAK,CAAC,CAAC,wBAAwB,CACrC,iBAAyB,EACzB,WAAmB,EACnB,YAAoB,EACpB,OAAqD,EACrD,SAAwB;QAExB,IAAI,MAA6C,CAAC;QAClD,MAAM,GAAG,MAAM,IAAI,CAAC,eAAe,CACjC,iBAAiB,EACjB,WAAW,EACX,YAAY,EACZ,OAAO,CACR,CAAC;QACF,MAAM,MAAM,CAAC,KAAK,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G,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;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","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { DataConnections } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { KustoManagementClient } from \"../kustoManagementClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n DataConnectionUnion,\n DataConnectionsListByDatabaseOptionalParams,\n DataConnectionsListByDatabaseResponse,\n DataConnectionValidation,\n DataConnectionsDataConnectionValidationOptionalParams,\n DataConnectionsDataConnectionValidationResponse,\n DataConnectionCheckNameRequest,\n DataConnectionsCheckNameAvailabilityOptionalParams,\n DataConnectionsCheckNameAvailabilityResponse,\n DataConnectionsGetOptionalParams,\n DataConnectionsGetResponse,\n DataConnectionsCreateOrUpdateOptionalParams,\n DataConnectionsCreateOrUpdateResponse,\n DataConnectionsUpdateOptionalParams,\n DataConnectionsUpdateResponse,\n DataConnectionsDeleteOptionalParams,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing DataConnections operations. */\nexport class DataConnectionsImpl implements DataConnections {\n private readonly client: KustoManagementClient;\n\n /**\n * Initialize a new instance of the class DataConnections class.\n * @param client Reference to the service client\n */\n constructor(client: KustoManagementClient) {\n this.client = client;\n }\n\n /**\n * Returns the list of data connections of the given Kusto database.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Kusto cluster.\n * @param databaseName The name of the database in the Kusto cluster.\n * @param options The options parameters.\n */\n public listByDatabase(\n resourceGroupName: string,\n clusterName: string,\n databaseName: string,\n options?: DataConnectionsListByDatabaseOptionalParams,\n ): PagedAsyncIterableIterator<DataConnectionUnion> {\n const iter = this.listByDatabasePagingAll(\n resourceGroupName,\n clusterName,\n databaseName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByDatabasePagingPage(\n resourceGroupName,\n clusterName,\n databaseName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByDatabasePagingPage(\n resourceGroupName: string,\n clusterName: string,\n databaseName: string,\n options?: DataConnectionsListByDatabaseOptionalParams,\n _settings?: PageSettings,\n ): AsyncIterableIterator<DataConnectionUnion[]> {\n let result: DataConnectionsListByDatabaseResponse;\n result = await this._listByDatabase(\n resourceGroupName,\n clusterName,\n databaseName,\n options,\n );\n yield result.value || [];\n }\n\n private async *listByDatabasePagingAll(\n resourceGroupName: string,\n clusterName: string,\n databaseName: string,\n options?: DataConnectionsListByDatabaseOptionalParams,\n ): AsyncIterableIterator<DataConnectionUnion> {\n for await (const page of this.listByDatabasePagingPage(\n resourceGroupName,\n clusterName,\n databaseName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Returns the list of data connections of the given Kusto database.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Kusto cluster.\n * @param databaseName The name of the database in the Kusto cluster.\n * @param options The options parameters.\n */\n private _listByDatabase(\n resourceGroupName: string,\n clusterName: string,\n databaseName: string,\n options?: DataConnectionsListByDatabaseOptionalParams,\n ): Promise<DataConnectionsListByDatabaseResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, clusterName, databaseName, options },\n listByDatabaseOperationSpec,\n );\n }\n\n /**\n * Checks that the data connection parameters are valid.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Kusto cluster.\n * @param databaseName The name of the database in the Kusto cluster.\n * @param parameters The data connection parameters supplied to the CreateOrUpdate operation.\n * @param options The options parameters.\n */\n async beginDataConnectionValidation(\n resourceGroupName: string,\n clusterName: string,\n databaseName: string,\n parameters: DataConnectionValidation,\n options?: DataConnectionsDataConnectionValidationOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<DataConnectionsDataConnectionValidationResponse>,\n DataConnectionsDataConnectionValidationResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<DataConnectionsDataConnectionValidationResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n clusterName,\n databaseName,\n parameters,\n options,\n },\n spec: dataConnectionValidationOperationSpec,\n });\n const poller = await createHttpPoller<\n DataConnectionsDataConnectionValidationResponse,\n OperationState<DataConnectionsDataConnectionValidationResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Checks that the data connection parameters are valid.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Kusto cluster.\n * @param databaseName The name of the database in the Kusto cluster.\n * @param parameters The data connection parameters supplied to the CreateOrUpdate operation.\n * @param options The options parameters.\n */\n async beginDataConnectionValidationAndWait(\n resourceGroupName: string,\n clusterName: string,\n databaseName: string,\n parameters: DataConnectionValidation,\n options?: DataConnectionsDataConnectionValidationOptionalParams,\n ): Promise<DataConnectionsDataConnectionValidationResponse> {\n const poller = await this.beginDataConnectionValidation(\n resourceGroupName,\n clusterName,\n databaseName,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Checks that the data connection name is valid and is not already in use.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Kusto cluster.\n * @param databaseName The name of the database in the Kusto cluster.\n * @param dataConnectionName The name of the data connection.\n * @param options The options parameters.\n */\n checkNameAvailability(\n resourceGroupName: string,\n clusterName: string,\n databaseName: string,\n dataConnectionName: DataConnectionCheckNameRequest,\n options?: DataConnectionsCheckNameAvailabilityOptionalParams,\n ): Promise<DataConnectionsCheckNameAvailabilityResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n clusterName,\n databaseName,\n dataConnectionName,\n options,\n },\n checkNameAvailabilityOperationSpec,\n );\n }\n\n /**\n * Returns a data connection.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Kusto cluster.\n * @param databaseName The name of the database in the Kusto cluster.\n * @param dataConnectionName The name of the data connection.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n clusterName: string,\n databaseName: string,\n dataConnectionName: string,\n options?: DataConnectionsGetOptionalParams,\n ): Promise<DataConnectionsGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n clusterName,\n databaseName,\n dataConnectionName,\n options,\n },\n getOperationSpec,\n );\n }\n\n /**\n * Creates or updates a data connection.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Kusto cluster.\n * @param databaseName The name of the database in the Kusto cluster.\n * @param dataConnectionName The name of the data connection.\n * @param parameters The data connection parameters supplied to the CreateOrUpdate operation.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n clusterName: string,\n databaseName: string,\n dataConnectionName: string,\n parameters: DataConnectionUnion,\n options?: DataConnectionsCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<DataConnectionsCreateOrUpdateResponse>,\n DataConnectionsCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<DataConnectionsCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n clusterName,\n databaseName,\n dataConnectionName,\n parameters,\n options,\n },\n spec: createOrUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n DataConnectionsCreateOrUpdateResponse,\n OperationState<DataConnectionsCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Creates or updates a data connection.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Kusto cluster.\n * @param databaseName The name of the database in the Kusto cluster.\n * @param dataConnectionName The name of the data connection.\n * @param parameters The data connection parameters supplied to the CreateOrUpdate operation.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n clusterName: string,\n databaseName: string,\n dataConnectionName: string,\n parameters: DataConnectionUnion,\n options?: DataConnectionsCreateOrUpdateOptionalParams,\n ): Promise<DataConnectionsCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n clusterName,\n databaseName,\n dataConnectionName,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Updates a data connection.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Kusto cluster.\n * @param databaseName The name of the database in the Kusto cluster.\n * @param dataConnectionName The name of the data connection.\n * @param parameters The data connection parameters supplied to the Update operation.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n clusterName: string,\n databaseName: string,\n dataConnectionName: string,\n parameters: DataConnectionUnion,\n options?: DataConnectionsUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<DataConnectionsUpdateResponse>,\n DataConnectionsUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<DataConnectionsUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n clusterName,\n databaseName,\n dataConnectionName,\n parameters,\n options,\n },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n DataConnectionsUpdateResponse,\n OperationState<DataConnectionsUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Updates a data connection.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Kusto cluster.\n * @param databaseName The name of the database in the Kusto cluster.\n * @param dataConnectionName The name of the data connection.\n * @param parameters The data connection parameters supplied to the Update operation.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n clusterName: string,\n databaseName: string,\n dataConnectionName: string,\n parameters: DataConnectionUnion,\n options?: DataConnectionsUpdateOptionalParams,\n ): Promise<DataConnectionsUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n clusterName,\n databaseName,\n dataConnectionName,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes the data connection with the given name.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Kusto cluster.\n * @param databaseName The name of the database in the Kusto cluster.\n * @param dataConnectionName The name of the data connection.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n clusterName: string,\n databaseName: string,\n dataConnectionName: string,\n options?: DataConnectionsDeleteOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n clusterName,\n databaseName,\n dataConnectionName,\n options,\n },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes the data connection with the given name.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Kusto cluster.\n * @param databaseName The name of the database in the Kusto cluster.\n * @param dataConnectionName The name of the data connection.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n clusterName: string,\n databaseName: string,\n dataConnectionName: string,\n options?: DataConnectionsDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n clusterName,\n databaseName,\n dataConnectionName,\n options,\n );\n return poller.pollUntilDone();\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByDatabaseOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/dataConnections\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DataConnectionListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n Parameters.subscriptionId,\n Parameters.databaseName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst dataConnectionValidationOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/dataConnectionValidation\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.DataConnectionValidationListResult,\n },\n 201: {\n bodyMapper: Mappers.DataConnectionValidationListResult,\n },\n 202: {\n bodyMapper: Mappers.DataConnectionValidationListResult,\n },\n 204: {\n bodyMapper: Mappers.DataConnectionValidationListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.parameters11,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n Parameters.subscriptionId,\n Parameters.databaseName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst checkNameAvailabilityOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/checkNameAvailability\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CheckNameResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.dataConnectionName,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n Parameters.subscriptionId,\n Parameters.databaseName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/dataConnections/{dataConnectionName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DataConnection,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n Parameters.subscriptionId,\n Parameters.databaseName,\n Parameters.dataConnectionName1,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/dataConnections/{dataConnectionName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.DataConnection,\n },\n 201: {\n bodyMapper: Mappers.DataConnection,\n },\n 202: {\n bodyMapper: Mappers.DataConnection,\n },\n 204: {\n bodyMapper: Mappers.DataConnection,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.parameters12,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n Parameters.subscriptionId,\n Parameters.databaseName,\n Parameters.dataConnectionName1,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/dataConnections/{dataConnectionName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.DataConnection,\n },\n 201: {\n bodyMapper: Mappers.DataConnection,\n },\n 202: {\n bodyMapper: Mappers.DataConnection,\n },\n 204: {\n bodyMapper: Mappers.DataConnection,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.parameters12,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n Parameters.subscriptionId,\n Parameters.databaseName,\n Parameters.dataConnectionName1,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/dataConnections/{dataConnectionName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n Parameters.subscriptionId,\n Parameters.databaseName,\n Parameters.dataConnectionName1,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
@@ -14,6 +14,7 @@ const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
|
|
|
14
14
|
const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
15
15
|
/** Class containing DatabaseOperations operations. */
|
|
16
16
|
class DatabaseOperationsImpl {
|
|
17
|
+
client;
|
|
17
18
|
/**
|
|
18
19
|
* Initialize a new instance of the class DatabaseOperations class.
|
|
19
20
|
* @param client Reference to the service client
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"databaseOperations.js","sourceRoot":"","sources":["../../../src/operations/databaseOperations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAQtD,sDAAsD;AACtD,MAAa,sBAAsB;
|
|
1
|
+
{"version":3,"file":"databaseOperations.js","sourceRoot":"","sources":["../../../src/operations/databaseOperations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAQtD,sDAAsD;AACtD,MAAa,sBAAsB;IAChB,MAAM,CAAwB;IAE/C;;;OAGG;IACH,YAAY,MAA6B;QACvC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;OAOG;IACH,cAAc,CACZ,iBAAyB,EACzB,WAAmB,EACnB,YAAoB,EACpB,UAAyC,EACzC,OAA8C;QAE9C,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,WAAW,EAAE,YAAY,EAAE,UAAU,EAAE,OAAO,EAAE,EACrE,2BAA2B,CAC5B,CAAC;IACJ,CAAC;CACF;AA/BD,wDA+BC;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,2BAA2B,GAA6B;IAC5D,IAAI,EAAE,6JAA6J;IACnK,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,4BAA4B;SACjD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,WAAW,EAAE,UAAU,CAAC,WAAW;IACnC,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;KACxB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { DatabaseOperations } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { KustoManagementClient } from \"../kustoManagementClient.js\";\nimport {\n DatabaseInviteFollowerRequest,\n DatabaseInviteFollowerOptionalParams,\n DatabaseInviteFollowerResponse,\n} from \"../models/index.js\";\n\n/** Class containing DatabaseOperations operations. */\nexport class DatabaseOperationsImpl implements DatabaseOperations {\n private readonly client: KustoManagementClient;\n\n /**\n * Initialize a new instance of the class DatabaseOperations class.\n * @param client Reference to the service client\n */\n constructor(client: KustoManagementClient) {\n this.client = client;\n }\n\n /**\n * Generates an invitation token that allows attaching a follower database to this database.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Kusto cluster.\n * @param databaseName The name of the database in the Kusto cluster.\n * @param parameters The follower invitation request parameters.\n * @param options The options parameters.\n */\n inviteFollower(\n resourceGroupName: string,\n clusterName: string,\n databaseName: string,\n parameters: DatabaseInviteFollowerRequest,\n options?: DatabaseInviteFollowerOptionalParams,\n ): Promise<DatabaseInviteFollowerResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, clusterName, databaseName, parameters, options },\n inviteFollowerOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst inviteFollowerOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/inviteFollower\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.DatabaseInviteFollowerResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.parameters6,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n Parameters.subscriptionId,\n Parameters.databaseName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\n"]}
|
|
@@ -17,6 +17,7 @@ const lroImpl_js_1 = require("../lroImpl.js");
|
|
|
17
17
|
/// <reference lib="esnext.asynciterable" />
|
|
18
18
|
/** Class containing DatabasePrincipalAssignments operations. */
|
|
19
19
|
class DatabasePrincipalAssignmentsImpl {
|
|
20
|
+
client;
|
|
20
21
|
/**
|
|
21
22
|
* Initialize a new instance of the class DatabasePrincipalAssignments class.
|
|
22
23
|
* @param client Reference to the service client
|
|
@@ -41,39 +42,22 @@ class DatabasePrincipalAssignmentsImpl {
|
|
|
41
42
|
return this;
|
|
42
43
|
},
|
|
43
44
|
byPage: (settings) => {
|
|
44
|
-
if (settings
|
|
45
|
+
if (settings?.maxPageSize) {
|
|
45
46
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
46
47
|
}
|
|
47
48
|
return this.listPagingPage(resourceGroupName, clusterName, databaseName, options, settings);
|
|
48
49
|
},
|
|
49
50
|
};
|
|
50
51
|
}
|
|
51
|
-
listPagingPage(resourceGroupName, clusterName, databaseName, options, _settings) {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
yield yield tslib_1.__await(result.value || []);
|
|
56
|
-
});
|
|
52
|
+
async *listPagingPage(resourceGroupName, clusterName, databaseName, options, _settings) {
|
|
53
|
+
let result;
|
|
54
|
+
result = await this._list(resourceGroupName, clusterName, databaseName, options);
|
|
55
|
+
yield result.value || [];
|
|
57
56
|
}
|
|
58
|
-
listPagingAll(resourceGroupName, clusterName, databaseName, options) {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(resourceGroupName, clusterName, databaseName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
63
|
-
_c = _f.value;
|
|
64
|
-
_d = false;
|
|
65
|
-
const page = _c;
|
|
66
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
70
|
-
finally {
|
|
71
|
-
try {
|
|
72
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
73
|
-
}
|
|
74
|
-
finally { if (e_1) throw e_1.error; }
|
|
75
|
-
}
|
|
76
|
-
});
|
|
57
|
+
async *listPagingAll(resourceGroupName, clusterName, databaseName, options) {
|
|
58
|
+
for await (const page of this.listPagingPage(resourceGroupName, clusterName, databaseName, options)) {
|
|
59
|
+
yield* page;
|
|
60
|
+
}
|
|
77
61
|
}
|
|
78
62
|
/**
|
|
79
63
|
* Checks that the database principal assignment is valid and is not already in use.
|
|
@@ -123,14 +107,19 @@ class DatabasePrincipalAssignmentsImpl {
|
|
|
123
107
|
return this.client.sendOperationRequest(args, spec);
|
|
124
108
|
};
|
|
125
109
|
const sendOperationFn = async (args, spec) => {
|
|
126
|
-
var _a;
|
|
127
110
|
let currentRawResponse = undefined;
|
|
128
|
-
const providedCallback =
|
|
111
|
+
const providedCallback = args.options?.onResponse;
|
|
129
112
|
const callback = (rawResponse, flatResponse) => {
|
|
130
113
|
currentRawResponse = rawResponse;
|
|
131
|
-
providedCallback
|
|
114
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
115
|
+
};
|
|
116
|
+
const updatedArgs = {
|
|
117
|
+
...args,
|
|
118
|
+
options: {
|
|
119
|
+
...args.options,
|
|
120
|
+
onResponse: callback,
|
|
121
|
+
},
|
|
132
122
|
};
|
|
133
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
134
123
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
135
124
|
return {
|
|
136
125
|
flatResponse,
|
|
@@ -154,8 +143,8 @@ class DatabasePrincipalAssignmentsImpl {
|
|
|
154
143
|
spec: createOrUpdateOperationSpec,
|
|
155
144
|
});
|
|
156
145
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
157
|
-
restoreFrom: options
|
|
158
|
-
intervalInMs: options
|
|
146
|
+
restoreFrom: options?.resumeFrom,
|
|
147
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
159
148
|
});
|
|
160
149
|
await poller.poll();
|
|
161
150
|
return poller;
|
|
@@ -186,14 +175,19 @@ class DatabasePrincipalAssignmentsImpl {
|
|
|
186
175
|
return this.client.sendOperationRequest(args, spec);
|
|
187
176
|
};
|
|
188
177
|
const sendOperationFn = async (args, spec) => {
|
|
189
|
-
var _a;
|
|
190
178
|
let currentRawResponse = undefined;
|
|
191
|
-
const providedCallback =
|
|
179
|
+
const providedCallback = args.options?.onResponse;
|
|
192
180
|
const callback = (rawResponse, flatResponse) => {
|
|
193
181
|
currentRawResponse = rawResponse;
|
|
194
|
-
providedCallback
|
|
182
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
183
|
+
};
|
|
184
|
+
const updatedArgs = {
|
|
185
|
+
...args,
|
|
186
|
+
options: {
|
|
187
|
+
...args.options,
|
|
188
|
+
onResponse: callback,
|
|
189
|
+
},
|
|
195
190
|
};
|
|
196
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
197
191
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
198
192
|
return {
|
|
199
193
|
flatResponse,
|
|
@@ -216,8 +210,8 @@ class DatabasePrincipalAssignmentsImpl {
|
|
|
216
210
|
spec: deleteOperationSpec,
|
|
217
211
|
});
|
|
218
212
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
219
|
-
restoreFrom: options
|
|
220
|
-
intervalInMs: options
|
|
213
|
+
restoreFrom: options?.resumeFrom,
|
|
214
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
221
215
|
});
|
|
222
216
|
await poller.poll();
|
|
223
217
|
return poller;
|