@azure/arm-standbypool 1.0.0-alpha.20240925.1 → 1.0.0-alpha.20240927.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 +2 -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 +31 -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 +34 -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/dist/esm/api/index.d.ts +8 -0
  206. package/dist/esm/api/index.d.ts.map +1 -0
  207. package/dist/esm/api/index.js +10 -0
  208. package/dist/esm/api/index.js.map +1 -0
  209. package/dist/esm/api/operations/index.d.ts +10 -0
  210. package/dist/esm/api/operations/index.d.ts.map +1 -0
  211. package/dist/esm/api/operations/index.js +40 -0
  212. package/dist/esm/api/operations/index.js.map +1 -0
  213. package/dist/esm/api/standbyContainerGroupPoolRuntimeViews/index.d.ts +14 -0
  214. package/dist/esm/api/standbyContainerGroupPoolRuntimeViews/index.d.ts.map +1 -0
  215. package/dist/esm/api/standbyContainerGroupPoolRuntimeViews/index.js +113 -0
  216. package/dist/esm/api/standbyContainerGroupPoolRuntimeViews/index.js.map +1 -0
  217. package/dist/esm/api/standbyContainerGroupPools/index.d.ts +31 -0
  218. package/dist/esm/api/standbyContainerGroupPools/index.d.ts.map +1 -0
  219. package/dist/esm/api/standbyContainerGroupPools/index.js +362 -0
  220. package/dist/esm/api/standbyContainerGroupPools/index.js.map +1 -0
  221. package/dist/esm/api/standbyPoolManagementContext.d.ts +11 -0
  222. package/dist/esm/api/standbyPoolManagementContext.d.ts.map +1 -0
  223. package/dist/esm/api/standbyPoolManagementContext.js +31 -0
  224. package/dist/esm/api/standbyPoolManagementContext.js.map +1 -0
  225. package/dist/esm/api/standbyVirtualMachinePoolRuntimeViews/index.d.ts +14 -0
  226. package/dist/esm/api/standbyVirtualMachinePoolRuntimeViews/index.d.ts.map +1 -0
  227. package/dist/esm/api/standbyVirtualMachinePoolRuntimeViews/index.js +115 -0
  228. package/dist/esm/api/standbyVirtualMachinePoolRuntimeViews/index.js.map +1 -0
  229. package/dist/esm/api/standbyVirtualMachinePools/index.d.ts +31 -0
  230. package/dist/esm/api/standbyVirtualMachinePools/index.d.ts.map +1 -0
  231. package/dist/esm/api/standbyVirtualMachinePools/index.js +327 -0
  232. package/dist/esm/api/standbyVirtualMachinePools/index.js.map +1 -0
  233. package/dist/esm/api/standbyVirtualMachines/index.d.ts +14 -0
  234. package/dist/esm/api/standbyVirtualMachines/index.d.ts.map +1 -0
  235. package/dist/esm/api/standbyVirtualMachines/index.js +97 -0
  236. package/dist/esm/api/standbyVirtualMachines/index.js.map +1 -0
  237. package/dist/esm/classic/index.d.ts +7 -0
  238. package/dist/esm/classic/index.d.ts.map +1 -0
  239. package/dist/esm/classic/index.js +4 -0
  240. package/dist/esm/classic/index.js.map +1 -0
  241. package/dist/esm/classic/operations/index.d.ts +14 -0
  242. package/dist/esm/classic/operations/index.d.ts.map +1 -0
  243. package/dist/esm/classic/operations/index.js +12 -0
  244. package/dist/esm/classic/operations/index.js.map +1 -0
  245. package/dist/esm/classic/standbyContainerGroupPoolRuntimeViews/index.d.ts +17 -0
  246. package/dist/esm/classic/standbyContainerGroupPoolRuntimeViews/index.d.ts.map +1 -0
  247. package/dist/esm/classic/standbyContainerGroupPoolRuntimeViews/index.js +13 -0
  248. package/dist/esm/classic/standbyContainerGroupPoolRuntimeViews/index.js.map +1 -0
  249. package/dist/esm/classic/standbyContainerGroupPools/index.d.ts +30 -0
  250. package/dist/esm/classic/standbyContainerGroupPools/index.d.ts.map +1 -0
  251. package/dist/esm/classic/standbyContainerGroupPools/index.js +17 -0
  252. package/dist/esm/classic/standbyContainerGroupPools/index.js.map +1 -0
  253. package/dist/esm/classic/standbyVirtualMachinePoolRuntimeViews/index.d.ts +17 -0
  254. package/dist/esm/classic/standbyVirtualMachinePoolRuntimeViews/index.d.ts.map +1 -0
  255. package/dist/esm/classic/standbyVirtualMachinePoolRuntimeViews/index.js +13 -0
  256. package/dist/esm/classic/standbyVirtualMachinePoolRuntimeViews/index.js.map +1 -0
  257. package/dist/esm/classic/standbyVirtualMachinePools/index.d.ts +30 -0
  258. package/dist/esm/classic/standbyVirtualMachinePools/index.d.ts.map +1 -0
  259. package/dist/esm/classic/standbyVirtualMachinePools/index.js +17 -0
  260. package/dist/esm/classic/standbyVirtualMachinePools/index.js.map +1 -0
  261. package/dist/esm/classic/standbyVirtualMachines/index.d.ts +17 -0
  262. package/dist/esm/classic/standbyVirtualMachines/index.d.ts.map +1 -0
  263. package/dist/esm/classic/standbyVirtualMachines/index.js +13 -0
  264. package/dist/esm/classic/standbyVirtualMachines/index.js.map +1 -0
  265. package/dist/esm/helpers/serializerHelpers.d.ts +3 -0
  266. package/dist/esm/helpers/serializerHelpers.d.ts.map +1 -0
  267. package/dist/esm/helpers/serializerHelpers.js +24 -0
  268. package/dist/esm/helpers/serializerHelpers.js.map +1 -0
  269. package/dist/esm/index.d.ts +7 -0
  270. package/dist/esm/index.d.ts.map +1 -0
  271. package/dist/esm/index.js +6 -0
  272. package/dist/esm/index.js.map +1 -0
  273. package/dist/esm/logger.d.ts +2 -0
  274. package/dist/esm/logger.d.ts.map +1 -0
  275. package/dist/esm/logger.js +5 -0
  276. package/dist/esm/logger.js.map +1 -0
  277. package/dist/esm/models/index.d.ts +3 -0
  278. package/dist/esm/models/index.d.ts.map +1 -0
  279. package/dist/esm/models/index.js +4 -0
  280. package/dist/esm/models/index.js.map +1 -0
  281. package/dist/esm/models/models.d.ts +381 -0
  282. package/dist/esm/models/models.d.ts.map +1 -0
  283. package/dist/esm/models/models.js +164 -0
  284. package/dist/esm/models/models.js.map +1 -0
  285. package/dist/esm/models/options.d.ts +67 -0
  286. package/dist/esm/models/options.d.ts.map +1 -0
  287. package/dist/esm/models/options.js +4 -0
  288. package/dist/esm/models/options.js.map +1 -0
  289. package/dist/esm/package.json +3 -0
  290. package/dist/esm/restorePollerHelpers.d.ts +21 -0
  291. package/dist/esm/restorePollerHelpers.d.ts.map +1 -0
  292. package/dist/esm/restorePollerHelpers.js +106 -0
  293. package/dist/esm/restorePollerHelpers.js.map +1 -0
  294. package/dist/esm/standbyPoolManagementClient.d.ts +29 -0
  295. package/dist/esm/standbyPoolManagementClient.d.ts.map +1 -0
  296. package/dist/esm/standbyPoolManagementClient.js +27 -0
  297. package/dist/esm/standbyPoolManagementClient.js.map +1 -0
  298. package/dist/esm/static-helpers/pagingHelpers.d.ts +72 -0
  299. package/dist/esm/static-helpers/pagingHelpers.d.ts.map +1 -0
  300. package/dist/esm/static-helpers/pagingHelpers.js +139 -0
  301. package/dist/esm/static-helpers/pagingHelpers.js.map +1 -0
  302. package/dist/esm/static-helpers/pollingHelpers.d.ts +30 -0
  303. package/dist/esm/static-helpers/pollingHelpers.d.ts.map +1 -0
  304. package/dist/esm/static-helpers/pollingHelpers.js +78 -0
  305. package/dist/esm/static-helpers/pollingHelpers.js.map +1 -0
  306. package/dist/react-native/api/index.d.ts +8 -0
  307. package/dist/react-native/api/index.d.ts.map +1 -0
  308. package/dist/react-native/api/index.js +10 -0
  309. package/dist/react-native/api/index.js.map +1 -0
  310. package/dist/react-native/api/operations/index.d.ts +10 -0
  311. package/dist/react-native/api/operations/index.d.ts.map +1 -0
  312. package/dist/react-native/api/operations/index.js +40 -0
  313. package/dist/react-native/api/operations/index.js.map +1 -0
  314. package/dist/react-native/api/standbyContainerGroupPoolRuntimeViews/index.d.ts +14 -0
  315. package/dist/react-native/api/standbyContainerGroupPoolRuntimeViews/index.d.ts.map +1 -0
  316. package/dist/react-native/api/standbyContainerGroupPoolRuntimeViews/index.js +113 -0
  317. package/dist/react-native/api/standbyContainerGroupPoolRuntimeViews/index.js.map +1 -0
  318. package/dist/react-native/api/standbyContainerGroupPools/index.d.ts +31 -0
  319. package/dist/react-native/api/standbyContainerGroupPools/index.d.ts.map +1 -0
  320. package/dist/react-native/api/standbyContainerGroupPools/index.js +362 -0
  321. package/dist/react-native/api/standbyContainerGroupPools/index.js.map +1 -0
  322. package/dist/react-native/api/standbyPoolManagementContext.d.ts +11 -0
  323. package/dist/react-native/api/standbyPoolManagementContext.d.ts.map +1 -0
  324. package/dist/react-native/api/standbyPoolManagementContext.js +31 -0
  325. package/dist/react-native/api/standbyPoolManagementContext.js.map +1 -0
  326. package/dist/react-native/api/standbyVirtualMachinePoolRuntimeViews/index.d.ts +14 -0
  327. package/dist/react-native/api/standbyVirtualMachinePoolRuntimeViews/index.d.ts.map +1 -0
  328. package/dist/react-native/api/standbyVirtualMachinePoolRuntimeViews/index.js +115 -0
  329. package/dist/react-native/api/standbyVirtualMachinePoolRuntimeViews/index.js.map +1 -0
  330. package/dist/react-native/api/standbyVirtualMachinePools/index.d.ts +31 -0
  331. package/dist/react-native/api/standbyVirtualMachinePools/index.d.ts.map +1 -0
  332. package/dist/react-native/api/standbyVirtualMachinePools/index.js +327 -0
  333. package/dist/react-native/api/standbyVirtualMachinePools/index.js.map +1 -0
  334. package/dist/react-native/api/standbyVirtualMachines/index.d.ts +14 -0
  335. package/dist/react-native/api/standbyVirtualMachines/index.d.ts.map +1 -0
  336. package/dist/react-native/api/standbyVirtualMachines/index.js +97 -0
  337. package/dist/react-native/api/standbyVirtualMachines/index.js.map +1 -0
  338. package/dist/react-native/classic/index.d.ts +7 -0
  339. package/dist/react-native/classic/index.d.ts.map +1 -0
  340. package/dist/react-native/classic/index.js +4 -0
  341. package/dist/react-native/classic/index.js.map +1 -0
  342. package/dist/react-native/classic/operations/index.d.ts +14 -0
  343. package/dist/react-native/classic/operations/index.d.ts.map +1 -0
  344. package/dist/react-native/classic/operations/index.js +12 -0
  345. package/dist/react-native/classic/operations/index.js.map +1 -0
  346. package/dist/react-native/classic/standbyContainerGroupPoolRuntimeViews/index.d.ts +17 -0
  347. package/dist/react-native/classic/standbyContainerGroupPoolRuntimeViews/index.d.ts.map +1 -0
  348. package/dist/react-native/classic/standbyContainerGroupPoolRuntimeViews/index.js +13 -0
  349. package/dist/react-native/classic/standbyContainerGroupPoolRuntimeViews/index.js.map +1 -0
  350. package/dist/react-native/classic/standbyContainerGroupPools/index.d.ts +30 -0
  351. package/dist/react-native/classic/standbyContainerGroupPools/index.d.ts.map +1 -0
  352. package/dist/react-native/classic/standbyContainerGroupPools/index.js +17 -0
  353. package/dist/react-native/classic/standbyContainerGroupPools/index.js.map +1 -0
  354. package/dist/react-native/classic/standbyVirtualMachinePoolRuntimeViews/index.d.ts +17 -0
  355. package/dist/react-native/classic/standbyVirtualMachinePoolRuntimeViews/index.d.ts.map +1 -0
  356. package/dist/react-native/classic/standbyVirtualMachinePoolRuntimeViews/index.js +13 -0
  357. package/dist/react-native/classic/standbyVirtualMachinePoolRuntimeViews/index.js.map +1 -0
  358. package/dist/react-native/classic/standbyVirtualMachinePools/index.d.ts +30 -0
  359. package/dist/react-native/classic/standbyVirtualMachinePools/index.d.ts.map +1 -0
  360. package/dist/react-native/classic/standbyVirtualMachinePools/index.js +17 -0
  361. package/dist/react-native/classic/standbyVirtualMachinePools/index.js.map +1 -0
  362. package/dist/react-native/classic/standbyVirtualMachines/index.d.ts +17 -0
  363. package/dist/react-native/classic/standbyVirtualMachines/index.d.ts.map +1 -0
  364. package/dist/react-native/classic/standbyVirtualMachines/index.js +13 -0
  365. package/dist/react-native/classic/standbyVirtualMachines/index.js.map +1 -0
  366. package/dist/react-native/helpers/serializerHelpers.d.ts +3 -0
  367. package/dist/react-native/helpers/serializerHelpers.d.ts.map +1 -0
  368. package/dist/react-native/helpers/serializerHelpers.js +24 -0
  369. package/dist/react-native/helpers/serializerHelpers.js.map +1 -0
  370. package/dist/react-native/index.d.ts +7 -0
  371. package/dist/react-native/index.d.ts.map +1 -0
  372. package/dist/react-native/index.js +6 -0
  373. package/dist/react-native/index.js.map +1 -0
  374. package/dist/react-native/logger.d.ts +2 -0
  375. package/dist/react-native/logger.d.ts.map +1 -0
  376. package/dist/react-native/logger.js +5 -0
  377. package/dist/react-native/logger.js.map +1 -0
  378. package/dist/react-native/models/index.d.ts +3 -0
  379. package/dist/react-native/models/index.d.ts.map +1 -0
  380. package/dist/react-native/models/index.js +4 -0
  381. package/dist/react-native/models/index.js.map +1 -0
  382. package/dist/react-native/models/models.d.ts +381 -0
  383. package/dist/react-native/models/models.d.ts.map +1 -0
  384. package/dist/react-native/models/models.js +164 -0
  385. package/dist/react-native/models/models.js.map +1 -0
  386. package/dist/react-native/models/options.d.ts +67 -0
  387. package/dist/react-native/models/options.d.ts.map +1 -0
  388. package/dist/react-native/models/options.js +4 -0
  389. package/dist/react-native/models/options.js.map +1 -0
  390. package/dist/react-native/package.json +3 -0
  391. package/dist/react-native/restorePollerHelpers.d.ts +21 -0
  392. package/dist/react-native/restorePollerHelpers.d.ts.map +1 -0
  393. package/dist/react-native/restorePollerHelpers.js +106 -0
  394. package/dist/react-native/restorePollerHelpers.js.map +1 -0
  395. package/dist/react-native/standbyPoolManagementClient.d.ts +29 -0
  396. package/dist/react-native/standbyPoolManagementClient.d.ts.map +1 -0
  397. package/dist/react-native/standbyPoolManagementClient.js +27 -0
  398. package/dist/react-native/standbyPoolManagementClient.js.map +1 -0
  399. package/dist/react-native/static-helpers/pagingHelpers.d.ts +72 -0
  400. package/dist/react-native/static-helpers/pagingHelpers.d.ts.map +1 -0
  401. package/dist/react-native/static-helpers/pagingHelpers.js +139 -0
  402. package/dist/react-native/static-helpers/pagingHelpers.js.map +1 -0
  403. package/dist/react-native/static-helpers/pollingHelpers.d.ts +30 -0
  404. package/dist/react-native/static-helpers/pollingHelpers.d.ts.map +1 -0
  405. package/dist/react-native/static-helpers/pollingHelpers.js +78 -0
  406. package/dist/react-native/static-helpers/pollingHelpers.js.map +1 -0
  407. package/package.json +139 -85
  408. package/review/arm-standbypool-models.api.md +322 -0
  409. package/review/arm-standbypool.api.md +120 -224
  410. package/dist/index.js +0 -2605
  411. package/dist/index.js.map +0 -1
  412. package/dist/index.min.js +0 -1
  413. package/dist/index.min.js.map +0 -1
  414. package/dist-esm/samples-dev/operationsListSample.d.ts +0 -2
  415. package/dist-esm/samples-dev/operationsListSample.d.ts.map +0 -1
  416. package/dist-esm/samples-dev/operationsListSample.js +0 -53
  417. package/dist-esm/samples-dev/operationsListSample.js.map +0 -1
  418. package/dist-esm/samples-dev/standbyContainerGroupPoolsCreateOrUpdateSample.d.ts +0 -2
  419. package/dist-esm/samples-dev/standbyContainerGroupPoolsCreateOrUpdateSample.d.ts.map +0 -1
  420. package/dist-esm/samples-dev/standbyContainerGroupPoolsCreateOrUpdateSample.js +0 -57
  421. package/dist-esm/samples-dev/standbyContainerGroupPoolsCreateOrUpdateSample.js.map +0 -1
  422. package/dist-esm/samples-dev/standbyContainerGroupPoolsDeleteSample.d.ts +0 -2
  423. package/dist-esm/samples-dev/standbyContainerGroupPoolsDeleteSample.d.ts.map +0 -1
  424. package/dist-esm/samples-dev/standbyContainerGroupPoolsDeleteSample.js +0 -39
  425. package/dist-esm/samples-dev/standbyContainerGroupPoolsDeleteSample.js.map +0 -1
  426. package/dist-esm/samples-dev/standbyContainerGroupPoolsGetSample.d.ts +0 -2
  427. package/dist-esm/samples-dev/standbyContainerGroupPoolsGetSample.d.ts.map +0 -1
  428. package/dist-esm/samples-dev/standbyContainerGroupPoolsGetSample.js +0 -39
  429. package/dist-esm/samples-dev/standbyContainerGroupPoolsGetSample.js.map +0 -1
  430. package/dist-esm/samples-dev/standbyContainerGroupPoolsListByResourceGroupSample.d.ts +0 -2
  431. package/dist-esm/samples-dev/standbyContainerGroupPoolsListByResourceGroupSample.d.ts.map +0 -1
  432. package/dist-esm/samples-dev/standbyContainerGroupPoolsListByResourceGroupSample.js +0 -54
  433. package/dist-esm/samples-dev/standbyContainerGroupPoolsListByResourceGroupSample.js.map +0 -1
  434. package/dist-esm/samples-dev/standbyContainerGroupPoolsListBySubscriptionSample.d.ts +0 -2
  435. package/dist-esm/samples-dev/standbyContainerGroupPoolsListBySubscriptionSample.d.ts.map +0 -1
  436. package/dist-esm/samples-dev/standbyContainerGroupPoolsListBySubscriptionSample.js +0 -53
  437. package/dist-esm/samples-dev/standbyContainerGroupPoolsListBySubscriptionSample.js.map +0 -1
  438. package/dist-esm/samples-dev/standbyContainerGroupPoolsUpdateSample.d.ts +0 -2
  439. package/dist-esm/samples-dev/standbyContainerGroupPoolsUpdateSample.d.ts.map +0 -1
  440. package/dist-esm/samples-dev/standbyContainerGroupPoolsUpdateSample.js +0 -56
  441. package/dist-esm/samples-dev/standbyContainerGroupPoolsUpdateSample.js.map +0 -1
  442. package/dist-esm/samples-dev/standbyVirtualMachinePoolsCreateOrUpdateSample.d.ts +0 -2
  443. package/dist-esm/samples-dev/standbyVirtualMachinePoolsCreateOrUpdateSample.d.ts.map +0 -1
  444. package/dist-esm/samples-dev/standbyVirtualMachinePoolsCreateOrUpdateSample.js +0 -48
  445. package/dist-esm/samples-dev/standbyVirtualMachinePoolsCreateOrUpdateSample.js.map +0 -1
  446. package/dist-esm/samples-dev/standbyVirtualMachinePoolsDeleteSample.d.ts +0 -2
  447. package/dist-esm/samples-dev/standbyVirtualMachinePoolsDeleteSample.d.ts.map +0 -1
  448. package/dist-esm/samples-dev/standbyVirtualMachinePoolsDeleteSample.js +0 -39
  449. package/dist-esm/samples-dev/standbyVirtualMachinePoolsDeleteSample.js.map +0 -1
  450. package/dist-esm/samples-dev/standbyVirtualMachinePoolsGetSample.d.ts +0 -2
  451. package/dist-esm/samples-dev/standbyVirtualMachinePoolsGetSample.d.ts.map +0 -1
  452. package/dist-esm/samples-dev/standbyVirtualMachinePoolsGetSample.js +0 -39
  453. package/dist-esm/samples-dev/standbyVirtualMachinePoolsGetSample.js.map +0 -1
  454. package/dist-esm/samples-dev/standbyVirtualMachinePoolsListByResourceGroupSample.d.ts +0 -2
  455. package/dist-esm/samples-dev/standbyVirtualMachinePoolsListByResourceGroupSample.d.ts.map +0 -1
  456. package/dist-esm/samples-dev/standbyVirtualMachinePoolsListByResourceGroupSample.js +0 -54
  457. package/dist-esm/samples-dev/standbyVirtualMachinePoolsListByResourceGroupSample.js.map +0 -1
  458. package/dist-esm/samples-dev/standbyVirtualMachinePoolsListBySubscriptionSample.d.ts +0 -2
  459. package/dist-esm/samples-dev/standbyVirtualMachinePoolsListBySubscriptionSample.d.ts.map +0 -1
  460. package/dist-esm/samples-dev/standbyVirtualMachinePoolsListBySubscriptionSample.js +0 -53
  461. package/dist-esm/samples-dev/standbyVirtualMachinePoolsListBySubscriptionSample.js.map +0 -1
  462. package/dist-esm/samples-dev/standbyVirtualMachinePoolsUpdateSample.d.ts +0 -2
  463. package/dist-esm/samples-dev/standbyVirtualMachinePoolsUpdateSample.d.ts.map +0 -1
  464. package/dist-esm/samples-dev/standbyVirtualMachinePoolsUpdateSample.js +0 -47
  465. package/dist-esm/samples-dev/standbyVirtualMachinePoolsUpdateSample.js.map +0 -1
  466. package/dist-esm/samples-dev/standbyVirtualMachinesGetSample.d.ts +0 -2
  467. package/dist-esm/samples-dev/standbyVirtualMachinesGetSample.d.ts.map +0 -1
  468. package/dist-esm/samples-dev/standbyVirtualMachinesGetSample.js +0 -40
  469. package/dist-esm/samples-dev/standbyVirtualMachinesGetSample.js.map +0 -1
  470. package/dist-esm/samples-dev/standbyVirtualMachinesListByStandbyVirtualMachinePoolResourceSample.d.ts +0 -2
  471. package/dist-esm/samples-dev/standbyVirtualMachinesListByStandbyVirtualMachinePoolResourceSample.d.ts.map +0 -1
  472. package/dist-esm/samples-dev/standbyVirtualMachinesListByStandbyVirtualMachinePoolResourceSample.js +0 -55
  473. package/dist-esm/samples-dev/standbyVirtualMachinesListByStandbyVirtualMachinePoolResourceSample.js.map +0 -1
  474. package/dist-esm/src/index.d.ts +0 -5
  475. package/dist-esm/src/index.d.ts.map +0 -1
  476. package/dist-esm/src/index.js +0 -13
  477. package/dist-esm/src/index.js.map +0 -1
  478. package/dist-esm/src/lroImpl.d.ts +0 -11
  479. package/dist-esm/src/lroImpl.d.ts.map +0 -1
  480. package/dist-esm/src/lroImpl.js +0 -21
  481. package/dist-esm/src/lroImpl.js.map +0 -1
  482. package/dist-esm/src/models/index.d.ts +0 -581
  483. package/dist-esm/src/models/index.d.ts.map +0 -1
  484. package/dist-esm/src/models/index.js +0 -62
  485. package/dist-esm/src/models/index.js.map +0 -1
  486. package/dist-esm/src/models/mappers.d.ts +0 -38
  487. package/dist-esm/src/models/mappers.d.ts.map +0 -1
  488. package/dist-esm/src/models/mappers.js +0 -877
  489. package/dist-esm/src/models/mappers.js.map +0 -1
  490. package/dist-esm/src/models/parameters.d.ts +0 -16
  491. package/dist-esm/src/models/parameters.d.ts.map +0 -1
  492. package/dist-esm/src/models/parameters.js +0 -143
  493. package/dist-esm/src/models/parameters.js.map +0 -1
  494. package/dist-esm/src/operations/index.d.ts +0 -5
  495. package/dist-esm/src/operations/index.d.ts.map +0 -1
  496. package/dist-esm/src/operations/index.js +0 -12
  497. package/dist-esm/src/operations/index.js.map +0 -1
  498. package/dist-esm/src/operations/operations.d.ts +0 -32
  499. package/dist-esm/src/operations/operations.d.ts.map +0 -1
  500. package/dist-esm/src/operations/operations.js +0 -133
  501. package/dist-esm/src/operations/operations.js.map +0 -1
  502. package/dist-esm/src/operations/standbyContainerGroupPools.d.ts +0 -99
  503. package/dist-esm/src/operations/standbyContainerGroupPools.d.ts.map +0 -1
  504. package/dist-esm/src/operations/standbyContainerGroupPools.js +0 -502
  505. package/dist-esm/src/operations/standbyContainerGroupPools.js.map +0 -1
  506. package/dist-esm/src/operations/standbyVirtualMachinePools.d.ts +0 -99
  507. package/dist-esm/src/operations/standbyVirtualMachinePools.d.ts.map +0 -1
  508. package/dist-esm/src/operations/standbyVirtualMachinePools.js +0 -502
  509. package/dist-esm/src/operations/standbyVirtualMachinePools.js.map +0 -1
  510. package/dist-esm/src/operations/standbyVirtualMachines.d.ts +0 -47
  511. package/dist-esm/src/operations/standbyVirtualMachines.d.ts.map +0 -1
  512. package/dist-esm/src/operations/standbyVirtualMachines.js +0 -188
  513. package/dist-esm/src/operations/standbyVirtualMachines.js.map +0 -1
  514. package/dist-esm/src/operationsInterfaces/index.d.ts +0 -5
  515. package/dist-esm/src/operationsInterfaces/index.d.ts.map +0 -1
  516. package/dist-esm/src/operationsInterfaces/index.js +0 -12
  517. package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
  518. package/dist-esm/src/operationsInterfaces/operations.d.ts +0 -11
  519. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +0 -1
  520. package/dist-esm/src/operationsInterfaces/operations.js +0 -9
  521. package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
  522. package/dist-esm/src/operationsInterfaces/standbyContainerGroupPools.d.ts +0 -63
  523. package/dist-esm/src/operationsInterfaces/standbyContainerGroupPools.d.ts.map +0 -1
  524. package/dist-esm/src/operationsInterfaces/standbyContainerGroupPools.js +0 -9
  525. package/dist-esm/src/operationsInterfaces/standbyContainerGroupPools.js.map +0 -1
  526. package/dist-esm/src/operationsInterfaces/standbyVirtualMachinePools.d.ts +0 -63
  527. package/dist-esm/src/operationsInterfaces/standbyVirtualMachinePools.d.ts.map +0 -1
  528. package/dist-esm/src/operationsInterfaces/standbyVirtualMachinePools.js +0 -9
  529. package/dist-esm/src/operationsInterfaces/standbyVirtualMachinePools.js.map +0 -1
  530. package/dist-esm/src/operationsInterfaces/standbyVirtualMachines.d.ts +0 -21
  531. package/dist-esm/src/operationsInterfaces/standbyVirtualMachines.d.ts.map +0 -1
  532. package/dist-esm/src/operationsInterfaces/standbyVirtualMachines.js +0 -9
  533. package/dist-esm/src/operationsInterfaces/standbyVirtualMachines.js.map +0 -1
  534. package/dist-esm/src/pagingHelper.d.ts +0 -13
  535. package/dist-esm/src/pagingHelper.d.ts.map +0 -1
  536. package/dist-esm/src/pagingHelper.js +0 -32
  537. package/dist-esm/src/pagingHelper.js.map +0 -1
  538. package/dist-esm/src/standbyPoolManagementClient.d.ts +0 -23
  539. package/dist-esm/src/standbyPoolManagementClient.d.ts.map +0 -1
  540. package/dist-esm/src/standbyPoolManagementClient.js +0 -103
  541. package/dist-esm/src/standbyPoolManagementClient.js.map +0 -1
  542. package/dist-esm/test/standbypool_operations_test.spec.d.ts +0 -4
  543. package/dist-esm/test/standbypool_operations_test.spec.d.ts.map +0 -1
  544. package/dist-esm/test/standbypool_operations_test.spec.js +0 -74
  545. package/dist-esm/test/standbypool_operations_test.spec.js.map +0 -1
  546. package/src/index.ts +0 -13
  547. package/src/lroImpl.ts +0 -42
  548. package/src/models/index.ts +0 -695
  549. package/src/models/mappers.ts +0 -947
  550. package/src/models/parameters.ts +0 -167
  551. package/src/operations/index.ts +0 -12
  552. package/src/operations/operations.ts +0 -149
  553. package/src/operations/standbyContainerGroupPools.ts +0 -650
  554. package/src/operations/standbyVirtualMachinePools.ts +0 -650
  555. package/src/operations/standbyVirtualMachines.ts +0 -252
  556. package/src/operationsInterfaces/index.ts +0 -12
  557. package/src/operationsInterfaces/operations.ts +0 -22
  558. package/src/operationsInterfaces/standbyContainerGroupPools.ts +0 -127
  559. package/src/operationsInterfaces/standbyVirtualMachinePools.ts +0 -127
  560. package/src/operationsInterfaces/standbyVirtualMachines.ts +0 -44
  561. package/src/pagingHelper.ts +0 -39
  562. package/src/standbyPoolManagementClient.ts +0 -157
  563. package/tsconfig.json +0 -33
  564. package/types/arm-standbypool.d.ts +0 -853
  565. /package/{types → dist/commonjs}/tsdoc-metadata.json +0 -0
