@azure/arm-onlineexperimentation 1.0.0-alpha.20250505.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 (334) 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.d.ts.map +1 -0
  6. package/dist/browser/api/index.js +4 -0
  7. package/dist/browser/api/index.js.map +1 -0
  8. package/dist/browser/api/onlineExperimentWorkspaces/index.d.ts +3 -0
  9. package/dist/browser/api/onlineExperimentWorkspaces/index.d.ts.map +1 -0
  10. package/dist/browser/api/onlineExperimentWorkspaces/index.js +4 -0
  11. package/dist/browser/api/onlineExperimentWorkspaces/index.js.map +1 -0
  12. package/dist/browser/api/onlineExperimentWorkspaces/operations.d.ts +36 -0
  13. package/dist/browser/api/onlineExperimentWorkspaces/operations.d.ts.map +1 -0
  14. package/dist/browser/api/onlineExperimentWorkspaces/operations.js +196 -0
  15. package/dist/browser/api/onlineExperimentWorkspaces/operations.js.map +1 -0
  16. package/dist/browser/api/onlineExperimentWorkspaces/options.d.ts +26 -0
  17. package/dist/browser/api/onlineExperimentWorkspaces/options.d.ts.map +1 -0
  18. package/dist/browser/api/onlineExperimentWorkspaces/options.js +4 -0
  19. package/dist/browser/api/onlineExperimentWorkspaces/options.js.map +1 -0
  20. package/dist/browser/api/onlineExperimentationContext.d.ts +19 -0
  21. package/dist/browser/api/onlineExperimentationContext.d.ts.map +1 -0
  22. package/dist/browser/api/onlineExperimentationContext.js +36 -0
  23. package/dist/browser/api/onlineExperimentationContext.js.map +1 -0
  24. package/dist/browser/api/operations/index.d.ts +3 -0
  25. package/dist/browser/api/operations/index.d.ts.map +1 -0
  26. package/dist/browser/api/operations/index.js +4 -0
  27. package/dist/browser/api/operations/index.js.map +1 -0
  28. package/dist/browser/api/operations/operations.d.ts +10 -0
  29. package/dist/browser/api/operations/operations.d.ts.map +1 -0
  30. package/dist/browser/api/operations/operations.js +29 -0
  31. package/dist/browser/api/operations/operations.js.map +1 -0
  32. package/dist/browser/api/operations/options.d.ts +5 -0
  33. package/dist/browser/api/operations/options.d.ts.map +1 -0
  34. package/dist/browser/api/operations/options.js +4 -0
  35. package/dist/browser/api/operations/options.js.map +1 -0
  36. package/dist/browser/classic/index.d.ts +3 -0
  37. package/dist/browser/classic/index.d.ts.map +1 -0
  38. package/dist/browser/classic/index.js +4 -0
  39. package/dist/browser/classic/index.js.map +1 -0
  40. package/dist/browser/classic/onlineExperimentWorkspaces/index.d.ts +27 -0
  41. package/dist/browser/classic/onlineExperimentWorkspaces/index.d.ts.map +1 -0
  42. package/dist/browser/classic/onlineExperimentWorkspaces/index.js +17 -0
  43. package/dist/browser/classic/onlineExperimentWorkspaces/index.js.map +1 -0
  44. package/dist/browser/classic/operations/index.d.ts +11 -0
  45. package/dist/browser/classic/operations/index.d.ts.map +1 -0
  46. package/dist/browser/classic/operations/index.js +12 -0
  47. package/dist/browser/classic/operations/index.js.map +1 -0
  48. package/dist/browser/index.d.ts +10 -0
  49. package/dist/browser/index.d.ts.map +1 -0
  50. package/dist/browser/index.js +6 -0
  51. package/dist/browser/index.js.map +1 -0
  52. package/dist/browser/logger.d.ts +2 -0
  53. package/dist/browser/logger.d.ts.map +1 -0
  54. package/dist/browser/logger.js +5 -0
  55. package/dist/browser/logger.js.map +1 -0
  56. package/dist/browser/models/index.d.ts +2 -0
  57. package/dist/browser/models/index.d.ts.map +1 -0
  58. package/dist/browser/models/index.js +4 -0
  59. package/dist/browser/models/index.js.map +1 -0
  60. package/dist/browser/models/models.d.ts +366 -0
  61. package/dist/browser/models/models.d.ts.map +1 -0
  62. package/dist/browser/models/models.js +341 -0
  63. package/dist/browser/models/models.js.map +1 -0
  64. package/dist/browser/onlineExperimentationClient.d.ts +18 -0
  65. package/dist/browser/onlineExperimentationClient.d.ts.map +1 -0
  66. package/dist/browser/onlineExperimentationClient.js +20 -0
  67. package/dist/browser/onlineExperimentationClient.js.map +1 -0
  68. package/dist/browser/package.json +3 -0
  69. package/dist/browser/restorePollerHelpers.d.ts +21 -0
  70. package/dist/browser/restorePollerHelpers.d.ts.map +1 -0
  71. package/dist/browser/restorePollerHelpers.js +98 -0
  72. package/dist/browser/restorePollerHelpers.js.map +1 -0
  73. package/dist/browser/static-helpers/pagingHelpers.d.ts +72 -0
  74. package/dist/browser/static-helpers/pagingHelpers.d.ts.map +1 -0
  75. package/dist/browser/static-helpers/pagingHelpers.js +137 -0
  76. package/dist/browser/static-helpers/pagingHelpers.js.map +1 -0
  77. package/dist/browser/static-helpers/pollingHelpers.d.ts +30 -0
  78. package/dist/browser/static-helpers/pollingHelpers.d.ts.map +1 -0
  79. package/dist/browser/static-helpers/pollingHelpers.js +76 -0
  80. package/dist/browser/static-helpers/pollingHelpers.js.map +1 -0
  81. package/dist/browser/static-helpers/urlTemplate.d.ts +5 -0
  82. package/dist/browser/static-helpers/urlTemplate.d.ts.map +1 -0
  83. package/dist/browser/static-helpers/urlTemplate.js +169 -0
  84. package/dist/browser/static-helpers/urlTemplate.js.map +1 -0
  85. package/dist/commonjs/api/index.d.ts +2 -0
  86. package/dist/commonjs/api/index.d.ts.map +1 -0
  87. package/dist/commonjs/api/index.js +8 -0
  88. package/dist/commonjs/api/index.js.map +1 -0
  89. package/dist/commonjs/api/onlineExperimentWorkspaces/index.d.ts +3 -0
  90. package/dist/commonjs/api/onlineExperimentWorkspaces/index.d.ts.map +1 -0
  91. package/dist/commonjs/api/onlineExperimentWorkspaces/index.js +13 -0
  92. package/dist/commonjs/api/onlineExperimentWorkspaces/index.js.map +1 -0
  93. package/dist/commonjs/api/onlineExperimentWorkspaces/operations.d.ts +36 -0
  94. package/dist/commonjs/api/onlineExperimentWorkspaces/operations.d.ts.map +1 -0
  95. package/dist/commonjs/api/onlineExperimentWorkspaces/operations.js +216 -0
  96. package/dist/commonjs/api/onlineExperimentWorkspaces/operations.js.map +1 -0
  97. package/dist/commonjs/api/onlineExperimentWorkspaces/options.d.ts +26 -0
  98. package/dist/commonjs/api/onlineExperimentWorkspaces/options.d.ts.map +1 -0
  99. package/dist/commonjs/api/onlineExperimentWorkspaces/options.js +5 -0
  100. package/dist/commonjs/api/onlineExperimentWorkspaces/options.js.map +1 -0
  101. package/dist/commonjs/api/onlineExperimentationContext.d.ts +19 -0
  102. package/dist/commonjs/api/onlineExperimentationContext.d.ts.map +1 -0
  103. package/dist/commonjs/api/onlineExperimentationContext.js +39 -0
  104. package/dist/commonjs/api/onlineExperimentationContext.js.map +1 -0
  105. package/dist/commonjs/api/operations/index.d.ts +3 -0
  106. package/dist/commonjs/api/operations/index.d.ts.map +1 -0
  107. package/dist/commonjs/api/operations/index.js +8 -0
  108. package/dist/commonjs/api/operations/index.js.map +1 -0
  109. package/dist/commonjs/api/operations/operations.d.ts +10 -0
  110. package/dist/commonjs/api/operations/operations.d.ts.map +1 -0
  111. package/dist/commonjs/api/operations/operations.js +34 -0
  112. package/dist/commonjs/api/operations/operations.js.map +1 -0
  113. package/dist/commonjs/api/operations/options.d.ts +5 -0
  114. package/dist/commonjs/api/operations/options.d.ts.map +1 -0
  115. package/dist/commonjs/api/operations/options.js +5 -0
  116. package/dist/commonjs/api/operations/options.js.map +1 -0
  117. package/dist/commonjs/classic/index.d.ts +3 -0
  118. package/dist/commonjs/classic/index.d.ts.map +1 -0
  119. package/dist/commonjs/classic/index.js +5 -0
  120. package/dist/commonjs/classic/index.js.map +1 -0
  121. package/dist/commonjs/classic/onlineExperimentWorkspaces/index.d.ts +27 -0
  122. package/dist/commonjs/classic/onlineExperimentWorkspaces/index.d.ts.map +1 -0
  123. package/dist/commonjs/classic/onlineExperimentWorkspaces/index.js +20 -0
  124. package/dist/commonjs/classic/onlineExperimentWorkspaces/index.js.map +1 -0
  125. package/dist/commonjs/classic/operations/index.d.ts +11 -0
  126. package/dist/commonjs/classic/operations/index.d.ts.map +1 -0
  127. package/dist/commonjs/classic/operations/index.js +15 -0
  128. package/dist/commonjs/classic/operations/index.js.map +1 -0
  129. package/dist/commonjs/index.d.ts +10 -0
  130. package/dist/commonjs/index.d.ts.map +1 -0
  131. package/dist/commonjs/index.js +20 -0
  132. package/dist/commonjs/index.js.map +1 -0
  133. package/dist/commonjs/logger.d.ts +2 -0
  134. package/dist/commonjs/logger.d.ts.map +1 -0
  135. package/dist/commonjs/logger.js +8 -0
  136. package/dist/commonjs/logger.js.map +1 -0
  137. package/dist/commonjs/models/index.d.ts +2 -0
  138. package/dist/commonjs/models/index.d.ts.map +1 -0
  139. package/dist/commonjs/models/index.js +16 -0
  140. package/dist/commonjs/models/index.js.map +1 -0
  141. package/dist/commonjs/models/models.d.ts +366 -0
  142. package/dist/commonjs/models/models.d.ts.map +1 -0
  143. package/dist/commonjs/models/models.js +378 -0
  144. package/dist/commonjs/models/models.js.map +1 -0
  145. package/dist/commonjs/onlineExperimentationClient.d.ts +18 -0
  146. package/dist/commonjs/onlineExperimentationClient.d.ts.map +1 -0
  147. package/dist/commonjs/onlineExperimentationClient.js +24 -0
  148. package/dist/commonjs/onlineExperimentationClient.js.map +1 -0
  149. package/dist/commonjs/package.json +3 -0
  150. package/dist/commonjs/restorePollerHelpers.d.ts +21 -0
  151. package/dist/commonjs/restorePollerHelpers.d.ts.map +1 -0
  152. package/dist/commonjs/restorePollerHelpers.js +101 -0
  153. package/dist/commonjs/restorePollerHelpers.js.map +1 -0
  154. package/dist/commonjs/static-helpers/pagingHelpers.d.ts +72 -0
  155. package/dist/commonjs/static-helpers/pagingHelpers.d.ts.map +1 -0
  156. package/dist/commonjs/static-helpers/pagingHelpers.js +140 -0
  157. package/dist/commonjs/static-helpers/pagingHelpers.js.map +1 -0
  158. package/dist/commonjs/static-helpers/pollingHelpers.d.ts +30 -0
  159. package/dist/commonjs/static-helpers/pollingHelpers.d.ts.map +1 -0
  160. package/dist/commonjs/static-helpers/pollingHelpers.js +79 -0
  161. package/dist/commonjs/static-helpers/pollingHelpers.js.map +1 -0
  162. package/dist/commonjs/static-helpers/urlTemplate.d.ts +5 -0
  163. package/dist/commonjs/static-helpers/urlTemplate.d.ts.map +1 -0
  164. package/dist/commonjs/static-helpers/urlTemplate.js +172 -0
  165. package/dist/commonjs/static-helpers/urlTemplate.js.map +1 -0
  166. package/dist/commonjs/tsdoc-metadata.json +11 -0
  167. package/dist/esm/api/index.d.ts +2 -0
  168. package/dist/esm/api/index.d.ts.map +1 -0
  169. package/dist/esm/api/index.js +4 -0
  170. package/dist/esm/api/index.js.map +1 -0
  171. package/dist/esm/api/onlineExperimentWorkspaces/index.d.ts +3 -0
  172. package/dist/esm/api/onlineExperimentWorkspaces/index.d.ts.map +1 -0
  173. package/dist/esm/api/onlineExperimentWorkspaces/index.js +4 -0
  174. package/dist/esm/api/onlineExperimentWorkspaces/index.js.map +1 -0
  175. package/dist/esm/api/onlineExperimentWorkspaces/operations.d.ts +36 -0
  176. package/dist/esm/api/onlineExperimentWorkspaces/operations.d.ts.map +1 -0
  177. package/dist/esm/api/onlineExperimentWorkspaces/operations.js +196 -0
  178. package/dist/esm/api/onlineExperimentWorkspaces/operations.js.map +1 -0
  179. package/dist/esm/api/onlineExperimentWorkspaces/options.d.ts +26 -0
  180. package/dist/esm/api/onlineExperimentWorkspaces/options.d.ts.map +1 -0
  181. package/dist/esm/api/onlineExperimentWorkspaces/options.js +4 -0
  182. package/dist/esm/api/onlineExperimentWorkspaces/options.js.map +1 -0
  183. package/dist/esm/api/onlineExperimentationContext.d.ts +19 -0
  184. package/dist/esm/api/onlineExperimentationContext.d.ts.map +1 -0
  185. package/dist/esm/api/onlineExperimentationContext.js +36 -0
  186. package/dist/esm/api/onlineExperimentationContext.js.map +1 -0
  187. package/dist/esm/api/operations/index.d.ts +3 -0
  188. package/dist/esm/api/operations/index.d.ts.map +1 -0
  189. package/dist/esm/api/operations/index.js +4 -0
  190. package/dist/esm/api/operations/index.js.map +1 -0
  191. package/dist/esm/api/operations/operations.d.ts +10 -0
  192. package/dist/esm/api/operations/operations.d.ts.map +1 -0
  193. package/dist/esm/api/operations/operations.js +29 -0
  194. package/dist/esm/api/operations/operations.js.map +1 -0
  195. package/dist/esm/api/operations/options.d.ts +5 -0
  196. package/dist/esm/api/operations/options.d.ts.map +1 -0
  197. package/dist/esm/api/operations/options.js +4 -0
  198. package/dist/esm/api/operations/options.js.map +1 -0
  199. package/dist/esm/classic/index.d.ts +3 -0
  200. package/dist/esm/classic/index.d.ts.map +1 -0
  201. package/dist/esm/classic/index.js +4 -0
  202. package/dist/esm/classic/index.js.map +1 -0
  203. package/dist/esm/classic/onlineExperimentWorkspaces/index.d.ts +27 -0
  204. package/dist/esm/classic/onlineExperimentWorkspaces/index.d.ts.map +1 -0
  205. package/dist/esm/classic/onlineExperimentWorkspaces/index.js +17 -0
  206. package/dist/esm/classic/onlineExperimentWorkspaces/index.js.map +1 -0
  207. package/dist/esm/classic/operations/index.d.ts +11 -0
  208. package/dist/esm/classic/operations/index.d.ts.map +1 -0
  209. package/dist/esm/classic/operations/index.js +12 -0
  210. package/dist/esm/classic/operations/index.js.map +1 -0
  211. package/dist/esm/index.d.ts +10 -0
  212. package/dist/esm/index.d.ts.map +1 -0
  213. package/dist/esm/index.js +6 -0
  214. package/dist/esm/index.js.map +1 -0
  215. package/dist/esm/logger.d.ts +2 -0
  216. package/dist/esm/logger.d.ts.map +1 -0
  217. package/dist/esm/logger.js +5 -0
  218. package/dist/esm/logger.js.map +1 -0
  219. package/dist/esm/models/index.d.ts +2 -0
  220. package/dist/esm/models/index.d.ts.map +1 -0
  221. package/dist/esm/models/index.js +4 -0
  222. package/dist/esm/models/index.js.map +1 -0
  223. package/dist/esm/models/models.d.ts +366 -0
  224. package/dist/esm/models/models.d.ts.map +1 -0
  225. package/dist/esm/models/models.js +341 -0
  226. package/dist/esm/models/models.js.map +1 -0
  227. package/dist/esm/onlineExperimentationClient.d.ts +18 -0
  228. package/dist/esm/onlineExperimentationClient.d.ts.map +1 -0
  229. package/dist/esm/onlineExperimentationClient.js +20 -0
  230. package/dist/esm/onlineExperimentationClient.js.map +1 -0
  231. package/dist/esm/package.json +3 -0
  232. package/dist/esm/restorePollerHelpers.d.ts +21 -0
  233. package/dist/esm/restorePollerHelpers.d.ts.map +1 -0
  234. package/dist/esm/restorePollerHelpers.js +98 -0
  235. package/dist/esm/restorePollerHelpers.js.map +1 -0
  236. package/dist/esm/static-helpers/pagingHelpers.d.ts +72 -0
  237. package/dist/esm/static-helpers/pagingHelpers.d.ts.map +1 -0
  238. package/dist/esm/static-helpers/pagingHelpers.js +137 -0
  239. package/dist/esm/static-helpers/pagingHelpers.js.map +1 -0
  240. package/dist/esm/static-helpers/pollingHelpers.d.ts +30 -0
  241. package/dist/esm/static-helpers/pollingHelpers.d.ts.map +1 -0
  242. package/dist/esm/static-helpers/pollingHelpers.js +76 -0
  243. package/dist/esm/static-helpers/pollingHelpers.js.map +1 -0
  244. package/dist/esm/static-helpers/urlTemplate.d.ts +5 -0
  245. package/dist/esm/static-helpers/urlTemplate.d.ts.map +1 -0
  246. package/dist/esm/static-helpers/urlTemplate.js +169 -0
  247. package/dist/esm/static-helpers/urlTemplate.js.map +1 -0
  248. package/dist/react-native/api/index.d.ts +2 -0
  249. package/dist/react-native/api/index.d.ts.map +1 -0
  250. package/dist/react-native/api/index.js +4 -0
  251. package/dist/react-native/api/index.js.map +1 -0
  252. package/dist/react-native/api/onlineExperimentWorkspaces/index.d.ts +3 -0
  253. package/dist/react-native/api/onlineExperimentWorkspaces/index.d.ts.map +1 -0
  254. package/dist/react-native/api/onlineExperimentWorkspaces/index.js +4 -0
  255. package/dist/react-native/api/onlineExperimentWorkspaces/index.js.map +1 -0
  256. package/dist/react-native/api/onlineExperimentWorkspaces/operations.d.ts +36 -0
  257. package/dist/react-native/api/onlineExperimentWorkspaces/operations.d.ts.map +1 -0
  258. package/dist/react-native/api/onlineExperimentWorkspaces/operations.js +196 -0
  259. package/dist/react-native/api/onlineExperimentWorkspaces/operations.js.map +1 -0
  260. package/dist/react-native/api/onlineExperimentWorkspaces/options.d.ts +26 -0
  261. package/dist/react-native/api/onlineExperimentWorkspaces/options.d.ts.map +1 -0
  262. package/dist/react-native/api/onlineExperimentWorkspaces/options.js +4 -0
  263. package/dist/react-native/api/onlineExperimentWorkspaces/options.js.map +1 -0
  264. package/dist/react-native/api/onlineExperimentationContext.d.ts +19 -0
  265. package/dist/react-native/api/onlineExperimentationContext.d.ts.map +1 -0
  266. package/dist/react-native/api/onlineExperimentationContext.js +36 -0
  267. package/dist/react-native/api/onlineExperimentationContext.js.map +1 -0
  268. package/dist/react-native/api/operations/index.d.ts +3 -0
  269. package/dist/react-native/api/operations/index.d.ts.map +1 -0
  270. package/dist/react-native/api/operations/index.js +4 -0
  271. package/dist/react-native/api/operations/index.js.map +1 -0
  272. package/dist/react-native/api/operations/operations.d.ts +10 -0
  273. package/dist/react-native/api/operations/operations.d.ts.map +1 -0
  274. package/dist/react-native/api/operations/operations.js +29 -0
  275. package/dist/react-native/api/operations/operations.js.map +1 -0
  276. package/dist/react-native/api/operations/options.d.ts +5 -0
  277. package/dist/react-native/api/operations/options.d.ts.map +1 -0
  278. package/dist/react-native/api/operations/options.js +4 -0
  279. package/dist/react-native/api/operations/options.js.map +1 -0
  280. package/dist/react-native/classic/index.d.ts +3 -0
  281. package/dist/react-native/classic/index.d.ts.map +1 -0
  282. package/dist/react-native/classic/index.js +4 -0
  283. package/dist/react-native/classic/index.js.map +1 -0
  284. package/dist/react-native/classic/onlineExperimentWorkspaces/index.d.ts +27 -0
  285. package/dist/react-native/classic/onlineExperimentWorkspaces/index.d.ts.map +1 -0
  286. package/dist/react-native/classic/onlineExperimentWorkspaces/index.js +17 -0
  287. package/dist/react-native/classic/onlineExperimentWorkspaces/index.js.map +1 -0
  288. package/dist/react-native/classic/operations/index.d.ts +11 -0
  289. package/dist/react-native/classic/operations/index.d.ts.map +1 -0
  290. package/dist/react-native/classic/operations/index.js +12 -0
  291. package/dist/react-native/classic/operations/index.js.map +1 -0
  292. package/dist/react-native/index.d.ts +10 -0
  293. package/dist/react-native/index.d.ts.map +1 -0
  294. package/dist/react-native/index.js +6 -0
  295. package/dist/react-native/index.js.map +1 -0
  296. package/dist/react-native/logger.d.ts +2 -0
  297. package/dist/react-native/logger.d.ts.map +1 -0
  298. package/dist/react-native/logger.js +5 -0
  299. package/dist/react-native/logger.js.map +1 -0
  300. package/dist/react-native/models/index.d.ts +2 -0
  301. package/dist/react-native/models/index.d.ts.map +1 -0
  302. package/dist/react-native/models/index.js +4 -0
  303. package/dist/react-native/models/index.js.map +1 -0
  304. package/dist/react-native/models/models.d.ts +366 -0
  305. package/dist/react-native/models/models.d.ts.map +1 -0
  306. package/dist/react-native/models/models.js +341 -0
  307. package/dist/react-native/models/models.js.map +1 -0
  308. package/dist/react-native/onlineExperimentationClient.d.ts +18 -0
  309. package/dist/react-native/onlineExperimentationClient.d.ts.map +1 -0
  310. package/dist/react-native/onlineExperimentationClient.js +20 -0
  311. package/dist/react-native/onlineExperimentationClient.js.map +1 -0
  312. package/dist/react-native/package.json +3 -0
  313. package/dist/react-native/restorePollerHelpers.d.ts +21 -0
  314. package/dist/react-native/restorePollerHelpers.d.ts.map +1 -0
  315. package/dist/react-native/restorePollerHelpers.js +98 -0
  316. package/dist/react-native/restorePollerHelpers.js.map +1 -0
  317. package/dist/react-native/static-helpers/pagingHelpers.d.ts +72 -0
  318. package/dist/react-native/static-helpers/pagingHelpers.d.ts.map +1 -0
  319. package/dist/react-native/static-helpers/pagingHelpers.js +137 -0
  320. package/dist/react-native/static-helpers/pagingHelpers.js.map +1 -0
  321. package/dist/react-native/static-helpers/pollingHelpers.d.ts +30 -0
  322. package/dist/react-native/static-helpers/pollingHelpers.d.ts.map +1 -0
  323. package/dist/react-native/static-helpers/pollingHelpers.js +76 -0
  324. package/dist/react-native/static-helpers/pollingHelpers.js.map +1 -0
  325. package/dist/react-native/static-helpers/urlTemplate.d.ts +5 -0
  326. package/dist/react-native/static-helpers/urlTemplate.d.ts.map +1 -0
  327. package/dist/react-native/static-helpers/urlTemplate.js +169 -0
  328. package/dist/react-native/static-helpers/urlTemplate.js.map +1 -0
  329. package/package.json +220 -0
  330. package/review/arm-onlineexperimentation-api-onlineExperimentWorkspaces.api.md +59 -0
  331. package/review/arm-onlineexperimentation-api-operations.api.md +19 -0
  332. package/review/arm-onlineexperimentation-api.api.md +27 -0
  333. package/review/arm-onlineexperimentation-models.api.md +212 -0
  334. package/review/arm-onlineexperimentation.api.md +307 -0
