@azure/arm-healthdataaiservices 1.0.0-beta.1 → 1.0.0

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 (521) hide show
  1. package/CHANGELOG.md +2 -2
  2. package/README.md +10 -4
  3. package/dist/browser/api/deidServices/index.d.ts +16 -17
  4. package/dist/browser/api/deidServices/index.d.ts.map +1 -1
  5. package/dist/browser/api/deidServices/index.js +32 -424
  6. package/dist/browser/api/deidServices/index.js.map +1 -1
  7. package/dist/browser/api/healthDataAIServicesContext.d.ts +4 -4
  8. package/dist/browser/api/healthDataAIServicesContext.d.ts.map +1 -1
  9. package/dist/browser/api/healthDataAIServicesContext.js +29 -7
  10. package/dist/browser/api/healthDataAIServicesContext.js.map +1 -1
  11. package/dist/browser/api/index.d.ts +2 -1
  12. package/dist/browser/api/index.d.ts.map +1 -1
  13. package/dist/browser/api/index.js +1 -1
  14. package/dist/browser/api/index.js.map +1 -1
  15. package/dist/browser/api/operations/index.d.ts +6 -7
  16. package/dist/browser/api/operations/index.d.ts.map +1 -1
  17. package/dist/browser/api/operations/index.js +8 -26
  18. package/dist/browser/api/operations/index.js.map +1 -1
  19. package/dist/browser/api/options.d.ts.map +1 -0
  20. package/dist/browser/api/options.js +4 -0
  21. package/dist/browser/api/options.js.map +1 -0
  22. package/dist/browser/api/privateEndpointConnections/index.d.ts +12 -13
  23. package/dist/browser/api/privateEndpointConnections/index.d.ts.map +1 -1
  24. package/dist/browser/api/privateEndpointConnections/index.js +22 -126
  25. package/dist/browser/api/privateEndpointConnections/index.js.map +1 -1
  26. package/dist/browser/api/privateLinks/index.d.ts +6 -7
  27. package/dist/browser/api/privateLinks/index.d.ts.map +1 -1
  28. package/dist/browser/api/privateLinks/index.js +8 -38
  29. package/dist/browser/api/privateLinks/index.js.map +1 -1
  30. package/dist/browser/classic/deidServices/index.d.ts +4 -4
  31. package/dist/browser/classic/deidServices/index.d.ts.map +1 -1
  32. package/dist/browser/classic/deidServices/index.js +1 -1
  33. package/dist/browser/classic/deidServices/index.js.map +1 -1
  34. package/dist/browser/classic/index.js +1 -1
  35. package/dist/browser/classic/index.js.map +1 -1
  36. package/dist/browser/classic/operations/index.d.ts +3 -3
  37. package/dist/browser/classic/operations/index.d.ts.map +1 -1
  38. package/dist/browser/classic/operations/index.js +1 -1
  39. package/dist/browser/classic/operations/index.js.map +1 -1
  40. package/dist/browser/classic/privateEndpointConnections/index.d.ts +3 -3
  41. package/dist/browser/classic/privateEndpointConnections/index.d.ts.map +1 -1
  42. package/dist/browser/classic/privateEndpointConnections/index.js +1 -1
  43. package/dist/browser/classic/privateEndpointConnections/index.js.map +1 -1
  44. package/dist/browser/classic/privateLinks/index.d.ts +3 -3
  45. package/dist/browser/classic/privateLinks/index.d.ts.map +1 -1
  46. package/dist/browser/classic/privateLinks/index.js +1 -1
  47. package/dist/browser/classic/privateLinks/index.js.map +1 -1
  48. package/dist/browser/healthDataAIServicesClient.d.ts +2 -2
  49. package/dist/browser/healthDataAIServicesClient.d.ts.map +1 -1
  50. package/dist/browser/healthDataAIServicesClient.js +2 -2
  51. package/dist/browser/healthDataAIServicesClient.js.map +1 -1
  52. package/dist/browser/helpers/serializerHelpers.js +1 -1
  53. package/dist/browser/helpers/serializerHelpers.js.map +1 -1
  54. package/dist/browser/index.d.ts +5 -2
  55. package/dist/browser/index.d.ts.map +1 -1
  56. package/dist/browser/index.js +3 -3
  57. package/dist/browser/index.js.map +1 -1
  58. package/dist/browser/logger.js +1 -1
  59. package/dist/browser/logger.js.map +1 -1
  60. package/dist/browser/models/index.d.ts +1 -3
  61. package/dist/browser/models/index.d.ts.map +1 -1
  62. package/dist/browser/models/index.js +2 -2
  63. package/dist/browser/models/index.js.map +1 -1
  64. package/dist/browser/models/models.d.ts +140 -125
  65. package/dist/browser/models/models.d.ts.map +1 -1
  66. package/dist/browser/models/models.js +319 -73
  67. package/dist/browser/models/models.js.map +1 -1
  68. package/dist/browser/restorePollerHelpers.d.ts +2 -2
  69. package/dist/browser/restorePollerHelpers.d.ts.map +1 -1
  70. package/dist/browser/restorePollerHelpers.js +27 -11
  71. package/dist/browser/restorePollerHelpers.js.map +1 -1
  72. package/dist/browser/{models/pagingTypes.d.ts → static-helpers/pagingHelpers.d.ts} +6 -1
  73. package/dist/browser/static-helpers/pagingHelpers.d.ts.map +1 -0
  74. package/dist/{esm/api → browser/static-helpers}/pagingHelpers.js +5 -6
  75. package/dist/browser/static-helpers/pagingHelpers.js.map +1 -0
  76. package/dist/{esm/api → browser/static-helpers}/pollingHelpers.d.ts +1 -1
  77. package/dist/browser/static-helpers/pollingHelpers.d.ts.map +1 -0
  78. package/dist/browser/{api → static-helpers}/pollingHelpers.js +7 -12
  79. package/dist/browser/static-helpers/pollingHelpers.js.map +1 -0
  80. package/dist/commonjs/api/deidServices/index.d.ts +16 -17
  81. package/dist/commonjs/api/deidServices/index.d.ts.map +1 -1
  82. package/dist/commonjs/api/deidServices/index.js +30 -422
  83. package/dist/commonjs/api/deidServices/index.js.map +1 -1
  84. package/dist/commonjs/api/healthDataAIServicesContext.d.ts +4 -4
  85. package/dist/commonjs/api/healthDataAIServicesContext.d.ts.map +1 -1
  86. package/dist/commonjs/api/healthDataAIServicesContext.js +28 -7
  87. package/dist/commonjs/api/healthDataAIServicesContext.js.map +1 -1
  88. package/dist/commonjs/api/index.d.ts +2 -1
  89. package/dist/commonjs/api/index.d.ts.map +1 -1
  90. package/dist/commonjs/api/index.js +1 -1
  91. package/dist/commonjs/api/index.js.map +1 -1
  92. package/dist/commonjs/api/operations/index.d.ts +6 -7
  93. package/dist/commonjs/api/operations/index.d.ts.map +1 -1
  94. package/dist/commonjs/api/operations/index.js +7 -25
  95. package/dist/commonjs/api/operations/index.js.map +1 -1
  96. package/dist/commonjs/api/options.d.ts.map +1 -0
  97. package/dist/commonjs/{models → api}/options.js +1 -1
  98. package/dist/commonjs/api/options.js.map +1 -0
  99. package/dist/commonjs/api/privateEndpointConnections/index.d.ts +12 -13
  100. package/dist/commonjs/api/privateEndpointConnections/index.d.ts.map +1 -1
  101. package/dist/commonjs/api/privateEndpointConnections/index.js +20 -124
  102. package/dist/commonjs/api/privateEndpointConnections/index.js.map +1 -1
  103. package/dist/commonjs/api/privateLinks/index.d.ts +6 -7
  104. package/dist/commonjs/api/privateLinks/index.d.ts.map +1 -1
  105. package/dist/commonjs/api/privateLinks/index.js +7 -37
  106. package/dist/commonjs/api/privateLinks/index.js.map +1 -1
  107. package/dist/commonjs/classic/deidServices/index.d.ts +4 -4
  108. package/dist/commonjs/classic/deidServices/index.d.ts.map +1 -1
  109. package/dist/commonjs/classic/deidServices/index.js +1 -1
  110. package/dist/commonjs/classic/deidServices/index.js.map +1 -1
  111. package/dist/commonjs/classic/index.js +1 -1
  112. package/dist/commonjs/classic/index.js.map +1 -1
  113. package/dist/commonjs/classic/operations/index.d.ts +3 -3
  114. package/dist/commonjs/classic/operations/index.d.ts.map +1 -1
  115. package/dist/commonjs/classic/operations/index.js +1 -1
  116. package/dist/commonjs/classic/operations/index.js.map +1 -1
  117. package/dist/commonjs/classic/privateEndpointConnections/index.d.ts +3 -3
  118. package/dist/commonjs/classic/privateEndpointConnections/index.d.ts.map +1 -1
  119. package/dist/commonjs/classic/privateEndpointConnections/index.js +1 -1
  120. package/dist/commonjs/classic/privateEndpointConnections/index.js.map +1 -1
  121. package/dist/commonjs/classic/privateLinks/index.d.ts +3 -3
  122. package/dist/commonjs/classic/privateLinks/index.d.ts.map +1 -1
  123. package/dist/commonjs/classic/privateLinks/index.js +1 -1
  124. package/dist/commonjs/classic/privateLinks/index.js.map +1 -1
  125. package/dist/commonjs/healthDataAIServicesClient.d.ts +2 -2
  126. package/dist/commonjs/healthDataAIServicesClient.d.ts.map +1 -1
  127. package/dist/commonjs/healthDataAIServicesClient.js +2 -2
  128. package/dist/commonjs/healthDataAIServicesClient.js.map +1 -1
  129. package/dist/commonjs/helpers/serializerHelpers.js +1 -1
  130. package/dist/commonjs/helpers/serializerHelpers.js.map +1 -1
  131. package/dist/commonjs/index.d.ts +5 -2
  132. package/dist/commonjs/index.d.ts.map +1 -1
  133. package/dist/commonjs/index.js +4 -3
  134. package/dist/commonjs/index.js.map +1 -1
  135. package/dist/commonjs/logger.js +1 -1
  136. package/dist/commonjs/logger.js.map +1 -1
  137. package/dist/commonjs/models/index.d.ts +1 -3
  138. package/dist/commonjs/models/index.d.ts.map +1 -1
  139. package/dist/commonjs/models/index.js +4 -3
  140. package/dist/commonjs/models/index.js.map +1 -1
  141. package/dist/commonjs/models/models.d.ts +140 -125
  142. package/dist/commonjs/models/models.d.ts.map +1 -1
  143. package/dist/commonjs/models/models.js +350 -76
  144. package/dist/commonjs/models/models.js.map +1 -1
  145. package/dist/commonjs/restorePollerHelpers.d.ts +2 -2
  146. package/dist/commonjs/restorePollerHelpers.d.ts.map +1 -1
  147. package/dist/commonjs/restorePollerHelpers.js +27 -11
  148. package/dist/commonjs/restorePollerHelpers.js.map +1 -1
  149. package/dist/commonjs/{models/pagingTypes.d.ts → static-helpers/pagingHelpers.d.ts} +6 -1
  150. package/dist/commonjs/static-helpers/pagingHelpers.d.ts.map +1 -0
  151. package/dist/commonjs/{api → static-helpers}/pagingHelpers.js +5 -6
  152. package/dist/commonjs/static-helpers/pagingHelpers.js.map +1 -0
  153. package/dist/{browser/api → commonjs/static-helpers}/pollingHelpers.d.ts +1 -1
  154. package/dist/commonjs/static-helpers/pollingHelpers.d.ts.map +1 -0
  155. package/dist/commonjs/{api → static-helpers}/pollingHelpers.js +7 -12
  156. package/dist/commonjs/static-helpers/pollingHelpers.js.map +1 -0
  157. package/dist/commonjs/tsdoc-metadata.json +1 -1
  158. package/dist/esm/api/deidServices/index.d.ts +16 -17
  159. package/dist/esm/api/deidServices/index.d.ts.map +1 -1
  160. package/dist/esm/api/deidServices/index.js +32 -424
  161. package/dist/esm/api/deidServices/index.js.map +1 -1
  162. package/dist/esm/api/healthDataAIServicesContext.d.ts +4 -4
  163. package/dist/esm/api/healthDataAIServicesContext.d.ts.map +1 -1
  164. package/dist/esm/api/healthDataAIServicesContext.js +29 -7
  165. package/dist/esm/api/healthDataAIServicesContext.js.map +1 -1
  166. package/dist/esm/api/index.d.ts +2 -1
  167. package/dist/esm/api/index.d.ts.map +1 -1
  168. package/dist/esm/api/index.js +1 -1
  169. package/dist/esm/api/index.js.map +1 -1
  170. package/dist/esm/api/operations/index.d.ts +6 -7
  171. package/dist/esm/api/operations/index.d.ts.map +1 -1
  172. package/dist/esm/api/operations/index.js +8 -26
  173. package/dist/esm/api/operations/index.js.map +1 -1
  174. package/dist/esm/api/options.d.ts.map +1 -0
  175. package/dist/esm/api/options.js +4 -0
  176. package/dist/esm/api/options.js.map +1 -0
  177. package/dist/esm/api/privateEndpointConnections/index.d.ts +12 -13
  178. package/dist/esm/api/privateEndpointConnections/index.d.ts.map +1 -1
  179. package/dist/esm/api/privateEndpointConnections/index.js +22 -126
  180. package/dist/esm/api/privateEndpointConnections/index.js.map +1 -1
  181. package/dist/esm/api/privateLinks/index.d.ts +6 -7
  182. package/dist/esm/api/privateLinks/index.d.ts.map +1 -1
  183. package/dist/esm/api/privateLinks/index.js +8 -38
  184. package/dist/esm/api/privateLinks/index.js.map +1 -1
  185. package/dist/esm/classic/deidServices/index.d.ts +4 -4
  186. package/dist/esm/classic/deidServices/index.d.ts.map +1 -1
  187. package/dist/esm/classic/deidServices/index.js +1 -1
  188. package/dist/esm/classic/deidServices/index.js.map +1 -1
  189. package/dist/esm/classic/index.js +1 -1
  190. package/dist/esm/classic/index.js.map +1 -1
  191. package/dist/esm/classic/operations/index.d.ts +3 -3
  192. package/dist/esm/classic/operations/index.d.ts.map +1 -1
  193. package/dist/esm/classic/operations/index.js +1 -1
  194. package/dist/esm/classic/operations/index.js.map +1 -1
  195. package/dist/esm/classic/privateEndpointConnections/index.d.ts +3 -3
  196. package/dist/esm/classic/privateEndpointConnections/index.d.ts.map +1 -1
  197. package/dist/esm/classic/privateEndpointConnections/index.js +1 -1
  198. package/dist/esm/classic/privateEndpointConnections/index.js.map +1 -1
  199. package/dist/esm/classic/privateLinks/index.d.ts +3 -3
  200. package/dist/esm/classic/privateLinks/index.d.ts.map +1 -1
  201. package/dist/esm/classic/privateLinks/index.js +1 -1
  202. package/dist/esm/classic/privateLinks/index.js.map +1 -1
  203. package/dist/esm/healthDataAIServicesClient.d.ts +2 -2
  204. package/dist/esm/healthDataAIServicesClient.d.ts.map +1 -1
  205. package/dist/esm/healthDataAIServicesClient.js +2 -2
  206. package/dist/esm/healthDataAIServicesClient.js.map +1 -1
  207. package/dist/esm/helpers/serializerHelpers.js +1 -1
  208. package/dist/esm/helpers/serializerHelpers.js.map +1 -1
  209. package/dist/esm/index.d.ts +5 -2
  210. package/dist/esm/index.d.ts.map +1 -1
  211. package/dist/esm/index.js +3 -3
  212. package/dist/esm/index.js.map +1 -1
  213. package/dist/esm/logger.js +1 -1
  214. package/dist/esm/logger.js.map +1 -1
  215. package/dist/esm/models/index.d.ts +1 -3
  216. package/dist/esm/models/index.d.ts.map +1 -1
  217. package/dist/esm/models/index.js +2 -2
  218. package/dist/esm/models/index.js.map +1 -1
  219. package/dist/esm/models/models.d.ts +140 -125
  220. package/dist/esm/models/models.d.ts.map +1 -1
  221. package/dist/esm/models/models.js +319 -73
  222. package/dist/esm/models/models.js.map +1 -1
  223. package/dist/esm/restorePollerHelpers.d.ts +2 -2
  224. package/dist/esm/restorePollerHelpers.d.ts.map +1 -1
  225. package/dist/esm/restorePollerHelpers.js +27 -11
  226. package/dist/esm/restorePollerHelpers.js.map +1 -1
  227. package/dist/esm/{models/pagingTypes.d.ts → static-helpers/pagingHelpers.d.ts} +6 -1
  228. package/dist/esm/static-helpers/pagingHelpers.d.ts.map +1 -0
  229. package/dist/{react-native/api → esm/static-helpers}/pagingHelpers.js +5 -6
  230. package/dist/esm/static-helpers/pagingHelpers.js.map +1 -0
  231. package/dist/{commonjs/api → esm/static-helpers}/pollingHelpers.d.ts +1 -1
  232. package/dist/esm/static-helpers/pollingHelpers.d.ts.map +1 -0
  233. package/dist/{react-native/api → esm/static-helpers}/pollingHelpers.js +7 -12
  234. package/dist/esm/static-helpers/pollingHelpers.js.map +1 -0
  235. package/dist/react-native/api/deidServices/index.d.ts +16 -17
  236. package/dist/react-native/api/deidServices/index.d.ts.map +1 -1
  237. package/dist/react-native/api/deidServices/index.js +32 -424
  238. package/dist/react-native/api/deidServices/index.js.map +1 -1
  239. package/dist/react-native/api/healthDataAIServicesContext.d.ts +4 -4
  240. package/dist/react-native/api/healthDataAIServicesContext.d.ts.map +1 -1
  241. package/dist/react-native/api/healthDataAIServicesContext.js +29 -7
  242. package/dist/react-native/api/healthDataAIServicesContext.js.map +1 -1
  243. package/dist/react-native/api/index.d.ts +2 -1
  244. package/dist/react-native/api/index.d.ts.map +1 -1
  245. package/dist/react-native/api/index.js +1 -1
  246. package/dist/react-native/api/index.js.map +1 -1
  247. package/dist/react-native/api/operations/index.d.ts +6 -7
  248. package/dist/react-native/api/operations/index.d.ts.map +1 -1
  249. package/dist/react-native/api/operations/index.js +8 -26
  250. package/dist/react-native/api/operations/index.js.map +1 -1
  251. package/dist/react-native/api/options.d.ts.map +1 -0
  252. package/dist/react-native/api/options.js +4 -0
  253. package/dist/react-native/api/options.js.map +1 -0
  254. package/dist/react-native/api/privateEndpointConnections/index.d.ts +12 -13
  255. package/dist/react-native/api/privateEndpointConnections/index.d.ts.map +1 -1
  256. package/dist/react-native/api/privateEndpointConnections/index.js +22 -126
  257. package/dist/react-native/api/privateEndpointConnections/index.js.map +1 -1
  258. package/dist/react-native/api/privateLinks/index.d.ts +6 -7
  259. package/dist/react-native/api/privateLinks/index.d.ts.map +1 -1
  260. package/dist/react-native/api/privateLinks/index.js +8 -38
  261. package/dist/react-native/api/privateLinks/index.js.map +1 -1
  262. package/dist/react-native/classic/deidServices/index.d.ts +4 -4
  263. package/dist/react-native/classic/deidServices/index.d.ts.map +1 -1
  264. package/dist/react-native/classic/deidServices/index.js +1 -1
  265. package/dist/react-native/classic/deidServices/index.js.map +1 -1
  266. package/dist/react-native/classic/index.js +1 -1
  267. package/dist/react-native/classic/index.js.map +1 -1
  268. package/dist/react-native/classic/operations/index.d.ts +3 -3
  269. package/dist/react-native/classic/operations/index.d.ts.map +1 -1
  270. package/dist/react-native/classic/operations/index.js +1 -1
  271. package/dist/react-native/classic/operations/index.js.map +1 -1
  272. package/dist/react-native/classic/privateEndpointConnections/index.d.ts +3 -3
  273. package/dist/react-native/classic/privateEndpointConnections/index.d.ts.map +1 -1
  274. package/dist/react-native/classic/privateEndpointConnections/index.js +1 -1
  275. package/dist/react-native/classic/privateEndpointConnections/index.js.map +1 -1
  276. package/dist/react-native/classic/privateLinks/index.d.ts +3 -3
  277. package/dist/react-native/classic/privateLinks/index.d.ts.map +1 -1
  278. package/dist/react-native/classic/privateLinks/index.js +1 -1
  279. package/dist/react-native/classic/privateLinks/index.js.map +1 -1
  280. package/dist/react-native/healthDataAIServicesClient.d.ts +2 -2
  281. package/dist/react-native/healthDataAIServicesClient.d.ts.map +1 -1
  282. package/dist/react-native/healthDataAIServicesClient.js +2 -2
  283. package/dist/react-native/healthDataAIServicesClient.js.map +1 -1
  284. package/dist/react-native/helpers/serializerHelpers.js +1 -1
  285. package/dist/react-native/helpers/serializerHelpers.js.map +1 -1
  286. package/dist/react-native/index.d.ts +5 -2
  287. package/dist/react-native/index.d.ts.map +1 -1
  288. package/dist/react-native/index.js +3 -3
  289. package/dist/react-native/index.js.map +1 -1
  290. package/dist/react-native/logger.js +1 -1
  291. package/dist/react-native/logger.js.map +1 -1
  292. package/dist/react-native/models/index.d.ts +1 -3
  293. package/dist/react-native/models/index.d.ts.map +1 -1
  294. package/dist/react-native/models/index.js +2 -2
  295. package/dist/react-native/models/index.js.map +1 -1
  296. package/dist/react-native/models/models.d.ts +140 -125
  297. package/dist/react-native/models/models.d.ts.map +1 -1
  298. package/dist/react-native/models/models.js +319 -73
  299. package/dist/react-native/models/models.js.map +1 -1
  300. package/dist/react-native/restorePollerHelpers.d.ts +2 -2
  301. package/dist/react-native/restorePollerHelpers.d.ts.map +1 -1
  302. package/dist/react-native/restorePollerHelpers.js +27 -11
  303. package/dist/react-native/restorePollerHelpers.js.map +1 -1
  304. package/dist/react-native/{models/pagingTypes.d.ts → static-helpers/pagingHelpers.d.ts} +6 -1
  305. package/dist/react-native/static-helpers/pagingHelpers.d.ts.map +1 -0
  306. package/dist/{browser/api → react-native/static-helpers}/pagingHelpers.js +5 -6
  307. package/dist/react-native/static-helpers/pagingHelpers.js.map +1 -0
  308. package/dist/react-native/{api → static-helpers}/pollingHelpers.d.ts +1 -1
  309. package/dist/react-native/static-helpers/pollingHelpers.d.ts.map +1 -0
  310. package/dist/{esm/api → react-native/static-helpers}/pollingHelpers.js +7 -12
  311. package/dist/react-native/static-helpers/pollingHelpers.js.map +1 -0
  312. package/package.json +31 -58
  313. package/review/arm-healthdataaiservices-models.api.md +16 -105
  314. package/review/arm-healthdataaiservices.api.md +16 -33
  315. package/dist/browser/api/pagingHelpers.d.ts +0 -7
  316. package/dist/browser/api/pagingHelpers.d.ts.map +0 -1
  317. package/dist/browser/api/pagingHelpers.js.map +0 -1
  318. package/dist/browser/api/pollingHelpers.d.ts.map +0 -1
  319. package/dist/browser/api/pollingHelpers.js.map +0 -1
  320. package/dist/browser/models/options.d.ts.map +0 -1
  321. package/dist/browser/models/options.js +0 -4
  322. package/dist/browser/models/options.js.map +0 -1
  323. package/dist/browser/models/pagingTypes.d.ts.map +0 -1
  324. package/dist/browser/models/pagingTypes.js +0 -4
  325. package/dist/browser/models/pagingTypes.js.map +0 -1
  326. package/dist/browser/rest/clientDefinitions.d.ts +0 -61
  327. package/dist/browser/rest/clientDefinitions.d.ts.map +0 -1
  328. package/dist/browser/rest/clientDefinitions.js +0 -4
  329. package/dist/browser/rest/clientDefinitions.js.map +0 -1
  330. package/dist/browser/rest/healthDataAIServicesClient.d.ts +0 -15
  331. package/dist/browser/rest/healthDataAIServicesClient.d.ts.map +0 -1
  332. package/dist/browser/rest/healthDataAIServicesClient.js +0 -42
  333. package/dist/browser/rest/healthDataAIServicesClient.js.map +0 -1
  334. package/dist/browser/rest/index.d.ts +0 -12
  335. package/dist/browser/rest/index.d.ts.map +0 -1
  336. package/dist/browser/rest/index.js +0 -14
  337. package/dist/browser/rest/index.js.map +0 -1
  338. package/dist/browser/rest/isUnexpected.d.ts +0 -14
  339. package/dist/browser/rest/isUnexpected.d.ts.map +0 -1
  340. package/dist/browser/rest/isUnexpected.js +0 -83
  341. package/dist/browser/rest/isUnexpected.js.map +0 -1
  342. package/dist/browser/rest/models.d.ts +0 -213
  343. package/dist/browser/rest/models.d.ts.map +0 -1
  344. package/dist/browser/rest/models.js +0 -4
  345. package/dist/browser/rest/models.js.map +0 -1
  346. package/dist/browser/rest/outputModels.d.ts +0 -304
  347. package/dist/browser/rest/outputModels.d.ts.map +0 -1
  348. package/dist/browser/rest/outputModels.js +0 -4
  349. package/dist/browser/rest/outputModels.js.map +0 -1
  350. package/dist/browser/rest/paginateHelper.d.ts +0 -43
  351. package/dist/browser/rest/paginateHelper.d.ts.map +0 -1
  352. package/dist/browser/rest/paginateHelper.js +0 -70
  353. package/dist/browser/rest/paginateHelper.js.map +0 -1
  354. package/dist/browser/rest/parameters.d.ts +0 -27
  355. package/dist/browser/rest/parameters.d.ts.map +0 -1
  356. package/dist/browser/rest/parameters.js +0 -4
  357. package/dist/browser/rest/parameters.js.map +0 -1
  358. package/dist/browser/rest/pollingHelper.d.ts +0 -81
  359. package/dist/browser/rest/pollingHelper.d.ts.map +0 -1
  360. package/dist/browser/rest/pollingHelper.js +0 -97
  361. package/dist/browser/rest/pollingHelper.js.map +0 -1
  362. package/dist/browser/rest/responses.d.ts +0 -190
  363. package/dist/browser/rest/responses.d.ts.map +0 -1
  364. package/dist/browser/rest/responses.js +0 -4
  365. package/dist/browser/rest/responses.js.map +0 -1
  366. package/dist/commonjs/api/pagingHelpers.d.ts +0 -7
  367. package/dist/commonjs/api/pagingHelpers.d.ts.map +0 -1
  368. package/dist/commonjs/api/pagingHelpers.js.map +0 -1
  369. package/dist/commonjs/api/pollingHelpers.d.ts.map +0 -1
  370. package/dist/commonjs/api/pollingHelpers.js.map +0 -1
  371. package/dist/commonjs/models/options.d.ts.map +0 -1
  372. package/dist/commonjs/models/options.js.map +0 -1
  373. package/dist/commonjs/models/pagingTypes.d.ts.map +0 -1
  374. package/dist/commonjs/models/pagingTypes.js +0 -5
  375. package/dist/commonjs/models/pagingTypes.js.map +0 -1
  376. package/dist/commonjs/rest/clientDefinitions.d.ts +0 -61
  377. package/dist/commonjs/rest/clientDefinitions.d.ts.map +0 -1
  378. package/dist/commonjs/rest/clientDefinitions.js +0 -5
  379. package/dist/commonjs/rest/clientDefinitions.js.map +0 -1
  380. package/dist/commonjs/rest/healthDataAIServicesClient.d.ts +0 -15
  381. package/dist/commonjs/rest/healthDataAIServicesClient.d.ts.map +0 -1
  382. package/dist/commonjs/rest/healthDataAIServicesClient.js +0 -45
  383. package/dist/commonjs/rest/healthDataAIServicesClient.js.map +0 -1
  384. package/dist/commonjs/rest/index.d.ts +0 -12
  385. package/dist/commonjs/rest/index.d.ts.map +0 -1
  386. package/dist/commonjs/rest/index.js +0 -17
  387. package/dist/commonjs/rest/index.js.map +0 -1
  388. package/dist/commonjs/rest/isUnexpected.d.ts +0 -14
  389. package/dist/commonjs/rest/isUnexpected.d.ts.map +0 -1
  390. package/dist/commonjs/rest/isUnexpected.js +0 -86
  391. package/dist/commonjs/rest/isUnexpected.js.map +0 -1
  392. package/dist/commonjs/rest/models.d.ts +0 -213
  393. package/dist/commonjs/rest/models.d.ts.map +0 -1
  394. package/dist/commonjs/rest/models.js +0 -5
  395. package/dist/commonjs/rest/models.js.map +0 -1
  396. package/dist/commonjs/rest/outputModels.d.ts +0 -304
  397. package/dist/commonjs/rest/outputModels.d.ts.map +0 -1
  398. package/dist/commonjs/rest/outputModels.js +0 -5
  399. package/dist/commonjs/rest/outputModels.js.map +0 -1
  400. package/dist/commonjs/rest/paginateHelper.d.ts +0 -43
  401. package/dist/commonjs/rest/paginateHelper.d.ts.map +0 -1
  402. package/dist/commonjs/rest/paginateHelper.js +0 -73
  403. package/dist/commonjs/rest/paginateHelper.js.map +0 -1
  404. package/dist/commonjs/rest/parameters.d.ts +0 -27
  405. package/dist/commonjs/rest/parameters.d.ts.map +0 -1
  406. package/dist/commonjs/rest/parameters.js +0 -5
  407. package/dist/commonjs/rest/parameters.js.map +0 -1
  408. package/dist/commonjs/rest/pollingHelper.d.ts +0 -81
  409. package/dist/commonjs/rest/pollingHelper.d.ts.map +0 -1
  410. package/dist/commonjs/rest/pollingHelper.js +0 -100
  411. package/dist/commonjs/rest/pollingHelper.js.map +0 -1
  412. package/dist/commonjs/rest/responses.d.ts +0 -190
  413. package/dist/commonjs/rest/responses.d.ts.map +0 -1
  414. package/dist/commonjs/rest/responses.js +0 -5
  415. package/dist/commonjs/rest/responses.js.map +0 -1
  416. package/dist/esm/api/pagingHelpers.d.ts +0 -7
  417. package/dist/esm/api/pagingHelpers.d.ts.map +0 -1
  418. package/dist/esm/api/pagingHelpers.js.map +0 -1
  419. package/dist/esm/api/pollingHelpers.d.ts.map +0 -1
  420. package/dist/esm/api/pollingHelpers.js.map +0 -1
  421. package/dist/esm/models/options.d.ts.map +0 -1
  422. package/dist/esm/models/options.js +0 -4
  423. package/dist/esm/models/options.js.map +0 -1
  424. package/dist/esm/models/pagingTypes.d.ts.map +0 -1
  425. package/dist/esm/models/pagingTypes.js +0 -4
  426. package/dist/esm/models/pagingTypes.js.map +0 -1
  427. package/dist/esm/rest/clientDefinitions.d.ts +0 -61
  428. package/dist/esm/rest/clientDefinitions.d.ts.map +0 -1
  429. package/dist/esm/rest/clientDefinitions.js +0 -4
  430. package/dist/esm/rest/clientDefinitions.js.map +0 -1
  431. package/dist/esm/rest/healthDataAIServicesClient.d.ts +0 -15
  432. package/dist/esm/rest/healthDataAIServicesClient.d.ts.map +0 -1
  433. package/dist/esm/rest/healthDataAIServicesClient.js +0 -42
  434. package/dist/esm/rest/healthDataAIServicesClient.js.map +0 -1
  435. package/dist/esm/rest/index.d.ts +0 -12
  436. package/dist/esm/rest/index.d.ts.map +0 -1
  437. package/dist/esm/rest/index.js +0 -14
  438. package/dist/esm/rest/index.js.map +0 -1
  439. package/dist/esm/rest/isUnexpected.d.ts +0 -14
  440. package/dist/esm/rest/isUnexpected.d.ts.map +0 -1
  441. package/dist/esm/rest/isUnexpected.js +0 -83
  442. package/dist/esm/rest/isUnexpected.js.map +0 -1
  443. package/dist/esm/rest/models.d.ts +0 -213
  444. package/dist/esm/rest/models.d.ts.map +0 -1
  445. package/dist/esm/rest/models.js +0 -4
  446. package/dist/esm/rest/models.js.map +0 -1
  447. package/dist/esm/rest/outputModels.d.ts +0 -304
  448. package/dist/esm/rest/outputModels.d.ts.map +0 -1
  449. package/dist/esm/rest/outputModels.js +0 -4
  450. package/dist/esm/rest/outputModels.js.map +0 -1
  451. package/dist/esm/rest/paginateHelper.d.ts +0 -43
  452. package/dist/esm/rest/paginateHelper.d.ts.map +0 -1
  453. package/dist/esm/rest/paginateHelper.js +0 -70
  454. package/dist/esm/rest/paginateHelper.js.map +0 -1
  455. package/dist/esm/rest/parameters.d.ts +0 -27
  456. package/dist/esm/rest/parameters.d.ts.map +0 -1
  457. package/dist/esm/rest/parameters.js +0 -4
  458. package/dist/esm/rest/parameters.js.map +0 -1
  459. package/dist/esm/rest/pollingHelper.d.ts +0 -81
  460. package/dist/esm/rest/pollingHelper.d.ts.map +0 -1
  461. package/dist/esm/rest/pollingHelper.js +0 -97
  462. package/dist/esm/rest/pollingHelper.js.map +0 -1
  463. package/dist/esm/rest/responses.d.ts +0 -190
  464. package/dist/esm/rest/responses.d.ts.map +0 -1
  465. package/dist/esm/rest/responses.js +0 -4
  466. package/dist/esm/rest/responses.js.map +0 -1
  467. package/dist/react-native/api/pagingHelpers.d.ts +0 -7
  468. package/dist/react-native/api/pagingHelpers.d.ts.map +0 -1
  469. package/dist/react-native/api/pagingHelpers.js.map +0 -1
  470. package/dist/react-native/api/pollingHelpers.d.ts.map +0 -1
  471. package/dist/react-native/api/pollingHelpers.js.map +0 -1
  472. package/dist/react-native/models/options.d.ts.map +0 -1
  473. package/dist/react-native/models/options.js +0 -4
  474. package/dist/react-native/models/options.js.map +0 -1
  475. package/dist/react-native/models/pagingTypes.d.ts.map +0 -1
  476. package/dist/react-native/models/pagingTypes.js +0 -4
  477. package/dist/react-native/models/pagingTypes.js.map +0 -1
  478. package/dist/react-native/rest/clientDefinitions.d.ts +0 -61
  479. package/dist/react-native/rest/clientDefinitions.d.ts.map +0 -1
  480. package/dist/react-native/rest/clientDefinitions.js +0 -4
  481. package/dist/react-native/rest/clientDefinitions.js.map +0 -1
  482. package/dist/react-native/rest/healthDataAIServicesClient.d.ts +0 -15
  483. package/dist/react-native/rest/healthDataAIServicesClient.d.ts.map +0 -1
  484. package/dist/react-native/rest/healthDataAIServicesClient.js +0 -42
  485. package/dist/react-native/rest/healthDataAIServicesClient.js.map +0 -1
  486. package/dist/react-native/rest/index.d.ts +0 -12
  487. package/dist/react-native/rest/index.d.ts.map +0 -1
  488. package/dist/react-native/rest/index.js +0 -14
  489. package/dist/react-native/rest/index.js.map +0 -1
  490. package/dist/react-native/rest/isUnexpected.d.ts +0 -14
  491. package/dist/react-native/rest/isUnexpected.d.ts.map +0 -1
  492. package/dist/react-native/rest/isUnexpected.js +0 -83
  493. package/dist/react-native/rest/isUnexpected.js.map +0 -1
  494. package/dist/react-native/rest/models.d.ts +0 -213
  495. package/dist/react-native/rest/models.d.ts.map +0 -1
  496. package/dist/react-native/rest/models.js +0 -4
  497. package/dist/react-native/rest/models.js.map +0 -1
  498. package/dist/react-native/rest/outputModels.d.ts +0 -304
  499. package/dist/react-native/rest/outputModels.d.ts.map +0 -1
  500. package/dist/react-native/rest/outputModels.js +0 -4
  501. package/dist/react-native/rest/outputModels.js.map +0 -1
  502. package/dist/react-native/rest/paginateHelper.d.ts +0 -43
  503. package/dist/react-native/rest/paginateHelper.d.ts.map +0 -1
  504. package/dist/react-native/rest/paginateHelper.js +0 -70
  505. package/dist/react-native/rest/paginateHelper.js.map +0 -1
  506. package/dist/react-native/rest/parameters.d.ts +0 -27
  507. package/dist/react-native/rest/parameters.d.ts.map +0 -1
  508. package/dist/react-native/rest/parameters.js +0 -4
  509. package/dist/react-native/rest/parameters.js.map +0 -1
  510. package/dist/react-native/rest/pollingHelper.d.ts +0 -81
  511. package/dist/react-native/rest/pollingHelper.d.ts.map +0 -1
  512. package/dist/react-native/rest/pollingHelper.js +0 -97
  513. package/dist/react-native/rest/pollingHelper.js.map +0 -1
  514. package/dist/react-native/rest/responses.d.ts +0 -190
  515. package/dist/react-native/rest/responses.d.ts.map +0 -1
  516. package/dist/react-native/rest/responses.js +0 -4
  517. package/dist/react-native/rest/responses.js.map +0 -1
  518. /package/dist/browser/{models → api}/options.d.ts +0 -0
  519. /package/dist/commonjs/{models → api}/options.d.ts +0 -0
  520. /package/dist/esm/{models → api}/options.d.ts +0 -0
  521. /package/dist/react-native/{models → api}/options.d.ts +0 -0
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  // Copyright (c) Microsoft Corporation.
3
- // Licensed under the MIT license.
3
+ // Licensed under the MIT License.
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports._deidServicesGetSend = _deidServicesGetSend;
6
6
  exports._deidServicesGetDeserialize = _deidServicesGetDeserialize;
