@azure/arm-devspaces 2.1.1-alpha.20250115.1 → 2.1.1-alpha.20250116.2

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 (326) hide show
  1. package/{dist-esm/src → dist/browser}/devSpacesManagementClient.d.ts +2 -2
  2. package/dist/browser/devSpacesManagementClient.d.ts.map +1 -0
  3. package/{dist-esm/src → dist/browser}/devSpacesManagementClient.js +15 -18
  4. package/dist/browser/devSpacesManagementClient.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 +25 -0
  10. package/dist/browser/lroImpl.js.map +1 -0
  11. package/dist/browser/models/index.js.map +1 -0
  12. package/dist/browser/models/mappers.js.map +1 -0
  13. package/{dist-esm/src → dist/browser}/models/parameters.js +1 -1
  14. package/dist/browser/models/parameters.js.map +1 -0
  15. package/{dist-esm/src → dist/browser}/operations/containerHostMappings.d.ts +3 -3
  16. package/dist/browser/operations/containerHostMappings.d.ts.map +1 -0
  17. package/{dist-esm/src → dist/browser}/operations/containerHostMappings.js +2 -2
  18. package/dist/browser/operations/containerHostMappings.js.map +1 -0
  19. package/{dist-esm/src → dist/browser}/operations/controllers.d.ts +3 -3
  20. package/dist/browser/operations/controllers.d.ts.map +1 -0
  21. package/{dist-esm/src → dist/browser}/operations/controllers.js +69 -77
  22. package/dist/browser/operations/controllers.js.map +1 -0
  23. package/dist/browser/operations/index.d.ts +4 -0
  24. package/{dist-esm/src → dist/browser}/operations/index.d.ts.map +1 -1
  25. package/{dist-esm/src/operationsInterfaces → dist/browser/operations}/index.js +3 -3
  26. package/dist/browser/operations/index.js.map +1 -0
  27. package/{dist-esm/src → dist/browser}/operations/operations.d.ts +3 -3
  28. package/dist/browser/operations/operations.d.ts.map +1 -0
  29. package/{dist-esm/src → dist/browser}/operations/operations.js +3 -3
  30. package/dist/browser/operations/operations.js.map +1 -0
  31. package/{dist-esm/src → dist/browser}/operationsInterfaces/containerHostMappings.d.ts +1 -1
  32. package/dist/browser/operationsInterfaces/containerHostMappings.d.ts.map +1 -0
  33. package/dist/browser/operationsInterfaces/containerHostMappings.js.map +1 -0
  34. package/{dist-esm/src → dist/browser}/operationsInterfaces/controllers.d.ts +1 -1
  35. package/dist/browser/operationsInterfaces/controllers.d.ts.map +1 -0
  36. package/dist/browser/operationsInterfaces/controllers.js.map +1 -0
  37. package/dist/browser/operationsInterfaces/index.d.ts +4 -0
  38. package/{dist-esm/src → dist/browser}/operationsInterfaces/index.d.ts.map +1 -1
  39. package/{dist-esm/src/operations → dist/browser/operationsInterfaces}/index.js +3 -3
  40. package/dist/browser/operationsInterfaces/index.js.map +1 -0
  41. package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts +1 -1
  42. package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts.map +1 -1
  43. package/dist/browser/operationsInterfaces/operations.js.map +1 -0
  44. package/dist/browser/package.json +3 -0
  45. package/dist/browser/pagingHelper.js.map +1 -0
  46. package/dist/commonjs/devSpacesManagementClient.d.ts +22 -0
  47. package/dist/commonjs/devSpacesManagementClient.d.ts.map +1 -0
  48. package/dist/commonjs/devSpacesManagementClient.js +104 -0
  49. package/dist/commonjs/devSpacesManagementClient.js.map +1 -0
  50. package/dist/commonjs/index.d.ts +5 -0
  51. package/dist/commonjs/index.d.ts.map +1 -0
  52. package/dist/commonjs/index.js +19 -0
  53. package/dist/commonjs/index.js.map +1 -0
  54. package/dist/commonjs/lroImpl.d.ts +16 -0
  55. package/dist/commonjs/lroImpl.d.ts.map +1 -0
  56. package/dist/commonjs/lroImpl.js +29 -0
  57. package/dist/commonjs/lroImpl.js.map +1 -0
  58. package/dist/commonjs/models/index.d.ts +296 -0
  59. package/dist/commonjs/models/index.d.ts.map +1 -0
  60. package/dist/commonjs/models/index.js +41 -0
  61. package/dist/commonjs/models/index.js.map +1 -0
  62. package/dist/commonjs/models/mappers.d.ts +23 -0
  63. package/dist/commonjs/models/mappers.d.ts.map +1 -0
  64. package/dist/commonjs/models/mappers.js +411 -0
  65. package/dist/commonjs/models/mappers.js.map +1 -0
  66. package/dist/commonjs/models/parameters.d.ts +15 -0
  67. package/dist/commonjs/models/parameters.d.ts.map +1 -0
  68. package/dist/commonjs/models/parameters.js +132 -0
  69. package/dist/commonjs/models/parameters.js.map +1 -0
  70. package/dist/commonjs/operations/containerHostMappings.d.ts +23 -0
  71. package/dist/commonjs/operations/containerHostMappings.d.ts.map +1 -0
  72. package/dist/commonjs/operations/containerHostMappings.js +64 -0
  73. package/dist/commonjs/operations/containerHostMappings.js.map +1 -0
  74. package/dist/commonjs/operations/controllers.d.ts +111 -0
  75. package/dist/commonjs/operations/controllers.d.ts.map +1 -0
  76. package/dist/commonjs/operations/controllers.js +517 -0
  77. package/dist/commonjs/operations/controllers.js.map +1 -0
  78. package/dist/commonjs/operations/index.d.ts +4 -0
  79. package/dist/commonjs/operations/index.d.ts.map +1 -0
  80. package/dist/commonjs/operations/index.js +14 -0
  81. package/dist/commonjs/operations/index.js.map +1 -0
  82. package/dist/commonjs/operations/operations.d.ts +34 -0
  83. package/dist/commonjs/operations/operations.d.ts.map +1 -0
  84. package/dist/commonjs/operations/operations.js +134 -0
  85. package/dist/commonjs/operations/operations.js.map +1 -0
  86. package/dist/commonjs/operationsInterfaces/containerHostMappings.d.ts +15 -0
  87. package/dist/commonjs/operationsInterfaces/containerHostMappings.d.ts.map +1 -0
  88. package/dist/commonjs/operationsInterfaces/containerHostMappings.js +10 -0
  89. package/dist/commonjs/operationsInterfaces/containerHostMappings.js.map +1 -0
  90. package/dist/commonjs/operationsInterfaces/controllers.d.ts +74 -0
  91. package/dist/commonjs/operationsInterfaces/controllers.d.ts.map +1 -0
  92. package/dist/commonjs/operationsInterfaces/controllers.js +10 -0
  93. package/dist/commonjs/operationsInterfaces/controllers.js.map +1 -0
  94. package/dist/commonjs/operationsInterfaces/index.d.ts +4 -0
  95. package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
  96. package/dist/commonjs/operationsInterfaces/index.js +14 -0
  97. package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
  98. package/dist/commonjs/operationsInterfaces/operations.d.ts +12 -0
  99. package/dist/commonjs/operationsInterfaces/operations.d.ts.map +1 -0
  100. package/dist/commonjs/operationsInterfaces/operations.js +10 -0
  101. package/dist/commonjs/operationsInterfaces/operations.js.map +1 -0
  102. package/dist/commonjs/package.json +3 -0
  103. package/dist/commonjs/pagingHelper.d.ts +13 -0
  104. package/dist/commonjs/pagingHelper.d.ts.map +1 -0
  105. package/dist/commonjs/pagingHelper.js +36 -0
  106. package/dist/commonjs/pagingHelper.js.map +1 -0
  107. package/dist/esm/devSpacesManagementClient.d.ts +22 -0
  108. package/dist/esm/devSpacesManagementClient.d.ts.map +1 -0
  109. package/dist/esm/devSpacesManagementClient.js +99 -0
  110. package/dist/esm/devSpacesManagementClient.js.map +1 -0
  111. package/dist/esm/index.d.ts +5 -0
  112. package/dist/esm/index.d.ts.map +1 -0
  113. package/{src/index.ts → dist/esm/index.js} +5 -5
  114. package/dist/esm/index.js.map +1 -0
  115. package/dist/esm/lroImpl.d.ts +16 -0
  116. package/dist/esm/lroImpl.d.ts.map +1 -0
  117. package/dist/esm/lroImpl.js +25 -0
  118. package/dist/esm/lroImpl.js.map +1 -0
  119. package/dist/esm/models/index.d.ts +296 -0
  120. package/dist/esm/models/index.d.ts.map +1 -0
  121. package/dist/esm/models/index.js +38 -0
  122. package/dist/esm/models/index.js.map +1 -0
  123. package/dist/esm/models/mappers.d.ts +23 -0
  124. package/dist/esm/models/mappers.d.ts.map +1 -0
  125. package/dist/esm/models/mappers.js +408 -0
  126. package/dist/esm/models/mappers.js.map +1 -0
  127. package/dist/esm/models/parameters.d.ts +15 -0
  128. package/dist/esm/models/parameters.d.ts.map +1 -0
  129. package/dist/esm/models/parameters.js +129 -0
  130. package/dist/esm/models/parameters.js.map +1 -0
  131. package/dist/esm/operations/containerHostMappings.d.ts +23 -0
  132. package/dist/esm/operations/containerHostMappings.d.ts.map +1 -0
  133. package/dist/esm/operations/containerHostMappings.js +59 -0
  134. package/dist/esm/operations/containerHostMappings.js.map +1 -0
  135. package/dist/esm/operations/controllers.d.ts +111 -0
  136. package/dist/esm/operations/controllers.d.ts.map +1 -0
  137. package/dist/esm/operations/controllers.js +513 -0
  138. package/dist/esm/operations/controllers.js.map +1 -0
  139. package/dist/esm/operations/index.d.ts +4 -0
  140. package/dist/esm/operations/index.d.ts.map +1 -0
  141. package/dist/esm/operations/index.js +11 -0
  142. package/dist/esm/operations/index.js.map +1 -0
  143. package/dist/esm/operations/operations.d.ts +34 -0
  144. package/dist/esm/operations/operations.d.ts.map +1 -0
  145. package/dist/esm/operations/operations.js +130 -0
  146. package/dist/esm/operations/operations.js.map +1 -0
  147. package/dist/esm/operationsInterfaces/containerHostMappings.d.ts +15 -0
  148. package/dist/esm/operationsInterfaces/containerHostMappings.d.ts.map +1 -0
  149. package/{src/operations/index.ts → dist/esm/operationsInterfaces/containerHostMappings.js} +2 -4
  150. package/dist/esm/operationsInterfaces/containerHostMappings.js.map +1 -0
  151. package/dist/esm/operationsInterfaces/controllers.d.ts +74 -0
  152. package/dist/esm/operationsInterfaces/controllers.d.ts.map +1 -0
  153. package/dist/esm/operationsInterfaces/controllers.js +9 -0
  154. package/dist/esm/operationsInterfaces/controllers.js.map +1 -0
  155. package/dist/esm/operationsInterfaces/index.d.ts +4 -0
  156. package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
  157. package/dist/esm/operationsInterfaces/index.js +11 -0
  158. package/dist/esm/operationsInterfaces/index.js.map +1 -0
  159. package/dist/esm/operationsInterfaces/operations.d.ts +12 -0
  160. package/dist/esm/operationsInterfaces/operations.d.ts.map +1 -0
  161. package/dist/esm/operationsInterfaces/operations.js +9 -0
  162. package/dist/esm/operationsInterfaces/operations.js.map +1 -0
  163. package/dist/esm/package.json +3 -0
  164. package/dist/esm/pagingHelper.d.ts +13 -0
  165. package/dist/esm/pagingHelper.d.ts.map +1 -0
  166. package/dist/esm/pagingHelper.js +32 -0
  167. package/dist/esm/pagingHelper.js.map +1 -0
  168. package/dist/react-native/devSpacesManagementClient.d.ts +22 -0
  169. package/dist/react-native/devSpacesManagementClient.d.ts.map +1 -0
  170. package/dist/react-native/devSpacesManagementClient.js +99 -0
  171. package/dist/react-native/devSpacesManagementClient.js.map +1 -0
  172. package/dist/react-native/index.d.ts +5 -0
  173. package/dist/react-native/index.d.ts.map +1 -0
  174. package/dist/react-native/index.js +13 -0
  175. package/dist/react-native/index.js.map +1 -0
  176. package/dist/react-native/lroImpl.d.ts +16 -0
  177. package/dist/react-native/lroImpl.d.ts.map +1 -0
  178. package/dist/react-native/lroImpl.js +25 -0
  179. package/dist/react-native/lroImpl.js.map +1 -0
  180. package/dist/react-native/models/index.d.ts +296 -0
  181. package/dist/react-native/models/index.d.ts.map +1 -0
  182. package/dist/react-native/models/index.js +38 -0
  183. package/dist/react-native/models/index.js.map +1 -0
  184. package/dist/react-native/models/mappers.d.ts +23 -0
  185. package/dist/react-native/models/mappers.d.ts.map +1 -0
  186. package/dist/react-native/models/mappers.js +408 -0
  187. package/dist/react-native/models/mappers.js.map +1 -0
  188. package/dist/react-native/models/parameters.d.ts +15 -0
  189. package/dist/react-native/models/parameters.d.ts.map +1 -0
  190. package/dist/react-native/models/parameters.js +129 -0
  191. package/dist/react-native/models/parameters.js.map +1 -0
  192. package/dist/react-native/operations/containerHostMappings.d.ts +23 -0
  193. package/dist/react-native/operations/containerHostMappings.d.ts.map +1 -0
  194. package/dist/react-native/operations/containerHostMappings.js +59 -0
  195. package/dist/react-native/operations/containerHostMappings.js.map +1 -0
  196. package/dist/react-native/operations/controllers.d.ts +111 -0
  197. package/dist/react-native/operations/controllers.d.ts.map +1 -0
  198. package/dist/react-native/operations/controllers.js +513 -0
  199. package/dist/react-native/operations/controllers.js.map +1 -0
  200. package/dist/react-native/operations/index.d.ts +4 -0
  201. package/dist/react-native/operations/index.d.ts.map +1 -0
  202. package/dist/react-native/operations/index.js +11 -0
  203. package/dist/react-native/operations/index.js.map +1 -0
  204. package/dist/react-native/operations/operations.d.ts +34 -0
  205. package/dist/react-native/operations/operations.d.ts.map +1 -0
  206. package/dist/react-native/operations/operations.js +130 -0
  207. package/dist/react-native/operations/operations.js.map +1 -0
  208. package/dist/react-native/operationsInterfaces/containerHostMappings.d.ts +15 -0
  209. package/dist/react-native/operationsInterfaces/containerHostMappings.d.ts.map +1 -0
  210. package/dist/react-native/operationsInterfaces/containerHostMappings.js +9 -0
  211. package/dist/react-native/operationsInterfaces/containerHostMappings.js.map +1 -0
  212. package/dist/react-native/operationsInterfaces/controllers.d.ts +74 -0
  213. package/dist/react-native/operationsInterfaces/controllers.d.ts.map +1 -0
  214. package/dist/react-native/operationsInterfaces/controllers.js +9 -0
  215. package/dist/react-native/operationsInterfaces/controllers.js.map +1 -0
  216. package/dist/react-native/operationsInterfaces/index.d.ts +4 -0
  217. package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
  218. package/dist/react-native/operationsInterfaces/index.js +11 -0
  219. package/dist/react-native/operationsInterfaces/index.js.map +1 -0
  220. package/dist/react-native/operationsInterfaces/operations.d.ts +12 -0
  221. package/dist/react-native/operationsInterfaces/operations.d.ts.map +1 -0
  222. package/dist/react-native/operationsInterfaces/operations.js +9 -0
  223. package/dist/react-native/operationsInterfaces/operations.js.map +1 -0
  224. package/dist/react-native/package.json +3 -0
  225. package/dist/react-native/pagingHelper.d.ts +13 -0
  226. package/dist/react-native/pagingHelper.d.ts.map +1 -0
  227. package/dist/react-native/pagingHelper.js +32 -0
  228. package/dist/react-native/pagingHelper.js.map +1 -0
  229. package/package.json +58 -28
  230. package/dist/index.js +0 -1481
  231. package/dist/index.js.map +0 -1
  232. package/dist/index.min.js +0 -1
  233. package/dist/index.min.js.map +0 -1
  234. package/dist-esm/samples-dev/containerHostMappingsGetContainerHostMappingSample.d.ts +0 -2
  235. package/dist-esm/samples-dev/containerHostMappingsGetContainerHostMappingSample.d.ts.map +0 -1
  236. package/dist-esm/samples-dev/containerHostMappingsGetContainerHostMappingSample.js +0 -34
  237. package/dist-esm/samples-dev/containerHostMappingsGetContainerHostMappingSample.js.map +0 -1
  238. package/dist-esm/samples-dev/controllersCreateSample.d.ts +0 -2
  239. package/dist-esm/samples-dev/controllersCreateSample.d.ts.map +0 -1
  240. package/dist-esm/samples-dev/controllersCreateSample.js +0 -38
  241. package/dist-esm/samples-dev/controllersCreateSample.js.map +0 -1
  242. package/dist-esm/samples-dev/controllersDeleteSample.d.ts +0 -2
  243. package/dist-esm/samples-dev/controllersDeleteSample.d.ts.map +0 -1
  244. package/dist-esm/samples-dev/controllersDeleteSample.js +0 -31
  245. package/dist-esm/samples-dev/controllersDeleteSample.js.map +0 -1
  246. package/dist-esm/samples-dev/controllersGetSample.d.ts +0 -2
  247. package/dist-esm/samples-dev/controllersGetSample.d.ts.map +0 -1
  248. package/dist-esm/samples-dev/controllersGetSample.js +0 -31
  249. package/dist-esm/samples-dev/controllersGetSample.js.map +0 -1
  250. package/dist-esm/samples-dev/controllersListByResourceGroupSample.d.ts +0 -2
  251. package/dist-esm/samples-dev/controllersListByResourceGroupSample.d.ts.map +0 -1
  252. package/dist-esm/samples-dev/controllersListByResourceGroupSample.js +0 -46
  253. package/dist-esm/samples-dev/controllersListByResourceGroupSample.js.map +0 -1
  254. package/dist-esm/samples-dev/controllersListConnectionDetailsSample.d.ts +0 -2
  255. package/dist-esm/samples-dev/controllersListConnectionDetailsSample.d.ts.map +0 -1
  256. package/dist-esm/samples-dev/controllersListConnectionDetailsSample.js +0 -34
  257. package/dist-esm/samples-dev/controllersListConnectionDetailsSample.js.map +0 -1
  258. package/dist-esm/samples-dev/controllersListSample.d.ts +0 -2
  259. package/dist-esm/samples-dev/controllersListSample.d.ts.map +0 -1
  260. package/dist-esm/samples-dev/controllersListSample.js +0 -45
  261. package/dist-esm/samples-dev/controllersListSample.js.map +0 -1
  262. package/dist-esm/samples-dev/controllersUpdateSample.d.ts +0 -2
  263. package/dist-esm/samples-dev/controllersUpdateSample.d.ts.map +0 -1
  264. package/dist-esm/samples-dev/controllersUpdateSample.js +0 -35
  265. package/dist-esm/samples-dev/controllersUpdateSample.js.map +0 -1
  266. package/dist-esm/src/devSpacesManagementClient.d.ts.map +0 -1
  267. package/dist-esm/src/devSpacesManagementClient.js.map +0 -1
  268. package/dist-esm/src/index.d.ts +0 -5
  269. package/dist-esm/src/index.js.map +0 -1
  270. package/dist-esm/src/lroImpl.js +0 -29
  271. package/dist-esm/src/lroImpl.js.map +0 -1
  272. package/dist-esm/src/models/index.js.map +0 -1
  273. package/dist-esm/src/models/mappers.js.map +0 -1
  274. package/dist-esm/src/models/parameters.js.map +0 -1
  275. package/dist-esm/src/operations/containerHostMappings.d.ts.map +0 -1
  276. package/dist-esm/src/operations/containerHostMappings.js.map +0 -1
  277. package/dist-esm/src/operations/controllers.d.ts.map +0 -1
  278. package/dist-esm/src/operations/controllers.js.map +0 -1
  279. package/dist-esm/src/operations/index.d.ts +0 -4
  280. package/dist-esm/src/operations/index.js.map +0 -1
  281. package/dist-esm/src/operations/operations.d.ts.map +0 -1
  282. package/dist-esm/src/operations/operations.js.map +0 -1
  283. package/dist-esm/src/operationsInterfaces/containerHostMappings.d.ts.map +0 -1
  284. package/dist-esm/src/operationsInterfaces/containerHostMappings.js.map +0 -1
  285. package/dist-esm/src/operationsInterfaces/controllers.d.ts.map +0 -1
  286. package/dist-esm/src/operationsInterfaces/controllers.js.map +0 -1
  287. package/dist-esm/src/operationsInterfaces/index.d.ts +0 -4
  288. package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
  289. package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
  290. package/dist-esm/src/pagingHelper.js.map +0 -1
  291. package/dist-esm/test/sampleTest.d.ts +0 -2
  292. package/dist-esm/test/sampleTest.d.ts.map +0 -1
  293. package/dist-esm/test/sampleTest.js +0 -42
  294. package/dist-esm/test/sampleTest.js.map +0 -1
  295. package/src/devSpacesManagementClient.ts +0 -152
  296. package/src/lroImpl.ts +0 -34
  297. package/src/models/index.ts +0 -353
  298. package/src/models/mappers.ts +0 -444
  299. package/src/models/parameters.ts +0 -152
  300. package/src/operations/containerHostMappings.ts +0 -80
  301. package/src/operations/controllers.ts +0 -673
  302. package/src/operations/operations.ts +0 -146
  303. package/src/operationsInterfaces/containerHostMappings.ts +0 -32
  304. package/src/operationsInterfaces/controllers.ts +0 -140
  305. package/src/operationsInterfaces/index.ts +0 -11
  306. package/src/operationsInterfaces/operations.ts +0 -26
  307. package/src/pagingHelper.ts +0 -39
  308. package/tsconfig.json +0 -33
  309. package/types/arm-devspaces.d.ts +0 -471
  310. /package/{dist-esm/src → dist/browser}/lroImpl.d.ts +0 -0
  311. /package/{dist-esm/src → dist/browser}/lroImpl.d.ts.map +0 -0
  312. /package/{dist-esm/src → dist/browser}/models/index.d.ts +0 -0
  313. /package/{dist-esm/src → dist/browser}/models/index.d.ts.map +0 -0
  314. /package/{dist-esm/src → dist/browser}/models/index.js +0 -0
  315. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts +0 -0
  316. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts.map +0 -0
  317. /package/{dist-esm/src → dist/browser}/models/mappers.js +0 -0
  318. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts +0 -0
  319. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +0 -0
  320. /package/{dist-esm/src → dist/browser}/operationsInterfaces/containerHostMappings.js +0 -0
  321. /package/{dist-esm/src → dist/browser}/operationsInterfaces/controllers.js +0 -0
  322. /package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.js +0 -0
  323. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts +0 -0
  324. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts.map +0 -0
  325. /package/{dist-esm/src → dist/browser}/pagingHelper.js +0 -0
  326. /package/{types → dist/commonjs}/tsdoc-metadata.json +0 -0
