@azure/arm-networkfunction 2.0.1-alpha.20250214.1 → 2.0.1-alpha.20250218.2

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 (420) hide show
  1. package/README.md +21 -14
  2. package/{dist-esm/src → dist/browser}/azureTrafficCollectorClient.d.ts +2 -2
  3. package/dist/browser/azureTrafficCollectorClient.d.ts.map +1 -0
  4. package/{dist-esm/src → dist/browser}/azureTrafficCollectorClient.js +15 -18
  5. package/dist/browser/azureTrafficCollectorClient.js.map +1 -0
  6. package/dist/browser/index.d.ts +5 -0
  7. package/{dist-esm/src → dist/browser}/index.d.ts.map +1 -1
  8. package/{dist-esm/src → dist/browser}/index.js +4 -4
  9. package/dist/browser/index.js.map +1 -0
  10. package/dist/browser/lroImpl.js +25 -0
  11. package/dist/browser/lroImpl.js.map +1 -0
  12. package/dist/browser/models/index.js.map +1 -0
  13. package/dist/browser/models/mappers.js.map +1 -0
  14. package/{dist-esm/src → dist/browser}/models/parameters.js +1 -1
  15. package/dist/browser/models/parameters.js.map +1 -0
  16. package/{dist-esm/src → dist/browser}/operations/azureTrafficCollectors.d.ts +3 -3
  17. package/dist/browser/operations/azureTrafficCollectors.d.ts.map +1 -0
  18. package/{dist-esm/src → dist/browser}/operations/azureTrafficCollectors.js +69 -78
  19. package/dist/browser/operations/azureTrafficCollectors.js.map +1 -0
  20. package/{dist-esm/src → dist/browser}/operations/azureTrafficCollectorsByResourceGroup.d.ts +3 -3
  21. package/dist/browser/operations/azureTrafficCollectorsByResourceGroup.d.ts.map +1 -0
  22. package/{dist-esm/src → dist/browser}/operations/azureTrafficCollectorsByResourceGroup.js +3 -3
  23. package/dist/browser/operations/azureTrafficCollectorsByResourceGroup.js.map +1 -0
  24. package/{dist-esm/src → dist/browser}/operations/azureTrafficCollectorsBySubscription.d.ts +3 -3
  25. package/dist/browser/operations/azureTrafficCollectorsBySubscription.d.ts.map +1 -0
  26. package/{dist-esm/src → dist/browser}/operations/azureTrafficCollectorsBySubscription.js +3 -3
  27. package/dist/browser/operations/azureTrafficCollectorsBySubscription.js.map +1 -0
  28. package/{dist-esm/src → dist/browser}/operations/collectorPolicies.d.ts +3 -3
  29. package/dist/browser/operations/collectorPolicies.d.ts.map +1 -0
  30. package/{dist-esm/src → dist/browser}/operations/collectorPolicies.js +82 -90
  31. package/dist/browser/operations/collectorPolicies.js.map +1 -0
  32. package/dist/browser/operations/index.d.ts +6 -0
  33. package/{dist-esm/src → dist/browser}/operations/index.d.ts.map +1 -1
  34. package/dist/browser/operations/index.js +13 -0
  35. package/dist/browser/operations/index.js.map +1 -0
  36. package/{dist-esm/src → dist/browser}/operations/networkFunction.d.ts +3 -3
  37. package/dist/browser/operations/networkFunction.d.ts.map +1 -0
  38. package/{dist-esm/src → dist/browser}/operations/networkFunction.js +2 -2
  39. package/dist/browser/operations/networkFunction.js.map +1 -0
  40. package/{dist-esm/src → dist/browser}/operationsInterfaces/azureTrafficCollectors.d.ts +1 -1
  41. package/dist/browser/operationsInterfaces/azureTrafficCollectors.d.ts.map +1 -0
  42. package/dist/browser/operationsInterfaces/azureTrafficCollectors.js.map +1 -0
  43. package/{dist-esm/src → dist/browser}/operationsInterfaces/azureTrafficCollectorsByResourceGroup.d.ts +1 -1
  44. package/{dist-esm/src → dist/browser}/operationsInterfaces/azureTrafficCollectorsByResourceGroup.d.ts.map +1 -1
  45. package/dist/browser/operationsInterfaces/azureTrafficCollectorsByResourceGroup.js.map +1 -0
  46. package/{dist-esm/src → dist/browser}/operationsInterfaces/azureTrafficCollectorsBySubscription.d.ts +1 -1
  47. package/{dist-esm/src → dist/browser}/operationsInterfaces/azureTrafficCollectorsBySubscription.d.ts.map +1 -1
  48. package/dist/browser/operationsInterfaces/azureTrafficCollectorsBySubscription.js.map +1 -0
  49. package/{dist-esm/src → dist/browser}/operationsInterfaces/collectorPolicies.d.ts +1 -1
  50. package/dist/browser/operationsInterfaces/collectorPolicies.d.ts.map +1 -0
  51. package/dist/browser/operationsInterfaces/collectorPolicies.js.map +1 -0
  52. package/dist/browser/operationsInterfaces/index.d.ts +6 -0
  53. package/{dist-esm/src → dist/browser}/operationsInterfaces/index.d.ts.map +1 -1
  54. package/dist/browser/operationsInterfaces/index.js +13 -0
  55. package/dist/browser/operationsInterfaces/index.js.map +1 -0
  56. package/{dist-esm/src → dist/browser}/operationsInterfaces/networkFunction.d.ts +1 -1
  57. package/{dist-esm/src → dist/browser}/operationsInterfaces/networkFunction.d.ts.map +1 -1
  58. package/dist/browser/operationsInterfaces/networkFunction.js.map +1 -0
  59. package/dist/browser/package.json +3 -0
  60. package/dist/browser/pagingHelper.js.map +1 -0
  61. package/dist/commonjs/azureTrafficCollectorClient.d.ts +24 -0
  62. package/dist/commonjs/azureTrafficCollectorClient.d.ts.map +1 -0
  63. package/dist/commonjs/azureTrafficCollectorClient.js +106 -0
  64. package/dist/commonjs/azureTrafficCollectorClient.js.map +1 -0
  65. package/dist/commonjs/index.d.ts +5 -0
  66. package/dist/commonjs/index.d.ts.map +1 -0
  67. package/dist/commonjs/index.js +19 -0
  68. package/dist/commonjs/index.js.map +1 -0
  69. package/dist/commonjs/lroImpl.d.ts +16 -0
  70. package/dist/commonjs/lroImpl.d.ts.map +1 -0
  71. package/dist/commonjs/lroImpl.js +29 -0
  72. package/dist/commonjs/lroImpl.js.map +1 -0
  73. package/dist/commonjs/models/index.d.ts +433 -0
  74. package/dist/commonjs/models/index.d.ts.map +1 -0
  75. package/dist/commonjs/models/index.js +69 -0
  76. package/dist/commonjs/models/index.js.map +1 -0
  77. package/dist/commonjs/models/mappers.d.ts +21 -0
  78. package/dist/commonjs/models/mappers.d.ts.map +1 -0
  79. package/dist/commonjs/models/mappers.js +523 -0
  80. package/dist/commonjs/models/mappers.js.map +1 -0
  81. package/dist/commonjs/models/parameters.d.ts +19 -0
  82. package/dist/commonjs/models/parameters.d.ts.map +1 -0
  83. package/dist/commonjs/models/parameters.js +139 -0
  84. package/dist/commonjs/models/parameters.js.map +1 -0
  85. package/dist/commonjs/operations/azureTrafficCollectors.d.ts +59 -0
  86. package/dist/commonjs/operations/azureTrafficCollectors.d.ts.map +1 -0
  87. package/dist/commonjs/operations/azureTrafficCollectors.js +252 -0
  88. package/dist/commonjs/operations/azureTrafficCollectors.js.map +1 -0
  89. package/dist/commonjs/operations/azureTrafficCollectorsByResourceGroup.d.ts +35 -0
  90. package/dist/commonjs/operations/azureTrafficCollectorsByResourceGroup.d.ts.map +1 -0
  91. package/dist/commonjs/operations/azureTrafficCollectorsByResourceGroup.js +150 -0
  92. package/dist/commonjs/operations/azureTrafficCollectorsByResourceGroup.js.map +1 -0
  93. package/dist/commonjs/operations/azureTrafficCollectorsBySubscription.d.ts +32 -0
  94. package/dist/commonjs/operations/azureTrafficCollectorsBySubscription.d.ts.map +1 -0
  95. package/dist/commonjs/operations/azureTrafficCollectorsBySubscription.js +142 -0
  96. package/dist/commonjs/operations/azureTrafficCollectorsBySubscription.js.map +1 -0
  97. package/dist/commonjs/operations/collectorPolicies.d.ts +90 -0
  98. package/dist/commonjs/operations/collectorPolicies.d.ts.map +1 -0
  99. package/dist/commonjs/operations/collectorPolicies.js +412 -0
  100. package/dist/commonjs/operations/collectorPolicies.js.map +1 -0
  101. package/dist/commonjs/operations/index.d.ts +6 -0
  102. package/dist/commonjs/operations/index.d.ts.map +1 -0
  103. package/dist/commonjs/operations/index.js +16 -0
  104. package/dist/commonjs/operations/index.js.map +1 -0
  105. package/dist/commonjs/operations/networkFunction.d.ts +26 -0
  106. package/dist/commonjs/operations/networkFunction.d.ts.map +1 -0
  107. package/dist/commonjs/operations/networkFunction.js +100 -0
  108. package/dist/commonjs/operations/networkFunction.js.map +1 -0
  109. package/dist/commonjs/operationsInterfaces/azureTrafficCollectors.d.ts +51 -0
  110. package/dist/commonjs/operationsInterfaces/azureTrafficCollectors.d.ts.map +1 -0
  111. package/dist/commonjs/operationsInterfaces/azureTrafficCollectors.js +10 -0
  112. package/dist/commonjs/operationsInterfaces/azureTrafficCollectors.js.map +1 -0
  113. package/dist/commonjs/operationsInterfaces/azureTrafficCollectorsByResourceGroup.d.ts +12 -0
  114. package/dist/commonjs/operationsInterfaces/azureTrafficCollectorsByResourceGroup.d.ts.map +1 -0
  115. package/dist/commonjs/operationsInterfaces/azureTrafficCollectorsByResourceGroup.js +10 -0
  116. package/dist/commonjs/operationsInterfaces/azureTrafficCollectorsByResourceGroup.js.map +1 -0
  117. package/dist/commonjs/operationsInterfaces/azureTrafficCollectorsBySubscription.d.ts +11 -0
  118. package/dist/commonjs/operationsInterfaces/azureTrafficCollectorsBySubscription.d.ts.map +1 -0
  119. package/dist/commonjs/operationsInterfaces/azureTrafficCollectorsBySubscription.js +10 -0
  120. package/dist/commonjs/operationsInterfaces/azureTrafficCollectorsBySubscription.js.map +1 -0
  121. package/dist/commonjs/operationsInterfaces/collectorPolicies.d.ts +65 -0
  122. package/dist/commonjs/operationsInterfaces/collectorPolicies.d.ts.map +1 -0
  123. package/dist/commonjs/operationsInterfaces/collectorPolicies.js +10 -0
  124. package/dist/commonjs/operationsInterfaces/collectorPolicies.js.map +1 -0
  125. package/dist/commonjs/operationsInterfaces/index.d.ts +6 -0
  126. package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
  127. package/dist/commonjs/operationsInterfaces/index.js +16 -0
  128. package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
  129. package/dist/commonjs/operationsInterfaces/networkFunction.d.ts +11 -0
  130. package/dist/commonjs/operationsInterfaces/networkFunction.d.ts.map +1 -0
  131. package/dist/commonjs/operationsInterfaces/networkFunction.js +10 -0
  132. package/dist/commonjs/operationsInterfaces/networkFunction.js.map +1 -0
  133. package/dist/commonjs/package.json +3 -0
  134. package/dist/commonjs/pagingHelper.d.ts +13 -0
  135. package/dist/commonjs/pagingHelper.d.ts.map +1 -0
  136. package/dist/commonjs/pagingHelper.js +36 -0
  137. package/dist/commonjs/pagingHelper.js.map +1 -0
  138. package/dist/esm/azureTrafficCollectorClient.d.ts +24 -0
  139. package/dist/esm/azureTrafficCollectorClient.d.ts.map +1 -0
  140. package/dist/esm/azureTrafficCollectorClient.js +101 -0
  141. package/dist/esm/azureTrafficCollectorClient.js.map +1 -0
  142. package/dist/esm/index.d.ts +5 -0
  143. package/dist/esm/index.d.ts.map +1 -0
  144. package/{src/index.ts → dist/esm/index.js} +5 -5
  145. package/dist/esm/index.js.map +1 -0
  146. package/dist/esm/lroImpl.d.ts +16 -0
  147. package/dist/esm/lroImpl.d.ts.map +1 -0
  148. package/dist/esm/lroImpl.js +25 -0
  149. package/dist/esm/lroImpl.js.map +1 -0
  150. package/dist/esm/models/index.d.ts +433 -0
  151. package/dist/esm/models/index.d.ts.map +1 -0
  152. package/dist/esm/models/index.js +66 -0
  153. package/dist/esm/models/index.js.map +1 -0
  154. package/dist/esm/models/mappers.d.ts +21 -0
  155. package/dist/esm/models/mappers.d.ts.map +1 -0
  156. package/dist/esm/models/mappers.js +520 -0
  157. package/dist/esm/models/mappers.js.map +1 -0
  158. package/dist/esm/models/parameters.d.ts +19 -0
  159. package/dist/esm/models/parameters.d.ts.map +1 -0
  160. package/dist/esm/models/parameters.js +136 -0
  161. package/dist/esm/models/parameters.js.map +1 -0
  162. package/dist/esm/operations/azureTrafficCollectors.d.ts +59 -0
  163. package/dist/esm/operations/azureTrafficCollectors.d.ts.map +1 -0
  164. package/dist/esm/operations/azureTrafficCollectors.js +247 -0
  165. package/dist/esm/operations/azureTrafficCollectors.js.map +1 -0
  166. package/dist/esm/operations/azureTrafficCollectorsByResourceGroup.d.ts +35 -0
  167. package/dist/esm/operations/azureTrafficCollectorsByResourceGroup.d.ts.map +1 -0
  168. package/dist/esm/operations/azureTrafficCollectorsByResourceGroup.js +146 -0
  169. package/dist/esm/operations/azureTrafficCollectorsByResourceGroup.js.map +1 -0
  170. package/dist/esm/operations/azureTrafficCollectorsBySubscription.d.ts +32 -0
  171. package/dist/esm/operations/azureTrafficCollectorsBySubscription.d.ts.map +1 -0
  172. package/dist/esm/operations/azureTrafficCollectorsBySubscription.js +138 -0
  173. package/dist/esm/operations/azureTrafficCollectorsBySubscription.js.map +1 -0
  174. package/dist/esm/operations/collectorPolicies.d.ts +90 -0
  175. package/dist/esm/operations/collectorPolicies.d.ts.map +1 -0
  176. package/dist/esm/operations/collectorPolicies.js +408 -0
  177. package/dist/esm/operations/collectorPolicies.js.map +1 -0
  178. package/dist/esm/operations/index.d.ts +6 -0
  179. package/dist/esm/operations/index.d.ts.map +1 -0
  180. package/dist/esm/operations/index.js +13 -0
  181. package/dist/esm/operations/index.js.map +1 -0
  182. package/dist/esm/operations/networkFunction.d.ts +26 -0
  183. package/dist/esm/operations/networkFunction.d.ts.map +1 -0
  184. package/dist/esm/operations/networkFunction.js +96 -0
  185. package/dist/esm/operations/networkFunction.js.map +1 -0
  186. package/dist/esm/operationsInterfaces/azureTrafficCollectors.d.ts +51 -0
  187. package/dist/esm/operationsInterfaces/azureTrafficCollectors.d.ts.map +1 -0
  188. package/dist/esm/operationsInterfaces/azureTrafficCollectors.js +9 -0
  189. package/dist/esm/operationsInterfaces/azureTrafficCollectors.js.map +1 -0
  190. package/dist/esm/operationsInterfaces/azureTrafficCollectorsByResourceGroup.d.ts +12 -0
  191. package/dist/esm/operationsInterfaces/azureTrafficCollectorsByResourceGroup.d.ts.map +1 -0
  192. package/dist/esm/operationsInterfaces/azureTrafficCollectorsByResourceGroup.js +9 -0
  193. package/dist/esm/operationsInterfaces/azureTrafficCollectorsByResourceGroup.js.map +1 -0
  194. package/dist/esm/operationsInterfaces/azureTrafficCollectorsBySubscription.d.ts +11 -0
  195. package/dist/esm/operationsInterfaces/azureTrafficCollectorsBySubscription.d.ts.map +1 -0
  196. package/dist/esm/operationsInterfaces/azureTrafficCollectorsBySubscription.js +9 -0
  197. package/dist/esm/operationsInterfaces/azureTrafficCollectorsBySubscription.js.map +1 -0
  198. package/dist/esm/operationsInterfaces/collectorPolicies.d.ts +65 -0
  199. package/dist/esm/operationsInterfaces/collectorPolicies.d.ts.map +1 -0
  200. package/dist/esm/operationsInterfaces/collectorPolicies.js +9 -0
  201. package/dist/esm/operationsInterfaces/collectorPolicies.js.map +1 -0
  202. package/dist/esm/operationsInterfaces/index.d.ts +6 -0
  203. package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
  204. package/dist/esm/operationsInterfaces/index.js +13 -0
  205. package/dist/esm/operationsInterfaces/index.js.map +1 -0
  206. package/dist/esm/operationsInterfaces/networkFunction.d.ts +11 -0
  207. package/dist/esm/operationsInterfaces/networkFunction.d.ts.map +1 -0
  208. package/dist/esm/operationsInterfaces/networkFunction.js +9 -0
  209. package/dist/esm/operationsInterfaces/networkFunction.js.map +1 -0
  210. package/dist/esm/package.json +3 -0
  211. package/dist/esm/pagingHelper.d.ts +13 -0
  212. package/dist/esm/pagingHelper.d.ts.map +1 -0
  213. package/dist/esm/pagingHelper.js +32 -0
  214. package/dist/esm/pagingHelper.js.map +1 -0
  215. package/dist/react-native/azureTrafficCollectorClient.d.ts +24 -0
  216. package/dist/react-native/azureTrafficCollectorClient.d.ts.map +1 -0
  217. package/dist/react-native/azureTrafficCollectorClient.js +101 -0
  218. package/dist/react-native/azureTrafficCollectorClient.js.map +1 -0
  219. package/dist/react-native/index.d.ts +5 -0
  220. package/dist/react-native/index.d.ts.map +1 -0
  221. package/dist/react-native/index.js +13 -0
  222. package/dist/react-native/index.js.map +1 -0
  223. package/dist/react-native/lroImpl.d.ts +16 -0
  224. package/dist/react-native/lroImpl.d.ts.map +1 -0
  225. package/dist/react-native/lroImpl.js +25 -0
  226. package/dist/react-native/lroImpl.js.map +1 -0
  227. package/dist/react-native/models/index.d.ts +433 -0
  228. package/dist/react-native/models/index.d.ts.map +1 -0
  229. package/dist/react-native/models/index.js +66 -0
  230. package/dist/react-native/models/index.js.map +1 -0
  231. package/dist/react-native/models/mappers.d.ts +21 -0
  232. package/dist/react-native/models/mappers.d.ts.map +1 -0
  233. package/dist/react-native/models/mappers.js +520 -0
  234. package/dist/react-native/models/mappers.js.map +1 -0
  235. package/dist/react-native/models/parameters.d.ts +19 -0
  236. package/dist/react-native/models/parameters.d.ts.map +1 -0
  237. package/dist/react-native/models/parameters.js +136 -0
  238. package/dist/react-native/models/parameters.js.map +1 -0
  239. package/dist/react-native/operations/azureTrafficCollectors.d.ts +59 -0
  240. package/dist/react-native/operations/azureTrafficCollectors.d.ts.map +1 -0
  241. package/dist/react-native/operations/azureTrafficCollectors.js +247 -0
  242. package/dist/react-native/operations/azureTrafficCollectors.js.map +1 -0
  243. package/dist/react-native/operations/azureTrafficCollectorsByResourceGroup.d.ts +35 -0
  244. package/dist/react-native/operations/azureTrafficCollectorsByResourceGroup.d.ts.map +1 -0
  245. package/dist/react-native/operations/azureTrafficCollectorsByResourceGroup.js +146 -0
  246. package/dist/react-native/operations/azureTrafficCollectorsByResourceGroup.js.map +1 -0
  247. package/dist/react-native/operations/azureTrafficCollectorsBySubscription.d.ts +32 -0
  248. package/dist/react-native/operations/azureTrafficCollectorsBySubscription.d.ts.map +1 -0
  249. package/dist/react-native/operations/azureTrafficCollectorsBySubscription.js +138 -0
  250. package/dist/react-native/operations/azureTrafficCollectorsBySubscription.js.map +1 -0
  251. package/dist/react-native/operations/collectorPolicies.d.ts +90 -0
  252. package/dist/react-native/operations/collectorPolicies.d.ts.map +1 -0
  253. package/dist/react-native/operations/collectorPolicies.js +408 -0
  254. package/dist/react-native/operations/collectorPolicies.js.map +1 -0
  255. package/dist/react-native/operations/index.d.ts +6 -0
  256. package/dist/react-native/operations/index.d.ts.map +1 -0
  257. package/dist/react-native/operations/index.js +13 -0
  258. package/dist/react-native/operations/index.js.map +1 -0
  259. package/dist/react-native/operations/networkFunction.d.ts +26 -0
  260. package/dist/react-native/operations/networkFunction.d.ts.map +1 -0
  261. package/dist/react-native/operations/networkFunction.js +96 -0
  262. package/dist/react-native/operations/networkFunction.js.map +1 -0
  263. package/dist/react-native/operationsInterfaces/azureTrafficCollectors.d.ts +51 -0
  264. package/dist/react-native/operationsInterfaces/azureTrafficCollectors.d.ts.map +1 -0
  265. package/dist/react-native/operationsInterfaces/azureTrafficCollectors.js +9 -0
  266. package/dist/react-native/operationsInterfaces/azureTrafficCollectors.js.map +1 -0
  267. package/dist/react-native/operationsInterfaces/azureTrafficCollectorsByResourceGroup.d.ts +12 -0
  268. package/dist/react-native/operationsInterfaces/azureTrafficCollectorsByResourceGroup.d.ts.map +1 -0
  269. package/dist/react-native/operationsInterfaces/azureTrafficCollectorsByResourceGroup.js +9 -0
  270. package/dist/react-native/operationsInterfaces/azureTrafficCollectorsByResourceGroup.js.map +1 -0
  271. package/dist/react-native/operationsInterfaces/azureTrafficCollectorsBySubscription.d.ts +11 -0
  272. package/dist/react-native/operationsInterfaces/azureTrafficCollectorsBySubscription.d.ts.map +1 -0
  273. package/dist/react-native/operationsInterfaces/azureTrafficCollectorsBySubscription.js +9 -0
  274. package/dist/react-native/operationsInterfaces/azureTrafficCollectorsBySubscription.js.map +1 -0
  275. package/dist/react-native/operationsInterfaces/collectorPolicies.d.ts +65 -0
  276. package/dist/react-native/operationsInterfaces/collectorPolicies.d.ts.map +1 -0
  277. package/dist/react-native/operationsInterfaces/collectorPolicies.js +9 -0
  278. package/dist/react-native/operationsInterfaces/collectorPolicies.js.map +1 -0
  279. package/dist/react-native/operationsInterfaces/index.d.ts +6 -0
  280. package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
  281. package/dist/react-native/operationsInterfaces/index.js +13 -0
  282. package/dist/react-native/operationsInterfaces/index.js.map +1 -0
  283. package/dist/react-native/operationsInterfaces/networkFunction.d.ts +11 -0
  284. package/dist/react-native/operationsInterfaces/networkFunction.d.ts.map +1 -0
  285. package/dist/react-native/operationsInterfaces/networkFunction.js +9 -0
  286. package/dist/react-native/operationsInterfaces/networkFunction.js.map +1 -0
  287. package/dist/react-native/package.json +3 -0
  288. package/dist/react-native/pagingHelper.d.ts +13 -0
  289. package/dist/react-native/pagingHelper.d.ts.map +1 -0
  290. package/dist/react-native/pagingHelper.js +32 -0
  291. package/dist/react-native/pagingHelper.js.map +1 -0
  292. package/package.json +70 -41
  293. package/dist/index.js +0 -1933
  294. package/dist/index.js.map +0 -1
  295. package/dist/index.min.js +0 -1
  296. package/dist/index.min.js.map +0 -1
  297. package/dist-esm/samples-dev/azureTrafficCollectorsByResourceGroupListSample.d.ts +0 -2
  298. package/dist-esm/samples-dev/azureTrafficCollectorsByResourceGroupListSample.d.ts.map +0 -1
  299. package/dist-esm/samples-dev/azureTrafficCollectorsByResourceGroupListSample.js +0 -44
  300. package/dist-esm/samples-dev/azureTrafficCollectorsByResourceGroupListSample.js.map +0 -1
  301. package/dist-esm/samples-dev/azureTrafficCollectorsBySubscriptionListSample.d.ts +0 -2
  302. package/dist-esm/samples-dev/azureTrafficCollectorsBySubscriptionListSample.d.ts.map +0 -1
  303. package/dist-esm/samples-dev/azureTrafficCollectorsBySubscriptionListSample.js +0 -43
  304. package/dist-esm/samples-dev/azureTrafficCollectorsBySubscriptionListSample.js.map +0 -1
  305. package/dist-esm/samples-dev/azureTrafficCollectorsCreateOrUpdateSample.d.ts +0 -2
  306. package/dist-esm/samples-dev/azureTrafficCollectorsCreateOrUpdateSample.d.ts.map +0 -1
  307. package/dist-esm/samples-dev/azureTrafficCollectorsCreateOrUpdateSample.js +0 -25
  308. package/dist-esm/samples-dev/azureTrafficCollectorsCreateOrUpdateSample.js.map +0 -1
  309. package/dist-esm/samples-dev/azureTrafficCollectorsDeleteSample.d.ts +0 -2
  310. package/dist-esm/samples-dev/azureTrafficCollectorsDeleteSample.d.ts.map +0 -1
  311. package/dist-esm/samples-dev/azureTrafficCollectorsDeleteSample.js +0 -29
  312. package/dist-esm/samples-dev/azureTrafficCollectorsDeleteSample.js.map +0 -1
  313. package/dist-esm/samples-dev/azureTrafficCollectorsGetSample.d.ts +0 -2
  314. package/dist-esm/samples-dev/azureTrafficCollectorsGetSample.d.ts.map +0 -1
  315. package/dist-esm/samples-dev/azureTrafficCollectorsGetSample.js +0 -29
  316. package/dist-esm/samples-dev/azureTrafficCollectorsGetSample.js.map +0 -1
  317. package/dist-esm/samples-dev/azureTrafficCollectorsUpdateTagsSample.d.ts +0 -2
  318. package/dist-esm/samples-dev/azureTrafficCollectorsUpdateTagsSample.d.ts.map +0 -1
  319. package/dist-esm/samples-dev/azureTrafficCollectorsUpdateTagsSample.js +0 -23
  320. package/dist-esm/samples-dev/azureTrafficCollectorsUpdateTagsSample.js.map +0 -1
  321. package/dist-esm/samples-dev/collectorPoliciesCreateOrUpdateSample.d.ts +0 -2
  322. package/dist-esm/samples-dev/collectorPoliciesCreateOrUpdateSample.d.ts.map +0 -1
  323. package/dist-esm/samples-dev/collectorPoliciesCreateOrUpdateSample.js +0 -31
  324. package/dist-esm/samples-dev/collectorPoliciesCreateOrUpdateSample.js.map +0 -1
  325. package/dist-esm/samples-dev/collectorPoliciesDeleteSample.d.ts +0 -2
  326. package/dist-esm/samples-dev/collectorPoliciesDeleteSample.d.ts.map +0 -1
  327. package/dist-esm/samples-dev/collectorPoliciesDeleteSample.js +0 -30
  328. package/dist-esm/samples-dev/collectorPoliciesDeleteSample.js.map +0 -1
  329. package/dist-esm/samples-dev/collectorPoliciesGetSample.d.ts +0 -2
  330. package/dist-esm/samples-dev/collectorPoliciesGetSample.d.ts.map +0 -1
  331. package/dist-esm/samples-dev/collectorPoliciesGetSample.js +0 -30
  332. package/dist-esm/samples-dev/collectorPoliciesGetSample.js.map +0 -1
  333. package/dist-esm/samples-dev/collectorPoliciesListSample.d.ts +0 -2
  334. package/dist-esm/samples-dev/collectorPoliciesListSample.d.ts.map +0 -1
  335. package/dist-esm/samples-dev/collectorPoliciesListSample.js +0 -45
  336. package/dist-esm/samples-dev/collectorPoliciesListSample.js.map +0 -1
  337. package/dist-esm/samples-dev/collectorPoliciesUpdateTagsSample.d.ts +0 -2
  338. package/dist-esm/samples-dev/collectorPoliciesUpdateTagsSample.d.ts.map +0 -1
  339. package/dist-esm/samples-dev/collectorPoliciesUpdateTagsSample.js +0 -24
  340. package/dist-esm/samples-dev/collectorPoliciesUpdateTagsSample.js.map +0 -1
  341. package/dist-esm/samples-dev/networkFunctionListOperationsSample.d.ts +0 -2
  342. package/dist-esm/samples-dev/networkFunctionListOperationsSample.d.ts.map +0 -1
  343. package/dist-esm/samples-dev/networkFunctionListOperationsSample.js +0 -43
  344. package/dist-esm/samples-dev/networkFunctionListOperationsSample.js.map +0 -1
  345. package/dist-esm/src/azureTrafficCollectorClient.d.ts.map +0 -1
  346. package/dist-esm/src/azureTrafficCollectorClient.js.map +0 -1
  347. package/dist-esm/src/index.d.ts +0 -5
  348. package/dist-esm/src/index.js.map +0 -1
  349. package/dist-esm/src/lroImpl.js +0 -29
  350. package/dist-esm/src/lroImpl.js.map +0 -1
  351. package/dist-esm/src/models/index.js.map +0 -1
  352. package/dist-esm/src/models/mappers.js.map +0 -1
  353. package/dist-esm/src/models/parameters.js.map +0 -1
  354. package/dist-esm/src/operations/azureTrafficCollectors.d.ts.map +0 -1
  355. package/dist-esm/src/operations/azureTrafficCollectors.js.map +0 -1
  356. package/dist-esm/src/operations/azureTrafficCollectorsByResourceGroup.d.ts.map +0 -1
  357. package/dist-esm/src/operations/azureTrafficCollectorsByResourceGroup.js.map +0 -1
  358. package/dist-esm/src/operations/azureTrafficCollectorsBySubscription.d.ts.map +0 -1
  359. package/dist-esm/src/operations/azureTrafficCollectorsBySubscription.js.map +0 -1
  360. package/dist-esm/src/operations/collectorPolicies.d.ts.map +0 -1
  361. package/dist-esm/src/operations/collectorPolicies.js.map +0 -1
  362. package/dist-esm/src/operations/index.d.ts +0 -6
  363. package/dist-esm/src/operations/index.js +0 -13
  364. package/dist-esm/src/operations/index.js.map +0 -1
  365. package/dist-esm/src/operations/networkFunction.d.ts.map +0 -1
  366. package/dist-esm/src/operations/networkFunction.js.map +0 -1
  367. package/dist-esm/src/operationsInterfaces/azureTrafficCollectors.d.ts.map +0 -1
  368. package/dist-esm/src/operationsInterfaces/azureTrafficCollectors.js.map +0 -1
  369. package/dist-esm/src/operationsInterfaces/azureTrafficCollectorsByResourceGroup.js.map +0 -1
  370. package/dist-esm/src/operationsInterfaces/azureTrafficCollectorsBySubscription.js.map +0 -1
  371. package/dist-esm/src/operationsInterfaces/collectorPolicies.d.ts.map +0 -1
  372. package/dist-esm/src/operationsInterfaces/collectorPolicies.js.map +0 -1
  373. package/dist-esm/src/operationsInterfaces/index.d.ts +0 -6
  374. package/dist-esm/src/operationsInterfaces/index.js +0 -13
  375. package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
  376. package/dist-esm/src/operationsInterfaces/networkFunction.js.map +0 -1
  377. package/dist-esm/src/pagingHelper.js.map +0 -1
  378. package/dist-esm/test/networkfunction_examples.spec.d.ts +0 -4
  379. package/dist-esm/test/networkfunction_examples.spec.d.ts.map +0 -1
  380. package/dist-esm/test/networkfunction_examples.spec.js +0 -73
  381. package/dist-esm/test/networkfunction_examples.spec.js.map +0 -1
  382. package/src/azureTrafficCollectorClient.ts +0 -164
  383. package/src/lroImpl.ts +0 -34
  384. package/src/models/index.ts +0 -498
  385. package/src/models/mappers.ts +0 -554
  386. package/src/models/parameters.ts +0 -162
  387. package/src/operations/azureTrafficCollectors.ts +0 -362
  388. package/src/operations/azureTrafficCollectorsByResourceGroup.ts +0 -176
  389. package/src/operations/azureTrafficCollectorsBySubscription.ts +0 -156
  390. package/src/operations/collectorPolicies.ts +0 -575
  391. package/src/operations/index.ts +0 -13
  392. package/src/operations/networkFunction.ts +0 -106
  393. package/src/operationsInterfaces/azureTrafficCollectors.ts +0 -100
  394. package/src/operationsInterfaces/azureTrafficCollectorsByResourceGroup.ts +0 -27
  395. package/src/operationsInterfaces/azureTrafficCollectorsBySubscription.ts +0 -25
  396. package/src/operationsInterfaces/collectorPolicies.ts +0 -127
  397. package/src/operationsInterfaces/index.ts +0 -13
  398. package/src/operationsInterfaces/networkFunction.ts +0 -25
  399. package/src/pagingHelper.ts +0 -39
  400. package/tsconfig.json +0 -33
  401. package/types/arm-networkfunction.d.ts +0 -668
  402. /package/{dist-esm/src → dist/browser}/lroImpl.d.ts +0 -0
  403. /package/{dist-esm/src → dist/browser}/lroImpl.d.ts.map +0 -0
  404. /package/{dist-esm/src → dist/browser}/models/index.d.ts +0 -0
  405. /package/{dist-esm/src → dist/browser}/models/index.d.ts.map +0 -0
  406. /package/{dist-esm/src → dist/browser}/models/index.js +0 -0
  407. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts +0 -0
  408. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts.map +0 -0
  409. /package/{dist-esm/src → dist/browser}/models/mappers.js +0 -0
  410. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts +0 -0
  411. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +0 -0
  412. /package/{dist-esm/src → dist/browser}/operationsInterfaces/azureTrafficCollectors.js +0 -0
  413. /package/{dist-esm/src → dist/browser}/operationsInterfaces/azureTrafficCollectorsByResourceGroup.js +0 -0
  414. /package/{dist-esm/src → dist/browser}/operationsInterfaces/azureTrafficCollectorsBySubscription.js +0 -0
  415. /package/{dist-esm/src → dist/browser}/operationsInterfaces/collectorPolicies.js +0 -0
  416. /package/{dist-esm/src → dist/browser}/operationsInterfaces/networkFunction.js +0 -0
  417. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts +0 -0
  418. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts.map +0 -0
  419. /package/{dist-esm/src → dist/browser}/pagingHelper.js +0 -0
  420. /package/{types → dist/commonjs}/tsdoc-metadata.json +0 -0