@@ -20,96 +20,21 @@ exports.deidServicesUpdate = deidServicesUpdate;
20
20
  exports._deidServicesDeleteSend = _deidServicesDeleteSend;
21
21
  exports._deidServicesDeleteDeserialize = _deidServicesDeleteDeserialize;
22
22
  exports.deidServicesDelete = deidServicesDelete;
23
- const pollingHelpers_js_1 = require("../pollingHelpers.js");
24
23
  const models_js_1 = require("../../models/models.js");
25
- const pagingHelpers_js_1 = require("../pagingHelpers.js");
26
- const index_js_1 = require("../../rest/index.js");
24
+ const pagingHelpers_js_1 = require("../../static-helpers/pagingHelpers.js");
25
+ const pollingHelpers_js_1 = require("../../static-helpers/pollingHelpers.js");
27
26
  const core_client_1 = require("@azure-rest/core-client");
28
- const serializerHelpers_js_1 = require("../../helpers/serializerHelpers.js");
29
27
  function _deidServicesGetSend(context, subscriptionId, resourceGroupName, deidServiceName, options = { requestOptions: {} }) {
30
28
  return context
31
29
  .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}", subscriptionId, resourceGroupName, deidServiceName)
32
30
  .get(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)));
33
31
  }
34
32
  async function _deidServicesGetDeserialize(result) {
35
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
36
- if ((0, index_js_1.isUnexpected)(result)) {
33
+ const expectedStatuses = ["200"];
34
+ if (!expectedStatuses.includes(result.status)) {
37
35
  throw (0, core_client_1.createRestError)(result);
38
36
  }
39
- return {
40
- tags: result.body["tags"],
41
- location: result.body["location"],
42
- id: result.body["id"],
43
- name: result.body["name"],
44
- type: result.body["type"],
45
- systemData: !result.body.systemData
46
- ? undefined
47
- : {
48
- createdBy: (_a = result.body.systemData) === null || _a === void 0 ? void 0 : _a["createdBy"],
49
- createdByType: (_b = result.body.systemData) === null || _b === void 0 ? void 0 : _b["createdByType"],
50
- createdAt: ((_c = result.body.systemData) === null || _c === void 0 ? void 0 : _c["createdAt"]) !== undefined
51
- ? new Date((_d = result.body.systemData) === null || _d === void 0 ? void 0 : _d["createdAt"])
52
- : undefined,
53
- lastModifiedBy: (_e = result.body.systemData) === null || _e === void 0 ? void 0 : _e["lastModifiedBy"],
54
- lastModifiedByType: (_f = result.body.systemData) === null || _f === void 0 ? void 0 : _f["lastModifiedByType"],
55
- lastModifiedAt: ((_g = result.body.systemData) === null || _g === void 0 ? void 0 : _g["lastModifiedAt"]) !== undefined
56
- ? new Date((_h = result.body.systemData) === null || _h === void 0 ? void 0 : _h["lastModifiedAt"])
57
- : undefined,
58
- },
59
- properties: !result.body.properties
60
- ? undefined
61
- : {
62
- provisioningState: (_j = result.body.properties) === null || _j === void 0 ? void 0 : _j["provisioningState"],
63
- serviceUrl: (_k = result.body.properties) === null || _k === void 0 ? void 0 : _k["serviceUrl"],
64
- privateEndpointConnections: ((_l = result.body.properties) === null || _l === void 0 ? void 0 : _l["privateEndpointConnections"]) === undefined
65
- ? (_m = result.body.properties) === null || _m === void 0 ? void 0 : _m["privateEndpointConnections"]
66
- : (_o = result.body.properties) === null || _o === void 0 ? void 0 : _o["privateEndpointConnections"].map((p) => {
67
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
68
- return {
69
- id: p["id"],
70
- name: p["name"],
71
- type: p["type"],
72
- systemData: !p.systemData
73
- ? undefined
74
- : {
75
- createdBy: (_a = p.systemData) === null || _a === void 0 ? void 0 : _a["createdBy"],
76
- createdByType: (_b = p.systemData) === null || _b === void 0 ? void 0 : _b["createdByType"],
77
- createdAt: ((_c = p.systemData) === null || _c === void 0 ? void 0 : _c["createdAt"]) !== undefined
78
- ? new Date((_d = p.systemData) === null || _d === void 0 ? void 0 : _d["createdAt"])
79
- : undefined,
80
- lastModifiedBy: (_e = p.systemData) === null || _e === void 0 ? void 0 : _e["lastModifiedBy"],
81
- lastModifiedByType: (_f = p.systemData) === null || _f === void 0 ? void 0 : _f["lastModifiedByType"],
82
- lastModifiedAt: ((_g = p.systemData) === null || _g === void 0 ? void 0 : _g["lastModifiedAt"]) !== undefined
83
- ? new Date((_h = p.systemData) === null || _h === void 0 ? void 0 : _h["lastModifiedAt"])
84
- : undefined,
85
- },
86
- properties: !p.properties
87
- ? undefined
88
- : {
89
- groupIds: (_j = p.properties) === null || _j === void 0 ? void 0 : _j["groupIds"],
90
- privateEndpoint: !((_k = p.properties) === null || _k === void 0 ? void 0 : _k.privateEndpoint)
91
- ? undefined
92
- : { id: (_m = (_l = p.properties) === null || _l === void 0 ? void 0 : _l.privateEndpoint) === null || _m === void 0 ? void 0 : _m["id"] },
93
- privateLinkServiceConnectionState: {
94
- status: (_o = p.properties) === null || _o === void 0 ? void 0 : _o.privateLinkServiceConnectionState["status"],
95
- description: (_p = p.properties) === null || _p === void 0 ? void 0 : _p.privateLinkServiceConnectionState["description"],
96
- actionsRequired: (_q = p.properties) === null || _q === void 0 ? void 0 : _q.privateLinkServiceConnectionState["actionsRequired"],
97
- },
98
- provisioningState: (_r = p.properties) === null || _r === void 0 ? void 0 : _r["provisioningState"],
99
- },
100
- };
101
- }),
102
- publicNetworkAccess: (_p = result.body.properties) === null || _p === void 0 ? void 0 : _p["publicNetworkAccess"],
103
- },
104
- identity: !result.body.identity
105
- ? undefined
106
- : {
107
- principalId: (_q = result.body.identity) === null || _q === void 0 ? void 0 : _q["principalId"],
108
- tenantId: (_r = result.body.identity) === null || _r === void 0 ? void 0 : _r["tenantId"],
109
- type: (_s = result.body.identity) === null || _s === void 0 ? void 0 : _s["type"],
110
- userAssignedIdentities: (_t = result.body.identity) === null || _t === void 0 ? void 0 : _t["userAssignedIdentities"],
111
- },
112
- };
37
+ return (0, models_js_1.deidServiceDeserializer)(result.body);
113
38
  }
114
39
  /** Get a DeidService */
115
40
  async function deidServicesGet(context, subscriptionId, resourceGroupName, deidServiceName, options = { requestOptions: {} }) {
@@ -124,95 +49,17 @@ function _deidServicesListByResourceGroupSend(context, subscriptionId, resourceG
124
49
  .get(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)));
125
50
  }
