@azure/arm-playwright 1.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (352) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/LICENSE +21 -0
  3. package/README.md +115 -0
  4. package/dist/browser/api/index.d.ts +2 -0
  5. package/dist/browser/api/index.js +4 -0
  6. package/dist/browser/api/index.js.map +1 -0
  7. package/dist/browser/api/operations/index.d.ts +3 -0
  8. package/dist/browser/api/operations/index.js +4 -0
  9. package/dist/browser/api/operations/index.js.map +1 -0
  10. package/dist/browser/api/operations/operations.d.ts +10 -0
  11. package/dist/browser/api/operations/operations.js +29 -0
  12. package/dist/browser/api/operations/operations.js.map +1 -0
  13. package/dist/browser/api/operations/options.d.ts +5 -0
  14. package/dist/browser/api/operations/options.js +4 -0
  15. package/dist/browser/api/operations/options.js.map +1 -0
  16. package/dist/browser/api/playwrightManagementContext.d.ts +19 -0
  17. package/dist/browser/api/playwrightManagementContext.js +36 -0
  18. package/dist/browser/api/playwrightManagementContext.js.map +1 -0
  19. package/dist/browser/api/playwrightQuotas/index.d.ts +3 -0
  20. package/dist/browser/api/playwrightQuotas/index.js +4 -0
  21. package/dist/browser/api/playwrightQuotas/index.js.map +1 -0
  22. package/dist/browser/api/playwrightQuotas/operations.d.ts +14 -0
  23. package/dist/browser/api/playwrightQuotas/operations.js +61 -0
  24. package/dist/browser/api/playwrightQuotas/operations.js.map +1 -0
  25. package/dist/browser/api/playwrightQuotas/options.d.ts +8 -0
  26. package/dist/browser/api/playwrightQuotas/options.js +4 -0
  27. package/dist/browser/api/playwrightQuotas/options.js.map +1 -0
  28. package/dist/browser/api/playwrightWorkspaceQuotas/index.d.ts +3 -0
  29. package/dist/browser/api/playwrightWorkspaceQuotas/index.js +4 -0
  30. package/dist/browser/api/playwrightWorkspaceQuotas/index.js.map +1 -0
  31. package/dist/browser/api/playwrightWorkspaceQuotas/operations.d.ts +14 -0
  32. package/dist/browser/api/playwrightWorkspaceQuotas/operations.js +63 -0
  33. package/dist/browser/api/playwrightWorkspaceQuotas/operations.js.map +1 -0
  34. package/dist/browser/api/playwrightWorkspaceQuotas/options.d.ts +8 -0
  35. package/dist/browser/api/playwrightWorkspaceQuotas/options.js +4 -0
  36. package/dist/browser/api/playwrightWorkspaceQuotas/options.js.map +1 -0
  37. package/dist/browser/api/playwrightWorkspaces/index.d.ts +3 -0
  38. package/dist/browser/api/playwrightWorkspaces/index.js +4 -0
  39. package/dist/browser/api/playwrightWorkspaces/index.js.map +1 -0
  40. package/dist/browser/api/playwrightWorkspaces/operations.d.ts +40 -0
  41. package/dist/browser/api/playwrightWorkspaces/operations.js +212 -0
  42. package/dist/browser/api/playwrightWorkspaces/operations.js.map +1 -0
  43. package/dist/browser/api/playwrightWorkspaces/options.d.ts +27 -0
  44. package/dist/browser/api/playwrightWorkspaces/options.js +4 -0
  45. package/dist/browser/api/playwrightWorkspaces/options.js.map +1 -0
  46. package/dist/browser/classic/index.d.ts +5 -0
  47. package/dist/browser/classic/index.js +4 -0
  48. package/dist/browser/classic/index.js.map +1 -0
  49. package/dist/browser/classic/operations/index.d.ts +11 -0
  50. package/dist/browser/classic/operations/index.js +12 -0
  51. package/dist/browser/classic/operations/index.js.map +1 -0
  52. package/dist/browser/classic/playwrightQuotas/index.d.ts +13 -0
  53. package/dist/browser/classic/playwrightQuotas/index.js +13 -0
  54. package/dist/browser/classic/playwrightQuotas/index.js.map +1 -0
  55. package/dist/browser/classic/playwrightWorkspaceQuotas/index.d.ts +13 -0
  56. package/dist/browser/classic/playwrightWorkspaceQuotas/index.js +13 -0
  57. package/dist/browser/classic/playwrightWorkspaceQuotas/index.js.map +1 -0
  58. package/dist/browser/classic/playwrightWorkspaces/index.d.ts +29 -0
  59. package/dist/browser/classic/playwrightWorkspaces/index.js +18 -0
  60. package/dist/browser/classic/playwrightWorkspaces/index.js.map +1 -0
  61. package/dist/browser/index.d.ts +12 -0
  62. package/dist/browser/index.js +6 -0
  63. package/dist/browser/index.js.map +1 -0
  64. package/dist/browser/logger.d.ts +2 -0
  65. package/dist/browser/logger.js +5 -0
  66. package/dist/browser/logger.js.map +1 -0
  67. package/dist/browser/models/index.d.ts +2 -0
  68. package/dist/browser/models/index.js +4 -0
  69. package/dist/browser/models/index.js.map +1 -0
  70. package/dist/browser/models/models.d.ts +391 -0
  71. package/dist/browser/models/models.js +352 -0
  72. package/dist/browser/models/models.js.map +1 -0
  73. package/dist/browser/package.json +3 -0
  74. package/dist/browser/playwrightManagementClient.d.ts +24 -0
  75. package/dist/browser/playwrightManagementClient.js +24 -0
  76. package/dist/browser/playwrightManagementClient.js.map +1 -0
  77. package/dist/browser/restorePollerHelpers.d.ts +21 -0
  78. package/dist/browser/restorePollerHelpers.js +97 -0
  79. package/dist/browser/restorePollerHelpers.js.map +1 -0
  80. package/dist/browser/static-helpers/pagingHelpers.d.ts +72 -0
  81. package/dist/browser/static-helpers/pagingHelpers.js +137 -0
  82. package/dist/browser/static-helpers/pagingHelpers.js.map +1 -0
  83. package/dist/browser/static-helpers/pollingHelpers.d.ts +30 -0
  84. package/dist/browser/static-helpers/pollingHelpers.js +76 -0
  85. package/dist/browser/static-helpers/pollingHelpers.js.map +1 -0
  86. package/dist/browser/static-helpers/urlTemplate.d.ts +5 -0
  87. package/dist/browser/static-helpers/urlTemplate.js +169 -0
  88. package/dist/browser/static-helpers/urlTemplate.js.map +1 -0
  89. package/dist/commonjs/api/index.d.ts +2 -0
  90. package/dist/commonjs/api/index.js +8 -0
  91. package/dist/commonjs/api/index.js.map +1 -0
  92. package/dist/commonjs/api/operations/index.d.ts +3 -0
  93. package/dist/commonjs/api/operations/index.js +8 -0
  94. package/dist/commonjs/api/operations/index.js.map +1 -0
  95. package/dist/commonjs/api/operations/operations.d.ts +10 -0
  96. package/dist/commonjs/api/operations/operations.js +34 -0
  97. package/dist/commonjs/api/operations/operations.js.map +1 -0
  98. package/dist/commonjs/api/operations/options.d.ts +5 -0
  99. package/dist/commonjs/api/operations/options.js +5 -0
  100. package/dist/commonjs/api/operations/options.js.map +1 -0
  101. package/dist/commonjs/api/playwrightManagementContext.d.ts +19 -0
  102. package/dist/commonjs/api/playwrightManagementContext.js +39 -0
  103. package/dist/commonjs/api/playwrightManagementContext.js.map +1 -0
  104. package/dist/commonjs/api/playwrightQuotas/index.d.ts +3 -0
  105. package/dist/commonjs/api/playwrightQuotas/index.js +9 -0
  106. package/dist/commonjs/api/playwrightQuotas/index.js.map +1 -0
  107. package/dist/commonjs/api/playwrightQuotas/operations.d.ts +14 -0
  108. package/dist/commonjs/api/playwrightQuotas/operations.js +69 -0
  109. package/dist/commonjs/api/playwrightQuotas/operations.js.map +1 -0
  110. package/dist/commonjs/api/playwrightQuotas/options.d.ts +8 -0
  111. package/dist/commonjs/api/playwrightQuotas/options.js +5 -0
  112. package/dist/commonjs/api/playwrightQuotas/options.js.map +1 -0
  113. package/dist/commonjs/api/playwrightWorkspaceQuotas/index.d.ts +3 -0
  114. package/dist/commonjs/api/playwrightWorkspaceQuotas/index.js +9 -0
  115. package/dist/commonjs/api/playwrightWorkspaceQuotas/index.js.map +1 -0
  116. package/dist/commonjs/api/playwrightWorkspaceQuotas/operations.d.ts +14 -0
  117. package/dist/commonjs/api/playwrightWorkspaceQuotas/operations.js +71 -0
  118. package/dist/commonjs/api/playwrightWorkspaceQuotas/operations.js.map +1 -0
  119. package/dist/commonjs/api/playwrightWorkspaceQuotas/options.d.ts +8 -0
  120. package/dist/commonjs/api/playwrightWorkspaceQuotas/options.js +5 -0
  121. package/dist/commonjs/api/playwrightWorkspaceQuotas/options.js.map +1 -0
  122. package/dist/commonjs/api/playwrightWorkspaces/index.d.ts +3 -0
  123. package/dist/commonjs/api/playwrightWorkspaces/index.js +14 -0
  124. package/dist/commonjs/api/playwrightWorkspaces/index.js.map +1 -0
  125. package/dist/commonjs/api/playwrightWorkspaces/operations.d.ts +40 -0
  126. package/dist/commonjs/api/playwrightWorkspaces/operations.js +235 -0
  127. package/dist/commonjs/api/playwrightWorkspaces/operations.js.map +1 -0
  128. package/dist/commonjs/api/playwrightWorkspaces/options.d.ts +27 -0
  129. package/dist/commonjs/api/playwrightWorkspaces/options.js +5 -0
  130. package/dist/commonjs/api/playwrightWorkspaces/options.js.map +1 -0
  131. package/dist/commonjs/classic/index.d.ts +5 -0
  132. package/dist/commonjs/classic/index.js +5 -0
  133. package/dist/commonjs/classic/index.js.map +1 -0
  134. package/dist/commonjs/classic/operations/index.d.ts +11 -0
  135. package/dist/commonjs/classic/operations/index.js +15 -0
  136. package/dist/commonjs/classic/operations/index.js.map +1 -0
  137. package/dist/commonjs/classic/playwrightQuotas/index.d.ts +13 -0
  138. package/dist/commonjs/classic/playwrightQuotas/index.js +16 -0
  139. package/dist/commonjs/classic/playwrightQuotas/index.js.map +1 -0
  140. package/dist/commonjs/classic/playwrightWorkspaceQuotas/index.d.ts +13 -0
  141. package/dist/commonjs/classic/playwrightWorkspaceQuotas/index.js +16 -0
  142. package/dist/commonjs/classic/playwrightWorkspaceQuotas/index.js.map +1 -0
  143. package/dist/commonjs/classic/playwrightWorkspaces/index.d.ts +29 -0
  144. package/dist/commonjs/classic/playwrightWorkspaces/index.js +21 -0
  145. package/dist/commonjs/classic/playwrightWorkspaces/index.js.map +1 -0
  146. package/dist/commonjs/index.d.ts +12 -0
  147. package/dist/commonjs/index.js +20 -0
  148. package/dist/commonjs/index.js.map +1 -0
  149. package/dist/commonjs/logger.d.ts +2 -0
  150. package/dist/commonjs/logger.js +8 -0
  151. package/dist/commonjs/logger.js.map +1 -0
  152. package/dist/commonjs/models/index.d.ts +2 -0
  153. package/dist/commonjs/models/index.js +16 -0
  154. package/dist/commonjs/models/index.js.map +1 -0
  155. package/dist/commonjs/models/models.d.ts +391 -0
  156. package/dist/commonjs/models/models.js +391 -0
  157. package/dist/commonjs/models/models.js.map +1 -0
  158. package/dist/commonjs/package.json +3 -0
  159. package/dist/commonjs/playwrightManagementClient.d.ts +24 -0
  160. package/dist/commonjs/playwrightManagementClient.js +28 -0
  161. package/dist/commonjs/playwrightManagementClient.js.map +1 -0
  162. package/dist/commonjs/restorePollerHelpers.d.ts +21 -0
  163. package/dist/commonjs/restorePollerHelpers.js +100 -0
  164. package/dist/commonjs/restorePollerHelpers.js.map +1 -0
  165. package/dist/commonjs/static-helpers/pagingHelpers.d.ts +72 -0
  166. package/dist/commonjs/static-helpers/pagingHelpers.js +140 -0
  167. package/dist/commonjs/static-helpers/pagingHelpers.js.map +1 -0
  168. package/dist/commonjs/static-helpers/pollingHelpers.d.ts +30 -0
  169. package/dist/commonjs/static-helpers/pollingHelpers.js +79 -0
  170. package/dist/commonjs/static-helpers/pollingHelpers.js.map +1 -0
  171. package/dist/commonjs/static-helpers/urlTemplate.d.ts +5 -0
  172. package/dist/commonjs/static-helpers/urlTemplate.js +172 -0
  173. package/dist/commonjs/static-helpers/urlTemplate.js.map +1 -0
  174. package/dist/commonjs/tsdoc-metadata.json +11 -0
  175. package/dist/esm/api/index.d.ts +2 -0
  176. package/dist/esm/api/index.js +4 -0
  177. package/dist/esm/api/index.js.map +1 -0
  178. package/dist/esm/api/operations/index.d.ts +3 -0
  179. package/dist/esm/api/operations/index.js +4 -0
  180. package/dist/esm/api/operations/index.js.map +1 -0
  181. package/dist/esm/api/operations/operations.d.ts +10 -0
  182. package/dist/esm/api/operations/operations.js +29 -0
  183. package/dist/esm/api/operations/operations.js.map +1 -0
  184. package/dist/esm/api/operations/options.d.ts +5 -0
  185. package/dist/esm/api/operations/options.js +4 -0
  186. package/dist/esm/api/operations/options.js.map +1 -0
  187. package/dist/esm/api/playwrightManagementContext.d.ts +19 -0
  188. package/dist/esm/api/playwrightManagementContext.js +36 -0
  189. package/dist/esm/api/playwrightManagementContext.js.map +1 -0
  190. package/dist/esm/api/playwrightQuotas/index.d.ts +3 -0
  191. package/dist/esm/api/playwrightQuotas/index.js +4 -0
  192. package/dist/esm/api/playwrightQuotas/index.js.map +1 -0
  193. package/dist/esm/api/playwrightQuotas/operations.d.ts +14 -0
  194. package/dist/esm/api/playwrightQuotas/operations.js +61 -0
  195. package/dist/esm/api/playwrightQuotas/operations.js.map +1 -0
  196. package/dist/esm/api/playwrightQuotas/options.d.ts +8 -0
  197. package/dist/esm/api/playwrightQuotas/options.js +4 -0
  198. package/dist/esm/api/playwrightQuotas/options.js.map +1 -0
  199. package/dist/esm/api/playwrightWorkspaceQuotas/index.d.ts +3 -0
  200. package/dist/esm/api/playwrightWorkspaceQuotas/index.js +4 -0
  201. package/dist/esm/api/playwrightWorkspaceQuotas/index.js.map +1 -0
  202. package/dist/esm/api/playwrightWorkspaceQuotas/operations.d.ts +14 -0
  203. package/dist/esm/api/playwrightWorkspaceQuotas/operations.js +63 -0
  204. package/dist/esm/api/playwrightWorkspaceQuotas/operations.js.map +1 -0
  205. package/dist/esm/api/playwrightWorkspaceQuotas/options.d.ts +8 -0
  206. package/dist/esm/api/playwrightWorkspaceQuotas/options.js +4 -0
  207. package/dist/esm/api/playwrightWorkspaceQuotas/options.js.map +1 -0
  208. package/dist/esm/api/playwrightWorkspaces/index.d.ts +3 -0
  209. package/dist/esm/api/playwrightWorkspaces/index.js +4 -0
  210. package/dist/esm/api/playwrightWorkspaces/index.js.map +1 -0
  211. package/dist/esm/api/playwrightWorkspaces/operations.d.ts +40 -0
  212. package/dist/esm/api/playwrightWorkspaces/operations.js +212 -0
  213. package/dist/esm/api/playwrightWorkspaces/operations.js.map +1 -0
  214. package/dist/esm/api/playwrightWorkspaces/options.d.ts +27 -0
  215. package/dist/esm/api/playwrightWorkspaces/options.js +4 -0
  216. package/dist/esm/api/playwrightWorkspaces/options.js.map +1 -0
  217. package/dist/esm/classic/index.d.ts +5 -0
  218. package/dist/esm/classic/index.js +4 -0
  219. package/dist/esm/classic/index.js.map +1 -0
  220. package/dist/esm/classic/operations/index.d.ts +11 -0
  221. package/dist/esm/classic/operations/index.js +12 -0
  222. package/dist/esm/classic/operations/index.js.map +1 -0
  223. package/dist/esm/classic/playwrightQuotas/index.d.ts +13 -0
  224. package/dist/esm/classic/playwrightQuotas/index.js +13 -0
  225. package/dist/esm/classic/playwrightQuotas/index.js.map +1 -0
  226. package/dist/esm/classic/playwrightWorkspaceQuotas/index.d.ts +13 -0
  227. package/dist/esm/classic/playwrightWorkspaceQuotas/index.js +13 -0
  228. package/dist/esm/classic/playwrightWorkspaceQuotas/index.js.map +1 -0
  229. package/dist/esm/classic/playwrightWorkspaces/index.d.ts +29 -0
  230. package/dist/esm/classic/playwrightWorkspaces/index.js +18 -0
  231. package/dist/esm/classic/playwrightWorkspaces/index.js.map +1 -0
  232. package/dist/esm/index.d.ts +12 -0
  233. package/dist/esm/index.js +6 -0
  234. package/dist/esm/index.js.map +1 -0
  235. package/dist/esm/logger.d.ts +2 -0
  236. package/dist/esm/logger.js +5 -0
  237. package/dist/esm/logger.js.map +1 -0
  238. package/dist/esm/models/index.d.ts +2 -0
  239. package/dist/esm/models/index.js +4 -0
  240. package/dist/esm/models/index.js.map +1 -0
  241. package/dist/esm/models/models.d.ts +391 -0
  242. package/dist/esm/models/models.js +352 -0
  243. package/dist/esm/models/models.js.map +1 -0
  244. package/dist/esm/package.json +3 -0
  245. package/dist/esm/playwrightManagementClient.d.ts +24 -0
  246. package/dist/esm/playwrightManagementClient.js +24 -0
  247. package/dist/esm/playwrightManagementClient.js.map +1 -0
  248. package/dist/esm/restorePollerHelpers.d.ts +21 -0
  249. package/dist/esm/restorePollerHelpers.js +97 -0
  250. package/dist/esm/restorePollerHelpers.js.map +1 -0
  251. package/dist/esm/static-helpers/pagingHelpers.d.ts +72 -0
  252. package/dist/esm/static-helpers/pagingHelpers.js +137 -0
  253. package/dist/esm/static-helpers/pagingHelpers.js.map +1 -0
  254. package/dist/esm/static-helpers/pollingHelpers.d.ts +30 -0
  255. package/dist/esm/static-helpers/pollingHelpers.js +76 -0
  256. package/dist/esm/static-helpers/pollingHelpers.js.map +1 -0
  257. package/dist/esm/static-helpers/urlTemplate.d.ts +5 -0
  258. package/dist/esm/static-helpers/urlTemplate.js +169 -0
  259. package/dist/esm/static-helpers/urlTemplate.js.map +1 -0
  260. package/dist/react-native/api/index.d.ts +2 -0
  261. package/dist/react-native/api/index.js +4 -0
  262. package/dist/react-native/api/index.js.map +1 -0
  263. package/dist/react-native/api/operations/index.d.ts +3 -0
  264. package/dist/react-native/api/operations/index.js +4 -0
  265. package/dist/react-native/api/operations/index.js.map +1 -0
  266. package/dist/react-native/api/operations/operations.d.ts +10 -0
  267. package/dist/react-native/api/operations/operations.js +29 -0
  268. package/dist/react-native/api/operations/operations.js.map +1 -0
  269. package/dist/react-native/api/operations/options.d.ts +5 -0
  270. package/dist/react-native/api/operations/options.js +4 -0
  271. package/dist/react-native/api/operations/options.js.map +1 -0
  272. package/dist/react-native/api/playwrightManagementContext.d.ts +19 -0
  273. package/dist/react-native/api/playwrightManagementContext.js +36 -0
  274. package/dist/react-native/api/playwrightManagementContext.js.map +1 -0
  275. package/dist/react-native/api/playwrightQuotas/index.d.ts +3 -0
  276. package/dist/react-native/api/playwrightQuotas/index.js +4 -0
  277. package/dist/react-native/api/playwrightQuotas/index.js.map +1 -0
  278. package/dist/react-native/api/playwrightQuotas/operations.d.ts +14 -0
  279. package/dist/react-native/api/playwrightQuotas/operations.js +61 -0
  280. package/dist/react-native/api/playwrightQuotas/operations.js.map +1 -0
  281. package/dist/react-native/api/playwrightQuotas/options.d.ts +8 -0
  282. package/dist/react-native/api/playwrightQuotas/options.js +4 -0
  283. package/dist/react-native/api/playwrightQuotas/options.js.map +1 -0
  284. package/dist/react-native/api/playwrightWorkspaceQuotas/index.d.ts +3 -0
  285. package/dist/react-native/api/playwrightWorkspaceQuotas/index.js +4 -0
  286. package/dist/react-native/api/playwrightWorkspaceQuotas/index.js.map +1 -0
  287. package/dist/react-native/api/playwrightWorkspaceQuotas/operations.d.ts +14 -0
  288. package/dist/react-native/api/playwrightWorkspaceQuotas/operations.js +63 -0
  289. package/dist/react-native/api/playwrightWorkspaceQuotas/operations.js.map +1 -0
  290. package/dist/react-native/api/playwrightWorkspaceQuotas/options.d.ts +8 -0
  291. package/dist/react-native/api/playwrightWorkspaceQuotas/options.js +4 -0
  292. package/dist/react-native/api/playwrightWorkspaceQuotas/options.js.map +1 -0
  293. package/dist/react-native/api/playwrightWorkspaces/index.d.ts +3 -0
  294. package/dist/react-native/api/playwrightWorkspaces/index.js +4 -0
  295. package/dist/react-native/api/playwrightWorkspaces/index.js.map +1 -0
  296. package/dist/react-native/api/playwrightWorkspaces/operations.d.ts +40 -0
  297. package/dist/react-native/api/playwrightWorkspaces/operations.js +212 -0
  298. package/dist/react-native/api/playwrightWorkspaces/operations.js.map +1 -0
  299. package/dist/react-native/api/playwrightWorkspaces/options.d.ts +27 -0
  300. package/dist/react-native/api/playwrightWorkspaces/options.js +4 -0
  301. package/dist/react-native/api/playwrightWorkspaces/options.js.map +1 -0
  302. package/dist/react-native/classic/index.d.ts +5 -0
  303. package/dist/react-native/classic/index.js +4 -0
  304. package/dist/react-native/classic/index.js.map +1 -0
  305. package/dist/react-native/classic/operations/index.d.ts +11 -0
  306. package/dist/react-native/classic/operations/index.js +12 -0
  307. package/dist/react-native/classic/operations/index.js.map +1 -0
  308. package/dist/react-native/classic/playwrightQuotas/index.d.ts +13 -0
  309. package/dist/react-native/classic/playwrightQuotas/index.js +13 -0
  310. package/dist/react-native/classic/playwrightQuotas/index.js.map +1 -0
  311. package/dist/react-native/classic/playwrightWorkspaceQuotas/index.d.ts +13 -0
  312. package/dist/react-native/classic/playwrightWorkspaceQuotas/index.js +13 -0
  313. package/dist/react-native/classic/playwrightWorkspaceQuotas/index.js.map +1 -0
  314. package/dist/react-native/classic/playwrightWorkspaces/index.d.ts +29 -0
  315. package/dist/react-native/classic/playwrightWorkspaces/index.js +18 -0
  316. package/dist/react-native/classic/playwrightWorkspaces/index.js.map +1 -0
  317. package/dist/react-native/index.d.ts +12 -0
  318. package/dist/react-native/index.js +6 -0
  319. package/dist/react-native/index.js.map +1 -0
  320. package/dist/react-native/logger.d.ts +2 -0
  321. package/dist/react-native/logger.js +5 -0
  322. package/dist/react-native/logger.js.map +1 -0
  323. package/dist/react-native/models/index.d.ts +2 -0
  324. package/dist/react-native/models/index.js +4 -0
  325. package/dist/react-native/models/index.js.map +1 -0
  326. package/dist/react-native/models/models.d.ts +391 -0
  327. package/dist/react-native/models/models.js +352 -0
  328. package/dist/react-native/models/models.js.map +1 -0
  329. package/dist/react-native/package.json +3 -0
  330. package/dist/react-native/playwrightManagementClient.d.ts +24 -0
  331. package/dist/react-native/playwrightManagementClient.js +24 -0
  332. package/dist/react-native/playwrightManagementClient.js.map +1 -0
  333. package/dist/react-native/restorePollerHelpers.d.ts +21 -0
  334. package/dist/react-native/restorePollerHelpers.js +97 -0
  335. package/dist/react-native/restorePollerHelpers.js.map +1 -0
  336. package/dist/react-native/static-helpers/pagingHelpers.d.ts +72 -0
  337. package/dist/react-native/static-helpers/pagingHelpers.js +137 -0
  338. package/dist/react-native/static-helpers/pagingHelpers.js.map +1 -0
  339. package/dist/react-native/static-helpers/pollingHelpers.d.ts +30 -0
  340. package/dist/react-native/static-helpers/pollingHelpers.js +76 -0
  341. package/dist/react-native/static-helpers/pollingHelpers.js.map +1 -0
  342. package/dist/react-native/static-helpers/urlTemplate.d.ts +5 -0
  343. package/dist/react-native/static-helpers/urlTemplate.js +169 -0
  344. package/dist/react-native/static-helpers/urlTemplate.js.map +1 -0
  345. package/package.json +252 -0
  346. package/review/arm-playwright-api-operations.api.md +19 -0
  347. package/review/arm-playwright-api-playwrightQuotas.api.md +26 -0
  348. package/review/arm-playwright-api-playwrightWorkspaceQuotas.api.md +26 -0
  349. package/review/arm-playwright-api-playwrightWorkspaces.api.md +65 -0
  350. package/review/arm-playwright-api.api.md +27 -0
  351. package/review/arm-playwright-models.api.md +232 -0
  352. package/review/arm-playwright.api.md +361 -0
