@azure/arm-databricks 3.0.1-alpha.20241230.1 → 3.0.1-alpha.20250109.1

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 (545) hide show
  1. package/{dist-esm/src → dist/browser}/azureDatabricksManagementClient.d.ts +2 -2
  2. package/dist/browser/azureDatabricksManagementClient.d.ts.map +1 -0
  3. package/{dist-esm/src → dist/browser}/azureDatabricksManagementClient.js +1 -1
  4. package/dist/browser/azureDatabricksManagementClient.js.map +1 -0
  5. package/dist/browser/index.d.ts +5 -0
  6. package/{dist-esm/src → dist/browser}/index.d.ts.map +1 -1
  7. package/{dist-esm/src → dist/browser}/index.js +4 -4
  8. package/dist/browser/index.js.map +1 -0
  9. package/dist/browser/lroImpl.js.map +1 -0
  10. package/dist/browser/models/index.js.map +1 -0
  11. package/dist/browser/models/mappers.js.map +1 -0
  12. package/{dist-esm/src → dist/browser}/models/parameters.js +1 -1
  13. package/dist/browser/models/parameters.js.map +1 -0
  14. package/{dist-esm/src → dist/browser}/operations/accessConnectors.d.ts +3 -3
  15. package/dist/browser/operations/accessConnectors.d.ts.map +1 -0
  16. package/{dist-esm/src → dist/browser}/operations/accessConnectors.js +113 -125
  17. package/dist/browser/operations/accessConnectors.js.map +1 -0
  18. package/dist/browser/operations/index.d.ts +8 -0
  19. package/dist/browser/operations/index.d.ts.map +1 -0
  20. package/dist/browser/operations/index.js +15 -0
  21. package/dist/browser/operations/index.js.map +1 -0
  22. package/{dist-esm/src → dist/browser}/operations/operations.d.ts +3 -3
  23. package/dist/browser/operations/operations.d.ts.map +1 -0
  24. package/{dist-esm/src → dist/browser}/operations/operations.js +3 -3
  25. package/dist/browser/operations/operations.js.map +1 -0
  26. package/{dist-esm/src → dist/browser}/operations/outboundNetworkDependenciesEndpoints.d.ts +3 -3
  27. package/dist/browser/operations/outboundNetworkDependenciesEndpoints.d.ts.map +1 -0
  28. package/{dist-esm/src → dist/browser}/operations/outboundNetworkDependenciesEndpoints.js +2 -2
  29. package/dist/browser/operations/outboundNetworkDependenciesEndpoints.js.map +1 -0
  30. package/{dist-esm/src → dist/browser}/operations/privateEndpointConnections.d.ts +3 -3
  31. package/dist/browser/operations/privateEndpointConnections.d.ts.map +1 -0
  32. package/{dist-esm/src → dist/browser}/operations/privateEndpointConnections.js +88 -96
  33. package/dist/browser/operations/privateEndpointConnections.js.map +1 -0
  34. package/{dist-esm/src → dist/browser}/operations/privateLinkResources.d.ts +3 -3
  35. package/dist/browser/operations/privateLinkResources.d.ts.map +1 -0
  36. package/{dist-esm/src → dist/browser}/operations/privateLinkResources.js +3 -3
  37. package/dist/browser/operations/privateLinkResources.js.map +1 -0
  38. package/{dist-esm/src → dist/browser}/operations/vNetPeering.d.ts +3 -3
  39. package/dist/browser/operations/vNetPeering.d.ts.map +1 -0
  40. package/{dist-esm/src → dist/browser}/operations/vNetPeering.js +83 -91
  41. package/dist/browser/operations/vNetPeering.js.map +1 -0
  42. package/{dist-esm/src → dist/browser}/operations/workspaces.d.ts +3 -3
  43. package/dist/browser/operations/workspaces.d.ts.map +1 -0
  44. package/{dist-esm/src → dist/browser}/operations/workspaces.js +113 -125
  45. package/dist/browser/operations/workspaces.js.map +1 -0
  46. package/{dist-esm/src → dist/browser}/operationsInterfaces/accessConnectors.d.ts +1 -1
  47. package/dist/browser/operationsInterfaces/accessConnectors.d.ts.map +1 -0
  48. package/dist/browser/operationsInterfaces/accessConnectors.js.map +1 -0
  49. package/dist/browser/operationsInterfaces/index.d.ts +8 -0
  50. package/dist/browser/operationsInterfaces/index.d.ts.map +1 -0
  51. package/dist/browser/operationsInterfaces/index.js +15 -0
  52. package/dist/browser/operationsInterfaces/index.js.map +1 -0
  53. package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts +1 -1
  54. package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts.map +1 -1
  55. package/dist/browser/operationsInterfaces/operations.js.map +1 -0
  56. package/{dist-esm/src → dist/browser}/operationsInterfaces/outboundNetworkDependenciesEndpoints.d.ts +1 -1
  57. package/dist/browser/operationsInterfaces/outboundNetworkDependenciesEndpoints.d.ts.map +1 -0
  58. package/dist/browser/operationsInterfaces/outboundNetworkDependenciesEndpoints.js.map +1 -0
  59. package/{dist-esm/src → dist/browser}/operationsInterfaces/privateEndpointConnections.d.ts +1 -1
  60. package/dist/browser/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  61. package/dist/browser/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  62. package/{dist-esm/src → dist/browser}/operationsInterfaces/privateLinkResources.d.ts +1 -1
  63. package/dist/browser/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
  64. package/dist/browser/operationsInterfaces/privateLinkResources.js.map +1 -0
  65. package/{dist-esm/src → dist/browser}/operationsInterfaces/vNetPeering.d.ts +1 -1
  66. package/dist/browser/operationsInterfaces/vNetPeering.d.ts.map +1 -0
  67. package/dist/browser/operationsInterfaces/vNetPeering.js.map +1 -0
  68. package/{dist-esm/src → dist/browser}/operationsInterfaces/workspaces.d.ts +1 -1
  69. package/dist/browser/operationsInterfaces/workspaces.d.ts.map +1 -0
  70. package/dist/browser/operationsInterfaces/workspaces.js.map +1 -0
  71. package/dist/browser/package.json +3 -0
  72. package/dist/browser/pagingHelper.js.map +1 -0
  73. package/dist/commonjs/azureDatabricksManagementClient.d.ts +23 -0
  74. package/dist/commonjs/azureDatabricksManagementClient.d.ts.map +1 -0
  75. package/dist/commonjs/azureDatabricksManagementClient.js +81 -0
  76. package/dist/commonjs/azureDatabricksManagementClient.js.map +1 -0
  77. package/dist/commonjs/index.d.ts +5 -0
  78. package/dist/commonjs/index.d.ts.map +1 -0
  79. package/dist/commonjs/index.js +19 -0
  80. package/dist/commonjs/index.js.map +1 -0
  81. package/dist/commonjs/lroImpl.d.ts +11 -0
  82. package/dist/commonjs/lroImpl.d.ts.map +1 -0
  83. package/dist/commonjs/lroImpl.js +24 -0
  84. package/dist/commonjs/lroImpl.js.map +1 -0
  85. package/{types/arm-databricks.d.ts → dist/commonjs/models/index.d.ts} +1049 -1500
  86. package/dist/commonjs/models/index.d.ts.map +1 -0
  87. package/dist/commonjs/models/index.js +151 -0
  88. package/dist/commonjs/models/index.js.map +1 -0
  89. package/dist/commonjs/models/mappers.d.ts +52 -0
  90. package/dist/commonjs/models/mappers.d.ts.map +1 -0
  91. package/dist/commonjs/models/mappers.js +1542 -0
  92. package/dist/commonjs/models/mappers.js.map +1 -0
  93. package/dist/commonjs/models/parameters.d.ts +21 -0
  94. package/dist/commonjs/models/parameters.d.ts.map +1 -0
  95. package/dist/commonjs/models/parameters.js +185 -0
  96. package/dist/commonjs/models/parameters.js.map +1 -0
  97. package/dist/commonjs/operations/accessConnectors.d.ts +107 -0
  98. package/dist/commonjs/operations/accessConnectors.d.ts.map +1 -0
  99. package/dist/commonjs/operations/accessConnectors.js +535 -0
  100. package/dist/commonjs/operations/accessConnectors.js.map +1 -0
  101. package/dist/commonjs/operations/index.d.ts +8 -0
  102. package/dist/commonjs/operations/index.d.ts.map +1 -0
  103. package/dist/commonjs/operations/index.js +18 -0
  104. package/dist/commonjs/operations/index.js.map +1 -0
  105. package/dist/commonjs/operations/operations.d.ts +32 -0
  106. package/dist/commonjs/operations/operations.d.ts.map +1 -0
  107. package/dist/commonjs/operations/operations.js +137 -0
  108. package/dist/commonjs/operations/operations.js.map +1 -0
  109. package/dist/commonjs/operations/outboundNetworkDependenciesEndpoints.d.ts +22 -0
  110. package/dist/commonjs/operations/outboundNetworkDependenciesEndpoints.d.ts.map +1 -0
  111. package/dist/commonjs/operations/outboundNetworkDependenciesEndpoints.js +70 -0
  112. package/dist/commonjs/operations/outboundNetworkDependenciesEndpoints.js.map +1 -0
  113. package/dist/commonjs/operations/privateEndpointConnections.d.ts +81 -0
  114. package/dist/commonjs/operations/privateEndpointConnections.d.ts.map +1 -0
  115. package/dist/commonjs/operations/privateEndpointConnections.js +368 -0
  116. package/dist/commonjs/operations/privateEndpointConnections.js.map +1 -0
  117. package/dist/commonjs/operations/privateLinkResources.d.ts +46 -0
  118. package/dist/commonjs/operations/privateLinkResources.d.ts.map +1 -0
  119. package/dist/commonjs/operations/privateLinkResources.js +186 -0
  120. package/dist/commonjs/operations/privateLinkResources.js.map +1 -0
  121. package/dist/commonjs/operations/vNetPeering.d.ts +81 -0
  122. package/dist/commonjs/operations/vNetPeering.d.ts.map +1 -0
  123. package/dist/commonjs/operations/vNetPeering.js +359 -0
  124. package/dist/commonjs/operations/vNetPeering.js.map +1 -0
  125. package/dist/commonjs/operations/workspaces.d.ts +107 -0
  126. package/dist/commonjs/operations/workspaces.d.ts.map +1 -0
  127. package/dist/commonjs/operations/workspaces.js +535 -0
  128. package/dist/commonjs/operations/workspaces.js.map +1 -0
  129. package/dist/commonjs/operationsInterfaces/accessConnectors.d.ts +71 -0
  130. package/dist/commonjs/operationsInterfaces/accessConnectors.d.ts.map +1 -0
  131. package/dist/commonjs/operationsInterfaces/accessConnectors.js +10 -0
  132. package/dist/commonjs/operationsInterfaces/accessConnectors.js.map +1 -0
  133. package/dist/commonjs/operationsInterfaces/index.d.ts +8 -0
  134. package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
  135. package/dist/commonjs/operationsInterfaces/index.js +18 -0
  136. package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
  137. package/dist/commonjs/operationsInterfaces/operations.d.ts +11 -0
  138. package/dist/commonjs/operationsInterfaces/operations.d.ts.map +1 -0
  139. package/dist/commonjs/operationsInterfaces/operations.js +10 -0
  140. package/dist/commonjs/operationsInterfaces/operations.js.map +1 -0
  141. package/dist/commonjs/operationsInterfaces/outboundNetworkDependenciesEndpoints.d.ts +14 -0
  142. package/dist/commonjs/operationsInterfaces/outboundNetworkDependenciesEndpoints.d.ts.map +1 -0
  143. package/dist/commonjs/operationsInterfaces/outboundNetworkDependenciesEndpoints.js +10 -0
  144. package/dist/commonjs/operationsInterfaces/outboundNetworkDependenciesEndpoints.js.map +1 -0
  145. package/dist/commonjs/operationsInterfaces/privateEndpointConnections.d.ts +56 -0
  146. package/dist/commonjs/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  147. package/dist/commonjs/operationsInterfaces/privateEndpointConnections.js +10 -0
  148. package/dist/commonjs/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  149. package/dist/commonjs/operationsInterfaces/privateLinkResources.d.ts +21 -0
  150. package/dist/commonjs/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
  151. package/dist/commonjs/operationsInterfaces/privateLinkResources.js +10 -0
  152. package/dist/commonjs/operationsInterfaces/privateLinkResources.js.map +1 -0
  153. package/dist/commonjs/operationsInterfaces/vNetPeering.d.ts +56 -0
  154. package/dist/commonjs/operationsInterfaces/vNetPeering.d.ts.map +1 -0
  155. package/dist/commonjs/operationsInterfaces/vNetPeering.js +10 -0
  156. package/dist/commonjs/operationsInterfaces/vNetPeering.js.map +1 -0
  157. package/dist/commonjs/operationsInterfaces/workspaces.d.ts +71 -0
  158. package/dist/commonjs/operationsInterfaces/workspaces.d.ts.map +1 -0
  159. package/dist/commonjs/operationsInterfaces/workspaces.js +10 -0
  160. package/dist/commonjs/operationsInterfaces/workspaces.js.map +1 -0
  161. package/dist/commonjs/package.json +3 -0
  162. package/dist/commonjs/pagingHelper.d.ts +13 -0
  163. package/dist/commonjs/pagingHelper.d.ts.map +1 -0
  164. package/dist/commonjs/pagingHelper.js +36 -0
  165. package/dist/commonjs/pagingHelper.js.map +1 -0
  166. package/dist/esm/azureDatabricksManagementClient.d.ts +23 -0
  167. package/dist/esm/azureDatabricksManagementClient.d.ts.map +1 -0
  168. package/dist/esm/azureDatabricksManagementClient.js +76 -0
  169. package/dist/esm/azureDatabricksManagementClient.js.map +1 -0
  170. package/dist/esm/index.d.ts +5 -0
  171. package/dist/esm/index.d.ts.map +1 -0
  172. package/{src/index.ts → dist/esm/index.js} +5 -5
  173. package/dist/esm/index.js.map +1 -0
  174. package/dist/esm/lroImpl.d.ts +11 -0
  175. package/dist/esm/lroImpl.d.ts.map +1 -0
  176. package/dist/esm/lroImpl.js +21 -0
  177. package/dist/esm/lroImpl.js.map +1 -0
  178. package/dist/esm/models/index.d.ts +1049 -0
  179. package/dist/esm/models/index.d.ts.map +1 -0
  180. package/dist/esm/models/index.js +148 -0
  181. package/dist/esm/models/index.js.map +1 -0
  182. package/dist/esm/models/mappers.d.ts +52 -0
  183. package/dist/esm/models/mappers.d.ts.map +1 -0
  184. package/dist/esm/models/mappers.js +1539 -0
  185. package/dist/esm/models/mappers.js.map +1 -0
  186. package/dist/esm/models/parameters.d.ts +21 -0
  187. package/dist/esm/models/parameters.d.ts.map +1 -0
  188. package/dist/esm/models/parameters.js +182 -0
  189. package/dist/esm/models/parameters.js.map +1 -0
  190. package/dist/esm/operations/accessConnectors.d.ts +107 -0
  191. package/dist/esm/operations/accessConnectors.d.ts.map +1 -0
  192. package/dist/esm/operations/accessConnectors.js +531 -0
  193. package/dist/esm/operations/accessConnectors.js.map +1 -0
  194. package/dist/esm/operations/index.d.ts +8 -0
  195. package/dist/esm/operations/index.d.ts.map +1 -0
  196. package/dist/esm/operations/index.js +15 -0
  197. package/dist/esm/operations/index.js.map +1 -0
  198. package/dist/esm/operations/operations.d.ts +32 -0
  199. package/dist/esm/operations/operations.d.ts.map +1 -0
  200. package/dist/esm/operations/operations.js +133 -0
  201. package/dist/esm/operations/operations.js.map +1 -0
  202. package/dist/esm/operations/outboundNetworkDependenciesEndpoints.d.ts +22 -0
  203. package/dist/esm/operations/outboundNetworkDependenciesEndpoints.d.ts.map +1 -0
  204. package/dist/esm/operations/outboundNetworkDependenciesEndpoints.js +65 -0
  205. package/dist/esm/operations/outboundNetworkDependenciesEndpoints.js.map +1 -0
  206. package/dist/esm/operations/privateEndpointConnections.d.ts +81 -0
  207. package/dist/esm/operations/privateEndpointConnections.d.ts.map +1 -0
  208. package/dist/esm/operations/privateEndpointConnections.js +364 -0
  209. package/dist/esm/operations/privateEndpointConnections.js.map +1 -0
  210. package/dist/esm/operations/privateLinkResources.d.ts +46 -0
  211. package/dist/esm/operations/privateLinkResources.d.ts.map +1 -0
  212. package/dist/esm/operations/privateLinkResources.js +182 -0
  213. package/dist/esm/operations/privateLinkResources.js.map +1 -0
  214. package/dist/esm/operations/vNetPeering.d.ts +81 -0
  215. package/dist/esm/operations/vNetPeering.d.ts.map +1 -0
  216. package/dist/esm/operations/vNetPeering.js +355 -0
  217. package/dist/esm/operations/vNetPeering.js.map +1 -0
  218. package/dist/esm/operations/workspaces.d.ts +107 -0
  219. package/dist/esm/operations/workspaces.d.ts.map +1 -0
  220. package/dist/esm/operations/workspaces.js +531 -0
  221. package/dist/esm/operations/workspaces.js.map +1 -0
  222. package/dist/esm/operationsInterfaces/accessConnectors.d.ts +71 -0
  223. package/dist/esm/operationsInterfaces/accessConnectors.d.ts.map +1 -0
  224. package/dist/esm/operationsInterfaces/accessConnectors.js +9 -0
  225. package/dist/esm/operationsInterfaces/accessConnectors.js.map +1 -0
  226. package/dist/esm/operationsInterfaces/index.d.ts +8 -0
  227. package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
  228. package/dist/esm/operationsInterfaces/index.js +15 -0
  229. package/dist/esm/operationsInterfaces/index.js.map +1 -0
  230. package/dist/esm/operationsInterfaces/operations.d.ts +11 -0
  231. package/dist/esm/operationsInterfaces/operations.d.ts.map +1 -0
  232. package/dist/esm/operationsInterfaces/operations.js +9 -0
  233. package/dist/esm/operationsInterfaces/operations.js.map +1 -0
  234. package/dist/esm/operationsInterfaces/outboundNetworkDependenciesEndpoints.d.ts +14 -0
  235. package/dist/esm/operationsInterfaces/outboundNetworkDependenciesEndpoints.d.ts.map +1 -0
  236. package/dist/esm/operationsInterfaces/outboundNetworkDependenciesEndpoints.js +9 -0
  237. package/dist/esm/operationsInterfaces/outboundNetworkDependenciesEndpoints.js.map +1 -0
  238. package/dist/esm/operationsInterfaces/privateEndpointConnections.d.ts +56 -0
  239. package/dist/esm/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  240. package/dist/esm/operationsInterfaces/privateEndpointConnections.js +9 -0
  241. package/dist/esm/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  242. package/dist/esm/operationsInterfaces/privateLinkResources.d.ts +21 -0
  243. package/dist/esm/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
  244. package/dist/esm/operationsInterfaces/privateLinkResources.js +9 -0
  245. package/dist/esm/operationsInterfaces/privateLinkResources.js.map +1 -0
  246. package/dist/esm/operationsInterfaces/vNetPeering.d.ts +56 -0
  247. package/dist/esm/operationsInterfaces/vNetPeering.d.ts.map +1 -0
  248. package/dist/esm/operationsInterfaces/vNetPeering.js +9 -0
  249. package/dist/esm/operationsInterfaces/vNetPeering.js.map +1 -0
  250. package/dist/esm/operationsInterfaces/workspaces.d.ts +71 -0
  251. package/dist/esm/operationsInterfaces/workspaces.d.ts.map +1 -0
  252. package/dist/esm/operationsInterfaces/workspaces.js +9 -0
  253. package/dist/esm/operationsInterfaces/workspaces.js.map +1 -0
  254. package/dist/esm/package.json +3 -0
  255. package/dist/esm/pagingHelper.d.ts +13 -0
  256. package/dist/esm/pagingHelper.d.ts.map +1 -0
  257. package/dist/esm/pagingHelper.js +32 -0
  258. package/dist/esm/pagingHelper.js.map +1 -0
  259. package/dist/react-native/azureDatabricksManagementClient.d.ts +23 -0
  260. package/dist/react-native/azureDatabricksManagementClient.d.ts.map +1 -0
  261. package/dist/react-native/azureDatabricksManagementClient.js +76 -0
  262. package/dist/react-native/azureDatabricksManagementClient.js.map +1 -0
  263. package/dist/react-native/index.d.ts +5 -0
  264. package/dist/react-native/index.d.ts.map +1 -0
  265. package/dist/react-native/index.js +13 -0
  266. package/dist/react-native/index.js.map +1 -0
  267. package/dist/react-native/lroImpl.d.ts +11 -0
  268. package/dist/react-native/lroImpl.d.ts.map +1 -0
  269. package/dist/react-native/lroImpl.js +21 -0
  270. package/dist/react-native/lroImpl.js.map +1 -0
  271. package/dist/react-native/models/index.d.ts +1049 -0
  272. package/dist/react-native/models/index.d.ts.map +1 -0
  273. package/dist/react-native/models/index.js +148 -0
  274. package/dist/react-native/models/index.js.map +1 -0
  275. package/dist/react-native/models/mappers.d.ts +52 -0
  276. package/dist/react-native/models/mappers.d.ts.map +1 -0
  277. package/dist/react-native/models/mappers.js +1539 -0
  278. package/dist/react-native/models/mappers.js.map +1 -0
  279. package/dist/react-native/models/parameters.d.ts +21 -0
  280. package/dist/react-native/models/parameters.d.ts.map +1 -0
  281. package/dist/react-native/models/parameters.js +182 -0
  282. package/dist/react-native/models/parameters.js.map +1 -0
  283. package/dist/react-native/operations/accessConnectors.d.ts +107 -0
  284. package/dist/react-native/operations/accessConnectors.d.ts.map +1 -0
  285. package/dist/react-native/operations/accessConnectors.js +531 -0
  286. package/dist/react-native/operations/accessConnectors.js.map +1 -0
  287. package/dist/react-native/operations/index.d.ts +8 -0
  288. package/dist/react-native/operations/index.d.ts.map +1 -0
  289. package/dist/react-native/operations/index.js +15 -0
  290. package/dist/react-native/operations/index.js.map +1 -0
  291. package/dist/react-native/operations/operations.d.ts +32 -0
  292. package/dist/react-native/operations/operations.d.ts.map +1 -0
  293. package/dist/react-native/operations/operations.js +133 -0
  294. package/dist/react-native/operations/operations.js.map +1 -0
  295. package/dist/react-native/operations/outboundNetworkDependenciesEndpoints.d.ts +22 -0
  296. package/dist/react-native/operations/outboundNetworkDependenciesEndpoints.d.ts.map +1 -0
  297. package/dist/react-native/operations/outboundNetworkDependenciesEndpoints.js +65 -0
  298. package/dist/react-native/operations/outboundNetworkDependenciesEndpoints.js.map +1 -0
  299. package/dist/react-native/operations/privateEndpointConnections.d.ts +81 -0
  300. package/dist/react-native/operations/privateEndpointConnections.d.ts.map +1 -0
  301. package/dist/react-native/operations/privateEndpointConnections.js +364 -0
  302. package/dist/react-native/operations/privateEndpointConnections.js.map +1 -0
  303. package/dist/react-native/operations/privateLinkResources.d.ts +46 -0
  304. package/dist/react-native/operations/privateLinkResources.d.ts.map +1 -0
  305. package/dist/react-native/operations/privateLinkResources.js +182 -0
  306. package/dist/react-native/operations/privateLinkResources.js.map +1 -0
  307. package/dist/react-native/operations/vNetPeering.d.ts +81 -0
  308. package/dist/react-native/operations/vNetPeering.d.ts.map +1 -0
  309. package/dist/react-native/operations/vNetPeering.js +355 -0
  310. package/dist/react-native/operations/vNetPeering.js.map +1 -0
  311. package/dist/react-native/operations/workspaces.d.ts +107 -0
  312. package/dist/react-native/operations/workspaces.d.ts.map +1 -0
  313. package/dist/react-native/operations/workspaces.js +531 -0
  314. package/dist/react-native/operations/workspaces.js.map +1 -0
  315. package/dist/react-native/operationsInterfaces/accessConnectors.d.ts +71 -0
  316. package/dist/react-native/operationsInterfaces/accessConnectors.d.ts.map +1 -0
  317. package/dist/react-native/operationsInterfaces/accessConnectors.js +9 -0
  318. package/dist/react-native/operationsInterfaces/accessConnectors.js.map +1 -0
  319. package/dist/react-native/operationsInterfaces/index.d.ts +8 -0
  320. package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
  321. package/dist/react-native/operationsInterfaces/index.js +15 -0
  322. package/dist/react-native/operationsInterfaces/index.js.map +1 -0
  323. package/dist/react-native/operationsInterfaces/operations.d.ts +11 -0
  324. package/dist/react-native/operationsInterfaces/operations.d.ts.map +1 -0
  325. package/dist/react-native/operationsInterfaces/operations.js +9 -0
  326. package/dist/react-native/operationsInterfaces/operations.js.map +1 -0
  327. package/dist/react-native/operationsInterfaces/outboundNetworkDependenciesEndpoints.d.ts +14 -0
  328. package/dist/react-native/operationsInterfaces/outboundNetworkDependenciesEndpoints.d.ts.map +1 -0
  329. package/dist/react-native/operationsInterfaces/outboundNetworkDependenciesEndpoints.js +9 -0
  330. package/dist/react-native/operationsInterfaces/outboundNetworkDependenciesEndpoints.js.map +1 -0
  331. package/dist/react-native/operationsInterfaces/privateEndpointConnections.d.ts +56 -0
  332. package/dist/react-native/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  333. package/dist/react-native/operationsInterfaces/privateEndpointConnections.js +9 -0
  334. package/dist/react-native/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  335. package/dist/react-native/operationsInterfaces/privateLinkResources.d.ts +21 -0
  336. package/dist/react-native/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
  337. package/dist/react-native/operationsInterfaces/privateLinkResources.js +9 -0
  338. package/dist/react-native/operationsInterfaces/privateLinkResources.js.map +1 -0
  339. package/dist/react-native/operationsInterfaces/vNetPeering.d.ts +56 -0
  340. package/dist/react-native/operationsInterfaces/vNetPeering.d.ts.map +1 -0
  341. package/dist/react-native/operationsInterfaces/vNetPeering.js +9 -0
  342. package/dist/react-native/operationsInterfaces/vNetPeering.js.map +1 -0
  343. package/dist/react-native/operationsInterfaces/workspaces.d.ts +71 -0
  344. package/dist/react-native/operationsInterfaces/workspaces.d.ts.map +1 -0
  345. package/dist/react-native/operationsInterfaces/workspaces.js +9 -0
  346. package/dist/react-native/operationsInterfaces/workspaces.js.map +1 -0
  347. package/dist/react-native/package.json +3 -0
  348. package/dist/react-native/pagingHelper.d.ts +13 -0
  349. package/dist/react-native/pagingHelper.d.ts.map +1 -0
  350. package/dist/react-native/pagingHelper.js +32 -0
  351. package/dist/react-native/pagingHelper.js.map +1 -0
  352. package/package.json +58 -28
  353. package/dist/index.js +0 -4239
  354. package/dist/index.js.map +0 -1
  355. package/dist/index.min.js +0 -1
  356. package/dist/index.min.js.map +0 -1
  357. package/dist-esm/samples-dev/accessConnectorsCreateOrUpdateSample.d.ts +0 -2
  358. package/dist-esm/samples-dev/accessConnectorsCreateOrUpdateSample.d.ts.map +0 -1
  359. package/dist-esm/samples-dev/accessConnectorsCreateOrUpdateSample.js +0 -58
  360. package/dist-esm/samples-dev/accessConnectorsCreateOrUpdateSample.js.map +0 -1
  361. package/dist-esm/samples-dev/accessConnectorsDeleteSample.d.ts +0 -2
  362. package/dist-esm/samples-dev/accessConnectorsDeleteSample.d.ts.map +0 -1
  363. package/dist-esm/samples-dev/accessConnectorsDeleteSample.js +0 -38
  364. package/dist-esm/samples-dev/accessConnectorsDeleteSample.js.map +0 -1
  365. package/dist-esm/samples-dev/accessConnectorsGetSample.d.ts +0 -2
  366. package/dist-esm/samples-dev/accessConnectorsGetSample.d.ts.map +0 -1
  367. package/dist-esm/samples-dev/accessConnectorsGetSample.js +0 -38
  368. package/dist-esm/samples-dev/accessConnectorsGetSample.js.map +0 -1
  369. package/dist-esm/samples-dev/accessConnectorsListByResourceGroupSample.d.ts +0 -2
  370. package/dist-esm/samples-dev/accessConnectorsListByResourceGroupSample.d.ts.map +0 -1
  371. package/dist-esm/samples-dev/accessConnectorsListByResourceGroupSample.js +0 -53
  372. package/dist-esm/samples-dev/accessConnectorsListByResourceGroupSample.js.map +0 -1
  373. package/dist-esm/samples-dev/accessConnectorsListBySubscriptionSample.d.ts +0 -2
  374. package/dist-esm/samples-dev/accessConnectorsListBySubscriptionSample.d.ts.map +0 -1
  375. package/dist-esm/samples-dev/accessConnectorsListBySubscriptionSample.js +0 -52
  376. package/dist-esm/samples-dev/accessConnectorsListBySubscriptionSample.js.map +0 -1
  377. package/dist-esm/samples-dev/accessConnectorsUpdateSample.d.ts +0 -2
  378. package/dist-esm/samples-dev/accessConnectorsUpdateSample.d.ts.map +0 -1
  379. package/dist-esm/samples-dev/accessConnectorsUpdateSample.js +0 -39
  380. package/dist-esm/samples-dev/accessConnectorsUpdateSample.js.map +0 -1
  381. package/dist-esm/samples-dev/operationsListSample.d.ts +0 -2
  382. package/dist-esm/samples-dev/operationsListSample.d.ts.map +0 -1
  383. package/dist-esm/samples-dev/operationsListSample.js +0 -53
  384. package/dist-esm/samples-dev/operationsListSample.js.map +0 -1
  385. package/dist-esm/samples-dev/outboundNetworkDependenciesEndpointsListSample.d.ts +0 -2
  386. package/dist-esm/samples-dev/outboundNetworkDependenciesEndpointsListSample.d.ts.map +0 -1
  387. package/dist-esm/samples-dev/outboundNetworkDependenciesEndpointsListSample.js +0 -39
  388. package/dist-esm/samples-dev/outboundNetworkDependenciesEndpointsListSample.js.map +0 -1
  389. package/dist-esm/samples-dev/privateEndpointConnectionsCreateSample.d.ts +0 -2
  390. package/dist-esm/samples-dev/privateEndpointConnectionsCreateSample.d.ts.map +0 -1
  391. package/dist-esm/samples-dev/privateEndpointConnectionsCreateSample.js +0 -48
  392. package/dist-esm/samples-dev/privateEndpointConnectionsCreateSample.js.map +0 -1
  393. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.d.ts +0 -2
  394. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.d.ts.map +0 -1
  395. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +0 -40
  396. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js.map +0 -1
  397. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts +0 -2
  398. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts.map +0 -1
  399. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +0 -40
  400. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js.map +0 -1
  401. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.d.ts +0 -2
  402. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.d.ts.map +0 -1
  403. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js +0 -55
  404. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js.map +0 -1
  405. package/dist-esm/samples-dev/privateLinkResourcesGetSample.d.ts +0 -2
  406. package/dist-esm/samples-dev/privateLinkResourcesGetSample.d.ts.map +0 -1
  407. package/dist-esm/samples-dev/privateLinkResourcesGetSample.js +0 -40
  408. package/dist-esm/samples-dev/privateLinkResourcesGetSample.js.map +0 -1
  409. package/dist-esm/samples-dev/privateLinkResourcesListSample.d.ts +0 -2
  410. package/dist-esm/samples-dev/privateLinkResourcesListSample.d.ts.map +0 -1
  411. package/dist-esm/samples-dev/privateLinkResourcesListSample.js +0 -55
  412. package/dist-esm/samples-dev/privateLinkResourcesListSample.js.map +0 -1
  413. package/dist-esm/samples-dev/vNetPeeringCreateOrUpdateSample.d.ts +0 -2
  414. package/dist-esm/samples-dev/vNetPeeringCreateOrUpdateSample.d.ts.map +0 -1
  415. package/dist-esm/samples-dev/vNetPeeringCreateOrUpdateSample.js +0 -48
  416. package/dist-esm/samples-dev/vNetPeeringCreateOrUpdateSample.js.map +0 -1
  417. package/dist-esm/samples-dev/vNetPeeringDeleteSample.d.ts +0 -2
  418. package/dist-esm/samples-dev/vNetPeeringDeleteSample.d.ts.map +0 -1
  419. package/dist-esm/samples-dev/vNetPeeringDeleteSample.js +0 -39
  420. package/dist-esm/samples-dev/vNetPeeringDeleteSample.js.map +0 -1
  421. package/dist-esm/samples-dev/vNetPeeringGetSample.d.ts +0 -2
  422. package/dist-esm/samples-dev/vNetPeeringGetSample.d.ts.map +0 -1
  423. package/dist-esm/samples-dev/vNetPeeringGetSample.js +0 -39
  424. package/dist-esm/samples-dev/vNetPeeringGetSample.js.map +0 -1
  425. package/dist-esm/samples-dev/vNetPeeringListByWorkspaceSample.d.ts +0 -2
  426. package/dist-esm/samples-dev/vNetPeeringListByWorkspaceSample.d.ts.map +0 -1
  427. package/dist-esm/samples-dev/vNetPeeringListByWorkspaceSample.js +0 -54
  428. package/dist-esm/samples-dev/vNetPeeringListByWorkspaceSample.js.map +0 -1
  429. package/dist-esm/samples-dev/workspacesCreateOrUpdateSample.d.ts +0 -2
  430. package/dist-esm/samples-dev/workspacesCreateOrUpdateSample.d.ts.map +0 -1
  431. package/dist-esm/samples-dev/workspacesCreateOrUpdateSample.js +0 -221
  432. package/dist-esm/samples-dev/workspacesCreateOrUpdateSample.js.map +0 -1
  433. package/dist-esm/samples-dev/workspacesDeleteSample.d.ts +0 -2
  434. package/dist-esm/samples-dev/workspacesDeleteSample.d.ts.map +0 -1
  435. package/dist-esm/samples-dev/workspacesDeleteSample.js +0 -38
  436. package/dist-esm/samples-dev/workspacesDeleteSample.js.map +0 -1
  437. package/dist-esm/samples-dev/workspacesGetSample.d.ts +0 -2
  438. package/dist-esm/samples-dev/workspacesGetSample.d.ts.map +0 -1
  439. package/dist-esm/samples-dev/workspacesGetSample.js +0 -74
  440. package/dist-esm/samples-dev/workspacesGetSample.js.map +0 -1
  441. package/dist-esm/samples-dev/workspacesListByResourceGroupSample.d.ts +0 -2
  442. package/dist-esm/samples-dev/workspacesListByResourceGroupSample.d.ts.map +0 -1
  443. package/dist-esm/samples-dev/workspacesListByResourceGroupSample.js +0 -53
  444. package/dist-esm/samples-dev/workspacesListByResourceGroupSample.js.map +0 -1
  445. package/dist-esm/samples-dev/workspacesListBySubscriptionSample.d.ts +0 -2
  446. package/dist-esm/samples-dev/workspacesListBySubscriptionSample.d.ts.map +0 -1
  447. package/dist-esm/samples-dev/workspacesListBySubscriptionSample.js +0 -52
  448. package/dist-esm/samples-dev/workspacesListBySubscriptionSample.js.map +0 -1
  449. package/dist-esm/samples-dev/workspacesUpdateSample.d.ts +0 -2
  450. package/dist-esm/samples-dev/workspacesUpdateSample.d.ts.map +0 -1
  451. package/dist-esm/samples-dev/workspacesUpdateSample.js +0 -39
  452. package/dist-esm/samples-dev/workspacesUpdateSample.js.map +0 -1
  453. package/dist-esm/src/azureDatabricksManagementClient.d.ts.map +0 -1
  454. package/dist-esm/src/azureDatabricksManagementClient.js.map +0 -1
  455. package/dist-esm/src/index.d.ts +0 -5
  456. package/dist-esm/src/index.js.map +0 -1
  457. package/dist-esm/src/lroImpl.js.map +0 -1
  458. package/dist-esm/src/models/index.js.map +0 -1
  459. package/dist-esm/src/models/mappers.js.map +0 -1
  460. package/dist-esm/src/models/parameters.js.map +0 -1
  461. package/dist-esm/src/operations/accessConnectors.d.ts.map +0 -1
  462. package/dist-esm/src/operations/accessConnectors.js.map +0 -1
  463. package/dist-esm/src/operations/index.d.ts +0 -8
  464. package/dist-esm/src/operations/index.d.ts.map +0 -1
  465. package/dist-esm/src/operations/index.js +0 -15
  466. package/dist-esm/src/operations/index.js.map +0 -1
  467. package/dist-esm/src/operations/operations.d.ts.map +0 -1
  468. package/dist-esm/src/operations/operations.js.map +0 -1
  469. package/dist-esm/src/operations/outboundNetworkDependenciesEndpoints.d.ts.map +0 -1
  470. package/dist-esm/src/operations/outboundNetworkDependenciesEndpoints.js.map +0 -1
  471. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +0 -1
  472. package/dist-esm/src/operations/privateEndpointConnections.js.map +0 -1
  473. package/dist-esm/src/operations/privateLinkResources.d.ts.map +0 -1
  474. package/dist-esm/src/operations/privateLinkResources.js.map +0 -1
  475. package/dist-esm/src/operations/vNetPeering.d.ts.map +0 -1
  476. package/dist-esm/src/operations/vNetPeering.js.map +0 -1
  477. package/dist-esm/src/operations/workspaces.d.ts.map +0 -1
  478. package/dist-esm/src/operations/workspaces.js.map +0 -1
  479. package/dist-esm/src/operationsInterfaces/accessConnectors.d.ts.map +0 -1
  480. package/dist-esm/src/operationsInterfaces/accessConnectors.js.map +0 -1
  481. package/dist-esm/src/operationsInterfaces/index.d.ts +0 -8
  482. package/dist-esm/src/operationsInterfaces/index.d.ts.map +0 -1
  483. package/dist-esm/src/operationsInterfaces/index.js +0 -15
  484. package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
  485. package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
  486. package/dist-esm/src/operationsInterfaces/outboundNetworkDependenciesEndpoints.d.ts.map +0 -1
  487. package/dist-esm/src/operationsInterfaces/outboundNetworkDependenciesEndpoints.js.map +0 -1
  488. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +0 -1
  489. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +0 -1
  490. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts.map +0 -1
  491. package/dist-esm/src/operationsInterfaces/privateLinkResources.js.map +0 -1
  492. package/dist-esm/src/operationsInterfaces/vNetPeering.d.ts.map +0 -1
  493. package/dist-esm/src/operationsInterfaces/vNetPeering.js.map +0 -1
  494. package/dist-esm/src/operationsInterfaces/workspaces.d.ts.map +0 -1
  495. package/dist-esm/src/operationsInterfaces/workspaces.js.map +0 -1
  496. package/dist-esm/src/pagingHelper.js.map +0 -1
  497. package/dist-esm/test/databricks_examples.d.ts +0 -4
  498. package/dist-esm/test/databricks_examples.d.ts.map +0 -1
  499. package/dist-esm/test/databricks_examples.js +0 -107
  500. package/dist-esm/test/databricks_examples.js.map +0 -1
  501. package/src/azureDatabricksManagementClient.ts +0 -134
  502. package/src/lroImpl.ts +0 -42
  503. package/src/models/index.ts +0 -1194
  504. package/src/models/mappers.ts +0 -1624
  505. package/src/models/parameters.ts +0 -213
  506. package/src/operations/accessConnectors.ts +0 -717
  507. package/src/operations/index.ts +0 -15
  508. package/src/operations/operations.ts +0 -149
  509. package/src/operations/outboundNetworkDependenciesEndpoints.ts +0 -85
  510. package/src/operations/privateEndpointConnections.ts +0 -509
  511. package/src/operations/privateLinkResources.ts +0 -238
  512. package/src/operations/vNetPeering.ts +0 -507
  513. package/src/operations/workspaces.ts +0 -717
  514. package/src/operationsInterfaces/accessConnectors.ts +0 -139
  515. package/src/operationsInterfaces/index.ts +0 -15
  516. package/src/operationsInterfaces/operations.ts +0 -22
  517. package/src/operationsInterfaces/outboundNetworkDependenciesEndpoints.ts +0 -29
  518. package/src/operationsInterfaces/privateEndpointConnections.ts +0 -109
  519. package/src/operationsInterfaces/privateLinkResources.ts +0 -44
  520. package/src/operationsInterfaces/vNetPeering.ts +0 -109
  521. package/src/operationsInterfaces/workspaces.ts +0 -139
  522. package/src/pagingHelper.ts +0 -39
  523. package/tsconfig.json +0 -33
  524. /package/{dist-esm/src → dist/browser}/lroImpl.d.ts +0 -0
  525. /package/{dist-esm/src → dist/browser}/lroImpl.d.ts.map +0 -0
  526. /package/{dist-esm/src → dist/browser}/lroImpl.js +0 -0
  527. /package/{dist-esm/src → dist/browser}/models/index.d.ts +0 -0
  528. /package/{dist-esm/src → dist/browser}/models/index.d.ts.map +0 -0
  529. /package/{dist-esm/src → dist/browser}/models/index.js +0 -0
  530. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts +0 -0
  531. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts.map +0 -0
  532. /package/{dist-esm/src → dist/browser}/models/mappers.js +0 -0
  533. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts +0 -0
  534. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +0 -0
  535. /package/{dist-esm/src → dist/browser}/operationsInterfaces/accessConnectors.js +0 -0
  536. /package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.js +0 -0
  537. /package/{dist-esm/src → dist/browser}/operationsInterfaces/outboundNetworkDependenciesEndpoints.js +0 -0
  538. /package/{dist-esm/src → dist/browser}/operationsInterfaces/privateEndpointConnections.js +0 -0
  539. /package/{dist-esm/src → dist/browser}/operationsInterfaces/privateLinkResources.js +0 -0
  540. /package/{dist-esm/src → dist/browser}/operationsInterfaces/vNetPeering.js +0 -0
  541. /package/{dist-esm/src → dist/browser}/operationsInterfaces/workspaces.js +0 -0
  542. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts +0 -0
  543. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts.map +0 -0
  544. /package/{dist-esm/src → dist/browser}/pagingHelper.js +0 -0
  545. /package/{types → dist/commonjs}/tsdoc-metadata.json +0 -0