@@ -0,0 +1,115 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ import { operationOptionsToRequestParameters, createRestError, } from "@azure-rest/core-client";
4
+ import { buildPagedAsyncIterator, } from "../../static-helpers/pagingHelpers.js";
5
+ export function _standbyVirtualMachinePoolRuntimeViewsGetSend(context, subscriptionId, resourceGroupName, standbyVirtualMachinePoolName, runtimeView, options = {
6
+ requestOptions: {},
7
+ }) {
8
+ return context
9
+ .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/{standbyVirtualMachinePoolName}/runtimeViews/{runtimeView}", subscriptionId, resourceGroupName, standbyVirtualMachinePoolName, runtimeView)
10
+ .get(Object.assign({}, operationOptionsToRequestParameters(options)));
11
+ }
12
+ export async function _standbyVirtualMachinePoolRuntimeViewsGetDeserialize(result) {
13
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
14
+ const expectedStatuses = ["200"];
15
+ if (!expectedStatuses.includes(result.status)) {
16
+ throw createRestError(result);
17
+ }
18
+ return {
19
+ id: result.body["id"],
20
+ name: result.body["name"],
21
+ type: result.body["type"],
22
+ systemData: !result.body.systemData
23
+ ? undefined
24
+ : {
25
+ createdBy: (_a = result.body.systemData) === null || _a === void 0 ? void 0 : _a["createdBy"],
26
+ createdByType: (_b = result.body.systemData) === null || _b === void 0 ? void 0 : _b["createdByType"],
27
+ createdAt: ((_c = result.body.systemData) === null || _c === void 0 ? void 0 : _c["createdAt"]) !== undefined
28
+ ? new Date((_d = result.body.systemData) === null || _d === void 0 ? void 0 : _d["createdAt"])
29
+ : undefined,
30
+ lastModifiedBy: (_e = result.body.systemData) === null || _e === void 0 ? void 0 : _e["lastModifiedBy"],
31
+ lastModifiedByType: (_f = result.body.systemData) === null || _f === void 0 ? void 0 : _f["lastModifiedByType"],
32
+ lastModifiedAt: ((_g = result.body.systemData) === null || _g === void 0 ? void 0 : _g["lastModifiedAt"]) !== undefined
33
+ ? new Date((_h = result.body.systemData) === null || _h === void 0 ? void 0 : _h["lastModifiedAt"])
34
+ : undefined,
35
+ },
36
+ properties: !result.body.properties
37
+ ? undefined
38
+ : {
39
+ instanceCountSummary: (_j = result.body.properties) === null || _j === void 0 ? void 0 : _j["instanceCountSummary"].map((p) => {
40
+ return {
41
+ zone: p["zone"],
42
+ instanceCountsByState: p["instanceCountsByState"].map((p) => {
43
+ return { state: p["state"], count: p["count"] };
44
+ }),
45
+ };
46
+ }),
47
+ provisioningState: (_k = result.body.properties) === null || _k === void 0 ? void 0 : _k["provisioningState"],
48
+ },
49
+ };
50
+ }
51
+ /** Get a StandbyVirtualMachinePoolRuntimeViewResource */
52
+ export async function standbyVirtualMachinePoolRuntimeViewsGet(context, subscriptionId, resourceGroupName, standbyVirtualMachinePoolName, runtimeView, options = {
53
+ requestOptions: {},
54
+ }) {
55
+ const result = await _standbyVirtualMachinePoolRuntimeViewsGetSend(context, subscriptionId, resourceGroupName, standbyVirtualMachinePoolName, runtimeView, options);
56
+ return _standbyVirtualMachinePoolRuntimeViewsGetDeserialize(result);
57
+ }
58
+ export function _standbyVirtualMachinePoolRuntimeViewsListByStandbyPoolSend(context, subscriptionId, resourceGroupName, standbyVirtualMachinePoolName, options = {
59
+ requestOptions: {},
60
+ }) {
61
+ return context
62
+ .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/{standbyVirtualMachinePoolName}/runtimeViews", subscriptionId, resourceGroupName, standbyVirtualMachinePoolName)
63
+ .get(Object.assign({}, operationOptionsToRequestParameters(options)));
64
+ }
65
+ export async function _standbyVirtualMachinePoolRuntimeViewsListByStandbyPoolDeserialize(result) {
66
+ const expectedStatuses = ["200"];
67
+ if (!expectedStatuses.includes(result.status)) {
68
+ throw createRestError(result);
69
+ }
70
+ return {
71
+ value: result.body["value"].map((p) => {
72
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
73
+ return {
74
+ id: p["id"],
75
+ name: p["name"],
76
+ type: p["type"],
77
+ systemData: !p.systemData
78
+ ? undefined
79
+ : {
80
+ createdBy: (_a = p.systemData) === null || _a === void 0 ? void 0 : _a["createdBy"],
81
+ createdByType: (_b = p.systemData) === null || _b === void 0 ? void 0 : _b["createdByType"],
82
+ createdAt: ((_c = p.systemData) === null || _c === void 0 ? void 0 : _c["createdAt"]) !== undefined
83
+ ? new Date((_d = p.systemData) === null || _d === void 0 ? void 0 : _d["createdAt"])
84
+ : undefined,
85
+ lastModifiedBy: (_e = p.systemData) === null || _e === void 0 ? void 0 : _e["lastModifiedBy"],
86
+ lastModifiedByType: (_f = p.systemData) === null || _f === void 0 ? void 0 : _f["lastModifiedByType"],
87
+ lastModifiedAt: ((_g = p.systemData) === null || _g === void 0 ? void 0 : _g["lastModifiedAt"]) !== undefined
88
+ ? new Date((_h = p.systemData) === null || _h === void 0 ? void 0 : _h["lastModifiedAt"])
89
+ : undefined,
90
+ },
91
+ properties: !p.properties
92
+ ? undefined
93
+ : {
94
+ instanceCountSummary: (_j = p.properties) === null || _j === void 0 ? void 0 : _j["instanceCountSummary"].map((p) => {
95
+ return {
96
+ zone: p["zone"],
97
+ instanceCountsByState: p["instanceCountsByState"].map((p) => {
98
+ return { state: p["state"], count: p["count"] };
99
+ }),
100
+ };
101
+ }),
102
+ provisioningState: (_k = p.properties) === null || _k === void 0 ? void 0 : _k["provisioningState"],
103
+ },
104
+ };
105
+ }),
106
+ nextLink: result.body["nextLink"],
107
+ };
108
+ }
109
+ /** List StandbyVirtualMachinePoolRuntimeViewResource resources by StandbyVirtualMachinePoolResource */
110
+ export function standbyVirtualMachinePoolRuntimeViewsListByStandbyPool(context, subscriptionId, resourceGroupName, standbyVirtualMachinePoolName, options = {
111
+ requestOptions: {},
112
+ }) {
113
+ return buildPagedAsyncIterator(context, () => _standbyVirtualMachinePoolRuntimeViewsListByStandbyPoolSend(context, subscriptionId, resourceGroupName, standbyVirtualMachinePoolName, options), _standbyVirtualMachinePoolRuntimeViewsListByStandbyPoolDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
114
+ }
115
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/standbyVirtualMachinePoolRuntimeViews/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAOlC,OAAO,EAEL,mCAAmC,EAEnC,eAAe,GAChB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAEL,uBAAuB,GACxB,MAAM,uCAAuC,CAAC;AAM/C,MAAM,UAAU,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,mCAAmC,CAAC,OAAO,CAAC,EAAG,CAAC;AAC9D,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,oDAAoD,CACxE,MAA6B;;IAE7B,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,eA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,EAAE,EAAE;4BAC1E,OAAO;gCACL,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC;gCACf,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,MAAM,UAAU,sDAAsD,CACpE,OAAe,EACf,cAAsB,EACtB,iBAAyB,EACzB,6BAAqC,EACrC,UAAgF;IAC9E,cAAc,EAAE,EAAE;CACnB;IAED,OAAO,uBAAuB,CAC5B,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 StandbyVirtualMachinePoolRuntimeViewResource,\n _StandbyVirtualMachinePoolRuntimeViewResourceListResult,\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 StandbyVirtualMachinePoolRuntimeViewsGetOptionalParams,\n StandbyVirtualMachinePoolRuntimeViewsListByStandbyPoolOptionalParams,\n} from \"../../models/options.js\";\n\nexport function _standbyVirtualMachinePoolRuntimeViewsGetSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n standbyVirtualMachinePoolName: string,\n runtimeView: string,\n options: StandbyVirtualMachinePoolRuntimeViewsGetOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/{standbyVirtualMachinePoolName}/runtimeViews/{runtimeView}\",\n subscriptionId,\n resourceGroupName,\n standbyVirtualMachinePoolName,\n runtimeView,\n )\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _standbyVirtualMachinePoolRuntimeViewsGetDeserialize(\n result: PathUncheckedResponse,\n): Promise<StandbyVirtualMachinePoolRuntimeViewResource> {\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 zone: p[\"zone\"],\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 StandbyVirtualMachinePoolRuntimeViewResource */\nexport async function standbyVirtualMachinePoolRuntimeViewsGet(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n standbyVirtualMachinePoolName: string,\n runtimeView: string,\n options: StandbyVirtualMachinePoolRuntimeViewsGetOptionalParams = {\n requestOptions: {},\n },\n): Promise<StandbyVirtualMachinePoolRuntimeViewResource> {\n const result = await _standbyVirtualMachinePoolRuntimeViewsGetSend(\n context,\n subscriptionId,\n resourceGroupName,\n standbyVirtualMachinePoolName,\n runtimeView,\n options,\n );\n return _standbyVirtualMachinePoolRuntimeViewsGetDeserialize(result);\n}\n\nexport function _standbyVirtualMachinePoolRuntimeViewsListByStandbyPoolSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n standbyVirtualMachinePoolName: string,\n options: StandbyVirtualMachinePoolRuntimeViewsListByStandbyPoolOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/{standbyVirtualMachinePoolName}/runtimeViews\",\n subscriptionId,\n resourceGroupName,\n standbyVirtualMachinePoolName,\n )\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _standbyVirtualMachinePoolRuntimeViewsListByStandbyPoolDeserialize(\n result: PathUncheckedResponse,\n): Promise<_StandbyVirtualMachinePoolRuntimeViewResourceListResult> {\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 zone: p[\"zone\"],\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 StandbyVirtualMachinePoolRuntimeViewResource resources by StandbyVirtualMachinePoolResource */\nexport function standbyVirtualMachinePoolRuntimeViewsListByStandbyPool(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n standbyVirtualMachinePoolName: string,\n options: StandbyVirtualMachinePoolRuntimeViewsListByStandbyPoolOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<StandbyVirtualMachinePoolRuntimeViewResource> {\n return buildPagedAsyncIterator(\n context,\n () =>\n _standbyVirtualMachinePoolRuntimeViewsListByStandbyPoolSend(\n context,\n subscriptionId,\n resourceGroupName,\n standbyVirtualMachinePoolName,\n options,\n ),\n _standbyVirtualMachinePoolRuntimeViewsListByStandbyPoolDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n"]}
@@ -0,0 +1,31 @@
1
+ import { StandbyVirtualMachinePoolResource, StandbyVirtualMachinePoolResourceUpdate, _StandbyVirtualMachinePoolResourceListResult } 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 { StandbyVirtualMachinePoolsGetOptionalParams, StandbyVirtualMachinePoolsCreateOrUpdateOptionalParams, StandbyVirtualMachinePoolsDeleteOptionalParams, StandbyVirtualMachinePoolsUpdateOptionalParams, StandbyVirtualMachinePoolsListByResourceGroupOptionalParams, StandbyVirtualMachinePoolsListBySubscriptionOptionalParams } from "../../models/options.js";
7
+ export declare function _standbyVirtualMachinePoolsGetSend(context: Client, subscriptionId: string, resourceGroupName: string, standbyVirtualMachinePoolName: string, options?: StandbyVirtualMachinePoolsGetOptionalParams): StreamableMethod;
8
+ export declare function _standbyVirtualMachinePoolsGetDeserialize(result: PathUncheckedResponse): Promise<StandbyVirtualMachinePoolResource>;
9
+ /** Get a StandbyVirtualMachinePoolResource */
10
+ export declare function standbyVirtualMachinePoolsGet(context: Client, subscriptionId: string, resourceGroupName: string, standbyVirtualMachinePoolName: string, options?: StandbyVirtualMachinePoolsGetOptionalParams): Promise<StandbyVirtualMachinePoolResource>;
11
+ export declare function _standbyVirtualMachinePoolsCreateOrUpdateSend(context: Client, subscriptionId: string, resourceGroupName: string, standbyVirtualMachinePoolName: string, resource: StandbyVirtualMachinePoolResource, options?: StandbyVirtualMachinePoolsCreateOrUpdateOptionalParams): StreamableMethod;
12
+ export declare function _standbyVirtualMachinePoolsCreateOrUpdateDeserialize(result: PathUncheckedResponse): Promise<StandbyVirtualMachinePoolResource>;
13
+ /** Create a StandbyVirtualMachinePoolResource */
14
+ export declare function standbyVirtualMachinePoolsCreateOrUpdate(context: Client, subscriptionId: string, resourceGroupName: string, standbyVirtualMachinePoolName: string, resource: StandbyVirtualMachinePoolResource, options?: StandbyVirtualMachinePoolsCreateOrUpdateOptionalParams): PollerLike<OperationState<StandbyVirtualMachinePoolResource>, StandbyVirtualMachinePoolResource>;
15
+ export declare function _standbyVirtualMachinePoolsDeleteSend(context: Client, subscriptionId: string, resourceGroupName: string, standbyVirtualMachinePoolName: string, options?: StandbyVirtualMachinePoolsDeleteOptionalParams): StreamableMethod;
16
+ export declare function _standbyVirtualMachinePoolsDeleteDeserialize(result: PathUncheckedResponse): Promise<void>;
17
+ /** Delete a StandbyVirtualMachinePoolResource */
18
+ export declare function standbyVirtualMachinePoolsDelete(context: Client, subscriptionId: string, resourceGroupName: string, standbyVirtualMachinePoolName: string, options?: StandbyVirtualMachinePoolsDeleteOptionalParams): PollerLike<OperationState<void>, void>;
19
+ export declare function _standbyVirtualMachinePoolsUpdateSend(context: Client, subscriptionId: string, resourceGroupName: string, standbyVirtualMachinePoolName: string, properties: StandbyVirtualMachinePoolResourceUpdate, options?: StandbyVirtualMachinePoolsUpdateOptionalParams): StreamableMethod;
20
+ export declare function _standbyVirtualMachinePoolsUpdateDeserialize(result: PathUncheckedResponse): Promise<StandbyVirtualMachinePoolResource>;
21
+ /** Update a StandbyVirtualMachinePoolResource */
22
+ export declare function standbyVirtualMachinePoolsUpdate(context: Client, subscriptionId: string, resourceGroupName: string, standbyVirtualMachinePoolName: string, properties: StandbyVirtualMachinePoolResourceUpdate, options?: StandbyVirtualMachinePoolsUpdateOptionalParams): Promise<StandbyVirtualMachinePoolResource>;
23
+ export declare function _standbyVirtualMachinePoolsListByResourceGroupSend(context: Client, subscriptionId: string, resourceGroupName: string, options?: StandbyVirtualMachinePoolsListByResourceGroupOptionalParams): StreamableMethod;
24
+ export declare function _standbyVirtualMachinePoolsListByResourceGroupDeserialize(result: PathUncheckedResponse): Promise<_StandbyVirtualMachinePoolResourceListResult>;
25
+ /** List StandbyVirtualMachinePoolResource resources by resource group */
26
+ export declare function standbyVirtualMachinePoolsListByResourceGroup(context: Client, subscriptionId: string, resourceGroupName: string, options?: StandbyVirtualMachinePoolsListByResourceGroupOptionalParams): PagedAsyncIterableIterator<StandbyVirtualMachinePoolResource>;
27
+ export declare function _standbyVirtualMachinePoolsListBySubscriptionSend(context: Client, subscriptionId: string, options?: StandbyVirtualMachinePoolsListBySubscriptionOptionalParams): StreamableMethod;
28
+ export declare function _standbyVirtualMachinePoolsListBySubscriptionDeserialize(result: PathUncheckedResponse): Promise<_StandbyVirtualMachinePoolResourceListResult>;
29
+ /** List StandbyVirtualMachinePoolResource resources by subscription ID */
30
+ export declare function standbyVirtualMachinePoolsListBySubscription(context: Client, subscriptionId: string, options?: StandbyVirtualMachinePoolsListBySubscriptionOptionalParams): PagedAsyncIterableIterator<StandbyVirtualMachinePoolResource>;
31
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/standbyVirtualMachinePools/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,CA2C5C;AAED,8CAA8C;AAC9C,wBAAsB,6BAA6B,CACjD,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MA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
3
+ import { standbyVirtualMachinePoolResourcePropertiesSerializer, standbyVirtualMachinePoolResourceUpdatePropertiesSerializer, } from "../../models/models.js";
4
+ import { operationOptionsToRequestParameters, createRestError, } from "@azure-rest/core-client";
5
+ import { serializeRecord } from "../../helpers/serializerHelpers.js";
6
+ import { getLongRunningPoller } from "../../static-helpers/pollingHelpers.js";
7
+ import { buildPagedAsyncIterator, } from "../../static-helpers/pagingHelpers.js";
8
+ export function _standbyVirtualMachinePoolsGetSend(context, subscriptionId, resourceGroupName, standbyVirtualMachinePoolName, options = { requestOptions: {} }) {
9
+ return context
10
+ .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/{standbyVirtualMachinePoolName}", subscriptionId, resourceGroupName, standbyVirtualMachinePoolName)
11
+ .get(Object.assign({}, operationOptionsToRequestParameters(options)));
12
+ }
13
+ export async function _standbyVirtualMachinePoolsGetDeserialize(result) {
14
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
15
+ const expectedStatuses = ["200"];
16
+ if (!expectedStatuses.includes(result.status)) {
17
+ throw createRestError(result);
18
+ }
19
+ return {
20
+ tags: result.body["tags"],
21
+ location: result.body["location"],
22
+ id: result.body["id"],
23
+ name: result.body["name"],
24
+ type: result.body["type"],
25
+ systemData: !result.body.systemData
26
+ ? undefined
27
+ : {
28
+ createdBy: (_a = result.body.systemData) === null || _a === void 0 ? void 0 : _a["createdBy"],
29
+ createdByType: (_b = result.body.systemData) === null || _b === void 0 ? void 0 : _b["createdByType"],
30
+ createdAt: ((_c = result.body.systemData) === null || _c === void 0 ? void 0 : _c["createdAt"]) !== undefined
31
+ ? new Date((_d = result.body.systemData) === null || _d === void 0 ? void 0 : _d["createdAt"])
32
+ : undefined,
33
+ lastModifiedBy: (_e = result.body.systemData) === null || _e === void 0 ? void 0 : _e["lastModifiedBy"],
34
+ lastModifiedByType: (_f = result.body.systemData) === null || _f === void 0 ? void 0 : _f["lastModifiedByType"],
35
+ lastModifiedAt: ((_g = result.body.systemData) === null || _g === void 0 ? void 0 : _g["lastModifiedAt"]) !== undefined
36
+ ? new Date((_h = result.body.systemData) === null || _h === void 0 ? void 0 : _h["lastModifiedAt"])
37
+ : undefined,
38
+ },
39
+ properties: !result.body.properties
40
+ ? undefined
41
+ : {
42
+ elasticityProfile: !((_j = result.body.properties) === null || _j === void 0 ? void 0 : _j.elasticityProfile)
43
+ ? undefined
44
+ : {
45
+ maxReadyCapacity: (_l = (_k = result.body.properties) === null || _k === void 0 ? void 0 : _k.elasticityProfile) === null || _l === void 0 ? void 0 : _l["maxReadyCapacity"],
46
+ minReadyCapacity: (_o = (_m = result.body.properties) === null || _m === void 0 ? void 0 : _m.elasticityProfile) === null || _o === void 0 ? void 0 : _o["minReadyCapacity"],
47
+ },
48
+ virtualMachineState: (_p = result.body.properties) === null || _p === void 0 ? void 0 : _p["virtualMachineState"],
49
+ attachedVirtualMachineScaleSetId: (_q = result.body.properties) === null || _q === void 0 ? void 0 : _q["attachedVirtualMachineScaleSetId"],
50
+ provisioningState: (_r = result.body.properties) === null || _r === void 0 ? void 0 : _r["provisioningState"],
51
+ },
52
+ };
53
+ }
54
+ /** Get a StandbyVirtualMachinePoolResource */
55
+ export async function standbyVirtualMachinePoolsGet(context, subscriptionId, resourceGroupName, standbyVirtualMachinePoolName, options = { requestOptions: {} }) {
56
+ const result = await _standbyVirtualMachinePoolsGetSend(context, subscriptionId, resourceGroupName, standbyVirtualMachinePoolName, options);
57
+ return _standbyVirtualMachinePoolsGetDeserialize(result);
58
+ }
59
+ export function _standbyVirtualMachinePoolsCreateOrUpdateSend(context, subscriptionId, resourceGroupName, standbyVirtualMachinePoolName, resource, options = {
60
+ requestOptions: {},
61
+ }) {
62
+ return context
63
+ .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/{standbyVirtualMachinePoolName}", subscriptionId, resourceGroupName, standbyVirtualMachinePoolName)
64
+ .put(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { body: {
65
+ tags: !resource.tags ? resource.tags : serializeRecord(resource.tags),
66
+ location: resource["location"],
67
+ properties: !resource.properties
68
+ ? resource.properties
69
+ : standbyVirtualMachinePoolResourcePropertiesSerializer(resource.properties),
70
+ } }));
71
+ }
72
+ export async function _standbyVirtualMachinePoolsCreateOrUpdateDeserialize(result) {
73
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
74
+ const expectedStatuses = ["200", "201"];
75
+ if (!expectedStatuses.includes(result.status)) {
76
+ throw createRestError(result);
77
+ }
78
+ return {
79
+ tags: result.body["tags"],
80
+ location: result.body["location"],
81
+ id: result.body["id"],
82
+ name: result.body["name"],
83
+ type: result.body["type"],
84
+ systemData: !result.body.systemData
85
+ ? undefined
86
+ : {
87
+ createdBy: (_a = result.body.systemData) === null || _a === void 0 ? void 0 : _a["createdBy"],
88
+ createdByType: (_b = result.body.systemData) === null || _b === void 0 ? void 0 : _b["createdByType"],
89
+ createdAt: ((_c = result.body.systemData) === null || _c === void 0 ? void 0 : _c["createdAt"]) !== undefined
90
+ ? new Date((_d = result.body.systemData) === null || _d === void 0 ? void 0 : _d["createdAt"])
91
+ : undefined,
92
+ lastModifiedBy: (_e = result.body.systemData) === null || _e === void 0 ? void 0 : _e["lastModifiedBy"],
93
+ lastModifiedByType: (_f = result.body.systemData) === null || _f === void 0 ? void 0 : _f["lastModifiedByType"],
94
+ lastModifiedAt: ((_g = result.body.systemData) === null || _g === void 0 ? void 0 : _g["lastModifiedAt"]) !== undefined
95
+ ? new Date((_h = result.body.systemData) === null || _h === void 0 ? void 0 : _h["lastModifiedAt"])
96
+ : undefined,
97
+ },
98
+ properties: !result.body.properties
99
+ ? undefined
100
+ : {
101
+ elasticityProfile: !((_j = result.body.properties) === null || _j === void 0 ? void 0 : _j.elasticityProfile)
102
+ ? undefined
103
+ : {
104
+ maxReadyCapacity: (_l = (_k = result.body.properties) === null || _k === void 0 ? void 0 : _k.elasticityProfile) === null || _l === void 0 ? void 0 : _l["maxReadyCapacity"],
105
+ minReadyCapacity: (_o = (_m = result.body.properties) === null || _m === void 0 ? void 0 : _m.elasticityProfile) === null || _o === void 0 ? void 0 : _o["minReadyCapacity"],
106
+ },
107
+ virtualMachineState: (_p = result.body.properties) === null || _p === void 0 ? void 0 : _p["virtualMachineState"],
108
+ attachedVirtualMachineScaleSetId: (_q = result.body.properties) === null || _q === void 0 ? void 0 : _q["attachedVirtualMachineScaleSetId"],
109
+ provisioningState: (_r = result.body.properties) === null || _r === void 0 ? void 0 : _r["provisioningState"],
110
+ },
111
+ };
112
+ }
113
+ /** Create a StandbyVirtualMachinePoolResource */
114
+ export function standbyVirtualMachinePoolsCreateOrUpdate(context, subscriptionId, resourceGroupName, standbyVirtualMachinePoolName, resource, options = {
115
+ requestOptions: {},
116
+ }) {
117
+ return getLongRunningPoller(context, _standbyVirtualMachinePoolsCreateOrUpdateDeserialize, ["200", "201"], {
118
+ updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
119
+ abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
120
+ getInitialResponse: () => _standbyVirtualMachinePoolsCreateOrUpdateSend(context, subscriptionId, resourceGroupName, standbyVirtualMachinePoolName, resource, options),
121
+ resourceLocationConfig: "azure-async-operation",
122
+ });
123
+ }
124
+ export function _standbyVirtualMachinePoolsDeleteSend(context, subscriptionId, resourceGroupName, standbyVirtualMachinePoolName, options = {
125
+ requestOptions: {},
126
+ }) {
127
+ return context
128
+ .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/{standbyVirtualMachinePoolName}", subscriptionId, resourceGroupName, standbyVirtualMachinePoolName)
129
+ .delete(Object.assign({}, operationOptionsToRequestParameters(options)));
130
+ }
131
+ export async function _standbyVirtualMachinePoolsDeleteDeserialize(result) {
132
+ const expectedStatuses = ["202", "204", "200"];
133
+ if (!expectedStatuses.includes(result.status)) {
134
+ throw createRestError(result);
135
+ }
136
+ return;
137
+ }
138
+ /** Delete a StandbyVirtualMachinePoolResource */
139
+ export function standbyVirtualMachinePoolsDelete(context, subscriptionId, resourceGroupName, standbyVirtualMachinePoolName, options = {
140
+ requestOptions: {},
141
+ }) {
142
+ return getLongRunningPoller(context, _standbyVirtualMachinePoolsDeleteDeserialize, ["202", "204", "200"], {
143
+ updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
144
+ abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
145
+ getInitialResponse: () => _standbyVirtualMachinePoolsDeleteSend(context, subscriptionId, resourceGroupName, standbyVirtualMachinePoolName, options),
146
+ resourceLocationConfig: "location",
147
+ });
148
+ }
149
+ export function _standbyVirtualMachinePoolsUpdateSend(context, subscriptionId, resourceGroupName, standbyVirtualMachinePoolName, properties, options = {
150
+ requestOptions: {},
151
+ }) {
152
+ return context
153
+ .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/{standbyVirtualMachinePoolName}", subscriptionId, resourceGroupName, standbyVirtualMachinePoolName)
154
+ .patch(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { body: {
155
+ tags: !properties.tags ? properties.tags : serializeRecord(properties.tags),
156
+ properties: !properties.properties
157
+ ? properties.properties
158
+ : standbyVirtualMachinePoolResourceUpdatePropertiesSerializer(properties.properties),
159
+ } }));
160
+ }
161
+ export async function _standbyVirtualMachinePoolsUpdateDeserialize(result) {
162
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
163
+ const expectedStatuses = ["200"];
164
+ if (!expectedStatuses.includes(result.status)) {
165
+ throw createRestError(result);
166
+ }
167
+ return {
168
+ tags: result.body["tags"],
169
+ location: result.body["location"],
170
+ id: result.body["id"],
171
+ name: result.body["name"],
172
+ type: result.body["type"],
173
+ systemData: !result.body.systemData
174
+ ? undefined
175
+ : {
176
+ createdBy: (_a = result.body.systemData) === null || _a === void 0 ? void 0 : _a["createdBy"],
177
+ createdByType: (_b = result.body.systemData) === null || _b === void 0 ? void 0 : _b["createdByType"],
178
+ createdAt: ((_c = result.body.systemData) === null || _c === void 0 ? void 0 : _c["createdAt"]) !== undefined
179
+ ? new Date((_d = result.body.systemData) === null || _d === void 0 ? void 0 : _d["createdAt"])
180
+ : undefined,
181
+ lastModifiedBy: (_e = result.body.systemData) === null || _e === void 0 ? void 0 : _e["lastModifiedBy"],
182
+ lastModifiedByType: (_f = result.body.systemData) === null || _f === void 0 ? void 0 : _f["lastModifiedByType"],
183
+ lastModifiedAt: ((_g = result.body.systemData) === null || _g === void 0 ? void 0 : _g["lastModifiedAt"]) !== undefined
184
+ ? new Date((_h = result.body.systemData) === null || _h === void 0 ? void 0 : _h["lastModifiedAt"])
185
+ : undefined,
186
+ },
187
+ properties: !result.body.properties
188
+ ? undefined
189
+ : {
190
+ elasticityProfile: !((_j = result.body.properties) === null || _j === void 0 ? void 0 : _j.elasticityProfile)
191
+ ? undefined
192
+ : {
193
+ maxReadyCapacity: (_l = (_k = result.body.properties) === null || _k === void 0 ? void 0 : _k.elasticityProfile) === null || _l === void 0 ? void 0 : _l["maxReadyCapacity"],
194
+ minReadyCapacity: (_o = (_m = result.body.properties) === null || _m === void 0 ? void 0 : _m.elasticityProfile) === null || _o === void 0 ? void 0 : _o["minReadyCapacity"],
195
+ },
196
+ virtualMachineState: (_p = result.body.properties) === null || _p === void 0 ? void 0 : _p["virtualMachineState"],
197
+ attachedVirtualMachineScaleSetId: (_q = result.body.properties) === null || _q === void 0 ? void 0 : _q["attachedVirtualMachineScaleSetId"],
198
+ provisioningState: (_r = result.body.properties) === null || _r === void 0 ? void 0 : _r["provisioningState"],
199
+ },
200
+ };
201
+ }
202
+ /** Update a StandbyVirtualMachinePoolResource */
203
+ export async function standbyVirtualMachinePoolsUpdate(context, subscriptionId, resourceGroupName, standbyVirtualMachinePoolName, properties, options = {
204
+ requestOptions: {},
205
+ }) {
206
+ const result = await _standbyVirtualMachinePoolsUpdateSend(context, subscriptionId, resourceGroupName, standbyVirtualMachinePoolName, properties, options);
207
+ return _standbyVirtualMachinePoolsUpdateDeserialize(result);
208
+ }
209
+ export function _standbyVirtualMachinePoolsListByResourceGroupSend(context, subscriptionId, resourceGroupName, options = {
210
+ requestOptions: {},
211
+ }) {
212
+ return context
213
+ .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools", subscriptionId, resourceGroupName)
214
+ .get(Object.assign({}, operationOptionsToRequestParameters(options)));
215
+ }
216
+ export async function _standbyVirtualMachinePoolsListByResourceGroupDeserialize(result) {
217
+ const expectedStatuses = ["200"];
218
+ if (!expectedStatuses.includes(result.status)) {
219
+ throw createRestError(result);
220
+ }
221
+ return {
222
+ value: result.body["value"].map((p) => {
223
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
224
+ return {
225
+ tags: p["tags"],
226
+ location: p["location"],
227
+ id: p["id"],
228
+ name: p["name"],
229
+ type: p["type"],
230
+ systemData: !p.systemData
231
+ ? undefined
232
+ : {
233
+ createdBy: (_a = p.systemData) === null || _a === void 0 ? void 0 : _a["createdBy"],
234
+ createdByType: (_b = p.systemData) === null || _b === void 0 ? void 0 : _b["createdByType"],
235
+ createdAt: ((_c = p.systemData) === null || _c === void 0 ? void 0 : _c["createdAt"]) !== undefined
236
+ ? new Date((_d = p.systemData) === null || _d === void 0 ? void 0 : _d["createdAt"])
237
+ : undefined,
238
+ lastModifiedBy: (_e = p.systemData) === null || _e === void 0 ? void 0 : _e["lastModifiedBy"],
239
+ lastModifiedByType: (_f = p.systemData) === null || _f === void 0 ? void 0 : _f["lastModifiedByType"],
240
+ lastModifiedAt: ((_g = p.systemData) === null || _g === void 0 ? void 0 : _g["lastModifiedAt"]) !== undefined
241
+ ? new Date((_h = p.systemData) === null || _h === void 0 ? void 0 : _h["lastModifiedAt"])
242
+ : undefined,
243
+ },
244
+ properties: !p.properties
245
+ ? undefined
246
+ : {
247
+ elasticityProfile: !((_j = p.properties) === null || _j === void 0 ? void 0 : _j.elasticityProfile)
248
+ ? undefined
249
+ : {
250
+ maxReadyCapacity: (_l = (_k = p.properties) === null || _k === void 0 ? void 0 : _k.elasticityProfile) === null || _l === void 0 ? void 0 : _l["maxReadyCapacity"],
251
+ minReadyCapacity: (_o = (_m = p.properties) === null || _m === void 0 ? void 0 : _m.elasticityProfile) === null || _o === void 0 ? void 0 : _o["minReadyCapacity"],
252
+ },
253
+ virtualMachineState: (_p = p.properties) === null || _p === void 0 ? void 0 : _p["virtualMachineState"],
254
+ attachedVirtualMachineScaleSetId: (_q = p.properties) === null || _q === void 0 ? void 0 : _q["attachedVirtualMachineScaleSetId"],
255
+ provisioningState: (_r = p.properties) === null || _r === void 0 ? void 0 : _r["provisioningState"],
256
+ },
257
+ };
258
+ }),
259
+ nextLink: result.body["nextLink"],
260
+ };
261
+ }
262
+ /** List StandbyVirtualMachinePoolResource resources by resource group */
263
+ export function standbyVirtualMachinePoolsListByResourceGroup(context, subscriptionId, resourceGroupName, options = {
264
+ requestOptions: {},
265
+ }) {
266
+ return buildPagedAsyncIterator(context, () => _standbyVirtualMachinePoolsListByResourceGroupSend(context, subscriptionId, resourceGroupName, options), _standbyVirtualMachinePoolsListByResourceGroupDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
267
+ }
268
+ export function _standbyVirtualMachinePoolsListBySubscriptionSend(context, subscriptionId, options = {
269
+ requestOptions: {},
270
+ }) {
271
+ return context
272
+ .path("/subscriptions/{subscriptionId}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools", subscriptionId)
273
+ .get(Object.assign({}, operationOptionsToRequestParameters(options)));
274
+ }
275
+ export async function _standbyVirtualMachinePoolsListBySubscriptionDeserialize(result) {
276
+ const expectedStatuses = ["200"];
277
+ if (!expectedStatuses.includes(result.status)) {
278
+ throw createRestError(result);
279
+ }
280
+ return {
281
+ value: result.body["value"].map((p) => {
282
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
283
+ return {
284
+ tags: p["tags"],
285
+ location: p["location"],
286
+ id: p["id"],
287
+ name: p["name"],
288
+ type: p["type"],
289
+ systemData: !p.systemData
290
+ ? undefined
291
+ : {
292
+ createdBy: (_a = p.systemData) === null || _a === void 0 ? void 0 : _a["createdBy"],
293
+ createdByType: (_b = p.systemData) === null || _b === void 0 ? void 0 : _b["createdByType"],
294
+ createdAt: ((_c = p.systemData) === null || _c === void 0 ? void 0 : _c["createdAt"]) !== undefined
295
+ ? new Date((_d = p.systemData) === null || _d === void 0 ? void 0 : _d["createdAt"])
296
+ : undefined,
297
+ lastModifiedBy: (_e = p.systemData) === null || _e === void 0 ? void 0 : _e["lastModifiedBy"],
298
+ lastModifiedByType: (_f = p.systemData) === null || _f === void 0 ? void 0 : _f["lastModifiedByType"],
299
+ lastModifiedAt: ((_g = p.systemData) === null || _g === void 0 ? void 0 : _g["lastModifiedAt"]) !== undefined
300
+ ? new Date((_h = p.systemData) === null || _h === void 0 ? void 0 : _h["lastModifiedAt"])
301
+ : undefined,
302
+ },
303
+ properties: !p.properties
304
+ ? undefined
305
+ : {
306
+ elasticityProfile: !((_j = p.properties) === null || _j === void 0 ? void 0 : _j.elasticityProfile)
307
+ ? undefined
308
+ : {
309
+ maxReadyCapacity: (_l = (_k = p.properties) === null || _k === void 0 ? void 0 : _k.elasticityProfile) === null || _l === void 0 ? void 0 : _l["maxReadyCapacity"],
310
+ minReadyCapacity: (_o = (_m = p.properties) === null || _m === void 0 ? void 0 : _m.elasticityProfile) === null || _o === void 0 ? void 0 : _o["minReadyCapacity"],
311
+ },
312
+ virtualMachineState: (_p = p.properties) === null || _p === void 0 ? void 0 : _p["virtualMachineState"],
313
+ attachedVirtualMachineScaleSetId: (_q = p.properties) === null || _q === void 0 ? void 0 : _q["attachedVirtualMachineScaleSetId"],
314
+ provisioningState: (_r = p.properties) === null || _r === void 0 ? void 0 : _r["provisioningState"],
315
+ },
316
+ };
317
+ }),
318
+ nextLink: result.body["nextLink"],
319
+ };
320
+ }
321
+ /** List StandbyVirtualMachinePoolResource resources by subscription ID */
322
+ export function standbyVirtualMachinePoolsListBySubscription(context, subscriptionId, options = {
323
+ requestOptions: {},
324
+ }) {
325
+ return buildPagedAsyncIterator(context, () => _standbyVirtualMachinePoolsListBySubscriptionSend(context, subscriptionId, options), _standbyVirtualMachinePoolsListBySubscriptionDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
326
+ }
327
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/standbyVirtualMachinePools/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EACL,qDAAqD,EACrD,2DAA2D,GAI5D,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAEL,mCAAmC,EAEnC,eAAe,GAChB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AACrE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,EAEL,uBAAuB,GACxB,MAAM,uCAAuC,CAAC;AAW/C,MAAM,UAAU,kCAAkC,CAChD,OAAe,EACf,cAAsB,EACtB,iBAAyB,EACzB,6BAAqC,EACrC,UAAuD,EAAE,cAAc,EAAE,EAAE,EAAE;IAE7E,OAAO,OAAO;SACX,IAAI,CACH,+JAA+J,EAC/J,cAAc,EACd,iBAAiB,EACjB,6BAA6B,CAC9B;SACA,GAAG,mBAAM,mCAAmC,CAAC,OAAO,CAAC,EAAG,CAAC;AAC9D,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,yCAAyC,CAC7D,MAA6B;;IAE7B,MAAM,gBAAgB,GAAG,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ACxD,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 standbyVirtualMachinePoolResourcePropertiesSerializer,\n standbyVirtualMachinePoolResourceUpdatePropertiesSerializer,\n StandbyVirtualMachinePoolResource,\n StandbyVirtualMachinePoolResourceUpdate,\n _StandbyVirtualMachinePoolResourceListResult,\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 { serializeRecord } from \"../../helpers/serializerHelpers.js\";\nimport { getLongRunningPoller } from \"../../static-helpers/pollingHelpers.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport { PollerLike, OperationState } from \"@azure/core-lro\";\nimport {\n StandbyVirtualMachinePoolsGetOptionalParams,\n StandbyVirtualMachinePoolsCreateOrUpdateOptionalParams,\n StandbyVirtualMachinePoolsDeleteOptionalParams,\n StandbyVirtualMachinePoolsUpdateOptionalParams,\n StandbyVirtualMachinePoolsListByResourceGroupOptionalParams,\n StandbyVirtualMachinePoolsListBySubscriptionOptionalParams,\n} from \"../../models/options.js\";\n\nexport function _standbyVirtualMachinePoolsGetSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n standbyVirtualMachinePoolName: string,\n options: StandbyVirtualMachinePoolsGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/{standbyVirtualMachinePoolName}\",\n subscriptionId,\n resourceGroupName,\n standbyVirtualMachinePoolName,\n )\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _standbyVirtualMachinePoolsGetDeserialize(\n result: PathUncheckedResponse,\n): Promise<StandbyVirtualMachinePoolResource> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return {\n tags: result.body[\"tags\"],\n location: result.body[\"location\"],\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 elasticityProfile: !result.body.properties?.elasticityProfile\n ? undefined\n : {\n maxReadyCapacity: result.body.properties?.elasticityProfile?.[\"maxReadyCapacity\"],\n minReadyCapacity: result.body.properties?.elasticityProfile?.[\"minReadyCapacity\"],\n },\n virtualMachineState: result.body.properties?.[\"virtualMachineState\"],\n attachedVirtualMachineScaleSetId:\n result.body.properties?.[\"attachedVirtualMachineScaleSetId\"],\n provisioningState: result.body.properties?.[\"provisioningState\"],\n },\n };\n}\n\n/** Get a StandbyVirtualMachinePoolResource */\nexport async function standbyVirtualMachinePoolsGet(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n standbyVirtualMachinePoolName: string,\n options: StandbyVirtualMachinePoolsGetOptionalParams = { requestOptions: {} },\n): Promise<StandbyVirtualMachinePoolResource> {\n const result = await _standbyVirtualMachinePoolsGetSend(\n context,\n subscriptionId,\n resourceGroupName,\n standbyVirtualMachinePoolName,\n options,\n );\n return _standbyVirtualMachinePoolsGetDeserialize(result);\n}\n\nexport function _standbyVirtualMachinePoolsCreateOrUpdateSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n standbyVirtualMachinePoolName: string,\n resource: StandbyVirtualMachinePoolResource,\n options: StandbyVirtualMachinePoolsCreateOrUpdateOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/{standbyVirtualMachinePoolName}\",\n subscriptionId,\n resourceGroupName,\n standbyVirtualMachinePoolName,\n )\n .put({\n ...operationOptionsToRequestParameters(options),\n body: {\n tags: !resource.tags ? resource.tags : (serializeRecord(resource.tags as any) as any),\n location: resource[\"location\"],\n properties: !resource.properties\n ? resource.properties\n : standbyVirtualMachinePoolResourcePropertiesSerializer(resource.properties),\n },\n });\n}\n\nexport async function _standbyVirtualMachinePoolsCreateOrUpdateDeserialize(\n result: PathUncheckedResponse,\n): Promise<StandbyVirtualMachinePoolResource> {\n const expectedStatuses = [\"200\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return {\n tags: result.body[\"tags\"],\n location: result.body[\"location\"],\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 elasticityProfile: !result.body.properties?.elasticityProfile\n ? undefined\n : {\n maxReadyCapacity: result.body.properties?.elasticityProfile?.[\"maxReadyCapacity\"],\n minReadyCapacity: result.body.properties?.elasticityProfile?.[\"minReadyCapacity\"],\n },\n virtualMachineState: result.body.properties?.[\"virtualMachineState\"],\n attachedVirtualMachineScaleSetId:\n result.body.properties?.[\"attachedVirtualMachineScaleSetId\"],\n provisioningState: result.body.properties?.[\"provisioningState\"],\n },\n };\n}\n\n/** Create a StandbyVirtualMachinePoolResource */\nexport function standbyVirtualMachinePoolsCreateOrUpdate(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n standbyVirtualMachinePoolName: string,\n resource: StandbyVirtualMachinePoolResource,\n options: StandbyVirtualMachinePoolsCreateOrUpdateOptionalParams = {\n requestOptions: {},\n },\n): PollerLike<\n OperationState<StandbyVirtualMachinePoolResource>,\n StandbyVirtualMachinePoolResource\n> {\n return getLongRunningPoller(\n context,\n _standbyVirtualMachinePoolsCreateOrUpdateDeserialize,\n [\"200\", \"201\"],\n {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _standbyVirtualMachinePoolsCreateOrUpdateSend(\n context,\n subscriptionId,\n resourceGroupName,\n standbyVirtualMachinePoolName,\n resource,\n options,\n ),\n resourceLocationConfig: \"azure-async-operation\",\n },\n ) as PollerLike<\n OperationState<StandbyVirtualMachinePoolResource>,\n StandbyVirtualMachinePoolResource\n >;\n}\n\nexport function _standbyVirtualMachinePoolsDeleteSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n standbyVirtualMachinePoolName: string,\n options: StandbyVirtualMachinePoolsDeleteOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/{standbyVirtualMachinePoolName}\",\n subscriptionId,\n resourceGroupName,\n standbyVirtualMachinePoolName,\n )\n .delete({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _standbyVirtualMachinePoolsDeleteDeserialize(\n result: PathUncheckedResponse,\n): Promise<void> {\n const expectedStatuses = [\"202\", \"204\", \"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return;\n}\n\n/** Delete a StandbyVirtualMachinePoolResource */\nexport function standbyVirtualMachinePoolsDelete(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n standbyVirtualMachinePoolName: string,\n options: StandbyVirtualMachinePoolsDeleteOptionalParams = {\n requestOptions: {},\n },\n): PollerLike<OperationState<void>, void> {\n return getLongRunningPoller(\n context,\n _standbyVirtualMachinePoolsDeleteDeserialize,\n [\"202\", \"204\", \"200\"],\n {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _standbyVirtualMachinePoolsDeleteSend(\n context,\n subscriptionId,\n resourceGroupName,\n standbyVirtualMachinePoolName,\n options,\n ),\n resourceLocationConfig: \"location\",\n },\n ) as PollerLike<OperationState<void>, void>;\n}\n\nexport function _standbyVirtualMachinePoolsUpdateSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n standbyVirtualMachinePoolName: string,\n properties: StandbyVirtualMachinePoolResourceUpdate,\n options: StandbyVirtualMachinePoolsUpdateOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/{standbyVirtualMachinePoolName}\",\n subscriptionId,\n resourceGroupName,\n standbyVirtualMachinePoolName,\n )\n .patch({\n ...operationOptionsToRequestParameters(options),\n body: {\n tags: !properties.tags ? properties.tags : (serializeRecord(properties.tags as any) as any),\n properties: !properties.properties\n ? properties.properties\n : standbyVirtualMachinePoolResourceUpdatePropertiesSerializer(properties.properties),\n },\n });\n}\n\nexport async function _standbyVirtualMachinePoolsUpdateDeserialize(\n result: PathUncheckedResponse,\n): Promise<StandbyVirtualMachinePoolResource> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return {\n tags: result.body[\"tags\"],\n location: result.body[\"location\"],\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 elasticityProfile: !result.body.properties?.elasticityProfile\n ? undefined\n : {\n maxReadyCapacity: result.body.properties?.elasticityProfile?.[\"maxReadyCapacity\"],\n minReadyCapacity: result.body.properties?.elasticityProfile?.[\"minReadyCapacity\"],\n },\n virtualMachineState: result.body.properties?.[\"virtualMachineState\"],\n attachedVirtualMachineScaleSetId:\n result.body.properties?.[\"attachedVirtualMachineScaleSetId\"],\n provisioningState: result.body.properties?.[\"provisioningState\"],\n },\n };\n}\n\n/** Update a StandbyVirtualMachinePoolResource */\nexport async function standbyVirtualMachinePoolsUpdate(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n standbyVirtualMachinePoolName: string,\n properties: StandbyVirtualMachinePoolResourceUpdate,\n options: StandbyVirtualMachinePoolsUpdateOptionalParams = {\n requestOptions: {},\n },\n): Promise<StandbyVirtualMachinePoolResource> {\n const result = await _standbyVirtualMachinePoolsUpdateSend(\n context,\n subscriptionId,\n resourceGroupName,\n standbyVirtualMachinePoolName,\n properties,\n options,\n );\n return _standbyVirtualMachinePoolsUpdateDeserialize(result);\n}\n\nexport function _standbyVirtualMachinePoolsListByResourceGroupSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n options: StandbyVirtualMachinePoolsListByResourceGroupOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools\",\n subscriptionId,\n resourceGroupName,\n )\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _standbyVirtualMachinePoolsListByResourceGroupDeserialize(\n result: PathUncheckedResponse,\n): Promise<_StandbyVirtualMachinePoolResourceListResult> {\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 tags: p[\"tags\"],\n location: p[\"location\"],\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 elasticityProfile: !p.properties?.elasticityProfile\n ? undefined\n : {\n maxReadyCapacity: p.properties?.elasticityProfile?.[\"maxReadyCapacity\"],\n minReadyCapacity: p.properties?.elasticityProfile?.[\"minReadyCapacity\"],\n },\n virtualMachineState: p.properties?.[\"virtualMachineState\"],\n attachedVirtualMachineScaleSetId: p.properties?.[\"attachedVirtualMachineScaleSetId\"],\n provisioningState: p.properties?.[\"provisioningState\"],\n },\n };\n }),\n nextLink: result.body[\"nextLink\"],\n };\n}\n\n/** List StandbyVirtualMachinePoolResource resources by resource group */\nexport function standbyVirtualMachinePoolsListByResourceGroup(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n options: StandbyVirtualMachinePoolsListByResourceGroupOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<StandbyVirtualMachinePoolResource> {\n return buildPagedAsyncIterator(\n context,\n () =>\n _standbyVirtualMachinePoolsListByResourceGroupSend(\n context,\n subscriptionId,\n resourceGroupName,\n options,\n ),\n _standbyVirtualMachinePoolsListByResourceGroupDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n\nexport function _standbyVirtualMachinePoolsListBySubscriptionSend(\n context: Client,\n subscriptionId: string,\n options: StandbyVirtualMachinePoolsListBySubscriptionOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools\",\n subscriptionId,\n )\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _standbyVirtualMachinePoolsListBySubscriptionDeserialize(\n result: PathUncheckedResponse,\n): Promise<_StandbyVirtualMachinePoolResourceListResult> {\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 tags: p[\"tags\"],\n location: p[\"location\"],\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 elasticityProfile: !p.properties?.elasticityProfile\n ? undefined\n : {\n maxReadyCapacity: p.properties?.elasticityProfile?.[\"maxReadyCapacity\"],\n minReadyCapacity: p.properties?.elasticityProfile?.[\"minReadyCapacity\"],\n },\n virtualMachineState: p.properties?.[\"virtualMachineState\"],\n attachedVirtualMachineScaleSetId: p.properties?.[\"attachedVirtualMachineScaleSetId\"],\n provisioningState: p.properties?.[\"provisioningState\"],\n },\n };\n }),\n nextLink: result.body[\"nextLink\"],\n };\n}\n\n/** List StandbyVirtualMachinePoolResource resources by subscription ID */\nexport function standbyVirtualMachinePoolsListBySubscription(\n context: Client,\n subscriptionId: string,\n options: StandbyVirtualMachinePoolsListBySubscriptionOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<StandbyVirtualMachinePoolResource> {\n return buildPagedAsyncIterator(\n context,\n () => _standbyVirtualMachinePoolsListBySubscriptionSend(context, subscriptionId, options),\n _standbyVirtualMachinePoolsListBySubscriptionDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n"]}
@@ -0,0 +1,14 @@
1
+ import { StandbyVirtualMachineResource, _StandbyVirtualMachineResourceListResult } 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 { StandbyVirtualMachinesGetOptionalParams, StandbyVirtualMachinesListByStandbyVirtualMachinePoolResourceOptionalParams } from "../../models/options.js";
6
+ export declare function _standbyVirtualMachinesGetSend(context: Client, subscriptionId: string, resourceGroupName: string, standbyVirtualMachinePoolName: string, standbyVirtualMachineName: string, options?: StandbyVirtualMachinesGetOptionalParams): StreamableMethod;
7
+ export declare function _standbyVirtualMachinesGetDeserialize(result: PathUncheckedResponse): Promise<StandbyVirtualMachineResource>;
8
+ /** Get a StandbyVirtualMachineResource */
9
+ export declare function standbyVirtualMachinesGet(context: Client, subscriptionId: string, resourceGroupName: string, standbyVirtualMachinePoolName: string, standbyVirtualMachineName: string, options?: StandbyVirtualMachinesGetOptionalParams): Promise<StandbyVirtualMachineResource>;
10
+ export declare function _standbyVirtualMachinesListByStandbyVirtualMachinePoolResourceSend(context: Client, subscriptionId: string, resourceGroupName: string, standbyVirtualMachinePoolName: string, options?: StandbyVirtualMachinesListByStandbyVirtualMachinePoolResourceOptionalParams): StreamableMethod;
11
+ export declare function _standbyVirtualMachinesListByStandbyVirtualMachinePoolResourceDeserialize(result: PathUncheckedResponse): Promise<_StandbyVirtualMachineResourceListResult>;
12
+ /** List StandbyVirtualMachineResource resources by StandbyVirtualMachinePoolResource */
13
+ export declare function standbyVirtualMachinesListByStandbyVirtualMachinePoolResource(context: Client, subscriptionId: string, resourceGroupName: string, standbyVirtualMachinePoolName: string, options?: StandbyVirtualMachinesListByStandbyVirtualMachinePoolResourceOptionalParams): PagedAsyncIterableIterator<StandbyVirtualMachineResource>;
14
+ //# sourceMappingURL=index.d.ts.map