@azure/arm-standbypool 1.0.0-beta.1 → 1.0.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 (565) hide show
  1. package/CHANGELOG.md +10 -2
  2. package/README.md +1 -8
  3. package/dist/browser/api/index.d.ts +8 -0
  4. package/dist/browser/api/index.d.ts.map +1 -0
  5. package/dist/browser/api/index.js +10 -0
  6. package/dist/browser/api/index.js.map +1 -0
  7. package/dist/browser/api/operations/index.d.ts +10 -0
  8. package/dist/browser/api/operations/index.d.ts.map +1 -0
  9. package/dist/browser/api/operations/index.js +40 -0
  10. package/dist/browser/api/operations/index.js.map +1 -0
  11. package/dist/browser/api/standbyContainerGroupPoolRuntimeViews/index.d.ts +14 -0
  12. package/dist/browser/api/standbyContainerGroupPoolRuntimeViews/index.d.ts.map +1 -0
  13. package/dist/browser/api/standbyContainerGroupPoolRuntimeViews/index.js +113 -0
  14. package/dist/browser/api/standbyContainerGroupPoolRuntimeViews/index.js.map +1 -0
  15. package/dist/browser/api/standbyContainerGroupPools/index.d.ts +31 -0
  16. package/dist/browser/api/standbyContainerGroupPools/index.d.ts.map +1 -0
  17. package/dist/browser/api/standbyContainerGroupPools/index.js +362 -0
  18. package/dist/browser/api/standbyContainerGroupPools/index.js.map +1 -0
  19. package/dist/browser/api/standbyPoolManagementContext.d.ts +11 -0
  20. package/dist/browser/api/standbyPoolManagementContext.d.ts.map +1 -0
  21. package/dist/browser/api/standbyPoolManagementContext.js +34 -0
  22. package/dist/browser/api/standbyPoolManagementContext.js.map +1 -0
  23. package/dist/browser/api/standbyVirtualMachinePoolRuntimeViews/index.d.ts +14 -0
  24. package/dist/browser/api/standbyVirtualMachinePoolRuntimeViews/index.d.ts.map +1 -0
  25. package/dist/browser/api/standbyVirtualMachinePoolRuntimeViews/index.js +115 -0
  26. package/dist/browser/api/standbyVirtualMachinePoolRuntimeViews/index.js.map +1 -0
  27. package/dist/browser/api/standbyVirtualMachinePools/index.d.ts +31 -0
  28. package/dist/browser/api/standbyVirtualMachinePools/index.d.ts.map +1 -0
  29. package/dist/browser/api/standbyVirtualMachinePools/index.js +327 -0
  30. package/dist/browser/api/standbyVirtualMachinePools/index.js.map +1 -0
  31. package/dist/browser/api/standbyVirtualMachines/index.d.ts +14 -0
  32. package/dist/browser/api/standbyVirtualMachines/index.d.ts.map +1 -0
  33. package/dist/browser/api/standbyVirtualMachines/index.js +97 -0
  34. package/dist/browser/api/standbyVirtualMachines/index.js.map +1 -0
  35. package/dist/browser/classic/index.d.ts +7 -0
  36. package/dist/browser/classic/index.d.ts.map +1 -0
  37. package/dist/browser/classic/index.js +4 -0
  38. package/dist/browser/classic/index.js.map +1 -0
  39. package/dist/browser/classic/operations/index.d.ts +14 -0
  40. package/dist/browser/classic/operations/index.d.ts.map +1 -0
  41. package/dist/browser/classic/operations/index.js +12 -0
  42. package/dist/browser/classic/operations/index.js.map +1 -0
  43. package/dist/browser/classic/standbyContainerGroupPoolRuntimeViews/index.d.ts +17 -0
  44. package/dist/browser/classic/standbyContainerGroupPoolRuntimeViews/index.d.ts.map +1 -0
  45. package/dist/browser/classic/standbyContainerGroupPoolRuntimeViews/index.js +13 -0
  46. package/dist/browser/classic/standbyContainerGroupPoolRuntimeViews/index.js.map +1 -0
  47. package/dist/browser/classic/standbyContainerGroupPools/index.d.ts +30 -0
  48. package/dist/browser/classic/standbyContainerGroupPools/index.d.ts.map +1 -0
  49. package/dist/browser/classic/standbyContainerGroupPools/index.js +17 -0
  50. package/dist/browser/classic/standbyContainerGroupPools/index.js.map +1 -0
  51. package/dist/browser/classic/standbyVirtualMachinePoolRuntimeViews/index.d.ts +17 -0
  52. package/dist/browser/classic/standbyVirtualMachinePoolRuntimeViews/index.d.ts.map +1 -0
  53. package/dist/browser/classic/standbyVirtualMachinePoolRuntimeViews/index.js +13 -0
  54. package/dist/browser/classic/standbyVirtualMachinePoolRuntimeViews/index.js.map +1 -0
  55. package/dist/browser/classic/standbyVirtualMachinePools/index.d.ts +30 -0
  56. package/dist/browser/classic/standbyVirtualMachinePools/index.d.ts.map +1 -0
  57. package/dist/browser/classic/standbyVirtualMachinePools/index.js +17 -0
  58. package/dist/browser/classic/standbyVirtualMachinePools/index.js.map +1 -0
  59. package/dist/browser/classic/standbyVirtualMachines/index.d.ts +17 -0
  60. package/dist/browser/classic/standbyVirtualMachines/index.d.ts.map +1 -0
  61. package/dist/browser/classic/standbyVirtualMachines/index.js +13 -0
  62. package/dist/browser/classic/standbyVirtualMachines/index.js.map +1 -0
  63. package/dist/browser/helpers/serializerHelpers.d.ts +3 -0
  64. package/dist/browser/helpers/serializerHelpers.d.ts.map +1 -0
  65. package/dist/browser/helpers/serializerHelpers.js +24 -0
  66. package/dist/browser/helpers/serializerHelpers.js.map +1 -0
  67. package/dist/browser/index.d.ts +7 -0
  68. package/dist/browser/index.d.ts.map +1 -0
  69. package/dist/browser/index.js +6 -0
  70. package/dist/browser/index.js.map +1 -0
  71. package/dist/browser/logger.d.ts +2 -0
  72. package/dist/browser/logger.d.ts.map +1 -0
  73. package/dist/browser/logger.js +5 -0
  74. package/dist/browser/logger.js.map +1 -0
  75. package/dist/browser/models/index.d.ts +3 -0
  76. package/dist/browser/models/index.d.ts.map +1 -0
  77. package/dist/browser/models/index.js +4 -0
  78. package/dist/browser/models/index.js.map +1 -0
  79. package/dist/browser/models/models.d.ts +381 -0
  80. package/dist/browser/models/models.d.ts.map +1 -0
  81. package/dist/browser/models/models.js +164 -0
  82. package/dist/browser/models/models.js.map +1 -0
  83. package/dist/browser/models/options.d.ts +67 -0
  84. package/dist/browser/models/options.d.ts.map +1 -0
  85. package/dist/browser/models/options.js +4 -0
  86. package/dist/browser/models/options.js.map +1 -0
  87. package/dist/browser/package.json +3 -0
  88. package/dist/browser/restorePollerHelpers.d.ts +21 -0
  89. package/dist/browser/restorePollerHelpers.d.ts.map +1 -0
  90. package/dist/browser/restorePollerHelpers.js +106 -0
  91. package/dist/browser/restorePollerHelpers.js.map +1 -0
  92. package/dist/browser/standbyPoolManagementClient.d.ts +29 -0
  93. package/dist/browser/standbyPoolManagementClient.d.ts.map +1 -0
  94. package/dist/browser/standbyPoolManagementClient.js +27 -0
  95. package/dist/browser/standbyPoolManagementClient.js.map +1 -0
  96. package/dist/browser/static-helpers/pagingHelpers.d.ts +72 -0
  97. package/dist/browser/static-helpers/pagingHelpers.d.ts.map +1 -0
  98. package/dist/browser/static-helpers/pagingHelpers.js +139 -0
  99. package/dist/browser/static-helpers/pagingHelpers.js.map +1 -0
  100. package/dist/browser/static-helpers/pollingHelpers.d.ts +30 -0
  101. package/dist/browser/static-helpers/pollingHelpers.d.ts.map +1 -0
  102. package/dist/browser/static-helpers/pollingHelpers.js +78 -0
  103. package/dist/browser/static-helpers/pollingHelpers.js.map +1 -0
  104. package/dist/commonjs/api/index.d.ts +8 -0
  105. package/dist/commonjs/api/index.d.ts.map +1 -0
  106. package/dist/commonjs/api/index.js +33 -0
  107. package/dist/commonjs/api/index.js.map +1 -0
  108. package/dist/commonjs/api/operations/index.d.ts +10 -0
  109. package/dist/commonjs/api/operations/index.d.ts.map +1 -0
  110. package/dist/commonjs/api/operations/index.js +45 -0
  111. package/dist/commonjs/api/operations/index.js.map +1 -0
  112. package/dist/commonjs/api/standbyContainerGroupPoolRuntimeViews/index.d.ts +14 -0
  113. package/dist/commonjs/api/standbyContainerGroupPoolRuntimeViews/index.d.ts.map +1 -0
  114. package/dist/commonjs/api/standbyContainerGroupPoolRuntimeViews/index.js +121 -0
  115. package/dist/commonjs/api/standbyContainerGroupPoolRuntimeViews/index.js.map +1 -0
  116. package/dist/commonjs/api/standbyContainerGroupPools/index.d.ts +31 -0
  117. package/dist/commonjs/api/standbyContainerGroupPools/index.d.ts.map +1 -0
  118. package/dist/commonjs/api/standbyContainerGroupPools/index.js +382 -0
  119. package/dist/commonjs/api/standbyContainerGroupPools/index.js.map +1 -0
  120. package/dist/commonjs/api/standbyPoolManagementContext.d.ts +11 -0
  121. package/dist/commonjs/api/standbyPoolManagementContext.d.ts.map +1 -0
  122. package/dist/commonjs/api/standbyPoolManagementContext.js +37 -0
  123. package/dist/commonjs/api/standbyPoolManagementContext.js.map +1 -0
  124. package/dist/commonjs/api/standbyVirtualMachinePoolRuntimeViews/index.d.ts +14 -0
  125. package/dist/commonjs/api/standbyVirtualMachinePoolRuntimeViews/index.d.ts.map +1 -0
  126. package/dist/commonjs/api/standbyVirtualMachinePoolRuntimeViews/index.js +123 -0
  127. package/dist/commonjs/api/standbyVirtualMachinePoolRuntimeViews/index.js.map +1 -0
  128. package/dist/commonjs/api/standbyVirtualMachinePools/index.d.ts +31 -0
  129. package/dist/commonjs/api/standbyVirtualMachinePools/index.d.ts.map +1 -0
  130. package/dist/commonjs/api/standbyVirtualMachinePools/index.js +347 -0
  131. package/dist/commonjs/api/standbyVirtualMachinePools/index.js.map +1 -0
  132. package/dist/commonjs/api/standbyVirtualMachines/index.d.ts +14 -0
  133. package/dist/commonjs/api/standbyVirtualMachines/index.d.ts.map +1 -0
  134. package/dist/commonjs/api/standbyVirtualMachines/index.js +105 -0
  135. package/dist/commonjs/api/standbyVirtualMachines/index.js.map +1 -0
  136. package/dist/commonjs/classic/index.d.ts +7 -0
  137. package/dist/commonjs/classic/index.d.ts.map +1 -0
  138. package/dist/commonjs/classic/index.js +5 -0
  139. package/dist/commonjs/classic/index.js.map +1 -0
  140. package/dist/commonjs/classic/operations/index.d.ts +14 -0
  141. package/dist/commonjs/classic/operations/index.d.ts.map +1 -0
  142. package/dist/commonjs/classic/operations/index.js +16 -0
  143. package/dist/commonjs/classic/operations/index.js.map +1 -0
  144. package/dist/commonjs/classic/standbyContainerGroupPoolRuntimeViews/index.d.ts +17 -0
  145. package/dist/commonjs/classic/standbyContainerGroupPoolRuntimeViews/index.d.ts.map +1 -0
  146. package/dist/commonjs/classic/standbyContainerGroupPoolRuntimeViews/index.js +17 -0
  147. package/dist/commonjs/classic/standbyContainerGroupPoolRuntimeViews/index.js.map +1 -0
  148. package/dist/commonjs/classic/standbyContainerGroupPools/index.d.ts +30 -0
  149. package/dist/commonjs/classic/standbyContainerGroupPools/index.d.ts.map +1 -0
  150. package/dist/commonjs/classic/standbyContainerGroupPools/index.js +21 -0
  151. package/dist/commonjs/classic/standbyContainerGroupPools/index.js.map +1 -0
  152. package/dist/commonjs/classic/standbyVirtualMachinePoolRuntimeViews/index.d.ts +17 -0
  153. package/dist/commonjs/classic/standbyVirtualMachinePoolRuntimeViews/index.d.ts.map +1 -0
  154. package/dist/commonjs/classic/standbyVirtualMachinePoolRuntimeViews/index.js +17 -0
  155. package/dist/commonjs/classic/standbyVirtualMachinePoolRuntimeViews/index.js.map +1 -0
  156. package/dist/commonjs/classic/standbyVirtualMachinePools/index.d.ts +30 -0
  157. package/dist/commonjs/classic/standbyVirtualMachinePools/index.d.ts.map +1 -0
  158. package/dist/commonjs/classic/standbyVirtualMachinePools/index.js +21 -0
  159. package/dist/commonjs/classic/standbyVirtualMachinePools/index.js.map +1 -0
  160. package/dist/commonjs/classic/standbyVirtualMachines/index.d.ts +17 -0
  161. package/dist/commonjs/classic/standbyVirtualMachines/index.d.ts.map +1 -0
  162. package/dist/commonjs/classic/standbyVirtualMachines/index.js +17 -0
  163. package/dist/commonjs/classic/standbyVirtualMachines/index.js.map +1 -0
  164. package/dist/commonjs/helpers/serializerHelpers.d.ts +3 -0
  165. package/dist/commonjs/helpers/serializerHelpers.d.ts.map +1 -0
  166. package/dist/commonjs/helpers/serializerHelpers.js +27 -0
  167. package/dist/commonjs/helpers/serializerHelpers.js.map +1 -0
  168. package/dist/commonjs/index.d.ts +7 -0
  169. package/dist/commonjs/index.d.ts.map +1 -0
  170. package/dist/commonjs/index.js +17 -0
  171. package/dist/commonjs/index.js.map +1 -0
  172. package/dist/commonjs/logger.d.ts +2 -0
  173. package/dist/commonjs/logger.d.ts.map +1 -0
  174. package/dist/commonjs/logger.js +8 -0
  175. package/dist/commonjs/logger.js.map +1 -0
  176. package/dist/commonjs/models/index.d.ts +3 -0
  177. package/dist/commonjs/models/index.d.ts.map +1 -0
  178. package/dist/commonjs/models/index.js +13 -0
  179. package/dist/commonjs/models/index.js.map +1 -0
  180. package/dist/commonjs/models/models.d.ts +381 -0
  181. package/dist/commonjs/models/models.d.ts.map +1 -0
  182. package/dist/commonjs/models/models.js +182 -0
  183. package/dist/commonjs/models/models.js.map +1 -0
  184. package/dist/commonjs/models/options.d.ts +67 -0
  185. package/dist/commonjs/models/options.d.ts.map +1 -0
  186. package/dist/commonjs/models/options.js +5 -0
  187. package/dist/commonjs/models/options.js.map +1 -0
  188. package/dist/commonjs/package.json +3 -0
  189. package/dist/commonjs/restorePollerHelpers.d.ts +21 -0
  190. package/dist/commonjs/restorePollerHelpers.d.ts.map +1 -0
  191. package/dist/commonjs/restorePollerHelpers.js +109 -0
  192. package/dist/commonjs/restorePollerHelpers.js.map +1 -0
  193. package/dist/commonjs/standbyPoolManagementClient.d.ts +29 -0
  194. package/dist/commonjs/standbyPoolManagementClient.d.ts.map +1 -0
  195. package/dist/commonjs/standbyPoolManagementClient.js +31 -0
  196. package/dist/commonjs/standbyPoolManagementClient.js.map +1 -0
  197. package/dist/commonjs/static-helpers/pagingHelpers.d.ts +72 -0
  198. package/dist/commonjs/static-helpers/pagingHelpers.d.ts.map +1 -0
  199. package/dist/commonjs/static-helpers/pagingHelpers.js +142 -0
  200. package/dist/commonjs/static-helpers/pagingHelpers.js.map +1 -0
  201. package/dist/commonjs/static-helpers/pollingHelpers.d.ts +30 -0
  202. package/dist/commonjs/static-helpers/pollingHelpers.d.ts.map +1 -0
  203. package/dist/commonjs/static-helpers/pollingHelpers.js +81 -0
  204. package/dist/commonjs/static-helpers/pollingHelpers.js.map +1 -0
  205. package/{types → dist/commonjs}/tsdoc-metadata.json +1 -1
  206. package/dist/esm/api/index.d.ts +8 -0
  207. package/dist/esm/api/index.d.ts.map +1 -0
  208. package/dist/esm/api/index.js +10 -0
  209. package/dist/esm/api/index.js.map +1 -0
  210. package/dist/esm/api/operations/index.d.ts +10 -0
  211. package/dist/esm/api/operations/index.d.ts.map +1 -0
  212. package/dist/esm/api/operations/index.js +40 -0
  213. package/dist/esm/api/operations/index.js.map +1 -0
  214. package/dist/esm/api/standbyContainerGroupPoolRuntimeViews/index.d.ts +14 -0
  215. package/dist/esm/api/standbyContainerGroupPoolRuntimeViews/index.d.ts.map +1 -0
  216. package/dist/esm/api/standbyContainerGroupPoolRuntimeViews/index.js +113 -0
  217. package/dist/esm/api/standbyContainerGroupPoolRuntimeViews/index.js.map +1 -0
  218. package/dist/esm/api/standbyContainerGroupPools/index.d.ts +31 -0
  219. package/dist/esm/api/standbyContainerGroupPools/index.d.ts.map +1 -0
  220. package/dist/esm/api/standbyContainerGroupPools/index.js +362 -0
  221. package/dist/esm/api/standbyContainerGroupPools/index.js.map +1 -0
  222. package/dist/esm/api/standbyPoolManagementContext.d.ts +11 -0
  223. package/dist/esm/api/standbyPoolManagementContext.d.ts.map +1 -0
  224. package/dist/esm/api/standbyPoolManagementContext.js +34 -0
  225. package/dist/esm/api/standbyPoolManagementContext.js.map +1 -0
  226. package/dist/esm/api/standbyVirtualMachinePoolRuntimeViews/index.d.ts +14 -0
  227. package/dist/esm/api/standbyVirtualMachinePoolRuntimeViews/index.d.ts.map +1 -0
  228. package/dist/esm/api/standbyVirtualMachinePoolRuntimeViews/index.js +115 -0
  229. package/dist/esm/api/standbyVirtualMachinePoolRuntimeViews/index.js.map +1 -0
  230. package/dist/esm/api/standbyVirtualMachinePools/index.d.ts +31 -0
  231. package/dist/esm/api/standbyVirtualMachinePools/index.d.ts.map +1 -0
  232. package/dist/esm/api/standbyVirtualMachinePools/index.js +327 -0
  233. package/dist/esm/api/standbyVirtualMachinePools/index.js.map +1 -0
  234. package/dist/esm/api/standbyVirtualMachines/index.d.ts +14 -0
  235. package/dist/esm/api/standbyVirtualMachines/index.d.ts.map +1 -0
  236. package/dist/esm/api/standbyVirtualMachines/index.js +97 -0
  237. package/dist/esm/api/standbyVirtualMachines/index.js.map +1 -0
  238. package/dist/esm/classic/index.d.ts +7 -0
  239. package/dist/esm/classic/index.d.ts.map +1 -0
  240. package/dist/esm/classic/index.js +4 -0
  241. package/dist/esm/classic/index.js.map +1 -0
  242. package/dist/esm/classic/operations/index.d.ts +14 -0
  243. package/dist/esm/classic/operations/index.d.ts.map +1 -0
  244. package/dist/esm/classic/operations/index.js +12 -0
  245. package/dist/esm/classic/operations/index.js.map +1 -0
  246. package/dist/esm/classic/standbyContainerGroupPoolRuntimeViews/index.d.ts +17 -0
  247. package/dist/esm/classic/standbyContainerGroupPoolRuntimeViews/index.d.ts.map +1 -0
  248. package/dist/esm/classic/standbyContainerGroupPoolRuntimeViews/index.js +13 -0
  249. package/dist/esm/classic/standbyContainerGroupPoolRuntimeViews/index.js.map +1 -0
  250. package/dist/esm/classic/standbyContainerGroupPools/index.d.ts +30 -0
  251. package/dist/esm/classic/standbyContainerGroupPools/index.d.ts.map +1 -0
  252. package/dist/esm/classic/standbyContainerGroupPools/index.js +17 -0
  253. package/dist/esm/classic/standbyContainerGroupPools/index.js.map +1 -0
  254. package/dist/esm/classic/standbyVirtualMachinePoolRuntimeViews/index.d.ts +17 -0
  255. package/dist/esm/classic/standbyVirtualMachinePoolRuntimeViews/index.d.ts.map +1 -0
  256. package/dist/esm/classic/standbyVirtualMachinePoolRuntimeViews/index.js +13 -0
  257. package/dist/esm/classic/standbyVirtualMachinePoolRuntimeViews/index.js.map +1 -0
  258. package/dist/esm/classic/standbyVirtualMachinePools/index.d.ts +30 -0
  259. package/dist/esm/classic/standbyVirtualMachinePools/index.d.ts.map +1 -0
  260. package/dist/esm/classic/standbyVirtualMachinePools/index.js +17 -0
  261. package/dist/esm/classic/standbyVirtualMachinePools/index.js.map +1 -0
  262. package/dist/esm/classic/standbyVirtualMachines/index.d.ts +17 -0
  263. package/dist/esm/classic/standbyVirtualMachines/index.d.ts.map +1 -0
  264. package/dist/esm/classic/standbyVirtualMachines/index.js +13 -0
  265. package/dist/esm/classic/standbyVirtualMachines/index.js.map +1 -0
  266. package/dist/esm/helpers/serializerHelpers.d.ts +3 -0
  267. package/dist/esm/helpers/serializerHelpers.d.ts.map +1 -0
  268. package/dist/esm/helpers/serializerHelpers.js +24 -0
  269. package/dist/esm/helpers/serializerHelpers.js.map +1 -0
  270. package/dist/esm/index.d.ts +7 -0
  271. package/dist/esm/index.d.ts.map +1 -0
  272. package/dist/esm/index.js +6 -0
  273. package/dist/esm/index.js.map +1 -0
  274. package/dist/esm/logger.d.ts +2 -0
  275. package/dist/esm/logger.d.ts.map +1 -0
  276. package/dist/esm/logger.js +5 -0
  277. package/dist/esm/logger.js.map +1 -0
  278. package/dist/esm/models/index.d.ts +3 -0
  279. package/dist/esm/models/index.d.ts.map +1 -0
  280. package/dist/esm/models/index.js +4 -0
  281. package/dist/esm/models/index.js.map +1 -0
  282. package/dist/esm/models/models.d.ts +381 -0
  283. package/dist/esm/models/models.d.ts.map +1 -0
  284. package/dist/esm/models/models.js +164 -0
  285. package/dist/esm/models/models.js.map +1 -0
  286. package/dist/esm/models/options.d.ts +67 -0
  287. package/dist/esm/models/options.d.ts.map +1 -0
  288. package/dist/esm/models/options.js +4 -0
  289. package/dist/esm/models/options.js.map +1 -0
  290. package/dist/esm/package.json +3 -0
  291. package/dist/esm/restorePollerHelpers.d.ts +21 -0
  292. package/dist/esm/restorePollerHelpers.d.ts.map +1 -0
  293. package/dist/esm/restorePollerHelpers.js +106 -0
  294. package/dist/esm/restorePollerHelpers.js.map +1 -0
  295. package/dist/esm/standbyPoolManagementClient.d.ts +29 -0
  296. package/dist/esm/standbyPoolManagementClient.d.ts.map +1 -0
  297. package/dist/esm/standbyPoolManagementClient.js +27 -0
  298. package/dist/esm/standbyPoolManagementClient.js.map +1 -0
  299. package/dist/esm/static-helpers/pagingHelpers.d.ts +72 -0
  300. package/dist/esm/static-helpers/pagingHelpers.d.ts.map +1 -0
  301. package/dist/esm/static-helpers/pagingHelpers.js +139 -0
  302. package/dist/esm/static-helpers/pagingHelpers.js.map +1 -0
  303. package/dist/esm/static-helpers/pollingHelpers.d.ts +30 -0
  304. package/dist/esm/static-helpers/pollingHelpers.d.ts.map +1 -0
  305. package/dist/esm/static-helpers/pollingHelpers.js +78 -0
  306. package/dist/esm/static-helpers/pollingHelpers.js.map +1 -0
  307. package/dist/react-native/api/index.d.ts +8 -0
  308. package/dist/react-native/api/index.d.ts.map +1 -0
  309. package/dist/react-native/api/index.js +10 -0
  310. package/dist/react-native/api/index.js.map +1 -0
  311. package/dist/react-native/api/operations/index.d.ts +10 -0
  312. package/dist/react-native/api/operations/index.d.ts.map +1 -0
  313. package/dist/react-native/api/operations/index.js +40 -0
  314. package/dist/react-native/api/operations/index.js.map +1 -0
  315. package/dist/react-native/api/standbyContainerGroupPoolRuntimeViews/index.d.ts +14 -0
  316. package/dist/react-native/api/standbyContainerGroupPoolRuntimeViews/index.d.ts.map +1 -0
  317. package/dist/react-native/api/standbyContainerGroupPoolRuntimeViews/index.js +113 -0
  318. package/dist/react-native/api/standbyContainerGroupPoolRuntimeViews/index.js.map +1 -0
  319. package/dist/react-native/api/standbyContainerGroupPools/index.d.ts +31 -0
  320. package/dist/react-native/api/standbyContainerGroupPools/index.d.ts.map +1 -0
  321. package/dist/react-native/api/standbyContainerGroupPools/index.js +362 -0
  322. package/dist/react-native/api/standbyContainerGroupPools/index.js.map +1 -0
  323. package/dist/react-native/api/standbyPoolManagementContext.d.ts +11 -0
  324. package/dist/react-native/api/standbyPoolManagementContext.d.ts.map +1 -0
  325. package/dist/react-native/api/standbyPoolManagementContext.js +34 -0
  326. package/dist/react-native/api/standbyPoolManagementContext.js.map +1 -0
  327. package/dist/react-native/api/standbyVirtualMachinePoolRuntimeViews/index.d.ts +14 -0
  328. package/dist/react-native/api/standbyVirtualMachinePoolRuntimeViews/index.d.ts.map +1 -0
  329. package/dist/react-native/api/standbyVirtualMachinePoolRuntimeViews/index.js +115 -0
  330. package/dist/react-native/api/standbyVirtualMachinePoolRuntimeViews/index.js.map +1 -0
  331. package/dist/react-native/api/standbyVirtualMachinePools/index.d.ts +31 -0
  332. package/dist/react-native/api/standbyVirtualMachinePools/index.d.ts.map +1 -0
  333. package/dist/react-native/api/standbyVirtualMachinePools/index.js +327 -0
  334. package/dist/react-native/api/standbyVirtualMachinePools/index.js.map +1 -0
  335. package/dist/react-native/api/standbyVirtualMachines/index.d.ts +14 -0
  336. package/dist/react-native/api/standbyVirtualMachines/index.d.ts.map +1 -0
  337. package/dist/react-native/api/standbyVirtualMachines/index.js +97 -0
  338. package/dist/react-native/api/standbyVirtualMachines/index.js.map +1 -0
  339. package/dist/react-native/classic/index.d.ts +7 -0
  340. package/dist/react-native/classic/index.d.ts.map +1 -0
  341. package/dist/react-native/classic/index.js +4 -0
  342. package/dist/react-native/classic/index.js.map +1 -0
  343. package/dist/react-native/classic/operations/index.d.ts +14 -0
  344. package/dist/react-native/classic/operations/index.d.ts.map +1 -0
  345. package/dist/react-native/classic/operations/index.js +12 -0
  346. package/dist/react-native/classic/operations/index.js.map +1 -0
  347. package/dist/react-native/classic/standbyContainerGroupPoolRuntimeViews/index.d.ts +17 -0
  348. package/dist/react-native/classic/standbyContainerGroupPoolRuntimeViews/index.d.ts.map +1 -0
  349. package/dist/react-native/classic/standbyContainerGroupPoolRuntimeViews/index.js +13 -0
  350. package/dist/react-native/classic/standbyContainerGroupPoolRuntimeViews/index.js.map +1 -0
  351. package/dist/react-native/classic/standbyContainerGroupPools/index.d.ts +30 -0
  352. package/dist/react-native/classic/standbyContainerGroupPools/index.d.ts.map +1 -0
  353. package/dist/react-native/classic/standbyContainerGroupPools/index.js +17 -0
  354. package/dist/react-native/classic/standbyContainerGroupPools/index.js.map +1 -0
  355. package/dist/react-native/classic/standbyVirtualMachinePoolRuntimeViews/index.d.ts +17 -0
  356. package/dist/react-native/classic/standbyVirtualMachinePoolRuntimeViews/index.d.ts.map +1 -0
  357. package/dist/react-native/classic/standbyVirtualMachinePoolRuntimeViews/index.js +13 -0
  358. package/dist/react-native/classic/standbyVirtualMachinePoolRuntimeViews/index.js.map +1 -0
  359. package/dist/react-native/classic/standbyVirtualMachinePools/index.d.ts +30 -0
  360. package/dist/react-native/classic/standbyVirtualMachinePools/index.d.ts.map +1 -0
  361. package/dist/react-native/classic/standbyVirtualMachinePools/index.js +17 -0
  362. package/dist/react-native/classic/standbyVirtualMachinePools/index.js.map +1 -0
  363. package/dist/react-native/classic/standbyVirtualMachines/index.d.ts +17 -0
  364. package/dist/react-native/classic/standbyVirtualMachines/index.d.ts.map +1 -0
  365. package/dist/react-native/classic/standbyVirtualMachines/index.js +13 -0
  366. package/dist/react-native/classic/standbyVirtualMachines/index.js.map +1 -0
  367. package/dist/react-native/helpers/serializerHelpers.d.ts +3 -0
  368. package/dist/react-native/helpers/serializerHelpers.d.ts.map +1 -0
  369. package/dist/react-native/helpers/serializerHelpers.js +24 -0
  370. package/dist/react-native/helpers/serializerHelpers.js.map +1 -0
  371. package/dist/react-native/index.d.ts +7 -0
  372. package/dist/react-native/index.d.ts.map +1 -0
  373. package/dist/react-native/index.js +6 -0
  374. package/dist/react-native/index.js.map +1 -0
  375. package/dist/react-native/logger.d.ts +2 -0
  376. package/dist/react-native/logger.d.ts.map +1 -0
  377. package/dist/react-native/logger.js +5 -0
  378. package/dist/react-native/logger.js.map +1 -0
  379. package/dist/react-native/models/index.d.ts +3 -0
  380. package/dist/react-native/models/index.d.ts.map +1 -0
  381. package/dist/react-native/models/index.js +4 -0
  382. package/dist/react-native/models/index.js.map +1 -0
  383. package/dist/react-native/models/models.d.ts +381 -0
  384. package/dist/react-native/models/models.d.ts.map +1 -0
  385. package/dist/react-native/models/models.js +164 -0
  386. package/dist/react-native/models/models.js.map +1 -0
  387. package/dist/react-native/models/options.d.ts +67 -0
  388. package/dist/react-native/models/options.d.ts.map +1 -0
  389. package/dist/react-native/models/options.js +4 -0
  390. package/dist/react-native/models/options.js.map +1 -0
  391. package/dist/react-native/package.json +3 -0
  392. package/dist/react-native/restorePollerHelpers.d.ts +21 -0
  393. package/dist/react-native/restorePollerHelpers.d.ts.map +1 -0
  394. package/dist/react-native/restorePollerHelpers.js +106 -0
  395. package/dist/react-native/restorePollerHelpers.js.map +1 -0
  396. package/dist/react-native/standbyPoolManagementClient.d.ts +29 -0
  397. package/dist/react-native/standbyPoolManagementClient.d.ts.map +1 -0
  398. package/dist/react-native/standbyPoolManagementClient.js +27 -0
  399. package/dist/react-native/standbyPoolManagementClient.js.map +1 -0
  400. package/dist/react-native/static-helpers/pagingHelpers.d.ts +72 -0
  401. package/dist/react-native/static-helpers/pagingHelpers.d.ts.map +1 -0
  402. package/dist/react-native/static-helpers/pagingHelpers.js +139 -0
  403. package/dist/react-native/static-helpers/pagingHelpers.js.map +1 -0
  404. package/dist/react-native/static-helpers/pollingHelpers.d.ts +30 -0
  405. package/dist/react-native/static-helpers/pollingHelpers.d.ts.map +1 -0
  406. package/dist/react-native/static-helpers/pollingHelpers.js +78 -0
  407. package/dist/react-native/static-helpers/pollingHelpers.js.map +1 -0
  408. package/package.json +126 -85
  409. package/review/arm-standbypool-models.api.md +322 -0
  410. package/review/arm-standbypool.api.md +120 -224
  411. package/dist/index.js +0 -2605
  412. package/dist/index.js.map +0 -1
  413. package/dist/index.min.js +0 -1
  414. package/dist/index.min.js.map +0 -1
  415. package/dist-esm/samples-dev/operationsListSample.d.ts +0 -2
  416. package/dist-esm/samples-dev/operationsListSample.d.ts.map +0 -1
  417. package/dist-esm/samples-dev/operationsListSample.js +0 -53
  418. package/dist-esm/samples-dev/operationsListSample.js.map +0 -1
  419. package/dist-esm/samples-dev/standbyContainerGroupPoolsCreateOrUpdateSample.d.ts +0 -2
  420. package/dist-esm/samples-dev/standbyContainerGroupPoolsCreateOrUpdateSample.d.ts.map +0 -1
  421. package/dist-esm/samples-dev/standbyContainerGroupPoolsCreateOrUpdateSample.js +0 -57
  422. package/dist-esm/samples-dev/standbyContainerGroupPoolsCreateOrUpdateSample.js.map +0 -1
  423. package/dist-esm/samples-dev/standbyContainerGroupPoolsDeleteSample.d.ts +0 -2
  424. package/dist-esm/samples-dev/standbyContainerGroupPoolsDeleteSample.d.ts.map +0 -1
  425. package/dist-esm/samples-dev/standbyContainerGroupPoolsDeleteSample.js +0 -39
  426. package/dist-esm/samples-dev/standbyContainerGroupPoolsDeleteSample.js.map +0 -1
  427. package/dist-esm/samples-dev/standbyContainerGroupPoolsGetSample.d.ts +0 -2
  428. package/dist-esm/samples-dev/standbyContainerGroupPoolsGetSample.d.ts.map +0 -1
  429. package/dist-esm/samples-dev/standbyContainerGroupPoolsGetSample.js +0 -39
  430. package/dist-esm/samples-dev/standbyContainerGroupPoolsGetSample.js.map +0 -1
  431. package/dist-esm/samples-dev/standbyContainerGroupPoolsListByResourceGroupSample.d.ts +0 -2
  432. package/dist-esm/samples-dev/standbyContainerGroupPoolsListByResourceGroupSample.d.ts.map +0 -1
  433. package/dist-esm/samples-dev/standbyContainerGroupPoolsListByResourceGroupSample.js +0 -54
  434. package/dist-esm/samples-dev/standbyContainerGroupPoolsListByResourceGroupSample.js.map +0 -1
  435. package/dist-esm/samples-dev/standbyContainerGroupPoolsListBySubscriptionSample.d.ts +0 -2
  436. package/dist-esm/samples-dev/standbyContainerGroupPoolsListBySubscriptionSample.d.ts.map +0 -1
  437. package/dist-esm/samples-dev/standbyContainerGroupPoolsListBySubscriptionSample.js +0 -53
  438. package/dist-esm/samples-dev/standbyContainerGroupPoolsListBySubscriptionSample.js.map +0 -1
  439. package/dist-esm/samples-dev/standbyContainerGroupPoolsUpdateSample.d.ts +0 -2
  440. package/dist-esm/samples-dev/standbyContainerGroupPoolsUpdateSample.d.ts.map +0 -1
  441. package/dist-esm/samples-dev/standbyContainerGroupPoolsUpdateSample.js +0 -56
  442. package/dist-esm/samples-dev/standbyContainerGroupPoolsUpdateSample.js.map +0 -1
  443. package/dist-esm/samples-dev/standbyVirtualMachinePoolsCreateOrUpdateSample.d.ts +0 -2
  444. package/dist-esm/samples-dev/standbyVirtualMachinePoolsCreateOrUpdateSample.d.ts.map +0 -1
  445. package/dist-esm/samples-dev/standbyVirtualMachinePoolsCreateOrUpdateSample.js +0 -48
  446. package/dist-esm/samples-dev/standbyVirtualMachinePoolsCreateOrUpdateSample.js.map +0 -1
  447. package/dist-esm/samples-dev/standbyVirtualMachinePoolsDeleteSample.d.ts +0 -2
  448. package/dist-esm/samples-dev/standbyVirtualMachinePoolsDeleteSample.d.ts.map +0 -1
  449. package/dist-esm/samples-dev/standbyVirtualMachinePoolsDeleteSample.js +0 -39
  450. package/dist-esm/samples-dev/standbyVirtualMachinePoolsDeleteSample.js.map +0 -1
  451. package/dist-esm/samples-dev/standbyVirtualMachinePoolsGetSample.d.ts +0 -2
  452. package/dist-esm/samples-dev/standbyVirtualMachinePoolsGetSample.d.ts.map +0 -1
  453. package/dist-esm/samples-dev/standbyVirtualMachinePoolsGetSample.js +0 -39
  454. package/dist-esm/samples-dev/standbyVirtualMachinePoolsGetSample.js.map +0 -1
  455. package/dist-esm/samples-dev/standbyVirtualMachinePoolsListByResourceGroupSample.d.ts +0 -2
  456. package/dist-esm/samples-dev/standbyVirtualMachinePoolsListByResourceGroupSample.d.ts.map +0 -1
  457. package/dist-esm/samples-dev/standbyVirtualMachinePoolsListByResourceGroupSample.js +0 -54
  458. package/dist-esm/samples-dev/standbyVirtualMachinePoolsListByResourceGroupSample.js.map +0 -1
  459. package/dist-esm/samples-dev/standbyVirtualMachinePoolsListBySubscriptionSample.d.ts +0 -2
  460. package/dist-esm/samples-dev/standbyVirtualMachinePoolsListBySubscriptionSample.d.ts.map +0 -1
  461. package/dist-esm/samples-dev/standbyVirtualMachinePoolsListBySubscriptionSample.js +0 -53
  462. package/dist-esm/samples-dev/standbyVirtualMachinePoolsListBySubscriptionSample.js.map +0 -1
  463. package/dist-esm/samples-dev/standbyVirtualMachinePoolsUpdateSample.d.ts +0 -2
  464. package/dist-esm/samples-dev/standbyVirtualMachinePoolsUpdateSample.d.ts.map +0 -1
  465. package/dist-esm/samples-dev/standbyVirtualMachinePoolsUpdateSample.js +0 -47
  466. package/dist-esm/samples-dev/standbyVirtualMachinePoolsUpdateSample.js.map +0 -1
  467. package/dist-esm/samples-dev/standbyVirtualMachinesGetSample.d.ts +0 -2
  468. package/dist-esm/samples-dev/standbyVirtualMachinesGetSample.d.ts.map +0 -1
  469. package/dist-esm/samples-dev/standbyVirtualMachinesGetSample.js +0 -40
  470. package/dist-esm/samples-dev/standbyVirtualMachinesGetSample.js.map +0 -1
  471. package/dist-esm/samples-dev/standbyVirtualMachinesListByStandbyVirtualMachinePoolResourceSample.d.ts +0 -2
  472. package/dist-esm/samples-dev/standbyVirtualMachinesListByStandbyVirtualMachinePoolResourceSample.d.ts.map +0 -1
  473. package/dist-esm/samples-dev/standbyVirtualMachinesListByStandbyVirtualMachinePoolResourceSample.js +0 -55
  474. package/dist-esm/samples-dev/standbyVirtualMachinesListByStandbyVirtualMachinePoolResourceSample.js.map +0 -1
  475. package/dist-esm/src/index.d.ts +0 -6
  476. package/dist-esm/src/index.d.ts.map +0 -1
  477. package/dist-esm/src/index.js +0 -13
  478. package/dist-esm/src/index.js.map +0 -1
  479. package/dist-esm/src/lroImpl.d.ts +0 -11
  480. package/dist-esm/src/lroImpl.d.ts.map +0 -1
  481. package/dist-esm/src/lroImpl.js +0 -21
  482. package/dist-esm/src/lroImpl.js.map +0 -1
  483. package/dist-esm/src/models/index.d.ts +0 -581
  484. package/dist-esm/src/models/index.d.ts.map +0 -1
  485. package/dist-esm/src/models/index.js +0 -62
  486. package/dist-esm/src/models/index.js.map +0 -1
  487. package/dist-esm/src/models/mappers.d.ts +0 -38
  488. package/dist-esm/src/models/mappers.d.ts.map +0 -1
  489. package/dist-esm/src/models/mappers.js +0 -877
  490. package/dist-esm/src/models/mappers.js.map +0 -1
  491. package/dist-esm/src/models/parameters.d.ts +0 -16
  492. package/dist-esm/src/models/parameters.d.ts.map +0 -1
  493. package/dist-esm/src/models/parameters.js +0 -143
  494. package/dist-esm/src/models/parameters.js.map +0 -1
  495. package/dist-esm/src/operations/index.d.ts +0 -5
  496. package/dist-esm/src/operations/index.d.ts.map +0 -1
  497. package/dist-esm/src/operations/index.js +0 -12
  498. package/dist-esm/src/operations/index.js.map +0 -1
  499. package/dist-esm/src/operations/operations.d.ts +0 -32
  500. package/dist-esm/src/operations/operations.d.ts.map +0 -1
  501. package/dist-esm/src/operations/operations.js +0 -133
  502. package/dist-esm/src/operations/operations.js.map +0 -1
  503. package/dist-esm/src/operations/standbyContainerGroupPools.d.ts +0 -99
  504. package/dist-esm/src/operations/standbyContainerGroupPools.d.ts.map +0 -1
  505. package/dist-esm/src/operations/standbyContainerGroupPools.js +0 -502
  506. package/dist-esm/src/operations/standbyContainerGroupPools.js.map +0 -1
  507. package/dist-esm/src/operations/standbyVirtualMachinePools.d.ts +0 -99
  508. package/dist-esm/src/operations/standbyVirtualMachinePools.d.ts.map +0 -1
  509. package/dist-esm/src/operations/standbyVirtualMachinePools.js +0 -502
  510. package/dist-esm/src/operations/standbyVirtualMachinePools.js.map +0 -1
  511. package/dist-esm/src/operations/standbyVirtualMachines.d.ts +0 -47
  512. package/dist-esm/src/operations/standbyVirtualMachines.d.ts.map +0 -1
  513. package/dist-esm/src/operations/standbyVirtualMachines.js +0 -188
  514. package/dist-esm/src/operations/standbyVirtualMachines.js.map +0 -1
  515. package/dist-esm/src/operationsInterfaces/index.d.ts +0 -5
  516. package/dist-esm/src/operationsInterfaces/index.d.ts.map +0 -1
  517. package/dist-esm/src/operationsInterfaces/index.js +0 -12
  518. package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
  519. package/dist-esm/src/operationsInterfaces/operations.d.ts +0 -11
  520. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +0 -1
  521. package/dist-esm/src/operationsInterfaces/operations.js +0 -9
  522. package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
  523. package/dist-esm/src/operationsInterfaces/standbyContainerGroupPools.d.ts +0 -63
  524. package/dist-esm/src/operationsInterfaces/standbyContainerGroupPools.d.ts.map +0 -1
  525. package/dist-esm/src/operationsInterfaces/standbyContainerGroupPools.js +0 -9
  526. package/dist-esm/src/operationsInterfaces/standbyContainerGroupPools.js.map +0 -1
  527. package/dist-esm/src/operationsInterfaces/standbyVirtualMachinePools.d.ts +0 -63
  528. package/dist-esm/src/operationsInterfaces/standbyVirtualMachinePools.d.ts.map +0 -1
  529. package/dist-esm/src/operationsInterfaces/standbyVirtualMachinePools.js +0 -9
  530. package/dist-esm/src/operationsInterfaces/standbyVirtualMachinePools.js.map +0 -1
  531. package/dist-esm/src/operationsInterfaces/standbyVirtualMachines.d.ts +0 -21
  532. package/dist-esm/src/operationsInterfaces/standbyVirtualMachines.d.ts.map +0 -1
  533. package/dist-esm/src/operationsInterfaces/standbyVirtualMachines.js +0 -9
  534. package/dist-esm/src/operationsInterfaces/standbyVirtualMachines.js.map +0 -1
  535. package/dist-esm/src/pagingHelper.d.ts +0 -13
  536. package/dist-esm/src/pagingHelper.d.ts.map +0 -1
  537. package/dist-esm/src/pagingHelper.js +0 -32
  538. package/dist-esm/src/pagingHelper.js.map +0 -1
  539. package/dist-esm/src/standbyPoolManagementClient.d.ts +0 -23
  540. package/dist-esm/src/standbyPoolManagementClient.d.ts.map +0 -1
  541. package/dist-esm/src/standbyPoolManagementClient.js +0 -103
  542. package/dist-esm/src/standbyPoolManagementClient.js.map +0 -1
  543. package/dist-esm/test/standbypool_operations_test.spec.d.ts +0 -4
  544. package/dist-esm/test/standbypool_operations_test.spec.d.ts.map +0 -1
  545. package/dist-esm/test/standbypool_operations_test.spec.js +0 -73
  546. package/dist-esm/test/standbypool_operations_test.spec.js.map +0 -1
  547. package/src/index.ts +0 -13
  548. package/src/lroImpl.ts +0 -42
  549. package/src/models/index.ts +0 -695
  550. package/src/models/mappers.ts +0 -947
  551. package/src/models/parameters.ts +0 -167
  552. package/src/operations/index.ts +0 -12
  553. package/src/operations/operations.ts +0 -149
  554. package/src/operations/standbyContainerGroupPools.ts +0 -650
  555. package/src/operations/standbyVirtualMachinePools.ts +0 -650
  556. package/src/operations/standbyVirtualMachines.ts +0 -252
  557. package/src/operationsInterfaces/index.ts +0 -12
  558. package/src/operationsInterfaces/operations.ts +0 -22
  559. package/src/operationsInterfaces/standbyContainerGroupPools.ts +0 -127
  560. package/src/operationsInterfaces/standbyVirtualMachinePools.ts +0 -127
  561. package/src/operationsInterfaces/standbyVirtualMachines.ts +0 -44
  562. package/src/pagingHelper.ts +0 -39
  563. package/src/standbyPoolManagementClient.ts +0 -157
  564. package/tsconfig.json +0 -33
  565. package/types/arm-standbypool.d.ts +0 -853
