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