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