@azure/arm-arizeaiobservabilityeval 1.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (334) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/LICENSE +21 -0
  3. package/README.md +114 -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/observabilityEvalContext.d.ts +17 -0
  9. package/dist/browser/api/observabilityEvalContext.d.ts.map +1 -0
  10. package/dist/browser/api/observabilityEvalContext.js +35 -0
  11. package/dist/browser/api/observabilityEvalContext.js.map +1 -0
  12. package/dist/browser/api/operations/index.d.ts +3 -0
  13. package/dist/browser/api/operations/index.d.ts.map +1 -0
  14. package/dist/browser/api/operations/index.js +4 -0
  15. package/dist/browser/api/operations/index.js.map +1 -0
  16. package/dist/browser/api/operations/operations.d.ts +10 -0
  17. package/dist/browser/api/operations/operations.d.ts.map +1 -0
  18. package/dist/browser/api/operations/operations.js +29 -0
  19. package/dist/browser/api/operations/operations.js.map +1 -0
  20. package/dist/browser/api/operations/options.d.ts +5 -0
  21. package/dist/browser/api/operations/options.d.ts.map +1 -0
  22. package/dist/browser/api/operations/options.js +4 -0
  23. package/dist/browser/api/operations/options.js.map +1 -0
  24. package/dist/browser/api/organizations/index.d.ts +3 -0
  25. package/dist/browser/api/organizations/index.d.ts.map +1 -0
  26. package/dist/browser/api/organizations/index.js +4 -0
  27. package/dist/browser/api/organizations/index.js.map +1 -0
  28. package/dist/browser/api/organizations/operations.d.ts +36 -0
  29. package/dist/browser/api/organizations/operations.d.ts.map +1 -0
  30. package/dist/browser/api/organizations/operations.js +180 -0
  31. package/dist/browser/api/organizations/operations.js.map +1 -0
  32. package/dist/browser/api/organizations/options.d.ts +24 -0
  33. package/dist/browser/api/organizations/options.d.ts.map +1 -0
  34. package/dist/browser/api/organizations/options.js +4 -0
  35. package/dist/browser/api/organizations/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/operations/index.d.ts +11 -0
  41. package/dist/browser/classic/operations/index.d.ts.map +1 -0
  42. package/dist/browser/classic/operations/index.js +12 -0
  43. package/dist/browser/classic/operations/index.js.map +1 -0
  44. package/dist/browser/classic/organizations/index.d.ts +27 -0
  45. package/dist/browser/classic/organizations/index.d.ts.map +1 -0
  46. package/dist/browser/classic/organizations/index.js +17 -0
  47. package/dist/browser/classic/organizations/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 +394 -0
  61. package/dist/browser/models/models.d.ts.map +1 -0
  62. package/dist/browser/models/models.js +379 -0
  63. package/dist/browser/models/models.js.map +1 -0
  64. package/dist/browser/observabilityEvalClient.d.ts +17 -0
  65. package/dist/browser/observabilityEvalClient.d.ts.map +1 -0
  66. package/dist/browser/observabilityEvalClient.js +19 -0
  67. package/dist/browser/observabilityEvalClient.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 +97 -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 +168 -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/observabilityEvalContext.d.ts +17 -0
  90. package/dist/commonjs/api/observabilityEvalContext.d.ts.map +1 -0
  91. package/dist/commonjs/api/observabilityEvalContext.js +38 -0
  92. package/dist/commonjs/api/observabilityEvalContext.js.map +1 -0
  93. package/dist/commonjs/api/operations/index.d.ts +3 -0
  94. package/dist/commonjs/api/operations/index.d.ts.map +1 -0
  95. package/dist/commonjs/api/operations/index.js +8 -0
  96. package/dist/commonjs/api/operations/index.js.map +1 -0
  97. package/dist/commonjs/api/operations/operations.d.ts +10 -0
  98. package/dist/commonjs/api/operations/operations.d.ts.map +1 -0
  99. package/dist/commonjs/api/operations/operations.js +34 -0
  100. package/dist/commonjs/api/operations/operations.js.map +1 -0
  101. package/dist/commonjs/api/operations/options.d.ts +5 -0
  102. package/dist/commonjs/api/operations/options.d.ts.map +1 -0
  103. package/dist/commonjs/api/operations/options.js +5 -0
  104. package/dist/commonjs/api/operations/options.js.map +1 -0
  105. package/dist/commonjs/api/organizations/index.d.ts +3 -0
  106. package/dist/commonjs/api/organizations/index.d.ts.map +1 -0
  107. package/dist/commonjs/api/organizations/index.js +13 -0
  108. package/dist/commonjs/api/organizations/index.js.map +1 -0
  109. package/dist/commonjs/api/organizations/operations.d.ts +36 -0
  110. package/dist/commonjs/api/organizations/operations.d.ts.map +1 -0
  111. package/dist/commonjs/api/organizations/operations.js +200 -0
  112. package/dist/commonjs/api/organizations/operations.js.map +1 -0
  113. package/dist/commonjs/api/organizations/options.d.ts +24 -0
  114. package/dist/commonjs/api/organizations/options.d.ts.map +1 -0
  115. package/dist/commonjs/api/organizations/options.js +5 -0
  116. package/dist/commonjs/api/organizations/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/operations/index.d.ts +11 -0
  122. package/dist/commonjs/classic/operations/index.d.ts.map +1 -0
  123. package/dist/commonjs/classic/operations/index.js +15 -0
  124. package/dist/commonjs/classic/operations/index.js.map +1 -0
  125. package/dist/commonjs/classic/organizations/index.d.ts +27 -0
  126. package/dist/commonjs/classic/organizations/index.d.ts.map +1 -0
  127. package/dist/commonjs/classic/organizations/index.js +20 -0
  128. package/dist/commonjs/classic/organizations/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 +394 -0
  142. package/dist/commonjs/models/models.d.ts.map +1 -0
  143. package/dist/commonjs/models/models.js +419 -0
  144. package/dist/commonjs/models/models.js.map +1 -0
  145. package/dist/commonjs/observabilityEvalClient.d.ts +17 -0
  146. package/dist/commonjs/observabilityEvalClient.d.ts.map +1 -0
  147. package/dist/commonjs/observabilityEvalClient.js +23 -0
  148. package/dist/commonjs/observabilityEvalClient.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 +100 -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 +171 -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/observabilityEvalContext.d.ts +17 -0
  172. package/dist/esm/api/observabilityEvalContext.d.ts.map +1 -0
  173. package/dist/esm/api/observabilityEvalContext.js +35 -0
  174. package/dist/esm/api/observabilityEvalContext.js.map +1 -0
  175. package/dist/esm/api/operations/index.d.ts +3 -0
  176. package/dist/esm/api/operations/index.d.ts.map +1 -0
  177. package/dist/esm/api/operations/index.js +4 -0
  178. package/dist/esm/api/operations/index.js.map +1 -0
  179. package/dist/esm/api/operations/operations.d.ts +10 -0
  180. package/dist/esm/api/operations/operations.d.ts.map +1 -0
  181. package/dist/esm/api/operations/operations.js +29 -0
  182. package/dist/esm/api/operations/operations.js.map +1 -0
  183. package/dist/esm/api/operations/options.d.ts +5 -0
  184. package/dist/esm/api/operations/options.d.ts.map +1 -0
  185. package/dist/esm/api/operations/options.js +4 -0
  186. package/dist/esm/api/operations/options.js.map +1 -0
  187. package/dist/esm/api/organizations/index.d.ts +3 -0
  188. package/dist/esm/api/organizations/index.d.ts.map +1 -0
  189. package/dist/esm/api/organizations/index.js +4 -0
  190. package/dist/esm/api/organizations/index.js.map +1 -0
  191. package/dist/esm/api/organizations/operations.d.ts +36 -0
  192. package/dist/esm/api/organizations/operations.d.ts.map +1 -0
  193. package/dist/esm/api/organizations/operations.js +180 -0
  194. package/dist/esm/api/organizations/operations.js.map +1 -0
  195. package/dist/esm/api/organizations/options.d.ts +24 -0
  196. package/dist/esm/api/organizations/options.d.ts.map +1 -0
  197. package/dist/esm/api/organizations/options.js +4 -0
  198. package/dist/esm/api/organizations/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/operations/index.d.ts +11 -0
  204. package/dist/esm/classic/operations/index.d.ts.map +1 -0
  205. package/dist/esm/classic/operations/index.js +12 -0
  206. package/dist/esm/classic/operations/index.js.map +1 -0
  207. package/dist/esm/classic/organizations/index.d.ts +27 -0
  208. package/dist/esm/classic/organizations/index.d.ts.map +1 -0
  209. package/dist/esm/classic/organizations/index.js +17 -0
  210. package/dist/esm/classic/organizations/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 +394 -0
  224. package/dist/esm/models/models.d.ts.map +1 -0
  225. package/dist/esm/models/models.js +379 -0
  226. package/dist/esm/models/models.js.map +1 -0
  227. package/dist/esm/observabilityEvalClient.d.ts +17 -0
  228. package/dist/esm/observabilityEvalClient.d.ts.map +1 -0
  229. package/dist/esm/observabilityEvalClient.js +19 -0
  230. package/dist/esm/observabilityEvalClient.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 +97 -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 +168 -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/observabilityEvalContext.d.ts +17 -0
  253. package/dist/react-native/api/observabilityEvalContext.d.ts.map +1 -0
  254. package/dist/react-native/api/observabilityEvalContext.js +35 -0
  255. package/dist/react-native/api/observabilityEvalContext.js.map +1 -0
  256. package/dist/react-native/api/operations/index.d.ts +3 -0
  257. package/dist/react-native/api/operations/index.d.ts.map +1 -0
  258. package/dist/react-native/api/operations/index.js +4 -0
  259. package/dist/react-native/api/operations/index.js.map +1 -0
  260. package/dist/react-native/api/operations/operations.d.ts +10 -0
  261. package/dist/react-native/api/operations/operations.d.ts.map +1 -0
  262. package/dist/react-native/api/operations/operations.js +29 -0
  263. package/dist/react-native/api/operations/operations.js.map +1 -0
  264. package/dist/react-native/api/operations/options.d.ts +5 -0
  265. package/dist/react-native/api/operations/options.d.ts.map +1 -0
  266. package/dist/react-native/api/operations/options.js +4 -0
  267. package/dist/react-native/api/operations/options.js.map +1 -0
  268. package/dist/react-native/api/organizations/index.d.ts +3 -0
  269. package/dist/react-native/api/organizations/index.d.ts.map +1 -0
  270. package/dist/react-native/api/organizations/index.js +4 -0
  271. package/dist/react-native/api/organizations/index.js.map +1 -0
  272. package/dist/react-native/api/organizations/operations.d.ts +36 -0
  273. package/dist/react-native/api/organizations/operations.d.ts.map +1 -0
  274. package/dist/react-native/api/organizations/operations.js +180 -0
  275. package/dist/react-native/api/organizations/operations.js.map +1 -0
  276. package/dist/react-native/api/organizations/options.d.ts +24 -0
  277. package/dist/react-native/api/organizations/options.d.ts.map +1 -0
  278. package/dist/react-native/api/organizations/options.js +4 -0
  279. package/dist/react-native/api/organizations/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/operations/index.d.ts +11 -0
  285. package/dist/react-native/classic/operations/index.d.ts.map +1 -0
  286. package/dist/react-native/classic/operations/index.js +12 -0
  287. package/dist/react-native/classic/operations/index.js.map +1 -0
  288. package/dist/react-native/classic/organizations/index.d.ts +27 -0
  289. package/dist/react-native/classic/organizations/index.d.ts.map +1 -0
  290. package/dist/react-native/classic/organizations/index.js +17 -0
  291. package/dist/react-native/classic/organizations/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 +394 -0
  305. package/dist/react-native/models/models.d.ts.map +1 -0
  306. package/dist/react-native/models/models.js +379 -0
  307. package/dist/react-native/models/models.js.map +1 -0
  308. package/dist/react-native/observabilityEvalClient.d.ts +17 -0
  309. package/dist/react-native/observabilityEvalClient.d.ts.map +1 -0
  310. package/dist/react-native/observabilityEvalClient.js +19 -0
  311. package/dist/react-native/observabilityEvalClient.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 +97 -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 +168 -0
  328. package/dist/react-native/static-helpers/urlTemplate.js.map +1 -0
  329. package/package.json +220 -0
  330. package/review/arm-arizeaiobservabilityeval-api-operations.api.md +19 -0
  331. package/review/arm-arizeaiobservabilityeval-api-organizations.api.md +58 -0
  332. package/review/arm-arizeaiobservabilityeval-api.api.md +27 -0
  333. package/review/arm-arizeaiobservabilityeval-models.api.md +230 -0
  334. package/review/arm-arizeaiobservabilityeval.api.md +324 -0
