@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 @@
1
+ {"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/models/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAclE,MAAM,UAAU,kBAAkB,CAAC,IAAc;IAC/C,OAAO,IAAW,CAAC;AACrB,CAAC;AAkBD,sEAAsE;AACtE,MAAM,CAAN,IAAY,kBASX;AATD,WAAY,kBAAkB;IAC5B,WAAW;IACX,mCAAa,CAAA;IACb,kBAAkB;IAClB,iDAA2B,CAAA;IAC3B,sBAAsB;IACtB,yDAAmC,CAAA;IACnC,UAAU;IACV,iCAAW,CAAA;AACb,CAAC,EATW,kBAAkB,KAAlB,kBAAkB,QAS7B;AA6DD,MAAM,UAAU,yBAAyB,CAAC,IAAqB;IAC7D,OAAO;QACL,IAAI,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAE,eAAe,CAAC,IAAI,CAAC,IAAW,CAAS;QACzE,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC;KAC3B,CAAC;AACJ,CAAC;AAQD,MAAM,UAAU,2CAA2C,CACzD,IAAuC;IAEvC,OAAO;QACL,IAAI,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAE,eAAe,C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ChD,gCAAgC,EAAE,IAAI,CAAC,kCAAkC,CAAC;KAC3E,CAAC;AACJ,CAAC;AA4CD,+DAA+D;AAC/D,MAAM,CAAN,IAAY,WAOX;AAPD,WAAY,WAAW;IACrB,WAAW;IACX,4BAAa,CAAA;IACb,aAAa;IACb,gCAAiB,CAAA;IACjB,kBAAkB;IAClB,yCAA0B,CAAA;AAC5B,CAAC,EAPW,WAAW,KAAX,WAAW,QAOtB;AAaD,mEAAmE;AACnE,MAAM,CAAN,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,eAAe;IACf,wCAAqB,CAAA;AACvB,CAAC,EAHW,eAAe,KAAf,eAAe,QAG1B;AAWD,0EAA0E;AAC1E,MAAM,CAAN,IAAY,sBASX;AATD,WAAY,sBAAsB;IAChC,gBAAgB;IAChB,iDAAuB,CAAA;IACvB,aAAa;IACb,2CAAiB,CAAA;IACjB,eAAe;IACf,+CAAqB,CAAA;IACrB,eAAe;IACf,+CAAqB,CAAA;AACvB,CAAC,EATW,sBAAsB,KAAtB,sBAAsB,QASjC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { serializeRecord } from \"../helpers/serializerHelpers.js\";\n\n/** Common fields that are returned in the response for all Azure Resource Manager resources */\nexport interface Resource {\n /** Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} */\n readonly id?: string;\n /** The name of the resource */\n readonly name?: string;\n /** The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or \"Microsoft.Storage/storageAccounts\" */\n readonly type?: string;\n /** Azure Resource Manager metadata containing createdBy and modifiedBy information. */\n readonly systemData?: SystemData;\n}\n\nexport function resourceSerializer(item: Resource) {\n return item as any;\n}\n\n/** Metadata pertaining to creation and last modification of the resource. */\nexport interface SystemData {\n /** The identity that created the resource. */\n createdBy?: string;\n /** The type of identity that created the resource. */\n createdByType?: CreatedByType;\n /** The timestamp of resource creation (UTC). */\n createdAt?: Date;\n /** The identity that last modified the resource. */\n lastModifiedBy?: string;\n /** The type of identity that last modified the resource. */\n lastModifiedByType?: CreatedByType;\n /** The timestamp of resource last modification (UTC) */\n lastModifiedAt?: Date;\n}\n\n/** Known values of {@link CreatedByType} that the service accepts. */\nexport enum KnownCreatedByType {\n /** User */\n User = \"User\",\n /** Application */\n Application = \"Application\",\n /** ManagedIdentity */\n ManagedIdentity = \"ManagedIdentity\",\n /** Key */\n Key = \"Key\",\n}\n\n/**\n * The kind of entity that created the resource. \\\n * {@link KnownCreatedByType} can be used interchangeably with CreatedByType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **User** \\\n * **Application** \\\n * **ManagedIdentity** \\\n * **Key**\n */\nexport type CreatedByType = string;\n\n/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */\nexport interface ProxyResource extends Resource {}\n\n/** Contains information about a standby container group pool as last known by the StandbyPool resource provider. */\nexport interface StandbyContainerGroupPoolRuntimeViewResource extends ProxyResource {\n /** The resource-specific properties for this resource. */\n properties?: StandbyContainerGroupPoolRuntimeViewResourceProperties;\n}\n\n/** Contains information about a standby pool as last known by the StandbyPool resource provider. */\nexport interface StandbyContainerGroupPoolRuntimeViewResourceProperties {\n /** A list containing the counts of container groups in each possible state, as known by the StandbyPool resource provider. */\n readonly instanceCountSummary: ContainerGroupInstanceCountSummary[];\n /** Displays the provisioning state of the standby pool */\n readonly provisioningState?: ProvisioningState;\n}\n\n/** Displays the counts of container groups in each state, as known by the StandbyPool resource provider. */\nexport interface ContainerGroupInstanceCountSummary {\n /** The count of pooled resources in each state. */\n instanceCountsByState: PoolResourceStateCount[];\n}\n\n/** Displays the counts of pooled resources in each state, as known by the StandbyPool resource provider. */\nexport interface PoolResourceStateCount {\n /** The state that the pooled resources count is for. */\n state: string;\n /** The count of pooled resources in the given state. */\n count: number;\n}\n\n/** The response of a StandbyContainerGroupPoolRuntimeViewResource list operation. */\nexport interface _StandbyContainerGroupPoolRuntimeViewResourceListResult {\n /** The StandbyContainerGroupPoolRuntimeViewResource items on this page */\n value: StandbyContainerGroupPoolRuntimeViewResource[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\n/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */\nexport interface TrackedResource extends Resource {\n /** Resource tags. */\n tags?: Record<string, string>;\n /** The geo-location where the resource lives */\n location: string;\n}\n\nexport function trackedResourceSerializer(item: TrackedResource): Record<string, unknown> {\n return {\n tags: !item.tags ? item.tags : (serializeRecord(item.tags as any) as any),\n location: item[\"location\"],\n };\n}\n\n/** A StandbyContainerGroupPoolResource. */\nexport interface StandbyContainerGroupPoolResource extends TrackedResource {\n /** The resource-specific properties for this resource. */\n properties?: StandbyContainerGroupPoolResourceProperties;\n}\n\nexport function standbyContainerGroupPoolResourceSerializer(\n item: StandbyContainerGroupPoolResource,\n): Record<string, unknown> {\n return {\n tags: !item.tags ? item.tags : (serializeRecord(item.tags as any) as any),\n location: item[\"location\"],\n properties: !item.properties\n ? item.properties\n : standbyContainerGroupPoolResourcePropertiesSerializer(item.properties),\n };\n}\n\n/** Details of the StandbyContainerGroupPool. */\nexport interface StandbyContainerGroupPoolResourceProperties {\n /** Specifies elasticity profile of standby container group pools. */\n elasticityProfile: StandbyContainerGroupPoolElasticityProfile;\n /** Specifies container group properties of standby container group pools. */\n containerGroupProperties: ContainerGroupProperties;\n /** The status of the last operation. */\n readonly provisioningState?: ProvisioningState;\n}\n\nexport function standbyContainerGroupPoolResourcePropertiesSerializer(\n item: StandbyContainerGroupPoolResourceProperties,\n): Record<string, unknown> {\n return {\n elasticityProfile: standbyContainerGroupPoolElasticityProfileSerializer(item.elasticityProfile),\n containerGroupProperties: containerGroupPropertiesSerializer(item.containerGroupProperties),\n };\n}\n\n/** Specifies the elasticity profile of the standby container group pools. */\nexport interface StandbyContainerGroupPoolElasticityProfile {\n /** Specifies maximum number of standby container groups in the standby pool. */\n maxReadyCapacity: number;\n /** Specifies refill policy of the pool. */\n refillPolicy?: RefillPolicy;\n}\n\nexport function standbyContainerGroupPoolElasticityProfileSerializer(\n item: StandbyContainerGroupPoolElasticityProfile,\n): Record<string, unknown> {\n return {\n maxReadyCapacity: item[\"maxReadyCapacity\"],\n refillPolicy: item[\"refillPolicy\"],\n };\n}\n\n/** Known values of {@link RefillPolicy} that the service accepts. */\nexport enum KnownRefillPolicy {\n /** always */\n Always = \"always\",\n}\n\n/**\n * Refill policy of standby pool \\\n * {@link KnownRefillPolicy} can be used interchangeably with RefillPolicy,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **always**\n */\nexport type RefillPolicy = string;\n\n/** Details of the ContainerGroupProperties. */\nexport interface ContainerGroupProperties {\n /** Specifies container group profile of standby container groups. */\n containerGroupProfile: ContainerGroupProfile;\n /** Specifies subnet Ids for container group. */\n subnetIds?: Subnet[];\n}\n\nexport function containerGroupPropertiesSerializer(\n item: ContainerGroupProperties,\n): Record<string, unknown> {\n return {\n containerGroupProfile: containerGroupProfileSerializer(item.containerGroupProfile),\n subnetIds:\n item[\"subnetIds\"] === undefined ? item[\"subnetIds\"] : item[\"subnetIds\"].map(subnetSerializer),\n };\n}\n\n/** Details of the ContainerGroupProfile. */\nexport interface ContainerGroupProfile {\n /** Specifies container group profile id of standby container groups. */\n id: string;\n /** Specifies revision of container group profile. */\n revision?: number;\n}\n\nexport function containerGroupProfileSerializer(\n item: ContainerGroupProfile,\n): Record<string, unknown> {\n return {\n id: item[\"id\"],\n revision: item[\"revision\"],\n };\n}\n\n/** Subnet of container group */\nexport interface Subnet {\n /** Specifies ARM resource id of the subnet. */\n id: string;\n}\n\nexport function subnetSerializer(item: Subnet): Record<string, unknown> {\n return {\n id: item[\"id\"],\n };\n}\n\n/** The type used for update operations of the StandbyContainerGroupPoolResource. */\nexport interface StandbyContainerGroupPoolResourceUpdate {\n /** Resource tags. */\n tags?: Record<string, string>;\n /** The resource-specific properties for this resource. */\n properties?: StandbyContainerGroupPoolResourceUpdateProperties;\n}\n\nexport function standbyContainerGroupPoolResourceUpdateSerializer(\n item: StandbyContainerGroupPoolResourceUpdate,\n): Record<string, unknown> {\n return {\n tags: !item.tags ? item.tags : (serializeRecord(item.tags as any) as any),\n properties: !item.properties\n ? item.properties\n : standbyContainerGroupPoolResourceUpdatePropertiesSerializer(item.properties),\n };\n}\n\n/** The updatable properties of the StandbyContainerGroupPoolResource. */\nexport interface StandbyContainerGroupPoolResourceUpdateProperties {\n /** Specifies elasticity profile of standby container group pools. */\n elasticityProfile?: StandbyContainerGroupPoolElasticityProfile;\n /** Specifies container group properties of standby container group pools. */\n containerGroupProperties?: ContainerGroupProperties;\n}\n\nexport function standbyContainerGroupPoolResourceUpdatePropertiesSerializer(\n item: StandbyContainerGroupPoolResourceUpdateProperties,\n): Record<string, unknown> {\n return {\n elasticityProfile: !item.elasticityProfile\n ? item.elasticityProfile\n : standbyContainerGroupPoolElasticityProfileSerializer(item.elasticityProfile),\n containerGroupProperties: !item.containerGroupProperties\n ? item.containerGroupProperties\n : containerGroupPropertiesSerializer(item.containerGroupProperties),\n };\n}\n\n/** The response of a StandbyContainerGroupPoolResource list operation. */\nexport interface _StandbyContainerGroupPoolResourceListResult {\n /** The StandbyContainerGroupPoolResource items on this page */\n value: StandbyContainerGroupPoolResource[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\n/** Contains information about a standby virtual machine pool as last known by the StandbyPool resource provider. */\nexport interface StandbyVirtualMachinePoolRuntimeViewResource extends ProxyResource {\n /** The resource-specific properties for this resource. */\n properties?: StandbyVirtualMachinePoolRuntimeViewResourceProperties;\n}\n\n/** Contains information about a standby pool as last known by the StandbyPool resource provider. */\nexport interface StandbyVirtualMachinePoolRuntimeViewResourceProperties {\n /**\n * A list containing the counts of virtual machines in each possible power state for each zone if enabled, as known by the StandbyPool resource provider.\n * If zones are not enabled on the attached VMSS, the list will contain a single entry with null zone values.\n * Note: any updates to pool resources outside of StandbyPoolRP (i.e deleting a VM through portal) are not reflected here.\n * Note: any resources in the Running state may still be installing extensions / not fully provisioned.\n */\n readonly instanceCountSummary: VirtualMachineInstanceCountSummary[];\n /** Displays the provisioning state of the standby pool */\n readonly provisioningState?: ProvisioningState;\n}\n\n/**\n * Contains the counts of VMs in each power state in a given zone, fault domain, as known by the StandbyPool resource provider.\n * Note: any updates to pool resources outside of StandbyPoolRP (i.e deleting a VM through portal) are not reflected here.\n * Note: any resources in the Running state may still be installing extensions / not fully provisioned.\n */\nexport interface VirtualMachineInstanceCountSummary {\n /** The zone that the provided counts are in. This is null if zones are not enabled on the attached VMSS. */\n zone?: number;\n /** The count of pooled resources in each state for the given zone. */\n instanceCountsByState: PoolResourceStateCount[];\n}\n\n/** The response of a StandbyVirtualMachinePoolRuntimeViewResource list operation. */\nexport interface _StandbyVirtualMachinePoolRuntimeViewResourceListResult {\n /** The StandbyVirtualMachinePoolRuntimeViewResource items on this page */\n value: StandbyVirtualMachinePoolRuntimeViewResource[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\n/** Concrete proxy resource types can be created by aliasing this type using a specific property type. */\nexport interface StandbyVirtualMachineResource extends ProxyResource {\n /** The resource-specific properties for this resource. */\n properties?: StandbyVirtualMachineResourceProperties;\n}\n\n/** Details of the StandbyVirtualMachine. */\nexport interface StandbyVirtualMachineResourceProperties {\n /** Resource id of the virtual machine. */\n virtualMachineResourceId: string;\n /** The status of the last operation. */\n readonly provisioningState?: ProvisioningState;\n}\n\n/** The response of a StandbyVirtualMachineResource list operation. */\nexport interface _StandbyVirtualMachineResourceListResult {\n /** The StandbyVirtualMachineResource items on this page */\n value: StandbyVirtualMachineResource[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\n/** A StandbyVirtualMachinePoolResource. */\nexport interface StandbyVirtualMachinePoolResource extends TrackedResource {\n /** The resource-specific properties for this resource. */\n properties?: StandbyVirtualMachinePoolResourceProperties;\n}\n\nexport function standbyVirtualMachinePoolResourceSerializer(\n item: StandbyVirtualMachinePoolResource,\n): Record<string, unknown> {\n return {\n tags: !item.tags ? item.tags : (serializeRecord(item.tags as any) as any),\n location: item[\"location\"],\n properties: !item.properties\n ? item.properties\n : standbyVirtualMachinePoolResourcePropertiesSerializer(item.properties),\n };\n}\n\n/** Details of the StandbyVirtualMachinePool. */\nexport interface StandbyVirtualMachinePoolResourceProperties {\n /** Specifies the elasticity profile of the standby virtual machine pools. */\n elasticityProfile?: StandbyVirtualMachinePoolElasticityProfile;\n /** Specifies the desired state of virtual machines in the pool. */\n virtualMachineState: VirtualMachineState;\n /** Specifies the fully qualified resource ID of a virtual machine scale set the pool is attached to. */\n attachedVirtualMachineScaleSetId?: string;\n /** The status of the last operation. */\n readonly provisioningState?: ProvisioningState;\n}\n\nexport function standbyVirtualMachinePoolResourcePropertiesSerializer(\n item: StandbyVirtualMachinePoolResourceProperties,\n): Record<string, unknown> {\n return {\n elasticityProfile: !item.elasticityProfile\n ? item.elasticityProfile\n : standbyVirtualMachinePoolElasticityProfileSerializer(item.elasticityProfile),\n virtualMachineState: item[\"virtualMachineState\"],\n attachedVirtualMachineScaleSetId: item[\"attachedVirtualMachineScaleSetId\"],\n };\n}\n\n/** Details of the elasticity profile. */\nexport interface StandbyVirtualMachinePoolElasticityProfile {\n /** Specifies the maximum number of virtual machines in the standby virtual machine pool. */\n maxReadyCapacity: number;\n /** Specifies the desired minimum number of virtual machines in the standby virtual machine pool. MinReadyCapacity cannot exceed MaxReadyCapacity. */\n minReadyCapacity?: number;\n}\n\nexport function standbyVirtualMachinePoolElasticityProfileSerializer(\n item: StandbyVirtualMachinePoolElasticityProfile,\n): Record<string, unknown> {\n return {\n maxReadyCapacity: item[\"maxReadyCapacity\"],\n minReadyCapacity: item[\"minReadyCapacity\"],\n };\n}\n\n/** Known values of {@link VirtualMachineState} that the service accepts. */\nexport enum KnownVirtualMachineState {\n /** Running */\n Running = \"Running\",\n /** Deallocated */\n Deallocated = \"Deallocated\",\n}\n\n/**\n * State of standby virtual machines \\\n * {@link KnownVirtualMachineState} can be used interchangeably with VirtualMachineState,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Running** \\\n * **Deallocated**\n */\nexport type VirtualMachineState = string;\n\n/** The type used for update operations of the StandbyVirtualMachinePoolResource. */\nexport interface StandbyVirtualMachinePoolResourceUpdate {\n /** Resource tags. */\n tags?: Record<string, string>;\n /** The resource-specific properties for this resource. */\n properties?: StandbyVirtualMachinePoolResourceUpdateProperties;\n}\n\nexport function standbyVirtualMachinePoolResourceUpdateSerializer(\n item: StandbyVirtualMachinePoolResourceUpdate,\n): Record<string, unknown> {\n return {\n tags: !item.tags ? item.tags : (serializeRecord(item.tags as any) as any),\n properties: !item.properties\n ? item.properties\n : standbyVirtualMachinePoolResourceUpdatePropertiesSerializer(item.properties),\n };\n}\n\n/** The updatable properties of the StandbyVirtualMachinePoolResource. */\nexport interface StandbyVirtualMachinePoolResourceUpdateProperties {\n /** Specifies the elasticity profile of the standby virtual machine pools. */\n elasticityProfile?: StandbyVirtualMachinePoolElasticityProfile;\n /** Specifies the desired state of virtual machines in the pool. */\n virtualMachineState?: VirtualMachineState;\n /** Specifies the fully qualified resource ID of a virtual machine scale set the pool is attached to. */\n attachedVirtualMachineScaleSetId?: string;\n}\n\nexport function standbyVirtualMachinePoolResourceUpdatePropertiesSerializer(\n item: StandbyVirtualMachinePoolResourceUpdateProperties,\n): Record<string, unknown> {\n return {\n elasticityProfile: !item.elasticityProfile\n ? item.elasticityProfile\n : standbyVirtualMachinePoolElasticityProfileSerializer(item.elasticityProfile),\n virtualMachineState: item[\"virtualMachineState\"],\n attachedVirtualMachineScaleSetId: item[\"attachedVirtualMachineScaleSetId\"],\n };\n}\n\n/** The response of a StandbyVirtualMachinePoolResource list operation. */\nexport interface _StandbyVirtualMachinePoolResourceListResult {\n /** The StandbyVirtualMachinePoolResource items on this page */\n value: StandbyVirtualMachinePoolResource[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\n/** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */\nexport interface _OperationListResult {\n /** The Operation items on this page */\n value: Operation[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\n/** Details of a REST API operation, returned from the Resource Provider Operations API */\nexport interface Operation {\n /** The name of the operation, as per Resource-Based Access Control (RBAC). Examples: \"Microsoft.Compute/virtualMachines/write\", \"Microsoft.Compute/virtualMachines/capture/action\" */\n readonly name?: string;\n /** Whether the operation applies to data-plane. This is \"true\" for data-plane operations and \"false\" for Azure Resource Manager/control-plane operations. */\n readonly isDataAction?: boolean;\n /** Localized display information for this particular operation. */\n readonly display?: OperationDisplay;\n /** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" */\n readonly origin?: Origin;\n /** Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. */\n actionType?: ActionType;\n}\n\n/** Localized display information for and operation. */\nexport interface OperationDisplay {\n /** The localized friendly form of the resource provider name, e.g. \"Microsoft Monitoring Insights\" or \"Microsoft Compute\". */\n readonly provider?: string;\n /** The localized friendly name of the resource type related to this operation. E.g. \"Virtual Machines\" or \"Job Schedule Collections\". */\n readonly resource?: string;\n /** The concise, localized friendly name for the operation; suitable for dropdowns. E.g. \"Create or Update Virtual Machine\", \"Restart Virtual Machine\". */\n readonly operation?: string;\n /** The short, localized friendly description of the operation; suitable for tool tips and detailed views. */\n readonly description?: string;\n}\n\n/** Known values of {@link Origin} that the service accepts. */\nexport enum KnownOrigin {\n /** user */\n User = \"user\",\n /** system */\n System = \"system\",\n /** user,system */\n UserSystem = \"user,system\",\n}\n\n/**\n * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" \\\n * {@link KnownOrigin} can be used interchangeably with Origin,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **user** \\\n * **system** \\\n * **user,system**\n */\nexport type Origin = string;\n\n/** Known values of {@link ActionType} that the service accepts. */\nexport enum KnownActionType {\n /** Internal */\n Internal = \"Internal\",\n}\n\n/**\n * Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. \\\n * {@link KnownActionType} can be used interchangeably with ActionType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Internal**\n */\nexport type ActionType = string;\n\n/** Known values of {@link ProvisioningState} that the service accepts. */\nexport enum KnownProvisioningState {\n /** Succeeded */\n Succeeded = \"Succeeded\",\n /** Failed */\n Failed = \"Failed\",\n /** Canceled */\n Canceled = \"Canceled\",\n /** Deleting */\n Deleting = \"Deleting\",\n}\n\n/**\n * The provisioning state of a resource type. \\\n * {@link KnownProvisioningState} can be used interchangeably with ResourceProvisioningState,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Succeeded** \\\n * **Failed** \\\n * **Canceled** \\\n * **Deleting**\n */\n/** Alias for ProvisioningState */\n\nexport type ProvisioningState = string;\n"]}
@@ -0,0 +1,67 @@
1
+ import { OperationOptions } from "@azure-rest/core-client";
2
+ /** Optional parameters. */
3
+ export interface OperationsListOptionalParams extends OperationOptions {
4
+ }
5
+ /** Optional parameters. */
6
+ export interface StandbyVirtualMachinePoolsGetOptionalParams extends OperationOptions {
7
+ }
8
+ /** Optional parameters. */
9
+ export interface StandbyVirtualMachinePoolsCreateOrUpdateOptionalParams extends OperationOptions {
10
+ /** Delay to wait until next poll, in milliseconds. */
11
+ updateIntervalInMs?: number;
12
+ }
13
+ /** Optional parameters. */
14
+ export interface StandbyVirtualMachinePoolsDeleteOptionalParams extends OperationOptions {
15
+ /** Delay to wait until next poll, in milliseconds. */
16
+ updateIntervalInMs?: number;
17
+ }
18
+ /** Optional parameters. */
19
+ export interface StandbyVirtualMachinePoolsUpdateOptionalParams extends OperationOptions {
20
+ }
21
+ /** Optional parameters. */
22
+ export interface StandbyVirtualMachinePoolsListByResourceGroupOptionalParams extends OperationOptions {
23
+ }
24
+ /** Optional parameters. */
25
+ export interface StandbyVirtualMachinePoolsListBySubscriptionOptionalParams extends OperationOptions {
26
+ }
27
+ /** Optional parameters. */
28
+ export interface StandbyVirtualMachinesGetOptionalParams extends OperationOptions {
29
+ }
30
+ /** Optional parameters. */
31
+ export interface StandbyVirtualMachinesListByStandbyVirtualMachinePoolResourceOptionalParams extends OperationOptions {
32
+ }
33
+ /** Optional parameters. */
34
+ export interface StandbyVirtualMachinePoolRuntimeViewsGetOptionalParams extends OperationOptions {
35
+ }
36
+ /** Optional parameters. */
37
+ export interface StandbyVirtualMachinePoolRuntimeViewsListByStandbyPoolOptionalParams extends OperationOptions {
38
+ }
39
+ /** Optional parameters. */
40
+ export interface StandbyContainerGroupPoolsGetOptionalParams extends OperationOptions {
41
+ }
42
+ /** Optional parameters. */
43
+ export interface StandbyContainerGroupPoolsCreateOrUpdateOptionalParams extends OperationOptions {
44
+ /** Delay to wait until next poll, in milliseconds. */
45
+ updateIntervalInMs?: number;
46
+ }
47
+ /** Optional parameters. */
48
+ export interface StandbyContainerGroupPoolsDeleteOptionalParams extends OperationOptions {
49
+ /** Delay to wait until next poll, in milliseconds. */
50
+ updateIntervalInMs?: number;
51
+ }
52
+ /** Optional parameters. */
53
+ export interface StandbyContainerGroupPoolsUpdateOptionalParams extends OperationOptions {
54
+ }
55
+ /** Optional parameters. */
56
+ export interface StandbyContainerGroupPoolsListByResourceGroupOptionalParams extends OperationOptions {
57
+ }
58
+ /** Optional parameters. */
59
+ export interface StandbyContainerGroupPoolsListBySubscriptionOptionalParams extends OperationOptions {
60
+ }
61
+ /** Optional parameters. */
62
+ export interface StandbyContainerGroupPoolRuntimeViewsGetOptionalParams extends OperationOptions {
63
+ }
64
+ /** Optional parameters. */
65
+ export interface StandbyContainerGroupPoolRuntimeViewsListByStandbyPoolOptionalParams extends OperationOptions {
66
+ }
67
+ //# sourceMappingURL=options.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../src/models/options.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAE3D,2BAA2B;AAC3B,MAA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AAM,WAAW,0DACf,SAAQ,gBAAgB;CAAG;AAE7B,2BAA2B;AAC3B,MAAM,WAAW,sDAAuD,SAAQ,gBAAgB;CAAG;AAEnG,2BAA2B;AAC3B,MAAM,WAAW,oEACf,SAAQ,gBAAgB;CAAG"}
@@ -0,0 +1,4 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ export {};
4
+ //# sourceMappingURL=options.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"options.js","sourceRoot":"","sources":["../../../src/models/options.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { OperationOptions } from \"@azure-rest/core-client\";\n\n/** Optional parameters. */\nexport interface OperationsListOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface StandbyVirtualMachinePoolsGetOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface StandbyVirtualMachinePoolsCreateOrUpdateOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n}\n\n/** Optional parameters. */\nexport interface StandbyVirtualMachinePoolsDeleteOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n}\n\n/** Optional parameters. */\nexport interface StandbyVirtualMachinePoolsUpdateOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface StandbyVirtualMachinePoolsListByResourceGroupOptionalParams\n extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface StandbyVirtualMachinePoolsListBySubscriptionOptionalParams\n extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface StandbyVirtualMachinesGetOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface StandbyVirtualMachinesListByStandbyVirtualMachinePoolResourceOptionalParams\n extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface StandbyVirtualMachinePoolRuntimeViewsGetOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface StandbyVirtualMachinePoolRuntimeViewsListByStandbyPoolOptionalParams\n extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface StandbyContainerGroupPoolsGetOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface StandbyContainerGroupPoolsCreateOrUpdateOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n}\n\n/** Optional parameters. */\nexport interface StandbyContainerGroupPoolsDeleteOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n}\n\n/** Optional parameters. */\nexport interface StandbyContainerGroupPoolsUpdateOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface StandbyContainerGroupPoolsListByResourceGroupOptionalParams\n extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface StandbyContainerGroupPoolsListBySubscriptionOptionalParams\n extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface StandbyContainerGroupPoolRuntimeViewsGetOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface StandbyContainerGroupPoolRuntimeViewsListByStandbyPoolOptionalParams\n extends OperationOptions {}\n"]}
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "module"
3
+ }
@@ -0,0 +1,21 @@
1
+ import { StandbyPoolManagementClient } from "./standbyPoolManagementClient.js";
2
+ import { OperationOptions, PathUncheckedResponse } from "@azure-rest/core-client";
3
+ import { AbortSignalLike } from "@azure/abort-controller";
4
+ import { PollerLike, OperationState } from "@azure/core-lro";
5
+ export interface RestorePollerOptions<TResult, TResponse extends PathUncheckedResponse = PathUncheckedResponse> extends OperationOptions {
6
+ /** Delay to wait until next poll, in milliseconds. */
7
+ updateIntervalInMs?: number;
8
+ /**
9
+ * The signal which can be used to abort requests.
10
+ */
11
+ abortSignal?: AbortSignalLike;
12
+ /** Deserialization function for raw response body */
13
+ processResponseBody?: (result: TResponse) => Promise<TResult>;
14
+ }
15
+ /**
16
+ * Creates a poller from the serialized state of another poller. This can be
17
+ * useful when you want to create pollers on a different host or a poller
18
+ * needs to be constructed after the original one is not in scope.
19
+ */
20
+ export declare function restorePoller<TResponse extends PathUncheckedResponse, TResult>(client: StandbyPoolManagementClient, serializedState: string, sourceOperation: (...args: any[]) => PollerLike<OperationState<TResult>, TResult>, options?: RestorePollerOptions<TResult>): PollerLike<OperationState<TResult>, TResult>;
21
+ //# sourceMappingURL=restorePollerHelpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"restorePollerHelpers.d.ts","sourceRoot":"","sources":["../../src/restorePollerHelpers.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAU/E,OAAO,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAClF,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EACL,UAAU,EACV,cAAc,EAGf,MAAM,iBAAiB,CAAC;AAEzB,MAAM,WAAW,oBAAoB,CACnC,OAAO,EACP,SAAS,SAAS,qBAAqB,GAAG,qBAAqB,CAC/D,SAAQ,gBAAgB;IACxB,sDAAsD;IACtD,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,WAAW,CAAC,EAAE,eAAe,CAAC;IAC9B,qDAAqD;IACrD,mBAAmB,CAAC,EAAE,CAAC,MAAM,EAAE,SAAS,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;CAC/D;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,SAAS,SAAS,qBAAqB,EAAE,OAAO,EAC5E,MAAM,EAAE,2BAA2B,EACnC,eAAe,EAAE,MAAM,EACvB,eAAe,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,UAAU,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,EACjF,OAAO,CAAC,EAAE,oBAAoB,CAAC,OAAO,CAAC,GACtC,UAAU,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,CA+B9C"}
@@ -0,0 +1,106 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ import { _standbyVirtualMachinePoolsCreateOrUpdateDeserialize, _standbyVirtualMachinePoolsDeleteDeserialize, } from "./api/standbyVirtualMachinePools/index.js";
4
+ import { _standbyContainerGroupPoolsCreateOrUpdateDeserialize, _standbyContainerGroupPoolsDeleteDeserialize, } from "./api/standbyContainerGroupPools/index.js";
5
+ import { getLongRunningPoller } from "./static-helpers/pollingHelpers.js";
6
+ import { deserializeState, } from "@azure/core-lro";
7
+ /**
8
+ * Creates a poller from the serialized state of another poller. This can be
9
+ * useful when you want to create pollers on a different host or a poller
10
+ * needs to be constructed after the original one is not in scope.
11
+ */
12
+ export function restorePoller(client, serializedState, sourceOperation, options) {
13
+ var _a, _b, _c;
14
+ const pollerConfig = deserializeState(serializedState).config;
15
+ const { initialRequestUrl, requestMethod, metadata } = pollerConfig;
16
+ if (!initialRequestUrl || !requestMethod) {
17
+ throw new Error(`Invalid serialized state: ${serializedState} for sourceOperation ${sourceOperation === null || sourceOperation === void 0 ? void 0 : sourceOperation.name}`);
18
+ }
19
+ const resourceLocationConfig = metadata === null || metadata === void 0 ? void 0 : metadata["resourceLocationConfig"];
20
+ const { deserializer, expectedStatuses = [] } = (_a = getDeserializationHelper(initialRequestUrl, requestMethod)) !== null && _a !== void 0 ? _a : {};
21
+ const deserializeHelper = (_b = options === null || options === void 0 ? void 0 : options.processResponseBody) !== null && _b !== void 0 ? _b : deserializer;
22
+ if (!deserializeHelper) {
23
+ throw new Error(`Please ensure the operation is in this client! We can't find its deserializeHelper for ${sourceOperation === null || sourceOperation === void 0 ? void 0 : sourceOperation.name}.`);
24
+ }
25
+ return getLongRunningPoller((_c = client["_client"]) !== null && _c !== void 0 ? _c : client, deserializeHelper, expectedStatuses, {
26
+ updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
27
+ abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
28
+ resourceLocationConfig,
29
+ restoreFrom: serializedState,
30
+ initialRequestUrl,
31
+ });
32
+ }
33
+ const deserializeMap = {
34
+ "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/{standbyVirtualMachinePoolName}": {
35
+ deserializer: _standbyVirtualMachinePoolsCreateOrUpdateDeserialize,
36
+ expectedStatuses: ["200", "201"],
37
+ },
38
+ "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/{standbyVirtualMachinePoolName}": {
39
+ deserializer: _standbyVirtualMachinePoolsDeleteDeserialize,
40
+ expectedStatuses: ["202", "204", "200"],
41
+ },
42
+ "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyContainerGroupPools/{standbyContainerGroupPoolName}": {
43
+ deserializer: _standbyContainerGroupPoolsCreateOrUpdateDeserialize,
44
+ expectedStatuses: ["200", "201"],
45
+ },
46
+ "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyContainerGroupPools/{standbyContainerGroupPoolName}": {
47
+ deserializer: _standbyContainerGroupPoolsDeleteDeserialize,
48
+ expectedStatuses: ["202", "204", "200"],
49
+ },
50
+ };
51
+ function getDeserializationHelper(urlStr, method) {
52
+ var _a, _b, _c, _d;
53
+ const path = new URL(urlStr).pathname;
54
+ const pathParts = path.split("/");
55
+ // Traverse list to match the longest candidate
56
+ // matchedLen: the length of candidate path
57
+ // matchedValue: the matched status code array
58
+ let matchedLen = -1, matchedValue;
59
+ // Iterate the responseMap to find a match
60
+ for (const [key, value] of Object.entries(deserializeMap)) {
61
+ // Extracting the path from the map key which is in format
62
+ // GET /path/foo
63
+ if (!key.startsWith(method)) {
64
+ continue;
65
+ }
66
+ const candidatePath = getPathFromMapKey(key);
67
+ // Get each part of the url path
68
+ const candidateParts = candidatePath.split("/");
69
+ // track if we have found a match to return the values found.
70
+ let found = true;
71
+ for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {
72
+ if (((_a = candidateParts[i]) === null || _a === void 0 ? void 0 : _a.startsWith("{")) && ((_b = candidateParts[i]) === null || _b === void 0 ? void 0 : _b.indexOf("}")) !== -1) {
73
+ const start = candidateParts[i].indexOf("}") + 1, end = (_c = candidateParts[i]) === null || _c === void 0 ? void 0 : _c.length;
74
+ // If the current part of the candidate is a "template" part
75
+ // Try to use the suffix of pattern to match the path
76
+ // {guid} ==> $
77
+ // {guid}:export ==> :export$
78
+ const isMatched = new RegExp(`${(_d = candidateParts[i]) === null || _d === void 0 ? void 0 : _d.slice(start, end)}`).test(pathParts[j] || "");
79
+ if (!isMatched) {
80
+ found = false;
81
+ break;
82
+ }
83
+ continue;
84
+ }
85
+ // If the candidate part is not a template and
86
+ // the parts don't match mark the candidate as not found
87
+ // to move on with the next candidate path.
88
+ if (candidateParts[i] !== pathParts[j]) {
89
+ found = false;
90
+ break;
91
+ }
92
+ }
93
+ // We finished evaluating the current candidate parts
94
+ // Update the matched value if and only if we found the longer pattern
95
+ if (found && candidatePath.length > matchedLen) {
96
+ matchedLen = candidatePath.length;
97
+ matchedValue = value;
98
+ }
99
+ }
100
+ return matchedValue;
101
+ }
102
+ function getPathFromMapKey(mapKey) {
103
+ const pathStart = mapKey.indexOf("/");
104
+ return mapKey.slice(pathStart);
105
+ }
106
+ //# sourceMappingURL=restorePollerHelpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"restorePollerHelpers.js","sourceRoot":"","sources":["../../src/restorePollerHelpers.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EACL,oDAAoD,EACpD,4CAA4C,GAC7C,MAAM,2CAA2C,CAAC;AACnD,OAAO,EACL,oD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AAI,KAAK,IAAI,aAAa,CAAC,MAAM,GAAG,UAAU,EAAE,CAAC;YAC/C,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC;YAClC,YAAY,GAAG,KAAK,CAAC;QACvB,CAAC;IACH,CAAC;IAED,OAAO,YAAY,CAAC;AACtB,CAAC;AAED,SAAS,iBAAiB,CAAC,MAAc;IACvC,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACtC,OAAO,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { StandbyPoolManagementClient } from \"./standbyPoolManagementClient.js\";\nimport {\n _standbyVirtualMachinePoolsCreateOrUpdateDeserialize,\n _standbyVirtualMachinePoolsDeleteDeserialize,\n} from \"./api/standbyVirtualMachinePools/index.js\";\nimport {\n _standbyContainerGroupPoolsCreateOrUpdateDeserialize,\n _standbyContainerGroupPoolsDeleteDeserialize,\n} from \"./api/standbyContainerGroupPools/index.js\";\nimport { getLongRunningPoller } from \"./static-helpers/pollingHelpers.js\";\nimport { OperationOptions, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { AbortSignalLike } from \"@azure/abort-controller\";\nimport {\n PollerLike,\n OperationState,\n deserializeState,\n ResourceLocationConfig,\n} from \"@azure/core-lro\";\n\nexport interface RestorePollerOptions<\n TResult,\n TResponse extends PathUncheckedResponse = PathUncheckedResponse,\n> extends OperationOptions {\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 /** Deserialization function for raw response body */\n processResponseBody?: (result: TResponse) => Promise<TResult>;\n}\n\n/**\n * Creates a poller from the serialized state of another poller. This can be\n * useful when you want to create pollers on a different host or a poller\n * needs to be constructed after the original one is not in scope.\n */\nexport function restorePoller<TResponse extends PathUncheckedResponse, TResult>(\n client: StandbyPoolManagementClient,\n serializedState: string,\n sourceOperation: (...args: any[]) => PollerLike<OperationState<TResult>, TResult>,\n options?: RestorePollerOptions<TResult>,\n): PollerLike<OperationState<TResult>, TResult> {\n const pollerConfig = deserializeState(serializedState).config;\n const { initialRequestUrl, requestMethod, metadata } = pollerConfig;\n if (!initialRequestUrl || !requestMethod) {\n throw new Error(\n `Invalid serialized state: ${serializedState} for sourceOperation ${sourceOperation?.name}`,\n );\n }\n const resourceLocationConfig = metadata?.[\"resourceLocationConfig\"] as\n | ResourceLocationConfig\n | undefined;\n const { deserializer, expectedStatuses = [] } =\n getDeserializationHelper(initialRequestUrl, requestMethod) ?? {};\n const deserializeHelper = options?.processResponseBody ?? deserializer;\n if (!deserializeHelper) {\n throw new Error(\n `Please ensure the operation is in this client! We can't find its deserializeHelper for ${sourceOperation?.name}.`,\n );\n }\n return getLongRunningPoller(\n (client as any)[\"_client\"] ?? client,\n deserializeHelper as (result: TResponse) => Promise<TResult>,\n expectedStatuses,\n {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n resourceLocationConfig,\n restoreFrom: serializedState,\n initialRequestUrl,\n },\n );\n}\n\ninterface DeserializationHelper {\n deserializer: Function;\n expectedStatuses: string[];\n}\n\nconst deserializeMap: Record<string, DeserializationHelper> = {\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/{standbyVirtualMachinePoolName}\":\n {\n deserializer: _standbyVirtualMachinePoolsCreateOrUpdateDeserialize,\n expectedStatuses: [\"200\", \"201\"],\n },\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/{standbyVirtualMachinePoolName}\":\n {\n deserializer: _standbyVirtualMachinePoolsDeleteDeserialize,\n expectedStatuses: [\"202\", \"204\", \"200\"],\n },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyContainerGroupPools/{standbyContainerGroupPoolName}\":\n {\n deserializer: _standbyContainerGroupPoolsCreateOrUpdateDeserialize,\n expectedStatuses: [\"200\", \"201\"],\n },\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyContainerGroupPools/{standbyContainerGroupPoolName}\":\n {\n deserializer: _standbyContainerGroupPoolsDeleteDeserialize,\n expectedStatuses: [\"202\", \"204\", \"200\"],\n },\n};\n\nfunction getDeserializationHelper(\n urlStr: string,\n method: string,\n): DeserializationHelper | undefined {\n const path = new URL(urlStr).pathname;\n const pathParts = path.split(\"/\");\n\n // Traverse list to match the longest candidate\n // matchedLen: the length of candidate path\n // matchedValue: the matched status code array\n let matchedLen = -1,\n matchedValue: DeserializationHelper | undefined;\n\n // Iterate the responseMap to find a match\n for (const [key, value] of Object.entries(deserializeMap)) {\n // Extracting the path from the map key which is in format\n // GET /path/foo\n if (!key.startsWith(method)) {\n continue;\n }\n const candidatePath = getPathFromMapKey(key);\n // Get each part of the url path\n const candidateParts = candidatePath.split(\"/\");\n\n // track if we have found a match to return the values found.\n let found = true;\n for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {\n if (candidateParts[i]?.startsWith(\"{\") && candidateParts[i]?.indexOf(\"}\") !== -1) {\n const start = candidateParts[i]!.indexOf(\"}\") + 1,\n end = candidateParts[i]?.length;\n // If the current part of the candidate is a \"template\" part\n // Try to use the suffix of pattern to match the path\n // {guid} ==> $\n // {guid}:export ==> :export$\n const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test(\n pathParts[j] || \"\",\n );\n\n if (!isMatched) {\n found = false;\n break;\n }\n continue;\n }\n\n // If the candidate part is not a template and\n // the parts don't match mark the candidate as not found\n // to move on with the next candidate path.\n if (candidateParts[i] !== pathParts[j]) {\n found = false;\n break;\n }\n }\n\n // We finished evaluating the current candidate parts\n // Update the matched value if and only if we found the longer pattern\n if (found && candidatePath.length > matchedLen) {\n matchedLen = candidatePath.length;\n matchedValue = value;\n }\n }\n\n return matchedValue;\n}\n\nfunction getPathFromMapKey(mapKey: string): string {\n const pathStart = mapKey.indexOf(\"/\");\n return mapKey.slice(pathStart);\n}\n"]}
@@ -0,0 +1,29 @@
1
+ import { TokenCredential } from "@azure/core-auth";
2
+ import { Pipeline } from "@azure/core-rest-pipeline";
3
+ import { OperationsOperations } from "./classic/operations/index.js";
4
+ import { StandbyVirtualMachinePoolsOperations } from "./classic/standbyVirtualMachinePools/index.js";
5
+ import { StandbyVirtualMachinesOperations } from "./classic/standbyVirtualMachines/index.js";
6
+ import { StandbyVirtualMachinePoolRuntimeViewsOperations } from "./classic/standbyVirtualMachinePoolRuntimeViews/index.js";
7
+ import { StandbyContainerGroupPoolsOperations } from "./classic/standbyContainerGroupPools/index.js";
8
+ import { StandbyContainerGroupPoolRuntimeViewsOperations } from "./classic/standbyContainerGroupPoolRuntimeViews/index.js";
9
+ import { StandbyPoolManagementClientOptionalParams } from "./api/index.js";
10
+ export { StandbyPoolManagementClientOptionalParams } from "./api/standbyPoolManagementContext.js";
11
+ export declare class StandbyPoolManagementClient {
12
+ private _client;
13
+ /** The pipeline used by this client to make requests */
14
+ readonly pipeline: Pipeline;
15
+ constructor(credential: TokenCredential, subscriptionId: string, options?: StandbyPoolManagementClientOptionalParams);
16
+ /** The operation groups for Operations */
17
+ readonly operations: OperationsOperations;
18
+ /** The operation groups for StandbyVirtualMachinePools */
19
+ readonly standbyVirtualMachinePools: StandbyVirtualMachinePoolsOperations;
20
+ /** The operation groups for StandbyVirtualMachines */
21
+ readonly standbyVirtualMachines: StandbyVirtualMachinesOperations;
22
+ /** The operation groups for StandbyVirtualMachinePoolRuntimeViews */
23
+ readonly standbyVirtualMachinePoolRuntimeViews: StandbyVirtualMachinePoolRuntimeViewsOperations;
24
+ /** The operation groups for StandbyContainerGroupPools */
25
+ readonly standbyContainerGroupPools: StandbyContainerGroupPoolsOperations;
26
+ /** The operation groups for StandbyContainerGroupPoolRuntimeViews */
27
+ readonly standbyContainerGroupPoolRuntimeViews: StandbyContainerGroupPoolRuntimeViewsOperations;
28
+ }
29
+ //# sourceMappingURL=standbyPoolManagementClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"standbyPoolManagementClient.d.ts","sourceRoot":"","sources":["../../src/standbyPoolManagementClient.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAA2B,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAC9F,OAAO,EAEL,oCAAoC,EACrC,MAAM,+CAA+C,CAAC;AACvD,OAAO,EAEL,gCAAgC,EACjC,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAEL,+CAA+C,EAChD,MAAM,0DAA0D,CAAC;AAClE,OAAO,EAEL,oCAAoC,EACrC,MAAM,+CAA+C,CAAC;AACvD,OAAO,EAEL,+CAA+C,EAChD,MAAM,0DAA0D,CAAC;AAClE,OAAO,EAGL,yCAAyC,EAC1C,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,yCAAyC,EAAE,MAAM,uCAAuC,CAAC;AAElG,qBAAa,2BAA2B;IACtC,OAAO,CAAC,OAAO,CAAqB;IACpC,wDAAwD;IACxD,SAAgB,QAAQ,EAAE,QAAQ,CAAC;gBAGjC,UAAU,EAAE,eAAe,EAC3B,cAAc,EAAE,MAAM,EACtB,OAAO,GAAE,yCAA8C;IA+BzD,0CAA0C;IAC1C,SAAgB,UAAU,EAAE,oBAAoB,CAAC;IACjD,0DAA0D;IAC1D,SAAgB,0BAA0B,EAAE,oCAAoC,CAAC;IACjF,sDAAsD;IACtD,SAAgB,sBAAsB,EAAE,gCAAgC,CAAC;IACzE,qEAAqE;IACrE,SAAgB,qCAAqC,EAAE,+CAA+C,CAAC;IACvG,0DAA0D;IAC1D,SAAgB,0BAA0B,EAAE,oCAAoC,CAAC;IACjF,qEAAqE;IACrE,SAAgB,qCAAqC,EAAE,+CAA+C,CAAC;CACxG"}
@@ -0,0 +1,27 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ import { getOperationsOperations } from "./classic/operations/index.js";
4
+ import { getStandbyVirtualMachinePoolsOperations, } from "./classic/standbyVirtualMachinePools/index.js";
5
+ import { getStandbyVirtualMachinesOperations, } from "./classic/standbyVirtualMachines/index.js";
6
+ import { getStandbyVirtualMachinePoolRuntimeViewsOperations, } from "./classic/standbyVirtualMachinePoolRuntimeViews/index.js";
7
+ import { getStandbyContainerGroupPoolsOperations, } from "./classic/standbyContainerGroupPools/index.js";
8
+ import { getStandbyContainerGroupPoolRuntimeViewsOperations, } from "./classic/standbyContainerGroupPoolRuntimeViews/index.js";
9
+ import { createStandbyPoolManagement, } from "./api/index.js";
10
+ export class StandbyPoolManagementClient {
11
+ constructor(credential, subscriptionId, options = {}) {
12
+ var _a;
13
+ const prefixFromOptions = (_a = options === null || options === void 0 ? void 0 : options.userAgentOptions) === null || _a === void 0 ? void 0 : _a.userAgentPrefix;
14
+ const userAgentPrefix = prefixFromOptions
15
+ ? `${prefixFromOptions} azsdk-js-client`
16
+ : "azsdk-js-client";
17
+ this._client = createStandbyPoolManagement(credential, Object.assign(Object.assign({}, options), { userAgentOptions: { userAgentPrefix } }));
18
+ this.pipeline = this._client.pipeline;
19
+ this.operations = getOperationsOperations(this._client);
20
+ this.standbyVirtualMachinePools = getStandbyVirtualMachinePoolsOperations(this._client, subscriptionId);
21
+ this.standbyVirtualMachines = getStandbyVirtualMachinesOperations(this._client, subscriptionId);
22
+ this.standbyVirtualMachinePoolRuntimeViews = getStandbyVirtualMachinePoolRuntimeViewsOperations(this._client, subscriptionId);
23
+ this.standbyContainerGroupPools = getStandbyContainerGroupPoolsOperations(this._client, subscriptionId);
24
+ this.standbyContainerGroupPoolRuntimeViews = getStandbyContainerGroupPoolRuntimeViewsOperations(this._client, subscriptionId);
25
+ }
26
+ }
27
+ //# sourceMappingURL=standbyPoolManagementClient.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"standbyPoolManagementClient.js","sourceRoot":"","sources":["../../src/standbyPoolManagementClient.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAIlC,OAAO,EAAE,uBAAuB,EAAwB,MAAM,+BAA+B,CAAC;AAC9F,OAAO,EACL,uCAAuC,GAExC,MAAM,+CAA+C,CAAC;AACvD,OAAO,EACL,mCAAmC,GAEpC,MAAM,2CAA2C,CAAC;AACnD,OAAO,EACL,kDAAkD,GAEnD,MAAM,0DAA0D,CAAC;AAClE,OAAO,EACL,uCAAuC,GAExC,MAAM,+CAA+C,CAAC;AACvD,OAAO,EACL,kDAAkD,GAEnD,MAAM,0DAA0D,CAAC;AAClE,OAAO,EACL,2BAA2B,GAG5B,MAAM,gBAAgB,CAAC;AAIxB,MAAM,OAAO,2BAA2B;IAKtC,YACE,UAA2B,EAC3B,cAAsB,EACtB,UAAqD,EAAE;;QAEvD,MAAM,iBAAiB,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,gBAAgB,0CAAE,eAAe,CAAC;QACrE,MAAM,eAAe,GAAG,iBAAiB;YACvC,CAAC,CAAC,GAAG,iBAAiB,kBAAkB;YACxC,CAAC,CAAC,iBAAiB,CAAC;QACtB,IAAI,CAAC,OAAO,GAAG,2BAA2B,CAAC,UAAU,kCAChD,OAAO,KACV,gBAAgB,EAAE,EAAE,eAAe,EAAE,IACrC,CAAC;QACH,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC;QACtC,IAAI,CAAC,UAAU,GAAG,uBAAuB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxD,IAAI,CAAC,0BAA0B,GAAG,uCAAuC,CACvE,IAAI,CAAC,OAAO,EACZ,cAAc,CACf,CAAC;QACF,IAAI,CAAC,sBAAsB,GAAG,mCAAmC,CAAC,IAAI,CAAC,OAAO,EAAE,cAAc,CAAC,CAAC;QAChG,IAAI,CAAC,qCAAqC,GAAG,kDAAkD,CAC7F,IAAI,CAAC,OAAO,EACZ,cAAc,CACf,CAAC;QACF,IAAI,CAAC,0BAA0B,GAAG,uCAAuC,CACvE,IAAI,CAAC,OAAO,EACZ,cAAc,CACf,CAAC;QACF,IAAI,CAAC,qCAAqC,GAAG,kDAAkD,CAC7F,IAAI,CAAC,OAAO,EACZ,cAAc,CACf,CAAC;IACJ,CAAC;CAcF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { TokenCredential } from \"@azure/core-auth\";\nimport { Pipeline } from \"@azure/core-rest-pipeline\";\nimport { getOperationsOperations, OperationsOperations } from \"./classic/operations/index.js\";\nimport {\n getStandbyVirtualMachinePoolsOperations,\n StandbyVirtualMachinePoolsOperations,\n} from \"./classic/standbyVirtualMachinePools/index.js\";\nimport {\n getStandbyVirtualMachinesOperations,\n StandbyVirtualMachinesOperations,\n} from \"./classic/standbyVirtualMachines/index.js\";\nimport {\n getStandbyVirtualMachinePoolRuntimeViewsOperations,\n StandbyVirtualMachinePoolRuntimeViewsOperations,\n} from \"./classic/standbyVirtualMachinePoolRuntimeViews/index.js\";\nimport {\n getStandbyContainerGroupPoolsOperations,\n StandbyContainerGroupPoolsOperations,\n} from \"./classic/standbyContainerGroupPools/index.js\";\nimport {\n getStandbyContainerGroupPoolRuntimeViewsOperations,\n StandbyContainerGroupPoolRuntimeViewsOperations,\n} from \"./classic/standbyContainerGroupPoolRuntimeViews/index.js\";\nimport {\n createStandbyPoolManagement,\n StandbyPoolContext,\n StandbyPoolManagementClientOptionalParams,\n} from \"./api/index.js\";\n\nexport { StandbyPoolManagementClientOptionalParams } from \"./api/standbyPoolManagementContext.js\";\n\nexport class StandbyPoolManagementClient {\n private _client: StandbyPoolContext;\n /** The pipeline used by this client to make requests */\n public readonly pipeline: Pipeline;\n\n constructor(\n credential: TokenCredential,\n subscriptionId: string,\n options: StandbyPoolManagementClientOptionalParams = {},\n ) {\n const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;\n const userAgentPrefix = prefixFromOptions\n ? `${prefixFromOptions} azsdk-js-client`\n : \"azsdk-js-client\";\n this._client = createStandbyPoolManagement(credential, {\n ...options,\n userAgentOptions: { userAgentPrefix },\n });\n this.pipeline = this._client.pipeline;\n this.operations = getOperationsOperations(this._client);\n this.standbyVirtualMachinePools = getStandbyVirtualMachinePoolsOperations(\n this._client,\n subscriptionId,\n );\n this.standbyVirtualMachines = getStandbyVirtualMachinesOperations(this._client, subscriptionId);\n this.standbyVirtualMachinePoolRuntimeViews = getStandbyVirtualMachinePoolRuntimeViewsOperations(\n this._client,\n subscriptionId,\n );\n this.standbyContainerGroupPools = getStandbyContainerGroupPoolsOperations(\n this._client,\n subscriptionId,\n );\n this.standbyContainerGroupPoolRuntimeViews = getStandbyContainerGroupPoolRuntimeViewsOperations(\n this._client,\n subscriptionId,\n );\n }\n\n /** The operation groups for Operations */\n public readonly operations: OperationsOperations;\n /** The operation groups for StandbyVirtualMachinePools */\n public readonly standbyVirtualMachinePools: StandbyVirtualMachinePoolsOperations;\n /** The operation groups for StandbyVirtualMachines */\n public readonly standbyVirtualMachines: StandbyVirtualMachinesOperations;\n /** The operation groups for StandbyVirtualMachinePoolRuntimeViews */\n public readonly standbyVirtualMachinePoolRuntimeViews: StandbyVirtualMachinePoolRuntimeViewsOperations;\n /** The operation groups for StandbyContainerGroupPools */\n public readonly standbyContainerGroupPools: StandbyContainerGroupPoolsOperations;\n /** The operation groups for StandbyContainerGroupPoolRuntimeViews */\n public readonly standbyContainerGroupPoolRuntimeViews: StandbyContainerGroupPoolRuntimeViewsOperations;\n}\n"]}
@@ -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,139 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
4
+ // Copyright (c) Microsoft Corporation.
5
+ // Licensed under the MIT License.
6
+ import { createRestError } from "@azure-rest/core-client";
7
+ import { RestError } from "@azure/core-rest-pipeline";
8
+ /**
9
+ * Helper to paginate results in a generic way and return a PagedAsyncIterableIterator
10
+ */
11
+ export function buildPagedAsyncIterator(client, getInitialResponse, processResponseBody, expectedStatuses, options = {}) {
12
+ var _a, _b;
13
+ const itemName = (_a = options.itemName) !== null && _a !== void 0 ? _a : "value";
14
+ const nextLinkName = (_b = options.nextLinkName) !== null && _b !== void 0 ? _b : "nextLink";
15
+ const pagedResult = {
16
+ getPage: async (pageLink) => {
17
+ const result = pageLink === undefined
18
+ ? await getInitialResponse()
19
+ : await client.pathUnchecked(pageLink).get();
20
+ checkPagingRequest(result, expectedStatuses);
21
+ const results = await processResponseBody(result);
22
+ const nextLink = getNextLink(results, nextLinkName);
23
+ const values = getElements(results, itemName);
24
+ return {
25
+ page: values,
26
+ nextPageLink: nextLink,
27
+ };
28
+ },
29
+ byPage: (settings) => {
30
+ const { continuationToken } = settings !== null && settings !== void 0 ? settings : {};
31
+ return getPageAsyncIterator(pagedResult, {
32
+ pageLink: continuationToken,
33
+ });
34
+ },
35
+ };
36
+ return getPagedAsyncIterator(pagedResult);
37
+ }
38
+ /**
39
+ * returns an async iterator that iterates over results. It also has a `byPage`
40
+ * method that returns pages of items at once.
41
+ *
42
+ * @param pagedResult - an object that specifies how to get pages.
43
+ * @returns a paged async iterator that iterates over results.
44
+ */
45
+ function getPagedAsyncIterator(pagedResult) {
46
+ var _a;
47
+ const iter = getItemAsyncIterator(pagedResult);
48
+ return {
49
+ next() {
50
+ return iter.next();
51
+ },
52
+ [Symbol.asyncIterator]() {
53
+ return this;
54
+ },
55
+ byPage: (_a = pagedResult === null || pagedResult === void 0 ? void 0 : pagedResult.byPage) !== null && _a !== void 0 ? _a : ((settings) => {
56
+ const { continuationToken } = settings !== null && settings !== void 0 ? settings : {};
57
+ return getPageAsyncIterator(pagedResult, {
58
+ pageLink: continuationToken,
59
+ });
60
+ }),
61
+ };
62
+ }
63
+ function getItemAsyncIterator(pagedResult) {
64
+ return __asyncGenerator(this, arguments, function* getItemAsyncIterator_1() {
65
+ var _a, e_1, _b, _c;
66
+ const pages = getPageAsyncIterator(pagedResult);
67
+ try {
68
+ for (var _d = true, pages_1 = __asyncValues(pages), pages_1_1; pages_1_1 = yield __await(pages_1.next()), _a = pages_1_1.done, !_a; _d = true) {
69
+ _c = pages_1_1.value;
70
+ _d = false;
71
+ const page = _c;
72
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
73
+ }
74
+ }
75
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
76
+ finally {
77
+ try {
78
+ if (!_d && !_a && (_b = pages_1.return)) yield __await(_b.call(pages_1));
79
+ }
80
+ finally { if (e_1) throw e_1.error; }
81
+ }
82
+ });
83
+ }
84
+ function getPageAsyncIterator(pagedResult_1) {
85
+ return __asyncGenerator(this, arguments, function* getPageAsyncIterator_1(pagedResult, options = {}) {
86
+ const { pageLink } = options;
87
+ let response = yield __await(pagedResult.getPage(pageLink !== null && pageLink !== void 0 ? pageLink : pagedResult.firstPageLink));
88
+ if (!response) {
89
+ return yield __await(void 0);
90
+ }
91
+ let result = response.page;
92
+ result.continuationToken = response.nextPageLink;
93
+ yield yield __await(result);
94
+ while (response.nextPageLink) {
95
+ response = yield __await(pagedResult.getPage(response.nextPageLink));
96
+ if (!response) {
97
+ return yield __await(void 0);
98
+ }
99
+ result = response.page;
100
+ result.continuationToken = response.nextPageLink;
101
+ yield yield __await(result);
102
+ }
103
+ });
104
+ }
105
+ /**
106
+ * Gets for the value of nextLink in the body
107
+ */
108
+ function getNextLink(body, nextLinkName) {
109
+ if (!nextLinkName) {
110
+ return undefined;
111
+ }
112
+ const nextLink = body[nextLinkName];
113
+ if (typeof nextLink !== "string" && typeof nextLink !== "undefined" && nextLink !== null) {
114
+ throw new RestError(`Body Property ${nextLinkName} should be a string or undefined or null but got ${typeof nextLink}`);
115
+ }
116
+ if (nextLink === null) {
117
+ return undefined;
118
+ }
119
+ return nextLink;
120
+ }
121
+ /**
122
+ * Gets the elements of the current request in the body.
123
+ */
124
+ function getElements(body, itemName) {
125
+ const value = body[itemName];
126
+ if (!Array.isArray(value)) {
127
+ throw new RestError(`Couldn't paginate response\n Body doesn't contain an array property with name: ${itemName}`);
128
+ }
129
+ return value !== null && value !== void 0 ? value : [];
130
+ }
131
+ /**
132
+ * Checks if a request failed
133
+ */
134
+ function checkPagingRequest(response, expectedStatuses) {
135
+ if (!expectedStatuses.includes(response.status)) {
136
+ throw createRestError(`Pagination failed with unexpected statusCode ${response.status}`, response);
137
+ }
138
+ }
139
+ //# sourceMappingURL=pagingHelpers.js.map