@azure/arm-iotoperations 1.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (507) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/LICENSE +21 -0
  3. package/README.md +100 -0
  4. package/dist/browser/api/broker/index.d.ts +22 -0
  5. package/dist/browser/api/broker/index.d.ts.map +1 -0
  6. package/dist/browser/api/broker/index.js +82 -0
  7. package/dist/browser/api/broker/index.js.map +1 -0
  8. package/dist/browser/api/brokerAuthentication/index.d.ts +22 -0
  9. package/dist/browser/api/brokerAuthentication/index.d.ts.map +1 -0
  10. package/dist/browser/api/brokerAuthentication/index.js +90 -0
  11. package/dist/browser/api/brokerAuthentication/index.js.map +1 -0
  12. package/dist/browser/api/brokerAuthorization/index.d.ts +22 -0
  13. package/dist/browser/api/brokerAuthorization/index.d.ts.map +1 -0
  14. package/dist/browser/api/brokerAuthorization/index.js +90 -0
  15. package/dist/browser/api/brokerAuthorization/index.js.map +1 -0
  16. package/dist/browser/api/brokerListener/index.d.ts +22 -0
  17. package/dist/browser/api/brokerListener/index.d.ts.map +1 -0
  18. package/dist/browser/api/brokerListener/index.js +86 -0
  19. package/dist/browser/api/brokerListener/index.js.map +1 -0
  20. package/dist/browser/api/dataflow/index.d.ts +22 -0
  21. package/dist/browser/api/dataflow/index.d.ts.map +1 -0
  22. package/dist/browser/api/dataflow/index.js +82 -0
  23. package/dist/browser/api/dataflow/index.js.map +1 -0
  24. package/dist/browser/api/dataflowEndpoint/index.d.ts +22 -0
  25. package/dist/browser/api/dataflowEndpoint/index.d.ts.map +1 -0
  26. package/dist/browser/api/dataflowEndpoint/index.js +90 -0
  27. package/dist/browser/api/dataflowEndpoint/index.js.map +1 -0
  28. package/dist/browser/api/dataflowProfile/index.d.ts +22 -0
  29. package/dist/browser/api/dataflowProfile/index.d.ts.map +1 -0
  30. package/dist/browser/api/dataflowProfile/index.js +86 -0
  31. package/dist/browser/api/dataflowProfile/index.js.map +1 -0
  32. package/dist/browser/api/index.d.ts +12 -0
  33. package/dist/browser/api/index.d.ts.map +1 -0
  34. package/dist/browser/api/index.js +13 -0
  35. package/dist/browser/api/index.js.map +1 -0
  36. package/dist/browser/api/instance/index.d.ts +30 -0
  37. package/dist/browser/api/instance/index.d.ts.map +1 -0
  38. package/dist/browser/api/instance/index.js +115 -0
  39. package/dist/browser/api/instance/index.js.map +1 -0
  40. package/dist/browser/api/ioTOperationsContext.d.ts +13 -0
  41. package/dist/browser/api/ioTOperationsContext.d.ts.map +1 -0
  42. package/dist/browser/api/ioTOperationsContext.js +35 -0
  43. package/dist/browser/api/ioTOperationsContext.js.map +1 -0
  44. package/dist/browser/api/operations/index.d.ts +9 -0
  45. package/dist/browser/api/operations/index.d.ts.map +1 -0
  46. package/dist/browser/api/operations/index.js +22 -0
  47. package/dist/browser/api/operations/index.js.map +1 -0
  48. package/dist/browser/api/options.d.ts +139 -0
  49. package/dist/browser/api/options.d.ts.map +1 -0
  50. package/dist/browser/api/options.js +4 -0
  51. package/dist/browser/api/options.js.map +1 -0
  52. package/dist/browser/classic/broker/index.d.ts +24 -0
  53. package/dist/browser/classic/broker/index.d.ts.map +1 -0
  54. package/dist/browser/classic/broker/index.js +15 -0
  55. package/dist/browser/classic/broker/index.js.map +1 -0
  56. package/dist/browser/classic/brokerAuthentication/index.d.ts +24 -0
  57. package/dist/browser/classic/brokerAuthentication/index.d.ts.map +1 -0
  58. package/dist/browser/classic/brokerAuthentication/index.js +15 -0
  59. package/dist/browser/classic/brokerAuthentication/index.js.map +1 -0
  60. package/dist/browser/classic/brokerAuthorization/index.d.ts +24 -0
  61. package/dist/browser/classic/brokerAuthorization/index.d.ts.map +1 -0
  62. package/dist/browser/classic/brokerAuthorization/index.js +15 -0
  63. package/dist/browser/classic/brokerAuthorization/index.js.map +1 -0
  64. package/dist/browser/classic/brokerListener/index.d.ts +24 -0
  65. package/dist/browser/classic/brokerListener/index.d.ts.map +1 -0
  66. package/dist/browser/classic/brokerListener/index.js +15 -0
  67. package/dist/browser/classic/brokerListener/index.js.map +1 -0
  68. package/dist/browser/classic/dataflow/index.d.ts +24 -0
  69. package/dist/browser/classic/dataflow/index.d.ts.map +1 -0
  70. package/dist/browser/classic/dataflow/index.js +15 -0
  71. package/dist/browser/classic/dataflow/index.js.map +1 -0
  72. package/dist/browser/classic/dataflowEndpoint/index.d.ts +24 -0
  73. package/dist/browser/classic/dataflowEndpoint/index.d.ts.map +1 -0
  74. package/dist/browser/classic/dataflowEndpoint/index.js +15 -0
  75. package/dist/browser/classic/dataflowEndpoint/index.js.map +1 -0
  76. package/dist/browser/classic/dataflowProfile/index.d.ts +24 -0
  77. package/dist/browser/classic/dataflowProfile/index.d.ts.map +1 -0
  78. package/dist/browser/classic/dataflowProfile/index.js +15 -0
  79. package/dist/browser/classic/dataflowProfile/index.js.map +1 -0
  80. package/dist/browser/classic/index.d.ts +10 -0
  81. package/dist/browser/classic/index.d.ts.map +1 -0
  82. package/dist/browser/classic/index.js +4 -0
  83. package/dist/browser/classic/index.js.map +1 -0
  84. package/dist/browser/classic/instance/index.d.ts +30 -0
  85. package/dist/browser/classic/instance/index.d.ts.map +1 -0
  86. package/dist/browser/classic/instance/index.js +17 -0
  87. package/dist/browser/classic/instance/index.js.map +1 -0
  88. package/dist/browser/classic/operations/index.d.ts +14 -0
  89. package/dist/browser/classic/operations/index.d.ts.map +1 -0
  90. package/dist/browser/classic/operations/index.js +12 -0
  91. package/dist/browser/classic/operations/index.js.map +1 -0
  92. package/dist/browser/helpers/serializerHelpers.d.ts +3 -0
  93. package/dist/browser/helpers/serializerHelpers.d.ts.map +1 -0
  94. package/dist/browser/helpers/serializerHelpers.js +24 -0
  95. package/dist/browser/helpers/serializerHelpers.js.map +1 -0
  96. package/dist/browser/index.d.ts +8 -0
  97. package/dist/browser/index.d.ts.map +1 -0
  98. package/dist/browser/index.js +6 -0
  99. package/dist/browser/index.js.map +1 -0
  100. package/dist/browser/ioTOperationsClient.d.ts +39 -0
  101. package/dist/browser/ioTOperationsClient.d.ts.map +1 -0
  102. package/dist/browser/ioTOperationsClient.js +34 -0
  103. package/dist/browser/ioTOperationsClient.js.map +1 -0
  104. package/dist/browser/logger.d.ts +2 -0
  105. package/dist/browser/logger.d.ts.map +1 -0
  106. package/dist/browser/logger.js +5 -0
  107. package/dist/browser/logger.js.map +1 -0
  108. package/dist/browser/models/index.d.ts +2 -0
  109. package/dist/browser/models/index.d.ts.map +1 -0
  110. package/dist/browser/models/index.js +4 -0
  111. package/dist/browser/models/index.js.map +1 -0
  112. package/dist/browser/models/models.d.ts +1921 -0
  113. package/dist/browser/models/models.d.ts.map +1 -0
  114. package/dist/browser/models/models.js +2343 -0
  115. package/dist/browser/models/models.js.map +1 -0
  116. package/dist/browser/package.json +3 -0
  117. package/dist/browser/restorePollerHelpers.d.ts +21 -0
  118. package/dist/browser/restorePollerHelpers.d.ts.map +1 -0
  119. package/dist/browser/restorePollerHelpers.js +160 -0
  120. package/dist/browser/restorePollerHelpers.js.map +1 -0
  121. package/dist/browser/static-helpers/pagingHelpers.d.ts +72 -0
  122. package/dist/browser/static-helpers/pagingHelpers.d.ts.map +1 -0
  123. package/dist/browser/static-helpers/pagingHelpers.js +137 -0
  124. package/dist/browser/static-helpers/pagingHelpers.js.map +1 -0
  125. package/dist/browser/static-helpers/pollingHelpers.d.ts +30 -0
  126. package/dist/browser/static-helpers/pollingHelpers.d.ts.map +1 -0
  127. package/dist/browser/static-helpers/pollingHelpers.js +76 -0
  128. package/dist/browser/static-helpers/pollingHelpers.js.map +1 -0
  129. package/dist/commonjs/api/broker/index.d.ts +22 -0
  130. package/dist/commonjs/api/broker/index.d.ts.map +1 -0
  131. package/dist/commonjs/api/broker/index.js +96 -0
  132. package/dist/commonjs/api/broker/index.js.map +1 -0
  133. package/dist/commonjs/api/brokerAuthentication/index.d.ts +22 -0
  134. package/dist/commonjs/api/brokerAuthentication/index.d.ts.map +1 -0
  135. package/dist/commonjs/api/brokerAuthentication/index.js +104 -0
  136. package/dist/commonjs/api/brokerAuthentication/index.js.map +1 -0
  137. package/dist/commonjs/api/brokerAuthorization/index.d.ts +22 -0
  138. package/dist/commonjs/api/brokerAuthorization/index.d.ts.map +1 -0
  139. package/dist/commonjs/api/brokerAuthorization/index.js +104 -0
  140. package/dist/commonjs/api/brokerAuthorization/index.js.map +1 -0
  141. package/dist/commonjs/api/brokerListener/index.d.ts +22 -0
  142. package/dist/commonjs/api/brokerListener/index.d.ts.map +1 -0
  143. package/dist/commonjs/api/brokerListener/index.js +100 -0
  144. package/dist/commonjs/api/brokerListener/index.js.map +1 -0
  145. package/dist/commonjs/api/dataflow/index.d.ts +22 -0
  146. package/dist/commonjs/api/dataflow/index.d.ts.map +1 -0
  147. package/dist/commonjs/api/dataflow/index.js +96 -0
  148. package/dist/commonjs/api/dataflow/index.js.map +1 -0
  149. package/dist/commonjs/api/dataflowEndpoint/index.d.ts +22 -0
  150. package/dist/commonjs/api/dataflowEndpoint/index.d.ts.map +1 -0
  151. package/dist/commonjs/api/dataflowEndpoint/index.js +104 -0
  152. package/dist/commonjs/api/dataflowEndpoint/index.js.map +1 -0
  153. package/dist/commonjs/api/dataflowProfile/index.d.ts +22 -0
  154. package/dist/commonjs/api/dataflowProfile/index.d.ts.map +1 -0
  155. package/dist/commonjs/api/dataflowProfile/index.js +100 -0
  156. package/dist/commonjs/api/dataflowProfile/index.js.map +1 -0
  157. package/dist/commonjs/api/index.d.ts +12 -0
  158. package/dist/commonjs/api/index.d.ts.map +1 -0
  159. package/dist/commonjs/api/index.js +52 -0
  160. package/dist/commonjs/api/index.js.map +1 -0
  161. package/dist/commonjs/api/instance/index.d.ts +30 -0
  162. package/dist/commonjs/api/instance/index.d.ts.map +1 -0
  163. package/dist/commonjs/api/instance/index.js +135 -0
  164. package/dist/commonjs/api/instance/index.js.map +1 -0
  165. package/dist/commonjs/api/ioTOperationsContext.d.ts +13 -0
  166. package/dist/commonjs/api/ioTOperationsContext.d.ts.map +1 -0
  167. package/dist/commonjs/api/ioTOperationsContext.js +38 -0
  168. package/dist/commonjs/api/ioTOperationsContext.js.map +1 -0
  169. package/dist/commonjs/api/operations/index.d.ts +9 -0
  170. package/dist/commonjs/api/operations/index.d.ts.map +1 -0
  171. package/dist/commonjs/api/operations/index.js +27 -0
  172. package/dist/commonjs/api/operations/index.js.map +1 -0
  173. package/dist/commonjs/api/options.d.ts +139 -0
  174. package/dist/commonjs/api/options.d.ts.map +1 -0
  175. package/dist/commonjs/api/options.js +5 -0
  176. package/dist/commonjs/api/options.js.map +1 -0
  177. package/dist/commonjs/classic/broker/index.d.ts +24 -0
  178. package/dist/commonjs/classic/broker/index.d.ts.map +1 -0
  179. package/dist/commonjs/classic/broker/index.js +19 -0
  180. package/dist/commonjs/classic/broker/index.js.map +1 -0
  181. package/dist/commonjs/classic/brokerAuthentication/index.d.ts +24 -0
  182. package/dist/commonjs/classic/brokerAuthentication/index.d.ts.map +1 -0
  183. package/dist/commonjs/classic/brokerAuthentication/index.js +19 -0
  184. package/dist/commonjs/classic/brokerAuthentication/index.js.map +1 -0
  185. package/dist/commonjs/classic/brokerAuthorization/index.d.ts +24 -0
  186. package/dist/commonjs/classic/brokerAuthorization/index.d.ts.map +1 -0
  187. package/dist/commonjs/classic/brokerAuthorization/index.js +19 -0
  188. package/dist/commonjs/classic/brokerAuthorization/index.js.map +1 -0
  189. package/dist/commonjs/classic/brokerListener/index.d.ts +24 -0
  190. package/dist/commonjs/classic/brokerListener/index.d.ts.map +1 -0
  191. package/dist/commonjs/classic/brokerListener/index.js +19 -0
  192. package/dist/commonjs/classic/brokerListener/index.js.map +1 -0
  193. package/dist/commonjs/classic/dataflow/index.d.ts +24 -0
  194. package/dist/commonjs/classic/dataflow/index.d.ts.map +1 -0
  195. package/dist/commonjs/classic/dataflow/index.js +19 -0
  196. package/dist/commonjs/classic/dataflow/index.js.map +1 -0
  197. package/dist/commonjs/classic/dataflowEndpoint/index.d.ts +24 -0
  198. package/dist/commonjs/classic/dataflowEndpoint/index.d.ts.map +1 -0
  199. package/dist/commonjs/classic/dataflowEndpoint/index.js +19 -0
  200. package/dist/commonjs/classic/dataflowEndpoint/index.js.map +1 -0
  201. package/dist/commonjs/classic/dataflowProfile/index.d.ts +24 -0
  202. package/dist/commonjs/classic/dataflowProfile/index.d.ts.map +1 -0
  203. package/dist/commonjs/classic/dataflowProfile/index.js +19 -0
  204. package/dist/commonjs/classic/dataflowProfile/index.js.map +1 -0
  205. package/dist/commonjs/classic/index.d.ts +10 -0
  206. package/dist/commonjs/classic/index.d.ts.map +1 -0
  207. package/dist/commonjs/classic/index.js +5 -0
  208. package/dist/commonjs/classic/index.js.map +1 -0
  209. package/dist/commonjs/classic/instance/index.d.ts +30 -0
  210. package/dist/commonjs/classic/instance/index.d.ts.map +1 -0
  211. package/dist/commonjs/classic/instance/index.js +21 -0
  212. package/dist/commonjs/classic/instance/index.js.map +1 -0
  213. package/dist/commonjs/classic/operations/index.d.ts +14 -0
  214. package/dist/commonjs/classic/operations/index.d.ts.map +1 -0
  215. package/dist/commonjs/classic/operations/index.js +16 -0
  216. package/dist/commonjs/classic/operations/index.js.map +1 -0
  217. package/dist/commonjs/helpers/serializerHelpers.d.ts +3 -0
  218. package/dist/commonjs/helpers/serializerHelpers.d.ts.map +1 -0
  219. package/dist/commonjs/helpers/serializerHelpers.js +27 -0
  220. package/dist/commonjs/helpers/serializerHelpers.js.map +1 -0
  221. package/dist/commonjs/index.d.ts +8 -0
  222. package/dist/commonjs/index.d.ts.map +1 -0
  223. package/dist/commonjs/index.js +50 -0
  224. package/dist/commonjs/index.js.map +1 -0
  225. package/dist/commonjs/ioTOperationsClient.d.ts +39 -0
  226. package/dist/commonjs/ioTOperationsClient.d.ts.map +1 -0
  227. package/dist/commonjs/ioTOperationsClient.js +38 -0
  228. package/dist/commonjs/ioTOperationsClient.js.map +1 -0
  229. package/dist/commonjs/logger.d.ts +2 -0
  230. package/dist/commonjs/logger.d.ts.map +1 -0
  231. package/dist/commonjs/logger.js +8 -0
  232. package/dist/commonjs/logger.js.map +1 -0
  233. package/dist/commonjs/models/index.d.ts +2 -0
  234. package/dist/commonjs/models/index.d.ts.map +1 -0
  235. package/dist/commonjs/models/index.js +46 -0
  236. package/dist/commonjs/models/index.js.map +1 -0
  237. package/dist/commonjs/models/models.d.ts +1921 -0
  238. package/dist/commonjs/models/models.d.ts.map +1 -0
  239. package/dist/commonjs/models/models.js +2592 -0
  240. package/dist/commonjs/models/models.js.map +1 -0
  241. package/dist/commonjs/package.json +3 -0
  242. package/dist/commonjs/restorePollerHelpers.d.ts +21 -0
  243. package/dist/commonjs/restorePollerHelpers.d.ts.map +1 -0
  244. package/dist/commonjs/restorePollerHelpers.js +163 -0
  245. package/dist/commonjs/restorePollerHelpers.js.map +1 -0
  246. package/dist/commonjs/static-helpers/pagingHelpers.d.ts +72 -0
  247. package/dist/commonjs/static-helpers/pagingHelpers.d.ts.map +1 -0
  248. package/dist/commonjs/static-helpers/pagingHelpers.js +140 -0
  249. package/dist/commonjs/static-helpers/pagingHelpers.js.map +1 -0
  250. package/dist/commonjs/static-helpers/pollingHelpers.d.ts +30 -0
  251. package/dist/commonjs/static-helpers/pollingHelpers.d.ts.map +1 -0
  252. package/dist/commonjs/static-helpers/pollingHelpers.js +79 -0
  253. package/dist/commonjs/static-helpers/pollingHelpers.js.map +1 -0
  254. package/dist/commonjs/tsdoc-metadata.json +11 -0
  255. package/dist/esm/api/broker/index.d.ts +22 -0
  256. package/dist/esm/api/broker/index.d.ts.map +1 -0
  257. package/dist/esm/api/broker/index.js +82 -0
  258. package/dist/esm/api/broker/index.js.map +1 -0
  259. package/dist/esm/api/brokerAuthentication/index.d.ts +22 -0
  260. package/dist/esm/api/brokerAuthentication/index.d.ts.map +1 -0
  261. package/dist/esm/api/brokerAuthentication/index.js +90 -0
  262. package/dist/esm/api/brokerAuthentication/index.js.map +1 -0
  263. package/dist/esm/api/brokerAuthorization/index.d.ts +22 -0
  264. package/dist/esm/api/brokerAuthorization/index.d.ts.map +1 -0
  265. package/dist/esm/api/brokerAuthorization/index.js +90 -0
  266. package/dist/esm/api/brokerAuthorization/index.js.map +1 -0
  267. package/dist/esm/api/brokerListener/index.d.ts +22 -0
  268. package/dist/esm/api/brokerListener/index.d.ts.map +1 -0
  269. package/dist/esm/api/brokerListener/index.js +86 -0
  270. package/dist/esm/api/brokerListener/index.js.map +1 -0
  271. package/dist/esm/api/dataflow/index.d.ts +22 -0
  272. package/dist/esm/api/dataflow/index.d.ts.map +1 -0
  273. package/dist/esm/api/dataflow/index.js +82 -0
  274. package/dist/esm/api/dataflow/index.js.map +1 -0
  275. package/dist/esm/api/dataflowEndpoint/index.d.ts +22 -0
  276. package/dist/esm/api/dataflowEndpoint/index.d.ts.map +1 -0
  277. package/dist/esm/api/dataflowEndpoint/index.js +90 -0
  278. package/dist/esm/api/dataflowEndpoint/index.js.map +1 -0
  279. package/dist/esm/api/dataflowProfile/index.d.ts +22 -0
  280. package/dist/esm/api/dataflowProfile/index.d.ts.map +1 -0
  281. package/dist/esm/api/dataflowProfile/index.js +86 -0
  282. package/dist/esm/api/dataflowProfile/index.js.map +1 -0
  283. package/dist/esm/api/index.d.ts +12 -0
  284. package/dist/esm/api/index.d.ts.map +1 -0
  285. package/dist/esm/api/index.js +13 -0
  286. package/dist/esm/api/index.js.map +1 -0
  287. package/dist/esm/api/instance/index.d.ts +30 -0
  288. package/dist/esm/api/instance/index.d.ts.map +1 -0
  289. package/dist/esm/api/instance/index.js +115 -0
  290. package/dist/esm/api/instance/index.js.map +1 -0
  291. package/dist/esm/api/ioTOperationsContext.d.ts +13 -0
  292. package/dist/esm/api/ioTOperationsContext.d.ts.map +1 -0
  293. package/dist/esm/api/ioTOperationsContext.js +35 -0
  294. package/dist/esm/api/ioTOperationsContext.js.map +1 -0
  295. package/dist/esm/api/operations/index.d.ts +9 -0
  296. package/dist/esm/api/operations/index.d.ts.map +1 -0
  297. package/dist/esm/api/operations/index.js +22 -0
  298. package/dist/esm/api/operations/index.js.map +1 -0
  299. package/dist/esm/api/options.d.ts +139 -0
  300. package/dist/esm/api/options.d.ts.map +1 -0
  301. package/dist/esm/api/options.js +4 -0
  302. package/dist/esm/api/options.js.map +1 -0
  303. package/dist/esm/classic/broker/index.d.ts +24 -0
  304. package/dist/esm/classic/broker/index.d.ts.map +1 -0
  305. package/dist/esm/classic/broker/index.js +15 -0
  306. package/dist/esm/classic/broker/index.js.map +1 -0
  307. package/dist/esm/classic/brokerAuthentication/index.d.ts +24 -0
  308. package/dist/esm/classic/brokerAuthentication/index.d.ts.map +1 -0
  309. package/dist/esm/classic/brokerAuthentication/index.js +15 -0
  310. package/dist/esm/classic/brokerAuthentication/index.js.map +1 -0
  311. package/dist/esm/classic/brokerAuthorization/index.d.ts +24 -0
  312. package/dist/esm/classic/brokerAuthorization/index.d.ts.map +1 -0
  313. package/dist/esm/classic/brokerAuthorization/index.js +15 -0
  314. package/dist/esm/classic/brokerAuthorization/index.js.map +1 -0
  315. package/dist/esm/classic/brokerListener/index.d.ts +24 -0
  316. package/dist/esm/classic/brokerListener/index.d.ts.map +1 -0
  317. package/dist/esm/classic/brokerListener/index.js +15 -0
  318. package/dist/esm/classic/brokerListener/index.js.map +1 -0
  319. package/dist/esm/classic/dataflow/index.d.ts +24 -0
  320. package/dist/esm/classic/dataflow/index.d.ts.map +1 -0
  321. package/dist/esm/classic/dataflow/index.js +15 -0
  322. package/dist/esm/classic/dataflow/index.js.map +1 -0
  323. package/dist/esm/classic/dataflowEndpoint/index.d.ts +24 -0
  324. package/dist/esm/classic/dataflowEndpoint/index.d.ts.map +1 -0
  325. package/dist/esm/classic/dataflowEndpoint/index.js +15 -0
  326. package/dist/esm/classic/dataflowEndpoint/index.js.map +1 -0
  327. package/dist/esm/classic/dataflowProfile/index.d.ts +24 -0
  328. package/dist/esm/classic/dataflowProfile/index.d.ts.map +1 -0
  329. package/dist/esm/classic/dataflowProfile/index.js +15 -0
  330. package/dist/esm/classic/dataflowProfile/index.js.map +1 -0
  331. package/dist/esm/classic/index.d.ts +10 -0
  332. package/dist/esm/classic/index.d.ts.map +1 -0
  333. package/dist/esm/classic/index.js +4 -0
  334. package/dist/esm/classic/index.js.map +1 -0
  335. package/dist/esm/classic/instance/index.d.ts +30 -0
  336. package/dist/esm/classic/instance/index.d.ts.map +1 -0
  337. package/dist/esm/classic/instance/index.js +17 -0
  338. package/dist/esm/classic/instance/index.js.map +1 -0
  339. package/dist/esm/classic/operations/index.d.ts +14 -0
  340. package/dist/esm/classic/operations/index.d.ts.map +1 -0
  341. package/dist/esm/classic/operations/index.js +12 -0
  342. package/dist/esm/classic/operations/index.js.map +1 -0
  343. package/dist/esm/helpers/serializerHelpers.d.ts +3 -0
  344. package/dist/esm/helpers/serializerHelpers.d.ts.map +1 -0
  345. package/dist/esm/helpers/serializerHelpers.js +24 -0
  346. package/dist/esm/helpers/serializerHelpers.js.map +1 -0
  347. package/dist/esm/index.d.ts +8 -0
  348. package/dist/esm/index.d.ts.map +1 -0
  349. package/dist/esm/index.js +6 -0
  350. package/dist/esm/index.js.map +1 -0
  351. package/dist/esm/ioTOperationsClient.d.ts +39 -0
  352. package/dist/esm/ioTOperationsClient.d.ts.map +1 -0
  353. package/dist/esm/ioTOperationsClient.js +34 -0
  354. package/dist/esm/ioTOperationsClient.js.map +1 -0
  355. package/dist/esm/logger.d.ts +2 -0
  356. package/dist/esm/logger.d.ts.map +1 -0
  357. package/dist/esm/logger.js +5 -0
  358. package/dist/esm/logger.js.map +1 -0
  359. package/dist/esm/models/index.d.ts +2 -0
  360. package/dist/esm/models/index.d.ts.map +1 -0
  361. package/dist/esm/models/index.js +4 -0
  362. package/dist/esm/models/index.js.map +1 -0
  363. package/dist/esm/models/models.d.ts +1921 -0
  364. package/dist/esm/models/models.d.ts.map +1 -0
  365. package/dist/esm/models/models.js +2343 -0
  366. package/dist/esm/models/models.js.map +1 -0
  367. package/dist/esm/package.json +3 -0
  368. package/dist/esm/restorePollerHelpers.d.ts +21 -0
  369. package/dist/esm/restorePollerHelpers.d.ts.map +1 -0
  370. package/dist/esm/restorePollerHelpers.js +160 -0
  371. package/dist/esm/restorePollerHelpers.js.map +1 -0
  372. package/dist/esm/static-helpers/pagingHelpers.d.ts +72 -0
  373. package/dist/esm/static-helpers/pagingHelpers.d.ts.map +1 -0
  374. package/dist/esm/static-helpers/pagingHelpers.js +137 -0
  375. package/dist/esm/static-helpers/pagingHelpers.js.map +1 -0
  376. package/dist/esm/static-helpers/pollingHelpers.d.ts +30 -0
  377. package/dist/esm/static-helpers/pollingHelpers.d.ts.map +1 -0
  378. package/dist/esm/static-helpers/pollingHelpers.js +76 -0
  379. package/dist/esm/static-helpers/pollingHelpers.js.map +1 -0
  380. package/dist/react-native/api/broker/index.d.ts +22 -0
  381. package/dist/react-native/api/broker/index.d.ts.map +1 -0
  382. package/dist/react-native/api/broker/index.js +82 -0
  383. package/dist/react-native/api/broker/index.js.map +1 -0
  384. package/dist/react-native/api/brokerAuthentication/index.d.ts +22 -0
  385. package/dist/react-native/api/brokerAuthentication/index.d.ts.map +1 -0
  386. package/dist/react-native/api/brokerAuthentication/index.js +90 -0
  387. package/dist/react-native/api/brokerAuthentication/index.js.map +1 -0
  388. package/dist/react-native/api/brokerAuthorization/index.d.ts +22 -0
  389. package/dist/react-native/api/brokerAuthorization/index.d.ts.map +1 -0
  390. package/dist/react-native/api/brokerAuthorization/index.js +90 -0
  391. package/dist/react-native/api/brokerAuthorization/index.js.map +1 -0
  392. package/dist/react-native/api/brokerListener/index.d.ts +22 -0
  393. package/dist/react-native/api/brokerListener/index.d.ts.map +1 -0
  394. package/dist/react-native/api/brokerListener/index.js +86 -0
  395. package/dist/react-native/api/brokerListener/index.js.map +1 -0
  396. package/dist/react-native/api/dataflow/index.d.ts +22 -0
  397. package/dist/react-native/api/dataflow/index.d.ts.map +1 -0
  398. package/dist/react-native/api/dataflow/index.js +82 -0
  399. package/dist/react-native/api/dataflow/index.js.map +1 -0
  400. package/dist/react-native/api/dataflowEndpoint/index.d.ts +22 -0
  401. package/dist/react-native/api/dataflowEndpoint/index.d.ts.map +1 -0
  402. package/dist/react-native/api/dataflowEndpoint/index.js +90 -0
  403. package/dist/react-native/api/dataflowEndpoint/index.js.map +1 -0
  404. package/dist/react-native/api/dataflowProfile/index.d.ts +22 -0
  405. package/dist/react-native/api/dataflowProfile/index.d.ts.map +1 -0
  406. package/dist/react-native/api/dataflowProfile/index.js +86 -0
  407. package/dist/react-native/api/dataflowProfile/index.js.map +1 -0
  408. package/dist/react-native/api/index.d.ts +12 -0
  409. package/dist/react-native/api/index.d.ts.map +1 -0
  410. package/dist/react-native/api/index.js +13 -0
  411. package/dist/react-native/api/index.js.map +1 -0
  412. package/dist/react-native/api/instance/index.d.ts +30 -0
  413. package/dist/react-native/api/instance/index.d.ts.map +1 -0
  414. package/dist/react-native/api/instance/index.js +115 -0
  415. package/dist/react-native/api/instance/index.js.map +1 -0
  416. package/dist/react-native/api/ioTOperationsContext.d.ts +13 -0
  417. package/dist/react-native/api/ioTOperationsContext.d.ts.map +1 -0
  418. package/dist/react-native/api/ioTOperationsContext.js +35 -0
  419. package/dist/react-native/api/ioTOperationsContext.js.map +1 -0
  420. package/dist/react-native/api/operations/index.d.ts +9 -0
  421. package/dist/react-native/api/operations/index.d.ts.map +1 -0
  422. package/dist/react-native/api/operations/index.js +22 -0
  423. package/dist/react-native/api/operations/index.js.map +1 -0
  424. package/dist/react-native/api/options.d.ts +139 -0
  425. package/dist/react-native/api/options.d.ts.map +1 -0
  426. package/dist/react-native/api/options.js +4 -0
  427. package/dist/react-native/api/options.js.map +1 -0
  428. package/dist/react-native/classic/broker/index.d.ts +24 -0
  429. package/dist/react-native/classic/broker/index.d.ts.map +1 -0
  430. package/dist/react-native/classic/broker/index.js +15 -0
  431. package/dist/react-native/classic/broker/index.js.map +1 -0
  432. package/dist/react-native/classic/brokerAuthentication/index.d.ts +24 -0
  433. package/dist/react-native/classic/brokerAuthentication/index.d.ts.map +1 -0
  434. package/dist/react-native/classic/brokerAuthentication/index.js +15 -0
  435. package/dist/react-native/classic/brokerAuthentication/index.js.map +1 -0
  436. package/dist/react-native/classic/brokerAuthorization/index.d.ts +24 -0
  437. package/dist/react-native/classic/brokerAuthorization/index.d.ts.map +1 -0
  438. package/dist/react-native/classic/brokerAuthorization/index.js +15 -0
  439. package/dist/react-native/classic/brokerAuthorization/index.js.map +1 -0
  440. package/dist/react-native/classic/brokerListener/index.d.ts +24 -0
  441. package/dist/react-native/classic/brokerListener/index.d.ts.map +1 -0
  442. package/dist/react-native/classic/brokerListener/index.js +15 -0
  443. package/dist/react-native/classic/brokerListener/index.js.map +1 -0
  444. package/dist/react-native/classic/dataflow/index.d.ts +24 -0
  445. package/dist/react-native/classic/dataflow/index.d.ts.map +1 -0
  446. package/dist/react-native/classic/dataflow/index.js +15 -0
  447. package/dist/react-native/classic/dataflow/index.js.map +1 -0
  448. package/dist/react-native/classic/dataflowEndpoint/index.d.ts +24 -0
  449. package/dist/react-native/classic/dataflowEndpoint/index.d.ts.map +1 -0
  450. package/dist/react-native/classic/dataflowEndpoint/index.js +15 -0
  451. package/dist/react-native/classic/dataflowEndpoint/index.js.map +1 -0
  452. package/dist/react-native/classic/dataflowProfile/index.d.ts +24 -0
  453. package/dist/react-native/classic/dataflowProfile/index.d.ts.map +1 -0
  454. package/dist/react-native/classic/dataflowProfile/index.js +15 -0
  455. package/dist/react-native/classic/dataflowProfile/index.js.map +1 -0
  456. package/dist/react-native/classic/index.d.ts +10 -0
  457. package/dist/react-native/classic/index.d.ts.map +1 -0
  458. package/dist/react-native/classic/index.js +4 -0
  459. package/dist/react-native/classic/index.js.map +1 -0
  460. package/dist/react-native/classic/instance/index.d.ts +30 -0
  461. package/dist/react-native/classic/instance/index.d.ts.map +1 -0
  462. package/dist/react-native/classic/instance/index.js +17 -0
  463. package/dist/react-native/classic/instance/index.js.map +1 -0
  464. package/dist/react-native/classic/operations/index.d.ts +14 -0
  465. package/dist/react-native/classic/operations/index.d.ts.map +1 -0
  466. package/dist/react-native/classic/operations/index.js +12 -0
  467. package/dist/react-native/classic/operations/index.js.map +1 -0
  468. package/dist/react-native/helpers/serializerHelpers.d.ts +3 -0
  469. package/dist/react-native/helpers/serializerHelpers.d.ts.map +1 -0
  470. package/dist/react-native/helpers/serializerHelpers.js +24 -0
  471. package/dist/react-native/helpers/serializerHelpers.js.map +1 -0
  472. package/dist/react-native/index.d.ts +8 -0
  473. package/dist/react-native/index.d.ts.map +1 -0
  474. package/dist/react-native/index.js +6 -0
  475. package/dist/react-native/index.js.map +1 -0
  476. package/dist/react-native/ioTOperationsClient.d.ts +39 -0
  477. package/dist/react-native/ioTOperationsClient.d.ts.map +1 -0
  478. package/dist/react-native/ioTOperationsClient.js +34 -0
  479. package/dist/react-native/ioTOperationsClient.js.map +1 -0
  480. package/dist/react-native/logger.d.ts +2 -0
  481. package/dist/react-native/logger.d.ts.map +1 -0
  482. package/dist/react-native/logger.js +5 -0
  483. package/dist/react-native/logger.js.map +1 -0
  484. package/dist/react-native/models/index.d.ts +2 -0
  485. package/dist/react-native/models/index.d.ts.map +1 -0
  486. package/dist/react-native/models/index.js +4 -0
  487. package/dist/react-native/models/index.js.map +1 -0
  488. package/dist/react-native/models/models.d.ts +1921 -0
  489. package/dist/react-native/models/models.d.ts.map +1 -0
  490. package/dist/react-native/models/models.js +2343 -0
  491. package/dist/react-native/models/models.js.map +1 -0
  492. package/dist/react-native/package.json +3 -0
  493. package/dist/react-native/restorePollerHelpers.d.ts +21 -0
  494. package/dist/react-native/restorePollerHelpers.d.ts.map +1 -0
  495. package/dist/react-native/restorePollerHelpers.js +160 -0
  496. package/dist/react-native/restorePollerHelpers.js.map +1 -0
  497. package/dist/react-native/static-helpers/pagingHelpers.d.ts +72 -0
  498. package/dist/react-native/static-helpers/pagingHelpers.d.ts.map +1 -0
  499. package/dist/react-native/static-helpers/pagingHelpers.js +137 -0
  500. package/dist/react-native/static-helpers/pagingHelpers.js.map +1 -0
  501. package/dist/react-native/static-helpers/pollingHelpers.d.ts +30 -0
  502. package/dist/react-native/static-helpers/pollingHelpers.d.ts.map +1 -0
  503. package/dist/react-native/static-helpers/pollingHelpers.js +76 -0
  504. package/dist/react-native/static-helpers/pollingHelpers.js.map +1 -0
  505. package/package.json +159 -0
  506. package/review/arm-iotoperations-models.api.md +1086 -0
  507. package/review/arm-iotoperations.api.md +1369 -0