@@ -0,0 +1,134 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) Microsoft Corporation.
4
+ * Licensed under the MIT License.
5
+ *
6
+ * Code generated by Microsoft (R) AutoRest Code Generator.
7
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.OperationsImpl = void 0;
11
+ const tslib_1 = require("tslib");
12
+ const pagingHelper_js_1 = require("../pagingHelper.js");
13
+ const coreClient = tslib_1.__importStar(require("@azure/core-client"));
14
+ const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
15
+ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
16
+ /// <reference lib="esnext.asynciterable" />
17
+ /** Class containing Operations operations. */
18
+ class OperationsImpl {
19
+ /**
20
+ * Initialize a new instance of the class Operations class.
21
+ * @param client Reference to the service client
22
+ */
23
+ constructor(client) {
24
+ this.client = client;
25
+ }
26
+ /**
27
+ * Lists all the supported operations by the Microsoft.DevSpaces resource provider along with their
28
+ * description.
29
+ * @param options The options parameters.
30
+ */
31
+ list(options) {
32
+ const iter = this.listPagingAll(options);
33
+ return {
34
+ next() {
35
+ return iter.next();
36
+ },
37
+ [Symbol.asyncIterator]() {
38
+ return this;
39
+ },
40
+ byPage: (settings) => {
41
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
42
+ throw new Error("maxPageSize is not supported by this operation.");
43
+ }
44
+ return this.listPagingPage(options, settings);
45
+ }
46
+ };
47
+ }
48
+ listPagingPage(options, settings) {
49
+ return tslib_1.__asyncGenerator(this, arguments, function* listPagingPage_1() {
50
+ let result;
51
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
52
+ if (!continuationToken) {
53
+ result = yield tslib_1.__await(this._list(options));
54
+ let page = result.value || [];
55
+ continuationToken = result.nextLink;
56
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
57
+ yield yield tslib_1.__await(page);
58
+ }
59
+ while (continuationToken) {
60
+ result = yield tslib_1.__await(this._listNext(continuationToken, options));
61
+ continuationToken = result.nextLink;
62
+ let page = result.value || [];
63
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
64
+ yield yield tslib_1.__await(page);
65
+ }
66
+ });
67
+ }
68
+ listPagingAll(options) {
69
+ return tslib_1.__asyncGenerator(this, arguments, function* listPagingAll_1() {
70
+ var _a, e_1, _b, _c;
71
+ try {
72
+ for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
73
+ _c = _f.value;
74
+ _d = false;
75
+ const page = _c;
76
+ yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
77
+ }
78
+ }
79
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
80
+ finally {
81
+ try {
82
+ if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
83
+ }
84
+ finally { if (e_1) throw e_1.error; }
85
+ }
86
+ });
87
+ }
88
+ /**
89
+ * Lists all the supported operations by the Microsoft.DevSpaces resource provider along with their
90
+ * description.
91
+ * @param options The options parameters.
92
+ */
93
+ _list(options) {
94
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
95
+ }
96
+ /**
97
+ * ListNext
98
+ * @param nextLink The nextLink from the previous successful call to the List method.
99
+ * @param options The options parameters.
100
+ */
101
+ _listNext(nextLink, options) {
102
+ return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
103
+ }
104
+ }
105
+ exports.OperationsImpl = OperationsImpl;
106
+ // Operation Specifications
107
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
108
+ const listOperationSpec = {
109
+ path: "/providers/Microsoft.DevSpaces/operations",
110
+ httpMethod: "GET",
111
+ responses: {
112
+ 200: {
113
+ bodyMapper: Mappers.ResourceProviderOperationList
114
+ }
115
+ },
116
+ queryParameters: [Parameters.apiVersion],
117
+ urlParameters: [Parameters.$host],
118
+ headerParameters: [Parameters.accept],
119
+ serializer
120
+ };
121
+ const listNextOperationSpec = {
122
+ path: "{nextLink}",
123
+ httpMethod: "GET",
124
+ responses: {
125
+ 200: {
126
+ bodyMapper: Mappers.ResourceProviderOperationList
127
+ }
128
+ },
129
+ queryParameters: [Parameters.apiVersion],
130
+ urlParameters: [Parameters.$host, Parameters.nextLink],
131
+ headerParameters: [Parameters.accept],
132
+ serializer
133
+ };
134
+ //# sourceMappingURL=operations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"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","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Operations } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { DevSpacesManagementClient } from \"../devSpacesManagementClient.js\";\nimport {\n ResourceProviderOperationDefinition,\n OperationsListNextOptionalParams,\n OperationsListOptionalParams,\n OperationsListResponse,\n OperationsListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Operations operations. */\nexport class OperationsImpl implements Operations {\n private readonly client: DevSpacesManagementClient;\n\n /**\n * Initialize a new instance of the class Operations class.\n * @param client Reference to the service client\n */\n constructor(client: DevSpacesManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists all the supported operations by the Microsoft.DevSpaces resource provider along with their\n * description.\n * @param options The options parameters.\n */\n public list(\n options?: OperationsListOptionalParams\n ): PagedAsyncIterableIterator<ResourceProviderOperationDefinition> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n options?: OperationsListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<ResourceProviderOperationDefinition[]> {\n let result: OperationsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: OperationsListOptionalParams\n ): AsyncIterableIterator<ResourceProviderOperationDefinition> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists all the supported operations by the Microsoft.DevSpaces resource provider along with their\n * description.\n * @param options The options parameters.\n */\n private _list(\n options?: OperationsListOptionalParams\n ): Promise<OperationsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: OperationsListNextOptionalParams\n ): Promise<OperationsListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.DevSpaces/operations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ResourceProviderOperationList\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ResourceProviderOperationList\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
@@ -0,0 +1,15 @@
1
+ import { ContainerHostMapping, ContainerHostMappingsGetContainerHostMappingOptionalParams, ContainerHostMappingsGetContainerHostMappingResponse } from "../models/index.js";
2
+ /** Interface representing a ContainerHostMappings. */
3
+ export interface ContainerHostMappings {
4
+ /**
5
+ * Returns container host mapping object for a container host resource ID if an associated controller
6
+ * exists.
7
+ * @param resourceGroupName Resource group to which the resource belongs.
8
+ * @param location Location of the container host.
9
+ * @param containerHostMapping Container host mapping object specifying the Container host resource ID
10
+ * and its associated Controller resource.
11
+ * @param options The options parameters.
12
+ */
13
+ getContainerHostMapping(resourceGroupName: string, location: string, containerHostMapping: ContainerHostMapping, options?: ContainerHostMappingsGetContainerHostMappingOptionalParams): Promise<ContainerHostMappingsGetContainerHostMappingResponse>;
14
+ }
15
+ //# sourceMappingURL=containerHostMappings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"containerHostMappings.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/containerHostMappings.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,oBAAoB,EACpB,0DAA0D,EAC1D,oDAAoD,EACrD,MAAM,oBAAoB,CAAC;AAE5B,sDAAsD;AACtD,MAAM,WAAW,qBAAqB;IACpC;;;;;;;;OAQG;IACH,uBAAuB,CACrB,iBAAiB,EAAE,MAAM,EACzB,QAAQ,EAAE,MAAM,EAChB,oBAAoB,EAAE,oBAAoB,EAC1C,OAAO,CAAC,EAAE,0DAA0D,GACnE,OAAO,CAAC,oDAAoD,CAAC,CAAC;CAClE"}
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) Microsoft Corporation.
4
+ * Licensed under the MIT License.
5
+ *
6
+ * Code generated by Microsoft (R) AutoRest Code Generator.
7
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ //# sourceMappingURL=containerHostMappings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"containerHostMappings.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/containerHostMappings.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport {\n ContainerHostMapping,\n ContainerHostMappingsGetContainerHostMappingOptionalParams,\n ContainerHostMappingsGetContainerHostMappingResponse\n} from \"../models/index.js\";\n\n/** Interface representing a ContainerHostMappings. */\nexport interface ContainerHostMappings {\n /**\n * Returns container host mapping object for a container host resource ID if an associated controller\n * exists.\n * @param resourceGroupName Resource group to which the resource belongs.\n * @param location Location of the container host.\n * @param containerHostMapping Container host mapping object specifying the Container host resource ID\n * and its associated Controller resource.\n * @param options The options parameters.\n */\n getContainerHostMapping(\n resourceGroupName: string,\n location: string,\n containerHostMapping: ContainerHostMapping,\n options?: ContainerHostMappingsGetContainerHostMappingOptionalParams\n ): Promise<ContainerHostMappingsGetContainerHostMappingResponse>;\n}\n"]}
@@ -0,0 +1,74 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { PollerLike, PollOperationState } from "@azure/core-lro";
3
+ import { Controller, ControllersListByResourceGroupOptionalParams, ControllersListOptionalParams, ControllersGetOptionalParams, ControllersGetResponse, ControllersCreateOptionalParams, ControllersCreateResponse, ControllersDeleteOptionalParams, ControllerUpdateParameters, ControllersUpdateOptionalParams, ControllersUpdateResponse, ListConnectionDetailsParameters, ControllersListConnectionDetailsOptionalParams, ControllersListConnectionDetailsResponse } from "../models/index.js";
4
+ /** Interface representing a Controllers. */
5
+ export interface Controllers {
6
+ /**
7
+ * Lists all the Azure Dev Spaces Controllers with their properties in the specified resource group and
8
+ * subscription.
9
+ * @param resourceGroupName Resource group to which the resource belongs.
10
+ * @param options The options parameters.
11
+ */
12
+ listByResourceGroup(resourceGroupName: string, options?: ControllersListByResourceGroupOptionalParams): PagedAsyncIterableIterator<Controller>;
13
+ /**
14
+ * Lists all the Azure Dev Spaces Controllers with their properties in the subscription.
15
+ * @param options The options parameters.
16
+ */
17
+ list(options?: ControllersListOptionalParams): PagedAsyncIterableIterator<Controller>;
18
+ /**
19
+ * Gets the properties for an Azure Dev Spaces Controller.
20
+ * @param resourceGroupName Resource group to which the resource belongs.
21
+ * @param name Name of the resource.
22
+ * @param options The options parameters.
23
+ */
24
+ get(resourceGroupName: string, name: string, options?: ControllersGetOptionalParams): Promise<ControllersGetResponse>;
25
+ /**
26
+ * Creates an Azure Dev Spaces Controller with the specified create parameters.
27
+ * @param resourceGroupName Resource group to which the resource belongs.
28
+ * @param name Name of the resource.
29
+ * @param controller Controller create parameters.
30
+ * @param options The options parameters.
31
+ */
32
+ beginCreate(resourceGroupName: string, name: string, controller: Controller, options?: ControllersCreateOptionalParams): Promise<PollerLike<PollOperationState<ControllersCreateResponse>, ControllersCreateResponse>>;
33
+ /**
34
+ * Creates an Azure Dev Spaces Controller with the specified create parameters.
35
+ * @param resourceGroupName Resource group to which the resource belongs.
36
+ * @param name Name of the resource.
37
+ * @param controller Controller create parameters.
38
+ * @param options The options parameters.
39
+ */
40
+ beginCreateAndWait(resourceGroupName: string, name: string, controller: Controller, options?: ControllersCreateOptionalParams): Promise<ControllersCreateResponse>;
41
+ /**
42
+ * Deletes an existing Azure Dev Spaces Controller.
43
+ * @param resourceGroupName Resource group to which the resource belongs.
44
+ * @param name Name of the resource.
45
+ * @param options The options parameters.
46
+ */
47
+ beginDelete(resourceGroupName: string, name: string, options?: ControllersDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
48
+ /**
49
+ * Deletes an existing Azure Dev Spaces Controller.
50
+ * @param resourceGroupName Resource group to which the resource belongs.
51
+ * @param name Name of the resource.
52
+ * @param options The options parameters.
53
+ */
54
+ beginDeleteAndWait(resourceGroupName: string, name: string, options?: ControllersDeleteOptionalParams): Promise<void>;
55
+ /**
56
+ * Updates the properties of an existing Azure Dev Spaces Controller with the specified update
57
+ * parameters.
58
+ * @param resourceGroupName Resource group to which the resource belongs.
59
+ * @param name Name of the resource.
60
+ * @param controllerUpdateParameters Parameters for updating the Azure Dev Spaces Controller.
61
+ * @param options The options parameters.
62
+ */
63
+ update(resourceGroupName: string, name: string, controllerUpdateParameters: ControllerUpdateParameters, options?: ControllersUpdateOptionalParams): Promise<ControllersUpdateResponse>;
64
+ /**
65
+ * Lists connection details for the underlying container resources of an Azure Dev Spaces Controller.
66
+ * @param resourceGroupName Resource group to which the resource belongs.
67
+ * @param name Name of the resource.
68
+ * @param listConnectionDetailsParameters Parameters for listing connection details of Azure Dev Spaces
69
+ * Controller.
70
+ * @param options The options parameters.
71
+ */
72
+ listConnectionDetails(resourceGroupName: string, name: string, listConnectionDetailsParameters: ListConnectionDetailsParameters, options?: ControllersListConnectionDetailsOptionalParams): Promise<ControllersListConnectionDetailsResponse>;
73
+ }
74
+ //# sourceMappingURL=controllers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"controllers.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/controllers.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,EACL,UAAU,EACV,4CAA4C,EAC5C,6BAA6B,EAC7B,4BAA4B,EAC5B,sBAAsB,EACtB,+BAA+B,EAC/B,yBAAyB,EACzB,+BAA+B,EAC/B,0BAA0B,EAC1B,+BAA+B,EAC/B,yBAAyB,EACzB,+BAA+B,EAC/B,8CAA8C,EAC9C,wCAAwC,EACzC,MAAM,oBAAoB,CAAC;AAG5B,4CAA4C;AAC5C,MAAM,WAAW,WAAW;IAC1B;;;;;OAKG;IACH,mBAAmB,CACjB,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,4CAA4C,GACrD,0BAA0B,CAAC,UAAU,CAAC,CAAC;IAC1C;;;OAGG;IACH,IAAI,CACF,OAAO,CAAC,EAAE,6BAA6B,GACtC,0BAA0B,CAAC,UAAU,CAAC,CAAC;IAC1C;;;;;OAKG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,4BAA4B,GACrC,OAAO,CAAC,sBAAsB,CAAC,CAAC;IACnC;;;;;;OAMG;IACH,WAAW,CACT,iBAAiB,EAAE,MAAM,EACzB,IAAI,EAAE,MAAM,EACZ,UAAU,EAAE,UAAU,EACtB,OAAO,CAAC,EAAE,+BAA+B,GACxC,OAAO,CACR,UAAU,CACR,kBAAkB,CAAC,yBAAyB,CAAC,EAC7C,yBAAyB,CAC1B,CACF,CAAC;IACF;;;;;;OAMG;IACH,kBAAkB,CAChB,iBAAiB,EAAE,MAAM,EACzB,IAAI,EAAE,MAAM,EACZ,UAAU,EAAE,UAAU,EACtB,OAAO,CAAC,EAAE,+BAA+B,GACxC,OAAO,CAAC,yBAAyB,CAAC,CAAC;IACtC;;;;;OAKG;IACH,WAAW,CACT,iBAAiB,EAAE,MAAM,EACzB,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,+BAA+B,GACxC,OAAO,CAAC,UAAU,CAAC,kBAAkB,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC;IACvD;;;;;OAKG;IACH,kBAAkB,CAChB,iBAAiB,EAAE,MAAM,EACzB,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,+BAA+B,GACxC,OAAO,CAAC,IAAI,CAAC,CAAC;IACjB;;;;;;;OAOG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,IAAI,EAAE,MAAM,EACZ,0BAA0B,EAAE,0BAA0B,EACtD,OAAO,CAAC,EAAE,+BAA+B,GACxC,OAAO,CAAC,yBAAyB,CAAC,CAAC;IACtC;;;;;;;OAOG;IACH,qBAAqB,CACnB,iBAAiB,EAAE,MAAM,EACzB,IAAI,EAAE,MAAM,EACZ,+BAA+B,EAAE,+BAA+B,EAChE,OAAO,CAAC,EAAE,8CAA8C,GACvD,OAAO,CAAC,wCAAwC,CAAC,CAAC;CACtD"}
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) Microsoft Corporation.
4
+ * Licensed under the MIT License.
5
+ *
6
+ * Code generated by Microsoft (R) AutoRest Code Generator.
7
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ //# sourceMappingURL=controllers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"controllers.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/controllers.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { PollerLike, PollOperationState } from \"@azure/core-lro\";\nimport {\n Controller,\n ControllersListByResourceGroupOptionalParams,\n ControllersListOptionalParams,\n ControllersGetOptionalParams,\n ControllersGetResponse,\n ControllersCreateOptionalParams,\n ControllersCreateResponse,\n ControllersDeleteOptionalParams,\n ControllerUpdateParameters,\n ControllersUpdateOptionalParams,\n ControllersUpdateResponse,\n ListConnectionDetailsParameters,\n ControllersListConnectionDetailsOptionalParams,\n ControllersListConnectionDetailsResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a Controllers. */\nexport interface Controllers {\n /**\n * Lists all the Azure Dev Spaces Controllers with their properties in the specified resource group and\n * subscription.\n * @param resourceGroupName Resource group to which the resource belongs.\n * @param options The options parameters.\n */\n listByResourceGroup(\n resourceGroupName: string,\n options?: ControllersListByResourceGroupOptionalParams\n ): PagedAsyncIterableIterator<Controller>;\n /**\n * Lists all the Azure Dev Spaces Controllers with their properties in the subscription.\n * @param options The options parameters.\n */\n list(\n options?: ControllersListOptionalParams\n ): PagedAsyncIterableIterator<Controller>;\n /**\n * Gets the properties for an Azure Dev Spaces Controller.\n * @param resourceGroupName Resource group to which the resource belongs.\n * @param name Name of the resource.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n name: string,\n options?: ControllersGetOptionalParams\n ): Promise<ControllersGetResponse>;\n /**\n * Creates an Azure Dev Spaces Controller with the specified create parameters.\n * @param resourceGroupName Resource group to which the resource belongs.\n * @param name Name of the resource.\n * @param controller Controller create parameters.\n * @param options The options parameters.\n */\n beginCreate(\n resourceGroupName: string,\n name: string,\n controller: Controller,\n options?: ControllersCreateOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<ControllersCreateResponse>,\n ControllersCreateResponse\n >\n >;\n /**\n * Creates an Azure Dev Spaces Controller with the specified create parameters.\n * @param resourceGroupName Resource group to which the resource belongs.\n * @param name Name of the resource.\n * @param controller Controller create parameters.\n * @param options The options parameters.\n */\n beginCreateAndWait(\n resourceGroupName: string,\n name: string,\n controller: Controller,\n options?: ControllersCreateOptionalParams\n ): Promise<ControllersCreateResponse>;\n /**\n * Deletes an existing Azure Dev Spaces Controller.\n * @param resourceGroupName Resource group to which the resource belongs.\n * @param name Name of the resource.\n * @param options The options parameters.\n */\n beginDelete(\n resourceGroupName: string,\n name: string,\n options?: ControllersDeleteOptionalParams\n ): Promise<PollerLike<PollOperationState<void>, void>>;\n /**\n * Deletes an existing Azure Dev Spaces Controller.\n * @param resourceGroupName Resource group to which the resource belongs.\n * @param name Name of the resource.\n * @param options The options parameters.\n */\n beginDeleteAndWait(\n resourceGroupName: string,\n name: string,\n options?: ControllersDeleteOptionalParams\n ): Promise<void>;\n /**\n * Updates the properties of an existing Azure Dev Spaces Controller with the specified update\n * parameters.\n * @param resourceGroupName Resource group to which the resource belongs.\n * @param name Name of the resource.\n * @param controllerUpdateParameters Parameters for updating the Azure Dev Spaces Controller.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n name: string,\n controllerUpdateParameters: ControllerUpdateParameters,\n options?: ControllersUpdateOptionalParams\n ): Promise<ControllersUpdateResponse>;\n /**\n * Lists connection details for the underlying container resources of an Azure Dev Spaces Controller.\n * @param resourceGroupName Resource group to which the resource belongs.\n * @param name Name of the resource.\n * @param listConnectionDetailsParameters Parameters for listing connection details of Azure Dev Spaces\n * Controller.\n * @param options The options parameters.\n */\n listConnectionDetails(\n resourceGroupName: string,\n name: string,\n listConnectionDetailsParameters: ListConnectionDetailsParameters,\n options?: ControllersListConnectionDetailsOptionalParams\n ): Promise<ControllersListConnectionDetailsResponse>;\n}\n"]}
@@ -0,0 +1,4 @@
1
+ export * from "./containerHostMappings.js";
2
+ export * from "./operations.js";
3
+ export * from "./controllers.js";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAQA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC"}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) Microsoft Corporation.
4
+ * Licensed under the MIT License.
5
+ *
6
+ * Code generated by Microsoft (R) AutoRest Code Generator.
7
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ const tslib_1 = require("tslib");
11
+ tslib_1.__exportStar(require("./containerHostMappings.js"), exports);
12
+ tslib_1.__exportStar(require("./operations.js"), exports);
13
+ tslib_1.__exportStar(require("./controllers.js"), exports);
14
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,qEAA2C;AAC3C,0DAAgC;AAChC,2DAAiC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport * from \"./containerHostMappings.js\";\nexport * from \"./operations.js\";\nexport * from \"./controllers.js\";\n"]}
@@ -0,0 +1,12 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { ResourceProviderOperationDefinition, OperationsListOptionalParams } from "../models/index.js";
3
+ /** Interface representing a Operations. */
4
+ export interface Operations {
5
+ /**
6
+ * Lists all the supported operations by the Microsoft.DevSpaces resource provider along with their
7
+ * description.
8
+ * @param options The options parameters.
9
+ */
10
+ list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<ResourceProviderOperationDefinition>;
11
+ }
12
+ //# sourceMappingURL=operations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/operations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EACL,mCAAmC,EACnC,4BAA4B,EAC7B,MAAM,oBAAoB,CAAC;AAG5B,2CAA2C;AAC3C,MAAM,WAAW,UAAU;IACzB;;;;OAIG;IACH,IAAI,CACF,OAAO,CAAC,EAAE,4BAA4B,GACrC,0BAA0B,CAAC,mCAAmC,CAAC,CAAC;CACpE"}
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) Microsoft Corporation.
4
+ * Licensed under the MIT License.
5
+ *
6
+ * Code generated by Microsoft (R) AutoRest Code Generator.
7
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ //# sourceMappingURL=operations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/operations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport {\n ResourceProviderOperationDefinition,\n OperationsListOptionalParams\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a Operations. */\nexport interface Operations {\n /**\n * Lists all the supported operations by the Microsoft.DevSpaces resource provider along with their\n * description.\n * @param options The options parameters.\n */\n list(\n options?: OperationsListOptionalParams\n ): PagedAsyncIterableIterator<ResourceProviderOperationDefinition>;\n}\n"]}
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "commonjs"
3
+ }
@@ -0,0 +1,13 @@
1
+ export interface PageInfo {
2
+ continuationToken?: string;
3
+ }
4
+ /**
5
+ * Given a result page from a pageable operation, returns a
6
+ * continuation token that can be used to begin paging from
7
+ * that point later.
8
+ * @param page A result object from calling .byPage() on a paged operation.
9
+ * @returns The continuation token that can be passed into byPage().
10
+ */
11
+ export declare function getContinuationToken(page: unknown): string | undefined;
12
+ export declare function setContinuationToken(page: unknown, continuationToken: string | undefined): void;
13
+ //# sourceMappingURL=pagingHelper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagingHelper.d.ts","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,QAAQ;IACvB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAID;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAKtE;AAED,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,OAAO,EACb,iBAAiB,EAAE,MAAM,GAAG,SAAS,GACpC,IAAI,CAON"}
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) Microsoft Corporation.
4
+ * Licensed under the MIT License.
5
+ *
6
+ * Code generated by Microsoft (R) AutoRest Code Generator.
7
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.getContinuationToken = getContinuationToken;
11
+ exports.setContinuationToken = setContinuationToken;
12
+ const pageMap = new WeakMap();
13
+ /**
14
+ * Given a result page from a pageable operation, returns a
15
+ * continuation token that can be used to begin paging from
16
+ * that point later.
17
+ * @param page A result object from calling .byPage() on a paged operation.
18
+ * @returns The continuation token that can be passed into byPage().
19
+ */
20
+ function getContinuationToken(page) {
21
+ var _a;
22
+ if (typeof page !== "object" || page === null) {
23
+ return undefined;
24
+ }
25
+ return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
26
+ }
27
+ function setContinuationToken(page, continuationToken) {
28
+ var _a;
29
+ if (typeof page !== "object" || page === null || !continuationToken) {
30
+ return;
31
+ }
32
+ const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
33
+ pageInfo.continuationToken = continuationToken;
34
+ pageMap.set(page, pageInfo);
35
+ }
36
+ //# sourceMappingURL=pagingHelper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAeH,oDAKC;AAED,oDAUC;AA1BD,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,SAAgB,oBAAoB,CAAC,IAAa;;IAChD,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;QAC9C,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,0CAAE,iBAAiB,CAAC;AAC9C,CAAC;AAED,SAAgB,oBAAoB,CAClC,IAAa,EACb,iBAAqC;;IAErC,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACpE,OAAO;IACT,CAAC;IACD,MAAM,QAAQ,GAAG,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,mCAAI,EAAE,CAAC;IACzC,QAAQ,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC9B,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport interface PageInfo {\n continuationToken?: string;\n}\n\nconst pageMap = new WeakMap<object, PageInfo>();\n\n/**\n * Given a result page from a pageable operation, returns a\n * continuation token that can be used to begin paging from\n * that point later.\n * @param page A result object from calling .byPage() on a paged operation.\n * @returns The continuation token that can be passed into byPage().\n */\nexport function getContinuationToken(page: unknown): string | undefined {\n if (typeof page !== \"object\" || page === null) {\n return undefined;\n }\n return pageMap.get(page)?.continuationToken;\n}\n\nexport function setContinuationToken(\n page: unknown,\n continuationToken: string | undefined\n): void {\n if (typeof page !== \"object\" || page === null || !continuationToken) {\n return;\n }\n const pageInfo = pageMap.get(page) ?? {};\n pageInfo.continuationToken = continuationToken;\n pageMap.set(page, pageInfo);\n}\n"]}
@@ -0,0 +1,22 @@
1
+ import * as coreClient from "@azure/core-client";
2
+ import * as coreAuth from "@azure/core-auth";
3
+ import { ContainerHostMappings, Operations, Controllers } from "./operationsInterfaces/index.js";
4
+ import { DevSpacesManagementClientOptionalParams } from "./models/index.js";
5
+ export declare class DevSpacesManagementClient extends coreClient.ServiceClient {
6
+ $host: string;
7
+ apiVersion: string;
8
+ subscriptionId: string;
9
+ /**
10
+ * Initializes a new instance of the DevSpacesManagementClient class.
11
+ * @param credentials Subscription credentials which uniquely identify client subscription.
12
+ * @param subscriptionId Azure subscription ID.
13
+ * @param options The parameter options
14
+ */
15
+ constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: DevSpacesManagementClientOptionalParams);
16
+ /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
17
+ private addCustomApiVersionPolicy;
18
+ containerHostMappings: ContainerHostMappings;
19
+ operations: Operations;
20
+ controllers: Controllers;
21
+ }
22
+ //# sourceMappingURL=devSpacesManagementClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"devSpacesManagementClient.d.ts","sourceRoot":"","sources":["../../src/devSpacesManagementClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAOjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAM7C,OAAO,EACL,qBAAqB,EACrB,UAAU,EACV,WAAW,EACZ,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,uCAAuC,EAAE,MAAM,mBAAmB,CAAC;AAE5E,qBAAa,yBAA0B,SAAQ,UAAU,CAAC,aAAa;IACrE,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IAEvB;;;;;OAKG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,uCAAuC;IA8EnD,8GAA8G;IAC9G,OAAO,CAAC,yBAAyB;IA2BjC,qBAAqB,EAAE,qBAAqB,CAAC;IAC7C,UAAU,EAAE,UAAU,CAAC;IACvB,WAAW,EAAE,WAAW,CAAC;CAC1B"}
@@ -0,0 +1,99 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import * as coreClient from "@azure/core-client";
9
+ import * as coreRestPipeline from "@azure/core-rest-pipeline";
10
+ import { ContainerHostMappingsImpl, OperationsImpl, ControllersImpl } from "./operations/index.js";
11
+ export class DevSpacesManagementClient extends coreClient.ServiceClient {
12
+ /**
13
+ * Initializes a new instance of the DevSpacesManagementClient class.
14
+ * @param credentials Subscription credentials which uniquely identify client subscription.
15
+ * @param subscriptionId Azure subscription ID.
16
+ * @param options The parameter options
17
+ */
18
+ constructor(credentials, subscriptionId, options) {
19
+ var _a, _b, _c;
20
+ if (credentials === undefined) {
21
+ throw new Error("'credentials' cannot be null");
22
+ }
23
+ if (subscriptionId === undefined) {
24
+ throw new Error("'subscriptionId' cannot be null");
25
+ }
26
+ // Initializing default values for options
27
+ if (!options) {
28
+ options = {};
29
+ }
30
+ const defaults = {
31
+ requestContentType: "application/json; charset=utf-8",
32
+ credential: credentials
33
+ };
34
+ const packageDetails = `azsdk-js-arm-devspaces/2.1.1`;
35
+ const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
36
+ ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
37
+ : `${packageDetails}`;
38
+ const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
39
+ userAgentPrefix
40
+ }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
41
+ super(optionsWithDefaults);
42
+ let bearerTokenAuthenticationPolicyFound = false;
43
+ if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
44
+ const pipelinePolicies = options.pipeline.getOrderedPolicies();
45
+ bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
46
+ coreRestPipeline.bearerTokenAuthenticationPolicyName);
47
+ }
48
+ if (!options ||
49
+ !options.pipeline ||
50
+ options.pipeline.getOrderedPolicies().length == 0 ||
51
+ !bearerTokenAuthenticationPolicyFound) {
52
+ this.pipeline.removePolicy({
53
+ name: coreRestPipeline.bearerTokenAuthenticationPolicyName
54
+ });
55
+ this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
56
+ credential: credentials,
57
+ scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
58
+ challengeCallbacks: {
59
+ authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
60
+ }
61
+ }));
62
+ }
63
+ // Parameter assignments
64
+ this.subscriptionId = subscriptionId;
65
+ // Assigning values to Constant parameters
66
+ this.$host = options.$host || "https://management.azure.com";
67
+ this.apiVersion = options.apiVersion || "2019-04-01";
68
+ this.containerHostMappings = new ContainerHostMappingsImpl(this);
69
+ this.operations = new OperationsImpl(this);
70
+ this.controllers = new ControllersImpl(this);
71
+ this.addCustomApiVersionPolicy(options.apiVersion);
72
+ }
73
+ /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
74
+ addCustomApiVersionPolicy(apiVersion) {
75
+ if (!apiVersion) {
76
+ return;
77
+ }
78
+ const apiVersionPolicy = {
79
+ name: "CustomApiVersionPolicy",
80
+ async sendRequest(request, next) {
81
+ const param = request.url.split("?");
82
+ if (param.length > 1) {
83
+ const newParams = param[1].split("&").map((item) => {
84
+ if (item.indexOf("api-version") > -1) {
85
+ return "api-version=" + apiVersion;
86
+ }
87
+ else {
88
+ return item;
89
+ }
90
+ });
91
+ request.url = param[0] + "?" + newParams.join("&");
92
+ }
93
+ return next(request);
94
+ }
95
+ };
96
+ this.pipeline.addPolicy(apiVersionPolicy);
97
+ }
98
+ }
99
+ //# sourceMappingURL=devSpacesManagementClient.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"devSpacesManagementClient.js","sourceRoot":"","sources":["../../src/devSpacesManagementClient.ts"],"names":[],"mappings":"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","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n ContainerHostMappingsImpl,\n OperationsImpl,\n ControllersImpl\n} from \"./operations/index.js\";\nimport {\n ContainerHostMappings,\n Operations,\n Controllers\n} from \"./operationsInterfaces/index.js\";\nimport { DevSpacesManagementClientOptionalParams } from \"./models/index.js\";\n\nexport class DevSpacesManagementClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the DevSpacesManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId Azure subscription ID.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: DevSpacesManagementClientOptionalParams\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: DevSpacesManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-devspaces/2.1.1`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\"\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge\n }\n })\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2019-04-01\";\n this.containerHostMappings = new ContainerHostMappingsImpl(this);\n this.operations = new OperationsImpl(this);\n this.controllers = new ControllersImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n }\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n containerHostMappings: ContainerHostMappings;\n operations: Operations;\n controllers: Controllers;\n}\n"]}
@@ -0,0 +1,5 @@
1
+ export { getContinuationToken } from "./pagingHelper.js";
2
+ export * from "./models/index.js";
3
+ export { DevSpacesManagementClient } from "./devSpacesManagementClient.js";
4
+ export * from "./operationsInterfaces/index.js";
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,cAAc,iCAAiC,CAAC"}
@@ -5,9 +5,9 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
-
9
8
  /// <reference lib="esnext.asynciterable" />