@@ -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 urlTemplate_js_1 = require("../../static-helpers/urlTemplate.js");
10
+ const pagingHelpers_js_1 = require("../../static-helpers/pagingHelpers.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.LoadTestService/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,wEAAwE;AACxE,4EAG+C;AAC/C,yDAKiC;AA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right (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { PlaywrightManagementContext 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 { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.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.LoadTestService/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,5 @@
1
+ "use strict";
2
+ // Copyright (c) Microsoft Corporation.
3
+ // Licensed under the MIT License.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ //# sourceMappingURL=options.js.map
@@ -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"]}
@@ -0,0 +1,19 @@
1
+ import { Client, ClientOptions } from "@azure-rest/core-client";
2
+ import { TokenCredential } from "@azure/core-auth";
3
+ /** Playwright service provides access to Playwright workspace resource and it's operations. */
4
+ export interface PlaywrightManagementContext extends Client {
5
+ /** The API version to use for this operation. */
6
+ /** Known values of {@link KnownVersions} that the service accepts. */
7
+ apiVersion: string;
8
+ /** The ID of the target subscription. The value must be an UUID. */
9
+ subscriptionId: string;
10
+ }
11
+ /** Optional parameters for the client. */
12
+ export interface PlaywrightManagementClientOptionalParams extends ClientOptions {
13
+ /** The API version to use for this operation. */
14
+ /** Known values of {@link KnownVersions} that the service accepts. */
15
+ apiVersion?: string;
16
+ }
17
+ /** Playwright service provides access to Playwright workspace resource and it's operations. */
18
+ export declare function createPlaywrightManagement(credential: TokenCredential, subscriptionId: string, options?: PlaywrightManagementClientOptionalParams): PlaywrightManagementContext;
19
+ //# sourceMappingURL=playwrightManagementContext.d.ts.map
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ // Copyright (c) Microsoft Corporation.
3
+ // Licensed under the MIT License.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.createPlaywrightManagement = createPlaywrightManagement;
6
+ const tslib_1 = require("tslib");
7
+ const logger_js_1 = require("../logger.js");
8
+ const core_client_1 = require("@azure-rest/core-client");
9
+ /** Playwright service provides access to Playwright workspace resource and it's operations. */
10
+ function createPlaywrightManagement(credential, subscriptionId, options = {}) {
11
+ var _a, _b, _c, _d, _e, _f, _g, _h;
12
+ const endpointUrl = (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUrl) !== null && _b !== void 0 ? _b : "https://management.azure.com";
13
+ const prefixFromOptions = (_c = options === null || options === void 0 ? void 0 : options.userAgentOptions) === null || _c === void 0 ? void 0 : _c.userAgentPrefix;
14
+ const userAgentInfo = `azsdk-js-arm-playwright/1.0.0-beta.1`;
15
+ const userAgentPrefix = prefixFromOptions
16
+ ? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}`
17
+ : `azsdk-js-api ${userAgentInfo}`;
18
+ const _j = Object.assign(Object.assign({}, options), { userAgentOptions: { userAgentPrefix }, loggingOptions: { logger: (_e = (_d = options.loggingOptions) === null || _d === void 0 ? void 0 : _d.logger) !== null && _e !== void 0 ? _e : logger_js_1.logger.info }, credentials: {
19
+ scopes: (_g = (_f = options.credentials) === null || _f === void 0 ? void 0 : _f.scopes) !== null && _g !== void 0 ? _g : [`${endpointUrl}/.default`],
20
+ } }), { apiVersion: _ } = _j, updatedOptions = tslib_1.__rest(_j, ["apiVersion"]);
21
+ const clientContext = (0, core_client_1.getClient)(endpointUrl, credential, updatedOptions);
22
+ clientContext.pipeline.removePolicy({ name: "ApiVersionPolicy" });
23
+ const apiVersion = (_h = options.apiVersion) !== null && _h !== void 0 ? _h : "2025-07-01-preview";
24
+ clientContext.pipeline.addPolicy({
25
+ name: "ClientApiVersionPolicy",
26
+ sendRequest: (req, next) => {
27
+ // Use the apiVersion defined in request url directly
28
+ // Append one if there is no apiVersion and we have one at client options
29
+ const url = new URL(req.url);
30
+ if (!url.searchParams.get("api-version")) {
31
+ req.url = `${req.url}${Array.from(url.searchParams.keys()).length > 0 ? "&" : "?"}api-version=${apiVersion}`;
32
+ }
33
+ return next(req);
34
+ },
35
+ });
36
+ return Object.assign(Object.assign({}, clientContext), { apiVersion,
37
+ subscriptionId });
38
+ }
39
+ //# sourceMappingURL=playwrightManagementContext.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"playwrightManagementContext.js","sourceRoot":"","sources":["../../../src/api/playwrightManagementContext.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAwBlC,gEA0CC;;AAhED,4CAAsC;AAEtC,yDAA2E;AAmB3E,+FAA+F;AAC/F,SAAgB,0BAA0B,CACxC,UAA2B,EAC3B,cAAsB,EACtB,UAAoD,EAAE;;IAEtD,MAAM,WAAW,GAAG,MAAA,MAAA,OAAO,CAAC,QAAQ,mCAAI,OAAO,CAAC,OAAO,mCAAI,8BAA8B,CAAC;IAC1F,MAAM,iBAAiB,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,gBAAgB,0CAAE,eAAe,CAAC;IACrE,MAAM,aAAa,GAAG,sCAAsC,CAAC;IAC7D,MAAM,eAAe,GAAG,iBAAiB;QACvC,CAAC,CAAC,GAAG,iBAAiB,iBAAiB,aAAa,EAAE;QACtD,CAAC,CAAC,gBAAgB,aAAa,EAAE,CAAC;IACpC,MAAM,qCACD,OAAO,KACV,gBAAgB,EAAE,EAAE,eAAe,EAAE,EACrC,cAAc,EAAE,EAAE,MAAM,EAAE,MAAA,MAAA,OAAO,CAAC,cAAc,0CAAE,MAAM,mCAAI,kBAAM,CAAC,IAAI,EAAE,EACzE,WAAW,EAAE;YACX,MAAM,EAAE,MAAA,MAAA,OAAO,CAAC,WAAW,0CAAE,MAAM,mCAAI,CAAC,GAAG,WAAW,WAAW,CAAC;SACnE,GACF,EAPK,EAAE,UAAU,EAAE,CAAC,OAOpB,EAPyB,cAAc,sBAAlC,cAAoC,CAOzC,CAAC;IACF,MAAM,aAAa,GAAG,IAAA,uBAAS,EAAC,WAAW,EAAE,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,aAAa,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC,CAAC;IAClE,MAAM,UAAU,GAAG,MAAA,OAAO,CAAC,UAAU,mCAAI,oBAAoB,CAAC;IAC9D,aAAa,CAAC,QAAQ,CAAC,SAAS,CAAC;QAC/B,IAAI,EAAE,wBAAwB;QAC9B,WAAW,EAAE,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE;YACzB,qDAAqD;YACrD,yEAAyE;YACzE,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;YAC7B,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,aAAa,CAAC,EAAE,CAAC;gBACzC,GAAG,CAAC,GAAG,GAAG,GAAG,GAAG,CAAC,GAAG,GAClB,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GACzD,eAAe,UAAU,EAAE,CAAC;YAC9B,CAAC;YAED,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC;QACnB,CAAC;KACF,CAAC,CAAC;IACH,OAAO,gCACF,aAAa,KAChB,UAAU;QACV,cAAc,GACgB,CAAC;AACnC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { logger } from \"../logger.js\";\nimport { KnownVersions } from \"../models/models.js\";\nimport { Client, ClientOptions, getClient } from \"@azure-rest/core-client\";\nimport { TokenCredential } from \"@azure/core-auth\";\n\n/** Playwright service provides access to Playwright workspace resource and it's operations. */\nexport interface PlaywrightManagementContext extends Client {\n /** The API version to use for this operation. */\n /** Known values of {@link KnownVersions} that the service accepts. */\n apiVersion: string;\n /** The ID of the target subscription. The value must be an UUID. */\n subscriptionId: string;\n}\n\n/** Optional parameters for the client. */\nexport interface PlaywrightManagementClientOptionalParams extends ClientOptions {\n /** The API version to use for this operation. */\n /** Known values of {@link KnownVersions} that the service accepts. */\n apiVersion?: string;\n}\n\n/** Playwright service provides access to Playwright workspace resource and it's operations. */\nexport function createPlaywrightManagement(\n credential: TokenCredential,\n subscriptionId: string,\n options: PlaywrightManagementClientOptionalParams = {},\n): PlaywrightManagementContext {\n const endpointUrl = options.endpoint ?? options.baseUrl ?? \"https://management.azure.com\";\n const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;\n const userAgentInfo = `azsdk-js-arm-playwright/1.0.0-beta.1`;\n const userAgentPrefix = prefixFromOptions\n ? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}`\n : `azsdk-js-api ${userAgentInfo}`;\n const { apiVersion: _, ...updatedOptions } = {\n ...options,\n userAgentOptions: { userAgentPrefix },\n loggingOptions: { logger: options.loggingOptions?.logger ?? logger.info },\n credentials: {\n scopes: options.credentials?.scopes ?? [`${endpointUrl}/.default`],\n },\n };\n const clientContext = getClient(endpointUrl, credential, updatedOptions);\n clientContext.pipeline.removePolicy({ name: \"ApiVersionPolicy\" });\n const apiVersion = options.apiVersion ?? \"2025-07-01-preview\";\n clientContext.pipeline.addPolicy({\n name: \"ClientApiVersionPolicy\",\n sendRequest: (req, next) => {\n // Use the apiVersion defined in request url directly\n // Append one if there is no apiVersion and we have one at client options\n const url = new URL(req.url);\n if (!url.searchParams.get(\"api-version\")) {\n req.url = `${req.url}${\n Array.from(url.searchParams.keys()).length > 0 ? \"&\" : \"?\"\n }api-version=${apiVersion}`;\n }\n\n return next(req);\n },\n });\n return {\n ...clientContext,\n apiVersion,\n subscriptionId,\n } as PlaywrightManagementContext;\n}\n"]}
@@ -0,0 +1,3 @@
1
+ export { listBySubscription, get } from "./operations.js";
2
+ export { PlaywrightQuotasListBySubscriptionOptionalParams, PlaywrightQuotasGetOptionalParams, } from "./options.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ // Copyright (c) Microsoft Corporation.
3
+ // Licensed under the MIT License.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.get = exports.listBySubscription = void 0;
6
+ var operations_js_1 = require("./operations.js");
7
+ Object.defineProperty(exports, "listBySubscription", { enumerable: true, get: function () { return operations_js_1.listBySubscription; } });
8
+ Object.defineProperty(exports, "get", { enumerable: true, get: function () { return operations_js_1.get; } });
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/playwrightQuotas/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,iDAA0D;AAAjD,mHAAA,kBAAkB,OAAA;AAAE,oGAAA,GAAG,OAAA","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport { listBySubscription, get } from \"./operations.js\";\nexport {\n PlaywrightQuotasListBySubscriptionOptionalParams,\n PlaywrightQuotasGetOptionalParams,\n} from \"./options.js\";\n"]}
@@ -0,0 +1,14 @@
1
+ import { PlaywrightManagementContext as Client } from "../index.js";
2
+ import { PlaywrightQuota, QuotaName, _PlaywrightQuotaListResult } from "../../models/models.js";
3
+ import { PlaywrightQuotasListBySubscriptionOptionalParams, PlaywrightQuotasGetOptionalParams } from "./options.js";
4
+ import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
5
+ import { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
6
+ export declare function _listBySubscriptionSend(context: Client, location: string, options?: PlaywrightQuotasListBySubscriptionOptionalParams): StreamableMethod;
7
+ export declare function _listBySubscriptionDeserialize(result: PathUncheckedResponse): Promise<_PlaywrightQuotaListResult>;
8
+ /** List Playwright quota resources for a given subscription Id. */
9
+ export declare function listBySubscription(context: Client, location: string, options?: PlaywrightQuotasListBySubscriptionOptionalParams): PagedAsyncIterableIterator<PlaywrightQuota>;
10
+ export declare function _getSend(context: Client, location: string, playwrightQuotaName: QuotaName, options?: PlaywrightQuotasGetOptionalParams): StreamableMethod;
11
+ export declare function _getDeserialize(result: PathUncheckedResponse): Promise<PlaywrightQuota>;
12
+ /** Get subscription-level location-based Playwright quota resource by name. */
13
+ export declare function get(context: Client, location: string, playwrightQuotaName: QuotaName, options?: PlaywrightQuotasGetOptionalParams): Promise<PlaywrightQuota>;
14
+ //# sourceMappingURL=operations.d.ts.map
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+ // Copyright (c) Microsoft Corporation.
3
+ // Licensed under the MIT License.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports._listBySubscriptionSend = _listBySubscriptionSend;
6
+ exports._listBySubscriptionDeserialize = _listBySubscriptionDeserialize;
7
+ exports.listBySubscription = listBySubscription;
8
+ exports._getSend = _getSend;
9
+ exports._getDeserialize = _getDeserialize;
10
+ exports.get = get;
11
+ const models_js_1 = require("../../models/models.js");
12
+ const urlTemplate_js_1 = require("../../static-helpers/urlTemplate.js");
13
+ const pagingHelpers_js_1 = require("../../static-helpers/pagingHelpers.js");
14
+ const core_client_1 = require("@azure-rest/core-client");
15
+ function _listBySubscriptionSend(context, location, options = {
16
+ requestOptions: {},
17
+ }) {
18
+ var _a, _b;
19
+ const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/providers/Microsoft.LoadTestService/locations/{location}/playwrightQuotas{?api%2Dversion}", {
20
+ subscriptionId: context.subscriptionId,
21
+ location: location,
22
+ "api%2Dversion": context.apiVersion,
23
+ }, {
24
+ allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
25
+ });
26
+ 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) }));
27
+ }
28
+ async function _listBySubscriptionDeserialize(result) {
29
+ const expectedStatuses = ["200"];
30
+ if (!expectedStatuses.includes(result.status)) {
31
+ const error = (0, core_client_1.createRestError)(result);
32
+ error.details = (0, models_js_1.errorResponseDeserializer)(result.body);
33
+ throw error;
34
+ }
35
+ return (0, models_js_1._playwrightQuotaListResultDeserializer)(result.body);
36
+ }
37
+ /** List Playwright quota resources for a given subscription Id. */
38
+ function listBySubscription(context, location, options = {
39
+ requestOptions: {},
40
+ }) {
41
+ return (0, pagingHelpers_js_1.buildPagedAsyncIterator)(context, () => _listBySubscriptionSend(context, location, options), _listBySubscriptionDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
42
+ }
43
+ function _getSend(context, location, playwrightQuotaName, options = { requestOptions: {} }) {
44
+ var _a, _b;
45
+ const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/providers/Microsoft.LoadTestService/locations/{location}/playwrightQuotas/{playwrightQuotaName}{?api%2Dversion}", {
46
+ subscriptionId: context.subscriptionId,
47
+ location: location,
48
+ playwrightQuotaName: playwrightQuotaName,
49
+ "api%2Dversion": context.apiVersion,
50
+ }, {
51
+ allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
52
+ });
53
+ 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) }));
54
+ }
55
+ async function _getDeserialize(result) {
56
+ const expectedStatuses = ["200"];
57
+ if (!expectedStatuses.includes(result.status)) {
58
+ const error = (0, core_client_1.createRestError)(result);
59
+ error.details = (0, models_js_1.errorResponseDeserializer)(result.body);
60
+ throw error;
61
+ }
62
+ return (0, models_js_1.playwrightQuotaDeserializer)(result.body);
63
+ }
64
+ /** Get subscription-level location-based Playwright quota resource by name. */
65
+ async function get(context, location, playwrightQuotaName, options = { requestOptions: {} }) {
66
+ const result = await _getSend(context, location, playwrightQuotaName, options);
67
+ return _getDeserialize(result);
68
+ }
69
+ //# sourceMappingURL=operations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/playwrightQuotas/operations.ts"],"names":[],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,OAAO,IAAA,uCAA2B,EAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AAClD,CAAC;AAED,+EAA+E;AACxE,KAAK,UAAU,GAAG,CACvB,OAAe,EACf,QAAgB,EAChB,mBAA8B,EAC9B,UAA6C,EAAE,cAAc,EAAE,EAAE,EAAE;IAEnE,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,OAAO,EAAE,QAAQ,EAAE,mBAAmB,EAAE,OAAO,CAAC,CAAC;IAC/E,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { PlaywrightManagementContext as Client } from \"../index.js\";\nimport {\n errorResponseDeserializer,\n PlaywrightQuota,\n playwrightQuotaDeserializer,\n QuotaName,\n _PlaywrightQuotaListResult,\n _playwrightQuotaListResultDeserializer,\n} from \"../../models/models.js\";\nimport {\n PlaywrightQuotasListBySubscriptionOptionalParams,\n PlaywrightQuotasGetOptionalParams,\n} from \"./options.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\n\nexport function _listBySubscriptionSend(\n context: Client,\n location: string,\n options: PlaywrightQuotasListBySubscriptionOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.LoadTestService/locations/{location}/playwrightQuotas{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n location: location,\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 _listBySubscriptionDeserialize(\n result: PathUncheckedResponse,\n): Promise<_PlaywrightQuotaListResult> {\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 _playwrightQuotaListResultDeserializer(result.body);\n}\n\n/** List Playwright quota resources for a given subscription Id. */\nexport function listBySubscription(\n context: Client,\n location: string,\n options: PlaywrightQuotasListBySubscriptionOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<PlaywrightQuota> {\n return buildPagedAsyncIterator(\n context,\n () => _listBySubscriptionSend(context, location, options),\n _listBySubscriptionDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n\nexport function _getSend(\n context: Client,\n location: string,\n playwrightQuotaName: QuotaName,\n options: PlaywrightQuotasGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.LoadTestService/locations/{location}/playwrightQuotas/{playwrightQuotaName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n location: location,\n playwrightQuotaName: playwrightQuotaName,\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 _getDeserialize(result: PathUncheckedResponse): Promise<PlaywrightQuota> {\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 playwrightQuotaDeserializer(result.body);\n}\n\n/** Get subscription-level location-based Playwright quota resource by name. */\nexport async function get(\n context: Client,\n location: string,\n playwrightQuotaName: QuotaName,\n options: PlaywrightQuotasGetOptionalParams = { requestOptions: {} },\n): Promise<PlaywrightQuota> {\n const result = await _getSend(context, location, playwrightQuotaName, options);\n return _getDeserialize(result);\n}\n"]}
@@ -0,0 +1,8 @@
1
+ import { OperationOptions } from "@azure-rest/core-client";
2
+ /** Optional parameters. */
3
+ export interface PlaywrightQuotasListBySubscriptionOptionalParams extends OperationOptions {
4
+ }
5
+ /** Optional parameters. */
6
+ export interface PlaywrightQuotasGetOptionalParams extends OperationOptions {
7
+ }
8
+ //# sourceMappingURL=options.d.ts.map
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ // Copyright (c) Microsoft Corporation.
3
+ // Licensed under the MIT License.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ //# sourceMappingURL=options.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"options.js","sourceRoot":"","sources":["../../../../src/api/playwrightQuotas/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 PlaywrightQuotasListBySubscriptionOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface PlaywrightQuotasGetOptionalParams extends OperationOptions {}\n"]}
@@ -0,0 +1,3 @@
1
+ export { listByPlaywrightWorkspace, get } from "./operations.js";
2
+ export { PlaywrightWorkspaceQuotasListByPlaywrightWorkspaceOptionalParams, PlaywrightWorkspaceQuotasGetOptionalParams, } from "./options.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ // Copyright (c) Microsoft Corporation.
3
+ // Licensed under the MIT License.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.get = exports.listByPlaywrightWorkspace = void 0;
6
+ var operations_js_1 = require("./operations.js");
7
+ Object.defineProperty(exports, "listByPlaywrightWorkspace", { enumerable: true, get: function () { return operations_js_1.listByPlaywrightWorkspace; } });
8
+ Object.defineProperty(exports, "get", { enumerable: true, get: function () { return operations_js_1.get; } });
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/playwrightWorkspaceQuotas/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,iDAAiE;AAAxD,0HAAA,yBAAyB,OAAA;AAAE,oGAAA,GAAG,OAAA","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport { listByPlaywrightWorkspace, get } from \"./operations.js\";\nexport {\n PlaywrightWorkspaceQuotasListByPlaywrightWorkspaceOptionalParams,\n PlaywrightWorkspaceQuotasGetOptionalParams,\n} from \"./options.js\";\n"]}
@@ -0,0 +1,14 @@
1
+ import { PlaywrightManagementContext as Client } from "../index.js";
2
+ import { QuotaName, PlaywrightWorkspaceQuota, _PlaywrightWorkspaceQuotaListResult } from "../../models/models.js";
3
+ import { PlaywrightWorkspaceQuotasListByPlaywrightWorkspaceOptionalParams, PlaywrightWorkspaceQuotasGetOptionalParams } from "./options.js";
4
+ import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
5
+ import { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
6
+ export declare function _listByPlaywrightWorkspaceSend(context: Client, resourceGroupName: string, playwrightWorkspaceName: string, options?: PlaywrightWorkspaceQuotasListByPlaywrightWorkspaceOptionalParams): StreamableMethod;
7
+ export declare function _listByPlaywrightWorkspaceDeserialize(result: PathUncheckedResponse): Promise<_PlaywrightWorkspaceQuotaListResult>;
8
+ /** List quota resources for a given Playwright workspace resource. */
9
+ export declare function listByPlaywrightWorkspace(context: Client, resourceGroupName: string, playwrightWorkspaceName: string, options?: PlaywrightWorkspaceQuotasListByPlaywrightWorkspaceOptionalParams): PagedAsyncIterableIterator<PlaywrightWorkspaceQuota>;
10
+ export declare function _getSend(context: Client, resourceGroupName: string, playwrightWorkspaceName: string, quotaName: QuotaName, options?: PlaywrightWorkspaceQuotasGetOptionalParams): StreamableMethod;
11
+ export declare function _getDeserialize(result: PathUncheckedResponse): Promise<PlaywrightWorkspaceQuota>;
12
+ /** Get Playwright workspace quota resource by name. */
13
+ export declare function get(context: Client, resourceGroupName: string, playwrightWorkspaceName: string, quotaName: QuotaName, options?: PlaywrightWorkspaceQuotasGetOptionalParams): Promise<PlaywrightWorkspaceQuota>;
14
+ //# sourceMappingURL=operations.d.ts.map
@@ -0,0 +1,71 @@
1
+ "use strict";
2
+ // Copyright (c) Microsoft Corporation.
3
+ // Licensed under the MIT License.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports._listByPlaywrightWorkspaceSend = _listByPlaywrightWorkspaceSend;
6
+ exports._listByPlaywrightWorkspaceDeserialize = _listByPlaywrightWorkspaceDeserialize;
7
+ exports.listByPlaywrightWorkspace = listByPlaywrightWorkspace;
8
+ exports._getSend = _getSend;
9
+ exports._getDeserialize = _getDeserialize;
10
+ exports.get = get;
11
+ const models_js_1 = require("../../models/models.js");
12
+ const urlTemplate_js_1 = require("../../static-helpers/urlTemplate.js");
13
+ const pagingHelpers_js_1 = require("../../static-helpers/pagingHelpers.js");
14
+ const core_client_1 = require("@azure-rest/core-client");
15
+ function _listByPlaywrightWorkspaceSend(context, resourceGroupName, playwrightWorkspaceName, options = {
16
+ requestOptions: {},
17
+ }) {
18
+ var _a, _b;
19
+ const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/playwrightWorkspaces/{playwrightWorkspaceName}/quotas{?api%2Dversion}", {
20
+ subscriptionId: context.subscriptionId,
21
+ resourceGroupName: resourceGroupName,
22
+ playwrightWorkspaceName: playwrightWorkspaceName,
23
+ "api%2Dversion": context.apiVersion,
24
+ }, {
25
+ allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
26
+ });
27
+ 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) }));
28
+ }
29
+ async function _listByPlaywrightWorkspaceDeserialize(result) {
30
+ const expectedStatuses = ["200"];
31
+ if (!expectedStatuses.includes(result.status)) {
32
+ const error = (0, core_client_1.createRestError)(result);
33
+ error.details = (0, models_js_1.errorResponseDeserializer)(result.body);
34
+ throw error;
35
+ }
36
+ return (0, models_js_1._playwrightWorkspaceQuotaListResultDeserializer)(result.body);
37
+ }
38
+ /** List quota resources for a given Playwright workspace resource. */
39
+ function listByPlaywrightWorkspace(context, resourceGroupName, playwrightWorkspaceName, options = {
40
+ requestOptions: {},
41
+ }) {
42
+ return (0, pagingHelpers_js_1.buildPagedAsyncIterator)(context, () => _listByPlaywrightWorkspaceSend(context, resourceGroupName, playwrightWorkspaceName, options), _listByPlaywrightWorkspaceDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
43
+ }
44
+ function _getSend(context, resourceGroupName, playwrightWorkspaceName, quotaName, options = { requestOptions: {} }) {
45
+ var _a, _b;
46
+ const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/playwrightWorkspaces/{playwrightWorkspaceName}/quotas/{quotaName}{?api%2Dversion}", {
47
+ subscriptionId: context.subscriptionId,
48
+ resourceGroupName: resourceGroupName,
49
+ playwrightWorkspaceName: playwrightWorkspaceName,
50
+ quotaName: quotaName,
51
+ "api%2Dversion": context.apiVersion,
52
+ }, {
53
+ allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
54
+ });
55
+ 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) }));
56
+ }
57
+ async function _getDeserialize(result) {
58
+ const expectedStatuses = ["200"];
59
+ if (!expectedStatuses.includes(result.status)) {
60
+ const error = (0, core_client_1.createRestError)(result);
61
+ error.details = (0, models_js_1.errorResponseDeserializer)(result.body);
62
+ throw error;
63
+ }
64
+ return (0, models_js_1.playwrightWorkspaceQuotaDeserializer)(result.body);
65
+ }
66
+ /** Get Playwright workspace quota resource by name. */
67
+ async function get(context, resourceGroupName, playwrightWorkspaceName, quotaName, options = { requestOptions: {} }) {
68
+ const result = await _getSend(context, resourceGroupName, playwrightWorkspaceName, quotaName, options);
69
+ return _getDeserialize(result);
70
+ }
71
+ //# sourceMappingURL=operations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/playwrightWorkspaceQuotas/operations.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AA2BlC,wEA2BC;AAED,sFAWC;AAGD,8DAgBC;AAED,4BA2BC;AAED,0CAWC;AAGD,kBAeC;AA/ID,sDAOgC;AAKhC,wEAAwE;AACxE,4EAG+C;AAC/C,yDAKiC;AAEjC,SAAgB,8BAA8B,CAC5C,OAAe,EACf,iBAAyB,EACzB,uBAA+B,EAC/B,UAA4E;IAC1E,cAAc,EAAE,EAAE;CACnB;;IAED,MAAM,IAAI,GAAG,IAAA,kCAAiB,EAC5B,8KAA8K,EAC9K;QACE,cAAc,EAAE,OAAO,CAAC,cAAc;QACtC,iBAAiB,EAAE,iBAAiB;QACpC,uBAAuB,EAAE,uBAAuB;QAChD,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,I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AO,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,eAAe,CACnC,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,gDAAoC,EAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AAC3D,CAAC;AAED,uDAAuD;AAChD,KAAK,UAAU,GAAG,CACvB,OAAe,EACf,iBAAyB,EACzB,uBAA+B,EAC/B,SAAoB,EACpB,UAAsD,EAAE,cAAc,EAAE,EAAE,EAAE;IAE5E,MAAM,MAAM,GAAG,MAAM,QAAQ,CAC3B,OAAO,EACP,iBAAiB,EACjB,uBAAuB,EACvB,SAAS,EACT,OAAO,CACR,CAAC;IACF,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { PlaywrightManagementContext as Client } from \"../index.js\";\nimport {\n errorResponseDeserializer,\n QuotaName,\n PlaywrightWorkspaceQuota,\n playwrightWorkspaceQuotaDeserializer,\n _PlaywrightWorkspaceQuotaListResult,\n _playwrightWorkspaceQuotaListResultDeserializer,\n} from \"../../models/models.js\";\nimport {\n PlaywrightWorkspaceQuotasListByPlaywrightWorkspaceOptionalParams,\n PlaywrightWorkspaceQuotasGetOptionalParams,\n} from \"./options.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\n\nexport function _listByPlaywrightWorkspaceSend(\n context: Client,\n resourceGroupName: string,\n playwrightWorkspaceName: string,\n options: PlaywrightWorkspaceQuotasListByPlaywrightWorkspaceOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/playwrightWorkspaces/{playwrightWorkspaceName}/quotas{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n playwrightWorkspaceName: playwrightWorkspaceName,\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 _listByPlaywrightWorkspaceDeserialize(\n result: PathUncheckedResponse,\n): Promise<_PlaywrightWorkspaceQuotaListResult> {\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 _playwrightWorkspaceQuotaListResultDeserializer(result.body);\n}\n\n/** List quota resources for a given Playwright workspace resource. */\nexport function listByPlaywrightWorkspace(\n context: Client,\n resourceGroupName: string,\n playwrightWorkspaceName: string,\n options: PlaywrightWorkspaceQuotasListByPlaywrightWorkspaceOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<PlaywrightWorkspaceQuota> {\n return buildPagedAsyncIterator(\n context,\n () =>\n _listByPlaywrightWorkspaceSend(context, resourceGroupName, playwrightWorkspaceName, options),\n _listByPlaywrightWorkspaceDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n\nexport function _getSend(\n context: Client,\n resourceGroupName: string,\n playwrightWorkspaceName: string,\n quotaName: QuotaName,\n options: PlaywrightWorkspaceQuotasGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/playwrightWorkspaces/{playwrightWorkspaceName}/quotas/{quotaName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n playwrightWorkspaceName: playwrightWorkspaceName,\n quotaName: quotaName,\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 _getDeserialize(\n result: PathUncheckedResponse,\n): Promise<PlaywrightWorkspaceQuota> {\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 playwrightWorkspaceQuotaDeserializer(result.body);\n}\n\n/** Get Playwright workspace quota resource by name. */\nexport async function get(\n context: Client,\n resourceGroupName: string,\n playwrightWorkspaceName: string,\n quotaName: QuotaName,\n options: PlaywrightWorkspaceQuotasGetOptionalParams = { requestOptions: {} },\n): Promise<PlaywrightWorkspaceQuota> {\n const result = await _getSend(\n context,\n resourceGroupName,\n playwrightWorkspaceName,\n quotaName,\n options,\n );\n return _getDeserialize(result);\n}\n"]}
@@ -0,0 +1,8 @@
1
+ import { OperationOptions } from "@azure-rest/core-client";
2
+ /** Optional parameters. */
3
+ export interface PlaywrightWorkspaceQuotasListByPlaywrightWorkspaceOptionalParams extends OperationOptions {
4
+ }
5
+ /** Optional parameters. */
6
+ export interface PlaywrightWorkspaceQuotasGetOptionalParams extends OperationOptions {
7
+ }
8
+ //# sourceMappingURL=options.d.ts.map
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ // Copyright (c) Microsoft Corporation.
3
+ // Licensed under the MIT License.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ //# sourceMappingURL=options.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"options.js","sourceRoot":"","sources":["../../../../src/api/playwrightWorkspaceQuotas/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 PlaywrightWorkspaceQuotasListByPlaywrightWorkspaceOptionalParams\n extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface PlaywrightWorkspaceQuotasGetOptionalParams extends OperationOptions {}\n"]}
@@ -0,0 +1,3 @@
1
+ export { checkNameAvailability, listBySubscription, listByResourceGroup, $delete, update, createOrUpdate, get, } from "./operations.js";
2
+ export { PlaywrightWorkspacesCheckNameAvailabilityOptionalParams, PlaywrightWorkspacesListBySubscriptionOptionalParams, PlaywrightWorkspacesListByResourceGroupOptionalParams, PlaywrightWorkspacesDeleteOptionalParams, PlaywrightWorkspacesUpdateOptionalParams, PlaywrightWorkspacesCreateOrUpdateOptionalParams, PlaywrightWorkspacesGetOptionalParams, } from "./options.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ // Copyright (c) Microsoft Corporation.
3
+ // Licensed under the MIT License.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.get = exports.createOrUpdate = exports.update = exports.$delete = exports.listByResourceGroup = exports.listBySubscription = exports.checkNameAvailability = void 0;
6
+ var operations_js_1 = require("./operations.js");
7
+ Object.defineProperty(exports, "checkNameAvailability", { enumerable: true, get: function () { return operations_js_1.checkNameAvailability; } });
8
+ Object.defineProperty(exports, "listBySubscription", { enumerable: true, get: function () { return operations_js_1.listBySubscription; } });
9
+ Object.defineProperty(exports, "listByResourceGroup", { enumerable: true, get: function () { return operations_js_1.listByResourceGroup; } });
10
+ Object.defineProperty(exports, "$delete", { enumerable: true, get: function () { return operations_js_1.$delete; } });
11
+ Object.defineProperty(exports, "update", { enumerable: true, get: function () { return operations_js_1.update; } });
12
+ Object.defineProperty(exports, "createOrUpdate", { enumerable: true, get: function () { return operations_js_1.createOrUpdate; } });
13
+ Object.defineProperty(exports, "get", { enumerable: true, get: function () { return operations_js_1.get; } });
14
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/playwrightWorkspaces/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,iDAQyB;AAPvB,sHAAA,qBAAqB,OAAA;AACrB,mHAAA,kBAAkB,OAAA;AAClB,oHAAA,mBAAmB,OAAA;AACnB,wGAAA,OAAO,OAAA;AACP,uGAAA,MAAM,OAAA;AACN,+GAAA,cAAc,OAAA;AACd,oGAAA,GAAG,OAAA","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport {\n checkNameAvailability,\n listBySubscription,\n listByResourceGroup,\n $delete,\n update,\n createOrUpdate,\n get,\n} from \"./operations.js\";\nexport {\n PlaywrightWorkspacesCheckNameAvailabilityOptionalParams,\n PlaywrightWorkspacesListBySubscriptionOptionalParams,\n PlaywrightWorkspacesListByResourceGroupOptionalParams,\n PlaywrightWorkspacesDeleteOptionalParams,\n PlaywrightWorkspacesUpdateOptionalParams,\n PlaywrightWorkspacesCreateOrUpdateOptionalParams,\n PlaywrightWorkspacesGetOptionalParams,\n} from \"./options.js\";\n"]}
@@ -0,0 +1,40 @@
1
+ import { PlaywrightManagementContext as Client } from "../index.js";
2
+ import { PlaywrightWorkspace, PlaywrightWorkspaceUpdate, _PlaywrightWorkspaceListResult, CheckNameAvailabilityRequest, CheckNameAvailabilityResponse } from "../../models/models.js";
3
+ import { PlaywrightWorkspacesCheckNameAvailabilityOptionalParams, PlaywrightWorkspacesListBySubscriptionOptionalParams, PlaywrightWorkspacesListByResourceGroupOptionalParams, PlaywrightWorkspacesDeleteOptionalParams, PlaywrightWorkspacesUpdateOptionalParams, PlaywrightWorkspacesCreateOrUpdateOptionalParams, PlaywrightWorkspacesGetOptionalParams } from "./options.js";
4
+ import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
5
+ import { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
6
+ import { PollerLike, OperationState } from "@azure/core-lro";
7
+ export declare function _checkNameAvailabilitySend(context: Client, body: CheckNameAvailabilityRequest, options?: PlaywrightWorkspacesCheckNameAvailabilityOptionalParams): StreamableMethod;
8
+ export declare function _checkNameAvailabilityDeserialize(result: PathUncheckedResponse): Promise<CheckNameAvailabilityResponse>;
9
+ /** Implements global CheckNameAvailability operations */
10
+ export declare function checkNameAvailability(context: Client, body: CheckNameAvailabilityRequest, options?: PlaywrightWorkspacesCheckNameAvailabilityOptionalParams): Promise<CheckNameAvailabilityResponse>;
11
+ export declare function _listBySubscriptionSend(context: Client, options?: PlaywrightWorkspacesListBySubscriptionOptionalParams): StreamableMethod;
12
+ export declare function _listBySubscriptionDeserialize(result: PathUncheckedResponse): Promise<_PlaywrightWorkspaceListResult>;
13
+ /** List PlaywrightWorkspace resources by subscription ID */
14
+ export declare function listBySubscription(context: Client, options?: PlaywrightWorkspacesListBySubscriptionOptionalParams): PagedAsyncIterableIterator<PlaywrightWorkspace>;
15
+ export declare function _listByResourceGroupSend(context: Client, resourceGroupName: string, options?: PlaywrightWorkspacesListByResourceGroupOptionalParams): StreamableMethod;
16
+ export declare function _listByResourceGroupDeserialize(result: PathUncheckedResponse): Promise<_PlaywrightWorkspaceListResult>;
17
+ /** List PlaywrightWorkspace resources by resource group */
18
+ export declare function listByResourceGroup(context: Client, resourceGroupName: string, options?: PlaywrightWorkspacesListByResourceGroupOptionalParams): PagedAsyncIterableIterator<PlaywrightWorkspace>;
19
+ export declare function _$deleteSend(context: Client, resourceGroupName: string, playwrightWorkspaceName: string, options?: PlaywrightWorkspacesDeleteOptionalParams): StreamableMethod;
20
+ export declare function _$deleteDeserialize(result: PathUncheckedResponse): Promise<void>;
21
+ /** Delete a PlaywrightWorkspace */
22
+ /**
23
+ * @fixme delete is a reserved word that cannot be used as an operation name.
24
+ * Please add @clientName("clientName") or @clientName("<JS-Specific-Name>", "javascript")
25
+ * to the operation to override the generated name.
26
+ */
27
+ export declare function $delete(context: Client, resourceGroupName: string, playwrightWorkspaceName: string, options?: PlaywrightWorkspacesDeleteOptionalParams): PollerLike<OperationState<void>, void>;
28
+ export declare function _updateSend(context: Client, resourceGroupName: string, playwrightWorkspaceName: string, properties: PlaywrightWorkspaceUpdate, options?: PlaywrightWorkspacesUpdateOptionalParams): StreamableMethod;
29
+ export declare function _updateDeserialize(result: PathUncheckedResponse): Promise<PlaywrightWorkspace>;
30
+ /** Update a PlaywrightWorkspace */
31
+ export declare function update(context: Client, resourceGroupName: string, playwrightWorkspaceName: string, properties: PlaywrightWorkspaceUpdate, options?: PlaywrightWorkspacesUpdateOptionalParams): Promise<PlaywrightWorkspace>;
32
+ export declare function _createOrUpdateSend(context: Client, resourceGroupName: string, playwrightWorkspaceName: string, resource: PlaywrightWorkspace, options?: PlaywrightWorkspacesCreateOrUpdateOptionalParams): StreamableMethod;
33
+ export declare function _createOrUpdateDeserialize(result: PathUncheckedResponse): Promise<PlaywrightWorkspace>;
34
+ /** Create a PlaywrightWorkspace */
35
+ export declare function createOrUpdate(context: Client, resourceGroupName: string, playwrightWorkspaceName: string, resource: PlaywrightWorkspace, options?: PlaywrightWorkspacesCreateOrUpdateOptionalParams): PollerLike<OperationState<PlaywrightWorkspace>, PlaywrightWorkspace>;
36
+ export declare function _getSend(context: Client, resourceGroupName: string, playwrightWorkspaceName: string, options?: PlaywrightWorkspacesGetOptionalParams): StreamableMethod;
37
+ export declare function _getDeserialize(result: PathUncheckedResponse): Promise<PlaywrightWorkspace>;
38
+ /** Get a PlaywrightWorkspace */
39
+ export declare function get(context: Client, resourceGroupName: string, playwrightWorkspaceName: string, options?: PlaywrightWorkspacesGetOptionalParams): Promise<PlaywrightWorkspace>;
40
+ //# sourceMappingURL=operations.d.ts.map