@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,83 +3,128 @@
|
|
|
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 { DatabasePrincipalAssignments } 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
|
+
DatabasePrincipalAssignment,
|
|
19
|
+
DatabasePrincipalAssignmentsListOptionalParams,
|
|
20
|
+
DatabasePrincipalAssignmentCheckNameRequest,
|
|
21
|
+
DatabasePrincipalAssignmentsCheckNameAvailabilityOptionalParams,
|
|
22
|
+
DatabasePrincipalAssignmentsCheckNameAvailabilityResponse,
|
|
23
|
+
DatabasePrincipalAssignmentsGetOptionalParams,
|
|
24
|
+
DatabasePrincipalAssignmentsGetResponse,
|
|
25
|
+
DatabasePrincipalAssignmentsCreateOrUpdateOptionalParams,
|
|
26
|
+
DatabasePrincipalAssignmentsCreateOrUpdateResponse,
|
|
27
|
+
DatabasePrincipalAssignmentsDeleteOptionalParams,
|
|
28
|
+
DatabasePrincipalAssignmentsListResponse
|
|
29
|
+
} from "../models";
|
|
16
30
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
31
|
+
/// <reference lib="esnext.asynciterable" />
|
|
32
|
+
/** Class containing DatabasePrincipalAssignments operations. */
|
|
33
|
+
export class DatabasePrincipalAssignmentsImpl
|
|
34
|
+
implements DatabasePrincipalAssignments {
|
|
35
|
+
private readonly client: KustoManagementClient;
|
|
20
36
|
|
|
21
37
|
/**
|
|
22
|
-
*
|
|
23
|
-
* @param
|
|
38
|
+
* Initialize a new instance of the class DatabasePrincipalAssignments class.
|
|
39
|
+
* @param client Reference to the service client
|
|
24
40
|
*/
|
|
25
|
-
constructor(client:
|
|
41
|
+
constructor(client: KustoManagementClient) {
|
|
26
42
|
this.client = client;
|
|
27
43
|
}
|
|
28
44
|
|
|
29
45
|
/**
|
|
30
|
-
*
|
|
46
|
+
* Lists all Kusto cluster database principalAssignments.
|
|
31
47
|
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
32
48
|
* @param clusterName The name of the Kusto cluster.
|
|
33
49
|
* @param databaseName The name of the database in the Kusto cluster.
|
|
34
|
-
* @param
|
|
35
|
-
* @param [options] The optional parameters
|
|
36
|
-
* @returns Promise<Models.DatabasePrincipalAssignmentsCheckNameAvailabilityResponse>
|
|
50
|
+
* @param options The options parameters.
|
|
37
51
|
*/
|
|
38
|
-
|
|
52
|
+
public list(
|
|
39
53
|
resourceGroupName: string,
|
|
40
54
|
clusterName: string,
|
|
41
55
|
databaseName: string,
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
56
|
+
options?: DatabasePrincipalAssignmentsListOptionalParams
|
|
57
|
+
): PagedAsyncIterableIterator<DatabasePrincipalAssignment> {
|
|
58
|
+
const iter = this.listPagingAll(
|
|
59
|
+
resourceGroupName,
|
|
60
|
+
clusterName,
|
|
61
|
+
databaseName,
|
|
62
|
+
options
|
|
63
|
+
);
|
|
64
|
+
return {
|
|
65
|
+
next() {
|
|
66
|
+
return iter.next();
|
|
67
|
+
},
|
|
68
|
+
[Symbol.asyncIterator]() {
|
|
69
|
+
return this;
|
|
70
|
+
},
|
|
71
|
+
byPage: () => {
|
|
72
|
+
return this.listPagingPage(
|
|
73
|
+
resourceGroupName,
|
|
74
|
+
clusterName,
|
|
75
|
+
databaseName,
|
|
76
|
+
options
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
private async *listPagingPage(
|
|
83
|
+
resourceGroupName: string,
|
|
84
|
+
clusterName: string,
|
|
85
|
+
databaseName: string,
|
|
86
|
+
options?: DatabasePrincipalAssignmentsListOptionalParams
|
|
87
|
+
): AsyncIterableIterator<DatabasePrincipalAssignment[]> {
|
|
88
|
+
let result = await this._list(
|
|
89
|
+
resourceGroupName,
|
|
90
|
+
clusterName,
|
|
91
|
+
databaseName,
|
|
92
|
+
options
|
|
93
|
+
);
|
|
94
|
+
yield result.value || [];
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
private async *listPagingAll(
|
|
53
98
|
resourceGroupName: string,
|
|
54
99
|
clusterName: string,
|
|
55
100
|
databaseName: string,
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
101
|
+
options?: DatabasePrincipalAssignmentsListOptionalParams
|
|
102
|
+
): AsyncIterableIterator<DatabasePrincipalAssignment> {
|
|
103
|
+
for await (const page of this.listPagingPage(
|
|
104
|
+
resourceGroupName,
|
|
105
|
+
clusterName,
|
|
106
|
+
databaseName,
|
|
107
|
+
options
|
|
108
|
+
)) {
|
|
109
|
+
yield* page;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
59
113
|
/**
|
|
114
|
+
* Checks that the database principal assignment is valid and is not already in use.
|
|
60
115
|
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
61
116
|
* @param clusterName The name of the Kusto cluster.
|
|
62
117
|
* @param databaseName The name of the database in the Kusto cluster.
|
|
63
118
|
* @param principalAssignmentName The name of the resource.
|
|
64
|
-
* @param options The
|
|
65
|
-
* @param callback The callback
|
|
119
|
+
* @param options The options parameters.
|
|
66
120
|
*/
|
|
67
121
|
checkNameAvailability(
|
|
68
122
|
resourceGroupName: string,
|
|
69
123
|
clusterName: string,
|
|
70
124
|
databaseName: string,
|
|
71
|
-
principalAssignmentName:
|
|
72
|
-
options
|
|
73
|
-
|
|
74
|
-
): void;
|
|
75
|
-
checkNameAvailability(
|
|
76
|
-
resourceGroupName: string,
|
|
77
|
-
clusterName: string,
|
|
78
|
-
databaseName: string,
|
|
79
|
-
principalAssignmentName: Models.DatabasePrincipalAssignmentCheckNameRequest,
|
|
80
|
-
options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.CheckNameResult>,
|
|
81
|
-
callback?: msRest.ServiceCallback<Models.CheckNameResult>
|
|
82
|
-
): Promise<Models.DatabasePrincipalAssignmentsCheckNameAvailabilityResponse> {
|
|
125
|
+
principalAssignmentName: DatabasePrincipalAssignmentCheckNameRequest,
|
|
126
|
+
options?: DatabasePrincipalAssignmentsCheckNameAvailabilityOptionalParams
|
|
127
|
+
): Promise<DatabasePrincipalAssignmentsCheckNameAvailabilityResponse> {
|
|
83
128
|
return this.client.sendOperationRequest(
|
|
84
129
|
{
|
|
85
130
|
resourceGroupName,
|
|
@@ -88,9 +133,8 @@ export class DatabasePrincipalAssignments {
|
|
|
88
133
|
principalAssignmentName,
|
|
89
134
|
options
|
|
90
135
|
},
|
|
91
|
-
checkNameAvailabilityOperationSpec
|
|
92
|
-
|
|
93
|
-
) as Promise<Models.DatabasePrincipalAssignmentsCheckNameAvailabilityResponse>;
|
|
136
|
+
checkNameAvailabilityOperationSpec
|
|
137
|
+
);
|
|
94
138
|
}
|
|
95
139
|
|
|
96
140
|
/**
|
|
@@ -99,67 +143,104 @@ export class DatabasePrincipalAssignments {
|
|
|
99
143
|
* @param clusterName The name of the Kusto cluster.
|
|
100
144
|
* @param databaseName The name of the database in the Kusto cluster.
|
|
101
145
|
* @param principalAssignmentName The name of the Kusto principalAssignment.
|
|
102
|
-
* @param
|
|
103
|
-
* @returns Promise<Models.DatabasePrincipalAssignmentsGetResponse>
|
|
104
|
-
*/
|
|
105
|
-
get(
|
|
106
|
-
resourceGroupName: string,
|
|
107
|
-
clusterName: string,
|
|
108
|
-
databaseName: string,
|
|
109
|
-
principalAssignmentName: string,
|
|
110
|
-
options?: msRest.RequestOptionsBase
|
|
111
|
-
): Promise<Models.DatabasePrincipalAssignmentsGetResponse>;
|
|
112
|
-
/**
|
|
113
|
-
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
114
|
-
* @param clusterName The name of the Kusto cluster.
|
|
115
|
-
* @param databaseName The name of the database in the Kusto cluster.
|
|
116
|
-
* @param principalAssignmentName The name of the Kusto principalAssignment.
|
|
117
|
-
* @param callback The callback
|
|
146
|
+
* @param options The options parameters.
|
|
118
147
|
*/
|
|
119
148
|
get(
|
|
120
149
|
resourceGroupName: string,
|
|
121
150
|
clusterName: string,
|
|
122
151
|
databaseName: string,
|
|
123
152
|
principalAssignmentName: string,
|
|
124
|
-
|
|
125
|
-
):
|
|
153
|
+
options?: DatabasePrincipalAssignmentsGetOptionalParams
|
|
154
|
+
): Promise<DatabasePrincipalAssignmentsGetResponse> {
|
|
155
|
+
return this.client.sendOperationRequest(
|
|
156
|
+
{
|
|
157
|
+
resourceGroupName,
|
|
158
|
+
clusterName,
|
|
159
|
+
databaseName,
|
|
160
|
+
principalAssignmentName,
|
|
161
|
+
options
|
|
162
|
+
},
|
|
163
|
+
getOperationSpec
|
|
164
|
+
);
|
|
165
|
+
}
|
|
166
|
+
|
|
126
167
|
/**
|
|
168
|
+
* Creates a Kusto cluster database principalAssignment.
|
|
127
169
|
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
128
170
|
* @param clusterName The name of the Kusto cluster.
|
|
129
171
|
* @param databaseName The name of the database in the Kusto cluster.
|
|
130
172
|
* @param principalAssignmentName The name of the Kusto principalAssignment.
|
|
131
|
-
* @param
|
|
132
|
-
* @param
|
|
173
|
+
* @param parameters The Kusto principalAssignments parameters supplied for the operation.
|
|
174
|
+
* @param options The options parameters.
|
|
133
175
|
*/
|
|
134
|
-
|
|
176
|
+
async beginCreateOrUpdate(
|
|
135
177
|
resourceGroupName: string,
|
|
136
178
|
clusterName: string,
|
|
137
179
|
databaseName: string,
|
|
138
180
|
principalAssignmentName: string,
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
):
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
181
|
+
parameters: DatabasePrincipalAssignment,
|
|
182
|
+
options?: DatabasePrincipalAssignmentsCreateOrUpdateOptionalParams
|
|
183
|
+
): Promise<
|
|
184
|
+
PollerLike<
|
|
185
|
+
PollOperationState<DatabasePrincipalAssignmentsCreateOrUpdateResponse>,
|
|
186
|
+
DatabasePrincipalAssignmentsCreateOrUpdateResponse
|
|
187
|
+
>
|
|
188
|
+
> {
|
|
189
|
+
const directSendOperation = async (
|
|
190
|
+
args: coreClient.OperationArguments,
|
|
191
|
+
spec: coreClient.OperationSpec
|
|
192
|
+
): Promise<DatabasePrincipalAssignmentsCreateOrUpdateResponse> => {
|
|
193
|
+
return this.client.sendOperationRequest(args, spec);
|
|
194
|
+
};
|
|
195
|
+
const sendOperation = async (
|
|
196
|
+
args: coreClient.OperationArguments,
|
|
197
|
+
spec: coreClient.OperationSpec
|
|
198
|
+
) => {
|
|
199
|
+
let currentRawResponse:
|
|
200
|
+
| coreClient.FullOperationResponse
|
|
201
|
+
| undefined = undefined;
|
|
202
|
+
const providedCallback = args.options?.onResponse;
|
|
203
|
+
const callback: coreClient.RawResponseCallback = (
|
|
204
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
205
|
+
flatResponse: unknown
|
|
206
|
+
) => {
|
|
207
|
+
currentRawResponse = rawResponse;
|
|
208
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
209
|
+
};
|
|
210
|
+
const updatedArgs = {
|
|
211
|
+
...args,
|
|
212
|
+
options: {
|
|
213
|
+
...args.options,
|
|
214
|
+
onResponse: callback
|
|
215
|
+
}
|
|
216
|
+
};
|
|
217
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
218
|
+
return {
|
|
219
|
+
flatResponse,
|
|
220
|
+
rawResponse: {
|
|
221
|
+
statusCode: currentRawResponse!.status,
|
|
222
|
+
body: currentRawResponse!.parsedBody,
|
|
223
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
224
|
+
}
|
|
225
|
+
};
|
|
226
|
+
};
|
|
227
|
+
|
|
228
|
+
const lro = new LroImpl(
|
|
229
|
+
sendOperation,
|
|
153
230
|
{
|
|
154
231
|
resourceGroupName,
|
|
155
232
|
clusterName,
|
|
156
233
|
databaseName,
|
|
157
234
|
principalAssignmentName,
|
|
235
|
+
parameters,
|
|
158
236
|
options
|
|
159
237
|
},
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
238
|
+
createOrUpdateOperationSpec
|
|
239
|
+
);
|
|
240
|
+
return new LroEngine(lro, {
|
|
241
|
+
resumeFrom: options?.resumeFrom,
|
|
242
|
+
intervalInMs: options?.updateIntervalInMs
|
|
243
|
+
});
|
|
163
244
|
}
|
|
164
245
|
|
|
165
246
|
/**
|
|
@@ -169,27 +250,25 @@ export class DatabasePrincipalAssignments {
|
|
|
169
250
|
* @param databaseName The name of the database in the Kusto cluster.
|
|
170
251
|
* @param principalAssignmentName The name of the Kusto principalAssignment.
|
|
171
252
|
* @param parameters The Kusto principalAssignments parameters supplied for the operation.
|
|
172
|
-
* @param
|
|
173
|
-
* @returns Promise<Models.DatabasePrincipalAssignmentsCreateOrUpdateResponse>
|
|
253
|
+
* @param options The options parameters.
|
|
174
254
|
*/
|
|
175
|
-
|
|
255
|
+
async beginCreateOrUpdateAndWait(
|
|
176
256
|
resourceGroupName: string,
|
|
177
257
|
clusterName: string,
|
|
178
258
|
databaseName: string,
|
|
179
259
|
principalAssignmentName: string,
|
|
180
|
-
parameters:
|
|
181
|
-
options?:
|
|
182
|
-
): Promise<
|
|
183
|
-
|
|
260
|
+
parameters: DatabasePrincipalAssignment,
|
|
261
|
+
options?: DatabasePrincipalAssignmentsCreateOrUpdateOptionalParams
|
|
262
|
+
): Promise<DatabasePrincipalAssignmentsCreateOrUpdateResponse> {
|
|
263
|
+
const poller = await this.beginCreateOrUpdate(
|
|
184
264
|
resourceGroupName,
|
|
185
265
|
clusterName,
|
|
186
266
|
databaseName,
|
|
187
267
|
principalAssignmentName,
|
|
188
268
|
parameters,
|
|
189
269
|
options
|
|
190
|
-
)
|
|
191
|
-
|
|
192
|
-
>;
|
|
270
|
+
);
|
|
271
|
+
return poller.pollUntilDone();
|
|
193
272
|
}
|
|
194
273
|
|
|
195
274
|
/**
|
|
@@ -198,169 +277,122 @@ export class DatabasePrincipalAssignments {
|
|
|
198
277
|
* @param clusterName The name of the Kusto cluster.
|
|
199
278
|
* @param databaseName The name of the database in the Kusto cluster.
|
|
200
279
|
* @param principalAssignmentName The name of the Kusto principalAssignment.
|
|
201
|
-
* @param
|
|
202
|
-
* @returns Promise<msRest.RestResponse>
|
|
280
|
+
* @param options The options parameters.
|
|
203
281
|
*/
|
|
204
|
-
|
|
282
|
+
async beginDelete(
|
|
205
283
|
resourceGroupName: string,
|
|
206
284
|
clusterName: string,
|
|
207
285
|
databaseName: string,
|
|
208
286
|
principalAssignmentName: string,
|
|
209
|
-
options?:
|
|
210
|
-
): Promise<
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
287
|
+
options?: DatabasePrincipalAssignmentsDeleteOptionalParams
|
|
288
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
289
|
+
const directSendOperation = async (
|
|
290
|
+
args: coreClient.OperationArguments,
|
|
291
|
+
spec: coreClient.OperationSpec
|
|
292
|
+
): Promise<void> => {
|
|
293
|
+
return this.client.sendOperationRequest(args, spec);
|
|
294
|
+
};
|
|
295
|
+
const sendOperation = async (
|
|
296
|
+
args: coreClient.OperationArguments,
|
|
297
|
+
spec: coreClient.OperationSpec
|
|
298
|
+
) => {
|
|
299
|
+
let currentRawResponse:
|
|
300
|
+
| coreClient.FullOperationResponse
|
|
301
|
+
| undefined = undefined;
|
|
302
|
+
const providedCallback = args.options?.onResponse;
|
|
303
|
+
const callback: coreClient.RawResponseCallback = (
|
|
304
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
305
|
+
flatResponse: unknown
|
|
306
|
+
) => {
|
|
307
|
+
currentRawResponse = rawResponse;
|
|
308
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
309
|
+
};
|
|
310
|
+
const updatedArgs = {
|
|
311
|
+
...args,
|
|
312
|
+
options: {
|
|
313
|
+
...args.options,
|
|
314
|
+
onResponse: callback
|
|
315
|
+
}
|
|
316
|
+
};
|
|
317
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
318
|
+
return {
|
|
319
|
+
flatResponse,
|
|
320
|
+
rawResponse: {
|
|
321
|
+
statusCode: currentRawResponse!.status,
|
|
322
|
+
body: currentRawResponse!.parsedBody,
|
|
323
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
324
|
+
}
|
|
325
|
+
};
|
|
326
|
+
};
|
|
219
327
|
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
223
|
-
* @param clusterName The name of the Kusto cluster.
|
|
224
|
-
* @param databaseName The name of the database in the Kusto cluster.
|
|
225
|
-
* @param [options] The optional parameters
|
|
226
|
-
* @returns Promise<Models.DatabasePrincipalAssignmentsListResponse>
|
|
227
|
-
*/
|
|
228
|
-
list(
|
|
229
|
-
resourceGroupName: string,
|
|
230
|
-
clusterName: string,
|
|
231
|
-
databaseName: string,
|
|
232
|
-
options?: msRest.RequestOptionsBase
|
|
233
|
-
): Promise<Models.DatabasePrincipalAssignmentsListResponse>;
|
|
234
|
-
/**
|
|
235
|
-
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
236
|
-
* @param clusterName The name of the Kusto cluster.
|
|
237
|
-
* @param databaseName The name of the database in the Kusto cluster.
|
|
238
|
-
* @param callback The callback
|
|
239
|
-
*/
|
|
240
|
-
list(
|
|
241
|
-
resourceGroupName: string,
|
|
242
|
-
clusterName: string,
|
|
243
|
-
databaseName: string,
|
|
244
|
-
callback: msRest.ServiceCallback<Models.DatabasePrincipalAssignmentListResult>
|
|
245
|
-
): void;
|
|
246
|
-
/**
|
|
247
|
-
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
248
|
-
* @param clusterName The name of the Kusto cluster.
|
|
249
|
-
* @param databaseName The name of the database in the Kusto cluster.
|
|
250
|
-
* @param options The optional parameters
|
|
251
|
-
* @param callback The callback
|
|
252
|
-
*/
|
|
253
|
-
list(
|
|
254
|
-
resourceGroupName: string,
|
|
255
|
-
clusterName: string,
|
|
256
|
-
databaseName: string,
|
|
257
|
-
options: msRest.RequestOptionsBase,
|
|
258
|
-
callback: msRest.ServiceCallback<Models.DatabasePrincipalAssignmentListResult>
|
|
259
|
-
): void;
|
|
260
|
-
list(
|
|
261
|
-
resourceGroupName: string,
|
|
262
|
-
clusterName: string,
|
|
263
|
-
databaseName: string,
|
|
264
|
-
options?:
|
|
265
|
-
| msRest.RequestOptionsBase
|
|
266
|
-
| msRest.ServiceCallback<Models.DatabasePrincipalAssignmentListResult>,
|
|
267
|
-
callback?: msRest.ServiceCallback<Models.DatabasePrincipalAssignmentListResult>
|
|
268
|
-
): Promise<Models.DatabasePrincipalAssignmentsListResponse> {
|
|
269
|
-
return this.client.sendOperationRequest(
|
|
328
|
+
const lro = new LroImpl(
|
|
329
|
+
sendOperation,
|
|
270
330
|
{
|
|
271
331
|
resourceGroupName,
|
|
272
332
|
clusterName,
|
|
273
333
|
databaseName,
|
|
334
|
+
principalAssignmentName,
|
|
274
335
|
options
|
|
275
336
|
},
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
337
|
+
deleteOperationSpec
|
|
338
|
+
);
|
|
339
|
+
return new LroEngine(lro, {
|
|
340
|
+
resumeFrom: options?.resumeFrom,
|
|
341
|
+
intervalInMs: options?.updateIntervalInMs
|
|
342
|
+
});
|
|
279
343
|
}
|
|
280
344
|
|
|
281
345
|
/**
|
|
282
|
-
*
|
|
346
|
+
* Deletes a Kusto principalAssignment.
|
|
283
347
|
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
284
348
|
* @param clusterName The name of the Kusto cluster.
|
|
285
349
|
* @param databaseName The name of the database in the Kusto cluster.
|
|
286
350
|
* @param principalAssignmentName The name of the Kusto principalAssignment.
|
|
287
|
-
* @param
|
|
288
|
-
* @param [options] The optional parameters
|
|
289
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
351
|
+
* @param options The options parameters.
|
|
290
352
|
*/
|
|
291
|
-
|
|
353
|
+
async beginDeleteAndWait(
|
|
292
354
|
resourceGroupName: string,
|
|
293
355
|
clusterName: string,
|
|
294
356
|
databaseName: string,
|
|
295
357
|
principalAssignmentName: string,
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
databaseName,
|
|
304
|
-
principalAssignmentName,
|
|
305
|
-
parameters,
|
|
306
|
-
options
|
|
307
|
-
},
|
|
308
|
-
beginCreateOrUpdateOperationSpec,
|
|
358
|
+
options?: DatabasePrincipalAssignmentsDeleteOptionalParams
|
|
359
|
+
): Promise<void> {
|
|
360
|
+
const poller = await this.beginDelete(
|
|
361
|
+
resourceGroupName,
|
|
362
|
+
clusterName,
|
|
363
|
+
databaseName,
|
|
364
|
+
principalAssignmentName,
|
|
309
365
|
options
|
|
310
366
|
);
|
|
367
|
+
return poller.pollUntilDone();
|
|
311
368
|
}
|
|
312
369
|
|
|
313
370
|
/**
|
|
314
|
-
*
|
|
371
|
+
* Lists all Kusto cluster database principalAssignments.
|
|
315
372
|
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
316
373
|
* @param clusterName The name of the Kusto cluster.
|
|
317
374
|
* @param databaseName The name of the database in the Kusto cluster.
|
|
318
|
-
* @param
|
|
319
|
-
* @param [options] The optional parameters
|
|
320
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
375
|
+
* @param options The options parameters.
|
|
321
376
|
*/
|
|
322
|
-
|
|
377
|
+
private _list(
|
|
323
378
|
resourceGroupName: string,
|
|
324
379
|
clusterName: string,
|
|
325
380
|
databaseName: string,
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
resourceGroupName,
|
|
332
|
-
clusterName,
|
|
333
|
-
databaseName,
|
|
334
|
-
principalAssignmentName,
|
|
335
|
-
options
|
|
336
|
-
},
|
|
337
|
-
beginDeleteMethodOperationSpec,
|
|
338
|
-
options
|
|
381
|
+
options?: DatabasePrincipalAssignmentsListOptionalParams
|
|
382
|
+
): Promise<DatabasePrincipalAssignmentsListResponse> {
|
|
383
|
+
return this.client.sendOperationRequest(
|
|
384
|
+
{ resourceGroupName, clusterName, databaseName, options },
|
|
385
|
+
listOperationSpec
|
|
339
386
|
);
|
|
340
387
|
}
|
|
341
388
|
}
|
|
342
|
-
|
|
343
389
|
// Operation Specifications
|
|
344
|
-
const serializer =
|
|
345
|
-
|
|
346
|
-
|
|
390
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
391
|
+
|
|
392
|
+
const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = {
|
|
347
393
|
path:
|
|
348
|
-
"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/checkPrincipalAssignmentNameAvailability",
|
|
349
|
-
|
|
350
|
-
Parameters.resourceGroupName,
|
|
351
|
-
Parameters.clusterName,
|
|
352
|
-
Parameters.databaseName,
|
|
353
|
-
Parameters.subscriptionId
|
|
354
|
-
],
|
|
355
|
-
queryParameters: [Parameters.apiVersion],
|
|
356
|
-
headerParameters: [Parameters.acceptLanguage],
|
|
357
|
-
requestBody: {
|
|
358
|
-
parameterPath: "principalAssignmentName",
|
|
359
|
-
mapper: {
|
|
360
|
-
...Mappers.DatabasePrincipalAssignmentCheckNameRequest,
|
|
361
|
-
required: true
|
|
362
|
-
}
|
|
363
|
-
},
|
|
394
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/checkPrincipalAssignmentNameAvailability",
|
|
395
|
+
httpMethod: "POST",
|
|
364
396
|
responses: {
|
|
365
397
|
200: {
|
|
366
398
|
bodyMapper: Mappers.CheckNameResult
|
|
@@ -369,22 +401,23 @@ const checkNameAvailabilityOperationSpec: msRest.OperationSpec = {
|
|
|
369
401
|
bodyMapper: Mappers.CloudError
|
|
370
402
|
}
|
|
371
403
|
},
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
const getOperationSpec: msRest.OperationSpec = {
|
|
376
|
-
httpMethod: "GET",
|
|
377
|
-
path:
|
|
378
|
-
"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/principalAssignments/{principalAssignmentName}",
|
|
404
|
+
requestBody: Parameters.principalAssignmentName2,
|
|
405
|
+
queryParameters: [Parameters.apiVersion],
|
|
379
406
|
urlParameters: [
|
|
380
|
-
Parameters
|
|
407
|
+
Parameters.$host,
|
|
381
408
|
Parameters.resourceGroupName,
|
|
382
409
|
Parameters.clusterName,
|
|
383
|
-
Parameters.
|
|
384
|
-
Parameters.
|
|
410
|
+
Parameters.subscriptionId,
|
|
411
|
+
Parameters.databaseName
|
|
385
412
|
],
|
|
386
|
-
|
|
387
|
-
|
|
413
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
414
|
+
mediaType: "json",
|
|
415
|
+
serializer
|
|
416
|
+
};
|
|
417
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
418
|
+
path:
|
|
419
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/principalAssignments/{principalAssignmentName}",
|
|
420
|
+
httpMethod: "GET",
|
|
388
421
|
responses: {
|
|
389
422
|
200: {
|
|
390
423
|
bodyMapper: Mappers.DatabasePrincipalAssignment
|
|
@@ -393,52 +426,22 @@ const getOperationSpec: msRest.OperationSpec = {
|
|
|
393
426
|
bodyMapper: Mappers.CloudError
|
|
394
427
|
}
|
|
395
428
|
},
|
|
396
|
-
|
|
397
|
-
};
|
|
398
|
-
|
|
399
|
-
const listOperationSpec: msRest.OperationSpec = {
|
|
400
|
-
httpMethod: "GET",
|
|
401
|
-
path:
|
|
402
|
-
"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/principalAssignments",
|
|
429
|
+
queryParameters: [Parameters.apiVersion],
|
|
403
430
|
urlParameters: [
|
|
404
|
-
Parameters
|
|
431
|
+
Parameters.$host,
|
|
405
432
|
Parameters.resourceGroupName,
|
|
406
433
|
Parameters.clusterName,
|
|
434
|
+
Parameters.subscriptionId,
|
|
435
|
+
Parameters.principalAssignmentName1,
|
|
407
436
|
Parameters.databaseName
|
|
408
437
|
],
|
|
409
|
-
|
|
410
|
-
headerParameters: [Parameters.acceptLanguage],
|
|
411
|
-
responses: {
|
|
412
|
-
200: {
|
|
413
|
-
bodyMapper: Mappers.DatabasePrincipalAssignmentListResult
|
|
414
|
-
},
|
|
415
|
-
default: {
|
|
416
|
-
bodyMapper: Mappers.CloudError
|
|
417
|
-
}
|
|
418
|
-
},
|
|
438
|
+
headerParameters: [Parameters.accept],
|
|
419
439
|
serializer
|
|
420
440
|
};
|
|
421
|
-
|
|
422
|
-
const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = {
|
|
423
|
-
httpMethod: "PUT",
|
|
441
|
+
const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
424
442
|
path:
|
|
425
|
-
"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/principalAssignments/{principalAssignmentName}",
|
|
426
|
-
|
|
427
|
-
Parameters.subscriptionId,
|
|
428
|
-
Parameters.resourceGroupName,
|
|
429
|
-
Parameters.clusterName,
|
|
430
|
-
Parameters.databaseName,
|
|
431
|
-
Parameters.principalAssignmentName
|
|
432
|
-
],
|
|
433
|
-
queryParameters: [Parameters.apiVersion],
|
|
434
|
-
headerParameters: [Parameters.acceptLanguage],
|
|
435
|
-
requestBody: {
|
|
436
|
-
parameterPath: "parameters",
|
|
437
|
-
mapper: {
|
|
438
|
-
...Mappers.DatabasePrincipalAssignment,
|
|
439
|
-
required: true
|
|
440
|
-
}
|
|
441
|
-
},
|
|
443
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/principalAssignments/{principalAssignmentName}",
|
|
444
|
+
httpMethod: "PUT",
|
|
442
445
|
responses: {
|
|
443
446
|
200: {
|
|
444
447
|
bodyMapper: Mappers.DatabasePrincipalAssignment
|
|
@@ -446,33 +449,75 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = {
|
|
|
446
449
|
201: {
|
|
447
450
|
bodyMapper: Mappers.DatabasePrincipalAssignment
|
|
448
451
|
},
|
|
452
|
+
202: {
|
|
453
|
+
bodyMapper: Mappers.DatabasePrincipalAssignment
|
|
454
|
+
},
|
|
455
|
+
204: {
|
|
456
|
+
bodyMapper: Mappers.DatabasePrincipalAssignment
|
|
457
|
+
},
|
|
449
458
|
default: {
|
|
450
459
|
bodyMapper: Mappers.CloudError
|
|
451
460
|
}
|
|
452
461
|
},
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
|
|
457
|
-
httpMethod: "DELETE",
|
|
458
|
-
path:
|
|
459
|
-
"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/principalAssignments/{principalAssignmentName}",
|
|
462
|
+
requestBody: Parameters.parameters6,
|
|
463
|
+
queryParameters: [Parameters.apiVersion],
|
|
460
464
|
urlParameters: [
|
|
461
|
-
Parameters
|
|
465
|
+
Parameters.$host,
|
|
462
466
|
Parameters.resourceGroupName,
|
|
463
467
|
Parameters.clusterName,
|
|
464
|
-
Parameters.
|
|
465
|
-
Parameters.
|
|
468
|
+
Parameters.subscriptionId,
|
|
469
|
+
Parameters.principalAssignmentName1,
|
|
470
|
+
Parameters.databaseName
|
|
466
471
|
],
|
|
467
|
-
|
|
468
|
-
|
|
472
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
473
|
+
mediaType: "json",
|
|
474
|
+
serializer
|
|
475
|
+
};
|
|
476
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
477
|
+
path:
|
|
478
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/principalAssignments/{principalAssignmentName}",
|
|
479
|
+
httpMethod: "DELETE",
|
|
469
480
|
responses: {
|
|
470
481
|
200: {},
|
|
482
|
+
201: {},
|
|
471
483
|
202: {},
|
|
472
484
|
204: {},
|
|
473
485
|
default: {
|
|
474
486
|
bodyMapper: Mappers.CloudError
|
|
475
487
|
}
|
|
476
488
|
},
|
|
489
|
+
queryParameters: [Parameters.apiVersion],
|
|
490
|
+
urlParameters: [
|
|
491
|
+
Parameters.$host,
|
|
492
|
+
Parameters.resourceGroupName,
|
|
493
|
+
Parameters.clusterName,
|
|
494
|
+
Parameters.subscriptionId,
|
|
495
|
+
Parameters.principalAssignmentName1,
|
|
496
|
+
Parameters.databaseName
|
|
497
|
+
],
|
|
498
|
+
headerParameters: [Parameters.accept],
|
|
499
|
+
serializer
|
|
500
|
+
};
|
|
501
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
502
|
+
path:
|
|
503
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/principalAssignments",
|
|
504
|
+
httpMethod: "GET",
|
|
505
|
+
responses: {
|
|
506
|
+
200: {
|
|
507
|
+
bodyMapper: Mappers.DatabasePrincipalAssignmentListResult
|
|
508
|
+
},
|
|
509
|
+
default: {
|
|
510
|
+
bodyMapper: Mappers.CloudError
|
|
511
|
+
}
|
|
512
|
+
},
|
|
513
|
+
queryParameters: [Parameters.apiVersion],
|
|
514
|
+
urlParameters: [
|
|
515
|
+
Parameters.$host,
|
|
516
|
+
Parameters.resourceGroupName,
|
|
517
|
+
Parameters.clusterName,
|
|
518
|
+
Parameters.subscriptionId,
|
|
519
|
+
Parameters.databaseName
|
|
520
|
+
],
|
|
521
|
+
headerParameters: [Parameters.accept],
|
|
477
522
|
serializer
|
|
478
523
|
};
|