@azure/arm-playwrighttesting 1.0.0-beta.2 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (469) hide show
  1. package/CHANGELOG.md +8 -25
  2. package/LICENSE +4 -4
  3. package/README.md +41 -31
  4. package/dist/browser/api/accountQuotas/index.d.ts +13 -0
  5. package/dist/browser/api/accountQuotas/index.d.ts.map +1 -0
  6. package/dist/browser/api/accountQuotas/index.js +39 -0
  7. package/dist/browser/api/accountQuotas/index.js.map +1 -0
  8. package/dist/browser/api/accounts/index.d.ts +34 -0
  9. package/dist/browser/api/accounts/index.d.ts.map +1 -0
  10. package/dist/browser/api/accounts/index.js +141 -0
  11. package/dist/browser/api/accounts/index.js.map +1 -0
  12. package/dist/browser/api/azurePlaywrightServiceContext.d.ts +14 -0
  13. package/dist/browser/api/azurePlaywrightServiceContext.d.ts.map +1 -0
  14. package/dist/browser/api/azurePlaywrightServiceContext.js +38 -0
  15. package/dist/browser/api/azurePlaywrightServiceContext.js.map +1 -0
  16. package/dist/browser/api/index.d.ts +7 -0
  17. package/dist/browser/api/index.d.ts.map +1 -0
  18. package/dist/browser/api/index.js +8 -0
  19. package/dist/browser/api/index.js.map +1 -0
  20. package/dist/browser/api/operations/index.d.ts +9 -0
  21. package/dist/browser/api/operations/index.d.ts.map +1 -0
  22. package/dist/browser/api/operations/index.js +22 -0
  23. package/dist/browser/api/operations/index.js.map +1 -0
  24. package/dist/browser/api/options.d.ts +42 -0
  25. package/dist/browser/api/options.d.ts.map +1 -0
  26. package/dist/browser/api/options.js +4 -0
  27. package/dist/browser/api/options.js.map +1 -0
  28. package/dist/browser/api/quotas/index.d.ts +13 -0
  29. package/dist/browser/api/quotas/index.d.ts.map +1 -0
  30. package/dist/browser/api/quotas/index.js +39 -0
  31. package/dist/browser/api/quotas/index.js.map +1 -0
  32. package/dist/browser/azurePlaywrightServiceClient.d.ts +24 -0
  33. package/dist/browser/azurePlaywrightServiceClient.d.ts.map +1 -0
  34. package/dist/browser/azurePlaywrightServiceClient.js +37 -0
  35. package/dist/browser/azurePlaywrightServiceClient.js.map +1 -0
  36. package/dist/browser/classic/accountQuotas/index.d.ts +17 -0
  37. package/dist/browser/classic/accountQuotas/index.d.ts.map +1 -0
  38. package/dist/browser/classic/accountQuotas/index.js +15 -0
  39. package/dist/browser/classic/accountQuotas/index.js.map +1 -0
  40. package/dist/browser/classic/accounts/index.d.ts +33 -0
  41. package/dist/browser/classic/accounts/index.d.ts.map +1 -0
  42. package/dist/browser/classic/accounts/index.js +20 -0
  43. package/dist/browser/classic/accounts/index.js.map +1 -0
  44. package/dist/browser/classic/index.d.ts +5 -0
  45. package/dist/browser/classic/index.d.ts.map +1 -0
  46. package/dist/browser/classic/index.js +4 -0
  47. package/dist/browser/classic/index.js.map +1 -0
  48. package/dist/browser/classic/operations/index.d.ts +14 -0
  49. package/dist/browser/classic/operations/index.d.ts.map +1 -0
  50. package/dist/browser/classic/operations/index.js +14 -0
  51. package/dist/browser/classic/operations/index.js.map +1 -0
  52. package/dist/browser/classic/quotas/index.d.ts +17 -0
  53. package/dist/browser/classic/quotas/index.d.ts.map +1 -0
  54. package/dist/browser/classic/quotas/index.js +15 -0
  55. package/dist/browser/classic/quotas/index.js.map +1 -0
  56. package/dist/browser/helpers/serializerHelpers.d.ts +3 -0
  57. package/dist/browser/helpers/serializerHelpers.d.ts.map +1 -0
  58. package/dist/browser/helpers/serializerHelpers.js +24 -0
  59. package/dist/browser/helpers/serializerHelpers.js.map +1 -0
  60. package/dist/browser/index.d.ts +8 -0
  61. package/dist/browser/index.d.ts.map +1 -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.d.ts.map +1 -0
  66. package/dist/browser/logger.js +5 -0
  67. package/dist/browser/logger.js.map +1 -0
  68. package/dist/browser/models/index.d.ts +2 -0
  69. package/dist/browser/models/index.d.ts.map +1 -0
  70. package/dist/browser/models/index.js +4 -0
  71. package/dist/browser/models/index.js.map +1 -0
  72. package/dist/browser/models/models.d.ts +399 -0
  73. package/dist/browser/models/models.d.ts.map +1 -0
  74. package/dist/browser/models/models.js +343 -0
  75. package/dist/browser/models/models.js.map +1 -0
  76. package/dist/browser/package.json +3 -0
  77. package/dist/browser/restorePollerHelpers.d.ts +21 -0
  78. package/dist/browser/restorePollerHelpers.d.ts.map +1 -0
  79. package/dist/browser/restorePollerHelpers.js +95 -0
  80. package/dist/browser/restorePollerHelpers.js.map +1 -0
  81. package/dist/browser/static-helpers/pagingHelpers.d.ts +72 -0
  82. package/dist/browser/static-helpers/pagingHelpers.d.ts.map +1 -0
  83. package/dist/browser/static-helpers/pagingHelpers.js +118 -0
  84. package/dist/browser/static-helpers/pagingHelpers.js.map +1 -0
  85. package/dist/browser/static-helpers/pollingHelpers.d.ts +30 -0
  86. package/dist/browser/static-helpers/pollingHelpers.d.ts.map +1 -0
  87. package/dist/browser/static-helpers/pollingHelpers.js +79 -0
  88. package/dist/browser/static-helpers/pollingHelpers.js.map +1 -0
  89. package/dist/commonjs/api/accountQuotas/index.d.ts +13 -0
  90. package/dist/commonjs/api/accountQuotas/index.d.ts.map +1 -0
  91. package/dist/commonjs/api/accountQuotas/index.js +47 -0
  92. package/dist/commonjs/api/accountQuotas/index.js.map +1 -0
  93. package/dist/commonjs/api/accounts/index.d.ts +34 -0
  94. package/dist/commonjs/api/accounts/index.d.ts.map +1 -0
  95. package/dist/commonjs/api/accounts/index.js +164 -0
  96. package/dist/commonjs/api/accounts/index.js.map +1 -0
  97. package/dist/commonjs/api/azurePlaywrightServiceContext.d.ts +14 -0
  98. package/dist/commonjs/api/azurePlaywrightServiceContext.d.ts.map +1 -0
  99. package/dist/commonjs/api/azurePlaywrightServiceContext.js +41 -0
  100. package/dist/commonjs/api/azurePlaywrightServiceContext.js.map +1 -0
  101. package/dist/commonjs/api/index.d.ts +7 -0
  102. package/dist/commonjs/api/index.d.ts.map +1 -0
  103. package/dist/commonjs/api/index.js +24 -0
  104. package/dist/commonjs/api/index.js.map +1 -0
  105. package/dist/commonjs/api/operations/index.d.ts +9 -0
  106. package/dist/commonjs/api/operations/index.d.ts.map +1 -0
  107. package/dist/commonjs/api/operations/index.js +27 -0
  108. package/dist/commonjs/api/operations/index.js.map +1 -0
  109. package/dist/commonjs/api/options.d.ts +42 -0
  110. package/dist/commonjs/api/options.d.ts.map +1 -0
  111. package/dist/commonjs/api/options.js +5 -0
  112. package/dist/commonjs/api/options.js.map +1 -0
  113. package/dist/commonjs/api/quotas/index.d.ts +13 -0
  114. package/dist/commonjs/api/quotas/index.d.ts.map +1 -0
  115. package/dist/commonjs/api/quotas/index.js +47 -0
  116. package/dist/commonjs/api/quotas/index.js.map +1 -0
  117. package/dist/commonjs/azurePlaywrightServiceClient.d.ts +24 -0
  118. package/dist/commonjs/azurePlaywrightServiceClient.d.ts.map +1 -0
  119. package/dist/commonjs/azurePlaywrightServiceClient.js +41 -0
  120. package/dist/commonjs/azurePlaywrightServiceClient.js.map +1 -0
  121. package/dist/commonjs/classic/accountQuotas/index.d.ts +17 -0
  122. package/dist/commonjs/classic/accountQuotas/index.d.ts.map +1 -0
  123. package/dist/commonjs/classic/accountQuotas/index.js +19 -0
  124. package/dist/commonjs/classic/accountQuotas/index.js.map +1 -0
  125. package/dist/commonjs/classic/accounts/index.d.ts +33 -0
  126. package/dist/commonjs/classic/accounts/index.d.ts.map +1 -0
  127. package/dist/commonjs/classic/accounts/index.js +24 -0
  128. package/dist/commonjs/classic/accounts/index.js.map +1 -0
  129. package/dist/commonjs/classic/index.d.ts +5 -0
  130. package/dist/commonjs/classic/index.d.ts.map +1 -0
  131. package/dist/commonjs/classic/index.js +5 -0
  132. package/dist/commonjs/classic/index.js.map +1 -0
  133. package/dist/commonjs/classic/operations/index.d.ts +14 -0
  134. package/dist/commonjs/classic/operations/index.d.ts.map +1 -0
  135. package/dist/commonjs/classic/operations/index.js +18 -0
  136. package/dist/commonjs/classic/operations/index.js.map +1 -0
  137. package/dist/commonjs/classic/quotas/index.d.ts +17 -0
  138. package/dist/commonjs/classic/quotas/index.d.ts.map +1 -0
  139. package/dist/commonjs/classic/quotas/index.js +19 -0
  140. package/dist/commonjs/classic/quotas/index.js.map +1 -0
  141. package/dist/commonjs/helpers/serializerHelpers.d.ts +3 -0
  142. package/dist/commonjs/helpers/serializerHelpers.d.ts.map +1 -0
  143. package/dist/commonjs/helpers/serializerHelpers.js +27 -0
  144. package/dist/commonjs/helpers/serializerHelpers.js.map +1 -0
  145. package/dist/commonjs/index.d.ts +8 -0
  146. package/dist/commonjs/index.d.ts.map +1 -0
  147. package/dist/commonjs/index.js +21 -0
  148. package/dist/commonjs/index.js.map +1 -0
  149. package/dist/commonjs/logger.d.ts +2 -0
  150. package/dist/commonjs/logger.d.ts.map +1 -0
  151. package/dist/commonjs/logger.js +8 -0
  152. package/dist/commonjs/logger.js.map +1 -0
  153. package/dist/commonjs/models/index.d.ts +2 -0
  154. package/dist/commonjs/models/index.d.ts.map +1 -0
  155. package/dist/commonjs/models/index.js +17 -0
  156. package/dist/commonjs/models/index.js.map +1 -0
  157. package/dist/commonjs/models/models.d.ts +399 -0
  158. package/dist/commonjs/models/models.d.ts.map +1 -0
  159. package/dist/commonjs/models/models.js +377 -0
  160. package/dist/commonjs/models/models.js.map +1 -0
  161. package/dist/commonjs/package.json +3 -0
  162. package/dist/commonjs/restorePollerHelpers.d.ts +21 -0
  163. package/dist/commonjs/restorePollerHelpers.d.ts.map +1 -0
  164. package/dist/commonjs/restorePollerHelpers.js +98 -0
  165. package/dist/commonjs/restorePollerHelpers.js.map +1 -0
  166. package/dist/commonjs/static-helpers/pagingHelpers.d.ts +72 -0
  167. package/dist/commonjs/static-helpers/pagingHelpers.d.ts.map +1 -0
  168. package/dist/commonjs/static-helpers/pagingHelpers.js +121 -0
  169. package/dist/commonjs/static-helpers/pagingHelpers.js.map +1 -0
  170. package/dist/commonjs/static-helpers/pollingHelpers.d.ts +30 -0
  171. package/dist/commonjs/static-helpers/pollingHelpers.d.ts.map +1 -0
  172. package/dist/commonjs/static-helpers/pollingHelpers.js +82 -0
  173. package/dist/commonjs/static-helpers/pollingHelpers.js.map +1 -0
  174. package/{types → dist/commonjs}/tsdoc-metadata.json +11 -11
  175. package/dist/esm/api/accountQuotas/index.d.ts +13 -0
  176. package/dist/esm/api/accountQuotas/index.d.ts.map +1 -0
  177. package/dist/esm/api/accountQuotas/index.js +39 -0
  178. package/dist/esm/api/accountQuotas/index.js.map +1 -0
  179. package/dist/esm/api/accounts/index.d.ts +34 -0
  180. package/dist/esm/api/accounts/index.d.ts.map +1 -0
  181. package/dist/esm/api/accounts/index.js +141 -0
  182. package/dist/esm/api/accounts/index.js.map +1 -0
  183. package/dist/esm/api/azurePlaywrightServiceContext.d.ts +14 -0
  184. package/dist/esm/api/azurePlaywrightServiceContext.d.ts.map +1 -0
  185. package/dist/esm/api/azurePlaywrightServiceContext.js +38 -0
  186. package/dist/esm/api/azurePlaywrightServiceContext.js.map +1 -0
  187. package/dist/esm/api/index.d.ts +7 -0
  188. package/dist/esm/api/index.d.ts.map +1 -0
  189. package/dist/esm/api/index.js +8 -0
  190. package/dist/esm/api/index.js.map +1 -0
  191. package/dist/esm/api/operations/index.d.ts +9 -0
  192. package/dist/esm/api/operations/index.d.ts.map +1 -0
  193. package/dist/esm/api/operations/index.js +22 -0
  194. package/dist/esm/api/operations/index.js.map +1 -0
  195. package/dist/esm/api/options.d.ts +42 -0
  196. package/dist/esm/api/options.d.ts.map +1 -0
  197. package/dist/esm/api/options.js +4 -0
  198. package/dist/esm/api/options.js.map +1 -0
  199. package/dist/esm/api/quotas/index.d.ts +13 -0
  200. package/dist/esm/api/quotas/index.d.ts.map +1 -0
  201. package/dist/esm/api/quotas/index.js +39 -0
  202. package/dist/esm/api/quotas/index.js.map +1 -0
  203. package/dist/esm/azurePlaywrightServiceClient.d.ts +24 -0
  204. package/dist/esm/azurePlaywrightServiceClient.d.ts.map +1 -0
  205. package/dist/esm/azurePlaywrightServiceClient.js +37 -0
  206. package/dist/esm/azurePlaywrightServiceClient.js.map +1 -0
  207. package/dist/esm/classic/accountQuotas/index.d.ts +17 -0
  208. package/dist/esm/classic/accountQuotas/index.d.ts.map +1 -0
  209. package/dist/esm/classic/accountQuotas/index.js +15 -0
  210. package/dist/esm/classic/accountQuotas/index.js.map +1 -0
  211. package/dist/esm/classic/accounts/index.d.ts +33 -0
  212. package/dist/esm/classic/accounts/index.d.ts.map +1 -0
  213. package/dist/esm/classic/accounts/index.js +20 -0
  214. package/dist/esm/classic/accounts/index.js.map +1 -0
  215. package/dist/esm/classic/index.d.ts +5 -0
  216. package/dist/esm/classic/index.d.ts.map +1 -0
  217. package/dist/esm/classic/index.js +4 -0
  218. package/dist/esm/classic/index.js.map +1 -0
  219. package/dist/esm/classic/operations/index.d.ts +14 -0
  220. package/dist/esm/classic/operations/index.d.ts.map +1 -0
  221. package/dist/esm/classic/operations/index.js +14 -0
  222. package/dist/esm/classic/operations/index.js.map +1 -0
  223. package/dist/esm/classic/quotas/index.d.ts +17 -0
  224. package/dist/esm/classic/quotas/index.d.ts.map +1 -0
  225. package/dist/esm/classic/quotas/index.js +15 -0
  226. package/dist/esm/classic/quotas/index.js.map +1 -0
  227. package/dist/esm/helpers/serializerHelpers.d.ts +3 -0
  228. package/dist/esm/helpers/serializerHelpers.d.ts.map +1 -0
  229. package/dist/esm/helpers/serializerHelpers.js +24 -0
  230. package/dist/esm/helpers/serializerHelpers.js.map +1 -0
  231. package/dist/esm/index.d.ts +8 -0
  232. package/dist/esm/index.d.ts.map +1 -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.d.ts.map +1 -0
  237. package/dist/esm/logger.js +5 -0
  238. package/dist/esm/logger.js.map +1 -0
  239. package/dist/esm/models/index.d.ts +2 -0
  240. package/dist/esm/models/index.d.ts.map +1 -0
  241. package/dist/esm/models/index.js +4 -0
  242. package/dist/esm/models/index.js.map +1 -0
  243. package/dist/esm/models/models.d.ts +399 -0
  244. package/dist/esm/models/models.d.ts.map +1 -0
  245. package/dist/esm/models/models.js +343 -0
  246. package/dist/esm/models/models.js.map +1 -0
  247. package/dist/esm/package.json +3 -0
  248. package/dist/esm/restorePollerHelpers.d.ts +21 -0
  249. package/dist/esm/restorePollerHelpers.d.ts.map +1 -0
  250. package/dist/esm/restorePollerHelpers.js +95 -0
  251. package/dist/esm/restorePollerHelpers.js.map +1 -0
  252. package/dist/esm/static-helpers/pagingHelpers.d.ts +72 -0
  253. package/dist/esm/static-helpers/pagingHelpers.d.ts.map +1 -0
  254. package/dist/esm/static-helpers/pagingHelpers.js +118 -0
  255. package/dist/esm/static-helpers/pagingHelpers.js.map +1 -0
  256. package/dist/esm/static-helpers/pollingHelpers.d.ts +30 -0
  257. package/dist/esm/static-helpers/pollingHelpers.d.ts.map +1 -0
  258. package/dist/esm/static-helpers/pollingHelpers.js +79 -0
  259. package/dist/esm/static-helpers/pollingHelpers.js.map +1 -0
  260. package/dist/react-native/api/accountQuotas/index.d.ts +13 -0
  261. package/dist/react-native/api/accountQuotas/index.d.ts.map +1 -0
  262. package/dist/react-native/api/accountQuotas/index.js +39 -0
  263. package/dist/react-native/api/accountQuotas/index.js.map +1 -0
  264. package/dist/react-native/api/accounts/index.d.ts +34 -0
  265. package/dist/react-native/api/accounts/index.d.ts.map +1 -0
  266. package/dist/react-native/api/accounts/index.js +141 -0
  267. package/dist/react-native/api/accounts/index.js.map +1 -0
  268. package/dist/react-native/api/azurePlaywrightServiceContext.d.ts +14 -0
  269. package/dist/react-native/api/azurePlaywrightServiceContext.d.ts.map +1 -0
  270. package/dist/react-native/api/azurePlaywrightServiceContext.js +38 -0
  271. package/dist/react-native/api/azurePlaywrightServiceContext.js.map +1 -0
  272. package/dist/react-native/api/index.d.ts +7 -0
  273. package/dist/react-native/api/index.d.ts.map +1 -0
  274. package/dist/react-native/api/index.js +8 -0
  275. package/dist/react-native/api/index.js.map +1 -0
  276. package/dist/react-native/api/operations/index.d.ts +9 -0
  277. package/dist/react-native/api/operations/index.d.ts.map +1 -0
  278. package/dist/react-native/api/operations/index.js +22 -0
  279. package/dist/react-native/api/operations/index.js.map +1 -0
  280. package/dist/react-native/api/options.d.ts +42 -0
  281. package/dist/react-native/api/options.d.ts.map +1 -0
  282. package/dist/react-native/api/options.js +4 -0
  283. package/dist/react-native/api/options.js.map +1 -0
  284. package/dist/react-native/api/quotas/index.d.ts +13 -0
  285. package/dist/react-native/api/quotas/index.d.ts.map +1 -0
  286. package/dist/react-native/api/quotas/index.js +39 -0
  287. package/dist/react-native/api/quotas/index.js.map +1 -0
  288. package/dist/react-native/azurePlaywrightServiceClient.d.ts +24 -0
  289. package/dist/react-native/azurePlaywrightServiceClient.d.ts.map +1 -0
  290. package/dist/react-native/azurePlaywrightServiceClient.js +37 -0
  291. package/dist/react-native/azurePlaywrightServiceClient.js.map +1 -0
  292. package/dist/react-native/classic/accountQuotas/index.d.ts +17 -0
  293. package/dist/react-native/classic/accountQuotas/index.d.ts.map +1 -0
  294. package/dist/react-native/classic/accountQuotas/index.js +15 -0
  295. package/dist/react-native/classic/accountQuotas/index.js.map +1 -0
  296. package/dist/react-native/classic/accounts/index.d.ts +33 -0
  297. package/dist/react-native/classic/accounts/index.d.ts.map +1 -0
  298. package/dist/react-native/classic/accounts/index.js +20 -0
  299. package/dist/react-native/classic/accounts/index.js.map +1 -0
  300. package/dist/react-native/classic/index.d.ts +5 -0
  301. package/dist/react-native/classic/index.d.ts.map +1 -0
  302. package/dist/react-native/classic/index.js +4 -0
  303. package/dist/react-native/classic/index.js.map +1 -0
  304. package/dist/react-native/classic/operations/index.d.ts +14 -0
  305. package/dist/react-native/classic/operations/index.d.ts.map +1 -0
  306. package/dist/react-native/classic/operations/index.js +14 -0
  307. package/dist/react-native/classic/operations/index.js.map +1 -0
  308. package/dist/react-native/classic/quotas/index.d.ts +17 -0
  309. package/dist/react-native/classic/quotas/index.d.ts.map +1 -0
  310. package/dist/react-native/classic/quotas/index.js +15 -0
  311. package/dist/react-native/classic/quotas/index.js.map +1 -0
  312. package/dist/react-native/helpers/serializerHelpers.d.ts +3 -0
  313. package/dist/react-native/helpers/serializerHelpers.d.ts.map +1 -0
  314. package/dist/react-native/helpers/serializerHelpers.js +24 -0
  315. package/dist/react-native/helpers/serializerHelpers.js.map +1 -0
  316. package/dist/react-native/index.d.ts +8 -0
  317. package/dist/react-native/index.d.ts.map +1 -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.d.ts.map +1 -0
  322. package/dist/react-native/logger.js +5 -0
  323. package/dist/react-native/logger.js.map +1 -0
  324. package/dist/react-native/models/index.d.ts +2 -0
  325. package/dist/react-native/models/index.d.ts.map +1 -0
  326. package/dist/react-native/models/index.js +4 -0
  327. package/dist/react-native/models/index.js.map +1 -0
  328. package/dist/react-native/models/models.d.ts +399 -0
  329. package/dist/react-native/models/models.d.ts.map +1 -0
  330. package/dist/react-native/models/models.js +343 -0
  331. package/dist/react-native/models/models.js.map +1 -0
  332. package/dist/react-native/package.json +3 -0
  333. package/dist/react-native/restorePollerHelpers.d.ts +21 -0
  334. package/dist/react-native/restorePollerHelpers.d.ts.map +1 -0
  335. package/dist/react-native/restorePollerHelpers.js +95 -0
  336. package/dist/react-native/restorePollerHelpers.js.map +1 -0
  337. package/dist/react-native/static-helpers/pagingHelpers.d.ts +72 -0
  338. package/dist/react-native/static-helpers/pagingHelpers.d.ts.map +1 -0
  339. package/dist/react-native/static-helpers/pagingHelpers.js +118 -0
  340. package/dist/react-native/static-helpers/pagingHelpers.js.map +1 -0
  341. package/dist/react-native/static-helpers/pollingHelpers.d.ts +30 -0
  342. package/dist/react-native/static-helpers/pollingHelpers.d.ts.map +1 -0
  343. package/dist/react-native/static-helpers/pollingHelpers.js +79 -0
  344. package/dist/react-native/static-helpers/pollingHelpers.js.map +1 -0
  345. package/package.json +125 -89
  346. package/review/arm-playwrighttesting-models-node.api.md +230 -0
  347. package/review/arm-playwrighttesting-node.api.md +359 -0
  348. package/dist/index.js +0 -1798
  349. package/dist/index.js.map +0 -1
  350. package/dist/index.min.js +0 -1
  351. package/dist/index.min.js.map +0 -1
  352. package/dist-esm/samples-dev/accountsCreateOrUpdateSample.d.ts +0 -2
  353. package/dist-esm/samples-dev/accountsCreateOrUpdateSample.d.ts.map +0 -1
  354. package/dist-esm/samples-dev/accountsCreateOrUpdateSample.js +0 -44
  355. package/dist-esm/samples-dev/accountsCreateOrUpdateSample.js.map +0 -1
  356. package/dist-esm/samples-dev/accountsDeleteSample.d.ts +0 -2
  357. package/dist-esm/samples-dev/accountsDeleteSample.d.ts.map +0 -1
  358. package/dist-esm/samples-dev/accountsDeleteSample.js +0 -39
  359. package/dist-esm/samples-dev/accountsDeleteSample.js.map +0 -1
  360. package/dist-esm/samples-dev/accountsGetSample.d.ts +0 -2
  361. package/dist-esm/samples-dev/accountsGetSample.d.ts.map +0 -1
  362. package/dist-esm/samples-dev/accountsGetSample.js +0 -39
  363. package/dist-esm/samples-dev/accountsGetSample.js.map +0 -1
  364. package/dist-esm/samples-dev/accountsListByResourceGroupSample.d.ts +0 -2
  365. package/dist-esm/samples-dev/accountsListByResourceGroupSample.d.ts.map +0 -1
  366. package/dist-esm/samples-dev/accountsListByResourceGroupSample.js +0 -54
  367. package/dist-esm/samples-dev/accountsListByResourceGroupSample.js.map +0 -1
  368. package/dist-esm/samples-dev/accountsListBySubscriptionSample.d.ts +0 -2
  369. package/dist-esm/samples-dev/accountsListBySubscriptionSample.d.ts.map +0 -1
  370. package/dist-esm/samples-dev/accountsListBySubscriptionSample.js +0 -53
  371. package/dist-esm/samples-dev/accountsListBySubscriptionSample.js.map +0 -1
  372. package/dist-esm/samples-dev/accountsUpdateSample.d.ts +0 -2
  373. package/dist-esm/samples-dev/accountsUpdateSample.d.ts.map +0 -1
  374. package/dist-esm/samples-dev/accountsUpdateSample.js +0 -43
  375. package/dist-esm/samples-dev/accountsUpdateSample.js.map +0 -1
  376. package/dist-esm/samples-dev/operationsListSample.d.ts +0 -2
  377. package/dist-esm/samples-dev/operationsListSample.d.ts.map +0 -1
  378. package/dist-esm/samples-dev/operationsListSample.js +0 -53
  379. package/dist-esm/samples-dev/operationsListSample.js.map +0 -1
  380. package/dist-esm/samples-dev/quotasGetSample.d.ts +0 -2
  381. package/dist-esm/samples-dev/quotasGetSample.d.ts.map +0 -1
  382. package/dist-esm/samples-dev/quotasGetSample.js +0 -39
  383. package/dist-esm/samples-dev/quotasGetSample.js.map +0 -1
  384. package/dist-esm/samples-dev/quotasListBySubscriptionSample.d.ts +0 -2
  385. package/dist-esm/samples-dev/quotasListBySubscriptionSample.d.ts.map +0 -1
  386. package/dist-esm/samples-dev/quotasListBySubscriptionSample.js +0 -54
  387. package/dist-esm/samples-dev/quotasListBySubscriptionSample.js.map +0 -1
  388. package/dist-esm/src/index.d.ts +0 -6
  389. package/dist-esm/src/index.d.ts.map +0 -1
  390. package/dist-esm/src/index.js +0 -13
  391. package/dist-esm/src/index.js.map +0 -1
  392. package/dist-esm/src/lroImpl.d.ts +0 -11
  393. package/dist-esm/src/lroImpl.d.ts.map +0 -1
  394. package/dist-esm/src/lroImpl.js +0 -21
  395. package/dist-esm/src/lroImpl.js.map +0 -1
  396. package/dist-esm/src/models/index.d.ts +0 -484
  397. package/dist-esm/src/models/index.d.ts.map +0 -1
  398. package/dist-esm/src/models/index.js +0 -72
  399. package/dist-esm/src/models/index.js.map +0 -1
  400. package/dist-esm/src/models/mappers.d.ts +0 -23
  401. package/dist-esm/src/models/mappers.d.ts.map +0 -1
  402. package/dist-esm/src/models/mappers.js +0 -606
  403. package/dist-esm/src/models/mappers.js.map +0 -1
  404. package/dist-esm/src/models/parameters.d.ts +0 -14
  405. package/dist-esm/src/models/parameters.d.ts.map +0 -1
  406. package/dist-esm/src/models/parameters.js +0 -134
  407. package/dist-esm/src/models/parameters.js.map +0 -1
  408. package/dist-esm/src/operations/accounts.d.ts +0 -99
  409. package/dist-esm/src/operations/accounts.d.ts.map +0 -1
  410. package/dist-esm/src/operations/accounts.js +0 -489
  411. package/dist-esm/src/operations/accounts.js.map +0 -1
  412. package/dist-esm/src/operations/index.d.ts +0 -4
  413. package/dist-esm/src/operations/index.d.ts.map +0 -1
  414. package/dist-esm/src/operations/index.js +0 -11
  415. package/dist-esm/src/operations/index.js.map +0 -1
  416. package/dist-esm/src/operations/operations.d.ts +0 -32
  417. package/dist-esm/src/operations/operations.d.ts.map +0 -1
  418. package/dist-esm/src/operations/operations.js +0 -133
  419. package/dist-esm/src/operations/operations.js.map +0 -1
  420. package/dist-esm/src/operations/quotas.d.ts +0 -42
  421. package/dist-esm/src/operations/quotas.d.ts.map +0 -1
  422. package/dist-esm/src/operations/quotas.js +0 -175
  423. package/dist-esm/src/operations/quotas.js.map +0 -1
  424. package/dist-esm/src/operationsInterfaces/accounts.d.ts +0 -63
  425. package/dist-esm/src/operationsInterfaces/accounts.d.ts.map +0 -1
  426. package/dist-esm/src/operationsInterfaces/accounts.js +0 -9
  427. package/dist-esm/src/operationsInterfaces/accounts.js.map +0 -1
  428. package/dist-esm/src/operationsInterfaces/index.d.ts +0 -4
  429. package/dist-esm/src/operationsInterfaces/index.d.ts.map +0 -1
  430. package/dist-esm/src/operationsInterfaces/index.js +0 -11
  431. package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
  432. package/dist-esm/src/operationsInterfaces/operations.d.ts +0 -11
  433. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +0 -1
  434. package/dist-esm/src/operationsInterfaces/operations.js +0 -9
  435. package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
  436. package/dist-esm/src/operationsInterfaces/quotas.d.ts +0 -19
  437. package/dist-esm/src/operationsInterfaces/quotas.d.ts.map +0 -1
  438. package/dist-esm/src/operationsInterfaces/quotas.js +0 -9
  439. package/dist-esm/src/operationsInterfaces/quotas.js.map +0 -1
  440. package/dist-esm/src/pagingHelper.d.ts +0 -13
  441. package/dist-esm/src/pagingHelper.d.ts.map +0 -1
  442. package/dist-esm/src/pagingHelper.js +0 -32
  443. package/dist-esm/src/pagingHelper.js.map +0 -1
  444. package/dist-esm/src/playwrightTestingClient.d.ts +0 -22
  445. package/dist-esm/src/playwrightTestingClient.d.ts.map +0 -1
  446. package/dist-esm/src/playwrightTestingClient.js +0 -102
  447. package/dist-esm/src/playwrightTestingClient.js.map +0 -1
  448. package/dist-esm/test/playwrighttesting_operations_test.spec.d.ts +0 -4
  449. package/dist-esm/test/playwrighttesting_operations_test.spec.d.ts.map +0 -1
  450. package/dist-esm/test/playwrighttesting_operations_test.spec.js +0 -71
  451. package/dist-esm/test/playwrighttesting_operations_test.spec.js.map +0 -1
  452. package/review/arm-playwrighttesting.api.md +0 -371
  453. package/src/index.ts +0 -13
  454. package/src/lroImpl.ts +0 -42
  455. package/src/models/index.ts +0 -549
  456. package/src/models/mappers.ts +0 -640
  457. package/src/models/parameters.ts +0 -154
  458. package/src/operations/accounts.ts +0 -630
  459. package/src/operations/index.ts +0 -11
  460. package/src/operations/operations.ts +0 -149
  461. package/src/operations/quotas.ts +0 -219
  462. package/src/operationsInterfaces/accounts.ts +0 -121
  463. package/src/operationsInterfaces/index.ts +0 -11
  464. package/src/operationsInterfaces/operations.ts +0 -22
  465. package/src/operationsInterfaces/quotas.ts +0 -41
  466. package/src/pagingHelper.ts +0 -39
  467. package/src/playwrightTestingClient.ts +0 -144
  468. package/tsconfig.json +0 -33
  469. package/types/arm-playwrighttesting.d.ts +0 -663