@@ -0,0 +1,36 @@
1
+ import { OnlineExperimentationContext as Client } from "../index.js";
2
+ import { OnlineExperimentWorkspace, _OnlineExperimentWorkspaceListResult } from "../../models/models.js";
3
+ import { OnlineExperimentWorkspacesListBySubscriptionOptionalParams, OnlineExperimentWorkspacesListByResourceGroupOptionalParams, OnlineExperimentWorkspacesDeleteOptionalParams, OnlineExperimentWorkspacesUpdateOptionalParams, OnlineExperimentWorkspacesCreateOrUpdateOptionalParams, OnlineExperimentWorkspacesGetOptionalParams } from "./options.js";
4
+ import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
5
+ import { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
6
+ import { PollerLike, OperationState } from "@azure/core-lro";
7
+ export declare function _listBySubscriptionSend(context: Client, options?: OnlineExperimentWorkspacesListBySubscriptionOptionalParams): StreamableMethod;
8
+ export declare function _listBySubscriptionDeserialize(result: PathUncheckedResponse): Promise<_OnlineExperimentWorkspaceListResult>;
9
+ /** Gets all experiment workspaces in the specified subscription. */
10
+ export declare function listBySubscription(context: Client, options?: OnlineExperimentWorkspacesListBySubscriptionOptionalParams): PagedAsyncIterableIterator<OnlineExperimentWorkspace>;
11
+ export declare function _listByResourceGroupSend(context: Client, resourceGroupName: string, options?: OnlineExperimentWorkspacesListByResourceGroupOptionalParams): StreamableMethod;
12
+ export declare function _listByResourceGroupDeserialize(result: PathUncheckedResponse): Promise<_OnlineExperimentWorkspaceListResult>;
13
+ /** Gets all experiment workspaces in a resource group. */
14
+ export declare function listByResourceGroup(context: Client, resourceGroupName: string, options?: OnlineExperimentWorkspacesListByResourceGroupOptionalParams): PagedAsyncIterableIterator<OnlineExperimentWorkspace>;
15
+ export declare function _$deleteSend(context: Client, resourceGroupName: string, workspaceName: string, options?: OnlineExperimentWorkspacesDeleteOptionalParams): StreamableMethod;
16
+ export declare function _$deleteDeserialize(result: PathUncheckedResponse): Promise<void>;
17
+ /** Deletes an experiment workspace */
18
+ /**
19
+ * @fixme delete is a reserved word that cannot be used as an operation name.
20
+ * Please add @clientName("clientName") or @clientName("<JS-Specific-Name>", "javascript")
21
+ * to the operation to override the generated name.
22
+ */
23
+ export declare function $delete(context: Client, resourceGroupName: string, workspaceName: string, options?: OnlineExperimentWorkspacesDeleteOptionalParams): PollerLike<OperationState<void>, void>;
24
+ export declare function _updateSend(context: Client, resourceGroupName: string, workspaceName: string, properties: OnlineExperimentWorkspace, options?: OnlineExperimentWorkspacesUpdateOptionalParams): StreamableMethod;
25
+ export declare function _updateDeserialize(result: PathUncheckedResponse): Promise<OnlineExperimentWorkspace>;
26
+ /** Patch an experiment workspace */
27
+ export declare function update(context: Client, resourceGroupName: string, workspaceName: string, properties: OnlineExperimentWorkspace, options?: OnlineExperimentWorkspacesUpdateOptionalParams): PollerLike<OperationState<OnlineExperimentWorkspace>, OnlineExperimentWorkspace>;
28
+ export declare function _createOrUpdateSend(context: Client, resourceGroupName: string, workspaceName: string, resource: OnlineExperimentWorkspace, options?: OnlineExperimentWorkspacesCreateOrUpdateOptionalParams): StreamableMethod;
29
+ export declare function _createOrUpdateDeserialize(result: PathUncheckedResponse): Promise<OnlineExperimentWorkspace>;
30
+ /** Create an experiment workspace, or update an existing workspace */
31
+ export declare function createOrUpdate(context: Client, resourceGroupName: string, workspaceName: string, resource: OnlineExperimentWorkspace, options?: OnlineExperimentWorkspacesCreateOrUpdateOptionalParams): PollerLike<OperationState<OnlineExperimentWorkspace>, OnlineExperimentWorkspace>;
32
+ export declare function _getSend(context: Client, resourceGroupName: string, workspaceName: string, options?: OnlineExperimentWorkspacesGetOptionalParams): StreamableMethod;
33
+ export declare function _getDeserialize(result: PathUncheckedResponse): Promise<OnlineExperimentWorkspace>;
34
+ /** Gets an experiment workspace */
35
+ export declare function get(context: Client, resourceGroupName: string, workspaceName: string, options?: OnlineExperimentWorkspacesGetOptionalParams): Promise<OnlineExperimentWorkspace>;
36
+ //# sourceMappingURL=operations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../../src/api/onlineExperimentWorkspaces/operations.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,4BAA4B,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC;AACrE,OAAO,EAEL,yBAAyB,EAGzB,oCAAoC,EAErC,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,0DAA0D,EAC1D,2DAA2D,EAC3D,8CAA8C,EAC9C,8CAA8C,EAC9C,sDAAsD,EACtD,2CAA2C,EAC5C,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,0BAA0B,EAE3B,MAAM,uCAAuC,CAAC;AAE/C,OAAO,EACL,gBAAgB,EAChB,qBAAqB,EAGtB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAE7D,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,0DAER,GACA,gBAAgB,CAkBlB;AAED,wBAAsB,8BAA8B,CAClD,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,oCAAoC,CAAC,CAS/C;AAED,oEAAoE;AACpE,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,0DAER,GACA,0BAA0B,CAAC,yBAAyB,CAAC,CAQvD;AAED,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,MAAM,EACf,iBAAiB,EAAE,MAAM,EACzB,OAAO,GAAE,2DAER,GACA,gBAAgB,CAmBlB;AAED,wBAAsB,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,MAAM,EACrB,QAAQ,EAAE,yBAAyB,EACnC,OAAO,GAAE,sDAER,GACA,gBAAgB,CAsBlB;AAED,wBAAsB,0BAA0B,CAC9C,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,yBAAyB,CAAC,CASpC;AAED,sEAAsE;AACtE,wBAAgB,cAAc,CAC5B,OAAO,EAAE,MAAM,EACf,iBAAiB,EAAE,MAAM,EACzB,aAAa,EAAE,MAAM,EACrB,QAAQ,EAAE,yBAAyB,EACnC,OAAO,GAAE,sDAER,GACA,UAAU,CAAC,cAAc,CAAC,yBAAyB,CAAC,EAAE,yBAAyB,CAAC,CAQlF;AAED,wBAAgB,QAAQ,CACtB,OAAO,EAAE,MAAM,EACf,iBAAiB,EAAE,MAAM,EACzB,aAAa,EAAE,MAAM,EACrB,OAAO,GAAE,2CAAoE,GAC5E,gBAAgB,CAoBlB;AAED,wBAAsB,eAAe,CACnC,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,yBAAyB,CAAC,CASpC;AAED,mCAAmC;AACnC,wBAAsB,GAAG,CACvB,OAAO,EAAE,MAAM,EACf,iBAAiB,EAAE,MAAM,EACzB,aAAa,EAAE,MAAM,EACrB,OAAO,GAAE,2CAAoE,GAC5E,OAAO,CAAC,yBAAyB,CAAC,CAGpC"}
@@ -0,0 +1,216 @@
1
+ "use strict";
2
+ // Copyright (c) Microsoft Corporation.
3
+ // Licensed under the MIT License.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports._listBySubscriptionSend = _listBySubscriptionSend;
6
+ exports._listBySubscriptionDeserialize = _listBySubscriptionDeserialize;
7
+ exports.listBySubscription = listBySubscription;
8
+ exports._listByResourceGroupSend = _listByResourceGroupSend;
9
+ exports._listByResourceGroupDeserialize = _listByResourceGroupDeserialize;
10
+ exports.listByResourceGroup = listByResourceGroup;
11
+ exports._$deleteSend = _$deleteSend;
12
+ exports._$deleteDeserialize = _$deleteDeserialize;
13
+ exports.$delete = $delete;
14
+ exports._updateSend = _updateSend;
15
+ exports._updateDeserialize = _updateDeserialize;
16
+ exports.update = update;
17
+ exports._createOrUpdateSend = _createOrUpdateSend;
18
+ exports._createOrUpdateDeserialize = _createOrUpdateDeserialize;
19
+ exports.createOrUpdate = createOrUpdate;
20
+ exports._getSend = _getSend;
21
+ exports._getDeserialize = _getDeserialize;
22
+ exports.get = get;
23
+ const models_js_1 = require("../../models/models.js");
24
+ const pollingHelpers_js_1 = require("../../static-helpers/pollingHelpers.js");
25
+ const pagingHelpers_js_1 = require("../../static-helpers/pagingHelpers.js");
26
+ const urlTemplate_js_1 = require("../../static-helpers/urlTemplate.js");
27
+ const core_client_1 = require("@azure-rest/core-client");
28
+ function _listBySubscriptionSend(context, options = {
29
+ requestOptions: {},
30
+ }) {
31
+ var _a, _b;
32
+ const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/providers/Microsoft.OnlineExperimentation/workspaces{?api%2Dversion}", {
33
+ subscriptionId: context.subscriptionId,
34
+ "api%2Dversion": context.apiVersion,
35
+ }, {
36
+ allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
37
+ });
38
+ 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) }));
39
+ }
40
+ async function _listBySubscriptionDeserialize(result) {
41
+ const expectedStatuses = ["200"];
42
+ if (!expectedStatuses.includes(result.status)) {
43
+ const error = (0, core_client_1.createRestError)(result);
44
+ error.details = (0, models_js_1.errorResponseDeserializer)(result.body);
45
+ throw error;
46
+ }
47
+ return (0, models_js_1._onlineExperimentWorkspaceListResultDeserializer)(result.body);
48
+ }
49
+ /** Gets all experiment workspaces in the specified subscription. */
50
+ function listBySubscription(context, options = {
51
+ requestOptions: {},
52
+ }) {
53
+ return (0, pagingHelpers_js_1.buildPagedAsyncIterator)(context, () => _listBySubscriptionSend(context, options), _listBySubscriptionDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
54
+ }
55
+ function _listByResourceGroupSend(context, resourceGroupName, options = {
56
+ requestOptions: {},
57
+ }) {
58
+ var _a, _b;
59
+ const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OnlineExperimentation/workspaces{?api%2Dversion}", {
60
+ subscriptionId: context.subscriptionId,
61
+ resourceGroupName: resourceGroupName,
62
+ "api%2Dversion": context.apiVersion,
63
+ }, {
64
+ allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
65
+ });
66
+ 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) }));
67
+ }
68
+ async function _listByResourceGroupDeserialize(result) {
69
+ const expectedStatuses = ["200"];
70
+ if (!expectedStatuses.includes(result.status)) {
71
+ const error = (0, core_client_1.createRestError)(result);
72
+ error.details = (0, models_js_1.errorResponseDeserializer)(result.body);
73
+ throw error;
74
+ }
75
+ return (0, models_js_1._onlineExperimentWorkspaceListResultDeserializer)(result.body);
76
+ }
77
+ /** Gets all experiment workspaces in a resource group. */
78
+ function listByResourceGroup(context, resourceGroupName, options = {
79
+ requestOptions: {},
80
+ }) {
81
+ return (0, pagingHelpers_js_1.buildPagedAsyncIterator)(context, () => _listByResourceGroupSend(context, resourceGroupName, options), _listByResourceGroupDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
82
+ }
83
+ function _$deleteSend(context, resourceGroupName, workspaceName, options = {
84
+ requestOptions: {},
85
+ }) {
86
+ var _a, _b;
87
+ const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OnlineExperimentation/workspaces/{workspaceName}{?api%2Dversion}", {
88
+ subscriptionId: context.subscriptionId,
89
+ resourceGroupName: resourceGroupName,
90
+ workspaceName: workspaceName,
91
+ "api%2Dversion": context.apiVersion,
92
+ }, {
93
+ allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
94
+ });
95
+ 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) }));
96
+ }
97
+ async function _$deleteDeserialize(result) {
98
+ const expectedStatuses = ["202", "204", "200"];
99
+ if (!expectedStatuses.includes(result.status)) {
100
+ const error = (0, core_client_1.createRestError)(result);
101
+ error.details = (0, models_js_1.errorResponseDeserializer)(result.body);
102
+ throw error;
103
+ }
104
+ return;
105
+ }
106
+ /** Deletes an experiment workspace */
107
+ /**
108
+ * @fixme delete is a reserved word that cannot be used as an operation name.
109
+ * Please add @clientName("clientName") or @clientName("<JS-Specific-Name>", "javascript")
110
+ * to the operation to override the generated name.
111
+ */
112
+ function $delete(context, resourceGroupName, workspaceName, options = {
113
+ requestOptions: {},
114
+ }) {
115
+ return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _$deleteDeserialize, ["202", "204", "200"], {
116
+ updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
117
+ abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
118
+ getInitialResponse: () => _$deleteSend(context, resourceGroupName, workspaceName, options),
119
+ resourceLocationConfig: "location",
120
+ });
121
+ }
122
+ function _updateSend(context, resourceGroupName, workspaceName, properties, options = {
123
+ requestOptions: {},
124
+ }) {
125
+ var _a, _b;
126
+ const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OnlineExperimentation/workspaces/{workspaceName}{?api%2Dversion}", {
127
+ subscriptionId: context.subscriptionId,
128
+ resourceGroupName: resourceGroupName,
129
+ workspaceName: workspaceName,
130
+ "api%2Dversion": context.apiVersion,
131
+ }, {
132
+ allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
133
+ });
134
+ 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.onlineExperimentWorkspaceSerializer)(properties) }));
135
+ }
136
+ async function _updateDeserialize(result) {
137
+ const expectedStatuses = ["200", "202"];
138
+ if (!expectedStatuses.includes(result.status)) {
139
+ const error = (0, core_client_1.createRestError)(result);
140
+ error.details = (0, models_js_1.errorResponseDeserializer)(result.body);
141
+ throw error;
142
+ }
143
+ return (0, models_js_1.onlineExperimentWorkspaceDeserializer)(result.body);
144
+ }
145
+ /** Patch an experiment workspace */
146
+ function update(context, resourceGroupName, workspaceName, properties, options = {
147
+ requestOptions: {},
148
+ }) {
149
+ return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _updateDeserialize, ["200", "202"], {
150
+ updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
151
+ abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
152
+ getInitialResponse: () => _updateSend(context, resourceGroupName, workspaceName, properties, options),
153
+ resourceLocationConfig: "location",
154
+ });
155
+ }
156
+ function _createOrUpdateSend(context, resourceGroupName, workspaceName, resource, options = {
157
+ requestOptions: {},
158
+ }) {
159
+ var _a, _b;
160
+ const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OnlineExperimentation/workspaces/{workspaceName}{?api%2Dversion}", {
161
+ subscriptionId: context.subscriptionId,
162
+ resourceGroupName: resourceGroupName,
163
+ workspaceName: workspaceName,
164
+ "api%2Dversion": context.apiVersion,
165
+ }, {
166
+ allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
167
+ });
168
+ 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.onlineExperimentWorkspaceSerializer)(resource) }));
169
+ }
170
+ async function _createOrUpdateDeserialize(result) {
171
+ const expectedStatuses = ["200", "201"];
172
+ if (!expectedStatuses.includes(result.status)) {
173
+ const error = (0, core_client_1.createRestError)(result);
174
+ error.details = (0, models_js_1.errorResponseDeserializer)(result.body);
175
+ throw error;
176
+ }
177
+ return (0, models_js_1.onlineExperimentWorkspaceDeserializer)(result.body);
178
+ }
179
+ /** Create an experiment workspace, or update an existing workspace */
180
+ function createOrUpdate(context, resourceGroupName, workspaceName, resource, options = {
181
+ requestOptions: {},
182
+ }) {
183
+ return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _createOrUpdateDeserialize, ["200", "201"], {
184
+ updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
185
+ abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
186
+ getInitialResponse: () => _createOrUpdateSend(context, resourceGroupName, workspaceName, resource, options),
187
+ resourceLocationConfig: "azure-async-operation",
188
+ });
189
+ }
190
+ function _getSend(context, resourceGroupName, workspaceName, options = { requestOptions: {} }) {
191
+ var _a, _b;
192
+ const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OnlineExperimentation/workspaces/{workspaceName}{?api%2Dversion}", {
193
+ subscriptionId: context.subscriptionId,
194
+ resourceGroupName: resourceGroupName,
195
+ workspaceName: workspaceName,
196
+ "api%2Dversion": context.apiVersion,
197
+ }, {
198
+ allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
199
+ });
200
+ 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) }));
201
+ }
202
+ async function _getDeserialize(result) {
203
+ const expectedStatuses = ["200"];
204
+ if (!expectedStatuses.includes(result.status)) {
205
+ const error = (0, core_client_1.createRestError)(result);
206
+ error.details = (0, models_js_1.errorResponseDeserializer)(result.body);
207
+ throw error;
208
+ }
209
+ return (0, models_js_1.onlineExperimentWorkspaceDeserializer)(result.body);
210
+ }
211
+ /** Gets an experiment workspace */
212
+ async function get(context, resourceGroupName, workspaceName, options = { requestOptions: {} }) {
213
+ const result = await _getSend(context, resourceGroupName, workspaceName, options);
214
+ return _getDeserialize(result);
215
+ }
216
+ //# sourceMappingURL=operations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/onlineExperimentWorkspaces/operations.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAiClC,0DAuBC;AAED,wEAWC;AAGD,gDAaC;AAED,4DAyBC;AAED,0EAWC;AAGD,kDAcC;AAED,oCA2BC;AAED,kDASC;AAQD,0BAcC;AAED,kCA8BC;AAED,gDAWC;AAGD,wBAgBC;AAED,kDA8BC;AAED,gEAWC;AAGD,wCAgBC;AAED,4BAyBC;AAED,0CAWC;AAGD,kBAQC;AA5XD,sDAOgC;AAShC,8EAA8E;AAC9E,4EAG+C;AAC/C,wEAAwE;AACxE,yDAKiC;AAGjC,SAAgB,uBAAuB,CACrC,OAAe,EACf,UAAsE;IACpE,cAAc,EAAE,EAAE;CACnB;;IAED,MAAM,IAAI,GAAG,IAAA,kCAAiB,EAC5B,sGAAsG,EACtG;QACE,cAAc,EAAE,OAAO,CAAC,cAAc;QACtC,eAA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EAC5B,yJAAyJ,EACzJ;QACE,cAAc,EAAE,OAAO,CAAC,cAAc;QACtC,iBAAiB,EAAE,iBAAiB;QACpC,aAAa,EAAE,aAAa;QAC5B,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,CACnC,MAA6B;IAE7B,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,KAAK,GAAG,IAAA,6BAAe,EAAC,MAAM,CAAC,CAAC;QACtC,KAAK,CAAC,OAAO,GAAG,IAAA,qCAAyB,EAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACvD,MAAM,KAAK,CAAC;IACd,CAAC;IAED,OAAO,IAAA,iDAAqC,EAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AAC5D,CAAC;AAED,mCAAmC;AAC5B,KAAK,UAAU,GAAG,CACvB,OAAe,EACf,iBAAyB,EACzB,aAAqB,EACrB,UAAuD,EAAE,cAAc,EAAE,EAAE,EAAE;IAE7E,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,OAAO,CAAC,CAAC;IAClF,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { OnlineExperimentationContext as Client } from \"../index.js\";\nimport {\n errorResponseDeserializer,\n OnlineExperimentWorkspace,\n onlineExperimentWorkspaceSerializer,\n onlineExperimentWorkspaceDeserializer,\n _OnlineExperimentWorkspaceListResult,\n _onlineExperimentWorkspaceListResultDeserializer,\n} from \"../../models/models.js\";\nimport {\n OnlineExperimentWorkspacesListBySubscriptionOptionalParams,\n OnlineExperimentWorkspacesListByResourceGroupOptionalParams,\n OnlineExperimentWorkspacesDeleteOptionalParams,\n OnlineExperimentWorkspacesUpdateOptionalParams,\n OnlineExperimentWorkspacesCreateOrUpdateOptionalParams,\n OnlineExperimentWorkspacesGetOptionalParams,\n} from \"./options.js\";\nimport { getLongRunningPoller } from \"../../static-helpers/pollingHelpers.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\nimport { PollerLike, OperationState } from \"@azure/core-lro\";\n\nexport function _listBySubscriptionSend(\n context: Client,\n options: OnlineExperimentWorkspacesListBySubscriptionOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.OnlineExperimentation/workspaces{?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<_OnlineExperimentWorkspaceListResult> {\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 _onlineExperimentWorkspaceListResultDeserializer(result.body);\n}\n\n/** Gets all experiment workspaces in the specified subscription. */\nexport function listBySubscription(\n context: Client,\n options: OnlineExperimentWorkspacesListBySubscriptionOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<OnlineExperimentWorkspace> {\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: OnlineExperimentWorkspacesListByResourceGroupOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OnlineExperimentation/workspaces{?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<_OnlineExperimentWorkspaceListResult> {\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 _onlineExperimentWorkspaceListResultDeserializer(result.body);\n}\n\n/** Gets all experiment workspaces in a resource group. */\nexport function listByResourceGroup(\n context: Client,\n resourceGroupName: string,\n options: OnlineExperimentWorkspacesListByResourceGroupOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<OnlineExperimentWorkspace> {\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 workspaceName: string,\n options: OnlineExperimentWorkspacesDeleteOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OnlineExperimentation/workspaces/{workspaceName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n workspaceName: workspaceName,\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/** Deletes an experiment workspace */\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 workspaceName: string,\n options: OnlineExperimentWorkspacesDeleteOptionalParams = {\n requestOptions: {},\n },\n): PollerLike<OperationState<void>, void> {\n return getLongRunningPoller(context, _$deleteDeserialize, [\"202\", \"204\", \"200\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () => _$deleteSend(context, resourceGroupName, workspaceName, options),\n resourceLocationConfig: \"location\",\n }) as PollerLike<OperationState<void>, void>;\n}\n\nexport function _updateSend(\n context: Client,\n resourceGroupName: string,\n workspaceName: string,\n properties: OnlineExperimentWorkspace,\n options: OnlineExperimentWorkspacesUpdateOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OnlineExperimentation/workspaces/{workspaceName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n workspaceName: workspaceName,\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: onlineExperimentWorkspaceSerializer(properties),\n });\n}\n\nexport async function _updateDeserialize(\n result: PathUncheckedResponse,\n): Promise<OnlineExperimentWorkspace> {\n const expectedStatuses = [\"200\", \"202\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return onlineExperimentWorkspaceDeserializer(result.body);\n}\n\n/** Patch an experiment workspace */\nexport function update(\n context: Client,\n resourceGroupName: string,\n workspaceName: string,\n properties: OnlineExperimentWorkspace,\n options: OnlineExperimentWorkspacesUpdateOptionalParams = {\n requestOptions: {},\n },\n): PollerLike<OperationState<OnlineExperimentWorkspace>, OnlineExperimentWorkspace> {\n return getLongRunningPoller(context, _updateDeserialize, [\"200\", \"202\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _updateSend(context, resourceGroupName, workspaceName, properties, options),\n resourceLocationConfig: \"location\",\n }) as PollerLike<OperationState<OnlineExperimentWorkspace>, OnlineExperimentWorkspace>;\n}\n\nexport function _createOrUpdateSend(\n context: Client,\n resourceGroupName: string,\n workspaceName: string,\n resource: OnlineExperimentWorkspace,\n options: OnlineExperimentWorkspacesCreateOrUpdateOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OnlineExperimentation/workspaces/{workspaceName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n workspaceName: workspaceName,\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: onlineExperimentWorkspaceSerializer(resource),\n });\n}\n\nexport async function _createOrUpdateDeserialize(\n result: PathUncheckedResponse,\n): Promise<OnlineExperimentWorkspace> {\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 onlineExperimentWorkspaceDeserializer(result.body);\n}\n\n/** Create an experiment workspace, or update an existing workspace */\nexport function createOrUpdate(\n context: Client,\n resourceGroupName: string,\n workspaceName: string,\n resource: OnlineExperimentWorkspace,\n options: OnlineExperimentWorkspacesCreateOrUpdateOptionalParams = {\n requestOptions: {},\n },\n): PollerLike<OperationState<OnlineExperimentWorkspace>, OnlineExperimentWorkspace> {\n return getLongRunningPoller(context, _createOrUpdateDeserialize, [\"200\", \"201\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _createOrUpdateSend(context, resourceGroupName, workspaceName, resource, options),\n resourceLocationConfig: \"azure-async-operation\",\n }) as PollerLike<OperationState<OnlineExperimentWorkspace>, OnlineExperimentWorkspace>;\n}\n\nexport function _getSend(\n context: Client,\n resourceGroupName: string,\n workspaceName: string,\n options: OnlineExperimentWorkspacesGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OnlineExperimentation/workspaces/{workspaceName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n workspaceName: workspaceName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _getDeserialize(\n result: PathUncheckedResponse,\n): Promise<OnlineExperimentWorkspace> {\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 onlineExperimentWorkspaceDeserializer(result.body);\n}\n\n/** Gets an experiment workspace */\nexport async function get(\n context: Client,\n resourceGroupName: string,\n workspaceName: string,\n options: OnlineExperimentWorkspacesGetOptionalParams = { requestOptions: {} },\n): Promise<OnlineExperimentWorkspace> {\n const result = await _getSend(context, resourceGroupName, workspaceName, options);\n return _getDeserialize(result);\n}\n"]}
@@ -0,0 +1,26 @@
1
+ import { OperationOptions } from "@azure-rest/core-client";
2
+ /** Optional parameters. */
3
+ export interface OnlineExperimentWorkspacesListBySubscriptionOptionalParams extends OperationOptions {
4
+ }
5
+ /** Optional parameters. */
6
+ export interface OnlineExperimentWorkspacesListByResourceGroupOptionalParams extends OperationOptions {
7
+ }
8
+ /** Optional parameters. */
9
+ export interface OnlineExperimentWorkspacesDeleteOptionalParams extends OperationOptions {
10
+ /** Delay to wait until next poll, in milliseconds. */
11
+ updateIntervalInMs?: number;
12
+ }
13
+ /** Optional parameters. */
14
+ export interface OnlineExperimentWorkspacesUpdateOptionalParams extends OperationOptions {
15
+ /** Delay to wait until next poll, in milliseconds. */
16
+ updateIntervalInMs?: number;
17
+ }
18
+ /** Optional parameters. */
19
+ export interface OnlineExperimentWorkspacesCreateOrUpdateOptionalParams extends OperationOptions {
20
+ /** Delay to wait until next poll, in milliseconds. */
21
+ updateIntervalInMs?: number;
22
+ }
23
+ /** Optional parameters. */
24
+ export interface OnlineExperimentWorkspacesGetOptionalParams extends OperationOptions {
25
+ }
26
+ //# sourceMappingURL=options.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../../src/api/onlineExperimentWorkspaces/options.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAE3D,2BAA2B;AAC3B,MAAM,WAAW,0DACf,SAAQ,gBAAgB;CAAG;AAE7B,2BAA2B;AAC3B,MAAM,WAAW,2DACf,SAAQ,gBAAgB;CAAG;AAE7B,2BAA2B;AAC3B,MAAM,WAAW,8CAA+C,SAAQ,gBAAgB;IACtF,sDAAsD;IACtD,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,2BAA2B;AAC3B,MAAM,WAAW,8CAA+C,SAAQ,gBAAgB;IACtF,sDAAsD;IACtD,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,2BAA2B;AAC3B,MAAM,WAAW,sDAAuD,SAAQ,gBAAgB;IAC9F,sDAAsD;IACtD,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,2BAA2B;AAC3B,MAAM,WAAW,2CAA4C,SAAQ,gBAAgB;CAAG"}
@@ -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/onlineExperimentWorkspaces/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 OnlineExperimentWorkspacesListBySubscriptionOptionalParams\n extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface OnlineExperimentWorkspacesListByResourceGroupOptionalParams\n extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface OnlineExperimentWorkspacesDeleteOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n}\n\n/** Optional parameters. */\nexport interface OnlineExperimentWorkspacesUpdateOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n}\n\n/** Optional parameters. */\nexport interface OnlineExperimentWorkspacesCreateOrUpdateOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n}\n\n/** Optional parameters. */\nexport interface OnlineExperimentWorkspacesGetOptionalParams extends OperationOptions {}\n"]}
@@ -0,0 +1,19 @@
1
+ import { Client, ClientOptions } from "@azure-rest/core-client";
2
+ import { TokenCredential } from "@azure/core-auth";
3
+ /** Microsoft.OnlineExperimentation Resource Provider management API. */
4
+ export interface OnlineExperimentationContext extends Client {
5
+ /** The API version to use for this operation. */
6
+ /** Known values of {@link KnownVersions} that the service accepts. */
7
+ apiVersion: string;
8
+ /** The ID of the target subscription. The value must be an UUID. */
9
+ subscriptionId: string;
10
+ }
11
+ /** Optional parameters for the client. */
12
+ export interface OnlineExperimentationClientOptionalParams extends ClientOptions {
13
+ /** The API version to use for this operation. */
14
+ /** Known values of {@link KnownVersions} that the service accepts. */
15
+ apiVersion?: string;
16
+ }
17
+ /** Microsoft.OnlineExperimentation Resource Provider management API. */
18
+ export declare function createOnlineExperimentation(credential: TokenCredential, subscriptionId: string, options?: OnlineExperimentationClientOptionalParams): OnlineExperimentationContext;
19
+ //# sourceMappingURL=onlineExperimentationContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"onlineExperimentationContext.d.ts","sourceRoot":"","sources":["../../../src/api/onlineExperimentationContext.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,MAAM,EAAE,aAAa,EAAa,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAEnD,wEAAwE;AACxE,MAAM,WAAW,4BAA6B,SAAQ,MAAM;IAC1D,iDAAiD;IACjD,sEAAsE;IACtE,UAAU,EAAE,MAAM,CAAC;IACnB,oEAAoE;IACpE,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,0CAA0C;AAC1C,MAAM,WAAW,yCAA0C,SAAQ,aAAa;IAC9E,iDAAiD;IACjD,sEAAsE;IACtE,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,wEAAwE;AACxE,wBAAgB,2BAA2B,CACzC,UAAU,EAAE,eAAe,EAC3B,cAAc,EAAE,MAAM,EACtB,OAAO,GAAE,yCAA8C,GACtD,4BAA4B,CAsC9B"}
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ // Copyright (c) Microsoft Corporation.
3
+ // Licensed under the MIT License.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.createOnlineExperimentation = createOnlineExperimentation;
6
+ const tslib_1 = require("tslib");
7
+ const logger_js_1 = require("../logger.js");
8
+ const core_client_1 = require("@azure-rest/core-client");
9
+ /** Microsoft.OnlineExperimentation Resource Provider management API. */
10
+ function createOnlineExperimentation(credential, subscriptionId, options = {}) {
11
+ var _a, _b, _c, _d, _e, _f, _g, _h;
12
+ const endpointUrl = (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUrl) !== null && _b !== void 0 ? _b : "https://management.azure.com";
13
+ const prefixFromOptions = (_c = options === null || options === void 0 ? void 0 : options.userAgentOptions) === null || _c === void 0 ? void 0 : _c.userAgentPrefix;
14
+ const userAgentInfo = `azsdk-js-arm-onlineexperimentation/1.0.0-beta.1`;
15
+ const userAgentPrefix = prefixFromOptions
16
+ ? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}`
17
+ : `azsdk-js-api ${userAgentInfo}`;
18
+ const _j = Object.assign(Object.assign({}, options), { userAgentOptions: { userAgentPrefix }, loggingOptions: { logger: (_e = (_d = options.loggingOptions) === null || _d === void 0 ? void 0 : _d.logger) !== null && _e !== void 0 ? _e : logger_js_1.logger.info }, credentials: {
19
+ scopes: (_g = (_f = options.credentials) === null || _f === void 0 ? void 0 : _f.scopes) !== null && _g !== void 0 ? _g : [`${endpointUrl}/.default`],
20
+ } }), { apiVersion: _ } = _j, updatedOptions = tslib_1.__rest(_j, ["apiVersion"]);
21
+ const clientContext = (0, core_client_1.getClient)(endpointUrl, credential, updatedOptions);
22
+ clientContext.pipeline.removePolicy({ name: "ApiVersionPolicy" });
23
+ const apiVersion = (_h = options.apiVersion) !== null && _h !== void 0 ? _h : "2025-05-31-preview";
24
+ clientContext.pipeline.addPolicy({
25
+ name: "ClientApiVersionPolicy",
26
+ sendRequest: (req, next) => {
27
+ // Use the apiVersion defined in request url directly
28
+ // Append one if there is no apiVersion and we have one at client options
29
+ const url = new URL(req.url);
30
+ if (!url.searchParams.get("api-version")) {
31
+ req.url = `${req.url}${Array.from(url.searchParams.keys()).length > 0 ? "&" : "?"}api-version=${apiVersion}`;
32
+ }
33
+ return next(req);
34
+ },
35
+ });
36
+ return Object.assign(Object.assign({}, clientContext), { apiVersion,
37
+ subscriptionId });
38
+ }
39
+ //# sourceMappingURL=onlineExperimentationContext.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"onlineExperimentationContext.js","sourceRoot":"","sources":["../../../src/api/onlineExperimentationContext.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAwBlC,kEA0CC;;AAhED,4CAAsC;AAEtC,yDAA2E;AAmB3E,wEAAwE;AACxE,SAAgB,2BAA2B,CACzC,UAA2B,EAC3B,cAAsB,EACtB,UAAqD,EAAE;;IAEvD,MAAM,WAAW,GAAG,MAAA,MAAA,OAAO,CAAC,QAAQ,mCAAI,OAAO,CAAC,OAAO,mCAAI,8BAA8B,CAAC;IAC1F,MAAM,iBAAiB,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,gBAAgB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,EAAE,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GACzD,eAAe,UAAU,EAAE,CAAC;YAC9B,CAAC;YAED,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC;QACnB,CAAC;KACF,CAAC,CAAC;IACH,OAAO,gCACF,aAAa,KAChB,UAAU;QACV,cAAc,GACiB,CAAC;AACpC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { logger } from \"../logger.js\";\nimport { KnownVersions } from \"../models/models.js\";\nimport { Client, ClientOptions, getClient } from \"@azure-rest/core-client\";\nimport { TokenCredential } from \"@azure/core-auth\";\n\n/** Microsoft.OnlineExperimentation Resource Provider management API. */\nexport interface OnlineExperimentationContext extends Client {\n /** The API version to use for this operation. */\n /** Known values of {@link KnownVersions} that the service accepts. */\n apiVersion: string;\n /** The ID of the target subscription. The value must be an UUID. */\n subscriptionId: string;\n}\n\n/** Optional parameters for the client. */\nexport interface OnlineExperimentationClientOptionalParams extends ClientOptions {\n /** The API version to use for this operation. */\n /** Known values of {@link KnownVersions} that the service accepts. */\n apiVersion?: string;\n}\n\n/** Microsoft.OnlineExperimentation Resource Provider management API. */\nexport function createOnlineExperimentation(\n credential: TokenCredential,\n subscriptionId: string,\n options: OnlineExperimentationClientOptionalParams = {},\n): OnlineExperimentationContext {\n const endpointUrl = options.endpoint ?? options.baseUrl ?? \"https://management.azure.com\";\n const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;\n const userAgentInfo = `azsdk-js-arm-onlineexperimentation/1.0.0-beta.1`;\n const userAgentPrefix = prefixFromOptions\n ? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}`\n : `azsdk-js-api ${userAgentInfo}`;\n const { apiVersion: _, ...updatedOptions } = {\n ...options,\n userAgentOptions: { userAgentPrefix },\n loggingOptions: { logger: options.loggingOptions?.logger ?? logger.info },\n credentials: {\n scopes: options.credentials?.scopes ?? [`${endpointUrl}/.default`],\n },\n };\n const clientContext = getClient(endpointUrl, credential, updatedOptions);\n clientContext.pipeline.removePolicy({ name: \"ApiVersionPolicy\" });\n const apiVersion = options.apiVersion ?? \"2025-05-31-preview\";\n clientContext.pipeline.addPolicy({\n name: \"ClientApiVersionPolicy\",\n sendRequest: (req, next) => {\n // Use the apiVersion defined in request url directly\n // Append one if there is no apiVersion and we have one at client options\n const url = new URL(req.url);\n if (!url.searchParams.get(\"api-version\")) {\n req.url = `${req.url}${\n Array.from(url.searchParams.keys()).length > 0 ? \"&\" : \"?\"\n }api-version=${apiVersion}`;\n }\n\n return next(req);\n },\n });\n return {\n ...clientContext,\n apiVersion,\n subscriptionId,\n } as OnlineExperimentationContext;\n}\n"]}
@@ -0,0 +1,3 @@
1
+ export { list } from "./operations.js";
2
+ export { OperationsListOptionalParams } from "./options.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/operations/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAAE,4BAA4B,EAAE,MAAM,cAAc,CAAC"}
@@ -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.list = void 0;
6
+ var operations_js_1 = require("./operations.js");
7
+ Object.defineProperty(exports, "list", { enumerable: true, get: function () { return operations_js_1.list; } });
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/operations/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,iDAAuC;AAA9B,qGAAA,IAAI,OAAA","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport { list } from \"./operations.js\";\nexport { OperationsListOptionalParams } from \"./options.js\";\n"]}
@@ -0,0 +1,10 @@
1
+ import { OnlineExperimentationContext as Client } from "../index.js";
2
+ import { _OperationListResult, Operation } from "../../models/models.js";
3
+ import { OperationsListOptionalParams } from "./options.js";
4
+ import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
5
+ import { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
6
+ export declare function _listSend(context: Client, options?: OperationsListOptionalParams): StreamableMethod;
7
+ export declare function _listDeserialize(result: PathUncheckedResponse): Promise<_OperationListResult>;
8
+ /** List the operations for the provider */
9
+ export declare function list(context: Client, options?: OperationsListOptionalParams): PagedAsyncIterableIterator<Operation>;
10
+ //# sourceMappingURL=operations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../../src/api/operations/operations.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,4BAA4B,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC;AACrE,OAAO,EACL,oBAAoB,EAEpB,SAAS,EAEV,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,4BAA4B,EAAE,MAAM,cAAc,CAAC;AAC5D,OAAO,EACL,0BAA0B,EAE3B,MAAM,uCAAuC,CAAC;AAE/C,OAAO,EACL,gBAAgB,EAChB,qBAAqB,EAGtB,MAAM,yBAAyB,CAAC;AAEjC,wBAAgB,SAAS,CACvB,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,4BAAqD,GAC7D,gBAAgB,CAiBlB;AAED,wBAAsB,gBAAgB,CACpC,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,oBAAoB,CAAC,CAS/B;AAED,2CAA2C;AAC3C,wBAAgB,IAAI,CAClB,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,4BAAqD,GAC7D,0BAA0B,CAAC,SAAS,CAAC,CAQvC"}
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ // Copyright (c) Microsoft Corporation.
3
+ // Licensed under the MIT License.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports._listSend = _listSend;
6
+ exports._listDeserialize = _listDeserialize;
7
+ exports.list = list;
8
+ const models_js_1 = require("../../models/models.js");
9
+ const pagingHelpers_js_1 = require("../../static-helpers/pagingHelpers.js");
10
+ const urlTemplate_js_1 = require("../../static-helpers/urlTemplate.js");
11
+ const core_client_1 = require("@azure-rest/core-client");
12
+ function _listSend(context, options = { requestOptions: {} }) {
13
+ var _a, _b;
14
+ const path = (0, urlTemplate_js_1.expandUrlTemplate)("/providers/Microsoft.OnlineExperimentation/operations{?api%2Dversion}", {
15
+ "api%2Dversion": context.apiVersion,
16
+ }, {
17
+ allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
18
+ });
19
+ return context.path(path).get(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
20
+ }
21
+ async function _listDeserialize(result) {
22
+ const expectedStatuses = ["200"];
23
+ if (!expectedStatuses.includes(result.status)) {
24
+ const error = (0, core_client_1.createRestError)(result);
25
+ error.details = (0, models_js_1.errorResponseDeserializer)(result.body);
26
+ throw error;
27
+ }
28
+ return (0, models_js_1._operationListResultDeserializer)(result.body);
29
+ }
30
+ /** List the operations for the provider */
31
+ function list(context, options = { requestOptions: {} }) {
32
+ return (0, pagingHelpers_js_1.buildPagedAsyncIterator)(context, () => _listSend(context, options), _listDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
33
+ }
34
+ //# sourceMappingURL=operations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/operations/operations.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAsBlC,8BAoBC;AAED,4CAWC;AAGD,oBAWC;AAlED,sDAKgC;AAEhC,4EAG+C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,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { OnlineExperimentationContext as Client } from \"../index.js\";\nimport {\n _OperationListResult,\n _operationListResultDeserializer,\n Operation,\n errorResponseDeserializer,\n} from \"../../models/models.js\";\nimport { OperationsListOptionalParams } from \"./options.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\n\nexport function _listSend(\n context: Client,\n options: OperationsListOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/providers/Microsoft.OnlineExperimentation/operations{?api%2Dversion}\",\n {\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _listDeserialize(\n result: PathUncheckedResponse,\n): Promise<_OperationListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return _operationListResultDeserializer(result.body);\n}\n\n/** List the operations for the provider */\nexport function list(\n context: Client,\n options: OperationsListOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<Operation> {\n return buildPagedAsyncIterator(\n context,\n () => _listSend(context, options),\n _listDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n"]}
@@ -0,0 +1,5 @@
1
+ import { OperationOptions } from "@azure-rest/core-client";
2
+ /** Optional parameters. */
3
+ export interface OperationsListOptionalParams extends OperationOptions {
4
+ }
5
+ //# sourceMappingURL=options.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../../src/api/operations/options.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAE3D,2BAA2B;AAC3B,MAAM,WAAW,4BAA6B,SAAQ,gBAAgB;CAAG"}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ // Copyright (c) Microsoft Corporation.
3
+ // Licensed under the MIT License.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ //# sourceMappingURL=options.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"options.js","sourceRoot":"","sources":["../../../../src/api/operations/options.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { OperationOptions } from \"@azure-rest/core-client\";\n\n/** Optional parameters. */\nexport interface OperationsListOptionalParams extends OperationOptions {}\n"]}
@@ -0,0 +1,3 @@
1
+ export { OnlineExperimentWorkspacesOperations } from "./onlineExperimentWorkspaces/index.js";
2
+ export { OperationsOperations } from "./operations/index.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/classic/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,oCAAoC,EAAE,MAAM,uCAAuC,CAAC;AAC7F,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC"}
@@ -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 { OnlineExperimentWorkspacesOperations } from \"./onlineExperimentWorkspaces/index.js\";\nexport { OperationsOperations } from \"./operations/index.js\";\n"]}
@@ -0,0 +1,27 @@
1
+ import { OnlineExperimentationContext } from "../../api/onlineExperimentationContext.js";
2
+ import { OnlineExperimentWorkspace } from "../../models/models.js";
3
+ import { OnlineExperimentWorkspacesListBySubscriptionOptionalParams, OnlineExperimentWorkspacesListByResourceGroupOptionalParams, OnlineExperimentWorkspacesDeleteOptionalParams, OnlineExperimentWorkspacesUpdateOptionalParams, OnlineExperimentWorkspacesCreateOrUpdateOptionalParams, OnlineExperimentWorkspacesGetOptionalParams } from "../../api/onlineExperimentWorkspaces/options.js";
4
+ import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
5
+ import { PollerLike, OperationState } from "@azure/core-lro";
6
+ /** Interface representing a OnlineExperimentWorkspaces operations. */
7
+ export interface OnlineExperimentWorkspacesOperations {
8
+ /** Gets all experiment workspaces in the specified subscription. */
9
+ listBySubscription: (options?: OnlineExperimentWorkspacesListBySubscriptionOptionalParams) => PagedAsyncIterableIterator<OnlineExperimentWorkspace>;
10
+ /** Gets all experiment workspaces in a resource group. */
11
+ listByResourceGroup: (resourceGroupName: string, options?: OnlineExperimentWorkspacesListByResourceGroupOptionalParams) => PagedAsyncIterableIterator<OnlineExperimentWorkspace>;
12
+ /** Deletes an experiment workspace */
13
+ /**
14
+ * @fixme delete is a reserved word that cannot be used as an operation name.
15
+ * Please add @clientName("clientName") or @clientName("<JS-Specific-Name>", "javascript")
16
+ * to the operation to override the generated name.
17
+ */
18
+ delete: (resourceGroupName: string, workspaceName: string, options?: OnlineExperimentWorkspacesDeleteOptionalParams) => PollerLike<OperationState<void>, void>;
19
+ /** Patch an experiment workspace */
20
+ update: (resourceGroupName: string, workspaceName: string, properties: OnlineExperimentWorkspace, options?: OnlineExperimentWorkspacesUpdateOptionalParams) => PollerLike<OperationState<OnlineExperimentWorkspace>, OnlineExperimentWorkspace>;
21
+ /** Create an experiment workspace, or update an existing workspace */
22
+ createOrUpdate: (resourceGroupName: string, workspaceName: string, resource: OnlineExperimentWorkspace, options?: OnlineExperimentWorkspacesCreateOrUpdateOptionalParams) => PollerLike<OperationState<OnlineExperimentWorkspace>, OnlineExperimentWorkspace>;
23
+ /** Gets an experiment workspace */
24
+ get: (resourceGroupName: string, workspaceName: string, options?: OnlineExperimentWorkspacesGetOptionalParams) => Promise<OnlineExperimentWorkspace>;
25
+ }
26
+ export declare function _getOnlineExperimentWorkspacesOperations(context: OnlineExperimentationContext): OnlineExperimentWorkspacesOperations;
27
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/classic/onlineExperimentWorkspaces/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,4BAA4B,EAAE,MAAM,2CAA2C,CAAC;AACzF,OAAO,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,EACL,0DAA0D,EAC1D,2DAA2D,EAC3D,8CAA8C,EAC9C,8CAA8C,EAC9C,sDAAsD,EACtD,2CAA2C,EAC5C,MAAM,iDAAiD,CAAC;AASzD,OAAO,EAAE,0BAA0B,EAAE,MAAM,uCAAuC,CAAC;AACnF,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAE7D,sEAAsE;AACtE,MAAM,WAAW,oCAAoC;IACnD,oEAAoE;IACpE,kBAAkB,EAAE,CAClB,OAAO,CAAC,EAAE,0DAA0D,KACjE,0BAA0B,CAAC,yBAAyB,CAAC,CAAC;IAC3D,0DAA0D;IAC1D,mBAAmB,EAAE,CACnB,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,2DAA2D,KAClE,0BAA0B,CAAC,yBAAyB,CAAC,CAAC;IAC3D,sCAAsC;IACtC;;;;OAIG;IACH,MAAM,EAAE,CACN,iBAAiB,EAAE,MAAM,EACzB,aAAa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