@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":"pagingHelpers.js","sourceRoot":"","sources":["../../../src/static-helpers/pagingHelpers.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;;AAElC,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAU,eAAe,EAAyB,MAAM,yBAAyB,CAAC;AACzF,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AA+EtD;;GAEG;AACH,MAAM,UAAU,uBAAuB,CAMrC,MAAc,EACd,kBAAgD,EAChD,mBAAgE,EAChE,gBAA0B,EAC1B,UAA0C,EAAE;;IAE5C,MAAM,QAAQ,GAAG,MAAA,OAAO,CAAC,QAAQ,mCAAI,OAAO,CAAC;IAC7C,MAAM,YAAY,GAAG,MAAA,OAAO,CAAC,YAAY,mCAAI,UAAU,CAAC;IACxD,MAAM,WAAW,GAAgD;QAC/D,OAAO,EAAE,KAAK,EAAE,QAAiB,EAAE,EAAE;YACnC,MAAM,MAAM,GACV,QAAQ,KAAK,SAAS;gBACpB,CAAC,CAAC,MAAM,kBAAkB,EAAE;gBAC5B,CAAC,CAAC,MAAM,MAAM,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC,GAAG,EAAE,CAAC;YACjD,kBAAkB,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;YAC7C,MAAM,OAAO,GAAG,MAAM,mBAAmB,CAAC,MAAmB,CAAC,CAAC;YAC/D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AW,IAAI,QAAQ,KAAK,IAAI,EAAE,CAAC;QACzF,MAAM,IAAI,SAAS,CACjB,iBAAiB,YAAY,oDAAoD,OAAO,QAAQ,EAAE,CACnG,CAAC;IACJ,CAAC;IAED,IAAI,QAAQ,KAAK,IAAI,EAAE,CAAC;QACtB,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED;;GAEG;AACH,SAAS,WAAW,CAAc,IAAa,EAAE,QAAgB;IAC/D,MAAM,KAAK,GAAI,IAAgC,CAAC,QAAQ,CAAQ,CAAC;IACjE,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QAC1B,MAAM,IAAI,SAAS,CACjB,kFAAkF,QAAQ,EAAE,CAC7F,CAAC;IACJ,CAAC;IAED,OAAO,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,EAAE,CAAC;AACrB,CAAC;AAED;;GAEG;AACH,SAAS,kBAAkB,CAAC,QAA+B,EAAE,gBAA0B;IACrF,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;QAChD,MAAM,eAAe,CACnB,gDAAgD,QAAQ,CAAC,MAAM,EAAE,EACjE,QAAQ,CACT,CAAC;IACJ,CAAC;AACH,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { Client, createRestError, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { RestError } from \"@azure/core-rest-pipeline\";\n\n/**\n * Options for the byPage method\n */\nexport interface PageSettings {\n /**\n * A reference to a specific page to start iterating from.\n */\n continuationToken?: string;\n}\n\n/**\n * An interface that describes a page of results.\n */\nexport type ContinuablePage<TElement, TPage = TElement[]> = TPage & {\n /**\n * The token that keeps track of where to continue the iterator\n */\n continuationToken?: string;\n};\n\n/**\n * An interface that allows async iterable iteration both to completion and by page.\n */\nexport interface PagedAsyncIterableIterator<\n TElement,\n TPage = TElement[],\n TPageSettings extends PageSettings = PageSettings,\n> {\n /**\n * The next method, part of the iteration protocol\n */\n next(): Promise<IteratorResult<TElement>>;\n /**\n * The connection to the async iterator, part of the iteration protocol\n */\n [Symbol.asyncIterator](): PagedAsyncIterableIterator<TElement, TPage, TPageSettings>;\n /**\n * Return an AsyncIterableIterator that works a page at a time\n */\n byPage: (settings?: TPageSettings) => AsyncIterableIterator<ContinuablePage<TElement, TPage>>;\n}\n\n/**\n * An interface that describes how to communicate with the service.\n */\nexport interface PagedResult<\n TElement,\n TPage = TElement[],\n TPageSettings extends PageSettings = PageSettings,\n> {\n /**\n * Link to the first page of results.\n */\n firstPageLink?: string;\n /**\n * A method that returns a page of results.\n */\n getPage: (pageLink?: string) => Promise<{ page: TPage; nextPageLink?: string } | undefined>;\n /**\n * a function to implement the `byPage` method on the paged async iterator.\n */\n byPage?: (settings?: TPageSettings) => AsyncIterableIterator<ContinuablePage<TElement, TPage>>;\n\n /**\n * A function to extract elements from a page.\n */\n toElements?: (page: TPage) => TElement[];\n}\n\n/**\n * Options for the paging helper\n */\nexport interface BuildPagedAsyncIteratorOptions {\n itemName?: string;\n nextLinkName?: string;\n}\n\n/**\n * Helper to paginate results in a generic way and return a PagedAsyncIterableIterator\n */\nexport function buildPagedAsyncIterator<\n TElement,\n TPage = TElement[],\n TPageSettings extends PageSettings = PageSettings,\n TResponse extends PathUncheckedResponse = PathUncheckedResponse,\n>(\n client: Client,\n getInitialResponse: () => PromiseLike<TResponse>,\n processResponseBody: (result: TResponse) => PromiseLike<unknown>,\n expectedStatuses: string[],\n options: BuildPagedAsyncIteratorOptions = {},\n): PagedAsyncIterableIterator<TElement, TPage, TPageSettings> {\n const itemName = options.itemName ?? \"value\";\n const nextLinkName = options.nextLinkName ?? \"nextLink\";\n const pagedResult: PagedResult<TElement, TPage, TPageSettings> = {\n getPage: async (pageLink?: string) => {\n const result =\n pageLink === undefined\n ? await getInitialResponse()\n : await client.pathUnchecked(pageLink).get();\n checkPagingRequest(result, expectedStatuses);\n const results = await processResponseBody(result as TResponse);\n const nextLink = getNextLink(results, nextLinkName);\n const values = getElements<TElement>(results, itemName) as TPage;\n return {\n page: values,\n nextPageLink: nextLink,\n };\n },\n byPage: (settings?: TPageSettings) => {\n const { continuationToken } = settings ?? {};\n return getPageAsyncIterator(pagedResult, {\n pageLink: continuationToken,\n });\n },\n };\n return getPagedAsyncIterator(pagedResult);\n}\n\n/**\n * returns an async iterator that iterates over results. It also has a `byPage`\n * method that returns pages of items at once.\n *\n * @param pagedResult - an object that specifies how to get pages.\n * @returns a paged async iterator that iterates over results.\n */\n\nfunction getPagedAsyncIterator<\n TElement,\n TPage = TElement[],\n TPageSettings extends PageSettings = PageSettings,\n>(\n pagedResult: PagedResult<TElement, TPage, TPageSettings>,\n): PagedAsyncIterableIterator<TElement, TPage, TPageSettings> {\n const iter = getItemAsyncIterator<TElement, TPage, TPageSettings>(pagedResult);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage:\n pagedResult?.byPage ??\n ((settings?: TPageSettings) => {\n const { continuationToken } = settings ?? {};\n return getPageAsyncIterator(pagedResult, {\n pageLink: continuationToken,\n });\n }),\n };\n}\n\nasync function* getItemAsyncIterator<TElement, TPage, TPageSettings extends PageSettings>(\n pagedResult: PagedResult<TElement, TPage, TPageSettings>,\n): AsyncIterableIterator<TElement> {\n const pages = getPageAsyncIterator(pagedResult);\n for await (const page of pages) {\n yield* page as unknown as TElement[];\n }\n}\n\nasync function* getPageAsyncIterator<TElement, TPage, TPageSettings extends PageSettings>(\n pagedResult: PagedResult<TElement, TPage, TPageSettings>,\n options: {\n pageLink?: string;\n } = {},\n): AsyncIterableIterator<ContinuablePage<TElement, TPage>> {\n const { pageLink } = options;\n let response = await pagedResult.getPage(pageLink ?? pagedResult.firstPageLink);\n if (!response) {\n return;\n }\n let result = response.page as ContinuablePage<TElement, TPage>;\n result.continuationToken = response.nextPageLink;\n yield result;\n while (response.nextPageLink) {\n response = await pagedResult.getPage(response.nextPageLink);\n if (!response) {\n return;\n }\n result = response.page as ContinuablePage<TElement, TPage>;\n result.continuationToken = response.nextPageLink;\n yield result;\n }\n}\n\n/**\n * Gets for the value of nextLink in the body\n */\nfunction getNextLink(body: unknown, nextLinkName?: string): string | undefined {\n if (!nextLinkName) {\n return undefined;\n }\n\n const nextLink = (body as Record<string, unknown>)[nextLinkName];\n\n if (typeof nextLink !== \"string\" && typeof nextLink !== \"undefined\" && nextLink !== null) {\n throw new RestError(\n `Body Property ${nextLinkName} should be a string or undefined or null but got ${typeof nextLink}`,\n );\n }\n\n if (nextLink === null) {\n return undefined;\n }\n\n return nextLink;\n}\n\n/**\n * Gets the elements of the current request in the body.\n */\nfunction getElements<T = unknown>(body: unknown, itemName: string): T[] {\n const value = (body as Record<string, unknown>)[itemName] as T[];\n if (!Array.isArray(value)) {\n throw new RestError(\n `Couldn't paginate response\\n Body doesn't contain an array property with name: ${itemName}`,\n );\n }\n\n return value ?? [];\n}\n\n/**\n * Checks if a request failed\n */\nfunction checkPagingRequest(response: PathUncheckedResponse, expectedStatuses: string[]): void {\n if (!expectedStatuses.includes(response.status)) {\n throw createRestError(\n `Pagination failed with unexpected statusCode ${response.status}`,\n response,\n );\n }\n}\n"]}
@@ -0,0 +1,30 @@
1
+ import { PollerLike, OperationState, ResourceLocationConfig } from "@azure/core-lro";
2
+ import { Client, PathUncheckedResponse } from "@azure-rest/core-client";
3
+ import { AbortSignalLike } from "@azure/abort-controller";
4
+ export interface GetLongRunningPollerOptions<TResponse> {
5
+ /** Delay to wait until next poll, in milliseconds. */
6
+ updateIntervalInMs?: number;
7
+ /**
8
+ * The signal which can be used to abort requests.
9
+ */
10
+ abortSignal?: AbortSignalLike;
11
+ /**
12
+ * The potential location of the result of the LRO if specified by the LRO extension in the swagger.
13
+ */
14
+ resourceLocationConfig?: ResourceLocationConfig;
15
+ /**
16
+ * The original url of the LRO
17
+ * Should not be null when restoreFrom is set
18
+ */
19
+ initialRequestUrl?: string;
20
+ /**
21
+ * A serialized poller which can be used to resume an existing paused Long-Running-Operation.
22
+ */
23
+ restoreFrom?: string;
24
+ /**
25
+ * The function to get the initial response
26
+ */
27
+ getInitialResponse?: () => PromiseLike<TResponse>;
28
+ }
29
+ export declare function getLongRunningPoller<TResponse extends PathUncheckedResponse, TResult = void>(client: Client, processResponseBody: (result: TResponse) => Promise<TResult>, expectedStatuses: string[], options: GetLongRunningPollerOptions<TResponse>): PollerLike<OperationState<TResult>, TResult>;
30
+ //# sourceMappingURL=pollingHelpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pollingHelpers.d.ts","sourceRoot":"","sources":["../../../src/static-helpers/pollingHelpers.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,UAAU,EACV,cAAc,EACd,sBAAsB,EAIvB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,MAAM,EAAE,qBAAqB,EAAmB,MAAM,yBAAyB,CAAC;AACzF,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D,MAAM,WAAW,2BAA2B,CAAC,SAAS;IACpD,sDAAsD;IACtD,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,WAAW,CAAC,EAAE,eAAe,CAAC;IAC9B;;OAEG;IACH,sBAAsB,CAAC,EAAE,sBAAsB,CAAC;IAChD;;;OAGG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,WAAW,CAAC,SAAS,CAAC,CAAC;CACnD;AACD,wBAAgB,oBAAoB,CAAC,SAAS,SAAS,qBAAqB,EAAE,OAAO,GAAG,IAAI,EAC1F,MAAM,EAAE,MAAM,EACd,mBAAmB,EAAE,CAAC,MAAM,EAAE,SAAS,KAAK,OAAO,CAAC,OAAO,CAAC,EAC5D,gBAAgB,EAAE,MAAM,EAAE,EAC1B,OAAO,EAAE,2BAA2B,CAAC,SAAS,CAAC,GAC9C,UAAU,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,CAyD9C"}
@@ -0,0 +1,78 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ // Copyright (c) Microsoft Corporation.
4
+ // Licensed under the MIT License.
5
+ import { createHttpPoller, } from "@azure/core-lro";
6
+ import { createRestError } from "@azure-rest/core-client";
7
+ export function getLongRunningPoller(client, processResponseBody, expectedStatuses, options) {
8
+ const { restoreFrom, getInitialResponse } = options;
9
+ if (!restoreFrom && !getInitialResponse) {
10
+ throw new Error("Either restoreFrom or getInitialResponse must be specified");
11
+ }
12
+ let initialResponse = undefined;
13
+ const pollAbortController = new AbortController();
14
+ const poller = {
15
+ sendInitialRequest: async () => {
16
+ if (!getInitialResponse) {
17
+ throw new Error("getInitialResponse is required when initializing a new poller");
18
+ }
19
+ initialResponse = await getInitialResponse();
20
+ return getLroResponse(initialResponse, expectedStatuses);
21
+ },
22
+ sendPollRequest: async (path, pollOptions) => {
23
+ var _a, _b, _c, _d, _e, _f;
24
+ // The poll request would both listen to the user provided abort signal and the poller's own abort signal
25
+ function abortListener() {
26
+ pollAbortController.abort();
27
+ }
28
+ const abortSignal = pollAbortController.signal;
29
+ if ((_a = options.abortSignal) === null || _a === void 0 ? void 0 : _a.aborted) {
30
+ pollAbortController.abort();
31
+ }
32
+ else if ((_b = pollOptions === null || pollOptions === void 0 ? void 0 : pollOptions.abortSignal) === null || _b === void 0 ? void 0 : _b.aborted) {
33
+ pollAbortController.abort();
34
+ }
35
+ else if (!abortSignal.aborted) {
36
+ (_c = options.abortSignal) === null || _c === void 0 ? void 0 : _c.addEventListener("abort", abortListener, {
37
+ once: true,
38
+ });
39
+ (_d = pollOptions === null || pollOptions === void 0 ? void 0 : pollOptions.abortSignal) === null || _d === void 0 ? void 0 : _d.addEventListener("abort", abortListener, {
40
+ once: true,
41
+ });
42
+ }
43
+ let response;
44
+ try {
45
+ response = await client.pathUnchecked(path).get({ abortSignal });
46
+ }
47
+ finally {
48
+ (_e = options.abortSignal) === null || _e === void 0 ? void 0 : _e.removeEventListener("abort", abortListener);
49
+ (_f = pollOptions === null || pollOptions === void 0 ? void 0 : pollOptions.abortSignal) === null || _f === void 0 ? void 0 : _f.removeEventListener("abort", abortListener);
50
+ }
51
+ return getLroResponse(response, expectedStatuses);
52
+ },
53
+ };
54
+ return createHttpPoller(poller, {
55
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
56
+ resourceLocationConfig: options === null || options === void 0 ? void 0 : options.resourceLocationConfig,
57
+ restoreFrom: options === null || options === void 0 ? void 0 : options.restoreFrom,
58
+ processResult: (result) => {
59
+ return processResponseBody(result);
60
+ },
61
+ });
62
+ }
63
+ /**
64
+ * Converts a Rest Client response to a response that the LRO implementation understands
65
+ * @param response - a rest client http response
66
+ * @param deserializeFn - deserialize function to convert Rest response to modular output
67
+ * @returns - An LRO response that the LRO implementation understands
68
+ */
69
+ function getLroResponse(response, expectedStatuses) {
70
+ if (!expectedStatuses.includes(response.status)) {
71
+ throw createRestError(response);
72
+ }
73
+ return {
74
+ flatResponse: response,
75
+ rawResponse: Object.assign(Object.assign({}, response), { statusCode: Number.parseInt(response.status), body: response.body }),
76
+ };
77
+ }
78
+ //# sourceMappingURL=pollingHelpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pollingHelpers.js","sourceRoot":"","sources":["../../../src/static-helpers/pollingHelpers.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAKL,gBAAgB,GAEjB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAiC,eAAe,EAAE,MAAM,yBAAyB,CAAC;AA4BzF,MAAM,UAAU,oBAAoB,CAClC,MAAc,EACd,mBAA4D,EAC5D,gB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,QAAQ,CAAC,MAAM,CAAC,EAC5C,IAAI,EAAE,QAAQ,CAAC,IAAI,GACpB;KACF,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport {\n PollerLike,\n OperationState,\n ResourceLocationConfig,\n RunningOperation,\n createHttpPoller,\n OperationResponse,\n} from \"@azure/core-lro\";\n\nimport { Client, PathUncheckedResponse, createRestError } from \"@azure-rest/core-client\";\nimport { AbortSignalLike } from \"@azure/abort-controller\";\n\nexport interface GetLongRunningPollerOptions<TResponse> {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /**\n * The signal which can be used to abort requests.\n */\n abortSignal?: AbortSignalLike;\n /**\n * The potential location of the result of the LRO if specified by the LRO extension in the swagger.\n */\n resourceLocationConfig?: ResourceLocationConfig;\n /**\n * The original url of the LRO\n * Should not be null when restoreFrom is set\n */\n initialRequestUrl?: string;\n /**\n * A serialized poller which can be used to resume an existing paused Long-Running-Operation.\n */\n restoreFrom?: string;\n /**\n * The function to get the initial response\n */\n getInitialResponse?: () => PromiseLike<TResponse>;\n}\nexport function getLongRunningPoller<TResponse extends PathUncheckedResponse, TResult = void>(\n client: Client,\n processResponseBody: (result: TResponse) => Promise<TResult>,\n expectedStatuses: string[],\n options: GetLongRunningPollerOptions<TResponse>,\n): PollerLike<OperationState<TResult>, TResult> {\n const { restoreFrom, getInitialResponse } = options;\n if (!restoreFrom && !getInitialResponse) {\n throw new Error(\"Either restoreFrom or getInitialResponse must be specified\");\n }\n let initialResponse: TResponse | undefined = undefined;\n const pollAbortController = new AbortController();\n const poller: RunningOperation<TResponse> = {\n sendInitialRequest: async () => {\n if (!getInitialResponse) {\n throw new Error(\"getInitialResponse is required when initializing a new poller\");\n }\n initialResponse = await getInitialResponse();\n return getLroResponse(initialResponse, expectedStatuses);\n },\n sendPollRequest: async (\n path: string,\n pollOptions?: {\n abortSignal?: AbortSignalLike;\n },\n ) => {\n // The poll request would both listen to the user provided abort signal and the poller's own abort signal\n function abortListener(): void {\n pollAbortController.abort();\n }\n const abortSignal = pollAbortController.signal;\n if (options.abortSignal?.aborted) {\n pollAbortController.abort();\n } else if (pollOptions?.abortSignal?.aborted) {\n pollAbortController.abort();\n } else if (!abortSignal.aborted) {\n options.abortSignal?.addEventListener(\"abort\", abortListener, {\n once: true,\n });\n pollOptions?.abortSignal?.addEventListener(\"abort\", abortListener, {\n once: true,\n });\n }\n let response;\n try {\n response = await client.pathUnchecked(path).get({ abortSignal });\n } finally {\n options.abortSignal?.removeEventListener(\"abort\", abortListener);\n pollOptions?.abortSignal?.removeEventListener(\"abort\", abortListener);\n }\n\n return getLroResponse(response as TResponse, expectedStatuses);\n },\n };\n return createHttpPoller(poller, {\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: options?.resourceLocationConfig,\n restoreFrom: options?.restoreFrom,\n processResult: (result: unknown) => {\n return processResponseBody(result as TResponse);\n },\n });\n}\n/**\n * Converts a Rest Client response to a response that the LRO implementation understands\n * @param response - a rest client http response\n * @param deserializeFn - deserialize function to convert Rest response to modular output\n * @returns - An LRO response that the LRO implementation understands\n */\nfunction getLroResponse<TResponse extends PathUncheckedResponse>(\n response: TResponse,\n expectedStatuses: string[],\n): OperationResponse<TResponse> {\n if (!expectedStatuses.includes(response.status)) {\n throw createRestError(response);\n }\n\n return {\n flatResponse: response,\n rawResponse: {\n ...response,\n statusCode: Number.parseInt(response.status),\n body: response.body,\n },\n };\n}\n"]}
@@ -0,0 +1,8 @@
1
+ export { createStandbyPoolManagement, StandbyPoolContext, StandbyPoolManagementClientOptionalParams, } from "./standbyPoolManagementContext.js";
2
+ export { operationsList } from "./operations/index.js";
3
+ export { standbyContainerGroupPoolRuntimeViewsGet, standbyContainerGroupPoolRuntimeViewsListByStandbyPool, } from "./standbyContainerGroupPoolRuntimeViews/index.js";
4
+ export { standbyContainerGroupPoolsGet, standbyContainerGroupPoolsCreateOrUpdate, standbyContainerGroupPoolsDelete, standbyContainerGroupPoolsUpdate, standbyContainerGroupPoolsListByResourceGroup, standbyContainerGroupPoolsListBySubscription, } from "./standbyContainerGroupPools/index.js";
5
+ export { standbyVirtualMachinePoolRuntimeViewsGet, standbyVirtualMachinePoolRuntimeViewsListByStandbyPool, } from "./standbyVirtualMachinePoolRuntimeViews/index.js";
6
+ export { standbyVirtualMachinePoolsGet, standbyVirtualMachinePoolsCreateOrUpdate, standbyVirtualMachinePoolsDelete, standbyVirtualMachinePoolsUpdate, standbyVirtualMachinePoolsListByResourceGroup, standbyVirtualMachinePoolsListBySubscription, } from "./standbyVirtualMachinePools/index.js";
7
+ export { standbyVirtualMachinesGet, standbyVirtualMachinesListByStandbyVirtualMachinePoolResource, } from "./standbyVirtualMachines/index.js";
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,2BAA2B,EAC3B,kBAAkB,EAClB,yCAAyC,GAC1C,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EACL,wCAAwC,EACxC,sDAAsD,GACvD,MAAM,kDAAkD,CAAC;AAC1D,OAAO,EACL,6BAA6B,EAC7B,wCAAwC,EACxC,gCAAgC,EAChC,gCAAgC,EAChC,6CAA6C,EAC7C,4CAA4C,GAC7C,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,wCAAwC,EACxC,sDAAsD,GACvD,MAAM,kDAAkD,CAAC;AAC1D,OAAO,EACL,6BAA6B,EAC7B,wCAAwC,EACxC,gCAAgC,EAChC,gCAAgC,EAChC,6CAA6C,EAC7C,4CAA4C,GAC7C,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,yBAAyB,EACzB,6DAA6D,GAC9D,MAAM,mCAAmC,CAAC"}
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ // Copyright (c) Microsoft Corporation.
3
+ // Licensed under the MIT License.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.standbyVirtualMachinesListByStandbyVirtualMachinePoolResource = exports.standbyVirtualMachinesGet = exports.standbyVirtualMachinePoolsListBySubscription = exports.standbyVirtualMachinePoolsListByResourceGroup = exports.standbyVirtualMachinePoolsUpdate = exports.standbyVirtualMachinePoolsDelete = exports.standbyVirtualMachinePoolsCreateOrUpdate = exports.standbyVirtualMachinePoolsGet = exports.standbyVirtualMachinePoolRuntimeViewsListByStandbyPool = exports.standbyVirtualMachinePoolRuntimeViewsGet = exports.standbyContainerGroupPoolsListBySubscription = exports.standbyContainerGroupPoolsListByResourceGroup = exports.standbyContainerGroupPoolsUpdate = exports.standbyContainerGroupPoolsDelete = exports.standbyContainerGroupPoolsCreateOrUpdate = exports.standbyContainerGroupPoolsGet = exports.standbyContainerGroupPoolRuntimeViewsListByStandbyPool = exports.standbyContainerGroupPoolRuntimeViewsGet = exports.operationsList = exports.createStandbyPoolManagement = void 0;
6
+ var standbyPoolManagementContext_js_1 = require("./standbyPoolManagementContext.js");
7
+ Object.defineProperty(exports, "createStandbyPoolManagement", { enumerable: true, get: function () { return standbyPoolManagementContext_js_1.createStandbyPoolManagement; } });
8
+ var index_js_1 = require("./operations/index.js");
9
+ Object.defineProperty(exports, "operationsList", { enumerable: true, get: function () { return index_js_1.operationsList; } });
10
+ var index_js_2 = require("./standbyContainerGroupPoolRuntimeViews/index.js");
11
+ Object.defineProperty(exports, "standbyContainerGroupPoolRuntimeViewsGet", { enumerable: true, get: function () { return index_js_2.standbyContainerGroupPoolRuntimeViewsGet; } });
12
+ Object.defineProperty(exports, "standbyContainerGroupPoolRuntimeViewsListByStandbyPool", { enumerable: true, get: function () { return index_js_2.standbyContainerGroupPoolRuntimeViewsListByStandbyPool; } });
13
+ var index_js_3 = require("./standbyContainerGroupPools/index.js");
14
+ Object.defineProperty(exports, "standbyContainerGroupPoolsGet", { enumerable: true, get: function () { return index_js_3.standbyContainerGroupPoolsGet; } });
15
+ Object.defineProperty(exports, "standbyContainerGroupPoolsCreateOrUpdate", { enumerable: true, get: function () { return index_js_3.standbyContainerGroupPoolsCreateOrUpdate; } });
16
+ Object.defineProperty(exports, "standbyContainerGroupPoolsDelete", { enumerable: true, get: function () { return index_js_3.standbyContainerGroupPoolsDelete; } });
17
+ Object.defineProperty(exports, "standbyContainerGroupPoolsUpdate", { enumerable: true, get: function () { return index_js_3.standbyContainerGroupPoolsUpdate; } });
18
+ Object.defineProperty(exports, "standbyContainerGroupPoolsListByResourceGroup", { enumerable: true, get: function () { return index_js_3.standbyContainerGroupPoolsListByResourceGroup; } });
19
+ Object.defineProperty(exports, "standbyContainerGroupPoolsListBySubscription", { enumerable: true, get: function () { return index_js_3.standbyContainerGroupPoolsListBySubscription; } });
20
+ var index_js_4 = require("./standbyVirtualMachinePoolRuntimeViews/index.js");
21
+ Object.defineProperty(exports, "standbyVirtualMachinePoolRuntimeViewsGet", { enumerable: true, get: function () { return index_js_4.standbyVirtualMachinePoolRuntimeViewsGet; } });
22
+ Object.defineProperty(exports, "standbyVirtualMachinePoolRuntimeViewsListByStandbyPool", { enumerable: true, get: function () { return index_js_4.standbyVirtualMachinePoolRuntimeViewsListByStandbyPool; } });
23
+ var index_js_5 = require("./standbyVirtualMachinePools/index.js");
24
+ Object.defineProperty(exports, "standbyVirtualMachinePoolsGet", { enumerable: true, get: function () { return index_js_5.standbyVirtualMachinePoolsGet; } });
25
+ Object.defineProperty(exports, "standbyVirtualMachinePoolsCreateOrUpdate", { enumerable: true, get: function () { return index_js_5.standbyVirtualMachinePoolsCreateOrUpdate; } });
26
+ Object.defineProperty(exports, "standbyVirtualMachinePoolsDelete", { enumerable: true, get: function () { return index_js_5.standbyVirtualMachinePoolsDelete; } });
27
+ Object.defineProperty(exports, "standbyVirtualMachinePoolsUpdate", { enumerable: true, get: function () { return index_js_5.standbyVirtualMachinePoolsUpdate; } });
28
+ Object.defineProperty(exports, "standbyVirtualMachinePoolsListByResourceGroup", { enumerable: true, get: function () { return index_js_5.standbyVirtualMachinePoolsListByResourceGroup; } });
29
+ Object.defineProperty(exports, "standbyVirtualMachinePoolsListBySubscription", { enumerable: true, get: function () { return index_js_5.standbyVirtualMachinePoolsListBySubscription; } });
30
+ var index_js_6 = require("./standbyVirtualMachines/index.js");
31
+ Object.defineProperty(exports, "standbyVirtualMachinesGet", { enumerable: true, get: function () { return index_js_6.standbyVirtualMachinesGet; } });
32
+ Object.defineProperty(exports, "standbyVirtualMachinesListByStandbyVirtualMachinePoolResource", { enumerable: true, get: function () { return index_js_6.standbyVirtualMachinesListByStandbyVirtualMachinePoolResource; } });
33
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,qFAI2C;AAHzC,8IAAA,2BAA2B,OAAA;AAI7B,kDAAuD;AAA9C,0GAAA,cAAc,OAAA;AACvB,6EAG0D;AAFxD,oIAAA,wCAAwC,OAAA;AACxC,kJAAA,sDAAsD,OAAA;AAExD,kEAO+C;AAN7C,yHAAA,6BAA6B,OAAA;AAC7B,oIAAA,wCAAwC,OAAA;AACxC,4HAAA,gCAAgC,OAAA;AAChC,4HAAA,gCAAgC,OAAA;AAChC,yIAAA,6CAA6C,OAAA;AAC7C,wIAAA,4CAA4C,OAAA;AAE9C,6EAG0D;AAFxD,oIAAA,wCAAwC,OAAA;AACxC,kJAAA,sDAAsD,OAAA;AAExD,kEAO+C;AAN7C,yHAAA,6BAA6B,OAAA;AAC7B,oIAAA,wCAAwC,OAAA;AACxC,4HAAA,gCAAgC,OAAA;AAChC,4HAAA,gCAAgC,OAAA;AAChC,yIAAA,6CAA6C,OAAA;AAC7C,wIAAA,4CAA4C,OAAA;AAE9C,8DAG2C;AAFzC,qHAAA,yBAAyB,OAAA;AACzB,yJAAA,6DAA6D,OAAA","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport {\n createStandbyPoolManagement,\n StandbyPoolContext,\n StandbyPoolManagementClientOptionalParams,\n} from \"./standbyPoolManagementContext.js\";\nexport { operationsList } from \"./operations/index.js\";\nexport {\n standbyContainerGroupPoolRuntimeViewsGet,\n standbyContainerGroupPoolRuntimeViewsListByStandbyPool,\n} from \"./standbyContainerGroupPoolRuntimeViews/index.js\";\nexport {\n standbyContainerGroupPoolsGet,\n standbyContainerGroupPoolsCreateOrUpdate,\n standbyContainerGroupPoolsDelete,\n standbyContainerGroupPoolsUpdate,\n standbyContainerGroupPoolsListByResourceGroup,\n standbyContainerGroupPoolsListBySubscription,\n} from \"./standbyContainerGroupPools/index.js\";\nexport {\n standbyVirtualMachinePoolRuntimeViewsGet,\n standbyVirtualMachinePoolRuntimeViewsListByStandbyPool,\n} from \"./standbyVirtualMachinePoolRuntimeViews/index.js\";\nexport {\n standbyVirtualMachinePoolsGet,\n standbyVirtualMachinePoolsCreateOrUpdate,\n standbyVirtualMachinePoolsDelete,\n standbyVirtualMachinePoolsUpdate,\n standbyVirtualMachinePoolsListByResourceGroup,\n standbyVirtualMachinePoolsListBySubscription,\n} from \"./standbyVirtualMachinePools/index.js\";\nexport {\n standbyVirtualMachinesGet,\n standbyVirtualMachinesListByStandbyVirtualMachinePoolResource,\n} from \"./standbyVirtualMachines/index.js\";\n"]}
@@ -0,0 +1,10 @@
1
+ import { Operation, _OperationListResult } from "../../models/models.js";
2
+ import { StandbyPoolContext as Client } from "../index.js";
3
+ import { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
4
+ import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
5
+ import { OperationsListOptionalParams } from "../../models/options.js";
6
+ export declare function _operationsListSend(context: Client, options?: OperationsListOptionalParams): StreamableMethod;
7
+ export declare function _operationsListDeserialize(result: PathUncheckedResponse): Promise<_OperationListResult>;
8
+ /** List the operations for the provider */
9
+ export declare function operationsList(context: Client, options?: OperationsListOptionalParams): PagedAsyncIterableIterator<Operation>;
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/operations/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACzE,OAAO,EAAE,kBAAkB,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC;AAC3D,OAAO,EACL,gBAAgB,EAEhB,qBAAqB,EAEtB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,0BAA0B,EAE3B,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,4BAA4B,EAAE,MAAM,yBAAyB,CAAC;AAEvE,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,4BAAqD,GAC7D,gBAAgB,CAIlB;AAED,wBAAsB,0BAA0B,CAC9C,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,oBAAoB,CAAC,CAyB/B;AAED,2CAA2C;AAC3C,wBAAgB,cAAc,CAC5B,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,4BAAqD,GAC7D,0BAA0B,CAAC,SAAS,CAAC,CAQvC"}
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ // Copyright (c) Microsoft Corporation.
3
+ // Licensed under the MIT License.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports._operationsListSend = _operationsListSend;
6
+ exports._operationsListDeserialize = _operationsListDeserialize;
7
+ exports.operationsList = operationsList;
8
+ const core_client_1 = require("@azure-rest/core-client");
9
+ const pagingHelpers_js_1 = require("../../static-helpers/pagingHelpers.js");
10
+ function _operationsListSend(context, options = { requestOptions: {} }) {
11
+ return context
12
+ .path("/providers/Microsoft.StandbyPool/operations")
13
+ .get(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)));
14
+ }
15
+ async function _operationsListDeserialize(result) {
16
+ const expectedStatuses = ["200"];
17
+ if (!expectedStatuses.includes(result.status)) {
18
+ throw (0, core_client_1.createRestError)(result);
19
+ }
20
+ return {
21
+ value: result.body["value"].map((p) => {
22
+ var _a, _b, _c, _d;
23
+ return {
24
+ name: p["name"],
25
+ isDataAction: p["isDataAction"],
26
+ display: !p.display
27
+ ? undefined
28
+ : {
29
+ provider: (_a = p.display) === null || _a === void 0 ? void 0 : _a["provider"],
30
+ resource: (_b = p.display) === null || _b === void 0 ? void 0 : _b["resource"],
31
+ operation: (_c = p.display) === null || _c === void 0 ? void 0 : _c["operation"],
32
+ description: (_d = p.display) === null || _d === void 0 ? void 0 : _d["description"],
33
+ },
34
+ origin: p["origin"],
35
+ actionType: p["actionType"],
36
+ };
37
+ }),
38
+ nextLink: result.body["nextLink"],
39
+ };
40
+ }
41
+ /** List the operations for the provider */
42
+ function operationsList(context, options = { requestOptions: {} }) {
43
+ return (0, pagingHelpers_js_1.buildPagedAsyncIterator)(context, () => _operationsListSend(context, options), _operationsListDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
44
+ }
45
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/operations/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAgBlC,kDAOC;AAED,gEA2BC;AAGD,wCAWC;AA9DD,yDAKiC;AACjC,4EAG+C;AAG/C,SAAgB,mBAAmB,CACjC,OAAe,EACf,UAAwC,EAAE,cAAc,EAAE,EAAE,EAAE;IAE9D,OAAO,OAAO;SACX,IAAI,CAAC,6CAA6C,CAAC;SACnD,GAAG,mBAAM,IAAA,iDAAmC,EAAC,OAAO,CAAC,EAAG,CAAC;AAC9D,CAAC;AAEM,KAAK,UAAU,0BAA0B,CAC9C,MAA6B;IAE7B,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAA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the MIT License.\n\nimport { Operation, _OperationListResult } from \"../../models/models.js\";\nimport { StandbyPoolContext as Client } from \"../index.js\";\nimport {\n StreamableMethod,\n operationOptionsToRequestParameters,\n PathUncheckedResponse,\n createRestError,\n} from \"@azure-rest/core-client\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport { OperationsListOptionalParams } from \"../../models/options.js\";\n\nexport function _operationsListSend(\n context: Client,\n options: OperationsListOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\"/providers/Microsoft.StandbyPool/operations\")\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _operationsListDeserialize(\n result: PathUncheckedResponse,\n): Promise<_OperationListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return {\n value: result.body[\"value\"].map((p: any) => {\n return {\n name: p[\"name\"],\n isDataAction: p[\"isDataAction\"],\n display: !p.display\n ? undefined\n : {\n provider: p.display?.[\"provider\"],\n resource: p.display?.[\"resource\"],\n operation: p.display?.[\"operation\"],\n description: p.display?.[\"description\"],\n },\n origin: p[\"origin\"],\n actionType: p[\"actionType\"],\n };\n }),\n nextLink: result.body[\"nextLink\"],\n };\n}\n\n/** List the operations for the provider */\nexport function operationsList(\n context: Client,\n options: OperationsListOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<Operation> {\n return buildPagedAsyncIterator(\n context,\n () => _operationsListSend(context, options),\n _operationsListDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n"]}
@@ -0,0 +1,14 @@
1
+ import { StandbyContainerGroupPoolRuntimeViewResource, _StandbyContainerGroupPoolRuntimeViewResourceListResult } from "../../models/models.js";
2
+ import { StandbyPoolContext as Client } from "../index.js";
3
+ import { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
4
+ import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
5
+ import { StandbyContainerGroupPoolRuntimeViewsGetOptionalParams, StandbyContainerGroupPoolRuntimeViewsListByStandbyPoolOptionalParams } from "../../models/options.js";
6
+ export declare function _standbyContainerGroupPoolRuntimeViewsGetSend(context: Client, subscriptionId: string, resourceGroupName: string, standbyContainerGroupPoolName: string, runtimeView: string, options?: StandbyContainerGroupPoolRuntimeViewsGetOptionalParams): StreamableMethod;
7
+ export declare function _standbyContainerGroupPoolRuntimeViewsGetDeserialize(result: PathUncheckedResponse): Promise<StandbyContainerGroupPoolRuntimeViewResource>;
8
+ /** Get a StandbyContainerGroupPoolRuntimeViewResource */
9
+ export declare function standbyContainerGroupPoolRuntimeViewsGet(context: Client, subscriptionId: string, resourceGroupName: string, standbyContainerGroupPoolName: string, runtimeView: string, options?: StandbyContainerGroupPoolRuntimeViewsGetOptionalParams): Promise<StandbyContainerGroupPoolRuntimeViewResource>;
10
+ export declare function _standbyContainerGroupPoolRuntimeViewsListByStandbyPoolSend(context: Client, subscriptionId: string, resourceGroupName: string, standbyContainerGroupPoolName: string, options?: StandbyContainerGroupPoolRuntimeViewsListByStandbyPoolOptionalParams): StreamableMethod;
11
+ export declare function _standbyContainerGroupPoolRuntimeViewsListByStandbyPoolDeserialize(result: PathUncheckedResponse): Promise<_StandbyContainerGroupPoolRuntimeViewResourceListResult>;
12
+ /** List StandbyContainerGroupPoolRuntimeViewResource resources by StandbyContainerGroupPoolResource */
13
+ export declare function standbyContainerGroupPoolRuntimeViewsListByStandbyPool(context: Client, subscriptionId: string, resourceGroupName: string, standbyContainerGroupPoolName: string, options?: StandbyContainerGroupPoolRuntimeViewsListByStandbyPoolOptionalParams): PagedAsyncIterableIterator<StandbyContainerGroupPoolRuntimeViewResource>;
14
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/standbyContainerGroupPoolRuntimeViews/index.ts"],"names":[],"mappings":"AAGA,OAAO,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ACA,0BAA0B,CAAC,4CAA4C,CAAC,CAe1E"}
@@ -0,0 +1,121 @@
1
+ "use strict";
2
+ // Copyright (c) Microsoft Corporation.
3
+ // Licensed under the MIT License.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports._standbyContainerGroupPoolRuntimeViewsGetSend = _standbyContainerGroupPoolRuntimeViewsGetSend;
6
+ exports._standbyContainerGroupPoolRuntimeViewsGetDeserialize = _standbyContainerGroupPoolRuntimeViewsGetDeserialize;
7
+ exports.standbyContainerGroupPoolRuntimeViewsGet = standbyContainerGroupPoolRuntimeViewsGet;
8
+ exports._standbyContainerGroupPoolRuntimeViewsListByStandbyPoolSend = _standbyContainerGroupPoolRuntimeViewsListByStandbyPoolSend;
9
+ exports._standbyContainerGroupPoolRuntimeViewsListByStandbyPoolDeserialize = _standbyContainerGroupPoolRuntimeViewsListByStandbyPoolDeserialize;
10
+ exports.standbyContainerGroupPoolRuntimeViewsListByStandbyPool = standbyContainerGroupPoolRuntimeViewsListByStandbyPool;
11
+ const core_client_1 = require("@azure-rest/core-client");
12
+ const pagingHelpers_js_1 = require("../../static-helpers/pagingHelpers.js");
13
+ function _standbyContainerGroupPoolRuntimeViewsGetSend(context, subscriptionId, resourceGroupName, standbyContainerGroupPoolName, runtimeView, options = {
14
+ requestOptions: {},
15
+ }) {
16
+ return context
17
+ .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyContainerGroupPools/{standbyContainerGroupPoolName}/runtimeViews/{runtimeView}", subscriptionId, resourceGroupName, standbyContainerGroupPoolName, runtimeView)
18
+ .get(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)));
19
+ }
20
+ async function _standbyContainerGroupPoolRuntimeViewsGetDeserialize(result) {
21
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
22
+ const expectedStatuses = ["200"];
23
+ if (!expectedStatuses.includes(result.status)) {
24
+ throw (0, core_client_1.createRestError)(result);
25
+ }
26
+ return {
27
+ id: result.body["id"],
28
+ name: result.body["name"],
29
+ type: result.body["type"],
30
+ systemData: !result.body.systemData
31
+ ? undefined
32
+ : {
33
+ createdBy: (_a = result.body.systemData) === null || _a === void 0 ? void 0 : _a["createdBy"],
34
+ createdByType: (_b = result.body.systemData) === null || _b === void 0 ? void 0 : _b["createdByType"],
35
+ createdAt: ((_c = result.body.systemData) === null || _c === void 0 ? void 0 : _c["createdAt"]) !== undefined
36
+ ? new Date((_d = result.body.systemData) === null || _d === void 0 ? void 0 : _d["createdAt"])
37
+ : undefined,
38
+ lastModifiedBy: (_e = result.body.systemData) === null || _e === void 0 ? void 0 : _e["lastModifiedBy"],
39
+ lastModifiedByType: (_f = result.body.systemData) === null || _f === void 0 ? void 0 : _f["lastModifiedByType"],
40
+ lastModifiedAt: ((_g = result.body.systemData) === null || _g === void 0 ? void 0 : _g["lastModifiedAt"]) !== undefined
41
+ ? new Date((_h = result.body.systemData) === null || _h === void 0 ? void 0 : _h["lastModifiedAt"])
42
+ : undefined,
43
+ },
44
+ properties: !result.body.properties
45
+ ? undefined
46
+ : {
47
+ instanceCountSummary: (_j = result.body.properties) === null || _j === void 0 ? void 0 : _j["instanceCountSummary"].map((p) => {
48
+ return {
49
+ instanceCountsByState: p["instanceCountsByState"].map((p) => {
50
+ return { state: p["state"], count: p["count"] };
51
+ }),
52
+ };
53
+ }),
54
+ provisioningState: (_k = result.body.properties) === null || _k === void 0 ? void 0 : _k["provisioningState"],
55
+ },
56
+ };
57
+ }
58
+ /** Get a StandbyContainerGroupPoolRuntimeViewResource */
59
+ async function standbyContainerGroupPoolRuntimeViewsGet(context, subscriptionId, resourceGroupName, standbyContainerGroupPoolName, runtimeView, options = {
60
+ requestOptions: {},
61
+ }) {
62
+ const result = await _standbyContainerGroupPoolRuntimeViewsGetSend(context, subscriptionId, resourceGroupName, standbyContainerGroupPoolName, runtimeView, options);
63
+ return _standbyContainerGroupPoolRuntimeViewsGetDeserialize(result);
64
+ }
65
+ function _standbyContainerGroupPoolRuntimeViewsListByStandbyPoolSend(context, subscriptionId, resourceGroupName, standbyContainerGroupPoolName, options = {
66
+ requestOptions: {},
67
+ }) {
68
+ return context
69
+ .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyContainerGroupPools/{standbyContainerGroupPoolName}/runtimeViews", subscriptionId, resourceGroupName, standbyContainerGroupPoolName)
70
+ .get(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)));
71
+ }
72
+ async function _standbyContainerGroupPoolRuntimeViewsListByStandbyPoolDeserialize(result) {
73
+ const expectedStatuses = ["200"];
74
+ if (!expectedStatuses.includes(result.status)) {
75
+ throw (0, core_client_1.createRestError)(result);
76
+ }
77
+ return {
78
+ value: result.body["value"].map((p) => {
79
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
80
+ return {
81
+ id: p["id"],
82
+ name: p["name"],
83
+ type: p["type"],
84
+ systemData: !p.systemData
85
+ ? undefined
86
+ : {
87
+ createdBy: (_a = p.systemData) === null || _a === void 0 ? void 0 : _a["createdBy"],
88
+ createdByType: (_b = p.systemData) === null || _b === void 0 ? void 0 : _b["createdByType"],
89
+ createdAt: ((_c = p.systemData) === null || _c === void 0 ? void 0 : _c["createdAt"]) !== undefined
90
+ ? new Date((_d = p.systemData) === null || _d === void 0 ? void 0 : _d["createdAt"])
91
+ : undefined,
92
+ lastModifiedBy: (_e = p.systemData) === null || _e === void 0 ? void 0 : _e["lastModifiedBy"],
93
+ lastModifiedByType: (_f = p.systemData) === null || _f === void 0 ? void 0 : _f["lastModifiedByType"],
94
+ lastModifiedAt: ((_g = p.systemData) === null || _g === void 0 ? void 0 : _g["lastModifiedAt"]) !== undefined
95
+ ? new Date((_h = p.systemData) === null || _h === void 0 ? void 0 : _h["lastModifiedAt"])
96
+ : undefined,
97
+ },
98
+ properties: !p.properties
99
+ ? undefined
100
+ : {
101
+ instanceCountSummary: (_j = p.properties) === null || _j === void 0 ? void 0 : _j["instanceCountSummary"].map((p) => {
102
+ return {
103
+ instanceCountsByState: p["instanceCountsByState"].map((p) => {
104
+ return { state: p["state"], count: p["count"] };
105
+ }),
106
+ };
107
+ }),
108
+ provisioningState: (_k = p.properties) === null || _k === void 0 ? void 0 : _k["provisioningState"],
109
+ },
110
+ };
111
+ }),
112
+ nextLink: result.body["nextLink"],
113
+ };
114
+ }
115
+ /** List StandbyContainerGroupPoolRuntimeViewResource resources by StandbyContainerGroupPoolResource */
116
+ function standbyContainerGroupPoolRuntimeViewsListByStandbyPool(context, subscriptionId, resourceGroupName, standbyContainerGroupPoolName, options = {
117
+ requestOptions: {},
118
+ }) {
119
+ return (0, pagingHelpers_js_1.buildPagedAsyncIterator)(context, () => _standbyContainerGroupPoolRuntimeViewsListByStandbyPoolSend(context, subscriptionId, resourceGroupName, standbyContainerGroupPoolName, options), _standbyContainerGroupPoolRuntimeViewsListByStandbyPoolDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
120
+ }
121
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/standbyContainerGroupPoolRuntimeViews/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAsBlC,sGAmBC;AAED,oHAyCC;AAGD,4FAmBC;AAED,kIAiBC;AAED,gJA8CC;AAGD,wHAuBC;AAhMD,yDAKiC;AACjC,4EAG+C;AAM/C,SAAgB,6CAA6C,CAC3D,OAAe,EACf,cAAsB,EACtB,iBAAyB,EACzB,6BAAqC,EACrC,WAAmB,EACnB,UAAkE;IAChE,cAAc,EAAE,EAAE;CACnB;IAED,OAAO,OAAO;SACX,IAAI,CACH,0LAA0L,EAC1L,cAAc,EACd,iBAAiB,EACjB,6BAA6B,EAC7B,WAAW,CACZ;SACA,GAAG,mBAAM,IAAA,iDAAmC,EAAC,OAAO,CAAC,EAAG,CAAC;AAC9D,CAAC;AAEM,KAAK,UAAU,oDAAo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AC,SAAS;oBACX,CAAC,CAAC;wBACE,oBAAoB,EAAE,MAAA,CAAC,CAAC,UAAU,0CAAG,sBAAsB,EAAE,GAAG,CAAC,CAAC,CAAM,EAAE,EAAE;4BAC1E,OAAO;gCACL,qBAAqB,EAAE,CAAC,CAAC,uBAAuB,CAAC,CAAC,GAAG,CAAC,CAAC,CAAM,EAAE,EAAE;oCAC/D,OAAO,EAAE,KAAK,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;gCAClD,CAAC,CAAC;6BACH,CAAC;wBACJ,CAAC,CAAC;wBACF,iBAAiB,EAAE,MAAA,CAAC,CAAC,UAAU,0CAAG,mBAAmB,CAAC;qBACvD;aACN,CAAC;QACJ,CAAC,CAAC;QACF,QAAQ,EAAE,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC;KAClC,CAAC;AACJ,CAAC;AAED,uGAAuG;AACvG,SAAgB,sDAAsD,CACpE,OAAe,EACf,cAAsB,EACtB,iBAAyB,EACzB,6BAAqC,EACrC,UAAgF;IAC9E,cAAc,EAAE,EAAE;CACnB;IAED,OAAO,IAAA,0CAAuB,EAC5B,OAAO,EACP,GAAG,EAAE,CACH,2DAA2D,CACzD,OAAO,EACP,cAAc,EACd,iBAAiB,EACjB,6BAA6B,EAC7B,OAAO,CACR,EACH,kEAAkE,EAClE,CAAC,KAAK,CAAC,EACP,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,CAChD,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport {\n StandbyContainerGroupPoolRuntimeViewResource,\n _StandbyContainerGroupPoolRuntimeViewResourceListResult,\n} from \"../../models/models.js\";\nimport { StandbyPoolContext as Client } from \"../index.js\";\nimport {\n StreamableMethod,\n operationOptionsToRequestParameters,\n PathUncheckedResponse,\n createRestError,\n} from \"@azure-rest/core-client\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport {\n StandbyContainerGroupPoolRuntimeViewsGetOptionalParams,\n StandbyContainerGroupPoolRuntimeViewsListByStandbyPoolOptionalParams,\n} from \"../../models/options.js\";\n\nexport function _standbyContainerGroupPoolRuntimeViewsGetSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n standbyContainerGroupPoolName: string,\n runtimeView: string,\n options: StandbyContainerGroupPoolRuntimeViewsGetOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyContainerGroupPools/{standbyContainerGroupPoolName}/runtimeViews/{runtimeView}\",\n subscriptionId,\n resourceGroupName,\n standbyContainerGroupPoolName,\n runtimeView,\n )\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _standbyContainerGroupPoolRuntimeViewsGetDeserialize(\n result: PathUncheckedResponse,\n): Promise<StandbyContainerGroupPoolRuntimeViewResource> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return {\n id: result.body[\"id\"],\n name: result.body[\"name\"],\n type: result.body[\"type\"],\n systemData: !result.body.systemData\n ? undefined\n : {\n createdBy: result.body.systemData?.[\"createdBy\"],\n createdByType: result.body.systemData?.[\"createdByType\"],\n createdAt:\n result.body.systemData?.[\"createdAt\"] !== undefined\n ? new Date(result.body.systemData?.[\"createdAt\"])\n : undefined,\n lastModifiedBy: result.body.systemData?.[\"lastModifiedBy\"],\n lastModifiedByType: result.body.systemData?.[\"lastModifiedByType\"],\n lastModifiedAt:\n result.body.systemData?.[\"lastModifiedAt\"] !== undefined\n ? new Date(result.body.systemData?.[\"lastModifiedAt\"])\n : undefined,\n },\n properties: !result.body.properties\n ? undefined\n : {\n instanceCountSummary: result.body.properties?.[\"instanceCountSummary\"].map((p: any) => {\n return {\n instanceCountsByState: p[\"instanceCountsByState\"].map((p: any) => {\n return { state: p[\"state\"], count: p[\"count\"] };\n }),\n };\n }),\n provisioningState: result.body.properties?.[\"provisioningState\"],\n },\n };\n}\n\n/** Get a StandbyContainerGroupPoolRuntimeViewResource */\nexport async function standbyContainerGroupPoolRuntimeViewsGet(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n standbyContainerGroupPoolName: string,\n runtimeView: string,\n options: StandbyContainerGroupPoolRuntimeViewsGetOptionalParams = {\n requestOptions: {},\n },\n): Promise<StandbyContainerGroupPoolRuntimeViewResource> {\n const result = await _standbyContainerGroupPoolRuntimeViewsGetSend(\n context,\n subscriptionId,\n resourceGroupName,\n standbyContainerGroupPoolName,\n runtimeView,\n options,\n );\n return _standbyContainerGroupPoolRuntimeViewsGetDeserialize(result);\n}\n\nexport function _standbyContainerGroupPoolRuntimeViewsListByStandbyPoolSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n standbyContainerGroupPoolName: string,\n options: StandbyContainerGroupPoolRuntimeViewsListByStandbyPoolOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyContainerGroupPools/{standbyContainerGroupPoolName}/runtimeViews\",\n subscriptionId,\n resourceGroupName,\n standbyContainerGroupPoolName,\n )\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _standbyContainerGroupPoolRuntimeViewsListByStandbyPoolDeserialize(\n result: PathUncheckedResponse,\n): Promise<_StandbyContainerGroupPoolRuntimeViewResourceListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return {\n value: result.body[\"value\"].map((p: any) => {\n return {\n id: p[\"id\"],\n name: p[\"name\"],\n type: p[\"type\"],\n systemData: !p.systemData\n ? undefined\n : {\n createdBy: p.systemData?.[\"createdBy\"],\n createdByType: p.systemData?.[\"createdByType\"],\n createdAt:\n p.systemData?.[\"createdAt\"] !== undefined\n ? new Date(p.systemData?.[\"createdAt\"])\n : undefined,\n lastModifiedBy: p.systemData?.[\"lastModifiedBy\"],\n lastModifiedByType: p.systemData?.[\"lastModifiedByType\"],\n lastModifiedAt:\n p.systemData?.[\"lastModifiedAt\"] !== undefined\n ? new Date(p.systemData?.[\"lastModifiedAt\"])\n : undefined,\n },\n properties: !p.properties\n ? undefined\n : {\n instanceCountSummary: p.properties?.[\"instanceCountSummary\"].map((p: any) => {\n return {\n instanceCountsByState: p[\"instanceCountsByState\"].map((p: any) => {\n return { state: p[\"state\"], count: p[\"count\"] };\n }),\n };\n }),\n provisioningState: p.properties?.[\"provisioningState\"],\n },\n };\n }),\n nextLink: result.body[\"nextLink\"],\n };\n}\n\n/** List StandbyContainerGroupPoolRuntimeViewResource resources by StandbyContainerGroupPoolResource */\nexport function standbyContainerGroupPoolRuntimeViewsListByStandbyPool(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n standbyContainerGroupPoolName: string,\n options: StandbyContainerGroupPoolRuntimeViewsListByStandbyPoolOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<StandbyContainerGroupPoolRuntimeViewResource> {\n return buildPagedAsyncIterator(\n context,\n () =>\n _standbyContainerGroupPoolRuntimeViewsListByStandbyPoolSend(\n context,\n subscriptionId,\n resourceGroupName,\n standbyContainerGroupPoolName,\n options,\n ),\n _standbyContainerGroupPoolRuntimeViewsListByStandbyPoolDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n"]}
@@ -0,0 +1,31 @@
1
+ import { StandbyContainerGroupPoolResource, StandbyContainerGroupPoolResourceUpdate, _StandbyContainerGroupPoolResourceListResult } from "../../models/models.js";
2
+ import { StandbyPoolContext as Client } from "../index.js";
3
+ import { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
4
+ import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
5
+ import { PollerLike, OperationState } from "@azure/core-lro";
6
+ import { StandbyContainerGroupPoolsGetOptionalParams, StandbyContainerGroupPoolsCreateOrUpdateOptionalParams, StandbyContainerGroupPoolsDeleteOptionalParams, StandbyContainerGroupPoolsUpdateOptionalParams, StandbyContainerGroupPoolsListByResourceGroupOptionalParams, StandbyContainerGroupPoolsListBySubscriptionOptionalParams } from "../../models/options.js";
7
+ export declare function _standbyContainerGroupPoolsGetSend(context: Client, subscriptionId: string, resourceGroupName: string, standbyContainerGroupPoolName: string, options?: StandbyContainerGroupPoolsGetOptionalParams): StreamableMethod;
8
+ export declare function _standbyContainerGroupPoolsGetDeserialize(result: PathUncheckedResponse): Promise<StandbyContainerGroupPoolResource>;
9
+ /** Get a StandbyContainerGroupPoolResource */
10
+ export declare function standbyContainerGroupPoolsGet(context: Client, subscriptionId: string, resourceGroupName: string, standbyContainerGroupPoolName: string, options?: StandbyContainerGroupPoolsGetOptionalParams): Promise<StandbyContainerGroupPoolResource>;
11
+ export declare function _standbyContainerGroupPoolsCreateOrUpdateSend(context: Client, subscriptionId: string, resourceGroupName: string, standbyContainerGroupPoolName: string, resource: StandbyContainerGroupPoolResource, options?: StandbyContainerGroupPoolsCreateOrUpdateOptionalParams): StreamableMethod;
12
+ export declare function _standbyContainerGroupPoolsCreateOrUpdateDeserialize(result: PathUncheckedResponse): Promise<StandbyContainerGroupPoolResource>;
13
+ /** Create a StandbyContainerGroupPoolResource */
14
+ export declare function standbyContainerGroupPoolsCreateOrUpdate(context: Client, subscriptionId: string, resourceGroupName: string, standbyContainerGroupPoolName: string, resource: StandbyContainerGroupPoolResource, options?: StandbyContainerGroupPoolsCreateOrUpdateOptionalParams): PollerLike<OperationState<StandbyContainerGroupPoolResource>, StandbyContainerGroupPoolResource>;
15
+ export declare function _standbyContainerGroupPoolsDeleteSend(context: Client, subscriptionId: string, resourceGroupName: string, standbyContainerGroupPoolName: string, options?: StandbyContainerGroupPoolsDeleteOptionalParams): StreamableMethod;
16
+ export declare function _standbyContainerGroupPoolsDeleteDeserialize(result: PathUncheckedResponse): Promise<void>;
17
+ /** Delete a StandbyContainerGroupPoolResource */
18
+ export declare function standbyContainerGroupPoolsDelete(context: Client, subscriptionId: string, resourceGroupName: string, standbyContainerGroupPoolName: string, options?: StandbyContainerGroupPoolsDeleteOptionalParams): PollerLike<OperationState<void>, void>;
19
+ export declare function _standbyContainerGroupPoolsUpdateSend(context: Client, subscriptionId: string, resourceGroupName: string, standbyContainerGroupPoolName: string, properties: StandbyContainerGroupPoolResourceUpdate, options?: StandbyContainerGroupPoolsUpdateOptionalParams): StreamableMethod;
20
+ export declare function _standbyContainerGroupPoolsUpdateDeserialize(result: PathUncheckedResponse): Promise<StandbyContainerGroupPoolResource>;
21
+ /** Update a StandbyContainerGroupPoolResource */
22
+ export declare function standbyContainerGroupPoolsUpdate(context: Client, subscriptionId: string, resourceGroupName: string, standbyContainerGroupPoolName: string, properties: StandbyContainerGroupPoolResourceUpdate, options?: StandbyContainerGroupPoolsUpdateOptionalParams): Promise<StandbyContainerGroupPoolResource>;
23
+ export declare function _standbyContainerGroupPoolsListByResourceGroupSend(context: Client, subscriptionId: string, resourceGroupName: string, options?: StandbyContainerGroupPoolsListByResourceGroupOptionalParams): StreamableMethod;
24
+ export declare function _standbyContainerGroupPoolsListByResourceGroupDeserialize(result: PathUncheckedResponse): Promise<_StandbyContainerGroupPoolResourceListResult>;
25
+ /** List StandbyContainerGroupPoolResource resources by resource group */
26
+ export declare function standbyContainerGroupPoolsListByResourceGroup(context: Client, subscriptionId: string, resourceGroupName: string, options?: StandbyContainerGroupPoolsListByResourceGroupOptionalParams): PagedAsyncIterableIterator<StandbyContainerGroupPoolResource>;
27
+ export declare function _standbyContainerGroupPoolsListBySubscriptionSend(context: Client, subscriptionId: string, options?: StandbyContainerGroupPoolsListBySubscriptionOptionalParams): StreamableMethod;
28
+ export declare function _standbyContainerGroupPoolsListBySubscriptionDeserialize(result: PathUncheckedResponse): Promise<_StandbyContainerGroupPoolResourceListResult>;
29
+ /** List StandbyContainerGroupPoolResource resources by subscription ID */
30
+ export declare function standbyContainerGroupPoolsListBySubscription(context: Client, subscriptionId: string, options?: StandbyContainerGroupPoolsListBySubscriptionOptionalParams): PagedAsyncIterableIterator<StandbyContainerGroupPoolResource>;
31
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/standbyContainerGroupPools/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAGL,iCAAiC,EACjC,uCAAuC,EACvC,4CAA4C,EAC7C,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,kBAAkB,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC;AAC3D,OAAO,EACL,gBAAgB,EAEhB,qBAAqB,EAEtB,MAAM,yBAAyB,CAAC;AAGjC,OAAO,EACL,0BAA0B,EAE3B,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,EACL,2CAA2C,EAC3C,sDAAsD,EACtD,8CAA8C,EAC9C,8CAA8C,EAC9C,2DAA2D,EAC3D,0DAA0D,EAC3D,MAAM,yBAAyB,CAAC;AAEjC,wBAAgB,kCAAkC,CAChD,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,EACzB,6BAA6B,EAAE,MAAM,EACrC,OAAO,GAAE,2CAAoE,GAC5E,gBAAgB,CASlB;AAED,wBAAsB,yCAAyC,CAC7D,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,iCAAiC,CAAC,CAmD5C;AAED,8CAA8C;AAC9C,wBAAsB,6BAA6B,CACjD,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,EACzB,6BAA6B,EAAE,MAAM,EACrC,OAAO,GAAE,2CAAoE,GAC5E,OAAO,CAAC,iCAAiC,C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