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