126
51
  async function _deidServicesListByResourceGroupDeserialize(result) {
127
- if ((0, index_js_1.isUnexpected)(result)) {
52
+ const expectedStatuses = ["200"];
53
+ if (!expectedStatuses.includes(result.status)) {
128
54
  throw (0, core_client_1.createRestError)(result);
129
55
  }
130
- return {
131
- value: result.body["value"].map((p) => {
132
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
133
- return {
134
- tags: p["tags"],
135
- location: p["location"],
136
- id: p["id"],
137
- name: p["name"],
138
- type: p["type"],
139
- systemData: !p.systemData
140
- ? undefined
141
- : {
142
- createdBy: (_a = p.systemData) === null || _a === void 0 ? void 0 : _a["createdBy"],
143
- createdByType: (_b = p.systemData) === null || _b === void 0 ? void 0 : _b["createdByType"],
144
- createdAt: ((_c = p.systemData) === null || _c === void 0 ? void 0 : _c["createdAt"]) !== undefined
145
- ? new Date((_d = p.systemData) === null || _d === void 0 ? void 0 : _d["createdAt"])
146
- : undefined,
147
- lastModifiedBy: (_e = p.systemData) === null || _e === void 0 ? void 0 : _e["lastModifiedBy"],
148
- lastModifiedByType: (_f = p.systemData) === null || _f === void 0 ? void 0 : _f["lastModifiedByType"],
149
- lastModifiedAt: ((_g = p.systemData) === null || _g === void 0 ? void 0 : _g["lastModifiedAt"]) !== undefined
150
- ? new Date((_h = p.systemData) === null || _h === void 0 ? void 0 : _h["lastModifiedAt"])
151
- : undefined,
152
- },
153
- properties: !p.properties
154
- ? undefined
155
- : {
156
- provisioningState: (_j = p.properties) === null || _j === void 0 ? void 0 : _j["provisioningState"],
157
- serviceUrl: (_k = p.properties) === null || _k === void 0 ? void 0 : _k["serviceUrl"],
158
- privateEndpointConnections: ((_l = p.properties) === null || _l === void 0 ? void 0 : _l["privateEndpointConnections"]) === undefined
159
- ? (_m = p.properties) === null || _m === void 0 ? void 0 : _m["privateEndpointConnections"]
160
- : (_o = p.properties) === null || _o === void 0 ? void 0 : _o["privateEndpointConnections"].map((p) => {
161
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
162
- return {
163
- id: p["id"],
164
- name: p["name"],
165
- type: p["type"],
166
- systemData: !p.systemData
167
- ? undefined
168
- : {
169
- createdBy: (_a = p.systemData) === null || _a === void 0 ? void 0 : _a["createdBy"],
170
- createdByType: (_b = p.systemData) === null || _b === void 0 ? void 0 : _b["createdByType"],
171
- createdAt: ((_c = p.systemData) === null || _c === void 0 ? void 0 : _c["createdAt"]) !== undefined
172
- ? new Date((_d = p.systemData) === null || _d === void 0 ? void 0 : _d["createdAt"])
173
- : undefined,
174
- lastModifiedBy: (_e = p.systemData) === null || _e === void 0 ? void 0 : _e["lastModifiedBy"],
175
- lastModifiedByType: (_f = p.systemData) === null || _f === void 0 ? void 0 : _f["lastModifiedByType"],
176
- lastModifiedAt: ((_g = p.systemData) === null || _g === void 0 ? void 0 : _g["lastModifiedAt"]) !== undefined
177
- ? new Date((_h = p.systemData) === null || _h === void 0 ? void 0 : _h["lastModifiedAt"])
178
- : undefined,
179
- },
180
- properties: !p.properties
181
- ? undefined
182
- : {
183
- groupIds: (_j = p.properties) === null || _j === void 0 ? void 0 : _j["groupIds"],
184
- privateEndpoint: !((_k = p.properties) === null || _k === void 0 ? void 0 : _k.privateEndpoint)
185
- ? undefined
186
- : { id: (_m = (_l = p.properties) === null || _l === void 0 ? void 0 : _l.privateEndpoint) === null || _m === void 0 ? void 0 : _m["id"] },
187
- privateLinkServiceConnectionState: {
188
- status: (_o = p.properties) === null || _o === void 0 ? void 0 : _o.privateLinkServiceConnectionState["status"],
189
- description: (_p = p.properties) === null || _p === void 0 ? void 0 : _p.privateLinkServiceConnectionState["description"],
190
- actionsRequired: (_q = p.properties) === null || _q === void 0 ? void 0 : _q.privateLinkServiceConnectionState["actionsRequired"],
191
- },
192
- provisioningState: (_r = p.properties) === null || _r === void 0 ? void 0 : _r["provisioningState"],
193
- },
194
- };
195
- }),
196
- publicNetworkAccess: (_p = p.properties) === null || _p === void 0 ? void 0 : _p["publicNetworkAccess"],
197
- },
198
- identity: !p.identity
199
- ? undefined
200
- : {
201
- principalId: (_q = p.identity) === null || _q === void 0 ? void 0 : _q["principalId"],
202
- tenantId: (_r = p.identity) === null || _r === void 0 ? void 0 : _r["tenantId"],
203
- type: (_s = p.identity) === null || _s === void 0 ? void 0 : _s["type"],
204
- userAssignedIdentities: (_t = p.identity) === null || _t === void 0 ? void 0 : _t["userAssignedIdentities"],
205
- },
206
- };
207
- }),
208
- nextLink: result.body["nextLink"],
209
- };
56
+ return (0, models_js_1._deidServiceListResultDeserializer)(result.body);
210
57
  }
211
58
  /** List DeidService resources by resource group */
212
59
  function deidServicesListByResourceGroup(context, subscriptionId, resourceGroupName, options = {
213
60
  requestOptions: {},
214
61
  }) {
215
- return (0, pagingHelpers_js_1.buildPagedAsyncIterator)(context, () => _deidServicesListByResourceGroupSend(context, subscriptionId, resourceGroupName, options), _deidServicesListByResourceGroupDeserialize, { itemName: "value", nextLinkName: "nextLink" });
62
+ return (0, pagingHelpers_js_1.buildPagedAsyncIterator)(context, () => _deidServicesListByResourceGroupSend(context, subscriptionId, resourceGroupName, options), _deidServicesListByResourceGroupDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
216
63
  }
217
64
  function _deidServicesListBySubscriptionSend(context, subscriptionId, options = {
218
65
  requestOptions: {},
@@ -222,299 +69,58 @@ function _deidServicesListBySubscriptionSend(context, subscriptionId, options =
222
69
  .get(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)));
223
70
  }
224
71
  async function _deidServicesListBySubscriptionDeserialize(result) {
225
- if ((0, index_js_1.isUnexpected)(result)) {
72
+ const expectedStatuses = ["200"];
73
+ if (!expectedStatuses.includes(result.status)) {
226
74
  throw (0, core_client_1.createRestError)(result);
227
75
  }
228
- return {
229
- value: result.body["value"].map((p) => {
230
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
231
- return {
232
- tags: p["tags"],
233
- location: p["location"],
234
- id: p["id"],
235
- name: p["name"],
236
- type: p["type"],
237
- systemData: !p.systemData
238
- ? undefined
239
- : {
240
- createdBy: (_a = p.systemData) === null || _a === void 0 ? void 0 : _a["createdBy"],
241
- createdByType: (_b = p.systemData) === null || _b === void 0 ? void 0 : _b["createdByType"],
242
- createdAt: ((_c = p.systemData) === null || _c === void 0 ? void 0 : _c["createdAt"]) !== undefined
243
- ? new Date((_d = p.systemData) === null || _d === void 0 ? void 0 : _d["createdAt"])
244
- : undefined,
245
- lastModifiedBy: (_e = p.systemData) === null || _e === void 0 ? void 0 : _e["lastModifiedBy"],
246
- lastModifiedByType: (_f = p.systemData) === null || _f === void 0 ? void 0 : _f["lastModifiedByType"],
247
- lastModifiedAt: ((_g = p.systemData) === null || _g === void 0 ? void 0 : _g["lastModifiedAt"]) !== undefined
248
- ? new Date((_h = p.systemData) === null || _h === void 0 ? void 0 : _h["lastModifiedAt"])
249
- : undefined,
250
- },
251
- properties: !p.properties
252
- ? undefined
253
- : {
254
- provisioningState: (_j = p.properties) === null || _j === void 0 ? void 0 : _j["provisioningState"],
255
- serviceUrl: (_k = p.properties) === null || _k === void 0 ? void 0 : _k["serviceUrl"],
256
- privateEndpointConnections: ((_l = p.properties) === null || _l === void 0 ? void 0 : _l["privateEndpointConnections"]) === undefined
257
- ? (_m = p.properties) === null || _m === void 0 ? void 0 : _m["privateEndpointConnections"]
258
- : (_o = p.properties) === null || _o === void 0 ? void 0 : _o["privateEndpointConnections"].map((p) => {
259
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
260
- return {
261
- id: p["id"],
262
- name: p["name"],
263
- type: p["type"],
264
- systemData: !p.systemData
265
- ? undefined
266
- : {
267
- createdBy: (_a = p.systemData) === null || _a === void 0 ? void 0 : _a["createdBy"],
268
- createdByType: (_b = p.systemData) === null || _b === void 0 ? void 0 : _b["createdByType"],
269
- createdAt: ((_c = p.systemData) === null || _c === void 0 ? void 0 : _c["createdAt"]) !== undefined
270
- ? new Date((_d = p.systemData) === null || _d === void 0 ? void 0 : _d["createdAt"])
271
- : undefined,
272
- lastModifiedBy: (_e = p.systemData) === null || _e === void 0 ? void 0 : _e["lastModifiedBy"],
273
- lastModifiedByType: (_f = p.systemData) === null || _f === void 0 ? void 0 : _f["lastModifiedByType"],
274
- lastModifiedAt: ((_g = p.systemData) === null || _g === void 0 ? void 0 : _g["lastModifiedAt"]) !== undefined
275
- ? new Date((_h = p.systemData) === null || _h === void 0 ? void 0 : _h["lastModifiedAt"])
276
- : undefined,
277
- },
278
- properties: !p.properties
279
- ? undefined
280
- : {
281
- groupIds: (_j = p.properties) === null || _j === void 0 ? void 0 : _j["groupIds"],
282
- privateEndpoint: !((_k = p.properties) === null || _k === void 0 ? void 0 : _k.privateEndpoint)
283
- ? undefined
284
- : { id: (_m = (_l = p.properties) === null || _l === void 0 ? void 0 : _l.privateEndpoint) === null || _m === void 0 ? void 0 : _m["id"] },
285
- privateLinkServiceConnectionState: {
286
- status: (_o = p.properties) === null || _o === void 0 ? void 0 : _o.privateLinkServiceConnectionState["status"],
287
- description: (_p = p.properties) === null || _p === void 0 ? void 0 : _p.privateLinkServiceConnectionState["description"],
288
- actionsRequired: (_q = p.properties) === null || _q === void 0 ? void 0 : _q.privateLinkServiceConnectionState["actionsRequired"],
289
- },
290
- provisioningState: (_r = p.properties) === null || _r === void 0 ? void 0 : _r["provisioningState"],
291
- },
292
- };
293
- }),
294
- publicNetworkAccess: (_p = p.properties) === null || _p === void 0 ? void 0 : _p["publicNetworkAccess"],
295
- },
296
- identity: !p.identity
297
- ? undefined
298
- : {
299
- principalId: (_q = p.identity) === null || _q === void 0 ? void 0 : _q["principalId"],
300
- tenantId: (_r = p.identity) === null || _r === void 0 ? void 0 : _r["tenantId"],
301
- type: (_s = p.identity) === null || _s === void 0 ? void 0 : _s["type"],
302
- userAssignedIdentities: (_t = p.identity) === null || _t === void 0 ? void 0 : _t["userAssignedIdentities"],
303
- },
304
- };
305
- }),
306
- nextLink: result.body["nextLink"],
307
- };
76
+ return (0, models_js_1._deidServiceListResultDeserializer)(result.body);
308
77
  }
309
78
  /** List DeidService resources by subscription ID */
310
79
  function deidServicesListBySubscription(context, subscriptionId, options = {
311
80
  requestOptions: {},
312
81
  }) {
313
- return (0, pagingHelpers_js_1.buildPagedAsyncIterator)(context, () => _deidServicesListBySubscriptionSend(context, subscriptionId, options), _deidServicesListBySubscriptionDeserialize, { itemName: "value", nextLinkName: "nextLink" });
82
+ return (0, pagingHelpers_js_1.buildPagedAsyncIterator)(context, () => _deidServicesListBySubscriptionSend(context, subscriptionId, options), _deidServicesListBySubscriptionDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
314
83
  }
315
84
  function _deidServicesCreateSend(context, subscriptionId, resourceGroupName, deidServiceName, resource, options = { requestOptions: {} }) {
316
85
  return context
317
86
  .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}", subscriptionId, resourceGroupName, deidServiceName)
318
- .put(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { body: {
319
- tags: !resource.tags ? resource.tags : (0, serializerHelpers_js_1.serializeRecord)(resource.tags),
320
- location: resource["location"],
321
- properties: !resource.properties
322
- ? resource.properties
323
- : (0, models_js_1.deidServicePropertiesSerializer)(resource.properties),
324
- identity: !resource.identity
325
- ? resource.identity
326
- : (0, models_js_1.managedServiceIdentitySerializer)(resource.identity),
327
- } }));
87
+ .put(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { body: (0, models_js_1.deidServiceSerializer)(resource) }));
328
88
  }
329
89
  async function _deidServicesCreateDeserialize(result) {
330
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
331
- if ((0, index_js_1.isUnexpected)(result)) {
90
+ const expectedStatuses = ["200", "201"];
91
+ if (!expectedStatuses.includes(result.status)) {
332
92
  throw (0, core_client_1.createRestError)(result);
333
93
  }
334
- const res = result;
335
- return {
336
- tags: res.body["tags"],
337
- location: res.body["location"],
338
- id: res.body["id"],
339
- name: res.body["name"],
340
- type: res.body["type"],
341
- systemData: !res.body.systemData
342
- ? undefined
343
- : {
344
- createdBy: (_a = res.body.systemData) === null || _a === void 0 ? void 0 : _a["createdBy"],
345
- createdByType: (_b = res.body.systemData) === null || _b === void 0 ? void 0 : _b["createdByType"],
346
- createdAt: ((_c = res.body.systemData) === null || _c === void 0 ? void 0 : _c["createdAt"]) !== undefined
347
- ? new Date((_d = res.body.systemData) === null || _d === void 0 ? void 0 : _d["createdAt"])
348
- : undefined,
349
- lastModifiedBy: (_e = res.body.systemData) === null || _e === void 0 ? void 0 : _e["lastModifiedBy"],
350
- lastModifiedByType: (_f = res.body.systemData) === null || _f === void 0 ? void 0 : _f["lastModifiedByType"],
351
- lastModifiedAt: ((_g = res.body.systemData) === null || _g === void 0 ? void 0 : _g["lastModifiedAt"]) !== undefined
352
- ? new Date((_h = res.body.systemData) === null || _h === void 0 ? void 0 : _h["lastModifiedAt"])
353
- : undefined,
354
- },
355
- properties: !res.body.properties
356
- ? undefined
357
- : {
358
- provisioningState: (_j = res.body.properties) === null || _j === void 0 ? void 0 : _j["provisioningState"],
359
- serviceUrl: (_k = res.body.properties) === null || _k === void 0 ? void 0 : _k["serviceUrl"],
360
- privateEndpointConnections: ((_l = res.body.properties) === null || _l === void 0 ? void 0 : _l["privateEndpointConnections"]) === undefined
361
- ? (_m = res.body.properties) === null || _m === void 0 ? void 0 : _m["privateEndpointConnections"]
362
- : (_o = res.body.properties) === null || _o === void 0 ? void 0 : _o["privateEndpointConnections"].map((p) => {
363
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
364
- return {
365
- id: p["id"],
366
- name: p["name"],
367
- type: p["type"],
368
- systemData: !p.systemData
369
- ? undefined
370
- : {
371
- createdBy: (_a = p.systemData) === null || _a === void 0 ? void 0 : _a["createdBy"],
372
- createdByType: (_b = p.systemData) === null || _b === void 0 ? void 0 : _b["createdByType"],
373
- createdAt: ((_c = p.systemData) === null || _c === void 0 ? void 0 : _c["createdAt"]) !== undefined
374
- ? new Date((_d = p.systemData) === null || _d === void 0 ? void 0 : _d["createdAt"])
375
- : undefined,
376
- lastModifiedBy: (_e = p.systemData) === null || _e === void 0 ? void 0 : _e["lastModifiedBy"],
377
- lastModifiedByType: (_f = p.systemData) === null || _f === void 0 ? void 0 : _f["lastModifiedByType"],
378
- lastModifiedAt: ((_g = p.systemData) === null || _g === void 0 ? void 0 : _g["lastModifiedAt"]) !== undefined
379
- ? new Date((_h = p.systemData) === null || _h === void 0 ? void 0 : _h["lastModifiedAt"])
380
- : undefined,
381
- },
382
- properties: !p.properties
383
- ? undefined
384
- : {
385
- groupIds: (_j = p.properties) === null || _j === void 0 ? void 0 : _j["groupIds"],
386
- privateEndpoint: !((_k = p.properties) === null || _k === void 0 ? void 0 : _k.privateEndpoint)
387
- ? undefined
388
- : { id: (_m = (_l = p.properties) === null || _l === void 0 ? void 0 : _l.privateEndpoint) === null || _m === void 0 ? void 0 : _m["id"] },
389
- privateLinkServiceConnectionState: {
390
- status: (_o = p.properties) === null || _o === void 0 ? void 0 : _o.privateLinkServiceConnectionState["status"],
391
- description: (_p = p.properties) === null || _p === void 0 ? void 0 : _p.privateLinkServiceConnectionState["description"],
392
- actionsRequired: (_q = p.properties) === null || _q === void 0 ? void 0 : _q.privateLinkServiceConnectionState["actionsRequired"],
393
- },
394
- provisioningState: (_r = p.properties) === null || _r === void 0 ? void 0 : _r["provisioningState"],
395
- },
396
- };
397
- }),
398
- publicNetworkAccess: (_p = res.body.properties) === null || _p === void 0 ? void 0 : _p["publicNetworkAccess"],
399
- },
400
- identity: !res.body.identity
401
- ? undefined
402
- : {
403
- principalId: (_q = res.body.identity) === null || _q === void 0 ? void 0 : _q["principalId"],
404
- tenantId: (_r = res.body.identity) === null || _r === void 0 ? void 0 : _r["tenantId"],
405
- type: (_s = res.body.identity) === null || _s === void 0 ? void 0 : _s["type"],
406
- userAssignedIdentities: (_t = res.body.identity) === null || _t === void 0 ? void 0 : _t["userAssignedIdentities"],
407
- },
408
- };
94
+ return (0, models_js_1.deidServiceDeserializer)(result.body);
409
95
  }
410
96
  /** Create a DeidService */
411
97
  function deidServicesCreate(context, subscriptionId, resourceGroupName, deidServiceName, resource, options = { requestOptions: {} }) {
412
- return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _deidServicesCreateDeserialize, {
98
+ return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _deidServicesCreateDeserialize, ["200", "201"], {
413
99
  updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
414
100
  abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
415
101
  getInitialResponse: () => _deidServicesCreateSend(context, subscriptionId, resourceGroupName, deidServiceName, resource, options),
102
+ resourceLocationConfig: "azure-async-operation",
416
103
  });
417
104
  }
418
105
  function _deidServicesUpdateSend(context, subscriptionId, resourceGroupName, deidServiceName, properties, options = { requestOptions: {} }) {
419
106
  return context
420
107
  .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}", subscriptionId, resourceGroupName, deidServiceName)
421
- .patch(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { body: {
422
- tags: !properties.tags ? properties.tags : (0, serializerHelpers_js_1.serializeRecord)(properties.tags),
423
- identity: !properties.identity
424
- ? properties.identity
425
- : (0, models_js_1.managedServiceIdentityUpdateSerializer)(properties.identity),
426
- properties: !properties.properties
427
- ? properties.properties
428
- : (0, models_js_1.deidPropertiesUpdateSerializer)(properties.properties),
429
- } }));
108
+ .patch(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { body: (0, models_js_1.deidUpdateSerializer)(properties) }));
430
109
  }