@@ -0,0 +1,72 @@
1
+ import { Client, PathUncheckedResponse } from "@azure-rest/core-client";
2
+ /**
3
+ * Options for the byPage method
4
+ */
5
+ export interface PageSettings {
6
+ /**
7
+ * A reference to a specific page to start iterating from.
8
+ */
9
+ continuationToken?: string;
10
+ }
11
+ /**
12
+ * An interface that describes a page of results.
13
+ */
14
+ export type ContinuablePage<TElement, TPage = TElement[]> = TPage & {
15
+ /**
16
+ * The token that keeps track of where to continue the iterator
17
+ */
18
+ continuationToken?: string;
19
+ };
20
+ /**
21
+ * An interface that allows async iterable iteration both to completion and by page.
22
+ */
23
+ export interface PagedAsyncIterableIterator<TElement, TPage = TElement[], TPageSettings extends PageSettings = PageSettings> {
24
+ /**
25
+ * The next method, part of the iteration protocol
26
+ */
27
+ next(): Promise<IteratorResult<TElement>>;
28
+ /**
29
+ * The connection to the async iterator, part of the iteration protocol
30
+ */
31
+ [Symbol.asyncIterator](): PagedAsyncIterableIterator<TElement, TPage, TPageSettings>;
32
+ /**
33
+ * Return an AsyncIterableIterator that works a page at a time
34
+ */
35
+ byPage: (settings?: TPageSettings) => AsyncIterableIterator<ContinuablePage<TElement, TPage>>;
36
+ }
37
+ /**
38
+ * An interface that describes how to communicate with the service.
39
+ */
40
+ export interface PagedResult<TElement, TPage = TElement[], TPageSettings extends PageSettings = PageSettings> {
41
+ /**
42
+ * Link to the first page of results.
43
+ */
44
+ firstPageLink?: string;
45
+ /**
46
+ * A method that returns a page of results.
47
+ */
48
+ getPage: (pageLink?: string) => Promise<{
49
+ page: TPage;
50
+ nextPageLink?: string;
51
+ } | undefined>;
52
+ /**
53
+ * a function to implement the `byPage` method on the paged async iterator.
54
+ */
55
+ byPage?: (settings?: TPageSettings) => AsyncIterableIterator<ContinuablePage<TElement, TPage>>;
56
+ /**
57
+ * A function to extract elements from a page.
58
+ */
59
+ toElements?: (page: TPage) => TElement[];
60
+ }
61
+ /**
62
+ * Options for the paging helper
63
+ */
64
+ export interface BuildPagedAsyncIteratorOptions {
65
+ itemName?: string;
66
+ nextLinkName?: string;
67
+ }
68
+ /**
69
+ * Helper to paginate results in a generic way and return a PagedAsyncIterableIterator
70
+ */
71
+ export declare function buildPagedAsyncIterator<TElement, TPage = TElement[], TPageSettings extends PageSettings = PageSettings, TResponse extends PathUncheckedResponse = PathUncheckedResponse>(client: Client, getInitialResponse: () => PromiseLike<TResponse>, processResponseBody: (result: TResponse) => PromiseLike<unknown>, expectedStatuses: string[], options?: BuildPagedAsyncIteratorOptions): PagedAsyncIterableIterator<TElement, TPage, TPageSettings>;
72
+ //# sourceMappingURL=pagingHelpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagingHelpers.d.ts","sourceRoot":"","sources":["../../../src/static-helpers/pagingHelpers.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,MAAM,EAAmB,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAGzF;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED;;GAEG;AACH,MAAM,MAAM,eAAe,CAAC,QAAQ,EAAE,KAAK,GAAG,QAAQ,EAAE,IAAI,KAAK,GAAG;IAClE;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,0BAA0B,CACzC,QAAQ,EACR,KAAK,GAAG,QAAQ,EAAE,EAClB,aAAa,SAAS,YAAY,GAAG,YAAY;IAEjD;;OAEG;IACH,IAAI,IAAI,OAAO,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC1C;;OAEG;IACH,CAAC,MAAM,CAAC,aAAa,CAAC,IAAI,0BAA0B,CAAC,QAAQ,EAAE,KAAK,EAAE,aAAa,CAAC,CAAC;IACrF;;OAEG;IACH,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,aAAa,KAAK,qBAAqB,CAAC,eAAe,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC,CAAC;CAC/F;AAED;;GAEG;AACH,MAAM,WAAW,WAAW,CAC1B,QAAQ,EACR,KAAK,GAAG,QAAQ,EAAE,EAClB,aAAa,SAAS,YAAY,GAAG,YAAY;IAEjD;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,OAAO,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC;QAAE,IAAI,EAAE,KAAK,CAAC;QAAC,YAAY,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,SAAS,CAAC,CAAC;IAC5F;;OAEG;IACH,MAAM,CAAC,EAAE,CAAC,QAAQ,CAAC,EAAE,aAAa,KAAK,qBAAqB,CAAC,eAAe,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC,CAAC;IAE/F;;OAEG;IACH,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,KAAK,KAAK,QAAQ,EAAE,CAAC;CAC1C;AAED;;GAEG;AACH,MAAM,WAAW,8BAA8B;IAC7C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CACrC,QAAQ,EACR,KAAK,GAAG,QAAQ,EAAE,EAClB,aAAa,SAAS,YAAY,GAAG,YAAY,EACjD,SAAS,SAAS,qBAAqB,GAAG,qBAAqB,EAE/D,MAAM,EAAE,MAAM,EACd,kBAAkB,EAAE,MAAM,WAAW,CAAC,SAAS,CAAC,EAChD,mBAAmB,EAAE,CAAC,MAAM,EAAE,SAAS,KAAK,WAAW,CAAC,OAAO,CAAC,EAChE,gBAAgB,EAAE,MAAM,EAAE,EAC1B,OAAO,GAAE,8BAAmC,GAC3C,0BAA0B,CAAC,QAAQ,EAAE,KAAK,EAAE,aAAa,CAAC,CA0B5D"}
@@ -0,0 +1,142 @@
1
+ "use strict";
2
+ // Copyright (c) Microsoft Corporation.
3
+ // Licensed under the MIT License.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.buildPagedAsyncIterator = buildPagedAsyncIterator;
6
+ const tslib_1 = require("tslib");
7
+ // Copyright (c) Microsoft Corporation.
8
+ // Licensed under the MIT License.
9
+ const core_client_1 = require("@azure-rest/core-client");
10
+ const core_rest_pipeline_1 = require("@azure/core-rest-pipeline");
11
+ /**
12
+ * Helper to paginate results in a generic way and return a PagedAsyncIterableIterator
13
+ */
14
+ function buildPagedAsyncIterator(client, getInitialResponse, processResponseBody, expectedStatuses, options = {}) {
15
+ var _a, _b;
16
+ const itemName = (_a = options.itemName) !== null && _a !== void 0 ? _a : "value";
17
+ const nextLinkName = (_b = options.nextLinkName) !== null && _b !== void 0 ? _b : "nextLink";
18
+ const pagedResult = {
19
+ getPage: async (pageLink) => {
20
+ const result = pageLink === undefined
21
+ ? await getInitialResponse()
22
+ : await client.pathUnchecked(pageLink).get();
23
+ checkPagingRequest(result, expectedStatuses);
24
+ const results = await processResponseBody(result);
25
+ const nextLink = getNextLink(results, nextLinkName);
26
+ const values = getElements(results, itemName);
27
+ return {
28
+ page: values,
29
+ nextPageLink: nextLink,
30
+ };
31
+ },
32
+ byPage: (settings) => {
33
+ const { continuationToken } = settings !== null && settings !== void 0 ? settings : {};
34
+ return getPageAsyncIterator(pagedResult, {
35
+ pageLink: continuationToken,
36
+ });
37
+ },
38
+ };
39
+ return getPagedAsyncIterator(pagedResult);
40
+ }
41
+ /**
42
+ * returns an async iterator that iterates over results. It also has a `byPage`
43
+ * method that returns pages of items at once.
44
+ *
45
+ * @param pagedResult - an object that specifies how to get pages.
46
+ * @returns a paged async iterator that iterates over results.
47
+ */
48
+ function getPagedAsyncIterator(pagedResult) {
49
+ var _a;
50
+ const iter = getItemAsyncIterator(pagedResult);
51
+ return {
52
+ next() {
53
+ return iter.next();
54
+ },
55
+ [Symbol.asyncIterator]() {
56
+ return this;
57
+ },
58
+ byPage: (_a = pagedResult === null || pagedResult === void 0 ? void 0 : pagedResult.byPage) !== null && _a !== void 0 ? _a : ((settings) => {
59
+ const { continuationToken } = settings !== null && settings !== void 0 ? settings : {};
60
+ return getPageAsyncIterator(pagedResult, {
61
+ pageLink: continuationToken,
62
+ });
63
+ }),
64
+ };
65
+ }
66
+ function getItemAsyncIterator(pagedResult) {
67
+ return tslib_1.__asyncGenerator(this, arguments, function* getItemAsyncIterator_1() {
68
+ var _a, e_1, _b, _c;
69
+ const pages = getPageAsyncIterator(pagedResult);
70
+ try {
71
+ for (var _d = true, pages_1 = tslib_1.__asyncValues(pages), pages_1_1; pages_1_1 = yield tslib_1.__await(pages_1.next()), _a = pages_1_1.done, !_a; _d = true) {
72
+ _c = pages_1_1.value;
73
+ _d = false;
74
+ const page = _c;
75
+ yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
76
+ }
77
+ }
78
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
79
+ finally {
80
+ try {
81
+ if (!_d && !_a && (_b = pages_1.return)) yield tslib_1.__await(_b.call(pages_1));
82
+ }
83
+ finally { if (e_1) throw e_1.error; }
84
+ }
85
+ });
86
+ }
87
+ function getPageAsyncIterator(pagedResult_1) {
88
+ return tslib_1.__asyncGenerator(this, arguments, function* getPageAsyncIterator_1(pagedResult, options = {}) {
89
+ const { pageLink } = options;
90
+ let response = yield tslib_1.__await(pagedResult.getPage(pageLink !== null && pageLink !== void 0 ? pageLink : pagedResult.firstPageLink));
91
+ if (!response) {
92
+ return yield tslib_1.__await(void 0);
93
+ }
94
+ let result = response.page;
95
+ result.continuationToken = response.nextPageLink;
96
+ yield yield tslib_1.__await(result);
97
+ while (response.nextPageLink) {
98
+ response = yield tslib_1.__await(pagedResult.getPage(response.nextPageLink));
99
+ if (!response) {
100
+ return yield tslib_1.__await(void 0);
101
+ }
102
+ result = response.page;
103
+ result.continuationToken = response.nextPageLink;
104
+ yield yield tslib_1.__await(result);
105
+ }
106
+ });
107
+ }
108
+ /**
109
+ * Gets for the value of nextLink in the body
110
+ */
111
+ function getNextLink(body, nextLinkName) {
112
+ if (!nextLinkName) {
113
+ return undefined;
114
+ }
115
+ const nextLink = body[nextLinkName];
116
+ if (typeof nextLink !== "string" && typeof nextLink !== "undefined" && nextLink !== null) {
117
+ throw new core_rest_pipeline_1.RestError(`Body Property ${nextLinkName} should be a string or undefined or null but got ${typeof nextLink}`);
118
+ }
119
+ if (nextLink === null) {
120
+ return undefined;
121
+ }
122
+ return nextLink;
123
+ }
124
+ /**
125
+ * Gets the elements of the current request in the body.
126
+ */
127
+ function getElements(body, itemName) {
128
+ const value = body[itemName];
129
+ if (!Array.isArray(value)) {
130
+ throw new core_rest_pipeline_1.RestError(`Couldn't paginate response\n Body doesn't contain an array property with name: ${itemName}`);
131
+ }
132
+ return value !== null && value !== void 0 ? value : [];
133
+ }
134
+ /**
135
+ * Checks if a request failed
136
+ */
137
+ function checkPagingRequest(response, expectedStatuses) {
138
+ if (!expectedStatuses.includes(response.status)) {
139
+ throw (0, core_client_1.createRestError)(`Pagination failed with unexpected statusCode ${response.status}`, response);
140
+ }
141
+ }
142
+ //# sourceMappingURL=pagingHelpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagingHelpers.js","sourceRoot":"","sources":["../../../src/static-helpers/pagingHelpers.ts"],"names":[],"mappings":"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","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { Client, createRestError, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { RestError } from \"@azure/core-rest-pipeline\";\n\n/**\n * Options for the byPage method\n */\nexport interface PageSettings {\n /**\n * A reference to a specific page to start iterating from.\n */\n continuationToken?: string;\n}\n\n/**\n * An interface that describes a page of results.\n */\nexport type ContinuablePage<TElement, TPage = TElement[]> = TPage & {\n /**\n * The token that keeps track of where to continue the iterator\n */\n continuationToken?: string;\n};\n\n/**\n * An interface that allows async iterable iteration both to completion and by page.\n */\nexport interface PagedAsyncIterableIterator<\n TElement,\n TPage = TElement[],\n TPageSettings extends PageSettings = PageSettings,\n> {\n /**\n * The next method, part of the iteration protocol\n */\n next(): Promise<IteratorResult<TElement>>;\n /**\n * The connection to the async iterator, part of the iteration protocol\n */\n [Symbol.asyncIterator](): PagedAsyncIterableIterator<TElement, TPage, TPageSettings>;\n /**\n * Return an AsyncIterableIterator that works a page at a time\n */\n byPage: (settings?: TPageSettings) => AsyncIterableIterator<ContinuablePage<TElement, TPage>>;\n}\n\n/**\n * An interface that describes how to communicate with the service.\n */\nexport interface PagedResult<\n TElement,\n TPage = TElement[],\n TPageSettings extends PageSettings = PageSettings,\n> {\n /**\n * Link to the first page of results.\n */\n firstPageLink?: string;\n /**\n * A method that returns a page of results.\n */\n getPage: (pageLink?: string) => Promise<{ page: TPage; nextPageLink?: string } | undefined>;\n /**\n * a function to implement the `byPage` method on the paged async iterator.\n */\n byPage?: (settings?: TPageSettings) => AsyncIterableIterator<ContinuablePage<TElement, TPage>>;\n\n /**\n * A function to extract elements from a page.\n */\n toElements?: (page: TPage) => TElement[];\n}\n\n/**\n * Options for the paging helper\n */\nexport interface BuildPagedAsyncIteratorOptions {\n itemName?: string;\n nextLinkName?: string;\n}\n\n/**\n * Helper to paginate results in a generic way and return a PagedAsyncIterableIterator\n */\nexport function buildPagedAsyncIterator<\n TElement,\n TPage = TElement[],\n TPageSettings extends PageSettings = PageSettings,\n TResponse extends PathUncheckedResponse = PathUncheckedResponse,\n>(\n client: Client,\n getInitialResponse: () => PromiseLike<TResponse>,\n processResponseBody: (result: TResponse) => PromiseLike<unknown>,\n expectedStatuses: string[],\n options: BuildPagedAsyncIteratorOptions = {},\n): PagedAsyncIterableIterator<TElement, TPage, TPageSettings> {\n const itemName = options.itemName ?? \"value\";\n const nextLinkName = options.nextLinkName ?? \"nextLink\";\n const pagedResult: PagedResult<TElement, TPage, TPageSettings> = {\n getPage: async (pageLink?: string) => {\n const result =\n pageLink === undefined\n ? await getInitialResponse()\n : await client.pathUnchecked(pageLink).get();\n checkPagingRequest(result, expectedStatuses);\n const results = await processResponseBody(result as TResponse);\n const nextLink = getNextLink(results, nextLinkName);\n const values = getElements<TElement>(results, itemName) as TPage;\n return {\n page: values,\n nextPageLink: nextLink,\n };\n },\n byPage: (settings?: TPageSettings) => {\n const { continuationToken } = settings ?? {};\n return getPageAsyncIterator(pagedResult, {\n pageLink: continuationToken,\n });\n },\n };\n return getPagedAsyncIterator(pagedResult);\n}\n\n/**\n * returns an async iterator that iterates over results. It also has a `byPage`\n * method that returns pages of items at once.\n *\n * @param pagedResult - an object that specifies how to get pages.\n * @returns a paged async iterator that iterates over results.\n */\n\nfunction getPagedAsyncIterator<\n TElement,\n TPage = TElement[],\n TPageSettings extends PageSettings = PageSettings,\n>(\n pagedResult: PagedResult<TElement, TPage, TPageSettings>,\n): PagedAsyncIterableIterator<TElement, TPage, TPageSettings> {\n const iter = getItemAsyncIterator<TElement, TPage, TPageSettings>(pagedResult);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage:\n pagedResult?.byPage ??\n ((settings?: TPageSettings) => {\n const { continuationToken } = settings ?? {};\n return getPageAsyncIterator(pagedResult, {\n pageLink: continuationToken,\n });\n }),\n };\n}\n\nasync function* getItemAsyncIterator<TElement, TPage, TPageSettings extends PageSettings>(\n pagedResult: PagedResult<TElement, TPage, TPageSettings>,\n): AsyncIterableIterator<TElement> {\n const pages = getPageAsyncIterator(pagedResult);\n for await (const page of pages) {\n yield* page as unknown as TElement[];\n }\n}\n\nasync function* getPageAsyncIterator<TElement, TPage, TPageSettings extends PageSettings>(\n pagedResult: PagedResult<TElement, TPage, TPageSettings>,\n options: {\n pageLink?: string;\n } = {},\n): AsyncIterableIterator<ContinuablePage<TElement, TPage>> {\n const { pageLink } = options;\n let response = await pagedResult.getPage(pageLink ?? pagedResult.firstPageLink);\n if (!response) {\n return;\n }\n let result = response.page as ContinuablePage<TElement, TPage>;\n result.continuationToken = response.nextPageLink;\n yield result;\n while (response.nextPageLink) {\n response = await pagedResult.getPage(response.nextPageLink);\n if (!response) {\n return;\n }\n result = response.page as ContinuablePage<TElement, TPage>;\n result.continuationToken = response.nextPageLink;\n yield result;\n }\n}\n\n/**\n * Gets for the value of nextLink in the body\n */\nfunction getNextLink(body: unknown, nextLinkName?: string): string | undefined {\n if (!nextLinkName) {\n return undefined;\n }\n\n const nextLink = (body as Record<string, unknown>)[nextLinkName];\n\n if (typeof nextLink !== \"string\" && typeof nextLink !== \"undefined\" && nextLink !== null) {\n throw new RestError(\n `Body Property ${nextLinkName} should be a string or undefined or null but got ${typeof nextLink}`,\n );\n }\n\n if (nextLink === null) {\n return undefined;\n }\n\n return nextLink;\n}\n\n/**\n * Gets the elements of the current request in the body.\n */\nfunction getElements<T = unknown>(body: unknown, itemName: string): T[] {\n const value = (body as Record<string, unknown>)[itemName] as T[];\n if (!Array.isArray(value)) {\n throw new RestError(\n `Couldn't paginate response\\n Body doesn't contain an array property with name: ${itemName}`,\n );\n }\n\n return value ?? [];\n}\n\n/**\n * Checks if a request failed\n */\nfunction checkPagingRequest(response: PathUncheckedResponse, expectedStatuses: string[]): void {\n if (!expectedStatuses.includes(response.status)) {\n throw createRestError(\n `Pagination failed with unexpected statusCode ${response.status}`,\n response,\n );\n }\n}\n"]}
@@ -0,0 +1,30 @@
1
+ import { PollerLike, OperationState, ResourceLocationConfig } from "@azure/core-lro";
2
+ import { Client, PathUncheckedResponse } from "@azure-rest/core-client";
3
+ import { AbortSignalLike } from "@azure/abort-controller";
4
+ export interface GetLongRunningPollerOptions<TResponse> {
5
+ /** Delay to wait until next poll, in milliseconds. */
6
+ updateIntervalInMs?: number;
7
+ /**
8
+ * The signal which can be used to abort requests.
9
+ */
10
+ abortSignal?: AbortSignalLike;
11
+ /**
12
+ * The potential location of the result of the LRO if specified by the LRO extension in the swagger.
13
+ */
14
+ resourceLocationConfig?: ResourceLocationConfig;
15
+ /**
16
+ * The original url of the LRO
17
+ * Should not be null when restoreFrom is set
18
+ */
19
+ initialRequestUrl?: string;
20
+ /**
21
+ * A serialized poller which can be used to resume an existing paused Long-Running-Operation.
22
+ */
23
+ restoreFrom?: string;
24
+ /**
25
+ * The function to get the initial response
26
+ */
27
+ getInitialResponse?: () => PromiseLike<TResponse>;
28
+ }
29
+ export declare function getLongRunningPoller<TResponse extends PathUncheckedResponse, TResult = void>(client: Client, processResponseBody: (result: TResponse) => Promise<TResult>, expectedStatuses: string[], options: GetLongRunningPollerOptions<TResponse>): PollerLike<OperationState<TResult>, TResult>;
30
+ //# sourceMappingURL=pollingHelpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pollingHelpers.d.ts","sourceRoot":"","sources":["../../../src/static-helpers/pollingHelpers.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,UAAU,EACV,cAAc,EACd,sBAAsB,EAIvB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,MAAM,EAAE,qBAAqB,EAAmB,MAAM,yBAAyB,CAAC;AACzF,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D,MAAM,WAAW,2BAA2B,CAAC,SAAS;IACpD,sDAAsD;IACtD,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,WAAW,CAAC,EAAE,eAAe,CAAC;IAC9B;;OAEG;IACH,sBAAsB,CAAC,EAAE,sBAAsB,CAAC;IAChD;;;OAGG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,WAAW,CAAC,SAAS,CAAC,CAAC;CACnD;AACD,wBAAgB,oBAAoB,CAAC,SAAS,SAAS,qBAAqB,EAAE,OAAO,GAAG,IAAI,EAC1F,MAAM,EAAE,MAAM,EACd,mBAAmB,EAAE,CAAC,MAAM,EAAE,SAAS,KAAK,OAAO,CAAC,OAAO,CAAC,EAC5D,gBAAgB,EAAE,MAAM,EAAE,EAC1B,OAAO,EAAE,2BAA2B,CAAC,SAAS,CAAC,GAC9C,UAAU,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,CAyD9C"}
@@ -0,0 +1,81 @@
1
+ "use strict";
2
+ // Copyright (c) Microsoft Corporation.
3
+ // Licensed under the MIT License.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.getLongRunningPoller = getLongRunningPoller;
6
+ // Copyright (c) Microsoft Corporation.
7
+ // Licensed under the MIT License.
8
+ const core_lro_1 = require("@azure/core-lro");
9
+ const core_client_1 = require("@azure-rest/core-client");
10
+ function getLongRunningPoller(client, processResponseBody, expectedStatuses, options) {
11
+ const { restoreFrom, getInitialResponse } = options;
12
+ if (!restoreFrom && !getInitialResponse) {
13
+ throw new Error("Either restoreFrom or getInitialResponse must be specified");
14
+ }
15
+ let initialResponse = undefined;
16
+ const pollAbortController = new AbortController();
17
+ const poller = {
18
+ sendInitialRequest: async () => {
19
+ if (!getInitialResponse) {
20
+ throw new Error("getInitialResponse is required when initializing a new poller");
21
+ }
22
+ initialResponse = await getInitialResponse();
23
+ return getLroResponse(initialResponse, expectedStatuses);
24
+ },
25
+ sendPollRequest: async (path, pollOptions) => {
26
+ var _a, _b, _c, _d, _e, _f;
27
+ // The poll request would both listen to the user provided abort signal and the poller's own abort signal
28
+ function abortListener() {
29
+ pollAbortController.abort();
30
+ }
31
+ const abortSignal = pollAbortController.signal;
32
+ if ((_a = options.abortSignal) === null || _a === void 0 ? void 0 : _a.aborted) {
33
+ pollAbortController.abort();
34
+ }
35
+ else if ((_b = pollOptions === null || pollOptions === void 0 ? void 0 : pollOptions.abortSignal) === null || _b === void 0 ? void 0 : _b.aborted) {
36
+ pollAbortController.abort();
37
+ }
38
+ else if (!abortSignal.aborted) {
39
+ (_c = options.abortSignal) === null || _c === void 0 ? void 0 : _c.addEventListener("abort", abortListener, {
40
+ once: true,
41
+ });
42
+ (_d = pollOptions === null || pollOptions === void 0 ? void 0 : pollOptions.abortSignal) === null || _d === void 0 ? void 0 : _d.addEventListener("abort", abortListener, {
43
+ once: true,
44
+ });
45
+ }
46
+ let response;
47
+ try {
48
+ response = await client.pathUnchecked(path).get({ abortSignal });
49
+ }
50
+ finally {
51
+ (_e = options.abortSignal) === null || _e === void 0 ? void 0 : _e.removeEventListener("abort", abortListener);
52
+ (_f = pollOptions === null || pollOptions === void 0 ? void 0 : pollOptions.abortSignal) === null || _f === void 0 ? void 0 : _f.removeEventListener("abort", abortListener);
53
+ }
54
+ return getLroResponse(response, expectedStatuses);
55
+ },
56
+ };
57
+ return (0, core_lro_1.createHttpPoller)(poller, {
58
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
59
+ resourceLocationConfig: options === null || options === void 0 ? void 0 : options.resourceLocationConfig,
60
+ restoreFrom: options === null || options === void 0 ? void 0 : options.restoreFrom,
61
+ processResult: (result) => {
62
+ return processResponseBody(result);
63
+ },
64
+ });
65
+ }
66
+ /**
67
+ * Converts a Rest Client response to a response that the LRO implementation understands
68
+ * @param response - a rest client http response
69
+ * @param deserializeFn - deserialize function to convert Rest response to modular output
70
+ * @returns - An LRO response that the LRO implementation understands
71
+ */
72
+ function getLroResponse(response, expectedStatuses) {
73
+ if (!expectedStatuses.includes(response.status)) {
74
+ throw (0, core_client_1.createRestError)(response);
75
+ }
76
+ return {
77
+ flatResponse: response,
78
+ rawResponse: Object.assign(Object.assign({}, response), { statusCode: Number.parseInt(response.status), body: response.body }),
79
+ };
80
+ }
81
+ //# sourceMappingURL=pollingHelpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pollingHelpers.js","sourceRoot":"","sources":["../../../src/static-helpers/pollingHelpers.ts"],"names":[],"mappings":"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","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport {\n PollerLike,\n OperationState,\n ResourceLocationConfig,\n RunningOperation,\n createHttpPoller,\n OperationResponse,\n} from \"@azure/core-lro\";\n\nimport { Client, PathUncheckedResponse, createRestError } from \"@azure-rest/core-client\";\nimport { AbortSignalLike } from \"@azure/abort-controller\";\n\nexport interface GetLongRunningPollerOptions<TResponse> {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /**\n * The signal which can be used to abort requests.\n */\n abortSignal?: AbortSignalLike;\n /**\n * The potential location of the result of the LRO if specified by the LRO extension in the swagger.\n */\n resourceLocationConfig?: ResourceLocationConfig;\n /**\n * The original url of the LRO\n * Should not be null when restoreFrom is set\n */\n initialRequestUrl?: string;\n /**\n * A serialized poller which can be used to resume an existing paused Long-Running-Operation.\n */\n restoreFrom?: string;\n /**\n * The function to get the initial response\n */\n getInitialResponse?: () => PromiseLike<TResponse>;\n}\nexport function getLongRunningPoller<TResponse extends PathUncheckedResponse, TResult = void>(\n client: Client,\n processResponseBody: (result: TResponse) => Promise<TResult>,\n expectedStatuses: string[],\n options: GetLongRunningPollerOptions<TResponse>,\n): PollerLike<OperationState<TResult>, TResult> {\n const { restoreFrom, getInitialResponse } = options;\n if (!restoreFrom && !getInitialResponse) {\n throw new Error(\"Either restoreFrom or getInitialResponse must be specified\");\n }\n let initialResponse: TResponse | undefined = undefined;\n const pollAbortController = new AbortController();\n const poller: RunningOperation<TResponse> = {\n sendInitialRequest: async () => {\n if (!getInitialResponse) {\n throw new Error(\"getInitialResponse is required when initializing a new poller\");\n }\n initialResponse = await getInitialResponse();\n return getLroResponse(initialResponse, expectedStatuses);\n },\n sendPollRequest: async (\n path: string,\n pollOptions?: {\n abortSignal?: AbortSignalLike;\n },\n ) => {\n // The poll request would both listen to the user provided abort signal and the poller's own abort signal\n function abortListener(): void {\n pollAbortController.abort();\n }\n const abortSignal = pollAbortController.signal;\n if (options.abortSignal?.aborted) {\n pollAbortController.abort();\n } else if (pollOptions?.abortSignal?.aborted) {\n pollAbortController.abort();\n } else if (!abortSignal.aborted) {\n options.abortSignal?.addEventListener(\"abort\", abortListener, {\n once: true,\n });\n pollOptions?.abortSignal?.addEventListener(\"abort\", abortListener, {\n once: true,\n });\n }\n let response;\n try {\n response = await client.pathUnchecked(path).get({ abortSignal });\n } finally {\n options.abortSignal?.removeEventListener(\"abort\", abortListener);\n pollOptions?.abortSignal?.removeEventListener(\"abort\", abortListener);\n }\n\n return getLroResponse(response as TResponse, expectedStatuses);\n },\n };\n return createHttpPoller(poller, {\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: options?.resourceLocationConfig,\n restoreFrom: options?.restoreFrom,\n processResult: (result: unknown) => {\n return processResponseBody(result as TResponse);\n },\n });\n}\n/**\n * Converts a Rest Client response to a response that the LRO implementation understands\n * @param response - a rest client http response\n * @param deserializeFn - deserialize function to convert Rest response to modular output\n * @returns - An LRO response that the LRO implementation understands\n */\nfunction getLroResponse<TResponse extends PathUncheckedResponse>(\n response: TResponse,\n expectedStatuses: string[],\n): OperationResponse<TResponse> {\n if (!expectedStatuses.includes(response.status)) {\n throw createRestError(response);\n }\n\n return {\n flatResponse: response,\n rawResponse: {\n ...response,\n statusCode: Number.parseInt(response.status),\n body: response.body,\n },\n };\n}\n"]}
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.43.1"
8
+ "packageVersion": "7.47.11"
9
9
  }