package/dist/index.js DELETED
@@ -1,1798 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var tslib = require('tslib');
6
- var coreClient = require('@azure/core-client');
7
- var coreRestPipeline = require('@azure/core-rest-pipeline');
8
- var coreLro = require('@azure/core-lro');
9
-
10
- function _interopNamespaceDefault(e) {
11
- var n = Object.create(null);
12
- if (e) {
13
- Object.keys(e).forEach(function (k) {
14
- if (k !== 'default') {
15
- var d = Object.getOwnPropertyDescriptor(e, k);
16
- Object.defineProperty(n, k, d.get ? d : {
17
- enumerable: true,
18
- get: function () { return e[k]; }
19
- });
20
- }
21
- });
22
- }
23
- n.default = e;
24
- return Object.freeze(n);
25
- }
26
-
27
- var coreClient__namespace = /*#__PURE__*/_interopNamespaceDefault(coreClient);
28
- var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespaceDefault(coreRestPipeline);
29
-
30
- /*
31
- * Copyright (c) Microsoft Corporation.
32
- * Licensed under the MIT License.
33
- *
34
- * Code generated by Microsoft (R) AutoRest Code Generator.
35
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
36
- */
37
- const pageMap = new WeakMap();
38
- /**
39
- * Given the last `.value` produced by the `byPage` iterator,
40
- * returns a continuation token that can be used to begin paging from
41
- * that point later.
42
- * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
43
- * @returns The continuation token that can be passed into byPage() during future calls.
44
- */
45
- function getContinuationToken(page) {
46
- var _a;
47
- if (typeof page !== "object" || page === null) {
48
- return undefined;
49
- }
50
- return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
51
- }
52
- function setContinuationToken(page, continuationToken) {
53
- var _a;
54
- if (typeof page !== "object" || page === null || !continuationToken) {
55
- return;
56
- }
57
- const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
58
- pageInfo.continuationToken = continuationToken;
59
- pageMap.set(page, pageInfo);
60
- }
61
-
62
- /*
63
- * Copyright (c) Microsoft Corporation.
64
- * Licensed under the MIT License.
65
- *
66
- * Code generated by Microsoft (R) AutoRest Code Generator.
67
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
68
- */
69
- /** Known values of {@link Origin} that the service accepts. */
70
- exports.KnownOrigin = void 0;
71
- (function (KnownOrigin) {
72
- /** User */
73
- KnownOrigin["User"] = "user";
74
- /** System */
75
- KnownOrigin["System"] = "system";
76
- /** UserSystem */
77
- KnownOrigin["UserSystem"] = "user,system";
78
- })(exports.KnownOrigin || (exports.KnownOrigin = {}));
79
- /** Known values of {@link ActionType} that the service accepts. */
80
- exports.KnownActionType = void 0;
81
- (function (KnownActionType) {
82
- /** Internal */
83
- KnownActionType["Internal"] = "Internal";
84
- })(exports.KnownActionType || (exports.KnownActionType = {}));
85
- /** Known values of {@link EnablementStatus} that the service accepts. */
86
- exports.KnownEnablementStatus = void 0;
87
- (function (KnownEnablementStatus) {
88
- /** The feature is Enabled. */
89
- KnownEnablementStatus["Enabled"] = "Enabled";
90
- /** The feature is Disabled. */
91
- KnownEnablementStatus["Disabled"] = "Disabled";
92
- })(exports.KnownEnablementStatus || (exports.KnownEnablementStatus = {}));
93
- /** Known values of {@link ProvisioningState} that the service accepts. */
94
- exports.KnownProvisioningState = void 0;
95
- (function (KnownProvisioningState) {
96
- /** Resource has been created. */
97
- KnownProvisioningState["Succeeded"] = "Succeeded";
98
- /** Resource creation failed. */
99
- KnownProvisioningState["Failed"] = "Failed";
100
- /** Resource creation was canceled. */
101
- KnownProvisioningState["Canceled"] = "Canceled";
102
- /** Deletion in progress */
103
- KnownProvisioningState["Deleting"] = "Deleting";
104
- /** Change accepted for processing */
105
- KnownProvisioningState["Accepted"] = "Accepted";
106
- })(exports.KnownProvisioningState || (exports.KnownProvisioningState = {}));
107
- /** Known values of {@link CreatedByType} that the service accepts. */
108
- exports.KnownCreatedByType = void 0;
109
- (function (KnownCreatedByType) {
110
- /** User */
111
- KnownCreatedByType["User"] = "User";
112
- /** Application */
113
- KnownCreatedByType["Application"] = "Application";
114
- /** ManagedIdentity */
115
- KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
116
- /** Key */
117
- KnownCreatedByType["Key"] = "Key";
118
- })(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
119
- /** Known values of {@link FreeTrialState} that the service accepts. */
120
- exports.KnownFreeTrialState = void 0;
121
- (function (KnownFreeTrialState) {
122
- /** The free-trial is Active. */
123
- KnownFreeTrialState["Active"] = "Active";
124
- /** The free-trial is Expired. */
125
- KnownFreeTrialState["Expired"] = "Expired";
126
- })(exports.KnownFreeTrialState || (exports.KnownFreeTrialState = {}));
127
- /** Known values of {@link QuotaNames} that the service accepts. */
128
- exports.KnownQuotaNames = void 0;
129
- (function (KnownQuotaNames) {
130
- /** The quota details for scalable execution feature. When enabled, Playwright client workers can connect to cloud-hosted browsers. This can increase the number of parallel workers for a test run, significantly minimizing test completion durations. */
131
- KnownQuotaNames["ScalableExecution"] = "ScalableExecution";
132
- })(exports.KnownQuotaNames || (exports.KnownQuotaNames = {}));
133
-
134
- /*
135
- * Copyright (c) Microsoft Corporation.
136
- * Licensed under the MIT License.
137
- *
138
- * Code generated by Microsoft (R) AutoRest Code Generator.
139
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
140
- */
141
- const OperationListResult = {
142
- type: {
143
- name: "Composite",
144
- className: "OperationListResult",
145
- modelProperties: {
146
- value: {
147
- serializedName: "value",
148
- readOnly: true,
149
- type: {
150
- name: "Sequence",
151
- element: {
152
- type: {
153
- name: "Composite",
154
- className: "Operation"
155
- }
156
- }
157
- }
158
- },
159
- nextLink: {
160
- serializedName: "nextLink",
161
- readOnly: true,
162
- type: {
163
- name: "String"
164
- }
165
- }
166
- }
167
- }
168
- };
169
- const Operation = {
170
- type: {
171
- name: "Composite",
172
- className: "Operation",
173
- modelProperties: {
174
- name: {
175
- serializedName: "name",
176
- readOnly: true,
177
- type: {
178
- name: "String"
179
- }
180
- },
181
- isDataAction: {
182
- serializedName: "isDataAction",
183
- readOnly: true,
184
- type: {
185
- name: "Boolean"
186
- }
187
- },
188
- display: {
189
- serializedName: "display",
190
- type: {
191
- name: "Composite",
192
- className: "OperationDisplay"
193
- }
194
- },
195
- origin: {
196
- serializedName: "origin",
197
- readOnly: true,
198
- type: {
199
- name: "String"
200
- }
201
- },
202
- actionType: {
203
- serializedName: "actionType",
204
- readOnly: true,
205
- type: {
206
- name: "String"
207
- }
208
- }
209
- }
210
- }
211
- };
212
- const OperationDisplay = {
213
- type: {
214
- name: "Composite",
215
- className: "OperationDisplay",
216
- modelProperties: {
217
- provider: {
218
- serializedName: "provider",
219
- readOnly: true,
220
- type: {
221
- name: "String"
222
- }
223
- },
224
- resource: {
225
- serializedName: "resource",
226
- readOnly: true,
227
- type: {
228
- name: "String"
229
- }
230
- },
231
- operation: {
232
- serializedName: "operation",
233
- readOnly: true,
234
- type: {
235
- name: "String"
236
- }
237
- },
238
- description: {
239
- serializedName: "description",
240
- readOnly: true,
241
- type: {
242
- name: "String"
243
- }
244
- }
245
- }
246
- }
247
- };
248
- const ErrorResponse = {
249
- type: {
250
- name: "Composite",
251
- className: "ErrorResponse",
252
- modelProperties: {
253
- error: {
254
- serializedName: "error",
255
- type: {
256
- name: "Composite",
257
- className: "ErrorDetail"
258
- }
259
- }
260
- }
261
- }
262
- };
263
- const ErrorDetail = {
264
- type: {
265
- name: "Composite",
266
- className: "ErrorDetail",
267
- modelProperties: {
268
- code: {
269
- serializedName: "code",
270
- readOnly: true,
271
- type: {
272
- name: "String"
273
- }
274
- },
275
- message: {
276
- serializedName: "message",
277
- readOnly: true,
278
- type: {
279
- name: "String"
280
- }
281
- },
282
- target: {
283
- serializedName: "target",
284
- readOnly: true,
285
- type: {
286
- name: "String"
287
- }
288
- },
289
- details: {
290
- serializedName: "details",
291
- readOnly: true,
292
- type: {
293
- name: "Sequence",
294
- element: {
295
- type: {
296
- name: "Composite",
297
- className: "ErrorDetail"
298
- }
299
- }
300
- }
301
- },
302
- additionalInfo: {
303
- serializedName: "additionalInfo",
304
- readOnly: true,
305
- type: {
306
- name: "Sequence",
307
- element: {
308
- type: {
309
- name: "Composite",
310
- className: "ErrorAdditionalInfo"
311
- }
312
- }
313
- }
314
- }
315
- }
316
- }
317
- };
318
- const ErrorAdditionalInfo = {
319
- type: {
320
- name: "Composite",
321
- className: "ErrorAdditionalInfo",
322
- modelProperties: {
323
- type: {
324
- serializedName: "type",
325
- readOnly: true,
326
- type: {
327
- name: "String"
328
- }
329
- },
330
- info: {
331
- serializedName: "info",
332
- readOnly: true,
333
- type: {
334
- name: "Dictionary",
335
- value: { type: { name: "any" } }
336
- }
337
- }
338
- }
339
- }
340
- };
341
- const AccountListResult = {
342
- type: {
343
- name: "Composite",
344
- className: "AccountListResult",
345
- modelProperties: {
346
- value: {
347
- serializedName: "value",
348
- required: true,
349
- type: {
350
- name: "Sequence",
351
- element: {
352
- type: {
353
- name: "Composite",
354
- className: "Account"
355
- }
356
- }
357
- }
358
- },
359
- nextLink: {
360
- serializedName: "nextLink",
361
- type: {
362
- name: "String"
363
- }
364
- }
365
- }
366
- }
367
- };
368
- const AccountProperties = {
369
- type: {
370
- name: "Composite",
371
- className: "AccountProperties",
372
- modelProperties: {
373
- dashboardUri: {
374
- serializedName: "dashboardUri",
375
- readOnly: true,
376
- type: {
377
- name: "String"
378
- }
379
- },
380
- regionalAffinity: {
381
- serializedName: "regionalAffinity",
382
- type: {
383
- name: "String"
384
- }
385
- },
386
- scalableExecution: {
387
- serializedName: "scalableExecution",
388
- type: {
389
- name: "String"
390
- }
391
- },
392
- reporting: {
393
- serializedName: "reporting",
394
- type: {
395
- name: "String"
396
- }
397
- },
398
- provisioningState: {
399
- serializedName: "provisioningState",
400
- readOnly: true,
401
- type: {
402
- name: "String"
403
- }
404
- }
405
- }
406
- }
407
- };
408
- const Resource = {
409
- type: {
410
- name: "Composite",
411
- className: "Resource",
412
- modelProperties: {
413
- id: {
414
- serializedName: "id",
415
- readOnly: true,
416
- type: {
417
- name: "String"
418
- }
419
- },
420
- name: {
421
- serializedName: "name",
422
- readOnly: true,
423
- type: {
424
- name: "String"
425
- }
426
- },
427
- type: {
428
- serializedName: "type",
429
- readOnly: true,
430
- type: {
431
- name: "String"
432
- }
433
- },
434
- systemData: {
435
- serializedName: "systemData",
436
- type: {
437
- name: "Composite",
438
- className: "SystemData"
439
- }
440
- }
441
- }
442
- }
443
- };
444
- const SystemData = {
445
- type: {
446
- name: "Composite",
447
- className: "SystemData",
448
- modelProperties: {
449
- createdBy: {
450
- serializedName: "createdBy",
451
- type: {
452
- name: "String"
453
- }
454
- },
455
- createdByType: {
456
- serializedName: "createdByType",
457
- type: {
458
- name: "String"
459
- }
460
- },
461
- createdAt: {
462
- serializedName: "createdAt",
463
- type: {
464
- name: "DateTime"
465
- }
466
- },
467
- lastModifiedBy: {
468
- serializedName: "lastModifiedBy",
469
- type: {
470
- name: "String"
471
- }
472
- },
473
- lastModifiedByType: {
474
- serializedName: "lastModifiedByType",
475
- type: {
476
- name: "String"
477
- }
478
- },
479
- lastModifiedAt: {
480
- serializedName: "lastModifiedAt",
481
- type: {
482
- name: "DateTime"
483
- }
484
- }
485
- }
486
- }
487
- };
488
- const QuotaListResult = {
489
- type: {
490
- name: "Composite",
491
- className: "QuotaListResult",
492
- modelProperties: {
493
- value: {
494
- serializedName: "value",
495
- required: true,
496
- type: {
497
- name: "Sequence",
498
- element: {
499
- type: {
500
- name: "Composite",
501
- className: "Quota"
502
- }
503
- }
504
- }
505
- },
506
- nextLink: {
507
- serializedName: "nextLink",
508
- type: {
509
- name: "String"
510
- }
511
- }
512
- }
513
- }
514
- };
515
- const QuotaProperties = {
516
- type: {
517
- name: "Composite",
518
- className: "QuotaProperties",
519
- modelProperties: {
520
- freeTrial: {
521
- serializedName: "freeTrial",
522
- type: {
523
- name: "Composite",
524
- className: "FreeTrialProperties"
525
- }
526
- },
527
- provisioningState: {
528
- serializedName: "provisioningState",
529
- readOnly: true,
530
- type: {
531
- name: "String"
532
- }
533
- }
534
- }
535
- }
536
- };
537
- const FreeTrialProperties = {
538
- type: {
539
- name: "Composite",
540
- className: "FreeTrialProperties",
541
- modelProperties: {
542
- accountId: {
543
- serializedName: "accountId",
544
- required: true,
545
- readOnly: true,
546
- type: {
547
- name: "String"
548
- }
549
- },
550
- createdAt: {
551
- serializedName: "createdAt",
552
- required: true,
553
- readOnly: true,
554
- type: {
555
- name: "DateTime"
556
- }
557
- },
558
- expiryAt: {
559
- serializedName: "expiryAt",
560
- required: true,
561
- readOnly: true,
562
- type: {
563
- name: "DateTime"
564
- }
565
- },
566
- allocatedValue: {
567
- serializedName: "allocatedValue",
568
- required: true,
569
- readOnly: true,
570
- type: {
571
- name: "Number"
572
- }
573
- },
574
- usedValue: {
575
- serializedName: "usedValue",
576
- required: true,
577
- readOnly: true,
578
- type: {
579
- name: "Number"
580
- }
581
- },
582
- percentageUsed: {
583
- constraints: {
584
- InclusiveMaximum: 100,
585
- InclusiveMinimum: 0
586
- },
587
- serializedName: "percentageUsed",
588
- required: true,
589
- readOnly: true,
590
- type: {
591
- name: "Number"
592
- }
593
- },
594
- state: {
595
- serializedName: "state",
596
- required: true,
597
- readOnly: true,
598
- type: {
599
- name: "String"
600
- }
601
- }
602
- }
603
- }
604
- };
605
- const AccountUpdate = {
606
- type: {
607
- name: "Composite",
608
- className: "AccountUpdate",
609
- modelProperties: {
610
- tags: {
611
- serializedName: "tags",
612
- type: {
613
- name: "Dictionary",
614
- value: { type: { name: "String" } }
615
- }
616
- },
617
- properties: {
618
- serializedName: "properties",
619
- type: {
620
- name: "Composite",
621
- className: "AccountUpdateProperties"
622
- }
623
- }
624
- }
625
- }
626
- };
627
- const AccountUpdateProperties = {
628
- type: {
629
- name: "Composite",
630
- className: "AccountUpdateProperties",
631
- modelProperties: {
632
- regionalAffinity: {
633
- serializedName: "regionalAffinity",
634
- type: {
635
- name: "String"
636
- }
637
- },
638
- scalableExecution: {
639
- serializedName: "scalableExecution",
640
- type: {
641
- name: "String"
642
- }
643
- },
644
- reporting: {
645
- serializedName: "reporting",
646
- type: {
647
- name: "String"
648
- }
649
- }
650
- }
651
- }
652
- };
653
- const TrackedResource = {
654
- type: {
655
- name: "Composite",
656
- className: "TrackedResource",
657
- modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { tags: {
658
- serializedName: "tags",
659
- type: {
660
- name: "Dictionary",
661
- value: { type: { name: "String" } }
662
- }
663
- }, location: {
664
- serializedName: "location",
665
- required: true,
666
- type: {
667
- name: "String"
668
- }
669
- } })
670
- }
671
- };
672
- const ProxyResource = {
673
- type: {
674
- name: "Composite",
675
- className: "ProxyResource",
676
- modelProperties: Object.assign({}, Resource.type.modelProperties)
677
- }
678
- };
679
- const Account = {
680
- type: {
681
- name: "Composite",
682
- className: "Account",
683
- modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { properties: {
684
- serializedName: "properties",
685
- type: {
686
- name: "Composite",
687
- className: "AccountProperties"
688
- }
689
- } })
690
- }
691
- };
692
- const Quota = {
693
- type: {
694
- name: "Composite",
695
- className: "Quota",
696
- modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { properties: {
697
- serializedName: "properties",
698
- type: {
699
- name: "Composite",
700
- className: "QuotaProperties"
701
- }
702
- } })
703
- }
704
- };
705
- const AccountsCreateOrUpdateHeaders = {
706
- type: {
707
- name: "Composite",
708
- className: "AccountsCreateOrUpdateHeaders",
709
- modelProperties: {
710
- retryAfter: {
711
- serializedName: "retry-after",
712
- type: {
713
- name: "Number"
714
- }
715
- }
716
- }
717
- }
718
- };
719
- const AccountsDeleteHeaders = {
720
- type: {
721
- name: "Composite",
722
- className: "AccountsDeleteHeaders",
723
- modelProperties: {
724
- retryAfter: {
725
- serializedName: "retry-after",
726
- type: {
727
- name: "Number"
728
- }
729
- },
730
- location: {
731
- serializedName: "location",
732
- type: {
733
- name: "String"
734
- }
735
- }
736
- }
737
- }
738
- };
739
-
740
- var Mappers = /*#__PURE__*/Object.freeze({
741
- __proto__: null,
742
- Account: Account,
743
- AccountListResult: AccountListResult,
744
- AccountProperties: AccountProperties,
745
- AccountUpdate: AccountUpdate,
746
- AccountUpdateProperties: AccountUpdateProperties,
747
- AccountsCreateOrUpdateHeaders: AccountsCreateOrUpdateHeaders,
748
- AccountsDeleteHeaders: AccountsDeleteHeaders,
749
- ErrorAdditionalInfo: ErrorAdditionalInfo,
750
- ErrorDetail: ErrorDetail,
751
- ErrorResponse: ErrorResponse,
752
- FreeTrialProperties: FreeTrialProperties,
753
- Operation: Operation,
754
- OperationDisplay: OperationDisplay,
755
- OperationListResult: OperationListResult,
756
- ProxyResource: ProxyResource,
757
- Quota: Quota,
758
- QuotaListResult: QuotaListResult,
759
- QuotaProperties: QuotaProperties,
760
- Resource: Resource,
761
- SystemData: SystemData,
762
- TrackedResource: TrackedResource
763
- });
764
-
765
- /*
766
- * Copyright (c) Microsoft Corporation.
767
- * Licensed under the MIT License.
768
- *
769
- * Code generated by Microsoft (R) AutoRest Code Generator.
770
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
771
- */
772
- const accept = {
773
- parameterPath: "accept",
774
- mapper: {
775
- defaultValue: "application/json",
776
- isConstant: true,
777
- serializedName: "Accept",
778
- type: {
779
- name: "String"
780
- }
781
- }
782
- };
783
- const $host = {
784
- parameterPath: "$host",
785
- mapper: {
786
- serializedName: "$host",
787
- required: true,
788
- type: {
789
- name: "String"
790
- }
791
- },
792
- skipEncoding: true
793
- };
794
- const apiVersion = {
795
- parameterPath: "apiVersion",
796
- mapper: {
797
- defaultValue: "2023-10-01-preview",
798
- isConstant: true,
799
- serializedName: "api-version",
800
- type: {
801
- name: "String"
802
- }
803
- }
804
- };
805
- const nextLink = {
806
- parameterPath: "nextLink",
807
- mapper: {
808
- serializedName: "nextLink",
809
- required: true,
810
- type: {
811
- name: "String"
812
- }
813
- },
814
- skipEncoding: true
815
- };
816
- const subscriptionId = {
817
- parameterPath: "subscriptionId",
818
- mapper: {
819
- constraints: {
820
- MinLength: 1
821
- },
822
- serializedName: "subscriptionId",
823
- required: true,
824
- type: {
825
- name: "String"
826
- }
827
- }
828
- };
829
- const resourceGroupName = {
830
- parameterPath: "resourceGroupName",
831
- mapper: {
832
- constraints: {
833
- MaxLength: 90,
834
- MinLength: 1
835
- },
836
- serializedName: "resourceGroupName",
837
- required: true,
838
- type: {
839
- name: "String"
840
- }
841
- }
842
- };
843
- const name = {
844
- parameterPath: "name",
845
- mapper: {
846
- constraints: {
847
- Pattern: new RegExp("^[a-zA-Z]{1}[a-zA-Z0-9]{2,63}$"),
848
- MaxLength: 64,
849
- MinLength: 3
850
- },
851
- serializedName: "name",
852
- required: true,
853
- type: {
854
- name: "String"
855
- }
856
- }
857
- };
858
- const contentType = {
859
- parameterPath: ["options", "contentType"],
860
- mapper: {
861
- defaultValue: "application/json",
862
- isConstant: true,
863
- serializedName: "Content-Type",
864
- type: {
865
- name: "String"
866
- }
867
- }
868
- };
869
- const resource = {
870
- parameterPath: "resource",
871
- mapper: Account
872
- };
873
- const properties = {
874
- parameterPath: "properties",
875
- mapper: AccountUpdate
876
- };
877
- const location = {
878
- parameterPath: "location",
879
- mapper: {
880
- serializedName: "location",
881
- required: true,
882
- type: {
883
- name: "String"
884
- }
885
- }
886
- };
887
- const name1 = {
888
- parameterPath: "name",
889
- mapper: {
890
- serializedName: "name",
891
- required: true,
892
- type: {
893
- name: "String"
894
- }
895
- }
896
- };
897
-
898
- /*
899
- * Copyright (c) Microsoft Corporation.
900
- * Licensed under the MIT License.
901
- *
902
- * Code generated by Microsoft (R) AutoRest Code Generator.
903
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
904
- */
905
- /// <reference lib="esnext.asynciterable" />
906
- /** Class containing Operations operations. */
907
- class OperationsImpl {
908
- /**
909
- * Initialize a new instance of the class Operations class.
910
- * @param client Reference to the service client
911
- */
912
- constructor(client) {
913
- this.client = client;
914
- }
915
- /**
916
- * List the operations for the provider
917
- * @param options The options parameters.
918
- */
919
- list(options) {
920
- const iter = this.listPagingAll(options);
921
- return {
922
- next() {
923
- return iter.next();
924
- },
925
- [Symbol.asyncIterator]() {
926
- return this;
927
- },
928
- byPage: (settings) => {
929
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
930
- throw new Error("maxPageSize is not supported by this operation.");
931
- }
932
- return this.listPagingPage(options, settings);
933
- }
934
- };
935
- }
936
- listPagingPage(options, settings) {
937
- return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
938
- let result;
939
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
940
- if (!continuationToken) {
941
- result = yield tslib.__await(this._list(options));
942
- let page = result.value || [];
943
- continuationToken = result.nextLink;
944
- setContinuationToken(page, continuationToken);
945
- yield yield tslib.__await(page);
946
- }
947
- while (continuationToken) {
948
- result = yield tslib.__await(this._listNext(continuationToken, options));
949
- continuationToken = result.nextLink;
950
- let page = result.value || [];
951
- setContinuationToken(page, continuationToken);
952
- yield yield tslib.__await(page);
953
- }
954
- });
955
- }
956
- listPagingAll(options) {
957
- return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
958
- var _a, e_1, _b, _c;
959
- try {
960
- for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
961
- _c = _f.value;
962
- _d = false;
963
- const page = _c;
964
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
965
- }
966
- }
967
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
968
- finally {
969
- try {
970
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
971
- }
972
- finally { if (e_1) throw e_1.error; }
973
- }
974
- });
975
- }
976
- /**
977
- * List the operations for the provider
978
- * @param options The options parameters.
979
- */
980
- _list(options) {
981
- return this.client.sendOperationRequest({ options }, listOperationSpec);
982
- }
983
- /**
984
- * ListNext
985
- * @param nextLink The nextLink from the previous successful call to the List method.
986
- * @param options The options parameters.
987
- */
988
- _listNext(nextLink, options) {
989
- return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
990
- }
991
- }
992
- // Operation Specifications
993
- const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
994
- const listOperationSpec = {
995
- path: "/providers/Microsoft.AzurePlaywrightService/operations",
996
- httpMethod: "GET",
997
- responses: {
998
- 200: {
999
- bodyMapper: OperationListResult
1000
- },
1001
- default: {
1002
- bodyMapper: ErrorResponse
1003
- }
1004
- },
1005
- queryParameters: [apiVersion],
1006
- urlParameters: [$host],
1007
- headerParameters: [accept],
1008
- serializer: serializer$2
1009
- };
1010
- const listNextOperationSpec = {
1011
- path: "{nextLink}",
1012
- httpMethod: "GET",
1013
- responses: {
1014
- 200: {
1015
- bodyMapper: OperationListResult
1016
- },
1017
- default: {
1018
- bodyMapper: ErrorResponse
1019
- }
1020
- },
1021
- urlParameters: [$host, nextLink],
1022
- headerParameters: [accept],
1023
- serializer: serializer$2
1024
- };
1025
-
1026
- /*
1027
- * Copyright (c) Microsoft Corporation.
1028
- * Licensed under the MIT License.
1029
- *
1030
- * Code generated by Microsoft (R) AutoRest Code Generator.
1031
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1032
- */
1033
- function createLroSpec(inputs) {
1034
- const { args, spec, sendOperationFn } = inputs;
1035
- return {
1036
- requestMethod: spec.httpMethod,
1037
- requestPath: spec.path,
1038
- sendInitialRequest: () => sendOperationFn(args, spec),
1039
- sendPollRequest: (path, options) => {
1040
- const restSpec = tslib.__rest(spec, ["requestBody"]);
1041
- return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
1042
- }
1043
- };
1044
- }
1045
-
1046
- /*
1047
- * Copyright (c) Microsoft Corporation.
1048
- * Licensed under the MIT License.
1049
- *
1050
- * Code generated by Microsoft (R) AutoRest Code Generator.
1051
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1052
- */
1053
- /// <reference lib="esnext.asynciterable" />
1054
- /** Class containing Accounts operations. */
1055
- class AccountsImpl {
1056
- /**
1057
- * Initialize a new instance of the class Accounts class.
1058
- * @param client Reference to the service client
1059
- */
1060
- constructor(client) {
1061
- this.client = client;
1062
- }
1063
- /**
1064
- * List Account resources by subscription ID
1065
- * @param options The options parameters.
1066
- */
1067
- listBySubscription(options) {
1068
- const iter = this.listBySubscriptionPagingAll(options);
1069
- return {
1070
- next() {
1071
- return iter.next();
1072
- },
1073
- [Symbol.asyncIterator]() {
1074
- return this;
1075
- },
1076
- byPage: (settings) => {
1077
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
1078
- throw new Error("maxPageSize is not supported by this operation.");
1079
- }
1080
- return this.listBySubscriptionPagingPage(options, settings);
1081
- }
1082
- };
1083
- }
1084
- listBySubscriptionPagingPage(options, settings) {
1085
- return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
1086
- let result;
1087
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
1088
- if (!continuationToken) {
1089
- result = yield tslib.__await(this._listBySubscription(options));
1090
- let page = result.value || [];
1091
- continuationToken = result.nextLink;
1092
- setContinuationToken(page, continuationToken);
1093
- yield yield tslib.__await(page);
1094
- }
1095
- while (continuationToken) {
1096
- result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
1097
- continuationToken = result.nextLink;
1098
- let page = result.value || [];
1099
- setContinuationToken(page, continuationToken);
1100
- yield yield tslib.__await(page);
1101
- }
1102
- });
1103
- }
1104
- listBySubscriptionPagingAll(options) {
1105
- return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
1106
- var _a, e_1, _b, _c;
1107
- try {
1108
- for (var _d = true, _e = tslib.__asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
1109
- _c = _f.value;
1110
- _d = false;
1111
- const page = _c;
1112
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1113
- }
1114
- }
1115
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
1116
- finally {
1117
- try {
1118
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
1119
- }
1120
- finally { if (e_1) throw e_1.error; }
1121
- }
1122
- });
1123
- }
1124
- /**
1125
- * List Account resources by resource group
1126
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1127
- * @param options The options parameters.
1128
- */
1129
- listByResourceGroup(resourceGroupName, options) {
1130
- const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
1131
- return {
1132
- next() {
1133
- return iter.next();
1134
- },
1135
- [Symbol.asyncIterator]() {
1136
- return this;
1137
- },
1138
- byPage: (settings) => {
1139
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
1140
- throw new Error("maxPageSize is not supported by this operation.");
1141
- }
1142
- return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
1143
- }
1144
- };
1145
- }
1146
- listByResourceGroupPagingPage(resourceGroupName, options, settings) {
1147
- return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
1148
- let result;
1149
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
1150
- if (!continuationToken) {
1151
- result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
1152
- let page = result.value || [];
1153
- continuationToken = result.nextLink;
1154
- setContinuationToken(page, continuationToken);
1155
- yield yield tslib.__await(page);
1156
- }
1157
- while (continuationToken) {
1158
- result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
1159
- continuationToken = result.nextLink;
1160
- let page = result.value || [];
1161
- setContinuationToken(page, continuationToken);
1162
- yield yield tslib.__await(page);
1163
- }
1164
- });
1165
- }
1166
- listByResourceGroupPagingAll(resourceGroupName, options) {
1167
- return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
1168
- var _a, e_2, _b, _c;
1169
- try {
1170
- for (var _d = true, _e = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
1171
- _c = _f.value;
1172
- _d = false;
1173
- const page = _c;
1174
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1175
- }
1176
- }
1177
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
1178
- finally {
1179
- try {
1180
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
1181
- }
1182
- finally { if (e_2) throw e_2.error; }
1183
- }
1184
- });
1185
- }
1186
- /**
1187
- * List Account resources by subscription ID
1188
- * @param options The options parameters.
1189
- */
1190
- _listBySubscription(options) {
1191
- return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec$1);
1192
- }
1193
- /**
1194
- * List Account resources by resource group
1195
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1196
- * @param options The options parameters.
1197
- */
1198
- _listByResourceGroup(resourceGroupName, options) {
1199
- return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
1200
- }
1201
- /**
1202
- * Get a Account
1203
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1204
- * @param name Name of account
1205
- * @param options The options parameters.
1206
- */
1207
- get(resourceGroupName, name, options) {
1208
- return this.client.sendOperationRequest({ resourceGroupName, name, options }, getOperationSpec$1);
1209
- }
1210
- /**
1211
- * Create a Account
1212
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1213
- * @param name Name of account
1214
- * @param resource Resource create parameters.
1215
- * @param options The options parameters.
1216
- */
1217
- beginCreateOrUpdate(resourceGroupName, name, resource, options) {
1218
- return tslib.__awaiter(this, void 0, void 0, function* () {
1219
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1220
- return this.client.sendOperationRequest(args, spec);
1221
- });
1222
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1223
- var _a;
1224
- let currentRawResponse = undefined;
1225
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1226
- const callback = (rawResponse, flatResponse) => {
1227
- currentRawResponse = rawResponse;
1228
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1229
- };
1230
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1231
- const flatResponse = yield directSendOperation(updatedArgs, spec);
1232
- return {
1233
- flatResponse,
1234
- rawResponse: {
1235
- statusCode: currentRawResponse.status,
1236
- body: currentRawResponse.parsedBody,
1237
- headers: currentRawResponse.headers.toJSON()
1238
- }
1239
- };
1240
- });
1241
- const lro = createLroSpec({
1242
- sendOperationFn,
1243
- args: { resourceGroupName, name, resource, options },
1244
- spec: createOrUpdateOperationSpec
1245
- });
1246
- const poller = yield coreLro.createHttpPoller(lro, {
1247
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1248
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
1249
- resourceLocationConfig: "azure-async-operation"
1250
- });
1251
- yield poller.poll();
1252
- return poller;
1253
- });
1254
- }
1255
- /**
1256
- * Create a Account
1257
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1258
- * @param name Name of account
1259
- * @param resource Resource create parameters.
1260
- * @param options The options parameters.
1261
- */
1262
- beginCreateOrUpdateAndWait(resourceGroupName, name, resource, options) {
1263
- return tslib.__awaiter(this, void 0, void 0, function* () {
1264
- const poller = yield this.beginCreateOrUpdate(resourceGroupName, name, resource, options);
1265
- return poller.pollUntilDone();
1266
- });
1267
- }
1268
- /**
1269
- * Update a Account
1270
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1271
- * @param name Name of account
1272
- * @param properties The resource properties to be updated.
1273
- * @param options The options parameters.
1274
- */
1275
- update(resourceGroupName, name, properties, options) {
1276
- return this.client.sendOperationRequest({ resourceGroupName, name, properties, options }, updateOperationSpec);
1277
- }
1278
- /**
1279
- * Delete a Account
1280
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1281
- * @param name Name of account
1282
- * @param options The options parameters.
1283
- */
1284
- beginDelete(resourceGroupName, name, options) {
1285
- return tslib.__awaiter(this, void 0, void 0, function* () {
1286
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1287
- return this.client.sendOperationRequest(args, spec);
1288
- });
1289
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1290
- var _a;
1291
- let currentRawResponse = undefined;
1292
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1293
- const callback = (rawResponse, flatResponse) => {
1294
- currentRawResponse = rawResponse;
1295
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1296
- };
1297
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1298
- const flatResponse = yield directSendOperation(updatedArgs, spec);
1299
- return {
1300
- flatResponse,
1301
- rawResponse: {
1302
- statusCode: currentRawResponse.status,
1303
- body: currentRawResponse.parsedBody,
1304
- headers: currentRawResponse.headers.toJSON()
1305
- }
1306
- };
1307
- });
1308
- const lro = createLroSpec({
1309
- sendOperationFn,
1310
- args: { resourceGroupName, name, options },
1311
- spec: deleteOperationSpec
1312
- });
1313
- const poller = yield coreLro.createHttpPoller(lro, {
1314
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1315
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
1316
- resourceLocationConfig: "location"
1317
- });
1318
- yield poller.poll();
1319
- return poller;
1320
- });
1321
- }
1322
- /**
1323
- * Delete a Account
1324
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1325
- * @param name Name of account
1326
- * @param options The options parameters.
1327
- */
1328
- beginDeleteAndWait(resourceGroupName, name, options) {
1329
- return tslib.__awaiter(this, void 0, void 0, function* () {
1330
- const poller = yield this.beginDelete(resourceGroupName, name, options);
1331
- return poller.pollUntilDone();
1332
- });
1333
- }
1334
- /**
1335
- * ListBySubscriptionNext
1336
- * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
1337
- * @param options The options parameters.
1338
- */
1339
- _listBySubscriptionNext(nextLink, options) {
1340
- return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec$1);
1341
- }
1342
- /**
1343
- * ListByResourceGroupNext
1344
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1345
- * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
1346
- * @param options The options parameters.
1347
- */
1348
- _listByResourceGroupNext(resourceGroupName, nextLink, options) {
1349
- return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
1350
- }
1351
- }
1352
- // Operation Specifications
1353
- const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
1354
- const listBySubscriptionOperationSpec$1 = {
1355
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.AzurePlaywrightService/accounts",
1356
- httpMethod: "GET",
1357
- responses: {
1358
- 200: {
1359
- bodyMapper: AccountListResult
1360
- },
1361
- default: {
1362
- bodyMapper: ErrorResponse
1363
- }
1364
- },
1365
- queryParameters: [apiVersion],
1366
- urlParameters: [$host, subscriptionId],
1367
- headerParameters: [accept],
1368
- serializer: serializer$1
1369
- };
1370
- const listByResourceGroupOperationSpec = {
1371
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzurePlaywrightService/accounts",
1372
- httpMethod: "GET",
1373
- responses: {
1374
- 200: {
1375
- bodyMapper: AccountListResult
1376
- },
1377
- default: {
1378
- bodyMapper: ErrorResponse
1379
- }
1380
- },
1381
- queryParameters: [apiVersion],
1382
- urlParameters: [
1383
- $host,
1384
- subscriptionId,
1385
- resourceGroupName
1386
- ],
1387
- headerParameters: [accept],
1388
- serializer: serializer$1
1389
- };
1390
- const getOperationSpec$1 = {
1391
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzurePlaywrightService/accounts/{name}",
1392
- httpMethod: "GET",
1393
- responses: {
1394
- 200: {
1395
- bodyMapper: Account
1396
- },
1397
- default: {
1398
- bodyMapper: ErrorResponse
1399
- }
1400
- },
1401
- queryParameters: [apiVersion],
1402
- urlParameters: [
1403
- $host,
1404
- subscriptionId,
1405
- resourceGroupName,
1406
- name
1407
- ],
1408
- headerParameters: [accept],
1409
- serializer: serializer$1
1410
- };
1411
- const createOrUpdateOperationSpec = {
1412
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzurePlaywrightService/accounts/{name}",
1413
- httpMethod: "PUT",
1414
- responses: {
1415
- 200: {
1416
- bodyMapper: Account
1417
- },
1418
- 201: {
1419
- bodyMapper: Account
1420
- },
1421
- 202: {
1422
- bodyMapper: Account
1423
- },
1424
- 204: {
1425
- bodyMapper: Account
1426
- },
1427
- default: {
1428
- bodyMapper: ErrorResponse
1429
- }
1430
- },
1431
- requestBody: resource,
1432
- queryParameters: [apiVersion],
1433
- urlParameters: [
1434
- $host,
1435
- subscriptionId,
1436
- resourceGroupName,
1437
- name
1438
- ],
1439
- headerParameters: [accept, contentType],
1440
- mediaType: "json",
1441
- serializer: serializer$1
1442
- };
1443
- const updateOperationSpec = {
1444
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzurePlaywrightService/accounts/{name}",
1445
- httpMethod: "PATCH",
1446
- responses: {
1447
- 200: {
1448
- bodyMapper: Account
1449
- },
1450
- default: {
1451
- bodyMapper: ErrorResponse
1452
- }
1453
- },
1454
- requestBody: properties,
1455
- queryParameters: [apiVersion],
1456
- urlParameters: [
1457
- $host,
1458
- subscriptionId,
1459
- resourceGroupName,
1460
- name
1461
- ],
1462
- headerParameters: [accept, contentType],
1463
- mediaType: "json",
1464
- serializer: serializer$1
1465
- };
1466
- const deleteOperationSpec = {
1467
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzurePlaywrightService/accounts/{name}",
1468
- httpMethod: "DELETE",
1469
- responses: {
1470
- 200: {},
1471
- 201: {},
1472
- 202: {},
1473
- 204: {},
1474
- default: {
1475
- bodyMapper: ErrorResponse
1476
- }
1477
- },
1478
- queryParameters: [apiVersion],
1479
- urlParameters: [
1480
- $host,
1481
- subscriptionId,
1482
- resourceGroupName,
1483
- name
1484
- ],
1485
- headerParameters: [accept],
1486
- serializer: serializer$1
1487
- };
1488
- const listBySubscriptionNextOperationSpec$1 = {
1489
- path: "{nextLink}",
1490
- httpMethod: "GET",
1491
- responses: {
1492
- 200: {
1493
- bodyMapper: AccountListResult
1494
- },
1495
- default: {
1496
- bodyMapper: ErrorResponse
1497
- }
1498
- },
1499
- urlParameters: [
1500
- $host,
1501
- nextLink,
1502
- subscriptionId
1503
- ],
1504
- headerParameters: [accept],
1505
- serializer: serializer$1
1506
- };
1507
- const listByResourceGroupNextOperationSpec = {
1508
- path: "{nextLink}",
1509
- httpMethod: "GET",
1510
- responses: {
1511
- 200: {
1512
- bodyMapper: AccountListResult
1513
- },
1514
- default: {
1515
- bodyMapper: ErrorResponse
1516
- }
1517
- },
1518
- urlParameters: [
1519
- $host,
1520
- nextLink,
1521
- subscriptionId,
1522
- resourceGroupName
1523
- ],
1524
- headerParameters: [accept],
1525
- serializer: serializer$1
1526
- };
1527
-
1528
- /*
1529
- * Copyright (c) Microsoft Corporation.
1530
- * Licensed under the MIT License.
1531
- *
1532
- * Code generated by Microsoft (R) AutoRest Code Generator.
1533
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1534
- */
1535
- /// <reference lib="esnext.asynciterable" />
1536
- /** Class containing Quotas operations. */
1537
- class QuotasImpl {
1538
- /**
1539
- * Initialize a new instance of the class Quotas class.
1540
- * @param client Reference to the service client
1541
- */
1542
- constructor(client) {
1543
- this.client = client;
1544
- }
1545
- /**
1546
- * List quotas for a given subscription Id.
1547
- * @param location The location of quota in ARM Normalized format like eastus, southeastasia etc.
1548
- * @param options The options parameters.
1549
- */
1550
- listBySubscription(location, options) {
1551
- const iter = this.listBySubscriptionPagingAll(location, options);
1552
- return {
1553
- next() {
1554
- return iter.next();
1555
- },
1556
- [Symbol.asyncIterator]() {
1557
- return this;
1558
- },
1559
- byPage: (settings) => {
1560
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
1561
- throw new Error("maxPageSize is not supported by this operation.");
1562
- }
1563
- return this.listBySubscriptionPagingPage(location, options, settings);
1564
- }
1565
- };
1566
- }
1567
- listBySubscriptionPagingPage(location, options, settings) {
1568
- return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
1569
- let result;
1570
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
1571
- if (!continuationToken) {
1572
- result = yield tslib.__await(this._listBySubscription(location, options));
1573
- let page = result.value || [];
1574
- continuationToken = result.nextLink;
1575
- setContinuationToken(page, continuationToken);
1576
- yield yield tslib.__await(page);
1577
- }
1578
- while (continuationToken) {
1579
- result = yield tslib.__await(this._listBySubscriptionNext(location, continuationToken, options));
1580
- continuationToken = result.nextLink;
1581
- let page = result.value || [];
1582
- setContinuationToken(page, continuationToken);
1583
- yield yield tslib.__await(page);
1584
- }
1585
- });
1586
- }
1587
- listBySubscriptionPagingAll(location, options) {
1588
- return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
1589
- var _a, e_1, _b, _c;
1590
- try {
1591
- for (var _d = true, _e = tslib.__asyncValues(this.listBySubscriptionPagingPage(location, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
1592
- _c = _f.value;
1593
- _d = false;
1594
- const page = _c;
1595
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1596
- }
1597
- }
1598
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
1599
- finally {
1600
- try {
1601
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
1602
- }
1603
- finally { if (e_1) throw e_1.error; }
1604
- }
1605
- });
1606
- }
1607
- /**
1608
- * List quotas for a given subscription Id.
1609
- * @param location The location of quota in ARM Normalized format like eastus, southeastasia etc.
1610
- * @param options The options parameters.
1611
- */
1612
- _listBySubscription(location, options) {
1613
- return this.client.sendOperationRequest({ location, options }, listBySubscriptionOperationSpec);
1614
- }
1615
- /**
1616
- * Get quota by name.
1617
- * @param location The location of quota in ARM Normalized format like eastus, southeastasia etc.
1618
- * @param name The quota name.
1619
- * @param options The options parameters.
1620
- */
1621
- get(location, name, options) {
1622
- return this.client.sendOperationRequest({ location, name, options }, getOperationSpec);
1623
- }
1624
- /**
1625
- * ListBySubscriptionNext
1626
- * @param location The location of quota in ARM Normalized format like eastus, southeastasia etc.
1627
- * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
1628
- * @param options The options parameters.
1629
- */
1630
- _listBySubscriptionNext(location, nextLink, options) {
1631
- return this.client.sendOperationRequest({ location, nextLink, options }, listBySubscriptionNextOperationSpec);
1632
- }
1633
- }
1634
- // Operation Specifications
1635
- const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
1636
- const listBySubscriptionOperationSpec = {
1637
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.AzurePlaywrightService/locations/{location}/quotas",
1638
- httpMethod: "GET",
1639
- responses: {
1640
- 200: {
1641
- bodyMapper: QuotaListResult
1642
- },
1643
- default: {
1644
- bodyMapper: ErrorResponse
1645
- }
1646
- },
1647
- queryParameters: [apiVersion],
1648
- urlParameters: [
1649
- $host,
1650
- subscriptionId,
1651
- location
1652
- ],
1653
- headerParameters: [accept],
1654
- serializer
1655
- };
1656
- const getOperationSpec = {
1657
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.AzurePlaywrightService/locations/{location}/quotas/{name}",
1658
- httpMethod: "GET",
1659
- responses: {
1660
- 200: {
1661
- bodyMapper: Quota
1662
- },
1663
- default: {
1664
- bodyMapper: ErrorResponse
1665
- }
1666
- },
1667
- queryParameters: [apiVersion],
1668
- urlParameters: [
1669
- $host,
1670
- subscriptionId,
1671
- location,
1672
- name1
1673
- ],
1674
- headerParameters: [accept],
1675
- serializer
1676
- };
1677
- const listBySubscriptionNextOperationSpec = {
1678
- path: "{nextLink}",
1679
- httpMethod: "GET",
1680
- responses: {
1681
- 200: {
1682
- bodyMapper: QuotaListResult
1683
- },
1684
- default: {
1685
- bodyMapper: ErrorResponse
1686
- }
1687
- },
1688
- urlParameters: [
1689
- $host,
1690
- nextLink,
1691
- subscriptionId,
1692
- location
1693
- ],
1694
- headerParameters: [accept],
1695
- serializer
1696
- };
1697
-
1698
- /*
1699
- * Copyright (c) Microsoft Corporation.
1700
- * Licensed under the MIT License.
1701
- *
1702
- * Code generated by Microsoft (R) AutoRest Code Generator.
1703
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1704
- */
1705
- class PlaywrightTestingClient extends coreClient__namespace.ServiceClient {
1706
- /**
1707
- * Initializes a new instance of the PlaywrightTestingClient class.
1708
- * @param credentials Subscription credentials which uniquely identify client subscription.
1709
- * @param subscriptionId The ID of the target subscription.
1710
- * @param options The parameter options
1711
- */
1712
- constructor(credentials, subscriptionId, options) {
1713
- var _a, _b, _c;
1714
- if (credentials === undefined) {
1715
- throw new Error("'credentials' cannot be null");
1716
- }
1717
- if (subscriptionId === undefined) {
1718
- throw new Error("'subscriptionId' cannot be null");
1719
- }
1720
- // Initializing default values for options
1721
- if (!options) {
1722
- options = {};
1723
- }
1724
- const defaults = {
1725
- requestContentType: "application/json; charset=utf-8",
1726
- credential: credentials
1727
- };
1728
- const packageDetails = `azsdk-js-arm-playwrighttesting/1.0.0-beta.2`;
1729
- const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
1730
- ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
1731
- : `${packageDetails}`;
1732
- const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
1733
- userAgentPrefix
1734
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
1735
- super(optionsWithDefaults);
1736
- let bearerTokenAuthenticationPolicyFound = false;
1737
- if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
1738
- const pipelinePolicies = options.pipeline.getOrderedPolicies();
1739
- bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
1740
- coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
1741
- }
1742
- if (!options ||
1743
- !options.pipeline ||
1744
- options.pipeline.getOrderedPolicies().length == 0 ||
1745
- !bearerTokenAuthenticationPolicyFound) {
1746
- this.pipeline.removePolicy({
1747
- name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
1748
- });
1749
- this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
1750
- credential: credentials,
1751
- scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
1752
- challengeCallbacks: {
1753
- authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
1754
- }
1755
- }));
1756
- }
1757
- // Parameter assignments
1758
- this.subscriptionId = subscriptionId;
1759
- // Assigning values to Constant parameters
1760
- this.$host = options.$host || "https://management.azure.com";
1761
- this.apiVersion = options.apiVersion || "2023-10-01-preview";
1762
- this.operations = new OperationsImpl(this);
1763
- this.accounts = new AccountsImpl(this);
1764
- this.quotas = new QuotasImpl(this);
1765
- this.addCustomApiVersionPolicy(options.apiVersion);
1766
- }
1767
- /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
1768
- addCustomApiVersionPolicy(apiVersion) {
1769
- if (!apiVersion) {
1770
- return;
1771
- }
1772
- const apiVersionPolicy = {
1773
- name: "CustomApiVersionPolicy",
1774
- sendRequest(request, next) {
1775
- return tslib.__awaiter(this, void 0, void 0, function* () {
1776
- const param = request.url.split("?");
1777
- if (param.length > 1) {
1778
- const newParams = param[1].split("&").map((item) => {
1779
- if (item.indexOf("api-version") > -1) {
1780
- return "api-version=" + apiVersion;
1781
- }
1782
- else {
1783
- return item;
1784
- }
1785
- });
1786
- request.url = param[0] + "?" + newParams.join("&");
1787
- }
1788
- return next(request);
1789
- });
1790
- }
1791
- };
1792
- this.pipeline.addPolicy(apiVersionPolicy);
1793
- }
1794
- }
1795
-
1796
- exports.PlaywrightTestingClient = PlaywrightTestingClient;
1797
- exports.getContinuationToken = getContinuationToken;
1798
- //# sourceMappingURL=index.js.map