@azure/arm-deviceprovisioningservices 6.0.0-beta.2 → 6.0.0-beta.3

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 (510) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +9 -12
  3. package/dist/browser/api/dpsCertificate/index.d.ts +3 -0
  4. package/dist/browser/api/dpsCertificate/index.js +4 -0
  5. package/dist/browser/api/dpsCertificate/index.js.map +1 -0
  6. package/dist/browser/api/dpsCertificate/operations.d.ts +35 -0
  7. package/dist/browser/api/dpsCertificate/operations.js +258 -0
  8. package/dist/browser/api/dpsCertificate/operations.js.map +1 -0
  9. package/dist/browser/api/dpsCertificate/options.d.ts +73 -0
  10. package/dist/browser/api/dpsCertificate/options.js +4 -0
  11. package/dist/browser/api/dpsCertificate/options.js.map +1 -0
  12. package/dist/browser/api/index.d.ts +2 -0
  13. package/dist/browser/api/index.js +4 -0
  14. package/dist/browser/api/index.js.map +1 -0
  15. package/dist/browser/api/iotDpsContext.d.ts +22 -0
  16. package/dist/browser/api/iotDpsContext.js +39 -0
  17. package/dist/browser/api/iotDpsContext.js.map +1 -0
  18. package/dist/browser/api/iotDpsResource/index.d.ts +3 -0
  19. package/dist/browser/api/iotDpsResource/index.js +4 -0
  20. package/dist/browser/api/iotDpsResource/index.js.map +1 -0
  21. package/dist/browser/api/iotDpsResource/operations.d.ts +80 -0
  22. package/dist/browser/api/iotDpsResource/operations.js +603 -0
  23. package/dist/browser/api/iotDpsResource/operations.js.map +1 -0
  24. package/dist/browser/api/iotDpsResource/options.d.ts +63 -0
  25. package/dist/browser/api/iotDpsResource/options.js +4 -0
  26. package/dist/browser/api/iotDpsResource/options.js.map +1 -0
  27. package/dist/browser/api/operations/index.d.ts +3 -0
  28. package/dist/browser/api/operations/index.js +4 -0
  29. package/dist/browser/api/operations/index.js.map +1 -0
  30. package/dist/browser/api/operations/operations.d.ts +10 -0
  31. package/dist/browser/api/operations/operations.js +34 -0
  32. package/dist/browser/api/operations/operations.js.map +1 -0
  33. package/dist/browser/api/operations/options.d.ts +5 -0
  34. package/dist/browser/api/operations/options.js +4 -0
  35. package/dist/browser/api/operations/options.js.map +1 -0
  36. package/dist/browser/classic/dpsCertificate/index.d.ts +26 -0
  37. package/dist/browser/classic/dpsCertificate/index.js +19 -0
  38. package/dist/browser/classic/dpsCertificate/index.js.map +1 -0
  39. package/dist/browser/classic/index.d.ts +4 -0
  40. package/dist/browser/classic/index.js +4 -0
  41. package/dist/browser/classic/index.js.map +1 -0
  42. package/dist/browser/classic/iotDpsResource/index.d.ts +49 -0
  43. package/dist/browser/classic/iotDpsResource/index.js +30 -0
  44. package/dist/browser/classic/iotDpsResource/index.js.map +1 -0
  45. package/dist/browser/classic/operations/index.d.ts +11 -0
  46. package/dist/browser/classic/operations/index.js +14 -0
  47. package/dist/browser/classic/operations/index.js.map +1 -0
  48. package/dist/browser/index.d.ts +11 -3
  49. package/dist/browser/index.js +6 -11
  50. package/dist/browser/index.js.map +1 -1
  51. package/dist/browser/iotDpsClient.d.ts +19 -20
  52. package/dist/browser/iotDpsClient.js +28 -105
  53. package/dist/browser/iotDpsClient.js.map +1 -1
  54. package/dist/browser/logger.d.ts +2 -0
  55. package/dist/browser/logger.js +5 -0
  56. package/dist/browser/logger.js.map +1 -0
  57. package/dist/browser/models/index.d.ts +1 -978
  58. package/dist/browser/models/index.js +3 -127
  59. package/dist/browser/models/index.js.map +1 -1
  60. package/dist/browser/models/models.d.ts +710 -0
  61. package/dist/browser/models/models.js +749 -0
  62. package/dist/browser/models/models.js.map +1 -0
  63. package/dist/browser/restorePollerHelpers.d.ts +21 -0
  64. package/dist/browser/restorePollerHelpers.js +104 -0
  65. package/dist/browser/restorePollerHelpers.js.map +1 -0
  66. package/dist/browser/static-helpers/cloudSettingHelpers.d.ts +22 -0
  67. package/dist/browser/static-helpers/cloudSettingHelpers.js +38 -0
  68. package/dist/browser/static-helpers/cloudSettingHelpers.js.map +1 -0
  69. package/dist/browser/static-helpers/pagingHelpers.d.ts +72 -0
  70. package/dist/browser/static-helpers/pagingHelpers.js +118 -0
  71. package/dist/browser/static-helpers/pagingHelpers.js.map +1 -0
  72. package/dist/browser/static-helpers/pollingHelpers.d.ts +30 -0
  73. package/dist/browser/static-helpers/pollingHelpers.js +79 -0
  74. package/dist/browser/static-helpers/pollingHelpers.js.map +1 -0
  75. package/dist/browser/static-helpers/urlTemplate.d.ts +5 -0
  76. package/dist/browser/static-helpers/urlTemplate.js +185 -0
  77. package/dist/browser/static-helpers/urlTemplate.js.map +1 -0
  78. package/dist/commonjs/api/dpsCertificate/index.d.ts +3 -0
  79. package/dist/commonjs/api/dpsCertificate/index.js +13 -0
  80. package/dist/commonjs/api/dpsCertificate/index.js.map +1 -0
  81. package/dist/commonjs/api/dpsCertificate/operations.d.ts +35 -0
  82. package/dist/commonjs/api/dpsCertificate/operations.js +278 -0
  83. package/dist/commonjs/api/dpsCertificate/operations.js.map +1 -0
  84. package/dist/commonjs/api/dpsCertificate/options.d.ts +73 -0
  85. package/dist/commonjs/api/dpsCertificate/options.js +5 -0
  86. package/dist/commonjs/api/dpsCertificate/options.js.map +1 -0
  87. package/dist/commonjs/api/index.d.ts +2 -0
  88. package/dist/commonjs/api/index.js +8 -0
  89. package/dist/commonjs/api/index.js.map +1 -0
  90. package/dist/commonjs/api/iotDpsContext.d.ts +22 -0
  91. package/dist/commonjs/api/iotDpsContext.js +42 -0
  92. package/dist/commonjs/api/iotDpsContext.js.map +1 -0
  93. package/dist/commonjs/api/iotDpsResource/index.d.ts +3 -0
  94. package/dist/commonjs/api/iotDpsResource/index.js +24 -0
  95. package/dist/commonjs/api/iotDpsResource/index.js.map +1 -0
  96. package/dist/commonjs/api/iotDpsResource/operations.d.ts +80 -0
  97. package/dist/commonjs/api/iotDpsResource/operations.js +656 -0
  98. package/dist/commonjs/api/iotDpsResource/operations.js.map +1 -0
  99. package/dist/commonjs/api/iotDpsResource/options.d.ts +63 -0
  100. package/dist/commonjs/api/iotDpsResource/options.js +5 -0
  101. package/dist/commonjs/api/iotDpsResource/options.js.map +1 -0
  102. package/dist/commonjs/api/operations/index.d.ts +3 -0
  103. package/dist/commonjs/api/operations/index.js +8 -0
  104. package/dist/commonjs/api/operations/index.js.map +1 -0
  105. package/dist/commonjs/api/operations/operations.d.ts +10 -0
  106. package/dist/commonjs/api/operations/operations.js +39 -0
  107. package/dist/commonjs/api/operations/operations.js.map +1 -0
  108. package/dist/commonjs/api/operations/options.d.ts +5 -0
  109. package/dist/commonjs/api/operations/options.js +5 -0
  110. package/dist/commonjs/api/operations/options.js.map +1 -0
  111. package/dist/commonjs/classic/dpsCertificate/index.d.ts +26 -0
  112. package/dist/commonjs/classic/dpsCertificate/index.js +22 -0
  113. package/dist/commonjs/classic/dpsCertificate/index.js.map +1 -0
  114. package/dist/commonjs/classic/index.d.ts +4 -0
  115. package/dist/commonjs/classic/index.js +5 -0
  116. package/dist/commonjs/classic/index.js.map +1 -0
  117. package/dist/commonjs/classic/iotDpsResource/index.d.ts +49 -0
  118. package/dist/commonjs/classic/iotDpsResource/index.js +33 -0
  119. package/dist/commonjs/classic/iotDpsResource/index.js.map +1 -0
  120. package/dist/commonjs/classic/operations/index.d.ts +11 -0
  121. package/dist/commonjs/classic/operations/index.js +17 -0
  122. package/dist/commonjs/classic/operations/index.js.map +1 -0
  123. package/dist/commonjs/index.d.ts +11 -3
  124. package/dist/commonjs/index.js +20 -14
  125. package/dist/commonjs/index.js.map +1 -1
  126. package/dist/commonjs/iotDpsClient.d.ts +19 -20
  127. package/dist/commonjs/iotDpsClient.js +28 -106
  128. package/dist/commonjs/iotDpsClient.js.map +1 -1
  129. package/dist/commonjs/logger.d.ts +2 -0
  130. package/dist/commonjs/logger.js +8 -0
  131. package/dist/commonjs/logger.js.map +1 -0
  132. package/dist/commonjs/models/index.d.ts +1 -978
  133. package/dist/commonjs/models/index.js +16 -128
  134. package/dist/commonjs/models/index.js.map +1 -1
  135. package/dist/commonjs/models/models.d.ts +710 -0
  136. package/dist/commonjs/models/models.js +833 -0
  137. package/dist/commonjs/models/models.js.map +1 -0
  138. package/dist/commonjs/restorePollerHelpers.d.ts +21 -0
  139. package/dist/commonjs/restorePollerHelpers.js +107 -0
  140. package/dist/commonjs/restorePollerHelpers.js.map +1 -0
  141. package/dist/commonjs/static-helpers/cloudSettingHelpers.d.ts +22 -0
  142. package/dist/commonjs/static-helpers/cloudSettingHelpers.js +42 -0
  143. package/dist/commonjs/static-helpers/cloudSettingHelpers.js.map +1 -0
  144. package/dist/commonjs/static-helpers/pagingHelpers.d.ts +72 -0
  145. package/dist/commonjs/static-helpers/pagingHelpers.js +121 -0
  146. package/dist/commonjs/static-helpers/pagingHelpers.js.map +1 -0
  147. package/dist/commonjs/static-helpers/pollingHelpers.d.ts +30 -0
  148. package/dist/commonjs/static-helpers/pollingHelpers.js +82 -0
  149. package/dist/commonjs/static-helpers/pollingHelpers.js.map +1 -0
  150. package/dist/commonjs/static-helpers/urlTemplate.d.ts +5 -0
  151. package/dist/commonjs/static-helpers/urlTemplate.js +188 -0
  152. package/dist/commonjs/static-helpers/urlTemplate.js.map +1 -0
  153. package/dist/commonjs/tsdoc-metadata.json +1 -1
  154. package/dist/esm/api/dpsCertificate/index.d.ts +3 -0
  155. package/dist/esm/api/dpsCertificate/index.js +4 -0
  156. package/dist/esm/api/dpsCertificate/index.js.map +1 -0
  157. package/dist/esm/api/dpsCertificate/operations.d.ts +35 -0
  158. package/dist/esm/api/dpsCertificate/operations.js +258 -0
  159. package/dist/esm/api/dpsCertificate/operations.js.map +1 -0
  160. package/dist/esm/api/dpsCertificate/options.d.ts +73 -0
  161. package/dist/esm/api/dpsCertificate/options.js +4 -0
  162. package/dist/esm/api/dpsCertificate/options.js.map +1 -0
  163. package/dist/esm/api/index.d.ts +2 -0
  164. package/dist/esm/api/index.js +4 -0
  165. package/dist/esm/api/index.js.map +1 -0
  166. package/dist/esm/api/iotDpsContext.d.ts +22 -0
  167. package/dist/esm/api/iotDpsContext.js +39 -0
  168. package/dist/esm/api/iotDpsContext.js.map +1 -0
  169. package/dist/esm/api/iotDpsResource/index.d.ts +3 -0
  170. package/dist/esm/api/iotDpsResource/index.js +4 -0
  171. package/dist/esm/api/iotDpsResource/index.js.map +1 -0
  172. package/dist/esm/api/iotDpsResource/operations.d.ts +80 -0
  173. package/dist/esm/api/iotDpsResource/operations.js +603 -0
  174. package/dist/esm/api/iotDpsResource/operations.js.map +1 -0
  175. package/dist/esm/api/iotDpsResource/options.d.ts +63 -0
  176. package/dist/esm/api/iotDpsResource/options.js +4 -0
  177. package/dist/esm/api/iotDpsResource/options.js.map +1 -0
  178. package/dist/esm/api/operations/index.d.ts +3 -0
  179. package/dist/esm/api/operations/index.js +4 -0
  180. package/dist/esm/api/operations/index.js.map +1 -0
  181. package/dist/esm/api/operations/operations.d.ts +10 -0
  182. package/dist/esm/api/operations/operations.js +34 -0
  183. package/dist/esm/api/operations/operations.js.map +1 -0
  184. package/dist/esm/api/operations/options.d.ts +5 -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/classic/dpsCertificate/index.d.ts +26 -0
  188. package/dist/esm/classic/dpsCertificate/index.js +19 -0
  189. package/dist/esm/classic/dpsCertificate/index.js.map +1 -0
  190. package/dist/esm/classic/index.d.ts +4 -0
  191. package/dist/esm/classic/index.js +4 -0
  192. package/dist/esm/classic/index.js.map +1 -0
  193. package/dist/esm/classic/iotDpsResource/index.d.ts +49 -0
  194. package/dist/esm/classic/iotDpsResource/index.js +30 -0
  195. package/dist/esm/classic/iotDpsResource/index.js.map +1 -0
  196. package/dist/esm/classic/operations/index.d.ts +11 -0
  197. package/dist/esm/classic/operations/index.js +14 -0
  198. package/dist/esm/classic/operations/index.js.map +1 -0
  199. package/dist/esm/index.d.ts +11 -3
  200. package/dist/esm/index.js +6 -11
  201. package/dist/esm/index.js.map +1 -1
  202. package/dist/esm/iotDpsClient.d.ts +19 -20
  203. package/dist/esm/iotDpsClient.js +28 -105
  204. package/dist/esm/iotDpsClient.js.map +1 -1
  205. package/dist/esm/logger.d.ts +2 -0
  206. package/dist/esm/logger.js +5 -0
  207. package/dist/esm/logger.js.map +1 -0
  208. package/dist/esm/models/index.d.ts +1 -978
  209. package/dist/esm/models/index.js +3 -127
  210. package/dist/esm/models/index.js.map +1 -1
  211. package/dist/esm/models/models.d.ts +710 -0
  212. package/dist/esm/models/models.js +749 -0
  213. package/dist/esm/models/models.js.map +1 -0
  214. package/dist/esm/restorePollerHelpers.d.ts +21 -0
  215. package/dist/esm/restorePollerHelpers.js +104 -0
  216. package/dist/esm/restorePollerHelpers.js.map +1 -0
  217. package/dist/esm/static-helpers/cloudSettingHelpers.d.ts +22 -0
  218. package/dist/esm/static-helpers/cloudSettingHelpers.js +38 -0
  219. package/dist/esm/static-helpers/cloudSettingHelpers.js.map +1 -0
  220. package/dist/esm/static-helpers/pagingHelpers.d.ts +72 -0
  221. package/dist/esm/static-helpers/pagingHelpers.js +118 -0
  222. package/dist/esm/static-helpers/pagingHelpers.js.map +1 -0
  223. package/dist/esm/static-helpers/pollingHelpers.d.ts +30 -0
  224. package/dist/esm/static-helpers/pollingHelpers.js +79 -0
  225. package/dist/esm/static-helpers/pollingHelpers.js.map +1 -0
  226. package/dist/esm/static-helpers/urlTemplate.d.ts +5 -0
  227. package/dist/esm/static-helpers/urlTemplate.js +185 -0
  228. package/dist/esm/static-helpers/urlTemplate.js.map +1 -0
  229. package/dist/react-native/api/dpsCertificate/index.d.ts +3 -0
  230. package/dist/react-native/api/dpsCertificate/index.js +4 -0
  231. package/dist/react-native/api/dpsCertificate/index.js.map +1 -0
  232. package/dist/react-native/api/dpsCertificate/operations.d.ts +35 -0
  233. package/dist/react-native/api/dpsCertificate/operations.js +258 -0
  234. package/dist/react-native/api/dpsCertificate/operations.js.map +1 -0
  235. package/dist/react-native/api/dpsCertificate/options.d.ts +73 -0
  236. package/dist/react-native/api/dpsCertificate/options.js +4 -0
  237. package/dist/react-native/api/dpsCertificate/options.js.map +1 -0
  238. package/dist/react-native/api/index.d.ts +2 -0
  239. package/dist/react-native/api/index.js +4 -0
  240. package/dist/react-native/api/index.js.map +1 -0
  241. package/dist/react-native/api/iotDpsContext.d.ts +22 -0
  242. package/dist/react-native/api/iotDpsContext.js +39 -0
  243. package/dist/react-native/api/iotDpsContext.js.map +1 -0
  244. package/dist/react-native/api/iotDpsResource/index.d.ts +3 -0
  245. package/dist/react-native/api/iotDpsResource/index.js +4 -0
  246. package/dist/react-native/api/iotDpsResource/index.js.map +1 -0
  247. package/dist/react-native/api/iotDpsResource/operations.d.ts +80 -0
  248. package/dist/react-native/api/iotDpsResource/operations.js +603 -0
  249. package/dist/react-native/api/iotDpsResource/operations.js.map +1 -0
  250. package/dist/react-native/api/iotDpsResource/options.d.ts +63 -0
  251. package/dist/react-native/api/iotDpsResource/options.js +4 -0
  252. package/dist/react-native/api/iotDpsResource/options.js.map +1 -0
  253. package/dist/react-native/api/operations/index.d.ts +3 -0
  254. package/dist/react-native/api/operations/index.js +4 -0
  255. package/dist/react-native/api/operations/index.js.map +1 -0
  256. package/dist/react-native/api/operations/operations.d.ts +10 -0
  257. package/dist/react-native/api/operations/operations.js +34 -0
  258. package/dist/react-native/api/operations/operations.js.map +1 -0
  259. package/dist/react-native/api/operations/options.d.ts +5 -0
  260. package/dist/react-native/api/operations/options.js +4 -0
  261. package/dist/react-native/api/operations/options.js.map +1 -0
  262. package/dist/react-native/classic/dpsCertificate/index.d.ts +26 -0
  263. package/dist/react-native/classic/dpsCertificate/index.js +19 -0
  264. package/dist/react-native/classic/dpsCertificate/index.js.map +1 -0
  265. package/dist/react-native/classic/index.d.ts +4 -0
  266. package/dist/react-native/classic/index.js +4 -0
  267. package/dist/react-native/classic/index.js.map +1 -0
  268. package/dist/react-native/classic/iotDpsResource/index.d.ts +49 -0
  269. package/dist/react-native/classic/iotDpsResource/index.js +30 -0
  270. package/dist/react-native/classic/iotDpsResource/index.js.map +1 -0
  271. package/dist/react-native/classic/operations/index.d.ts +11 -0
  272. package/dist/react-native/classic/operations/index.js +14 -0
  273. package/dist/react-native/classic/operations/index.js.map +1 -0
  274. package/dist/react-native/index.d.ts +11 -3
  275. package/dist/react-native/index.js +6 -11
  276. package/dist/react-native/index.js.map +1 -1
  277. package/dist/react-native/iotDpsClient.d.ts +19 -20
  278. package/dist/react-native/iotDpsClient.js +28 -105
  279. package/dist/react-native/iotDpsClient.js.map +1 -1
  280. package/dist/react-native/logger.d.ts +2 -0
  281. package/dist/react-native/logger.js +5 -0
  282. package/dist/react-native/logger.js.map +1 -0
  283. package/dist/react-native/models/index.d.ts +1 -978
  284. package/dist/react-native/models/index.js +3 -127
  285. package/dist/react-native/models/index.js.map +1 -1
  286. package/dist/react-native/models/models.d.ts +710 -0
  287. package/dist/react-native/models/models.js +749 -0
  288. package/dist/react-native/models/models.js.map +1 -0
  289. package/dist/react-native/restorePollerHelpers.d.ts +21 -0
  290. package/dist/react-native/restorePollerHelpers.js +104 -0
  291. package/dist/react-native/restorePollerHelpers.js.map +1 -0
  292. package/dist/react-native/static-helpers/cloudSettingHelpers.d.ts +22 -0
  293. package/dist/react-native/static-helpers/cloudSettingHelpers.js +38 -0
  294. package/dist/react-native/static-helpers/cloudSettingHelpers.js.map +1 -0
  295. package/dist/react-native/static-helpers/pagingHelpers.d.ts +72 -0
  296. package/dist/react-native/static-helpers/pagingHelpers.js +118 -0
  297. package/dist/react-native/static-helpers/pagingHelpers.js.map +1 -0
  298. package/dist/react-native/static-helpers/pollingHelpers.d.ts +30 -0
  299. package/dist/react-native/static-helpers/pollingHelpers.js +79 -0
  300. package/dist/react-native/static-helpers/pollingHelpers.js.map +1 -0
  301. package/dist/react-native/static-helpers/urlTemplate.d.ts +5 -0
  302. package/dist/react-native/static-helpers/urlTemplate.js +185 -0
  303. package/dist/react-native/static-helpers/urlTemplate.js.map +1 -0
  304. package/package.json +141 -38
  305. package/CHANGELOG.md +0 -83
  306. package/dist/browser/index.d.ts.map +0 -1
  307. package/dist/browser/iotDpsClient.d.ts.map +0 -1
  308. package/dist/browser/lroImpl.d.ts +0 -11
  309. package/dist/browser/lroImpl.d.ts.map +0 -1
  310. package/dist/browser/lroImpl.js +0 -18
  311. package/dist/browser/lroImpl.js.map +0 -1
  312. package/dist/browser/models/index.d.ts.map +0 -1
  313. package/dist/browser/models/mappers.d.ts +0 -40
  314. package/dist/browser/models/mappers.d.ts.map +0 -1
  315. package/dist/browser/models/mappers.js +0 -1268
  316. package/dist/browser/models/mappers.js.map +0 -1
  317. package/dist/browser/models/parameters.d.ts +0 -34
  318. package/dist/browser/models/parameters.d.ts.map +0 -1
  319. package/dist/browser/models/parameters.js +0 -293
  320. package/dist/browser/models/parameters.js.map +0 -1
  321. package/dist/browser/operations/dpsCertificate.d.ts +0 -70
  322. package/dist/browser/operations/dpsCertificate.d.ts.map +0 -1
  323. package/dist/browser/operations/dpsCertificate.js +0 -290
  324. package/dist/browser/operations/dpsCertificate.js.map +0 -1
  325. package/dist/browser/operations/index.d.ts +0 -4
  326. package/dist/browser/operations/index.d.ts.map +0 -1
  327. package/dist/browser/operations/index.js +0 -11
  328. package/dist/browser/operations/index.js.map +0 -1
  329. package/dist/browser/operations/iotDpsResource.d.ts +0 -253
  330. package/dist/browser/operations/iotDpsResource.d.ts.map +0 -1
  331. package/dist/browser/operations/iotDpsResource.js +0 -1170
  332. package/dist/browser/operations/iotDpsResource.js.map +0 -1
  333. package/dist/browser/operations/operations.d.ts +0 -32
  334. package/dist/browser/operations/operations.d.ts.map +0 -1
  335. package/dist/browser/operations/operations.js +0 -116
  336. package/dist/browser/operations/operations.js.map +0 -1
  337. package/dist/browser/operationsInterfaces/dpsCertificate.d.ts +0 -62
  338. package/dist/browser/operationsInterfaces/dpsCertificate.d.ts.map +0 -1
  339. package/dist/browser/operationsInterfaces/dpsCertificate.js +0 -9
  340. package/dist/browser/operationsInterfaces/dpsCertificate.js.map +0 -1
  341. package/dist/browser/operationsInterfaces/index.d.ts +0 -4
  342. package/dist/browser/operationsInterfaces/index.d.ts.map +0 -1
  343. package/dist/browser/operationsInterfaces/index.js +0 -11
  344. package/dist/browser/operationsInterfaces/index.js.map +0 -1
  345. package/dist/browser/operationsInterfaces/iotDpsResource.d.ts +0 -183
  346. package/dist/browser/operationsInterfaces/iotDpsResource.d.ts.map +0 -1
  347. package/dist/browser/operationsInterfaces/iotDpsResource.js +0 -9
  348. package/dist/browser/operationsInterfaces/iotDpsResource.js.map +0 -1
  349. package/dist/browser/operationsInterfaces/operations.d.ts +0 -11
  350. package/dist/browser/operationsInterfaces/operations.d.ts.map +0 -1
  351. package/dist/browser/operationsInterfaces/operations.js +0 -9
  352. package/dist/browser/operationsInterfaces/operations.js.map +0 -1
  353. package/dist/browser/pagingHelper.d.ts +0 -13
  354. package/dist/browser/pagingHelper.d.ts.map +0 -1
  355. package/dist/browser/pagingHelper.js +0 -30
  356. package/dist/browser/pagingHelper.js.map +0 -1
  357. package/dist/commonjs/index.d.ts.map +0 -1
  358. package/dist/commonjs/iotDpsClient.d.ts.map +0 -1
  359. package/dist/commonjs/lroImpl.d.ts +0 -11
  360. package/dist/commonjs/lroImpl.d.ts.map +0 -1
  361. package/dist/commonjs/lroImpl.js +0 -21
  362. package/dist/commonjs/lroImpl.js.map +0 -1
  363. package/dist/commonjs/models/index.d.ts.map +0 -1
  364. package/dist/commonjs/models/mappers.d.ts +0 -40
  365. package/dist/commonjs/models/mappers.d.ts.map +0 -1
  366. package/dist/commonjs/models/mappers.js +0 -1271
  367. package/dist/commonjs/models/mappers.js.map +0 -1
  368. package/dist/commonjs/models/parameters.d.ts +0 -34
  369. package/dist/commonjs/models/parameters.d.ts.map +0 -1
  370. package/dist/commonjs/models/parameters.js +0 -296
  371. package/dist/commonjs/models/parameters.js.map +0 -1
  372. package/dist/commonjs/operations/dpsCertificate.d.ts +0 -70
  373. package/dist/commonjs/operations/dpsCertificate.d.ts.map +0 -1
  374. package/dist/commonjs/operations/dpsCertificate.js +0 -295
  375. package/dist/commonjs/operations/dpsCertificate.js.map +0 -1
  376. package/dist/commonjs/operations/index.d.ts +0 -4
  377. package/dist/commonjs/operations/index.d.ts.map +0 -1
  378. package/dist/commonjs/operations/index.js +0 -14
  379. package/dist/commonjs/operations/index.js.map +0 -1
  380. package/dist/commonjs/operations/iotDpsResource.d.ts +0 -253
  381. package/dist/commonjs/operations/iotDpsResource.d.ts.map +0 -1
  382. package/dist/commonjs/operations/iotDpsResource.js +0 -1175
  383. package/dist/commonjs/operations/iotDpsResource.js.map +0 -1
  384. package/dist/commonjs/operations/operations.d.ts +0 -32
  385. package/dist/commonjs/operations/operations.d.ts.map +0 -1
  386. package/dist/commonjs/operations/operations.js +0 -121
  387. package/dist/commonjs/operations/operations.js.map +0 -1
  388. package/dist/commonjs/operationsInterfaces/dpsCertificate.d.ts +0 -62
  389. package/dist/commonjs/operationsInterfaces/dpsCertificate.d.ts.map +0 -1
  390. package/dist/commonjs/operationsInterfaces/dpsCertificate.js +0 -10
  391. package/dist/commonjs/operationsInterfaces/dpsCertificate.js.map +0 -1
  392. package/dist/commonjs/operationsInterfaces/index.d.ts +0 -4
  393. package/dist/commonjs/operationsInterfaces/index.d.ts.map +0 -1
  394. package/dist/commonjs/operationsInterfaces/index.js +0 -14
  395. package/dist/commonjs/operationsInterfaces/index.js.map +0 -1
  396. package/dist/commonjs/operationsInterfaces/iotDpsResource.d.ts +0 -183
  397. package/dist/commonjs/operationsInterfaces/iotDpsResource.d.ts.map +0 -1
  398. package/dist/commonjs/operationsInterfaces/iotDpsResource.js +0 -10
  399. package/dist/commonjs/operationsInterfaces/iotDpsResource.js.map +0 -1
  400. package/dist/commonjs/operationsInterfaces/operations.d.ts +0 -11
  401. package/dist/commonjs/operationsInterfaces/operations.d.ts.map +0 -1
  402. package/dist/commonjs/operationsInterfaces/operations.js +0 -10
  403. package/dist/commonjs/operationsInterfaces/operations.js.map +0 -1
  404. package/dist/commonjs/pagingHelper.d.ts +0 -13
  405. package/dist/commonjs/pagingHelper.d.ts.map +0 -1
  406. package/dist/commonjs/pagingHelper.js +0 -34
  407. package/dist/commonjs/pagingHelper.js.map +0 -1
  408. package/dist/esm/index.d.ts.map +0 -1
  409. package/dist/esm/iotDpsClient.d.ts.map +0 -1
  410. package/dist/esm/lroImpl.d.ts +0 -11
  411. package/dist/esm/lroImpl.d.ts.map +0 -1
  412. package/dist/esm/lroImpl.js +0 -18
  413. package/dist/esm/lroImpl.js.map +0 -1
  414. package/dist/esm/models/index.d.ts.map +0 -1
  415. package/dist/esm/models/mappers.d.ts +0 -40
  416. package/dist/esm/models/mappers.d.ts.map +0 -1
  417. package/dist/esm/models/mappers.js +0 -1268
  418. package/dist/esm/models/mappers.js.map +0 -1
  419. package/dist/esm/models/parameters.d.ts +0 -34
  420. package/dist/esm/models/parameters.d.ts.map +0 -1
  421. package/dist/esm/models/parameters.js +0 -293
  422. package/dist/esm/models/parameters.js.map +0 -1
  423. package/dist/esm/operations/dpsCertificate.d.ts +0 -70
  424. package/dist/esm/operations/dpsCertificate.d.ts.map +0 -1
  425. package/dist/esm/operations/dpsCertificate.js +0 -290
  426. package/dist/esm/operations/dpsCertificate.js.map +0 -1
  427. package/dist/esm/operations/index.d.ts +0 -4
  428. package/dist/esm/operations/index.d.ts.map +0 -1
  429. package/dist/esm/operations/index.js +0 -11
  430. package/dist/esm/operations/index.js.map +0 -1
  431. package/dist/esm/operations/iotDpsResource.d.ts +0 -253
  432. package/dist/esm/operations/iotDpsResource.d.ts.map +0 -1
  433. package/dist/esm/operations/iotDpsResource.js +0 -1170
  434. package/dist/esm/operations/iotDpsResource.js.map +0 -1
  435. package/dist/esm/operations/operations.d.ts +0 -32
  436. package/dist/esm/operations/operations.d.ts.map +0 -1
  437. package/dist/esm/operations/operations.js +0 -116
  438. package/dist/esm/operations/operations.js.map +0 -1
  439. package/dist/esm/operationsInterfaces/dpsCertificate.d.ts +0 -62
  440. package/dist/esm/operationsInterfaces/dpsCertificate.d.ts.map +0 -1
  441. package/dist/esm/operationsInterfaces/dpsCertificate.js +0 -9
  442. package/dist/esm/operationsInterfaces/dpsCertificate.js.map +0 -1
  443. package/dist/esm/operationsInterfaces/index.d.ts +0 -4
  444. package/dist/esm/operationsInterfaces/index.d.ts.map +0 -1
  445. package/dist/esm/operationsInterfaces/index.js +0 -11
  446. package/dist/esm/operationsInterfaces/index.js.map +0 -1
  447. package/dist/esm/operationsInterfaces/iotDpsResource.d.ts +0 -183
  448. package/dist/esm/operationsInterfaces/iotDpsResource.d.ts.map +0 -1
  449. package/dist/esm/operationsInterfaces/iotDpsResource.js +0 -9
  450. package/dist/esm/operationsInterfaces/iotDpsResource.js.map +0 -1
  451. package/dist/esm/operationsInterfaces/operations.d.ts +0 -11
  452. package/dist/esm/operationsInterfaces/operations.d.ts.map +0 -1
  453. package/dist/esm/operationsInterfaces/operations.js +0 -9
  454. package/dist/esm/operationsInterfaces/operations.js.map +0 -1
  455. package/dist/esm/pagingHelper.d.ts +0 -13
  456. package/dist/esm/pagingHelper.d.ts.map +0 -1
  457. package/dist/esm/pagingHelper.js +0 -30
  458. package/dist/esm/pagingHelper.js.map +0 -1
  459. package/dist/react-native/index.d.ts.map +0 -1
  460. package/dist/react-native/iotDpsClient.d.ts.map +0 -1
  461. package/dist/react-native/lroImpl.d.ts +0 -11
  462. package/dist/react-native/lroImpl.d.ts.map +0 -1
  463. package/dist/react-native/lroImpl.js +0 -18
  464. package/dist/react-native/lroImpl.js.map +0 -1
  465. package/dist/react-native/models/index.d.ts.map +0 -1
  466. package/dist/react-native/models/mappers.d.ts +0 -40
  467. package/dist/react-native/models/mappers.d.ts.map +0 -1
  468. package/dist/react-native/models/mappers.js +0 -1268
  469. package/dist/react-native/models/mappers.js.map +0 -1
  470. package/dist/react-native/models/parameters.d.ts +0 -34
  471. package/dist/react-native/models/parameters.d.ts.map +0 -1
  472. package/dist/react-native/models/parameters.js +0 -293
  473. package/dist/react-native/models/parameters.js.map +0 -1
  474. package/dist/react-native/operations/dpsCertificate.d.ts +0 -70
  475. package/dist/react-native/operations/dpsCertificate.d.ts.map +0 -1
  476. package/dist/react-native/operations/dpsCertificate.js +0 -290
  477. package/dist/react-native/operations/dpsCertificate.js.map +0 -1
  478. package/dist/react-native/operations/index.d.ts +0 -4
  479. package/dist/react-native/operations/index.d.ts.map +0 -1
  480. package/dist/react-native/operations/index.js +0 -11
  481. package/dist/react-native/operations/index.js.map +0 -1
  482. package/dist/react-native/operations/iotDpsResource.d.ts +0 -253
  483. package/dist/react-native/operations/iotDpsResource.d.ts.map +0 -1
  484. package/dist/react-native/operations/iotDpsResource.js +0 -1170
  485. package/dist/react-native/operations/iotDpsResource.js.map +0 -1
  486. package/dist/react-native/operations/operations.d.ts +0 -32
  487. package/dist/react-native/operations/operations.d.ts.map +0 -1
  488. package/dist/react-native/operations/operations.js +0 -116
  489. package/dist/react-native/operations/operations.js.map +0 -1
  490. package/dist/react-native/operationsInterfaces/dpsCertificate.d.ts +0 -62
  491. package/dist/react-native/operationsInterfaces/dpsCertificate.d.ts.map +0 -1
  492. package/dist/react-native/operationsInterfaces/dpsCertificate.js +0 -9
  493. package/dist/react-native/operationsInterfaces/dpsCertificate.js.map +0 -1
  494. package/dist/react-native/operationsInterfaces/index.d.ts +0 -4
  495. package/dist/react-native/operationsInterfaces/index.d.ts.map +0 -1
  496. package/dist/react-native/operationsInterfaces/index.js +0 -11
  497. package/dist/react-native/operationsInterfaces/index.js.map +0 -1
  498. package/dist/react-native/operationsInterfaces/iotDpsResource.d.ts +0 -183
  499. package/dist/react-native/operationsInterfaces/iotDpsResource.d.ts.map +0 -1
  500. package/dist/react-native/operationsInterfaces/iotDpsResource.js +0 -9
  501. package/dist/react-native/operationsInterfaces/iotDpsResource.js.map +0 -1
  502. package/dist/react-native/operationsInterfaces/operations.d.ts +0 -11
  503. package/dist/react-native/operationsInterfaces/operations.d.ts.map +0 -1
  504. package/dist/react-native/operationsInterfaces/operations.js +0 -9
  505. package/dist/react-native/operationsInterfaces/operations.js.map +0 -1
  506. package/dist/react-native/pagingHelper.d.ts +0 -13
  507. package/dist/react-native/pagingHelper.d.ts.map +0 -1
  508. package/dist/react-native/pagingHelper.js +0 -30
  509. package/dist/react-native/pagingHelper.js.map +0 -1
  510. package/review/arm-deviceprovisioningservices-node.api.md +0 -724