package/dist/index.js DELETED
@@ -1,4239 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var coreClient = require('@azure/core-client');
6
- var coreRestPipeline = require('@azure/core-rest-pipeline');
7
- var tslib = require('tslib');
8
- var coreLro = require('@azure/core-lro');
9
-
10
- function _interopNamespaceDefault(e) {
11
- var n = Object.create(null);
12
- if (e) {
13
- Object.keys(e).forEach(function (k) {
14
- if (k !== 'default') {
15
- var d = Object.getOwnPropertyDescriptor(e, k);
16
- Object.defineProperty(n, k, d.get ? d : {
17
- enumerable: true,
18
- get: function () { return e[k]; }
19
- });
20
- }
21
- });
22
- }
23
- n.default = e;
24
- return Object.freeze(n);
25
- }
26
-
27
- var coreClient__namespace = /*#__PURE__*/_interopNamespaceDefault(coreClient);
28
- var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespaceDefault(coreRestPipeline);
29
-
30
- /*
31
- * Copyright (c) Microsoft Corporation.
32
- * Licensed under the MIT License.
33
- *
34
- * Code generated by Microsoft (R) AutoRest Code Generator.
35
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
36
- */
37
- const pageMap = new WeakMap();
38
- /**
39
- * Given the last `.value` produced by the `byPage` iterator,
40
- * returns a continuation token that can be used to begin paging from
41
- * that point later.
42
- * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
43
- * @returns The continuation token that can be passed into byPage() during future calls.
44
- */
45
- function getContinuationToken(page) {
46
- var _a;
47
- if (typeof page !== "object" || page === null) {
48
- return undefined;
49
- }
50
- return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
51
- }
52
- function setContinuationToken(page, continuationToken) {
53
- var _a;
54
- if (typeof page !== "object" || page === null || !continuationToken) {
55
- return;
56
- }
57
- const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
58
- pageInfo.continuationToken = continuationToken;
59
- pageMap.set(page, pageInfo);
60
- }
61
-
62
- /*
63
- * Copyright (c) Microsoft Corporation.
64
- * Licensed under the MIT License.
65
- *
66
- * Code generated by Microsoft (R) AutoRest Code Generator.
67
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
68
- */
69
- /** Known values of {@link CustomParameterType} that the service accepts. */
70
- exports.KnownCustomParameterType = void 0;
71
- (function (KnownCustomParameterType) {
72
- /** Bool */
73
- KnownCustomParameterType["Bool"] = "Bool";
74
- /** Object */
75
- KnownCustomParameterType["Object"] = "Object";
76
- /** String */
77
- KnownCustomParameterType["String"] = "String";
78
- })(exports.KnownCustomParameterType || (exports.KnownCustomParameterType = {}));
79
- /** Known values of {@link KeySource} that the service accepts. */
80
- exports.KnownKeySource = void 0;
81
- (function (KnownKeySource) {
82
- /** Default */
83
- KnownKeySource["Default"] = "Default";
84
- /** MicrosoftKeyvault */
85
- KnownKeySource["MicrosoftKeyvault"] = "Microsoft.Keyvault";
86
- })(exports.KnownKeySource || (exports.KnownKeySource = {}));
87
- /** Known values of {@link ProvisioningState} that the service accepts. */
88
- exports.KnownProvisioningState = void 0;
89
- (function (KnownProvisioningState) {
90
- /** Accepted */
91
- KnownProvisioningState["Accepted"] = "Accepted";
92
- /** Running */
93
- KnownProvisioningState["Running"] = "Running";
94
- /** Ready */
95
- KnownProvisioningState["Ready"] = "Ready";
96
- /** Creating */
97
- KnownProvisioningState["Creating"] = "Creating";
98
- /** Created */
99
- KnownProvisioningState["Created"] = "Created";
100
- /** Deleting */
101
- KnownProvisioningState["Deleting"] = "Deleting";
102
- /** Deleted */
103
- KnownProvisioningState["Deleted"] = "Deleted";
104
- /** Canceled */
105
- KnownProvisioningState["Canceled"] = "Canceled";
106
- /** Failed */
107
- KnownProvisioningState["Failed"] = "Failed";
108
- /** Succeeded */
109
- KnownProvisioningState["Succeeded"] = "Succeeded";
110
- /** Updating */
111
- KnownProvisioningState["Updating"] = "Updating";
112
- })(exports.KnownProvisioningState || (exports.KnownProvisioningState = {}));
113
- /** Known values of {@link EncryptionKeySource} that the service accepts. */
114
- exports.KnownEncryptionKeySource = void 0;
115
- (function (KnownEncryptionKeySource) {
116
- /** MicrosoftKeyvault */
117
- KnownEncryptionKeySource["MicrosoftKeyvault"] = "Microsoft.Keyvault";
118
- })(exports.KnownEncryptionKeySource || (exports.KnownEncryptionKeySource = {}));
119
- /** Known values of {@link PrivateLinkServiceConnectionStatus} that the service accepts. */
120
- exports.KnownPrivateLinkServiceConnectionStatus = void 0;
121
- (function (KnownPrivateLinkServiceConnectionStatus) {
122
- /** Pending */
123
- KnownPrivateLinkServiceConnectionStatus["Pending"] = "Pending";
124
- /** Approved */
125
- KnownPrivateLinkServiceConnectionStatus["Approved"] = "Approved";
126
- /** Rejected */
127
- KnownPrivateLinkServiceConnectionStatus["Rejected"] = "Rejected";
128
- /** Disconnected */
129
- KnownPrivateLinkServiceConnectionStatus["Disconnected"] = "Disconnected";
130
- })(exports.KnownPrivateLinkServiceConnectionStatus || (exports.KnownPrivateLinkServiceConnectionStatus = {}));
131
- /** Known values of {@link PrivateEndpointConnectionProvisioningState} that the service accepts. */
132
- exports.KnownPrivateEndpointConnectionProvisioningState = void 0;
133
- (function (KnownPrivateEndpointConnectionProvisioningState) {
134
- /** Succeeded */
135
- KnownPrivateEndpointConnectionProvisioningState["Succeeded"] = "Succeeded";
136
- /** Creating */
137
- KnownPrivateEndpointConnectionProvisioningState["Creating"] = "Creating";
138
- /** Updating */
139
- KnownPrivateEndpointConnectionProvisioningState["Updating"] = "Updating";
140
- /** Deleting */
141
- KnownPrivateEndpointConnectionProvisioningState["Deleting"] = "Deleting";
142
- /** Failed */
143
- KnownPrivateEndpointConnectionProvisioningState["Failed"] = "Failed";
144
- })(exports.KnownPrivateEndpointConnectionProvisioningState || (exports.KnownPrivateEndpointConnectionProvisioningState = {}));
145
- /** Known values of {@link PublicNetworkAccess} that the service accepts. */
146
- exports.KnownPublicNetworkAccess = void 0;
147
- (function (KnownPublicNetworkAccess) {
148
- /** Enabled */
149
- KnownPublicNetworkAccess["Enabled"] = "Enabled";
150
- /** Disabled */
151
- KnownPublicNetworkAccess["Disabled"] = "Disabled";
152
- })(exports.KnownPublicNetworkAccess || (exports.KnownPublicNetworkAccess = {}));
153
- /** Known values of {@link RequiredNsgRules} that the service accepts. */
154
- exports.KnownRequiredNsgRules = void 0;
155
- (function (KnownRequiredNsgRules) {
156
- /** AllRules */
157
- KnownRequiredNsgRules["AllRules"] = "AllRules";
158
- /** NoAzureDatabricksRules */
159
- KnownRequiredNsgRules["NoAzureDatabricksRules"] = "NoAzureDatabricksRules";
160
- /** NoAzureServiceRules */
161
- KnownRequiredNsgRules["NoAzureServiceRules"] = "NoAzureServiceRules";
162
- })(exports.KnownRequiredNsgRules || (exports.KnownRequiredNsgRules = {}));
163
- /** Known values of {@link CreatedByType} that the service accepts. */
164
- exports.KnownCreatedByType = void 0;
165
- (function (KnownCreatedByType) {
166
- /** User */
167
- KnownCreatedByType["User"] = "User";
168
- /** Application */
169
- KnownCreatedByType["Application"] = "Application";
170
- /** ManagedIdentity */
171
- KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
172
- /** Key */
173
- KnownCreatedByType["Key"] = "Key";
174
- })(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
175
- /** Known values of {@link PeeringState} that the service accepts. */
176
- exports.KnownPeeringState = void 0;
177
- (function (KnownPeeringState) {
178
- /** Initiated */
179
- KnownPeeringState["Initiated"] = "Initiated";
180
- /** Connected */
181
- KnownPeeringState["Connected"] = "Connected";
182
- /** Disconnected */
183
- KnownPeeringState["Disconnected"] = "Disconnected";
184
- })(exports.KnownPeeringState || (exports.KnownPeeringState = {}));
185
- /** Known values of {@link PeeringProvisioningState} that the service accepts. */
186
- exports.KnownPeeringProvisioningState = void 0;
187
- (function (KnownPeeringProvisioningState) {
188
- /** Succeeded */
189
- KnownPeeringProvisioningState["Succeeded"] = "Succeeded";
190
- /** Updating */
191
- KnownPeeringProvisioningState["Updating"] = "Updating";
192
- /** Deleting */
193
- KnownPeeringProvisioningState["Deleting"] = "Deleting";
194
- /** Failed */
195
- KnownPeeringProvisioningState["Failed"] = "Failed";
196
- })(exports.KnownPeeringProvisioningState || (exports.KnownPeeringProvisioningState = {}));
197
- /** Known values of {@link ManagedServiceIdentityType} that the service accepts. */
198
- exports.KnownManagedServiceIdentityType = void 0;
199
- (function (KnownManagedServiceIdentityType) {
200
- /** None */
201
- KnownManagedServiceIdentityType["None"] = "None";
202
- /** SystemAssigned */
203
- KnownManagedServiceIdentityType["SystemAssigned"] = "SystemAssigned";
204
- /** UserAssigned */
205
- KnownManagedServiceIdentityType["UserAssigned"] = "UserAssigned";
206
- /** SystemAssignedUserAssigned */
207
- KnownManagedServiceIdentityType["SystemAssignedUserAssigned"] = "SystemAssigned,UserAssigned";
208
- })(exports.KnownManagedServiceIdentityType || (exports.KnownManagedServiceIdentityType = {}));
209
-
210
- /*
211
- * Copyright (c) Microsoft Corporation.
212
- * Licensed under the MIT License.
213
- *
214
- * Code generated by Microsoft (R) AutoRest Code Generator.
215
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
216
- */
217
- const WorkspaceCustomParameters = {
218
- type: {
219
- name: "Composite",
220
- className: "WorkspaceCustomParameters",
221
- modelProperties: {
222
- amlWorkspaceId: {
223
- serializedName: "amlWorkspaceId",
224
- type: {
225
- name: "Composite",
226
- className: "WorkspaceCustomStringParameter"
227
- }
228
- },
229
- customVirtualNetworkId: {
230
- serializedName: "customVirtualNetworkId",
231
- type: {
232
- name: "Composite",
233
- className: "WorkspaceCustomStringParameter"
234
- }
235
- },
236
- customPublicSubnetName: {
237
- serializedName: "customPublicSubnetName",
238
- type: {
239
- name: "Composite",
240
- className: "WorkspaceCustomStringParameter"
241
- }
242
- },
243
- customPrivateSubnetName: {
244
- serializedName: "customPrivateSubnetName",
245
- type: {
246
- name: "Composite",
247
- className: "WorkspaceCustomStringParameter"
248
- }
249
- },
250
- enableNoPublicIp: {
251
- serializedName: "enableNoPublicIp",
252
- type: {
253
- name: "Composite",
254
- className: "WorkspaceCustomBooleanParameter"
255
- }
256
- },
257
- loadBalancerBackendPoolName: {
258
- serializedName: "loadBalancerBackendPoolName",
259
- type: {
260
- name: "Composite",
261
- className: "WorkspaceCustomStringParameter"
262
- }
263
- },
264
- loadBalancerId: {
265
- serializedName: "loadBalancerId",
266
- type: {
267
- name: "Composite",
268
- className: "WorkspaceCustomStringParameter"
269
- }
270
- },
271
- natGatewayName: {
272
- serializedName: "natGatewayName",
273
- type: {
274
- name: "Composite",
275
- className: "WorkspaceCustomStringParameter"
276
- }
277
- },
278
- publicIpName: {
279
- serializedName: "publicIpName",
280
- type: {
281
- name: "Composite",
282
- className: "WorkspaceCustomStringParameter"
283
- }
284
- },
285
- prepareEncryption: {
286
- serializedName: "prepareEncryption",
287
- type: {
288
- name: "Composite",
289
- className: "WorkspaceCustomBooleanParameter"
290
- }
291
- },
292
- encryption: {
293
- serializedName: "encryption",
294
- type: {
295
- name: "Composite",
296
- className: "WorkspaceEncryptionParameter"
297
- }
298
- },
299
- requireInfrastructureEncryption: {
300
- serializedName: "requireInfrastructureEncryption",
301
- type: {
302
- name: "Composite",
303
- className: "WorkspaceCustomBooleanParameter"
304
- }
305
- },
306
- storageAccountName: {
307
- serializedName: "storageAccountName",
308
- type: {
309
- name: "Composite",
310
- className: "WorkspaceCustomStringParameter"
311
- }
312
- },
313
- storageAccountSkuName: {
314
- serializedName: "storageAccountSkuName",
315
- type: {
316
- name: "Composite",
317
- className: "WorkspaceCustomStringParameter"
318
- }
319
- },
320
- vnetAddressPrefix: {
321
- serializedName: "vnetAddressPrefix",
322
- type: {
323
- name: "Composite",
324
- className: "WorkspaceCustomStringParameter"
325
- }
326
- },
327
- resourceTags: {
328
- serializedName: "resourceTags",
329
- type: {
330
- name: "Composite",
331
- className: "WorkspaceCustomObjectParameter"
332
- }
333
- }
334
- }
335
- }
336
- };
337
- const WorkspaceCustomStringParameter = {
338
- type: {
339
- name: "Composite",
340
- className: "WorkspaceCustomStringParameter",
341
- modelProperties: {
342
- type: {
343
- serializedName: "type",
344
- readOnly: true,
345
- type: {
346
- name: "String"
347
- }
348
- },
349
- value: {
350
- serializedName: "value",
351
- required: true,
352
- type: {
353
- name: "String"
354
- }
355
- }
356
- }
357
- }
358
- };
359
- const WorkspaceCustomBooleanParameter = {
360
- type: {
361
- name: "Composite",
362
- className: "WorkspaceCustomBooleanParameter",
363
- modelProperties: {
364
- type: {
365
- serializedName: "type",
366
- readOnly: true,
367
- type: {
368
- name: "String"
369
- }
370
- },
371
- value: {
372
- serializedName: "value",
373
- required: true,
374
- type: {
375
- name: "Boolean"
376
- }
377
- }
378
- }
379
- }
380
- };
381
- const WorkspaceEncryptionParameter = {
382
- type: {
383
- name: "Composite",
384
- className: "WorkspaceEncryptionParameter",
385
- modelProperties: {
386
- type: {
387
- serializedName: "type",
388
- readOnly: true,
389
- type: {
390
- name: "String"
391
- }
392
- },
393
- value: {
394
- serializedName: "value",
395
- type: {
396
- name: "Composite",
397
- className: "Encryption"
398
- }
399
- }
400
- }
401
- }
402
- };
403
- const Encryption = {
404
- type: {
405
- name: "Composite",
406
- className: "Encryption",
407
- modelProperties: {
408
- keySource: {
409
- defaultValue: "Default",
410
- serializedName: "keySource",
411
- type: {
412
- name: "String"
413
- }
414
- },
415
- keyName: {
416
- serializedName: "KeyName",
417
- type: {
418
- name: "String"
419
- }
420
- },
421
- keyVersion: {
422
- serializedName: "keyversion",
423
- type: {
424
- name: "String"
425
- }
426
- },
427
- keyVaultUri: {
428
- serializedName: "keyvaulturi",
429
- type: {
430
- name: "String"
431
- }
432
- }
433
- }
434
- }
435
- };
436
- const WorkspaceCustomObjectParameter = {
437
- type: {
438
- name: "Composite",
439
- className: "WorkspaceCustomObjectParameter",
440
- modelProperties: {
441
- type: {
442
- serializedName: "type",
443
- readOnly: true,
444
- type: {
445
- name: "String"
446
- }
447
- },
448
- value: {
449
- serializedName: "value",
450
- required: true,
451
- type: {
452
- name: "Dictionary",
453
- value: { type: { name: "any" } }
454
- }
455
- }
456
- }
457
- }
458
- };
459
- const WorkspaceProviderAuthorization = {
460
- type: {
461
- name: "Composite",
462
- className: "WorkspaceProviderAuthorization",
463
- modelProperties: {
464
- principalId: {
465
- serializedName: "principalId",
466
- required: true,
467
- type: {
468
- name: "Uuid"
469
- }
470
- },
471
- roleDefinitionId: {
472
- serializedName: "roleDefinitionId",
473
- required: true,
474
- type: {
475
- name: "Uuid"
476
- }
477
- }
478
- }
479
- }
480
- };
481
- const CreatedBy = {
482
- type: {
483
- name: "Composite",
484
- className: "CreatedBy",
485
- modelProperties: {
486
- oid: {
487
- serializedName: "oid",
488
- readOnly: true,
489
- type: {
490
- name: "Uuid"
491
- }
492
- },
493
- puid: {
494
- serializedName: "puid",
495
- readOnly: true,
496
- type: {
497
- name: "String"
498
- }
499
- },
500
- applicationId: {
501
- serializedName: "applicationId",
502
- readOnly: true,
503
- type: {
504
- name: "Uuid"
505
- }
506
- }
507
- }
508
- }
509
- };
510
- const ManagedIdentityConfiguration = {
511
- type: {
512
- name: "Composite",
513
- className: "ManagedIdentityConfiguration",
514
- modelProperties: {
515
- principalId: {
516
- serializedName: "principalId",
517
- readOnly: true,
518
- type: {
519
- name: "Uuid"
520
- }
521
- },
522
- tenantId: {
523
- serializedName: "tenantId",
524
- readOnly: true,
525
- type: {
526
- name: "Uuid"
527
- }
528
- },
529
- type: {
530
- serializedName: "type",
531
- readOnly: true,
532
- type: {
533
- name: "String"
534
- }
535
- }
536
- }
537
- }
538
- };
539
- const WorkspacePropertiesEncryption = {
540
- type: {
541
- name: "Composite",
542
- className: "WorkspacePropertiesEncryption",
543
- modelProperties: {
544
- entities: {
545
- serializedName: "entities",
546
- type: {
547
- name: "Composite",
548
- className: "EncryptionEntitiesDefinition"
549
- }
550
- }
551
- }
552
- }
553
- };
554
- const EncryptionEntitiesDefinition = {
555
- type: {
556
- name: "Composite",
557
- className: "EncryptionEntitiesDefinition",
558
- modelProperties: {
559
- managedServices: {
560
- serializedName: "managedServices",
561
- type: {
562
- name: "Composite",
563
- className: "EncryptionV2"
564
- }
565
- },
566
- managedDisk: {
567
- serializedName: "managedDisk",
568
- type: {
569
- name: "Composite",
570
- className: "ManagedDiskEncryption"
571
- }
572
- }
573
- }
574
- }
575
- };
576
- const EncryptionV2 = {
577
- type: {
578
- name: "Composite",
579
- className: "EncryptionV2",
580
- modelProperties: {
581
- keySource: {
582
- serializedName: "keySource",
583
- required: true,
584
- type: {
585
- name: "String"
586
- }
587
- },
588
- keyVaultProperties: {
589
- serializedName: "keyVaultProperties",
590
- type: {
591
- name: "Composite",
592
- className: "EncryptionV2KeyVaultProperties"
593
- }
594
- }
595
- }
596
- }
597
- };
598
- const EncryptionV2KeyVaultProperties = {
599
- type: {
600
- name: "Composite",
601
- className: "EncryptionV2KeyVaultProperties",
602
- modelProperties: {
603
- keyVaultUri: {
604
- serializedName: "keyVaultUri",
605
- required: true,
606
- type: {
607
- name: "String"
608
- }
609
- },
610
- keyName: {
611
- serializedName: "keyName",
612
- required: true,
613
- type: {
614
- name: "String"
615
- }
616
- },
617
- keyVersion: {
618
- serializedName: "keyVersion",
619
- required: true,
620
- type: {
621
- name: "String"
622
- }
623
- }
624
- }
625
- }
626
- };
627
- const ManagedDiskEncryption = {
628
- type: {
629
- name: "Composite",
630
- className: "ManagedDiskEncryption",
631
- modelProperties: {
632
- keySource: {
633
- serializedName: "keySource",
634
- required: true,
635
- type: {
636
- name: "String"
637
- }
638
- },
639
- keyVaultProperties: {
640
- serializedName: "keyVaultProperties",
641
- type: {
642
- name: "Composite",
643
- className: "ManagedDiskEncryptionKeyVaultProperties"
644
- }
645
- },
646
- rotationToLatestKeyVersionEnabled: {
647
- serializedName: "rotationToLatestKeyVersionEnabled",
648
- type: {
649
- name: "Boolean"
650
- }
651
- }
652
- }
653
- }
654
- };
655
- const ManagedDiskEncryptionKeyVaultProperties = {
656
- type: {
657
- name: "Composite",
658
- className: "ManagedDiskEncryptionKeyVaultProperties",
659
- modelProperties: {
660
- keyVaultUri: {
661
- serializedName: "keyVaultUri",
662
- required: true,
663
- type: {
664
- name: "String"
665
- }
666
- },
667
- keyName: {
668
- serializedName: "keyName",
669
- required: true,
670
- type: {
671
- name: "String"
672
- }
673
- },
674
- keyVersion: {
675
- serializedName: "keyVersion",
676
- required: true,
677
- type: {
678
- name: "String"
679
- }
680
- }
681
- }
682
- }
683
- };
684
- const PrivateEndpointConnection = {
685
- type: {
686
- name: "Composite",
687
- className: "PrivateEndpointConnection",
688
- modelProperties: {
689
- id: {
690
- serializedName: "id",
691
- readOnly: true,
692
- type: {
693
- name: "String"
694
- }
695
- },
696
- name: {
697
- serializedName: "name",
698
- readOnly: true,
699
- type: {
700
- name: "String"
701
- }
702
- },
703
- type: {
704
- serializedName: "type",
705
- readOnly: true,
706
- type: {
707
- name: "String"
708
- }
709
- },
710
- properties: {
711
- serializedName: "properties",
712
- type: {
713
- name: "Composite",
714
- className: "PrivateEndpointConnectionProperties"
715
- }
716
- }
717
- }
718
- }
719
- };
720
- const PrivateEndpointConnectionProperties = {
721
- type: {
722
- name: "Composite",
723
- className: "PrivateEndpointConnectionProperties",
724
- modelProperties: {
725
- privateEndpoint: {
726
- serializedName: "privateEndpoint",
727
- type: {
728
- name: "Composite",
729
- className: "PrivateEndpoint"
730
- }
731
- },
732
- groupIds: {
733
- serializedName: "groupIds",
734
- type: {
735
- name: "Sequence",
736
- element: {
737
- type: {
738
- name: "String"
739
- }
740
- }
741
- }
742
- },
743
- privateLinkServiceConnectionState: {
744
- serializedName: "privateLinkServiceConnectionState",
745
- type: {
746
- name: "Composite",
747
- className: "PrivateLinkServiceConnectionState"
748
- }
749
- },
750
- provisioningState: {
751
- serializedName: "provisioningState",
752
- readOnly: true,
753
- type: {
754
- name: "String"
755
- }
756
- }
757
- }
758
- }
759
- };
760
- const PrivateEndpoint = {
761
- type: {
762
- name: "Composite",
763
- className: "PrivateEndpoint",
764
- modelProperties: {
765
- id: {
766
- serializedName: "id",
767
- readOnly: true,
768
- type: {
769
- name: "String"
770
- }
771
- }
772
- }
773
- }
774
- };
775
- const PrivateLinkServiceConnectionState = {
776
- type: {
777
- name: "Composite",
778
- className: "PrivateLinkServiceConnectionState",
779
- modelProperties: {
780
- status: {
781
- serializedName: "status",
782
- required: true,
783
- type: {
784
- name: "String"
785
- }
786
- },
787
- description: {
788
- serializedName: "description",
789
- type: {
790
- name: "String"
791
- }
792
- },
793
- actionsRequired: {
794
- serializedName: "actionsRequired",
795
- type: {
796
- name: "String"
797
- }
798
- }
799
- }
800
- }
801
- };
802
- const Sku = {
803
- type: {
804
- name: "Composite",
805
- className: "Sku",
806
- modelProperties: {
807
- name: {
808
- serializedName: "name",
809
- required: true,
810
- type: {
811
- name: "String"
812
- }
813
- },
814
- tier: {
815
- serializedName: "tier",
816
- type: {
817
- name: "String"
818
- }
819
- }
820
- }
821
- }
822
- };
823
- const SystemData = {
824
- type: {
825
- name: "Composite",
826
- className: "SystemData",
827
- modelProperties: {
828
- createdBy: {
829
- serializedName: "createdBy",
830
- type: {
831
- name: "String"
832
- }
833
- },
834
- createdByType: {
835
- serializedName: "createdByType",
836
- type: {
837
- name: "String"
838
- }
839
- },
840
- createdAt: {
841
- serializedName: "createdAt",
842
- type: {
843
- name: "DateTime"
844
- }
845
- },
846
- lastModifiedBy: {
847
- serializedName: "lastModifiedBy",
848
- type: {
849
- name: "String"
850
- }
851
- },
852
- lastModifiedByType: {
853
- serializedName: "lastModifiedByType",
854
- type: {
855
- name: "String"
856
- }
857
- },
858
- lastModifiedAt: {
859
- serializedName: "lastModifiedAt",
860
- type: {
861
- name: "DateTime"
862
- }
863
- }
864
- }
865
- }
866
- };
867
- const Resource = {
868
- type: {
869
- name: "Composite",
870
- className: "Resource",
871
- modelProperties: {
872
- id: {
873
- serializedName: "id",
874
- readOnly: true,
875
- type: {
876
- name: "String"
877
- }
878
- },
879
- name: {
880
- serializedName: "name",
881
- readOnly: true,
882
- type: {
883
- name: "String"
884
- }
885
- },
886
- type: {
887
- serializedName: "type",
888
- readOnly: true,
889
- type: {
890
- name: "String"
891
- }
892
- }
893
- }
894
- }
895
- };
896
- const ErrorResponse = {
897
- type: {
898
- name: "Composite",
899
- className: "ErrorResponse",
900
- modelProperties: {
901
- error: {
902
- serializedName: "error",
903
- type: {
904
- name: "Composite",
905
- className: "ErrorInfo"
906
- }
907
- }
908
- }
909
- }
910
- };
911
- const ErrorInfo = {
912
- type: {
913
- name: "Composite",
914
- className: "ErrorInfo",
915
- modelProperties: {
916
- code: {
917
- serializedName: "code",
918
- required: true,
919
- type: {
920
- name: "String"
921
- }
922
- },
923
- message: {
924
- serializedName: "message",
925
- required: true,
926
- type: {
927
- name: "String"
928
- }
929
- },
930
- details: {
931
- serializedName: "details",
932
- type: {
933
- name: "Sequence",
934
- element: {
935
- type: {
936
- name: "Composite",
937
- className: "ErrorDetail"
938
- }
939
- }
940
- }
941
- },
942
- innererror: {
943
- serializedName: "innererror",
944
- type: {
945
- name: "String"
946
- }
947
- }
948
- }
949
- }
950
- };
951
- const ErrorDetail = {
952
- type: {
953
- name: "Composite",
954
- className: "ErrorDetail",
955
- modelProperties: {
956
- code: {
957
- serializedName: "code",
958
- required: true,
959
- type: {
960
- name: "String"
961
- }
962
- },
963
- message: {
964
- serializedName: "message",
965
- required: true,
966
- type: {
967
- name: "String"
968
- }
969
- },
970
- target: {
971
- serializedName: "target",
972
- type: {
973
- name: "String"
974
- }
975
- }
976
- }
977
- }
978
- };
979
- const WorkspaceUpdate = {
980
- type: {
981
- name: "Composite",
982
- className: "WorkspaceUpdate",
983
- modelProperties: {
984
- tags: {
985
- serializedName: "tags",
986
- type: {
987
- name: "Dictionary",
988
- value: { type: { name: "String" } }
989
- }
990
- }
991
- }
992
- }
993
- };
994
- const WorkspaceListResult = {
995
- type: {
996
- name: "Composite",
997
- className: "WorkspaceListResult",
998
- modelProperties: {
999
- value: {
1000
- serializedName: "value",
1001
- type: {
1002
- name: "Sequence",
1003
- element: {
1004
- type: {
1005
- name: "Composite",
1006
- className: "Workspace"
1007
- }
1008
- }
1009
- }
1010
- },
1011
- nextLink: {
1012
- serializedName: "nextLink",
1013
- type: {
1014
- name: "String"
1015
- }
1016
- }
1017
- }
1018
- }
1019
- };
1020
- const OperationListResult = {
1021
- type: {
1022
- name: "Composite",
1023
- className: "OperationListResult",
1024
- modelProperties: {
1025
- value: {
1026
- serializedName: "value",
1027
- type: {
1028
- name: "Sequence",
1029
- element: {
1030
- type: {
1031
- name: "Composite",
1032
- className: "Operation"
1033
- }
1034
- }
1035
- }
1036
- },
1037
- nextLink: {
1038
- serializedName: "nextLink",
1039
- type: {
1040
- name: "String"
1041
- }
1042
- }
1043
- }
1044
- }
1045
- };
1046
- const Operation = {
1047
- type: {
1048
- name: "Composite",
1049
- className: "Operation",
1050
- modelProperties: {
1051
- name: {
1052
- serializedName: "name",
1053
- type: {
1054
- name: "String"
1055
- }
1056
- },
1057
- display: {
1058
- serializedName: "display",
1059
- type: {
1060
- name: "Composite",
1061
- className: "OperationDisplay"
1062
- }
1063
- }
1064
- }
1065
- }
1066
- };
1067
- const OperationDisplay = {
1068
- type: {
1069
- name: "Composite",
1070
- className: "OperationDisplay",
1071
- modelProperties: {
1072
- provider: {
1073
- serializedName: "provider",
1074
- type: {
1075
- name: "String"
1076
- }
1077
- },
1078
- resource: {
1079
- serializedName: "resource",
1080
- type: {
1081
- name: "String"
1082
- }
1083
- },
1084
- operation: {
1085
- serializedName: "operation",
1086
- type: {
1087
- name: "String"
1088
- }
1089
- },
1090
- description: {
1091
- serializedName: "description",
1092
- type: {
1093
- name: "String"
1094
- }
1095
- }
1096
- }
1097
- }
1098
- };
1099
- const PrivateLinkResourcesList = {
1100
- type: {
1101
- name: "Composite",
1102
- className: "PrivateLinkResourcesList",
1103
- modelProperties: {
1104
- value: {
1105
- serializedName: "value",
1106
- type: {
1107
- name: "Sequence",
1108
- element: {
1109
- type: {
1110
- name: "Composite",
1111
- className: "GroupIdInformation"
1112
- }
1113
- }
1114
- }
1115
- },
1116
- nextLink: {
1117
- serializedName: "nextLink",
1118
- type: {
1119
- name: "String"
1120
- }
1121
- }
1122
- }
1123
- }
1124
- };
1125
- const GroupIdInformationProperties = {
1126
- type: {
1127
- name: "Composite",
1128
- className: "GroupIdInformationProperties",
1129
- modelProperties: {
1130
- groupId: {
1131
- serializedName: "groupId",
1132
- type: {
1133
- name: "String"
1134
- }
1135
- },
1136
- requiredMembers: {
1137
- serializedName: "requiredMembers",
1138
- type: {
1139
- name: "Sequence",
1140
- element: {
1141
- type: {
1142
- name: "String"
1143
- }
1144
- }
1145
- }
1146
- },
1147
- requiredZoneNames: {
1148
- serializedName: "requiredZoneNames",
1149
- type: {
1150
- name: "Sequence",
1151
- element: {
1152
- type: {
1153
- name: "String"
1154
- }
1155
- }
1156
- }
1157
- }
1158
- }
1159
- }
1160
- };
1161
- const PrivateEndpointConnectionsList = {
1162
- type: {
1163
- name: "Composite",
1164
- className: "PrivateEndpointConnectionsList",
1165
- modelProperties: {
1166
- value: {
1167
- serializedName: "value",
1168
- type: {
1169
- name: "Sequence",
1170
- element: {
1171
- type: {
1172
- name: "Composite",
1173
- className: "PrivateEndpointConnection"
1174
- }
1175
- }
1176
- }
1177
- },
1178
- nextLink: {
1179
- serializedName: "nextLink",
1180
- type: {
1181
- name: "String"
1182
- }
1183
- }
1184
- }
1185
- }
1186
- };
1187
- const OutboundEnvironmentEndpoint = {
1188
- type: {
1189
- name: "Composite",
1190
- className: "OutboundEnvironmentEndpoint",
1191
- modelProperties: {
1192
- category: {
1193
- serializedName: "category",
1194
- type: {
1195
- name: "String"
1196
- }
1197
- },
1198
- endpoints: {
1199
- serializedName: "endpoints",
1200
- type: {
1201
- name: "Sequence",
1202
- element: {
1203
- type: {
1204
- name: "Composite",
1205
- className: "EndpointDependency"
1206
- }
1207
- }
1208
- }
1209
- }
1210
- }
1211
- }
1212
- };
1213
- const EndpointDependency = {
1214
- type: {
1215
- name: "Composite",
1216
- className: "EndpointDependency",
1217
- modelProperties: {
1218
- domainName: {
1219
- serializedName: "domainName",
1220
- type: {
1221
- name: "String"
1222
- }
1223
- },
1224
- endpointDetails: {
1225
- serializedName: "endpointDetails",
1226
- type: {
1227
- name: "Sequence",
1228
- element: {
1229
- type: {
1230
- name: "Composite",
1231
- className: "EndpointDetail"
1232
- }
1233
- }
1234
- }
1235
- }
1236
- }
1237
- }
1238
- };
1239
- const EndpointDetail = {
1240
- type: {
1241
- name: "Composite",
1242
- className: "EndpointDetail",
1243
- modelProperties: {
1244
- ipAddress: {
1245
- serializedName: "ipAddress",
1246
- type: {
1247
- name: "String"
1248
- }
1249
- },
1250
- port: {
1251
- serializedName: "port",
1252
- type: {
1253
- name: "Number"
1254
- }
1255
- },
1256
- latency: {
1257
- serializedName: "latency",
1258
- type: {
1259
- name: "Number"
1260
- }
1261
- },
1262
- isAccessible: {
1263
- serializedName: "isAccessible",
1264
- type: {
1265
- name: "Boolean"
1266
- }
1267
- }
1268
- }
1269
- }
1270
- };
1271
- const VirtualNetworkPeering = {
1272
- type: {
1273
- name: "Composite",
1274
- className: "VirtualNetworkPeering",
1275
- modelProperties: {
1276
- name: {
1277
- serializedName: "name",
1278
- readOnly: true,
1279
- type: {
1280
- name: "String"
1281
- }
1282
- },
1283
- id: {
1284
- serializedName: "id",
1285
- readOnly: true,
1286
- type: {
1287
- name: "String"
1288
- }
1289
- },
1290
- type: {
1291
- serializedName: "type",
1292
- readOnly: true,
1293
- type: {
1294
- name: "String"
1295
- }
1296
- },
1297
- allowVirtualNetworkAccess: {
1298
- serializedName: "properties.allowVirtualNetworkAccess",
1299
- type: {
1300
- name: "Boolean"
1301
- }
1302
- },
1303
- allowForwardedTraffic: {
1304
- serializedName: "properties.allowForwardedTraffic",
1305
- type: {
1306
- name: "Boolean"
1307
- }
1308
- },
1309
- allowGatewayTransit: {
1310
- serializedName: "properties.allowGatewayTransit",
1311
- type: {
1312
- name: "Boolean"
1313
- }
1314
- },
1315
- useRemoteGateways: {
1316
- serializedName: "properties.useRemoteGateways",
1317
- type: {
1318
- name: "Boolean"
1319
- }
1320
- },
1321
- databricksVirtualNetwork: {
1322
- serializedName: "properties.databricksVirtualNetwork",
1323
- type: {
1324
- name: "Composite",
1325
- className: "VirtualNetworkPeeringPropertiesFormatDatabricksVirtualNetwork"
1326
- }
1327
- },
1328
- databricksAddressSpace: {
1329
- serializedName: "properties.databricksAddressSpace",
1330
- type: {
1331
- name: "Composite",
1332
- className: "AddressSpace"
1333
- }
1334
- },
1335
- remoteVirtualNetwork: {
1336
- serializedName: "properties.remoteVirtualNetwork",
1337
- type: {
1338
- name: "Composite",
1339
- className: "VirtualNetworkPeeringPropertiesFormatRemoteVirtualNetwork"
1340
- }
1341
- },
1342
- remoteAddressSpace: {
1343
- serializedName: "properties.remoteAddressSpace",
1344
- type: {
1345
- name: "Composite",
1346
- className: "AddressSpace"
1347
- }
1348
- },
1349
- peeringState: {
1350
- serializedName: "properties.peeringState",
1351
- readOnly: true,
1352
- type: {
1353
- name: "String"
1354
- }
1355
- },
1356
- provisioningState: {
1357
- serializedName: "properties.provisioningState",
1358
- readOnly: true,
1359
- type: {
1360
- name: "String"
1361
- }
1362
- }
1363
- }
1364
- }
1365
- };
1366
- const VirtualNetworkPeeringPropertiesFormatDatabricksVirtualNetwork = {
1367
- type: {
1368
- name: "Composite",
1369
- className: "VirtualNetworkPeeringPropertiesFormatDatabricksVirtualNetwork",
1370
- modelProperties: {
1371
- id: {
1372
- serializedName: "id",
1373
- type: {
1374
- name: "String"
1375
- }
1376
- }
1377
- }
1378
- }
1379
- };
1380
- const AddressSpace = {
1381
- type: {
1382
- name: "Composite",
1383
- className: "AddressSpace",
1384
- modelProperties: {
1385
- addressPrefixes: {
1386
- serializedName: "addressPrefixes",
1387
- type: {
1388
- name: "Sequence",
1389
- element: {
1390
- type: {
1391
- name: "String"
1392
- }
1393
- }
1394
- }
1395
- }
1396
- }
1397
- }
1398
- };
1399
- const VirtualNetworkPeeringPropertiesFormatRemoteVirtualNetwork = {
1400
- type: {
1401
- name: "Composite",
1402
- className: "VirtualNetworkPeeringPropertiesFormatRemoteVirtualNetwork",
1403
- modelProperties: {
1404
- id: {
1405
- serializedName: "id",
1406
- type: {
1407
- name: "String"
1408
- }
1409
- }
1410
- }
1411
- }
1412
- };
1413
- const VirtualNetworkPeeringList = {
1414
- type: {
1415
- name: "Composite",
1416
- className: "VirtualNetworkPeeringList",
1417
- modelProperties: {
1418
- value: {
1419
- serializedName: "value",
1420
- type: {
1421
- name: "Sequence",
1422
- element: {
1423
- type: {
1424
- name: "Composite",
1425
- className: "VirtualNetworkPeering"
1426
- }
1427
- }
1428
- }
1429
- },
1430
- nextLink: {
1431
- serializedName: "nextLink",
1432
- type: {
1433
- name: "String"
1434
- }
1435
- }
1436
- }
1437
- }
1438
- };
1439
- const ManagedServiceIdentity = {
1440
- type: {
1441
- name: "Composite",
1442
- className: "ManagedServiceIdentity",
1443
- modelProperties: {
1444
- principalId: {
1445
- serializedName: "principalId",
1446
- readOnly: true,
1447
- type: {
1448
- name: "Uuid"
1449
- }
1450
- },
1451
- tenantId: {
1452
- serializedName: "tenantId",
1453
- readOnly: true,
1454
- type: {
1455
- name: "Uuid"
1456
- }
1457
- },
1458
- type: {
1459
- serializedName: "type",
1460
- required: true,
1461
- type: {
1462
- name: "String"
1463
- }
1464
- },
1465
- userAssignedIdentities: {
1466
- serializedName: "userAssignedIdentities",
1467
- type: {
1468
- name: "Dictionary",
1469
- value: {
1470
- type: { name: "Composite", className: "UserAssignedIdentity" }
1471
- }
1472
- }
1473
- }
1474
- }
1475
- }
1476
- };
1477
- const UserAssignedIdentity = {
1478
- type: {
1479
- name: "Composite",
1480
- className: "UserAssignedIdentity",
1481
- modelProperties: {
1482
- principalId: {
1483
- serializedName: "principalId",
1484
- readOnly: true,
1485
- type: {
1486
- name: "Uuid"
1487
- }
1488
- },
1489
- clientId: {
1490
- serializedName: "clientId",
1491
- readOnly: true,
1492
- type: {
1493
- name: "Uuid"
1494
- }
1495
- }
1496
- }
1497
- }
1498
- };
1499
- const AccessConnectorProperties = {
1500
- type: {
1501
- name: "Composite",
1502
- className: "AccessConnectorProperties",
1503
- modelProperties: {
1504
- provisioningState: {
1505
- serializedName: "provisioningState",
1506
- readOnly: true,
1507
- type: {
1508
- name: "String"
1509
- }
1510
- }
1511
- }
1512
- }
1513
- };
1514
- const AccessConnectorUpdate = {
1515
- type: {
1516
- name: "Composite",
1517
- className: "AccessConnectorUpdate",
1518
- modelProperties: {
1519
- tags: {
1520
- serializedName: "tags",
1521
- type: {
1522
- name: "Dictionary",
1523
- value: { type: { name: "String" } }
1524
- }
1525
- },
1526
- identity: {
1527
- serializedName: "identity",
1528
- type: {
1529
- name: "Composite",
1530
- className: "ManagedServiceIdentity"
1531
- }
1532
- }
1533
- }
1534
- }
1535
- };
1536
- const AccessConnectorListResult = {
1537
- type: {
1538
- name: "Composite",
1539
- className: "AccessConnectorListResult",
1540
- modelProperties: {
1541
- value: {
1542
- serializedName: "value",
1543
- type: {
1544
- name: "Sequence",
1545
- element: {
1546
- type: {
1547
- name: "Composite",
1548
- className: "AccessConnector"
1549
- }
1550
- }
1551
- }
1552
- },
1553
- nextLink: {
1554
- serializedName: "nextLink",
1555
- type: {
1556
- name: "String"
1557
- }
1558
- }
1559
- }
1560
- }
1561
- };
1562
- const TrackedResource = {
1563
- type: {
1564
- name: "Composite",
1565
- className: "TrackedResource",
1566
- modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { tags: {
1567
- serializedName: "tags",
1568
- type: {
1569
- name: "Dictionary",
1570
- value: { type: { name: "String" } }
1571
- }
1572
- }, location: {
1573
- serializedName: "location",
1574
- required: true,
1575
- type: {
1576
- name: "String"
1577
- }
1578
- } })
1579
- }
1580
- };
1581
- const GroupIdInformation = {
1582
- type: {
1583
- name: "Composite",
1584
- className: "GroupIdInformation",
1585
- modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { properties: {
1586
- serializedName: "properties",
1587
- type: {
1588
- name: "Composite",
1589
- className: "GroupIdInformationProperties"
1590
- }
1591
- } })
1592
- }
1593
- };
1594
- const Workspace = {
1595
- type: {
1596
- name: "Composite",
1597
- className: "Workspace",
1598
- modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { sku: {
1599
- serializedName: "sku",
1600
- type: {
1601
- name: "Composite",
1602
- className: "Sku"
1603
- }
1604
- }, systemData: {
1605
- serializedName: "systemData",
1606
- type: {
1607
- name: "Composite",
1608
- className: "SystemData"
1609
- }
1610
- }, managedResourceGroupId: {
1611
- serializedName: "properties.managedResourceGroupId",
1612
- required: true,
1613
- type: {
1614
- name: "String"
1615
- }
1616
- }, parameters: {
1617
- serializedName: "properties.parameters",
1618
- type: {
1619
- name: "Composite",
1620
- className: "WorkspaceCustomParameters"
1621
- }
1622
- }, provisioningState: {
1623
- serializedName: "properties.provisioningState",
1624
- readOnly: true,
1625
- type: {
1626
- name: "String"
1627
- }
1628
- }, uiDefinitionUri: {
1629
- serializedName: "properties.uiDefinitionUri",
1630
- type: {
1631
- name: "String"
1632
- }
1633
- }, authorizations: {
1634
- serializedName: "properties.authorizations",
1635
- type: {
1636
- name: "Sequence",
1637
- element: {
1638
- type: {
1639
- name: "Composite",
1640
- className: "WorkspaceProviderAuthorization"
1641
- }
1642
- }
1643
- }
1644
- }, createdBy: {
1645
- serializedName: "properties.createdBy",
1646
- type: {
1647
- name: "Composite",
1648
- className: "CreatedBy"
1649
- }
1650
- }, updatedBy: {
1651
- serializedName: "properties.updatedBy",
1652
- type: {
1653
- name: "Composite",
1654
- className: "CreatedBy"
1655
- }
1656
- }, createdDateTime: {
1657
- serializedName: "properties.createdDateTime",
1658
- readOnly: true,
1659
- type: {
1660
- name: "DateTime"
1661
- }
1662
- }, workspaceId: {
1663
- serializedName: "properties.workspaceId",
1664
- readOnly: true,
1665
- type: {
1666
- name: "String"
1667
- }
1668
- }, workspaceUrl: {
1669
- serializedName: "properties.workspaceUrl",
1670
- readOnly: true,
1671
- type: {
1672
- name: "String"
1673
- }
1674
- }, storageAccountIdentity: {
1675
- serializedName: "properties.storageAccountIdentity",
1676
- type: {
1677
- name: "Composite",
1678
- className: "ManagedIdentityConfiguration"
1679
- }
1680
- }, managedDiskIdentity: {
1681
- serializedName: "properties.managedDiskIdentity",
1682
- type: {
1683
- name: "Composite",
1684
- className: "ManagedIdentityConfiguration"
1685
- }
1686
- }, diskEncryptionSetId: {
1687
- serializedName: "properties.diskEncryptionSetId",
1688
- readOnly: true,
1689
- type: {
1690
- name: "String"
1691
- }
1692
- }, encryption: {
1693
- serializedName: "properties.encryption",
1694
- type: {
1695
- name: "Composite",
1696
- className: "WorkspacePropertiesEncryption"
1697
- }
1698
- }, privateEndpointConnections: {
1699
- serializedName: "properties.privateEndpointConnections",
1700
- readOnly: true,
1701
- type: {
1702
- name: "Sequence",
1703
- element: {
1704
- type: {
1705
- name: "Composite",
1706
- className: "PrivateEndpointConnection"
1707
- }
1708
- }
1709
- }
1710
- }, publicNetworkAccess: {
1711
- serializedName: "properties.publicNetworkAccess",
1712
- type: {
1713
- name: "String"
1714
- }
1715
- }, requiredNsgRules: {
1716
- serializedName: "properties.requiredNsgRules",
1717
- type: {
1718
- name: "String"
1719
- }
1720
- } })
1721
- }
1722
- };
1723
- const AccessConnector = {
1724
- type: {
1725
- name: "Composite",
1726
- className: "AccessConnector",
1727
- modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { identity: {
1728
- serializedName: "identity",
1729
- type: {
1730
- name: "Composite",
1731
- className: "ManagedServiceIdentity"
1732
- }
1733
- }, systemData: {
1734
- serializedName: "systemData",
1735
- type: {
1736
- name: "Composite",
1737
- className: "SystemData"
1738
- }
1739
- }, properties: {
1740
- serializedName: "properties",
1741
- type: {
1742
- name: "Composite",
1743
- className: "AccessConnectorProperties"
1744
- }
1745
- } })
1746
- }
1747
- };
1748
-
1749
- var Mappers = /*#__PURE__*/Object.freeze({
1750
- __proto__: null,
1751
- AccessConnector: AccessConnector,
1752
- AccessConnectorListResult: AccessConnectorListResult,
1753
- AccessConnectorProperties: AccessConnectorProperties,
1754
- AccessConnectorUpdate: AccessConnectorUpdate,
1755
- AddressSpace: AddressSpace,
1756
- CreatedBy: CreatedBy,
1757
- Encryption: Encryption,
1758
- EncryptionEntitiesDefinition: EncryptionEntitiesDefinition,
1759
- EncryptionV2: EncryptionV2,
1760
- EncryptionV2KeyVaultProperties: EncryptionV2KeyVaultProperties,
1761
- EndpointDependency: EndpointDependency,
1762
- EndpointDetail: EndpointDetail,
1763
- ErrorDetail: ErrorDetail,
1764
- ErrorInfo: ErrorInfo,
1765
- ErrorResponse: ErrorResponse,
1766
- GroupIdInformation: GroupIdInformation,
1767
- GroupIdInformationProperties: GroupIdInformationProperties,
1768
- ManagedDiskEncryption: ManagedDiskEncryption,
1769
- ManagedDiskEncryptionKeyVaultProperties: ManagedDiskEncryptionKeyVaultProperties,
1770
- ManagedIdentityConfiguration: ManagedIdentityConfiguration,
1771
- ManagedServiceIdentity: ManagedServiceIdentity,
1772
- Operation: Operation,
1773
- OperationDisplay: OperationDisplay,
1774
- OperationListResult: OperationListResult,
1775
- OutboundEnvironmentEndpoint: OutboundEnvironmentEndpoint,
1776
- PrivateEndpoint: PrivateEndpoint,
1777
- PrivateEndpointConnection: PrivateEndpointConnection,
1778
- PrivateEndpointConnectionProperties: PrivateEndpointConnectionProperties,
1779
- PrivateEndpointConnectionsList: PrivateEndpointConnectionsList,
1780
- PrivateLinkResourcesList: PrivateLinkResourcesList,
1781
- PrivateLinkServiceConnectionState: PrivateLinkServiceConnectionState,
1782
- Resource: Resource,
1783
- Sku: Sku,
1784
- SystemData: SystemData,
1785
- TrackedResource: TrackedResource,
1786
- UserAssignedIdentity: UserAssignedIdentity,
1787
- VirtualNetworkPeering: VirtualNetworkPeering,
1788
- VirtualNetworkPeeringList: VirtualNetworkPeeringList,
1789
- VirtualNetworkPeeringPropertiesFormatDatabricksVirtualNetwork: VirtualNetworkPeeringPropertiesFormatDatabricksVirtualNetwork,
1790
- VirtualNetworkPeeringPropertiesFormatRemoteVirtualNetwork: VirtualNetworkPeeringPropertiesFormatRemoteVirtualNetwork,
1791
- Workspace: Workspace,
1792
- WorkspaceCustomBooleanParameter: WorkspaceCustomBooleanParameter,
1793
- WorkspaceCustomObjectParameter: WorkspaceCustomObjectParameter,
1794
- WorkspaceCustomParameters: WorkspaceCustomParameters,
1795
- WorkspaceCustomStringParameter: WorkspaceCustomStringParameter,
1796
- WorkspaceEncryptionParameter: WorkspaceEncryptionParameter,
1797
- WorkspaceListResult: WorkspaceListResult,
1798
- WorkspacePropertiesEncryption: WorkspacePropertiesEncryption,
1799
- WorkspaceProviderAuthorization: WorkspaceProviderAuthorization,
1800
- WorkspaceUpdate: WorkspaceUpdate
1801
- });
1802
-
1803
- /*
1804
- * Copyright (c) Microsoft Corporation.
1805
- * Licensed under the MIT License.
1806
- *
1807
- * Code generated by Microsoft (R) AutoRest Code Generator.
1808
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1809
- */
1810
- const accept = {
1811
- parameterPath: "accept",
1812
- mapper: {
1813
- defaultValue: "application/json",
1814
- isConstant: true,
1815
- serializedName: "Accept",
1816
- type: {
1817
- name: "String"
1818
- }
1819
- }
1820
- };
1821
- const $host = {
1822
- parameterPath: "$host",
1823
- mapper: {
1824
- serializedName: "$host",
1825
- required: true,
1826
- type: {
1827
- name: "String"
1828
- }
1829
- },
1830
- skipEncoding: true
1831
- };
1832
- const resourceGroupName = {
1833
- parameterPath: "resourceGroupName",
1834
- mapper: {
1835
- constraints: {
1836
- Pattern: new RegExp("^[-\\w\\._\\(\\)]+$"),
1837
- MaxLength: 90,
1838
- MinLength: 1
1839
- },
1840
- serializedName: "resourceGroupName",
1841
- required: true,
1842
- type: {
1843
- name: "String"
1844
- }
1845
- }
1846
- };
1847
- const workspaceName = {
1848
- parameterPath: "workspaceName",
1849
- mapper: {
1850
- constraints: {
1851
- MaxLength: 64,
1852
- MinLength: 3
1853
- },
1854
- serializedName: "workspaceName",
1855
- required: true,
1856
- type: {
1857
- name: "String"
1858
- }
1859
- }
1860
- };
1861
- const apiVersion = {
1862
- parameterPath: "apiVersion",
1863
- mapper: {
1864
- defaultValue: "2023-02-01",
1865
- isConstant: true,
1866
- serializedName: "api-version",
1867
- type: {
1868
- name: "String"
1869
- }
1870
- }
1871
- };
1872
- const subscriptionId = {
1873
- parameterPath: "subscriptionId",
1874
- mapper: {
1875
- serializedName: "subscriptionId",
1876
- required: true,
1877
- type: {
1878
- name: "String"
1879
- }
1880
- }
1881
- };
1882
- const contentType = {
1883
- parameterPath: ["options", "contentType"],
1884
- mapper: {
1885
- defaultValue: "application/json",
1886
- isConstant: true,
1887
- serializedName: "Content-Type",
1888
- type: {
1889
- name: "String"
1890
- }
1891
- }
1892
- };
1893
- const parameters = {
1894
- parameterPath: "parameters",
1895
- mapper: Workspace
1896
- };
1897
- const parameters1 = {
1898
- parameterPath: "parameters",
1899
- mapper: WorkspaceUpdate
1900
- };
1901
- const nextLink = {
1902
- parameterPath: "nextLink",
1903
- mapper: {
1904
- serializedName: "nextLink",
1905
- required: true,
1906
- type: {
1907
- name: "String"
1908
- }
1909
- },
1910
- skipEncoding: true
1911
- };
1912
- const groupId = {
1913
- parameterPath: "groupId",
1914
- mapper: {
1915
- serializedName: "groupId",
1916
- required: true,
1917
- type: {
1918
- name: "String"
1919
- }
1920
- }
1921
- };
1922
- const privateEndpointConnectionName = {
1923
- parameterPath: "privateEndpointConnectionName",
1924
- mapper: {
1925
- serializedName: "privateEndpointConnectionName",
1926
- required: true,
1927
- type: {
1928
- name: "String"
1929
- }
1930
- }
1931
- };
1932
- const privateEndpointConnection = {
1933
- parameterPath: "privateEndpointConnection",
1934
- mapper: PrivateEndpointConnection
1935
- };
1936
- const peeringName = {
1937
- parameterPath: "peeringName",
1938
- mapper: {
1939
- serializedName: "peeringName",
1940
- required: true,
1941
- type: {
1942
- name: "String"
1943
- }
1944
- }
1945
- };
1946
- const virtualNetworkPeeringParameters = {
1947
- parameterPath: "virtualNetworkPeeringParameters",
1948
- mapper: VirtualNetworkPeering
1949
- };
1950
- const connectorName = {
1951
- parameterPath: "connectorName",
1952
- mapper: {
1953
- constraints: {
1954
- MaxLength: 64,
1955
- MinLength: 3
1956
- },
1957
- serializedName: "connectorName",
1958
- required: true,
1959
- type: {
1960
- name: "String"
1961
- }
1962
- }
1963
- };
1964
- const apiVersion1 = {
1965
- parameterPath: "apiVersion",
1966
- mapper: {
1967
- defaultValue: "2023-05-01",
1968
- isConstant: true,
1969
- serializedName: "api-version",
1970
- type: {
1971
- name: "String"
1972
- }
1973
- }
1974
- };
1975
- const parameters2 = {
1976
- parameterPath: "parameters",
1977
- mapper: AccessConnector
1978
- };
1979
- const parameters3 = {
1980
- parameterPath: "parameters",
1981
- mapper: AccessConnectorUpdate
1982
- };
1983
-
1984
- /*
1985
- * Copyright (c) Microsoft Corporation.
1986
- * Licensed under the MIT License.
1987
- *
1988
- * Code generated by Microsoft (R) AutoRest Code Generator.
1989
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1990
- */
1991
- function createLroSpec(inputs) {
1992
- const { args, spec, sendOperationFn } = inputs;
1993
- return {
1994
- requestMethod: spec.httpMethod,
1995
- requestPath: spec.path,
1996
- sendInitialRequest: () => sendOperationFn(args, spec),
1997
- sendPollRequest: (path, options) => {
1998
- const restSpec = tslib.__rest(spec, ["requestBody"]);
1999
- return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
2000
- }
2001
- };
2002
- }
2003
-
2004
- /*
2005
- * Copyright (c) Microsoft Corporation.
2006
- * Licensed under the MIT License.
2007
- *
2008
- * Code generated by Microsoft (R) AutoRest Code Generator.
2009
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2010
- */
2011
- /// <reference lib="esnext.asynciterable" />
2012
- /** Class containing Workspaces operations. */
2013
- class WorkspacesImpl {
2014
- /**
2015
- * Initialize a new instance of the class Workspaces class.
2016
- * @param client Reference to the service client
2017
- */
2018
- constructor(client) {
2019
- this.client = client;
2020
- }
2021
- /**
2022
- * Gets all the workspaces within a resource group.
2023
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2024
- * @param options The options parameters.
2025
- */
2026
- listByResourceGroup(resourceGroupName, options) {
2027
- const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
2028
- return {
2029
- next() {
2030
- return iter.next();
2031
- },
2032
- [Symbol.asyncIterator]() {
2033
- return this;
2034
- },
2035
- byPage: (settings) => {
2036
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
2037
- throw new Error("maxPageSize is not supported by this operation.");
2038
- }
2039
- return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
2040
- }
2041
- };
2042
- }
2043
- listByResourceGroupPagingPage(resourceGroupName, options, settings) {
2044
- return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
2045
- let result;
2046
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
2047
- if (!continuationToken) {
2048
- result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
2049
- let page = result.value || [];
2050
- continuationToken = result.nextLink;
2051
- setContinuationToken(page, continuationToken);
2052
- yield yield tslib.__await(page);
2053
- }
2054
- while (continuationToken) {
2055
- result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
2056
- continuationToken = result.nextLink;
2057
- let page = result.value || [];
2058
- setContinuationToken(page, continuationToken);
2059
- yield yield tslib.__await(page);
2060
- }
2061
- });
2062
- }
2063
- listByResourceGroupPagingAll(resourceGroupName, options) {
2064
- return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
2065
- var _a, e_1, _b, _c;
2066
- try {
2067
- for (var _d = true, _e = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
2068
- _c = _f.value;
2069
- _d = false;
2070
- const page = _c;
2071
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2072
- }
2073
- }
2074
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
2075
- finally {
2076
- try {
2077
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
2078
- }
2079
- finally { if (e_1) throw e_1.error; }
2080
- }
2081
- });
2082
- }
2083
- /**
2084
- * Gets all the workspaces within a subscription.
2085
- * @param options The options parameters.
2086
- */
2087
- listBySubscription(options) {
2088
- const iter = this.listBySubscriptionPagingAll(options);
2089
- return {
2090
- next() {
2091
- return iter.next();
2092
- },
2093
- [Symbol.asyncIterator]() {
2094
- return this;
2095
- },
2096
- byPage: (settings) => {
2097
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
2098
- throw new Error("maxPageSize is not supported by this operation.");
2099
- }
2100
- return this.listBySubscriptionPagingPage(options, settings);
2101
- }
2102
- };
2103
- }
2104
- listBySubscriptionPagingPage(options, settings) {
2105
- return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
2106
- let result;
2107
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
2108
- if (!continuationToken) {
2109
- result = yield tslib.__await(this._listBySubscription(options));
2110
- let page = result.value || [];
2111
- continuationToken = result.nextLink;
2112
- setContinuationToken(page, continuationToken);
2113
- yield yield tslib.__await(page);
2114
- }
2115
- while (continuationToken) {
2116
- result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
2117
- continuationToken = result.nextLink;
2118
- let page = result.value || [];
2119
- setContinuationToken(page, continuationToken);
2120
- yield yield tslib.__await(page);
2121
- }
2122
- });
2123
- }
2124
- listBySubscriptionPagingAll(options) {
2125
- return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
2126
- var _a, e_2, _b, _c;
2127
- try {
2128
- for (var _d = true, _e = tslib.__asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
2129
- _c = _f.value;
2130
- _d = false;
2131
- const page = _c;
2132
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2133
- }
2134
- }
2135
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
2136
- finally {
2137
- try {
2138
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
2139
- }
2140
- finally { if (e_2) throw e_2.error; }
2141
- }
2142
- });
2143
- }
2144
- /**
2145
- * Gets the workspace.
2146
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2147
- * @param workspaceName The name of the workspace.
2148
- * @param options The options parameters.
2149
- */
2150
- get(resourceGroupName, workspaceName, options) {
2151
- return this.client.sendOperationRequest({ resourceGroupName, workspaceName, options }, getOperationSpec$4);
2152
- }
2153
- /**
2154
- * Deletes the workspace.
2155
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2156
- * @param workspaceName The name of the workspace.
2157
- * @param options The options parameters.
2158
- */
2159
- beginDelete(resourceGroupName, workspaceName, options) {
2160
- return tslib.__awaiter(this, void 0, void 0, function* () {
2161
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2162
- return this.client.sendOperationRequest(args, spec);
2163
- });
2164
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2165
- var _a;
2166
- let currentRawResponse = undefined;
2167
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2168
- const callback = (rawResponse, flatResponse) => {
2169
- currentRawResponse = rawResponse;
2170
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2171
- };
2172
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2173
- const flatResponse = yield directSendOperation(updatedArgs, spec);
2174
- return {
2175
- flatResponse,
2176
- rawResponse: {
2177
- statusCode: currentRawResponse.status,
2178
- body: currentRawResponse.parsedBody,
2179
- headers: currentRawResponse.headers.toJSON()
2180
- }
2181
- };
2182
- });
2183
- const lro = createLroSpec({
2184
- sendOperationFn,
2185
- args: { resourceGroupName, workspaceName, options },
2186
- spec: deleteOperationSpec$3
2187
- });
2188
- const poller = yield coreLro.createHttpPoller(lro, {
2189
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2190
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
2191
- });
2192
- yield poller.poll();
2193
- return poller;
2194
- });
2195
- }
2196
- /**
2197
- * Deletes the workspace.
2198
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2199
- * @param workspaceName The name of the workspace.
2200
- * @param options The options parameters.
2201
- */
2202
- beginDeleteAndWait(resourceGroupName, workspaceName, options) {
2203
- return tslib.__awaiter(this, void 0, void 0, function* () {
2204
- const poller = yield this.beginDelete(resourceGroupName, workspaceName, options);
2205
- return poller.pollUntilDone();
2206
- });
2207
- }
2208
- /**
2209
- * Creates a new workspace.
2210
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2211
- * @param workspaceName The name of the workspace.
2212
- * @param parameters Parameters supplied to the create or update a workspace.
2213
- * @param options The options parameters.
2214
- */
2215
- beginCreateOrUpdate(resourceGroupName, workspaceName, parameters, options) {
2216
- return tslib.__awaiter(this, void 0, void 0, function* () {
2217
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2218
- return this.client.sendOperationRequest(args, spec);
2219
- });
2220
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2221
- var _a;
2222
- let currentRawResponse = undefined;
2223
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2224
- const callback = (rawResponse, flatResponse) => {
2225
- currentRawResponse = rawResponse;
2226
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2227
- };
2228
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2229
- const flatResponse = yield directSendOperation(updatedArgs, spec);
2230
- return {
2231
- flatResponse,
2232
- rawResponse: {
2233
- statusCode: currentRawResponse.status,
2234
- body: currentRawResponse.parsedBody,
2235
- headers: currentRawResponse.headers.toJSON()
2236
- }
2237
- };
2238
- });
2239
- const lro = createLroSpec({
2240
- sendOperationFn,
2241
- args: { resourceGroupName, workspaceName, parameters, options },
2242
- spec: createOrUpdateOperationSpec$2
2243
- });
2244
- const poller = yield coreLro.createHttpPoller(lro, {
2245
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2246
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
2247
- });
2248
- yield poller.poll();
2249
- return poller;
2250
- });
2251
- }
2252
- /**
2253
- * Creates a new workspace.
2254
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2255
- * @param workspaceName The name of the workspace.
2256
- * @param parameters Parameters supplied to the create or update a workspace.
2257
- * @param options The options parameters.
2258
- */
2259
- beginCreateOrUpdateAndWait(resourceGroupName, workspaceName, parameters, options) {
2260
- return tslib.__awaiter(this, void 0, void 0, function* () {
2261
- const poller = yield this.beginCreateOrUpdate(resourceGroupName, workspaceName, parameters, options);
2262
- return poller.pollUntilDone();
2263
- });
2264
- }
2265
- /**
2266
- * Updates a workspace.
2267
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2268
- * @param workspaceName The name of the workspace.
2269
- * @param parameters The update to the workspace.
2270
- * @param options The options parameters.
2271
- */
2272
- beginUpdate(resourceGroupName, workspaceName, parameters, options) {
2273
- return tslib.__awaiter(this, void 0, void 0, function* () {
2274
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2275
- return this.client.sendOperationRequest(args, spec);
2276
- });
2277
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2278
- var _a;
2279
- let currentRawResponse = undefined;
2280
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2281
- const callback = (rawResponse, flatResponse) => {
2282
- currentRawResponse = rawResponse;
2283
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2284
- };
2285
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2286
- const flatResponse = yield directSendOperation(updatedArgs, spec);
2287
- return {
2288
- flatResponse,
2289
- rawResponse: {
2290
- statusCode: currentRawResponse.status,
2291
- body: currentRawResponse.parsedBody,
2292
- headers: currentRawResponse.headers.toJSON()
2293
- }
2294
- };
2295
- });
2296
- const lro = createLroSpec({
2297
- sendOperationFn,
2298
- args: { resourceGroupName, workspaceName, parameters, options },
2299
- spec: updateOperationSpec$1
2300
- });
2301
- const poller = yield coreLro.createHttpPoller(lro, {
2302
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2303
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
2304
- });
2305
- yield poller.poll();
2306
- return poller;
2307
- });
2308
- }
2309
- /**
2310
- * Updates a workspace.
2311
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2312
- * @param workspaceName The name of the workspace.
2313
- * @param parameters The update to the workspace.
2314
- * @param options The options parameters.
2315
- */
2316
- beginUpdateAndWait(resourceGroupName, workspaceName, parameters, options) {
2317
- return tslib.__awaiter(this, void 0, void 0, function* () {
2318
- const poller = yield this.beginUpdate(resourceGroupName, workspaceName, parameters, options);
2319
- return poller.pollUntilDone();
2320
- });
2321
- }
2322
- /**
2323
- * Gets all the workspaces within a resource group.
2324
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2325
- * @param options The options parameters.
2326
- */
2327
- _listByResourceGroup(resourceGroupName, options) {
2328
- return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec$1);
2329
- }
2330
- /**
2331
- * Gets all the workspaces within a subscription.
2332
- * @param options The options parameters.
2333
- */
2334
- _listBySubscription(options) {
2335
- return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec$1);
2336
- }
2337
- /**
2338
- * ListByResourceGroupNext
2339
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2340
- * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
2341
- * @param options The options parameters.
2342
- */
2343
- _listByResourceGroupNext(resourceGroupName, nextLink, options) {
2344
- return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec$1);
2345
- }
2346
- /**
2347
- * ListBySubscriptionNext
2348
- * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
2349
- * @param options The options parameters.
2350
- */
2351
- _listBySubscriptionNext(nextLink, options) {
2352
- return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec$1);
2353
- }
2354
- }
2355
- // Operation Specifications
2356
- const serializer$6 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
2357
- const getOperationSpec$4 = {
2358
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}",
2359
- httpMethod: "GET",
2360
- responses: {
2361
- 200: {
2362
- bodyMapper: Workspace
2363
- },
2364
- default: {
2365
- bodyMapper: ErrorResponse
2366
- }
2367
- },
2368
- queryParameters: [apiVersion],
2369
- urlParameters: [
2370
- $host,
2371
- resourceGroupName,
2372
- workspaceName,
2373
- subscriptionId
2374
- ],
2375
- headerParameters: [accept],
2376
- serializer: serializer$6
2377
- };
2378
- const deleteOperationSpec$3 = {
2379
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}",
2380
- httpMethod: "DELETE",
2381
- responses: {
2382
- 200: {},
2383
- 201: {},
2384
- 202: {},
2385
- 204: {},
2386
- default: {
2387
- bodyMapper: ErrorResponse
2388
- }
2389
- },
2390
- queryParameters: [apiVersion],
2391
- urlParameters: [
2392
- $host,
2393
- resourceGroupName,
2394
- workspaceName,
2395
- subscriptionId
2396
- ],
2397
- headerParameters: [accept],
2398
- serializer: serializer$6
2399
- };
2400
- const createOrUpdateOperationSpec$2 = {
2401
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}",
2402
- httpMethod: "PUT",
2403
- responses: {
2404
- 200: {
2405
- bodyMapper: Workspace
2406
- },
2407
- 201: {
2408
- bodyMapper: Workspace
2409
- },
2410
- 202: {
2411
- bodyMapper: Workspace
2412
- },
2413
- 204: {
2414
- bodyMapper: Workspace
2415
- },
2416
- default: {
2417
- bodyMapper: ErrorResponse
2418
- }
2419
- },
2420
- requestBody: parameters,
2421
- queryParameters: [apiVersion],
2422
- urlParameters: [
2423
- $host,
2424
- resourceGroupName,
2425
- workspaceName,
2426
- subscriptionId
2427
- ],
2428
- headerParameters: [accept, contentType],
2429
- mediaType: "json",
2430
- serializer: serializer$6
2431
- };
2432
- const updateOperationSpec$1 = {
2433
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}",
2434
- httpMethod: "PATCH",
2435
- responses: {
2436
- 200: {
2437
- bodyMapper: Workspace
2438
- },
2439
- 201: {
2440
- bodyMapper: Workspace
2441
- },
2442
- 202: {
2443
- bodyMapper: Workspace
2444
- },
2445
- 204: {
2446
- bodyMapper: Workspace
2447
- },
2448
- default: {
2449
- bodyMapper: ErrorResponse
2450
- }
2451
- },
2452
- requestBody: parameters1,
2453
- queryParameters: [apiVersion],
2454
- urlParameters: [
2455
- $host,
2456
- resourceGroupName,
2457
- workspaceName,
2458
- subscriptionId
2459
- ],
2460
- headerParameters: [accept, contentType],
2461
- mediaType: "json",
2462
- serializer: serializer$6
2463
- };
2464
- const listByResourceGroupOperationSpec$1 = {
2465
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces",
2466
- httpMethod: "GET",
2467
- responses: {
2468
- 200: {
2469
- bodyMapper: WorkspaceListResult
2470
- },
2471
- default: {
2472
- bodyMapper: ErrorResponse
2473
- }
2474
- },
2475
- queryParameters: [apiVersion],
2476
- urlParameters: [
2477
- $host,
2478
- resourceGroupName,
2479
- subscriptionId
2480
- ],
2481
- headerParameters: [accept],
2482
- serializer: serializer$6
2483
- };
2484
- const listBySubscriptionOperationSpec$1 = {
2485
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.Databricks/workspaces",
2486
- httpMethod: "GET",
2487
- responses: {
2488
- 200: {
2489
- bodyMapper: WorkspaceListResult
2490
- },
2491
- default: {
2492
- bodyMapper: ErrorResponse
2493
- }
2494
- },
2495
- queryParameters: [apiVersion],
2496
- urlParameters: [$host, subscriptionId],
2497
- headerParameters: [accept],
2498
- serializer: serializer$6
2499
- };
2500
- const listByResourceGroupNextOperationSpec$1 = {
2501
- path: "{nextLink}",
2502
- httpMethod: "GET",
2503
- responses: {
2504
- 200: {
2505
- bodyMapper: WorkspaceListResult
2506
- },
2507
- default: {
2508
- bodyMapper: ErrorResponse
2509
- }
2510
- },
2511
- urlParameters: [
2512
- $host,
2513
- resourceGroupName,
2514
- subscriptionId,
2515
- nextLink
2516
- ],
2517
- headerParameters: [accept],
2518
- serializer: serializer$6
2519
- };
2520
- const listBySubscriptionNextOperationSpec$1 = {
2521
- path: "{nextLink}",
2522
- httpMethod: "GET",
2523
- responses: {
2524
- 200: {
2525
- bodyMapper: WorkspaceListResult
2526
- },
2527
- default: {
2528
- bodyMapper: ErrorResponse
2529
- }
2530
- },
2531
- urlParameters: [
2532
- $host,
2533
- subscriptionId,
2534
- nextLink
2535
- ],
2536
- headerParameters: [accept],
2537
- serializer: serializer$6
2538
- };
2539
-
2540
- /*
2541
- * Copyright (c) Microsoft Corporation.
2542
- * Licensed under the MIT License.
2543
- *
2544
- * Code generated by Microsoft (R) AutoRest Code Generator.
2545
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2546
- */
2547
- /// <reference lib="esnext.asynciterable" />
2548
- /** Class containing Operations operations. */
2549
- class OperationsImpl {
2550
- /**
2551
- * Initialize a new instance of the class Operations class.
2552
- * @param client Reference to the service client
2553
- */
2554
- constructor(client) {
2555
- this.client = client;
2556
- }
2557
- /**
2558
- * Lists all of the available RP operations.
2559
- * @param options The options parameters.
2560
- */
2561
- list(options) {
2562
- const iter = this.listPagingAll(options);
2563
- return {
2564
- next() {
2565
- return iter.next();
2566
- },
2567
- [Symbol.asyncIterator]() {
2568
- return this;
2569
- },
2570
- byPage: (settings) => {
2571
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
2572
- throw new Error("maxPageSize is not supported by this operation.");
2573
- }
2574
- return this.listPagingPage(options, settings);
2575
- }
2576
- };
2577
- }
2578
- listPagingPage(options, settings) {
2579
- return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
2580
- let result;
2581
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
2582
- if (!continuationToken) {
2583
- result = yield tslib.__await(this._list(options));
2584
- let page = result.value || [];
2585
- continuationToken = result.nextLink;
2586
- setContinuationToken(page, continuationToken);
2587
- yield yield tslib.__await(page);
2588
- }
2589
- while (continuationToken) {
2590
- result = yield tslib.__await(this._listNext(continuationToken, options));
2591
- continuationToken = result.nextLink;
2592
- let page = result.value || [];
2593
- setContinuationToken(page, continuationToken);
2594
- yield yield tslib.__await(page);
2595
- }
2596
- });
2597
- }
2598
- listPagingAll(options) {
2599
- return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
2600
- var _a, e_1, _b, _c;
2601
- try {
2602
- for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
2603
- _c = _f.value;
2604
- _d = false;
2605
- const page = _c;
2606
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2607
- }
2608
- }
2609
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
2610
- finally {
2611
- try {
2612
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
2613
- }
2614
- finally { if (e_1) throw e_1.error; }
2615
- }
2616
- });
2617
- }
2618
- /**
2619
- * Lists all of the available RP operations.
2620
- * @param options The options parameters.
2621
- */
2622
- _list(options) {
2623
- return this.client.sendOperationRequest({ options }, listOperationSpec$3);
2624
- }
2625
- /**
2626
- * ListNext
2627
- * @param nextLink The nextLink from the previous successful call to the List method.
2628
- * @param options The options parameters.
2629
- */
2630
- _listNext(nextLink, options) {
2631
- return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$2);
2632
- }
2633
- }
2634
- // Operation Specifications
2635
- const serializer$5 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
2636
- const listOperationSpec$3 = {
2637
- path: "/providers/Microsoft.Databricks/operations",
2638
- httpMethod: "GET",
2639
- responses: {
2640
- 200: {
2641
- bodyMapper: OperationListResult
2642
- },
2643
- default: {
2644
- bodyMapper: ErrorResponse
2645
- }
2646
- },
2647
- queryParameters: [apiVersion],
2648
- urlParameters: [$host],
2649
- headerParameters: [accept],
2650
- serializer: serializer$5
2651
- };
2652
- const listNextOperationSpec$2 = {
2653
- path: "{nextLink}",
2654
- httpMethod: "GET",
2655
- responses: {
2656
- 200: {
2657
- bodyMapper: OperationListResult
2658
- },
2659
- default: {
2660
- bodyMapper: ErrorResponse
2661
- }
2662
- },
2663
- urlParameters: [$host, nextLink],
2664
- headerParameters: [accept],
2665
- serializer: serializer$5
2666
- };
2667
-
2668
- /*
2669
- * Copyright (c) Microsoft Corporation.
2670
- * Licensed under the MIT License.
2671
- *
2672
- * Code generated by Microsoft (R) AutoRest Code Generator.
2673
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2674
- */
2675
- /// <reference lib="esnext.asynciterable" />
2676
- /** Class containing PrivateLinkResources operations. */
2677
- class PrivateLinkResourcesImpl {
2678
- /**
2679
- * Initialize a new instance of the class PrivateLinkResources class.
2680
- * @param client Reference to the service client
2681
- */
2682
- constructor(client) {
2683
- this.client = client;
2684
- }
2685
- /**
2686
- * List private link resources for a given workspace
2687
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2688
- * @param workspaceName The name of the workspace.
2689
- * @param options The options parameters.
2690
- */
2691
- list(resourceGroupName, workspaceName, options) {
2692
- const iter = this.listPagingAll(resourceGroupName, workspaceName, options);
2693
- return {
2694
- next() {
2695
- return iter.next();
2696
- },
2697
- [Symbol.asyncIterator]() {
2698
- return this;
2699
- },
2700
- byPage: (settings) => {
2701
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
2702
- throw new Error("maxPageSize is not supported by this operation.");
2703
- }
2704
- return this.listPagingPage(resourceGroupName, workspaceName, options, settings);
2705
- }
2706
- };
2707
- }
2708
- listPagingPage(resourceGroupName, workspaceName, options, settings) {
2709
- return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
2710
- let result;
2711
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
2712
- if (!continuationToken) {
2713
- result = yield tslib.__await(this._list(resourceGroupName, workspaceName, options));
2714
- let page = result.value || [];
2715
- continuationToken = result.nextLink;
2716
- setContinuationToken(page, continuationToken);
2717
- yield yield tslib.__await(page);
2718
- }
2719
- while (continuationToken) {
2720
- result = yield tslib.__await(this._listNext(resourceGroupName, workspaceName, continuationToken, options));
2721
- continuationToken = result.nextLink;
2722
- let page = result.value || [];
2723
- setContinuationToken(page, continuationToken);
2724
- yield yield tslib.__await(page);
2725
- }
2726
- });
2727
- }
2728
- listPagingAll(resourceGroupName, workspaceName, options) {
2729
- return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
2730
- var _a, e_1, _b, _c;
2731
- try {
2732
- for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(resourceGroupName, workspaceName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
2733
- _c = _f.value;
2734
- _d = false;
2735
- const page = _c;
2736
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2737
- }
2738
- }
2739
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
2740
- finally {
2741
- try {
2742
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
2743
- }
2744
- finally { if (e_1) throw e_1.error; }
2745
- }
2746
- });
2747
- }
2748
- /**
2749
- * List private link resources for a given workspace
2750
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2751
- * @param workspaceName The name of the workspace.
2752
- * @param options The options parameters.
2753
- */
2754
- _list(resourceGroupName, workspaceName, options) {
2755
- return this.client.sendOperationRequest({ resourceGroupName, workspaceName, options }, listOperationSpec$2);
2756
- }
2757
- /**
2758
- * Get the specified private link resource for the given group id (sub-resource)
2759
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2760
- * @param workspaceName The name of the workspace.
2761
- * @param groupId The name of the private link resource
2762
- * @param options The options parameters.
2763
- */
2764
- get(resourceGroupName, workspaceName, groupId, options) {
2765
- return this.client.sendOperationRequest({ resourceGroupName, workspaceName, groupId, options }, getOperationSpec$3);
2766
- }
2767
- /**
2768
- * ListNext
2769
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2770
- * @param workspaceName The name of the workspace.
2771
- * @param nextLink The nextLink from the previous successful call to the List method.
2772
- * @param options The options parameters.
2773
- */
2774
- _listNext(resourceGroupName, workspaceName, nextLink, options) {
2775
- return this.client.sendOperationRequest({ resourceGroupName, workspaceName, nextLink, options }, listNextOperationSpec$1);
2776
- }
2777
- }
2778
- // Operation Specifications
2779
- const serializer$4 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
2780
- const listOperationSpec$2 = {
2781
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/privateLinkResources",
2782
- httpMethod: "GET",
2783
- responses: {
2784
- 200: {
2785
- bodyMapper: PrivateLinkResourcesList
2786
- },
2787
- default: {
2788
- bodyMapper: ErrorResponse
2789
- }
2790
- },
2791
- queryParameters: [apiVersion],
2792
- urlParameters: [
2793
- $host,
2794
- resourceGroupName,
2795
- workspaceName,
2796
- subscriptionId
2797
- ],
2798
- headerParameters: [accept],
2799
- serializer: serializer$4
2800
- };
2801
- const getOperationSpec$3 = {
2802
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/privateLinkResources/{groupId}",
2803
- httpMethod: "GET",
2804
- responses: {
2805
- 200: {
2806
- bodyMapper: GroupIdInformation
2807
- },
2808
- default: {
2809
- bodyMapper: ErrorResponse
2810
- }
2811
- },
2812
- queryParameters: [apiVersion],
2813
- urlParameters: [
2814
- $host,
2815
- resourceGroupName,
2816
- workspaceName,
2817
- subscriptionId,
2818
- groupId
2819
- ],
2820
- headerParameters: [accept],
2821
- serializer: serializer$4
2822
- };
2823
- const listNextOperationSpec$1 = {
2824
- path: "{nextLink}",
2825
- httpMethod: "GET",
2826
- responses: {
2827
- 200: {
2828
- bodyMapper: PrivateLinkResourcesList
2829
- },
2830
- default: {
2831
- bodyMapper: ErrorResponse
2832
- }
2833
- },
2834
- urlParameters: [
2835
- $host,
2836
- resourceGroupName,
2837
- workspaceName,
2838
- subscriptionId,
2839
- nextLink
2840
- ],
2841
- headerParameters: [accept],
2842
- serializer: serializer$4
2843
- };
2844
-
2845
- /*
2846
- * Copyright (c) Microsoft Corporation.
2847
- * Licensed under the MIT License.
2848
- *
2849
- * Code generated by Microsoft (R) AutoRest Code Generator.
2850
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2851
- */
2852
- /// <reference lib="esnext.asynciterable" />
2853
- /** Class containing PrivateEndpointConnections operations. */
2854
- class PrivateEndpointConnectionsImpl {
2855
- /**
2856
- * Initialize a new instance of the class PrivateEndpointConnections class.
2857
- * @param client Reference to the service client
2858
- */
2859
- constructor(client) {
2860
- this.client = client;
2861
- }
2862
- /**
2863
- * List private endpoint connections of the workspace
2864
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2865
- * @param workspaceName The name of the workspace.
2866
- * @param options The options parameters.
2867
- */
2868
- list(resourceGroupName, workspaceName, options) {
2869
- const iter = this.listPagingAll(resourceGroupName, workspaceName, options);
2870
- return {
2871
- next() {
2872
- return iter.next();
2873
- },
2874
- [Symbol.asyncIterator]() {
2875
- return this;
2876
- },
2877
- byPage: (settings) => {
2878
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
2879
- throw new Error("maxPageSize is not supported by this operation.");
2880
- }
2881
- return this.listPagingPage(resourceGroupName, workspaceName, options, settings);
2882
- }
2883
- };
2884
- }
2885
- listPagingPage(resourceGroupName, workspaceName, options, settings) {
2886
- return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
2887
- let result;
2888
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
2889
- if (!continuationToken) {
2890
- result = yield tslib.__await(this._list(resourceGroupName, workspaceName, options));
2891
- let page = result.value || [];
2892
- continuationToken = result.nextLink;
2893
- setContinuationToken(page, continuationToken);
2894
- yield yield tslib.__await(page);
2895
- }
2896
- while (continuationToken) {
2897
- result = yield tslib.__await(this._listNext(resourceGroupName, workspaceName, continuationToken, options));
2898
- continuationToken = result.nextLink;
2899
- let page = result.value || [];
2900
- setContinuationToken(page, continuationToken);
2901
- yield yield tslib.__await(page);
2902
- }
2903
- });
2904
- }
2905
- listPagingAll(resourceGroupName, workspaceName, options) {
2906
- return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
2907
- var _a, e_1, _b, _c;
2908
- try {
2909
- for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(resourceGroupName, workspaceName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
2910
- _c = _f.value;
2911
- _d = false;
2912
- const page = _c;
2913
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2914
- }
2915
- }
2916
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
2917
- finally {
2918
- try {
2919
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
2920
- }
2921
- finally { if (e_1) throw e_1.error; }
2922
- }
2923
- });
2924
- }
2925
- /**
2926
- * List private endpoint connections of the workspace
2927
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2928
- * @param workspaceName The name of the workspace.
2929
- * @param options The options parameters.
2930
- */
2931
- _list(resourceGroupName, workspaceName, options) {
2932
- return this.client.sendOperationRequest({ resourceGroupName, workspaceName, options }, listOperationSpec$1);
2933
- }
2934
- /**
2935
- * Get a private endpoint connection properties for a workspace
2936
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2937
- * @param workspaceName The name of the workspace.
2938
- * @param privateEndpointConnectionName The name of the private endpoint connection
2939
- * @param options The options parameters.
2940
- */
2941
- get(resourceGroupName, workspaceName, privateEndpointConnectionName, options) {
2942
- return this.client.sendOperationRequest({
2943
- resourceGroupName,
2944
- workspaceName,
2945
- privateEndpointConnectionName,
2946
- options
2947
- }, getOperationSpec$2);
2948
- }
2949
- /**
2950
- * Update the status of a private endpoint connection with the specified name
2951
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2952
- * @param workspaceName The name of the workspace.
2953
- * @param privateEndpointConnectionName The name of the private endpoint connection
2954
- * @param privateEndpointConnection The private endpoint connection with updated properties
2955
- * @param options The options parameters.
2956
- */
2957
- beginCreate(resourceGroupName, workspaceName, privateEndpointConnectionName, privateEndpointConnection, options) {
2958
- return tslib.__awaiter(this, void 0, void 0, function* () {
2959
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2960
- return this.client.sendOperationRequest(args, spec);
2961
- });
2962
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2963
- var _a;
2964
- let currentRawResponse = undefined;
2965
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2966
- const callback = (rawResponse, flatResponse) => {
2967
- currentRawResponse = rawResponse;
2968
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2969
- };
2970
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2971
- const flatResponse = yield directSendOperation(updatedArgs, spec);
2972
- return {
2973
- flatResponse,
2974
- rawResponse: {
2975
- statusCode: currentRawResponse.status,
2976
- body: currentRawResponse.parsedBody,
2977
- headers: currentRawResponse.headers.toJSON()
2978
- }
2979
- };
2980
- });
2981
- const lro = createLroSpec({
2982
- sendOperationFn,
2983
- args: {
2984
- resourceGroupName,
2985
- workspaceName,
2986
- privateEndpointConnectionName,
2987
- privateEndpointConnection,
2988
- options
2989
- },
2990
- spec: createOperationSpec
2991
- });
2992
- const poller = yield coreLro.createHttpPoller(lro, {
2993
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2994
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
2995
- });
2996
- yield poller.poll();
2997
- return poller;
2998
- });
2999
- }
3000
- /**
3001
- * Update the status of a private endpoint connection with the specified name
3002
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
3003
- * @param workspaceName The name of the workspace.
3004
- * @param privateEndpointConnectionName The name of the private endpoint connection
3005
- * @param privateEndpointConnection The private endpoint connection with updated properties
3006
- * @param options The options parameters.
3007
- */
3008
- beginCreateAndWait(resourceGroupName, workspaceName, privateEndpointConnectionName, privateEndpointConnection, options) {
3009
- return tslib.__awaiter(this, void 0, void 0, function* () {
3010
- const poller = yield this.beginCreate(resourceGroupName, workspaceName, privateEndpointConnectionName, privateEndpointConnection, options);
3011
- return poller.pollUntilDone();
3012
- });
3013
- }
3014
- /**
3015
- * Remove private endpoint connection with the specified name
3016
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
3017
- * @param workspaceName The name of the workspace.
3018
- * @param privateEndpointConnectionName The name of the private endpoint connection
3019
- * @param options The options parameters.
3020
- */
3021
- beginDelete(resourceGroupName, workspaceName, privateEndpointConnectionName, options) {
3022
- return tslib.__awaiter(this, void 0, void 0, function* () {
3023
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3024
- return this.client.sendOperationRequest(args, spec);
3025
- });
3026
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3027
- var _a;
3028
- let currentRawResponse = undefined;
3029
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3030
- const callback = (rawResponse, flatResponse) => {
3031
- currentRawResponse = rawResponse;
3032
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3033
- };
3034
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3035
- const flatResponse = yield directSendOperation(updatedArgs, spec);
3036
- return {
3037
- flatResponse,
3038
- rawResponse: {
3039
- statusCode: currentRawResponse.status,
3040
- body: currentRawResponse.parsedBody,
3041
- headers: currentRawResponse.headers.toJSON()
3042
- }
3043
- };
3044
- });
3045
- const lro = createLroSpec({
3046
- sendOperationFn,
3047
- args: {
3048
- resourceGroupName,
3049
- workspaceName,
3050
- privateEndpointConnectionName,
3051
- options
3052
- },
3053
- spec: deleteOperationSpec$2
3054
- });
3055
- const poller = yield coreLro.createHttpPoller(lro, {
3056
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3057
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
3058
- });
3059
- yield poller.poll();
3060
- return poller;
3061
- });
3062
- }
3063
- /**
3064
- * Remove private endpoint connection with the specified name
3065
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
3066
- * @param workspaceName The name of the workspace.
3067
- * @param privateEndpointConnectionName The name of the private endpoint connection
3068
- * @param options The options parameters.
3069
- */
3070
- beginDeleteAndWait(resourceGroupName, workspaceName, privateEndpointConnectionName, options) {
3071
- return tslib.__awaiter(this, void 0, void 0, function* () {
3072
- const poller = yield this.beginDelete(resourceGroupName, workspaceName, privateEndpointConnectionName, options);
3073
- return poller.pollUntilDone();
3074
- });
3075
- }
3076
- /**
3077
- * ListNext
3078
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
3079
- * @param workspaceName The name of the workspace.
3080
- * @param nextLink The nextLink from the previous successful call to the List method.
3081
- * @param options The options parameters.
3082
- */
3083
- _listNext(resourceGroupName, workspaceName, nextLink, options) {
3084
- return this.client.sendOperationRequest({ resourceGroupName, workspaceName, nextLink, options }, listNextOperationSpec);
3085
- }
3086
- }
3087
- // Operation Specifications
3088
- const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
3089
- const listOperationSpec$1 = {
3090
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/privateEndpointConnections",
3091
- httpMethod: "GET",
3092
- responses: {
3093
- 200: {
3094
- bodyMapper: PrivateEndpointConnectionsList
3095
- },
3096
- default: {
3097
- bodyMapper: ErrorResponse
3098
- }
3099
- },
3100
- queryParameters: [apiVersion],
3101
- urlParameters: [
3102
- $host,
3103
- resourceGroupName,
3104
- workspaceName,
3105
- subscriptionId
3106
- ],
3107
- headerParameters: [accept],
3108
- serializer: serializer$3
3109
- };
3110
- const getOperationSpec$2 = {
3111
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}",
3112
- httpMethod: "GET",
3113
- responses: {
3114
- 200: {
3115
- bodyMapper: PrivateEndpointConnection
3116
- },
3117
- default: {
3118
- bodyMapper: ErrorResponse
3119
- }
3120
- },
3121
- queryParameters: [apiVersion],
3122
- urlParameters: [
3123
- $host,
3124
- resourceGroupName,
3125
- workspaceName,
3126
- subscriptionId,
3127
- privateEndpointConnectionName
3128
- ],
3129
- headerParameters: [accept],
3130
- serializer: serializer$3
3131
- };
3132
- const createOperationSpec = {
3133
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}",
3134
- httpMethod: "PUT",
3135
- responses: {
3136
- 200: {
3137
- bodyMapper: PrivateEndpointConnection
3138
- },
3139
- 201: {
3140
- bodyMapper: PrivateEndpointConnection
3141
- },
3142
- 202: {
3143
- bodyMapper: PrivateEndpointConnection
3144
- },
3145
- 204: {
3146
- bodyMapper: PrivateEndpointConnection
3147
- },
3148
- default: {
3149
- bodyMapper: ErrorResponse
3150
- }
3151
- },
3152
- requestBody: privateEndpointConnection,
3153
- queryParameters: [apiVersion],
3154
- urlParameters: [
3155
- $host,
3156
- resourceGroupName,
3157
- workspaceName,
3158
- subscriptionId,
3159
- privateEndpointConnectionName
3160
- ],
3161
- headerParameters: [accept, contentType],
3162
- mediaType: "json",
3163
- serializer: serializer$3
3164
- };
3165
- const deleteOperationSpec$2 = {
3166
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}",
3167
- httpMethod: "DELETE",
3168
- responses: {
3169
- 200: {},
3170
- 201: {},
3171
- 202: {},
3172
- 204: {},
3173
- default: {
3174
- bodyMapper: ErrorResponse
3175
- }
3176
- },
3177
- queryParameters: [apiVersion],
3178
- urlParameters: [
3179
- $host,
3180
- resourceGroupName,
3181
- workspaceName,
3182
- subscriptionId,
3183
- privateEndpointConnectionName
3184
- ],
3185
- headerParameters: [accept],
3186
- serializer: serializer$3
3187
- };
3188
- const listNextOperationSpec = {
3189
- path: "{nextLink}",
3190
- httpMethod: "GET",
3191
- responses: {
3192
- 200: {
3193
- bodyMapper: PrivateEndpointConnectionsList
3194
- },
3195
- default: {
3196
- bodyMapper: ErrorResponse
3197
- }
3198
- },
3199
- urlParameters: [
3200
- $host,
3201
- resourceGroupName,
3202
- workspaceName,
3203
- subscriptionId,
3204
- nextLink
3205
- ],
3206
- headerParameters: [accept],
3207
- serializer: serializer$3
3208
- };
3209
-
3210
- /*
3211
- * Copyright (c) Microsoft Corporation.
3212
- * Licensed under the MIT License.
3213
- *
3214
- * Code generated by Microsoft (R) AutoRest Code Generator.
3215
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
3216
- */
3217
- /** Class containing OutboundNetworkDependenciesEndpoints operations. */
3218
- class OutboundNetworkDependenciesEndpointsImpl {
3219
- /**
3220
- * Initialize a new instance of the class OutboundNetworkDependenciesEndpoints class.
3221
- * @param client Reference to the service client
3222
- */
3223
- constructor(client) {
3224
- this.client = client;
3225
- }
3226
- /**
3227
- * Gets the list of endpoints that VNET Injected Workspace calls Azure Databricks Control Plane. You
3228
- * must configure outbound access with these endpoints. For more information, see
3229
- * https://docs.microsoft.com/azure/databricks/administration-guide/cloud-configurations/azure/udr
3230
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
3231
- * @param workspaceName The name of the workspace.
3232
- * @param options The options parameters.
3233
- */
3234
- list(resourceGroupName, workspaceName, options) {
3235
- return this.client.sendOperationRequest({ resourceGroupName, workspaceName, options }, listOperationSpec);
3236
- }
3237
- }
3238
- // Operation Specifications
3239
- const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
3240
- const listOperationSpec = {
3241
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/outboundNetworkDependenciesEndpoints",
3242
- httpMethod: "GET",
3243
- responses: {
3244
- 200: {
3245
- bodyMapper: {
3246
- type: {
3247
- name: "Sequence",
3248
- element: {
3249
- type: {
3250
- name: "Composite",
3251
- className: "OutboundEnvironmentEndpoint"
3252
- }
3253
- }
3254
- }
3255
- }
3256
- },
3257
- default: {
3258
- bodyMapper: ErrorResponse
3259
- }
3260
- },
3261
- queryParameters: [apiVersion],
3262
- urlParameters: [
3263
- $host,
3264
- resourceGroupName,
3265
- workspaceName,
3266
- subscriptionId
3267
- ],
3268
- headerParameters: [accept],
3269
- serializer: serializer$2
3270
- };
3271
-
3272
- /*
3273
- * Copyright (c) Microsoft Corporation.
3274
- * Licensed under the MIT License.
3275
- *
3276
- * Code generated by Microsoft (R) AutoRest Code Generator.
3277
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
3278
- */
3279
- /// <reference lib="esnext.asynciterable" />
3280
- /** Class containing VNetPeering operations. */
3281
- class VNetPeeringImpl {
3282
- /**
3283
- * Initialize a new instance of the class VNetPeering class.
3284
- * @param client Reference to the service client
3285
- */
3286
- constructor(client) {
3287
- this.client = client;
3288
- }
3289
- /**
3290
- * Lists the workspace vNet Peerings.
3291
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
3292
- * @param workspaceName The name of the workspace.
3293
- * @param options The options parameters.
3294
- */
3295
- listByWorkspace(resourceGroupName, workspaceName, options) {
3296
- const iter = this.listByWorkspacePagingAll(resourceGroupName, workspaceName, options);
3297
- return {
3298
- next() {
3299
- return iter.next();
3300
- },
3301
- [Symbol.asyncIterator]() {
3302
- return this;
3303
- },
3304
- byPage: (settings) => {
3305
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
3306
- throw new Error("maxPageSize is not supported by this operation.");
3307
- }
3308
- return this.listByWorkspacePagingPage(resourceGroupName, workspaceName, options, settings);
3309
- }
3310
- };
3311
- }
3312
- listByWorkspacePagingPage(resourceGroupName, workspaceName, options, settings) {
3313
- return tslib.__asyncGenerator(this, arguments, function* listByWorkspacePagingPage_1() {
3314
- let result;
3315
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
3316
- if (!continuationToken) {
3317
- result = yield tslib.__await(this._listByWorkspace(resourceGroupName, workspaceName, options));
3318
- let page = result.value || [];
3319
- continuationToken = result.nextLink;
3320
- setContinuationToken(page, continuationToken);
3321
- yield yield tslib.__await(page);
3322
- }
3323
- while (continuationToken) {
3324
- result = yield tslib.__await(this._listByWorkspaceNext(resourceGroupName, workspaceName, continuationToken, options));
3325
- continuationToken = result.nextLink;
3326
- let page = result.value || [];
3327
- setContinuationToken(page, continuationToken);
3328
- yield yield tslib.__await(page);
3329
- }
3330
- });
3331
- }
3332
- listByWorkspacePagingAll(resourceGroupName, workspaceName, options) {
3333
- return tslib.__asyncGenerator(this, arguments, function* listByWorkspacePagingAll_1() {
3334
- var _a, e_1, _b, _c;
3335
- try {
3336
- for (var _d = true, _e = tslib.__asyncValues(this.listByWorkspacePagingPage(resourceGroupName, workspaceName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
3337
- _c = _f.value;
3338
- _d = false;
3339
- const page = _c;
3340
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
3341
- }
3342
- }
3343
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
3344
- finally {
3345
- try {
3346
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
3347
- }
3348
- finally { if (e_1) throw e_1.error; }
3349
- }
3350
- });
3351
- }
3352
- /**
3353
- * Gets the workspace vNet Peering.
3354
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
3355
- * @param workspaceName The name of the workspace.
3356
- * @param peeringName The name of the workspace vNet peering.
3357
- * @param options The options parameters.
3358
- */
3359
- get(resourceGroupName, workspaceName, peeringName, options) {
3360
- return this.client.sendOperationRequest({ resourceGroupName, workspaceName, peeringName, options }, getOperationSpec$1);
3361
- }
3362
- /**
3363
- * Deletes the workspace vNetPeering.
3364
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
3365
- * @param workspaceName The name of the workspace.
3366
- * @param peeringName The name of the workspace vNet peering.
3367
- * @param options The options parameters.
3368
- */
3369
- beginDelete(resourceGroupName, workspaceName, peeringName, options) {
3370
- return tslib.__awaiter(this, void 0, void 0, function* () {
3371
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3372
- return this.client.sendOperationRequest(args, spec);
3373
- });
3374
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3375
- var _a;
3376
- let currentRawResponse = undefined;
3377
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3378
- const callback = (rawResponse, flatResponse) => {
3379
- currentRawResponse = rawResponse;
3380
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3381
- };
3382
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3383
- const flatResponse = yield directSendOperation(updatedArgs, spec);
3384
- return {
3385
- flatResponse,
3386
- rawResponse: {
3387
- statusCode: currentRawResponse.status,
3388
- body: currentRawResponse.parsedBody,
3389
- headers: currentRawResponse.headers.toJSON()
3390
- }
3391
- };
3392
- });
3393
- const lro = createLroSpec({
3394
- sendOperationFn,
3395
- args: { resourceGroupName, workspaceName, peeringName, options },
3396
- spec: deleteOperationSpec$1
3397
- });
3398
- const poller = yield coreLro.createHttpPoller(lro, {
3399
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3400
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
3401
- });
3402
- yield poller.poll();
3403
- return poller;
3404
- });
3405
- }
3406
- /**
3407
- * Deletes the workspace vNetPeering.
3408
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
3409
- * @param workspaceName The name of the workspace.
3410
- * @param peeringName The name of the workspace vNet peering.
3411
- * @param options The options parameters.
3412
- */
3413
- beginDeleteAndWait(resourceGroupName, workspaceName, peeringName, options) {
3414
- return tslib.__awaiter(this, void 0, void 0, function* () {
3415
- const poller = yield this.beginDelete(resourceGroupName, workspaceName, peeringName, options);
3416
- return poller.pollUntilDone();
3417
- });
3418
- }
3419
- /**
3420
- * Creates vNet Peering for workspace.
3421
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
3422
- * @param workspaceName The name of the workspace.
3423
- * @param peeringName The name of the workspace vNet peering.
3424
- * @param virtualNetworkPeeringParameters Parameters supplied to the create workspace vNet Peering.
3425
- * @param options The options parameters.
3426
- */
3427
- beginCreateOrUpdate(resourceGroupName, workspaceName, peeringName, virtualNetworkPeeringParameters, options) {
3428
- return tslib.__awaiter(this, void 0, void 0, function* () {
3429
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3430
- return this.client.sendOperationRequest(args, spec);
3431
- });
3432
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3433
- var _a;
3434
- let currentRawResponse = undefined;
3435
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3436
- const callback = (rawResponse, flatResponse) => {
3437
- currentRawResponse = rawResponse;
3438
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3439
- };
3440
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3441
- const flatResponse = yield directSendOperation(updatedArgs, spec);
3442
- return {
3443
- flatResponse,
3444
- rawResponse: {
3445
- statusCode: currentRawResponse.status,
3446
- body: currentRawResponse.parsedBody,
3447
- headers: currentRawResponse.headers.toJSON()
3448
- }
3449
- };
3450
- });
3451
- const lro = createLroSpec({
3452
- sendOperationFn,
3453
- args: {
3454
- resourceGroupName,
3455
- workspaceName,
3456
- peeringName,
3457
- virtualNetworkPeeringParameters,
3458
- options
3459
- },
3460
- spec: createOrUpdateOperationSpec$1
3461
- });
3462
- const poller = yield coreLro.createHttpPoller(lro, {
3463
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3464
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
3465
- });
3466
- yield poller.poll();
3467
- return poller;
3468
- });
3469
- }
3470
- /**
3471
- * Creates vNet Peering for workspace.
3472
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
3473
- * @param workspaceName The name of the workspace.
3474
- * @param peeringName The name of the workspace vNet peering.
3475
- * @param virtualNetworkPeeringParameters Parameters supplied to the create workspace vNet Peering.
3476
- * @param options The options parameters.
3477
- */
3478
- beginCreateOrUpdateAndWait(resourceGroupName, workspaceName, peeringName, virtualNetworkPeeringParameters, options) {
3479
- return tslib.__awaiter(this, void 0, void 0, function* () {
3480
- const poller = yield this.beginCreateOrUpdate(resourceGroupName, workspaceName, peeringName, virtualNetworkPeeringParameters, options);
3481
- return poller.pollUntilDone();
3482
- });
3483
- }
3484
- /**
3485
- * Lists the workspace vNet Peerings.
3486
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
3487
- * @param workspaceName The name of the workspace.
3488
- * @param options The options parameters.
3489
- */
3490
- _listByWorkspace(resourceGroupName, workspaceName, options) {
3491
- return this.client.sendOperationRequest({ resourceGroupName, workspaceName, options }, listByWorkspaceOperationSpec);
3492
- }
3493
- /**
3494
- * ListByWorkspaceNext
3495
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
3496
- * @param workspaceName The name of the workspace.
3497
- * @param nextLink The nextLink from the previous successful call to the ListByWorkspace method.
3498
- * @param options The options parameters.
3499
- */
3500
- _listByWorkspaceNext(resourceGroupName, workspaceName, nextLink, options) {
3501
- return this.client.sendOperationRequest({ resourceGroupName, workspaceName, nextLink, options }, listByWorkspaceNextOperationSpec);
3502
- }
3503
- }
3504
- // Operation Specifications
3505
- const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
3506
- const getOperationSpec$1 = {
3507
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/virtualNetworkPeerings/{peeringName}",
3508
- httpMethod: "GET",
3509
- responses: {
3510
- 200: {
3511
- bodyMapper: VirtualNetworkPeering
3512
- },
3513
- 204: {},
3514
- default: {
3515
- bodyMapper: ErrorResponse
3516
- }
3517
- },
3518
- queryParameters: [apiVersion],
3519
- urlParameters: [
3520
- $host,
3521
- resourceGroupName,
3522
- workspaceName,
3523
- subscriptionId,
3524
- peeringName
3525
- ],
3526
- headerParameters: [accept],
3527
- serializer: serializer$1
3528
- };
3529
- const deleteOperationSpec$1 = {
3530
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/virtualNetworkPeerings/{peeringName}",
3531
- httpMethod: "DELETE",
3532
- responses: {
3533
- 200: {},
3534
- 201: {},
3535
- 202: {},
3536
- 204: {},
3537
- default: {
3538
- bodyMapper: ErrorResponse
3539
- }
3540
- },
3541
- queryParameters: [apiVersion],
3542
- urlParameters: [
3543
- $host,
3544
- resourceGroupName,
3545
- workspaceName,
3546
- subscriptionId,
3547
- peeringName
3548
- ],
3549
- headerParameters: [accept],
3550
- serializer: serializer$1
3551
- };
3552
- const createOrUpdateOperationSpec$1 = {
3553
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/virtualNetworkPeerings/{peeringName}",
3554
- httpMethod: "PUT",
3555
- responses: {
3556
- 200: {
3557
- bodyMapper: VirtualNetworkPeering
3558
- },
3559
- 201: {
3560
- bodyMapper: VirtualNetworkPeering
3561
- },
3562
- 202: {
3563
- bodyMapper: VirtualNetworkPeering
3564
- },
3565
- 204: {
3566
- bodyMapper: VirtualNetworkPeering
3567
- },
3568
- default: {
3569
- bodyMapper: ErrorResponse
3570
- }
3571
- },
3572
- requestBody: virtualNetworkPeeringParameters,
3573
- queryParameters: [apiVersion],
3574
- urlParameters: [
3575
- $host,
3576
- resourceGroupName,
3577
- workspaceName,
3578
- subscriptionId,
3579
- peeringName
3580
- ],
3581
- headerParameters: [accept, contentType],
3582
- mediaType: "json",
3583
- serializer: serializer$1
3584
- };
3585
- const listByWorkspaceOperationSpec = {
3586
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}/virtualNetworkPeerings",
3587
- httpMethod: "GET",
3588
- responses: {
3589
- 200: {
3590
- bodyMapper: VirtualNetworkPeeringList
3591
- },
3592
- default: {
3593
- bodyMapper: ErrorResponse
3594
- }
3595
- },
3596
- queryParameters: [apiVersion],
3597
- urlParameters: [
3598
- $host,
3599
- resourceGroupName,
3600
- workspaceName,
3601
- subscriptionId
3602
- ],
3603
- headerParameters: [accept],
3604
- serializer: serializer$1
3605
- };
3606
- const listByWorkspaceNextOperationSpec = {
3607
- path: "{nextLink}",
3608
- httpMethod: "GET",
3609
- responses: {
3610
- 200: {
3611
- bodyMapper: VirtualNetworkPeeringList
3612
- },
3613
- default: {
3614
- bodyMapper: ErrorResponse
3615
- }
3616
- },
3617
- urlParameters: [
3618
- $host,
3619
- resourceGroupName,
3620
- workspaceName,
3621
- subscriptionId,
3622
- nextLink
3623
- ],
3624
- headerParameters: [accept],
3625
- serializer: serializer$1
3626
- };
3627
-
3628
- /*
3629
- * Copyright (c) Microsoft Corporation.
3630
- * Licensed under the MIT License.
3631
- *
3632
- * Code generated by Microsoft (R) AutoRest Code Generator.
3633
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
3634
- */
3635
- /// <reference lib="esnext.asynciterable" />
3636
- /** Class containing AccessConnectors operations. */
3637
- class AccessConnectorsImpl {
3638
- /**
3639
- * Initialize a new instance of the class AccessConnectors class.
3640
- * @param client Reference to the service client
3641
- */
3642
- constructor(client) {
3643
- this.client = client;
3644
- }
3645
- /**
3646
- * Gets all the azure databricks accessConnectors within a resource group.
3647
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
3648
- * @param options The options parameters.
3649
- */
3650
- listByResourceGroup(resourceGroupName, options) {
3651
- const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
3652
- return {
3653
- next() {
3654
- return iter.next();
3655
- },
3656
- [Symbol.asyncIterator]() {
3657
- return this;
3658
- },
3659
- byPage: (settings) => {
3660
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
3661
- throw new Error("maxPageSize is not supported by this operation.");
3662
- }
3663
- return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
3664
- }
3665
- };
3666
- }
3667
- listByResourceGroupPagingPage(resourceGroupName, options, settings) {
3668
- return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
3669
- let result;
3670
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
3671
- if (!continuationToken) {
3672
- result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
3673
- let page = result.value || [];
3674
- continuationToken = result.nextLink;
3675
- setContinuationToken(page, continuationToken);
3676
- yield yield tslib.__await(page);
3677
- }
3678
- while (continuationToken) {
3679
- result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
3680
- continuationToken = result.nextLink;
3681
- let page = result.value || [];
3682
- setContinuationToken(page, continuationToken);
3683
- yield yield tslib.__await(page);
3684
- }
3685
- });
3686
- }
3687
- listByResourceGroupPagingAll(resourceGroupName, options) {
3688
- return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
3689
- var _a, e_1, _b, _c;
3690
- try {
3691
- for (var _d = true, _e = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
3692
- _c = _f.value;
3693
- _d = false;
3694
- const page = _c;
3695
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
3696
- }
3697
- }
3698
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
3699
- finally {
3700
- try {
3701
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
3702
- }
3703
- finally { if (e_1) throw e_1.error; }
3704
- }
3705
- });
3706
- }
3707
- /**
3708
- * Gets all the azure databricks accessConnectors within a subscription.
3709
- * @param options The options parameters.
3710
- */
3711
- listBySubscription(options) {
3712
- const iter = this.listBySubscriptionPagingAll(options);
3713
- return {
3714
- next() {
3715
- return iter.next();
3716
- },
3717
- [Symbol.asyncIterator]() {
3718
- return this;
3719
- },
3720
- byPage: (settings) => {
3721
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
3722
- throw new Error("maxPageSize is not supported by this operation.");
3723
- }
3724
- return this.listBySubscriptionPagingPage(options, settings);
3725
- }
3726
- };
3727
- }
3728
- listBySubscriptionPagingPage(options, settings) {
3729
- return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
3730
- let result;
3731
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
3732
- if (!continuationToken) {
3733
- result = yield tslib.__await(this._listBySubscription(options));
3734
- let page = result.value || [];
3735
- continuationToken = result.nextLink;
3736
- setContinuationToken(page, continuationToken);
3737
- yield yield tslib.__await(page);
3738
- }
3739
- while (continuationToken) {
3740
- result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
3741
- continuationToken = result.nextLink;
3742
- let page = result.value || [];
3743
- setContinuationToken(page, continuationToken);
3744
- yield yield tslib.__await(page);
3745
- }
3746
- });
3747
- }
3748
- listBySubscriptionPagingAll(options) {
3749
- return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
3750
- var _a, e_2, _b, _c;
3751
- try {
3752
- for (var _d = true, _e = tslib.__asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
3753
- _c = _f.value;
3754
- _d = false;
3755
- const page = _c;
3756
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
3757
- }
3758
- }
3759
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
3760
- finally {
3761
- try {
3762
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
3763
- }
3764
- finally { if (e_2) throw e_2.error; }
3765
- }
3766
- });
3767
- }
3768
- /**
3769
- * Gets an azure databricks accessConnector.
3770
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
3771
- * @param connectorName The name of the azure databricks accessConnector.
3772
- * @param options The options parameters.
3773
- */
3774
- get(resourceGroupName, connectorName, options) {
3775
- return this.client.sendOperationRequest({ resourceGroupName, connectorName, options }, getOperationSpec);
3776
- }
3777
- /**
3778
- * Deletes the azure databricks accessConnector.
3779
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
3780
- * @param connectorName The name of the azure databricks accessConnector.
3781
- * @param options The options parameters.
3782
- */
3783
- beginDelete(resourceGroupName, connectorName, options) {
3784
- return tslib.__awaiter(this, void 0, void 0, function* () {
3785
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3786
- return this.client.sendOperationRequest(args, spec);
3787
- });
3788
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3789
- var _a;
3790
- let currentRawResponse = undefined;
3791
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3792
- const callback = (rawResponse, flatResponse) => {
3793
- currentRawResponse = rawResponse;
3794
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3795
- };
3796
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3797
- const flatResponse = yield directSendOperation(updatedArgs, spec);
3798
- return {
3799
- flatResponse,
3800
- rawResponse: {
3801
- statusCode: currentRawResponse.status,
3802
- body: currentRawResponse.parsedBody,
3803
- headers: currentRawResponse.headers.toJSON()
3804
- }
3805
- };
3806
- });
3807
- const lro = createLroSpec({
3808
- sendOperationFn,
3809
- args: { resourceGroupName, connectorName, options },
3810
- spec: deleteOperationSpec
3811
- });
3812
- const poller = yield coreLro.createHttpPoller(lro, {
3813
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3814
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
3815
- });
3816
- yield poller.poll();
3817
- return poller;
3818
- });
3819
- }
3820
- /**
3821
- * Deletes the azure databricks accessConnector.
3822
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
3823
- * @param connectorName The name of the azure databricks accessConnector.
3824
- * @param options The options parameters.
3825
- */
3826
- beginDeleteAndWait(resourceGroupName, connectorName, options) {
3827
- return tslib.__awaiter(this, void 0, void 0, function* () {
3828
- const poller = yield this.beginDelete(resourceGroupName, connectorName, options);
3829
- return poller.pollUntilDone();
3830
- });
3831
- }
3832
- /**
3833
- * Creates or updates azure databricks accessConnector.
3834
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
3835
- * @param connectorName The name of the azure databricks accessConnector.
3836
- * @param parameters Parameters supplied to the create or update an azure databricks accessConnector.
3837
- * @param options The options parameters.
3838
- */
3839
- beginCreateOrUpdate(resourceGroupName, connectorName, parameters, options) {
3840
- return tslib.__awaiter(this, void 0, void 0, function* () {
3841
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3842
- return this.client.sendOperationRequest(args, spec);
3843
- });
3844
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3845
- var _a;
3846
- let currentRawResponse = undefined;
3847
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3848
- const callback = (rawResponse, flatResponse) => {
3849
- currentRawResponse = rawResponse;
3850
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3851
- };
3852
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3853
- const flatResponse = yield directSendOperation(updatedArgs, spec);
3854
- return {
3855
- flatResponse,
3856
- rawResponse: {
3857
- statusCode: currentRawResponse.status,
3858
- body: currentRawResponse.parsedBody,
3859
- headers: currentRawResponse.headers.toJSON()
3860
- }
3861
- };
3862
- });
3863
- const lro = createLroSpec({
3864
- sendOperationFn,
3865
- args: { resourceGroupName, connectorName, parameters, options },
3866
- spec: createOrUpdateOperationSpec
3867
- });
3868
- const poller = yield coreLro.createHttpPoller(lro, {
3869
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3870
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
3871
- });
3872
- yield poller.poll();
3873
- return poller;
3874
- });
3875
- }
3876
- /**
3877
- * Creates or updates azure databricks accessConnector.
3878
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
3879
- * @param connectorName The name of the azure databricks accessConnector.
3880
- * @param parameters Parameters supplied to the create or update an azure databricks accessConnector.
3881
- * @param options The options parameters.
3882
- */
3883
- beginCreateOrUpdateAndWait(resourceGroupName, connectorName, parameters, options) {
3884
- return tslib.__awaiter(this, void 0, void 0, function* () {
3885
- const poller = yield this.beginCreateOrUpdate(resourceGroupName, connectorName, parameters, options);
3886
- return poller.pollUntilDone();
3887
- });
3888
- }
3889
- /**
3890
- * Updates an azure databricks accessConnector.
3891
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
3892
- * @param connectorName The name of the azure databricks accessConnector.
3893
- * @param parameters The update to the azure databricks accessConnector.
3894
- * @param options The options parameters.
3895
- */
3896
- beginUpdate(resourceGroupName, connectorName, parameters, options) {
3897
- return tslib.__awaiter(this, void 0, void 0, function* () {
3898
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3899
- return this.client.sendOperationRequest(args, spec);
3900
- });
3901
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3902
- var _a;
3903
- let currentRawResponse = undefined;
3904
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3905
- const callback = (rawResponse, flatResponse) => {
3906
- currentRawResponse = rawResponse;
3907
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3908
- };
3909
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3910
- const flatResponse = yield directSendOperation(updatedArgs, spec);
3911
- return {
3912
- flatResponse,
3913
- rawResponse: {
3914
- statusCode: currentRawResponse.status,
3915
- body: currentRawResponse.parsedBody,
3916
- headers: currentRawResponse.headers.toJSON()
3917
- }
3918
- };
3919
- });
3920
- const lro = createLroSpec({
3921
- sendOperationFn,
3922
- args: { resourceGroupName, connectorName, parameters, options },
3923
- spec: updateOperationSpec
3924
- });
3925
- const poller = yield coreLro.createHttpPoller(lro, {
3926
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3927
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
3928
- });
3929
- yield poller.poll();
3930
- return poller;
3931
- });
3932
- }
3933
- /**
3934
- * Updates an azure databricks accessConnector.
3935
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
3936
- * @param connectorName The name of the azure databricks accessConnector.
3937
- * @param parameters The update to the azure databricks accessConnector.
3938
- * @param options The options parameters.
3939
- */
3940
- beginUpdateAndWait(resourceGroupName, connectorName, parameters, options) {
3941
- return tslib.__awaiter(this, void 0, void 0, function* () {
3942
- const poller = yield this.beginUpdate(resourceGroupName, connectorName, parameters, options);
3943
- return poller.pollUntilDone();
3944
- });
3945
- }
3946
- /**
3947
- * Gets all the azure databricks accessConnectors within a resource group.
3948
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
3949
- * @param options The options parameters.
3950
- */
3951
- _listByResourceGroup(resourceGroupName, options) {
3952
- return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
3953
- }
3954
- /**
3955
- * Gets all the azure databricks accessConnectors within a subscription.
3956
- * @param options The options parameters.
3957
- */
3958
- _listBySubscription(options) {
3959
- return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
3960
- }
3961
- /**
3962
- * ListByResourceGroupNext
3963
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
3964
- * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
3965
- * @param options The options parameters.
3966
- */
3967
- _listByResourceGroupNext(resourceGroupName, nextLink, options) {
3968
- return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
3969
- }
3970
- /**
3971
- * ListBySubscriptionNext
3972
- * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
3973
- * @param options The options parameters.
3974
- */
3975
- _listBySubscriptionNext(nextLink, options) {
3976
- return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
3977
- }
3978
- }
3979
- // Operation Specifications
3980
- const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
3981
- const getOperationSpec = {
3982
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/accessConnectors/{connectorName}",
3983
- httpMethod: "GET",
3984
- responses: {
3985
- 200: {
3986
- bodyMapper: AccessConnector
3987
- },
3988
- default: {
3989
- bodyMapper: ErrorResponse
3990
- }
3991
- },
3992
- queryParameters: [apiVersion1],
3993
- urlParameters: [
3994
- $host,
3995
- resourceGroupName,
3996
- subscriptionId,
3997
- connectorName
3998
- ],
3999
- headerParameters: [accept],
4000
- serializer
4001
- };
4002
- const deleteOperationSpec = {
4003
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/accessConnectors/{connectorName}",
4004
- httpMethod: "DELETE",
4005
- responses: {
4006
- 200: {},
4007
- 201: {},
4008
- 202: {},
4009
- 204: {},
4010
- default: {
4011
- bodyMapper: ErrorResponse
4012
- }
4013
- },
4014
- queryParameters: [apiVersion1],
4015
- urlParameters: [
4016
- $host,
4017
- resourceGroupName,
4018
- subscriptionId,
4019
- connectorName
4020
- ],
4021
- headerParameters: [accept],
4022
- serializer
4023
- };
4024
- const createOrUpdateOperationSpec = {
4025
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/accessConnectors/{connectorName}",
4026
- httpMethod: "PUT",
4027
- responses: {
4028
- 200: {
4029
- bodyMapper: AccessConnector
4030
- },
4031
- 201: {
4032
- bodyMapper: AccessConnector
4033
- },
4034
- 202: {
4035
- bodyMapper: AccessConnector
4036
- },
4037
- 204: {
4038
- bodyMapper: AccessConnector
4039
- },
4040
- default: {
4041
- bodyMapper: ErrorResponse
4042
- }
4043
- },
4044
- requestBody: parameters2,
4045
- queryParameters: [apiVersion1],
4046
- urlParameters: [
4047
- $host,
4048
- resourceGroupName,
4049
- subscriptionId,
4050
- connectorName
4051
- ],
4052
- headerParameters: [accept, contentType],
4053
- mediaType: "json",
4054
- serializer
4055
- };
4056
- const updateOperationSpec = {
4057
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/accessConnectors/{connectorName}",
4058
- httpMethod: "PATCH",
4059
- responses: {
4060
- 200: {
4061
- bodyMapper: AccessConnector
4062
- },
4063
- 201: {
4064
- bodyMapper: AccessConnector
4065
- },
4066
- 202: {
4067
- bodyMapper: AccessConnector
4068
- },
4069
- 204: {
4070
- bodyMapper: AccessConnector
4071
- },
4072
- default: {
4073
- bodyMapper: ErrorResponse
4074
- }
4075
- },
4076
- requestBody: parameters3,
4077
- queryParameters: [apiVersion1],
4078
- urlParameters: [
4079
- $host,
4080
- resourceGroupName,
4081
- subscriptionId,
4082
- connectorName
4083
- ],
4084
- headerParameters: [accept, contentType],
4085
- mediaType: "json",
4086
- serializer
4087
- };
4088
- const listByResourceGroupOperationSpec = {
4089
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/accessConnectors",
4090
- httpMethod: "GET",
4091
- responses: {
4092
- 200: {
4093
- bodyMapper: AccessConnectorListResult
4094
- },
4095
- default: {
4096
- bodyMapper: ErrorResponse
4097
- }
4098
- },
4099
- queryParameters: [apiVersion1],
4100
- urlParameters: [
4101
- $host,
4102
- resourceGroupName,
4103
- subscriptionId
4104
- ],
4105
- headerParameters: [accept],
4106
- serializer
4107
- };
4108
- const listBySubscriptionOperationSpec = {
4109
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.Databricks/accessConnectors",
4110
- httpMethod: "GET",
4111
- responses: {
4112
- 200: {
4113
- bodyMapper: AccessConnectorListResult
4114
- },
4115
- default: {
4116
- bodyMapper: ErrorResponse
4117
- }
4118
- },
4119
- queryParameters: [apiVersion1],
4120
- urlParameters: [$host, subscriptionId],
4121
- headerParameters: [accept],
4122
- serializer
4123
- };
4124
- const listByResourceGroupNextOperationSpec = {
4125
- path: "{nextLink}",
4126
- httpMethod: "GET",
4127
- responses: {
4128
- 200: {
4129
- bodyMapper: AccessConnectorListResult
4130
- },
4131
- default: {
4132
- bodyMapper: ErrorResponse
4133
- }
4134
- },
4135
- urlParameters: [
4136
- $host,
4137
- resourceGroupName,
4138
- subscriptionId,
4139
- nextLink
4140
- ],
4141
- headerParameters: [accept],
4142
- serializer
4143
- };
4144
- const listBySubscriptionNextOperationSpec = {
4145
- path: "{nextLink}",
4146
- httpMethod: "GET",
4147
- responses: {
4148
- 200: {
4149
- bodyMapper: AccessConnectorListResult
4150
- },
4151
- default: {
4152
- bodyMapper: ErrorResponse
4153
- }
4154
- },
4155
- urlParameters: [
4156
- $host,
4157
- subscriptionId,
4158
- nextLink
4159
- ],
4160
- headerParameters: [accept],
4161
- serializer
4162
- };
4163
-
4164
- /*
4165
- * Copyright (c) Microsoft Corporation.
4166
- * Licensed under the MIT License.
4167
- *
4168
- * Code generated by Microsoft (R) AutoRest Code Generator.
4169
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
4170
- */
4171
- class AzureDatabricksManagementClient extends coreClient__namespace.ServiceClient {
4172
- /**
4173
- * Initializes a new instance of the AzureDatabricksManagementClient class.
4174
- * @param credentials Subscription credentials which uniquely identify client subscription.
4175
- * @param subscriptionId The ID of the target subscription.
4176
- * @param options The parameter options
4177
- */
4178
- constructor(credentials, subscriptionId, options) {
4179
- var _a, _b, _c;
4180
- if (credentials === undefined) {
4181
- throw new Error("'credentials' cannot be null");
4182
- }
4183
- if (subscriptionId === undefined) {
4184
- throw new Error("'subscriptionId' cannot be null");
4185
- }
4186
- // Initializing default values for options
4187
- if (!options) {
4188
- options = {};
4189
- }
4190
- const defaults = {
4191
- requestContentType: "application/json; charset=utf-8",
4192
- credential: credentials
4193
- };
4194
- const packageDetails = `azsdk-js-arm-databricks/3.0.1`;
4195
- const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
4196
- ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
4197
- : `${packageDetails}`;
4198
- const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
4199
- userAgentPrefix
4200
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
4201
- super(optionsWithDefaults);
4202
- let bearerTokenAuthenticationPolicyFound = false;
4203
- if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
4204
- const pipelinePolicies = options.pipeline.getOrderedPolicies();
4205
- bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
4206
- coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
4207
- }
4208
- if (!options ||
4209
- !options.pipeline ||
4210
- options.pipeline.getOrderedPolicies().length == 0 ||
4211
- !bearerTokenAuthenticationPolicyFound) {
4212
- this.pipeline.removePolicy({
4213
- name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
4214
- });
4215
- this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
4216
- credential: credentials,
4217
- scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
4218
- challengeCallbacks: {
4219
- authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
4220
- }
4221
- }));
4222
- }
4223
- // Parameter assignments
4224
- this.subscriptionId = subscriptionId;
4225
- // Assigning values to Constant parameters
4226
- this.$host = options.$host || "https://management.azure.com";
4227
- this.workspaces = new WorkspacesImpl(this);
4228
- this.operations = new OperationsImpl(this);
4229
- this.privateLinkResources = new PrivateLinkResourcesImpl(this);
4230
- this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);
4231
- this.outboundNetworkDependenciesEndpoints = new OutboundNetworkDependenciesEndpointsImpl(this);
4232
- this.vNetPeering = new VNetPeeringImpl(this);
4233
- this.accessConnectors = new AccessConnectorsImpl(this);
4234
- }
4235
- }
4236
-
4237
- exports.AzureDatabricksManagementClient = AzureDatabricksManagementClient;
4238
- exports.getContinuationToken = getContinuationToken;
4239
- //# sourceMappingURL=index.js.map