@azure/arm-standbypool 1.0.2-alpha.20250423.1 → 2.0.0

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 (566) hide show
  1. package/CHANGELOG.md +32 -7
  2. package/LICENSE +1 -1
  3. package/README.md +15 -8
  4. package/dist/browser/api/index.d.ts +1 -7
  5. package/dist/browser/api/index.d.ts.map +1 -1
  6. package/dist/browser/api/index.js +0 -6
  7. package/dist/browser/api/index.js.map +1 -1
  8. package/dist/browser/api/operations/index.d.ts +2 -9
  9. package/dist/browser/api/operations/index.d.ts.map +1 -1
  10. package/dist/browser/api/operations/index.js +1 -37
  11. package/dist/browser/api/operations/index.js.map +1 -1
  12. package/dist/browser/api/operations/operations.d.ts +10 -0
  13. package/dist/browser/api/operations/operations.d.ts.map +1 -0
  14. package/dist/browser/api/operations/operations.js +29 -0
  15. package/dist/browser/api/operations/operations.js.map +1 -0
  16. package/dist/browser/api/operations/options.d.ts +5 -0
  17. package/dist/browser/api/operations/options.d.ts.map +1 -0
  18. package/dist/browser/api/operations/options.js.map +1 -0
  19. package/dist/browser/api/standbyContainerGroupPoolRuntimeViews/index.d.ts +2 -13
  20. package/dist/browser/api/standbyContainerGroupPoolRuntimeViews/index.d.ts.map +1 -1
  21. package/dist/browser/api/standbyContainerGroupPoolRuntimeViews/index.js +1 -110
  22. package/dist/browser/api/standbyContainerGroupPoolRuntimeViews/index.js.map +1 -1
  23. package/dist/browser/api/standbyContainerGroupPoolRuntimeViews/operations.d.ts +14 -0
  24. package/dist/browser/api/standbyContainerGroupPoolRuntimeViews/operations.d.ts.map +1 -0
  25. package/dist/browser/api/standbyContainerGroupPoolRuntimeViews/operations.js +67 -0
  26. package/dist/browser/api/standbyContainerGroupPoolRuntimeViews/operations.js.map +1 -0
  27. package/dist/browser/api/standbyContainerGroupPoolRuntimeViews/options.d.ts +8 -0
  28. package/dist/browser/api/standbyContainerGroupPoolRuntimeViews/options.d.ts.map +1 -0
  29. package/dist/browser/api/standbyContainerGroupPoolRuntimeViews/options.js.map +1 -0
  30. package/dist/browser/api/standbyContainerGroupPools/index.d.ts +2 -30
  31. package/dist/browser/api/standbyContainerGroupPools/index.d.ts.map +1 -1
  32. package/dist/browser/api/standbyContainerGroupPools/index.js +1 -359
  33. package/dist/browser/api/standbyContainerGroupPools/index.js.map +1 -1
  34. package/dist/browser/api/standbyContainerGroupPools/operations.d.ts +36 -0
  35. package/dist/browser/api/standbyContainerGroupPools/operations.d.ts.map +1 -0
  36. package/dist/browser/api/standbyContainerGroupPools/operations.js +192 -0
  37. package/dist/browser/api/standbyContainerGroupPools/operations.js.map +1 -0
  38. package/dist/browser/api/standbyContainerGroupPools/options.d.ts +24 -0
  39. package/dist/browser/api/standbyContainerGroupPools/options.d.ts.map +1 -0
  40. package/dist/browser/api/standbyContainerGroupPools/options.js.map +1 -0
  41. package/dist/browser/api/standbyPoolManagementContext.d.ts +9 -3
  42. package/dist/browser/api/standbyPoolManagementContext.d.ts.map +1 -1
  43. package/dist/browser/api/standbyPoolManagementContext.js +7 -6
  44. package/dist/browser/api/standbyPoolManagementContext.js.map +1 -1
  45. package/dist/browser/api/standbyVirtualMachinePoolRuntimeViews/index.d.ts +2 -13
  46. package/dist/browser/api/standbyVirtualMachinePoolRuntimeViews/index.d.ts.map +1 -1
  47. package/dist/browser/api/standbyVirtualMachinePoolRuntimeViews/index.js +1 -112
  48. package/dist/browser/api/standbyVirtualMachinePoolRuntimeViews/index.js.map +1 -1
  49. package/dist/browser/api/standbyVirtualMachinePoolRuntimeViews/operations.d.ts +14 -0
  50. package/dist/browser/api/standbyVirtualMachinePoolRuntimeViews/operations.d.ts.map +1 -0
  51. package/dist/browser/api/standbyVirtualMachinePoolRuntimeViews/operations.js +67 -0
  52. package/dist/browser/api/standbyVirtualMachinePoolRuntimeViews/operations.js.map +1 -0
  53. package/dist/browser/api/standbyVirtualMachinePoolRuntimeViews/options.d.ts +8 -0
  54. package/dist/browser/api/standbyVirtualMachinePoolRuntimeViews/options.d.ts.map +1 -0
  55. package/dist/browser/api/standbyVirtualMachinePoolRuntimeViews/options.js +4 -0
  56. package/dist/browser/api/standbyVirtualMachinePoolRuntimeViews/options.js.map +1 -0
  57. package/dist/browser/api/standbyVirtualMachinePools/index.d.ts +2 -30
  58. package/dist/browser/api/standbyVirtualMachinePools/index.d.ts.map +1 -1
  59. package/dist/browser/api/standbyVirtualMachinePools/index.js +1 -324
  60. package/dist/browser/api/standbyVirtualMachinePools/index.js.map +1 -1
  61. package/dist/browser/api/standbyVirtualMachinePools/operations.d.ts +36 -0
  62. package/dist/browser/api/standbyVirtualMachinePools/operations.d.ts.map +1 -0
  63. package/dist/browser/api/standbyVirtualMachinePools/operations.js +192 -0
  64. package/dist/browser/api/standbyVirtualMachinePools/operations.js.map +1 -0
  65. package/dist/browser/api/standbyVirtualMachinePools/options.d.ts +24 -0
  66. package/dist/browser/api/standbyVirtualMachinePools/options.d.ts.map +1 -0
  67. package/dist/browser/api/standbyVirtualMachinePools/options.js +4 -0
  68. package/dist/browser/api/standbyVirtualMachinePools/options.js.map +1 -0
  69. package/dist/browser/api/standbyVirtualMachines/index.d.ts +2 -13
  70. package/dist/browser/api/standbyVirtualMachines/index.d.ts.map +1 -1
  71. package/dist/browser/api/standbyVirtualMachines/index.js +1 -94
  72. package/dist/browser/api/standbyVirtualMachines/index.js.map +1 -1
  73. package/dist/browser/api/standbyVirtualMachines/operations.d.ts +14 -0
  74. package/dist/browser/api/standbyVirtualMachines/operations.d.ts.map +1 -0
  75. package/dist/browser/api/standbyVirtualMachines/operations.js +63 -0
  76. package/dist/browser/api/standbyVirtualMachines/operations.js.map +1 -0
  77. package/dist/browser/api/standbyVirtualMachines/options.d.ts +8 -0
  78. package/dist/browser/api/standbyVirtualMachines/options.d.ts.map +1 -0
  79. package/dist/browser/api/standbyVirtualMachines/options.js +4 -0
  80. package/dist/browser/api/standbyVirtualMachines/options.js.map +1 -0
  81. package/dist/browser/classic/operations/index.d.ts +3 -6
  82. package/dist/browser/classic/operations/index.d.ts.map +1 -1
  83. package/dist/browser/classic/operations/index.js +5 -5
  84. package/dist/browser/classic/operations/index.js.map +1 -1
  85. package/dist/browser/classic/standbyContainerGroupPoolRuntimeViews/index.d.ts +5 -9
  86. package/dist/browser/classic/standbyContainerGroupPoolRuntimeViews/index.d.ts.map +1 -1
  87. package/dist/browser/classic/standbyContainerGroupPoolRuntimeViews/index.js +6 -6
  88. package/dist/browser/classic/standbyContainerGroupPoolRuntimeViews/index.js.map +1 -1
  89. package/dist/browser/classic/standbyContainerGroupPools/index.d.ts +18 -21
  90. package/dist/browser/classic/standbyContainerGroupPools/index.d.ts.map +1 -1
  91. package/dist/browser/classic/standbyContainerGroupPools/index.js +10 -10
  92. package/dist/browser/classic/standbyContainerGroupPools/index.js.map +1 -1
  93. package/dist/browser/classic/standbyVirtualMachinePoolRuntimeViews/index.d.ts +5 -9
  94. package/dist/browser/classic/standbyVirtualMachinePoolRuntimeViews/index.d.ts.map +1 -1
  95. package/dist/browser/classic/standbyVirtualMachinePoolRuntimeViews/index.js +6 -6
  96. package/dist/browser/classic/standbyVirtualMachinePoolRuntimeViews/index.js.map +1 -1
  97. package/dist/browser/classic/standbyVirtualMachinePools/index.d.ts +18 -21
  98. package/dist/browser/classic/standbyVirtualMachinePools/index.d.ts.map +1 -1
  99. package/dist/browser/classic/standbyVirtualMachinePools/index.js +10 -10
  100. package/dist/browser/classic/standbyVirtualMachinePools/index.js.map +1 -1
  101. package/dist/browser/classic/standbyVirtualMachines/index.d.ts +5 -9
  102. package/dist/browser/classic/standbyVirtualMachines/index.d.ts.map +1 -1
  103. package/dist/browser/classic/standbyVirtualMachines/index.js +6 -6
  104. package/dist/browser/classic/standbyVirtualMachines/index.js.map +1 -1
  105. package/dist/browser/index.d.ts +9 -2
  106. package/dist/browser/index.d.ts.map +1 -1
  107. package/dist/browser/index.js +2 -2
  108. package/dist/browser/index.js.map +1 -1
  109. package/dist/browser/models/index.d.ts +1 -2
  110. package/dist/browser/models/index.d.ts.map +1 -1
  111. package/dist/browser/models/index.js +1 -1
  112. package/dist/browser/models/index.js.map +1 -1
  113. package/dist/browser/models/models.d.ts +447 -238
  114. package/dist/browser/models/models.d.ts.map +1 -1
  115. package/dist/browser/models/models.js +546 -91
  116. package/dist/browser/models/models.js.map +1 -1
  117. package/dist/browser/restorePollerHelpers.js +11 -11
  118. package/dist/browser/restorePollerHelpers.js.map +1 -1
  119. package/dist/browser/standbyPoolManagementClient.d.ts +19 -19
  120. package/dist/browser/standbyPoolManagementClient.d.ts.map +1 -1
  121. package/dist/browser/standbyPoolManagementClient.js +16 -14
  122. package/dist/browser/standbyPoolManagementClient.js.map +1 -1
  123. package/dist/browser/static-helpers/pagingHelpers.d.ts.map +1 -1
  124. package/dist/browser/static-helpers/pagingHelpers.js +1 -1
  125. package/dist/browser/static-helpers/pagingHelpers.js.map +1 -1
  126. package/dist/browser/static-helpers/pollingHelpers.d.ts.map +1 -1
  127. package/dist/browser/static-helpers/pollingHelpers.js.map +1 -1
  128. package/dist/browser/static-helpers/urlTemplate.d.ts +5 -0
  129. package/dist/browser/static-helpers/urlTemplate.d.ts.map +1 -0
  130. package/dist/browser/static-helpers/urlTemplate.js +169 -0
  131. package/dist/browser/static-helpers/urlTemplate.js.map +1 -0
  132. package/dist/commonjs/api/index.d.ts +1 -7
  133. package/dist/commonjs/api/index.d.ts.map +1 -1
  134. package/dist/commonjs/api/index.js +1 -26
  135. package/dist/commonjs/api/index.js.map +1 -1
  136. package/dist/commonjs/api/operations/index.d.ts +2 -9
  137. package/dist/commonjs/api/operations/index.d.ts.map +1 -1
  138. package/dist/commonjs/api/operations/index.js +3 -40
  139. package/dist/commonjs/api/operations/index.js.map +1 -1
  140. package/dist/commonjs/api/operations/operations.d.ts +10 -0
  141. package/dist/commonjs/api/operations/operations.d.ts.map +1 -0
  142. package/dist/commonjs/api/operations/operations.js +34 -0
  143. package/dist/commonjs/api/operations/operations.js.map +1 -0
  144. package/dist/commonjs/api/operations/options.d.ts +5 -0
  145. package/dist/commonjs/api/operations/options.d.ts.map +1 -0
  146. package/dist/commonjs/api/operations/options.js.map +1 -0
  147. package/dist/commonjs/api/standbyContainerGroupPoolRuntimeViews/index.d.ts +2 -13
  148. package/dist/commonjs/api/standbyContainerGroupPoolRuntimeViews/index.d.ts.map +1 -1
  149. package/dist/commonjs/api/standbyContainerGroupPoolRuntimeViews/index.js +4 -116
  150. package/dist/commonjs/api/standbyContainerGroupPoolRuntimeViews/index.js.map +1 -1
  151. package/dist/commonjs/api/standbyContainerGroupPoolRuntimeViews/operations.d.ts +14 -0
  152. package/dist/commonjs/api/standbyContainerGroupPoolRuntimeViews/operations.d.ts.map +1 -0
  153. package/dist/commonjs/api/standbyContainerGroupPoolRuntimeViews/operations.js +75 -0
  154. package/dist/commonjs/api/standbyContainerGroupPoolRuntimeViews/operations.js.map +1 -0
  155. package/dist/commonjs/api/standbyContainerGroupPoolRuntimeViews/options.d.ts +8 -0
  156. package/dist/commonjs/api/standbyContainerGroupPoolRuntimeViews/options.d.ts.map +1 -0
  157. package/dist/commonjs/api/standbyContainerGroupPoolRuntimeViews/options.js +5 -0
  158. package/dist/commonjs/api/standbyContainerGroupPoolRuntimeViews/options.js.map +1 -0
  159. package/dist/commonjs/api/standbyContainerGroupPools/index.d.ts +2 -30
  160. package/dist/commonjs/api/standbyContainerGroupPools/index.d.ts.map +1 -1
  161. package/dist/commonjs/api/standbyContainerGroupPools/index.js +8 -377
  162. package/dist/commonjs/api/standbyContainerGroupPools/index.js.map +1 -1
  163. package/dist/commonjs/api/standbyContainerGroupPools/operations.d.ts +36 -0
  164. package/dist/commonjs/api/standbyContainerGroupPools/operations.d.ts.map +1 -0
  165. package/dist/commonjs/api/standbyContainerGroupPools/operations.js +212 -0
  166. package/dist/commonjs/api/standbyContainerGroupPools/operations.js.map +1 -0
  167. package/dist/commonjs/api/standbyContainerGroupPools/options.d.ts +24 -0
  168. package/dist/commonjs/api/standbyContainerGroupPools/options.d.ts.map +1 -0
  169. package/dist/commonjs/api/standbyContainerGroupPools/options.js +5 -0
  170. package/dist/commonjs/api/standbyContainerGroupPools/options.js.map +1 -0
  171. package/dist/commonjs/api/standbyPoolManagementContext.d.ts +9 -3
  172. package/dist/commonjs/api/standbyPoolManagementContext.d.ts.map +1 -1
  173. package/dist/commonjs/api/standbyPoolManagementContext.js +7 -6
  174. package/dist/commonjs/api/standbyPoolManagementContext.js.map +1 -1
  175. package/dist/commonjs/api/standbyVirtualMachinePoolRuntimeViews/index.d.ts +2 -13
  176. package/dist/commonjs/api/standbyVirtualMachinePoolRuntimeViews/index.d.ts.map +1 -1
  177. package/dist/commonjs/api/standbyVirtualMachinePoolRuntimeViews/index.js +4 -118
  178. package/dist/commonjs/api/standbyVirtualMachinePoolRuntimeViews/index.js.map +1 -1
  179. package/dist/commonjs/api/standbyVirtualMachinePoolRuntimeViews/operations.d.ts +14 -0
  180. package/dist/commonjs/api/standbyVirtualMachinePoolRuntimeViews/operations.d.ts.map +1 -0
  181. package/dist/commonjs/api/standbyVirtualMachinePoolRuntimeViews/operations.js +75 -0
  182. package/dist/commonjs/api/standbyVirtualMachinePoolRuntimeViews/operations.js.map +1 -0
  183. package/dist/commonjs/api/standbyVirtualMachinePoolRuntimeViews/options.d.ts +8 -0
  184. package/dist/commonjs/api/standbyVirtualMachinePoolRuntimeViews/options.d.ts.map +1 -0
  185. package/dist/commonjs/api/standbyVirtualMachinePoolRuntimeViews/options.js +5 -0
  186. package/dist/commonjs/api/standbyVirtualMachinePoolRuntimeViews/options.js.map +1 -0
  187. package/dist/commonjs/api/standbyVirtualMachinePools/index.d.ts +2 -30
  188. package/dist/commonjs/api/standbyVirtualMachinePools/index.d.ts.map +1 -1
  189. package/dist/commonjs/api/standbyVirtualMachinePools/index.js +8 -342
  190. package/dist/commonjs/api/standbyVirtualMachinePools/index.js.map +1 -1
  191. package/dist/commonjs/api/standbyVirtualMachinePools/operations.d.ts +36 -0
  192. package/dist/commonjs/api/standbyVirtualMachinePools/operations.d.ts.map +1 -0
  193. package/dist/commonjs/api/standbyVirtualMachinePools/operations.js +212 -0
  194. package/dist/commonjs/api/standbyVirtualMachinePools/operations.js.map +1 -0
  195. package/dist/commonjs/api/standbyVirtualMachinePools/options.d.ts +24 -0
  196. package/dist/commonjs/api/standbyVirtualMachinePools/options.d.ts.map +1 -0
  197. package/dist/commonjs/api/standbyVirtualMachinePools/options.js +5 -0
  198. package/dist/commonjs/api/standbyVirtualMachinePools/options.js.map +1 -0
  199. package/dist/commonjs/api/standbyVirtualMachines/index.d.ts +2 -13
  200. package/dist/commonjs/api/standbyVirtualMachines/index.d.ts.map +1 -1
  201. package/dist/commonjs/api/standbyVirtualMachines/index.js +4 -100
  202. package/dist/commonjs/api/standbyVirtualMachines/index.js.map +1 -1
  203. package/dist/commonjs/api/standbyVirtualMachines/operations.d.ts +14 -0
  204. package/dist/commonjs/api/standbyVirtualMachines/operations.d.ts.map +1 -0
  205. package/dist/commonjs/api/standbyVirtualMachines/operations.js +71 -0
  206. package/dist/commonjs/api/standbyVirtualMachines/operations.js.map +1 -0
  207. package/dist/commonjs/api/standbyVirtualMachines/options.d.ts +8 -0
  208. package/dist/commonjs/api/standbyVirtualMachines/options.d.ts.map +1 -0
  209. package/dist/commonjs/api/standbyVirtualMachines/options.js +5 -0
  210. package/dist/commonjs/api/standbyVirtualMachines/options.js.map +1 -0
  211. package/dist/commonjs/classic/operations/index.d.ts +3 -6
  212. package/dist/commonjs/classic/operations/index.d.ts.map +1 -1
  213. package/dist/commonjs/classic/operations/index.js +6 -7
  214. package/dist/commonjs/classic/operations/index.js.map +1 -1
  215. package/dist/commonjs/classic/standbyContainerGroupPoolRuntimeViews/index.d.ts +5 -9
  216. package/dist/commonjs/classic/standbyContainerGroupPoolRuntimeViews/index.d.ts.map +1 -1
  217. package/dist/commonjs/classic/standbyContainerGroupPoolRuntimeViews/index.js +7 -8
  218. package/dist/commonjs/classic/standbyContainerGroupPoolRuntimeViews/index.js.map +1 -1
  219. package/dist/commonjs/classic/standbyContainerGroupPools/index.d.ts +18 -21
  220. package/dist/commonjs/classic/standbyContainerGroupPools/index.d.ts.map +1 -1
  221. package/dist/commonjs/classic/standbyContainerGroupPools/index.js +11 -12
  222. package/dist/commonjs/classic/standbyContainerGroupPools/index.js.map +1 -1
  223. package/dist/commonjs/classic/standbyVirtualMachinePoolRuntimeViews/index.d.ts +5 -9
  224. package/dist/commonjs/classic/standbyVirtualMachinePoolRuntimeViews/index.d.ts.map +1 -1
  225. package/dist/commonjs/classic/standbyVirtualMachinePoolRuntimeViews/index.js +7 -8
  226. package/dist/commonjs/classic/standbyVirtualMachinePoolRuntimeViews/index.js.map +1 -1
  227. package/dist/commonjs/classic/standbyVirtualMachinePools/index.d.ts +18 -21
  228. package/dist/commonjs/classic/standbyVirtualMachinePools/index.d.ts.map +1 -1
  229. package/dist/commonjs/classic/standbyVirtualMachinePools/index.js +11 -12
  230. package/dist/commonjs/classic/standbyVirtualMachinePools/index.js.map +1 -1
  231. package/dist/commonjs/classic/standbyVirtualMachines/index.d.ts +5 -9
  232. package/dist/commonjs/classic/standbyVirtualMachines/index.d.ts.map +1 -1
  233. package/dist/commonjs/classic/standbyVirtualMachines/index.js +7 -8
  234. package/dist/commonjs/classic/standbyVirtualMachines/index.js.map +1 -1
  235. package/dist/commonjs/index.d.ts +9 -2
  236. package/dist/commonjs/index.d.ts.map +1 -1
  237. package/dist/commonjs/index.js +9 -5
  238. package/dist/commonjs/index.js.map +1 -1
  239. package/dist/commonjs/models/index.d.ts +1 -2
  240. package/dist/commonjs/models/index.d.ts.map +1 -1
  241. package/dist/commonjs/models/index.js +9 -5
  242. package/dist/commonjs/models/index.js.map +1 -1
  243. package/dist/commonjs/models/models.d.ts +447 -238
  244. package/dist/commonjs/models/models.d.ts.map +1 -1
  245. package/dist/commonjs/models/models.js +609 -98
  246. package/dist/commonjs/models/models.js.map +1 -1
  247. package/dist/commonjs/restorePollerHelpers.js +11 -11
  248. package/dist/commonjs/restorePollerHelpers.js.map +1 -1
  249. package/dist/commonjs/standbyPoolManagementClient.d.ts +19 -19
  250. package/dist/commonjs/standbyPoolManagementClient.d.ts.map +1 -1
  251. package/dist/commonjs/standbyPoolManagementClient.js +16 -14
  252. package/dist/commonjs/standbyPoolManagementClient.js.map +1 -1
  253. package/dist/commonjs/static-helpers/pagingHelpers.d.ts.map +1 -1
  254. package/dist/commonjs/static-helpers/pagingHelpers.js +2 -2
  255. package/dist/commonjs/static-helpers/pagingHelpers.js.map +1 -1
  256. package/dist/commonjs/static-helpers/pollingHelpers.d.ts.map +1 -1
  257. package/dist/commonjs/static-helpers/pollingHelpers.js +2 -2
  258. package/dist/commonjs/static-helpers/pollingHelpers.js.map +1 -1
  259. package/dist/commonjs/static-helpers/urlTemplate.d.ts +5 -0
  260. package/dist/commonjs/static-helpers/urlTemplate.d.ts.map +1 -0
  261. package/dist/commonjs/static-helpers/urlTemplate.js +172 -0
  262. package/dist/commonjs/static-helpers/urlTemplate.js.map +1 -0
  263. package/dist/esm/api/index.d.ts +1 -7
  264. package/dist/esm/api/index.d.ts.map +1 -1
  265. package/dist/esm/api/index.js +0 -6
  266. package/dist/esm/api/index.js.map +1 -1
  267. package/dist/esm/api/operations/index.d.ts +2 -9
  268. package/dist/esm/api/operations/index.d.ts.map +1 -1
  269. package/dist/esm/api/operations/index.js +1 -37
  270. package/dist/esm/api/operations/index.js.map +1 -1
  271. package/dist/esm/api/operations/operations.d.ts +10 -0
  272. package/dist/esm/api/operations/operations.d.ts.map +1 -0
  273. package/dist/esm/api/operations/operations.js +29 -0
  274. package/dist/esm/api/operations/operations.js.map +1 -0
  275. package/dist/esm/api/operations/options.d.ts +5 -0
  276. package/dist/esm/api/operations/options.d.ts.map +1 -0
  277. package/dist/esm/api/operations/options.js +4 -0
  278. package/dist/esm/api/operations/options.js.map +1 -0
  279. package/dist/esm/api/standbyContainerGroupPoolRuntimeViews/index.d.ts +2 -13
  280. package/dist/esm/api/standbyContainerGroupPoolRuntimeViews/index.d.ts.map +1 -1
  281. package/dist/esm/api/standbyContainerGroupPoolRuntimeViews/index.js +1 -110
  282. package/dist/esm/api/standbyContainerGroupPoolRuntimeViews/index.js.map +1 -1
  283. package/dist/esm/api/standbyContainerGroupPoolRuntimeViews/operations.d.ts +14 -0
  284. package/dist/esm/api/standbyContainerGroupPoolRuntimeViews/operations.d.ts.map +1 -0
  285. package/dist/esm/api/standbyContainerGroupPoolRuntimeViews/operations.js +67 -0
  286. package/dist/esm/api/standbyContainerGroupPoolRuntimeViews/operations.js.map +1 -0
  287. package/dist/esm/api/standbyContainerGroupPoolRuntimeViews/options.d.ts +8 -0
  288. package/dist/esm/api/standbyContainerGroupPoolRuntimeViews/options.d.ts.map +1 -0
  289. package/dist/esm/api/standbyContainerGroupPoolRuntimeViews/options.js +4 -0
  290. package/dist/esm/api/standbyContainerGroupPoolRuntimeViews/options.js.map +1 -0
  291. package/dist/esm/api/standbyContainerGroupPools/index.d.ts +2 -30
  292. package/dist/esm/api/standbyContainerGroupPools/index.d.ts.map +1 -1
  293. package/dist/esm/api/standbyContainerGroupPools/index.js +1 -359
  294. package/dist/esm/api/standbyContainerGroupPools/index.js.map +1 -1
  295. package/dist/esm/api/standbyContainerGroupPools/operations.d.ts +36 -0
  296. package/dist/esm/api/standbyContainerGroupPools/operations.d.ts.map +1 -0
  297. package/dist/esm/api/standbyContainerGroupPools/operations.js +192 -0
  298. package/dist/esm/api/standbyContainerGroupPools/operations.js.map +1 -0
  299. package/dist/esm/api/standbyContainerGroupPools/options.d.ts +24 -0
  300. package/dist/esm/api/standbyContainerGroupPools/options.d.ts.map +1 -0
  301. package/dist/esm/api/standbyContainerGroupPools/options.js +4 -0
  302. package/dist/esm/api/standbyContainerGroupPools/options.js.map +1 -0
  303. package/dist/esm/api/standbyPoolManagementContext.d.ts +9 -3
  304. package/dist/esm/api/standbyPoolManagementContext.d.ts.map +1 -1
  305. package/dist/esm/api/standbyPoolManagementContext.js +7 -6
  306. package/dist/esm/api/standbyPoolManagementContext.js.map +1 -1
  307. package/dist/esm/api/standbyVirtualMachinePoolRuntimeViews/index.d.ts +2 -13
  308. package/dist/esm/api/standbyVirtualMachinePoolRuntimeViews/index.d.ts.map +1 -1
  309. package/dist/esm/api/standbyVirtualMachinePoolRuntimeViews/index.js +1 -112
  310. package/dist/esm/api/standbyVirtualMachinePoolRuntimeViews/index.js.map +1 -1
  311. package/dist/esm/api/standbyVirtualMachinePoolRuntimeViews/operations.d.ts +14 -0
  312. package/dist/esm/api/standbyVirtualMachinePoolRuntimeViews/operations.d.ts.map +1 -0
  313. package/dist/esm/api/standbyVirtualMachinePoolRuntimeViews/operations.js +67 -0
  314. package/dist/esm/api/standbyVirtualMachinePoolRuntimeViews/operations.js.map +1 -0
  315. package/dist/esm/api/standbyVirtualMachinePoolRuntimeViews/options.d.ts +8 -0
  316. package/dist/esm/api/standbyVirtualMachinePoolRuntimeViews/options.d.ts.map +1 -0
  317. package/dist/esm/api/standbyVirtualMachinePoolRuntimeViews/options.js +4 -0
  318. package/dist/esm/api/standbyVirtualMachinePoolRuntimeViews/options.js.map +1 -0
  319. package/dist/esm/api/standbyVirtualMachinePools/index.d.ts +2 -30
  320. package/dist/esm/api/standbyVirtualMachinePools/index.d.ts.map +1 -1
  321. package/dist/esm/api/standbyVirtualMachinePools/index.js +1 -324
  322. package/dist/esm/api/standbyVirtualMachinePools/index.js.map +1 -1
  323. package/dist/esm/api/standbyVirtualMachinePools/operations.d.ts +36 -0
  324. package/dist/esm/api/standbyVirtualMachinePools/operations.d.ts.map +1 -0
  325. package/dist/esm/api/standbyVirtualMachinePools/operations.js +192 -0
  326. package/dist/esm/api/standbyVirtualMachinePools/operations.js.map +1 -0
  327. package/dist/esm/api/standbyVirtualMachinePools/options.d.ts +24 -0
  328. package/dist/esm/api/standbyVirtualMachinePools/options.d.ts.map +1 -0
  329. package/dist/esm/api/standbyVirtualMachinePools/options.js +4 -0
  330. package/dist/esm/api/standbyVirtualMachinePools/options.js.map +1 -0
  331. package/dist/esm/api/standbyVirtualMachines/index.d.ts +2 -13
  332. package/dist/esm/api/standbyVirtualMachines/index.d.ts.map +1 -1
  333. package/dist/esm/api/standbyVirtualMachines/index.js +1 -94
  334. package/dist/esm/api/standbyVirtualMachines/index.js.map +1 -1
  335. package/dist/esm/api/standbyVirtualMachines/operations.d.ts +14 -0
  336. package/dist/esm/api/standbyVirtualMachines/operations.d.ts.map +1 -0
  337. package/dist/esm/api/standbyVirtualMachines/operations.js +63 -0
  338. package/dist/esm/api/standbyVirtualMachines/operations.js.map +1 -0
  339. package/dist/esm/api/standbyVirtualMachines/options.d.ts +8 -0
  340. package/dist/esm/api/standbyVirtualMachines/options.d.ts.map +1 -0
  341. package/dist/esm/api/standbyVirtualMachines/options.js +4 -0
  342. package/dist/esm/api/standbyVirtualMachines/options.js.map +1 -0
  343. package/dist/esm/classic/operations/index.d.ts +3 -6
  344. package/dist/esm/classic/operations/index.d.ts.map +1 -1
  345. package/dist/esm/classic/operations/index.js +5 -5
  346. package/dist/esm/classic/operations/index.js.map +1 -1
  347. package/dist/esm/classic/standbyContainerGroupPoolRuntimeViews/index.d.ts +5 -9
  348. package/dist/esm/classic/standbyContainerGroupPoolRuntimeViews/index.d.ts.map +1 -1
  349. package/dist/esm/classic/standbyContainerGroupPoolRuntimeViews/index.js +6 -6
  350. package/dist/esm/classic/standbyContainerGroupPoolRuntimeViews/index.js.map +1 -1
  351. package/dist/esm/classic/standbyContainerGroupPools/index.d.ts +18 -21
  352. package/dist/esm/classic/standbyContainerGroupPools/index.d.ts.map +1 -1
  353. package/dist/esm/classic/standbyContainerGroupPools/index.js +10 -10
  354. package/dist/esm/classic/standbyContainerGroupPools/index.js.map +1 -1
  355. package/dist/esm/classic/standbyVirtualMachinePoolRuntimeViews/index.d.ts +5 -9
  356. package/dist/esm/classic/standbyVirtualMachinePoolRuntimeViews/index.d.ts.map +1 -1
  357. package/dist/esm/classic/standbyVirtualMachinePoolRuntimeViews/index.js +6 -6
  358. package/dist/esm/classic/standbyVirtualMachinePoolRuntimeViews/index.js.map +1 -1
  359. package/dist/esm/classic/standbyVirtualMachinePools/index.d.ts +18 -21
  360. package/dist/esm/classic/standbyVirtualMachinePools/index.d.ts.map +1 -1
  361. package/dist/esm/classic/standbyVirtualMachinePools/index.js +10 -10
  362. package/dist/esm/classic/standbyVirtualMachinePools/index.js.map +1 -1
  363. package/dist/esm/classic/standbyVirtualMachines/index.d.ts +5 -9
  364. package/dist/esm/classic/standbyVirtualMachines/index.d.ts.map +1 -1
  365. package/dist/esm/classic/standbyVirtualMachines/index.js +6 -6
  366. package/dist/esm/classic/standbyVirtualMachines/index.js.map +1 -1
  367. package/dist/esm/index.d.ts +9 -2
  368. package/dist/esm/index.d.ts.map +1 -1
  369. package/dist/esm/index.js +2 -2
  370. package/dist/esm/index.js.map +1 -1
  371. package/dist/esm/models/index.d.ts +1 -2
  372. package/dist/esm/models/index.d.ts.map +1 -1
  373. package/dist/esm/models/index.js +1 -1
  374. package/dist/esm/models/index.js.map +1 -1
  375. package/dist/esm/models/models.d.ts +447 -238
  376. package/dist/esm/models/models.d.ts.map +1 -1
  377. package/dist/esm/models/models.js +546 -91
  378. package/dist/esm/models/models.js.map +1 -1
  379. package/dist/esm/restorePollerHelpers.js +11 -11
  380. package/dist/esm/restorePollerHelpers.js.map +1 -1
  381. package/dist/esm/standbyPoolManagementClient.d.ts +19 -19
  382. package/dist/esm/standbyPoolManagementClient.d.ts.map +1 -1
  383. package/dist/esm/standbyPoolManagementClient.js +16 -14
  384. package/dist/esm/standbyPoolManagementClient.js.map +1 -1
  385. package/dist/esm/static-helpers/pagingHelpers.d.ts.map +1 -1
  386. package/dist/esm/static-helpers/pagingHelpers.js +1 -1
  387. package/dist/esm/static-helpers/pagingHelpers.js.map +1 -1
  388. package/dist/esm/static-helpers/pollingHelpers.d.ts.map +1 -1
  389. package/dist/esm/static-helpers/pollingHelpers.js.map +1 -1
  390. package/dist/esm/static-helpers/urlTemplate.d.ts +5 -0
  391. package/dist/esm/static-helpers/urlTemplate.d.ts.map +1 -0
  392. package/dist/esm/static-helpers/urlTemplate.js +169 -0
  393. package/dist/esm/static-helpers/urlTemplate.js.map +1 -0
  394. package/dist/react-native/api/index.d.ts +1 -7
  395. package/dist/react-native/api/index.d.ts.map +1 -1
  396. package/dist/react-native/api/index.js +0 -6
  397. package/dist/react-native/api/index.js.map +1 -1
  398. package/dist/react-native/api/operations/index.d.ts +2 -9
  399. package/dist/react-native/api/operations/index.d.ts.map +1 -1
  400. package/dist/react-native/api/operations/index.js +1 -37
  401. package/dist/react-native/api/operations/index.js.map +1 -1
  402. package/dist/react-native/api/operations/operations.d.ts +10 -0
  403. package/dist/react-native/api/operations/operations.d.ts.map +1 -0
  404. package/dist/react-native/api/operations/operations.js +29 -0
  405. package/dist/react-native/api/operations/operations.js.map +1 -0
  406. package/dist/react-native/api/operations/options.d.ts +5 -0
  407. package/dist/react-native/api/operations/options.d.ts.map +1 -0
  408. package/dist/react-native/api/operations/options.js +4 -0
  409. package/dist/react-native/api/operations/options.js.map +1 -0
  410. package/dist/react-native/api/standbyContainerGroupPoolRuntimeViews/index.d.ts +2 -13
  411. package/dist/react-native/api/standbyContainerGroupPoolRuntimeViews/index.d.ts.map +1 -1
  412. package/dist/react-native/api/standbyContainerGroupPoolRuntimeViews/index.js +1 -110
  413. package/dist/react-native/api/standbyContainerGroupPoolRuntimeViews/index.js.map +1 -1
  414. package/dist/react-native/api/standbyContainerGroupPoolRuntimeViews/operations.d.ts +14 -0
  415. package/dist/react-native/api/standbyContainerGroupPoolRuntimeViews/operations.d.ts.map +1 -0
  416. package/dist/react-native/api/standbyContainerGroupPoolRuntimeViews/operations.js +67 -0
  417. package/dist/react-native/api/standbyContainerGroupPoolRuntimeViews/operations.js.map +1 -0
  418. package/dist/react-native/api/standbyContainerGroupPoolRuntimeViews/options.d.ts +8 -0
  419. package/dist/react-native/api/standbyContainerGroupPoolRuntimeViews/options.d.ts.map +1 -0
  420. package/dist/react-native/api/standbyContainerGroupPoolRuntimeViews/options.js +4 -0
  421. package/dist/react-native/api/standbyContainerGroupPoolRuntimeViews/options.js.map +1 -0
  422. package/dist/react-native/api/standbyContainerGroupPools/index.d.ts +2 -30
  423. package/dist/react-native/api/standbyContainerGroupPools/index.d.ts.map +1 -1
  424. package/dist/react-native/api/standbyContainerGroupPools/index.js +1 -359
  425. package/dist/react-native/api/standbyContainerGroupPools/index.js.map +1 -1
  426. package/dist/react-native/api/standbyContainerGroupPools/operations.d.ts +36 -0
  427. package/dist/react-native/api/standbyContainerGroupPools/operations.d.ts.map +1 -0
  428. package/dist/react-native/api/standbyContainerGroupPools/operations.js +192 -0
  429. package/dist/react-native/api/standbyContainerGroupPools/operations.js.map +1 -0
  430. package/dist/react-native/api/standbyContainerGroupPools/options.d.ts +24 -0
  431. package/dist/react-native/api/standbyContainerGroupPools/options.d.ts.map +1 -0
  432. package/dist/react-native/api/standbyContainerGroupPools/options.js +4 -0
  433. package/dist/react-native/api/standbyContainerGroupPools/options.js.map +1 -0
  434. package/dist/react-native/api/standbyPoolManagementContext.d.ts +9 -3
  435. package/dist/react-native/api/standbyPoolManagementContext.d.ts.map +1 -1
  436. package/dist/react-native/api/standbyPoolManagementContext.js +7 -6
  437. package/dist/react-native/api/standbyPoolManagementContext.js.map +1 -1
  438. package/dist/react-native/api/standbyVirtualMachinePoolRuntimeViews/index.d.ts +2 -13
  439. package/dist/react-native/api/standbyVirtualMachinePoolRuntimeViews/index.d.ts.map +1 -1
  440. package/dist/react-native/api/standbyVirtualMachinePoolRuntimeViews/index.js +1 -112
  441. package/dist/react-native/api/standbyVirtualMachinePoolRuntimeViews/index.js.map +1 -1
  442. package/dist/react-native/api/standbyVirtualMachinePoolRuntimeViews/operations.d.ts +14 -0
  443. package/dist/react-native/api/standbyVirtualMachinePoolRuntimeViews/operations.d.ts.map +1 -0
  444. package/dist/react-native/api/standbyVirtualMachinePoolRuntimeViews/operations.js +67 -0
  445. package/dist/react-native/api/standbyVirtualMachinePoolRuntimeViews/operations.js.map +1 -0
  446. package/dist/react-native/api/standbyVirtualMachinePoolRuntimeViews/options.d.ts +8 -0
  447. package/dist/react-native/api/standbyVirtualMachinePoolRuntimeViews/options.d.ts.map +1 -0
  448. package/dist/react-native/api/standbyVirtualMachinePoolRuntimeViews/options.js +4 -0
  449. package/dist/react-native/api/standbyVirtualMachinePoolRuntimeViews/options.js.map +1 -0
  450. package/dist/react-native/api/standbyVirtualMachinePools/index.d.ts +2 -30
  451. package/dist/react-native/api/standbyVirtualMachinePools/index.d.ts.map +1 -1
  452. package/dist/react-native/api/standbyVirtualMachinePools/index.js +1 -324
  453. package/dist/react-native/api/standbyVirtualMachinePools/index.js.map +1 -1
  454. package/dist/react-native/api/standbyVirtualMachinePools/operations.d.ts +36 -0
  455. package/dist/react-native/api/standbyVirtualMachinePools/operations.d.ts.map +1 -0
  456. package/dist/react-native/api/standbyVirtualMachinePools/operations.js +192 -0
  457. package/dist/react-native/api/standbyVirtualMachinePools/operations.js.map +1 -0
  458. package/dist/react-native/api/standbyVirtualMachinePools/options.d.ts +24 -0
  459. package/dist/react-native/api/standbyVirtualMachinePools/options.d.ts.map +1 -0
  460. package/dist/react-native/api/standbyVirtualMachinePools/options.js +4 -0
  461. package/dist/react-native/api/standbyVirtualMachinePools/options.js.map +1 -0
  462. package/dist/react-native/api/standbyVirtualMachines/index.d.ts +2 -13
  463. package/dist/react-native/api/standbyVirtualMachines/index.d.ts.map +1 -1
  464. package/dist/react-native/api/standbyVirtualMachines/index.js +1 -94
  465. package/dist/react-native/api/standbyVirtualMachines/index.js.map +1 -1
  466. package/dist/react-native/api/standbyVirtualMachines/operations.d.ts +14 -0
  467. package/dist/react-native/api/standbyVirtualMachines/operations.d.ts.map +1 -0
  468. package/dist/react-native/api/standbyVirtualMachines/operations.js +63 -0
  469. package/dist/react-native/api/standbyVirtualMachines/operations.js.map +1 -0
  470. package/dist/react-native/api/standbyVirtualMachines/options.d.ts +8 -0
  471. package/dist/react-native/api/standbyVirtualMachines/options.d.ts.map +1 -0
  472. package/dist/react-native/api/standbyVirtualMachines/options.js +4 -0
  473. package/dist/react-native/api/standbyVirtualMachines/options.js.map +1 -0
  474. package/dist/react-native/classic/operations/index.d.ts +3 -6
  475. package/dist/react-native/classic/operations/index.d.ts.map +1 -1
  476. package/dist/react-native/classic/operations/index.js +5 -5
  477. package/dist/react-native/classic/operations/index.js.map +1 -1
  478. package/dist/react-native/classic/standbyContainerGroupPoolRuntimeViews/index.d.ts +5 -9
  479. package/dist/react-native/classic/standbyContainerGroupPoolRuntimeViews/index.d.ts.map +1 -1
  480. package/dist/react-native/classic/standbyContainerGroupPoolRuntimeViews/index.js +6 -6
  481. package/dist/react-native/classic/standbyContainerGroupPoolRuntimeViews/index.js.map +1 -1
  482. package/dist/react-native/classic/standbyContainerGroupPools/index.d.ts +18 -21
  483. package/dist/react-native/classic/standbyContainerGroupPools/index.d.ts.map +1 -1
  484. package/dist/react-native/classic/standbyContainerGroupPools/index.js +10 -10
  485. package/dist/react-native/classic/standbyContainerGroupPools/index.js.map +1 -1
  486. package/dist/react-native/classic/standbyVirtualMachinePoolRuntimeViews/index.d.ts +5 -9
  487. package/dist/react-native/classic/standbyVirtualMachinePoolRuntimeViews/index.d.ts.map +1 -1
  488. package/dist/react-native/classic/standbyVirtualMachinePoolRuntimeViews/index.js +6 -6
  489. package/dist/react-native/classic/standbyVirtualMachinePoolRuntimeViews/index.js.map +1 -1
  490. package/dist/react-native/classic/standbyVirtualMachinePools/index.d.ts +18 -21
  491. package/dist/react-native/classic/standbyVirtualMachinePools/index.d.ts.map +1 -1
  492. package/dist/react-native/classic/standbyVirtualMachinePools/index.js +10 -10
  493. package/dist/react-native/classic/standbyVirtualMachinePools/index.js.map +1 -1
  494. package/dist/react-native/classic/standbyVirtualMachines/index.d.ts +5 -9
  495. package/dist/react-native/classic/standbyVirtualMachines/index.d.ts.map +1 -1
  496. package/dist/react-native/classic/standbyVirtualMachines/index.js +6 -6
  497. package/dist/react-native/classic/standbyVirtualMachines/index.js.map +1 -1
  498. package/dist/react-native/index.d.ts +9 -2
  499. package/dist/react-native/index.d.ts.map +1 -1
  500. package/dist/react-native/index.js +2 -2
  501. package/dist/react-native/index.js.map +1 -1
  502. package/dist/react-native/models/index.d.ts +1 -2
  503. package/dist/react-native/models/index.d.ts.map +1 -1
  504. package/dist/react-native/models/index.js +1 -1
  505. package/dist/react-native/models/index.js.map +1 -1
  506. package/dist/react-native/models/models.d.ts +447 -238
  507. package/dist/react-native/models/models.d.ts.map +1 -1
  508. package/dist/react-native/models/models.js +546 -91
  509. package/dist/react-native/models/models.js.map +1 -1
  510. package/dist/react-native/restorePollerHelpers.js +11 -11
  511. package/dist/react-native/restorePollerHelpers.js.map +1 -1
  512. package/dist/react-native/standbyPoolManagementClient.d.ts +19 -19
  513. package/dist/react-native/standbyPoolManagementClient.d.ts.map +1 -1
  514. package/dist/react-native/standbyPoolManagementClient.js +16 -14
  515. package/dist/react-native/standbyPoolManagementClient.js.map +1 -1
  516. package/dist/react-native/static-helpers/pagingHelpers.d.ts.map +1 -1
  517. package/dist/react-native/static-helpers/pagingHelpers.js +1 -1
  518. package/dist/react-native/static-helpers/pagingHelpers.js.map +1 -1
  519. package/dist/react-native/static-helpers/pollingHelpers.d.ts.map +1 -1
  520. package/dist/react-native/static-helpers/pollingHelpers.js.map +1 -1
  521. package/dist/react-native/static-helpers/urlTemplate.d.ts +5 -0
  522. package/dist/react-native/static-helpers/urlTemplate.d.ts.map +1 -0
  523. package/dist/react-native/static-helpers/urlTemplate.js +169 -0
  524. package/dist/react-native/static-helpers/urlTemplate.js.map +1 -0
  525. package/package.json +149 -16
  526. package/review/arm-standbypool-api-operations.api.md +19 -0
  527. package/review/arm-standbypool-api-standbyContainerGroupPoolRuntimeViews.api.md +26 -0
  528. package/review/arm-standbypool-api-standbyContainerGroupPools.api.md +58 -0
  529. package/review/arm-standbypool-api-standbyVirtualMachinePoolRuntimeViews.api.md +26 -0
  530. package/review/arm-standbypool-api-standbyVirtualMachinePools.api.md +58 -0
  531. package/review/arm-standbypool-api-standbyVirtualMachines.api.md +26 -0
  532. package/review/arm-standbypool-api.api.md +27 -0
  533. package/review/arm-standbypool-models.api.md +105 -83
  534. package/review/arm-standbypool.api.md +110 -6
  535. package/dist/browser/helpers/serializerHelpers.d.ts +0 -3
  536. package/dist/browser/helpers/serializerHelpers.d.ts.map +0 -1
  537. package/dist/browser/helpers/serializerHelpers.js +0 -24
  538. package/dist/browser/helpers/serializerHelpers.js.map +0 -1
  539. package/dist/browser/models/options.d.ts +0 -67
  540. package/dist/browser/models/options.d.ts.map +0 -1
  541. package/dist/browser/models/options.js.map +0 -1
  542. package/dist/commonjs/helpers/serializerHelpers.d.ts +0 -3
  543. package/dist/commonjs/helpers/serializerHelpers.d.ts.map +0 -1
  544. package/dist/commonjs/helpers/serializerHelpers.js +0 -27
  545. package/dist/commonjs/helpers/serializerHelpers.js.map +0 -1
  546. package/dist/commonjs/models/options.d.ts +0 -67
  547. package/dist/commonjs/models/options.d.ts.map +0 -1
  548. package/dist/commonjs/models/options.js.map +0 -1
  549. package/dist/esm/helpers/serializerHelpers.d.ts +0 -3
  550. package/dist/esm/helpers/serializerHelpers.d.ts.map +0 -1
  551. package/dist/esm/helpers/serializerHelpers.js +0 -24
  552. package/dist/esm/helpers/serializerHelpers.js.map +0 -1
  553. package/dist/esm/models/options.d.ts +0 -67
  554. package/dist/esm/models/options.d.ts.map +0 -1
  555. package/dist/esm/models/options.js.map +0 -1
  556. package/dist/react-native/helpers/serializerHelpers.d.ts +0 -3
  557. package/dist/react-native/helpers/serializerHelpers.d.ts.map +0 -1
  558. package/dist/react-native/helpers/serializerHelpers.js +0 -24
  559. package/dist/react-native/helpers/serializerHelpers.js.map +0 -1
  560. package/dist/react-native/models/options.d.ts +0 -67
  561. package/dist/react-native/models/options.d.ts.map +0 -1
  562. package/dist/react-native/models/options.js.map +0 -1
  563. /package/dist/browser/{models → api/operations}/options.js +0 -0
  564. /package/dist/{esm/models → browser/api/standbyContainerGroupPoolRuntimeViews}/options.js +0 -0
  565. /package/dist/{react-native/models → browser/api/standbyContainerGroupPools}/options.js +0 -0
  566. /package/dist/commonjs/{models → api/operations}/options.js +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"pollingHelpers.js","sourceRoot":"","sources":["../../../src/static-helpers/pollingHelpers.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAKL,gBAAgB,GAEjB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAiC,eAAe,EAAE,MAAM,yBAAyB,CAAC;AA4BzF,MAAM,UAAU,oBAAoB,CAClC,MAAc,EACd,mBAA4D,EAC5D,gBAA0B,EAC1B,OAA+C;IAE/C,MAAM,EAAE,WAAW,EAAE,kBAAkB,EAAE,GAAG,OAAO,CAAC;IACpD,IAAI,CAAC,WAAW,IAAI,CAAC,kBAAkB,EAAE,CAAC;QACxC,MAAM,IAAI,KAAK,CAAC,4DAA4D,CAAC,CAAC;IAChF,CAAC;IACD,IAAI,eAAe,GAA0B,SAAS,CAAC;IACvD,MAAM,mBAAmB,GAAG,IAAI,eAAe,EAAE,CAAC;IAClD,MAAM,MAAM,GAAgC;QAC1C,kBAAkB,EAAE,KAAK,IAAI,EAAE;YAC7B,IAAI,CAAC,kBAAkB,EAAE,CAAC;gBACxB,MAAM,IAAI,KAAK,CAAC,+DAA+D,CAAC,CAAC;YACnF,CAAC;YACD,eAAe,GAAG,MAAM,kBAAkB,EAAE,CAAC;YAC7C,OAAO,cAAc,CAAC,eAAe,EAAE,gBAAgB,CAAC,CAAC;QAC3D,CAAC;QACD,eAAe,EAAE,KAAK,EACpB,IAAY,EACZ,WAEC,EACD,EAAE;;YACF,yGAAyG;YACzG,SAAS,aAAa;gBACpB,mBAAmB,CAAC,KAAK,EAAE,CAAC;YAC9B,CAAC;YACD,MAAM,WAAW,GAAG,mBAAmB,CAAC,MAAM,CAAC;YAC/C,IAAI,MAAA,OAAO,CAAC,WAAW,0CAAE,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aAAa,EAAE,CAAC,MAAe,EAAE,EAAE;YACjC,OAAO,mBAAmB,CAAC,MAAmB,CAAC,CAAC;QAClD,CAAC;KACF,CAAC,CAAC;AACL,CAAC;AACD;;;;;GAKG;AACH,SAAS,cAAc,CACrB,QAAmB,EACnB,gBAA0B;IAE1B,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;QAChD,MAAM,eAAe,CAAC,QAAQ,CAAC,CAAC;IAClC,CAAC;IAED,OAAO;QACL,YAAY,EAAE,QAAQ;QACtB,WAAW,kCACN,QAAQ,KACX,UAAU,EAAE,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,EAC5C,IAAI,EAAE,QAAQ,CAAC,IAAI,GACpB;KACF,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\nimport {\n PollerLike,\n OperationState,\n ResourceLocationConfig,\n RunningOperation,\n createHttpPoller,\n OperationResponse,\n} from \"@azure/core-lro\";\n\nimport { Client, PathUncheckedResponse, createRestError } from \"@azure-rest/core-client\";\nimport { AbortSignalLike } from \"@azure/abort-controller\";\n\nexport interface GetLongRunningPollerOptions<TResponse> {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /**\n * The signal which can be used to abort requests.\n */\n abortSignal?: AbortSignalLike;\n /**\n * The potential location of the result of the LRO if specified by the LRO extension in the swagger.\n */\n resourceLocationConfig?: ResourceLocationConfig;\n /**\n * The original url of the LRO\n * Should not be null when restoreFrom is set\n */\n initialRequestUrl?: string;\n /**\n * A serialized poller which can be used to resume an existing paused Long-Running-Operation.\n */\n restoreFrom?: string;\n /**\n * The function to get the initial response\n */\n getInitialResponse?: () => PromiseLike<TResponse>;\n}\nexport function getLongRunningPoller<TResponse extends PathUncheckedResponse, TResult = void>(\n client: Client,\n processResponseBody: (result: TResponse) => Promise<TResult>,\n expectedStatuses: string[],\n options: GetLongRunningPollerOptions<TResponse>,\n): PollerLike<OperationState<TResult>, TResult> {\n const { restoreFrom, getInitialResponse } = options;\n if (!restoreFrom && !getInitialResponse) {\n throw new Error(\"Either restoreFrom or getInitialResponse must be specified\");\n }\n let initialResponse: TResponse | undefined = undefined;\n const pollAbortController = new AbortController();\n const poller: RunningOperation<TResponse> = {\n sendInitialRequest: async () => {\n if (!getInitialResponse) {\n throw new Error(\"getInitialResponse is required when initializing a new poller\");\n }\n initialResponse = await getInitialResponse();\n return getLroResponse(initialResponse, expectedStatuses);\n },\n sendPollRequest: async (\n path: string,\n pollOptions?: {\n abortSignal?: AbortSignalLike;\n },\n ) => {\n // The poll request would both listen to the user provided abort signal and the poller's own abort signal\n function abortListener(): void {\n pollAbortController.abort();\n }\n const abortSignal = pollAbortController.signal;\n if (options.abortSignal?.aborted) {\n pollAbortController.abort();\n } else if (pollOptions?.abortSignal?.aborted) {\n pollAbortController.abort();\n } else if (!abortSignal.aborted) {\n options.abortSignal?.addEventListener(\"abort\", abortListener, {\n once: true,\n });\n pollOptions?.abortSignal?.addEventListener(\"abort\", abortListener, {\n once: true,\n });\n }\n let response;\n try {\n response = await client.pathUnchecked(path).get({ abortSignal });\n } finally {\n options.abortSignal?.removeEventListener(\"abort\", abortListener);\n pollOptions?.abortSignal?.removeEventListener(\"abort\", abortListener);\n }\n\n return getLroResponse(response as TResponse, expectedStatuses);\n },\n };\n return createHttpPoller(poller, {\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: options?.resourceLocationConfig,\n restoreFrom: options?.restoreFrom,\n processResult: (result: unknown) => {\n return processResponseBody(result as TResponse);\n },\n });\n}\n/**\n * Converts a Rest Client response to a response that the LRO implementation understands\n * @param response - a rest client http response\n * @param deserializeFn - deserialize function to convert Rest response to modular output\n * @returns - An LRO response that the LRO implementation understands\n */\nfunction getLroResponse<TResponse extends PathUncheckedResponse>(\n response: TResponse,\n expectedStatuses: string[],\n): OperationResponse<TResponse> {\n if (!expectedStatuses.includes(response.status)) {\n throw createRestError(response);\n }\n\n return {\n flatResponse: response,\n rawResponse: {\n ...response,\n statusCode: Number.parseInt(response.status),\n body: response.body,\n },\n };\n}\n"]}