@@ -0,0 +1 @@
1
+ {"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/models/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAU1E,MAAM,UAAU,gCAAgC,CAAC,IAAS;IACxD,OAAO;QACL,KAAK,EAAE,0BAA0B,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAChD,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC;KAC3B,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,0BAA0B,CAAC,MAAwB;IACjE,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QACzB,OAAO,qBAAqB,CAAC,IAAI,CAAC,CAAC;IACrC,CAAC,CAAC,CAAC;AACL,CAAC;AAcD,MAAM,UAAU,qBAAqB,CAAC,IAAS;IAC7C,OAAO;QACL,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC;QAClB,OAAO,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,6BAA6B,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;KAC7F,CAAC;AACJ,CAAC;AAYD,MAAM,UAAU,6BAA6B,CAAC,IAAS;IACrD,OAAO;QACL,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC;QAC1B,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC;QAC1B,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC;KAC7B,CAAC;AACJ,CAAC;AAcD,MAAM,UAAU,wBAAwB,CAAC,IAAS;IAChD,OAAO;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CACxD,MAAwC;IAExC,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QACzB,OAAO,mCAAmC,CAAC,IAAI,CAAC,CAAC;IACnD,CAAC,CAAC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,4CAA4C,CAC1D,MAAwC;IAExC,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QACzB,OAAO,qCAAqC,CAAC,IAAI,CAAC,CAAC;IACrD,CAAC,CAAC,CAAC;AACL,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { uint8ArrayToString, stringToUint8Array } from \"@azure/core-util\";\n\n/** model interface _OperationListResult */\nexport interface _OperationListResult {\n /** [Placeholder] Description for value property */\n readonly value: Operation[];\n /** [Placeholder] Description for nextLink property. */\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/** Represents an operation. */\nexport interface Operation {\n /** The name of the operation. */\n readonly name?: string;\n /** The display information for the operation. */\n display?: {\n provider?: string;\n resource?: string;\n operation?: string;\n };\n}\n\nexport function operationDeserializer(item: any): Operation {\n return {\n name: item[\"name\"],\n display: !item[\"display\"] ? item[\"display\"] : _operationDisplayDeserializer(item[\"display\"]),\n };\n}\n\n/** model interface _OperationDisplay */\nexport interface _OperationDisplay {\n /** Service provider: Microsoft Devices. */\n readonly provider?: string;\n /** Resource Type: ProvisioningServices. */\n readonly resource?: string;\n /** Name of the operation. */\n readonly operation?: string;\n}\n\nexport function _operationDisplayDeserializer(item: any): _OperationDisplay {\n return {\n provider: item[\"provider\"],\n resource: item[\"resource\"],\n operation: item[\"operation\"],\n };\n}\n\n/** Error details. */\nexport interface ErrorDetails {\n /** The error code. */\n readonly code?: number;\n /** The HTTP status code. */\n readonly httpStatusCode?: string;\n /** The error message. */\n readonly message?: string;\n /** The error details. */\n readonly details?: string;\n}\n\nexport function errorDetailsDeserializer(item: any): ErrorDetails {\n return {\n code: item[\"code\"],\n httpStatusCode: item[\"httpStatusCode\"],\n message: item[\"message\"],\n details: item[\"details\"],\n };\n}\n\n/** The X509 Certificate. */\nexport interface CertificateResponse extends ProxyResource {\n /** properties of a certificate */\n properties?: CertificateProperties;\n /** The entity tag. */\n readonly etag?: string;\n}\n\nexport function certificateResponseSerializer(item: CertificateResponse): any {\n return {\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : certificatePropertiesSerializer(item[\"properties\"]),\n };\n}\n\nexport function certificateResponseDeserializer(item: any): CertificateResponse {\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 properties: !item[\"properties\"]\n ? item[\"properties\"]\n : certificatePropertiesDeserializer(item[\"properties\"]),\n etag: item[\"etag\"],\n };\n}\n\n/** The description of an X509 CA Certificate. */\nexport interface CertificateProperties {\n /** The certificate's subject name. */\n readonly subject?: string;\n /** The certificate's expiration date and time. */\n readonly expiry?: Date;\n /** The certificate's thumbprint. */\n readonly thumbprint?: string;\n /** Determines whether certificate has been verified. */\n isVerified?: boolean;\n /** base-64 representation of X509 certificate .cer file or just .pem file content. */\n certificate?: Uint8Array;\n /** The certificate's creation date and time. */\n readonly created?: Date;\n /** The certificate's last update date and time. */\n readonly updated?: Date;\n}\n\nexport function certificatePropertiesSerializer(item: CertificateProperties): any {\n return {\n isVerified: item[\"isVerified\"],\n certificate: !item[\"certificate\"]\n ? item[\"certificate\"]\n : uint8ArrayToString(item[\"certificate\"], \"base64\"),\n };\n}\n\nexport function certificatePropertiesDeserializer(item: any): CertificateProperties {\n return {\n subject: item[\"subject\"],\n expiry: !item[\"expiry\"] ? item[\"expiry\"] : new Date(item[\"expiry\"]),\n thumbprint: item[\"thumbprint\"],\n isVerified: item[\"isVerified\"],\n certificate: !item[\"certificate\"]\n ? item[\"certificate\"]\n : typeof item[\"certificate\"] === \"string\"\n ? stringToUint8Array(item[\"certificate\"], \"base64\")\n : item[\"certificate\"],\n created: !item[\"created\"] ? item[\"created\"] : new Date(item[\"created\"]),\n updated: !item[\"updated\"] ? item[\"updated\"] : new Date(item[\"updated\"]),\n };\n}\n\n/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */\nexport interface ProxyResource extends Resource {}\n\nexport function proxyResourceSerializer(item: ProxyResource): any {\n return item;\n}\n\nexport function proxyResourceDeserializer(item: any): ProxyResource {\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/** 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/** The JSON-serialized array of Certificate objects. */\nexport interface _CertificateListDescription {\n /** The array of Certificate objects. */\n value?: CertificateResponse[];\n}\n\nexport function _certificateListDescriptionDeserializer(item: any): _CertificateListDescription {\n return {\n value: !item[\"value\"] ? item[\"value\"] : certificateResponseArrayDeserializer(item[\"value\"]),\n };\n}\n\nexport function certificateResponseArraySerializer(result: Array<CertificateResponse>): any[] {\n return result.map((item) => {\n return certificateResponseSerializer(item);\n });\n}\n\nexport function certificateResponseArrayDeserializer(result: Array<CertificateResponse>): any[] {\n return result.map((item) => {\n return certificateResponseDeserializer(item);\n });\n}\n\n/** Description of the response of the verification code. */\nexport interface VerificationCodeResponse {\n /** Name of certificate. */\n readonly name?: string;\n /** Request etag. */\n readonly etag?: string;\n /** The resource identifier. */\n readonly id?: string;\n /** The resource type. */\n readonly type?: string;\n properties?: VerificationCodeResponseProperties;\n}\n\nexport function verificationCodeResponseDeserializer(item: any): VerificationCodeResponse {\n return {\n name: item[\"name\"],\n etag: item[\"etag\"],\n id: item[\"id\"],\n type: item[\"type\"],\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : verificationCodeResponsePropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** model interface VerificationCodeResponseProperties */\nexport interface VerificationCodeResponseProperties {\n /** Verification code. */\n verificationCode?: string;\n /** Certificate subject. */\n subject?: string;\n /** Code expiry. */\n expiry?: string;\n /** Certificate thumbprint. */\n thumbprint?: string;\n /** Indicate if the certificate is verified by owner of private key. */\n isVerified?: boolean;\n /** base-64 representation of X509 certificate .cer file or just .pem file content. */\n certificate?: Uint8Array;\n /** Certificate created time. */\n created?: string;\n /** Certificate updated time. */\n updated?: string;\n}\n\nexport function verificationCodeResponsePropertiesDeserializer(\n item: any,\n): VerificationCodeResponseProperties {\n return {\n verificationCode: item[\"verificationCode\"],\n subject: item[\"subject\"],\n expiry: item[\"expiry\"],\n thumbprint: item[\"thumbprint\"],\n isVerified: item[\"isVerified\"],\n certificate: !item[\"certificate\"]\n ? item[\"certificate\"]\n : typeof item[\"certificate\"] === \"string\"\n ? stringToUint8Array(item[\"certificate\"], \"base64\")\n : item[\"certificate\"],\n created: item[\"created\"],\n updated: item[\"updated\"],\n };\n}\n\n/** The JSON-serialized leaf certificate */\nexport interface VerificationCodeRequest {\n /** base-64 representation of X509 certificate .cer file or just .pem file content. */\n certificate?: string;\n}\n\nexport function verificationCodeRequestSerializer(item: VerificationCodeRequest): any {\n return { certificate: item[\"certificate\"] };\n}\n\n/** Result of a long running operation. */\nexport interface AsyncOperationResult {\n /** current status of a long running operation. */\n status?: string;\n /** Error message containing code, description and details */\n error?: ErrorMessage;\n}\n\nexport function asyncOperationResultDeserializer(item: any): AsyncOperationResult {\n return {\n status: item[\"status\"],\n error: !item[\"error\"] ? item[\"error\"] : errorMessageDeserializer(item[\"error\"]),\n };\n}\n\n/** Error response containing message and code. */\nexport interface ErrorMessage {\n /** standard error code */\n code?: string;\n /** standard error description */\n message?: string;\n /** detailed summary of error */\n details?: string;\n}\n\nexport function errorMessageDeserializer(item: any): ErrorMessage {\n return {\n code: item[\"code\"],\n message: item[\"message\"],\n details: item[\"details\"],\n };\n}\n\n/** The description of the provisioning service. */\nexport interface ProvisioningServiceDescription extends TrackedResource {\n /** The Etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal ETag convention. */\n etag?: string;\n /** The resource group of the resource. */\n resourcegroup?: string;\n /** The subscription id of the resource. */\n subscriptionid?: string;\n /** Service specific properties for a provisioning service */\n properties: IotDpsPropertiesDescription;\n /** Sku info for a provisioning Service. */\n sku: IotDpsSkuInfo;\n /** The managed service identities assigned to this resource. */\n identity?: ManagedServiceIdentity;\n}\n\nexport function provisioningServiceDescriptionSerializer(\n item: ProvisioningServiceDescription,\n): any {\n return {\n tags: item[\"tags\"],\n location: item[\"location\"],\n etag: item[\"etag\"],\n resourcegroup: item[\"resourcegroup\"],\n subscriptionid: item[\"subscriptionid\"],\n properties: iotDpsPropertiesDescriptionSerializer(item[\"properties\"]),\n sku: iotDpsSkuInfoSerializer(item[\"sku\"]),\n identity: !item[\"identity\"]\n ? item[\"identity\"]\n : managedServiceIdentitySerializer(item[\"identity\"]),\n };\n}\n\nexport function provisioningServiceDescriptionDeserializer(\n item: any,\n): ProvisioningServiceDescription {\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 etag: item[\"etag\"],\n resourcegroup: item[\"resourcegroup\"],\n subscriptionid: item[\"subscriptionid\"],\n properties: iotDpsPropertiesDescriptionDeserializer(item[\"properties\"]),\n sku: iotDpsSkuInfoDeserializer(item[\"sku\"]),\n identity: !item[\"identity\"]\n ? item[\"identity\"]\n : managedServiceIdentityDeserializer(item[\"identity\"]),\n };\n}\n\n/** the service specific properties of a provisioning service, including keys, linked iot hubs, current state, and system generated properties such as hostname and idScope */\nexport interface IotDpsPropertiesDescription {\n /** Current state of the provisioning service. */\n state?: State;\n /** Whether requests from Public Network are allowed */\n publicNetworkAccess?: PublicNetworkAccess;\n /** The IP filter rules. */\n ipFilterRules?: IpFilterRule[];\n /** Private endpoint connections created on this IotHub */\n privateEndpointConnections?: PrivateEndpointConnection[];\n /** The ARM provisioning state of the provisioning service. */\n provisioningState?: string;\n /** List of IoT hubs associated with this provisioning service. */\n iotHubs?: IotHubDefinitionDescription[];\n /** The Device Registry namespace that is linked to the provisioning service. */\n deviceRegistryNamespace?: DeviceRegistryNamespaceDescription;\n /** Allocation policy to be used by this provisioning service. */\n allocationPolicy?: AllocationPolicy;\n /** Service endpoint for provisioning service. */\n readonly serviceOperationsHostName?: string;\n /** Device endpoint for this provisioning service. */\n readonly deviceProvisioningHostName?: string;\n /** Unique identifier of this provisioning service. */\n readonly idScope?: string;\n /** List of authorization keys for a provisioning service. */\n authorizationPolicies?: SharedAccessSignatureAuthorizationRuleAccessRightsDescription[];\n /**\n * Optional.\n * Indicates if the DPS instance has Data Residency enabled, removing the cross geo-pair disaster recovery.\n */\n enableDataResidency?: boolean;\n /** Portal endpoint to enable CORS for this provisioning service. */\n portalOperationsHostName?: string;\n}\n\nexport function iotDpsPropertiesDescriptionSerializer(item: IotDpsPropertiesDescription): any {\n return {\n state: item[\"state\"],\n publicNetworkAccess: item[\"publicNetworkAccess\"],\n ipFilterRules: !item[\"ipFilterRules\"]\n ? item[\"ipFilterRules\"]\n : ipFilterRuleArraySerializer(item[\"ipFilterRules\"]),\n privateEndpointConnections: !item[\"privateEndpointConnections\"]\n ? item[\"privateEndpointConnections\"]\n : privateEndpointConnectionArraySerializer(item[\"privateEndpointConnections\"]),\n provisioningState: item[\"provisioningState\"],\n iotHubs: !item[\"iotHubs\"]\n ? item[\"iotHubs\"]\n : iotHubDefinitionDescriptionArraySerializer(item[\"iotHubs\"]),\n deviceRegistryNamespace: !item[\"deviceRegistryNamespace\"]\n ? item[\"deviceRegistryNamespace\"]\n : deviceRegistryNamespaceDescriptionSerializer(item[\"deviceRegistryNamespace\"]),\n allocationPolicy: item[\"allocationPolicy\"],\n authorizationPolicies: !item[\"authorizationPolicies\"]\n ? item[\"authorizationPolicies\"]\n : sharedAccessSignatureAuthorizationRuleAccessRightsDescriptionArraySerializer(\n item[\"authorizationPolicies\"],\n ),\n enableDataResidency: item[\"enableDataResidency\"],\n portalOperationsHostName: item[\"portalOperationsHostName\"],\n };\n}\n\nexport function iotDpsPropertiesDescriptionDeserializer(item: any): IotDpsPropertiesDescription {\n return {\n state: item[\"state\"],\n publicNetworkAccess: item[\"publicNetworkAccess\"],\n ipFilterRules: !item[\"ipFilterRules\"]\n ? item[\"ipFilterRules\"]\n : ipFilterRuleArrayDeserializer(item[\"ipFilterRules\"]),\n privateEndpointConnections: !item[\"privateEndpointConnections\"]\n ? item[\"privateEndpointConnections\"]\n : privateEndpointConnectionArrayDeserializer(item[\"privateEndpointConnections\"]),\n provisioningState: item[\"provisioningState\"],\n iotHubs: !item[\"iotHubs\"]\n ? item[\"iotHubs\"]\n : iotHubDefinitionDescriptionArrayDeserializer(item[\"iotHubs\"]),\n deviceRegistryNamespace: !item[\"deviceRegistryNamespace\"]\n ? item[\"deviceRegistryNamespace\"]\n : deviceRegistryNamespaceDescriptionDeserializer(item[\"deviceRegistryNamespace\"]),\n allocationPolicy: item[\"allocationPolicy\"],\n serviceOperationsHostName: item[\"serviceOperationsHostName\"],\n deviceProvisioningHostName: item[\"deviceProvisioningHostName\"],\n idScope: item[\"idScope\"],\n authorizationPolicies: !item[\"authorizationPolicies\"]\n ? item[\"authorizationPolicies\"]\n : sharedAccessSignatureAuthorizationRuleAccessRightsDescriptionArrayDeserializer(\n item[\"authorizationPolicies\"],\n ),\n enableDataResidency: item[\"enableDataResidency\"],\n portalOperationsHostName: item[\"portalOperationsHostName\"],\n };\n}\n\n/** Current state of the provisioning service. */\nexport enum KnownState {\n /** Activating */\n Activating = \"Activating\",\n /** Active */\n Active = \"Active\",\n /** Deleting */\n Deleting = \"Deleting\",\n /** Deleted */\n Deleted = \"Deleted\",\n /** ActivationFailed */\n ActivationFailed = \"ActivationFailed\",\n /** DeletionFailed */\n DeletionFailed = \"DeletionFailed\",\n /** Transitioning */\n Transitioning = \"Transitioning\",\n /** Suspending */\n Suspending = \"Suspending\",\n /** Suspended */\n Suspended = \"Suspended\",\n /** Resuming */\n Resuming = \"Resuming\",\n /** FailingOver */\n FailingOver = \"FailingOver\",\n /** FailoverFailed */\n FailoverFailed = \"FailoverFailed\",\n}\n\n/**\n * Current state of the provisioning service. \\\n * {@link KnownState} can be used interchangeably with State,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Activating** \\\n * **Active** \\\n * **Deleting** \\\n * **Deleted** \\\n * **ActivationFailed** \\\n * **DeletionFailed** \\\n * **Transitioning** \\\n * **Suspending** \\\n * **Suspended** \\\n * **Resuming** \\\n * **FailingOver** \\\n * **FailoverFailed**\n */\nexport type State = string;\n\n/** Whether requests from Public Network are allowed */\nexport enum KnownPublicNetworkAccess {\n /** Enabled */\n Enabled = \"Enabled\",\n /** Disabled */\n Disabled = \"Disabled\",\n}\n\n/**\n * Whether requests from Public Network are allowed \\\n * {@link KnownPublicNetworkAccess} can be used interchangeably with PublicNetworkAccess,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Enabled** \\\n * **Disabled**\n */\nexport type PublicNetworkAccess = string;\n\nexport function ipFilterRuleArraySerializer(result: Array<IpFilterRule>): any[] {\n return result.map((item) => {\n return ipFilterRuleSerializer(item);\n });\n}\n\nexport function ipFilterRuleArrayDeserializer(result: Array<IpFilterRule>): any[] {\n return result.map((item) => {\n return ipFilterRuleDeserializer(item);\n });\n}\n\n/** The IP filter rules for a provisioning Service. */\nexport interface IpFilterRule {\n /** The name of the IP filter rule. */\n filterName: string;\n /** The desired action for requests captured by this rule. */\n action: IpFilterActionType;\n /** A string that contains the IP address range in CIDR notation for the rule. */\n ipMask: string;\n /** Target for requests captured by this rule. */\n target?: IpFilterTargetType;\n}\n\nexport function ipFilterRuleSerializer(item: IpFilterRule): any {\n return {\n filterName: item[\"filterName\"],\n action: item[\"action\"],\n ipMask: item[\"ipMask\"],\n target: item[\"target\"],\n };\n}\n\nexport function ipFilterRuleDeserializer(item: any): IpFilterRule {\n return {\n filterName: item[\"filterName\"],\n action: item[\"action\"],\n ipMask: item[\"ipMask\"],\n target: item[\"target\"],\n };\n}\n\n/** The desired action for requests captured by this rule. */\nexport type IpFilterActionType = \"Accept\" | \"Reject\";\n/** Target for requests captured by this rule. */\nexport type IpFilterTargetType = \"all\" | \"serviceApi\" | \"deviceApi\";\n\nexport function privateEndpointConnectionArraySerializer(\n result: Array<PrivateEndpointConnection>,\n): any[] {\n return result.map((item) => {\n return privateEndpointConnectionSerializer(item);\n });\n}\n\nexport function privateEndpointConnectionArrayDeserializer(\n result: Array<PrivateEndpointConnection>,\n): any[] {\n return result.map((item) => {\n return privateEndpointConnectionDeserializer(item);\n });\n}\n\n/** The private endpoint connection of a provisioning service */\nexport interface PrivateEndpointConnection extends ProxyResource {\n /** The properties of a private endpoint connection */\n properties: PrivateEndpointConnectionProperties;\n}\n\nexport function privateEndpointConnectionSerializer(item: PrivateEndpointConnection): any {\n return {\n properties: privateEndpointConnectionPropertiesSerializer(item[\"properties\"]),\n };\n}\n\nexport function privateEndpointConnectionDeserializer(item: any): PrivateEndpointConnection {\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 properties: privateEndpointConnectionPropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** The properties of a private endpoint connection */\nexport interface PrivateEndpointConnectionProperties {\n /** The private endpoint property of a private endpoint connection */\n privateEndpoint?: PrivateEndpoint;\n /** The current state of a private endpoint connection */\n privateLinkServiceConnectionState: PrivateLinkServiceConnectionState;\n}\n\nexport function privateEndpointConnectionPropertiesSerializer(\n item: PrivateEndpointConnectionProperties,\n): any {\n return {\n privateEndpoint: !item[\"privateEndpoint\"]\n ? item[\"privateEndpoint\"]\n : privateEndpointSerializer(item[\"privateEndpoint\"]),\n privateLinkServiceConnectionState: privateLinkServiceConnectionStateSerializer(\n item[\"privateLinkServiceConnectionState\"],\n ),\n };\n}\n\nexport function privateEndpointConnectionPropertiesDeserializer(\n item: any,\n): PrivateEndpointConnectionProperties {\n return {\n privateEndpoint: !item[\"privateEndpoint\"]\n ? item[\"privateEndpoint\"]\n : privateEndpointDeserializer(item[\"privateEndpoint\"]),\n privateLinkServiceConnectionState: privateLinkServiceConnectionStateDeserializer(\n item[\"privateLinkServiceConnectionState\"],\n ),\n };\n}\n\n/** The private endpoint property of a private endpoint connection */\nexport interface PrivateEndpoint {\n /** The resource identifier. */\n readonly id?: string;\n}\n\nexport function privateEndpointSerializer(item: PrivateEndpoint): any {\n return item;\n}\n\nexport function privateEndpointDeserializer(item: any): PrivateEndpoint {\n return {\n id: item[\"id\"],\n };\n}\n\n/** The current state of a private endpoint connection */\nexport interface PrivateLinkServiceConnectionState {\n /** The status of a private endpoint connection */\n status: PrivateLinkServiceConnectionStatus;\n /** The description for the current state of a private endpoint connection */\n description: string;\n /** Actions required for a private endpoint connection */\n actionsRequired?: string;\n}\n\nexport function privateLinkServiceConnectionStateSerializer(\n item: PrivateLinkServiceConnectionState,\n): any {\n return {\n status: item[\"status\"],\n description: item[\"description\"],\n actionsRequired: item[\"actionsRequired\"],\n };\n}\n\nexport function privateLinkServiceConnectionStateDeserializer(\n item: any,\n): PrivateLinkServiceConnectionState {\n return {\n status: item[\"status\"],\n description: item[\"description\"],\n actionsRequired: item[\"actionsRequired\"],\n };\n}\n\n/** The status of a private endpoint connection */\nexport enum KnownPrivateLinkServiceConnectionStatus {\n /** Pending */\n Pending = \"Pending\",\n /** Approved */\n Approved = \"Approved\",\n /** Rejected */\n Rejected = \"Rejected\",\n /** Disconnected */\n Disconnected = \"Disconnected\",\n}\n\n/**\n * The status of a private endpoint connection \\\n * {@link KnownPrivateLinkServiceConnectionStatus} can be used interchangeably with PrivateLinkServiceConnectionStatus,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Pending** \\\n * **Approved** \\\n * **Rejected** \\\n * **Disconnected**\n */\nexport type PrivateLinkServiceConnectionStatus = string;\n\nexport function iotHubDefinitionDescriptionArraySerializer(\n result: Array<IotHubDefinitionDescription>,\n): any[] {\n return result.map((item) => {\n return iotHubDefinitionDescriptionSerializer(item);\n });\n}\n\nexport function iotHubDefinitionDescriptionArrayDeserializer(\n result: Array<IotHubDefinitionDescription>,\n): any[] {\n return result.map((item) => {\n return iotHubDefinitionDescriptionDeserializer(item);\n });\n}\n\n/** Description of the IoT hub. */\nexport interface IotHubDefinitionDescription {\n /** flag for applying allocationPolicy or not for a given iot hub. */\n applyAllocationPolicy?: boolean;\n /** weight to apply for a given iot h. */\n allocationWeight?: number;\n /** Host name of the IoT hub. */\n readonly name?: string;\n /** Connection string of the IoT hub. */\n connectionString: string;\n /** ARM region of the IoT hub. */\n location: string;\n}\n\nexport function iotHubDefinitionDescriptionSerializer(item: IotHubDefinitionDescription): any {\n return {\n applyAllocationPolicy: item[\"applyAllocationPolicy\"],\n allocationWeight: item[\"allocationWeight\"],\n connectionString: item[\"connectionString\"],\n location: item[\"location\"],\n };\n}\n\nexport function iotHubDefinitionDescriptionDeserializer(item: any): IotHubDefinitionDescription {\n return {\n applyAllocationPolicy: item[\"applyAllocationPolicy\"],\n allocationWeight: item[\"allocationWeight\"],\n name: item[\"name\"],\n connectionString: item[\"connectionString\"],\n location: item[\"location\"],\n };\n}\n\n/** Description of the Device Registry namespace that is linked to the provisioning service. */\nexport interface DeviceRegistryNamespaceDescription {\n /** The ARM resource ID of the Device Registry namespace. */\n resourceId: string;\n /** Device Registry Namespace MI authentication type: UserAssigned, SystemAssigned. */\n authenticationType: DeviceRegistryNamespaceAuthenticationType;\n /** The selected user-assigned identity resource Id associated with Device Registry namespace. This is required when authenticationType is UserAssigned. */\n selectedUserAssignedIdentityResourceId?: string;\n}\n\nexport function deviceRegistryNamespaceDescriptionSerializer(\n item: DeviceRegistryNamespaceDescription,\n): any {\n return {\n resourceId: item[\"resourceId\"],\n authenticationType: item[\"authenticationType\"],\n selectedUserAssignedIdentityResourceId: item[\"selectedUserAssignedIdentityResourceId\"],\n };\n}\n\nexport function deviceRegistryNamespaceDescriptionDeserializer(\n item: any,\n): DeviceRegistryNamespaceDescription {\n return {\n resourceId: item[\"resourceId\"],\n authenticationType: item[\"authenticationType\"],\n selectedUserAssignedIdentityResourceId: item[\"selectedUserAssignedIdentityResourceId\"],\n };\n}\n\n/** Device Registry Namespace MI authentication type: UserAssigned, SystemAssigned. */\nexport enum KnownDeviceRegistryNamespaceAuthenticationType {\n /** User assigned authentication type. */\n UserAssigned = \"UserAssigned\",\n /** System assigned authentication type. */\n SystemAssigned = \"SystemAssigned\",\n}\n\n/**\n * Device Registry Namespace MI authentication type: UserAssigned, SystemAssigned. \\\n * {@link KnownDeviceRegistryNamespaceAuthenticationType} can be used interchangeably with DeviceRegistryNamespaceAuthenticationType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **UserAssigned**: User assigned authentication type. \\\n * **SystemAssigned**: System assigned authentication type.\n */\nexport type DeviceRegistryNamespaceAuthenticationType = string;\n\n/** Allocation policy to be used by this provisioning service. */\nexport enum KnownAllocationPolicy {\n /** Hashed */\n Hashed = \"Hashed\",\n /** GeoLatency */\n GeoLatency = \"GeoLatency\",\n /** Static */\n Static = \"Static\",\n}\n\n/**\n * Allocation policy to be used by this provisioning service. \\\n * {@link KnownAllocationPolicy} can be used interchangeably with AllocationPolicy,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Hashed** \\\n * **GeoLatency** \\\n * **Static**\n */\nexport type AllocationPolicy = string;\n\nexport function sharedAccessSignatureAuthorizationRuleAccessRightsDescriptionArraySerializer(\n result: Array<SharedAccessSignatureAuthorizationRuleAccessRightsDescription>,\n): any[] {\n return result.map((item) => {\n return sharedAccessSignatureAuthorizationRuleAccessRightsDescriptionSerializer(item);\n });\n}\n\nexport function sharedAccessSignatureAuthorizationRuleAccessRightsDescriptionArrayDeserializer(\n result: Array<SharedAccessSignatureAuthorizationRuleAccessRightsDescription>,\n): any[] {\n return result.map((item) => {\n return sharedAccessSignatureAuthorizationRuleAccessRightsDescriptionDeserializer(item);\n });\n}\n\n/** Description of the shared access key. */\nexport interface SharedAccessSignatureAuthorizationRuleAccessRightsDescription {\n /** Name of the key. */\n keyName: string;\n /** Primary SAS key value. */\n primaryKey?: string;\n /** Secondary SAS key value. */\n secondaryKey?: string;\n /** Rights that this key has. */\n rights: AccessRightsDescription;\n}\n\nexport function sharedAccessSignatureAuthorizationRuleAccessRightsDescriptionSerializer(\n item: SharedAccessSignatureAuthorizationRuleAccessRightsDescription,\n): any {\n return {\n keyName: item[\"keyName\"],\n primaryKey: item[\"primaryKey\"],\n secondaryKey: item[\"secondaryKey\"],\n rights: item[\"rights\"],\n };\n}\n\nexport function sharedAccessSignatureAuthorizationRuleAccessRightsDescriptionDeserializer(\n item: any,\n): SharedAccessSignatureAuthorizationRuleAccessRightsDescription {\n return {\n keyName: item[\"keyName\"],\n primaryKey: item[\"primaryKey\"],\n secondaryKey: item[\"secondaryKey\"],\n rights: item[\"rights\"],\n };\n}\n\n/** Rights that this key has. */\nexport enum KnownAccessRightsDescription {\n /** ServiceConfig */\n ServiceConfig = \"ServiceConfig\",\n /** EnrollmentRead */\n EnrollmentRead = \"EnrollmentRead\",\n /** EnrollmentWrite */\n EnrollmentWrite = \"EnrollmentWrite\",\n /** DeviceConnect */\n DeviceConnect = \"DeviceConnect\",\n /** RegistrationStatusRead */\n RegistrationStatusRead = \"RegistrationStatusRead\",\n /** RegistrationStatusWrite */\n RegistrationStatusWrite = \"RegistrationStatusWrite\",\n}\n\n/**\n * Rights that this key has. \\\n * {@link KnownAccessRightsDescription} can be used interchangeably with AccessRightsDescription,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **ServiceConfig** \\\n * **EnrollmentRead** \\\n * **EnrollmentWrite** \\\n * **DeviceConnect** \\\n * **RegistrationStatusRead** \\\n * **RegistrationStatusWrite**\n */\nexport type AccessRightsDescription = string;\n\n/** List of possible provisioning service SKUs. */\nexport interface IotDpsSkuInfo {\n /** Sku name. */\n name?: IotDpsSku;\n /** Pricing tier name of the provisioning service. */\n readonly tier?: string;\n /** The number of units to provision */\n capacity?: number;\n}\n\nexport function iotDpsSkuInfoSerializer(item: IotDpsSkuInfo): any {\n return { name: item[\"name\"], capacity: item[\"capacity\"] };\n}\n\nexport function iotDpsSkuInfoDeserializer(item: any): IotDpsSkuInfo {\n return {\n name: item[\"name\"],\n tier: item[\"tier\"],\n capacity: item[\"capacity\"],\n };\n}\n\n/** Sku name. */\nexport enum KnownIotDpsSku {\n /** S1 */\n S1 = \"S1\",\n}\n\n/**\n * Sku name. \\\n * {@link KnownIotDpsSku} can be used interchangeably with IotDpsSku,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **S1**\n */\nexport type IotDpsSku = 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>;\n}\n\nexport function managedServiceIdentitySerializer(item: ManagedServiceIdentity): any {\n return {\n type: item[\"type\"],\n userAssignedIdentities: !item[\"userAssignedIdentities\"]\n ? item[\"userAssignedIdentities\"]\n : userAssignedIdentityRecordSerializer(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 ? item[\"userAssignedIdentities\"]\n : userAssignedIdentityRecordDeserializer(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\nexport function userAssignedIdentityRecordSerializer(\n item: Record<string, UserAssignedIdentity>,\n): Record<string, any> {\n const result: Record<string, any> = {};\n Object.keys(item).map((key) => {\n result[key] = !item[key] ? item[key] : userAssignedIdentitySerializer(item[key]);\n });\n return result;\n}\n\nexport function userAssignedIdentityRecordDeserializer(\n item: Record<string, any>,\n): Record<string, UserAssignedIdentity> {\n const result: Record<string, any> = {};\n Object.keys(item).map((key) => {\n result[key] = !item[key] ? item[key] : userAssignedIdentityDeserializer(item[key]);\n });\n return result;\n}\n\n/** User assigned identity properties */\nexport interface UserAssignedIdentity {\n /** The principal ID of the assigned identity. */\n readonly principalId?: string;\n /** The client ID of the assigned identity. */\n readonly clientId?: string;\n}\n\nexport function userAssignedIdentitySerializer(item: UserAssignedIdentity): any {\n return item;\n}\n\nexport function userAssignedIdentityDeserializer(item: any): UserAssignedIdentity {\n return {\n principalId: item[\"principalId\"],\n clientId: item[\"clientId\"],\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/** 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?: any;\n}\n\nexport function errorAdditionalInfoDeserializer(item: any): ErrorAdditionalInfo {\n return {\n type: item[\"type\"],\n info: item[\"info\"],\n };\n}\n\n/** A container holding only the Tags for a resource, allowing the user to update the tags on a Provisioning Service instance. */\nexport interface TagsResource {\n /** Resource tags */\n tags?: Record<string, string>;\n}\n\nexport function tagsResourceSerializer(item: TagsResource): any {\n return { tags: item[\"tags\"] };\n}\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 response of a ProvisioningServiceDescription list operation. */\nexport interface _ProvisioningServiceDescriptionListResult {\n /** The ProvisioningServiceDescription items on this page */\n value: ProvisioningServiceDescription[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _provisioningServiceDescriptionListResultDeserializer(\n item: any,\n): _ProvisioningServiceDescriptionListResult {\n return {\n value: provisioningServiceDescriptionArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function provisioningServiceDescriptionArraySerializer(\n result: Array<ProvisioningServiceDescription>,\n): any[] {\n return result.map((item) => {\n return provisioningServiceDescriptionSerializer(item);\n });\n}\n\nexport function provisioningServiceDescriptionArrayDeserializer(\n result: Array<ProvisioningServiceDescription>,\n): any[] {\n return result.map((item) => {\n return provisioningServiceDescriptionDeserializer(item);\n });\n}\n\n/** List of available SKUs. */\nexport interface _IotDpsSkuDefinitionListResult {\n /** The IotDpsSkuDefinition items on this page */\n value: IotDpsSkuDefinition[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _iotDpsSkuDefinitionListResultDeserializer(\n item: any,\n): _IotDpsSkuDefinitionListResult {\n return {\n value: iotDpsSkuDefinitionArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function iotDpsSkuDefinitionArrayDeserializer(result: Array<IotDpsSkuDefinition>): any[] {\n return result.map((item) => {\n return iotDpsSkuDefinitionDeserializer(item);\n });\n}\n\n/** Available SKUs of tier and units. */\nexport interface IotDpsSkuDefinition {\n /** Sku name. */\n name?: IotDpsSku;\n}\n\nexport function iotDpsSkuDefinitionDeserializer(item: any): IotDpsSkuDefinition {\n return {\n name: item[\"name\"],\n };\n}\n\n/** List of shared access keys. */\nexport interface _SharedAccessSignatureAuthorizationRuleListResult {\n /** The SharedAccessSignatureAuthorizationRuleAccessRightsDescription items on this page */\n value: SharedAccessSignatureAuthorizationRuleAccessRightsDescription[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _sharedAccessSignatureAuthorizationRuleListResultDeserializer(\n item: any,\n): _SharedAccessSignatureAuthorizationRuleListResult {\n return {\n value: sharedAccessSignatureAuthorizationRuleAccessRightsDescriptionArrayDeserializer(\n item[\"value\"],\n ),\n nextLink: item[\"nextLink\"],\n };\n}\n\n/** The group information for creating a private endpoint on a provisioning service */\nexport interface GroupIdInformation extends ProxyResource {\n /** The properties for a group information object */\n properties: GroupIdInformationProperties;\n}\n\nexport function groupIdInformationDeserializer(item: any): GroupIdInformation {\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 properties: groupIdInformationPropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** The properties for a group information object */\nexport interface GroupIdInformationProperties {\n /** The group id */\n groupId?: string;\n /** The required members for a specific group id */\n requiredMembers?: string[];\n /** The required DNS zones for a specific group id */\n requiredZoneNames?: string[];\n}\n\nexport function groupIdInformationPropertiesDeserializer(item: any): GroupIdInformationProperties {\n return {\n groupId: item[\"groupId\"],\n requiredMembers: !item[\"requiredMembers\"]\n ? item[\"requiredMembers\"]\n : item[\"requiredMembers\"].map((p: any) => {\n return p;\n }),\n requiredZoneNames: !item[\"requiredZoneNames\"]\n ? item[\"requiredZoneNames\"]\n : item[\"requiredZoneNames\"].map((p: any) => {\n return p;\n }),\n };\n}\n\n/** The available private link resources for a provisioning service */\nexport interface _PrivateLinkResources {\n /** The list of available private link resources for a provisioning service */\n value?: GroupIdInformation[];\n}\n\nexport function _privateLinkResourcesDeserializer(item: any): _PrivateLinkResources {\n return {\n value: !item[\"value\"] ? item[\"value\"] : groupIdInformationArrayDeserializer(item[\"value\"]),\n };\n}\n\nexport function groupIdInformationArrayDeserializer(result: Array<GroupIdInformation>): any[] {\n return result.map((item) => {\n return groupIdInformationDeserializer(item);\n });\n}\n\n/** Input values for operation results call. */\nexport interface OperationInputs {\n /** The name of the Provisioning Service to check. */\n name: string;\n}\n\nexport function operationInputsSerializer(item: OperationInputs): any {\n return { name: item[\"name\"] };\n}\n\n/** Description of name availability. */\nexport interface NameAvailabilityInfo {\n /** specifies if a name is available or not */\n nameAvailable?: boolean;\n /** specifies the reason a name is unavailable */\n reason?: NameUnavailabilityReason;\n /** message containing a detailed reason name is unavailable */\n message?: string;\n}\n\nexport function nameAvailabilityInfoDeserializer(item: any): NameAvailabilityInfo {\n return {\n nameAvailable: item[\"nameAvailable\"],\n reason: item[\"reason\"],\n message: item[\"message\"],\n };\n}\n\n/** specifies the reason a name is unavailable */\nexport enum KnownNameUnavailabilityReason {\n /** Invalid */\n Invalid = \"Invalid\",\n /** AlreadyExists */\n AlreadyExists = \"AlreadyExists\",\n}\n\n/**\n * specifies the reason a name is unavailable \\\n * {@link KnownNameUnavailabilityReason} can be used interchangeably with NameUnavailabilityReason,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Invalid** \\\n * **AlreadyExists**\n */\nexport type NameUnavailabilityReason = string;\n\n/** Known values of {@link CertificatePurpose} that the service accepts. */\nexport enum KnownCertificatePurpose {\n /** clientAuthentication */\n ClientAuthentication = \"clientAuthentication\",\n /** serverAuthentication */\n ServerAuthentication = \"serverAuthentication\",\n}\n\n/** Type of CertificatePurpose */\nexport type CertificatePurpose = string;\n\n/** The available API versions. */\nexport enum KnownVersions {\n /** The 2025-02-01-preview API version. */\n V20250201Preview = \"2025-02-01-preview\",\n}\n\nexport function privateEndpointConnectionArraySerializer_1(\n result: Array<PrivateEndpointConnection>,\n): any[] {\n return result.map((item) => {\n return privateEndpointConnectionSerializer(item);\n });\n}\n\nexport function privateEndpointConnectionArrayDeserializer_1(\n result: Array<PrivateEndpointConnection>,\n): any[] {\n return result.map((item) => {\n return privateEndpointConnectionDeserializer(item);\n });\n}\n"]}
@@ -0,0 +1,21 @@
1
+ import type { IotDpsClient } from "./iotDpsClient.js";
2
+ import type { OperationOptions, PathUncheckedResponse } from "@azure-rest/core-client";
3
+ import type { AbortSignalLike } from "@azure/abort-controller";
4
+ import type { 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: IotDpsClient, 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,104 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ import { _deletePrivateEndpointConnectionDeserialize, _createOrUpdatePrivateEndpointConnectionDeserialize, _$deleteDeserialize, _updateDeserialize, _createOrUpdateDeserialize, } from "./api/iotDpsResource/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
+ const pollerConfig = deserializeState(serializedState).config;
13
+ const { initialRequestUrl, requestMethod, metadata } = pollerConfig;
14
+ if (!initialRequestUrl || !requestMethod) {
15
+ throw new Error(`Invalid serialized state: ${serializedState} for sourceOperation ${sourceOperation?.name}`);
16
+ }
17
+ const resourceLocationConfig = metadata?.["resourceLocationConfig"];
18
+ const { deserializer, expectedStatuses = [] } = getDeserializationHelper(initialRequestUrl, requestMethod) ?? {};
19
+ const deserializeHelper = options?.processResponseBody ?? deserializer;
20
+ if (!deserializeHelper) {
21
+ throw new Error(`Please ensure the operation is in this client! We can't find its deserializeHelper for ${sourceOperation?.name}.`);
22
+ }
23
+ return getLongRunningPoller(client["_client"] ?? client, deserializeHelper, expectedStatuses, {
24
+ updateIntervalInMs: options?.updateIntervalInMs,
25
+ abortSignal: options?.abortSignal,
26
+ resourceLocationConfig,
27
+ restoreFrom: serializedState,
28
+ initialRequestUrl,
29
+ });
30
+ }
31
+ const deserializeMap = {
32
+ "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}": {
33
+ deserializer: _deletePrivateEndpointConnectionDeserialize,
34
+ expectedStatuses: ["200", "202", "204"],
35
+ },
36
+ "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}": {
37
+ deserializer: _createOrUpdatePrivateEndpointConnectionDeserialize,
38
+ expectedStatuses: ["200", "201", "202"],
39
+ },
40
+ "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}": {
41
+ deserializer: _$deleteDeserialize,
42
+ expectedStatuses: ["200", "202", "204", "404"],
43
+ },
44
+ "PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}": { deserializer: _updateDeserialize, expectedStatuses: ["200", "202"] },
45
+ "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}": {
46
+ deserializer: _createOrUpdateDeserialize,
47
+ expectedStatuses: ["200", "201", "202"],
48
+ },
49
+ };
50
+ function getDeserializationHelper(urlStr, method) {
51
+ const path = new URL(urlStr).pathname;
52
+ const pathParts = path.split("/");
53
+ // Traverse list to match the longest candidate
54
+ // matchedLen: the length of candidate path
55
+ // matchedValue: the matched status code array
56
+ let matchedLen = -1, matchedValue;
57
+ // Iterate the responseMap to find a match
58
+ for (const [key, value] of Object.entries(deserializeMap)) {
59
+ // Extracting the path from the map key which is in format
60
+ // GET /path/foo
61
+ if (!key.startsWith(method)) {
62
+ continue;
63
+ }
64
+ const candidatePath = getPathFromMapKey(key);
65
+ // Get each part of the url path
66
+ const candidateParts = candidatePath.split("/");
67
+ // track if we have found a match to return the values found.
68
+ let found = true;
69
+ for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {
70
+ if (candidateParts[i]?.startsWith("{") && candidateParts[i]?.indexOf("}") !== -1) {
71
+ const start = candidateParts[i].indexOf("}") + 1, end = candidateParts[i]?.length;
72
+ // If the current part of the candidate is a "template" part
73
+ // Try to use the suffix of pattern to match the path
74
+ // {guid} ==> $
75
+ // {guid}:export ==> :export$
76
+ const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test(pathParts[j] || "");
77
+ if (!isMatched) {
78
+ found = false;
79
+ break;
80
+ }
81
+ continue;
82
+ }
83
+ // If the candidate part is not a template and
84
+ // the parts don't match mark the candidate as not found
85
+ // to move on with the next candidate path.
86
+ if (candidateParts[i] !== pathParts[j]) {
87
+ found = false;
88
+ break;
89
+ }
90
+ }
91
+ // We finished evaluating the current candidate parts
92
+ // Update the matched value if and only if we found the longer pattern
93
+ if (found && candidatePath.length > matchedLen) {
94
+ matchedLen = candidatePath.length;
95
+ matchedValue = value;
96
+ }
97
+ }
98
+ return matchedValue;
99
+ }
100
+ function getPathFromMapKey(mapKey) {
101
+ const pathStart = mapKey.indexOf("/");
102
+ return mapKey.slice(pathStart);
103
+ }
104
+ //# sourceMappingURL=restorePollerHelpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"restorePollerHelpers.js","sourceRoot":"","sources":["../../src/restorePollerHelpers.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EACL,2CAA2C,EAC3C,mDAAmD,EACnD,mBAAmB,EACnB,kBAAkB,EAClB,0BAA0B,GAC3B,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAI1E,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAgBnD;;;;GAIG;AACH,MAAM,UAAU,aAAa,CAC3B,MAAoB,EACpB,eAAuB,EACvB,eAAiF,EACjF,OAAuC;IAEvC,MAAM,YAAY,GAAG,gBAAgB,CAAC,eAAe,CAAC,CAAC,MAAM,CAAC;IAC9D,MAAM,EAAE,iBAAiB,EAAE,aAAa,EAAE,QAAQ,EAAE,GAAG,YAAY,CAAC;IACpE,IAAI,CAAC,iBAAiB,IAAI,CAAC,aAAa,EAAE,CAAC;QACzC,MAAM,IAAI,KAAK,CACb,6BAA6B,eAAe,wBAAwB,eAAe,EAAE,IAAI,EAAE,CAC5F,CAAC;IACJ,CAAC;IACD,MAAM,sBAAsB,GAAG,QAAQ,EAAE,CAAC,wBAAwB,CAErD,CAAC;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f,6BAA6B;gBAC7B,MAAM,SAAS,GAAG,IAAI,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,KAAK,EAAE,GAAG,CAAC,EAAE,CAAC,CAAC,IAAI,CAC1E,SAAS,CAAC,CAAC,CAAC,IAAI,EAAE,CACnB,CAAC;gBAEF,IAAI,CAAC,SAAS,EAAE,CAAC;oBACf,KAAK,GAAG,KAAK,CAAC;oBACd,MAAM;gBACR,CAAC;gBACD,SAAS;YACX,CAAC;YAED,8CAA8C;YAC9C,wDAAwD;YACxD,2CAA2C;YAC3C,IAAI,cAAc,CAAC,CAAC,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC;gBACvC,KAAK,GAAG,KAAK,CAAC;gBACd,MAAM;YACR,CAAC;QACH,CAAC;QAED,qDAAqD;QACrD,sEAAsE;QACtE,IAAI,KAAK,IAAI,aAAa,CAAC,MAAM,GAAG,UAAU,EAAE,CAAC;YAC/C,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC;YAClC,YAAY,GAAG,KAAK,CAAC;QACvB,CAAC;IACH,CAAC;IAED,OAAO,YAAY,CAAC;AACtB,CAAC;AAED,SAAS,iBAAiB,CAAC,MAAc;IACvC,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACtC,OAAO,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { IotDpsClient } from \"./iotDpsClient.js\";\nimport {\n _deletePrivateEndpointConnectionDeserialize,\n _createOrUpdatePrivateEndpointConnectionDeserialize,\n _$deleteDeserialize,\n _updateDeserialize,\n _createOrUpdateDeserialize,\n} from \"./api/iotDpsResource/operations.js\";\nimport { getLongRunningPoller } from \"./static-helpers/pollingHelpers.js\";\nimport type { OperationOptions, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport type { AbortSignalLike } from \"@azure/abort-controller\";\nimport type { PollerLike, OperationState, ResourceLocationConfig } from \"@azure/core-lro\";\nimport { deserializeState } from \"@azure/core-lro\";\n\nexport interface RestorePollerOptions<\n TResult,\n TResponse extends PathUncheckedResponse = PathUncheckedResponse,\n> extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /**\n * The signal which can be used to abort requests.\n */\n abortSignal?: AbortSignalLike;\n /** Deserialization function for raw response body */\n processResponseBody?: (result: TResponse) => Promise<TResult>;\n}\n\n/**\n * Creates a poller from the serialized state of another poller. This can be\n * useful when you want to create pollers on a different host or a poller\n * needs to be constructed after the original one is not in scope.\n */\nexport function restorePoller<TResponse extends PathUncheckedResponse, TResult>(\n client: IotDpsClient,\n serializedState: string,\n sourceOperation: (...args: any[]) => PollerLike<OperationState<TResult>, TResult>,\n options?: RestorePollerOptions<TResult>,\n): PollerLike<OperationState<TResult>, TResult> {\n const pollerConfig = deserializeState(serializedState).config;\n const { initialRequestUrl, requestMethod, metadata } = pollerConfig;\n if (!initialRequestUrl || !requestMethod) {\n throw new Error(\n `Invalid serialized state: ${serializedState} for sourceOperation ${sourceOperation?.name}`,\n );\n }\n const resourceLocationConfig = metadata?.[\"resourceLocationConfig\"] as\n | ResourceLocationConfig\n | undefined;\n const { deserializer, expectedStatuses = [] } =\n getDeserializationHelper(initialRequestUrl, requestMethod) ?? {};\n const deserializeHelper = options?.processResponseBody ?? deserializer;\n if (!deserializeHelper) {\n throw new Error(\n `Please ensure the operation is in this client! We can't find its deserializeHelper for ${sourceOperation?.name}.`,\n );\n }\n return getLongRunningPoller(\n (client as any)[\"_client\"] ?? client,\n deserializeHelper as (result: TResponse) => Promise<TResult>,\n expectedStatuses,\n {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n resourceLocationConfig,\n restoreFrom: serializedState,\n initialRequestUrl,\n },\n );\n}\n\ninterface DeserializationHelper {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-function-type\n deserializer: Function;\n expectedStatuses: string[];\n}\n\nconst deserializeMap: Record<string, DeserializationHelper> = {\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}\":\n {\n deserializer: _deletePrivateEndpointConnectionDeserialize,\n expectedStatuses: [\"200\", \"202\", \"204\"],\n },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}\":\n {\n deserializer: _createOrUpdatePrivateEndpointConnectionDeserialize,\n expectedStatuses: [\"200\", \"201\", \"202\"],\n },\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}\":\n {\n deserializer: _$deleteDeserialize,\n expectedStatuses: [\"200\", \"202\", \"204\", \"404\"],\n },\n \"PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}\":\n { deserializer: _updateDeserialize, expectedStatuses: [\"200\", \"202\"] },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}\":\n {\n deserializer: _createOrUpdateDeserialize,\n expectedStatuses: [\"200\", \"201\", \"202\"],\n },\n};\n\nfunction getDeserializationHelper(\n urlStr: string,\n method: string,\n): DeserializationHelper | undefined {\n const path = new URL(urlStr).pathname;\n const pathParts = path.split(\"/\");\n\n // Traverse list to match the longest candidate\n // matchedLen: the length of candidate path\n // matchedValue: the matched status code array\n let matchedLen = -1,\n matchedValue: DeserializationHelper | undefined;\n\n // Iterate the responseMap to find a match\n for (const [key, value] of Object.entries(deserializeMap)) {\n // Extracting the path from the map key which is in format\n // GET /path/foo\n if (!key.startsWith(method)) {\n continue;\n }\n const candidatePath = getPathFromMapKey(key);\n // Get each part of the url path\n const candidateParts = candidatePath.split(\"/\");\n\n // track if we have found a match to return the values found.\n let found = true;\n for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {\n if (candidateParts[i]?.startsWith(\"{\") && candidateParts[i]?.indexOf(\"}\") !== -1) {\n const start = candidateParts[i]!.indexOf(\"}\") + 1,\n end = candidateParts[i]?.length;\n // If the current part of the candidate is a \"template\" part\n // Try to use the suffix of pattern to match the path\n // {guid} ==> $\n // {guid}:export ==> :export$\n const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test(\n pathParts[j] || \"\",\n );\n\n if (!isMatched) {\n found = false;\n break;\n }\n continue;\n }\n\n // If the candidate part is not a template and\n // the parts don't match mark the candidate as not found\n // to move on with the next candidate path.\n if (candidateParts[i] !== pathParts[j]) {\n found = false;\n break;\n }\n }\n\n // We finished evaluating the current candidate parts\n // Update the matched value if and only if we found the longer pattern\n if (found && candidatePath.length > matchedLen) {\n matchedLen = candidatePath.length;\n matchedValue = value;\n }\n }\n\n return matchedValue;\n}\n\nfunction getPathFromMapKey(mapKey: string): string {\n const pathStart = mapKey.indexOf(\"/\");\n return mapKey.slice(pathStart);\n}\n"]}
@@ -0,0 +1,22 @@
1
+ /**
2
+ * An enum to describe Azure Cloud environments.
3
+ * @enum {string}
4
+ */
5
+ export declare enum AzureClouds {
6
+ /** Azure public cloud, which is the default cloud for Azure SDKs. */
7
+ AZURE_PUBLIC_CLOUD = "AZURE_PUBLIC_CLOUD",
8
+ /** Azure China cloud */
9
+ AZURE_CHINA_CLOUD = "AZURE_CHINA_CLOUD",
10
+ /** Azure US government cloud */
11
+ AZURE_US_GOVERNMENT = "AZURE_US_GOVERNMENT"
12
+ }
13
+ /** The supported values for cloud setting as a string literal type */
14
+ export type AzureSupportedClouds = `${AzureClouds}`;
15
+ /**
16
+ * Gets the Azure Resource Manager endpoint URL for the specified cloud setting.
17
+ * @param cloudSetting - The Azure cloud environment setting. Use one of the AzureClouds enum values.
18
+ * @returns The ARM endpoint URL for the specified cloud, or undefined if cloudSetting is undefined.
19
+ * @throws {Error} Throws an error if an unknown cloud setting is provided.
20
+ */
21
+ export declare function getArmEndpoint(cloudSetting?: AzureSupportedClouds): string | undefined;
22
+ //# sourceMappingURL=cloudSettingHelpers.d.ts.map
@@ -0,0 +1,38 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ /**
4
+ * An enum to describe Azure Cloud environments.
5
+ * @enum {string}
6
+ */
7
+ export var AzureClouds;
8
+ (function (AzureClouds) {
9
+ /** Azure public cloud, which is the default cloud for Azure SDKs. */
10
+ AzureClouds["AZURE_PUBLIC_CLOUD"] = "AZURE_PUBLIC_CLOUD";
11
+ /** Azure China cloud */
12
+ AzureClouds["AZURE_CHINA_CLOUD"] = "AZURE_CHINA_CLOUD";
13
+ /** Azure US government cloud */
14
+ AzureClouds["AZURE_US_GOVERNMENT"] = "AZURE_US_GOVERNMENT";
15
+ })(AzureClouds || (AzureClouds = {}));
16
+ /**
17
+ * Gets the Azure Resource Manager endpoint URL for the specified cloud setting.
18
+ * @param cloudSetting - The Azure cloud environment setting. Use one of the AzureClouds enum values.
19
+ * @returns The ARM endpoint URL for the specified cloud, or undefined if cloudSetting is undefined.
20
+ * @throws {Error} Throws an error if an unknown cloud setting is provided.
21
+ */
22
+ export function getArmEndpoint(cloudSetting) {
23
+ if (cloudSetting === undefined) {
24
+ return undefined;
25
+ }
26
+ const cloudEndpoints = {
27
+ AZURE_CHINA_CLOUD: "https://management.chinacloudapi.cn/",
28
+ AZURE_US_GOVERNMENT: "https://management.usgovcloudapi.net/",
29
+ AZURE_PUBLIC_CLOUD: "https://management.azure.com/",
30
+ };
31
+ if (cloudSetting in cloudEndpoints) {
32
+ return cloudEndpoints[cloudSetting];
33
+ }
34
+ else {
35
+ throw new Error(`Unknown cloud setting: ${cloudSetting}. Please refer to the enum AzureClouds for possible values.`);
36
+ }
37
+ }
38
+ //# sourceMappingURL=cloudSettingHelpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cloudSettingHelpers.js","sourceRoot":"","sources":["../../../src/static-helpers/cloudSettingHelpers.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC;;;GAGG;AACH,MAAM,CAAN,IAAY,WAOX;AAPD,WAAY,WAAW;IACrB,qEAAqE;IACrE,wDAAyC,CAAA;IACzC,wBAAwB;IACxB,sDAAuC,CAAA;IACvC,gCAAgC;IAChC,0DAA2C,CAAA;AAC7C,CAAC,EAPW,WAAW,KAAX,WAAW,QAOtB;AAKD;;;;;GAKG;AACH,MAAM,UAAU,cAAc,CAAC,YAAmC;IAChE,IAAI,YAAY,KAAK,SAAS,EAAE,CAAC;QAC/B,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,MAAM,cAAc,GAA6C;QAC/D,iBAAiB,EAAE,sCAAsC;QACzD,mBAAmB,EAAE,uCAAuC;QAC5D,kBAAkB,EAAE,+BAA+B;KACpD,CAAC;IACF,IAAI,YAAY,IAAI,cAAc,EAAE,CAAC;QACnC,OAAO,cAAc,CAAC,YAAY,CAAC,CAAC;IACtC,CAAC;SAAM,CAAC;QACN,MAAM,IAAI,KAAK,CACb,0BAA0B,YAAY,6DAA6D,CACpG,CAAC;IACJ,CAAC;AACH,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * An enum to describe Azure Cloud environments.\n * @enum {string}\n */\nexport enum AzureClouds {\n /** Azure public cloud, which is the default cloud for Azure SDKs. */\n AZURE_PUBLIC_CLOUD = \"AZURE_PUBLIC_CLOUD\",\n /** Azure China cloud */\n AZURE_CHINA_CLOUD = \"AZURE_CHINA_CLOUD\",\n /** Azure US government cloud */\n AZURE_US_GOVERNMENT = \"AZURE_US_GOVERNMENT\",\n}\n\n/** The supported values for cloud setting as a string literal type */\nexport type AzureSupportedClouds = `${AzureClouds}`;\n\n/**\n * Gets the Azure Resource Manager endpoint URL for the specified cloud setting.\n * @param cloudSetting - The Azure cloud environment setting. Use one of the AzureClouds enum values.\n * @returns The ARM endpoint URL for the specified cloud, or undefined if cloudSetting is undefined.\n * @throws {Error} Throws an error if an unknown cloud setting is provided.\n */\nexport function getArmEndpoint(cloudSetting?: AzureSupportedClouds): string | undefined {\n if (cloudSetting === undefined) {\n return undefined;\n }\n const cloudEndpoints: Record<keyof typeof AzureClouds, string> = {\n AZURE_CHINA_CLOUD: \"https://management.chinacloudapi.cn/\",\n AZURE_US_GOVERNMENT: \"https://management.usgovcloudapi.net/\",\n AZURE_PUBLIC_CLOUD: \"https://management.azure.com/\",\n };\n if (cloudSetting in cloudEndpoints) {\n return cloudEndpoints[cloudSetting];\n } else {\n throw new Error(\n `Unknown cloud setting: ${cloudSetting}. Please refer to the enum AzureClouds for possible values.`,\n );\n }\n}\n"]}
@@ -0,0 +1,72 @@
1
+ import type { Client, PathUncheckedResponse } from "@azure-rest/core-client";
2
+ /**
3
+ * Options for the byPage method
4
+ */
5
+ export interface PageSettings {
6
+ /**
7
+ * A reference to a specific page to start iterating from.
8
+ */
9
+ continuationToken?: string;
10
+ }
11
+ /**
12
+ * An interface that describes a page of results.
13
+ */
14
+ export type ContinuablePage<TElement, TPage = TElement[]> = TPage & {
15
+ /**
16
+ * The token that keeps track of where to continue the iterator
17
+ */
18
+ continuationToken?: string;
19
+ };
20
+ /**
21
+ * An interface that allows async iterable iteration both to completion and by page.
22
+ */
23
+ export interface PagedAsyncIterableIterator<TElement, TPage = TElement[], TPageSettings extends PageSettings = PageSettings> {
24
+ /**
25
+ * The next method, part of the iteration protocol
26
+ */
27
+ next(): Promise<IteratorResult<TElement>>;
28
+ /**
29
+ * The connection to the async iterator, part of the iteration protocol
30
+ */
31
+ [Symbol.asyncIterator](): PagedAsyncIterableIterator<TElement, TPage, TPageSettings>;
32
+ /**
33
+ * Return an AsyncIterableIterator that works a page at a time
34
+ */
35
+ byPage: (settings?: TPageSettings) => AsyncIterableIterator<ContinuablePage<TElement, TPage>>;
36
+ }
37
+ /**
38
+ * An interface that describes how to communicate with the service.
39
+ */
40
+ export interface PagedResult<TElement, TPage = TElement[], TPageSettings extends PageSettings = PageSettings> {
41
+ /**
42
+ * Link to the first page of results.
43
+ */
44
+ firstPageLink?: string;
45
+ /**
46
+ * A method that returns a page of results.
47
+ */
48
+ getPage: (pageLink?: string) => Promise<{
49
+ page: TPage;
50
+ nextPageLink?: string;
51
+ } | undefined>;
52
+ /**
53
+ * a function to implement the `byPage` method on the paged async iterator.
54
+ */
55
+ byPage?: (settings?: TPageSettings) => AsyncIterableIterator<ContinuablePage<TElement, TPage>>;
56
+ /**
57
+ * A function to extract elements from a page.
58
+ */
59
+ toElements?: (page: TPage) => TElement[];
60
+ }
61
+ /**
62
+ * Options for the paging helper
63
+ */
64
+ export interface BuildPagedAsyncIteratorOptions {
65
+ itemName?: string;
66
+ nextLinkName?: string;
67
+ }
68
+ /**
69
+ * Helper to paginate results in a generic way and return a PagedAsyncIterableIterator
70
+ */
71
+ export declare function buildPagedAsyncIterator<TElement, TPage = TElement[], TPageSettings extends PageSettings = PageSettings, TResponse extends PathUncheckedResponse = PathUncheckedResponse>(client: Client, getInitialResponse: () => PromiseLike<TResponse>, processResponseBody: (result: TResponse) => PromiseLike<unknown>, expectedStatuses: string[], options?: BuildPagedAsyncIteratorOptions): PagedAsyncIterableIterator<TElement, TPage, TPageSettings>;
72
+ //# sourceMappingURL=pagingHelpers.d.ts.map
@@ -0,0 +1,118 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ import { createRestError } from "@azure-rest/core-client";
4
+ import { RestError } from "@azure/core-rest-pipeline";
5
+ /**
6
+ * Helper to paginate results in a generic way and return a PagedAsyncIterableIterator
7
+ */
8
+ export function buildPagedAsyncIterator(client, getInitialResponse, processResponseBody, expectedStatuses, options = {}) {
9
+ const itemName = options.itemName ?? "value";
10
+ const nextLinkName = options.nextLinkName ?? "nextLink";
11
+ const pagedResult = {
12
+ getPage: async (pageLink) => {
13
+ const result = pageLink === undefined
14
+ ? await getInitialResponse()
15
+ : await client.pathUnchecked(pageLink).get();
16
+ checkPagingRequest(result, expectedStatuses);
17
+ const results = await processResponseBody(result);
18
+ const nextLink = getNextLink(results, nextLinkName);
19
+ const values = getElements(results, itemName);
20
+ return {
21
+ page: values,
22
+ nextPageLink: nextLink,
23
+ };
24
+ },
25
+ byPage: (settings) => {
26
+ const { continuationToken } = settings ?? {};
27
+ return getPageAsyncIterator(pagedResult, {
28
+ pageLink: continuationToken,
29
+ });
30
+ },
31
+ };
32
+ return getPagedAsyncIterator(pagedResult);
33
+ }
34
+ /**
35
+ * returns an async iterator that iterates over results. It also has a `byPage`
36
+ * method that returns pages of items at once.
37
+ *
38
+ * @param pagedResult - an object that specifies how to get pages.
39
+ * @returns a paged async iterator that iterates over results.
40
+ */
41
+ function getPagedAsyncIterator(pagedResult) {
42
+ const iter = getItemAsyncIterator(pagedResult);
43
+ return {
44
+ next() {
45
+ return iter.next();
46
+ },
47
+ [Symbol.asyncIterator]() {
48
+ return this;
49
+ },
50
+ byPage: pagedResult?.byPage ??
51
+ ((settings) => {
52
+ const { continuationToken } = settings ?? {};
53
+ return getPageAsyncIterator(pagedResult, {
54
+ pageLink: continuationToken,
55
+ });
56
+ }),
57
+ };
58
+ }
59
+ async function* getItemAsyncIterator(pagedResult) {
60
+ const pages = getPageAsyncIterator(pagedResult);
61
+ for await (const page of pages) {
62
+ yield* page;
63
+ }
64
+ }
65
+ async function* getPageAsyncIterator(pagedResult, options = {}) {
66
+ const { pageLink } = options;
67
+ let response = await pagedResult.getPage(pageLink ?? pagedResult.firstPageLink);
68
+ if (!response) {
69
+ return;
70
+ }
71
+ let result = response.page;
72
+ result.continuationToken = response.nextPageLink;
73
+ yield result;
74
+ while (response.nextPageLink) {
75
+ response = await pagedResult.getPage(response.nextPageLink);
76
+ if (!response) {
77
+ return;
78
+ }
79
+ result = response.page;
80
+ result.continuationToken = response.nextPageLink;
81
+ yield result;
82
+ }
83
+ }
84
+ /**
85
+ * Gets for the value of nextLink in the body
86
+ */
87
+ function getNextLink(body, nextLinkName) {
88
+ if (!nextLinkName) {
89
+ return undefined;
90
+ }
91
+ const nextLink = body[nextLinkName];
92
+ if (typeof nextLink !== "string" && typeof nextLink !== "undefined" && nextLink !== null) {
93
+ throw new RestError(`Body Property ${nextLinkName} should be a string or undefined or null but got ${typeof nextLink}`);
94
+ }
95
+ if (nextLink === null) {
96
+ return undefined;
97
+ }
98
+ return nextLink;
99
+ }
100
+ /**
101
+ * Gets the elements of the current request in the body.
102
+ */
103
+ function getElements(body, itemName) {
104
+ const value = body[itemName];
105
+ if (!Array.isArray(value)) {
106
+ throw new RestError(`Couldn't paginate response\n Body doesn't contain an array property with name: ${itemName}`);
107
+ }
108
+ return value ?? [];
109
+ }
110
+ /**
111
+ * Checks if a request failed
112
+ */
113
+ function checkPagingRequest(response, expectedStatuses) {
114
+ if (!expectedStatuses.includes(response.status)) {
115
+ throw createRestError(`Pagination failed with unexpected statusCode ${response.status}`, response);
116
+ }
117
+ }
118
+ //# sourceMappingURL=pagingHelpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagingHelpers.js","sourceRoot":"","sources":["../../../src/static-helpers/pagingHelpers.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AA+EtD;;GAEG;AACH,MAAM,UAAU,uBAAuB,CAMrC,MAAc,EACd,kBAAgD,EAChD,mBAAgE,EAChE,gBAA0B,EAC1B,UAA0C,EAAE;IAE5C,MAAM,QAAQ,GAAG,OAAO,CAAC,QAAQ,IAAI,OAAO,CAAC;IAC7C,MAAM,YAAY,GAAG,OAAO,CAAC,YAAY,IAAI,UAAU,CAAC;IACxD,MAAM,WAAW,GAAgD;QAC/D,OAAO,EAAE,KAAK,EAAE,QAAiB,EA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AC;IAEjE,IAAI,OAAO,QAAQ,KAAK,QAAQ,IAAI,OAAO,QAAQ,KAAK,WAAW,IAAI,QAAQ,KAAK,IAAI,EAAE,CAAC;QACzF,MAAM,IAAI,SAAS,CACjB,iBAAiB,YAAY,oDAAoD,OAAO,QAAQ,EAAE,CACnG,CAAC;IACJ,CAAC;IAED,IAAI,QAAQ,KAAK,IAAI,EAAE,CAAC;QACtB,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED;;GAEG;AACH,SAAS,WAAW,CAAc,IAAa,EAAE,QAAgB;IAC/D,MAAM,KAAK,GAAI,IAAgC,CAAC,QAAQ,CAAQ,CAAC;IACjE,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QAC1B,MAAM,IAAI,SAAS,CACjB,kFAAkF,QAAQ,EAAE,CAC7F,CAAC;IACJ,CAAC;IAED,OAAO,KAAK,IAAI,EAAE,CAAC;AACrB,CAAC;AAED;;GAEG;AACH,SAAS,kBAAkB,CAAC,QAA+B,EAAE,gBAA0B;IACrF,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;QAChD,MAAM,eAAe,CACnB,gDAAgD,QAAQ,CAAC,MAAM,EAAE,EACjE,QAAQ,CACT,CAAC;IACJ,CAAC;AACH,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { Client, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError } from \"@azure-rest/core-client\";\nimport { RestError } from \"@azure/core-rest-pipeline\";\n\n/**\n * Options for the byPage method\n */\nexport interface PageSettings {\n /**\n * A reference to a specific page to start iterating from.\n */\n continuationToken?: string;\n}\n\n/**\n * An interface that describes a page of results.\n */\nexport type ContinuablePage<TElement, TPage = TElement[]> = TPage & {\n /**\n * The token that keeps track of where to continue the iterator\n */\n continuationToken?: string;\n};\n\n/**\n * An interface that allows async iterable iteration both to completion and by page.\n */\nexport interface PagedAsyncIterableIterator<\n TElement,\n TPage = TElement[],\n TPageSettings extends PageSettings = PageSettings,\n> {\n /**\n * The next method, part of the iteration protocol\n */\n next(): Promise<IteratorResult<TElement>>;\n /**\n * The connection to the async iterator, part of the iteration protocol\n */\n [Symbol.asyncIterator](): PagedAsyncIterableIterator<TElement, TPage, TPageSettings>;\n /**\n * Return an AsyncIterableIterator that works a page at a time\n */\n byPage: (settings?: TPageSettings) => AsyncIterableIterator<ContinuablePage<TElement, TPage>>;\n}\n\n/**\n * An interface that describes how to communicate with the service.\n */\nexport interface PagedResult<\n TElement,\n TPage = TElement[],\n TPageSettings extends PageSettings = PageSettings,\n> {\n /**\n * Link to the first page of results.\n */\n firstPageLink?: string;\n /**\n * A method that returns a page of results.\n */\n getPage: (pageLink?: string) => Promise<{ page: TPage; nextPageLink?: string } | undefined>;\n /**\n * a function to implement the `byPage` method on the paged async iterator.\n */\n byPage?: (settings?: TPageSettings) => AsyncIterableIterator<ContinuablePage<TElement, TPage>>;\n\n /**\n * A function to extract elements from a page.\n */\n toElements?: (page: TPage) => TElement[];\n}\n\n/**\n * Options for the paging helper\n */\nexport interface BuildPagedAsyncIteratorOptions {\n itemName?: string;\n nextLinkName?: string;\n}\n\n/**\n * Helper to paginate results in a generic way and return a PagedAsyncIterableIterator\n */\nexport function buildPagedAsyncIterator<\n TElement,\n TPage = TElement[],\n TPageSettings extends PageSettings = PageSettings,\n TResponse extends PathUncheckedResponse = PathUncheckedResponse,\n>(\n client: Client,\n getInitialResponse: () => PromiseLike<TResponse>,\n processResponseBody: (result: TResponse) => PromiseLike<unknown>,\n expectedStatuses: string[],\n options: BuildPagedAsyncIteratorOptions = {},\n): PagedAsyncIterableIterator<TElement, TPage, TPageSettings> {\n const itemName = options.itemName ?? \"value\";\n const nextLinkName = options.nextLinkName ?? \"nextLink\";\n const pagedResult: PagedResult<TElement, TPage, TPageSettings> = {\n getPage: async (pageLink?: string) => {\n const result =\n pageLink === undefined\n ? await getInitialResponse()\n : await client.pathUnchecked(pageLink).get();\n checkPagingRequest(result, expectedStatuses);\n const results = await processResponseBody(result as TResponse);\n const nextLink = getNextLink(results, nextLinkName);\n const values = getElements<TElement>(results, itemName) as TPage;\n return {\n page: values,\n nextPageLink: nextLink,\n };\n },\n byPage: (settings?: TPageSettings) => {\n const { continuationToken } = settings ?? {};\n return getPageAsyncIterator(pagedResult, {\n pageLink: continuationToken,\n });\n },\n };\n return getPagedAsyncIterator(pagedResult);\n}\n\n/**\n * returns an async iterator that iterates over results. It also has a `byPage`\n * method that returns pages of items at once.\n *\n * @param pagedResult - an object that specifies how to get pages.\n * @returns a paged async iterator that iterates over results.\n */\n\nfunction getPagedAsyncIterator<\n TElement,\n TPage = TElement[],\n TPageSettings extends PageSettings = PageSettings,\n>(\n pagedResult: PagedResult<TElement, TPage, TPageSettings>,\n): PagedAsyncIterableIterator<TElement, TPage, TPageSettings> {\n const iter = getItemAsyncIterator<TElement, TPage, TPageSettings>(pagedResult);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage:\n pagedResult?.byPage ??\n ((settings?: TPageSettings) => {\n const { continuationToken } = settings ?? {};\n return getPageAsyncIterator(pagedResult, {\n pageLink: continuationToken,\n });\n }),\n };\n}\n\nasync function* getItemAsyncIterator<TElement, TPage, TPageSettings extends PageSettings>(\n pagedResult: PagedResult<TElement, TPage, TPageSettings>,\n): AsyncIterableIterator<TElement> {\n const pages = getPageAsyncIterator(pagedResult);\n for await (const page of pages) {\n yield* page as unknown as TElement[];\n }\n}\n\nasync function* getPageAsyncIterator<TElement, TPage, TPageSettings extends PageSettings>(\n pagedResult: PagedResult<TElement, TPage, TPageSettings>,\n options: {\n pageLink?: string;\n } = {},\n): AsyncIterableIterator<ContinuablePage<TElement, TPage>> {\n const { pageLink } = options;\n let response = await pagedResult.getPage(pageLink ?? pagedResult.firstPageLink);\n if (!response) {\n return;\n }\n let result = response.page as ContinuablePage<TElement, TPage>;\n result.continuationToken = response.nextPageLink;\n yield result;\n while (response.nextPageLink) {\n response = await pagedResult.getPage(response.nextPageLink);\n if (!response) {\n return;\n }\n result = response.page as ContinuablePage<TElement, TPage>;\n result.continuationToken = response.nextPageLink;\n yield result;\n }\n}\n\n/**\n * Gets for the value of nextLink in the body\n */\nfunction getNextLink(body: unknown, nextLinkName?: string): string | undefined {\n if (!nextLinkName) {\n return undefined;\n }\n\n const nextLink = (body as Record<string, unknown>)[nextLinkName];\n\n if (typeof nextLink !== \"string\" && typeof nextLink !== \"undefined\" && nextLink !== null) {\n throw new RestError(\n `Body Property ${nextLinkName} should be a string or undefined or null but got ${typeof nextLink}`,\n );\n }\n\n if (nextLink === null) {\n return undefined;\n }\n\n return nextLink;\n}\n\n/**\n * Gets the elements of the current request in the body.\n */\nfunction getElements<T = unknown>(body: unknown, itemName: string): T[] {\n const value = (body as Record<string, unknown>)[itemName] as T[];\n if (!Array.isArray(value)) {\n throw new RestError(\n `Couldn't paginate response\\n Body doesn't contain an array property with name: ${itemName}`,\n );\n }\n\n return value ?? [];\n}\n\n/**\n * Checks if a request failed\n */\nfunction checkPagingRequest(response: PathUncheckedResponse, expectedStatuses: string[]): void {\n if (!expectedStatuses.includes(response.status)) {\n throw createRestError(\n `Pagination failed with unexpected statusCode ${response.status}`,\n response,\n );\n }\n}\n"]}