10
- export { getContinuationToken } from "./pagingHelper";
11
- export * from "./models";
12
- export { DevSpacesManagementClient } from "./devSpacesManagementClient";
13
- export * from "./operationsInterfaces";
9
+ export { getContinuationToken } from "./pagingHelper.js";
10
+ export * from "./models/index.js";
11
+ export { DevSpacesManagementClient } from "./devSpacesManagementClient.js";
12
+ export * from "./operationsInterfaces/index.js";
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,4CAA4C;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,cAAc,iCAAiC,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\n/// <reference lib=\"esnext.asynciterable\" />\nexport { getContinuationToken } from \"./pagingHelper.js\";\nexport * from \"./models/index.js\";\nexport { DevSpacesManagementClient } from \"./devSpacesManagementClient.js\";\nexport * from \"./operationsInterfaces/index.js\";\n"]}
@@ -0,0 +1,16 @@
1
+ import { LongRunningOperation, LroResponse } from "@azure/core-lro";
2
+ export declare class LroImpl<T> implements LongRunningOperation<T> {
3
+ private sendOperationFn;
4
+ private args;
5
+ private spec;
6
+ requestPath: string;
7
+ requestMethod: string;
8
+ constructor(sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>, args: Record<string, unknown>, spec: {
9
+ readonly requestBody?: unknown;
10
+ readonly path?: string;
11
+ readonly httpMethod: string;
12
+ } & Record<string, any>, requestPath?: string, requestMethod?: string);
13
+ sendInitialRequest(): Promise<LroResponse<T>>;
14
+ sendPollRequest(path: string): Promise<LroResponse<T>>;
15
+ }
16
+ //# sourceMappingURL=lroImpl.d.ts.map