@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
@@ -1,156 +0,0 @@
1
- import * as msRest from "@azure/ms-rest-js";
2
- import * as msRestAzure from "@azure/ms-rest-azure-js";
3
- import * as Models from "../models";
4
- import { KustoManagementClientContext } from "../kustoManagementClientContext";
5
- /** Class representing a Scripts. */
6
- export declare class Scripts {
7
- private readonly client;
8
- /**
9
- * Create a Scripts.
10
- * @param {KustoManagementClientContext} client Reference to the service client.
11
- */
12
- constructor(client: KustoManagementClientContext);
13
- /**
14
- * Returns the list of database scripts for given database.
15
- * @param resourceGroupName The name of the resource group containing the Kusto cluster.
16
- * @param clusterName The name of the Kusto cluster.
17
- * @param databaseName The name of the database in the Kusto cluster.
18
- * @param [options] The optional parameters
19
- * @returns Promise<Models.ScriptsListByDatabaseResponse>
20
- */
21
- listByDatabase(resourceGroupName: string, clusterName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise<Models.ScriptsListByDatabaseResponse>;
22
- /**
23
- * @param resourceGroupName The name of the resource group containing the Kusto cluster.
24
- * @param clusterName The name of the Kusto cluster.
25
- * @param databaseName The name of the database in the Kusto cluster.
26
- * @param callback The callback
27
- */
28
- listByDatabase(resourceGroupName: string, clusterName: string, databaseName: string, callback: msRest.ServiceCallback<Models.ScriptListResult>): void;
29
- /**
30
- * @param resourceGroupName The name of the resource group containing the Kusto cluster.
31
- * @param clusterName The name of the Kusto cluster.
32
- * @param databaseName The name of the database in the Kusto cluster.
33
- * @param options The optional parameters
34
- * @param callback The callback
35
- */
36
- listByDatabase(resourceGroupName: string, clusterName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ScriptListResult>): void;
37
- /**
38
- * Gets a Kusto cluster database script.
39
- * @param resourceGroupName The name of the resource group containing the Kusto cluster.
40
- * @param clusterName The name of the Kusto cluster.
41
- * @param databaseName The name of the database in the Kusto cluster.
42
- * @param scriptName The name of the Kusto database script.
43
- * @param [options] The optional parameters
44
- * @returns Promise<Models.ScriptsGetResponse>
45
- */
46
- get(resourceGroupName: string, clusterName: string, databaseName: string, scriptName: string, options?: msRest.RequestOptionsBase): Promise<Models.ScriptsGetResponse>;
47
- /**
48
- * @param resourceGroupName The name of the resource group containing the Kusto cluster.
49
- * @param clusterName The name of the Kusto cluster.
50
- * @param databaseName The name of the database in the Kusto cluster.
51
- * @param scriptName The name of the Kusto database script.
52
- * @param callback The callback
53
- */
54
- get(resourceGroupName: string, clusterName: string, databaseName: string, scriptName: string, callback: msRest.ServiceCallback<Models.Script>): void;
55
- /**
56
- * @param resourceGroupName The name of the resource group containing the Kusto cluster.
57
- * @param clusterName The name of the Kusto cluster.
58
- * @param databaseName The name of the database in the Kusto cluster.
59
- * @param scriptName The name of the Kusto database script.
60
- * @param options The optional parameters
61
- * @param callback The callback
62
- */
63
- get(resourceGroupName: string, clusterName: string, databaseName: string, scriptName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.Script>): void;
64
- /**
65
- * Creates a Kusto database script.
66
- * @param resourceGroupName The name of the resource group containing the Kusto cluster.
67
- * @param clusterName The name of the Kusto cluster.
68
- * @param databaseName The name of the database in the Kusto cluster.
69
- * @param scriptName The name of the Kusto database script.
70
- * @param parameters The Kusto Script parameters contains the KQL to run.
71
- * @param [options] The optional parameters
72
- * @returns Promise<Models.ScriptsCreateOrUpdateResponse>
73
- */
74
- createOrUpdate(resourceGroupName: string, clusterName: string, databaseName: string, scriptName: string, parameters: Models.Script, options?: msRest.RequestOptionsBase): Promise<Models.ScriptsCreateOrUpdateResponse>;
75
- /**
76
- * Updates a database script.
77
- * @param resourceGroupName The name of the resource group containing the Kusto cluster.
78
- * @param clusterName The name of the Kusto cluster.
79
- * @param databaseName The name of the database in the Kusto cluster.
80
- * @param scriptName The name of the Kusto database script.
81
- * @param parameters The Kusto Script parameters contains to the KQL to run.
82
- * @param [options] The optional parameters
83
- * @returns Promise<Models.ScriptsUpdateResponse>
84
- */
85
- update(resourceGroupName: string, clusterName: string, databaseName: string, scriptName: string, parameters: Models.Script, options?: msRest.RequestOptionsBase): Promise<Models.ScriptsUpdateResponse>;
86
- /**
87
- * Deletes a Kusto principalAssignment.
88
- * @param resourceGroupName The name of the resource group containing the Kusto cluster.
89
- * @param clusterName The name of the Kusto cluster.
90
- * @param databaseName The name of the database in the Kusto cluster.
91
- * @param scriptName The name of the Kusto database script.
92
- * @param [options] The optional parameters
93
- * @returns Promise<msRest.RestResponse>
94
- */
95
- deleteMethod(resourceGroupName: string, clusterName: string, databaseName: string, scriptName: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>;
96
- /**
97
- * Checks that the script name is valid and is not already in use.
98
- * @param resourceGroupName The name of the resource group containing the Kusto cluster.
99
- * @param clusterName The name of the Kusto cluster.
100
- * @param databaseName The name of the database in the Kusto cluster.
101
- * @param scriptName The name of the script.
102
- * @param [options] The optional parameters
103
- * @returns Promise<Models.ScriptsCheckNameAvailabilityResponse>
104
- */
105
- checkNameAvailability(resourceGroupName: string, clusterName: string, databaseName: string, scriptName: Models.ScriptCheckNameRequest, options?: msRest.RequestOptionsBase): Promise<Models.ScriptsCheckNameAvailabilityResponse>;
106
- /**
107
- * @param resourceGroupName The name of the resource group containing the Kusto cluster.
108
- * @param clusterName The name of the Kusto cluster.
109
- * @param databaseName The name of the database in the Kusto cluster.
110
- * @param scriptName The name of the script.
111
- * @param callback The callback
112
- */
113
- checkNameAvailability(resourceGroupName: string, clusterName: string, databaseName: string, scriptName: Models.ScriptCheckNameRequest, callback: msRest.ServiceCallback<Models.CheckNameResult>): void;
114
- /**
115
- * @param resourceGroupName The name of the resource group containing the Kusto cluster.
116
- * @param clusterName The name of the Kusto cluster.
117
- * @param databaseName The name of the database in the Kusto cluster.
118
- * @param scriptName The name of the script.
119
- * @param options The optional parameters
120
- * @param callback The callback
121
- */
122
- checkNameAvailability(resourceGroupName: string, clusterName: string, databaseName: string, scriptName: Models.ScriptCheckNameRequest, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.CheckNameResult>): void;
123
- /**
124
- * Creates a Kusto database script.
125
- * @param resourceGroupName The name of the resource group containing the Kusto cluster.
126
- * @param clusterName The name of the Kusto cluster.
127
- * @param databaseName The name of the database in the Kusto cluster.
128
- * @param scriptName The name of the Kusto database script.
129
- * @param parameters The Kusto Script parameters contains the KQL to run.
130
- * @param [options] The optional parameters
131
- * @returns Promise<msRestAzure.LROPoller>
132
- */
133
- beginCreateOrUpdate(resourceGroupName: string, clusterName: string, databaseName: string, scriptName: string, parameters: Models.Script, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller>;
134
- /**
135
- * Updates a database script.
136
- * @param resourceGroupName The name of the resource group containing the Kusto cluster.
137
- * @param clusterName The name of the Kusto cluster.
138
- * @param databaseName The name of the database in the Kusto cluster.
139
- * @param scriptName The name of the Kusto database script.
140
- * @param parameters The Kusto Script parameters contains to the KQL to run.
141
- * @param [options] The optional parameters
142
- * @returns Promise<msRestAzure.LROPoller>
143
- */
144
- beginUpdate(resourceGroupName: string, clusterName: string, databaseName: string, scriptName: string, parameters: Models.Script, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller>;
145
- /**
146
- * Deletes a Kusto principalAssignment.
147
- * @param resourceGroupName The name of the resource group containing the Kusto cluster.
148
- * @param clusterName The name of the Kusto cluster.
149
- * @param databaseName The name of the database in the Kusto cluster.
150
- * @param scriptName The name of the Kusto database script.
151
- * @param [options] The optional parameters
152
- * @returns Promise<msRestAzure.LROPoller>
153
- */
154
- beginDeleteMethod(resourceGroupName: string, clusterName: string, databaseName: string, scriptName: string, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller>;
155
- }
156
- //# sourceMappingURL=scripts.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"scripts.d.ts","sourceRoot":"","sources":["../../src/operations/scripts.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,WAAW,MAAM,yBAAyB,CAAC;AACvD,OAAO,KAAK,MAAM,MAAM,WAAW,CAAC;AAGpC,OAAO,EAAE,4BAA4B,EAAE,MAAM,iCAAiC,CAAC;AAE/E,oCAAoC;AACpC,qBAAa,OAAO;IAClB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA+B;IAEtD;;;OAGG;gBACS,MAAM,EAAE,4BAA4B;IAIhD;;;;;;;OAOG;IACH,cAAc,CACZ,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,MAAM,CAAC,kBAAkB,GAClC,OAAO,CAAC,MAAM,CAAC,6BAA6B,CAAC;IAChD;;;;;OAKG;IACH,cAAc,CACZ,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,YAAY,EAAE,MAAM,EACpB,QAAQ,EAAE,MAAM,CAAC,eAAe,CAAC,MAAM,CAAC,gBAAgB,CAAC,GACxD,IAAI;IACP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AAE,MAAM,EAClB,UAAU,EAAE,MAAM,CAAC,MAAM,EACzB,OAAO,CAAC,EAAE,MAAM,CAAC,kBAAkB,GAClC,OAAO,CAAC,WAAW,CAAC,SAAS,CAAC;IAejC;;;;;;;;;OASG;IACH,WAAW,CACT,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,YAAY,EAAE,MAAM,EACpB,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM,CAAC,MAAM,EACzB,OAAO,CAAC,EAAE,MAAM,CAAC,kBAAkB,GAClC,OAAO,CAAC,WAAW,CAAC,SAAS,CAAC;IAejC;;;;;;;;OAQG;IACH,iBAAiB,CACf,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,YAAY,EAAE,MAAM,EACpB,UAAU,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE,MAAM,CAAC,kBAAkB,GAClC,OAAO,CAAC,WAAW,CAAC,SAAS,CAAC;CAalC"}
@@ -1,300 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- *
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.
8
- */
9
- import { __assign } from "tslib";
10
- import * as msRest from "@azure/ms-rest-js";
11
- import * as Mappers from "../models/scriptsMappers";
12
- import * as Parameters from "../models/parameters";
13
- /** Class representing a Scripts. */
14
- var Scripts = /** @class */ (function () {
15
- /**
16
- * Create a Scripts.
17
- * @param {KustoManagementClientContext} client Reference to the service client.
18
- */
19
- function Scripts(client) {
20
- this.client = client;
21
- }
22
- Scripts.prototype.listByDatabase = function (resourceGroupName, clusterName, databaseName, options, callback) {
23
- return this.client.sendOperationRequest({
24
- resourceGroupName: resourceGroupName,
25
- clusterName: clusterName,
26
- databaseName: databaseName,
27
- options: options
28
- }, listByDatabaseOperationSpec, callback);
29
- };
30
- Scripts.prototype.get = function (resourceGroupName, clusterName, databaseName, scriptName, options, callback) {
31
- return this.client.sendOperationRequest({
32
- resourceGroupName: resourceGroupName,
33
- clusterName: clusterName,
34
- databaseName: databaseName,
35
- scriptName: scriptName,
36
- options: options
37
- }, getOperationSpec, callback);
38
- };
39
- /**
40
- * Creates a Kusto database script.
41
- * @param resourceGroupName The name of the resource group containing the Kusto cluster.
42
- * @param clusterName The name of the Kusto cluster.
43
- * @param databaseName The name of the database in the Kusto cluster.
44
- * @param scriptName The name of the Kusto database script.
45
- * @param parameters The Kusto Script parameters contains the KQL to run.
46
- * @param [options] The optional parameters
47
- * @returns Promise<Models.ScriptsCreateOrUpdateResponse>
48
- */
49
- Scripts.prototype.createOrUpdate = function (resourceGroupName, clusterName, databaseName, scriptName, parameters, options) {
50
- return this.beginCreateOrUpdate(resourceGroupName, clusterName, databaseName, scriptName, parameters, options).then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
51
- };
52
- /**
53
- * Updates a database script.
54
- * @param resourceGroupName The name of the resource group containing the Kusto cluster.
55
- * @param clusterName The name of the Kusto cluster.
56
- * @param databaseName The name of the database in the Kusto cluster.
57
- * @param scriptName The name of the Kusto database script.
58
- * @param parameters The Kusto Script parameters contains to the KQL to run.
59
- * @param [options] The optional parameters
60
- * @returns Promise<Models.ScriptsUpdateResponse>
61
- */
62
- Scripts.prototype.update = function (resourceGroupName, clusterName, databaseName, scriptName, parameters, options) {
63
- return this.beginUpdate(resourceGroupName, clusterName, databaseName, scriptName, parameters, options).then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
64
- };
65
- /**
66
- * Deletes a Kusto principalAssignment.
67
- * @param resourceGroupName The name of the resource group containing the Kusto cluster.
68
- * @param clusterName The name of the Kusto cluster.
69
- * @param databaseName The name of the database in the Kusto cluster.
70
- * @param scriptName The name of the Kusto database script.
71
- * @param [options] The optional parameters
72
- * @returns Promise<msRest.RestResponse>
73
- */
74
- Scripts.prototype.deleteMethod = function (resourceGroupName, clusterName, databaseName, scriptName, options) {
75
- return this.beginDeleteMethod(resourceGroupName, clusterName, databaseName, scriptName, options).then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
76
- };
77
- Scripts.prototype.checkNameAvailability = function (resourceGroupName, clusterName, databaseName, scriptName, options, callback) {
78
- return this.client.sendOperationRequest({
79
- resourceGroupName: resourceGroupName,
80
- clusterName: clusterName,
81
- databaseName: databaseName,
82
- scriptName: scriptName,
83
- options: options
84
- }, checkNameAvailabilityOperationSpec, callback);
85
- };
86
- /**
87
- * Creates a Kusto database script.
88
- * @param resourceGroupName The name of the resource group containing the Kusto cluster.
89
- * @param clusterName The name of the Kusto cluster.
90
- * @param databaseName The name of the database in the Kusto cluster.
91
- * @param scriptName The name of the Kusto database script.
92
- * @param parameters The Kusto Script parameters contains the KQL to run.
93
- * @param [options] The optional parameters
94
- * @returns Promise<msRestAzure.LROPoller>
95
- */
96
- Scripts.prototype.beginCreateOrUpdate = function (resourceGroupName, clusterName, databaseName, scriptName, parameters, options) {
97
- return this.client.sendLRORequest({
98
- resourceGroupName: resourceGroupName,
99
- clusterName: clusterName,
100
- databaseName: databaseName,
101
- scriptName: scriptName,
102
- parameters: parameters,
103
- options: options
104
- }, beginCreateOrUpdateOperationSpec, options);
105
- };
106
- /**
107
- * Updates a database script.
108
- * @param resourceGroupName The name of the resource group containing the Kusto cluster.
109
- * @param clusterName The name of the Kusto cluster.
110
- * @param databaseName The name of the database in the Kusto cluster.
111
- * @param scriptName The name of the Kusto database script.
112
- * @param parameters The Kusto Script parameters contains to the KQL to run.
113
- * @param [options] The optional parameters
114
- * @returns Promise<msRestAzure.LROPoller>
115
- */
116
- Scripts.prototype.beginUpdate = function (resourceGroupName, clusterName, databaseName, scriptName, parameters, options) {
117
- return this.client.sendLRORequest({
118
- resourceGroupName: resourceGroupName,
119
- clusterName: clusterName,
120
- databaseName: databaseName,
121
- scriptName: scriptName,
122
- parameters: parameters,
123
- options: options
124
- }, beginUpdateOperationSpec, options);
125
- };
126
- /**
127
- * Deletes a Kusto principalAssignment.
128
- * @param resourceGroupName The name of the resource group containing the Kusto cluster.
129
- * @param clusterName The name of the Kusto cluster.
130
- * @param databaseName The name of the database in the Kusto cluster.
131
- * @param scriptName The name of the Kusto database script.
132
- * @param [options] The optional parameters
133
- * @returns Promise<msRestAzure.LROPoller>
134
- */
135
- Scripts.prototype.beginDeleteMethod = function (resourceGroupName, clusterName, databaseName, scriptName, options) {
136
- return this.client.sendLRORequest({
137
- resourceGroupName: resourceGroupName,
138
- clusterName: clusterName,
139
- databaseName: databaseName,
140
- scriptName: scriptName,
141
- options: options
142
- }, beginDeleteMethodOperationSpec, options);
143
- };
144
- return Scripts;
145
- }());
146
- export { Scripts };
147
- // Operation Specifications
148
- var serializer = new msRest.Serializer(Mappers);
149
- var listByDatabaseOperationSpec = {
150
- httpMethod: "GET",
151
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/scripts",
152
- urlParameters: [
153
- Parameters.subscriptionId,
154
- Parameters.resourceGroupName,
155
- Parameters.clusterName,
156
- Parameters.databaseName
157
- ],
158
- queryParameters: [Parameters.apiVersion],
159
- headerParameters: [Parameters.acceptLanguage],
160
- responses: {
161
- 200: {
162
- bodyMapper: Mappers.ScriptListResult
163
- },
164
- default: {
165
- bodyMapper: Mappers.CloudError
166
- }
167
- },
168
- serializer: serializer
169
- };
170
- var getOperationSpec = {
171
- httpMethod: "GET",
172
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/scripts/{scriptName}",
173
- urlParameters: [
174
- Parameters.subscriptionId,
175
- Parameters.resourceGroupName,
176
- Parameters.clusterName,
177
- Parameters.databaseName,
178
- Parameters.scriptName
179
- ],
180
- queryParameters: [Parameters.apiVersion],
181
- headerParameters: [Parameters.acceptLanguage],
182
- responses: {
183
- 200: {
184
- bodyMapper: Mappers.Script
185
- },
186
- default: {
187
- bodyMapper: Mappers.CloudError
188
- }
189
- },
190
- serializer: serializer
191
- };
192
- var checkNameAvailabilityOperationSpec = {
193
- httpMethod: "POST",
194
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/scriptsCheckNameAvailability",
195
- urlParameters: [
196
- Parameters.resourceGroupName,
197
- Parameters.clusterName,
198
- Parameters.databaseName,
199
- Parameters.subscriptionId
200
- ],
201
- queryParameters: [Parameters.apiVersion],
202
- headerParameters: [Parameters.acceptLanguage],
203
- requestBody: {
204
- parameterPath: "scriptName",
205
- mapper: __assign(__assign({}, Mappers.ScriptCheckNameRequest), { required: true })
206
- },
207
- responses: {
208
- 200: {
209
- bodyMapper: Mappers.CheckNameResult
210
- },
211
- default: {
212
- bodyMapper: Mappers.CloudError
213
- }
214
- },
215
- serializer: serializer
216
- };
217
- var beginCreateOrUpdateOperationSpec = {
218
- httpMethod: "PUT",
219
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/scripts/{scriptName}",
220
- urlParameters: [
221
- Parameters.subscriptionId,
222
- Parameters.resourceGroupName,
223
- Parameters.clusterName,
224
- Parameters.databaseName,
225
- Parameters.scriptName
226
- ],
227
- queryParameters: [Parameters.apiVersion],
228
- headerParameters: [Parameters.acceptLanguage],
229
- requestBody: {
230
- parameterPath: "parameters",
231
- mapper: __assign(__assign({}, Mappers.Script), { required: true })
232
- },
233
- responses: {
234
- 200: {
235
- bodyMapper: Mappers.Script
236
- },
237
- 201: {
238
- bodyMapper: Mappers.Script
239
- },
240
- 202: {
241
- bodyMapper: Mappers.Script
242
- },
243
- default: {
244
- bodyMapper: Mappers.CloudError
245
- }
246
- },
247
- serializer: serializer
248
- };
249
- var beginUpdateOperationSpec = {
250
- httpMethod: "PATCH",
251
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/scripts/{scriptName}",
252
- urlParameters: [
253
- Parameters.subscriptionId,
254
- Parameters.resourceGroupName,
255
- Parameters.clusterName,
256
- Parameters.databaseName,
257
- Parameters.scriptName
258
- ],
259
- queryParameters: [Parameters.apiVersion],
260
- headerParameters: [Parameters.acceptLanguage],
261
- requestBody: {
262
- parameterPath: "parameters",
263
- mapper: __assign(__assign({}, Mappers.Script), { required: true })
264
- },
265
- responses: {
266
- 200: {
267
- bodyMapper: Mappers.Script
268
- },
269
- 202: {
270
- bodyMapper: Mappers.Script
271
- },
272
- default: {
273
- bodyMapper: Mappers.CloudError
274
- }
275
- },
276
- serializer: serializer
277
- };
278
- var beginDeleteMethodOperationSpec = {
279
- httpMethod: "DELETE",
280
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/scripts/{scriptName}",
281
- urlParameters: [
282
- Parameters.subscriptionId,
283
- Parameters.resourceGroupName,
284
- Parameters.clusterName,
285
- Parameters.databaseName,
286
- Parameters.scriptName
287
- ],
288
- queryParameters: [Parameters.apiVersion],
289
- headerParameters: [Parameters.acceptLanguage],
290
- responses: {
291
- 200: {},
292
- 202: {},
293
- 204: {},
294
- default: {
295
- bodyMapper: Mappers.CloudError
296
- }
297
- },
298
- serializer: serializer
299
- };
300
- //# sourceMappingURL=scripts.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"scripts.js","sourceRoot":"","sources":["../../src/operations/scripts.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;;AAEH,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAC;AAG5C,OAAO,KAAK,OAAO,MAAM,0BAA0B,CAAC;AACpD,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAGnD,oCAAoC;AACpC;IAGE;;;OAGG;IACH,iBAAY,MAAoC;QAC9C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IA0CD,gCAAc,GAAd,UACE,iBAAyB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AAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,UAAU,YAAA;CACX,CAAC"}
@@ -1,75 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- *
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.
8
- */
9
-
10
- import * as Models from "./models";
11
- import * as msRest from "@azure/ms-rest-js";
12
- import { TokenCredential } from "@azure/core-auth";
13
- import * as msRestAzure from "@azure/ms-rest-azure-js";
14
-
15
- const packageName = "@azure/arm-kusto";
16
- const packageVersion = "6.2.0";
17
-
18
- export class KustoManagementClientContext extends msRestAzure.AzureServiceClient {
19
- credentials: msRest.ServiceClientCredentials | TokenCredential;
20
- subscriptionId: string;
21
- apiVersion?: string;
22
-
23
- /**
24
- * Initializes a new instance of the KustoManagementClient class.
25
- * @param credentials Credentials needed for the client to connect to Azure. Credentials
26
- * implementing the TokenCredential interface from the @azure/identity package are recommended. For
27
- * more information about these credentials, see
28
- * {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the
29
- * ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and
30
- * @azure/ms-rest-browserauth are also supported.
31
- * @param subscriptionId Gets subscription credentials which uniquely identify Microsoft Azure
32
- * subscription. The subscription ID forms part of the URI for every service call.
33
- * @param [options] The parameter options
34
- */
35
- constructor(
36
- credentials: msRest.ServiceClientCredentials | TokenCredential,
37
- subscriptionId: string,
38
- options?: Models.KustoManagementClientOptions
39
- ) {
40
- if (credentials == undefined) {
41
- throw new Error("'credentials' cannot be null.");
42
- }
43
- if (subscriptionId == undefined) {
44
- throw new Error("'subscriptionId' cannot be null.");
45
- }
46
-
47
- if (!options) {
48
- options = {};
49
- }
50
- if (!options.userAgent) {
51
- const defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
52
- options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;
53
- }
54
-
55
- super(credentials, options);
56
-
57
- this.apiVersion = "2021-01-01";
58
- this.acceptLanguage = "en-US";
59
- this.longRunningOperationRetryTimeout = 30;
60
- this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";
61
- this.requestContentType = "application/json; charset=utf-8";
62
- this.credentials = credentials;
63
- this.subscriptionId = subscriptionId;
64
-
65
- if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
66
- this.acceptLanguage = options.acceptLanguage;
67
- }
68
- if (
69
- options.longRunningOperationRetryTimeout !== null &&
70
- options.longRunningOperationRetryTimeout !== undefined
71
- ) {
72
- this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
73
- }
74
- }
75
- }
@@ -1,43 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
8
-
9
- export {
10
- discriminators,
11
- AttachedDatabaseConfiguration,
12
- AttachedDatabaseConfigurationListResult,
13
- AzureEntityResource,
14
- AzureSku,
15
- BaseResource,
16
- CloudError,
17
- Cluster,
18
- ClusterPrincipalAssignment,
19
- ClusterUpdate,
20
- Database,
21
- DatabasePrincipalAssignment,
22
- DatabaseStatistics,
23
- DataConnection,
24
- EventGridDataConnection,
25
- EventHubDataConnection,
26
- Identity,
27
- IdentityUserAssignedIdentitiesValue,
28
- IotHubDataConnection,
29
- KeyVaultProperties,
30
- LanguageExtension,
31
- LanguageExtensionsList,
32
- OptimizedAutoscale,
33
- ProxyResource,
34
- ReadOnlyFollowingDatabase,
35
- ReadWriteDatabase,
36
- Resource,
37
- Script,
38
- SystemData,
39
- TableLevelSharingProperties,
40
- TrackedResource,
41
- TrustedExternalTenant,
42
- VirtualNetworkConfiguration
43
- } from "../models/mappers";
@@ -1,45 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
8
-
9
- export {
10
- discriminators,
11
- AttachedDatabaseConfiguration,
12
- AzureEntityResource,
13
- AzureSku,
14
- BaseResource,
15
- CheckNameResult,
16
- CloudError,
17
- Cluster,
18
- ClusterPrincipalAssignment,
19
- ClusterPrincipalAssignmentCheckNameRequest,
20
- ClusterPrincipalAssignmentListResult,
21
- ClusterUpdate,
22
- Database,
23
- DatabasePrincipalAssignment,
24
- DatabaseStatistics,
25
- DataConnection,
26
- EventGridDataConnection,
27
- EventHubDataConnection,
28
- Identity,
29
- IdentityUserAssignedIdentitiesValue,
30
- IotHubDataConnection,
31
- KeyVaultProperties,
32
- LanguageExtension,
33
- LanguageExtensionsList,
34
- OptimizedAutoscale,
35
- ProxyResource,
36
- ReadOnlyFollowingDatabase,
37
- ReadWriteDatabase,
38
- Resource,
39
- Script,
40
- SystemData,
41
- TableLevelSharingProperties,
42
- TrackedResource,
43
- TrustedExternalTenant,
44
- VirtualNetworkConfiguration
45
- } from "../models/mappers";