431
110
  async function _deidServicesUpdateDeserialize(result) {
432
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
433
- if ((0, index_js_1.isUnexpected)(result)) {
111
+ const expectedStatuses = ["200", "202"];
112
+ if (!expectedStatuses.includes(result.status)) {
434
113
  throw (0, core_client_1.createRestError)(result);
435
114
  }
436
- const res = result;
437
- return {
438
- tags: res.body["tags"],
439
- location: res.body["location"],
440
- id: res.body["id"],
441
- name: res.body["name"],
442
- type: res.body["type"],
443
- systemData: !res.body.systemData
444
- ? undefined
445
- : {
446
- createdBy: (_a = res.body.systemData) === null || _a === void 0 ? void 0 : _a["createdBy"],
447
- createdByType: (_b = res.body.systemData) === null || _b === void 0 ? void 0 : _b["createdByType"],
448
- createdAt: ((_c = res.body.systemData) === null || _c === void 0 ? void 0 : _c["createdAt"]) !== undefined
449
- ? new Date((_d = res.body.systemData) === null || _d === void 0 ? void 0 : _d["createdAt"])
450
- : undefined,
451
- lastModifiedBy: (_e = res.body.systemData) === null || _e === void 0 ? void 0 : _e["lastModifiedBy"],
452
- lastModifiedByType: (_f = res.body.systemData) === null || _f === void 0 ? void 0 : _f["lastModifiedByType"],
453
- lastModifiedAt: ((_g = res.body.systemData) === null || _g === void 0 ? void 0 : _g["lastModifiedAt"]) !== undefined
454
- ? new Date((_h = res.body.systemData) === null || _h === void 0 ? void 0 : _h["lastModifiedAt"])
455
- : undefined,
456
- },
457
- properties: !res.body.properties
458
- ? undefined
459
- : {
460
- provisioningState: (_j = res.body.properties) === null || _j === void 0 ? void 0 : _j["provisioningState"],
461
- serviceUrl: (_k = res.body.properties) === null || _k === void 0 ? void 0 : _k["serviceUrl"],
462
- privateEndpointConnections: ((_l = res.body.properties) === null || _l === void 0 ? void 0 : _l["privateEndpointConnections"]) === undefined
463
- ? (_m = res.body.properties) === null || _m === void 0 ? void 0 : _m["privateEndpointConnections"]
464
- : (_o = res.body.properties) === null || _o === void 0 ? void 0 : _o["privateEndpointConnections"].map((p) => {
465
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
466
- return {
467
- id: p["id"],
468
- name: p["name"],
469
- type: p["type"],
470
- systemData: !p.systemData
471
- ? undefined
472
- : {
473
- createdBy: (_a = p.systemData) === null || _a === void 0 ? void 0 : _a["createdBy"],
474
- createdByType: (_b = p.systemData) === null || _b === void 0 ? void 0 : _b["createdByType"],
475
- createdAt: ((_c = p.systemData) === null || _c === void 0 ? void 0 : _c["createdAt"]) !== undefined
476
- ? new Date((_d = p.systemData) === null || _d === void 0 ? void 0 : _d["createdAt"])
477
- : undefined,
478
- lastModifiedBy: (_e = p.systemData) === null || _e === void 0 ? void 0 : _e["lastModifiedBy"],
479
- lastModifiedByType: (_f = p.systemData) === null || _f === void 0 ? void 0 : _f["lastModifiedByType"],
480
- lastModifiedAt: ((_g = p.systemData) === null || _g === void 0 ? void 0 : _g["lastModifiedAt"]) !== undefined
481
- ? new Date((_h = p.systemData) === null || _h === void 0 ? void 0 : _h["lastModifiedAt"])
482
- : undefined,
483
- },
484
- properties: !p.properties
485
- ? undefined
486
- : {
487
- groupIds: (_j = p.properties) === null || _j === void 0 ? void 0 : _j["groupIds"],
488
- privateEndpoint: !((_k = p.properties) === null || _k === void 0 ? void 0 : _k.privateEndpoint)
489
- ? undefined
490
- : { id: (_m = (_l = p.properties) === null || _l === void 0 ? void 0 : _l.privateEndpoint) === null || _m === void 0 ? void 0 : _m["id"] },
491
- privateLinkServiceConnectionState: {
492
- status: (_o = p.properties) === null || _o === void 0 ? void 0 : _o.privateLinkServiceConnectionState["status"],
493
- description: (_p = p.properties) === null || _p === void 0 ? void 0 : _p.privateLinkServiceConnectionState["description"],
494
- actionsRequired: (_q = p.properties) === null || _q === void 0 ? void 0 : _q.privateLinkServiceConnectionState["actionsRequired"],
495
- },
496
- provisioningState: (_r = p.properties) === null || _r === void 0 ? void 0 : _r["provisioningState"],
497
- },
498
- };
499
- }),
500
- publicNetworkAccess: (_p = res.body.properties) === null || _p === void 0 ? void 0 : _p["publicNetworkAccess"],
501
- },
502
- identity: !res.body.identity
503
- ? undefined
504
- : {
505
- principalId: (_q = res.body.identity) === null || _q === void 0 ? void 0 : _q["principalId"],
506
- tenantId: (_r = res.body.identity) === null || _r === void 0 ? void 0 : _r["tenantId"],
507
- type: (_s = res.body.identity) === null || _s === void 0 ? void 0 : _s["type"],
508
- userAssignedIdentities: (_t = res.body.identity) === null || _t === void 0 ? void 0 : _t["userAssignedIdentities"],
509
- },
510
- };
115
+ return (0, models_js_1.deidServiceDeserializer)(result.body);
511
116
  }
512
117
  /** Update a DeidService */
513
118
  function deidServicesUpdate(context, subscriptionId, resourceGroupName, deidServiceName, properties, options = { requestOptions: {} }) {
514
- return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _deidServicesUpdateDeserialize, {
119
+ return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _deidServicesUpdateDeserialize, ["200", "202"], {
515
120
  updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
516
121
  abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
517
122
  getInitialResponse: () => _deidServicesUpdateSend(context, subscriptionId, resourceGroupName, deidServiceName, properties, options),
123
+ resourceLocationConfig: "location",
518
124
  });
519
125
  }
520
126
  function _deidServicesDeleteSend(context, subscriptionId, resourceGroupName, deidServiceName, options = { requestOptions: {} }) {
@@ -523,17 +129,19 @@ function _deidServicesDeleteSend(context, subscriptionId, resourceGroupName, dei
523
129
  .delete(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)));
524
130
  }
525
131
  async function _deidServicesDeleteDeserialize(result) {
526
- if ((0, index_js_1.isUnexpected)(result)) {
132
+ const expectedStatuses = ["202", "204", "200"];
133
+ if (!expectedStatuses.includes(result.status)) {
527
134
  throw (0, core_client_1.createRestError)(result);
528
135
  }
529
136
  return;
530
137
  }
531
138
  /** Delete a DeidService */
532
139
  function deidServicesDelete(context, subscriptionId, resourceGroupName, deidServiceName, options = { requestOptions: {} }) {
533
- return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _deidServicesDeleteDeserialize, {
140
+ return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _deidServicesDeleteDeserialize, ["202", "204", "200"], {
534
141
  updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
535
142
  abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
536
143
  getInitialResponse: () => _deidServicesDeleteSend(context, subscriptionId, resourceGroupName, deidServiceName, options),
144
+ resourceLocationConfig: "location",
537
145
  });
538
146
  }
539
147
  //# sourceMappingURL=index.js.map