@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,804 +3,1365 @@
|
|
|
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 { Clusters } 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
|
+
FollowerDatabaseDefinition,
|
|
19
|
+
ClustersListFollowerDatabasesOptionalParams,
|
|
20
|
+
Cluster,
|
|
21
|
+
ClustersListByResourceGroupOptionalParams,
|
|
22
|
+
ClustersListOptionalParams,
|
|
23
|
+
SkuDescription,
|
|
24
|
+
ClustersListSkusOptionalParams,
|
|
25
|
+
AzureResourceSku,
|
|
26
|
+
ClustersListSkusByResourceOptionalParams,
|
|
27
|
+
OutboundNetworkDependenciesEndpoint,
|
|
28
|
+
ClustersListOutboundNetworkDependenciesEndpointsNextOptionalParams,
|
|
29
|
+
ClustersListOutboundNetworkDependenciesEndpointsOptionalParams,
|
|
30
|
+
LanguageExtension,
|
|
31
|
+
ClustersListLanguageExtensionsOptionalParams,
|
|
32
|
+
ClustersGetOptionalParams,
|
|
33
|
+
ClustersGetResponse,
|
|
34
|
+
ClustersCreateOrUpdateOptionalParams,
|
|
35
|
+
ClustersCreateOrUpdateResponse,
|
|
36
|
+
ClusterUpdate,
|
|
37
|
+
ClustersUpdateOptionalParams,
|
|
38
|
+
ClustersUpdateResponse,
|
|
39
|
+
ClustersDeleteOptionalParams,
|
|
40
|
+
ClustersStopOptionalParams,
|
|
41
|
+
ClustersStartOptionalParams,
|
|
42
|
+
ClustersListFollowerDatabasesResponse,
|
|
43
|
+
ClustersDetachFollowerDatabasesOptionalParams,
|
|
44
|
+
ClustersDiagnoseVirtualNetworkOptionalParams,
|
|
45
|
+
ClustersDiagnoseVirtualNetworkResponse,
|
|
46
|
+
ClustersListByResourceGroupResponse,
|
|
47
|
+
ClustersListResponse,
|
|
48
|
+
ClustersListSkusResponse,
|
|
49
|
+
ClusterCheckNameRequest,
|
|
50
|
+
ClustersCheckNameAvailabilityOptionalParams,
|
|
51
|
+
ClustersCheckNameAvailabilityResponse,
|
|
52
|
+
ClustersListSkusByResourceResponse,
|
|
53
|
+
ClustersListOutboundNetworkDependenciesEndpointsResponse,
|
|
54
|
+
ClustersListLanguageExtensionsResponse,
|
|
55
|
+
LanguageExtensionsList,
|
|
56
|
+
ClustersAddLanguageExtensionsOptionalParams,
|
|
57
|
+
ClustersRemoveLanguageExtensionsOptionalParams,
|
|
58
|
+
ClustersListOutboundNetworkDependenciesEndpointsNextResponse
|
|
59
|
+
} from "../models";
|
|
16
60
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
61
|
+
/// <reference lib="esnext.asynciterable" />
|
|
62
|
+
/** Class containing Clusters operations. */
|
|
63
|
+
export class ClustersImpl implements Clusters {
|
|
64
|
+
private readonly client: KustoManagementClient;
|
|
20
65
|
|
|
21
66
|
/**
|
|
22
|
-
*
|
|
23
|
-
* @param
|
|
67
|
+
* Initialize a new instance of the class Clusters class.
|
|
68
|
+
* @param client Reference to the service client
|
|
24
69
|
*/
|
|
25
|
-
constructor(client:
|
|
70
|
+
constructor(client: KustoManagementClient) {
|
|
26
71
|
this.client = client;
|
|
27
72
|
}
|
|
28
73
|
|
|
29
74
|
/**
|
|
30
|
-
*
|
|
75
|
+
* Returns a list of databases that are owned by this cluster and were followed by another cluster.
|
|
31
76
|
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
32
77
|
* @param clusterName The name of the Kusto cluster.
|
|
33
|
-
* @param
|
|
34
|
-
* @returns Promise<Models.ClustersGetResponse>
|
|
78
|
+
* @param options The options parameters.
|
|
35
79
|
*/
|
|
36
|
-
|
|
80
|
+
public listFollowerDatabases(
|
|
81
|
+
resourceGroupName: string,
|
|
82
|
+
clusterName: string,
|
|
83
|
+
options?: ClustersListFollowerDatabasesOptionalParams
|
|
84
|
+
): PagedAsyncIterableIterator<FollowerDatabaseDefinition> {
|
|
85
|
+
const iter = this.listFollowerDatabasesPagingAll(
|
|
86
|
+
resourceGroupName,
|
|
87
|
+
clusterName,
|
|
88
|
+
options
|
|
89
|
+
);
|
|
90
|
+
return {
|
|
91
|
+
next() {
|
|
92
|
+
return iter.next();
|
|
93
|
+
},
|
|
94
|
+
[Symbol.asyncIterator]() {
|
|
95
|
+
return this;
|
|
96
|
+
},
|
|
97
|
+
byPage: () => {
|
|
98
|
+
return this.listFollowerDatabasesPagingPage(
|
|
99
|
+
resourceGroupName,
|
|
100
|
+
clusterName,
|
|
101
|
+
options
|
|
102
|
+
);
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
private async *listFollowerDatabasesPagingPage(
|
|
108
|
+
resourceGroupName: string,
|
|
109
|
+
clusterName: string,
|
|
110
|
+
options?: ClustersListFollowerDatabasesOptionalParams
|
|
111
|
+
): AsyncIterableIterator<FollowerDatabaseDefinition[]> {
|
|
112
|
+
let result = await this._listFollowerDatabases(
|
|
113
|
+
resourceGroupName,
|
|
114
|
+
clusterName,
|
|
115
|
+
options
|
|
116
|
+
);
|
|
117
|
+
yield result.value || [];
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
private async *listFollowerDatabasesPagingAll(
|
|
37
121
|
resourceGroupName: string,
|
|
38
122
|
clusterName: string,
|
|
39
|
-
options?:
|
|
40
|
-
):
|
|
123
|
+
options?: ClustersListFollowerDatabasesOptionalParams
|
|
124
|
+
): AsyncIterableIterator<FollowerDatabaseDefinition> {
|
|
125
|
+
for await (const page of this.listFollowerDatabasesPagingPage(
|
|
126
|
+
resourceGroupName,
|
|
127
|
+
clusterName,
|
|
128
|
+
options
|
|
129
|
+
)) {
|
|
130
|
+
yield* page;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
41
134
|
/**
|
|
135
|
+
* Lists all Kusto clusters within a resource group.
|
|
136
|
+
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
137
|
+
* @param options The options parameters.
|
|
138
|
+
*/
|
|
139
|
+
public listByResourceGroup(
|
|
140
|
+
resourceGroupName: string,
|
|
141
|
+
options?: ClustersListByResourceGroupOptionalParams
|
|
142
|
+
): PagedAsyncIterableIterator<Cluster> {
|
|
143
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
144
|
+
return {
|
|
145
|
+
next() {
|
|
146
|
+
return iter.next();
|
|
147
|
+
},
|
|
148
|
+
[Symbol.asyncIterator]() {
|
|
149
|
+
return this;
|
|
150
|
+
},
|
|
151
|
+
byPage: () => {
|
|
152
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options);
|
|
153
|
+
}
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
private async *listByResourceGroupPagingPage(
|
|
158
|
+
resourceGroupName: string,
|
|
159
|
+
options?: ClustersListByResourceGroupOptionalParams
|
|
160
|
+
): AsyncIterableIterator<Cluster[]> {
|
|
161
|
+
let result = await this._listByResourceGroup(resourceGroupName, options);
|
|
162
|
+
yield result.value || [];
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
private async *listByResourceGroupPagingAll(
|
|
166
|
+
resourceGroupName: string,
|
|
167
|
+
options?: ClustersListByResourceGroupOptionalParams
|
|
168
|
+
): AsyncIterableIterator<Cluster> {
|
|
169
|
+
for await (const page of this.listByResourceGroupPagingPage(
|
|
170
|
+
resourceGroupName,
|
|
171
|
+
options
|
|
172
|
+
)) {
|
|
173
|
+
yield* page;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* Lists all Kusto clusters within a subscription.
|
|
179
|
+
* @param options The options parameters.
|
|
180
|
+
*/
|
|
181
|
+
public list(
|
|
182
|
+
options?: ClustersListOptionalParams
|
|
183
|
+
): PagedAsyncIterableIterator<Cluster> {
|
|
184
|
+
const iter = this.listPagingAll(options);
|
|
185
|
+
return {
|
|
186
|
+
next() {
|
|
187
|
+
return iter.next();
|
|
188
|
+
},
|
|
189
|
+
[Symbol.asyncIterator]() {
|
|
190
|
+
return this;
|
|
191
|
+
},
|
|
192
|
+
byPage: () => {
|
|
193
|
+
return this.listPagingPage(options);
|
|
194
|
+
}
|
|
195
|
+
};
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
private async *listPagingPage(
|
|
199
|
+
options?: ClustersListOptionalParams
|
|
200
|
+
): AsyncIterableIterator<Cluster[]> {
|
|
201
|
+
let result = await this._list(options);
|
|
202
|
+
yield result.value || [];
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
private async *listPagingAll(
|
|
206
|
+
options?: ClustersListOptionalParams
|
|
207
|
+
): AsyncIterableIterator<Cluster> {
|
|
208
|
+
for await (const page of this.listPagingPage(options)) {
|
|
209
|
+
yield* page;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* Lists eligible SKUs for Kusto resource provider.
|
|
215
|
+
* @param options The options parameters.
|
|
216
|
+
*/
|
|
217
|
+
public listSkus(
|
|
218
|
+
options?: ClustersListSkusOptionalParams
|
|
219
|
+
): PagedAsyncIterableIterator<SkuDescription> {
|
|
220
|
+
const iter = this.listSkusPagingAll(options);
|
|
221
|
+
return {
|
|
222
|
+
next() {
|
|
223
|
+
return iter.next();
|
|
224
|
+
},
|
|
225
|
+
[Symbol.asyncIterator]() {
|
|
226
|
+
return this;
|
|
227
|
+
},
|
|
228
|
+
byPage: () => {
|
|
229
|
+
return this.listSkusPagingPage(options);
|
|
230
|
+
}
|
|
231
|
+
};
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
private async *listSkusPagingPage(
|
|
235
|
+
options?: ClustersListSkusOptionalParams
|
|
236
|
+
): AsyncIterableIterator<SkuDescription[]> {
|
|
237
|
+
let result = await this._listSkus(options);
|
|
238
|
+
yield result.value || [];
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
private async *listSkusPagingAll(
|
|
242
|
+
options?: ClustersListSkusOptionalParams
|
|
243
|
+
): AsyncIterableIterator<SkuDescription> {
|
|
244
|
+
for await (const page of this.listSkusPagingPage(options)) {
|
|
245
|
+
yield* page;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* Returns the SKUs available for the provided resource.
|
|
42
251
|
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
43
252
|
* @param clusterName The name of the Kusto cluster.
|
|
44
|
-
* @param
|
|
253
|
+
* @param options The options parameters.
|
|
45
254
|
*/
|
|
46
|
-
|
|
255
|
+
public listSkusByResource(
|
|
47
256
|
resourceGroupName: string,
|
|
48
257
|
clusterName: string,
|
|
49
|
-
|
|
50
|
-
):
|
|
258
|
+
options?: ClustersListSkusByResourceOptionalParams
|
|
259
|
+
): PagedAsyncIterableIterator<AzureResourceSku> {
|
|
260
|
+
const iter = this.listSkusByResourcePagingAll(
|
|
261
|
+
resourceGroupName,
|
|
262
|
+
clusterName,
|
|
263
|
+
options
|
|
264
|
+
);
|
|
265
|
+
return {
|
|
266
|
+
next() {
|
|
267
|
+
return iter.next();
|
|
268
|
+
},
|
|
269
|
+
[Symbol.asyncIterator]() {
|
|
270
|
+
return this;
|
|
271
|
+
},
|
|
272
|
+
byPage: () => {
|
|
273
|
+
return this.listSkusByResourcePagingPage(
|
|
274
|
+
resourceGroupName,
|
|
275
|
+
clusterName,
|
|
276
|
+
options
|
|
277
|
+
);
|
|
278
|
+
}
|
|
279
|
+
};
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
private async *listSkusByResourcePagingPage(
|
|
283
|
+
resourceGroupName: string,
|
|
284
|
+
clusterName: string,
|
|
285
|
+
options?: ClustersListSkusByResourceOptionalParams
|
|
286
|
+
): AsyncIterableIterator<AzureResourceSku[]> {
|
|
287
|
+
let result = await this._listSkusByResource(
|
|
288
|
+
resourceGroupName,
|
|
289
|
+
clusterName,
|
|
290
|
+
options
|
|
291
|
+
);
|
|
292
|
+
yield result.value || [];
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
private async *listSkusByResourcePagingAll(
|
|
296
|
+
resourceGroupName: string,
|
|
297
|
+
clusterName: string,
|
|
298
|
+
options?: ClustersListSkusByResourceOptionalParams
|
|
299
|
+
): AsyncIterableIterator<AzureResourceSku> {
|
|
300
|
+
for await (const page of this.listSkusByResourcePagingPage(
|
|
301
|
+
resourceGroupName,
|
|
302
|
+
clusterName,
|
|
303
|
+
options
|
|
304
|
+
)) {
|
|
305
|
+
yield* page;
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
|
|
51
309
|
/**
|
|
310
|
+
* Gets the network endpoints of all outbound dependencies of a Kusto cluster
|
|
52
311
|
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
53
312
|
* @param clusterName The name of the Kusto cluster.
|
|
54
|
-
* @param options The
|
|
55
|
-
* @param callback The callback
|
|
313
|
+
* @param options The options parameters.
|
|
56
314
|
*/
|
|
57
|
-
|
|
315
|
+
public listOutboundNetworkDependenciesEndpoints(
|
|
58
316
|
resourceGroupName: string,
|
|
59
317
|
clusterName: string,
|
|
60
|
-
options
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
318
|
+
options?: ClustersListOutboundNetworkDependenciesEndpointsOptionalParams
|
|
319
|
+
): PagedAsyncIterableIterator<OutboundNetworkDependenciesEndpoint> {
|
|
320
|
+
const iter = this.listOutboundNetworkDependenciesEndpointsPagingAll(
|
|
321
|
+
resourceGroupName,
|
|
322
|
+
clusterName,
|
|
323
|
+
options
|
|
324
|
+
);
|
|
325
|
+
return {
|
|
326
|
+
next() {
|
|
327
|
+
return iter.next();
|
|
328
|
+
},
|
|
329
|
+
[Symbol.asyncIterator]() {
|
|
330
|
+
return this;
|
|
331
|
+
},
|
|
332
|
+
byPage: () => {
|
|
333
|
+
return this.listOutboundNetworkDependenciesEndpointsPagingPage(
|
|
334
|
+
resourceGroupName,
|
|
335
|
+
clusterName,
|
|
336
|
+
options
|
|
337
|
+
);
|
|
338
|
+
}
|
|
339
|
+
};
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
private async *listOutboundNetworkDependenciesEndpointsPagingPage(
|
|
64
343
|
resourceGroupName: string,
|
|
65
344
|
clusterName: string,
|
|
66
|
-
options?:
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
345
|
+
options?: ClustersListOutboundNetworkDependenciesEndpointsOptionalParams
|
|
346
|
+
): AsyncIterableIterator<OutboundNetworkDependenciesEndpoint[]> {
|
|
347
|
+
let result = await this._listOutboundNetworkDependenciesEndpoints(
|
|
348
|
+
resourceGroupName,
|
|
349
|
+
clusterName,
|
|
350
|
+
options
|
|
351
|
+
);
|
|
352
|
+
yield result.value || [];
|
|
353
|
+
let continuationToken = result.nextLink;
|
|
354
|
+
while (continuationToken) {
|
|
355
|
+
result = await this._listOutboundNetworkDependenciesEndpointsNext(
|
|
71
356
|
resourceGroupName,
|
|
72
357
|
clusterName,
|
|
358
|
+
continuationToken,
|
|
73
359
|
options
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
360
|
+
);
|
|
361
|
+
continuationToken = result.nextLink;
|
|
362
|
+
yield result.value || [];
|
|
363
|
+
}
|
|
78
364
|
}
|
|
79
365
|
|
|
80
|
-
|
|
81
|
-
* Create or update a Kusto cluster.
|
|
82
|
-
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
83
|
-
* @param clusterName The name of the Kusto cluster.
|
|
84
|
-
* @param parameters The Kusto cluster parameters supplied to the CreateOrUpdate operation.
|
|
85
|
-
* @param [options] The optional parameters
|
|
86
|
-
* @returns Promise<Models.ClustersCreateOrUpdateResponse>
|
|
87
|
-
*/
|
|
88
|
-
createOrUpdate(
|
|
366
|
+
private async *listOutboundNetworkDependenciesEndpointsPagingAll(
|
|
89
367
|
resourceGroupName: string,
|
|
90
368
|
clusterName: string,
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
return this.beginCreateOrUpdate(
|
|
369
|
+
options?: ClustersListOutboundNetworkDependenciesEndpointsOptionalParams
|
|
370
|
+
): AsyncIterableIterator<OutboundNetworkDependenciesEndpoint> {
|
|
371
|
+
for await (const page of this.listOutboundNetworkDependenciesEndpointsPagingPage(
|
|
95
372
|
resourceGroupName,
|
|
96
373
|
clusterName,
|
|
97
|
-
parameters,
|
|
98
374
|
options
|
|
99
|
-
)
|
|
100
|
-
|
|
101
|
-
|
|
375
|
+
)) {
|
|
376
|
+
yield* page;
|
|
377
|
+
}
|
|
102
378
|
}
|
|
103
379
|
|
|
104
380
|
/**
|
|
105
|
-
*
|
|
381
|
+
* Returns a list of language extensions that can run within KQL queries.
|
|
106
382
|
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
107
383
|
* @param clusterName The name of the Kusto cluster.
|
|
108
|
-
* @param
|
|
109
|
-
* @param [options] The optional parameters
|
|
110
|
-
* @returns Promise<Models.ClustersUpdateResponse>
|
|
384
|
+
* @param options The options parameters.
|
|
111
385
|
*/
|
|
112
|
-
|
|
386
|
+
public listLanguageExtensions(
|
|
113
387
|
resourceGroupName: string,
|
|
114
388
|
clusterName: string,
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
389
|
+
options?: ClustersListLanguageExtensionsOptionalParams
|
|
390
|
+
): PagedAsyncIterableIterator<LanguageExtension> {
|
|
391
|
+
const iter = this.listLanguageExtensionsPagingAll(
|
|
392
|
+
resourceGroupName,
|
|
393
|
+
clusterName,
|
|
394
|
+
options
|
|
395
|
+
);
|
|
396
|
+
return {
|
|
397
|
+
next() {
|
|
398
|
+
return iter.next();
|
|
399
|
+
},
|
|
400
|
+
[Symbol.asyncIterator]() {
|
|
401
|
+
return this;
|
|
402
|
+
},
|
|
403
|
+
byPage: () => {
|
|
404
|
+
return this.listLanguageExtensionsPagingPage(
|
|
405
|
+
resourceGroupName,
|
|
406
|
+
clusterName,
|
|
407
|
+
options
|
|
408
|
+
);
|
|
409
|
+
}
|
|
410
|
+
};
|
|
121
411
|
}
|
|
122
412
|
|
|
123
|
-
|
|
124
|
-
* Deletes a Kusto cluster.
|
|
125
|
-
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
126
|
-
* @param clusterName The name of the Kusto cluster.
|
|
127
|
-
* @param [options] The optional parameters
|
|
128
|
-
* @returns Promise<msRest.RestResponse>
|
|
129
|
-
*/
|
|
130
|
-
deleteMethod(
|
|
413
|
+
private async *listLanguageExtensionsPagingPage(
|
|
131
414
|
resourceGroupName: string,
|
|
132
415
|
clusterName: string,
|
|
133
|
-
options?:
|
|
134
|
-
):
|
|
135
|
-
|
|
136
|
-
|
|
416
|
+
options?: ClustersListLanguageExtensionsOptionalParams
|
|
417
|
+
): AsyncIterableIterator<LanguageExtension[]> {
|
|
418
|
+
let result = await this._listLanguageExtensions(
|
|
419
|
+
resourceGroupName,
|
|
420
|
+
clusterName,
|
|
421
|
+
options
|
|
137
422
|
);
|
|
423
|
+
yield result.value || [];
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
private async *listLanguageExtensionsPagingAll(
|
|
427
|
+
resourceGroupName: string,
|
|
428
|
+
clusterName: string,
|
|
429
|
+
options?: ClustersListLanguageExtensionsOptionalParams
|
|
430
|
+
): AsyncIterableIterator<LanguageExtension> {
|
|
431
|
+
for await (const page of this.listLanguageExtensionsPagingPage(
|
|
432
|
+
resourceGroupName,
|
|
433
|
+
clusterName,
|
|
434
|
+
options
|
|
435
|
+
)) {
|
|
436
|
+
yield* page;
|
|
437
|
+
}
|
|
138
438
|
}
|
|
139
439
|
|
|
140
440
|
/**
|
|
141
|
-
*
|
|
441
|
+
* Gets a Kusto cluster.
|
|
142
442
|
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
143
443
|
* @param clusterName The name of the Kusto cluster.
|
|
144
|
-
* @param
|
|
145
|
-
* @returns Promise<msRest.RestResponse>
|
|
444
|
+
* @param options The options parameters.
|
|
146
445
|
*/
|
|
147
|
-
|
|
446
|
+
get(
|
|
148
447
|
resourceGroupName: string,
|
|
149
448
|
clusterName: string,
|
|
150
|
-
options?:
|
|
151
|
-
): Promise<
|
|
152
|
-
return this.
|
|
153
|
-
|
|
449
|
+
options?: ClustersGetOptionalParams
|
|
450
|
+
): Promise<ClustersGetResponse> {
|
|
451
|
+
return this.client.sendOperationRequest(
|
|
452
|
+
{ resourceGroupName, clusterName, options },
|
|
453
|
+
getOperationSpec
|
|
154
454
|
);
|
|
155
455
|
}
|
|
156
456
|
|
|
157
457
|
/**
|
|
158
|
-
*
|
|
458
|
+
* Create or update a Kusto cluster.
|
|
159
459
|
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
160
460
|
* @param clusterName The name of the Kusto cluster.
|
|
161
|
-
* @param
|
|
162
|
-
* @
|
|
461
|
+
* @param parameters The Kusto cluster parameters supplied to the CreateOrUpdate operation.
|
|
462
|
+
* @param options The options parameters.
|
|
163
463
|
*/
|
|
164
|
-
|
|
464
|
+
async beginCreateOrUpdate(
|
|
165
465
|
resourceGroupName: string,
|
|
166
466
|
clusterName: string,
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
467
|
+
parameters: Cluster,
|
|
468
|
+
options?: ClustersCreateOrUpdateOptionalParams
|
|
469
|
+
): Promise<
|
|
470
|
+
PollerLike<
|
|
471
|
+
PollOperationState<ClustersCreateOrUpdateResponse>,
|
|
472
|
+
ClustersCreateOrUpdateResponse
|
|
473
|
+
>
|
|
474
|
+
> {
|
|
475
|
+
const directSendOperation = async (
|
|
476
|
+
args: coreClient.OperationArguments,
|
|
477
|
+
spec: coreClient.OperationSpec
|
|
478
|
+
): Promise<ClustersCreateOrUpdateResponse> => {
|
|
479
|
+
return this.client.sendOperationRequest(args, spec);
|
|
480
|
+
};
|
|
481
|
+
const sendOperation = async (
|
|
482
|
+
args: coreClient.OperationArguments,
|
|
483
|
+
spec: coreClient.OperationSpec
|
|
484
|
+
) => {
|
|
485
|
+
let currentRawResponse:
|
|
486
|
+
| coreClient.FullOperationResponse
|
|
487
|
+
| undefined = undefined;
|
|
488
|
+
const providedCallback = args.options?.onResponse;
|
|
489
|
+
const callback: coreClient.RawResponseCallback = (
|
|
490
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
491
|
+
flatResponse: unknown
|
|
492
|
+
) => {
|
|
493
|
+
currentRawResponse = rawResponse;
|
|
494
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
495
|
+
};
|
|
496
|
+
const updatedArgs = {
|
|
497
|
+
...args,
|
|
498
|
+
options: {
|
|
499
|
+
...args.options,
|
|
500
|
+
onResponse: callback
|
|
501
|
+
}
|
|
502
|
+
};
|
|
503
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
504
|
+
return {
|
|
505
|
+
flatResponse,
|
|
506
|
+
rawResponse: {
|
|
507
|
+
statusCode: currentRawResponse!.status,
|
|
508
|
+
body: currentRawResponse!.parsedBody,
|
|
509
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
510
|
+
}
|
|
511
|
+
};
|
|
512
|
+
};
|
|
513
|
+
|
|
514
|
+
const lro = new LroImpl(
|
|
515
|
+
sendOperation,
|
|
516
|
+
{ resourceGroupName, clusterName, parameters, options },
|
|
517
|
+
createOrUpdateOperationSpec
|
|
171
518
|
);
|
|
519
|
+
return new LroEngine(lro, {
|
|
520
|
+
resumeFrom: options?.resumeFrom,
|
|
521
|
+
intervalInMs: options?.updateIntervalInMs
|
|
522
|
+
});
|
|
172
523
|
}
|
|
173
524
|
|
|
174
525
|
/**
|
|
175
|
-
*
|
|
526
|
+
* Create or update a Kusto cluster.
|
|
176
527
|
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
177
528
|
* @param clusterName The name of the Kusto cluster.
|
|
178
|
-
* @param
|
|
179
|
-
* @
|
|
529
|
+
* @param parameters The Kusto cluster parameters supplied to the CreateOrUpdate operation.
|
|
530
|
+
* @param options The options parameters.
|
|
180
531
|
*/
|
|
181
|
-
|
|
532
|
+
async beginCreateOrUpdateAndWait(
|
|
182
533
|
resourceGroupName: string,
|
|
183
534
|
clusterName: string,
|
|
184
|
-
|
|
185
|
-
|
|
535
|
+
parameters: Cluster,
|
|
536
|
+
options?: ClustersCreateOrUpdateOptionalParams
|
|
537
|
+
): Promise<ClustersCreateOrUpdateResponse> {
|
|
538
|
+
const poller = await this.beginCreateOrUpdate(
|
|
539
|
+
resourceGroupName,
|
|
540
|
+
clusterName,
|
|
541
|
+
parameters,
|
|
542
|
+
options
|
|
543
|
+
);
|
|
544
|
+
return poller.pollUntilDone();
|
|
545
|
+
}
|
|
546
|
+
|
|
186
547
|
/**
|
|
548
|
+
* Update a Kusto cluster.
|
|
187
549
|
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
188
550
|
* @param clusterName The name of the Kusto cluster.
|
|
189
|
-
* @param
|
|
551
|
+
* @param parameters The Kusto cluster parameters supplied to the Update operation.
|
|
552
|
+
* @param options The options parameters.
|
|
190
553
|
*/
|
|
191
|
-
|
|
554
|
+
async beginUpdate(
|
|
192
555
|
resourceGroupName: string,
|
|
193
556
|
clusterName: string,
|
|
194
|
-
|
|
195
|
-
|
|
557
|
+
parameters: ClusterUpdate,
|
|
558
|
+
options?: ClustersUpdateOptionalParams
|
|
559
|
+
): Promise<
|
|
560
|
+
PollerLike<
|
|
561
|
+
PollOperationState<ClustersUpdateResponse>,
|
|
562
|
+
ClustersUpdateResponse
|
|
563
|
+
>
|
|
564
|
+
> {
|
|
565
|
+
const directSendOperation = async (
|
|
566
|
+
args: coreClient.OperationArguments,
|
|
567
|
+
spec: coreClient.OperationSpec
|
|
568
|
+
): Promise<ClustersUpdateResponse> => {
|
|
569
|
+
return this.client.sendOperationRequest(args, spec);
|
|
570
|
+
};
|
|
571
|
+
const sendOperation = async (
|
|
572
|
+
args: coreClient.OperationArguments,
|
|
573
|
+
spec: coreClient.OperationSpec
|
|
574
|
+
) => {
|
|
575
|
+
let currentRawResponse:
|
|
576
|
+
| coreClient.FullOperationResponse
|
|
577
|
+
| undefined = undefined;
|
|
578
|
+
const providedCallback = args.options?.onResponse;
|
|
579
|
+
const callback: coreClient.RawResponseCallback = (
|
|
580
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
581
|
+
flatResponse: unknown
|
|
582
|
+
) => {
|
|
583
|
+
currentRawResponse = rawResponse;
|
|
584
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
585
|
+
};
|
|
586
|
+
const updatedArgs = {
|
|
587
|
+
...args,
|
|
588
|
+
options: {
|
|
589
|
+
...args.options,
|
|
590
|
+
onResponse: callback
|
|
591
|
+
}
|
|
592
|
+
};
|
|
593
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
594
|
+
return {
|
|
595
|
+
flatResponse,
|
|
596
|
+
rawResponse: {
|
|
597
|
+
statusCode: currentRawResponse!.status,
|
|
598
|
+
body: currentRawResponse!.parsedBody,
|
|
599
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
600
|
+
}
|
|
601
|
+
};
|
|
602
|
+
};
|
|
603
|
+
|
|
604
|
+
const lro = new LroImpl(
|
|
605
|
+
sendOperation,
|
|
606
|
+
{ resourceGroupName, clusterName, parameters, options },
|
|
607
|
+
updateOperationSpec
|
|
608
|
+
);
|
|
609
|
+
return new LroEngine(lro, {
|
|
610
|
+
resumeFrom: options?.resumeFrom,
|
|
611
|
+
intervalInMs: options?.updateIntervalInMs
|
|
612
|
+
});
|
|
613
|
+
}
|
|
614
|
+
|
|
196
615
|
/**
|
|
616
|
+
* Update a Kusto cluster.
|
|
197
617
|
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
198
618
|
* @param clusterName The name of the Kusto cluster.
|
|
199
|
-
* @param
|
|
200
|
-
* @param
|
|
619
|
+
* @param parameters The Kusto cluster parameters supplied to the Update operation.
|
|
620
|
+
* @param options The options parameters.
|
|
201
621
|
*/
|
|
202
|
-
|
|
203
|
-
resourceGroupName: string,
|
|
204
|
-
clusterName: string,
|
|
205
|
-
options: msRest.RequestOptionsBase,
|
|
206
|
-
callback: msRest.ServiceCallback<Models.FollowerDatabaseListResult>
|
|
207
|
-
): void;
|
|
208
|
-
listFollowerDatabases(
|
|
622
|
+
async beginUpdateAndWait(
|
|
209
623
|
resourceGroupName: string,
|
|
210
624
|
clusterName: string,
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
): Promise<
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
callback
|
|
222
|
-
) as Promise<Models.ClustersListFollowerDatabasesResponse>;
|
|
625
|
+
parameters: ClusterUpdate,
|
|
626
|
+
options?: ClustersUpdateOptionalParams
|
|
627
|
+
): Promise<ClustersUpdateResponse> {
|
|
628
|
+
const poller = await this.beginUpdate(
|
|
629
|
+
resourceGroupName,
|
|
630
|
+
clusterName,
|
|
631
|
+
parameters,
|
|
632
|
+
options
|
|
633
|
+
);
|
|
634
|
+
return poller.pollUntilDone();
|
|
223
635
|
}
|
|
224
636
|
|
|
225
637
|
/**
|
|
226
|
-
*
|
|
638
|
+
* Deletes a Kusto cluster.
|
|
227
639
|
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
228
640
|
* @param clusterName The name of the Kusto cluster.
|
|
229
|
-
* @param
|
|
230
|
-
* @param [options] The optional parameters
|
|
231
|
-
* @returns Promise<msRest.RestResponse>
|
|
641
|
+
* @param options The options parameters.
|
|
232
642
|
*/
|
|
233
|
-
|
|
643
|
+
async beginDelete(
|
|
234
644
|
resourceGroupName: string,
|
|
235
645
|
clusterName: string,
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
646
|
+
options?: ClustersDeleteOptionalParams
|
|
647
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
648
|
+
const directSendOperation = async (
|
|
649
|
+
args: coreClient.OperationArguments,
|
|
650
|
+
spec: coreClient.OperationSpec
|
|
651
|
+
): Promise<void> => {
|
|
652
|
+
return this.client.sendOperationRequest(args, spec);
|
|
653
|
+
};
|
|
654
|
+
const sendOperation = async (
|
|
655
|
+
args: coreClient.OperationArguments,
|
|
656
|
+
spec: coreClient.OperationSpec
|
|
657
|
+
) => {
|
|
658
|
+
let currentRawResponse:
|
|
659
|
+
| coreClient.FullOperationResponse
|
|
660
|
+
| undefined = undefined;
|
|
661
|
+
const providedCallback = args.options?.onResponse;
|
|
662
|
+
const callback: coreClient.RawResponseCallback = (
|
|
663
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
664
|
+
flatResponse: unknown
|
|
665
|
+
) => {
|
|
666
|
+
currentRawResponse = rawResponse;
|
|
667
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
668
|
+
};
|
|
669
|
+
const updatedArgs = {
|
|
670
|
+
...args,
|
|
671
|
+
options: {
|
|
672
|
+
...args.options,
|
|
673
|
+
onResponse: callback
|
|
674
|
+
}
|
|
675
|
+
};
|
|
676
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
677
|
+
return {
|
|
678
|
+
flatResponse,
|
|
679
|
+
rawResponse: {
|
|
680
|
+
statusCode: currentRawResponse!.status,
|
|
681
|
+
body: currentRawResponse!.parsedBody,
|
|
682
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
683
|
+
}
|
|
684
|
+
};
|
|
685
|
+
};
|
|
686
|
+
|
|
687
|
+
const lro = new LroImpl(
|
|
688
|
+
sendOperation,
|
|
689
|
+
{ resourceGroupName, clusterName, options },
|
|
690
|
+
deleteOperationSpec
|
|
691
|
+
);
|
|
692
|
+
return new LroEngine(lro, {
|
|
693
|
+
resumeFrom: options?.resumeFrom,
|
|
694
|
+
intervalInMs: options?.updateIntervalInMs
|
|
695
|
+
});
|
|
245
696
|
}
|
|
246
697
|
|
|
247
698
|
/**
|
|
248
|
-
*
|
|
249
|
-
* on.
|
|
699
|
+
* Deletes a Kusto cluster.
|
|
250
700
|
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
251
701
|
* @param clusterName The name of the Kusto cluster.
|
|
252
|
-
* @param
|
|
253
|
-
* @returns Promise<Models.ClustersDiagnoseVirtualNetworkResponse>
|
|
702
|
+
* @param options The options parameters.
|
|
254
703
|
*/
|
|
255
|
-
|
|
704
|
+
async beginDeleteAndWait(
|
|
256
705
|
resourceGroupName: string,
|
|
257
706
|
clusterName: string,
|
|
258
|
-
options?:
|
|
259
|
-
): Promise<
|
|
260
|
-
|
|
707
|
+
options?: ClustersDeleteOptionalParams
|
|
708
|
+
): Promise<void> {
|
|
709
|
+
const poller = await this.beginDelete(
|
|
261
710
|
resourceGroupName,
|
|
262
711
|
clusterName,
|
|
263
712
|
options
|
|
264
|
-
)
|
|
265
|
-
|
|
266
|
-
>;
|
|
713
|
+
);
|
|
714
|
+
return poller.pollUntilDone();
|
|
267
715
|
}
|
|
268
716
|
|
|
269
717
|
/**
|
|
270
|
-
*
|
|
271
|
-
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
272
|
-
* @param [options] The optional parameters
|
|
273
|
-
* @returns Promise<Models.ClustersListByResourceGroupResponse>
|
|
274
|
-
*/
|
|
275
|
-
listByResourceGroup(
|
|
276
|
-
resourceGroupName: string,
|
|
277
|
-
options?: msRest.RequestOptionsBase
|
|
278
|
-
): Promise<Models.ClustersListByResourceGroupResponse>;
|
|
279
|
-
/**
|
|
280
|
-
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
281
|
-
* @param callback The callback
|
|
282
|
-
*/
|
|
283
|
-
listByResourceGroup(
|
|
284
|
-
resourceGroupName: string,
|
|
285
|
-
callback: msRest.ServiceCallback<Models.ClusterListResult>
|
|
286
|
-
): void;
|
|
287
|
-
/**
|
|
718
|
+
* Stops a Kusto cluster.
|
|
288
719
|
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
289
|
-
* @param
|
|
290
|
-
* @param
|
|
720
|
+
* @param clusterName The name of the Kusto cluster.
|
|
721
|
+
* @param options The options parameters.
|
|
291
722
|
*/
|
|
292
|
-
|
|
293
|
-
resourceGroupName: string,
|
|
294
|
-
options: msRest.RequestOptionsBase,
|
|
295
|
-
callback: msRest.ServiceCallback<Models.ClusterListResult>
|
|
296
|
-
): void;
|
|
297
|
-
listByResourceGroup(
|
|
723
|
+
async beginStop(
|
|
298
724
|
resourceGroupName: string,
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
): Promise<
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
) as Promise<Models.ClustersListResponse>;
|
|
341
|
-
}
|
|
725
|
+
clusterName: string,
|
|
726
|
+
options?: ClustersStopOptionalParams
|
|
727
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
728
|
+
const directSendOperation = async (
|
|
729
|
+
args: coreClient.OperationArguments,
|
|
730
|
+
spec: coreClient.OperationSpec
|
|
731
|
+
): Promise<void> => {
|
|
732
|
+
return this.client.sendOperationRequest(args, spec);
|
|
733
|
+
};
|
|
734
|
+
const sendOperation = async (
|
|
735
|
+
args: coreClient.OperationArguments,
|
|
736
|
+
spec: coreClient.OperationSpec
|
|
737
|
+
) => {
|
|
738
|
+
let currentRawResponse:
|
|
739
|
+
| coreClient.FullOperationResponse
|
|
740
|
+
| undefined = undefined;
|
|
741
|
+
const providedCallback = args.options?.onResponse;
|
|
742
|
+
const callback: coreClient.RawResponseCallback = (
|
|
743
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
744
|
+
flatResponse: unknown
|
|
745
|
+
) => {
|
|
746
|
+
currentRawResponse = rawResponse;
|
|
747
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
748
|
+
};
|
|
749
|
+
const updatedArgs = {
|
|
750
|
+
...args,
|
|
751
|
+
options: {
|
|
752
|
+
...args.options,
|
|
753
|
+
onResponse: callback
|
|
754
|
+
}
|
|
755
|
+
};
|
|
756
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
757
|
+
return {
|
|
758
|
+
flatResponse,
|
|
759
|
+
rawResponse: {
|
|
760
|
+
statusCode: currentRawResponse!.status,
|
|
761
|
+
body: currentRawResponse!.parsedBody,
|
|
762
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
763
|
+
}
|
|
764
|
+
};
|
|
765
|
+
};
|
|
342
766
|
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
listSkus(callback: msRest.ServiceCallback<Models.SkuDescriptionList>): void;
|
|
353
|
-
/**
|
|
354
|
-
* @param options The optional parameters
|
|
355
|
-
* @param callback The callback
|
|
356
|
-
*/
|
|
357
|
-
listSkus(
|
|
358
|
-
options: msRest.RequestOptionsBase,
|
|
359
|
-
callback: msRest.ServiceCallback<Models.SkuDescriptionList>
|
|
360
|
-
): void;
|
|
361
|
-
listSkus(
|
|
362
|
-
options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.SkuDescriptionList>,
|
|
363
|
-
callback?: msRest.ServiceCallback<Models.SkuDescriptionList>
|
|
364
|
-
): Promise<Models.ClustersListSkusResponse> {
|
|
365
|
-
return this.client.sendOperationRequest(
|
|
366
|
-
{
|
|
367
|
-
options
|
|
368
|
-
},
|
|
369
|
-
listSkusOperationSpec,
|
|
370
|
-
callback
|
|
371
|
-
) as Promise<Models.ClustersListSkusResponse>;
|
|
767
|
+
const lro = new LroImpl(
|
|
768
|
+
sendOperation,
|
|
769
|
+
{ resourceGroupName, clusterName, options },
|
|
770
|
+
stopOperationSpec
|
|
771
|
+
);
|
|
772
|
+
return new LroEngine(lro, {
|
|
773
|
+
resumeFrom: options?.resumeFrom,
|
|
774
|
+
intervalInMs: options?.updateIntervalInMs
|
|
775
|
+
});
|
|
372
776
|
}
|
|
373
777
|
|
|
374
778
|
/**
|
|
375
|
-
*
|
|
376
|
-
* @param
|
|
377
|
-
* @param clusterName The name of the cluster.
|
|
378
|
-
* @param
|
|
379
|
-
* @returns Promise<Models.ClustersCheckNameAvailabilityResponse>
|
|
380
|
-
*/
|
|
381
|
-
checkNameAvailability(
|
|
382
|
-
location: string,
|
|
383
|
-
clusterName: Models.ClusterCheckNameRequest,
|
|
384
|
-
options?: msRest.RequestOptionsBase
|
|
385
|
-
): Promise<Models.ClustersCheckNameAvailabilityResponse>;
|
|
386
|
-
/**
|
|
387
|
-
* @param location Azure location (region) name.
|
|
388
|
-
* @param clusterName The name of the cluster.
|
|
389
|
-
* @param callback The callback
|
|
390
|
-
*/
|
|
391
|
-
checkNameAvailability(
|
|
392
|
-
location: string,
|
|
393
|
-
clusterName: Models.ClusterCheckNameRequest,
|
|
394
|
-
callback: msRest.ServiceCallback<Models.CheckNameResult>
|
|
395
|
-
): void;
|
|
396
|
-
/**
|
|
397
|
-
* @param location Azure location (region) name.
|
|
398
|
-
* @param clusterName The name of the cluster.
|
|
399
|
-
* @param options The optional parameters
|
|
400
|
-
* @param callback The callback
|
|
779
|
+
* Stops a Kusto cluster.
|
|
780
|
+
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
781
|
+
* @param clusterName The name of the Kusto cluster.
|
|
782
|
+
* @param options The options parameters.
|
|
401
783
|
*/
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
clusterName:
|
|
405
|
-
options
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
): Promise<Models.ClustersCheckNameAvailabilityResponse> {
|
|
414
|
-
return this.client.sendOperationRequest(
|
|
415
|
-
{
|
|
416
|
-
location,
|
|
417
|
-
clusterName,
|
|
418
|
-
options
|
|
419
|
-
},
|
|
420
|
-
checkNameAvailabilityOperationSpec,
|
|
421
|
-
callback
|
|
422
|
-
) as Promise<Models.ClustersCheckNameAvailabilityResponse>;
|
|
784
|
+
async beginStopAndWait(
|
|
785
|
+
resourceGroupName: string,
|
|
786
|
+
clusterName: string,
|
|
787
|
+
options?: ClustersStopOptionalParams
|
|
788
|
+
): Promise<void> {
|
|
789
|
+
const poller = await this.beginStop(
|
|
790
|
+
resourceGroupName,
|
|
791
|
+
clusterName,
|
|
792
|
+
options
|
|
793
|
+
);
|
|
794
|
+
return poller.pollUntilDone();
|
|
423
795
|
}
|
|
424
796
|
|
|
425
797
|
/**
|
|
426
|
-
*
|
|
798
|
+
* Starts a Kusto cluster.
|
|
427
799
|
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
428
800
|
* @param clusterName The name of the Kusto cluster.
|
|
429
|
-
* @param
|
|
430
|
-
* @returns Promise<Models.ClustersListSkusByResourceResponse>
|
|
801
|
+
* @param options The options parameters.
|
|
431
802
|
*/
|
|
432
|
-
|
|
803
|
+
async beginStart(
|
|
433
804
|
resourceGroupName: string,
|
|
434
805
|
clusterName: string,
|
|
435
|
-
options?:
|
|
436
|
-
): Promise<
|
|
806
|
+
options?: ClustersStartOptionalParams
|
|
807
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
808
|
+
const directSendOperation = async (
|
|
809
|
+
args: coreClient.OperationArguments,
|
|
810
|
+
spec: coreClient.OperationSpec
|
|
811
|
+
): Promise<void> => {
|
|
812
|
+
return this.client.sendOperationRequest(args, spec);
|
|
813
|
+
};
|
|
814
|
+
const sendOperation = async (
|
|
815
|
+
args: coreClient.OperationArguments,
|
|
816
|
+
spec: coreClient.OperationSpec
|
|
817
|
+
) => {
|
|
818
|
+
let currentRawResponse:
|
|
819
|
+
| coreClient.FullOperationResponse
|
|
820
|
+
| undefined = undefined;
|
|
821
|
+
const providedCallback = args.options?.onResponse;
|
|
822
|
+
const callback: coreClient.RawResponseCallback = (
|
|
823
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
824
|
+
flatResponse: unknown
|
|
825
|
+
) => {
|
|
826
|
+
currentRawResponse = rawResponse;
|
|
827
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
828
|
+
};
|
|
829
|
+
const updatedArgs = {
|
|
830
|
+
...args,
|
|
831
|
+
options: {
|
|
832
|
+
...args.options,
|
|
833
|
+
onResponse: callback
|
|
834
|
+
}
|
|
835
|
+
};
|
|
836
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
837
|
+
return {
|
|
838
|
+
flatResponse,
|
|
839
|
+
rawResponse: {
|
|
840
|
+
statusCode: currentRawResponse!.status,
|
|
841
|
+
body: currentRawResponse!.parsedBody,
|
|
842
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
843
|
+
}
|
|
844
|
+
};
|
|
845
|
+
};
|
|
846
|
+
|
|
847
|
+
const lro = new LroImpl(
|
|
848
|
+
sendOperation,
|
|
849
|
+
{ resourceGroupName, clusterName, options },
|
|
850
|
+
startOperationSpec
|
|
851
|
+
);
|
|
852
|
+
return new LroEngine(lro, {
|
|
853
|
+
resumeFrom: options?.resumeFrom,
|
|
854
|
+
intervalInMs: options?.updateIntervalInMs
|
|
855
|
+
});
|
|
856
|
+
}
|
|
857
|
+
|
|
437
858
|
/**
|
|
859
|
+
* Starts a Kusto cluster.
|
|
438
860
|
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
439
861
|
* @param clusterName The name of the Kusto cluster.
|
|
440
|
-
* @param
|
|
862
|
+
* @param options The options parameters.
|
|
441
863
|
*/
|
|
442
|
-
|
|
864
|
+
async beginStartAndWait(
|
|
443
865
|
resourceGroupName: string,
|
|
444
866
|
clusterName: string,
|
|
445
|
-
|
|
446
|
-
): void
|
|
867
|
+
options?: ClustersStartOptionalParams
|
|
868
|
+
): Promise<void> {
|
|
869
|
+
const poller = await this.beginStart(
|
|
870
|
+
resourceGroupName,
|
|
871
|
+
clusterName,
|
|
872
|
+
options
|
|
873
|
+
);
|
|
874
|
+
return poller.pollUntilDone();
|
|
875
|
+
}
|
|
876
|
+
|
|
447
877
|
/**
|
|
878
|
+
* Returns a list of databases that are owned by this cluster and were followed by another cluster.
|
|
448
879
|
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
449
880
|
* @param clusterName The name of the Kusto cluster.
|
|
450
|
-
* @param options The
|
|
451
|
-
* @param callback The callback
|
|
881
|
+
* @param options The options parameters.
|
|
452
882
|
*/
|
|
453
|
-
|
|
883
|
+
private _listFollowerDatabases(
|
|
454
884
|
resourceGroupName: string,
|
|
455
885
|
clusterName: string,
|
|
456
|
-
options
|
|
457
|
-
|
|
458
|
-
): void;
|
|
459
|
-
listSkusByResource(
|
|
460
|
-
resourceGroupName: string,
|
|
461
|
-
clusterName: string,
|
|
462
|
-
options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ListResourceSkusResult>,
|
|
463
|
-
callback?: msRest.ServiceCallback<Models.ListResourceSkusResult>
|
|
464
|
-
): Promise<Models.ClustersListSkusByResourceResponse> {
|
|
886
|
+
options?: ClustersListFollowerDatabasesOptionalParams
|
|
887
|
+
): Promise<ClustersListFollowerDatabasesResponse> {
|
|
465
888
|
return this.client.sendOperationRequest(
|
|
466
|
-
{
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
options
|
|
470
|
-
},
|
|
471
|
-
listSkusByResourceOperationSpec,
|
|
472
|
-
callback
|
|
473
|
-
) as Promise<Models.ClustersListSkusByResourceResponse>;
|
|
889
|
+
{ resourceGroupName, clusterName, options },
|
|
890
|
+
listFollowerDatabasesOperationSpec
|
|
891
|
+
);
|
|
474
892
|
}
|
|
475
893
|
|
|
476
894
|
/**
|
|
477
|
-
*
|
|
895
|
+
* Detaches all followers of a database owned by this cluster.
|
|
478
896
|
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
479
897
|
* @param clusterName The name of the Kusto cluster.
|
|
480
|
-
* @param
|
|
481
|
-
* @
|
|
898
|
+
* @param followerDatabaseToRemove The follower databases properties to remove.
|
|
899
|
+
* @param options The options parameters.
|
|
482
900
|
*/
|
|
483
|
-
|
|
901
|
+
async beginDetachFollowerDatabases(
|
|
484
902
|
resourceGroupName: string,
|
|
485
903
|
clusterName: string,
|
|
486
|
-
|
|
487
|
-
|
|
904
|
+
followerDatabaseToRemove: FollowerDatabaseDefinition,
|
|
905
|
+
options?: ClustersDetachFollowerDatabasesOptionalParams
|
|
906
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
907
|
+
const directSendOperation = async (
|
|
908
|
+
args: coreClient.OperationArguments,
|
|
909
|
+
spec: coreClient.OperationSpec
|
|
910
|
+
): Promise<void> => {
|
|
911
|
+
return this.client.sendOperationRequest(args, spec);
|
|
912
|
+
};
|
|
913
|
+
const sendOperation = async (
|
|
914
|
+
args: coreClient.OperationArguments,
|
|
915
|
+
spec: coreClient.OperationSpec
|
|
916
|
+
) => {
|
|
917
|
+
let currentRawResponse:
|
|
918
|
+
| coreClient.FullOperationResponse
|
|
919
|
+
| undefined = undefined;
|
|
920
|
+
const providedCallback = args.options?.onResponse;
|
|
921
|
+
const callback: coreClient.RawResponseCallback = (
|
|
922
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
923
|
+
flatResponse: unknown
|
|
924
|
+
) => {
|
|
925
|
+
currentRawResponse = rawResponse;
|
|
926
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
927
|
+
};
|
|
928
|
+
const updatedArgs = {
|
|
929
|
+
...args,
|
|
930
|
+
options: {
|
|
931
|
+
...args.options,
|
|
932
|
+
onResponse: callback
|
|
933
|
+
}
|
|
934
|
+
};
|
|
935
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
936
|
+
return {
|
|
937
|
+
flatResponse,
|
|
938
|
+
rawResponse: {
|
|
939
|
+
statusCode: currentRawResponse!.status,
|
|
940
|
+
body: currentRawResponse!.parsedBody,
|
|
941
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
942
|
+
}
|
|
943
|
+
};
|
|
944
|
+
};
|
|
945
|
+
|
|
946
|
+
const lro = new LroImpl(
|
|
947
|
+
sendOperation,
|
|
948
|
+
{ resourceGroupName, clusterName, followerDatabaseToRemove, options },
|
|
949
|
+
detachFollowerDatabasesOperationSpec
|
|
950
|
+
);
|
|
951
|
+
return new LroEngine(lro, {
|
|
952
|
+
resumeFrom: options?.resumeFrom,
|
|
953
|
+
intervalInMs: options?.updateIntervalInMs
|
|
954
|
+
});
|
|
955
|
+
}
|
|
956
|
+
|
|
488
957
|
/**
|
|
958
|
+
* Detaches all followers of a database owned by this cluster.
|
|
489
959
|
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
490
960
|
* @param clusterName The name of the Kusto cluster.
|
|
491
|
-
* @param
|
|
961
|
+
* @param followerDatabaseToRemove The follower databases properties to remove.
|
|
962
|
+
* @param options The options parameters.
|
|
492
963
|
*/
|
|
493
|
-
|
|
964
|
+
async beginDetachFollowerDatabasesAndWait(
|
|
494
965
|
resourceGroupName: string,
|
|
495
966
|
clusterName: string,
|
|
496
|
-
|
|
497
|
-
|
|
967
|
+
followerDatabaseToRemove: FollowerDatabaseDefinition,
|
|
968
|
+
options?: ClustersDetachFollowerDatabasesOptionalParams
|
|
969
|
+
): Promise<void> {
|
|
970
|
+
const poller = await this.beginDetachFollowerDatabases(
|
|
971
|
+
resourceGroupName,
|
|
972
|
+
clusterName,
|
|
973
|
+
followerDatabaseToRemove,
|
|
974
|
+
options
|
|
975
|
+
);
|
|
976
|
+
return poller.pollUntilDone();
|
|
977
|
+
}
|
|
978
|
+
|
|
498
979
|
/**
|
|
980
|
+
* Diagnoses network connectivity status for external resources on which the service is dependent on.
|
|
499
981
|
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
500
982
|
* @param clusterName The name of the Kusto cluster.
|
|
501
|
-
* @param options The
|
|
502
|
-
* @param callback The callback
|
|
983
|
+
* @param options The options parameters.
|
|
503
984
|
*/
|
|
504
|
-
|
|
505
|
-
resourceGroupName: string,
|
|
506
|
-
clusterName: string,
|
|
507
|
-
options: msRest.RequestOptionsBase,
|
|
508
|
-
callback: msRest.ServiceCallback<Models.LanguageExtensionsList>
|
|
509
|
-
): void;
|
|
510
|
-
listLanguageExtensions(
|
|
985
|
+
async beginDiagnoseVirtualNetwork(
|
|
511
986
|
resourceGroupName: string,
|
|
512
987
|
clusterName: string,
|
|
513
|
-
options?:
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
988
|
+
options?: ClustersDiagnoseVirtualNetworkOptionalParams
|
|
989
|
+
): Promise<
|
|
990
|
+
PollerLike<
|
|
991
|
+
PollOperationState<ClustersDiagnoseVirtualNetworkResponse>,
|
|
992
|
+
ClustersDiagnoseVirtualNetworkResponse
|
|
993
|
+
>
|
|
994
|
+
> {
|
|
995
|
+
const directSendOperation = async (
|
|
996
|
+
args: coreClient.OperationArguments,
|
|
997
|
+
spec: coreClient.OperationSpec
|
|
998
|
+
): Promise<ClustersDiagnoseVirtualNetworkResponse> => {
|
|
999
|
+
return this.client.sendOperationRequest(args, spec);
|
|
1000
|
+
};
|
|
1001
|
+
const sendOperation = async (
|
|
1002
|
+
args: coreClient.OperationArguments,
|
|
1003
|
+
spec: coreClient.OperationSpec
|
|
1004
|
+
) => {
|
|
1005
|
+
let currentRawResponse:
|
|
1006
|
+
| coreClient.FullOperationResponse
|
|
1007
|
+
| undefined = undefined;
|
|
1008
|
+
const providedCallback = args.options?.onResponse;
|
|
1009
|
+
const callback: coreClient.RawResponseCallback = (
|
|
1010
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
1011
|
+
flatResponse: unknown
|
|
1012
|
+
) => {
|
|
1013
|
+
currentRawResponse = rawResponse;
|
|
1014
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
1015
|
+
};
|
|
1016
|
+
const updatedArgs = {
|
|
1017
|
+
...args,
|
|
1018
|
+
options: {
|
|
1019
|
+
...args.options,
|
|
1020
|
+
onResponse: callback
|
|
1021
|
+
}
|
|
1022
|
+
};
|
|
1023
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1024
|
+
return {
|
|
1025
|
+
flatResponse,
|
|
1026
|
+
rawResponse: {
|
|
1027
|
+
statusCode: currentRawResponse!.status,
|
|
1028
|
+
body: currentRawResponse!.parsedBody,
|
|
1029
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
1030
|
+
}
|
|
1031
|
+
};
|
|
1032
|
+
};
|
|
1033
|
+
|
|
1034
|
+
const lro = new LroImpl(
|
|
1035
|
+
sendOperation,
|
|
1036
|
+
{ resourceGroupName, clusterName, options },
|
|
1037
|
+
diagnoseVirtualNetworkOperationSpec
|
|
1038
|
+
);
|
|
1039
|
+
return new LroEngine(lro, {
|
|
1040
|
+
resumeFrom: options?.resumeFrom,
|
|
1041
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
1042
|
+
lroResourceLocationConfig: "location"
|
|
1043
|
+
});
|
|
525
1044
|
}
|
|
526
1045
|
|
|
527
1046
|
/**
|
|
528
|
-
*
|
|
1047
|
+
* Diagnoses network connectivity status for external resources on which the service is dependent on.
|
|
529
1048
|
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
530
1049
|
* @param clusterName The name of the Kusto cluster.
|
|
531
|
-
* @param
|
|
532
|
-
* @param [options] The optional parameters
|
|
533
|
-
* @returns Promise<msRest.RestResponse>
|
|
1050
|
+
* @param options The options parameters.
|
|
534
1051
|
*/
|
|
535
|
-
|
|
1052
|
+
async beginDiagnoseVirtualNetworkAndWait(
|
|
536
1053
|
resourceGroupName: string,
|
|
537
1054
|
clusterName: string,
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
return this.beginAddLanguageExtensions(
|
|
1055
|
+
options?: ClustersDiagnoseVirtualNetworkOptionalParams
|
|
1056
|
+
): Promise<ClustersDiagnoseVirtualNetworkResponse> {
|
|
1057
|
+
const poller = await this.beginDiagnoseVirtualNetwork(
|
|
542
1058
|
resourceGroupName,
|
|
543
1059
|
clusterName,
|
|
544
|
-
languageExtensionsToAdd,
|
|
545
1060
|
options
|
|
546
|
-
)
|
|
1061
|
+
);
|
|
1062
|
+
return poller.pollUntilDone();
|
|
547
1063
|
}
|
|
548
1064
|
|
|
549
1065
|
/**
|
|
550
|
-
*
|
|
1066
|
+
* Lists all Kusto clusters within a resource group.
|
|
551
1067
|
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
552
|
-
* @param
|
|
553
|
-
* @param languageExtensionsToRemove The language extensions to remove.
|
|
554
|
-
* @param [options] The optional parameters
|
|
555
|
-
* @returns Promise<msRest.RestResponse>
|
|
1068
|
+
* @param options The options parameters.
|
|
556
1069
|
*/
|
|
557
|
-
|
|
1070
|
+
private _listByResourceGroup(
|
|
558
1071
|
resourceGroupName: string,
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
clusterName,
|
|
566
|
-
languageExtensionsToRemove,
|
|
567
|
-
options
|
|
568
|
-
).then((lroPoller) => lroPoller.pollUntilFinished());
|
|
1072
|
+
options?: ClustersListByResourceGroupOptionalParams
|
|
1073
|
+
): Promise<ClustersListByResourceGroupResponse> {
|
|
1074
|
+
return this.client.sendOperationRequest(
|
|
1075
|
+
{ resourceGroupName, options },
|
|
1076
|
+
listByResourceGroupOperationSpec
|
|
1077
|
+
);
|
|
569
1078
|
}
|
|
570
1079
|
|
|
571
1080
|
/**
|
|
572
|
-
*
|
|
573
|
-
* @param
|
|
574
|
-
* @param clusterName The name of the Kusto cluster.
|
|
575
|
-
* @param parameters The Kusto cluster parameters supplied to the CreateOrUpdate operation.
|
|
576
|
-
* @param [options] The optional parameters
|
|
577
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
1081
|
+
* Lists all Kusto clusters within a subscription.
|
|
1082
|
+
* @param options The options parameters.
|
|
578
1083
|
*/
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
1084
|
+
private _list(
|
|
1085
|
+
options?: ClustersListOptionalParams
|
|
1086
|
+
): Promise<ClustersListResponse> {
|
|
1087
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
1088
|
+
}
|
|
1089
|
+
|
|
1090
|
+
/**
|
|
1091
|
+
* Lists eligible SKUs for Kusto resource provider.
|
|
1092
|
+
* @param options The options parameters.
|
|
1093
|
+
*/
|
|
1094
|
+
private _listSkus(
|
|
1095
|
+
options?: ClustersListSkusOptionalParams
|
|
1096
|
+
): Promise<ClustersListSkusResponse> {
|
|
1097
|
+
return this.client.sendOperationRequest({ options }, listSkusOperationSpec);
|
|
1098
|
+
}
|
|
1099
|
+
|
|
1100
|
+
/**
|
|
1101
|
+
* Checks that the cluster name is valid and is not already in use.
|
|
1102
|
+
* @param location Azure location (region) name.
|
|
1103
|
+
* @param clusterName The name of the cluster.
|
|
1104
|
+
* @param options The options parameters.
|
|
1105
|
+
*/
|
|
1106
|
+
checkNameAvailability(
|
|
1107
|
+
location: string,
|
|
1108
|
+
clusterName: ClusterCheckNameRequest,
|
|
1109
|
+
options?: ClustersCheckNameAvailabilityOptionalParams
|
|
1110
|
+
): Promise<ClustersCheckNameAvailabilityResponse> {
|
|
1111
|
+
return this.client.sendOperationRequest(
|
|
1112
|
+
{ location, clusterName, options },
|
|
1113
|
+
checkNameAvailabilityOperationSpec
|
|
594
1114
|
);
|
|
595
1115
|
}
|
|
596
1116
|
|
|
597
1117
|
/**
|
|
598
|
-
*
|
|
1118
|
+
* Returns the SKUs available for the provided resource.
|
|
599
1119
|
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
600
1120
|
* @param clusterName The name of the Kusto cluster.
|
|
601
|
-
* @param
|
|
602
|
-
* @param [options] The optional parameters
|
|
603
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
1121
|
+
* @param options The options parameters.
|
|
604
1122
|
*/
|
|
605
|
-
|
|
1123
|
+
private _listSkusByResource(
|
|
606
1124
|
resourceGroupName: string,
|
|
607
1125
|
clusterName: string,
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
resourceGroupName,
|
|
614
|
-
clusterName,
|
|
615
|
-
parameters,
|
|
616
|
-
options
|
|
617
|
-
},
|
|
618
|
-
beginUpdateOperationSpec,
|
|
619
|
-
options
|
|
1126
|
+
options?: ClustersListSkusByResourceOptionalParams
|
|
1127
|
+
): Promise<ClustersListSkusByResourceResponse> {
|
|
1128
|
+
return this.client.sendOperationRequest(
|
|
1129
|
+
{ resourceGroupName, clusterName, options },
|
|
1130
|
+
listSkusByResourceOperationSpec
|
|
620
1131
|
);
|
|
621
1132
|
}
|
|
622
1133
|
|
|
623
1134
|
/**
|
|
624
|
-
*
|
|
1135
|
+
* Gets the network endpoints of all outbound dependencies of a Kusto cluster
|
|
625
1136
|
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
626
1137
|
* @param clusterName The name of the Kusto cluster.
|
|
627
|
-
* @param
|
|
628
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
1138
|
+
* @param options The options parameters.
|
|
629
1139
|
*/
|
|
630
|
-
|
|
1140
|
+
private _listOutboundNetworkDependenciesEndpoints(
|
|
631
1141
|
resourceGroupName: string,
|
|
632
1142
|
clusterName: string,
|
|
633
|
-
options?:
|
|
634
|
-
): Promise<
|
|
635
|
-
return this.client.
|
|
636
|
-
{
|
|
637
|
-
|
|
638
|
-
clusterName,
|
|
639
|
-
options
|
|
640
|
-
},
|
|
641
|
-
beginDeleteMethodOperationSpec,
|
|
642
|
-
options
|
|
1143
|
+
options?: ClustersListOutboundNetworkDependenciesEndpointsOptionalParams
|
|
1144
|
+
): Promise<ClustersListOutboundNetworkDependenciesEndpointsResponse> {
|
|
1145
|
+
return this.client.sendOperationRequest(
|
|
1146
|
+
{ resourceGroupName, clusterName, options },
|
|
1147
|
+
listOutboundNetworkDependenciesEndpointsOperationSpec
|
|
643
1148
|
);
|
|
644
1149
|
}
|
|
645
1150
|
|
|
646
1151
|
/**
|
|
647
|
-
*
|
|
1152
|
+
* Returns a list of language extensions that can run within KQL queries.
|
|
648
1153
|
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
649
1154
|
* @param clusterName The name of the Kusto cluster.
|
|
650
|
-
* @param
|
|
651
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
1155
|
+
* @param options The options parameters.
|
|
652
1156
|
*/
|
|
653
|
-
|
|
1157
|
+
private _listLanguageExtensions(
|
|
654
1158
|
resourceGroupName: string,
|
|
655
1159
|
clusterName: string,
|
|
656
|
-
options?:
|
|
657
|
-
): Promise<
|
|
658
|
-
return this.client.
|
|
659
|
-
{
|
|
660
|
-
|
|
661
|
-
clusterName,
|
|
662
|
-
options
|
|
663
|
-
},
|
|
664
|
-
beginStopOperationSpec,
|
|
665
|
-
options
|
|
1160
|
+
options?: ClustersListLanguageExtensionsOptionalParams
|
|
1161
|
+
): Promise<ClustersListLanguageExtensionsResponse> {
|
|
1162
|
+
return this.client.sendOperationRequest(
|
|
1163
|
+
{ resourceGroupName, clusterName, options },
|
|
1164
|
+
listLanguageExtensionsOperationSpec
|
|
666
1165
|
);
|
|
667
1166
|
}
|
|
668
1167
|
|
|
669
1168
|
/**
|
|
670
|
-
*
|
|
1169
|
+
* Add a list of language extensions that can run within KQL queries.
|
|
671
1170
|
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
672
1171
|
* @param clusterName The name of the Kusto cluster.
|
|
673
|
-
* @param
|
|
674
|
-
* @
|
|
1172
|
+
* @param languageExtensionsToAdd The language extensions to add.
|
|
1173
|
+
* @param options The options parameters.
|
|
675
1174
|
*/
|
|
676
|
-
|
|
1175
|
+
async beginAddLanguageExtensions(
|
|
677
1176
|
resourceGroupName: string,
|
|
678
1177
|
clusterName: string,
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
1178
|
+
languageExtensionsToAdd: LanguageExtensionsList,
|
|
1179
|
+
options?: ClustersAddLanguageExtensionsOptionalParams
|
|
1180
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
1181
|
+
const directSendOperation = async (
|
|
1182
|
+
args: coreClient.OperationArguments,
|
|
1183
|
+
spec: coreClient.OperationSpec
|
|
1184
|
+
): Promise<void> => {
|
|
1185
|
+
return this.client.sendOperationRequest(args, spec);
|
|
1186
|
+
};
|
|
1187
|
+
const sendOperation = async (
|
|
1188
|
+
args: coreClient.OperationArguments,
|
|
1189
|
+
spec: coreClient.OperationSpec
|
|
1190
|
+
) => {
|
|
1191
|
+
let currentRawResponse:
|
|
1192
|
+
| coreClient.FullOperationResponse
|
|
1193
|
+
| undefined = undefined;
|
|
1194
|
+
const providedCallback = args.options?.onResponse;
|
|
1195
|
+
const callback: coreClient.RawResponseCallback = (
|
|
1196
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
1197
|
+
flatResponse: unknown
|
|
1198
|
+
) => {
|
|
1199
|
+
currentRawResponse = rawResponse;
|
|
1200
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
1201
|
+
};
|
|
1202
|
+
const updatedArgs = {
|
|
1203
|
+
...args,
|
|
1204
|
+
options: {
|
|
1205
|
+
...args.options,
|
|
1206
|
+
onResponse: callback
|
|
1207
|
+
}
|
|
1208
|
+
};
|
|
1209
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1210
|
+
return {
|
|
1211
|
+
flatResponse,
|
|
1212
|
+
rawResponse: {
|
|
1213
|
+
statusCode: currentRawResponse!.status,
|
|
1214
|
+
body: currentRawResponse!.parsedBody,
|
|
1215
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
1216
|
+
}
|
|
1217
|
+
};
|
|
1218
|
+
};
|
|
1219
|
+
|
|
1220
|
+
const lro = new LroImpl(
|
|
1221
|
+
sendOperation,
|
|
1222
|
+
{ resourceGroupName, clusterName, languageExtensionsToAdd, options },
|
|
1223
|
+
addLanguageExtensionsOperationSpec
|
|
689
1224
|
);
|
|
1225
|
+
return new LroEngine(lro, {
|
|
1226
|
+
resumeFrom: options?.resumeFrom,
|
|
1227
|
+
intervalInMs: options?.updateIntervalInMs
|
|
1228
|
+
});
|
|
690
1229
|
}
|
|
691
1230
|
|
|
692
1231
|
/**
|
|
693
|
-
*
|
|
1232
|
+
* Add a list of language extensions that can run within KQL queries.
|
|
694
1233
|
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
695
1234
|
* @param clusterName The name of the Kusto cluster.
|
|
696
|
-
* @param
|
|
697
|
-
* @param
|
|
698
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
1235
|
+
* @param languageExtensionsToAdd The language extensions to add.
|
|
1236
|
+
* @param options The options parameters.
|
|
699
1237
|
*/
|
|
700
|
-
|
|
1238
|
+
async beginAddLanguageExtensionsAndWait(
|
|
701
1239
|
resourceGroupName: string,
|
|
702
1240
|
clusterName: string,
|
|
703
|
-
|
|
704
|
-
options?:
|
|
705
|
-
): Promise<
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
followerDatabaseToRemove,
|
|
711
|
-
options
|
|
712
|
-
},
|
|
713
|
-
beginDetachFollowerDatabasesOperationSpec,
|
|
1241
|
+
languageExtensionsToAdd: LanguageExtensionsList,
|
|
1242
|
+
options?: ClustersAddLanguageExtensionsOptionalParams
|
|
1243
|
+
): Promise<void> {
|
|
1244
|
+
const poller = await this.beginAddLanguageExtensions(
|
|
1245
|
+
resourceGroupName,
|
|
1246
|
+
clusterName,
|
|
1247
|
+
languageExtensionsToAdd,
|
|
714
1248
|
options
|
|
715
1249
|
);
|
|
1250
|
+
return poller.pollUntilDone();
|
|
716
1251
|
}
|
|
717
1252
|
|
|
718
1253
|
/**
|
|
719
|
-
*
|
|
720
|
-
* on.
|
|
1254
|
+
* Remove a list of language extensions that can run within KQL queries.
|
|
721
1255
|
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
722
1256
|
* @param clusterName The name of the Kusto cluster.
|
|
723
|
-
* @param
|
|
724
|
-
* @
|
|
1257
|
+
* @param languageExtensionsToRemove The language extensions to remove.
|
|
1258
|
+
* @param options The options parameters.
|
|
725
1259
|
*/
|
|
726
|
-
|
|
1260
|
+
async beginRemoveLanguageExtensions(
|
|
727
1261
|
resourceGroupName: string,
|
|
728
1262
|
clusterName: string,
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
1263
|
+
languageExtensionsToRemove: LanguageExtensionsList,
|
|
1264
|
+
options?: ClustersRemoveLanguageExtensionsOptionalParams
|
|
1265
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
1266
|
+
const directSendOperation = async (
|
|
1267
|
+
args: coreClient.OperationArguments,
|
|
1268
|
+
spec: coreClient.OperationSpec
|
|
1269
|
+
): Promise<void> => {
|
|
1270
|
+
return this.client.sendOperationRequest(args, spec);
|
|
1271
|
+
};
|
|
1272
|
+
const sendOperation = async (
|
|
1273
|
+
args: coreClient.OperationArguments,
|
|
1274
|
+
spec: coreClient.OperationSpec
|
|
1275
|
+
) => {
|
|
1276
|
+
let currentRawResponse:
|
|
1277
|
+
| coreClient.FullOperationResponse
|
|
1278
|
+
| undefined = undefined;
|
|
1279
|
+
const providedCallback = args.options?.onResponse;
|
|
1280
|
+
const callback: coreClient.RawResponseCallback = (
|
|
1281
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
1282
|
+
flatResponse: unknown
|
|
1283
|
+
) => {
|
|
1284
|
+
currentRawResponse = rawResponse;
|
|
1285
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
1286
|
+
};
|
|
1287
|
+
const updatedArgs = {
|
|
1288
|
+
...args,
|
|
1289
|
+
options: {
|
|
1290
|
+
...args.options,
|
|
1291
|
+
onResponse: callback
|
|
1292
|
+
}
|
|
1293
|
+
};
|
|
1294
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1295
|
+
return {
|
|
1296
|
+
flatResponse,
|
|
1297
|
+
rawResponse: {
|
|
1298
|
+
statusCode: currentRawResponse!.status,
|
|
1299
|
+
body: currentRawResponse!.parsedBody,
|
|
1300
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
1301
|
+
}
|
|
1302
|
+
};
|
|
1303
|
+
};
|
|
1304
|
+
|
|
1305
|
+
const lro = new LroImpl(
|
|
1306
|
+
sendOperation,
|
|
1307
|
+
{ resourceGroupName, clusterName, languageExtensionsToRemove, options },
|
|
1308
|
+
removeLanguageExtensionsOperationSpec
|
|
739
1309
|
);
|
|
1310
|
+
return new LroEngine(lro, {
|
|
1311
|
+
resumeFrom: options?.resumeFrom,
|
|
1312
|
+
intervalInMs: options?.updateIntervalInMs
|
|
1313
|
+
});
|
|
740
1314
|
}
|
|
741
1315
|
|
|
742
1316
|
/**
|
|
743
|
-
*
|
|
1317
|
+
* Remove a list of language extensions that can run within KQL queries.
|
|
744
1318
|
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
745
1319
|
* @param clusterName The name of the Kusto cluster.
|
|
746
|
-
* @param
|
|
747
|
-
* @param
|
|
748
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
1320
|
+
* @param languageExtensionsToRemove The language extensions to remove.
|
|
1321
|
+
* @param options The options parameters.
|
|
749
1322
|
*/
|
|
750
|
-
|
|
1323
|
+
async beginRemoveLanguageExtensionsAndWait(
|
|
751
1324
|
resourceGroupName: string,
|
|
752
1325
|
clusterName: string,
|
|
753
|
-
|
|
754
|
-
options?:
|
|
755
|
-
): Promise<
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
languageExtensionsToAdd,
|
|
761
|
-
options
|
|
762
|
-
},
|
|
763
|
-
beginAddLanguageExtensionsOperationSpec,
|
|
1326
|
+
languageExtensionsToRemove: LanguageExtensionsList,
|
|
1327
|
+
options?: ClustersRemoveLanguageExtensionsOptionalParams
|
|
1328
|
+
): Promise<void> {
|
|
1329
|
+
const poller = await this.beginRemoveLanguageExtensions(
|
|
1330
|
+
resourceGroupName,
|
|
1331
|
+
clusterName,
|
|
1332
|
+
languageExtensionsToRemove,
|
|
764
1333
|
options
|
|
765
1334
|
);
|
|
1335
|
+
return poller.pollUntilDone();
|
|
766
1336
|
}
|
|
767
1337
|
|
|
768
1338
|
/**
|
|
769
|
-
*
|
|
1339
|
+
* ListOutboundNetworkDependenciesEndpointsNext
|
|
770
1340
|
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
|
|
771
1341
|
* @param clusterName The name of the Kusto cluster.
|
|
772
|
-
* @param
|
|
773
|
-
*
|
|
774
|
-
* @
|
|
1342
|
+
* @param nextLink The nextLink from the previous successful call to the
|
|
1343
|
+
* ListOutboundNetworkDependenciesEndpoints method.
|
|
1344
|
+
* @param options The options parameters.
|
|
775
1345
|
*/
|
|
776
|
-
|
|
1346
|
+
private _listOutboundNetworkDependenciesEndpointsNext(
|
|
777
1347
|
resourceGroupName: string,
|
|
778
1348
|
clusterName: string,
|
|
779
|
-
|
|
780
|
-
options?:
|
|
781
|
-
): Promise<
|
|
782
|
-
return this.client.
|
|
783
|
-
{
|
|
784
|
-
|
|
785
|
-
clusterName,
|
|
786
|
-
languageExtensionsToRemove,
|
|
787
|
-
options
|
|
788
|
-
},
|
|
789
|
-
beginRemoveLanguageExtensionsOperationSpec,
|
|
790
|
-
options
|
|
1349
|
+
nextLink: string,
|
|
1350
|
+
options?: ClustersListOutboundNetworkDependenciesEndpointsNextOptionalParams
|
|
1351
|
+
): Promise<ClustersListOutboundNetworkDependenciesEndpointsNextResponse> {
|
|
1352
|
+
return this.client.sendOperationRequest(
|
|
1353
|
+
{ resourceGroupName, clusterName, nextLink, options },
|
|
1354
|
+
listOutboundNetworkDependenciesEndpointsNextOperationSpec
|
|
791
1355
|
);
|
|
792
1356
|
}
|
|
793
1357
|
}
|
|
794
|
-
|
|
795
1358
|
// Operation Specifications
|
|
796
|
-
const serializer =
|
|
797
|
-
|
|
798
|
-
|
|
1359
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
1360
|
+
|
|
1361
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
799
1362
|
path:
|
|
800
|
-
"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}",
|
|
801
|
-
|
|
802
|
-
queryParameters: [Parameters.apiVersion],
|
|
803
|
-
headerParameters: [Parameters.acceptLanguage],
|
|
1363
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}",
|
|
1364
|
+
httpMethod: "GET",
|
|
804
1365
|
responses: {
|
|
805
1366
|
200: {
|
|
806
1367
|
bodyMapper: Mappers.Cluster
|
|
@@ -809,338 +1370,449 @@ const getOperationSpec: msRest.OperationSpec = {
|
|
|
809
1370
|
bodyMapper: Mappers.CloudError
|
|
810
1371
|
}
|
|
811
1372
|
},
|
|
1373
|
+
queryParameters: [Parameters.apiVersion],
|
|
1374
|
+
urlParameters: [
|
|
1375
|
+
Parameters.$host,
|
|
1376
|
+
Parameters.resourceGroupName,
|
|
1377
|
+
Parameters.clusterName,
|
|
1378
|
+
Parameters.subscriptionId
|
|
1379
|
+
],
|
|
1380
|
+
headerParameters: [Parameters.accept],
|
|
812
1381
|
serializer
|
|
813
1382
|
};
|
|
814
|
-
|
|
815
|
-
const listFollowerDatabasesOperationSpec: msRest.OperationSpec = {
|
|
816
|
-
httpMethod: "POST",
|
|
1383
|
+
const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
817
1384
|
path:
|
|
818
|
-
"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}
|
|
819
|
-
|
|
820
|
-
queryParameters: [Parameters.apiVersion],
|
|
821
|
-
headerParameters: [Parameters.acceptLanguage],
|
|
1385
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}",
|
|
1386
|
+
httpMethod: "PUT",
|
|
822
1387
|
responses: {
|
|
823
1388
|
200: {
|
|
824
|
-
bodyMapper: Mappers.
|
|
1389
|
+
bodyMapper: Mappers.Cluster
|
|
1390
|
+
},
|
|
1391
|
+
201: {
|
|
1392
|
+
bodyMapper: Mappers.Cluster
|
|
1393
|
+
},
|
|
1394
|
+
202: {
|
|
1395
|
+
bodyMapper: Mappers.Cluster
|
|
1396
|
+
},
|
|
1397
|
+
204: {
|
|
1398
|
+
bodyMapper: Mappers.Cluster
|
|
825
1399
|
},
|
|
826
1400
|
default: {
|
|
827
1401
|
bodyMapper: Mappers.CloudError
|
|
828
1402
|
}
|
|
829
1403
|
},
|
|
1404
|
+
requestBody: Parameters.parameters,
|
|
1405
|
+
queryParameters: [Parameters.apiVersion],
|
|
1406
|
+
urlParameters: [
|
|
1407
|
+
Parameters.$host,
|
|
1408
|
+
Parameters.resourceGroupName,
|
|
1409
|
+
Parameters.clusterName,
|
|
1410
|
+
Parameters.subscriptionId
|
|
1411
|
+
],
|
|
1412
|
+
headerParameters: [
|
|
1413
|
+
Parameters.accept,
|
|
1414
|
+
Parameters.contentType,
|
|
1415
|
+
Parameters.ifMatch,
|
|
1416
|
+
Parameters.ifNoneMatch
|
|
1417
|
+
],
|
|
1418
|
+
mediaType: "json",
|
|
830
1419
|
serializer
|
|
831
1420
|
};
|
|
832
|
-
|
|
833
|
-
const listByResourceGroupOperationSpec: msRest.OperationSpec = {
|
|
834
|
-
httpMethod: "GET",
|
|
1421
|
+
const updateOperationSpec: coreClient.OperationSpec = {
|
|
835
1422
|
path:
|
|
836
|
-
"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters",
|
|
837
|
-
|
|
838
|
-
queryParameters: [Parameters.apiVersion],
|
|
839
|
-
headerParameters: [Parameters.acceptLanguage],
|
|
1423
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}",
|
|
1424
|
+
httpMethod: "PATCH",
|
|
840
1425
|
responses: {
|
|
841
1426
|
200: {
|
|
842
|
-
bodyMapper: Mappers.
|
|
1427
|
+
bodyMapper: Mappers.Cluster
|
|
1428
|
+
},
|
|
1429
|
+
201: {
|
|
1430
|
+
bodyMapper: Mappers.Cluster
|
|
1431
|
+
},
|
|
1432
|
+
202: {
|
|
1433
|
+
bodyMapper: Mappers.Cluster
|
|
1434
|
+
},
|
|
1435
|
+
204: {
|
|
1436
|
+
bodyMapper: Mappers.Cluster
|
|
843
1437
|
},
|
|
844
1438
|
default: {
|
|
845
1439
|
bodyMapper: Mappers.CloudError
|
|
846
1440
|
}
|
|
847
1441
|
},
|
|
1442
|
+
requestBody: Parameters.parameters1,
|
|
1443
|
+
queryParameters: [Parameters.apiVersion],
|
|
1444
|
+
urlParameters: [
|
|
1445
|
+
Parameters.$host,
|
|
1446
|
+
Parameters.resourceGroupName,
|
|
1447
|
+
Parameters.clusterName,
|
|
1448
|
+
Parameters.subscriptionId
|
|
1449
|
+
],
|
|
1450
|
+
headerParameters: [
|
|
1451
|
+
Parameters.accept,
|
|
1452
|
+
Parameters.contentType,
|
|
1453
|
+
Parameters.ifMatch
|
|
1454
|
+
],
|
|
1455
|
+
mediaType: "json",
|
|
848
1456
|
serializer
|
|
849
1457
|
};
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
urlParameters: [Parameters.subscriptionId],
|
|
855
|
-
queryParameters: [Parameters.apiVersion],
|
|
856
|
-
headerParameters: [Parameters.acceptLanguage],
|
|
1458
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
1459
|
+
path:
|
|
1460
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}",
|
|
1461
|
+
httpMethod: "DELETE",
|
|
857
1462
|
responses: {
|
|
858
|
-
200: {
|
|
859
|
-
|
|
860
|
-
},
|
|
1463
|
+
200: {},
|
|
1464
|
+
201: {},
|
|
1465
|
+
202: {},
|
|
1466
|
+
204: {},
|
|
861
1467
|
default: {
|
|
862
1468
|
bodyMapper: Mappers.CloudError
|
|
863
1469
|
}
|
|
864
1470
|
},
|
|
1471
|
+
queryParameters: [Parameters.apiVersion],
|
|
1472
|
+
urlParameters: [
|
|
1473
|
+
Parameters.$host,
|
|
1474
|
+
Parameters.resourceGroupName,
|
|
1475
|
+
Parameters.clusterName,
|
|
1476
|
+
Parameters.subscriptionId
|
|
1477
|
+
],
|
|
1478
|
+
headerParameters: [Parameters.accept],
|
|
865
1479
|
serializer
|
|
866
1480
|
};
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
urlParameters: [Parameters.subscriptionId],
|
|
872
|
-
queryParameters: [Parameters.apiVersion],
|
|
873
|
-
headerParameters: [Parameters.acceptLanguage],
|
|
1481
|
+
const stopOperationSpec: coreClient.OperationSpec = {
|
|
1482
|
+
path:
|
|
1483
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/stop",
|
|
1484
|
+
httpMethod: "POST",
|
|
874
1485
|
responses: {
|
|
875
|
-
200: {
|
|
876
|
-
|
|
877
|
-
},
|
|
1486
|
+
200: {},
|
|
1487
|
+
201: {},
|
|
1488
|
+
202: {},
|
|
1489
|
+
204: {},
|
|
878
1490
|
default: {
|
|
879
1491
|
bodyMapper: Mappers.CloudError
|
|
880
1492
|
}
|
|
881
1493
|
},
|
|
1494
|
+
queryParameters: [Parameters.apiVersion],
|
|
1495
|
+
urlParameters: [
|
|
1496
|
+
Parameters.$host,
|
|
1497
|
+
Parameters.resourceGroupName,
|
|
1498
|
+
Parameters.clusterName,
|
|
1499
|
+
Parameters.subscriptionId
|
|
1500
|
+
],
|
|
1501
|
+
headerParameters: [Parameters.accept],
|
|
882
1502
|
serializer
|
|
883
1503
|
};
|
|
884
|
-
|
|
885
|
-
const checkNameAvailabilityOperationSpec: msRest.OperationSpec = {
|
|
886
|
-
httpMethod: "POST",
|
|
1504
|
+
const startOperationSpec: coreClient.OperationSpec = {
|
|
887
1505
|
path:
|
|
888
|
-
"subscriptions/{subscriptionId}/providers/Microsoft.Kusto/
|
|
889
|
-
|
|
890
|
-
queryParameters: [Parameters.apiVersion],
|
|
891
|
-
headerParameters: [Parameters.acceptLanguage],
|
|
892
|
-
requestBody: {
|
|
893
|
-
parameterPath: "clusterName",
|
|
894
|
-
mapper: {
|
|
895
|
-
...Mappers.ClusterCheckNameRequest,
|
|
896
|
-
required: true
|
|
897
|
-
}
|
|
898
|
-
},
|
|
1506
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/start",
|
|
1507
|
+
httpMethod: "POST",
|
|
899
1508
|
responses: {
|
|
900
|
-
200: {
|
|
901
|
-
|
|
902
|
-
},
|
|
1509
|
+
200: {},
|
|
1510
|
+
201: {},
|
|
1511
|
+
202: {},
|
|
1512
|
+
204: {},
|
|
903
1513
|
default: {
|
|
904
1514
|
bodyMapper: Mappers.CloudError
|
|
905
1515
|
}
|
|
906
1516
|
},
|
|
1517
|
+
queryParameters: [Parameters.apiVersion],
|
|
1518
|
+
urlParameters: [
|
|
1519
|
+
Parameters.$host,
|
|
1520
|
+
Parameters.resourceGroupName,
|
|
1521
|
+
Parameters.clusterName,
|
|
1522
|
+
Parameters.subscriptionId
|
|
1523
|
+
],
|
|
1524
|
+
headerParameters: [Parameters.accept],
|
|
907
1525
|
serializer
|
|
908
1526
|
};
|
|
909
|
-
|
|
910
|
-
const listSkusByResourceOperationSpec: msRest.OperationSpec = {
|
|
911
|
-
httpMethod: "GET",
|
|
1527
|
+
const listFollowerDatabasesOperationSpec: coreClient.OperationSpec = {
|
|
912
1528
|
path:
|
|
913
|
-
"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/
|
|
914
|
-
|
|
915
|
-
queryParameters: [Parameters.apiVersion],
|
|
916
|
-
headerParameters: [Parameters.acceptLanguage],
|
|
1529
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/listFollowerDatabases",
|
|
1530
|
+
httpMethod: "POST",
|
|
917
1531
|
responses: {
|
|
918
1532
|
200: {
|
|
919
|
-
bodyMapper: Mappers.
|
|
1533
|
+
bodyMapper: Mappers.FollowerDatabaseListResult
|
|
920
1534
|
},
|
|
921
1535
|
default: {
|
|
922
1536
|
bodyMapper: Mappers.CloudError
|
|
923
1537
|
}
|
|
924
1538
|
},
|
|
1539
|
+
queryParameters: [Parameters.apiVersion],
|
|
1540
|
+
urlParameters: [
|
|
1541
|
+
Parameters.$host,
|
|
1542
|
+
Parameters.resourceGroupName,
|
|
1543
|
+
Parameters.clusterName,
|
|
1544
|
+
Parameters.subscriptionId
|
|
1545
|
+
],
|
|
1546
|
+
headerParameters: [Parameters.accept],
|
|
925
1547
|
serializer
|
|
926
1548
|
};
|
|
927
|
-
|
|
928
|
-
const listLanguageExtensionsOperationSpec: msRest.OperationSpec = {
|
|
929
|
-
httpMethod: "POST",
|
|
1549
|
+
const detachFollowerDatabasesOperationSpec: coreClient.OperationSpec = {
|
|
930
1550
|
path:
|
|
931
|
-
"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/
|
|
932
|
-
|
|
933
|
-
queryParameters: [Parameters.apiVersion],
|
|
934
|
-
headerParameters: [Parameters.acceptLanguage],
|
|
1551
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/detachFollowerDatabases",
|
|
1552
|
+
httpMethod: "POST",
|
|
935
1553
|
responses: {
|
|
936
|
-
200: {
|
|
937
|
-
|
|
938
|
-
},
|
|
1554
|
+
200: {},
|
|
1555
|
+
201: {},
|
|
1556
|
+
202: {},
|
|
1557
|
+
204: {},
|
|
939
1558
|
default: {
|
|
940
1559
|
bodyMapper: Mappers.CloudError
|
|
941
1560
|
}
|
|
942
1561
|
},
|
|
1562
|
+
requestBody: Parameters.followerDatabaseToRemove,
|
|
1563
|
+
queryParameters: [Parameters.apiVersion],
|
|
1564
|
+
urlParameters: [
|
|
1565
|
+
Parameters.$host,
|
|
1566
|
+
Parameters.resourceGroupName,
|
|
1567
|
+
Parameters.clusterName,
|
|
1568
|
+
Parameters.subscriptionId
|
|
1569
|
+
],
|
|
1570
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
1571
|
+
mediaType: "json",
|
|
943
1572
|
serializer
|
|
944
1573
|
};
|
|
945
|
-
|
|
946
|
-
const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = {
|
|
947
|
-
httpMethod: "PUT",
|
|
1574
|
+
const diagnoseVirtualNetworkOperationSpec: coreClient.OperationSpec = {
|
|
948
1575
|
path:
|
|
949
|
-
"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}",
|
|
950
|
-
|
|
951
|
-
queryParameters: [Parameters.apiVersion],
|
|
952
|
-
headerParameters: [Parameters.ifMatch, Parameters.ifNoneMatch, Parameters.acceptLanguage],
|
|
953
|
-
requestBody: {
|
|
954
|
-
parameterPath: "parameters",
|
|
955
|
-
mapper: {
|
|
956
|
-
...Mappers.Cluster,
|
|
957
|
-
required: true
|
|
958
|
-
}
|
|
959
|
-
},
|
|
1576
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/diagnoseVirtualNetwork",
|
|
1577
|
+
httpMethod: "POST",
|
|
960
1578
|
responses: {
|
|
961
1579
|
200: {
|
|
962
|
-
bodyMapper: Mappers.
|
|
1580
|
+
bodyMapper: Mappers.DiagnoseVirtualNetworkResult
|
|
963
1581
|
},
|
|
964
1582
|
201: {
|
|
965
|
-
bodyMapper: Mappers.
|
|
1583
|
+
bodyMapper: Mappers.DiagnoseVirtualNetworkResult
|
|
1584
|
+
},
|
|
1585
|
+
202: {
|
|
1586
|
+
bodyMapper: Mappers.DiagnoseVirtualNetworkResult
|
|
1587
|
+
},
|
|
1588
|
+
204: {
|
|
1589
|
+
bodyMapper: Mappers.DiagnoseVirtualNetworkResult
|
|
966
1590
|
},
|
|
967
1591
|
default: {
|
|
968
1592
|
bodyMapper: Mappers.CloudError
|
|
969
1593
|
}
|
|
970
1594
|
},
|
|
1595
|
+
queryParameters: [Parameters.apiVersion],
|
|
1596
|
+
urlParameters: [
|
|
1597
|
+
Parameters.$host,
|
|
1598
|
+
Parameters.resourceGroupName,
|
|
1599
|
+
Parameters.clusterName,
|
|
1600
|
+
Parameters.subscriptionId
|
|
1601
|
+
],
|
|
1602
|
+
headerParameters: [Parameters.accept],
|
|
971
1603
|
serializer
|
|
972
1604
|
};
|
|
973
|
-
|
|
974
|
-
const beginUpdateOperationSpec: msRest.OperationSpec = {
|
|
975
|
-
httpMethod: "PATCH",
|
|
1605
|
+
const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
|
|
976
1606
|
path:
|
|
977
|
-
"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
required: true
|
|
1607
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters",
|
|
1608
|
+
httpMethod: "GET",
|
|
1609
|
+
responses: {
|
|
1610
|
+
200: {
|
|
1611
|
+
bodyMapper: Mappers.ClusterListResult
|
|
1612
|
+
},
|
|
1613
|
+
default: {
|
|
1614
|
+
bodyMapper: Mappers.CloudError
|
|
986
1615
|
}
|
|
987
1616
|
},
|
|
1617
|
+
queryParameters: [Parameters.apiVersion],
|
|
1618
|
+
urlParameters: [
|
|
1619
|
+
Parameters.$host,
|
|
1620
|
+
Parameters.resourceGroupName,
|
|
1621
|
+
Parameters.subscriptionId
|
|
1622
|
+
],
|
|
1623
|
+
headerParameters: [Parameters.accept],
|
|
1624
|
+
serializer
|
|
1625
|
+
};
|
|
1626
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
1627
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Kusto/clusters",
|
|
1628
|
+
httpMethod: "GET",
|
|
988
1629
|
responses: {
|
|
989
1630
|
200: {
|
|
990
|
-
bodyMapper: Mappers.
|
|
991
|
-
},
|
|
992
|
-
201: {
|
|
993
|
-
bodyMapper: Mappers.Cluster
|
|
994
|
-
},
|
|
995
|
-
202: {
|
|
996
|
-
bodyMapper: Mappers.Cluster
|
|
1631
|
+
bodyMapper: Mappers.ClusterListResult
|
|
997
1632
|
},
|
|
998
1633
|
default: {
|
|
999
1634
|
bodyMapper: Mappers.CloudError
|
|
1000
1635
|
}
|
|
1001
1636
|
},
|
|
1637
|
+
queryParameters: [Parameters.apiVersion],
|
|
1638
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
1639
|
+
headerParameters: [Parameters.accept],
|
|
1002
1640
|
serializer
|
|
1003
1641
|
};
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
httpMethod: "
|
|
1007
|
-
path:
|
|
1008
|
-
"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}",
|
|
1009
|
-
urlParameters: [Parameters.resourceGroupName, Parameters.clusterName, Parameters.subscriptionId],
|
|
1010
|
-
queryParameters: [Parameters.apiVersion],
|
|
1011
|
-
headerParameters: [Parameters.acceptLanguage],
|
|
1642
|
+
const listSkusOperationSpec: coreClient.OperationSpec = {
|
|
1643
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Kusto/skus",
|
|
1644
|
+
httpMethod: "GET",
|
|
1012
1645
|
responses: {
|
|
1013
|
-
200: {
|
|
1014
|
-
|
|
1015
|
-
|
|
1646
|
+
200: {
|
|
1647
|
+
bodyMapper: Mappers.SkuDescriptionList
|
|
1648
|
+
},
|
|
1016
1649
|
default: {
|
|
1017
1650
|
bodyMapper: Mappers.CloudError
|
|
1018
1651
|
}
|
|
1019
1652
|
},
|
|
1653
|
+
queryParameters: [Parameters.apiVersion],
|
|
1654
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
1655
|
+
headerParameters: [Parameters.accept],
|
|
1020
1656
|
serializer
|
|
1021
1657
|
};
|
|
1022
|
-
|
|
1023
|
-
const beginStopOperationSpec: msRest.OperationSpec = {
|
|
1024
|
-
httpMethod: "POST",
|
|
1658
|
+
const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = {
|
|
1025
1659
|
path:
|
|
1026
|
-
"subscriptions/{subscriptionId}/
|
|
1027
|
-
|
|
1028
|
-
queryParameters: [Parameters.apiVersion],
|
|
1029
|
-
headerParameters: [Parameters.acceptLanguage],
|
|
1660
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.Kusto/locations/{location}/checkNameAvailability",
|
|
1661
|
+
httpMethod: "POST",
|
|
1030
1662
|
responses: {
|
|
1031
|
-
200: {
|
|
1032
|
-
|
|
1663
|
+
200: {
|
|
1664
|
+
bodyMapper: Mappers.CheckNameResult
|
|
1665
|
+
},
|
|
1033
1666
|
default: {
|
|
1034
1667
|
bodyMapper: Mappers.CloudError
|
|
1035
1668
|
}
|
|
1036
1669
|
},
|
|
1670
|
+
requestBody: Parameters.clusterName1,
|
|
1671
|
+
queryParameters: [Parameters.apiVersion],
|
|
1672
|
+
urlParameters: [
|
|
1673
|
+
Parameters.$host,
|
|
1674
|
+
Parameters.subscriptionId,
|
|
1675
|
+
Parameters.location
|
|
1676
|
+
],
|
|
1677
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
1678
|
+
mediaType: "json",
|
|
1037
1679
|
serializer
|
|
1038
1680
|
};
|
|
1039
|
-
|
|
1040
|
-
const beginStartOperationSpec: msRest.OperationSpec = {
|
|
1041
|
-
httpMethod: "POST",
|
|
1681
|
+
const listSkusByResourceOperationSpec: coreClient.OperationSpec = {
|
|
1042
1682
|
path:
|
|
1043
|
-
"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/
|
|
1044
|
-
|
|
1045
|
-
queryParameters: [Parameters.apiVersion],
|
|
1046
|
-
headerParameters: [Parameters.acceptLanguage],
|
|
1683
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/skus",
|
|
1684
|
+
httpMethod: "GET",
|
|
1047
1685
|
responses: {
|
|
1048
|
-
200: {
|
|
1049
|
-
|
|
1686
|
+
200: {
|
|
1687
|
+
bodyMapper: Mappers.ListResourceSkusResult
|
|
1688
|
+
},
|
|
1050
1689
|
default: {
|
|
1051
1690
|
bodyMapper: Mappers.CloudError
|
|
1052
1691
|
}
|
|
1053
1692
|
},
|
|
1693
|
+
queryParameters: [Parameters.apiVersion],
|
|
1694
|
+
urlParameters: [
|
|
1695
|
+
Parameters.$host,
|
|
1696
|
+
Parameters.resourceGroupName,
|
|
1697
|
+
Parameters.clusterName,
|
|
1698
|
+
Parameters.subscriptionId
|
|
1699
|
+
],
|
|
1700
|
+
headerParameters: [Parameters.accept],
|
|
1054
1701
|
serializer
|
|
1055
1702
|
};
|
|
1056
|
-
|
|
1057
|
-
const beginDetachFollowerDatabasesOperationSpec: msRest.OperationSpec = {
|
|
1058
|
-
httpMethod: "POST",
|
|
1703
|
+
const listOutboundNetworkDependenciesEndpointsOperationSpec: coreClient.OperationSpec = {
|
|
1059
1704
|
path:
|
|
1060
|
-
"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/
|
|
1061
|
-
|
|
1062
|
-
queryParameters: [Parameters.apiVersion],
|
|
1063
|
-
headerParameters: [Parameters.acceptLanguage],
|
|
1064
|
-
requestBody: {
|
|
1065
|
-
parameterPath: "followerDatabaseToRemove",
|
|
1066
|
-
mapper: {
|
|
1067
|
-
...Mappers.FollowerDatabaseDefinition,
|
|
1068
|
-
required: true
|
|
1069
|
-
}
|
|
1070
|
-
},
|
|
1705
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/outboundNetworkDependenciesEndpoints",
|
|
1706
|
+
httpMethod: "GET",
|
|
1071
1707
|
responses: {
|
|
1072
|
-
200: {
|
|
1073
|
-
|
|
1708
|
+
200: {
|
|
1709
|
+
bodyMapper: Mappers.OutboundNetworkDependenciesEndpointListResult
|
|
1710
|
+
},
|
|
1074
1711
|
default: {
|
|
1075
1712
|
bodyMapper: Mappers.CloudError
|
|
1076
1713
|
}
|
|
1077
1714
|
},
|
|
1715
|
+
queryParameters: [Parameters.apiVersion],
|
|
1716
|
+
urlParameters: [
|
|
1717
|
+
Parameters.$host,
|
|
1718
|
+
Parameters.resourceGroupName,
|
|
1719
|
+
Parameters.clusterName,
|
|
1720
|
+
Parameters.subscriptionId
|
|
1721
|
+
],
|
|
1722
|
+
headerParameters: [Parameters.accept],
|
|
1078
1723
|
serializer
|
|
1079
1724
|
};
|
|
1080
|
-
|
|
1081
|
-
const beginDiagnoseVirtualNetworkOperationSpec: msRest.OperationSpec = {
|
|
1082
|
-
httpMethod: "POST",
|
|
1725
|
+
const listLanguageExtensionsOperationSpec: coreClient.OperationSpec = {
|
|
1083
1726
|
path:
|
|
1084
|
-
"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/
|
|
1085
|
-
|
|
1086
|
-
queryParameters: [Parameters.apiVersion],
|
|
1087
|
-
headerParameters: [Parameters.acceptLanguage],
|
|
1727
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/listLanguageExtensions",
|
|
1728
|
+
httpMethod: "POST",
|
|
1088
1729
|
responses: {
|
|
1089
1730
|
200: {
|
|
1090
|
-
bodyMapper: Mappers.
|
|
1731
|
+
bodyMapper: Mappers.LanguageExtensionsList
|
|
1091
1732
|
},
|
|
1092
|
-
202: {},
|
|
1093
1733
|
default: {
|
|
1094
1734
|
bodyMapper: Mappers.CloudError
|
|
1095
1735
|
}
|
|
1096
1736
|
},
|
|
1737
|
+
queryParameters: [Parameters.apiVersion],
|
|
1738
|
+
urlParameters: [
|
|
1739
|
+
Parameters.$host,
|
|
1740
|
+
Parameters.resourceGroupName,
|
|
1741
|
+
Parameters.clusterName,
|
|
1742
|
+
Parameters.subscriptionId
|
|
1743
|
+
],
|
|
1744
|
+
headerParameters: [Parameters.accept],
|
|
1097
1745
|
serializer
|
|
1098
1746
|
};
|
|
1099
|
-
|
|
1100
|
-
const beginAddLanguageExtensionsOperationSpec: msRest.OperationSpec = {
|
|
1101
|
-
httpMethod: "POST",
|
|
1747
|
+
const addLanguageExtensionsOperationSpec: coreClient.OperationSpec = {
|
|
1102
1748
|
path:
|
|
1103
|
-
"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/addLanguageExtensions",
|
|
1104
|
-
|
|
1105
|
-
queryParameters: [Parameters.apiVersion],
|
|
1106
|
-
headerParameters: [Parameters.acceptLanguage],
|
|
1107
|
-
requestBody: {
|
|
1108
|
-
parameterPath: "languageExtensionsToAdd",
|
|
1109
|
-
mapper: {
|
|
1110
|
-
...Mappers.LanguageExtensionsList,
|
|
1111
|
-
required: true
|
|
1112
|
-
}
|
|
1113
|
-
},
|
|
1749
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/addLanguageExtensions",
|
|
1750
|
+
httpMethod: "POST",
|
|
1114
1751
|
responses: {
|
|
1115
1752
|
200: {},
|
|
1753
|
+
201: {},
|
|
1116
1754
|
202: {},
|
|
1755
|
+
204: {},
|
|
1117
1756
|
default: {
|
|
1118
1757
|
bodyMapper: Mappers.CloudError
|
|
1119
1758
|
}
|
|
1120
1759
|
},
|
|
1760
|
+
requestBody: Parameters.languageExtensionsToAdd,
|
|
1761
|
+
queryParameters: [Parameters.apiVersion],
|
|
1762
|
+
urlParameters: [
|
|
1763
|
+
Parameters.$host,
|
|
1764
|
+
Parameters.resourceGroupName,
|
|
1765
|
+
Parameters.clusterName,
|
|
1766
|
+
Parameters.subscriptionId
|
|
1767
|
+
],
|
|
1768
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
1769
|
+
mediaType: "json",
|
|
1121
1770
|
serializer
|
|
1122
1771
|
};
|
|
1123
|
-
|
|
1124
|
-
const beginRemoveLanguageExtensionsOperationSpec: msRest.OperationSpec = {
|
|
1125
|
-
httpMethod: "POST",
|
|
1772
|
+
const removeLanguageExtensionsOperationSpec: coreClient.OperationSpec = {
|
|
1126
1773
|
path:
|
|
1127
|
-
"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/removeLanguageExtensions",
|
|
1128
|
-
|
|
1129
|
-
queryParameters: [Parameters.apiVersion],
|
|
1130
|
-
headerParameters: [Parameters.acceptLanguage],
|
|
1131
|
-
requestBody: {
|
|
1132
|
-
parameterPath: "languageExtensionsToRemove",
|
|
1133
|
-
mapper: {
|
|
1134
|
-
...Mappers.LanguageExtensionsList,
|
|
1135
|
-
required: true
|
|
1136
|
-
}
|
|
1137
|
-
},
|
|
1774
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/removeLanguageExtensions",
|
|
1775
|
+
httpMethod: "POST",
|
|
1138
1776
|
responses: {
|
|
1139
1777
|
200: {},
|
|
1778
|
+
201: {},
|
|
1140
1779
|
202: {},
|
|
1780
|
+
204: {},
|
|
1781
|
+
default: {
|
|
1782
|
+
bodyMapper: Mappers.CloudError
|
|
1783
|
+
}
|
|
1784
|
+
},
|
|
1785
|
+
requestBody: Parameters.languageExtensionsToRemove,
|
|
1786
|
+
queryParameters: [Parameters.apiVersion],
|
|
1787
|
+
urlParameters: [
|
|
1788
|
+
Parameters.$host,
|
|
1789
|
+
Parameters.resourceGroupName,
|
|
1790
|
+
Parameters.clusterName,
|
|
1791
|
+
Parameters.subscriptionId
|
|
1792
|
+
],
|
|
1793
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
1794
|
+
mediaType: "json",
|
|
1795
|
+
serializer
|
|
1796
|
+
};
|
|
1797
|
+
const listOutboundNetworkDependenciesEndpointsNextOperationSpec: coreClient.OperationSpec = {
|
|
1798
|
+
path: "{nextLink}",
|
|
1799
|
+
httpMethod: "GET",
|
|
1800
|
+
responses: {
|
|
1801
|
+
200: {
|
|
1802
|
+
bodyMapper: Mappers.OutboundNetworkDependenciesEndpointListResult
|
|
1803
|
+
},
|
|
1141
1804
|
default: {
|
|
1142
1805
|
bodyMapper: Mappers.CloudError
|
|
1143
1806
|
}
|
|
1144
1807
|
},
|
|
1808
|
+
queryParameters: [Parameters.apiVersion],
|
|
1809
|
+
urlParameters: [
|
|
1810
|
+
Parameters.$host,
|
|
1811
|
+
Parameters.resourceGroupName,
|
|
1812
|
+
Parameters.clusterName,
|
|
1813
|
+
Parameters.subscriptionId,
|
|
1814
|
+
Parameters.nextLink
|
|
1815
|
+
],
|
|
1816
|
+
headerParameters: [Parameters.accept],
|
|
1145
1817
|
serializer
|
|
1146
1818
|
};
|