10
10
  ]
11
11
  }
@@ -0,0 +1,8 @@
1
+ export { createStandbyPoolManagement, StandbyPoolContext, StandbyPoolManagementClientOptionalParams, } from "./standbyPoolManagementContext.js";
2
+ export { operationsList } from "./operations/index.js";
3
+ export { standbyContainerGroupPoolRuntimeViewsGet, standbyContainerGroupPoolRuntimeViewsListByStandbyPool, } from "./standbyContainerGroupPoolRuntimeViews/index.js";
4
+ export { standbyContainerGroupPoolsGet, standbyContainerGroupPoolsCreateOrUpdate, standbyContainerGroupPoolsDelete, standbyContainerGroupPoolsUpdate, standbyContainerGroupPoolsListByResourceGroup, standbyContainerGroupPoolsListBySubscription, } from "./standbyContainerGroupPools/index.js";
5
+ export { standbyVirtualMachinePoolRuntimeViewsGet, standbyVirtualMachinePoolRuntimeViewsListByStandbyPool, } from "./standbyVirtualMachinePoolRuntimeViews/index.js";
6
+ export { standbyVirtualMachinePoolsGet, standbyVirtualMachinePoolsCreateOrUpdate, standbyVirtualMachinePoolsDelete, standbyVirtualMachinePoolsUpdate, standbyVirtualMachinePoolsListByResourceGroup, standbyVirtualMachinePoolsListBySubscription, } from "./standbyVirtualMachinePools/index.js";
7
+ export { standbyVirtualMachinesGet, standbyVirtualMachinesListByStandbyVirtualMachinePoolResource, } from "./standbyVirtualMachines/index.js";
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,2BAA2B,EAC3B,kBAAkB,EAClB,yCAAyC,GAC1C,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EACL,wCAAwC,EACxC,sDAAsD,GACvD,MAAM,kDAAkD,CAAC;AAC1D,OAAO,EACL,6BAA6B,EAC7B,wCAAwC,EACxC,gCAAgC,EAChC,gCAAgC,EAChC,6CAA6C,EAC7C,4CAA4C,GAC7C,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,wCAAwC,EACxC,sDAAsD,GACvD,MAAM,kDAAkD,CAAC;AAC1D,OAAO,EACL,6BAA6B,EAC7B,wCAAwC,EACxC,gCAAgC,EAChC,gCAAgC,EAChC,6CAA6C,EAC7C,4CAA4C,GAC7C,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,yBAAyB,EACzB,6DAA6D,GAC9D,MAAM,mCAAmC,CAAC"}
@@ -0,0 +1,10 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ export { createStandbyPoolManagement, } from "./standbyPoolManagementContext.js";
4
+ export { operationsList } from "./operations/index.js";
5
+ export { standbyContainerGroupPoolRuntimeViewsGet, standbyContainerGroupPoolRuntimeViewsListByStandbyPool, } from "./standbyContainerGroupPoolRuntimeViews/index.js";
6
+ export { standbyContainerGroupPoolsGet, standbyContainerGroupPoolsCreateOrUpdate, standbyContainerGroupPoolsDelete, standbyContainerGroupPoolsUpdate, standbyContainerGroupPoolsListByResourceGroup, standbyContainerGroupPoolsListBySubscription, } from "./standbyContainerGroupPools/index.js";
7
+ export { standbyVirtualMachinePoolRuntimeViewsGet, standbyVirtualMachinePoolRuntimeViewsListByStandbyPool, } from "./standbyVirtualMachinePoolRuntimeViews/index.js";
8
+ export { standbyVirtualMachinePoolsGet, standbyVirtualMachinePoolsCreateOrUpdate, standbyVirtualMachinePoolsDelete, standbyVirtualMachinePoolsUpdate, standbyVirtualMachinePoolsListByResourceGroup, standbyVirtualMachinePoolsListBySubscription, } from "./standbyVirtualMachinePools/index.js";
9
+ export { standbyVirtualMachinesGet, standbyVirtualMachinesListByStandbyVirtualMachinePoolResource, } from "./standbyVirtualMachines/index.js";
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EACL,2BAA2B,GAG5B,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EACL,wCAAwC,EACxC,sDAAsD,GACvD,MAAM,kDAAkD,CAAC;AAC1D,OAAO,EACL,6BAA6B,EAC7B,wCAAwC,EACxC,gCAAgC,EAChC,gCAAgC,EAChC,6CAA6C,EAC7C,4CAA4C,GAC7C,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,wCAAwC,EACxC,sDAAsD,GACvD,MAAM,kDAAkD,CAAC;AAC1D,OAAO,EACL,6BAA6B,EAC7B,wCAAwC,EACxC,gCAAgC,EAChC,gCAAgC,EAChC,6CAA6C,EAC7C,4CAA4C,GAC7C,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,yBAAyB,EACzB,6DAA6D,GAC9D,MAAM,mCAAmC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport {\n createStandbyPoolManagement,\n StandbyPoolContext,\n StandbyPoolManagementClientOptionalParams,\n} from \"./standbyPoolManagementContext.js\";\nexport { operationsList } from \"./operations/index.js\";\nexport {\n standbyContainerGroupPoolRuntimeViewsGet,\n standbyContainerGroupPoolRuntimeViewsListByStandbyPool,\n} from \"./standbyContainerGroupPoolRuntimeViews/index.js\";\nexport {\n standbyContainerGroupPoolsGet,\n standbyContainerGroupPoolsCreateOrUpdate,\n standbyContainerGroupPoolsDelete,\n standbyContainerGroupPoolsUpdate,\n standbyContainerGroupPoolsListByResourceGroup,\n standbyContainerGroupPoolsListBySubscription,\n} from \"./standbyContainerGroupPools/index.js\";\nexport {\n standbyVirtualMachinePoolRuntimeViewsGet,\n standbyVirtualMachinePoolRuntimeViewsListByStandbyPool,\n} from \"./standbyVirtualMachinePoolRuntimeViews/index.js\";\nexport {\n standbyVirtualMachinePoolsGet,\n standbyVirtualMachinePoolsCreateOrUpdate,\n standbyVirtualMachinePoolsDelete,\n standbyVirtualMachinePoolsUpdate,\n standbyVirtualMachinePoolsListByResourceGroup,\n standbyVirtualMachinePoolsListBySubscription,\n} from \"./standbyVirtualMachinePools/index.js\";\nexport {\n standbyVirtualMachinesGet,\n standbyVirtualMachinesListByStandbyVirtualMachinePoolResource,\n} from \"./standbyVirtualMachines/index.js\";\n"]}
@@ -0,0 +1,10 @@
1
+ import { Operation, _OperationListResult } from "../../models/models.js";
2
+ import { StandbyPoolContext as Client } from "../index.js";
3
+ import { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
4
+ import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
5
+ import { OperationsListOptionalParams } from "../../models/options.js";
6
+ export declare function _operationsListSend(context: Client, options?: OperationsListOptionalParams): StreamableMethod;
7
+ export declare function _operationsListDeserialize(result: PathUncheckedResponse): Promise<_OperationListResult>;
8
+ /** List the operations for the provider */
9
+ export declare function operationsList(context: Client, options?: OperationsListOptionalParams): PagedAsyncIterableIterator<Operation>;
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/operations/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACzE,OAAO,EAAE,kBAAkB,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC;AAC3D,OAAO,EACL,gBAAgB,EAEhB,qBAAqB,EAEtB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,0BAA0B,EAE3B,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,4BAA4B,EAAE,MAAM,yBAAyB,CAAC;AAEvE,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,4BAAqD,GAC7D,gBAAgB,CAIlB;AAED,wBAAsB,0BAA0B,CAC9C,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,oBAAoB,CAAC,CAyB/B;AAED,2CAA2C;AAC3C,wBAAgB,cAAc,CAC5B,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,4BAAqD,GAC7D,0BAA0B,CAAC,SAAS,CAAC,CAQvC"}
@@ -0,0 +1,40 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ import { operationOptionsToRequestParameters, createRestError, } from "@azure-rest/core-client";
4
+ import { buildPagedAsyncIterator, } from "../../static-helpers/pagingHelpers.js";
5
+ export function _operationsListSend(context, options = { requestOptions: {} }) {
6
+ return context
7
+ .path("/providers/Microsoft.StandbyPool/operations")
8
+ .get(Object.assign({}, operationOptionsToRequestParameters(options)));
9
+ }
10
+ export async function _operationsListDeserialize(result) {
11
+ const expectedStatuses = ["200"];
12
+ if (!expectedStatuses.includes(result.status)) {
13
+ throw createRestError(result);
14
+ }
15
+ return {
16
+ value: result.body["value"].map((p) => {
17
+ var _a, _b, _c, _d;
18
+ return {
19
+ name: p["name"],
20
+ isDataAction: p["isDataAction"],
21
+ display: !p.display
22
+ ? undefined
23
+ : {
24
+ provider: (_a = p.display) === null || _a === void 0 ? void 0 : _a["provider"],
25
+ resource: (_b = p.display) === null || _b === void 0 ? void 0 : _b["resource"],
26
+ operation: (_c = p.display) === null || _c === void 0 ? void 0 : _c["operation"],
27
+ description: (_d = p.display) === null || _d === void 0 ? void 0 : _d["description"],
28
+ },
29
+ origin: p["origin"],
30
+ actionType: p["actionType"],
31
+ };
32
+ }),
33
+ nextLink: result.body["nextLink"],
34
+ };
35
+ }
36
+ /** List the operations for the provider */
37
+ export function operationsList(context, options = { requestOptions: {} }) {
38
+ return buildPagedAsyncIterator(context, () => _operationsListSend(context, options), _operationsListDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
39
+ }
40
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/operations/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAIlC,OAAO,EAEL,mCAAmC,EAEnC,eAAe,GAChB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAEL,uBAAuB,GACxB,MAAM,uCAAuC,CAAC;AAG/C,MAAM,UAAU,mBAAmB,CACjC,OAAe,EACf,UAAwC,EAAE,cAAc,EAAE,EAAE,EAAE;IAE9D,OAAO,OAAO;SACX,IAAI,CAAC,6CAA6C,CAAC;SACnD,GAAG,mBAAM,mCAAmC,CAAC,OAAO,CAAC,EAAG,CAAC;AAC9D,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,0BAA0B,CAC9C,MAA6B;IAE7B,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,eAAe,CAAC,MAAM,CAAC,CAAC;IAChC,CAAC;IAED,OAAO;QACL,KAAK,EAAE,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,CAAM,EAAE,EAAE;;YACzC,OAAO;gBACL,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC;gBACf,YAAY,EAAE,CAAC,CAAC,cAAc,CAAC;gBAC/B,OAAO,EAAE,CAAC,CAAC,CAAC,OAAO;oBACjB,CAAC,CAAC,SAAS;oBACX,CAAC,CAAC;wBACE,QAAQ,EAAE,MAAA,CAAC,CAAC,OAAO,0CAAG,UAAU,CAAC;wBACjC,QAAQ,EAAE,MAAA,CAAC,CAAC,OAAO,0CAAG,UAAU,CAAC;wBACjC,SAAS,EAAE,MAAA,CAAC,CAAC,OAAO,0CAAG,WAAW,CAAC;wBACnC,WAAW,EAAE,MAAA,CAAC,CAAC,OAAO,0CAAG,aAAa,CAAC;qBACxC;gBACL,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC;gBACnB,UAAU,EAAE,CAAC,CAAC,YAAY,CAAC;aAC5B,CAAC;QACJ,CAAC,CAAC;QACF,QAAQ,EAAE,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC;KAClC,CAAC;AACJ,CAAC;AAED,2CAA2C;AAC3C,MAAM,UAAU,cAAc,CAC5B,OAAe,EACf,UAAwC,EAAE,cAAc,EAAE,EAAE,EAAE;IAE9D,OAAO,uBAAuB,CAC5B,OAAO,EACP,GAAG,EAAE,CAAC,mBAAmB,CAAC,OAAO,EAAE,OAAO,CAAC,EAC3C,0BAA0B,EAC1B,CAAC,KAAK,CAAC,EACP,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,CAChD,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { Operation, _OperationListResult } from \"../../models/models.js\";\nimport { StandbyPoolContext as Client } from \"../index.js\";\nimport {\n StreamableMethod,\n operationOptionsToRequestParameters,\n PathUncheckedResponse,\n createRestError,\n} from \"@azure-rest/core-client\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport { OperationsListOptionalParams } from \"../../models/options.js\";\n\nexport function _operationsListSend(\n context: Client,\n options: OperationsListOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\"/providers/Microsoft.StandbyPool/operations\")\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _operationsListDeserialize(\n result: PathUncheckedResponse,\n): Promise<_OperationListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return {\n value: result.body[\"value\"].map((p: any) => {\n return {\n name: p[\"name\"],\n isDataAction: p[\"isDataAction\"],\n display: !p.display\n ? undefined\n : {\n provider: p.display?.[\"provider\"],\n resource: p.display?.[\"resource\"],\n operation: p.display?.[\"operation\"],\n description: p.display?.[\"description\"],\n },\n origin: p[\"origin\"],\n actionType: p[\"actionType\"],\n };\n }),\n nextLink: result.body[\"nextLink\"],\n };\n}\n\n/** List the operations for the provider */\nexport function operationsList(\n context: Client,\n options: OperationsListOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<Operation> {\n return buildPagedAsyncIterator(\n context,\n () => _operationsListSend(context, options),\n _operationsListDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n"]}
@@ -0,0 +1,14 @@
1
+ import { StandbyContainerGroupPoolRuntimeViewResource, _StandbyContainerGroupPoolRuntimeViewResourceListResult } from "../../models/models.js";
2
+ import { StandbyPoolContext as Client } from "../index.js";
3
+ import { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
4
+ import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
5
+ import { StandbyContainerGroupPoolRuntimeViewsGetOptionalParams, StandbyContainerGroupPoolRuntimeViewsListByStandbyPoolOptionalParams } from "../../models/options.js";
6
+ export declare function _standbyContainerGroupPoolRuntimeViewsGetSend(context: Client, subscriptionId: string, resourceGroupName: string, standbyContainerGroupPoolName: string, runtimeView: string, options?: StandbyContainerGroupPoolRuntimeViewsGetOptionalParams): StreamableMethod;
7
+ export declare function _standbyContainerGroupPoolRuntimeViewsGetDeserialize(result: PathUncheckedResponse): Promise<StandbyContainerGroupPoolRuntimeViewResource>;
8
+ /** Get a StandbyContainerGroupPoolRuntimeViewResource */
9
+ export declare function standbyContainerGroupPoolRuntimeViewsGet(context: Client, subscriptionId: string, resourceGroupName: string, standbyContainerGroupPoolName: string, runtimeView: string, options?: StandbyContainerGroupPoolRuntimeViewsGetOptionalParams): Promise<StandbyContainerGroupPoolRuntimeViewResource>;
10
+ export declare function _standbyContainerGroupPoolRuntimeViewsListByStandbyPoolSend(context: Client, subscriptionId: string, resourceGroupName: string, standbyContainerGroupPoolName: string, options?: StandbyContainerGroupPoolRuntimeViewsListByStandbyPoolOptionalParams): StreamableMethod;
11
+ export declare function _standbyContainerGroupPoolRuntimeViewsListByStandbyPoolDeserialize(result: PathUncheckedResponse): Promise<_StandbyContainerGroupPoolRuntimeViewResourceListResult>;
12
+ /** List StandbyContainerGroupPoolRuntimeViewResource resources by StandbyContainerGroupPoolResource */
13
+ export declare function standbyContainerGroupPoolRuntimeViewsListByStandbyPool(context: Client, subscriptionId: string, resourceGroupName: string, standbyContainerGroupPoolName: string, options?: StandbyContainerGroupPoolRuntimeViewsListByStandbyPoolOptionalParams): PagedAsyncIterableIterator<StandbyContainerGroupPoolRuntimeViewResource>;
14
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/standbyContainerGroupPoolRuntimeViews/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,4CAA4C,EAC5C,uDAAuD,EACxD,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,kBAAkB,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC;AAC3D,OAAO,EACL,gBAAgB,EAEhB,qBAAqB,EAEtB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,0BAA0B,EAE3B,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,sDAAsD,EACtD,oEAAoE,EACrE,MAAM,yBAAyB,CAAC;AAEjC,wBAAgB,6CAA6C,CAC3D,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,EACzB,6BAA6B,EAAE,MAAM,EACrC,WAAW,EAAE,MAAM,EACnB,OAAO,GAAE,sDAER,GACA,gBAAgB,CAUlB;AAED,wBAAsB,oDAAoD,CACxE,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,4CAA4C,CAAC,CAuCvD;AAED,yDAAyD;AACzD,wBAAsB,wCAAwC,CAC5D,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,EACzB,6BAA6B,EAAE,MAAM,EACrC,WAAW,EAAE,MAAM,EACnB,OAAO,GAAE,sDAER,GACA,OAAO,CAAC,4CAA4C,CAAC,CAUvD;AAED,wBAAgB,2DAA2D,CACzE,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,EACzB,6BAA6B,EAAE,MAAM,EACrC,OAAO,GAAE,oEAER,GACA,gBAAgB,CASlB;AAED,wBAAsB,kEAAkE,CACtF,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,uDAAuD,CAAC,CA4ClE;AAED,uGAAuG;AACvG,wBAAgB,sDAAsD,CACpE,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,EACzB,6BAA6B,EAAE,MAAM,EACrC,OAAO,GAAE,oEAER,GACA,0BAA0B,CAAC,4CAA4C,CAAC,CAe1E"}
@@ -0,0 +1,113 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ import { operationOptionsToRequestParameters, createRestError, } from "@azure-rest/core-client";
4
+ import { buildPagedAsyncIterator, } from "../../static-helpers/pagingHelpers.js";
5
+ export function _standbyContainerGroupPoolRuntimeViewsGetSend(context, subscriptionId, resourceGroupName, standbyContainerGroupPoolName, runtimeView, options = {
6
+ requestOptions: {},
7
+ }) {
8
+ return context
9
+ .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyContainerGroupPools/{standbyContainerGroupPoolName}/runtimeViews/{runtimeView}", subscriptionId, resourceGroupName, standbyContainerGroupPoolName, runtimeView)
10
+ .get(Object.assign({}, operationOptionsToRequestParameters(options)));
11
+ }
12
+ export async function _standbyContainerGroupPoolRuntimeViewsGetDeserialize(result) {
13
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
14
+ const expectedStatuses = ["200"];
15
+ if (!expectedStatuses.includes(result.status)) {
16
+ throw createRestError(result);
17
+ }
18
+ return {
19
+ id: result.body["id"],
20
+ name: result.body["name"],
21
+ type: result.body["type"],
22
+ systemData: !result.body.systemData
23
+ ? undefined
24
+ : {
25
+ createdBy: (_a = result.body.systemData) === null || _a === void 0 ? void 0 : _a["createdBy"],
26
+ createdByType: (_b = result.body.systemData) === null || _b === void 0 ? void 0 : _b["createdByType"],
27
+ createdAt: ((_c = result.body.systemData) === null || _c === void 0 ? void 0 : _c["createdAt"]) !== undefined
28
+ ? new Date((_d = result.body.systemData) === null || _d === void 0 ? void 0 : _d["createdAt"])
29
+ : undefined,
30
+ lastModifiedBy: (_e = result.body.systemData) === null || _e === void 0 ? void 0 : _e["lastModifiedBy"],
31
+ lastModifiedByType: (_f = result.body.systemData) === null || _f === void 0 ? void 0 : _f["lastModifiedByType"],
32
+ lastModifiedAt: ((_g = result.body.systemData) === null || _g === void 0 ? void 0 : _g["lastModifiedAt"]) !== undefined
33
+ ? new Date((_h = result.body.systemData) === null || _h === void 0 ? void 0 : _h["lastModifiedAt"])
34
+ : undefined,
35
+ },
36
+ properties: !result.body.properties
37
+ ? undefined
38
+ : {
39
+ instanceCountSummary: (_j = result.body.properties) === null || _j === void 0 ? void 0 : _j["instanceCountSummary"].map((p) => {
40
+ return {
41
+ instanceCountsByState: p["instanceCountsByState"].map((p) => {
42
+ return { state: p["state"], count: p["count"] };
43
+ }),
44
+ };
45
+ }),
46
+ provisioningState: (_k = result.body.properties) === null || _k === void 0 ? void 0 : _k["provisioningState"],
47
+ },
48
+ };
49
+ }
50
+ /** Get a StandbyContainerGroupPoolRuntimeViewResource */
51
+ export async function standbyContainerGroupPoolRuntimeViewsGet(context, subscriptionId, resourceGroupName, standbyContainerGroupPoolName, runtimeView, options = {
52
+ requestOptions: {},
53
+ }) {
54
+ const result = await _standbyContainerGroupPoolRuntimeViewsGetSend(context, subscriptionId, resourceGroupName, standbyContainerGroupPoolName, runtimeView, options);
55
+ return _standbyContainerGroupPoolRuntimeViewsGetDeserialize(result);
56
+ }
57
+ export function _standbyContainerGroupPoolRuntimeViewsListByStandbyPoolSend(context, subscriptionId, resourceGroupName, standbyContainerGroupPoolName, options = {
58
+ requestOptions: {},
59
+ }) {
60
+ return context
61
+ .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyContainerGroupPools/{standbyContainerGroupPoolName}/runtimeViews", subscriptionId, resourceGroupName, standbyContainerGroupPoolName)
62
+ .get(Object.assign({}, operationOptionsToRequestParameters(options)));
63
+ }
64
+ export async function _standbyContainerGroupPoolRuntimeViewsListByStandbyPoolDeserialize(result) {
65
+ const expectedStatuses = ["200"];
66
+ if (!expectedStatuses.includes(result.status)) {
67
+ throw createRestError(result);
68
+ }
69
+ return {
70
+ value: result.body["value"].map((p) => {
71
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
72
+ return {
73
+ id: p["id"],
74
+ name: p["name"],
75
+ type: p["type"],
76
+ systemData: !p.systemData
77
+ ? undefined
78
+ : {
79
+ createdBy: (_a = p.systemData) === null || _a === void 0 ? void 0 : _a["createdBy"],
80
+ createdByType: (_b = p.systemData) === null || _b === void 0 ? void 0 : _b["createdByType"],
81
+ createdAt: ((_c = p.systemData) === null || _c === void 0 ? void 0 : _c["createdAt"]) !== undefined
82
+ ? new Date((_d = p.systemData) === null || _d === void 0 ? void 0 : _d["createdAt"])
83
+ : undefined,
84
+ lastModifiedBy: (_e = p.systemData) === null || _e === void 0 ? void 0 : _e["lastModifiedBy"],
85
+ lastModifiedByType: (_f = p.systemData) === null || _f === void 0 ? void 0 : _f["lastModifiedByType"],
86
+ lastModifiedAt: ((_g = p.systemData) === null || _g === void 0 ? void 0 : _g["lastModifiedAt"]) !== undefined
87
+ ? new Date((_h = p.systemData) === null || _h === void 0 ? void 0 : _h["lastModifiedAt"])
88
+ : undefined,
89
+ },
90
+ properties: !p.properties
91
+ ? undefined
92
+ : {
93
+ instanceCountSummary: (_j = p.properties) === null || _j === void 0 ? void 0 : _j["instanceCountSummary"].map((p) => {
94
+ return {
95
+ instanceCountsByState: p["instanceCountsByState"].map((p) => {
96
+ return { state: p["state"], count: p["count"] };
97
+ }),
98
+ };
99
+ }),
100
+ provisioningState: (_k = p.properties) === null || _k === void 0 ? void 0 : _k["provisioningState"],
101
+ },
102
+ };
103
+ }),
104
+ nextLink: result.body["nextLink"],
105
+ };
106
+ }
107
+ /** List StandbyContainerGroupPoolRuntimeViewResource resources by StandbyContainerGroupPoolResource */
108
+ export function standbyContainerGroupPoolRuntimeViewsListByStandbyPool(context, subscriptionId, resourceGroupName, standbyContainerGroupPoolName, options = {
109
+ requestOptions: {},
110
+ }) {
111
+ return buildPagedAsyncIterator(context, () => _standbyContainerGroupPoolRuntimeViewsListByStandbyPoolSend(context, subscriptionId, resourceGroupName, standbyContainerGroupPoolName, options), _standbyContainerGroupPoolRuntimeViewsListByStandbyPoolDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
112
+ }
113
+ //# sourceMappingURL=index.js.map