@@ -0,0 +1,379 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ export function organizationResourceSerializer(item) {
4
+ return {
5
+ tags: item["tags"],
6
+ location: item["location"],
7
+ properties: !item["properties"]
8
+ ? item["properties"]
9
+ : organizationPropertiesSerializer(item["properties"]),
10
+ identity: !item["identity"]
11
+ ? item["identity"]
12
+ : managedServiceIdentitySerializer(item["identity"]),
13
+ };
14
+ }
15
+ export function organizationResourceDeserializer(item) {
16
+ return {
17
+ tags: item["tags"],
18
+ location: item["location"],
19
+ id: item["id"],
20
+ name: item["name"],
21
+ type: item["type"],
22
+ systemData: !item["systemData"]
23
+ ? item["systemData"]
24
+ : systemDataDeserializer(item["systemData"]),
25
+ properties: !item["properties"]
26
+ ? item["properties"]
27
+ : organizationPropertiesDeserializer(item["properties"]),
28
+ identity: !item["identity"]
29
+ ? item["identity"]
30
+ : managedServiceIdentityDeserializer(item["identity"]),
31
+ };
32
+ }
33
+ export function organizationPropertiesSerializer(item) {
34
+ return {
35
+ marketplace: marketplaceDetailsSerializer(item["marketplace"]),
36
+ user: userDetailsSerializer(item["user"]),
37
+ partnerProperties: !item["partnerProperties"]
38
+ ? item["partnerProperties"]
39
+ : partnerPropertiesSerializer(item["partnerProperties"]),
40
+ singleSignOnProperties: !item["singleSignOnProperties"]
41
+ ? item["singleSignOnProperties"]
42
+ : singleSignOnPropertiesV2Serializer(item["singleSignOnProperties"]),
43
+ };
44
+ }
45
+ export function organizationPropertiesDeserializer(item) {
46
+ return {
47
+ marketplace: marketplaceDetailsDeserializer(item["marketplace"]),
48
+ user: userDetailsDeserializer(item["user"]),
49
+ provisioningState: item["provisioningState"],
50
+ partnerProperties: !item["partnerProperties"]
51
+ ? item["partnerProperties"]
52
+ : partnerPropertiesDeserializer(item["partnerProperties"]),
53
+ singleSignOnProperties: !item["singleSignOnProperties"]
54
+ ? item["singleSignOnProperties"]
55
+ : singleSignOnPropertiesV2Deserializer(item["singleSignOnProperties"]),
56
+ };
57
+ }
58
+ export function marketplaceDetailsSerializer(item) {
59
+ return {
60
+ subscriptionId: item["subscriptionId"],
61
+ offerDetails: offerDetailsSerializer(item["offerDetails"]),
62
+ };
63
+ }
64
+ export function marketplaceDetailsDeserializer(item) {
65
+ return {
66
+ subscriptionId: item["subscriptionId"],
67
+ subscriptionStatus: item["subscriptionStatus"],
68
+ offerDetails: offerDetailsDeserializer(item["offerDetails"]),
69
+ };
70
+ }
71
+ /** Marketplace subscription status of a resource. */
72
+ export var KnownMarketplaceSubscriptionStatus;
73
+ (function (KnownMarketplaceSubscriptionStatus) {
74
+ /** Purchased but not yet activated */
75
+ KnownMarketplaceSubscriptionStatus["PendingFulfillmentStart"] = "PendingFulfillmentStart";
76
+ /** Marketplace subscription is activated */
77
+ KnownMarketplaceSubscriptionStatus["Subscribed"] = "Subscribed";
78
+ /** This state indicates that a customer's payment for the Marketplace service was not received */
79
+ KnownMarketplaceSubscriptionStatus["Suspended"] = "Suspended";
80
+ /** Customer has cancelled the subscription */
81
+ KnownMarketplaceSubscriptionStatus["Unsubscribed"] = "Unsubscribed";
82
+ })(KnownMarketplaceSubscriptionStatus || (KnownMarketplaceSubscriptionStatus = {}));
83
+ export function offerDetailsSerializer(item) {
84
+ return {
85
+ publisherId: item["publisherId"],
86
+ offerId: item["offerId"],
87
+ planId: item["planId"],
88
+ planName: item["planName"],
89
+ termUnit: item["termUnit"],
90
+ termId: item["termId"],
91
+ };
92
+ }
93
+ export function offerDetailsDeserializer(item) {
94
+ return {
95
+ publisherId: item["publisherId"],
96
+ offerId: item["offerId"],
97
+ planId: item["planId"],
98
+ planName: item["planName"],
99
+ termUnit: item["termUnit"],
100
+ termId: item["termId"],
101
+ };
102
+ }
103
+ export function userDetailsSerializer(item) {
104
+ return {
105
+ firstName: item["firstName"],
106
+ lastName: item["lastName"],
107
+ emailAddress: item["emailAddress"],
108
+ upn: item["upn"],
109
+ phoneNumber: item["phoneNumber"],
110
+ };
111
+ }
112
+ export function userDetailsDeserializer(item) {
113
+ return {
114
+ firstName: item["firstName"],
115
+ lastName: item["lastName"],
116
+ emailAddress: item["emailAddress"],
117
+ upn: item["upn"],
118
+ phoneNumber: item["phoneNumber"],
119
+ };
120
+ }
121
+ /** The provisioning state of a resource type. */
122
+ export var KnownResourceProvisioningState;
123
+ (function (KnownResourceProvisioningState) {
124
+ /** Resource has been created. */
125
+ KnownResourceProvisioningState["Succeeded"] = "Succeeded";
126
+ /** Resource creation failed. */
127
+ KnownResourceProvisioningState["Failed"] = "Failed";
128
+ /** Resource creation was canceled. */
129
+ KnownResourceProvisioningState["Canceled"] = "Canceled";
130
+ })(KnownResourceProvisioningState || (KnownResourceProvisioningState = {}));
131
+ export function partnerPropertiesSerializer(item) {
132
+ return { description: item["description"] };
133
+ }
134
+ export function partnerPropertiesDeserializer(item) {
135
+ return {
136
+ description: item["description"],
137
+ };
138
+ }
139
+ export function singleSignOnPropertiesV2Serializer(item) {
140
+ return {
141
+ type: item["type"],
142
+ state: item["state"],
143
+ enterpriseAppId: item["enterpriseAppId"],
144
+ url: item["url"],
145
+ aadDomains: !item["aadDomains"]
146
+ ? item["aadDomains"]
147
+ : item["aadDomains"].map((p) => {
148
+ return p;
149
+ }),
150
+ };
151
+ }
152
+ export function singleSignOnPropertiesV2Deserializer(item) {
153
+ return {
154
+ type: item["type"],
155
+ state: item["state"],
156
+ enterpriseAppId: item["enterpriseAppId"],
157
+ url: item["url"],
158
+ aadDomains: !item["aadDomains"]
159
+ ? item["aadDomains"]
160
+ : item["aadDomains"].map((p) => {
161
+ return p;
162
+ }),
163
+ };
164
+ }
165
+ /** Defines the type of Single Sign-On (SSO) mechanism being used */
166
+ export var KnownSingleSignOnType;
167
+ (function (KnownSingleSignOnType) {
168
+ /** Security Assertion Markup Language (SAML) based Single Sign-On */
169
+ KnownSingleSignOnType["Saml"] = "Saml";
170
+ /** OpenID Connect based Single Sign-On. */
171
+ KnownSingleSignOnType["OpenId"] = "OpenId";
172
+ })(KnownSingleSignOnType || (KnownSingleSignOnType = {}));
173
+ /** Various states of the SSO resource */
174
+ export var KnownSingleSignOnStates;
175
+ (function (KnownSingleSignOnStates) {
176
+ /** Initial state of the SSO resource */
177
+ KnownSingleSignOnStates["Initial"] = "Initial";
178
+ /** State of the SSO resource when it is enabled */
179
+ KnownSingleSignOnStates["Enable"] = "Enable";
180
+ /** State of the SSO resource when it is disabled */
181
+ KnownSingleSignOnStates["Disable"] = "Disable";
182
+ })(KnownSingleSignOnStates || (KnownSingleSignOnStates = {}));
183
+ export function managedServiceIdentitySerializer(item) {
184
+ return {
185
+ type: item["type"],
186
+ userAssignedIdentities: item["userAssignedIdentities"],
187
+ };
188
+ }
189
+ export function managedServiceIdentityDeserializer(item) {
190
+ return {
191
+ principalId: item["principalId"],
192
+ tenantId: item["tenantId"],
193
+ type: item["type"],
194
+ userAssignedIdentities: item["userAssignedIdentities"],
195
+ };
196
+ }
197
+ /** Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). */
198
+ export var KnownManagedServiceIdentityType;
199
+ (function (KnownManagedServiceIdentityType) {
200
+ /** No managed identity. */
201
+ KnownManagedServiceIdentityType["None"] = "None";
202
+ /** System assigned managed identity. */
203
+ KnownManagedServiceIdentityType["SystemAssigned"] = "SystemAssigned";
204
+ /** User assigned managed identity. */
205
+ KnownManagedServiceIdentityType["UserAssigned"] = "UserAssigned";
206
+ /** System and user assigned managed identity. */
207
+ KnownManagedServiceIdentityType["SystemAssignedUserAssigned"] = "SystemAssigned,UserAssigned";
208
+ })(KnownManagedServiceIdentityType || (KnownManagedServiceIdentityType = {}));
209
+ export function userAssignedIdentitySerializer(item) {
210
+ return item;
211
+ }
212
+ export function userAssignedIdentityDeserializer(item) {
213
+ return {
214
+ clientId: item["clientId"],
215
+ principalId: item["principalId"],
216
+ };
217
+ }
218
+ export function trackedResourceSerializer(item) {
219
+ return { tags: item["tags"], location: item["location"] };
220
+ }
221
+ export function trackedResourceDeserializer(item) {
222
+ return {
223
+ id: item["id"],
224
+ name: item["name"],
225
+ type: item["type"],
226
+ systemData: !item["systemData"]
227
+ ? item["systemData"]
228
+ : systemDataDeserializer(item["systemData"]),
229
+ tags: item["tags"],
230
+ location: item["location"],
231
+ };
232
+ }
233
+ export function resourceSerializer(item) {
234
+ return item;
235
+ }
236
+ export function resourceDeserializer(item) {
237
+ return {
238
+ id: item["id"],
239
+ name: item["name"],
240
+ type: item["type"],
241
+ systemData: !item["systemData"]
242
+ ? item["systemData"]
243
+ : systemDataDeserializer(item["systemData"]),
244
+ };
245
+ }
246
+ export function systemDataDeserializer(item) {
247
+ return {
248
+ createdBy: item["createdBy"],
249
+ createdByType: item["createdByType"],
250
+ createdAt: !item["createdAt"] ? item["createdAt"] : new Date(item["createdAt"]),
251
+ lastModifiedBy: item["lastModifiedBy"],
252
+ lastModifiedByType: item["lastModifiedByType"],
253
+ lastModifiedAt: !item["lastModifiedAt"]
254
+ ? item["lastModifiedAt"]
255
+ : new Date(item["lastModifiedAt"]),
256
+ };
257
+ }
258
+ /** The kind of entity that created the resource. */
259
+ export var KnownCreatedByType;
260
+ (function (KnownCreatedByType) {
261
+ /** The entity was created by a user. */
262
+ KnownCreatedByType["User"] = "User";
263
+ /** The entity was created by an application. */
264
+ KnownCreatedByType["Application"] = "Application";
265
+ /** The entity was created by a managed identity. */
266
+ KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
267
+ /** The entity was created by a key. */
268
+ KnownCreatedByType["Key"] = "Key";
269
+ })(KnownCreatedByType || (KnownCreatedByType = {}));
270
+ export function errorResponseDeserializer(item) {
271
+ return {
272
+ error: !item["error"] ? item["error"] : errorDetailDeserializer(item["error"]),
273
+ };
274
+ }
275
+ export function errorDetailDeserializer(item) {
276
+ return {
277
+ code: item["code"],
278
+ message: item["message"],
279
+ target: item["target"],
280
+ details: !item["details"] ? item["details"] : errorDetailArrayDeserializer(item["details"]),
281
+ additionalInfo: !item["additionalInfo"]
282
+ ? item["additionalInfo"]
283
+ : errorAdditionalInfoArrayDeserializer(item["additionalInfo"]),
284
+ };
285
+ }
286
+ export function errorDetailArrayDeserializer(result) {
287
+ return result.map((item) => {
288
+ return errorDetailDeserializer(item);
289
+ });
290
+ }
291
+ export function errorAdditionalInfoArrayDeserializer(result) {
292
+ return result.map((item) => {
293
+ return errorAdditionalInfoDeserializer(item);
294
+ });
295
+ }
296
+ export function errorAdditionalInfoDeserializer(item) {
297
+ return {
298
+ type: item["type"],
299
+ info: !item["info"] ? item["info"] : _errorAdditionalInfoInfoDeserializer(item["info"]),
300
+ };
301
+ }
302
+ export function _errorAdditionalInfoInfoDeserializer(item) {
303
+ return item;
304
+ }
305
+ export function organizationResourceUpdateSerializer(item) {
306
+ return {
307
+ tags: item["tags"],
308
+ identity: !item["identity"]
309
+ ? item["identity"]
310
+ : managedServiceIdentitySerializer(item["identity"]),
311
+ };
312
+ }
313
+ export function _organizationResourceListResultDeserializer(item) {
314
+ return {
315
+ value: organizationResourceArrayDeserializer(item["value"]),
316
+ nextLink: item["nextLink"],
317
+ };
318
+ }
319
+ export function organizationResourceArraySerializer(result) {
320
+ return result.map((item) => {
321
+ return organizationResourceSerializer(item);
322
+ });
323
+ }
324
+ export function organizationResourceArrayDeserializer(result) {
325
+ return result.map((item) => {
326
+ return organizationResourceDeserializer(item);
327
+ });
328
+ }
329
+ export function _operationListResultDeserializer(item) {
330
+ return {
331
+ value: operationArrayDeserializer(item["value"]),
332
+ nextLink: item["nextLink"],
333
+ };
334
+ }
335
+ export function operationArrayDeserializer(result) {
336
+ return result.map((item) => {
337
+ return operationDeserializer(item);
338
+ });
339
+ }
340
+ export function operationDeserializer(item) {
341
+ return {
342
+ name: item["name"],
343
+ isDataAction: item["isDataAction"],
344
+ display: !item["display"] ? item["display"] : operationDisplayDeserializer(item["display"]),
345
+ origin: item["origin"],
346
+ actionType: item["actionType"],
347
+ };
348
+ }
349
+ export function operationDisplayDeserializer(item) {
350
+ return {
351
+ provider: item["provider"],
352
+ resource: item["resource"],
353
+ operation: item["operation"],
354
+ description: item["description"],
355
+ };
356
+ }
357
+ /** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system" */
358
+ export var KnownOrigin;
359
+ (function (KnownOrigin) {
360
+ /** Indicates the operation is initiated by a user. */
361
+ KnownOrigin["User"] = "user";
362
+ /** Indicates the operation is initiated by a system. */
363
+ KnownOrigin["System"] = "system";
364
+ /** Indicates the operation is initiated by a user or system. */
365
+ KnownOrigin["UserSystem"] = "user,system";
366
+ })(KnownOrigin || (KnownOrigin = {}));
367
+ /** Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. */
368
+ export var KnownActionType;
369
+ (function (KnownActionType) {
370
+ /** Actions are for internal-only APIs. */
371
+ KnownActionType["Internal"] = "Internal";
372
+ })(KnownActionType || (KnownActionType = {}));
373
+ /** The available API versions. */
374
+ export var KnownVersions;
375
+ (function (KnownVersions) {
376
+ /** 2024-02-01-preview version */
377
+ KnownVersions["V20241001Preview"] = "2024-10-01-preview";
378
+ })(KnownVersions || (KnownVersions = {}));
379
+ //# sourceMappingURL=models.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/models/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAUlC,MAAM,UAAU,8BAA8B,CAAC,IAA0B;IACvE,OAAO;QACL,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC;QAClB,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC;QAC1B,UAAU,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC;YAC7B,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC;YACpB,CAAC,CAAC,gCAAgC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QACxD,QAAQ,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC;YACzB,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC;YAClB,CAAC,CAAC,gCAAgC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;KACvD,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,gCAAgC,CAAC,IAAS;IACxD,OAAO;QACL,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC;QAClB,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC;QAC1B,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC;QACd,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC;QAClB,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC;QAClB,UAAU,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC;YAC7B,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC;YACpB,CAAC,CAAC,sBAAsB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAC9C,UAAU,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC;YAC7B,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC;YAC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IAAY,WAOX;AAPD,WAAY,WAAW;IACrB,sDAAsD;IACtD,4BAAa,CAAA;IACb,wDAAwD;IACxD,gCAAiB,CAAA;IACjB,gEAAgE;IAChE,yCAA0B,CAAA;AAC5B,CAAC,EAPW,WAAW,KAAX,WAAW,QAOtB;AAaD,gHAAgH;AAChH,MAAM,CAAN,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,0CAA0C;IAC1C,wCAAqB,CAAA;AACvB,CAAC,EAHW,eAAe,KAAf,eAAe,QAG1B;AAWD,kCAAkC;AAClC,MAAM,CAAN,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,iCAAiC;IACjC,wDAAuC,CAAA;AACzC,CAAC,EAHW,aAAa,KAAb,aAAa,QAGxB","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/** Concrete tracked resource types can be created by aliasing this type using a specific property type. */\nexport interface OrganizationResource extends TrackedResource {\n /** The resource-specific properties for this resource. */\n properties?: OrganizationProperties;\n /** The managed service identities assigned to this resource. */\n identity?: ManagedServiceIdentity;\n}\n\nexport function organizationResourceSerializer(item: OrganizationResource): any {\n return {\n tags: item[\"tags\"],\n location: item[\"location\"],\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : organizationPropertiesSerializer(item[\"properties\"]),\n identity: !item[\"identity\"]\n ? item[\"identity\"]\n : managedServiceIdentitySerializer(item[\"identity\"]),\n };\n}\n\nexport function organizationResourceDeserializer(item: any): OrganizationResource {\n return {\n tags: item[\"tags\"],\n location: item[\"location\"],\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : organizationPropertiesDeserializer(item[\"properties\"]),\n identity: !item[\"identity\"]\n ? item[\"identity\"]\n : managedServiceIdentityDeserializer(item[\"identity\"]),\n };\n}\n\n/** Properties specific to Organization */\nexport interface OrganizationProperties {\n /** Marketplace details of the resource. */\n marketplace: MarketplaceDetails;\n /** Details of the user. */\n user: UserDetails;\n /** Provisioning state of the resource. */\n readonly provisioningState?: ResourceProvisioningState;\n /** partner properties */\n partnerProperties?: PartnerProperties;\n /** Single sign-on properties */\n singleSignOnProperties?: SingleSignOnPropertiesV2;\n}\n\nexport function organizationPropertiesSerializer(item: OrganizationProperties): any {\n return {\n marketplace: marketplaceDetailsSerializer(item[\"marketplace\"]),\n user: userDetailsSerializer(item[\"user\"]),\n partnerProperties: !item[\"partnerProperties\"]\n ? item[\"partnerProperties\"]\n : partnerPropertiesSerializer(item[\"partnerProperties\"]),\n singleSignOnProperties: !item[\"singleSignOnProperties\"]\n ? item[\"singleSignOnProperties\"]\n : singleSignOnPropertiesV2Serializer(item[\"singleSignOnProperties\"]),\n };\n}\n\nexport function organizationPropertiesDeserializer(item: any): OrganizationProperties {\n return {\n marketplace: marketplaceDetailsDeserializer(item[\"marketplace\"]),\n user: userDetailsDeserializer(item[\"user\"]),\n provisioningState: item[\"provisioningState\"],\n partnerProperties: !item[\"partnerProperties\"]\n ? item[\"partnerProperties\"]\n : partnerPropertiesDeserializer(item[\"partnerProperties\"]),\n singleSignOnProperties: !item[\"singleSignOnProperties\"]\n ? item[\"singleSignOnProperties\"]\n : singleSignOnPropertiesV2Deserializer(item[\"singleSignOnProperties\"]),\n };\n}\n\n/** Marketplace details for an organization */\nexport interface MarketplaceDetails {\n /** Azure subscription id for the the marketplace offer is purchased from */\n subscriptionId?: string;\n /** Marketplace subscription status */\n readonly subscriptionStatus?: MarketplaceSubscriptionStatus;\n /** Offer details for the marketplace that is selected by the user */\n offerDetails: OfferDetails;\n}\n\nexport function marketplaceDetailsSerializer(item: MarketplaceDetails): any {\n return {\n subscriptionId: item[\"subscriptionId\"],\n offerDetails: offerDetailsSerializer(item[\"offerDetails\"]),\n };\n}\n\nexport function marketplaceDetailsDeserializer(item: any): MarketplaceDetails {\n return {\n subscriptionId: item[\"subscriptionId\"],\n subscriptionStatus: item[\"subscriptionStatus\"],\n offerDetails: offerDetailsDeserializer(item[\"offerDetails\"]),\n };\n}\n\n/** Marketplace subscription status of a resource. */\nexport enum KnownMarketplaceSubscriptionStatus {\n /** Purchased but not yet activated */\n PendingFulfillmentStart = \"PendingFulfillmentStart\",\n /** Marketplace subscription is activated */\n Subscribed = \"Subscribed\",\n /** This state indicates that a customer's payment for the Marketplace service was not received */\n Suspended = \"Suspended\",\n /** Customer has cancelled the subscription */\n Unsubscribed = \"Unsubscribed\",\n}\n\n/**\n * Marketplace subscription status of a resource. \\\n * {@link KnownMarketplaceSubscriptionStatus} can be used interchangeably with MarketplaceSubscriptionStatus,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **PendingFulfillmentStart**: Purchased but not yet activated \\\n * **Subscribed**: Marketplace subscription is activated \\\n * **Suspended**: This state indicates that a customer's payment for the Marketplace service was not received \\\n * **Unsubscribed**: Customer has cancelled the subscription\n */\nexport type MarketplaceSubscriptionStatus = string;\n\n/** Offer details for the marketplace that is selected by the user */\nexport interface OfferDetails {\n /** Publisher Id for the marketplace offer */\n publisherId: string;\n /** Offer Id for the marketplace offer */\n offerId: string;\n /** Plan Id for the marketplace offer */\n planId: string;\n /** Plan Name for the marketplace offer */\n planName?: string;\n /** Plan Display Name for the marketplace offer */\n termUnit?: string;\n /** Plan Display Name for the marketplace offer */\n termId?: string;\n}\n\nexport function offerDetailsSerializer(item: OfferDetails): any {\n return {\n publisherId: item[\"publisherId\"],\n offerId: item[\"offerId\"],\n planId: item[\"planId\"],\n planName: item[\"planName\"],\n termUnit: item[\"termUnit\"],\n termId: item[\"termId\"],\n };\n}\n\nexport function offerDetailsDeserializer(item: any): OfferDetails {\n return {\n publisherId: item[\"publisherId\"],\n offerId: item[\"offerId\"],\n planId: item[\"planId\"],\n planName: item[\"planName\"],\n termUnit: item[\"termUnit\"],\n termId: item[\"termId\"],\n };\n}\n\n/** User details for an organization */\nexport interface UserDetails {\n /** First name of the user */\n firstName?: string;\n /** Last name of the user */\n lastName?: string;\n /** Email address of the user */\n emailAddress?: string;\n /** User's principal name */\n upn?: string;\n /** User's phone number */\n phoneNumber?: string;\n}\n\nexport function userDetailsSerializer(item: UserDetails): any {\n return {\n firstName: item[\"firstName\"],\n lastName: item[\"lastName\"],\n emailAddress: item[\"emailAddress\"],\n upn: item[\"upn\"],\n phoneNumber: item[\"phoneNumber\"],\n };\n}\n\nexport function userDetailsDeserializer(item: any): UserDetails {\n return {\n firstName: item[\"firstName\"],\n lastName: item[\"lastName\"],\n emailAddress: item[\"emailAddress\"],\n upn: item[\"upn\"],\n phoneNumber: item[\"phoneNumber\"],\n };\n}\n\n/** The provisioning state of a resource type. */\nexport enum KnownResourceProvisioningState {\n /** Resource has been created. */\n Succeeded = \"Succeeded\",\n /** Resource creation failed. */\n Failed = \"Failed\",\n /** Resource creation was canceled. */\n Canceled = \"Canceled\",\n}\n\n/**\n * The provisioning state of a resource type. \\\n * {@link KnownResourceProvisioningState} can be used interchangeably with ResourceProvisioningState,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Succeeded**: Resource has been created. \\\n * **Failed**: Resource creation failed. \\\n * **Canceled**: Resource creation was canceled.\n */\nexport type ResourceProvisioningState = string;\n\n/** Partner's specific Properties */\nexport interface PartnerProperties {\n /** Description of the Organization's purpose */\n description: string;\n}\n\nexport function partnerPropertiesSerializer(item: PartnerProperties): any {\n return { description: item[\"description\"] };\n}\n\nexport function partnerPropertiesDeserializer(item: any): PartnerProperties {\n return {\n description: item[\"description\"],\n };\n}\n\n/** Properties specific to Single Sign On Resource */\nexport interface SingleSignOnPropertiesV2 {\n /** Type of Single Sign-On mechanism being used */\n type: SingleSignOnType;\n /** State of the Single Sign On for the resource */\n state?: SingleSignOnStates;\n /** AAD enterprise application Id used to setup SSO */\n enterpriseAppId?: string;\n /** URL for SSO to be used by the partner to redirect the user to their system */\n url?: string;\n /** List of AAD domains fetched from Microsoft Graph for user. */\n aadDomains?: string[];\n}\n\nexport function singleSignOnPropertiesV2Serializer(item: SingleSignOnPropertiesV2): any {\n return {\n type: item[\"type\"],\n state: item[\"state\"],\n enterpriseAppId: item[\"enterpriseAppId\"],\n url: item[\"url\"],\n aadDomains: !item[\"aadDomains\"]\n ? item[\"aadDomains\"]\n : item[\"aadDomains\"].map((p: any) => {\n return p;\n }),\n };\n}\n\nexport function singleSignOnPropertiesV2Deserializer(item: any): SingleSignOnPropertiesV2 {\n return {\n type: item[\"type\"],\n state: item[\"state\"],\n enterpriseAppId: item[\"enterpriseAppId\"],\n url: item[\"url\"],\n aadDomains: !item[\"aadDomains\"]\n ? item[\"aadDomains\"]\n : item[\"aadDomains\"].map((p: any) => {\n return p;\n }),\n };\n}\n\n/** Defines the type of Single Sign-On (SSO) mechanism being used */\nexport enum KnownSingleSignOnType {\n /** Security Assertion Markup Language (SAML) based Single Sign-On */\n Saml = \"Saml\",\n /** OpenID Connect based Single Sign-On. */\n OpenId = \"OpenId\",\n}\n\n/**\n * Defines the type of Single Sign-On (SSO) mechanism being used \\\n * {@link KnownSingleSignOnType} can be used interchangeably with SingleSignOnType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Saml**: Security Assertion Markup Language (SAML) based Single Sign-On \\\n * **OpenId**: OpenID Connect based Single Sign-On.\n */\nexport type SingleSignOnType = string;\n\n/** Various states of the SSO resource */\nexport enum KnownSingleSignOnStates {\n /** Initial state of the SSO resource */\n Initial = \"Initial\",\n /** State of the SSO resource when it is enabled */\n Enable = \"Enable\",\n /** State of the SSO resource when it is disabled */\n Disable = \"Disable\",\n}\n\n/**\n * Various states of the SSO resource \\\n * {@link KnownSingleSignOnStates} can be used interchangeably with SingleSignOnStates,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Initial**: Initial state of the SSO resource \\\n * **Enable**: State of the SSO resource when it is enabled \\\n * **Disable**: State of the SSO resource when it is disabled\n */\nexport type SingleSignOnStates = string;\n\n/** Managed service identity (system assigned and/or user assigned identities) */\nexport interface ManagedServiceIdentity {\n /** The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. */\n readonly principalId?: string;\n /** The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. */\n readonly tenantId?: string;\n /** The type of managed identity assigned to this resource. */\n type: ManagedServiceIdentityType;\n /** The identities assigned to this resource by the user. */\n userAssignedIdentities?: Record<string, UserAssignedIdentity | null>;\n}\n\nexport function managedServiceIdentitySerializer(item: ManagedServiceIdentity): any {\n return {\n type: item[\"type\"],\n userAssignedIdentities: item[\"userAssignedIdentities\"],\n };\n}\n\nexport function managedServiceIdentityDeserializer(item: any): ManagedServiceIdentity {\n return {\n principalId: item[\"principalId\"],\n tenantId: item[\"tenantId\"],\n type: item[\"type\"],\n userAssignedIdentities: item[\"userAssignedIdentities\"],\n };\n}\n\n/** Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). */\nexport enum KnownManagedServiceIdentityType {\n /** No managed identity. */\n None = \"None\",\n /** System assigned managed identity. */\n SystemAssigned = \"SystemAssigned\",\n /** User assigned managed identity. */\n UserAssigned = \"UserAssigned\",\n /** System and user assigned managed identity. */\n SystemAssignedUserAssigned = \"SystemAssigned,UserAssigned\",\n}\n\n/**\n * Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). \\\n * {@link KnownManagedServiceIdentityType} can be used interchangeably with ManagedServiceIdentityType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **None**: No managed identity. \\\n * **SystemAssigned**: System assigned managed identity. \\\n * **UserAssigned**: User assigned managed identity. \\\n * **SystemAssigned,UserAssigned**: System and user assigned managed identity.\n */\nexport type ManagedServiceIdentityType = string;\n\n/** User assigned identity properties */\nexport interface UserAssignedIdentity {\n /** The client ID of the assigned identity. */\n readonly clientId?: string;\n /** The principal ID of the assigned identity. */\n readonly principalId?: string;\n}\n\nexport function userAssignedIdentitySerializer(item: UserAssignedIdentity): any {\n return item;\n}\n\nexport function userAssignedIdentityDeserializer(item: any): UserAssignedIdentity {\n return {\n clientId: item[\"clientId\"],\n principalId: item[\"principalId\"],\n };\n}\n\n/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */\nexport interface TrackedResource extends Resource {\n /** Resource tags. */\n tags?: Record<string, string>;\n /** The geo-location where the resource lives */\n location: string;\n}\n\nexport function trackedResourceSerializer(item: TrackedResource): any {\n return { tags: item[\"tags\"], location: item[\"location\"] };\n}\n\nexport function trackedResourceDeserializer(item: any): TrackedResource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n tags: item[\"tags\"],\n location: item[\"location\"],\n };\n}\n\n/** Common fields that are returned in the response for all Azure Resource Manager resources */\nexport interface Resource {\n /** Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} */\n readonly id?: string;\n /** The name of the resource */\n readonly name?: string;\n /** The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or \"Microsoft.Storage/storageAccounts\" */\n readonly type?: string;\n /** Azure Resource Manager metadata containing createdBy and modifiedBy information. */\n readonly systemData?: SystemData;\n}\n\nexport function resourceSerializer(item: Resource): any {\n return item;\n}\n\nexport function resourceDeserializer(item: any): Resource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n };\n}\n\n/** Metadata pertaining to creation and last modification of the resource. */\nexport interface SystemData {\n /** The identity that created the resource. */\n createdBy?: string;\n /** The type of identity that created the resource. */\n createdByType?: CreatedByType;\n /** The timestamp of resource creation (UTC). */\n createdAt?: Date;\n /** The identity that last modified the resource. */\n lastModifiedBy?: string;\n /** The type of identity that last modified the resource. */\n lastModifiedByType?: CreatedByType;\n /** The timestamp of resource last modification (UTC) */\n lastModifiedAt?: Date;\n}\n\nexport function systemDataDeserializer(item: any): SystemData {\n return {\n createdBy: item[\"createdBy\"],\n createdByType: item[\"createdByType\"],\n createdAt: !item[\"createdAt\"] ? item[\"createdAt\"] : new Date(item[\"createdAt\"]),\n lastModifiedBy: item[\"lastModifiedBy\"],\n lastModifiedByType: item[\"lastModifiedByType\"],\n lastModifiedAt: !item[\"lastModifiedAt\"]\n ? item[\"lastModifiedAt\"]\n : new Date(item[\"lastModifiedAt\"]),\n };\n}\n\n/** The kind of entity that created the resource. */\nexport enum KnownCreatedByType {\n /** The entity was created by a user. */\n User = \"User\",\n /** The entity was created by an application. */\n Application = \"Application\",\n /** The entity was created by a managed identity. */\n ManagedIdentity = \"ManagedIdentity\",\n /** The entity was created by a key. */\n Key = \"Key\",\n}\n\n/**\n * The kind of entity that created the resource. \\\n * {@link KnowncreatedByType} can be used interchangeably with createdByType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **User**: The entity was created by a user. \\\n * **Application**: The entity was created by an application. \\\n * **ManagedIdentity**: The entity was created by a managed identity. \\\n * **Key**: The entity was created by a key.\n */\nexport type CreatedByType = string;\n\n/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. */\nexport interface ErrorResponse {\n /** The error object. */\n error?: ErrorDetail;\n}\n\nexport function errorResponseDeserializer(item: any): ErrorResponse {\n return {\n error: !item[\"error\"] ? item[\"error\"] : errorDetailDeserializer(item[\"error\"]),\n };\n}\n\n/** The error detail. */\nexport interface ErrorDetail {\n /** The error code. */\n readonly code?: string;\n /** The error message. */\n readonly message?: string;\n /** The error target. */\n readonly target?: string;\n /** The error details. */\n readonly details?: ErrorDetail[];\n /** The error additional info. */\n readonly additionalInfo?: ErrorAdditionalInfo[];\n}\n\nexport function errorDetailDeserializer(item: any): ErrorDetail {\n return {\n code: item[\"code\"],\n message: item[\"message\"],\n target: item[\"target\"],\n details: !item[\"details\"] ? item[\"details\"] : errorDetailArrayDeserializer(item[\"details\"]),\n additionalInfo: !item[\"additionalInfo\"]\n ? item[\"additionalInfo\"]\n : errorAdditionalInfoArrayDeserializer(item[\"additionalInfo\"]),\n };\n}\n\nexport function errorDetailArrayDeserializer(result: Array<ErrorDetail>): any[] {\n return result.map((item) => {\n return errorDetailDeserializer(item);\n });\n}\n\nexport function errorAdditionalInfoArrayDeserializer(result: Array<ErrorAdditionalInfo>): any[] {\n return result.map((item) => {\n return errorAdditionalInfoDeserializer(item);\n });\n}\n\n/** The resource management error additional info. */\nexport interface ErrorAdditionalInfo {\n /** The additional info type. */\n readonly type?: string;\n /** The additional info. */\n readonly info?: Record<string, any>;\n}\n\nexport function errorAdditionalInfoDeserializer(item: any): ErrorAdditionalInfo {\n return {\n type: item[\"type\"],\n info: !item[\"info\"] ? item[\"info\"] : _errorAdditionalInfoInfoDeserializer(item[\"info\"]),\n };\n}\n\n/** model interface _ErrorAdditionalInfoInfo */\nexport interface _ErrorAdditionalInfoInfo {}\n\nexport function _errorAdditionalInfoInfoDeserializer(item: any): _ErrorAdditionalInfoInfo {\n return item;\n}\n\n/** The type used for update operations of the Organization Resource. */\nexport interface OrganizationResourceUpdate {\n /** Resource tags. */\n tags?: Record<string, string>;\n /** The managed service identities assigned to this resource. */\n identity?: ManagedServiceIdentity;\n}\n\nexport function organizationResourceUpdateSerializer(item: OrganizationResourceUpdate): any {\n return {\n tags: item[\"tags\"],\n identity: !item[\"identity\"]\n ? item[\"identity\"]\n : managedServiceIdentitySerializer(item[\"identity\"]),\n };\n}\n\n/** The response of a OrganizationResource list operation. */\nexport interface _OrganizationResourceListResult {\n /** The OrganizationResource items on this page */\n value: OrganizationResource[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _organizationResourceListResultDeserializer(\n item: any,\n): _OrganizationResourceListResult {\n return {\n value: organizationResourceArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function organizationResourceArraySerializer(result: Array<OrganizationResource>): any[] {\n return result.map((item) => {\n return organizationResourceSerializer(item);\n });\n}\n\nexport function organizationResourceArrayDeserializer(result: Array<OrganizationResource>): any[] {\n return result.map((item) => {\n return organizationResourceDeserializer(item);\n });\n}\n\n/** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */\nexport interface _OperationListResult {\n /** The Operation items on this page */\n value: Operation[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _operationListResultDeserializer(item: any): _OperationListResult {\n return {\n value: operationArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function operationArrayDeserializer(result: Array<Operation>): any[] {\n return result.map((item) => {\n return operationDeserializer(item);\n });\n}\n\n/** Details of a REST API operation, returned from the Resource Provider Operations API */\nexport interface Operation {\n /** The name of the operation, as per Resource-Based Access Control (RBAC). Examples: \"Microsoft.Compute/virtualMachines/write\", \"Microsoft.Compute/virtualMachines/capture/action\" */\n readonly name?: string;\n /** Whether the operation applies to data-plane. This is \"true\" for data-plane operations and \"false\" for Azure Resource Manager/control-plane operations. */\n readonly isDataAction?: boolean;\n /** Localized display information for this particular operation. */\n display?: OperationDisplay;\n /** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" */\n readonly origin?: Origin;\n /** Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. */\n readonly actionType?: ActionType;\n}\n\nexport function operationDeserializer(item: any): Operation {\n return {\n name: item[\"name\"],\n isDataAction: item[\"isDataAction\"],\n display: !item[\"display\"] ? item[\"display\"] : operationDisplayDeserializer(item[\"display\"]),\n origin: item[\"origin\"],\n actionType: item[\"actionType\"],\n };\n}\n\n/** Localized display information for and operation. */\nexport interface OperationDisplay {\n /** The localized friendly form of the resource provider name, e.g. \"Microsoft Monitoring Insights\" or \"Microsoft Compute\". */\n readonly provider?: string;\n /** The localized friendly name of the resource type related to this operation. E.g. \"Virtual Machines\" or \"Job Schedule Collections\". */\n readonly resource?: string;\n /** The concise, localized friendly name for the operation; suitable for dropdowns. E.g. \"Create or Update Virtual Machine\", \"Restart Virtual Machine\". */\n readonly operation?: string;\n /** The short, localized friendly description of the operation; suitable for tool tips and detailed views. */\n readonly description?: string;\n}\n\nexport function operationDisplayDeserializer(item: any): OperationDisplay {\n return {\n provider: item[\"provider\"],\n resource: item[\"resource\"],\n operation: item[\"operation\"],\n description: item[\"description\"],\n };\n}\n\n/** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" */\nexport enum KnownOrigin {\n /** Indicates the operation is initiated by a user. */\n User = \"user\",\n /** Indicates the operation is initiated by a system. */\n System = \"system\",\n /** Indicates the operation is initiated by a user or system. */\n UserSystem = \"user,system\",\n}\n\n/**\n * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" \\\n * {@link KnownOrigin} can be used interchangeably with Origin,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **user**: Indicates the operation is initiated by a user. \\\n * **system**: Indicates the operation is initiated by a system. \\\n * **user,system**: Indicates the operation is initiated by a user or system.\n */\nexport type Origin = string;\n\n/** Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. */\nexport enum KnownActionType {\n /** Actions are for internal-only APIs. */\n Internal = \"Internal\",\n}\n\n/**\n * Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. \\\n * {@link KnownActionType} can be used interchangeably with ActionType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Internal**: Actions are for internal-only APIs.\n */\nexport type ActionType = string;\n\n/** The available API versions. */\nexport enum KnownVersions {\n /** 2024-02-01-preview version */\n V20241001Preview = \"2024-10-01-preview\",\n}\n"]}
@@ -0,0 +1,17 @@
1
+ import { ObservabilityEvalClientOptionalParams } from "./api/index.js";
2
+ import { OrganizationsOperations } from "./classic/organizations/index.js";
3
+ import { OperationsOperations } from "./classic/operations/index.js";
4
+ import { Pipeline } from "@azure/core-rest-pipeline";
5
+ import { TokenCredential } from "@azure/core-auth";
6
+ export { ObservabilityEvalClientOptionalParams } from "./api/observabilityEvalContext.js";
7
+ export declare class ObservabilityEvalClient {
8
+ private _client;
9
+ /** The pipeline used by this client to make requests */
10
+ readonly pipeline: Pipeline;
11
+ constructor(credential: TokenCredential, subscriptionId: string, options?: ObservabilityEvalClientOptionalParams);
12
+ /** The operation groups for organizations */
13
+ readonly organizations: OrganizationsOperations;
14
+ /** The operation groups for operations */
15
+ readonly operations: OperationsOperations;
16
+ }
17
+ //# sourceMappingURL=observabilityEvalClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"observabilityEvalClient.d.ts","sourceRoot":"","sources":["../../src/observabilityEvalClient.ts"],"names":[],"mappings":"AAGA,OAAO,EAGL,qCAAqC,EACtC,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,uBAAuB,EAExB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,oBAAoB,EAA4B,MAAM,+BAA+B,CAAC;AAC/F,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAEnD,OAAO,EAAE,qCAAqC,EAAE,MAAM,mCAAmC,CAAC;AAE1F,qBAAa,uBAAuB;IAClC,OAAO,CAAC,OAAO,CAA2B;IAC1C,wDAAwD;IACxD,SAAgB,QAAQ,EAAE,QAAQ,CAAC;gBAGjC,UAAU,EAAE,eAAe,EAC3B,cAAc,EAAE,MAAM,EACtB,OAAO,GAAE,qCAA0C;IAerD,6CAA6C;IAC7C,SAAgB,aAAa,EAAE,uBAAuB,CAAC;IACvD,0CAA0C;IAC1C,SAAgB,UAAU,EAAE,oBAAoB,CAAC;CAClD"}
@@ -0,0 +1,19 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ import { createObservabilityEval, } from "./api/index.js";
4
+ import { _getOrganizationsOperations, } from "./classic/organizations/index.js";
5
+ import { _getOperationsOperations } from "./classic/operations/index.js";
6
+ export class ObservabilityEvalClient {
7
+ constructor(credential, subscriptionId, options = {}) {
8
+ var _a;
9
+ const prefixFromOptions = (_a = options === null || options === void 0 ? void 0 : options.userAgentOptions) === null || _a === void 0 ? void 0 : _a.userAgentPrefix;
10
+ const userAgentPrefix = prefixFromOptions
11
+ ? `${prefixFromOptions} azsdk-js-client`
12
+ : `azsdk-js-client`;
13
+ this._client = createObservabilityEval(credential, subscriptionId, Object.assign(Object.assign({}, options), { userAgentOptions: { userAgentPrefix } }));
14
+ this.pipeline = this._client.pipeline;
15
+ this.organizations = _getOrganizationsOperations(this._client);
16
+ this.operations = _getOperationsOperations(this._client);
17
+ }
18
+ }
19
+ //# sourceMappingURL=observabilityEvalClient.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"observabilityEvalClient.js","sourceRoot":"","sources":["../../src/observabilityEvalClient.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EACL,uBAAuB,GAGxB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAEL,2BAA2B,GAC5B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAwB,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAM/F,MAAM,OAAO,uBAAuB;IAKlC,YACE,UAA2B,EAC3B,cAAsB,EACtB,UAAiD,EAAE;;QAEnD,MAAM,iBAAiB,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,gBAAgB,0CAAE,eAAe,CAAC;QACrE,MAAM,eAAe,GAAG,iBAAiB;YACvC,CAAC,CAAC,GAAG,iBAAiB,kBAAkB;YACxC,CAAC,CAAC,iBAAiB,CAAC;QACtB,IAAI,CAAC,OAAO,GAAG,uBAAuB,CAAC,UAAU,EAAE,cAAc,kCAC5D,OAAO,KACV,gBAAgB,EAAE,EAAE,eAAe,EAAE,IACrC,CAAC;QACH,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC;QACtC,IAAI,CAAC,aAAa,GAAG,2BAA2B,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC/D,IAAI,CAAC,UAAU,GAAG,wBAAwB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC3D,CAAC;CAMF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport {\n createObservabilityEval,\n ObservabilityEvalContext,\n ObservabilityEvalClientOptionalParams,\n} from \"./api/index.js\";\nimport {\n OrganizationsOperations,\n _getOrganizationsOperations,\n} from \"./classic/organizations/index.js\";\nimport { OperationsOperations, _getOperationsOperations } from \"./classic/operations/index.js\";\nimport { Pipeline } from \"@azure/core-rest-pipeline\";\nimport { TokenCredential } from \"@azure/core-auth\";\n\nexport { ObservabilityEvalClientOptionalParams } from \"./api/observabilityEvalContext.js\";\n\nexport class ObservabilityEvalClient {\n private _client: ObservabilityEvalContext;\n /** The pipeline used by this client to make requests */\n public readonly pipeline: Pipeline;\n\n constructor(\n credential: TokenCredential,\n subscriptionId: string,\n options: ObservabilityEvalClientOptionalParams = {},\n ) {\n const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;\n const userAgentPrefix = prefixFromOptions\n ? `${prefixFromOptions} azsdk-js-client`\n : `azsdk-js-client`;\n this._client = createObservabilityEval(credential, subscriptionId, {\n ...options,\n userAgentOptions: { userAgentPrefix },\n });\n this.pipeline = this._client.pipeline;\n this.organizations = _getOrganizationsOperations(this._client);\n this.operations = _getOperationsOperations(this._client);\n }\n\n /** The operation groups for organizations */\n public readonly organizations: OrganizationsOperations;\n /** The operation groups for operations */\n public readonly operations: OperationsOperations;\n}\n"]}
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "module"
3
+ }
@@ -0,0 +1,21 @@
1
+ import { ObservabilityEvalClient } from "./observabilityEvalClient.js";
2
+ import { OperationOptions, PathUncheckedResponse } from "@azure-rest/core-client";
3
+ import { AbortSignalLike } from "@azure/abort-controller";
4
+ import { PollerLike, OperationState } from "@azure/core-lro";
5
+ export interface RestorePollerOptions<TResult, TResponse extends PathUncheckedResponse = PathUncheckedResponse> extends OperationOptions {
6
+ /** Delay to wait until next poll, in milliseconds. */
7
+ updateIntervalInMs?: number;
8
+ /**
9
+ * The signal which can be used to abort requests.
10
+ */
11
+ abortSignal?: AbortSignalLike;
12
+ /** Deserialization function for raw response body */
13
+ processResponseBody?: (result: TResponse) => Promise<TResult>;
14
+ }
15
+ /**
16
+ * Creates a poller from the serialized state of another poller. This can be
17
+ * useful when you want to create pollers on a different host or a poller
18
+ * needs to be constructed after the original one is not in scope.
19
+ */
20
+ export declare function restorePoller<TResponse extends PathUncheckedResponse, TResult>(client: ObservabilityEvalClient, serializedState: string, sourceOperation: (...args: any[]) => PollerLike<OperationState<TResult>, TResult>, options?: RestorePollerOptions<TResult>): PollerLike<OperationState<TResult>, TResult>;
21
+ //# sourceMappingURL=restorePollerHelpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"restorePollerHelpers.d.ts","sourceRoot":"","sources":["../../src/restorePollerHelpers.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAGvE,OAAO,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAClF,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EACL,UAAU,EACV,cAAc,EAGf,MAAM,iBAAiB,CAAC;AAEzB,MAAM,WAAW,oBAAoB,CACnC,OAAO,EACP,SAAS,SAAS,qBAAqB,GAAG,qBAAqB,CAC/D,SAAQ,gBAAgB;IACxB,sDAAsD;IACtD,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,WAAW,CAAC,EAAE,eAAe,CAAC;IAC9B,qDAAqD;IACrD,mBAAmB,CAAC,EAAE,CAAC,MAAM,EAAE,SAAS,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;CAC/D;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,SAAS,SAAS,qBAAqB,EAAE,OAAO,EAC5E,MAAM,EAAE,uBAAuB,EAC/B,eAAe,EAAE,MAAM,EACvB,eAAe,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,UAAU,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,EACjF,OAAO,CAAC,EAAE,oBAAoB,CAAC,OAAO,CAAC,GACtC,UAAU,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,CA+B9C"}
@@ -0,0 +1,97 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ import { _$deleteDeserialize, _createOrUpdateDeserialize } from "./api/organizations/operations.js";
4
+ import { getLongRunningPoller } from "./static-helpers/pollingHelpers.js";
5
+ import { deserializeState, } from "@azure/core-lro";
6
+ /**
7
+ * Creates a poller from the serialized state of another poller. This can be
8
+ * useful when you want to create pollers on a different host or a poller
9
+ * needs to be constructed after the original one is not in scope.
10
+ */
11
+ export function restorePoller(client, serializedState, sourceOperation, options) {
12
+ var _a, _b, _c;
13
+ const pollerConfig = deserializeState(serializedState).config;
14
+ const { initialRequestUrl, requestMethod, metadata } = pollerConfig;
15
+ if (!initialRequestUrl || !requestMethod) {
16
+ throw new Error(`Invalid serialized state: ${serializedState} for sourceOperation ${sourceOperation === null || sourceOperation === void 0 ? void 0 : sourceOperation.name}`);
17
+ }
18
+ const resourceLocationConfig = metadata === null || metadata === void 0 ? void 0 : metadata["resourceLocationConfig"];
19
+ const { deserializer, expectedStatuses = [] } = (_a = getDeserializationHelper(initialRequestUrl, requestMethod)) !== null && _a !== void 0 ? _a : {};
20
+ const deserializeHelper = (_b = options === null || options === void 0 ? void 0 : options.processResponseBody) !== null && _b !== void 0 ? _b : deserializer;
21
+ if (!deserializeHelper) {
22
+ throw new Error(`Please ensure the operation is in this client! We can't find its deserializeHelper for ${sourceOperation === null || sourceOperation === void 0 ? void 0 : sourceOperation.name}.`);
23
+ }
24
+ return getLongRunningPoller((_c = client["_client"]) !== null && _c !== void 0 ? _c : client, deserializeHelper, expectedStatuses, {
25
+ updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
26
+ abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
27
+ resourceLocationConfig,
28
+ restoreFrom: serializedState,
29
+ initialRequestUrl,
30
+ });
31
+ }
32
+ const deserializeMap = {
33
+ "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/ArizeAi.ObservabilityEval/organizations/{organizationname}": {
34
+ deserializer: _$deleteDeserialize,
35
+ expectedStatuses: ["202", "204", "200"],
36
+ },
37
+ "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/ArizeAi.ObservabilityEval/organizations/{organizationname}": {
38
+ deserializer: _createOrUpdateDeserialize,
39
+ expectedStatuses: ["200", "201"],
40
+ },
41
+ };
42
+ function getDeserializationHelper(urlStr, method) {
43
+ var _a, _b, _c, _d;
44
+ const path = new URL(urlStr).pathname;
45
+ const pathParts = path.split("/");
46
+ // Traverse list to match the longest candidate
47
+ // matchedLen: the length of candidate path
48
+ // matchedValue: the matched status code array
49
+ let matchedLen = -1, matchedValue;
50
+ // Iterate the responseMap to find a match
51
+ for (const [key, value] of Object.entries(deserializeMap)) {
52
+ // Extracting the path from the map key which is in format
53
+ // GET /path/foo
54
+ if (!key.startsWith(method)) {
55
+ continue;
56
+ }
57
+ const candidatePath = getPathFromMapKey(key);
58
+ // Get each part of the url path
59
+ const candidateParts = candidatePath.split("/");
60
+ // track if we have found a match to return the values found.
61
+ let found = true;
62
+ for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {
63
+ if (((_a = candidateParts[i]) === null || _a === void 0 ? void 0 : _a.startsWith("{")) && ((_b = candidateParts[i]) === null || _b === void 0 ? void 0 : _b.indexOf("}")) !== -1) {
64
+ const start = candidateParts[i].indexOf("}") + 1, end = (_c = candidateParts[i]) === null || _c === void 0 ? void 0 : _c.length;
65
+ // If the current part of the candidate is a "template" part
66
+ // Try to use the suffix of pattern to match the path
67
+ // {guid} ==> $
68
+ // {guid}:export ==> :export$
69
+ const isMatched = new RegExp(`${(_d = candidateParts[i]) === null || _d === void 0 ? void 0 : _d.slice(start, end)}`).test(pathParts[j] || "");
70
+ if (!isMatched) {
71
+ found = false;
72
+ break;
73
+ }
74
+ continue;
75
+ }
76
+ // If the candidate part is not a template and
77
+ // the parts don't match mark the candidate as not found
78
+ // to move on with the next candidate path.
79
+ if (candidateParts[i] !== pathParts[j]) {
80
+ found = false;
81
+ break;
82
+ }
83
+ }
84
+ // We finished evaluating the current candidate parts
85
+ // Update the matched value if and only if we found the longer pattern
86
+ if (found && candidatePath.length > matchedLen) {
87
+ matchedLen = candidatePath.length;
88
+ matchedValue = value;
89
+ }
90
+ }
91
+ return matchedValue;
92
+ }
93
+ function getPathFromMapKey(mapKey) {
94
+ const pathStart = mapKey.indexOf("/");
95
+ return mapKey.slice(pathStart);
96
+ }
97
+ //# sourceMappingURL=restorePollerHelpers.js.map