@@ -0,0 +1,100 @@
1
+ "use strict";
2
+ // Copyright (c) Microsoft Corporation.
3
+ // Licensed under the MIT License.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports._brokerListenerGetSend = _brokerListenerGetSend;
6
+ exports._brokerListenerGetDeserialize = _brokerListenerGetDeserialize;
7
+ exports.brokerListenerGet = brokerListenerGet;
8
+ exports._brokerListenerCreateOrUpdateSend = _brokerListenerCreateOrUpdateSend;
9
+ exports._brokerListenerCreateOrUpdateDeserialize = _brokerListenerCreateOrUpdateDeserialize;
10
+ exports.brokerListenerCreateOrUpdate = brokerListenerCreateOrUpdate;
11
+ exports._brokerListenerDeleteSend = _brokerListenerDeleteSend;
12
+ exports._brokerListenerDeleteDeserialize = _brokerListenerDeleteDeserialize;
13
+ exports.brokerListenerDelete = brokerListenerDelete;
14
+ exports._brokerListenerListByResourceGroupSend = _brokerListenerListByResourceGroupSend;
15
+ exports._brokerListenerListByResourceGroupDeserialize = _brokerListenerListByResourceGroupDeserialize;
16
+ exports.brokerListenerListByResourceGroup = brokerListenerListByResourceGroup;
17
+ const models_js_1 = require("../../models/models.js");
18
+ const pollingHelpers_js_1 = require("../../static-helpers/pollingHelpers.js");
19
+ const pagingHelpers_js_1 = require("../../static-helpers/pagingHelpers.js");
20
+ const core_client_1 = require("@azure-rest/core-client");
21
+ function _brokerListenerGetSend(context, subscriptionId, resourceGroupName, instanceName, brokerName, listenerName, options = { requestOptions: {} }) {
22
+ return context
23
+ .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/brokers/{brokerName}/listeners/{listenerName}", subscriptionId, resourceGroupName, instanceName, brokerName, listenerName)
24
+ .get(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)));
25
+ }
26
+ async function _brokerListenerGetDeserialize(result) {
27
+ const expectedStatuses = ["200"];
28
+ if (!expectedStatuses.includes(result.status)) {
29
+ throw (0, core_client_1.createRestError)(result);
30
+ }
31
+ return (0, models_js_1.brokerListenerResourceDeserializer)(result.body);
32
+ }
33
+ /** Get a BrokerListenerResource */
34
+ async function brokerListenerGet(context, subscriptionId, resourceGroupName, instanceName, brokerName, listenerName, options = { requestOptions: {} }) {
35
+ const result = await _brokerListenerGetSend(context, subscriptionId, resourceGroupName, instanceName, brokerName, listenerName, options);
36
+ return _brokerListenerGetDeserialize(result);
37
+ }
38
+ function _brokerListenerCreateOrUpdateSend(context, subscriptionId, resourceGroupName, instanceName, brokerName, listenerName, resource, options = { requestOptions: {} }) {
39
+ return context
40
+ .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/brokers/{brokerName}/listeners/{listenerName}", subscriptionId, resourceGroupName, instanceName, brokerName, listenerName)
41
+ .put(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { body: (0, models_js_1.brokerListenerResourceSerializer)(resource) }));
42
+ }
43
+ async function _brokerListenerCreateOrUpdateDeserialize(result) {
44
+ const expectedStatuses = ["200", "201"];
45
+ if (!expectedStatuses.includes(result.status)) {
46
+ throw (0, core_client_1.createRestError)(result);
47
+ }
48
+ return (0, models_js_1.brokerListenerResourceDeserializer)(result.body);
49
+ }
50
+ /** Create a BrokerListenerResource */
51
+ function brokerListenerCreateOrUpdate(context, subscriptionId, resourceGroupName, instanceName, brokerName, listenerName, resource, options = { requestOptions: {} }) {
52
+ return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _brokerListenerCreateOrUpdateDeserialize, ["200", "201"], {
53
+ updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
54
+ abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
55
+ getInitialResponse: () => _brokerListenerCreateOrUpdateSend(context, subscriptionId, resourceGroupName, instanceName, brokerName, listenerName, resource, options),
56
+ resourceLocationConfig: "azure-async-operation",
57
+ });
58
+ }
59
+ function _brokerListenerDeleteSend(context, subscriptionId, resourceGroupName, instanceName, brokerName, listenerName, options = { requestOptions: {} }) {
60
+ return context
61
+ .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/brokers/{brokerName}/listeners/{listenerName}", subscriptionId, resourceGroupName, instanceName, brokerName, listenerName)
62
+ .delete(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)));
63
+ }
64
+ async function _brokerListenerDeleteDeserialize(result) {
65
+ const expectedStatuses = ["202", "204", "200"];
66
+ if (!expectedStatuses.includes(result.status)) {
67
+ throw (0, core_client_1.createRestError)(result);
68
+ }
69
+ return;
70
+ }
71
+ /** Delete a BrokerListenerResource */
72
+ function brokerListenerDelete(context, subscriptionId, resourceGroupName, instanceName, brokerName, listenerName, options = { requestOptions: {} }) {
73
+ return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _brokerListenerDeleteDeserialize, ["202", "204", "200"], {
74
+ updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
75
+ abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
76
+ getInitialResponse: () => _brokerListenerDeleteSend(context, subscriptionId, resourceGroupName, instanceName, brokerName, listenerName, options),
77
+ resourceLocationConfig: "location",
78
+ });
79
+ }
80
+ function _brokerListenerListByResourceGroupSend(context, subscriptionId, resourceGroupName, instanceName, brokerName, options = {
81
+ requestOptions: {},
82
+ }) {
83
+ return context
84
+ .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/brokers/{brokerName}/listeners", subscriptionId, resourceGroupName, instanceName, brokerName)
85
+ .get(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)));
86
+ }
87
+ async function _brokerListenerListByResourceGroupDeserialize(result) {
88
+ const expectedStatuses = ["200"];
89
+ if (!expectedStatuses.includes(result.status)) {
90
+ throw (0, core_client_1.createRestError)(result);
91
+ }
92
+ return (0, models_js_1._brokerListenerResourceListResultDeserializer)(result.body);
93
+ }
94
+ /** List BrokerListenerResource resources by BrokerResource */
95
+ function brokerListenerListByResourceGroup(context, subscriptionId, resourceGroupName, instanceName, brokerName, options = {
96
+ requestOptions: {},
97
+ }) {
98
+ return (0, pagingHelpers_js_1.buildPagedAsyncIterator)(context, () => _brokerListenerListByResourceGroupSend(context, subscriptionId, resourceGroupName, instanceName, brokerName, options), _brokerListenerListByResourceGroupDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
99
+ }
100
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/brokerListener/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AA6BlC,wDAmBC;AAED,sEASC;AAGD,8CAmBC;AAED,8EAuBC;AAED,4FASC;AAGD,oEA0BC;AAED,8DAmBC;AAED,4EASC;AAGD,oDAwBC;AAED,wFAmBC;AAED,sGASC;AAGD,8EAyBC;AAhQD,sDAMgC;AAChC,8EAA8E;AAC9E,4EAG+C;AAC/C,yDAKiC;AAGjC,SAAgB,sBAAsB,CACpC,OAAe,EACf,cAAsB,EACtB,iBAAyB,EACzB,YAAoB,EACpB,UAAkB,EAClB,YAAoB,EACpB,UAA2C,EAAE,cAAc,EAAE,EAAE,EAAE;IAEjE,OAAO,OAAO;SACX,IAAI,CACH,6KAA6K,EAC7K,cAAc,EACd,iBAAiB,EACjB,YAAY,EACZ,UAAU,EACV,YAAY,CACb;SACA,GAAG,mBAAM,IAAA,iDAAmC,EAAC,OAAO,CAAC,EAAG,CAAC;AAC9D,CAAC;AAEM,KAAK,UAAU,6BAA6B,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IAAA,yDAA6C,EAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACpE,CAAC;AAED,8DAA8D;AAC9D,SAAgB,iCAAiC,CAC/C,OAAe,EACf,cAAsB,EACtB,iBAAyB,EACzB,YAAoB,EACpB,UAAkB,EAClB,UAA2D;IACzD,cAAc,EAAE,EAAE;CACnB;IAED,OAAO,IAAA,0CAAuB,EAC5B,OAAO,EACP,GAAG,EAAE,CACH,sCAAsC,CACpC,OAAO,EACP,cAAc,EACd,iBAAiB,EACjB,YAAY,EACZ,UAAU,EACV,OAAO,CACR,EACH,6CAA6C,EAC7C,CAAC,KAAK,CAAC,EACP,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,CAChD,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport {\n BrokerListenerCreateOrUpdateOptionalParams,\n BrokerListenerDeleteOptionalParams,\n BrokerListenerGetOptionalParams,\n BrokerListenerListByResourceGroupOptionalParams,\n IoTOperationsContext as Client,\n} from \"../index.js\";\nimport {\n BrokerListenerResource,\n brokerListenerResourceSerializer,\n brokerListenerResourceDeserializer,\n _BrokerListenerResourceListResult,\n _brokerListenerResourceListResultDeserializer,\n} from \"../../models/models.js\";\nimport { getLongRunningPoller } from \"../../static-helpers/pollingHelpers.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\nimport { PollerLike, OperationState } from \"@azure/core-lro\";\n\nexport function _brokerListenerGetSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n instanceName: string,\n brokerName: string,\n listenerName: string,\n options: BrokerListenerGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/brokers/{brokerName}/listeners/{listenerName}\",\n subscriptionId,\n resourceGroupName,\n instanceName,\n brokerName,\n listenerName,\n )\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _brokerListenerGetDeserialize(\n result: PathUncheckedResponse,\n): Promise<BrokerListenerResource> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return brokerListenerResourceDeserializer(result.body);\n}\n\n/** Get a BrokerListenerResource */\nexport async function brokerListenerGet(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n instanceName: string,\n brokerName: string,\n listenerName: string,\n options: BrokerListenerGetOptionalParams = { requestOptions: {} },\n): Promise<BrokerListenerResource> {\n const result = await _brokerListenerGetSend(\n context,\n subscriptionId,\n resourceGroupName,\n instanceName,\n brokerName,\n listenerName,\n options,\n );\n return _brokerListenerGetDeserialize(result);\n}\n\nexport function _brokerListenerCreateOrUpdateSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n instanceName: string,\n brokerName: string,\n listenerName: string,\n resource: BrokerListenerResource,\n options: BrokerListenerCreateOrUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/brokers/{brokerName}/listeners/{listenerName}\",\n subscriptionId,\n resourceGroupName,\n instanceName,\n brokerName,\n listenerName,\n )\n .put({\n ...operationOptionsToRequestParameters(options),\n body: brokerListenerResourceSerializer(resource),\n });\n}\n\nexport async function _brokerListenerCreateOrUpdateDeserialize(\n result: PathUncheckedResponse,\n): Promise<BrokerListenerResource> {\n const expectedStatuses = [\"200\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return brokerListenerResourceDeserializer(result.body);\n}\n\n/** Create a BrokerListenerResource */\nexport function brokerListenerCreateOrUpdate(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n instanceName: string,\n brokerName: string,\n listenerName: string,\n resource: BrokerListenerResource,\n options: BrokerListenerCreateOrUpdateOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<BrokerListenerResource>, BrokerListenerResource> {\n return getLongRunningPoller(context, _brokerListenerCreateOrUpdateDeserialize, [\"200\", \"201\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _brokerListenerCreateOrUpdateSend(\n context,\n subscriptionId,\n resourceGroupName,\n instanceName,\n brokerName,\n listenerName,\n resource,\n options,\n ),\n resourceLocationConfig: \"azure-async-operation\",\n }) as PollerLike<OperationState<BrokerListenerResource>, BrokerListenerResource>;\n}\n\nexport function _brokerListenerDeleteSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n instanceName: string,\n brokerName: string,\n listenerName: string,\n options: BrokerListenerDeleteOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/brokers/{brokerName}/listeners/{listenerName}\",\n subscriptionId,\n resourceGroupName,\n instanceName,\n brokerName,\n listenerName,\n )\n .delete({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _brokerListenerDeleteDeserialize(\n result: PathUncheckedResponse,\n): Promise<void> {\n const expectedStatuses = [\"202\", \"204\", \"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return;\n}\n\n/** Delete a BrokerListenerResource */\nexport function brokerListenerDelete(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n instanceName: string,\n brokerName: string,\n listenerName: string,\n options: BrokerListenerDeleteOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<void>, void> {\n return getLongRunningPoller(context, _brokerListenerDeleteDeserialize, [\"202\", \"204\", \"200\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _brokerListenerDeleteSend(\n context,\n subscriptionId,\n resourceGroupName,\n instanceName,\n brokerName,\n listenerName,\n options,\n ),\n resourceLocationConfig: \"location\",\n }) as PollerLike<OperationState<void>, void>;\n}\n\nexport function _brokerListenerListByResourceGroupSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n instanceName: string,\n brokerName: string,\n options: BrokerListenerListByResourceGroupOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/brokers/{brokerName}/listeners\",\n subscriptionId,\n resourceGroupName,\n instanceName,\n brokerName,\n )\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _brokerListenerListByResourceGroupDeserialize(\n result: PathUncheckedResponse,\n): Promise<_BrokerListenerResourceListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return _brokerListenerResourceListResultDeserializer(result.body);\n}\n\n/** List BrokerListenerResource resources by BrokerResource */\nexport function brokerListenerListByResourceGroup(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n instanceName: string,\n brokerName: string,\n options: BrokerListenerListByResourceGroupOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<BrokerListenerResource> {\n return buildPagedAsyncIterator(\n context,\n () =>\n _brokerListenerListByResourceGroupSend(\n context,\n subscriptionId,\n resourceGroupName,\n instanceName,\n brokerName,\n options,\n ),\n _brokerListenerListByResourceGroupDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n"]}
@@ -0,0 +1,22 @@
1
+ import { IoTOperationsContext as Client, DataflowCreateOrUpdateOptionalParams, DataflowDeleteOptionalParams, DataflowGetOptionalParams, DataflowListByResourceGroupOptionalParams } from "../index.js";
2
+ import { DataflowResource, _DataflowResourceListResult } from "../../models/models.js";
3
+ import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
4
+ import { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
5
+ import { PollerLike, OperationState } from "@azure/core-lro";
6
+ export declare function _dataflowGetSend(context: Client, subscriptionId: string, resourceGroupName: string, instanceName: string, dataflowProfileName: string, dataflowName: string, options?: DataflowGetOptionalParams): StreamableMethod;
7
+ export declare function _dataflowGetDeserialize(result: PathUncheckedResponse): Promise<DataflowResource>;
8
+ /** Get a DataflowResource */
9
+ export declare function dataflowGet(context: Client, subscriptionId: string, resourceGroupName: string, instanceName: string, dataflowProfileName: string, dataflowName: string, options?: DataflowGetOptionalParams): Promise<DataflowResource>;
10
+ export declare function _dataflowCreateOrUpdateSend(context: Client, subscriptionId: string, resourceGroupName: string, instanceName: string, dataflowProfileName: string, dataflowName: string, resource: DataflowResource, options?: DataflowCreateOrUpdateOptionalParams): StreamableMethod;
11
+ export declare function _dataflowCreateOrUpdateDeserialize(result: PathUncheckedResponse): Promise<DataflowResource>;
12
+ /** Create a DataflowResource */
13
+ export declare function dataflowCreateOrUpdate(context: Client, subscriptionId: string, resourceGroupName: string, instanceName: string, dataflowProfileName: string, dataflowName: string, resource: DataflowResource, options?: DataflowCreateOrUpdateOptionalParams): PollerLike<OperationState<DataflowResource>, DataflowResource>;
14
+ export declare function _dataflowDeleteSend(context: Client, subscriptionId: string, resourceGroupName: string, instanceName: string, dataflowProfileName: string, dataflowName: string, options?: DataflowDeleteOptionalParams): StreamableMethod;
15
+ export declare function _dataflowDeleteDeserialize(result: PathUncheckedResponse): Promise<void>;
16
+ /** Delete a DataflowResource */
17
+ export declare function dataflowDelete(context: Client, subscriptionId: string, resourceGroupName: string, instanceName: string, dataflowProfileName: string, dataflowName: string, options?: DataflowDeleteOptionalParams): PollerLike<OperationState<void>, void>;
18
+ export declare function _dataflowListByResourceGroupSend(context: Client, subscriptionId: string, resourceGroupName: string, instanceName: string, dataflowProfileName: string, options?: DataflowListByResourceGroupOptionalParams): StreamableMethod;
19
+ export declare function _dataflowListByResourceGroupDeserialize(result: PathUncheckedResponse): Promise<_DataflowResourceListResult>;
20
+ /** List DataflowResource resources by DataflowProfileResource */
21
+ export declare function dataflowListByResourceGroup(context: Client, subscriptionId: string, resourceGroupName: string, instanceName: string, dataflowProfileName: string, options?: DataflowListByResourceGroupOptionalParams): PagedAsyncIterableIterator<DataflowResource>;
22
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/dataflow/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,oBAAoB,IAAI,MAAM,EAC9B,oCAAoC,EACpC,4BAA4B,EAC5B,yBAAyB,EACzB,yCAAyC,EAC1C,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,gBAAgB,EAGhB,2BAA2B,EAE5B,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EACL,0BAA0B,EAE3B,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,gBAAgB,EAChB,qBAAqB,EAGtB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAE7D,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,mBAAmB,EAAE,MAAM,EAC3B,YAAY,EAAE,MAAM,EACpB,OAAO,GAAE,yBAAkD,GAC1D,gBAAgB,CAWlB;AAED,wBAAsB,uBAAuB,CAC3C,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,gBAAgB,CAAC,CAO3B;AAED,6BAA6B;AAC7B,wBAAsB,WAAW,CAC/B,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,mBAAmB,EAAE,MAAM,EAC3B,YAAY,E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AE,4BAAqD,GAC7D,UAAU,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAgBxC;AAED,wBAAgB,gCAAgC,CAC9C,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,mBAAmB,EAAE,MAAM,EAC3B,OAAO,GAAE,yCAAkE,GAC1E,gBAAgB,CAUlB;AAED,wBAAsB,uCAAuC,CAC3D,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,2BAA2B,CAAC,CAOtC;AAED,iEAAiE;AACjE,wBAAgB,2BAA2B,CACzC,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,mBAAmB,EAAE,MAAM,EAC3B,OAAO,GAAE,yCAAkE,GAC1E,0BAA0B,CAAC,gBAAgB,CAAC,CAgB9C"}
@@ -0,0 +1,96 @@
1
+ "use strict";
2
+ // Copyright (c) Microsoft Corporation.
3
+ // Licensed under the MIT License.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports._dataflowGetSend = _dataflowGetSend;
6
+ exports._dataflowGetDeserialize = _dataflowGetDeserialize;
7
+ exports.dataflowGet = dataflowGet;
8
+ exports._dataflowCreateOrUpdateSend = _dataflowCreateOrUpdateSend;
9
+ exports._dataflowCreateOrUpdateDeserialize = _dataflowCreateOrUpdateDeserialize;
10
+ exports.dataflowCreateOrUpdate = dataflowCreateOrUpdate;
11
+ exports._dataflowDeleteSend = _dataflowDeleteSend;
12
+ exports._dataflowDeleteDeserialize = _dataflowDeleteDeserialize;
13
+ exports.dataflowDelete = dataflowDelete;
14
+ exports._dataflowListByResourceGroupSend = _dataflowListByResourceGroupSend;
15
+ exports._dataflowListByResourceGroupDeserialize = _dataflowListByResourceGroupDeserialize;
16
+ exports.dataflowListByResourceGroup = dataflowListByResourceGroup;
17
+ const models_js_1 = require("../../models/models.js");
18
+ const pollingHelpers_js_1 = require("../../static-helpers/pollingHelpers.js");
19
+ const pagingHelpers_js_1 = require("../../static-helpers/pagingHelpers.js");
20
+ const core_client_1 = require("@azure-rest/core-client");
21
+ function _dataflowGetSend(context, subscriptionId, resourceGroupName, instanceName, dataflowProfileName, dataflowName, options = { requestOptions: {} }) {
22
+ return context
23
+ .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/dataflowProfiles/{dataflowProfileName}/dataflows/{dataflowName}", subscriptionId, resourceGroupName, instanceName, dataflowProfileName, dataflowName)
24
+ .get(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)));
25
+ }
26
+ async function _dataflowGetDeserialize(result) {
27
+ const expectedStatuses = ["200"];
28
+ if (!expectedStatuses.includes(result.status)) {
29
+ throw (0, core_client_1.createRestError)(result);
30
+ }
31
+ return (0, models_js_1.dataflowResourceDeserializer)(result.body);
32
+ }
33
+ /** Get a DataflowResource */
34
+ async function dataflowGet(context, subscriptionId, resourceGroupName, instanceName, dataflowProfileName, dataflowName, options = { requestOptions: {} }) {
35
+ const result = await _dataflowGetSend(context, subscriptionId, resourceGroupName, instanceName, dataflowProfileName, dataflowName, options);
36
+ return _dataflowGetDeserialize(result);
37
+ }
38
+ function _dataflowCreateOrUpdateSend(context, subscriptionId, resourceGroupName, instanceName, dataflowProfileName, dataflowName, resource, options = { requestOptions: {} }) {
39
+ return context
40
+ .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/dataflowProfiles/{dataflowProfileName}/dataflows/{dataflowName}", subscriptionId, resourceGroupName, instanceName, dataflowProfileName, dataflowName)
41
+ .put(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { body: (0, models_js_1.dataflowResourceSerializer)(resource) }));
42
+ }
43
+ async function _dataflowCreateOrUpdateDeserialize(result) {
44
+ const expectedStatuses = ["200", "201"];
45
+ if (!expectedStatuses.includes(result.status)) {
46
+ throw (0, core_client_1.createRestError)(result);
47
+ }
48
+ return (0, models_js_1.dataflowResourceDeserializer)(result.body);
49
+ }
50
+ /** Create a DataflowResource */
51
+ function dataflowCreateOrUpdate(context, subscriptionId, resourceGroupName, instanceName, dataflowProfileName, dataflowName, resource, options = { requestOptions: {} }) {
52
+ return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _dataflowCreateOrUpdateDeserialize, ["200", "201"], {
53
+ updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
54
+ abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
55
+ getInitialResponse: () => _dataflowCreateOrUpdateSend(context, subscriptionId, resourceGroupName, instanceName, dataflowProfileName, dataflowName, resource, options),
56
+ resourceLocationConfig: "azure-async-operation",
57
+ });
58
+ }
59
+ function _dataflowDeleteSend(context, subscriptionId, resourceGroupName, instanceName, dataflowProfileName, dataflowName, options = { requestOptions: {} }) {
60
+ return context
61
+ .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/dataflowProfiles/{dataflowProfileName}/dataflows/{dataflowName}", subscriptionId, resourceGroupName, instanceName, dataflowProfileName, dataflowName)
62
+ .delete(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)));
63
+ }
64
+ async function _dataflowDeleteDeserialize(result) {
65
+ const expectedStatuses = ["202", "204", "200"];
66
+ if (!expectedStatuses.includes(result.status)) {
67
+ throw (0, core_client_1.createRestError)(result);
68
+ }
69
+ return;
70
+ }
71
+ /** Delete a DataflowResource */
72
+ function dataflowDelete(context, subscriptionId, resourceGroupName, instanceName, dataflowProfileName, dataflowName, options = { requestOptions: {} }) {
73
+ return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _dataflowDeleteDeserialize, ["202", "204", "200"], {
74
+ updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
75
+ abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
76
+ getInitialResponse: () => _dataflowDeleteSend(context, subscriptionId, resourceGroupName, instanceName, dataflowProfileName, dataflowName, options),
77
+ resourceLocationConfig: "location",
78
+ });
79
+ }
80
+ function _dataflowListByResourceGroupSend(context, subscriptionId, resourceGroupName, instanceName, dataflowProfileName, options = { requestOptions: {} }) {
81
+ return context
82
+ .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/dataflowProfiles/{dataflowProfileName}/dataflows", subscriptionId, resourceGroupName, instanceName, dataflowProfileName)
83
+ .get(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)));
84
+ }
85
+ async function _dataflowListByResourceGroupDeserialize(result) {
86
+ const expectedStatuses = ["200"];
87
+ if (!expectedStatuses.includes(result.status)) {
88
+ throw (0, core_client_1.createRestError)(result);
89
+ }
90
+ return (0, models_js_1._dataflowResourceListResultDeserializer)(result.body);
91
+ }
92
+ /** List DataflowResource resources by DataflowProfileResource */
93
+ function dataflowListByResourceGroup(context, subscriptionId, resourceGroupName, instanceName, dataflowProfileName, options = { requestOptions: {} }) {
94
+ return (0, pagingHelpers_js_1.buildPagedAsyncIterator)(context, () => _dataflowListByResourceGroupSend(context, subscriptionId, resourceGroupName, instanceName, dataflowProfileName, options), _dataflowListByResourceGroupDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
95
+ }
96
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/dataflow/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AA6BlC,4CAmBC;AAED,0DASC;AAGD,kCAmBC;AAED,kEAuBC;AAED,gFASC;AAGD,wDA0BC;AAED,kDAmBC;AAED,gEAOC;AAGD,wCAwBC;AAED,4EAiBC;AAED,0FASC;AAGD,kEAuBC;AA1PD,sDAMgC;AAChC,8EAA8E;AAC9E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3E,OAAO,OAAO;SACX,IAAI,CACH,gLAAgL,EAChL,cAAc,EACd,iBAAiB,EACjB,YAAY,EACZ,mBAAmB,CACpB;SACA,GAAG,mBAAM,IAAA,iDAAmC,EAAC,OAAO,CAAC,EAAG,CAAC;AAC9D,CAAC;AAEM,KAAK,UAAU,uCAAuC,CAC3D,MAA6B;IAE7B,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,IAAA,6BAAe,EAAC,MAAM,CAAC,CAAC;IAChC,CAAC;IAED,OAAO,IAAA,mDAAuC,EAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AAC9D,CAAC;AAED,iEAAiE;AACjE,SAAgB,2BAA2B,CACzC,OAAe,EACf,cAAsB,EACtB,iBAAyB,EACzB,YAAoB,EACpB,mBAA2B,EAC3B,UAAqD,EAAE,cAAc,EAAE,EAAE,EAAE;IAE3E,OAAO,IAAA,0CAAuB,EAC5B,OAAO,EACP,GAAG,EAAE,CACH,gCAAgC,CAC9B,OAAO,EACP,cAAc,EACd,iBAAiB,EACjB,YAAY,EACZ,mBAAmB,EACnB,OAAO,CACR,EACH,uCAAuC,EACvC,CAAC,KAAK,CAAC,EACP,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,CAChD,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport {\n IoTOperationsContext as Client,\n DataflowCreateOrUpdateOptionalParams,\n DataflowDeleteOptionalParams,\n DataflowGetOptionalParams,\n DataflowListByResourceGroupOptionalParams,\n} from \"../index.js\";\nimport {\n DataflowResource,\n dataflowResourceSerializer,\n dataflowResourceDeserializer,\n _DataflowResourceListResult,\n _dataflowResourceListResultDeserializer,\n} from \"../../models/models.js\";\nimport { getLongRunningPoller } from \"../../static-helpers/pollingHelpers.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\nimport { PollerLike, OperationState } from \"@azure/core-lro\";\n\nexport function _dataflowGetSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n instanceName: string,\n dataflowProfileName: string,\n dataflowName: string,\n options: DataflowGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/dataflowProfiles/{dataflowProfileName}/dataflows/{dataflowName}\",\n subscriptionId,\n resourceGroupName,\n instanceName,\n dataflowProfileName,\n dataflowName,\n )\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _dataflowGetDeserialize(\n result: PathUncheckedResponse,\n): Promise<DataflowResource> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return dataflowResourceDeserializer(result.body);\n}\n\n/** Get a DataflowResource */\nexport async function dataflowGet(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n instanceName: string,\n dataflowProfileName: string,\n dataflowName: string,\n options: DataflowGetOptionalParams = { requestOptions: {} },\n): Promise<DataflowResource> {\n const result = await _dataflowGetSend(\n context,\n subscriptionId,\n resourceGroupName,\n instanceName,\n dataflowProfileName,\n dataflowName,\n options,\n );\n return _dataflowGetDeserialize(result);\n}\n\nexport function _dataflowCreateOrUpdateSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n instanceName: string,\n dataflowProfileName: string,\n dataflowName: string,\n resource: DataflowResource,\n options: DataflowCreateOrUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/dataflowProfiles/{dataflowProfileName}/dataflows/{dataflowName}\",\n subscriptionId,\n resourceGroupName,\n instanceName,\n dataflowProfileName,\n dataflowName,\n )\n .put({\n ...operationOptionsToRequestParameters(options),\n body: dataflowResourceSerializer(resource),\n });\n}\n\nexport async function _dataflowCreateOrUpdateDeserialize(\n result: PathUncheckedResponse,\n): Promise<DataflowResource> {\n const expectedStatuses = [\"200\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return dataflowResourceDeserializer(result.body);\n}\n\n/** Create a DataflowResource */\nexport function dataflowCreateOrUpdate(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n instanceName: string,\n dataflowProfileName: string,\n dataflowName: string,\n resource: DataflowResource,\n options: DataflowCreateOrUpdateOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<DataflowResource>, DataflowResource> {\n return getLongRunningPoller(context, _dataflowCreateOrUpdateDeserialize, [\"200\", \"201\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _dataflowCreateOrUpdateSend(\n context,\n subscriptionId,\n resourceGroupName,\n instanceName,\n dataflowProfileName,\n dataflowName,\n resource,\n options,\n ),\n resourceLocationConfig: \"azure-async-operation\",\n }) as PollerLike<OperationState<DataflowResource>, DataflowResource>;\n}\n\nexport function _dataflowDeleteSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n instanceName: string,\n dataflowProfileName: string,\n dataflowName: string,\n options: DataflowDeleteOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/dataflowProfiles/{dataflowProfileName}/dataflows/{dataflowName}\",\n subscriptionId,\n resourceGroupName,\n instanceName,\n dataflowProfileName,\n dataflowName,\n )\n .delete({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _dataflowDeleteDeserialize(result: PathUncheckedResponse): Promise<void> {\n const expectedStatuses = [\"202\", \"204\", \"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return;\n}\n\n/** Delete a DataflowResource */\nexport function dataflowDelete(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n instanceName: string,\n dataflowProfileName: string,\n dataflowName: string,\n options: DataflowDeleteOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<void>, void> {\n return getLongRunningPoller(context, _dataflowDeleteDeserialize, [\"202\", \"204\", \"200\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _dataflowDeleteSend(\n context,\n subscriptionId,\n resourceGroupName,\n instanceName,\n dataflowProfileName,\n dataflowName,\n options,\n ),\n resourceLocationConfig: \"location\",\n }) as PollerLike<OperationState<void>, void>;\n}\n\nexport function _dataflowListByResourceGroupSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n instanceName: string,\n dataflowProfileName: string,\n options: DataflowListByResourceGroupOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/dataflowProfiles/{dataflowProfileName}/dataflows\",\n subscriptionId,\n resourceGroupName,\n instanceName,\n dataflowProfileName,\n )\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _dataflowListByResourceGroupDeserialize(\n result: PathUncheckedResponse,\n): Promise<_DataflowResourceListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return _dataflowResourceListResultDeserializer(result.body);\n}\n\n/** List DataflowResource resources by DataflowProfileResource */\nexport function dataflowListByResourceGroup(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n instanceName: string,\n dataflowProfileName: string,\n options: DataflowListByResourceGroupOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<DataflowResource> {\n return buildPagedAsyncIterator(\n context,\n () =>\n _dataflowListByResourceGroupSend(\n context,\n subscriptionId,\n resourceGroupName,\n instanceName,\n dataflowProfileName,\n options,\n ),\n _dataflowListByResourceGroupDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n"]}
@@ -0,0 +1,22 @@
1
+ import { IoTOperationsContext as Client, DataflowEndpointCreateOrUpdateOptionalParams, DataflowEndpointDeleteOptionalParams, DataflowEndpointGetOptionalParams, DataflowEndpointListByResourceGroupOptionalParams } from "../index.js";
2
+ import { DataflowEndpointResource, _DataflowEndpointResourceListResult } from "../../models/models.js";
3
+ import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
4
+ import { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
5
+ import { PollerLike, OperationState } from "@azure/core-lro";
6
+ export declare function _dataflowEndpointGetSend(context: Client, subscriptionId: string, resourceGroupName: string, instanceName: string, dataflowEndpointName: string, options?: DataflowEndpointGetOptionalParams): StreamableMethod;
7
+ export declare function _dataflowEndpointGetDeserialize(result: PathUncheckedResponse): Promise<DataflowEndpointResource>;
8
+ /** Get a DataflowEndpointResource */
9
+ export declare function dataflowEndpointGet(context: Client, subscriptionId: string, resourceGroupName: string, instanceName: string, dataflowEndpointName: string, options?: DataflowEndpointGetOptionalParams): Promise<DataflowEndpointResource>;
10
+ export declare function _dataflowEndpointCreateOrUpdateSend(context: Client, subscriptionId: string, resourceGroupName: string, instanceName: string, dataflowEndpointName: string, resource: DataflowEndpointResource, options?: DataflowEndpointCreateOrUpdateOptionalParams): StreamableMethod;
11
+ export declare function _dataflowEndpointCreateOrUpdateDeserialize(result: PathUncheckedResponse): Promise<DataflowEndpointResource>;
12
+ /** Create a DataflowEndpointResource */
13
+ export declare function dataflowEndpointCreateOrUpdate(context: Client, subscriptionId: string, resourceGroupName: string, instanceName: string, dataflowEndpointName: string, resource: DataflowEndpointResource, options?: DataflowEndpointCreateOrUpdateOptionalParams): PollerLike<OperationState<DataflowEndpointResource>, DataflowEndpointResource>;
14
+ export declare function _dataflowEndpointDeleteSend(context: Client, subscriptionId: string, resourceGroupName: string, instanceName: string, dataflowEndpointName: string, options?: DataflowEndpointDeleteOptionalParams): StreamableMethod;
15
+ export declare function _dataflowEndpointDeleteDeserialize(result: PathUncheckedResponse): Promise<void>;
16
+ /** Delete a DataflowEndpointResource */
17
+ export declare function dataflowEndpointDelete(context: Client, subscriptionId: string, resourceGroupName: string, instanceName: string, dataflowEndpointName: string, options?: DataflowEndpointDeleteOptionalParams): PollerLike<OperationState<void>, void>;
18
+ export declare function _dataflowEndpointListByResourceGroupSend(context: Client, subscriptionId: string, resourceGroupName: string, instanceName: string, options?: DataflowEndpointListByResourceGroupOptionalParams): StreamableMethod;
19
+ export declare function _dataflowEndpointListByResourceGroupDeserialize(result: PathUncheckedResponse): Promise<_DataflowEndpointResourceListResult>;
20
+ /** List DataflowEndpointResource resources by InstanceResource */
21
+ export declare function dataflowEndpointListByResourceGroup(context: Client, subscriptionId: string, resourceGroupName: string, instanceName: string, options?: DataflowEndpointListByResourceGroupOptionalParams): PagedAsyncIterableIterator<DataflowEndpointResource>;
22
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/dataflowEndpoint/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,oBAAoB,IAAI,MAAM,EAC9B,4CAA4C,EAC5C,oCAAoC,EACpC,iCAAiC,EACjC,iDAAiD,EAClD,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,wBAAwB,EAGxB,mCAAmC,EAEpC,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EACL,0BAA0B,EAE3B,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,gBAAgB,EAChB,qBAAqB,EAGtB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,i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E,MAAM,EACpB,oBAAoB,EAAE,MAAM,EAC5B,OAAO,GAAE,oCAA6D,GACrE,gBAAgB,CAUlB;AAED,wBAAsB,kCAAkC,CACtD,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,IAAI,CAAC,CAOf;AAED,wCAAwC;AACxC,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,oBAAoB,EAAE,MAAM,EAC5B,OAAO,GAAE,oCAA6D,GACrE,UAAU,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAexC;AAED,wBAAgB,wCAAwC,CACtD,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,OAAO,GAAE,iDAER,GACA,gBAAgB,CASlB;AAED,wBAAsB,+CAA+C,CACnE,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,mCAAmC,CAAC,CAO9C;AAED,kEAAkE;AAClE,wBAAgB,mCAAmC,CACjD,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,OAAO,GAAE,iDAER,GACA,0BAA0B,CAAC,wBAAwB,CAAC,CAetD"}
@@ -0,0 +1,104 @@
1
+ "use strict";
2
+ // Copyright (c) Microsoft Corporation.
3
+ // Licensed under the MIT License.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports._dataflowEndpointGetSend = _dataflowEndpointGetSend;
6
+ exports._dataflowEndpointGetDeserialize = _dataflowEndpointGetDeserialize;
7
+ exports.dataflowEndpointGet = dataflowEndpointGet;
8
+ exports._dataflowEndpointCreateOrUpdateSend = _dataflowEndpointCreateOrUpdateSend;
9
+ exports._dataflowEndpointCreateOrUpdateDeserialize = _dataflowEndpointCreateOrUpdateDeserialize;
10
+ exports.dataflowEndpointCreateOrUpdate = dataflowEndpointCreateOrUpdate;
11
+ exports._dataflowEndpointDeleteSend = _dataflowEndpointDeleteSend;
12
+ exports._dataflowEndpointDeleteDeserialize = _dataflowEndpointDeleteDeserialize;
13
+ exports.dataflowEndpointDelete = dataflowEndpointDelete;
14
+ exports._dataflowEndpointListByResourceGroupSend = _dataflowEndpointListByResourceGroupSend;
15
+ exports._dataflowEndpointListByResourceGroupDeserialize = _dataflowEndpointListByResourceGroupDeserialize;
16
+ exports.dataflowEndpointListByResourceGroup = dataflowEndpointListByResourceGroup;
17
+ const models_js_1 = require("../../models/models.js");
18
+ const pollingHelpers_js_1 = require("../../static-helpers/pollingHelpers.js");
19
+ const pagingHelpers_js_1 = require("../../static-helpers/pagingHelpers.js");
20
+ const core_client_1 = require("@azure-rest/core-client");
21
+ function _dataflowEndpointGetSend(context, subscriptionId, resourceGroupName, instanceName, dataflowEndpointName, options = { requestOptions: {} }) {
22
+ return context
23
+ .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/dataflowEndpoints/{dataflowEndpointName}", subscriptionId, resourceGroupName, instanceName, dataflowEndpointName)
24
+ .get(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)));
25
+ }
26
+ async function _dataflowEndpointGetDeserialize(result) {
27
+ const expectedStatuses = ["200"];
28
+ if (!expectedStatuses.includes(result.status)) {
29
+ throw (0, core_client_1.createRestError)(result);
30
+ }
31
+ return (0, models_js_1.dataflowEndpointResourceDeserializer)(result.body);
32
+ }
33
+ /** Get a DataflowEndpointResource */
34
+ async function dataflowEndpointGet(context, subscriptionId, resourceGroupName, instanceName, dataflowEndpointName, options = { requestOptions: {} }) {
35
+ const result = await _dataflowEndpointGetSend(context, subscriptionId, resourceGroupName, instanceName, dataflowEndpointName, options);
36
+ return _dataflowEndpointGetDeserialize(result);
37
+ }
38
+ function _dataflowEndpointCreateOrUpdateSend(context, subscriptionId, resourceGroupName, instanceName, dataflowEndpointName, resource, options = {
39
+ requestOptions: {},
40
+ }) {
41
+ return context
42
+ .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/dataflowEndpoints/{dataflowEndpointName}", subscriptionId, resourceGroupName, instanceName, dataflowEndpointName)
43
+ .put(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { body: (0, models_js_1.dataflowEndpointResourceSerializer)(resource) }));
44
+ }
45
+ async function _dataflowEndpointCreateOrUpdateDeserialize(result) {
46
+ const expectedStatuses = ["200", "201"];
47
+ if (!expectedStatuses.includes(result.status)) {
48
+ throw (0, core_client_1.createRestError)(result);
49
+ }
50
+ return (0, models_js_1.dataflowEndpointResourceDeserializer)(result.body);
51
+ }
52
+ /** Create a DataflowEndpointResource */
53
+ function dataflowEndpointCreateOrUpdate(context, subscriptionId, resourceGroupName, instanceName, dataflowEndpointName, resource, options = {
54
+ requestOptions: {},
55
+ }) {
56
+ return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _dataflowEndpointCreateOrUpdateDeserialize, ["200", "201"], {
57
+ updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
58
+ abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
59
+ getInitialResponse: () => _dataflowEndpointCreateOrUpdateSend(context, subscriptionId, resourceGroupName, instanceName, dataflowEndpointName, resource, options),
60
+ resourceLocationConfig: "azure-async-operation",
61
+ });
62
+ }
63
+ function _dataflowEndpointDeleteSend(context, subscriptionId, resourceGroupName, instanceName, dataflowEndpointName, options = { requestOptions: {} }) {
64
+ return context
65
+ .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/dataflowEndpoints/{dataflowEndpointName}", subscriptionId, resourceGroupName, instanceName, dataflowEndpointName)
66
+ .delete(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)));
67
+ }
68
+ async function _dataflowEndpointDeleteDeserialize(result) {
69
+ const expectedStatuses = ["202", "204", "200"];
70
+ if (!expectedStatuses.includes(result.status)) {
71
+ throw (0, core_client_1.createRestError)(result);
72
+ }
73
+ return;
74
+ }
75
+ /** Delete a DataflowEndpointResource */
76
+ function dataflowEndpointDelete(context, subscriptionId, resourceGroupName, instanceName, dataflowEndpointName, options = { requestOptions: {} }) {
77
+ return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _dataflowEndpointDeleteDeserialize, ["202", "204", "200"], {
78
+ updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
79
+ abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
80
+ getInitialResponse: () => _dataflowEndpointDeleteSend(context, subscriptionId, resourceGroupName, instanceName, dataflowEndpointName, options),
81
+ resourceLocationConfig: "location",
82
+ });
83
+ }
84
+ function _dataflowEndpointListByResourceGroupSend(context, subscriptionId, resourceGroupName, instanceName, options = {
85
+ requestOptions: {},
86
+ }) {
87
+ return context
88
+ .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/dataflowEndpoints", subscriptionId, resourceGroupName, instanceName)
89
+ .get(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)));
90
+ }
91
+ async function _dataflowEndpointListByResourceGroupDeserialize(result) {
92
+ const expectedStatuses = ["200"];
93
+ if (!expectedStatuses.includes(result.status)) {
94
+ throw (0, core_client_1.createRestError)(result);
95
+ }
96
+ return (0, models_js_1._dataflowEndpointResourceListResultDeserializer)(result.body);
97
+ }
98
+ /** List DataflowEndpointResource resources by InstanceResource */
99
+ function dataflowEndpointListByResourceGroup(context, subscriptionId, resourceGroupName, instanceName, options = {
100
+ requestOptions: {},
101
+ }) {
102
+ return (0, pagingHelpers_js_1.buildPagedAsyncIterator)(context, () => _dataflowEndpointListByResourceGroupSend(context, subscriptionId, resourceGroupName, instanceName, options), _dataflowEndpointListByResourceGroupDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
103
+ }
104
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/dataflowEndpoint/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AA6BlC,4DAiBC;AAED,0EASC;AAGD,kDAiBC;AAED,kFAuBC;AAED,gGASC;AAGD,wEA0BC;AAED,kEAiBC;AAED,gFASC;AAGD,wDAsBC;AAED,4FAiBC;AAED,0GASC;AAGD,kFAuBC;AApPD,sDAMgC;AAChC,8EAA8E;AAC9E,4EAG+C;AAC/C,yDAKiC;AAGjC,SAAgB,wBAAwB,CACtC,OAAe,EACf,cAAsB,EACtB,iBAAyB,EACzB,YAAoB,EACpB,oBAA4B,EAC5B,UAA6C,EAAE,cAAc,EAAE,EAAE,EAAE;IAEnE,OAAO,OAAO;SACX,IAAI,CACH,wKAAwK,EACxK,cAAc,EACd,iBAAiB,EACjB,YAAY,EACZ,oBAAoB,CACrB;SACA,GAAG,mBAAM,IAAA,iDAAmC,EAAC,OAAO,CAAC,EAAG,CAAC;AAC9D,CAAC;AAEM,KAAK,UAAU,+BAA+B,CACnD,MAA6B;IAE7B,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,IAAA,6BAAe,EAAC,MAAM,CAAC,CAAC;IAChC,CAAC;IAED,OAAO,IAAA,gDAAoC,EAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AAC3D,CAAC;AAED,qCAAqC;AAC9B,KAAK,UAAU,mBAAmB,CACvC,OAAe,EACf,cAAsB,EACtB,iBAAyB,EACzB,YAAoB,EACpB,oBAA4B,EAC5B,UAA6C,EAAE,cAAc,EAAE,EAAE,EAAE;IAEnE,MAAM,MAAM,GAAG,MAAM,wBAAwB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iBAAiB,EACjB,YAAY,EACZ,oBAAoB,EACpB,OAAO,CACR;QACH,sBAAsB,EAAE,UAAU;KACnC,CAA2C,CAAC;AAC/C,CAAC;AAED,SAAgB,wCAAwC,CACtD,OAAe,EACf,cAAsB,EACtB,iBAAyB,EACzB,YAAoB,EACpB,UAA6D;IAC3D,cAAc,EAAE,EAAE;CACnB;IAED,OAAO,OAAO;SACX,IAAI,CACH,iJAAiJ,EACjJ,cAAc,EACd,iBAAiB,EACjB,YAAY,CACb;SACA,GAAG,mBAAM,IAAA,iDAAmC,EAAC,OAAO,CAAC,EAAG,CAAC;AAC9D,CAAC;AAEM,KAAK,UAAU,+CAA+C,CACnE,MAA6B;IAE7B,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,IAAA,6BAAe,EAAC,MAAM,CAAC,CAAC;IAChC,CAAC;IAED,OAAO,IAAA,2DAA+C,EAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACtE,CAAC;AAED,kEAAkE;AAClE,SAAgB,mCAAmC,CACjD,OAAe,EACf,cAAsB,EACtB,iBAAyB,EACzB,YAAoB,EACpB,UAA6D;IAC3D,cAAc,EAAE,EAAE;CACnB;IAED,OAAO,IAAA,0CAAuB,EAC5B,OAAO,EACP,GAAG,EAAE,CACH,wCAAwC,CACtC,OAAO,EACP,cAAc,EACd,iBAAiB,EACjB,YAAY,EACZ,OAAO,CACR,EACH,+CAA+C,EAC/C,CAAC,KAAK,CAAC,EACP,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,CAChD,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport {\n IoTOperationsContext as Client,\n DataflowEndpointCreateOrUpdateOptionalParams,\n DataflowEndpointDeleteOptionalParams,\n DataflowEndpointGetOptionalParams,\n DataflowEndpointListByResourceGroupOptionalParams,\n} from \"../index.js\";\nimport {\n DataflowEndpointResource,\n dataflowEndpointResourceSerializer,\n dataflowEndpointResourceDeserializer,\n _DataflowEndpointResourceListResult,\n _dataflowEndpointResourceListResultDeserializer,\n} from \"../../models/models.js\";\nimport { getLongRunningPoller } from \"../../static-helpers/pollingHelpers.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\nimport { PollerLike, OperationState } from \"@azure/core-lro\";\n\nexport function _dataflowEndpointGetSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n instanceName: string,\n dataflowEndpointName: string,\n options: DataflowEndpointGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/dataflowEndpoints/{dataflowEndpointName}\",\n subscriptionId,\n resourceGroupName,\n instanceName,\n dataflowEndpointName,\n )\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _dataflowEndpointGetDeserialize(\n result: PathUncheckedResponse,\n): Promise<DataflowEndpointResource> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return dataflowEndpointResourceDeserializer(result.body);\n}\n\n/** Get a DataflowEndpointResource */\nexport async function dataflowEndpointGet(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n instanceName: string,\n dataflowEndpointName: string,\n options: DataflowEndpointGetOptionalParams = { requestOptions: {} },\n): Promise<DataflowEndpointResource> {\n const result = await _dataflowEndpointGetSend(\n context,\n subscriptionId,\n resourceGroupName,\n instanceName,\n dataflowEndpointName,\n options,\n );\n return _dataflowEndpointGetDeserialize(result);\n}\n\nexport function _dataflowEndpointCreateOrUpdateSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n instanceName: string,\n dataflowEndpointName: string,\n resource: DataflowEndpointResource,\n options: DataflowEndpointCreateOrUpdateOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/dataflowEndpoints/{dataflowEndpointName}\",\n subscriptionId,\n resourceGroupName,\n instanceName,\n dataflowEndpointName,\n )\n .put({\n ...operationOptionsToRequestParameters(options),\n body: dataflowEndpointResourceSerializer(resource),\n });\n}\n\nexport async function _dataflowEndpointCreateOrUpdateDeserialize(\n result: PathUncheckedResponse,\n): Promise<DataflowEndpointResource> {\n const expectedStatuses = [\"200\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return dataflowEndpointResourceDeserializer(result.body);\n}\n\n/** Create a DataflowEndpointResource */\nexport function dataflowEndpointCreateOrUpdate(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n instanceName: string,\n dataflowEndpointName: string,\n resource: DataflowEndpointResource,\n options: DataflowEndpointCreateOrUpdateOptionalParams = {\n requestOptions: {},\n },\n): PollerLike<OperationState<DataflowEndpointResource>, DataflowEndpointResource> {\n return getLongRunningPoller(context, _dataflowEndpointCreateOrUpdateDeserialize, [\"200\", \"201\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _dataflowEndpointCreateOrUpdateSend(\n context,\n subscriptionId,\n resourceGroupName,\n instanceName,\n dataflowEndpointName,\n resource,\n options,\n ),\n resourceLocationConfig: \"azure-async-operation\",\n }) as PollerLike<OperationState<DataflowEndpointResource>, DataflowEndpointResource>;\n}\n\nexport function _dataflowEndpointDeleteSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n instanceName: string,\n dataflowEndpointName: string,\n options: DataflowEndpointDeleteOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/dataflowEndpoints/{dataflowEndpointName}\",\n subscriptionId,\n resourceGroupName,\n instanceName,\n dataflowEndpointName,\n )\n .delete({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _dataflowEndpointDeleteDeserialize(\n result: PathUncheckedResponse,\n): Promise<void> {\n const expectedStatuses = [\"202\", \"204\", \"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return;\n}\n\n/** Delete a DataflowEndpointResource */\nexport function dataflowEndpointDelete(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n instanceName: string,\n dataflowEndpointName: string,\n options: DataflowEndpointDeleteOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<void>, void> {\n return getLongRunningPoller(context, _dataflowEndpointDeleteDeserialize, [\"202\", \"204\", \"200\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _dataflowEndpointDeleteSend(\n context,\n subscriptionId,\n resourceGroupName,\n instanceName,\n dataflowEndpointName,\n options,\n ),\n resourceLocationConfig: \"location\",\n }) as PollerLike<OperationState<void>, void>;\n}\n\nexport function _dataflowEndpointListByResourceGroupSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n instanceName: string,\n options: DataflowEndpointListByResourceGroupOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/dataflowEndpoints\",\n subscriptionId,\n resourceGroupName,\n instanceName,\n )\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _dataflowEndpointListByResourceGroupDeserialize(\n result: PathUncheckedResponse,\n): Promise<_DataflowEndpointResourceListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return _dataflowEndpointResourceListResultDeserializer(result.body);\n}\n\n/** List DataflowEndpointResource resources by InstanceResource */\nexport function dataflowEndpointListByResourceGroup(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n instanceName: string,\n options: DataflowEndpointListByResourceGroupOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<DataflowEndpointResource> {\n return buildPagedAsyncIterator(\n context,\n () =>\n _dataflowEndpointListByResourceGroupSend(\n context,\n subscriptionId,\n resourceGroupName,\n instanceName,\n options,\n ),\n _dataflowEndpointListByResourceGroupDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n"]}
@@ -0,0 +1,22 @@
1
+ import { IoTOperationsContext as Client, DataflowProfileCreateOrUpdateOptionalParams, DataflowProfileDeleteOptionalParams, DataflowProfileGetOptionalParams, DataflowProfileListByResourceGroupOptionalParams } from "../index.js";
2
+ import { DataflowProfileResource, _DataflowProfileResourceListResult } from "../../models/models.js";
3
+ import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
4
+ import { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
5
+ import { PollerLike, OperationState } from "@azure/core-lro";
6
+ export declare function _dataflowProfileGetSend(context: Client, subscriptionId: string, resourceGroupName: string, instanceName: string, dataflowProfileName: string, options?: DataflowProfileGetOptionalParams): StreamableMethod;
7
+ export declare function _dataflowProfileGetDeserialize(result: PathUncheckedResponse): Promise<DataflowProfileResource>;
8
+ /** Get a DataflowProfileResource */
9
+ export declare function dataflowProfileGet(context: Client, subscriptionId: string, resourceGroupName: string, instanceName: string, dataflowProfileName: string, options?: DataflowProfileGetOptionalParams): Promise<DataflowProfileResource>;
10
+ export declare function _dataflowProfileCreateOrUpdateSend(context: Client, subscriptionId: string, resourceGroupName: string, instanceName: string, dataflowProfileName: string, resource: DataflowProfileResource, options?: DataflowProfileCreateOrUpdateOptionalParams): StreamableMethod;
11
+ export declare function _dataflowProfileCreateOrUpdateDeserialize(result: PathUncheckedResponse): Promise<DataflowProfileResource>;
12
+ /** Create a DataflowProfileResource */
13
+ export declare function dataflowProfileCreateOrUpdate(context: Client, subscriptionId: string, resourceGroupName: string, instanceName: string, dataflowProfileName: string, resource: DataflowProfileResource, options?: DataflowProfileCreateOrUpdateOptionalParams): PollerLike<OperationState<DataflowProfileResource>, DataflowProfileResource>;
14
+ export declare function _dataflowProfileDeleteSend(context: Client, subscriptionId: string, resourceGroupName: string, instanceName: string, dataflowProfileName: string, options?: DataflowProfileDeleteOptionalParams): StreamableMethod;
15
+ export declare function _dataflowProfileDeleteDeserialize(result: PathUncheckedResponse): Promise<void>;
16
+ /** Delete a DataflowProfileResource */
17
+ export declare function dataflowProfileDelete(context: Client, subscriptionId: string, resourceGroupName: string, instanceName: string, dataflowProfileName: string, options?: DataflowProfileDeleteOptionalParams): PollerLike<OperationState<void>, void>;
18
+ export declare function _dataflowProfileListByResourceGroupSend(context: Client, subscriptionId: string, resourceGroupName: string, instanceName: string, options?: DataflowProfileListByResourceGroupOptionalParams): StreamableMethod;
19
+ export declare function _dataflowProfileListByResourceGroupDeserialize(result: PathUncheckedResponse): Promise<_DataflowProfileResourceListResult>;
20
+ /** List DataflowProfileResource resources by InstanceResource */
21
+ export declare function dataflowProfileListByResourceGroup(context: Client, subscriptionId: string, resourceGroupName: string, instanceName: string, options?: DataflowProfileListByResourceGroupOptionalParams): PagedAsyncIterableIterator<DataflowProfileResource>;
22
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/dataflowProfile/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,oBAAoB,IAAI,MAAM,EAC9B,2CAA2C,EAC3C,mCAAmC,EACnC,gCAAgC,EAChC,gDAAgD,EACjD,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,uBAAuB,EAGvB,kCAAkC,EAEnC,MAAM,wB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2CAAoE,GAC5E,UAAU,CAAC,cAAc,CAAC,uBAAuB,CAAC,EAAE,uBAAuB,CAAC,CAgB9E;AAED,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,mBAAmB,EAAE,MAAM,EAC3B,OAAO,GAAE,mCAA4D,GACpE,gBAAgB,CAUlB;AAED,wBAAsB,iCAAiC,CACrD,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,IAAI,CAAC,CAOf;AAED,uCAAuC;AACvC,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,mBAAmB,EAAE,MAAM,EAC3B,OAAO,GAAE,mCAA4D,GACpE,UAAU,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAexC;AAED,wBAAgB,uCAAuC,CACrD,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,OAAO,GAAE,gDAER,GACA,gBAAgB,CASlB;AAED,wBAAsB,8CAA8C,CAClE,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,kCAAkC,CAAC,CAO7C;AAED,iEAAiE;AACjE,wBAAgB,kCAAkC,CAChD,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,OAAO,GAAE,gDAER,GACA,0BAA0B,CAAC,uBAAuB,CAAC,CAerD"}
@@ -0,0 +1,100 @@
1
+ "use strict";
2
+ // Copyright (c) Microsoft Corporation.
3
+ // Licensed under the MIT License.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports._dataflowProfileGetSend = _dataflowProfileGetSend;
6
+ exports._dataflowProfileGetDeserialize = _dataflowProfileGetDeserialize;
7
+ exports.dataflowProfileGet = dataflowProfileGet;
8
+ exports._dataflowProfileCreateOrUpdateSend = _dataflowProfileCreateOrUpdateSend;
9
+ exports._dataflowProfileCreateOrUpdateDeserialize = _dataflowProfileCreateOrUpdateDeserialize;
10
+ exports.dataflowProfileCreateOrUpdate = dataflowProfileCreateOrUpdate;
11
+ exports._dataflowProfileDeleteSend = _dataflowProfileDeleteSend;
12
+ exports._dataflowProfileDeleteDeserialize = _dataflowProfileDeleteDeserialize;
13
+ exports.dataflowProfileDelete = dataflowProfileDelete;
14
+ exports._dataflowProfileListByResourceGroupSend = _dataflowProfileListByResourceGroupSend;
15
+ exports._dataflowProfileListByResourceGroupDeserialize = _dataflowProfileListByResourceGroupDeserialize;
16
+ exports.dataflowProfileListByResourceGroup = dataflowProfileListByResourceGroup;
17
+ const models_js_1 = require("../../models/models.js");
18
+ const pollingHelpers_js_1 = require("../../static-helpers/pollingHelpers.js");
19
+ const pagingHelpers_js_1 = require("../../static-helpers/pagingHelpers.js");
20
+ const core_client_1 = require("@azure-rest/core-client");
21
+ function _dataflowProfileGetSend(context, subscriptionId, resourceGroupName, instanceName, dataflowProfileName, options = { requestOptions: {} }) {
22
+ return context
23
+ .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/dataflowProfiles/{dataflowProfileName}", subscriptionId, resourceGroupName, instanceName, dataflowProfileName)
24
+ .get(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)));
25
+ }
26
+ async function _dataflowProfileGetDeserialize(result) {
27
+ const expectedStatuses = ["200"];
28
+ if (!expectedStatuses.includes(result.status)) {
29
+ throw (0, core_client_1.createRestError)(result);
30
+ }
31
+ return (0, models_js_1.dataflowProfileResourceDeserializer)(result.body);
32
+ }
33
+ /** Get a DataflowProfileResource */
34
+ async function dataflowProfileGet(context, subscriptionId, resourceGroupName, instanceName, dataflowProfileName, options = { requestOptions: {} }) {
35
+ const result = await _dataflowProfileGetSend(context, subscriptionId, resourceGroupName, instanceName, dataflowProfileName, options);
36
+ return _dataflowProfileGetDeserialize(result);
37
+ }
38
+ function _dataflowProfileCreateOrUpdateSend(context, subscriptionId, resourceGroupName, instanceName, dataflowProfileName, resource, options = { requestOptions: {} }) {
39
+ return context
40
+ .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/dataflowProfiles/{dataflowProfileName}", subscriptionId, resourceGroupName, instanceName, dataflowProfileName)
41
+ .put(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { body: (0, models_js_1.dataflowProfileResourceSerializer)(resource) }));
42
+ }
43
+ async function _dataflowProfileCreateOrUpdateDeserialize(result) {
44
+ const expectedStatuses = ["200", "201"];
45
+ if (!expectedStatuses.includes(result.status)) {
46
+ throw (0, core_client_1.createRestError)(result);
47
+ }
48
+ return (0, models_js_1.dataflowProfileResourceDeserializer)(result.body);
49
+ }
50
+ /** Create a DataflowProfileResource */
51
+ function dataflowProfileCreateOrUpdate(context, subscriptionId, resourceGroupName, instanceName, dataflowProfileName, resource, options = { requestOptions: {} }) {
52
+ return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _dataflowProfileCreateOrUpdateDeserialize, ["200", "201"], {
53
+ updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
54
+ abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
55
+ getInitialResponse: () => _dataflowProfileCreateOrUpdateSend(context, subscriptionId, resourceGroupName, instanceName, dataflowProfileName, resource, options),
56
+ resourceLocationConfig: "azure-async-operation",
57
+ });
58
+ }
59
+ function _dataflowProfileDeleteSend(context, subscriptionId, resourceGroupName, instanceName, dataflowProfileName, options = { requestOptions: {} }) {
60
+ return context
61
+ .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/dataflowProfiles/{dataflowProfileName}", subscriptionId, resourceGroupName, instanceName, dataflowProfileName)
62
+ .delete(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)));
63
+ }
64
+ async function _dataflowProfileDeleteDeserialize(result) {
65
+ const expectedStatuses = ["202", "204", "200"];
66
+ if (!expectedStatuses.includes(result.status)) {
67
+ throw (0, core_client_1.createRestError)(result);
68
+ }
69
+ return;
70
+ }
71
+ /** Delete a DataflowProfileResource */
72
+ function dataflowProfileDelete(context, subscriptionId, resourceGroupName, instanceName, dataflowProfileName, options = { requestOptions: {} }) {
73
+ return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _dataflowProfileDeleteDeserialize, ["202", "204", "200"], {
74
+ updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
75
+ abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
76
+ getInitialResponse: () => _dataflowProfileDeleteSend(context, subscriptionId, resourceGroupName, instanceName, dataflowProfileName, options),
77
+ resourceLocationConfig: "location",
78
+ });
79
+ }
80
+ function _dataflowProfileListByResourceGroupSend(context, subscriptionId, resourceGroupName, instanceName, options = {
81
+ requestOptions: {},
82
+ }) {
83
+ return context
84
+ .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/dataflowProfiles", subscriptionId, resourceGroupName, instanceName)
85
+ .get(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)));
86
+ }
87
+ async function _dataflowProfileListByResourceGroupDeserialize(result) {
88
+ const expectedStatuses = ["200"];
89
+ if (!expectedStatuses.includes(result.status)) {
90
+ throw (0, core_client_1.createRestError)(result);
91
+ }
92
+ return (0, models_js_1._dataflowProfileResourceListResultDeserializer)(result.body);
93
+ }
94
+ /** List DataflowProfileResource resources by InstanceResource */
95
+ function dataflowProfileListByResourceGroup(context, subscriptionId, resourceGroupName, instanceName, options = {
96
+ requestOptions: {},
97
+ }) {
98
+ return (0, pagingHelpers_js_1.buildPagedAsyncIterator)(context, () => _dataflowProfileListByResourceGroupSend(context, subscriptionId, resourceGroupName, instanceName, options), _dataflowProfileListByResourceGroupDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
99
+ }
100
+ //# sourceMappingURL=index.js.map