@azure/arm-kusto 6.2.0 → 7.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/LICENSE +21 -0
- package/README.md +69 -83
- package/dist/index.js +8198 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +12 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/kustoManagementClient.d.ts +30 -0
- package/dist-esm/src/kustoManagementClient.d.ts.map +1 -0
- package/dist-esm/src/kustoManagementClient.js +63 -0
- package/dist-esm/src/kustoManagementClient.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +2023 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +256 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +89 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +1710 -1269
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +46 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +308 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/attachedDatabaseConfigurations.d.ts +81 -0
- package/dist-esm/src/operations/attachedDatabaseConfigurations.d.ts.map +1 -0
- package/dist-esm/src/operations/attachedDatabaseConfigurations.js +342 -0
- package/dist-esm/src/operations/attachedDatabaseConfigurations.js.map +1 -0
- package/dist-esm/src/operations/clusterPrincipalAssignments.d.ts +81 -0
- package/dist-esm/src/operations/clusterPrincipalAssignments.d.ts.map +1 -0
- package/dist-esm/src/operations/clusterPrincipalAssignments.js +332 -0
- package/dist-esm/src/operations/clusterPrincipalAssignments.js.map +1 -0
- package/dist-esm/src/operations/clusters.d.ts +276 -0
- package/dist-esm/src/operations/clusters.d.ts.map +1 -0
- package/dist-esm/src/operations/clusters.js +1317 -0
- package/dist-esm/src/operations/clusters.js.map +1 -0
- package/dist-esm/src/operations/dataConnections.d.ts +127 -0
- package/dist-esm/src/operations/dataConnections.d.ts.map +1 -0
- package/dist-esm/src/operations/dataConnections.js +547 -0
- package/dist-esm/src/operations/dataConnections.js.map +1 -0
- package/dist-esm/src/operations/databasePrincipalAssignments.d.ts +89 -0
- package/dist-esm/src/operations/databasePrincipalAssignments.d.ts.map +1 -0
- package/dist-esm/src/operations/databasePrincipalAssignments.js +364 -0
- package/dist-esm/src/operations/databasePrincipalAssignments.js.map +1 -0
- package/dist-esm/src/operations/databases.d.ts +135 -0
- package/dist-esm/src/operations/databases.d.ts.map +1 -0
- package/dist-esm/src/operations/databases.js +571 -0
- package/dist-esm/src/operations/databases.js.map +1 -0
- package/{esm → dist-esm/src}/operations/index.d.ts +4 -1
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/dist-esm/src/operations/index.js +20 -0
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/managedPrivateEndpoints.d.ts +99 -0
- package/dist-esm/src/operations/managedPrivateEndpoints.d.ts.map +1 -0
- package/dist-esm/src/operations/managedPrivateEndpoints.js +424 -0
- package/dist-esm/src/operations/managedPrivateEndpoints.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +32 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +120 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/operationsResults.d.ts +20 -0
- package/dist-esm/src/operations/operationsResults.d.ts.map +1 -0
- package/dist-esm/src/operations/operationsResults.js +53 -0
- package/dist-esm/src/operations/operationsResults.js.map +1 -0
- package/dist-esm/src/operations/privateEndpointConnections.d.ts +73 -0
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -0
- package/dist-esm/src/operations/privateEndpointConnections.js +309 -0
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -0
- package/dist-esm/src/operations/privateLinkResources.d.ts +38 -0
- package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -0
- package/dist-esm/src/operations/privateLinkResources.js +131 -0
- package/dist-esm/src/operations/privateLinkResources.js.map +1 -0
- package/dist-esm/src/operations/scripts.d.ts +109 -0
- package/dist-esm/src/operations/scripts.d.ts.map +1 -0
- package/dist-esm/src/operations/scripts.js +442 -0
- package/dist-esm/src/operations/scripts.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/attachedDatabaseConfigurations.d.ts +64 -0
- package/dist-esm/src/operationsInterfaces/attachedDatabaseConfigurations.d.ts.map +1 -0
- package/{src/models/operationsResultsMappers.ts → dist-esm/src/operationsInterfaces/attachedDatabaseConfigurations.js} +2 -2
- package/dist-esm/src/operationsInterfaces/attachedDatabaseConfigurations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/clusterPrincipalAssignments.d.ts +64 -0
- package/dist-esm/src/operationsInterfaces/clusterPrincipalAssignments.d.ts.map +1 -0
- package/{src/models/operationsMappers.ts → dist-esm/src/operationsInterfaces/clusterPrincipalAssignments.js} +2 -8
- package/dist-esm/src/operationsInterfaces/clusterPrincipalAssignments.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/clusters.d.ts +201 -0
- package/dist-esm/src/operationsInterfaces/clusters.d.ts.map +1 -0
- package/{esm/models/operationsResultsMappers.js → dist-esm/src/operationsInterfaces/clusters.js} +2 -2
- package/dist-esm/src/operationsInterfaces/clusters.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/dataConnections.d.ts +109 -0
- package/dist-esm/src/operationsInterfaces/dataConnections.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/dataConnections.js +9 -0
- package/dist-esm/src/operationsInterfaces/dataConnections.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/databasePrincipalAssignments.d.ts +71 -0
- package/dist-esm/src/operationsInterfaces/databasePrincipalAssignments.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/databasePrincipalAssignments.js +9 -0
- package/dist-esm/src/operationsInterfaces/databasePrincipalAssignments.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/databases.d.ts +108 -0
- package/dist-esm/src/operationsInterfaces/databases.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/databases.js +9 -0
- package/dist-esm/src/operationsInterfaces/databases.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +13 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +20 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/managedPrivateEndpoints.d.ts +82 -0
- package/dist-esm/src/operationsInterfaces/managedPrivateEndpoints.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/managedPrivateEndpoints.js +9 -0
- package/dist-esm/src/operationsInterfaces/managedPrivateEndpoints.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operationsResults.d.ts +12 -0
- package/dist-esm/src/operationsInterfaces/operationsResults.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operationsResults.js +9 -0
- package/dist-esm/src/operationsInterfaces/operationsResults.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +56 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js +9 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts +21 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.js +9 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/scripts.d.ts +91 -0
- package/dist-esm/src/operationsInterfaces/scripts.d.ts.map +1 -0
- package/{esm/models/index.js → dist-esm/src/operationsInterfaces/scripts.js} +2 -1
- package/dist-esm/src/operationsInterfaces/scripts.js.map +1 -0
- package/dist-esm/test/kusto-client-test.d.ts +4 -0
- package/dist-esm/test/kusto-client-test.d.ts.map +1 -0
- package/dist-esm/test/kusto-client-test.js +117 -0
- package/dist-esm/test/kusto-client-test.js.map +1 -0
- package/package.json +65 -22
- package/review/arm-kusto.api.md +1798 -0
- package/rollup.config.js +181 -24
- package/{esm/models/operationsMappers.js → src/index.ts} +5 -2
- package/src/kustoManagementClient.ts +112 -49
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +1853 -2535
- package/src/models/mappers.ts +1798 -1302
- package/src/models/parameters.ts +264 -44
- package/src/operations/attachedDatabaseConfigurations.ts +314 -177
- package/src/operations/clusterPrincipalAssignments.ts +300 -264
- package/src/operations/clusters.ts +1396 -724
- package/src/operations/dataConnections.ts +499 -363
- package/src/operations/databasePrincipalAssignments.ts +326 -281
- package/src/operations/databases.ts +538 -517
- package/src/operations/index.ts +5 -3
- package/src/operations/managedPrivateEndpoints.ts +599 -0
- package/src/operations/operations.ts +85 -85
- package/src/operations/operationsResults.ts +34 -60
- package/src/operations/privateEndpointConnections.ts +427 -0
- package/src/operations/privateLinkResources.ts +167 -0
- package/src/operations/scripts.ts +408 -334
- package/src/operationsInterfaces/attachedDatabaseConfigurations.ts +125 -0
- package/src/operationsInterfaces/clusterPrincipalAssignments.ts +125 -0
- package/src/operationsInterfaces/clusters.ts +371 -0
- package/src/operationsInterfaces/dataConnections.ts +218 -0
- package/src/operationsInterfaces/databasePrincipalAssignments.ts +139 -0
- package/src/operationsInterfaces/databases.ts +212 -0
- package/{esm/operations/index.js → src/operationsInterfaces/index.ts} +6 -4
- package/src/operationsInterfaces/managedPrivateEndpoints.ts +162 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/operationsResults.ts +27 -0
- package/src/operationsInterfaces/privateEndpointConnections.ts +109 -0
- package/src/operationsInterfaces/privateLinkResources.ts +44 -0
- package/src/operationsInterfaces/scripts.ts +177 -0
- package/tsconfig.json +14 -6
- package/types/arm-kusto.d.ts +3174 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-kusto.js +0 -5320
- package/dist/arm-kusto.js.map +0 -1
- package/dist/arm-kusto.min.js +0 -1
- package/dist/arm-kusto.min.js.map +0 -1
- package/esm/kustoManagementClient.d.ts +0 -33
- package/esm/kustoManagementClient.d.ts.map +0 -1
- package/esm/kustoManagementClient.js +0 -46
- package/esm/kustoManagementClient.js.map +0 -1
- package/esm/kustoManagementClientContext.d.ts +0 -23
- package/esm/kustoManagementClientContext.d.ts.map +0 -1
- package/esm/kustoManagementClientContext.js +0 -62
- package/esm/kustoManagementClientContext.js.map +0 -1
- package/esm/models/attachedDatabaseConfigurationsMappers.d.ts +0 -2
- package/esm/models/attachedDatabaseConfigurationsMappers.d.ts.map +0 -1
- package/esm/models/attachedDatabaseConfigurationsMappers.js +0 -9
- package/esm/models/attachedDatabaseConfigurationsMappers.js.map +0 -1
- package/esm/models/clusterPrincipalAssignmentsMappers.d.ts +0 -2
- package/esm/models/clusterPrincipalAssignmentsMappers.d.ts.map +0 -1
- package/esm/models/clusterPrincipalAssignmentsMappers.js +0 -9
- package/esm/models/clusterPrincipalAssignmentsMappers.js.map +0 -1
- package/esm/models/clustersMappers.d.ts +0 -2
- package/esm/models/clustersMappers.d.ts.map +0 -1
- package/esm/models/clustersMappers.js +0 -9
- package/esm/models/clustersMappers.js.map +0 -1
- package/esm/models/dataConnectionsMappers.d.ts +0 -2
- package/esm/models/dataConnectionsMappers.d.ts.map +0 -1
- package/esm/models/dataConnectionsMappers.js +0 -9
- package/esm/models/dataConnectionsMappers.js.map +0 -1
- package/esm/models/databasePrincipalAssignmentsMappers.d.ts +0 -2
- package/esm/models/databasePrincipalAssignmentsMappers.d.ts.map +0 -1
- package/esm/models/databasePrincipalAssignmentsMappers.js +0 -9
- package/esm/models/databasePrincipalAssignmentsMappers.js.map +0 -1
- package/esm/models/databasesMappers.d.ts +0 -2
- package/esm/models/databasesMappers.d.ts.map +0 -1
- package/esm/models/databasesMappers.js +0 -9
- package/esm/models/databasesMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -2705
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -75
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/operationsMappers.d.ts +0 -2
- package/esm/models/operationsMappers.d.ts.map +0 -1
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/operationsResultsMappers.d.ts +0 -2
- package/esm/models/operationsResultsMappers.d.ts.map +0 -1
- package/esm/models/operationsResultsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -17
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -158
- package/esm/models/parameters.js.map +0 -1
- package/esm/models/scriptsMappers.d.ts +0 -2
- package/esm/models/scriptsMappers.d.ts.map +0 -1
- package/esm/models/scriptsMappers.js +0 -9
- package/esm/models/scriptsMappers.js.map +0 -1
- package/esm/operations/attachedDatabaseConfigurations.d.ts +0 -97
- package/esm/operations/attachedDatabaseConfigurations.d.ts.map +0 -1
- package/esm/operations/attachedDatabaseConfigurations.js +0 -188
- package/esm/operations/attachedDatabaseConfigurations.js.map +0 -1
- package/esm/operations/clusterPrincipalAssignments.d.ts +0 -121
- package/esm/operations/clusterPrincipalAssignments.d.ts.map +0 -1
- package/esm/operations/clusterPrincipalAssignments.js +0 -213
- package/esm/operations/clusterPrincipalAssignments.js.map +0 -1
- package/esm/operations/clusters.d.ts +0 -323
- package/esm/operations/clusters.d.ts.map +0 -1
- package/esm/operations/clusters.js +0 -620
- package/esm/operations/clusters.js.map +0 -1
- package/esm/operations/dataConnections.d.ts +0 -176
- package/esm/operations/dataConnections.d.ts.map +0 -1
- package/esm/operations/dataConnections.js +0 -359
- package/esm/operations/dataConnections.js.map +0 -1
- package/esm/operations/databasePrincipalAssignments.d.ts +0 -134
- package/esm/operations/databasePrincipalAssignments.d.ts.map +0 -1
- package/esm/operations/databasePrincipalAssignments.js +0 -235
- package/esm/operations/databasePrincipalAssignments.js.map +0 -1
- package/esm/operations/databases.d.ts +0 -219
- package/esm/operations/databases.d.ts.map +0 -1
- package/esm/operations/databases.js +0 -374
- package/esm/operations/databases.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/operations.d.ts +0 -46
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -69
- package/esm/operations/operations.js.map +0 -1
- package/esm/operations/operationsResults.d.ts +0 -34
- package/esm/operations/operationsResults.d.ts.map +0 -1
- package/esm/operations/operationsResults.js +0 -49
- package/esm/operations/operationsResults.js.map +0 -1
- package/esm/operations/scripts.d.ts +0 -156
- package/esm/operations/scripts.d.ts.map +0 -1
- package/esm/operations/scripts.js +0 -300
- package/esm/operations/scripts.js.map +0 -1
- package/src/kustoManagementClientContext.ts +0 -75
- package/src/models/attachedDatabaseConfigurationsMappers.ts +0 -43
- package/src/models/clusterPrincipalAssignmentsMappers.ts +0 -45
- package/src/models/clustersMappers.ts +0 -54
- package/src/models/dataConnectionsMappers.ts +0 -48
- package/src/models/databasePrincipalAssignmentsMappers.ts +0 -45
- package/src/models/databasesMappers.ts +0 -48
- package/src/models/scriptsMappers.ts +0 -45
|
@@ -3,26 +3,43 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
7
|
-
* regenerated.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
7
|
*/
|
|
9
8
|
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import * as
|
|
13
|
-
import * as Mappers from "../models/
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { Scripts } from "../operationsInterfaces";
|
|
11
|
+
import * as coreClient from "@azure/core-client";
|
|
12
|
+
import * as Mappers from "../models/mappers";
|
|
14
13
|
import * as Parameters from "../models/parameters";
|
|
15
|
-
import {
|
|
14
|
+
import { KustoManagementClient } from "../kustoManagementClient";
|
|
15
|
+
import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
|
|
16
|
+
import { LroImpl } from "../lroImpl";
|
|
17
|
+
import {
|
|
18
|
+
Script,
|
|
19
|
+
ScriptsListByDatabaseOptionalParams,
|
|
20
|
+
ScriptsListByDatabaseResponse,
|
|
21
|
+
ScriptsGetOptionalParams,
|
|
22
|
+
ScriptsGetResponse,
|
|
23
|
+
ScriptsCreateOrUpdateOptionalParams,
|
|
24
|
+
ScriptsCreateOrUpdateResponse,
|
|
25
|
+
ScriptsUpdateOptionalParams,
|
|
26
|
+
ScriptsUpdateResponse,
|
|
27
|
+
ScriptsDeleteOptionalParams,
|
|
28
|
+
ScriptCheckNameRequest,
|
|
29
|
+
ScriptsCheckNameAvailabilityOptionalParams,
|
|
30
|
+
ScriptsCheckNameAvailabilityResponse
|
|
31
|
+
} from "../models";
|
|
16
32
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
33
|
+
/// <reference lib="esnext.asynciterable" />
|
|
34
|
+
/** Class containing Scripts operations. */
|
|
35
|
+
export class ScriptsImpl implements Scripts {
|
|
36
|
+
private readonly client: KustoManagementClient;
|
|
20
37
|
|
|
21
38
|
/**
|
|
22
|
-
*
|
|
23
|
-
* @param
|
|
39
|
+
* Initialize a new instance of the class Scripts class.
|
|
40
|
+
* @param client Reference to the service client
|
|
24
41
|
*/
|
|
25
|
-
constructor(client:
|
|
42
|
+
constructor(client: KustoManagementClient) {
|
|
26
43
|
this.client = client;
|
|
27
44
|
}
|
|
28
45
|
|
|
@@ -31,125 +48,186 @@ export class Scripts {
|
|
|
31
48
|
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
32
49
|
* @param clusterName The name of the Kusto cluster.
|
|
33
50
|
* @param databaseName The name of the database in the Kusto cluster.
|
|
34
|
-
* @param
|
|
35
|
-
* @returns Promise<Models.ScriptsListByDatabaseResponse>
|
|
51
|
+
* @param options The options parameters.
|
|
36
52
|
*/
|
|
37
|
-
listByDatabase(
|
|
53
|
+
public listByDatabase(
|
|
38
54
|
resourceGroupName: string,
|
|
39
55
|
clusterName: string,
|
|
40
56
|
databaseName: string,
|
|
41
|
-
options?:
|
|
42
|
-
):
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
57
|
+
options?: ScriptsListByDatabaseOptionalParams
|
|
58
|
+
): PagedAsyncIterableIterator<Script> {
|
|
59
|
+
const iter = this.listByDatabasePagingAll(
|
|
60
|
+
resourceGroupName,
|
|
61
|
+
clusterName,
|
|
62
|
+
databaseName,
|
|
63
|
+
options
|
|
64
|
+
);
|
|
65
|
+
return {
|
|
66
|
+
next() {
|
|
67
|
+
return iter.next();
|
|
68
|
+
},
|
|
69
|
+
[Symbol.asyncIterator]() {
|
|
70
|
+
return this;
|
|
71
|
+
},
|
|
72
|
+
byPage: () => {
|
|
73
|
+
return this.listByDatabasePagingPage(
|
|
74
|
+
resourceGroupName,
|
|
75
|
+
clusterName,
|
|
76
|
+
databaseName,
|
|
77
|
+
options
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
private async *listByDatabasePagingPage(
|
|
63
84
|
resourceGroupName: string,
|
|
64
85
|
clusterName: string,
|
|
65
86
|
databaseName: string,
|
|
66
|
-
options
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
87
|
+
options?: ScriptsListByDatabaseOptionalParams
|
|
88
|
+
): AsyncIterableIterator<Script[]> {
|
|
89
|
+
let result = await this._listByDatabase(
|
|
90
|
+
resourceGroupName,
|
|
91
|
+
clusterName,
|
|
92
|
+
databaseName,
|
|
93
|
+
options
|
|
94
|
+
);
|
|
95
|
+
yield result.value || [];
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
private async *listByDatabasePagingAll(
|
|
70
99
|
resourceGroupName: string,
|
|
71
100
|
clusterName: string,
|
|
72
101
|
databaseName: string,
|
|
73
|
-
options?:
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
listByDatabaseOperationSpec,
|
|
84
|
-
callback
|
|
85
|
-
) as Promise<Models.ScriptsListByDatabaseResponse>;
|
|
102
|
+
options?: ScriptsListByDatabaseOptionalParams
|
|
103
|
+
): AsyncIterableIterator<Script> {
|
|
104
|
+
for await (const page of this.listByDatabasePagingPage(
|
|
105
|
+
resourceGroupName,
|
|
106
|
+
clusterName,
|
|
107
|
+
databaseName,
|
|
108
|
+
options
|
|
109
|
+
)) {
|
|
110
|
+
yield* page;
|
|
111
|
+
}
|
|
86
112
|
}
|
|
87
113
|
|
|
88
114
|
/**
|
|
89
|
-
*
|
|
115
|
+
* Returns the list of database scripts for given database.
|
|
90
116
|
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
91
117
|
* @param clusterName The name of the Kusto cluster.
|
|
92
118
|
* @param databaseName The name of the database in the Kusto cluster.
|
|
93
|
-
* @param
|
|
94
|
-
* @param [options] The optional parameters
|
|
95
|
-
* @returns Promise<Models.ScriptsGetResponse>
|
|
119
|
+
* @param options The options parameters.
|
|
96
120
|
*/
|
|
97
|
-
|
|
121
|
+
private _listByDatabase(
|
|
98
122
|
resourceGroupName: string,
|
|
99
123
|
clusterName: string,
|
|
100
124
|
databaseName: string,
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
125
|
+
options?: ScriptsListByDatabaseOptionalParams
|
|
126
|
+
): Promise<ScriptsListByDatabaseResponse> {
|
|
127
|
+
return this.client.sendOperationRequest(
|
|
128
|
+
{ resourceGroupName, clusterName, databaseName, options },
|
|
129
|
+
listByDatabaseOperationSpec
|
|
130
|
+
);
|
|
131
|
+
}
|
|
132
|
+
|
|
104
133
|
/**
|
|
134
|
+
* Gets a Kusto cluster database script.
|
|
105
135
|
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
106
136
|
* @param clusterName The name of the Kusto cluster.
|
|
107
137
|
* @param databaseName The name of the database in the Kusto cluster.
|
|
108
138
|
* @param scriptName The name of the Kusto database script.
|
|
109
|
-
* @param
|
|
139
|
+
* @param options The options parameters.
|
|
110
140
|
*/
|
|
111
141
|
get(
|
|
112
142
|
resourceGroupName: string,
|
|
113
143
|
clusterName: string,
|
|
114
144
|
databaseName: string,
|
|
115
145
|
scriptName: string,
|
|
116
|
-
|
|
117
|
-
):
|
|
146
|
+
options?: ScriptsGetOptionalParams
|
|
147
|
+
): Promise<ScriptsGetResponse> {
|
|
148
|
+
return this.client.sendOperationRequest(
|
|
149
|
+
{ resourceGroupName, clusterName, databaseName, scriptName, options },
|
|
150
|
+
getOperationSpec
|
|
151
|
+
);
|
|
152
|
+
}
|
|
153
|
+
|
|
118
154
|
/**
|
|
155
|
+
* Creates a Kusto database script.
|
|
119
156
|
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
120
157
|
* @param clusterName The name of the Kusto cluster.
|
|
121
158
|
* @param databaseName The name of the database in the Kusto cluster.
|
|
122
159
|
* @param scriptName The name of the Kusto database script.
|
|
123
|
-
* @param
|
|
124
|
-
* @param
|
|
160
|
+
* @param parameters The Kusto Script parameters contains the KQL to run.
|
|
161
|
+
* @param options The options parameters.
|
|
125
162
|
*/
|
|
126
|
-
|
|
163
|
+
async beginCreateOrUpdate(
|
|
127
164
|
resourceGroupName: string,
|
|
128
165
|
clusterName: string,
|
|
129
166
|
databaseName: string,
|
|
130
167
|
scriptName: string,
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
):
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
168
|
+
parameters: Script,
|
|
169
|
+
options?: ScriptsCreateOrUpdateOptionalParams
|
|
170
|
+
): Promise<
|
|
171
|
+
PollerLike<
|
|
172
|
+
PollOperationState<ScriptsCreateOrUpdateResponse>,
|
|
173
|
+
ScriptsCreateOrUpdateResponse
|
|
174
|
+
>
|
|
175
|
+
> {
|
|
176
|
+
const directSendOperation = async (
|
|
177
|
+
args: coreClient.OperationArguments,
|
|
178
|
+
spec: coreClient.OperationSpec
|
|
179
|
+
): Promise<ScriptsCreateOrUpdateResponse> => {
|
|
180
|
+
return this.client.sendOperationRequest(args, spec);
|
|
181
|
+
};
|
|
182
|
+
const sendOperation = async (
|
|
183
|
+
args: coreClient.OperationArguments,
|
|
184
|
+
spec: coreClient.OperationSpec
|
|
185
|
+
) => {
|
|
186
|
+
let currentRawResponse:
|
|
187
|
+
| coreClient.FullOperationResponse
|
|
188
|
+
| undefined = undefined;
|
|
189
|
+
const providedCallback = args.options?.onResponse;
|
|
190
|
+
const callback: coreClient.RawResponseCallback = (
|
|
191
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
192
|
+
flatResponse: unknown
|
|
193
|
+
) => {
|
|
194
|
+
currentRawResponse = rawResponse;
|
|
195
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
196
|
+
};
|
|
197
|
+
const updatedArgs = {
|
|
198
|
+
...args,
|
|
199
|
+
options: {
|
|
200
|
+
...args.options,
|
|
201
|
+
onResponse: callback
|
|
202
|
+
}
|
|
203
|
+
};
|
|
204
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
205
|
+
return {
|
|
206
|
+
flatResponse,
|
|
207
|
+
rawResponse: {
|
|
208
|
+
statusCode: currentRawResponse!.status,
|
|
209
|
+
body: currentRawResponse!.parsedBody,
|
|
210
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
211
|
+
}
|
|
212
|
+
};
|
|
213
|
+
};
|
|
214
|
+
|
|
215
|
+
const lro = new LroImpl(
|
|
216
|
+
sendOperation,
|
|
143
217
|
{
|
|
144
218
|
resourceGroupName,
|
|
145
219
|
clusterName,
|
|
146
220
|
databaseName,
|
|
147
221
|
scriptName,
|
|
222
|
+
parameters,
|
|
148
223
|
options
|
|
149
224
|
},
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
225
|
+
createOrUpdateOperationSpec
|
|
226
|
+
);
|
|
227
|
+
return new LroEngine(lro, {
|
|
228
|
+
resumeFrom: options?.resumeFrom,
|
|
229
|
+
intervalInMs: options?.updateIntervalInMs
|
|
230
|
+
});
|
|
153
231
|
}
|
|
154
232
|
|
|
155
233
|
/**
|
|
@@ -159,27 +237,25 @@ export class Scripts {
|
|
|
159
237
|
* @param databaseName The name of the database in the Kusto cluster.
|
|
160
238
|
* @param scriptName The name of the Kusto database script.
|
|
161
239
|
* @param parameters The Kusto Script parameters contains the KQL to run.
|
|
162
|
-
* @param
|
|
163
|
-
* @returns Promise<Models.ScriptsCreateOrUpdateResponse>
|
|
240
|
+
* @param options The options parameters.
|
|
164
241
|
*/
|
|
165
|
-
|
|
242
|
+
async beginCreateOrUpdateAndWait(
|
|
166
243
|
resourceGroupName: string,
|
|
167
244
|
clusterName: string,
|
|
168
245
|
databaseName: string,
|
|
169
246
|
scriptName: string,
|
|
170
|
-
parameters:
|
|
171
|
-
options?:
|
|
172
|
-
): Promise<
|
|
173
|
-
|
|
247
|
+
parameters: Script,
|
|
248
|
+
options?: ScriptsCreateOrUpdateOptionalParams
|
|
249
|
+
): Promise<ScriptsCreateOrUpdateResponse> {
|
|
250
|
+
const poller = await this.beginCreateOrUpdate(
|
|
174
251
|
resourceGroupName,
|
|
175
252
|
clusterName,
|
|
176
253
|
databaseName,
|
|
177
254
|
scriptName,
|
|
178
255
|
parameters,
|
|
179
256
|
options
|
|
180
|
-
)
|
|
181
|
-
|
|
182
|
-
>;
|
|
257
|
+
);
|
|
258
|
+
return poller.pollUntilDone();
|
|
183
259
|
}
|
|
184
260
|
|
|
185
261
|
/**
|
|
@@ -189,227 +265,221 @@ export class Scripts {
|
|
|
189
265
|
* @param databaseName The name of the database in the Kusto cluster.
|
|
190
266
|
* @param scriptName The name of the Kusto database script.
|
|
191
267
|
* @param parameters The Kusto Script parameters contains to the KQL to run.
|
|
192
|
-
* @param
|
|
193
|
-
* @returns Promise<Models.ScriptsUpdateResponse>
|
|
268
|
+
* @param options The options parameters.
|
|
194
269
|
*/
|
|
195
|
-
|
|
270
|
+
async beginUpdate(
|
|
196
271
|
resourceGroupName: string,
|
|
197
272
|
clusterName: string,
|
|
198
273
|
databaseName: string,
|
|
199
274
|
scriptName: string,
|
|
200
|
-
parameters:
|
|
201
|
-
options?:
|
|
202
|
-
): Promise<
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
275
|
+
parameters: Script,
|
|
276
|
+
options?: ScriptsUpdateOptionalParams
|
|
277
|
+
): Promise<
|
|
278
|
+
PollerLike<PollOperationState<ScriptsUpdateResponse>, ScriptsUpdateResponse>
|
|
279
|
+
> {
|
|
280
|
+
const directSendOperation = async (
|
|
281
|
+
args: coreClient.OperationArguments,
|
|
282
|
+
spec: coreClient.OperationSpec
|
|
283
|
+
): Promise<ScriptsUpdateResponse> => {
|
|
284
|
+
return this.client.sendOperationRequest(args, spec);
|
|
285
|
+
};
|
|
286
|
+
const sendOperation = async (
|
|
287
|
+
args: coreClient.OperationArguments,
|
|
288
|
+
spec: coreClient.OperationSpec
|
|
289
|
+
) => {
|
|
290
|
+
let currentRawResponse:
|
|
291
|
+
| coreClient.FullOperationResponse
|
|
292
|
+
| undefined = undefined;
|
|
293
|
+
const providedCallback = args.options?.onResponse;
|
|
294
|
+
const callback: coreClient.RawResponseCallback = (
|
|
295
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
296
|
+
flatResponse: unknown
|
|
297
|
+
) => {
|
|
298
|
+
currentRawResponse = rawResponse;
|
|
299
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
300
|
+
};
|
|
301
|
+
const updatedArgs = {
|
|
302
|
+
...args,
|
|
303
|
+
options: {
|
|
304
|
+
...args.options,
|
|
305
|
+
onResponse: callback
|
|
306
|
+
}
|
|
307
|
+
};
|
|
308
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
309
|
+
return {
|
|
310
|
+
flatResponse,
|
|
311
|
+
rawResponse: {
|
|
312
|
+
statusCode: currentRawResponse!.status,
|
|
313
|
+
body: currentRawResponse!.parsedBody,
|
|
314
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
315
|
+
}
|
|
316
|
+
};
|
|
317
|
+
};
|
|
318
|
+
|
|
319
|
+
const lro = new LroImpl(
|
|
320
|
+
sendOperation,
|
|
321
|
+
{
|
|
322
|
+
resourceGroupName,
|
|
323
|
+
clusterName,
|
|
324
|
+
databaseName,
|
|
325
|
+
scriptName,
|
|
326
|
+
parameters,
|
|
327
|
+
options
|
|
328
|
+
},
|
|
329
|
+
updateOperationSpec
|
|
330
|
+
);
|
|
331
|
+
return new LroEngine(lro, {
|
|
332
|
+
resumeFrom: options?.resumeFrom,
|
|
333
|
+
intervalInMs: options?.updateIntervalInMs
|
|
334
|
+
});
|
|
211
335
|
}
|
|
212
336
|
|
|
213
337
|
/**
|
|
214
|
-
*
|
|
338
|
+
* Updates a database script.
|
|
215
339
|
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
216
340
|
* @param clusterName The name of the Kusto cluster.
|
|
217
341
|
* @param databaseName The name of the database in the Kusto cluster.
|
|
218
342
|
* @param scriptName The name of the Kusto database script.
|
|
219
|
-
* @param
|
|
220
|
-
* @
|
|
343
|
+
* @param parameters The Kusto Script parameters contains to the KQL to run.
|
|
344
|
+
* @param options The options parameters.
|
|
221
345
|
*/
|
|
222
|
-
|
|
346
|
+
async beginUpdateAndWait(
|
|
223
347
|
resourceGroupName: string,
|
|
224
348
|
clusterName: string,
|
|
225
349
|
databaseName: string,
|
|
226
350
|
scriptName: string,
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
351
|
+
parameters: Script,
|
|
352
|
+
options?: ScriptsUpdateOptionalParams
|
|
353
|
+
): Promise<ScriptsUpdateResponse> {
|
|
354
|
+
const poller = await this.beginUpdate(
|
|
230
355
|
resourceGroupName,
|
|
231
356
|
clusterName,
|
|
232
357
|
databaseName,
|
|
233
358
|
scriptName,
|
|
359
|
+
parameters,
|
|
234
360
|
options
|
|
235
|
-
)
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
/**
|
|
239
|
-
* Checks that the script name is valid and is not already in use.
|
|
240
|
-
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
241
|
-
* @param clusterName The name of the Kusto cluster.
|
|
242
|
-
* @param databaseName The name of the database in the Kusto cluster.
|
|
243
|
-
* @param scriptName The name of the script.
|
|
244
|
-
* @param [options] The optional parameters
|
|
245
|
-
* @returns Promise<Models.ScriptsCheckNameAvailabilityResponse>
|
|
246
|
-
*/
|
|
247
|
-
checkNameAvailability(
|
|
248
|
-
resourceGroupName: string,
|
|
249
|
-
clusterName: string,
|
|
250
|
-
databaseName: string,
|
|
251
|
-
scriptName: Models.ScriptCheckNameRequest,
|
|
252
|
-
options?: msRest.RequestOptionsBase
|
|
253
|
-
): Promise<Models.ScriptsCheckNameAvailabilityResponse>;
|
|
254
|
-
/**
|
|
255
|
-
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
256
|
-
* @param clusterName The name of the Kusto cluster.
|
|
257
|
-
* @param databaseName The name of the database in the Kusto cluster.
|
|
258
|
-
* @param scriptName The name of the script.
|
|
259
|
-
* @param callback The callback
|
|
260
|
-
*/
|
|
261
|
-
checkNameAvailability(
|
|
262
|
-
resourceGroupName: string,
|
|
263
|
-
clusterName: string,
|
|
264
|
-
databaseName: string,
|
|
265
|
-
scriptName: Models.ScriptCheckNameRequest,
|
|
266
|
-
callback: msRest.ServiceCallback<Models.CheckNameResult>
|
|
267
|
-
): void;
|
|
268
|
-
/**
|
|
269
|
-
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
270
|
-
* @param clusterName The name of the Kusto cluster.
|
|
271
|
-
* @param databaseName The name of the database in the Kusto cluster.
|
|
272
|
-
* @param scriptName The name of the script.
|
|
273
|
-
* @param options The optional parameters
|
|
274
|
-
* @param callback The callback
|
|
275
|
-
*/
|
|
276
|
-
checkNameAvailability(
|
|
277
|
-
resourceGroupName: string,
|
|
278
|
-
clusterName: string,
|
|
279
|
-
databaseName: string,
|
|
280
|
-
scriptName: Models.ScriptCheckNameRequest,
|
|
281
|
-
options: msRest.RequestOptionsBase,
|
|
282
|
-
callback: msRest.ServiceCallback<Models.CheckNameResult>
|
|
283
|
-
): void;
|
|
284
|
-
checkNameAvailability(
|
|
285
|
-
resourceGroupName: string,
|
|
286
|
-
clusterName: string,
|
|
287
|
-
databaseName: string,
|
|
288
|
-
scriptName: Models.ScriptCheckNameRequest,
|
|
289
|
-
options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.CheckNameResult>,
|
|
290
|
-
callback?: msRest.ServiceCallback<Models.CheckNameResult>
|
|
291
|
-
): Promise<Models.ScriptsCheckNameAvailabilityResponse> {
|
|
292
|
-
return this.client.sendOperationRequest(
|
|
293
|
-
{
|
|
294
|
-
resourceGroupName,
|
|
295
|
-
clusterName,
|
|
296
|
-
databaseName,
|
|
297
|
-
scriptName,
|
|
298
|
-
options
|
|
299
|
-
},
|
|
300
|
-
checkNameAvailabilityOperationSpec,
|
|
301
|
-
callback
|
|
302
|
-
) as Promise<Models.ScriptsCheckNameAvailabilityResponse>;
|
|
361
|
+
);
|
|
362
|
+
return poller.pollUntilDone();
|
|
303
363
|
}
|
|
304
364
|
|
|
305
365
|
/**
|
|
306
|
-
*
|
|
366
|
+
* Deletes a Kusto principalAssignment.
|
|
307
367
|
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
308
368
|
* @param clusterName The name of the Kusto cluster.
|
|
309
369
|
* @param databaseName The name of the database in the Kusto cluster.
|
|
310
370
|
* @param scriptName The name of the Kusto database script.
|
|
311
|
-
* @param
|
|
312
|
-
* @param [options] The optional parameters
|
|
313
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
371
|
+
* @param options The options parameters.
|
|
314
372
|
*/
|
|
315
|
-
|
|
373
|
+
async beginDelete(
|
|
316
374
|
resourceGroupName: string,
|
|
317
375
|
clusterName: string,
|
|
318
376
|
databaseName: string,
|
|
319
377
|
scriptName: string,
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
378
|
+
options?: ScriptsDeleteOptionalParams
|
|
379
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
380
|
+
const directSendOperation = async (
|
|
381
|
+
args: coreClient.OperationArguments,
|
|
382
|
+
spec: coreClient.OperationSpec
|
|
383
|
+
): Promise<void> => {
|
|
384
|
+
return this.client.sendOperationRequest(args, spec);
|
|
385
|
+
};
|
|
386
|
+
const sendOperation = async (
|
|
387
|
+
args: coreClient.OperationArguments,
|
|
388
|
+
spec: coreClient.OperationSpec
|
|
389
|
+
) => {
|
|
390
|
+
let currentRawResponse:
|
|
391
|
+
| coreClient.FullOperationResponse
|
|
392
|
+
| undefined = undefined;
|
|
393
|
+
const providedCallback = args.options?.onResponse;
|
|
394
|
+
const callback: coreClient.RawResponseCallback = (
|
|
395
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
396
|
+
flatResponse: unknown
|
|
397
|
+
) => {
|
|
398
|
+
currentRawResponse = rawResponse;
|
|
399
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
400
|
+
};
|
|
401
|
+
const updatedArgs = {
|
|
402
|
+
...args,
|
|
403
|
+
options: {
|
|
404
|
+
...args.options,
|
|
405
|
+
onResponse: callback
|
|
406
|
+
}
|
|
407
|
+
};
|
|
408
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
409
|
+
return {
|
|
410
|
+
flatResponse,
|
|
411
|
+
rawResponse: {
|
|
412
|
+
statusCode: currentRawResponse!.status,
|
|
413
|
+
body: currentRawResponse!.parsedBody,
|
|
414
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
415
|
+
}
|
|
416
|
+
};
|
|
417
|
+
};
|
|
418
|
+
|
|
419
|
+
const lro = new LroImpl(
|
|
420
|
+
sendOperation,
|
|
421
|
+
{ resourceGroupName, clusterName, databaseName, scriptName, options },
|
|
422
|
+
deleteOperationSpec
|
|
334
423
|
);
|
|
424
|
+
return new LroEngine(lro, {
|
|
425
|
+
resumeFrom: options?.resumeFrom,
|
|
426
|
+
intervalInMs: options?.updateIntervalInMs
|
|
427
|
+
});
|
|
335
428
|
}
|
|
336
429
|
|
|
337
430
|
/**
|
|
338
|
-
*
|
|
431
|
+
* Deletes a Kusto principalAssignment.
|
|
339
432
|
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
340
433
|
* @param clusterName The name of the Kusto cluster.
|
|
341
434
|
* @param databaseName The name of the database in the Kusto cluster.
|
|
342
435
|
* @param scriptName The name of the Kusto database script.
|
|
343
|
-
* @param
|
|
344
|
-
* @param [options] The optional parameters
|
|
345
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
436
|
+
* @param options The options parameters.
|
|
346
437
|
*/
|
|
347
|
-
|
|
438
|
+
async beginDeleteAndWait(
|
|
348
439
|
resourceGroupName: string,
|
|
349
440
|
clusterName: string,
|
|
350
441
|
databaseName: string,
|
|
351
442
|
scriptName: string,
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
databaseName,
|
|
360
|
-
scriptName,
|
|
361
|
-
parameters,
|
|
362
|
-
options
|
|
363
|
-
},
|
|
364
|
-
beginUpdateOperationSpec,
|
|
443
|
+
options?: ScriptsDeleteOptionalParams
|
|
444
|
+
): Promise<void> {
|
|
445
|
+
const poller = await this.beginDelete(
|
|
446
|
+
resourceGroupName,
|
|
447
|
+
clusterName,
|
|
448
|
+
databaseName,
|
|
449
|
+
scriptName,
|
|
365
450
|
options
|
|
366
451
|
);
|
|
452
|
+
return poller.pollUntilDone();
|
|
367
453
|
}
|
|
368
454
|
|
|
369
455
|
/**
|
|
370
|
-
*
|
|
456
|
+
* Checks that the script name is valid and is not already in use.
|
|
371
457
|
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
372
458
|
* @param clusterName The name of the Kusto cluster.
|
|
373
459
|
* @param databaseName The name of the database in the Kusto cluster.
|
|
374
|
-
* @param scriptName The name of the
|
|
375
|
-
* @param
|
|
376
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
460
|
+
* @param scriptName The name of the script.
|
|
461
|
+
* @param options The options parameters.
|
|
377
462
|
*/
|
|
378
|
-
|
|
463
|
+
checkNameAvailability(
|
|
379
464
|
resourceGroupName: string,
|
|
380
465
|
clusterName: string,
|
|
381
466
|
databaseName: string,
|
|
382
|
-
scriptName:
|
|
383
|
-
options?:
|
|
384
|
-
): Promise<
|
|
385
|
-
return this.client.
|
|
386
|
-
{
|
|
387
|
-
|
|
388
|
-
clusterName,
|
|
389
|
-
databaseName,
|
|
390
|
-
scriptName,
|
|
391
|
-
options
|
|
392
|
-
},
|
|
393
|
-
beginDeleteMethodOperationSpec,
|
|
394
|
-
options
|
|
467
|
+
scriptName: ScriptCheckNameRequest,
|
|
468
|
+
options?: ScriptsCheckNameAvailabilityOptionalParams
|
|
469
|
+
): Promise<ScriptsCheckNameAvailabilityResponse> {
|
|
470
|
+
return this.client.sendOperationRequest(
|
|
471
|
+
{ resourceGroupName, clusterName, databaseName, scriptName, options },
|
|
472
|
+
checkNameAvailabilityOperationSpec
|
|
395
473
|
);
|
|
396
474
|
}
|
|
397
475
|
}
|
|
398
|
-
|
|
399
476
|
// Operation Specifications
|
|
400
|
-
const serializer =
|
|
401
|
-
|
|
402
|
-
|
|
477
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
478
|
+
|
|
479
|
+
const listByDatabaseOperationSpec: coreClient.OperationSpec = {
|
|
403
480
|
path:
|
|
404
|
-
"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/scripts",
|
|
405
|
-
|
|
406
|
-
Parameters.subscriptionId,
|
|
407
|
-
Parameters.resourceGroupName,
|
|
408
|
-
Parameters.clusterName,
|
|
409
|
-
Parameters.databaseName
|
|
410
|
-
],
|
|
411
|
-
queryParameters: [Parameters.apiVersion],
|
|
412
|
-
headerParameters: [Parameters.acceptLanguage],
|
|
481
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/scripts",
|
|
482
|
+
httpMethod: "GET",
|
|
413
483
|
responses: {
|
|
414
484
|
200: {
|
|
415
485
|
bodyMapper: Mappers.ScriptListResult
|
|
@@ -418,22 +488,21 @@ const listByDatabaseOperationSpec: msRest.OperationSpec = {
|
|
|
418
488
|
bodyMapper: Mappers.CloudError
|
|
419
489
|
}
|
|
420
490
|
},
|
|
421
|
-
|
|
422
|
-
};
|
|
423
|
-
|
|
424
|
-
const getOperationSpec: msRest.OperationSpec = {
|
|
425
|
-
httpMethod: "GET",
|
|
426
|
-
path:
|
|
427
|
-
"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/scripts/{scriptName}",
|
|
491
|
+
queryParameters: [Parameters.apiVersion],
|
|
428
492
|
urlParameters: [
|
|
429
|
-
Parameters
|
|
493
|
+
Parameters.$host,
|
|
430
494
|
Parameters.resourceGroupName,
|
|
431
495
|
Parameters.clusterName,
|
|
432
|
-
Parameters.
|
|
433
|
-
Parameters.
|
|
496
|
+
Parameters.subscriptionId,
|
|
497
|
+
Parameters.databaseName
|
|
434
498
|
],
|
|
435
|
-
|
|
436
|
-
|
|
499
|
+
headerParameters: [Parameters.accept],
|
|
500
|
+
serializer
|
|
501
|
+
};
|
|
502
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
503
|
+
path:
|
|
504
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/scripts/{scriptName}",
|
|
505
|
+
httpMethod: "GET",
|
|
437
506
|
responses: {
|
|
438
507
|
200: {
|
|
439
508
|
bodyMapper: Mappers.Script
|
|
@@ -442,59 +511,57 @@ const getOperationSpec: msRest.OperationSpec = {
|
|
|
442
511
|
bodyMapper: Mappers.CloudError
|
|
443
512
|
}
|
|
444
513
|
},
|
|
445
|
-
|
|
446
|
-
};
|
|
447
|
-
|
|
448
|
-
const checkNameAvailabilityOperationSpec: msRest.OperationSpec = {
|
|
449
|
-
httpMethod: "POST",
|
|
450
|
-
path:
|
|
451
|
-
"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/scriptsCheckNameAvailability",
|
|
514
|
+
queryParameters: [Parameters.apiVersion],
|
|
452
515
|
urlParameters: [
|
|
516
|
+
Parameters.$host,
|
|
453
517
|
Parameters.resourceGroupName,
|
|
454
518
|
Parameters.clusterName,
|
|
519
|
+
Parameters.subscriptionId,
|
|
455
520
|
Parameters.databaseName,
|
|
456
|
-
Parameters.
|
|
521
|
+
Parameters.scriptName
|
|
457
522
|
],
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
}
|
|
466
|
-
},
|
|
523
|
+
headerParameters: [Parameters.accept],
|
|
524
|
+
serializer
|
|
525
|
+
};
|
|
526
|
+
const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
527
|
+
path:
|
|
528
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/scripts/{scriptName}",
|
|
529
|
+
httpMethod: "PUT",
|
|
467
530
|
responses: {
|
|
468
531
|
200: {
|
|
469
|
-
bodyMapper: Mappers.
|
|
532
|
+
bodyMapper: Mappers.Script
|
|
533
|
+
},
|
|
534
|
+
201: {
|
|
535
|
+
bodyMapper: Mappers.Script
|
|
536
|
+
},
|
|
537
|
+
202: {
|
|
538
|
+
bodyMapper: Mappers.Script
|
|
539
|
+
},
|
|
540
|
+
204: {
|
|
541
|
+
bodyMapper: Mappers.Script
|
|
470
542
|
},
|
|
471
543
|
default: {
|
|
472
544
|
bodyMapper: Mappers.CloudError
|
|
473
545
|
}
|
|
474
546
|
},
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = {
|
|
479
|
-
httpMethod: "PUT",
|
|
480
|
-
path:
|
|
481
|
-
"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/scripts/{scriptName}",
|
|
547
|
+
requestBody: Parameters.parameters7,
|
|
548
|
+
queryParameters: [Parameters.apiVersion],
|
|
482
549
|
urlParameters: [
|
|
483
|
-
Parameters
|
|
550
|
+
Parameters.$host,
|
|
484
551
|
Parameters.resourceGroupName,
|
|
485
552
|
Parameters.clusterName,
|
|
553
|
+
Parameters.subscriptionId,
|
|
486
554
|
Parameters.databaseName,
|
|
487
555
|
Parameters.scriptName
|
|
488
556
|
],
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
},
|
|
557
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
558
|
+
mediaType: "json",
|
|
559
|
+
serializer
|
|
560
|
+
};
|
|
561
|
+
const updateOperationSpec: coreClient.OperationSpec = {
|
|
562
|
+
path:
|
|
563
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/scripts/{scriptName}",
|
|
564
|
+
httpMethod: "PATCH",
|
|
498
565
|
responses: {
|
|
499
566
|
200: {
|
|
500
567
|
bodyMapper: Mappers.Script
|
|
@@ -505,67 +572,74 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = {
|
|
|
505
572
|
202: {
|
|
506
573
|
bodyMapper: Mappers.Script
|
|
507
574
|
},
|
|
575
|
+
204: {
|
|
576
|
+
bodyMapper: Mappers.Script
|
|
577
|
+
},
|
|
508
578
|
default: {
|
|
509
579
|
bodyMapper: Mappers.CloudError
|
|
510
580
|
}
|
|
511
581
|
},
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
const beginUpdateOperationSpec: msRest.OperationSpec = {
|
|
516
|
-
httpMethod: "PATCH",
|
|
517
|
-
path:
|
|
518
|
-
"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/scripts/{scriptName}",
|
|
582
|
+
requestBody: Parameters.parameters7,
|
|
583
|
+
queryParameters: [Parameters.apiVersion],
|
|
519
584
|
urlParameters: [
|
|
520
|
-
Parameters
|
|
585
|
+
Parameters.$host,
|
|
521
586
|
Parameters.resourceGroupName,
|
|
522
587
|
Parameters.clusterName,
|
|
588
|
+
Parameters.subscriptionId,
|
|
523
589
|
Parameters.databaseName,
|
|
524
590
|
Parameters.scriptName
|
|
525
591
|
],
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
},
|
|
592
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
593
|
+
mediaType: "json",
|
|
594
|
+
serializer
|
|
595
|
+
};
|
|
596
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
597
|
+
path:
|
|
598
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/scripts/{scriptName}",
|
|
599
|
+
httpMethod: "DELETE",
|
|
535
600
|
responses: {
|
|
536
|
-
200: {
|
|
537
|
-
|
|
538
|
-
},
|
|
539
|
-
|
|
540
|
-
bodyMapper: Mappers.Script
|
|
541
|
-
},
|
|
601
|
+
200: {},
|
|
602
|
+
201: {},
|
|
603
|
+
202: {},
|
|
604
|
+
204: {},
|
|
542
605
|
default: {
|
|
543
606
|
bodyMapper: Mappers.CloudError
|
|
544
607
|
}
|
|
545
608
|
},
|
|
546
|
-
|
|
547
|
-
};
|
|
548
|
-
|
|
549
|
-
const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
|
|
550
|
-
httpMethod: "DELETE",
|
|
551
|
-
path:
|
|
552
|
-
"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/scripts/{scriptName}",
|
|
609
|
+
queryParameters: [Parameters.apiVersion],
|
|
553
610
|
urlParameters: [
|
|
554
|
-
Parameters
|
|
611
|
+
Parameters.$host,
|
|
555
612
|
Parameters.resourceGroupName,
|
|
556
613
|
Parameters.clusterName,
|
|
614
|
+
Parameters.subscriptionId,
|
|
557
615
|
Parameters.databaseName,
|
|
558
616
|
Parameters.scriptName
|
|
559
617
|
],
|
|
560
|
-
|
|
561
|
-
|
|
618
|
+
headerParameters: [Parameters.accept],
|
|
619
|
+
serializer
|
|
620
|
+
};
|
|
621
|
+
const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = {
|
|
622
|
+
path:
|
|
623
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/scriptsCheckNameAvailability",
|
|
624
|
+
httpMethod: "POST",
|
|
562
625
|
responses: {
|
|
563
|
-
200: {
|
|
564
|
-
|
|
565
|
-
|
|
626
|
+
200: {
|
|
627
|
+
bodyMapper: Mappers.CheckNameResult
|
|
628
|
+
},
|
|
566
629
|
default: {
|
|
567
630
|
bodyMapper: Mappers.CloudError
|
|
568
631
|
}
|
|
569
632
|
},
|
|
633
|
+
requestBody: Parameters.scriptName1,
|
|
634
|
+
queryParameters: [Parameters.apiVersion],
|
|
635
|
+
urlParameters: [
|
|
636
|
+
Parameters.$host,
|
|
637
|
+
Parameters.resourceGroupName,
|
|
638
|
+
Parameters.clusterName,
|
|
639
|
+
Parameters.subscriptionId,
|
|
640
|
+
Parameters.databaseName
|
|
641
|
+
],
|
|
642
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
643
|
+
mediaType: "json",
|
|
570
644
|
serializer
|
|
571
645
|
};
|