@azure/arm-onlineexperimentation 1.0.0-alpha.20250509.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 +213 -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
package/CHANGELOG.md ADDED
@@ -0,0 +1,7 @@
1
+ # Release History
2
+
3
+ ## 1.0.0-beta.1 (2025-04-24)
4
+
5
+ ### Features Added
6
+
7
+ Initial release of the @azure/arm-onlineexperimentation package
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ Copyright (c) Microsoft Corporation.
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,115 @@
1
+ # Azure OnlineExperimentation client library for JavaScript
2
+
3
+ This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure OnlineExperimentation client.
4
+
5
+ Microsoft.OnlineExperimentation Resource Provider management API.
6
+
7
+ Key links:
8
+
9
+ - [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/onlineexperimentation/arm-onlineexperimentation)
10
+ - [Package (NPM)](https://www.npmjs.com/package/@azure/arm-onlineexperimentation)
11
+ - [API reference documentation](https://learn.microsoft.com/javascript/api/@azure/arm-onlineexperimentation?view=azure-node-preview)
12
+ - [Samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/onlineexperimentation/arm-onlineexperimentation/samples)
13
+
14
+ ## Getting started
15
+
16
+ ### Currently supported environments
17
+
18
+ - [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule)
19
+ - Latest versions of Safari, Chrome, Edge and Firefox.
20
+
21
+ See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.
22
+
23
+ ### Prerequisites
24
+
25
+ - An [Azure subscription][azure_sub].
26
+
27
+ ### Install the `@azure/arm-onlineexperimentation` package
28
+
29
+ Install the Azure OnlineExperimentation client library for JavaScript with `npm`:
30
+
31
+ ```bash
32
+ npm install @azure/arm-onlineexperimentation
33
+ ```
34
+
35
+ ### Create and authenticate a `OnlineExperimentationClient`
36
+
37
+ To create a client object to access the Azure OnlineExperimentation API, you will need the `endpoint` of your Azure OnlineExperimentation resource and a `credential`. The Azure OnlineExperimentation client can use Azure Active Directory credentials to authenticate.
38
+ You can find the endpoint for your Azure OnlineExperimentation resource in the [Azure Portal][azure_portal].
39
+
40
+ You can authenticate with Azure Active Directory using a credential from the [@azure/identity][azure_identity] library or [an existing AAD Token](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/identity/identity/samples/AzureIdentityExamples.md#authenticating-with-a-pre-fetched-access-token).
41
+
42
+ To use the [DefaultAzureCredential][defaultazurecredential] provider shown below, or other credential providers provided with the Azure SDK, please install the `@azure/identity` package:
43
+
44
+ ```bash
45
+ npm install @azure/identity
46
+ ```
47
+
48
+ You will also need to **register a new AAD application and grant access to Azure OnlineExperimentation** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions).
49
+
50
+ For more information about how to create an Azure AD Application check out [this guide](https://learn.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal).
51
+
52
+ Using Node.js and Node-like environments, you can use the `DefaultAzureCredential` class to authenticate the client.
53
+
54
+ ```ts snippet:ReadmeSampleCreateClient_Node
55
+ import { OnlineExperimentationClient } from "@azure/arm-onlineexperimentation";
56
+ import { DefaultAzureCredential } from "@azure/identity";
57
+
58
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
59
+ const client = new OnlineExperimentationClient(new DefaultAzureCredential(), subscriptionId);
60
+ ```
61
+
62
+ For browser environments, use the `InteractiveBrowserCredential` from the `@azure/identity` package to authenticate.
63
+
64
+ ```ts snippet:ReadmeSampleCreateClient_Browser
65
+ import { InteractiveBrowserCredential } from "@azure/identity";
66
+ import { OnlineExperimentationClient } from "@azure/arm-onlineexperimentation";
67
+
68
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
69
+ const credential = new InteractiveBrowserCredential({
70
+ tenantId: "<YOUR_TENANT_ID>",
71
+ clientId: "<YOUR_CLIENT_ID>",
72
+ });
73
+ const client = new OnlineExperimentationClient(credential, subscriptionId);
74
+ ```
75
+
76
+
77
+ ### JavaScript Bundle
78
+ To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling).
79
+
80
+ ## Key concepts
81
+
82
+ ### OnlineExperimentationClient
83
+
84
+ `OnlineExperimentationClient` is the primary interface for developers using the Azure OnlineExperimentation client library. Explore the methods on this client object to understand the different features of the Azure OnlineExperimentation service that you can access.
85
+
86
+ ## Troubleshooting
87
+
88
+ ### Logging
89
+
90
+ Enabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:
91
+
92
+ ```ts snippet:SetLogLevel
93
+ import { setLogLevel } from "@azure/logger";
94
+
95
+ setLogLevel("info");
96
+ ```
97
+
98
+ For more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/logger).
99
+
100
+ ## Next steps
101
+
102
+ Please take a look at the [samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/onlineexperimentation/arm-onlineexperimentation/samples) directory for detailed examples on how to use this library.
103
+
104
+ ## Contributing
105
+
106
+ If you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/main/CONTRIBUTING.md) to learn more about how to build and test the code.
107
+
108
+ ## Related projects
109
+
110
+ - [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js)
111
+
112
+ [azure_sub]: https://azure.microsoft.com/free/
113
+ [azure_portal]: https://portal.azure.com
114
+ [azure_identity]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity
115
+ [defaultazurecredential]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity#defaultazurecredential
@@ -0,0 +1,2 @@
1
+ export { createOnlineExperimentation, OnlineExperimentationContext, OnlineExperimentationClientOptionalParams, } from "./onlineExperimentationContext.js";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,2BAA2B,EAC3B,4BAA4B,EAC5B,yCAAyC,GAC1C,MAAM,mCAAmC,CAAC"}
@@ -0,0 +1,4 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ export { createOnlineExperimentation, } from "./onlineExperimentationContext.js";
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EACL,2BAA2B,GAG5B,MAAM,mCAAmC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport {\n createOnlineExperimentation,\n OnlineExperimentationContext,\n OnlineExperimentationClientOptionalParams,\n} from \"./onlineExperimentationContext.js\";\n"]}
@@ -0,0 +1,3 @@
1
+ export { listBySubscription, listByResourceGroup, $delete, update, createOrUpdate, get, } from "./operations.js";
2
+ export { OnlineExperimentWorkspacesListBySubscriptionOptionalParams, OnlineExperimentWorkspacesListByResourceGroupOptionalParams, OnlineExperimentWorkspacesDeleteOptionalParams, OnlineExperimentWorkspacesUpdateOptionalParams, OnlineExperimentWorkspacesCreateOrUpdateOptionalParams, OnlineExperimentWorkspacesGetOptionalParams, } from "./options.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/onlineExperimentWorkspaces/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,kBAAkB,EAClB,mBAAmB,EACnB,OAAO,EACP,MAAM,EACN,cAAc,EACd,GAAG,GACJ,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,0DAA0D,EAC1D,2DAA2D,EAC3D,8CAA8C,EAC9C,8CAA8C,EAC9C,sDAAsD,EACtD,2CAA2C,GAC5C,MAAM,cAAc,CAAC"}
@@ -0,0 +1,4 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ export { listBySubscription, listByResourceGroup, $delete, update, createOrUpdate, get, } from "./operations.js";
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/onlineExperimentWorkspaces/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EACL,kBAAkB,EAClB,mBAAmB,EACnB,OAAO,EACP,MAAM,EACN,cAAc,EACd,GAAG,GACJ,MAAM,iBAAiB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport {\n listBySubscription,\n listByResourceGroup,\n $delete,\n update,\n createOrUpdate,\n get,\n} from \"./operations.js\";\nexport {\n OnlineExperimentWorkspacesListBySubscriptionOptionalParams,\n OnlineExperimentWorkspacesListByResourceGroupOptionalParams,\n OnlineExperimentWorkspacesDeleteOptionalParams,\n OnlineExperimentWorkspacesUpdateOptionalParams,\n OnlineExperimentWorkspacesCreateOrUpdateOptionalParams,\n OnlineExperimentWorkspacesGetOptionalParams,\n} from \"./options.js\";\n"]}
@@ -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,yBAA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AAC,cAAc,CAAC,yBAAyB,CAAC,EAAE,yBAAyB,CAAC,CAQlF;AAED,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,MAAM,EACf,iBAAiB,EAAE,MAAM,EACzB,aAAa,EAAE,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,196 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ import { errorResponseDeserializer, onlineExperimentWorkspaceSerializer, onlineExperimentWorkspaceDeserializer, _onlineExperimentWorkspaceListResultDeserializer, } from "../../models/models.js";
4
+ import { getLongRunningPoller } from "../../static-helpers/pollingHelpers.js";
5
+ import { buildPagedAsyncIterator, } from "../../static-helpers/pagingHelpers.js";
6
+ import { expandUrlTemplate } from "../../static-helpers/urlTemplate.js";
7
+ import { createRestError, operationOptionsToRequestParameters, } from "@azure-rest/core-client";
8
+ export function _listBySubscriptionSend(context, options = {
9
+ requestOptions: {},
10
+ }) {
11
+ var _a, _b;
12
+ const path = expandUrlTemplate("/subscriptions/{subscriptionId}/providers/Microsoft.OnlineExperimentation/workspaces{?api%2Dversion}", {
13
+ subscriptionId: context.subscriptionId,
14
+ "api%2Dversion": context.apiVersion,
15
+ }, {
16
+ allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
17
+ });
18
+ return context.path(path).get(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
19
+ }
20
+ export async function _listBySubscriptionDeserialize(result) {
21
+ const expectedStatuses = ["200"];
22
+ if (!expectedStatuses.includes(result.status)) {
23
+ const error = createRestError(result);
24
+ error.details = errorResponseDeserializer(result.body);
25
+ throw error;
26
+ }
27
+ return _onlineExperimentWorkspaceListResultDeserializer(result.body);
28
+ }
29
+ /** Gets all experiment workspaces in the specified subscription. */
30
+ export function listBySubscription(context, options = {
31
+ requestOptions: {},
32
+ }) {
33
+ return buildPagedAsyncIterator(context, () => _listBySubscriptionSend(context, options), _listBySubscriptionDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
34
+ }
35
+ export function _listByResourceGroupSend(context, resourceGroupName, options = {
36
+ requestOptions: {},
37
+ }) {
38
+ var _a, _b;
39
+ const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OnlineExperimentation/workspaces{?api%2Dversion}", {
40
+ subscriptionId: context.subscriptionId,
41
+ resourceGroupName: resourceGroupName,
42
+ "api%2Dversion": context.apiVersion,
43
+ }, {
44
+ allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
45
+ });
46
+ return context.path(path).get(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
47
+ }
48
+ export async function _listByResourceGroupDeserialize(result) {
49
+ const expectedStatuses = ["200"];
50
+ if (!expectedStatuses.includes(result.status)) {
51
+ const error = createRestError(result);
52
+ error.details = errorResponseDeserializer(result.body);
53
+ throw error;
54
+ }
55
+ return _onlineExperimentWorkspaceListResultDeserializer(result.body);
56
+ }
57
+ /** Gets all experiment workspaces in a resource group. */
58
+ export function listByResourceGroup(context, resourceGroupName, options = {
59
+ requestOptions: {},
60
+ }) {
61
+ return buildPagedAsyncIterator(context, () => _listByResourceGroupSend(context, resourceGroupName, options), _listByResourceGroupDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
62
+ }
63
+ export function _$deleteSend(context, resourceGroupName, workspaceName, options = {
64
+ requestOptions: {},
65
+ }) {
66
+ var _a, _b;
67
+ const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OnlineExperimentation/workspaces/{workspaceName}{?api%2Dversion}", {
68
+ subscriptionId: context.subscriptionId,
69
+ resourceGroupName: resourceGroupName,
70
+ workspaceName: workspaceName,
71
+ "api%2Dversion": context.apiVersion,
72
+ }, {
73
+ allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
74
+ });
75
+ return context.path(path).delete(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
76
+ }
77
+ export async function _$deleteDeserialize(result) {
78
+ const expectedStatuses = ["202", "204", "200"];
79
+ if (!expectedStatuses.includes(result.status)) {
80
+ const error = createRestError(result);
81
+ error.details = errorResponseDeserializer(result.body);
82
+ throw error;
83
+ }
84
+ return;
85
+ }
86
+ /** Deletes an experiment workspace */
87
+ /**
88
+ * @fixme delete is a reserved word that cannot be used as an operation name.
89
+ * Please add @clientName("clientName") or @clientName("<JS-Specific-Name>", "javascript")
90
+ * to the operation to override the generated name.
91
+ */
92
+ export function $delete(context, resourceGroupName, workspaceName, options = {
93
+ requestOptions: {},
94
+ }) {
95
+ return getLongRunningPoller(context, _$deleteDeserialize, ["202", "204", "200"], {
96
+ updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
97
+ abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
98
+ getInitialResponse: () => _$deleteSend(context, resourceGroupName, workspaceName, options),
99
+ resourceLocationConfig: "location",
100
+ });
101
+ }
102
+ export function _updateSend(context, resourceGroupName, workspaceName, properties, options = {
103
+ requestOptions: {},
104
+ }) {
105
+ var _a, _b;
106
+ const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OnlineExperimentation/workspaces/{workspaceName}{?api%2Dversion}", {
107
+ subscriptionId: context.subscriptionId,
108
+ resourceGroupName: resourceGroupName,
109
+ workspaceName: workspaceName,
110
+ "api%2Dversion": context.apiVersion,
111
+ }, {
112
+ allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
113
+ });
114
+ return context.path(path).patch(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: onlineExperimentWorkspaceSerializer(properties) }));
115
+ }
116
+ export async function _updateDeserialize(result) {
117
+ const expectedStatuses = ["200", "202"];
118
+ if (!expectedStatuses.includes(result.status)) {
119
+ const error = createRestError(result);
120
+ error.details = errorResponseDeserializer(result.body);
121
+ throw error;
122
+ }
123
+ return onlineExperimentWorkspaceDeserializer(result.body);
124
+ }
125
+ /** Patch an experiment workspace */
126
+ export function update(context, resourceGroupName, workspaceName, properties, options = {
127
+ requestOptions: {},
128
+ }) {
129
+ return getLongRunningPoller(context, _updateDeserialize, ["200", "202"], {
130
+ updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
131
+ abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
132
+ getInitialResponse: () => _updateSend(context, resourceGroupName, workspaceName, properties, options),
133
+ resourceLocationConfig: "location",
134
+ });
135
+ }
136
+ export function _createOrUpdateSend(context, resourceGroupName, workspaceName, resource, options = {
137
+ requestOptions: {},
138
+ }) {
139
+ var _a, _b;
140
+ const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OnlineExperimentation/workspaces/{workspaceName}{?api%2Dversion}", {
141
+ subscriptionId: context.subscriptionId,
142
+ resourceGroupName: resourceGroupName,
143
+ workspaceName: workspaceName,
144
+ "api%2Dversion": context.apiVersion,
145
+ }, {
146
+ allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
147
+ });
148
+ return context.path(path).put(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: onlineExperimentWorkspaceSerializer(resource) }));
149
+ }
150
+ export async function _createOrUpdateDeserialize(result) {
151
+ const expectedStatuses = ["200", "201"];
152
+ if (!expectedStatuses.includes(result.status)) {
153
+ const error = createRestError(result);
154
+ error.details = errorResponseDeserializer(result.body);
155
+ throw error;
156
+ }
157
+ return onlineExperimentWorkspaceDeserializer(result.body);
158
+ }
159
+ /** Create an experiment workspace, or update an existing workspace */
160
+ export function createOrUpdate(context, resourceGroupName, workspaceName, resource, options = {
161
+ requestOptions: {},
162
+ }) {
163
+ return getLongRunningPoller(context, _createOrUpdateDeserialize, ["200", "201"], {
164
+ updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
165
+ abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
166
+ getInitialResponse: () => _createOrUpdateSend(context, resourceGroupName, workspaceName, resource, options),
167
+ resourceLocationConfig: "azure-async-operation",
168
+ });
169
+ }
170
+ export function _getSend(context, resourceGroupName, workspaceName, options = { requestOptions: {} }) {
171
+ var _a, _b;
172
+ const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OnlineExperimentation/workspaces/{workspaceName}{?api%2Dversion}", {
173
+ subscriptionId: context.subscriptionId,
174
+ resourceGroupName: resourceGroupName,
175
+ workspaceName: workspaceName,
176
+ "api%2Dversion": context.apiVersion,
177
+ }, {
178
+ allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
179
+ });
180
+ return context.path(path).get(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
181
+ }
182
+ export async function _getDeserialize(result) {
183
+ const expectedStatuses = ["200"];
184
+ if (!expectedStatuses.includes(result.status)) {
185
+ const error = createRestError(result);
186
+ error.details = errorResponseDeserializer(result.body);
187
+ throw error;
188
+ }
189
+ return onlineExperimentWorkspaceDeserializer(result.body);
190
+ }
191
+ /** Gets an experiment workspace */
192
+ export async function get(context, resourceGroupName, workspaceName, options = { requestOptions: {} }) {
193
+ const result = await _getSend(context, resourceGroupName, workspaceName, options);
194
+ return _getDeserialize(result);
195
+ }
196
+ //# 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;AAGlC,OAAO,EACL,yBAAyB,EAEzB,mCAAmC,EACnC,qCAAqC,EAErC,gDAAgD,GACjD,MAAM,wB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AK,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,4 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ export {};
4
+ //# 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,36 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ import { __rest } from "tslib";
4
+ import { logger } from "../logger.js";
5
+ import { getClient } from "@azure-rest/core-client";
6
+ /** Microsoft.OnlineExperimentation Resource Provider management API. */
7
+ export function createOnlineExperimentation(credential, subscriptionId, options = {}) {
8
+ var _a, _b, _c, _d, _e, _f, _g, _h;
9
+ const endpointUrl = (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUrl) !== null && _b !== void 0 ? _b : "https://management.azure.com";
10
+ const prefixFromOptions = (_c = options === null || options === void 0 ? void 0 : options.userAgentOptions) === null || _c === void 0 ? void 0 : _c.userAgentPrefix;
11
+ const userAgentInfo = `azsdk-js-arm-onlineexperimentation/1.0.0-beta.1`;
12
+ const userAgentPrefix = prefixFromOptions
13
+ ? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}`
14
+ : `azsdk-js-api ${userAgentInfo}`;
15
+ 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.info }, credentials: {
16
+ scopes: (_g = (_f = options.credentials) === null || _f === void 0 ? void 0 : _f.scopes) !== null && _g !== void 0 ? _g : [`${endpointUrl}/.default`],
17
+ } }), { apiVersion: _ } = _j, updatedOptions = __rest(_j, ["apiVersion"]);
18
+ const clientContext = getClient(endpointUrl, credential, updatedOptions);
19
+ clientContext.pipeline.removePolicy({ name: "ApiVersionPolicy" });
20
+ const apiVersion = (_h = options.apiVersion) !== null && _h !== void 0 ? _h : "2025-05-31-preview";
21
+ clientContext.pipeline.addPolicy({
22
+ name: "ClientApiVersionPolicy",
23
+ sendRequest: (req, next) => {
24
+ // Use the apiVersion defined in request url directly
25
+ // Append one if there is no apiVersion and we have one at client options
26
+ const url = new URL(req.url);
27
+ if (!url.searchParams.get("api-version")) {
28
+ req.url = `${req.url}${Array.from(url.searchParams.keys()).length > 0 ? "&" : "?"}api-version=${apiVersion}`;
29
+ }
30
+ return next(req);
31
+ },
32
+ });
33
+ return Object.assign(Object.assign({}, clientContext), { apiVersion,
34
+ subscriptionId });
35
+ }
36
+ //# 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;;AAElC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAEtC,OAAO,EAAyB,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAmB3E,wEAAwE;AACxE,MAAM,UAAU,2BAA2B,CAC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CAAC,GAAG,CAAC,CAAC;YAC7B,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,aAAa,CAAC,EAAE,CAAC;gBACzC,GAAG,CAAC,GAAG,GAAG,GAAG,GAAG,CAAC,GAAG,GAClB,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GACzD,eAAe,UAAU,EAAE,CAAC;YAC9B,CAAC;YAED,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC;QACnB,CAAC;KACF,CAAC,CAAC;IACH,OAAO,gCACF,aAAa,KAChB,UAAU;QACV,cAAc,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,4 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ export { list } from "./operations.js";
4
+ //# 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,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport { list } from \"./operations.js\";\nexport { OperationsListOptionalParams } from \"./options.js\";\n"]}