1
+ {"version":3,"file":"pollingHelpers.js","sourceRoot":"","sources":["../../../src/static-helpers/pollingHelpers.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAKL,gBAAgB,GAEjB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAiC,eAAe,EAAE,MAAM,yBAAyB,CAAC;AA4BzF,MAAM,UAAU,oBAAoB,CAClC,MAAc,EACd,mBAA4D,EAC5D,gBAA0B,EAC1B,OAA+C;IAE/C,MAAM,EAAE,WAAW,EAAE,kBAAkB,EAAE,GAAG,OAAO,CAAC;IACpD,IAAI,CAAC,WAAW,IAAI,CAAC,kBAAkB,EAAE,CAAC;QACxC,MAAM,IAAI,KAAK,CAAC,4DAA4D,CAAC,CAAC;IAChF,CAAC;IACD,IAAI,eAAe,GAA0B,SAAS,CAAC;IACvD,MAAM,mBAAmB,GAAG,IAAI,eAAe,EAAE,CAAC;IAClD,MAAM,MAAM,GAAgC;QAC1C,kBAAkB,EAAE,KAAK,IAAI,EAAE;YAC7B,IAAI,CAAC,kBAAkB,EAAE,CAAC;gBACxB,MAAM,IAAI,KAAK,CAAC,+DAA+D,CAAC,CAAC;YACnF,CAAC;YACD,eAAe,GAAG,MAAM,kBAAkB,EAAE,CAAC;YAC7C,OAAO,cAAc,CAAC,eAAe,EAAE,gBAAgB,CAAC,CAAC;QAC3D,CAAC;QACD,eAAe,EAAE,KAAK,EACpB,IAAY,EACZ,WAEC,EACD,EAAE;;YACF,yGAAyG;YACzG,SAAS,aAAa;gBACpB,mBAAmB,CAAC,KAAK,EAAE,CAAC;YAC9B,CAAC;YACD,MAAM,WAAW,GAAG,mBAAmB,CAAC,MAAM,CAAC;YAC/C,IAAI,MAAA,OAAO,CAAC,WAAW,0CAAE,OAAO,EAAE,CAAC;gBACjC,m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AE,EAAE;YACjC,OAAO,mBAAmB,CAAC,MAAmB,CAAC,CAAC;QAClD,CAAC;KACF,CAAC,CAAC;AACL,CAAC;AACD;;;;;GAKG;AACH,SAAS,cAAc,CACrB,QAAmB,EACnB,gBAA0B;IAE1B,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;QAChD,MAAM,eAAe,CAAC,QAAQ,CAAC,CAAC;IAClC,CAAC;IAED,OAAO;QACL,YAAY,EAAE,QAAQ;QACtB,WAAW,kCACN,QAAQ,KACX,UAAU,EAAE,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,EAC5C,IAAI,EAAE,QAAQ,CAAC,IAAI,GACpB;KACF,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport {\n PollerLike,\n OperationState,\n ResourceLocationConfig,\n RunningOperation,\n createHttpPoller,\n OperationResponse,\n} from \"@azure/core-lro\";\n\nimport { Client, PathUncheckedResponse, createRestError } from \"@azure-rest/core-client\";\nimport { AbortSignalLike } from \"@azure/abort-controller\";\n\nexport interface GetLongRunningPollerOptions<TResponse> {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /**\n * The signal which can be used to abort requests.\n */\n abortSignal?: AbortSignalLike;\n /**\n * The potential location of the result of the LRO if specified by the LRO extension in the swagger.\n */\n resourceLocationConfig?: ResourceLocationConfig;\n /**\n * The original url of the LRO\n * Should not be null when restoreFrom is set\n */\n initialRequestUrl?: string;\n /**\n * A serialized poller which can be used to resume an existing paused Long-Running-Operation.\n */\n restoreFrom?: string;\n /**\n * The function to get the initial response\n */\n getInitialResponse?: () => PromiseLike<TResponse>;\n}\nexport function getLongRunningPoller<TResponse extends PathUncheckedResponse, TResult = void>(\n client: Client,\n processResponseBody: (result: TResponse) => Promise<TResult>,\n expectedStatuses: string[],\n options: GetLongRunningPollerOptions<TResponse>,\n): PollerLike<OperationState<TResult>, TResult> {\n const { restoreFrom, getInitialResponse } = options;\n if (!restoreFrom && !getInitialResponse) {\n throw new Error(\"Either restoreFrom or getInitialResponse must be specified\");\n }\n let initialResponse: TResponse | undefined = undefined;\n const pollAbortController = new AbortController();\n const poller: RunningOperation<TResponse> = {\n sendInitialRequest: async () => {\n if (!getInitialResponse) {\n throw new Error(\"getInitialResponse is required when initializing a new poller\");\n }\n initialResponse = await getInitialResponse();\n return getLroResponse(initialResponse, expectedStatuses);\n },\n sendPollRequest: async (\n path: string,\n pollOptions?: {\n abortSignal?: AbortSignalLike;\n },\n ) => {\n // The poll request would both listen to the user provided abort signal and the poller's own abort signal\n function abortListener(): void {\n pollAbortController.abort();\n }\n const abortSignal = pollAbortController.signal;\n if (options.abortSignal?.aborted) {\n pollAbortController.abort();\n } else if (pollOptions?.abortSignal?.aborted) {\n pollAbortController.abort();\n } else if (!abortSignal.aborted) {\n options.abortSignal?.addEventListener(\"abort\", abortListener, {\n once: true,\n });\n pollOptions?.abortSignal?.addEventListener(\"abort\", abortListener, {\n once: true,\n });\n }\n let response;\n try {\n response = await client.pathUnchecked(path).get({ abortSignal });\n } finally {\n options.abortSignal?.removeEventListener(\"abort\", abortListener);\n pollOptions?.abortSignal?.removeEventListener(\"abort\", abortListener);\n }\n\n return getLroResponse(response as TResponse, expectedStatuses);\n },\n };\n return createHttpPoller(poller, {\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: options?.resourceLocationConfig,\n restoreFrom: options?.restoreFrom,\n processResult: (result: unknown) => {\n return processResponseBody(result as TResponse);\n },\n });\n}\n/**\n * Converts a Rest Client response to a response that the LRO implementation understands\n * @param response - a rest client http response\n * @param deserializeFn - deserialize function to convert Rest response to modular output\n * @returns - An LRO response that the LRO implementation understands\n */\nfunction getLroResponse<TResponse extends PathUncheckedResponse>(\n response: TResponse,\n expectedStatuses: string[],\n): OperationResponse<TResponse> {\n if (!expectedStatuses.includes(response.status)) {\n throw createRestError(response);\n }\n\n return {\n flatResponse: response,\n rawResponse: {\n ...response,\n statusCode: Number.parseInt(response.status),\n body: response.body,\n },\n };\n}\n"]}
@@ -0,0 +1,5 @@
1
+ export interface UrlTemplateOptions {
2
+ allowReserved?: boolean;
3
+ }
4
+ export declare function expandUrlTemplate(template: string, context: Record<string, any>, option?: UrlTemplateOptions): string;
5
+ //# sourceMappingURL=urlTemplate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"urlTemplate.d.ts","sourceRoot":"","sources":["../../../src/static-helpers/urlTemplate.ts"],"names":[],"mappings":"AAeA,MAAM,WAAW,kBAAkB;IAEjC,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAgJD,wBAAgB,iBAAiB,CAC/B,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC5B,MAAM,CAAC,EAAE,kBAAkB,GAC1B,MAAM,CA8BR"}
@@ -0,0 +1,169 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ // ---------------------
4
+ // helpers
5
+ // ---------------------
6
+ function encodeComponent(val, reserved, op) {
7
+ return (reserved !== null && reserved !== void 0 ? reserved : op === "+") || op === "#"
8
+ ? encodeReservedComponent(val)
9
+ : encodeRFC3986URIComponent(val);
10
+ }
11
+ function encodeReservedComponent(str) {
12
+ return str
13
+ .split(/(%[0-9A-Fa-f]{2})/g)
14
+ .map((part) => (!/%[0-9A-Fa-f]/.test(part) ? encodeURI(part) : part))
15
+ .join("");
16
+ }
17
+ function encodeRFC3986URIComponent(str) {
18
+ return encodeURIComponent(str).replace(/[!'()*]/g, (c) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`);
19
+ }
20
+ function isDefined(val) {
21
+ return val !== undefined && val !== null;
22
+ }
23
+ function getNamedAndIfEmpty(op) {
24
+ return [!!op && [";", "?", "&"].includes(op), !!op && ["?", "&"].includes(op) ? "=" : ""];
25
+ }
26
+ function getFirstOrSep(op, isFirst = false) {
27
+ if (isFirst) {
28
+ return !op || op === "+" ? "" : op;
29
+ }
30
+ else if (!op || op === "+" || op === "#") {
31
+ return ",";
32
+ }
33
+ else if (op === "?") {
34
+ return "&";
35
+ }
36
+ else {
37
+ return op;
38
+ }
39
+ }
40
+ function getExpandedValue(option) {
41
+ let isFirst = option.isFirst;
42
+ const { op, varName, varValue: value, reserved } = option;
43
+ const vals = [];
44
+ const [named, ifEmpty] = getNamedAndIfEmpty(op);
45
+ if (Array.isArray(value)) {
46
+ for (const val of value.filter(isDefined)) {
47
+ // prepare the following parts: separator, varName, value
48
+ vals.push(`${getFirstOrSep(op, isFirst)}`);
49
+ if (named && varName) {
50
+ vals.push(`${encodeURIComponent(varName)}`);
51
+ val === "" ? vals.push(ifEmpty) : vals.push("=");
52
+ }
53
+ vals.push(encodeComponent(val, reserved, op));
54
+ isFirst = false;
55
+ }
56
+ }
57
+ else if (typeof value === "object") {
58
+ for (const key of Object.keys(value)) {
59
+ const val = value[key];
60
+ if (!isDefined(val)) {
61
+ continue;
62
+ }
63
+ // prepare the following parts: separator, key, value
64
+ vals.push(`${getFirstOrSep(op, isFirst)}`);
65
+ if (key) {
66
+ vals.push(`${encodeURIComponent(key)}`);
67
+ named && val === "" ? vals.push(ifEmpty) : vals.push("=");
68
+ }
69
+ vals.push(encodeComponent(val, reserved, op));
70
+ isFirst = false;
71
+ }
72
+ }
73
+ return vals.join("");
74
+ }
75
+ function getNonExpandedValue(option) {
76
+ const { op, varName, varValue: value, isFirst, reserved } = option;
77
+ const vals = [];
78
+ const first = getFirstOrSep(op, isFirst);
79
+ const [named, ifEmpty] = getNamedAndIfEmpty(op);
80
+ if (named && varName) {
81
+ vals.push(encodeComponent(varName, reserved, op));
82
+ if (value === "") {
83
+ if (!ifEmpty) {
84
+ vals.push(ifEmpty);
85
+ }
86
+ return !vals.join("") ? undefined : `${first}${vals.join("")}`;
87
+ }
88
+ vals.push("=");
89
+ }
90
+ const items = [];
91
+ if (Array.isArray(value)) {
92
+ for (const val of value.filter(isDefined)) {
93
+ items.push(encodeComponent(val, reserved, op));
94
+ }
95
+ }
96
+ else if (typeof value === "object") {
97
+ for (const key of Object.keys(value)) {
98
+ if (!isDefined(value[key])) {
99
+ continue;
100
+ }
101
+ items.push(encodeRFC3986URIComponent(key));
102
+ items.push(encodeComponent(value[key], reserved, op));
103
+ }
104
+ }
105
+ vals.push(items.join(","));
106
+ return !vals.join(",") ? undefined : `${first}${vals.join("")}`;
107
+ }
108
+ function getVarValue(option) {
109
+ const { op, varName, modifier, isFirst, reserved, varValue: value } = option;
110
+ if (!isDefined(value)) {
111
+ return undefined;
112
+ }
113
+ else if (["string", "number", "boolean"].includes(typeof value)) {
114
+ let val = value.toString();
115
+ const [named, ifEmpty] = getNamedAndIfEmpty(op);
116
+ const vals = [getFirstOrSep(op, isFirst)];
117
+ if (named && varName) {
118
+ // No need to encode varName considering it is already encoded
119
+ vals.push(varName);
120
+ val === "" ? vals.push(ifEmpty) : vals.push("=");
121
+ }
122
+ if (modifier && modifier !== "*") {
123
+ val = val.substring(0, parseInt(modifier, 10));
124
+ }
125
+ vals.push(encodeComponent(val, reserved, op));
126
+ return vals.join("");
127
+ }
128
+ else if (modifier === "*") {
129
+ return getExpandedValue(option);
130
+ }
131
+ else {
132
+ return getNonExpandedValue(option);
133
+ }
134
+ }
135
+ // ---------------------------------------------------------------------------------------------------
136
+ // This is an implementation of RFC 6570 URI Template: https://datatracker.ietf.org/doc/html/rfc6570.
137
+ // ---------------------------------------------------------------------------------------------------
138
+ export function expandUrlTemplate(template, context, option) {
139
+ return template.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g, (_, expr, text) => {
140
+ if (!expr) {
141
+ return encodeReservedComponent(text);
142
+ }
143
+ let op;
144
+ if (["+", "#", ".", "/", ";", "?", "&"].includes(expr[0])) {
145
+ (op = expr[0]), (expr = expr.slice(1));
146
+ }
147
+ const varList = expr.split(/,/g);
148
+ const result = [];
149
+ for (const varSpec of varList) {
150
+ const varMatch = /([^:\*]*)(?::(\d+)|(\*))?/.exec(varSpec);
151
+ if (!varMatch || !varMatch[1]) {
152
+ continue;
153
+ }
154
+ const varValue = getVarValue({
155
+ isFirst: result.length === 0,
156
+ op,
157
+ varValue: context[varMatch[1]],
158
+ varName: varMatch[1],
159
+ modifier: varMatch[2] || varMatch[3],
160
+ reserved: option === null || option === void 0 ? void 0 : option.allowReserved,
161
+ });
162
+ if (varValue) {
163
+ result.push(varValue);
164
+ }
165
+ }
166
+ return result.join("");
167
+ });
168
+ }
169
+ //# sourceMappingURL=urlTemplate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"urlTemplate.js","sourceRoot":"","sources":["../../../src/static-helpers/urlTemplate.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAmBlC,wBAAwB;AACxB,UAAU;AACV,wBAAwB;AACxB,SAAS,eAAe,CAAC,GAAW,EAAE,QAAkB,EAAE,EAAW;IACnE,OAAO,CAAC,QAAQ,aAAR,QAAQ,cAAR,QAAQ,GAAI,EAAE,KAAK,GAAG,CAAC,IAAI,EAAE,KAAK,GAAG;QAC3C,CAAC,CAAC,uBAAuB,CAAC,GAAG,CAAC;QAC9B,CAAC,CAAC,yBAAyB,CAAC,GAAG,CAAC,CAAC;AACrC,CAAC;AAED,SAAS,uBAAuB,CAAC,GAAW;IAC1C,OAAO,GAAG;SACP,KAAK,CAAC,oBAAoB,CAAC;SAC3B,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;SACpE,IAAI,CAAC,EAAE,CAAC,CAAC;AACd,CAAC;AAED,SAAS,yBAAyB,CAAC,GAAW;IAC5C,OAAO,kBAAkB,CAAC,GAAG,CAAC,CAAC,OAAO,CACpC,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CA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AAC,EAAE,CAAC,CAAC;IACzB,CAAC,CAAC,CAAC;AACL,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n//---------------------\n// interfaces\n//---------------------\ninterface ValueOptions {\n isFirst: boolean; // is first value in the expression\n op?: string; // operator\n varValue?: any; // variable value\n varName?: string; // variable name\n modifier?: string; // modifier e.g *\n reserved?: boolean; // if true we'll keep reserved words with not encoding\n}\n\nexport interface UrlTemplateOptions {\n // if set to true, reserved characters will not be encoded\n allowReserved?: boolean;\n}\n\n// ---------------------\n// helpers\n// ---------------------\nfunction encodeComponent(val: string, reserved?: boolean, op?: string) {\n return (reserved ?? op === \"+\") || op === \"#\"\n ? encodeReservedComponent(val)\n : encodeRFC3986URIComponent(val);\n}\n\nfunction encodeReservedComponent(str: string) {\n return str\n .split(/(%[0-9A-Fa-f]{2})/g)\n .map((part) => (!/%[0-9A-Fa-f]/.test(part) ? encodeURI(part) : part))\n .join(\"\");\n}\n\nfunction encodeRFC3986URIComponent(str: string) {\n return encodeURIComponent(str).replace(\n /[!'()*]/g,\n (c) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`,\n );\n}\n\nfunction isDefined(val: any) {\n return val !== undefined && val !== null;\n}\n\nfunction getNamedAndIfEmpty(op?: string): [boolean, string] {\n return [!!op && [\";\", \"?\", \"&\"].includes(op), !!op && [\"?\", \"&\"].includes(op) ? \"=\" : \"\"];\n}\n\nfunction getFirstOrSep(op?: string, isFirst = false) {\n if (isFirst) {\n return !op || op === \"+\" ? \"\" : op;\n } else if (!op || op === \"+\" || op === \"#\") {\n return \",\";\n } else if (op === \"?\") {\n return \"&\";\n } else {\n return op;\n }\n}\n\nfunction getExpandedValue(option: ValueOptions) {\n let isFirst = option.isFirst;\n const { op, varName, varValue: value, reserved } = option;\n const vals: string[] = [];\n const [named, ifEmpty] = getNamedAndIfEmpty(op);\n\n if (Array.isArray(value)) {\n for (const val of value.filter(isDefined)) {\n // prepare the following parts: separator, varName, value\n vals.push(`${getFirstOrSep(op, isFirst)}`);\n if (named && varName) {\n vals.push(`${encodeURIComponent(varName)}`);\n val === \"\" ? vals.push(ifEmpty) : vals.push(\"=\");\n }\n vals.push(encodeComponent(val, reserved, op));\n isFirst = false;\n }\n } else if (typeof value === \"object\") {\n for (const key of Object.keys(value)) {\n const val = value[key];\n if (!isDefined(val)) {\n continue;\n }\n // prepare the following parts: separator, key, value\n vals.push(`${getFirstOrSep(op, isFirst)}`);\n if (key) {\n vals.push(`${encodeURIComponent(key)}`);\n named && val === \"\" ? vals.push(ifEmpty) : vals.push(\"=\");\n }\n vals.push(encodeComponent(val, reserved, op));\n isFirst = false;\n }\n }\n return vals.join(\"\");\n}\n\nfunction getNonExpandedValue(option: ValueOptions) {\n const { op, varName, varValue: value, isFirst, reserved } = option;\n const vals: string[] = [];\n const first = getFirstOrSep(op, isFirst);\n const [named, ifEmpty] = getNamedAndIfEmpty(op);\n if (named && varName) {\n vals.push(encodeComponent(varName, reserved, op));\n if (value === \"\") {\n if (!ifEmpty) {\n vals.push(ifEmpty);\n }\n return !vals.join(\"\") ? undefined : `${first}${vals.join(\"\")}`;\n }\n vals.push(\"=\");\n }\n\n const items = [];\n if (Array.isArray(value)) {\n for (const val of value.filter(isDefined)) {\n items.push(encodeComponent(val, reserved, op));\n }\n } else if (typeof value === \"object\") {\n for (const key of Object.keys(value)) {\n if (!isDefined(value[key])) {\n continue;\n }\n items.push(encodeRFC3986URIComponent(key));\n items.push(encodeComponent(value[key], reserved, op));\n }\n }\n vals.push(items.join(\",\"));\n return !vals.join(\",\") ? undefined : `${first}${vals.join(\"\")}`;\n}\n\nfunction getVarValue(option: ValueOptions): string | undefined {\n const { op, varName, modifier, isFirst, reserved, varValue: value } = option;\n\n if (!isDefined(value)) {\n return undefined;\n } else if ([\"string\", \"number\", \"boolean\"].includes(typeof value)) {\n let val = value.toString();\n const [named, ifEmpty] = getNamedAndIfEmpty(op);\n const vals: string[] = [getFirstOrSep(op, isFirst)];\n if (named && varName) {\n // No need to encode varName considering it is already encoded\n vals.push(varName);\n val === \"\" ? vals.push(ifEmpty) : vals.push(\"=\");\n }\n if (modifier && modifier !== \"*\") {\n val = val.substring(0, parseInt(modifier, 10));\n }\n vals.push(encodeComponent(val, reserved, op));\n return vals.join(\"\");\n } else if (modifier === \"*\") {\n return getExpandedValue(option);\n } else {\n return getNonExpandedValue(option);\n }\n}\n\n// ---------------------------------------------------------------------------------------------------\n// This is an implementation of RFC 6570 URI Template: https://datatracker.ietf.org/doc/html/rfc6570.\n// ---------------------------------------------------------------------------------------------------\nexport function expandUrlTemplate(\n template: string,\n context: Record<string, any>,\n option?: UrlTemplateOptions,\n): string {\n return template.replace(/\\{([^\\{\\}]+)\\}|([^\\{\\}]+)/g, (_, expr, text) => {\n if (!expr) {\n return encodeReservedComponent(text);\n }\n let op;\n if ([\"+\", \"#\", \".\", \"/\", \";\", \"?\", \"&\"].includes(expr[0])) {\n (op = expr[0]), (expr = expr.slice(1));\n }\n const varList = expr.split(/,/g);\n const result = [];\n for (const varSpec of varList) {\n const varMatch = /([^:\\*]*)(?::(\\d+)|(\\*))?/.exec(varSpec);\n if (!varMatch || !varMatch[1]) {\n continue;\n }\n const varValue = getVarValue({\n isFirst: result.length === 0,\n op,\n varValue: context[varMatch[1]],\n varName: varMatch[1],\n modifier: varMatch[2] || varMatch[3],\n reserved: option?.allowReserved,\n });\n if (varValue) {\n result.push(varValue);\n }\n }\n return result.join(\"\");\n });\n}\n"]}
@@ -1,8 +1,2 @@
1
- export { createStandbyPoolManagement, StandbyPoolContext, StandbyPoolManagementClientOptionalParams, } from "./standbyPoolManagementContext.js";
2
- export { operationsList } from "./operations/index.js";
3
- export { standbyContainerGroupPoolRuntimeViewsGet, standbyContainerGroupPoolRuntimeViewsListByStandbyPool, } from "./standbyContainerGroupPoolRuntimeViews/index.js";
4
- export { standbyContainerGroupPoolsGet, standbyContainerGroupPoolsCreateOrUpdate, standbyContainerGroupPoolsDelete, standbyContainerGroupPoolsUpdate, standbyContainerGroupPoolsListByResourceGroup, standbyContainerGroupPoolsListBySubscription, } from "./standbyContainerGroupPools/index.js";
5
- export { standbyVirtualMachinePoolRuntimeViewsGet, standbyVirtualMachinePoolRuntimeViewsListByStandbyPool, } from "./standbyVirtualMachinePoolRuntimeViews/index.js";
6
- export { standbyVirtualMachinePoolsGet, standbyVirtualMachinePoolsCreateOrUpdate, standbyVirtualMachinePoolsDelete, standbyVirtualMachinePoolsUpdate, standbyVirtualMachinePoolsListByResourceGroup, standbyVirtualMachinePoolsListBySubscription, } from "./standbyVirtualMachinePools/index.js";
7
- export { standbyVirtualMachinesGet, standbyVirtualMachinesListByStandbyVirtualMachinePoolResource, } from "./standbyVirtualMachines/index.js";
1
+ export { createStandbyPoolManagement, StandbyPoolManagementContext, StandbyPoolManagementClientOptionalParams, } from "./standbyPoolManagementContext.js";
8
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,2BAA2B,EAC3B,kBAAkB,EAClB,yCAAyC,GAC1C,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EACL,wCAAwC,EACxC,sDAAsD,GACvD,MAAM,kDAAkD,CAAC;AAC1D,OAAO,EACL,6BAA6B,EAC7B,wCAAwC,EACxC,gCAAgC,EAChC,gCAAgC,EAChC,6CAA6C,EAC7C,4CAA4C,GAC7C,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,wCAAwC,EACxC,sDAAsD,GACvD,MAAM,kDAAkD,CAAC;AAC1D,OAAO,EACL,6BAA6B,EAC7B,wCAAwC,EACxC,gCAAgC,EAChC,gCAAgC,EAChC,6CAA6C,EAC7C,4CAA4C,GAC7C,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,yBAAyB,EACzB,6DAA6D,GAC9D,MAAM,mCAAmC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,2BAA2B,EAC3B,4BAA4B,EAC5B,yCAAyC,GAC1C,MAAM,mCAAmC,CAAC"}
@@ -2,32 +2,7 @@
2
2
  // Copyright (c) Microsoft Corporation.
3
3
  // Licensed under the MIT License.
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.standbyVirtualMachinesListByStandbyVirtualMachinePoolResource = exports.standbyVirtualMachinesGet = exports.standbyVirtualMachinePoolsListBySubscription = exports.standbyVirtualMachinePoolsListByResourceGroup = exports.standbyVirtualMachinePoolsUpdate = exports.standbyVirtualMachinePoolsDelete = exports.standbyVirtualMachinePoolsCreateOrUpdate = exports.standbyVirtualMachinePoolsGet = exports.standbyVirtualMachinePoolRuntimeViewsListByStandbyPool = exports.standbyVirtualMachinePoolRuntimeViewsGet = exports.standbyContainerGroupPoolsListBySubscription = exports.standbyContainerGroupPoolsListByResourceGroup = exports.standbyContainerGroupPoolsUpdate = exports.standbyContainerGroupPoolsDelete = exports.standbyContainerGroupPoolsCreateOrUpdate = exports.standbyContainerGroupPoolsGet = exports.standbyContainerGroupPoolRuntimeViewsListByStandbyPool = exports.standbyContainerGroupPoolRuntimeViewsGet = exports.operationsList = exports.createStandbyPoolManagement = void 0;
5
+ exports.createStandbyPoolManagement = void 0;
6
6
  var standbyPoolManagementContext_js_1 = require("./standbyPoolManagementContext.js");
7
7
  Object.defineProperty(exports, "createStandbyPoolManagement", { enumerable: true, get: function () { return standbyPoolManagementContext_js_1.createStandbyPoolManagement; } });
8
- var index_js_1 = require("./operations/index.js");
9
- Object.defineProperty(exports, "operationsList", { enumerable: true, get: function () { return index_js_1.operationsList; } });
10
- var index_js_2 = require("./standbyContainerGroupPoolRuntimeViews/index.js");
11
- Object.defineProperty(exports, "standbyContainerGroupPoolRuntimeViewsGet", { enumerable: true, get: function () { return index_js_2.standbyContainerGroupPoolRuntimeViewsGet; } });
12
- Object.defineProperty(exports, "standbyContainerGroupPoolRuntimeViewsListByStandbyPool", { enumerable: true, get: function () { return index_js_2.standbyContainerGroupPoolRuntimeViewsListByStandbyPool; } });
13
- var index_js_3 = require("./standbyContainerGroupPools/index.js");
14
- Object.defineProperty(exports, "standbyContainerGroupPoolsGet", { enumerable: true, get: function () { return index_js_3.standbyContainerGroupPoolsGet; } });
15
- Object.defineProperty(exports, "standbyContainerGroupPoolsCreateOrUpdate", { enumerable: true, get: function () { return index_js_3.standbyContainerGroupPoolsCreateOrUpdate; } });
16
- Object.defineProperty(exports, "standbyContainerGroupPoolsDelete", { enumerable: true, get: function () { return index_js_3.standbyContainerGroupPoolsDelete; } });
17
- Object.defineProperty(exports, "standbyContainerGroupPoolsUpdate", { enumerable: true, get: function () { return index_js_3.standbyContainerGroupPoolsUpdate; } });
18
- Object.defineProperty(exports, "standbyContainerGroupPoolsListByResourceGroup", { enumerable: true, get: function () { return index_js_3.standbyContainerGroupPoolsListByResourceGroup; } });
19
- Object.defineProperty(exports, "standbyContainerGroupPoolsListBySubscription", { enumerable: true, get: function () { return index_js_3.standbyContainerGroupPoolsListBySubscription; } });
20
- var index_js_4 = require("./standbyVirtualMachinePoolRuntimeViews/index.js");
21
- Object.defineProperty(exports, "standbyVirtualMachinePoolRuntimeViewsGet", { enumerable: true, get: function () { return index_js_4.standbyVirtualMachinePoolRuntimeViewsGet; } });
22
- Object.defineProperty(exports, "standbyVirtualMachinePoolRuntimeViewsListByStandbyPool", { enumerable: true, get: function () { return index_js_4.standbyVirtualMachinePoolRuntimeViewsListByStandbyPool; } });
23
- var index_js_5 = require("./standbyVirtualMachinePools/index.js");
24
- Object.defineProperty(exports, "standbyVirtualMachinePoolsGet", { enumerable: true, get: function () { return index_js_5.standbyVirtualMachinePoolsGet; } });
25
- Object.defineProperty(exports, "standbyVirtualMachinePoolsCreateOrUpdate", { enumerable: true, get: function () { return index_js_5.standbyVirtualMachinePoolsCreateOrUpdate; } });
26
- Object.defineProperty(exports, "standbyVirtualMachinePoolsDelete", { enumerable: true, get: function () { return index_js_5.standbyVirtualMachinePoolsDelete; } });
27
- Object.defineProperty(exports, "standbyVirtualMachinePoolsUpdate", { enumerable: true, get: function () { return index_js_5.standbyVirtualMachinePoolsUpdate; } });
28
- Object.defineProperty(exports, "standbyVirtualMachinePoolsListByResourceGroup", { enumerable: true, get: function () { return index_js_5.standbyVirtualMachinePoolsListByResourceGroup; } });
29
- Object.defineProperty(exports, "standbyVirtualMachinePoolsListBySubscription", { enumerable: true, get: function () { return index_js_5.standbyVirtualMachinePoolsListBySubscription; } });
30
- var index_js_6 = require("./standbyVirtualMachines/index.js");
31
- Object.defineProperty(exports, "standbyVirtualMachinesGet", { enumerable: true, get: function () { return index_js_6.standbyVirtualMachinesGet; } });
32
- Object.defineProperty(exports, "standbyVirtualMachinesListByStandbyVirtualMachinePoolResource", { enumerable: true, get: function () { return index_js_6.standbyVirtualMachinesListByStandbyVirtualMachinePoolResource; } });
33
8
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,qFAI2C;AAHzC,8IAAA,2BAA2B,OAAA;AAI7B,kDAAuD;AAA9C,0GAAA,cAAc,OAAA;AACvB,6EAG0D;AAFxD,oIAAA,wCAAwC,OAAA;AACxC,kJAAA,sDAAsD,OAAA;AAExD,kEAO+C;AAN7C,yHAAA,6BAA6B,OAAA;AAC7B,oIAAA,wCAAwC,OAAA;AACxC,4HAAA,gCAAgC,OAAA;AAChC,4HAAA,gCAAgC,OAAA;AAChC,yIAAA,6CAA6C,OAAA;AAC7C,wIAAA,4CAA4C,OAAA;AAE9C,6EAG0D;AAFxD,oIAAA,wCAAwC,OAAA;AACxC,kJAAA,sDAAsD,OAAA;AAExD,kEAO+C;AAN7C,yHAAA,6BAA6B,OAAA;AAC7B,oIAAA,wCAAwC,OAAA;AACxC,4HAAA,gCAAgC,OAAA;AAChC,4HAAA,gCAAgC,OAAA;AAChC,yIAAA,6CAA6C,OAAA;AAC7C,wIAAA,4CAA4C,OAAA;AAE9C,8DAG2C;AAFzC,qHAAA,yBAAyB,OAAA;AACzB,yJAAA,6DAA6D,OAAA","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport {\n createStandbyPoolManagement,\n StandbyPoolContext,\n StandbyPoolManagementClientOptionalParams,\n} from \"./standbyPoolManagementContext.js\";\nexport { operationsList } from \"./operations/index.js\";\nexport {\n standbyContainerGroupPoolRuntimeViewsGet,\n standbyContainerGroupPoolRuntimeViewsListByStandbyPool,\n} from \"./standbyContainerGroupPoolRuntimeViews/index.js\";\nexport {\n standbyContainerGroupPoolsGet,\n standbyContainerGroupPoolsCreateOrUpdate,\n standbyContainerGroupPoolsDelete,\n standbyContainerGroupPoolsUpdate,\n standbyContainerGroupPoolsListByResourceGroup,\n standbyContainerGroupPoolsListBySubscription,\n} from \"./standbyContainerGroupPools/index.js\";\nexport {\n standbyVirtualMachinePoolRuntimeViewsGet,\n standbyVirtualMachinePoolRuntimeViewsListByStandbyPool,\n} from \"./standbyVirtualMachinePoolRuntimeViews/index.js\";\nexport {\n standbyVirtualMachinePoolsGet,\n standbyVirtualMachinePoolsCreateOrUpdate,\n standbyVirtualMachinePoolsDelete,\n standbyVirtualMachinePoolsUpdate,\n standbyVirtualMachinePoolsListByResourceGroup,\n standbyVirtualMachinePoolsListBySubscription,\n} from \"./standbyVirtualMachinePools/index.js\";\nexport {\n standbyVirtualMachinesGet,\n standbyVirtualMachinesListByStandbyVirtualMachinePoolResource,\n} from \"./standbyVirtualMachines/index.js\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,qFAI2C;AAHzC,8IAAA,2BAA2B,OAAA","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport {\n createStandbyPoolManagement,\n StandbyPoolManagementContext,\n StandbyPoolManagementClientOptionalParams,\n} from \"./standbyPoolManagementContext.js\";\n"]}
@@ -1,10 +1,3 @@
1
- import { Operation, _OperationListResult } from "../../models/models.js";
2
- import { StandbyPoolContext as Client } from "../index.js";
3
- import { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
4
- import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
5
- import { OperationsListOptionalParams } from "../../models/options.js";
6
- export declare function _operationsListSend(context: Client, options?: OperationsListOptionalParams): StreamableMethod;
7
- export declare function _operationsListDeserialize(result: PathUncheckedResponse): Promise<_OperationListResult>;
8
- /** List the operations for the provider */
9
- export declare function operationsList(context: Client, options?: OperationsListOptionalParams): PagedAsyncIterableIterator<Operation>;
1
+ export { list } from "./operations.js";
2
+ export { OperationsListOptionalParams } from "./options.js";
10
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/operations/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACzE,OAAO,EAAE,kBAAkB,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC;AAC3D,OAAO,EACL,gBAAgB,EAEhB,qBAAqB,EAEtB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,0BAA0B,EAE3B,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,4BAA4B,EAAE,MAAM,yBAAyB,CAAC;AAEvE,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,4BAAqD,GAC7D,gBAAgB,CAIlB;AAED,wBAAsB,0BAA0B,CAC9C,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,oBAAoB,CAAC,CAyB/B;AAED,2CAA2C;AAC3C,wBAAgB,cAAc,CAC5B,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,4BAAqD,GAC7D,0BAA0B,CAAC,SAAS,CAAC,CAQvC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/operations/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAAE,4BAA4B,EAAE,MAAM,cAAc,CAAC"}
@@ -2,44 +2,7 @@
2
2
  // Copyright (c) Microsoft Corporation.
3
3
  // Licensed under the MIT License.
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
- exports._operationsListSend = _operationsListSend;
6
- exports._operationsListDeserialize = _operationsListDeserialize;
7
- exports.operationsList = operationsList;
8
- const core_client_1 = require("@azure-rest/core-client");
9
- const pagingHelpers_js_1 = require("../../static-helpers/pagingHelpers.js");
10
- function _operationsListSend(context, options = { requestOptions: {} }) {
11
- return context
12
- .path("/providers/Microsoft.StandbyPool/operations")
13
- .get(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)));
14
- }
15
- async function _operationsListDeserialize(result) {
16
- const expectedStatuses = ["200"];
17
- if (!expectedStatuses.includes(result.status)) {
18
- throw (0, core_client_1.createRestError)(result);
19
- }
20
- return {
21
- value: result.body["value"].map((p) => {
22
- var _a, _b, _c, _d;
23
- return {
24
- name: p["name"],
25
- isDataAction: p["isDataAction"],
26
- display: !p.display
27
- ? undefined
28
- : {
29
- provider: (_a = p.display) === null || _a === void 0 ? void 0 : _a["provider"],
30
- resource: (_b = p.display) === null || _b === void 0 ? void 0 : _b["resource"],
31
- operation: (_c = p.display) === null || _c === void 0 ? void 0 : _c["operation"],
32
- description: (_d = p.display) === null || _d === void 0 ? void 0 : _d["description"],
33
- },
34
- origin: p["origin"],
35
- actionType: p["actionType"],
36
- };
37
- }),
38
- nextLink: result.body["nextLink"],
39
- };
40
- }
41
- /** List the operations for the provider */
42
- function operationsList(context, options = { requestOptions: {} }) {
43
- return (0, pagingHelpers_js_1.buildPagedAsyncIterator)(context, () => _operationsListSend(context, options), _operationsListDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
44
- }
5
+ exports.list = void 0;
6
+ var operations_js_1 = require("./operations.js");
7
+ Object.defineProperty(exports, "list", { enumerable: true, get: function () { return operations_js_1.list; } });
45
8
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/operations/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAgBlC,kDAOC;AAED,gEA2BC;AAGD,wCAWC;AA9DD,yDAKiC;AACjC,4EAG+C;AAG/C,SAAgB,mBAAmB,CACjC,OAAe,EACf,UAAwC,EAAE,cAAc,EAAE,EAAE,EAAE;IAE9D,OAAO,OAAO;SACX,IAAI,CAAC,6CAA6C,CAAC;SACnD,GAAG,mBAAM,IAAA,iDAAmC,EAAC,OAAO,CAAC,EAAG,CAAC;AAC9D,CAAC;AAEM,KAAK,UAAU,0BAA0B,CAC9C,MAA6B;IAE7B,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,IAAA,6BAAe,EAAC,MAAM,CAAC,CAAC;IAChC,CAAC;IAED,OAAO;QACL,KAAK,EAAE,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,CAAM,EAAE,EAAE;;YACzC,OAAO;gBACL,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC;gBACf,YAAY,EAAE,CAAC,CAAC,cAAc,CAAC;gBAC/B,OAAO,EAAE,CAAC,CAAC,CAAC,OAAO;oBACjB,CAAC,CAAC,SAAS;oBACX,CAAC,CAAC;wBACE,QAAQ,EAAE,MAAA,CAAC,CAAC,OAAO,0CAAG,UAAU,CAAC;wBACjC,QAAQ,EAAE,MAAA,CAAC,CAAC,OAAO,0CAAG,UAAU,CAAC;wBACjC,SAAS,EAAE,MAAA,CAAC,CAAC,OAAO,0CAAG,WAAW,CAAC;wBACnC,WAAW,EAAE,MAAA,CAAC,CAAC,OAAO,0CAAG,aAAa,CAAC;qBACxC;gBACL,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC;gBACnB,UAAU,EAAE,CAAC,CAAC,YAAY,CAAC;aAC5B,CAAC;QACJ,CAAC,CAAC;QACF,QAAQ,EAAE,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC;KAClC,CAAC;AACJ,CAAC;AAED,2CAA2C;AAC3C,SAAgB,cAAc,CAC5B,OAAe,EACf,UAAwC,EAAE,cAAc,EAAE,EAAE,EAAE;IAE9D,OAAO,IAAA,0CAAuB,EAC5B,OAAO,EACP,GAAG,EAAE,CAAC,mBAAmB,CAAC,OAAO,EAAE,OAAO,CAAC,EAC3C,0BAA0B,EAC1B,CAAC,KAAK,CAAC,EACP,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,CAChD,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { Operation, _OperationListResult } from \"../../models/models.js\";\nimport { StandbyPoolContext as Client } from \"../index.js\";\nimport {\n StreamableMethod,\n operationOptionsToRequestParameters,\n PathUncheckedResponse,\n createRestError,\n} from \"@azure-rest/core-client\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport { OperationsListOptionalParams } from \"../../models/options.js\";\n\nexport function _operationsListSend(\n context: Client,\n options: OperationsListOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\"/providers/Microsoft.StandbyPool/operations\")\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _operationsListDeserialize(\n result: PathUncheckedResponse,\n): Promise<_OperationListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return {\n value: result.body[\"value\"].map((p: any) => {\n return {\n name: p[\"name\"],\n isDataAction: p[\"isDataAction\"],\n display: !p.display\n ? undefined\n : {\n provider: p.display?.[\"provider\"],\n resource: p.display?.[\"resource\"],\n operation: p.display?.[\"operation\"],\n description: p.display?.[\"description\"],\n },\n origin: p[\"origin\"],\n actionType: p[\"actionType\"],\n };\n }),\n nextLink: result.body[\"nextLink\"],\n };\n}\n\n/** List the operations for the provider */\nexport function operationsList(\n context: Client,\n options: OperationsListOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<Operation> {\n return buildPagedAsyncIterator(\n context,\n () => _operationsListSend(context, options),\n _operationsListDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/operations/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,iDAAuC;AAA9B,qGAAA,IAAI,OAAA","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport { list } from \"./operations.js\";\nexport { OperationsListOptionalParams } from \"./options.js\";\n"]}
@@ -0,0 +1,10 @@
1
+ import { StandbyPoolManagementContext as Client } from "../index.js";
2
+ import { _OperationListResult, Operation } from "../../models/models.js";
3
+ import { OperationsListOptionalParams } from "./options.js";
4
+ import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
5
+ import { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
6
+ export declare function _listSend(context: Client, options?: OperationsListOptionalParams): StreamableMethod;
7
+ export declare function _listDeserialize(result: PathUncheckedResponse): Promise<_OperationListResult>;
8
+ /** List the operations for the provider */
9
+ export declare function list(context: Client, options?: OperationsListOptionalParams): PagedAsyncIterableIterator<Operation>;
10
+ //# sourceMappingURL=operations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../../src/api/operations/operations.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,4BAA4B,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC;AACrE,OAAO,EACL,oBAAoB,EAEpB,SAAS,EAEV,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,4BAA4B,EAAE,MAAM,cAAc,CAAC;AAC5D,OAAO,EACL,0BAA0B,EAE3B,MAAM,uCAAuC,CAAC;AAE/C,OAAO,EACL,gBAAgB,EAChB,qBAAqB,EAGtB,MAAM,yBAAyB,CAAC;AAEjC,wBAAgB,SAAS,CACvB,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,4BAAqD,GAC7D,gBAAgB,CAiBlB;AAED,wBAAsB,gBAAgB,CACpC,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,oBAAoB,CAAC,CAS/B;AAED,2CAA2C;AAC3C,wBAAgB,IAAI,CAClB,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,4BAAqD,GAC7D,0BAA0B,CAAC,SAAS,CAAC,CAQvC"}
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ // Copyright (c) Microsoft Corporation.
3
+ // Licensed under the MIT License.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports._listSend = _listSend;
6
+ exports._listDeserialize = _listDeserialize;
7
+ exports.list = list;
8
+ const models_js_1 = require("../../models/models.js");
9
+ const pagingHelpers_js_1 = require("../../static-helpers/pagingHelpers.js");
10
+ const urlTemplate_js_1 = require("../../static-helpers/urlTemplate.js");
11
+ const core_client_1 = require("@azure-rest/core-client");
12
+ function _listSend(context, options = { requestOptions: {} }) {
13
+ var _a, _b;
14
+ const path = (0, urlTemplate_js_1.expandUrlTemplate)("/providers/Microsoft.StandbyPool/operations{?api%2Dversion}", {
15
+ "api%2Dversion": context.apiVersion,
16
+ }, {
17
+ allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
18
+ });
19
+ return context.path(path).get(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
20
+ }
21
+ async function _listDeserialize(result) {
22
+ const expectedStatuses = ["200"];
23
+ if (!expectedStatuses.includes(result.status)) {
24
+ const error = (0, core_client_1.createRestError)(result);
25
+ error.details = (0, models_js_1.errorResponseDeserializer)(result.body);
26
+ throw error;
27
+ }
28
+ return (0, models_js_1._operationListResultDeserializer)(result.body);
29
+ }
30
+ /** List the operations for the provider */
31
+ function list(context, options = { requestOptions: {} }) {
32
+ return (0, pagingHelpers_js_1.buildPagedAsyncIterator)(context, () => _listSend(context, options), _listDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
33
+ }
34
+ //# sourceMappingURL=operations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/operations/operations.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAsBlC,8BAoBC;AAED,4CAWC;AAGD,oBAWC;AAlED,sDAKgC;AAEhC,4EAG+C;AAC/C,wEAAwE;AACxE,yDAKiC;AAEjC,SAAgB,SAAS,CACvB,OAAe,EACf,UAAwC,EAAE,cAAc,EAAE,EAAE,EAAE;;IAE9D,MAAM,IAAI,GAAG,IAAA,kCAAiB,EAC5B,6DAA6D,EAC7D;QACE,eAAe,EAAE,OAAO,CAAC,UAAU;KACpC,EACD;QACE,aAAa,EAAE,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,cAAc,0CAAE,eAAe;KACxD,CACF,CAAC;IACF,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,iCACxB,IAAA,iDAAmC,EAAC,OAAO,CAAC,KAC/C,OAAO,kBACL,MAAM,EAAE,kBAAkB,IACvB,MAAA,OAAO,CAAC,cAAc,0CAAE,OAAO,KAEpC,CAAC;AACL,CAAC;AAEM,KAAK,UAAU,gBAAgB,CACpC,MAA6B;IAE7B,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,KAAK,GAAG,IAAA,6BAAe,EAAC,MAAM,CAAC,CAAC;QACtC,KAAK,CAAC,OAAO,GAAG,IAAA,qCAAyB,EAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACvD,MAAM,KAAK,CAAC;IACd,CAAC;IAED,OAAO,IAAA,4CAAgC,EAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACvD,CAAC;AAED,2CAA2C;AAC3C,SAAgB,IAAI,CAClB,OAAe,EACf,UAAwC,EAAE,cAAc,EAAE,EAAE,EAAE;IAE9D,OAAO,IAAA,0CAAuB,EAC5B,OAAO,EACP,GAAG,EAAE,CAAC,SAAS,CAAC,OAAO,EAAE,OAAO,CAAC,EACjC,gBAAgB,EAChB,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 { StandbyPoolManagementContext as Client } from \"../index.js\";\nimport {\n _OperationListResult,\n _operationListResultDeserializer,\n Operation,\n errorResponseDeserializer,\n} from \"../../models/models.js\";\nimport { OperationsListOptionalParams } from \"./options.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\n\nexport function _listSend(\n context: Client,\n options: OperationsListOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/providers/Microsoft.StandbyPool/operations{?api%2Dversion}\",\n {\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _listDeserialize(\n result: PathUncheckedResponse,\n): Promise<_OperationListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return _operationListResultDeserializer(result.body);\n}\n\n/** List the operations for the provider */\nexport function list(\n context: Client,\n options: OperationsListOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<Operation> {\n return buildPagedAsyncIterator(\n context,\n () => _listSend(context, options),\n _listDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n"]}
@@ -0,0 +1,5 @@
1
+ import { OperationOptions } from "@azure-rest/core-client";
2
+ /** Optional parameters. */
3
+ export interface OperationsListOptionalParams extends OperationOptions {
4
+ }
5
+ //# sourceMappingURL=options.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../../src/api/operations/options.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAE3D,2BAA2B;AAC3B,MAAM,WAAW,4BAA6B,SAAQ,gBAAgB;CAAG"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"options.js","sourceRoot":"","sources":["../../../../src/api/operations/options.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { OperationOptions } from \"@azure-rest/core-client\";\n\n/** Optional parameters. */\nexport interface OperationsListOptionalParams extends OperationOptions {}\n"]}
@@ -1,14 +1,3 @@
1
- import { StandbyContainerGroupPoolRuntimeViewResource, _StandbyContainerGroupPoolRuntimeViewResourceListResult } from "../../models/models.js";
2
- import { StandbyPoolContext as Client } from "../index.js";
3
- import { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
4
- import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
5
- import { StandbyContainerGroupPoolRuntimeViewsGetOptionalParams, StandbyContainerGroupPoolRuntimeViewsListByStandbyPoolOptionalParams } from "../../models/options.js";
6
- export declare function _standbyContainerGroupPoolRuntimeViewsGetSend(context: Client, subscriptionId: string, resourceGroupName: string, standbyContainerGroupPoolName: string, runtimeView: string, options?: StandbyContainerGroupPoolRuntimeViewsGetOptionalParams): StreamableMethod;
7
- export declare function _standbyContainerGroupPoolRuntimeViewsGetDeserialize(result: PathUncheckedResponse): Promise<StandbyContainerGroupPoolRuntimeViewResource>;
8
- /** Get a StandbyContainerGroupPoolRuntimeViewResource */
9
- export declare function standbyContainerGroupPoolRuntimeViewsGet(context: Client, subscriptionId: string, resourceGroupName: string, standbyContainerGroupPoolName: string, runtimeView: string, options?: StandbyContainerGroupPoolRuntimeViewsGetOptionalParams): Promise<StandbyContainerGroupPoolRuntimeViewResource>;
10
- export declare function _standbyContainerGroupPoolRuntimeViewsListByStandbyPoolSend(context: Client, subscriptionId: string, resourceGroupName: string, standbyContainerGroupPoolName: string, options?: StandbyContainerGroupPoolRuntimeViewsListByStandbyPoolOptionalParams): StreamableMethod;
11
- export declare function _standbyContainerGroupPoolRuntimeViewsListByStandbyPoolDeserialize(result: PathUncheckedResponse): Promise<_StandbyContainerGroupPoolRuntimeViewResourceListResult>;
12
- /** List StandbyContainerGroupPoolRuntimeViewResource resources by StandbyContainerGroupPoolResource */
13
- export declare function standbyContainerGroupPoolRuntimeViewsListByStandbyPool(context: Client, subscriptionId: string, resourceGroupName: string, standbyContainerGroupPoolName: string, options?: StandbyContainerGroupPoolRuntimeViewsListByStandbyPoolOptionalParams): PagedAsyncIterableIterator<StandbyContainerGroupPoolRuntimeViewResource>;
1
+ export { listByStandbyPool, get } from "./operations.js";
2
+ export { StandbyContainerGroupPoolRuntimeViewsListByStandbyPoolOptionalParams, StandbyContainerGroupPoolRuntimeViewsGetOptionalParams, } from "./options.js";
14
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/standbyContainerGroupPoolRuntimeViews/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,4CAA4C,EAC5C,uDAAuD,EACxD,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,kBAAkB,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC;AAC3D,OAAO,EACL,gBAAgB,EAEhB,qBAAqB,EAEtB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,0BAA0B,EAE3B,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,sDAAsD,EACtD,oEAAoE,EACrE,MAAM,yBAAyB,CAAC;AAEjC,wBAAgB,6CAA6C,CAC3D,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,EACzB,6BAA6B,EAAE,MAAM,EACrC,WAAW,EAAE,MAAM,EACnB,OAAO,GAAE,sDAER,GACA,gBAAgB,CAUlB;AAED,wBAAsB,oDAAoD,CACxE,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,4CAA4C,CAAC,CAuCvD;AAED,yDAAyD;AACzD,wBAAsB,wCAAwC,CAC5D,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,EACzB,6BAA6B,EAAE,MAAM,EACrC,WAAW,EAAE,MAAM,EACnB,OAAO,GAAE,sDAER,GACA,OAAO,CAAC,4CAA4C,CAAC,CAUvD;AAED,wBAAgB,2DAA2D,CACzE,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,EACzB,6BAA6B,EAAE,MAAM,EACrC,OAAO,GAAE,oEAER,GACA,gBAAgB,CASlB;AAED,wBAAsB,kEAAkE,CACtF,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,uDAAuD,CAAC,CA4ClE;AAED,uGAAuG;AACvG,wBAAgB,sDAAsD,CACpE,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,EACzB,6BAA6B,EAAE,MAAM,EACrC,OAAO,GAAE,oEAER,GACA,0BAA0B,CAAC,4CAA4C,CAAC,CAe1E"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/standbyContainerGroupPoolRuntimeViews/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EACL,oEAAoE,EACpE,sDAAsD,GACvD,MAAM,cAAc,CAAC"}