package/dist/index.js DELETED
@@ -1,1933 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var tslib = require('tslib');
6
- var coreClient = require('@azure/core-client');
7
- var coreRestPipeline = require('@azure/core-rest-pipeline');
8
- var coreLro = require('@azure/core-lro');
9
-
10
- function _interopNamespaceDefault(e) {
11
- var n = Object.create(null);
12
- if (e) {
13
- Object.keys(e).forEach(function (k) {
14
- if (k !== 'default') {
15
- var d = Object.getOwnPropertyDescriptor(e, k);
16
- Object.defineProperty(n, k, d.get ? d : {
17
- enumerable: true,
18
- get: function () { return e[k]; }
19
- });
20
- }
21
- });
22
- }
23
- n.default = e;
24
- return Object.freeze(n);
25
- }
26
-
27
- var coreClient__namespace = /*#__PURE__*/_interopNamespaceDefault(coreClient);
28
- var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespaceDefault(coreRestPipeline);
29
-
30
- /*
31
- * Copyright (c) Microsoft Corporation.
32
- * Licensed under the MIT License.
33
- *
34
- * Code generated by Microsoft (R) AutoRest Code Generator.
35
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
36
- */
37
- const pageMap = new WeakMap();
38
- /**
39
- * Given a result page from a pageable operation, returns a
40
- * continuation token that can be used to begin paging from
41
- * that point later.
42
- * @param page A result object from calling .byPage() on a paged operation.
43
- * @returns The continuation token that can be passed into byPage().
44
- */
45
- function getContinuationToken(page) {
46
- var _a;
47
- if (typeof page !== "object" || page === null) {
48
- return undefined;
49
- }
50
- return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
51
- }
52
- function setContinuationToken(page, continuationToken) {
53
- var _a;
54
- if (typeof page !== "object" || page === null || !continuationToken) {
55
- return;
56
- }
57
- const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
58
- pageInfo.continuationToken = continuationToken;
59
- pageMap.set(page, pageInfo);
60
- }
61
-
62
- /*
63
- * Copyright (c) Microsoft Corporation.
64
- * Licensed under the MIT License.
65
- *
66
- * Code generated by Microsoft (R) AutoRest Code Generator.
67
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
68
- */
69
- /** Known values of {@link ProvisioningState} that the service accepts. */
70
- exports.KnownProvisioningState = void 0;
71
- (function (KnownProvisioningState) {
72
- /** Succeeded */
73
- KnownProvisioningState["Succeeded"] = "Succeeded";
74
- /** Updating */
75
- KnownProvisioningState["Updating"] = "Updating";
76
- /** Deleting */
77
- KnownProvisioningState["Deleting"] = "Deleting";
78
- /** Failed */
79
- KnownProvisioningState["Failed"] = "Failed";
80
- })(exports.KnownProvisioningState || (exports.KnownProvisioningState = {}));
81
- /** Known values of {@link CreatedByType} that the service accepts. */
82
- exports.KnownCreatedByType = void 0;
83
- (function (KnownCreatedByType) {
84
- /** User */
85
- KnownCreatedByType["User"] = "User";
86
- /** Application */
87
- KnownCreatedByType["Application"] = "Application";
88
- /** ManagedIdentity */
89
- KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
90
- /** Key */
91
- KnownCreatedByType["Key"] = "Key";
92
- })(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
93
- /** Known values of {@link IngestionType} that the service accepts. */
94
- exports.KnownIngestionType = void 0;
95
- (function (KnownIngestionType) {
96
- /** Ipfix */
97
- KnownIngestionType["Ipfix"] = "IPFIX";
98
- })(exports.KnownIngestionType || (exports.KnownIngestionType = {}));
99
- /** Known values of {@link SourceType} that the service accepts. */
100
- exports.KnownSourceType = void 0;
101
- (function (KnownSourceType) {
102
- /** Resource */
103
- KnownSourceType["Resource"] = "Resource";
104
- })(exports.KnownSourceType || (exports.KnownSourceType = {}));
105
- /** Known values of {@link EmissionType} that the service accepts. */
106
- exports.KnownEmissionType = void 0;
107
- (function (KnownEmissionType) {
108
- /** Ipfix */
109
- KnownEmissionType["Ipfix"] = "IPFIX";
110
- })(exports.KnownEmissionType || (exports.KnownEmissionType = {}));
111
- /** Known values of {@link DestinationType} that the service accepts. */
112
- exports.KnownDestinationType = void 0;
113
- (function (KnownDestinationType) {
114
- /** AzureMonitor */
115
- KnownDestinationType["AzureMonitor"] = "AzureMonitor";
116
- })(exports.KnownDestinationType || (exports.KnownDestinationType = {}));
117
- /** Known values of {@link ApiVersionParameter} that the service accepts. */
118
- exports.KnownApiVersionParameter = void 0;
119
- (function (KnownApiVersionParameter) {
120
- /** TwoThousandTwentyTwo0501 */
121
- KnownApiVersionParameter["TwoThousandTwentyTwo0501"] = "2022-05-01";
122
- /** TwoThousandTwentyTwo0801 */
123
- KnownApiVersionParameter["TwoThousandTwentyTwo0801"] = "2022-08-01";
124
- /** TwoThousandTwentyTwo1101 */
125
- KnownApiVersionParameter["TwoThousandTwentyTwo1101"] = "2022-11-01";
126
- })(exports.KnownApiVersionParameter || (exports.KnownApiVersionParameter = {}));
127
-
128
- /*
129
- * Copyright (c) Microsoft Corporation.
130
- * Licensed under the MIT License.
131
- *
132
- * Code generated by Microsoft (R) AutoRest Code Generator.
133
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
134
- */
135
- const OperationListResult = {
136
- type: {
137
- name: "Composite",
138
- className: "OperationListResult",
139
- modelProperties: {
140
- value: {
141
- serializedName: "value",
142
- type: {
143
- name: "Sequence",
144
- element: {
145
- type: {
146
- name: "Composite",
147
- className: "Operation"
148
- }
149
- }
150
- }
151
- },
152
- nextLink: {
153
- serializedName: "nextLink",
154
- type: {
155
- name: "String"
156
- }
157
- }
158
- }
159
- }
160
- };
161
- const Operation = {
162
- type: {
163
- name: "Composite",
164
- className: "Operation",
165
- modelProperties: {
166
- name: {
167
- serializedName: "name",
168
- type: {
169
- name: "String"
170
- }
171
- },
172
- isDataAction: {
173
- defaultValue: false,
174
- serializedName: "isDataAction",
175
- type: {
176
- name: "Boolean"
177
- }
178
- },
179
- display: {
180
- serializedName: "display",
181
- type: {
182
- name: "Composite",
183
- className: "OperationDisplay"
184
- }
185
- },
186
- origin: {
187
- serializedName: "origin",
188
- type: {
189
- name: "String"
190
- }
191
- }
192
- }
193
- }
194
- };
195
- const OperationDisplay = {
196
- type: {
197
- name: "Composite",
198
- className: "OperationDisplay",
199
- modelProperties: {
200
- provider: {
201
- serializedName: "provider",
202
- type: {
203
- name: "String"
204
- }
205
- },
206
- resource: {
207
- serializedName: "resource",
208
- type: {
209
- name: "String"
210
- }
211
- },
212
- operation: {
213
- serializedName: "operation",
214
- type: {
215
- name: "String"
216
- }
217
- },
218
- description: {
219
- serializedName: "description",
220
- type: {
221
- name: "String"
222
- }
223
- }
224
- }
225
- }
226
- };
227
- const CloudError = {
228
- type: {
229
- name: "Composite",
230
- className: "CloudError",
231
- modelProperties: {
232
- error: {
233
- serializedName: "error",
234
- type: {
235
- name: "Composite",
236
- className: "CloudErrorBody"
237
- }
238
- }
239
- }
240
- }
241
- };
242
- const CloudErrorBody = {
243
- type: {
244
- name: "Composite",
245
- className: "CloudErrorBody",
246
- modelProperties: {
247
- code: {
248
- serializedName: "code",
249
- type: {
250
- name: "String"
251
- }
252
- },
253
- message: {
254
- serializedName: "message",
255
- type: {
256
- name: "String"
257
- }
258
- },
259
- target: {
260
- serializedName: "target",
261
- type: {
262
- name: "String"
263
- }
264
- },
265
- details: {
266
- serializedName: "details",
267
- type: {
268
- name: "Sequence",
269
- element: {
270
- type: {
271
- name: "Composite",
272
- className: "CloudErrorBody"
273
- }
274
- }
275
- }
276
- }
277
- }
278
- }
279
- };
280
- const AzureTrafficCollectorListResult = {
281
- type: {
282
- name: "Composite",
283
- className: "AzureTrafficCollectorListResult",
284
- modelProperties: {
285
- value: {
286
- serializedName: "value",
287
- type: {
288
- name: "Sequence",
289
- element: {
290
- type: {
291
- name: "Composite",
292
- className: "AzureTrafficCollector"
293
- }
294
- }
295
- }
296
- },
297
- nextLink: {
298
- serializedName: "nextLink",
299
- readOnly: true,
300
- type: {
301
- name: "String"
302
- }
303
- }
304
- }
305
- }
306
- };
307
- const ResourceReference = {
308
- type: {
309
- name: "Composite",
310
- className: "ResourceReference",
311
- modelProperties: {
312
- id: {
313
- serializedName: "id",
314
- readOnly: true,
315
- type: {
316
- name: "String"
317
- }
318
- }
319
- }
320
- }
321
- };
322
- const TrackedResource = {
323
- type: {
324
- name: "Composite",
325
- className: "TrackedResource",
326
- modelProperties: {
327
- id: {
328
- serializedName: "id",
329
- readOnly: true,
330
- type: {
331
- name: "String"
332
- }
333
- },
334
- name: {
335
- serializedName: "name",
336
- readOnly: true,
337
- type: {
338
- name: "String"
339
- }
340
- },
341
- type: {
342
- serializedName: "type",
343
- readOnly: true,
344
- type: {
345
- name: "String"
346
- }
347
- },
348
- location: {
349
- serializedName: "location",
350
- required: true,
351
- type: {
352
- name: "String"
353
- }
354
- },
355
- tags: {
356
- serializedName: "tags",
357
- type: {
358
- name: "Dictionary",
359
- value: { type: { name: "String" } }
360
- }
361
- },
362
- systemData: {
363
- serializedName: "systemData",
364
- type: {
365
- name: "Composite",
366
- className: "TrackedResourceSystemData"
367
- }
368
- }
369
- }
370
- }
371
- };
372
- const SystemData = {
373
- type: {
374
- name: "Composite",
375
- className: "SystemData",
376
- modelProperties: {
377
- createdBy: {
378
- serializedName: "createdBy",
379
- type: {
380
- name: "String"
381
- }
382
- },
383
- createdByType: {
384
- serializedName: "createdByType",
385
- type: {
386
- name: "String"
387
- }
388
- },
389
- createdAt: {
390
- serializedName: "createdAt",
391
- type: {
392
- name: "DateTime"
393
- }
394
- },
395
- lastModifiedBy: {
396
- serializedName: "lastModifiedBy",
397
- type: {
398
- name: "String"
399
- }
400
- },
401
- lastModifiedByType: {
402
- serializedName: "lastModifiedByType",
403
- type: {
404
- name: "String"
405
- }
406
- }
407
- }
408
- }
409
- };
410
- const TagsObject = {
411
- type: {
412
- name: "Composite",
413
- className: "TagsObject",
414
- modelProperties: {
415
- tags: {
416
- serializedName: "tags",
417
- type: {
418
- name: "Dictionary",
419
- value: { type: { name: "String" } }
420
- }
421
- }
422
- }
423
- }
424
- };
425
- const CollectorPolicyListResult = {
426
- type: {
427
- name: "Composite",
428
- className: "CollectorPolicyListResult",
429
- modelProperties: {
430
- value: {
431
- serializedName: "value",
432
- type: {
433
- name: "Sequence",
434
- element: {
435
- type: {
436
- name: "Composite",
437
- className: "CollectorPolicy"
438
- }
439
- }
440
- }
441
- },
442
- nextLink: {
443
- serializedName: "nextLink",
444
- readOnly: true,
445
- type: {
446
- name: "String"
447
- }
448
- }
449
- }
450
- }
451
- };
452
- const IngestionPolicyPropertiesFormat = {
453
- type: {
454
- name: "Composite",
455
- className: "IngestionPolicyPropertiesFormat",
456
- modelProperties: {
457
- ingestionType: {
458
- serializedName: "ingestionType",
459
- type: {
460
- name: "String"
461
- }
462
- },
463
- ingestionSources: {
464
- serializedName: "ingestionSources",
465
- type: {
466
- name: "Sequence",
467
- element: {
468
- type: {
469
- name: "Composite",
470
- className: "IngestionSourcesPropertiesFormat"
471
- }
472
- }
473
- }
474
- }
475
- }
476
- }
477
- };
478
- const IngestionSourcesPropertiesFormat = {
479
- type: {
480
- name: "Composite",
481
- className: "IngestionSourcesPropertiesFormat",
482
- modelProperties: {
483
- sourceType: {
484
- serializedName: "sourceType",
485
- type: {
486
- name: "String"
487
- }
488
- },
489
- resourceId: {
490
- serializedName: "resourceId",
491
- type: {
492
- name: "String"
493
- }
494
- }
495
- }
496
- }
497
- };
498
- const EmissionPoliciesPropertiesFormat = {
499
- type: {
500
- name: "Composite",
501
- className: "EmissionPoliciesPropertiesFormat",
502
- modelProperties: {
503
- emissionType: {
504
- serializedName: "emissionType",
505
- type: {
506
- name: "String"
507
- }
508
- },
509
- emissionDestinations: {
510
- serializedName: "emissionDestinations",
511
- type: {
512
- name: "Sequence",
513
- element: {
514
- type: {
515
- name: "Composite",
516
- className: "EmissionPolicyDestination"
517
- }
518
- }
519
- }
520
- }
521
- }
522
- }
523
- };
524
- const EmissionPolicyDestination = {
525
- type: {
526
- name: "Composite",
527
- className: "EmissionPolicyDestination",
528
- modelProperties: {
529
- destinationType: {
530
- serializedName: "destinationType",
531
- type: {
532
- name: "String"
533
- }
534
- }
535
- }
536
- }
537
- };
538
- const ProxyResource = {
539
- type: {
540
- name: "Composite",
541
- className: "ProxyResource",
542
- modelProperties: {
543
- id: {
544
- serializedName: "id",
545
- readOnly: true,
546
- type: {
547
- name: "String"
548
- }
549
- },
550
- type: {
551
- serializedName: "type",
552
- readOnly: true,
553
- type: {
554
- name: "String"
555
- }
556
- },
557
- name: {
558
- serializedName: "name",
559
- readOnly: true,
560
- type: {
561
- name: "String"
562
- }
563
- }
564
- }
565
- }
566
- };
567
- const AzureTrafficCollector = {
568
- type: {
569
- name: "Composite",
570
- className: "AzureTrafficCollector",
571
- modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { etag: {
572
- serializedName: "etag",
573
- readOnly: true,
574
- type: {
575
- name: "String"
576
- }
577
- }, collectorPolicies: {
578
- serializedName: "properties.collectorPolicies",
579
- readOnly: true,
580
- type: {
581
- name: "Sequence",
582
- element: {
583
- type: {
584
- name: "Composite",
585
- className: "ResourceReference"
586
- }
587
- }
588
- }
589
- }, virtualHub: {
590
- serializedName: "properties.virtualHub",
591
- type: {
592
- name: "Composite",
593
- className: "ResourceReference"
594
- }
595
- }, provisioningState: {
596
- serializedName: "properties.provisioningState",
597
- readOnly: true,
598
- type: {
599
- name: "String"
600
- }
601
- } })
602
- }
603
- };
604
- const CollectorPolicy = {
605
- type: {
606
- name: "Composite",
607
- className: "CollectorPolicy",
608
- modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { etag: {
609
- serializedName: "etag",
610
- readOnly: true,
611
- type: {
612
- name: "String"
613
- }
614
- }, ingestionPolicy: {
615
- serializedName: "properties.ingestionPolicy",
616
- type: {
617
- name: "Composite",
618
- className: "IngestionPolicyPropertiesFormat"
619
- }
620
- }, emissionPolicies: {
621
- serializedName: "properties.emissionPolicies",
622
- type: {
623
- name: "Sequence",
624
- element: {
625
- type: {
626
- name: "Composite",
627
- className: "EmissionPoliciesPropertiesFormat"
628
- }
629
- }
630
- }
631
- }, provisioningState: {
632
- serializedName: "properties.provisioningState",
633
- readOnly: true,
634
- type: {
635
- name: "String"
636
- }
637
- } })
638
- }
639
- };
640
- const TrackedResourceSystemData = {
641
- type: {
642
- name: "Composite",
643
- className: "TrackedResourceSystemData",
644
- modelProperties: Object.assign({}, SystemData.type.modelProperties)
645
- }
646
- };
647
-
648
- var Mappers = /*#__PURE__*/Object.freeze({
649
- __proto__: null,
650
- AzureTrafficCollector: AzureTrafficCollector,
651
- AzureTrafficCollectorListResult: AzureTrafficCollectorListResult,
652
- CloudError: CloudError,
653
- CloudErrorBody: CloudErrorBody,
654
- CollectorPolicy: CollectorPolicy,
655
- CollectorPolicyListResult: CollectorPolicyListResult,
656
- EmissionPoliciesPropertiesFormat: EmissionPoliciesPropertiesFormat,
657
- EmissionPolicyDestination: EmissionPolicyDestination,
658
- IngestionPolicyPropertiesFormat: IngestionPolicyPropertiesFormat,
659
- IngestionSourcesPropertiesFormat: IngestionSourcesPropertiesFormat,
660
- Operation: Operation,
661
- OperationDisplay: OperationDisplay,
662
- OperationListResult: OperationListResult,
663
- ProxyResource: ProxyResource,
664
- ResourceReference: ResourceReference,
665
- SystemData: SystemData,
666
- TagsObject: TagsObject,
667
- TrackedResource: TrackedResource,
668
- TrackedResourceSystemData: TrackedResourceSystemData
669
- });
670
-
671
- /*
672
- * Copyright (c) Microsoft Corporation.
673
- * Licensed under the MIT License.
674
- *
675
- * Code generated by Microsoft (R) AutoRest Code Generator.
676
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
677
- */
678
- const accept = {
679
- parameterPath: "accept",
680
- mapper: {
681
- defaultValue: "application/json",
682
- isConstant: true,
683
- serializedName: "Accept",
684
- type: {
685
- name: "String"
686
- }
687
- }
688
- };
689
- const $host = {
690
- parameterPath: "$host",
691
- mapper: {
692
- serializedName: "$host",
693
- required: true,
694
- type: {
695
- name: "String"
696
- }
697
- },
698
- skipEncoding: true
699
- };
700
- const apiVersion = {
701
- parameterPath: "apiVersion",
702
- mapper: {
703
- defaultValue: "2022-11-01",
704
- isConstant: true,
705
- serializedName: "api-version",
706
- type: {
707
- name: "String"
708
- }
709
- }
710
- };
711
- const subscriptionId = {
712
- parameterPath: "subscriptionId",
713
- mapper: {
714
- serializedName: "subscriptionId",
715
- required: true,
716
- type: {
717
- name: "String"
718
- }
719
- }
720
- };
721
- const nextLink = {
722
- parameterPath: "nextLink",
723
- mapper: {
724
- serializedName: "nextLink",
725
- required: true,
726
- type: {
727
- name: "String"
728
- }
729
- },
730
- skipEncoding: true
731
- };
732
- const resourceGroupName = {
733
- parameterPath: "resourceGroupName",
734
- mapper: {
735
- serializedName: "resourceGroupName",
736
- required: true,
737
- type: {
738
- name: "String"
739
- }
740
- }
741
- };
742
- const azureTrafficCollectorName = {
743
- parameterPath: "azureTrafficCollectorName",
744
- mapper: {
745
- serializedName: "azureTrafficCollectorName",
746
- required: true,
747
- type: {
748
- name: "String"
749
- }
750
- }
751
- };
752
- const contentType = {
753
- parameterPath: ["options", "contentType"],
754
- mapper: {
755
- defaultValue: "application/json",
756
- isConstant: true,
757
- serializedName: "Content-Type",
758
- type: {
759
- name: "String"
760
- }
761
- }
762
- };
763
- const parameters1 = {
764
- parameterPath: "parameters",
765
- mapper: TagsObject
766
- };
767
- const collectorPolicyName = {
768
- parameterPath: "collectorPolicyName",
769
- mapper: {
770
- serializedName: "collectorPolicyName",
771
- required: true,
772
- type: {
773
- name: "String"
774
- }
775
- }
776
- };
777
-
778
- /*
779
- * Copyright (c) Microsoft Corporation.
780
- * Licensed under the MIT License.
781
- *
782
- * Code generated by Microsoft (R) AutoRest Code Generator.
783
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
784
- */
785
- /// <reference lib="esnext.asynciterable" />
786
- /** Class containing NetworkFunction operations. */
787
- class NetworkFunctionImpl {
788
- /**
789
- * Initialize a new instance of the class NetworkFunction class.
790
- * @param client Reference to the service client
791
- */
792
- constructor(client) {
793
- this.client = client;
794
- }
795
- /**
796
- * Lists all of the available NetworkFunction Rest API operations.
797
- * @param options The options parameters.
798
- */
799
- listOperations(options) {
800
- const iter = this.listOperationsPagingAll(options);
801
- return {
802
- next() {
803
- return iter.next();
804
- },
805
- [Symbol.asyncIterator]() {
806
- return this;
807
- },
808
- byPage: (settings) => {
809
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
810
- throw new Error("maxPageSize is not supported by this operation.");
811
- }
812
- return this.listOperationsPagingPage(options, settings);
813
- }
814
- };
815
- }
816
- listOperationsPagingPage(options, _settings) {
817
- return tslib.__asyncGenerator(this, arguments, function* listOperationsPagingPage_1() {
818
- let result;
819
- result = yield tslib.__await(this._listOperations(options));
820
- yield yield tslib.__await(result.value || []);
821
- });
822
- }
823
- listOperationsPagingAll(options) {
824
- return tslib.__asyncGenerator(this, arguments, function* listOperationsPagingAll_1() {
825
- var _a, e_1, _b, _c;
826
- try {
827
- for (var _d = true, _e = tslib.__asyncValues(this.listOperationsPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
828
- _c = _f.value;
829
- _d = false;
830
- const page = _c;
831
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
832
- }
833
- }
834
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
835
- finally {
836
- try {
837
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
838
- }
839
- finally { if (e_1) throw e_1.error; }
840
- }
841
- });
842
- }
843
- /**
844
- * Lists all of the available NetworkFunction Rest API operations.
845
- * @param options The options parameters.
846
- */
847
- _listOperations(options) {
848
- return this.client.sendOperationRequest({ options }, listOperationsOperationSpec);
849
- }
850
- }
851
- // Operation Specifications
852
- const serializer$4 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
853
- const listOperationsOperationSpec = {
854
- path: "/providers/Microsoft.NetworkFunction/operations",
855
- httpMethod: "GET",
856
- responses: {
857
- 200: {
858
- bodyMapper: OperationListResult
859
- },
860
- default: {
861
- bodyMapper: CloudError
862
- }
863
- },
864
- queryParameters: [apiVersion],
865
- urlParameters: [$host],
866
- headerParameters: [accept],
867
- serializer: serializer$4
868
- };
869
-
870
- /*
871
- * Copyright (c) Microsoft Corporation.
872
- * Licensed under the MIT License.
873
- *
874
- * Code generated by Microsoft (R) AutoRest Code Generator.
875
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
876
- */
877
- /// <reference lib="esnext.asynciterable" />
878
- /** Class containing AzureTrafficCollectorsBySubscription operations. */
879
- class AzureTrafficCollectorsBySubscriptionImpl {
880
- /**
881
- * Initialize a new instance of the class AzureTrafficCollectorsBySubscription class.
882
- * @param client Reference to the service client
883
- */
884
- constructor(client) {
885
- this.client = client;
886
- }
887
- /**
888
- * Return list of Azure Traffic Collectors in a subscription
889
- * @param options The options parameters.
890
- */
891
- list(options) {
892
- const iter = this.listPagingAll(options);
893
- return {
894
- next() {
895
- return iter.next();
896
- },
897
- [Symbol.asyncIterator]() {
898
- return this;
899
- },
900
- byPage: (settings) => {
901
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
902
- throw new Error("maxPageSize is not supported by this operation.");
903
- }
904
- return this.listPagingPage(options, settings);
905
- }
906
- };
907
- }
908
- listPagingPage(options, settings) {
909
- return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
910
- let result;
911
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
912
- if (!continuationToken) {
913
- result = yield tslib.__await(this._list(options));
914
- let page = result.value || [];
915
- continuationToken = result.nextLink;
916
- setContinuationToken(page, continuationToken);
917
- yield yield tslib.__await(page);
918
- }
919
- while (continuationToken) {
920
- result = yield tslib.__await(this._listNext(continuationToken, options));
921
- continuationToken = result.nextLink;
922
- let page = result.value || [];
923
- setContinuationToken(page, continuationToken);
924
- yield yield tslib.__await(page);
925
- }
926
- });
927
- }
928
- listPagingAll(options) {
929
- return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
930
- var _a, e_1, _b, _c;
931
- try {
932
- for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
933
- _c = _f.value;
934
- _d = false;
935
- const page = _c;
936
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
937
- }
938
- }
939
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
940
- finally {
941
- try {
942
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
943
- }
944
- finally { if (e_1) throw e_1.error; }
945
- }
946
- });
947
- }
948
- /**
949
- * Return list of Azure Traffic Collectors in a subscription
950
- * @param options The options parameters.
951
- */
952
- _list(options) {
953
- return this.client.sendOperationRequest({ options }, listOperationSpec$2);
954
- }
955
- /**
956
- * ListNext
957
- * @param nextLink The nextLink from the previous successful call to the List method.
958
- * @param options The options parameters.
959
- */
960
- _listNext(nextLink, options) {
961
- return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$2);
962
- }
963
- }
964
- // Operation Specifications
965
- const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
966
- const listOperationSpec$2 = {
967
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkFunction/azureTrafficCollectors",
968
- httpMethod: "GET",
969
- responses: {
970
- 200: {
971
- bodyMapper: AzureTrafficCollectorListResult
972
- },
973
- default: {
974
- bodyMapper: CloudError
975
- }
976
- },
977
- queryParameters: [apiVersion],
978
- urlParameters: [$host, subscriptionId],
979
- headerParameters: [accept],
980
- serializer: serializer$3
981
- };
982
- const listNextOperationSpec$2 = {
983
- path: "{nextLink}",
984
- httpMethod: "GET",
985
- responses: {
986
- 200: {
987
- bodyMapper: AzureTrafficCollectorListResult
988
- },
989
- default: {
990
- bodyMapper: CloudError
991
- }
992
- },
993
- queryParameters: [apiVersion],
994
- urlParameters: [
995
- $host,
996
- subscriptionId,
997
- nextLink
998
- ],
999
- headerParameters: [accept],
1000
- serializer: serializer$3
1001
- };
1002
-
1003
- /*
1004
- * Copyright (c) Microsoft Corporation.
1005
- * Licensed under the MIT License.
1006
- *
1007
- * Code generated by Microsoft (R) AutoRest Code Generator.
1008
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1009
- */
1010
- /// <reference lib="esnext.asynciterable" />
1011
- /** Class containing AzureTrafficCollectorsByResourceGroup operations. */
1012
- class AzureTrafficCollectorsByResourceGroupImpl {
1013
- /**
1014
- * Initialize a new instance of the class AzureTrafficCollectorsByResourceGroup class.
1015
- * @param client Reference to the service client
1016
- */
1017
- constructor(client) {
1018
- this.client = client;
1019
- }
1020
- /**
1021
- * Return list of Azure Traffic Collectors in a Resource Group
1022
- * @param resourceGroupName The name of the resource group.
1023
- * @param options The options parameters.
1024
- */
1025
- list(resourceGroupName, options) {
1026
- const iter = this.listPagingAll(resourceGroupName, options);
1027
- return {
1028
- next() {
1029
- return iter.next();
1030
- },
1031
- [Symbol.asyncIterator]() {
1032
- return this;
1033
- },
1034
- byPage: (settings) => {
1035
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
1036
- throw new Error("maxPageSize is not supported by this operation.");
1037
- }
1038
- return this.listPagingPage(resourceGroupName, options, settings);
1039
- }
1040
- };
1041
- }
1042
- listPagingPage(resourceGroupName, options, settings) {
1043
- return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
1044
- let result;
1045
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
1046
- if (!continuationToken) {
1047
- result = yield tslib.__await(this._list(resourceGroupName, options));
1048
- let page = result.value || [];
1049
- continuationToken = result.nextLink;
1050
- setContinuationToken(page, continuationToken);
1051
- yield yield tslib.__await(page);
1052
- }
1053
- while (continuationToken) {
1054
- result = yield tslib.__await(this._listNext(resourceGroupName, continuationToken, options));
1055
- continuationToken = result.nextLink;
1056
- let page = result.value || [];
1057
- setContinuationToken(page, continuationToken);
1058
- yield yield tslib.__await(page);
1059
- }
1060
- });
1061
- }
1062
- listPagingAll(resourceGroupName, options) {
1063
- return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
1064
- var _a, e_1, _b, _c;
1065
- try {
1066
- for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
1067
- _c = _f.value;
1068
- _d = false;
1069
- const page = _c;
1070
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1071
- }
1072
- }
1073
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
1074
- finally {
1075
- try {
1076
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
1077
- }
1078
- finally { if (e_1) throw e_1.error; }
1079
- }
1080
- });
1081
- }
1082
- /**
1083
- * Return list of Azure Traffic Collectors in a Resource Group
1084
- * @param resourceGroupName The name of the resource group.
1085
- * @param options The options parameters.
1086
- */
1087
- _list(resourceGroupName, options) {
1088
- return this.client.sendOperationRequest({ resourceGroupName, options }, listOperationSpec$1);
1089
- }
1090
- /**
1091
- * ListNext
1092
- * @param resourceGroupName The name of the resource group.
1093
- * @param nextLink The nextLink from the previous successful call to the List method.
1094
- * @param options The options parameters.
1095
- */
1096
- _listNext(resourceGroupName, nextLink, options) {
1097
- return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listNextOperationSpec$1);
1098
- }
1099
- }
1100
- // Operation Specifications
1101
- const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
1102
- const listOperationSpec$1 = {
1103
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors",
1104
- httpMethod: "GET",
1105
- responses: {
1106
- 200: {
1107
- bodyMapper: AzureTrafficCollectorListResult
1108
- },
1109
- default: {
1110
- bodyMapper: CloudError
1111
- }
1112
- },
1113
- queryParameters: [apiVersion],
1114
- urlParameters: [
1115
- $host,
1116
- subscriptionId,
1117
- resourceGroupName
1118
- ],
1119
- headerParameters: [accept],
1120
- serializer: serializer$2
1121
- };
1122
- const listNextOperationSpec$1 = {
1123
- path: "{nextLink}",
1124
- httpMethod: "GET",
1125
- responses: {
1126
- 200: {
1127
- bodyMapper: AzureTrafficCollectorListResult
1128
- },
1129
- default: {
1130
- bodyMapper: CloudError
1131
- }
1132
- },
1133
- queryParameters: [apiVersion],
1134
- urlParameters: [
1135
- $host,
1136
- subscriptionId,
1137
- nextLink,
1138
- resourceGroupName
1139
- ],
1140
- headerParameters: [accept],
1141
- serializer: serializer$2
1142
- };
1143
-
1144
- /*
1145
- * Copyright (c) Microsoft Corporation.
1146
- * Licensed under the MIT License.
1147
- *
1148
- * Code generated by Microsoft (R) AutoRest Code Generator.
1149
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1150
- */
1151
- class LroImpl {
1152
- constructor(sendOperationFn, args, spec, requestPath = spec.path, requestMethod = spec.httpMethod) {
1153
- this.sendOperationFn = sendOperationFn;
1154
- this.args = args;
1155
- this.spec = spec;
1156
- this.requestPath = requestPath;
1157
- this.requestMethod = requestMethod;
1158
- }
1159
- sendInitialRequest() {
1160
- return tslib.__awaiter(this, void 0, void 0, function* () {
1161
- return this.sendOperationFn(this.args, this.spec);
1162
- });
1163
- }
1164
- sendPollRequest(path) {
1165
- return tslib.__awaiter(this, void 0, void 0, function* () {
1166
- const _a = this.spec, { requestBody } = _a, restSpec = tslib.__rest(_a, ["requestBody"]);
1167
- return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
1168
- });
1169
- }
1170
- }
1171
-
1172
- /*
1173
- * Copyright (c) Microsoft Corporation.
1174
- * Licensed under the MIT License.
1175
- *
1176
- * Code generated by Microsoft (R) AutoRest Code Generator.
1177
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1178
- */
1179
- /** Class containing AzureTrafficCollectors operations. */
1180
- class AzureTrafficCollectorsImpl {
1181
- /**
1182
- * Initialize a new instance of the class AzureTrafficCollectors class.
1183
- * @param client Reference to the service client
1184
- */
1185
- constructor(client) {
1186
- this.client = client;
1187
- }
1188
- /**
1189
- * Gets the specified Azure Traffic Collector in a specified resource group
1190
- * @param resourceGroupName The name of the resource group.
1191
- * @param azureTrafficCollectorName Azure Traffic Collector name
1192
- * @param options The options parameters.
1193
- */
1194
- get(resourceGroupName, azureTrafficCollectorName, options) {
1195
- return this.client.sendOperationRequest({ resourceGroupName, azureTrafficCollectorName, options }, getOperationSpec$1);
1196
- }
1197
- /**
1198
- * Creates or updates a Azure Traffic Collector resource
1199
- * @param resourceGroupName The name of the resource group.
1200
- * @param azureTrafficCollectorName Azure Traffic Collector name
1201
- * @param location Resource location.
1202
- * @param options The options parameters.
1203
- */
1204
- beginCreateOrUpdate(resourceGroupName, azureTrafficCollectorName, location, options) {
1205
- return tslib.__awaiter(this, void 0, void 0, function* () {
1206
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1207
- return this.client.sendOperationRequest(args, spec);
1208
- });
1209
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1210
- var _a;
1211
- let currentRawResponse = undefined;
1212
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1213
- const callback = (rawResponse, flatResponse) => {
1214
- currentRawResponse = rawResponse;
1215
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1216
- };
1217
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1218
- const flatResponse = yield directSendOperation(updatedArgs, spec);
1219
- return {
1220
- flatResponse,
1221
- rawResponse: {
1222
- statusCode: currentRawResponse.status,
1223
- body: currentRawResponse.parsedBody,
1224
- headers: currentRawResponse.headers.toJSON()
1225
- }
1226
- };
1227
- });
1228
- const lro = new LroImpl(sendOperation, { resourceGroupName, azureTrafficCollectorName, location, options }, createOrUpdateOperationSpec$1);
1229
- const poller = new coreLro.LroEngine(lro, {
1230
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1231
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
1232
- lroResourceLocationConfig: "azure-async-operation"
1233
- });
1234
- yield poller.poll();
1235
- return poller;
1236
- });
1237
- }
1238
- /**
1239
- * Creates or updates a Azure Traffic Collector resource
1240
- * @param resourceGroupName The name of the resource group.
1241
- * @param azureTrafficCollectorName Azure Traffic Collector name
1242
- * @param location Resource location.
1243
- * @param options The options parameters.
1244
- */
1245
- beginCreateOrUpdateAndWait(resourceGroupName, azureTrafficCollectorName, location, options) {
1246
- return tslib.__awaiter(this, void 0, void 0, function* () {
1247
- const poller = yield this.beginCreateOrUpdate(resourceGroupName, azureTrafficCollectorName, location, options);
1248
- return poller.pollUntilDone();
1249
- });
1250
- }
1251
- /**
1252
- * Deletes a specified Azure Traffic Collector resource.
1253
- * @param resourceGroupName The name of the resource group.
1254
- * @param azureTrafficCollectorName Azure Traffic Collector name
1255
- * @param options The options parameters.
1256
- */
1257
- beginDelete(resourceGroupName, azureTrafficCollectorName, options) {
1258
- return tslib.__awaiter(this, void 0, void 0, function* () {
1259
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1260
- return this.client.sendOperationRequest(args, spec);
1261
- });
1262
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1263
- var _a;
1264
- let currentRawResponse = undefined;
1265
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1266
- const callback = (rawResponse, flatResponse) => {
1267
- currentRawResponse = rawResponse;
1268
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1269
- };
1270
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1271
- const flatResponse = yield directSendOperation(updatedArgs, spec);
1272
- return {
1273
- flatResponse,
1274
- rawResponse: {
1275
- statusCode: currentRawResponse.status,
1276
- body: currentRawResponse.parsedBody,
1277
- headers: currentRawResponse.headers.toJSON()
1278
- }
1279
- };
1280
- });
1281
- const lro = new LroImpl(sendOperation, { resourceGroupName, azureTrafficCollectorName, options }, deleteOperationSpec$1);
1282
- const poller = new coreLro.LroEngine(lro, {
1283
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1284
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
1285
- lroResourceLocationConfig: "location"
1286
- });
1287
- yield poller.poll();
1288
- return poller;
1289
- });
1290
- }
1291
- /**
1292
- * Deletes a specified Azure Traffic Collector resource.
1293
- * @param resourceGroupName The name of the resource group.
1294
- * @param azureTrafficCollectorName Azure Traffic Collector name
1295
- * @param options The options parameters.
1296
- */
1297
- beginDeleteAndWait(resourceGroupName, azureTrafficCollectorName, options) {
1298
- return tslib.__awaiter(this, void 0, void 0, function* () {
1299
- const poller = yield this.beginDelete(resourceGroupName, azureTrafficCollectorName, options);
1300
- return poller.pollUntilDone();
1301
- });
1302
- }
1303
- /**
1304
- * Updates the specified Azure Traffic Collector tags.
1305
- * @param resourceGroupName The name of the resource group.
1306
- * @param azureTrafficCollectorName Azure Traffic Collector name
1307
- * @param parameters Parameters supplied to update Azure Traffic Collector tags.
1308
- * @param options The options parameters.
1309
- */
1310
- updateTags(resourceGroupName, azureTrafficCollectorName, parameters, options) {
1311
- return this.client.sendOperationRequest({ resourceGroupName, azureTrafficCollectorName, parameters, options }, updateTagsOperationSpec$1);
1312
- }
1313
- }
1314
- // Operation Specifications
1315
- const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
1316
- const getOperationSpec$1 = {
1317
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}",
1318
- httpMethod: "GET",
1319
- responses: {
1320
- 200: {
1321
- bodyMapper: AzureTrafficCollector
1322
- },
1323
- default: {
1324
- bodyMapper: CloudError
1325
- }
1326
- },
1327
- queryParameters: [apiVersion],
1328
- urlParameters: [
1329
- $host,
1330
- subscriptionId,
1331
- resourceGroupName,
1332
- azureTrafficCollectorName
1333
- ],
1334
- headerParameters: [accept],
1335
- serializer: serializer$1
1336
- };
1337
- const createOrUpdateOperationSpec$1 = {
1338
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}",
1339
- httpMethod: "PUT",
1340
- responses: {
1341
- 200: {
1342
- bodyMapper: AzureTrafficCollector
1343
- },
1344
- 201: {
1345
- bodyMapper: AzureTrafficCollector
1346
- },
1347
- 202: {
1348
- bodyMapper: AzureTrafficCollector
1349
- },
1350
- 204: {
1351
- bodyMapper: AzureTrafficCollector
1352
- },
1353
- default: {
1354
- bodyMapper: CloudError
1355
- }
1356
- },
1357
- requestBody: {
1358
- parameterPath: {
1359
- location: ["location"],
1360
- tags: ["options", "tags"],
1361
- virtualHub: ["options", "virtualHub"]
1362
- },
1363
- mapper: Object.assign(Object.assign({}, AzureTrafficCollector), { required: true })
1364
- },
1365
- queryParameters: [apiVersion],
1366
- urlParameters: [
1367
- $host,
1368
- subscriptionId,
1369
- resourceGroupName,
1370
- azureTrafficCollectorName
1371
- ],
1372
- headerParameters: [accept, contentType],
1373
- mediaType: "json",
1374
- serializer: serializer$1
1375
- };
1376
- const deleteOperationSpec$1 = {
1377
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}",
1378
- httpMethod: "DELETE",
1379
- responses: {
1380
- 200: {},
1381
- 201: {},
1382
- 202: {},
1383
- 204: {},
1384
- default: {
1385
- bodyMapper: CloudError
1386
- }
1387
- },
1388
- queryParameters: [apiVersion],
1389
- urlParameters: [
1390
- $host,
1391
- subscriptionId,
1392
- resourceGroupName,
1393
- azureTrafficCollectorName
1394
- ],
1395
- headerParameters: [accept],
1396
- serializer: serializer$1
1397
- };
1398
- const updateTagsOperationSpec$1 = {
1399
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}",
1400
- httpMethod: "PATCH",
1401
- responses: {
1402
- 200: {
1403
- bodyMapper: AzureTrafficCollector
1404
- },
1405
- default: {
1406
- bodyMapper: CloudError
1407
- }
1408
- },
1409
- requestBody: parameters1,
1410
- queryParameters: [apiVersion],
1411
- urlParameters: [
1412
- $host,
1413
- subscriptionId,
1414
- resourceGroupName,
1415
- azureTrafficCollectorName
1416
- ],
1417
- headerParameters: [accept, contentType],
1418
- mediaType: "json",
1419
- serializer: serializer$1
1420
- };
1421
-
1422
- /*
1423
- * Copyright (c) Microsoft Corporation.
1424
- * Licensed under the MIT License.
1425
- *
1426
- * Code generated by Microsoft (R) AutoRest Code Generator.
1427
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1428
- */
1429
- /// <reference lib="esnext.asynciterable" />
1430
- /** Class containing CollectorPolicies operations. */
1431
- class CollectorPoliciesImpl {
1432
- /**
1433
- * Initialize a new instance of the class CollectorPolicies class.
1434
- * @param client Reference to the service client
1435
- */
1436
- constructor(client) {
1437
- this.client = client;
1438
- }
1439
- /**
1440
- * Return list of Collector policies in a Azure Traffic Collector
1441
- * @param resourceGroupName The name of the resource group.
1442
- * @param azureTrafficCollectorName Azure Traffic Collector name
1443
- * @param options The options parameters.
1444
- */
1445
- list(resourceGroupName, azureTrafficCollectorName, options) {
1446
- const iter = this.listPagingAll(resourceGroupName, azureTrafficCollectorName, options);
1447
- return {
1448
- next() {
1449
- return iter.next();
1450
- },
1451
- [Symbol.asyncIterator]() {
1452
- return this;
1453
- },
1454
- byPage: (settings) => {
1455
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
1456
- throw new Error("maxPageSize is not supported by this operation.");
1457
- }
1458
- return this.listPagingPage(resourceGroupName, azureTrafficCollectorName, options, settings);
1459
- }
1460
- };
1461
- }
1462
- listPagingPage(resourceGroupName, azureTrafficCollectorName, options, settings) {
1463
- return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
1464
- let result;
1465
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
1466
- if (!continuationToken) {
1467
- result = yield tslib.__await(this._list(resourceGroupName, azureTrafficCollectorName, options));
1468
- let page = result.value || [];
1469
- continuationToken = result.nextLink;
1470
- setContinuationToken(page, continuationToken);
1471
- yield yield tslib.__await(page);
1472
- }
1473
- while (continuationToken) {
1474
- result = yield tslib.__await(this._listNext(resourceGroupName, azureTrafficCollectorName, continuationToken, options));
1475
- continuationToken = result.nextLink;
1476
- let page = result.value || [];
1477
- setContinuationToken(page, continuationToken);
1478
- yield yield tslib.__await(page);
1479
- }
1480
- });
1481
- }
1482
- listPagingAll(resourceGroupName, azureTrafficCollectorName, options) {
1483
- return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
1484
- var _a, e_1, _b, _c;
1485
- try {
1486
- for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(resourceGroupName, azureTrafficCollectorName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
1487
- _c = _f.value;
1488
- _d = false;
1489
- const page = _c;
1490
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1491
- }
1492
- }
1493
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
1494
- finally {
1495
- try {
1496
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
1497
- }
1498
- finally { if (e_1) throw e_1.error; }
1499
- }
1500
- });
1501
- }
1502
- /**
1503
- * Return list of Collector policies in a Azure Traffic Collector
1504
- * @param resourceGroupName The name of the resource group.
1505
- * @param azureTrafficCollectorName Azure Traffic Collector name
1506
- * @param options The options parameters.
1507
- */
1508
- _list(resourceGroupName, azureTrafficCollectorName, options) {
1509
- return this.client.sendOperationRequest({ resourceGroupName, azureTrafficCollectorName, options }, listOperationSpec);
1510
- }
1511
- /**
1512
- * Gets the collector policy in a specified Traffic Collector
1513
- * @param resourceGroupName The name of the resource group.
1514
- * @param azureTrafficCollectorName Azure Traffic Collector name
1515
- * @param collectorPolicyName Collector Policy Name
1516
- * @param options The options parameters.
1517
- */
1518
- get(resourceGroupName, azureTrafficCollectorName, collectorPolicyName, options) {
1519
- return this.client.sendOperationRequest({
1520
- resourceGroupName,
1521
- azureTrafficCollectorName,
1522
- collectorPolicyName,
1523
- options
1524
- }, getOperationSpec);
1525
- }
1526
- /**
1527
- * Creates or updates a Collector Policy resource
1528
- * @param resourceGroupName The name of the resource group.
1529
- * @param azureTrafficCollectorName Azure Traffic Collector name
1530
- * @param collectorPolicyName Collector Policy Name
1531
- * @param location Resource location.
1532
- * @param options The options parameters.
1533
- */
1534
- beginCreateOrUpdate(resourceGroupName, azureTrafficCollectorName, collectorPolicyName, location, options) {
1535
- return tslib.__awaiter(this, void 0, void 0, function* () {
1536
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1537
- return this.client.sendOperationRequest(args, spec);
1538
- });
1539
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1540
- var _a;
1541
- let currentRawResponse = undefined;
1542
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1543
- const callback = (rawResponse, flatResponse) => {
1544
- currentRawResponse = rawResponse;
1545
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1546
- };
1547
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1548
- const flatResponse = yield directSendOperation(updatedArgs, spec);
1549
- return {
1550
- flatResponse,
1551
- rawResponse: {
1552
- statusCode: currentRawResponse.status,
1553
- body: currentRawResponse.parsedBody,
1554
- headers: currentRawResponse.headers.toJSON()
1555
- }
1556
- };
1557
- });
1558
- const lro = new LroImpl(sendOperation, {
1559
- resourceGroupName,
1560
- azureTrafficCollectorName,
1561
- collectorPolicyName,
1562
- location,
1563
- options
1564
- }, createOrUpdateOperationSpec);
1565
- const poller = new coreLro.LroEngine(lro, {
1566
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1567
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
1568
- lroResourceLocationConfig: "azure-async-operation"
1569
- });
1570
- yield poller.poll();
1571
- return poller;
1572
- });
1573
- }
1574
- /**
1575
- * Creates or updates a Collector Policy resource
1576
- * @param resourceGroupName The name of the resource group.
1577
- * @param azureTrafficCollectorName Azure Traffic Collector name
1578
- * @param collectorPolicyName Collector Policy Name
1579
- * @param location Resource location.
1580
- * @param options The options parameters.
1581
- */
1582
- beginCreateOrUpdateAndWait(resourceGroupName, azureTrafficCollectorName, collectorPolicyName, location, options) {
1583
- return tslib.__awaiter(this, void 0, void 0, function* () {
1584
- const poller = yield this.beginCreateOrUpdate(resourceGroupName, azureTrafficCollectorName, collectorPolicyName, location, options);
1585
- return poller.pollUntilDone();
1586
- });
1587
- }
1588
- /**
1589
- * Deletes a specified Collector Policy resource.
1590
- * @param resourceGroupName The name of the resource group.
1591
- * @param azureTrafficCollectorName Azure Traffic Collector name
1592
- * @param collectorPolicyName Collector Policy Name
1593
- * @param options The options parameters.
1594
- */
1595
- beginDelete(resourceGroupName, azureTrafficCollectorName, collectorPolicyName, options) {
1596
- return tslib.__awaiter(this, void 0, void 0, function* () {
1597
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1598
- return this.client.sendOperationRequest(args, spec);
1599
- });
1600
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1601
- var _a;
1602
- let currentRawResponse = undefined;
1603
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1604
- const callback = (rawResponse, flatResponse) => {
1605
- currentRawResponse = rawResponse;
1606
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1607
- };
1608
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1609
- const flatResponse = yield directSendOperation(updatedArgs, spec);
1610
- return {
1611
- flatResponse,
1612
- rawResponse: {
1613
- statusCode: currentRawResponse.status,
1614
- body: currentRawResponse.parsedBody,
1615
- headers: currentRawResponse.headers.toJSON()
1616
- }
1617
- };
1618
- });
1619
- const lro = new LroImpl(sendOperation, {
1620
- resourceGroupName,
1621
- azureTrafficCollectorName,
1622
- collectorPolicyName,
1623
- options
1624
- }, deleteOperationSpec);
1625
- const poller = new coreLro.LroEngine(lro, {
1626
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1627
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
1628
- lroResourceLocationConfig: "location"
1629
- });
1630
- yield poller.poll();
1631
- return poller;
1632
- });
1633
- }
1634
- /**
1635
- * Deletes a specified Collector Policy resource.
1636
- * @param resourceGroupName The name of the resource group.
1637
- * @param azureTrafficCollectorName Azure Traffic Collector name
1638
- * @param collectorPolicyName Collector Policy Name
1639
- * @param options The options parameters.
1640
- */
1641
- beginDeleteAndWait(resourceGroupName, azureTrafficCollectorName, collectorPolicyName, options) {
1642
- return tslib.__awaiter(this, void 0, void 0, function* () {
1643
- const poller = yield this.beginDelete(resourceGroupName, azureTrafficCollectorName, collectorPolicyName, options);
1644
- return poller.pollUntilDone();
1645
- });
1646
- }
1647
- /**
1648
- * Updates the specified Collector Policy tags.
1649
- * @param resourceGroupName The name of the resource group.
1650
- * @param azureTrafficCollectorName Azure Traffic Collector name
1651
- * @param collectorPolicyName Collector Policy Name
1652
- * @param parameters Parameters supplied to update Collector Policy tags.
1653
- * @param options The options parameters.
1654
- */
1655
- updateTags(resourceGroupName, azureTrafficCollectorName, collectorPolicyName, parameters, options) {
1656
- return this.client.sendOperationRequest({
1657
- resourceGroupName,
1658
- azureTrafficCollectorName,
1659
- collectorPolicyName,
1660
- parameters,
1661
- options
1662
- }, updateTagsOperationSpec);
1663
- }
1664
- /**
1665
- * ListNext
1666
- * @param resourceGroupName The name of the resource group.
1667
- * @param azureTrafficCollectorName Azure Traffic Collector name
1668
- * @param nextLink The nextLink from the previous successful call to the List method.
1669
- * @param options The options parameters.
1670
- */
1671
- _listNext(resourceGroupName, azureTrafficCollectorName, nextLink, options) {
1672
- return this.client.sendOperationRequest({ resourceGroupName, azureTrafficCollectorName, nextLink, options }, listNextOperationSpec);
1673
- }
1674
- }
1675
- // Operation Specifications
1676
- const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
1677
- const listOperationSpec = {
1678
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}/collectorPolicies",
1679
- httpMethod: "GET",
1680
- responses: {
1681
- 200: {
1682
- bodyMapper: CollectorPolicyListResult
1683
- },
1684
- default: {
1685
- bodyMapper: CloudError
1686
- }
1687
- },
1688
- queryParameters: [apiVersion],
1689
- urlParameters: [
1690
- $host,
1691
- subscriptionId,
1692
- resourceGroupName,
1693
- azureTrafficCollectorName
1694
- ],
1695
- headerParameters: [accept],
1696
- serializer
1697
- };
1698
- const getOperationSpec = {
1699
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}/collectorPolicies/{collectorPolicyName}",
1700
- httpMethod: "GET",
1701
- responses: {
1702
- 200: {
1703
- bodyMapper: CollectorPolicy
1704
- },
1705
- default: {
1706
- bodyMapper: CloudError
1707
- }
1708
- },
1709
- queryParameters: [apiVersion],
1710
- urlParameters: [
1711
- $host,
1712
- subscriptionId,
1713
- resourceGroupName,
1714
- azureTrafficCollectorName,
1715
- collectorPolicyName
1716
- ],
1717
- headerParameters: [accept],
1718
- serializer
1719
- };
1720
- const createOrUpdateOperationSpec = {
1721
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}/collectorPolicies/{collectorPolicyName}",
1722
- httpMethod: "PUT",
1723
- responses: {
1724
- 200: {
1725
- bodyMapper: CollectorPolicy
1726
- },
1727
- 201: {
1728
- bodyMapper: CollectorPolicy
1729
- },
1730
- 202: {
1731
- bodyMapper: CollectorPolicy
1732
- },
1733
- 204: {
1734
- bodyMapper: CollectorPolicy
1735
- },
1736
- default: {
1737
- bodyMapper: CloudError
1738
- }
1739
- },
1740
- requestBody: {
1741
- parameterPath: {
1742
- location: ["location"],
1743
- tags: ["options", "tags"],
1744
- ingestionPolicy: ["options", "ingestionPolicy"],
1745
- emissionPolicies: ["options", "emissionPolicies"]
1746
- },
1747
- mapper: Object.assign(Object.assign({}, CollectorPolicy), { required: true })
1748
- },
1749
- queryParameters: [apiVersion],
1750
- urlParameters: [
1751
- $host,
1752
- subscriptionId,
1753
- resourceGroupName,
1754
- azureTrafficCollectorName,
1755
- collectorPolicyName
1756
- ],
1757
- headerParameters: [accept, contentType],
1758
- mediaType: "json",
1759
- serializer
1760
- };
1761
- const deleteOperationSpec = {
1762
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}/collectorPolicies/{collectorPolicyName}",
1763
- httpMethod: "DELETE",
1764
- responses: {
1765
- 200: {},
1766
- 201: {},
1767
- 202: {},
1768
- 204: {},
1769
- default: {
1770
- bodyMapper: CloudError
1771
- }
1772
- },
1773
- queryParameters: [apiVersion],
1774
- urlParameters: [
1775
- $host,
1776
- subscriptionId,
1777
- resourceGroupName,
1778
- azureTrafficCollectorName,
1779
- collectorPolicyName
1780
- ],
1781
- headerParameters: [accept],
1782
- serializer
1783
- };
1784
- const updateTagsOperationSpec = {
1785
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}/collectorPolicies/{collectorPolicyName}",
1786
- httpMethod: "PATCH",
1787
- responses: {
1788
- 200: {
1789
- bodyMapper: CollectorPolicy
1790
- },
1791
- default: {
1792
- bodyMapper: CloudError
1793
- }
1794
- },
1795
- requestBody: parameters1,
1796
- queryParameters: [apiVersion],
1797
- urlParameters: [
1798
- $host,
1799
- subscriptionId,
1800
- resourceGroupName,
1801
- azureTrafficCollectorName,
1802
- collectorPolicyName
1803
- ],
1804
- headerParameters: [accept, contentType],
1805
- mediaType: "json",
1806
- serializer
1807
- };
1808
- const listNextOperationSpec = {
1809
- path: "{nextLink}",
1810
- httpMethod: "GET",
1811
- responses: {
1812
- 200: {
1813
- bodyMapper: CollectorPolicyListResult
1814
- },
1815
- default: {
1816
- bodyMapper: CloudError
1817
- }
1818
- },
1819
- queryParameters: [apiVersion],
1820
- urlParameters: [
1821
- $host,
1822
- subscriptionId,
1823
- nextLink,
1824
- resourceGroupName,
1825
- azureTrafficCollectorName
1826
- ],
1827
- headerParameters: [accept],
1828
- serializer
1829
- };
1830
-
1831
- /*
1832
- * Copyright (c) Microsoft Corporation.
1833
- * Licensed under the MIT License.
1834
- *
1835
- * Code generated by Microsoft (R) AutoRest Code Generator.
1836
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1837
- */
1838
- class AzureTrafficCollectorClient extends coreClient__namespace.ServiceClient {
1839
- /**
1840
- * Initializes a new instance of the AzureTrafficCollectorClient class.
1841
- * @param credentials Subscription credentials which uniquely identify client subscription.
1842
- * @param subscriptionId Azure Subscription ID.
1843
- * @param options The parameter options
1844
- */
1845
- constructor(credentials, subscriptionId, options) {
1846
- var _a, _b, _c;
1847
- if (credentials === undefined) {
1848
- throw new Error("'credentials' cannot be null");
1849
- }
1850
- if (subscriptionId === undefined) {
1851
- throw new Error("'subscriptionId' cannot be null");
1852
- }
1853
- // Initializing default values for options
1854
- if (!options) {
1855
- options = {};
1856
- }
1857
- const defaults = {
1858
- requestContentType: "application/json; charset=utf-8",
1859
- credential: credentials
1860
- };
1861
- const packageDetails = `azsdk-js-arm-networkfunction/2.0.1`;
1862
- const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
1863
- ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
1864
- : `${packageDetails}`;
1865
- const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
1866
- userAgentPrefix
1867
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
1868
- super(optionsWithDefaults);
1869
- let bearerTokenAuthenticationPolicyFound = false;
1870
- if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
1871
- const pipelinePolicies = options.pipeline.getOrderedPolicies();
1872
- bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
1873
- coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
1874
- }
1875
- if (!options ||
1876
- !options.pipeline ||
1877
- options.pipeline.getOrderedPolicies().length == 0 ||
1878
- !bearerTokenAuthenticationPolicyFound) {
1879
- this.pipeline.removePolicy({
1880
- name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
1881
- });
1882
- this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
1883
- credential: credentials,
1884
- scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
1885
- challengeCallbacks: {
1886
- authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
1887
- }
1888
- }));
1889
- }
1890
- // Parameter assignments
1891
- this.subscriptionId = subscriptionId;
1892
- // Assigning values to Constant parameters
1893
- this.$host = options.$host || "https://management.azure.com";
1894
- this.apiVersion = options.apiVersion || "2022-11-01";
1895
- this.networkFunction = new NetworkFunctionImpl(this);
1896
- this.azureTrafficCollectorsBySubscription = new AzureTrafficCollectorsBySubscriptionImpl(this);
1897
- this.azureTrafficCollectorsByResourceGroup = new AzureTrafficCollectorsByResourceGroupImpl(this);
1898
- this.azureTrafficCollectors = new AzureTrafficCollectorsImpl(this);
1899
- this.collectorPolicies = new CollectorPoliciesImpl(this);
1900
- this.addCustomApiVersionPolicy(options.apiVersion);
1901
- }
1902
- /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
1903
- addCustomApiVersionPolicy(apiVersion) {
1904
- if (!apiVersion) {
1905
- return;
1906
- }
1907
- const apiVersionPolicy = {
1908
- name: "CustomApiVersionPolicy",
1909
- sendRequest(request, next) {
1910
- return tslib.__awaiter(this, void 0, void 0, function* () {
1911
- const param = request.url.split("?");
1912
- if (param.length > 1) {
1913
- const newParams = param[1].split("&").map((item) => {
1914
- if (item.indexOf("api-version") > -1) {
1915
- return "api-version=" + apiVersion;
1916
- }
1917
- else {
1918
- return item;
1919
- }
1920
- });
1921
- request.url = param[0] + "?" + newParams.join("&");
1922
- }
1923
- return next(request);
1924
- });
1925
- }
1926
- };
1927
- this.pipeline.addPolicy(apiVersionPolicy);
1928
- }
1929
- }
1930
-
1931
- exports.AzureTrafficCollectorClient = AzureTrafficCollectorClient;
1932
- exports.getContinuationToken = getContinuationToken;
1933
- //# sourceMappingURL=index.js.map