@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,235 @@
1
+ "use strict";
2
+ // Copyright (c) Microsoft Corporation.
3
+ // Licensed under the MIT License.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports._checkNameAvailabilitySend = _checkNameAvailabilitySend;
6
+ exports._checkNameAvailabilityDeserialize = _checkNameAvailabilityDeserialize;
7
+ exports.checkNameAvailability = checkNameAvailability;
8
+ exports._listBySubscriptionSend = _listBySubscriptionSend;
9
+ exports._listBySubscriptionDeserialize = _listBySubscriptionDeserialize;
10
+ exports.listBySubscription = listBySubscription;
11
+ exports._listByResourceGroupSend = _listByResourceGroupSend;
12
+ exports._listByResourceGroupDeserialize = _listByResourceGroupDeserialize;
13
+ exports.listByResourceGroup = listByResourceGroup;
14
+ exports._$deleteSend = _$deleteSend;
15
+ exports._$deleteDeserialize = _$deleteDeserialize;
16
+ exports.$delete = $delete;
17
+ exports._updateSend = _updateSend;
18
+ exports._updateDeserialize = _updateDeserialize;
19
+ exports.update = update;
20
+ exports._createOrUpdateSend = _createOrUpdateSend;
21
+ exports._createOrUpdateDeserialize = _createOrUpdateDeserialize;
22
+ exports.createOrUpdate = createOrUpdate;
23
+ exports._getSend = _getSend;
24
+ exports._getDeserialize = _getDeserialize;
25
+ exports.get = get;
26
+ const models_js_1 = require("../../models/models.js");
27
+ const pollingHelpers_js_1 = require("../../static-helpers/pollingHelpers.js");
28
+ const urlTemplate_js_1 = require("../../static-helpers/urlTemplate.js");
29
+ const pagingHelpers_js_1 = require("../../static-helpers/pagingHelpers.js");
30
+ const core_client_1 = require("@azure-rest/core-client");
31
+ function _checkNameAvailabilitySend(context, body, options = {
32
+ requestOptions: {},
33
+ }) {
34
+ var _a, _b;
35
+ const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/providers/Microsoft.LoadTestService/checkNameAvailability{?api%2Dversion}", {
36
+ subscriptionId: context.subscriptionId,
37
+ "api%2Dversion": context.apiVersion,
38
+ }, {
39
+ allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
40
+ });
41
+ return context.path(path).post(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: (0, models_js_1.checkNameAvailabilityRequestSerializer)(body) }));
42
+ }
43
+ async function _checkNameAvailabilityDeserialize(result) {
44
+ const expectedStatuses = ["200"];
45
+ if (!expectedStatuses.includes(result.status)) {
46
+ const error = (0, core_client_1.createRestError)(result);
47
+ error.details = (0, models_js_1.errorResponseDeserializer)(result.body);
48
+ throw error;
49
+ }
50
+ return (0, models_js_1.checkNameAvailabilityResponseDeserializer)(result.body);
51
+ }
52
+ /** Implements global CheckNameAvailability operations */
53
+ async function checkNameAvailability(context, body, options = {
54
+ requestOptions: {},
55
+ }) {
56
+ const result = await _checkNameAvailabilitySend(context, body, options);
57
+ return _checkNameAvailabilityDeserialize(result);
58
+ }
59
+ function _listBySubscriptionSend(context, options = {
60
+ requestOptions: {},
61
+ }) {
62
+ var _a, _b;
63
+ const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/providers/Microsoft.LoadTestService/playwrightWorkspaces{?api%2Dversion}", {
64
+ subscriptionId: context.subscriptionId,
65
+ "api%2Dversion": context.apiVersion,
66
+ }, {
67
+ allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
68
+ });
69
+ 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) }));
70
+ }
71
+ async function _listBySubscriptionDeserialize(result) {
72
+ const expectedStatuses = ["200"];
73
+ if (!expectedStatuses.includes(result.status)) {
74
+ const error = (0, core_client_1.createRestError)(result);
75
+ error.details = (0, models_js_1.errorResponseDeserializer)(result.body);
76
+ throw error;
77
+ }
78
+ return (0, models_js_1._playwrightWorkspaceListResultDeserializer)(result.body);
79
+ }
80
+ /** List PlaywrightWorkspace resources by subscription ID */
81
+ function listBySubscription(context, options = {
82
+ requestOptions: {},
83
+ }) {
84
+ return (0, pagingHelpers_js_1.buildPagedAsyncIterator)(context, () => _listBySubscriptionSend(context, options), _listBySubscriptionDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
85
+ }
86
+ function _listByResourceGroupSend(context, resourceGroupName, options = {
87
+ requestOptions: {},
88
+ }) {
89
+ var _a, _b;
90
+ const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/playwrightWorkspaces{?api%2Dversion}", {
91
+ subscriptionId: context.subscriptionId,
92
+ resourceGroupName: resourceGroupName,
93
+ "api%2Dversion": context.apiVersion,
94
+ }, {
95
+ allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
96
+ });
97
+ 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) }));
98
+ }
99
+ async function _listByResourceGroupDeserialize(result) {
100
+ const expectedStatuses = ["200"];
101
+ if (!expectedStatuses.includes(result.status)) {
102
+ const error = (0, core_client_1.createRestError)(result);
103
+ error.details = (0, models_js_1.errorResponseDeserializer)(result.body);
104
+ throw error;
105
+ }
106
+ return (0, models_js_1._playwrightWorkspaceListResultDeserializer)(result.body);
107
+ }
108
+ /** List PlaywrightWorkspace resources by resource group */
109
+ function listByResourceGroup(context, resourceGroupName, options = {
110
+ requestOptions: {},
111
+ }) {
112
+ return (0, pagingHelpers_js_1.buildPagedAsyncIterator)(context, () => _listByResourceGroupSend(context, resourceGroupName, options), _listByResourceGroupDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
113
+ }
114
+ function _$deleteSend(context, resourceGroupName, playwrightWorkspaceName, options = { requestOptions: {} }) {
115
+ var _a, _b;
116
+ const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/playwrightWorkspaces/{playwrightWorkspaceName}{?api%2Dversion}", {
117
+ subscriptionId: context.subscriptionId,
118
+ resourceGroupName: resourceGroupName,
119
+ playwrightWorkspaceName: playwrightWorkspaceName,
120
+ "api%2Dversion": context.apiVersion,
121
+ }, {
122
+ allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
123
+ });
124
+ return context.path(path).delete(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) }));
125
+ }
126
+ async function _$deleteDeserialize(result) {
127
+ const expectedStatuses = ["202", "204", "200"];
128
+ if (!expectedStatuses.includes(result.status)) {
129
+ const error = (0, core_client_1.createRestError)(result);
130
+ error.details = (0, models_js_1.errorResponseDeserializer)(result.body);
131
+ throw error;
132
+ }
133
+ return;
134
+ }
135
+ /** Delete a PlaywrightWorkspace */
136
+ /**
137
+ * @fixme delete is a reserved word that cannot be used as an operation name.
138
+ * Please add @clientName("clientName") or @clientName("<JS-Specific-Name>", "javascript")
139
+ * to the operation to override the generated name.
140
+ */
141
+ function $delete(context, resourceGroupName, playwrightWorkspaceName, options = { requestOptions: {} }) {
142
+ return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _$deleteDeserialize, ["202", "204", "200"], {
143
+ updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
144
+ abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
145
+ getInitialResponse: () => _$deleteSend(context, resourceGroupName, playwrightWorkspaceName, options),
146
+ resourceLocationConfig: "location",
147
+ });
148
+ }
149
+ function _updateSend(context, resourceGroupName, playwrightWorkspaceName, properties, options = { requestOptions: {} }) {
150
+ var _a, _b;
151
+ const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/playwrightWorkspaces/{playwrightWorkspaceName}{?api%2Dversion}", {
152
+ subscriptionId: context.subscriptionId,
153
+ resourceGroupName: resourceGroupName,
154
+ playwrightWorkspaceName: playwrightWorkspaceName,
155
+ "api%2Dversion": context.apiVersion,
156
+ }, {
157
+ allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
158
+ });
159
+ return context.path(path).patch(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: (0, models_js_1.playwrightWorkspaceUpdateSerializer)(properties) }));
160
+ }
161
+ async function _updateDeserialize(result) {
162
+ const expectedStatuses = ["200"];
163
+ if (!expectedStatuses.includes(result.status)) {
164
+ const error = (0, core_client_1.createRestError)(result);
165
+ error.details = (0, models_js_1.errorResponseDeserializer)(result.body);
166
+ throw error;
167
+ }
168
+ return (0, models_js_1.playwrightWorkspaceDeserializer)(result.body);
169
+ }
170
+ /** Update a PlaywrightWorkspace */
171
+ async function update(context, resourceGroupName, playwrightWorkspaceName, properties, options = { requestOptions: {} }) {
172
+ const result = await _updateSend(context, resourceGroupName, playwrightWorkspaceName, properties, options);
173
+ return _updateDeserialize(result);
174
+ }
175
+ function _createOrUpdateSend(context, resourceGroupName, playwrightWorkspaceName, resource, options = {
176
+ requestOptions: {},
177
+ }) {
178
+ var _a, _b;
179
+ const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/playwrightWorkspaces/{playwrightWorkspaceName}{?api%2Dversion}", {
180
+ subscriptionId: context.subscriptionId,
181
+ resourceGroupName: resourceGroupName,
182
+ playwrightWorkspaceName: playwrightWorkspaceName,
183
+ "api%2Dversion": context.apiVersion,
184
+ }, {
185
+ allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
186
+ });
187
+ return context.path(path).put(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: (0, models_js_1.playwrightWorkspaceSerializer)(resource) }));
188
+ }
189
+ async function _createOrUpdateDeserialize(result) {
190
+ const expectedStatuses = ["200", "201"];
191
+ if (!expectedStatuses.includes(result.status)) {
192
+ const error = (0, core_client_1.createRestError)(result);
193
+ error.details = (0, models_js_1.errorResponseDeserializer)(result.body);
194
+ throw error;
195
+ }
196
+ return (0, models_js_1.playwrightWorkspaceDeserializer)(result.body);
197
+ }
198
+ /** Create a PlaywrightWorkspace */
199
+ function createOrUpdate(context, resourceGroupName, playwrightWorkspaceName, resource, options = {
200
+ requestOptions: {},
201
+ }) {
202
+ return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _createOrUpdateDeserialize, ["200", "201"], {
203
+ updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
204
+ abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
205
+ getInitialResponse: () => _createOrUpdateSend(context, resourceGroupName, playwrightWorkspaceName, resource, options),
206
+ resourceLocationConfig: "azure-async-operation",
207
+ });
208
+ }
209
+ function _getSend(context, resourceGroupName, playwrightWorkspaceName, options = { requestOptions: {} }) {
210
+ var _a, _b;
211
+ const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/playwrightWorkspaces/{playwrightWorkspaceName}{?api%2Dversion}", {
212
+ subscriptionId: context.subscriptionId,
213
+ resourceGroupName: resourceGroupName,
214
+ playwrightWorkspaceName: playwrightWorkspaceName,
215
+ "api%2Dversion": context.apiVersion,
216
+ }, {
217
+ allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
218
+ });
219
+ 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) }));
220
+ }
221
+ async function _getDeserialize(result) {
222
+ const expectedStatuses = ["200"];
223
+ if (!expectedStatuses.includes(result.status)) {
224
+ const error = (0, core_client_1.createRestError)(result);
225
+ error.details = (0, models_js_1.errorResponseDeserializer)(result.body);
226
+ throw error;
227
+ }
228
+ return (0, models_js_1.playwrightWorkspaceDeserializer)(result.body);
229
+ }
230
+ /** Get a PlaywrightWorkspace */
231
+ async function get(context, resourceGroupName, playwrightWorkspaceName, options = { requestOptions: {} }) {
232
+ const result = await _getSend(context, resourceGroupName, playwrightWorkspaceName, options);
233
+ return _getDeserialize(result);
234
+ }
235
+ //# sourceMappingURL=operations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/playwrightWorkspaces/operations.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAwClC,gEA0BC;AAED,8EAWC;AAGD,sDASC;AAED,0DAuBC;AAED,wEAWC;AAGD,gDAaC;AAED,4DAyBC;AAED,0EAWC;AAGD,kDAcC;AAED,oCAyBC;AAED,kDASC;AAQD,0BAaC;AAED,kCA4BC;AAED,gDAWC;AAGD,wBAeC;AAED,kDA8BC;AAED,gEAWC;AAGD,wCAgBC;AAED,4BAyBC;AAED,0CASC;AAGD,kBAQC;AAhbD,sDAagC;AAUhC,8EAA8E;AAC9E,wEAAwE;AACxE,4EAG+C;AAC/C,yDAKiC;AAGjC,SAAgB,0BAA0B,CACxC,OAAe,EACf,IAAkC,EAClC,UAAmE;IACjE,cAAc,EAA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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,IACvB,MAAA,OAAO,CAAC,cAAc,0CAAE,OAAO,KAEpC,CAAC;AACL,CAAC;AAEM,KAAK,UAAU,eAAe,CAAC,MAA6B;IACjE,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,2CAA+B,EAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACtD,CAAC;AAED,gCAAgC;AACzB,KAAK,UAAU,GAAG,CACvB,OAAe,EACf,iBAAyB,EACzB,uBAA+B,EAC/B,UAAiD,EAAE,cAAc,EAAE,EAAE,EAAE;IAEvE,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,OAAO,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,OAAO,CAAC,CAAC;IAC5F,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 PlaywrightWorkspace,\n playwrightWorkspaceSerializer,\n playwrightWorkspaceDeserializer,\n PlaywrightWorkspaceUpdate,\n playwrightWorkspaceUpdateSerializer,\n _PlaywrightWorkspaceListResult,\n _playwrightWorkspaceListResultDeserializer,\n CheckNameAvailabilityRequest,\n checkNameAvailabilityRequestSerializer,\n CheckNameAvailabilityResponse,\n checkNameAvailabilityResponseDeserializer,\n} from \"../../models/models.js\";\nimport {\n PlaywrightWorkspacesCheckNameAvailabilityOptionalParams,\n PlaywrightWorkspacesListBySubscriptionOptionalParams,\n PlaywrightWorkspacesListByResourceGroupOptionalParams,\n PlaywrightWorkspacesDeleteOptionalParams,\n PlaywrightWorkspacesUpdateOptionalParams,\n PlaywrightWorkspacesCreateOrUpdateOptionalParams,\n PlaywrightWorkspacesGetOptionalParams,\n} from \"./options.js\";\nimport { getLongRunningPoller } from \"../../static-helpers/pollingHelpers.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\";\nimport { PollerLike, OperationState } from \"@azure/core-lro\";\n\nexport function _checkNameAvailabilitySend(\n context: Client,\n body: CheckNameAvailabilityRequest,\n options: PlaywrightWorkspacesCheckNameAvailabilityOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.LoadTestService/checkNameAvailability{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: checkNameAvailabilityRequestSerializer(body),\n });\n}\n\nexport async function _checkNameAvailabilityDeserialize(\n result: PathUncheckedResponse,\n): Promise<CheckNameAvailabilityResponse> {\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 checkNameAvailabilityResponseDeserializer(result.body);\n}\n\n/** Implements global CheckNameAvailability operations */\nexport async function checkNameAvailability(\n context: Client,\n body: CheckNameAvailabilityRequest,\n options: PlaywrightWorkspacesCheckNameAvailabilityOptionalParams = {\n requestOptions: {},\n },\n): Promise<CheckNameAvailabilityResponse> {\n const result = await _checkNameAvailabilitySend(context, body, options);\n return _checkNameAvailabilityDeserialize(result);\n}\n\nexport function _listBySubscriptionSend(\n context: Client,\n options: PlaywrightWorkspacesListBySubscriptionOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.LoadTestService/playwrightWorkspaces{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\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<_PlaywrightWorkspaceListResult> {\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 _playwrightWorkspaceListResultDeserializer(result.body);\n}\n\n/** List PlaywrightWorkspace resources by subscription ID */\nexport function listBySubscription(\n context: Client,\n options: PlaywrightWorkspacesListBySubscriptionOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<PlaywrightWorkspace> {\n return buildPagedAsyncIterator(\n context,\n () => _listBySubscriptionSend(context, options),\n _listBySubscriptionDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n\nexport function _listByResourceGroupSend(\n context: Client,\n resourceGroupName: string,\n options: PlaywrightWorkspacesListByResourceGroupOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/playwrightWorkspaces{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\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 _listByResourceGroupDeserialize(\n result: PathUncheckedResponse,\n): Promise<_PlaywrightWorkspaceListResult> {\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 _playwrightWorkspaceListResultDeserializer(result.body);\n}\n\n/** List PlaywrightWorkspace resources by resource group */\nexport function listByResourceGroup(\n context: Client,\n resourceGroupName: string,\n options: PlaywrightWorkspacesListByResourceGroupOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<PlaywrightWorkspace> {\n return buildPagedAsyncIterator(\n context,\n () => _listByResourceGroupSend(context, resourceGroupName, options),\n _listByResourceGroupDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n\nexport function _$deleteSend(\n context: Client,\n resourceGroupName: string,\n playwrightWorkspaceName: string,\n options: PlaywrightWorkspacesDeleteOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/playwrightWorkspaces/{playwrightWorkspaceName}{?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).delete({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _$deleteDeserialize(result: PathUncheckedResponse): Promise<void> {\n const expectedStatuses = [\"202\", \"204\", \"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;\n}\n\n/** Delete a PlaywrightWorkspace */\n/**\n * @fixme delete is a reserved word that cannot be used as an operation name.\n * Please add @clientName(\"clientName\") or @clientName(\"<JS-Specific-Name>\", \"javascript\")\n * to the operation to override the generated name.\n */\nexport function $delete(\n context: Client,\n resourceGroupName: string,\n playwrightWorkspaceName: string,\n options: PlaywrightWorkspacesDeleteOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<void>, void> {\n return getLongRunningPoller(context, _$deleteDeserialize, [\"202\", \"204\", \"200\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _$deleteSend(context, resourceGroupName, playwrightWorkspaceName, options),\n resourceLocationConfig: \"location\",\n }) as PollerLike<OperationState<void>, void>;\n}\n\nexport function _updateSend(\n context: Client,\n resourceGroupName: string,\n playwrightWorkspaceName: string,\n properties: PlaywrightWorkspaceUpdate,\n options: PlaywrightWorkspacesUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/playwrightWorkspaces/{playwrightWorkspaceName}{?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).patch({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: playwrightWorkspaceUpdateSerializer(properties),\n });\n}\n\nexport async function _updateDeserialize(\n result: PathUncheckedResponse,\n): Promise<PlaywrightWorkspace> {\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 playwrightWorkspaceDeserializer(result.body);\n}\n\n/** Update a PlaywrightWorkspace */\nexport async function update(\n context: Client,\n resourceGroupName: string,\n playwrightWorkspaceName: string,\n properties: PlaywrightWorkspaceUpdate,\n options: PlaywrightWorkspacesUpdateOptionalParams = { requestOptions: {} },\n): Promise<PlaywrightWorkspace> {\n const result = await _updateSend(\n context,\n resourceGroupName,\n playwrightWorkspaceName,\n properties,\n options,\n );\n return _updateDeserialize(result);\n}\n\nexport function _createOrUpdateSend(\n context: Client,\n resourceGroupName: string,\n playwrightWorkspaceName: string,\n resource: PlaywrightWorkspace,\n options: PlaywrightWorkspacesCreateOrUpdateOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/playwrightWorkspaces/{playwrightWorkspaceName}{?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).put({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: playwrightWorkspaceSerializer(resource),\n });\n}\n\nexport async function _createOrUpdateDeserialize(\n result: PathUncheckedResponse,\n): Promise<PlaywrightWorkspace> {\n const expectedStatuses = [\"200\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return playwrightWorkspaceDeserializer(result.body);\n}\n\n/** Create a PlaywrightWorkspace */\nexport function createOrUpdate(\n context: Client,\n resourceGroupName: string,\n playwrightWorkspaceName: string,\n resource: PlaywrightWorkspace,\n options: PlaywrightWorkspacesCreateOrUpdateOptionalParams = {\n requestOptions: {},\n },\n): PollerLike<OperationState<PlaywrightWorkspace>, PlaywrightWorkspace> {\n return getLongRunningPoller(context, _createOrUpdateDeserialize, [\"200\", \"201\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _createOrUpdateSend(context, resourceGroupName, playwrightWorkspaceName, resource, options),\n resourceLocationConfig: \"azure-async-operation\",\n }) as PollerLike<OperationState<PlaywrightWorkspace>, PlaywrightWorkspace>;\n}\n\nexport function _getSend(\n context: Client,\n resourceGroupName: string,\n playwrightWorkspaceName: string,\n options: PlaywrightWorkspacesGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/playwrightWorkspaces/{playwrightWorkspaceName}{?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 _getDeserialize(result: PathUncheckedResponse): Promise<PlaywrightWorkspace> {\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 playwrightWorkspaceDeserializer(result.body);\n}\n\n/** Get a PlaywrightWorkspace */\nexport async function get(\n context: Client,\n resourceGroupName: string,\n playwrightWorkspaceName: string,\n options: PlaywrightWorkspacesGetOptionalParams = { requestOptions: {} },\n): Promise<PlaywrightWorkspace> {\n const result = await _getSend(context, resourceGroupName, playwrightWorkspaceName, options);\n return _getDeserialize(result);\n}\n"]}
@@ -0,0 +1,27 @@
1
+ import { OperationOptions } from "@azure-rest/core-client";
2
+ /** Optional parameters. */
3
+ export interface PlaywrightWorkspacesCheckNameAvailabilityOptionalParams extends OperationOptions {
4
+ }
5
+ /** Optional parameters. */
6
+ export interface PlaywrightWorkspacesListBySubscriptionOptionalParams extends OperationOptions {
7
+ }
8
+ /** Optional parameters. */
9
+ export interface PlaywrightWorkspacesListByResourceGroupOptionalParams extends OperationOptions {
10
+ }
11
+ /** Optional parameters. */
12
+ export interface PlaywrightWorkspacesDeleteOptionalParams extends OperationOptions {
13
+ /** Delay to wait until next poll, in milliseconds. */
14
+ updateIntervalInMs?: number;
15
+ }
16
+ /** Optional parameters. */
17
+ export interface PlaywrightWorkspacesUpdateOptionalParams extends OperationOptions {
18
+ }
19
+ /** Optional parameters. */
20
+ export interface PlaywrightWorkspacesCreateOrUpdateOptionalParams extends OperationOptions {
21
+ /** Delay to wait until next poll, in milliseconds. */
22
+ updateIntervalInMs?: number;
23
+ }
24
+ /** Optional parameters. */
25
+ export interface PlaywrightWorkspacesGetOptionalParams extends OperationOptions {
26
+ }
27
+ //# 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/playwrightWorkspaces/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 PlaywrightWorkspacesCheckNameAvailabilityOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface PlaywrightWorkspacesListBySubscriptionOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface PlaywrightWorkspacesListByResourceGroupOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface PlaywrightWorkspacesDeleteOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n}\n\n/** Optional parameters. */\nexport interface PlaywrightWorkspacesUpdateOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface PlaywrightWorkspacesCreateOrUpdateOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n}\n\n/** Optional parameters. */\nexport interface PlaywrightWorkspacesGetOptionalParams extends OperationOptions {}\n"]}
@@ -0,0 +1,5 @@
1
+ export { OperationsOperations } from "./operations/index.js";
2
+ export { PlaywrightQuotasOperations } from "./playwrightQuotas/index.js";
3
+ export { PlaywrightWorkspaceQuotasOperations } from "./playwrightWorkspaceQuotas/index.js";
4
+ export { PlaywrightWorkspacesOperations } from "./playwrightWorkspaces/index.js";
5
+ //# sourceMappingURL=index.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=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/classic/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport { OperationsOperations } from \"./operations/index.js\";\nexport { PlaywrightQuotasOperations } from \"./playwrightQuotas/index.js\";\nexport { PlaywrightWorkspaceQuotasOperations } from \"./playwrightWorkspaceQuotas/index.js\";\nexport { PlaywrightWorkspacesOperations } from \"./playwrightWorkspaces/index.js\";\n"]}
@@ -0,0 +1,11 @@
1
+ import { PlaywrightManagementContext } from "../../api/playwrightManagementContext.js";
2
+ import { Operation } from "../../models/models.js";
3
+ import { OperationsListOptionalParams } from "../../api/operations/options.js";
4
+ import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
5
+ /** Interface representing a Operations operations. */
6
+ export interface OperationsOperations {
7
+ /** List the operations for the provider */
8
+ list: (options?: OperationsListOptionalParams) => PagedAsyncIterableIterator<Operation>;
9
+ }
10
+ export declare function _getOperationsOperations(context: PlaywrightManagementContext): OperationsOperations;
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ // Copyright (c) Microsoft Corporation.
3
+ // Licensed under the MIT License.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports._getOperationsOperations = _getOperationsOperations;
6
+ const operations_js_1 = require("../../api/operations/operations.js");
7
+ function _getOperations(context) {
8
+ return {
9
+ list: (options) => (0, operations_js_1.list)(context, options),
10
+ };
11
+ }
12
+ function _getOperationsOperations(context) {
13
+ return Object.assign({}, _getOperations(context));
14
+ }
15
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/operations/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAoBlC,4DAMC;AArBD,sEAA0D;AAS1D,SAAS,cAAc,CAAC,OAAoC;IAC1D,OAAO;QACL,IAAI,EAAE,CAAC,OAAsC,EAAE,EAAE,CAAC,IAAA,oBAAI,EAAC,OAAO,EAAE,OAAO,CAAC;KACzE,CAAC;AACJ,CAAC;AAED,SAAgB,wBAAwB,CACtC,OAAoC;IAEpC,yBACK,cAAc,CAAC,OAAO,CAAC,EAC1B;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { PlaywrightManagementContext } from \"../../api/playwrightManagementContext.js\";\nimport { Operation } from \"../../models/models.js\";\nimport { OperationsListOptionalParams } from \"../../api/operations/options.js\";\nimport { list } from \"../../api/operations/operations.js\";\nimport { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\n\n/** Interface representing a Operations operations. */\nexport interface OperationsOperations {\n /** List the operations for the provider */\n list: (options?: OperationsListOptionalParams) => PagedAsyncIterableIterator<Operation>;\n}\n\nfunction _getOperations(context: PlaywrightManagementContext) {\n return {\n list: (options?: OperationsListOptionalParams) => list(context, options),\n };\n}\n\nexport function _getOperationsOperations(\n context: PlaywrightManagementContext,\n): OperationsOperations {\n return {\n ..._getOperations(context),\n };\n}\n"]}
@@ -0,0 +1,13 @@
1
+ import { PlaywrightManagementContext } from "../../api/playwrightManagementContext.js";
2
+ import { PlaywrightQuota, QuotaName } from "../../models/models.js";
3
+ import { PlaywrightQuotasListBySubscriptionOptionalParams, PlaywrightQuotasGetOptionalParams } from "../../api/playwrightQuotas/options.js";
4
+ import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
5
+ /** Interface representing a PlaywrightQuotas operations. */
6
+ export interface PlaywrightQuotasOperations {
7
+ /** List Playwright quota resources for a given subscription Id. */
8
+ listBySubscription: (location: string, options?: PlaywrightQuotasListBySubscriptionOptionalParams) => PagedAsyncIterableIterator<PlaywrightQuota>;
9
+ /** Get subscription-level location-based Playwright quota resource by name. */
10
+ get: (location: string, playwrightQuotaName: QuotaName, options?: PlaywrightQuotasGetOptionalParams) => Promise<PlaywrightQuota>;
11
+ }
12
+ export declare function _getPlaywrightQuotasOperations(context: PlaywrightManagementContext): PlaywrightQuotasOperations;
13
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ // Copyright (c) Microsoft Corporation.
3
+ // Licensed under the MIT License.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports._getPlaywrightQuotasOperations = _getPlaywrightQuotasOperations;
6
+ const operations_js_1 = require("../../api/playwrightQuotas/operations.js");
7
+ function _getPlaywrightQuotas(context) {
8
+ return {
9
+ listBySubscription: (location, options) => (0, operations_js_1.listBySubscription)(context, location, options),
10
+ get: (location, playwrightQuotaName, options) => (0, operations_js_1.get)(context, location, playwrightQuotaName, options),
11
+ };
12
+ }
13
+ function _getPlaywrightQuotasOperations(context) {
14
+ return Object.assign({}, _getPlaywrightQuotas(context));
15
+ }
16
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/playwrightQuotas/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAwClC,wEAMC;AAtCD,4EAAmF;AAkBnF,SAAS,oBAAoB,CAAC,OAAoC;IAChE,OAAO;QACL,kBAAkB,EAAE,CAClB,QAAgB,EAChB,OAA0D,EAC1D,EAAE,CAAC,IAAA,kCAAkB,EAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC;QACnD,GAAG,EAAE,CACH,QAAgB,EAChB,mBAA8B,EAC9B,OAA2C,EAC3C,EAAE,CAAC,IAAA,mBAAG,EAAC,OAAO,EAAE,QAAQ,EAAE,mBAAmB,EAAE,OAAO,CAAC;KAC1D,CAAC;AACJ,CAAC;AAED,SAAgB,8BAA8B,CAC5C,OAAoC;IAEpC,yBACK,oBAAoB,CAAC,OAAO,CAAC,EAChC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { PlaywrightManagementContext } from \"../../api/playwrightManagementContext.js\";\nimport { PlaywrightQuota, QuotaName } from \"../../models/models.js\";\nimport {\n PlaywrightQuotasListBySubscriptionOptionalParams,\n PlaywrightQuotasGetOptionalParams,\n} from \"../../api/playwrightQuotas/options.js\";\nimport { listBySubscription, get } from \"../../api/playwrightQuotas/operations.js\";\nimport { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\n\n/** Interface representing a PlaywrightQuotas operations. */\nexport interface PlaywrightQuotasOperations {\n /** List Playwright quota resources for a given subscription Id. */\n listBySubscription: (\n location: string,\n options?: PlaywrightQuotasListBySubscriptionOptionalParams,\n ) => PagedAsyncIterableIterator<PlaywrightQuota>;\n /** Get subscription-level location-based Playwright quota resource by name. */\n get: (\n location: string,\n playwrightQuotaName: QuotaName,\n options?: PlaywrightQuotasGetOptionalParams,\n ) => Promise<PlaywrightQuota>;\n}\n\nfunction _getPlaywrightQuotas(context: PlaywrightManagementContext) {\n return {\n listBySubscription: (\n location: string,\n options?: PlaywrightQuotasListBySubscriptionOptionalParams,\n ) => listBySubscription(context, location, options),\n get: (\n location: string,\n playwrightQuotaName: QuotaName,\n options?: PlaywrightQuotasGetOptionalParams,\n ) => get(context, location, playwrightQuotaName, options),\n };\n}\n\nexport function _getPlaywrightQuotasOperations(\n context: PlaywrightManagementContext,\n): PlaywrightQuotasOperations {\n return {\n ..._getPlaywrightQuotas(context),\n };\n}\n"]}
@@ -0,0 +1,13 @@
1
+ import { PlaywrightManagementContext } from "../../api/playwrightManagementContext.js";
2
+ import { QuotaName, PlaywrightWorkspaceQuota } from "../../models/models.js";
3
+ import { PlaywrightWorkspaceQuotasListByPlaywrightWorkspaceOptionalParams, PlaywrightWorkspaceQuotasGetOptionalParams } from "../../api/playwrightWorkspaceQuotas/options.js";
4
+ import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
5
+ /** Interface representing a PlaywrightWorkspaceQuotas operations. */
6
+ export interface PlaywrightWorkspaceQuotasOperations {
7
+ /** List quota resources for a given Playwright workspace resource. */
8
+ listByPlaywrightWorkspace: (resourceGroupName: string, playwrightWorkspaceName: string, options?: PlaywrightWorkspaceQuotasListByPlaywrightWorkspaceOptionalParams) => PagedAsyncIterableIterator<PlaywrightWorkspaceQuota>;
9
+ /** Get Playwright workspace quota resource by name. */
10
+ get: (resourceGroupName: string, playwrightWorkspaceName: string, quotaName: QuotaName, options?: PlaywrightWorkspaceQuotasGetOptionalParams) => Promise<PlaywrightWorkspaceQuota>;
11
+ }
12
+ export declare function _getPlaywrightWorkspaceQuotasOperations(context: PlaywrightManagementContext): PlaywrightWorkspaceQuotasOperations;
13
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ // Copyright (c) Microsoft Corporation.
3
+ // Licensed under the MIT License.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports._getPlaywrightWorkspaceQuotasOperations = _getPlaywrightWorkspaceQuotasOperations;
6
+ const operations_js_1 = require("../../api/playwrightWorkspaceQuotas/operations.js");
7
+ function _getPlaywrightWorkspaceQuotas(context) {
8
+ return {
9
+ listByPlaywrightWorkspace: (resourceGroupName, playwrightWorkspaceName, options) => (0, operations_js_1.listByPlaywrightWorkspace)(context, resourceGroupName, playwrightWorkspaceName, options),
10
+ get: (resourceGroupName, playwrightWorkspaceName, quotaName, options) => (0, operations_js_1.get)(context, resourceGroupName, playwrightWorkspaceName, quotaName, options),
11
+ };
12
+ }
13
+ function _getPlaywrightWorkspaceQuotasOperations(context) {
14
+ return Object.assign({}, _getPlaywrightWorkspaceQuotas(context));
15
+ }
16
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/playwrightWorkspaceQuotas/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AA4ClC,0FAMC;AA1CD,qFAAmG;AAoBnG,SAAS,6BAA6B,CAAC,OAAoC;IACzE,OAAO;QACL,yBAAyB,EAAE,CACzB,iBAAyB,EACzB,uBAA+B,EAC/B,OAA0E,EAC1E,EAAE,CAAC,IAAA,yCAAyB,EAAC,OAAO,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,OAAO,CAAC;QAC5F,GAAG,EAAE,CACH,iBAAyB,EACzB,uBAA+B,EAC/B,SAAoB,EACpB,OAAoD,EACpD,EAAE,CAAC,IAAA,mBAAG,EAAC,OAAO,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,SAAS,EAAE,OAAO,CAAC;KAClF,CAAC;AACJ,CAAC;AAED,SAAgB,uCAAuC,CACrD,OAAoC;IAEpC,yBACK,6BAA6B,CAAC,OAAO,CAAC,EACzC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { PlaywrightManagementContext } from \"../../api/playwrightManagementContext.js\";\nimport { QuotaName, PlaywrightWorkspaceQuota } from \"../../models/models.js\";\nimport {\n PlaywrightWorkspaceQuotasListByPlaywrightWorkspaceOptionalParams,\n PlaywrightWorkspaceQuotasGetOptionalParams,\n} from \"../../api/playwrightWorkspaceQuotas/options.js\";\nimport { listByPlaywrightWorkspace, get } from \"../../api/playwrightWorkspaceQuotas/operations.js\";\nimport { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\n\n/** Interface representing a PlaywrightWorkspaceQuotas operations. */\nexport interface PlaywrightWorkspaceQuotasOperations {\n /** List quota resources for a given Playwright workspace resource. */\n listByPlaywrightWorkspace: (\n resourceGroupName: string,\n playwrightWorkspaceName: string,\n options?: PlaywrightWorkspaceQuotasListByPlaywrightWorkspaceOptionalParams,\n ) => PagedAsyncIterableIterator<PlaywrightWorkspaceQuota>;\n /** Get Playwright workspace quota resource by name. */\n get: (\n resourceGroupName: string,\n playwrightWorkspaceName: string,\n quotaName: QuotaName,\n options?: PlaywrightWorkspaceQuotasGetOptionalParams,\n ) => Promise<PlaywrightWorkspaceQuota>;\n}\n\nfunction _getPlaywrightWorkspaceQuotas(context: PlaywrightManagementContext) {\n return {\n listByPlaywrightWorkspace: (\n resourceGroupName: string,\n playwrightWorkspaceName: string,\n options?: PlaywrightWorkspaceQuotasListByPlaywrightWorkspaceOptionalParams,\n ) => listByPlaywrightWorkspace(context, resourceGroupName, playwrightWorkspaceName, options),\n get: (\n resourceGroupName: string,\n playwrightWorkspaceName: string,\n quotaName: QuotaName,\n options?: PlaywrightWorkspaceQuotasGetOptionalParams,\n ) => get(context, resourceGroupName, playwrightWorkspaceName, quotaName, options),\n };\n}\n\nexport function _getPlaywrightWorkspaceQuotasOperations(\n context: PlaywrightManagementContext,\n): PlaywrightWorkspaceQuotasOperations {\n return {\n ..._getPlaywrightWorkspaceQuotas(context),\n };\n}\n"]}
@@ -0,0 +1,29 @@
1
+ import { PlaywrightManagementContext } from "../../api/playwrightManagementContext.js";
2
+ import { PlaywrightWorkspace, PlaywrightWorkspaceUpdate, CheckNameAvailabilityRequest, CheckNameAvailabilityResponse } from "../../models/models.js";
3
+ import { PlaywrightWorkspacesCheckNameAvailabilityOptionalParams, PlaywrightWorkspacesListBySubscriptionOptionalParams, PlaywrightWorkspacesListByResourceGroupOptionalParams, PlaywrightWorkspacesDeleteOptionalParams, PlaywrightWorkspacesUpdateOptionalParams, PlaywrightWorkspacesCreateOrUpdateOptionalParams, PlaywrightWorkspacesGetOptionalParams } from "../../api/playwrightWorkspaces/options.js";
4
+ import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
5
+ import { PollerLike, OperationState } from "@azure/core-lro";
6
+ /** Interface representing a PlaywrightWorkspaces operations. */
7
+ export interface PlaywrightWorkspacesOperations {
8
+ /** Implements global CheckNameAvailability operations */
9
+ checkNameAvailability: (body: CheckNameAvailabilityRequest, options?: PlaywrightWorkspacesCheckNameAvailabilityOptionalParams) => Promise<CheckNameAvailabilityResponse>;
10
+ /** List PlaywrightWorkspace resources by subscription ID */
11
+ listBySubscription: (options?: PlaywrightWorkspacesListBySubscriptionOptionalParams) => PagedAsyncIterableIterator<PlaywrightWorkspace>;
12
+ /** List PlaywrightWorkspace resources by resource group */
13
+ listByResourceGroup: (resourceGroupName: string, options?: PlaywrightWorkspacesListByResourceGroupOptionalParams) => PagedAsyncIterableIterator<PlaywrightWorkspace>;
14
+ /** Delete a PlaywrightWorkspace */
15
+ /**
16
+ * @fixme delete is a reserved word that cannot be used as an operation name.
17
+ * Please add @clientName("clientName") or @clientName("<JS-Specific-Name>", "javascript")
18
+ * to the operation to override the generated name.
19
+ */
20
+ delete: (resourceGroupName: string, playwrightWorkspaceName: string, options?: PlaywrightWorkspacesDeleteOptionalParams) => PollerLike<OperationState<void>, void>;
21
+ /** Update a PlaywrightWorkspace */
22
+ update: (resourceGroupName: string, playwrightWorkspaceName: string, properties: PlaywrightWorkspaceUpdate, options?: PlaywrightWorkspacesUpdateOptionalParams) => Promise<PlaywrightWorkspace>;
23
+ /** Create a PlaywrightWorkspace */
24
+ createOrUpdate: (resourceGroupName: string, playwrightWorkspaceName: string, resource: PlaywrightWorkspace, options?: PlaywrightWorkspacesCreateOrUpdateOptionalParams) => PollerLike<OperationState<PlaywrightWorkspace>, PlaywrightWorkspace>;
25
+ /** Get a PlaywrightWorkspace */
26
+ get: (resourceGroupName: string, playwrightWorkspaceName: string, options?: PlaywrightWorkspacesGetOptionalParams) => Promise<PlaywrightWorkspace>;
27
+ }
28
+ export declare function _getPlaywrightWorkspacesOperations(context: PlaywrightManagementContext): PlaywrightWorkspacesOperations;
29
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ // Copyright (c) Microsoft Corporation.
3
+ // Licensed under the MIT License.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports._getPlaywrightWorkspacesOperations = _getPlaywrightWorkspacesOperations;
6
+ const operations_js_1 = require("../../api/playwrightWorkspaces/operations.js");
7
+ function _getPlaywrightWorkspaces(context) {
8
+ return {
9
+ checkNameAvailability: (body, options) => (0, operations_js_1.checkNameAvailability)(context, body, options),
10
+ listBySubscription: (options) => (0, operations_js_1.listBySubscription)(context, options),
11
+ listByResourceGroup: (resourceGroupName, options) => (0, operations_js_1.listByResourceGroup)(context, resourceGroupName, options),
12
+ delete: (resourceGroupName, playwrightWorkspaceName, options) => (0, operations_js_1.$delete)(context, resourceGroupName, playwrightWorkspaceName, options),
13
+ update: (resourceGroupName, playwrightWorkspaceName, properties, options) => (0, operations_js_1.update)(context, resourceGroupName, playwrightWorkspaceName, properties, options),
14
+ createOrUpdate: (resourceGroupName, playwrightWorkspaceName, resource, options) => (0, operations_js_1.createOrUpdate)(context, resourceGroupName, playwrightWorkspaceName, resource, options),
15
+ get: (resourceGroupName, playwrightWorkspaceName, options) => (0, operations_js_1.get)(context, resourceGroupName, playwrightWorkspaceName, options),
16
+ };
17
+ }
18
+ function _getPlaywrightWorkspacesOperations(context) {
19
+ return Object.assign({}, _getPlaywrightWorkspaces(context));
20
+ }
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/playwrightWorkspaces/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAoHlC,gFAMC;AAxGD,gFAQsD;AAqDtD,SAAS,wBAAwB,CAAC,OAAoC;IACpE,OAAO;QACL,qBAAqB,EAAE,CACrB,IAAkC,EAClC,OAAiE,EACjE,EAAE,CAAC,IAAA,qCAAqB,EAAC,OAAO,EAAE,IAAI,EAAE,OAAO,CAAC;QAClD,kBAAkB,EAAE,CAAC,OAA8D,EAAE,EAAE,CACrF,IAAA,kCAAkB,EAAC,OAAO,EAAE,OAAO,CAAC;QACtC,mBAAmB,EAAE,CACnB,iBAAyB,EACzB,OAA+D,EAC/D,EAAE,CAAC,IAAA,mCAAmB,EAAC,OAAO,EAAE,iBAAiB,EAAE,OAAO,CAAC;QAC7D,MAAM,EAAE,CACN,iBAAyB,EACzB,uBAA+B,EAC/B,OAAkD,EAClD,EAAE,CAAC,IAAA,uBAAO,EAAC,OAAO,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,OAAO,CAAC;QAC1E,MAAM,EAAE,CACN,iBAAyB,EACzB,uBAA+B,EAC/B,UAAqC,EACrC,OAAkD,EAClD,EAAE,CAAC,IAAA,sBAAM,EAAC,OAAO,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,UAAU,EAAE,OAAO,CAAC;QACrF,cAAc,EAAE,CACd,iBAAyB,EACzB,uBAA+B,EAC/B,QAA6B,EAC7B,OAA0D,EAC1D,EAAE,CAAC,IAAA,8BAAc,EAAC,OAAO,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,QAAQ,EAAE,OAAO,CAAC;QAC3F,GAAG,EAAE,CACH,iBAAyB,EACzB,uBAA+B,EAC/B,OAA+C,EAC/C,EAAE,CAAC,IAAA,mBAAG,EAAC,OAAO,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,OAAO,CAAC;KACvE,CAAC;AACJ,CAAC;AAED,SAAgB,kCAAkC,CAChD,OAAoC;IAEpC,yBACK,wBAAwB,CAAC,OAAO,CAAC,EACpC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { PlaywrightManagementContext } from \"../../api/playwrightManagementContext.js\";\nimport {\n PlaywrightWorkspace,\n PlaywrightWorkspaceUpdate,\n CheckNameAvailabilityRequest,\n CheckNameAvailabilityResponse,\n} from \"../../models/models.js\";\nimport {\n PlaywrightWorkspacesCheckNameAvailabilityOptionalParams,\n PlaywrightWorkspacesListBySubscriptionOptionalParams,\n PlaywrightWorkspacesListByResourceGroupOptionalParams,\n PlaywrightWorkspacesDeleteOptionalParams,\n PlaywrightWorkspacesUpdateOptionalParams,\n PlaywrightWorkspacesCreateOrUpdateOptionalParams,\n PlaywrightWorkspacesGetOptionalParams,\n} from \"../../api/playwrightWorkspaces/options.js\";\nimport {\n checkNameAvailability,\n listBySubscription,\n listByResourceGroup,\n $delete,\n update,\n createOrUpdate,\n get,\n} from \"../../api/playwrightWorkspaces/operations.js\";\nimport { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { PollerLike, OperationState } from \"@azure/core-lro\";\n\n/** Interface representing a PlaywrightWorkspaces operations. */\nexport interface PlaywrightWorkspacesOperations {\n /** Implements global CheckNameAvailability operations */\n checkNameAvailability: (\n body: CheckNameAvailabilityRequest,\n options?: PlaywrightWorkspacesCheckNameAvailabilityOptionalParams,\n ) => Promise<CheckNameAvailabilityResponse>;\n /** List PlaywrightWorkspace resources by subscription ID */\n listBySubscription: (\n options?: PlaywrightWorkspacesListBySubscriptionOptionalParams,\n ) => PagedAsyncIterableIterator<PlaywrightWorkspace>;\n /** List PlaywrightWorkspace resources by resource group */\n listByResourceGroup: (\n resourceGroupName: string,\n options?: PlaywrightWorkspacesListByResourceGroupOptionalParams,\n ) => PagedAsyncIterableIterator<PlaywrightWorkspace>;\n /** Delete a PlaywrightWorkspace */\n /**\n * @fixme delete is a reserved word that cannot be used as an operation name.\n * Please add @clientName(\"clientName\") or @clientName(\"<JS-Specific-Name>\", \"javascript\")\n * to the operation to override the generated name.\n */\n delete: (\n resourceGroupName: string,\n playwrightWorkspaceName: string,\n options?: PlaywrightWorkspacesDeleteOptionalParams,\n ) => PollerLike<OperationState<void>, void>;\n /** Update a PlaywrightWorkspace */\n update: (\n resourceGroupName: string,\n playwrightWorkspaceName: string,\n properties: PlaywrightWorkspaceUpdate,\n options?: PlaywrightWorkspacesUpdateOptionalParams,\n ) => Promise<PlaywrightWorkspace>;\n /** Create a PlaywrightWorkspace */\n createOrUpdate: (\n resourceGroupName: string,\n playwrightWorkspaceName: string,\n resource: PlaywrightWorkspace,\n options?: PlaywrightWorkspacesCreateOrUpdateOptionalParams,\n ) => PollerLike<OperationState<PlaywrightWorkspace>, PlaywrightWorkspace>;\n /** Get a PlaywrightWorkspace */\n get: (\n resourceGroupName: string,\n playwrightWorkspaceName: string,\n options?: PlaywrightWorkspacesGetOptionalParams,\n ) => Promise<PlaywrightWorkspace>;\n}\n\nfunction _getPlaywrightWorkspaces(context: PlaywrightManagementContext) {\n return {\n checkNameAvailability: (\n body: CheckNameAvailabilityRequest,\n options?: PlaywrightWorkspacesCheckNameAvailabilityOptionalParams,\n ) => checkNameAvailability(context, body, options),\n listBySubscription: (options?: PlaywrightWorkspacesListBySubscriptionOptionalParams) =>\n listBySubscription(context, options),\n listByResourceGroup: (\n resourceGroupName: string,\n options?: PlaywrightWorkspacesListByResourceGroupOptionalParams,\n ) => listByResourceGroup(context, resourceGroupName, options),\n delete: (\n resourceGroupName: string,\n playwrightWorkspaceName: string,\n options?: PlaywrightWorkspacesDeleteOptionalParams,\n ) => $delete(context, resourceGroupName, playwrightWorkspaceName, options),\n update: (\n resourceGroupName: string,\n playwrightWorkspaceName: string,\n properties: PlaywrightWorkspaceUpdate,\n options?: PlaywrightWorkspacesUpdateOptionalParams,\n ) => update(context, resourceGroupName, playwrightWorkspaceName, properties, options),\n createOrUpdate: (\n resourceGroupName: string,\n playwrightWorkspaceName: string,\n resource: PlaywrightWorkspace,\n options?: PlaywrightWorkspacesCreateOrUpdateOptionalParams,\n ) => createOrUpdate(context, resourceGroupName, playwrightWorkspaceName, resource, options),\n get: (\n resourceGroupName: string,\n playwrightWorkspaceName: string,\n options?: PlaywrightWorkspacesGetOptionalParams,\n ) => get(context, resourceGroupName, playwrightWorkspaceName, options),\n };\n}\n\nexport function _getPlaywrightWorkspacesOperations(\n context: PlaywrightManagementContext,\n): PlaywrightWorkspacesOperations {\n return {\n ..._getPlaywrightWorkspaces(context),\n };\n}\n"]}
@@ -0,0 +1,12 @@
1
+ import { PageSettings, ContinuablePage, PagedAsyncIterableIterator } from "./static-helpers/pagingHelpers.js";
2
+ export { PlaywrightManagementClient } from "./playwrightManagementClient.js";
3
+ export { restorePoller, RestorePollerOptions } from "./restorePollerHelpers.js";
4
+ export { Operation, OperationDisplay, KnownOrigin, Origin, KnownActionType, ActionType, ErrorResponse, ErrorDetail, ErrorAdditionalInfo, PlaywrightWorkspace, PlaywrightWorkspaceProperties, KnownProvisioningState, ProvisioningState, KnownEnablementStatus, EnablementStatus, TrackedResource, Resource, SystemData, KnownCreatedByType, CreatedByType, PlaywrightWorkspaceUpdate, PlaywrightWorkspaceUpdateProperties, CheckNameAvailabilityRequest, CheckNameAvailabilityResponse, KnownCheckNameAvailabilityReason, CheckNameAvailabilityReason, PlaywrightQuota, PlaywrightQuotaProperties, FreeTrialProperties, KnownFreeTrialState, FreeTrialState, KnownQuotaName, QuotaName, ProxyResource, PlaywrightWorkspaceQuota, PlaywrightWorkspaceQuotaProperties, PlaywrightWorkspaceFreeTrialProperties, KnownVersions, } from "./models/index.js";
5
+ export { PlaywrightManagementClientOptionalParams } from "./api/index.js";
6
+ export { OperationsListOptionalParams } from "./api/operations/index.js";
7
+ export { PlaywrightQuotasListBySubscriptionOptionalParams, PlaywrightQuotasGetOptionalParams, } from "./api/playwrightQuotas/index.js";
8
+ export { PlaywrightWorkspaceQuotasListByPlaywrightWorkspaceOptionalParams, PlaywrightWorkspaceQuotasGetOptionalParams, } from "./api/playwrightWorkspaceQuotas/index.js";
9
+ export { PlaywrightWorkspacesCheckNameAvailabilityOptionalParams, PlaywrightWorkspacesListBySubscriptionOptionalParams, PlaywrightWorkspacesListByResourceGroupOptionalParams, PlaywrightWorkspacesDeleteOptionalParams, PlaywrightWorkspacesUpdateOptionalParams, PlaywrightWorkspacesCreateOrUpdateOptionalParams, PlaywrightWorkspacesGetOptionalParams, } from "./api/playwrightWorkspaces/index.js";
10
+ export { OperationsOperations, PlaywrightQuotasOperations, PlaywrightWorkspaceQuotasOperations, PlaywrightWorkspacesOperations, } from "./classic/index.js";
11
+ export { PageSettings, ContinuablePage, PagedAsyncIterableIterator };
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ // Copyright (c) Microsoft Corporation.
3
+ // Licensed under the MIT License.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.KnownVersions = exports.KnownQuotaName = exports.KnownFreeTrialState = exports.KnownCheckNameAvailabilityReason = exports.KnownCreatedByType = exports.KnownEnablementStatus = exports.KnownProvisioningState = exports.KnownActionType = exports.KnownOrigin = exports.restorePoller = exports.PlaywrightManagementClient = void 0;
6
+ var playwrightManagementClient_js_1 = require("./playwrightManagementClient.js");
7
+ Object.defineProperty(exports, "PlaywrightManagementClient", { enumerable: true, get: function () { return playwrightManagementClient_js_1.PlaywrightManagementClient; } });
8
+ var restorePollerHelpers_js_1 = require("./restorePollerHelpers.js");
9
+ Object.defineProperty(exports, "restorePoller", { enumerable: true, get: function () { return restorePollerHelpers_js_1.restorePoller; } });
10
+ var index_js_1 = require("./models/index.js");
11
+ Object.defineProperty(exports, "KnownOrigin", { enumerable: true, get: function () { return index_js_1.KnownOrigin; } });
12
+ Object.defineProperty(exports, "KnownActionType", { enumerable: true, get: function () { return index_js_1.KnownActionType; } });
13
+ Object.defineProperty(exports, "KnownProvisioningState", { enumerable: true, get: function () { return index_js_1.KnownProvisioningState; } });
14
+ Object.defineProperty(exports, "KnownEnablementStatus", { enumerable: true, get: function () { return index_js_1.KnownEnablementStatus; } });
15
+ Object.defineProperty(exports, "KnownCreatedByType", { enumerable: true, get: function () { return index_js_1.KnownCreatedByType; } });
16
+ Object.defineProperty(exports, "KnownCheckNameAvailabilityReason", { enumerable: true, get: function () { return index_js_1.KnownCheckNameAvailabilityReason; } });
17
+ Object.defineProperty(exports, "KnownFreeTrialState", { enumerable: true, get: function () { return index_js_1.KnownFreeTrialState; } });
18
+ Object.defineProperty(exports, "KnownQuotaName", { enumerable: true, get: function () { return index_js_1.KnownQuotaName; } });
19
+ Object.defineProperty(exports, "KnownVersions", { enumerable: true, get: function () { return index_js_1.KnownVersions; } });
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAQlC,iFAA6E;AAApE,2IAAA,0BAA0B,OAAA;AACnC,qEAAgF;AAAvE,wHAAA,aAAa,OAAA;AACtB,8CAuC2B;AApCzB,uGAAA,WAAW,OAAA;AAEX,2GAAA,eAAe,OAAA;AAOf,kHAAA,sBAAsB,OAAA;AAEtB,iHAAA,qBAAqB,OAAA;AAKrB,8GAAA,kBAAkB,OAAA;AAMlB,4HAAA,gCAAgC,OAAA;AAKhC,+GAAA,mBAAmB,OAAA;AAEnB,0GAAA,cAAc,OAAA;AAMd,yGAAA,aAAa,OAAA","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport {\n PageSettings,\n ContinuablePage,\n PagedAsyncIterableIterator,\n} from \"./static-helpers/pagingHelpers.js\";\n\nexport { PlaywrightManagementClient } from \"./playwrightManagementClient.js\";\nexport { restorePoller, RestorePollerOptions } from \"./restorePollerHelpers.js\";\nexport {\n Operation,\n OperationDisplay,\n KnownOrigin,\n Origin,\n KnownActionType,\n ActionType,\n ErrorResponse,\n ErrorDetail,\n ErrorAdditionalInfo,\n PlaywrightWorkspace,\n PlaywrightWorkspaceProperties,\n KnownProvisioningState,\n ProvisioningState,\n KnownEnablementStatus,\n EnablementStatus,\n TrackedResource,\n Resource,\n SystemData,\n KnownCreatedByType,\n CreatedByType,\n PlaywrightWorkspaceUpdate,\n PlaywrightWorkspaceUpdateProperties,\n CheckNameAvailabilityRequest,\n CheckNameAvailabilityResponse,\n KnownCheckNameAvailabilityReason,\n CheckNameAvailabilityReason,\n PlaywrightQuota,\n PlaywrightQuotaProperties,\n FreeTrialProperties,\n KnownFreeTrialState,\n FreeTrialState,\n KnownQuotaName,\n QuotaName,\n ProxyResource,\n PlaywrightWorkspaceQuota,\n PlaywrightWorkspaceQuotaProperties,\n PlaywrightWorkspaceFreeTrialProperties,\n KnownVersions,\n} from \"./models/index.js\";\nexport { PlaywrightManagementClientOptionalParams } from \"./api/index.js\";\nexport { OperationsListOptionalParams } from \"./api/operations/index.js\";\nexport {\n PlaywrightQuotasListBySubscriptionOptionalParams,\n PlaywrightQuotasGetOptionalParams,\n} from \"./api/playwrightQuotas/index.js\";\nexport {\n PlaywrightWorkspaceQuotasListByPlaywrightWorkspaceOptionalParams,\n PlaywrightWorkspaceQuotasGetOptionalParams,\n} from \"./api/playwrightWorkspaceQuotas/index.js\";\nexport {\n PlaywrightWorkspacesCheckNameAvailabilityOptionalParams,\n PlaywrightWorkspacesListBySubscriptionOptionalParams,\n PlaywrightWorkspacesListByResourceGroupOptionalParams,\n PlaywrightWorkspacesDeleteOptionalParams,\n PlaywrightWorkspacesUpdateOptionalParams,\n PlaywrightWorkspacesCreateOrUpdateOptionalParams,\n PlaywrightWorkspacesGetOptionalParams,\n} from \"./api/playwrightWorkspaces/index.js\";\nexport {\n OperationsOperations,\n PlaywrightQuotasOperations,\n PlaywrightWorkspaceQuotasOperations,\n PlaywrightWorkspacesOperations,\n} from \"./classic/index.js\";\nexport { PageSettings, ContinuablePage, PagedAsyncIterableIterator };\n"]}
@@ -0,0 +1,2 @@
1
+ export declare const logger: import("@azure/logger").AzureLogger;
2
+ //# sourceMappingURL=logger.d.ts.map
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ // Copyright (c) Microsoft Corporation.
3
+ // Licensed under the MIT License.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.logger = void 0;
6
+ const logger_1 = require("@azure/logger");
7
+ exports.logger = (0, logger_1.createClientLogger)("arm-playwright");
8
+ //# sourceMappingURL=logger.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logger.js","sourceRoot":"","sources":["../../src/logger.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,0CAAmD;AACtC,QAAA,MAAM,GAAG,IAAA,2BAAkB,EAAC,gBAAgB,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { createClientLogger } from \"@azure/logger\";\nexport const logger = createClientLogger(\"arm-playwright\");\n"]}