@azure/arm-servicenetworking 2.0.1-alpha.20250514.1 → 2.1.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (456) hide show
  1. package/CHANGELOG.md +20 -9
  2. package/LICENSE +1 -1
  3. package/README.md +4 -3
  4. package/dist/browser/api/associationsInterface/index.d.ts +2 -25
  5. package/dist/browser/api/associationsInterface/index.d.ts.map +1 -1
  6. package/dist/browser/api/associationsInterface/index.js +1 -119
  7. package/dist/browser/api/associationsInterface/index.js.map +1 -1
  8. package/dist/browser/api/associationsInterface/operations.d.ts +32 -0
  9. package/dist/browser/api/associationsInterface/operations.d.ts.map +1 -0
  10. package/dist/browser/api/associationsInterface/operations.js +162 -0
  11. package/dist/browser/api/associationsInterface/operations.js.map +1 -0
  12. package/dist/browser/api/associationsInterface/options.d.ts +21 -0
  13. package/dist/browser/api/associationsInterface/options.d.ts.map +1 -0
  14. package/dist/browser/api/associationsInterface/options.js.map +1 -0
  15. package/dist/browser/api/frontendsInterface/index.d.ts +2 -25
  16. package/dist/browser/api/frontendsInterface/index.d.ts.map +1 -1
  17. package/dist/browser/api/frontendsInterface/index.js +1 -119
  18. package/dist/browser/api/frontendsInterface/index.js.map +1 -1
  19. package/dist/browser/api/frontendsInterface/operations.d.ts +32 -0
  20. package/dist/browser/api/frontendsInterface/operations.d.ts.map +1 -0
  21. package/dist/browser/api/frontendsInterface/operations.js +162 -0
  22. package/dist/browser/api/frontendsInterface/operations.js.map +1 -0
  23. package/dist/browser/api/frontendsInterface/options.d.ts +21 -0
  24. package/dist/browser/api/frontendsInterface/options.d.ts.map +1 -0
  25. package/dist/browser/api/frontendsInterface/options.js.map +1 -0
  26. package/dist/browser/api/index.d.ts +0 -6
  27. package/dist/browser/api/index.d.ts.map +1 -1
  28. package/dist/browser/api/index.js +0 -5
  29. package/dist/browser/api/index.js.map +1 -1
  30. package/dist/browser/api/operations/index.d.ts +2 -8
  31. package/dist/browser/api/operations/index.d.ts.map +1 -1
  32. package/dist/browser/api/operations/index.js +1 -20
  33. package/dist/browser/api/operations/index.js.map +1 -1
  34. package/dist/browser/api/operations/operations.d.ts +10 -0
  35. package/dist/browser/api/operations/operations.d.ts.map +1 -0
  36. package/dist/browser/api/operations/operations.js +29 -0
  37. package/dist/browser/api/operations/operations.js.map +1 -0
  38. package/dist/browser/api/operations/options.d.ts +5 -0
  39. package/dist/browser/api/operations/options.d.ts.map +1 -0
  40. package/dist/browser/api/operations/options.js.map +1 -0
  41. package/dist/browser/api/securityPoliciesInterface/index.d.ts +2 -25
  42. package/dist/browser/api/securityPoliciesInterface/index.d.ts.map +1 -1
  43. package/dist/browser/api/securityPoliciesInterface/index.js +1 -127
  44. package/dist/browser/api/securityPoliciesInterface/index.js.map +1 -1
  45. package/dist/browser/api/securityPoliciesInterface/operations.d.ts +32 -0
  46. package/dist/browser/api/securityPoliciesInterface/operations.d.ts.map +1 -0
  47. package/dist/browser/api/securityPoliciesInterface/operations.js +170 -0
  48. package/dist/browser/api/securityPoliciesInterface/operations.js.map +1 -0
  49. package/dist/browser/api/securityPoliciesInterface/options.d.ts +21 -0
  50. package/dist/browser/api/securityPoliciesInterface/options.d.ts.map +1 -0
  51. package/dist/browser/api/securityPoliciesInterface/options.js +4 -0
  52. package/dist/browser/api/securityPoliciesInterface/options.js.map +1 -0
  53. package/dist/browser/api/serviceNetworkingManagementContext.js +2 -2
  54. package/dist/browser/api/serviceNetworkingManagementContext.js.map +1 -1
  55. package/dist/browser/api/trafficControllerInterface/index.d.ts +2 -29
  56. package/dist/browser/api/trafficControllerInterface/index.d.ts.map +1 -1
  57. package/dist/browser/api/trafficControllerInterface/index.js +1 -150
  58. package/dist/browser/api/trafficControllerInterface/index.js.map +1 -1
  59. package/dist/browser/api/trafficControllerInterface/operations.d.ts +36 -0
  60. package/dist/browser/api/trafficControllerInterface/operations.d.ts.map +1 -0
  61. package/dist/browser/api/trafficControllerInterface/operations.js +192 -0
  62. package/dist/browser/api/trafficControllerInterface/operations.js.map +1 -0
  63. package/dist/browser/api/trafficControllerInterface/options.d.ts +24 -0
  64. package/dist/browser/api/trafficControllerInterface/options.d.ts.map +1 -0
  65. package/dist/browser/api/trafficControllerInterface/options.js +4 -0
  66. package/dist/browser/api/trafficControllerInterface/options.js.map +1 -0
  67. package/dist/browser/classic/associationsInterface/index.d.ts +6 -1
  68. package/dist/browser/classic/associationsInterface/index.d.ts.map +1 -1
  69. package/dist/browser/classic/associationsInterface/index.js +6 -6
  70. package/dist/browser/classic/associationsInterface/index.js.map +1 -1
  71. package/dist/browser/classic/frontendsInterface/index.d.ts +6 -1
  72. package/dist/browser/classic/frontendsInterface/index.d.ts.map +1 -1
  73. package/dist/browser/classic/frontendsInterface/index.js +6 -6
  74. package/dist/browser/classic/frontendsInterface/index.js.map +1 -1
  75. package/dist/browser/classic/operations/index.d.ts +1 -1
  76. package/dist/browser/classic/operations/index.d.ts.map +1 -1
  77. package/dist/browser/classic/operations/index.js +2 -2
  78. package/dist/browser/classic/operations/index.js.map +1 -1
  79. package/dist/browser/classic/securityPoliciesInterface/index.d.ts +6 -1
  80. package/dist/browser/classic/securityPoliciesInterface/index.d.ts.map +1 -1
  81. package/dist/browser/classic/securityPoliciesInterface/index.js +6 -6
  82. package/dist/browser/classic/securityPoliciesInterface/index.js.map +1 -1
  83. package/dist/browser/classic/trafficControllerInterface/index.d.ts +6 -1
  84. package/dist/browser/classic/trafficControllerInterface/index.d.ts.map +1 -1
  85. package/dist/browser/classic/trafficControllerInterface/index.js +7 -7
  86. package/dist/browser/classic/trafficControllerInterface/index.js.map +1 -1
  87. package/dist/browser/index.d.ts +7 -2
  88. package/dist/browser/index.d.ts.map +1 -1
  89. package/dist/browser/index.js +1 -1
  90. package/dist/browser/index.js.map +1 -1
  91. package/dist/browser/models/index.d.ts +1 -1
  92. package/dist/browser/models/index.d.ts.map +1 -1
  93. package/dist/browser/models/index.js +1 -1
  94. package/dist/browser/models/index.js.map +1 -1
  95. package/dist/browser/models/models.d.ts +309 -241
  96. package/dist/browser/models/models.d.ts.map +1 -1
  97. package/dist/browser/models/models.js +313 -217
  98. package/dist/browser/models/models.js.map +1 -1
  99. package/dist/browser/restorePollerHelpers.js +12 -12
  100. package/dist/browser/restorePollerHelpers.js.map +1 -1
  101. package/dist/browser/serviceNetworkingManagementClient.d.ts +1 -1
  102. package/dist/browser/serviceNetworkingManagementClient.d.ts.map +1 -1
  103. package/dist/browser/serviceNetworkingManagementClient.js +1 -1
  104. package/dist/browser/serviceNetworkingManagementClient.js.map +1 -1
  105. package/dist/browser/static-helpers/urlTemplate.d.ts +5 -0
  106. package/dist/browser/static-helpers/urlTemplate.d.ts.map +1 -0
  107. package/dist/browser/static-helpers/urlTemplate.js +169 -0
  108. package/dist/browser/static-helpers/urlTemplate.js.map +1 -0
  109. package/dist/commonjs/api/associationsInterface/index.d.ts +2 -25
  110. package/dist/commonjs/api/associationsInterface/index.d.ts.map +1 -1
  111. package/dist/commonjs/api/associationsInterface/index.js +7 -134
  112. package/dist/commonjs/api/associationsInterface/index.js.map +1 -1
  113. package/dist/commonjs/api/associationsInterface/operations.d.ts +32 -0
  114. package/dist/commonjs/api/associationsInterface/operations.d.ts.map +1 -0
  115. package/dist/commonjs/api/associationsInterface/operations.js +179 -0
  116. package/dist/commonjs/api/associationsInterface/operations.js.map +1 -0
  117. package/dist/commonjs/api/associationsInterface/options.d.ts +21 -0
  118. package/dist/commonjs/api/associationsInterface/options.d.ts.map +1 -0
  119. package/dist/commonjs/api/associationsInterface/options.js.map +1 -0
  120. package/dist/commonjs/api/frontendsInterface/index.d.ts +2 -25
  121. package/dist/commonjs/api/frontendsInterface/index.d.ts.map +1 -1
  122. package/dist/commonjs/api/frontendsInterface/index.js +7 -134
  123. package/dist/commonjs/api/frontendsInterface/index.js.map +1 -1
  124. package/dist/commonjs/api/frontendsInterface/operations.d.ts +32 -0
  125. package/dist/commonjs/api/frontendsInterface/operations.d.ts.map +1 -0
  126. package/dist/commonjs/api/frontendsInterface/operations.js +179 -0
  127. package/dist/commonjs/api/frontendsInterface/operations.js.map +1 -0
  128. package/dist/commonjs/api/frontendsInterface/options.d.ts +21 -0
  129. package/dist/commonjs/api/frontendsInterface/options.d.ts.map +1 -0
  130. package/dist/commonjs/api/frontendsInterface/options.js +5 -0
  131. package/dist/commonjs/api/frontendsInterface/options.js.map +1 -0
  132. package/dist/commonjs/api/index.d.ts +0 -6
  133. package/dist/commonjs/api/index.d.ts.map +1 -1
  134. package/dist/commonjs/api/index.js +1 -28
  135. package/dist/commonjs/api/index.js.map +1 -1
  136. package/dist/commonjs/api/operations/index.d.ts +2 -8
  137. package/dist/commonjs/api/operations/index.d.ts.map +1 -1
  138. package/dist/commonjs/api/operations/index.js +3 -23
  139. package/dist/commonjs/api/operations/index.js.map +1 -1
  140. package/dist/commonjs/api/operations/operations.d.ts +10 -0
  141. package/dist/commonjs/api/operations/operations.d.ts.map +1 -0
  142. package/dist/commonjs/api/operations/operations.js +34 -0
  143. package/dist/commonjs/api/operations/operations.js.map +1 -0
  144. package/dist/commonjs/api/operations/options.d.ts +5 -0
  145. package/dist/commonjs/api/operations/options.d.ts.map +1 -0
  146. package/dist/commonjs/api/operations/options.js +5 -0
  147. package/dist/commonjs/api/operations/options.js.map +1 -0
  148. package/dist/commonjs/api/securityPoliciesInterface/index.d.ts +2 -25
  149. package/dist/commonjs/api/securityPoliciesInterface/index.d.ts.map +1 -1
  150. package/dist/commonjs/api/securityPoliciesInterface/index.js +7 -142
  151. package/dist/commonjs/api/securityPoliciesInterface/index.js.map +1 -1
  152. package/dist/commonjs/api/securityPoliciesInterface/operations.d.ts +32 -0
  153. package/dist/commonjs/api/securityPoliciesInterface/operations.d.ts.map +1 -0
  154. package/dist/commonjs/api/securityPoliciesInterface/operations.js +187 -0
  155. package/dist/commonjs/api/securityPoliciesInterface/operations.js.map +1 -0
  156. package/dist/commonjs/api/securityPoliciesInterface/options.d.ts +21 -0
  157. package/dist/commonjs/api/securityPoliciesInterface/options.d.ts.map +1 -0
  158. package/dist/commonjs/api/securityPoliciesInterface/options.js +5 -0
  159. package/dist/commonjs/api/securityPoliciesInterface/options.js.map +1 -0
  160. package/dist/commonjs/api/serviceNetworkingManagementContext.js +2 -2
  161. package/dist/commonjs/api/serviceNetworkingManagementContext.js.map +1 -1
  162. package/dist/commonjs/api/trafficControllerInterface/index.d.ts +2 -29
  163. package/dist/commonjs/api/trafficControllerInterface/index.d.ts.map +1 -1
  164. package/dist/commonjs/api/trafficControllerInterface/index.js +8 -168
  165. package/dist/commonjs/api/trafficControllerInterface/index.js.map +1 -1
  166. package/dist/commonjs/api/trafficControllerInterface/operations.d.ts +36 -0
  167. package/dist/commonjs/api/trafficControllerInterface/operations.d.ts.map +1 -0
  168. package/dist/commonjs/api/trafficControllerInterface/operations.js +212 -0
  169. package/dist/commonjs/api/trafficControllerInterface/operations.js.map +1 -0
  170. package/dist/commonjs/api/trafficControllerInterface/options.d.ts +24 -0
  171. package/dist/commonjs/api/trafficControllerInterface/options.d.ts.map +1 -0
  172. package/dist/commonjs/api/trafficControllerInterface/options.js +5 -0
  173. package/dist/commonjs/api/trafficControllerInterface/options.js.map +1 -0
  174. package/dist/commonjs/classic/associationsInterface/index.d.ts +6 -1
  175. package/dist/commonjs/classic/associationsInterface/index.d.ts.map +1 -1
  176. package/dist/commonjs/classic/associationsInterface/index.js +6 -6
  177. package/dist/commonjs/classic/associationsInterface/index.js.map +1 -1
  178. package/dist/commonjs/classic/frontendsInterface/index.d.ts +6 -1
  179. package/dist/commonjs/classic/frontendsInterface/index.d.ts.map +1 -1
  180. package/dist/commonjs/classic/frontendsInterface/index.js +6 -6
  181. package/dist/commonjs/classic/frontendsInterface/index.js.map +1 -1
  182. package/dist/commonjs/classic/operations/index.d.ts +1 -1
  183. package/dist/commonjs/classic/operations/index.d.ts.map +1 -1
  184. package/dist/commonjs/classic/operations/index.js +2 -2
  185. package/dist/commonjs/classic/operations/index.js.map +1 -1
  186. package/dist/commonjs/classic/securityPoliciesInterface/index.d.ts +6 -1
  187. package/dist/commonjs/classic/securityPoliciesInterface/index.d.ts.map +1 -1
  188. package/dist/commonjs/classic/securityPoliciesInterface/index.js +6 -6
  189. package/dist/commonjs/classic/securityPoliciesInterface/index.js.map +1 -1
  190. package/dist/commonjs/classic/trafficControllerInterface/index.d.ts +6 -1
  191. package/dist/commonjs/classic/trafficControllerInterface/index.d.ts.map +1 -1
  192. package/dist/commonjs/classic/trafficControllerInterface/index.js +7 -7
  193. package/dist/commonjs/classic/trafficControllerInterface/index.js.map +1 -1
  194. package/dist/commonjs/index.d.ts +7 -2
  195. package/dist/commonjs/index.d.ts.map +1 -1
  196. package/dist/commonjs/index.js +5 -4
  197. package/dist/commonjs/index.js.map +1 -1
  198. package/dist/commonjs/models/index.d.ts +1 -1
  199. package/dist/commonjs/models/index.d.ts.map +1 -1
  200. package/dist/commonjs/models/index.js +5 -4
  201. package/dist/commonjs/models/index.js.map +1 -1
  202. package/dist/commonjs/models/models.d.ts +309 -241
  203. package/dist/commonjs/models/models.d.ts.map +1 -1
  204. package/dist/commonjs/models/models.js +384 -279
  205. package/dist/commonjs/models/models.js.map +1 -1
  206. package/dist/commonjs/restorePollerHelpers.js +12 -12
  207. package/dist/commonjs/restorePollerHelpers.js.map +1 -1
  208. package/dist/commonjs/serviceNetworkingManagementClient.d.ts +1 -1
  209. package/dist/commonjs/serviceNetworkingManagementClient.d.ts.map +1 -1
  210. package/dist/commonjs/serviceNetworkingManagementClient.js +12 -12
  211. package/dist/commonjs/serviceNetworkingManagementClient.js.map +1 -1
  212. package/dist/commonjs/static-helpers/urlTemplate.d.ts +5 -0
  213. package/dist/commonjs/static-helpers/urlTemplate.d.ts.map +1 -0
  214. package/dist/commonjs/static-helpers/urlTemplate.js +172 -0
  215. package/dist/commonjs/static-helpers/urlTemplate.js.map +1 -0
  216. package/dist/esm/api/associationsInterface/index.d.ts +2 -25
  217. package/dist/esm/api/associationsInterface/index.d.ts.map +1 -1
  218. package/dist/esm/api/associationsInterface/index.js +1 -119
  219. package/dist/esm/api/associationsInterface/index.js.map +1 -1
  220. package/dist/esm/api/associationsInterface/operations.d.ts +32 -0
  221. package/dist/esm/api/associationsInterface/operations.d.ts.map +1 -0
  222. package/dist/esm/api/associationsInterface/operations.js +162 -0
  223. package/dist/esm/api/associationsInterface/operations.js.map +1 -0
  224. package/dist/esm/api/associationsInterface/options.d.ts +21 -0
  225. package/dist/esm/api/associationsInterface/options.d.ts.map +1 -0
  226. package/dist/esm/api/associationsInterface/options.js +4 -0
  227. package/dist/esm/api/associationsInterface/options.js.map +1 -0
  228. package/dist/esm/api/frontendsInterface/index.d.ts +2 -25
  229. package/dist/esm/api/frontendsInterface/index.d.ts.map +1 -1
  230. package/dist/esm/api/frontendsInterface/index.js +1 -119
  231. package/dist/esm/api/frontendsInterface/index.js.map +1 -1
  232. package/dist/esm/api/frontendsInterface/operations.d.ts +32 -0
  233. package/dist/esm/api/frontendsInterface/operations.d.ts.map +1 -0
  234. package/dist/esm/api/frontendsInterface/operations.js +162 -0
  235. package/dist/esm/api/frontendsInterface/operations.js.map +1 -0
  236. package/dist/esm/api/frontendsInterface/options.d.ts +21 -0
  237. package/dist/esm/api/frontendsInterface/options.d.ts.map +1 -0
  238. package/dist/esm/api/frontendsInterface/options.js +4 -0
  239. package/dist/esm/api/frontendsInterface/options.js.map +1 -0
  240. package/dist/esm/api/index.d.ts +0 -6
  241. package/dist/esm/api/index.d.ts.map +1 -1
  242. package/dist/esm/api/index.js +0 -5
  243. package/dist/esm/api/index.js.map +1 -1
  244. package/dist/esm/api/operations/index.d.ts +2 -8
  245. package/dist/esm/api/operations/index.d.ts.map +1 -1
  246. package/dist/esm/api/operations/index.js +1 -20
  247. package/dist/esm/api/operations/index.js.map +1 -1
  248. package/dist/esm/api/operations/operations.d.ts +10 -0
  249. package/dist/esm/api/operations/operations.d.ts.map +1 -0
  250. package/dist/esm/api/operations/operations.js +29 -0
  251. package/dist/esm/api/operations/operations.js.map +1 -0
  252. package/dist/esm/api/operations/options.d.ts +5 -0
  253. package/dist/esm/api/operations/options.d.ts.map +1 -0
  254. package/dist/esm/api/operations/options.js +4 -0
  255. package/dist/esm/api/operations/options.js.map +1 -0
  256. package/dist/esm/api/securityPoliciesInterface/index.d.ts +2 -25
  257. package/dist/esm/api/securityPoliciesInterface/index.d.ts.map +1 -1
  258. package/dist/esm/api/securityPoliciesInterface/index.js +1 -127
  259. package/dist/esm/api/securityPoliciesInterface/index.js.map +1 -1
  260. package/dist/esm/api/securityPoliciesInterface/operations.d.ts +32 -0
  261. package/dist/esm/api/securityPoliciesInterface/operations.d.ts.map +1 -0
  262. package/dist/esm/api/securityPoliciesInterface/operations.js +170 -0
  263. package/dist/esm/api/securityPoliciesInterface/operations.js.map +1 -0
  264. package/dist/esm/api/securityPoliciesInterface/options.d.ts +21 -0
  265. package/dist/esm/api/securityPoliciesInterface/options.d.ts.map +1 -0
  266. package/dist/esm/api/securityPoliciesInterface/options.js +4 -0
  267. package/dist/esm/api/securityPoliciesInterface/options.js.map +1 -0
  268. package/dist/esm/api/serviceNetworkingManagementContext.js +2 -2
  269. package/dist/esm/api/serviceNetworkingManagementContext.js.map +1 -1
  270. package/dist/esm/api/trafficControllerInterface/index.d.ts +2 -29
  271. package/dist/esm/api/trafficControllerInterface/index.d.ts.map +1 -1
  272. package/dist/esm/api/trafficControllerInterface/index.js +1 -150
  273. package/dist/esm/api/trafficControllerInterface/index.js.map +1 -1
  274. package/dist/esm/api/trafficControllerInterface/operations.d.ts +36 -0
  275. package/dist/esm/api/trafficControllerInterface/operations.d.ts.map +1 -0
  276. package/dist/esm/api/trafficControllerInterface/operations.js +192 -0
  277. package/dist/esm/api/trafficControllerInterface/operations.js.map +1 -0
  278. package/dist/esm/api/trafficControllerInterface/options.d.ts +24 -0
  279. package/dist/esm/api/trafficControllerInterface/options.d.ts.map +1 -0
  280. package/dist/esm/api/trafficControllerInterface/options.js +4 -0
  281. package/dist/esm/api/trafficControllerInterface/options.js.map +1 -0
  282. package/dist/esm/classic/associationsInterface/index.d.ts +6 -1
  283. package/dist/esm/classic/associationsInterface/index.d.ts.map +1 -1
  284. package/dist/esm/classic/associationsInterface/index.js +6 -6
  285. package/dist/esm/classic/associationsInterface/index.js.map +1 -1
  286. package/dist/esm/classic/frontendsInterface/index.d.ts +6 -1
  287. package/dist/esm/classic/frontendsInterface/index.d.ts.map +1 -1
  288. package/dist/esm/classic/frontendsInterface/index.js +6 -6
  289. package/dist/esm/classic/frontendsInterface/index.js.map +1 -1
  290. package/dist/esm/classic/operations/index.d.ts +1 -1
  291. package/dist/esm/classic/operations/index.d.ts.map +1 -1
  292. package/dist/esm/classic/operations/index.js +2 -2
  293. package/dist/esm/classic/operations/index.js.map +1 -1
  294. package/dist/esm/classic/securityPoliciesInterface/index.d.ts +6 -1
  295. package/dist/esm/classic/securityPoliciesInterface/index.d.ts.map +1 -1
  296. package/dist/esm/classic/securityPoliciesInterface/index.js +6 -6
  297. package/dist/esm/classic/securityPoliciesInterface/index.js.map +1 -1
  298. package/dist/esm/classic/trafficControllerInterface/index.d.ts +6 -1
  299. package/dist/esm/classic/trafficControllerInterface/index.d.ts.map +1 -1
  300. package/dist/esm/classic/trafficControllerInterface/index.js +7 -7
  301. package/dist/esm/classic/trafficControllerInterface/index.js.map +1 -1
  302. package/dist/esm/index.d.ts +7 -2
  303. package/dist/esm/index.d.ts.map +1 -1
  304. package/dist/esm/index.js +1 -1
  305. package/dist/esm/index.js.map +1 -1
  306. package/dist/esm/models/index.d.ts +1 -1
  307. package/dist/esm/models/index.d.ts.map +1 -1
  308. package/dist/esm/models/index.js +1 -1
  309. package/dist/esm/models/index.js.map +1 -1
  310. package/dist/esm/models/models.d.ts +309 -241
  311. package/dist/esm/models/models.d.ts.map +1 -1
  312. package/dist/esm/models/models.js +313 -217
  313. package/dist/esm/models/models.js.map +1 -1
  314. package/dist/esm/restorePollerHelpers.js +12 -12
  315. package/dist/esm/restorePollerHelpers.js.map +1 -1
  316. package/dist/esm/serviceNetworkingManagementClient.d.ts +1 -1
  317. package/dist/esm/serviceNetworkingManagementClient.d.ts.map +1 -1
  318. package/dist/esm/serviceNetworkingManagementClient.js +1 -1
  319. package/dist/esm/serviceNetworkingManagementClient.js.map +1 -1
  320. package/dist/esm/static-helpers/urlTemplate.d.ts +5 -0
  321. package/dist/esm/static-helpers/urlTemplate.d.ts.map +1 -0
  322. package/dist/esm/static-helpers/urlTemplate.js +169 -0
  323. package/dist/esm/static-helpers/urlTemplate.js.map +1 -0
  324. package/dist/react-native/api/associationsInterface/index.d.ts +2 -25
  325. package/dist/react-native/api/associationsInterface/index.d.ts.map +1 -1
  326. package/dist/react-native/api/associationsInterface/index.js +1 -119
  327. package/dist/react-native/api/associationsInterface/index.js.map +1 -1
  328. package/dist/react-native/api/associationsInterface/operations.d.ts +32 -0
  329. package/dist/react-native/api/associationsInterface/operations.d.ts.map +1 -0
  330. package/dist/react-native/api/associationsInterface/operations.js +162 -0
  331. package/dist/react-native/api/associationsInterface/operations.js.map +1 -0
  332. package/dist/react-native/api/associationsInterface/options.d.ts +21 -0
  333. package/dist/react-native/api/associationsInterface/options.d.ts.map +1 -0
  334. package/dist/react-native/api/associationsInterface/options.js +4 -0
  335. package/dist/react-native/api/associationsInterface/options.js.map +1 -0
  336. package/dist/react-native/api/frontendsInterface/index.d.ts +2 -25
  337. package/dist/react-native/api/frontendsInterface/index.d.ts.map +1 -1
  338. package/dist/react-native/api/frontendsInterface/index.js +1 -119
  339. package/dist/react-native/api/frontendsInterface/index.js.map +1 -1
  340. package/dist/react-native/api/frontendsInterface/operations.d.ts +32 -0
  341. package/dist/react-native/api/frontendsInterface/operations.d.ts.map +1 -0
  342. package/dist/react-native/api/frontendsInterface/operations.js +162 -0
  343. package/dist/react-native/api/frontendsInterface/operations.js.map +1 -0
  344. package/dist/react-native/api/frontendsInterface/options.d.ts +21 -0
  345. package/dist/react-native/api/frontendsInterface/options.d.ts.map +1 -0
  346. package/dist/react-native/api/frontendsInterface/options.js +4 -0
  347. package/dist/react-native/api/frontendsInterface/options.js.map +1 -0
  348. package/dist/react-native/api/index.d.ts +0 -6
  349. package/dist/react-native/api/index.d.ts.map +1 -1
  350. package/dist/react-native/api/index.js +0 -5
  351. package/dist/react-native/api/index.js.map +1 -1
  352. package/dist/react-native/api/operations/index.d.ts +2 -8
  353. package/dist/react-native/api/operations/index.d.ts.map +1 -1
  354. package/dist/react-native/api/operations/index.js +1 -20
  355. package/dist/react-native/api/operations/index.js.map +1 -1
  356. package/dist/react-native/api/operations/operations.d.ts +10 -0
  357. package/dist/react-native/api/operations/operations.d.ts.map +1 -0
  358. package/dist/react-native/api/operations/operations.js +29 -0
  359. package/dist/react-native/api/operations/operations.js.map +1 -0
  360. package/dist/react-native/api/operations/options.d.ts +5 -0
  361. package/dist/react-native/api/operations/options.d.ts.map +1 -0
  362. package/dist/react-native/api/operations/options.js +4 -0
  363. package/dist/react-native/api/operations/options.js.map +1 -0
  364. package/dist/react-native/api/securityPoliciesInterface/index.d.ts +2 -25
  365. package/dist/react-native/api/securityPoliciesInterface/index.d.ts.map +1 -1
  366. package/dist/react-native/api/securityPoliciesInterface/index.js +1 -127
  367. package/dist/react-native/api/securityPoliciesInterface/index.js.map +1 -1
  368. package/dist/react-native/api/securityPoliciesInterface/operations.d.ts +32 -0
  369. package/dist/react-native/api/securityPoliciesInterface/operations.d.ts.map +1 -0
  370. package/dist/react-native/api/securityPoliciesInterface/operations.js +170 -0
  371. package/dist/react-native/api/securityPoliciesInterface/operations.js.map +1 -0
  372. package/dist/react-native/api/securityPoliciesInterface/options.d.ts +21 -0
  373. package/dist/react-native/api/securityPoliciesInterface/options.d.ts.map +1 -0
  374. package/dist/react-native/api/securityPoliciesInterface/options.js +4 -0
  375. package/dist/react-native/api/securityPoliciesInterface/options.js.map +1 -0
  376. package/dist/react-native/api/serviceNetworkingManagementContext.js +2 -2
  377. package/dist/react-native/api/serviceNetworkingManagementContext.js.map +1 -1
  378. package/dist/react-native/api/trafficControllerInterface/index.d.ts +2 -29
  379. package/dist/react-native/api/trafficControllerInterface/index.d.ts.map +1 -1
  380. package/dist/react-native/api/trafficControllerInterface/index.js +1 -150
  381. package/dist/react-native/api/trafficControllerInterface/index.js.map +1 -1
  382. package/dist/react-native/api/trafficControllerInterface/operations.d.ts +36 -0
  383. package/dist/react-native/api/trafficControllerInterface/operations.d.ts.map +1 -0
  384. package/dist/react-native/api/trafficControllerInterface/operations.js +192 -0
  385. package/dist/react-native/api/trafficControllerInterface/operations.js.map +1 -0
  386. package/dist/react-native/api/trafficControllerInterface/options.d.ts +24 -0
  387. package/dist/react-native/api/trafficControllerInterface/options.d.ts.map +1 -0
  388. package/dist/react-native/api/trafficControllerInterface/options.js +4 -0
  389. package/dist/react-native/api/trafficControllerInterface/options.js.map +1 -0
  390. package/dist/react-native/classic/associationsInterface/index.d.ts +6 -1
  391. package/dist/react-native/classic/associationsInterface/index.d.ts.map +1 -1
  392. package/dist/react-native/classic/associationsInterface/index.js +6 -6
  393. package/dist/react-native/classic/associationsInterface/index.js.map +1 -1
  394. package/dist/react-native/classic/frontendsInterface/index.d.ts +6 -1
  395. package/dist/react-native/classic/frontendsInterface/index.d.ts.map +1 -1
  396. package/dist/react-native/classic/frontendsInterface/index.js +6 -6
  397. package/dist/react-native/classic/frontendsInterface/index.js.map +1 -1
  398. package/dist/react-native/classic/operations/index.d.ts +1 -1
  399. package/dist/react-native/classic/operations/index.d.ts.map +1 -1
  400. package/dist/react-native/classic/operations/index.js +2 -2
  401. package/dist/react-native/classic/operations/index.js.map +1 -1
  402. package/dist/react-native/classic/securityPoliciesInterface/index.d.ts +6 -1
  403. package/dist/react-native/classic/securityPoliciesInterface/index.d.ts.map +1 -1
  404. package/dist/react-native/classic/securityPoliciesInterface/index.js +6 -6
  405. package/dist/react-native/classic/securityPoliciesInterface/index.js.map +1 -1
  406. package/dist/react-native/classic/trafficControllerInterface/index.d.ts +6 -1
  407. package/dist/react-native/classic/trafficControllerInterface/index.d.ts.map +1 -1
  408. package/dist/react-native/classic/trafficControllerInterface/index.js +7 -7
  409. package/dist/react-native/classic/trafficControllerInterface/index.js.map +1 -1
  410. package/dist/react-native/index.d.ts +7 -2
  411. package/dist/react-native/index.d.ts.map +1 -1
  412. package/dist/react-native/index.js +1 -1
  413. package/dist/react-native/index.js.map +1 -1
  414. package/dist/react-native/models/index.d.ts +1 -1
  415. package/dist/react-native/models/index.d.ts.map +1 -1
  416. package/dist/react-native/models/index.js +1 -1
  417. package/dist/react-native/models/index.js.map +1 -1
  418. package/dist/react-native/models/models.d.ts +309 -241
  419. package/dist/react-native/models/models.d.ts.map +1 -1
  420. package/dist/react-native/models/models.js +313 -217
  421. package/dist/react-native/models/models.js.map +1 -1
  422. package/dist/react-native/restorePollerHelpers.js +12 -12
  423. package/dist/react-native/restorePollerHelpers.js.map +1 -1
  424. package/dist/react-native/serviceNetworkingManagementClient.d.ts +1 -1
  425. package/dist/react-native/serviceNetworkingManagementClient.d.ts.map +1 -1
  426. package/dist/react-native/serviceNetworkingManagementClient.js +1 -1
  427. package/dist/react-native/serviceNetworkingManagementClient.js.map +1 -1
  428. package/dist/react-native/static-helpers/urlTemplate.d.ts +5 -0
  429. package/dist/react-native/static-helpers/urlTemplate.d.ts.map +1 -0
  430. package/dist/react-native/static-helpers/urlTemplate.js +169 -0
  431. package/dist/react-native/static-helpers/urlTemplate.js.map +1 -0
  432. package/package.json +125 -11
  433. package/review/arm-servicenetworking-api-associationsInterface.api.md +51 -0
  434. package/review/arm-servicenetworking-api-frontendsInterface.api.md +51 -0
  435. package/review/arm-servicenetworking-api-operations.api.md +19 -0
  436. package/review/arm-servicenetworking-api-securityPoliciesInterface.api.md +51 -0
  437. package/review/arm-servicenetworking-api-trafficControllerInterface.api.md +58 -0
  438. package/review/arm-servicenetworking-api.api.md +27 -0
  439. package/review/arm-servicenetworking-models.api.md +41 -1
  440. package/review/arm-servicenetworking.api.md +41 -1
  441. package/dist/browser/api/options.d.ts +0 -84
  442. package/dist/browser/api/options.d.ts.map +0 -1
  443. package/dist/browser/api/options.js.map +0 -1
  444. package/dist/commonjs/api/options.d.ts +0 -84
  445. package/dist/commonjs/api/options.d.ts.map +0 -1
  446. package/dist/commonjs/api/options.js.map +0 -1
  447. package/dist/esm/api/options.d.ts +0 -84
  448. package/dist/esm/api/options.d.ts.map +0 -1
  449. package/dist/esm/api/options.js.map +0 -1
  450. package/dist/react-native/api/options.d.ts +0 -84
  451. package/dist/react-native/api/options.d.ts.map +0 -1
  452. package/dist/react-native/api/options.js.map +0 -1
  453. /package/dist/browser/api/{options.js → associationsInterface/options.js} +0 -0
  454. /package/dist/{esm/api → browser/api/frontendsInterface}/options.js +0 -0
  455. /package/dist/{react-native/api → browser/api/operations}/options.js +0 -0
  456. /package/dist/commonjs/api/{options.js → associationsInterface/options.js} +0 -0
@@ -0,0 +1,172 @@
1
+ "use strict";
2
+ // Copyright (c) Microsoft Corporation.
3
+ // Licensed under the MIT License.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.expandUrlTemplate = expandUrlTemplate;
6
+ // ---------------------
7
+ // helpers
8
+ // ---------------------
9
+ function encodeComponent(val, reserved, op) {
10
+ return (reserved !== null && reserved !== void 0 ? reserved : op === "+") || op === "#"
11
+ ? encodeReservedComponent(val)
12
+ : encodeRFC3986URIComponent(val);
13
+ }
14
+ function encodeReservedComponent(str) {
15
+ return str
16
+ .split(/(%[0-9A-Fa-f]{2})/g)
17
+ .map((part) => (!/%[0-9A-Fa-f]/.test(part) ? encodeURI(part) : part))
18
+ .join("");
19
+ }
20
+ function encodeRFC3986URIComponent(str) {
21
+ return encodeURIComponent(str).replace(/[!'()*]/g, (c) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`);
22
+ }
23
+ function isDefined(val) {
24
+ return val !== undefined && val !== null;
25
+ }
26
+ function getNamedAndIfEmpty(op) {
27
+ return [!!op && [";", "?", "&"].includes(op), !!op && ["?", "&"].includes(op) ? "=" : ""];
28
+ }
29
+ function getFirstOrSep(op, isFirst = false) {
30
+ if (isFirst) {
31
+ return !op || op === "+" ? "" : op;
32
+ }
33
+ else if (!op || op === "+" || op === "#") {
34
+ return ",";
35
+ }
36
+ else if (op === "?") {
37
+ return "&";
38
+ }
39
+ else {
40
+ return op;
41
+ }
42
+ }
43
+ function getExpandedValue(option) {
44
+ let isFirst = option.isFirst;
45
+ const { op, varName, varValue: value, reserved } = option;
46
+ const vals = [];
47
+ const [named, ifEmpty] = getNamedAndIfEmpty(op);
48
+ if (Array.isArray(value)) {
49
+ for (const val of value.filter(isDefined)) {
50
+ // prepare the following parts: separator, varName, value
51
+ vals.push(`${getFirstOrSep(op, isFirst)}`);
52
+ if (named && varName) {
53
+ vals.push(`${encodeURIComponent(varName)}`);
54
+ val === "" ? vals.push(ifEmpty) : vals.push("=");
55
+ }
56
+ vals.push(encodeComponent(val, reserved, op));
57
+ isFirst = false;
58
+ }
59
+ }
60
+ else if (typeof value === "object") {
61
+ for (const key of Object.keys(value)) {
62
+ const val = value[key];
63
+ if (!isDefined(val)) {
64
+ continue;
65
+ }
66
+ // prepare the following parts: separator, key, value
67
+ vals.push(`${getFirstOrSep(op, isFirst)}`);
68
+ if (key) {
69
+ vals.push(`${encodeURIComponent(key)}`);
70
+ named && val === "" ? vals.push(ifEmpty) : vals.push("=");
71
+ }
72
+ vals.push(encodeComponent(val, reserved, op));
73
+ isFirst = false;
74
+ }
75
+ }
76
+ return vals.join("");
77
+ }
78
+ function getNonExpandedValue(option) {
79
+ const { op, varName, varValue: value, isFirst, reserved } = option;
80
+ const vals = [];
81
+ const first = getFirstOrSep(op, isFirst);
82
+ const [named, ifEmpty] = getNamedAndIfEmpty(op);
83
+ if (named && varName) {
84
+ vals.push(encodeComponent(varName, reserved, op));
85
+ if (value === "") {
86
+ if (!ifEmpty) {
87
+ vals.push(ifEmpty);
88
+ }
89
+ return !vals.join("") ? undefined : `${first}${vals.join("")}`;
90
+ }
91
+ vals.push("=");
92
+ }
93
+ const items = [];
94
+ if (Array.isArray(value)) {
95
+ for (const val of value.filter(isDefined)) {
96
+ items.push(encodeComponent(val, reserved, op));
97
+ }
98
+ }
99
+ else if (typeof value === "object") {
100
+ for (const key of Object.keys(value)) {
101
+ if (!isDefined(value[key])) {
102
+ continue;
103
+ }
104
+ items.push(encodeRFC3986URIComponent(key));
105
+ items.push(encodeComponent(value[key], reserved, op));
106
+ }
107
+ }
108
+ vals.push(items.join(","));
109
+ return !vals.join(",") ? undefined : `${first}${vals.join("")}`;
110
+ }
111
+ function getVarValue(option) {
112
+ const { op, varName, modifier, isFirst, reserved, varValue: value } = option;
113
+ if (!isDefined(value)) {
114
+ return undefined;
115
+ }
116
+ else if (["string", "number", "boolean"].includes(typeof value)) {
117
+ let val = value.toString();
118
+ const [named, ifEmpty] = getNamedAndIfEmpty(op);
119
+ const vals = [getFirstOrSep(op, isFirst)];
120
+ if (named && varName) {
121
+ // No need to encode varName considering it is already encoded
122
+ vals.push(varName);
123
+ val === "" ? vals.push(ifEmpty) : vals.push("=");
124
+ }
125
+ if (modifier && modifier !== "*") {
126
+ val = val.substring(0, parseInt(modifier, 10));
127
+ }
128
+ vals.push(encodeComponent(val, reserved, op));
129
+ return vals.join("");
130
+ }
131
+ else if (modifier === "*") {
132
+ return getExpandedValue(option);
133
+ }
134
+ else {
135
+ return getNonExpandedValue(option);
136
+ }
137
+ }
138
+ // ---------------------------------------------------------------------------------------------------
139
+ // This is an implementation of RFC 6570 URI Template: https://datatracker.ietf.org/doc/html/rfc6570.
140
+ // ---------------------------------------------------------------------------------------------------
141
+ function expandUrlTemplate(template, context, option) {
142
+ return template.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g, (_, expr, text) => {
143
+ if (!expr) {
144
+ return encodeReservedComponent(text);
145
+ }
146
+ let op;
147
+ if (["+", "#", ".", "/", ";", "?", "&"].includes(expr[0])) {
148
+ (op = expr[0]), (expr = expr.slice(1));
149
+ }
150
+ const varList = expr.split(/,/g);
151
+ const result = [];
152
+ for (const varSpec of varList) {
153
+ const varMatch = /([^:\*]*)(?::(\d+)|(\*))?/.exec(varSpec);
154
+ if (!varMatch || !varMatch[1]) {
155
+ continue;
156
+ }
157
+ const varValue = getVarValue({
158
+ isFirst: result.length === 0,
159
+ op,
160
+ varValue: context[varMatch[1]],
161
+ varName: varMatch[1],
162
+ modifier: varMatch[2] || varMatch[3],
163
+ reserved: option === null || option === void 0 ? void 0 : option.allowReserved,
164
+ });
165
+ if (varValue) {
166
+ result.push(varValue);
167
+ }
168
+ }
169
+ return result.join("");
170
+ });
171
+ }
172
+ //# sourceMappingURL=urlTemplate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"urlTemplate.js","sourceRoot":"","sources":["../../../src/static-helpers/urlTemplate.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAiKlC,8CAkCC;AAhLD,wBAAwB;AACxB,UAAU;AACV,wBAAwB;AACxB,SAAS,eAAe,CAAC,GAAW,EAAE,QAAkB,EAAE,EAAW;IACnE,OAAO,CAAC,QAAQ,aAAR,QAAQ,cAAR,QAAQ,GAAI,EAAE,KAAK,GAAG,CAAC,IAAI,EAAE,KAAK,GAAG;QAC3C,CAAC,CAAC,uBAAuB,CAAC,GAAG,CAAC;QAC9B,CAAC,CAAC,yBAAyB,CAAC,GAAG,CAAC,CAAC;AACrC,CAAC;AAED,SAAS,uBAAuB,CAAC,GAAW;IAC1C,OAAO,GAAG;SACP,KAAK,CAAC,oBAAoB,CAAC;SAC3B,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;SACpE,IAAI,CAAC,EAAE,CAAC,CAAC;AACd,CAAC;AAED,SAAS,yBAAyB,CAAC,GAAW;IAC5C,OAAO,kBAAkB,CAAC,GAAG,CAAC,CAAC,OAAO,CACpC,UAAU,EACV,CAAC,CAAC,EAAE,E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,CAAC,EAAE,CAAC,CAAC;IACzB,CAAC,CAAC,CAAC;AACL,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n//---------------------\n// interfaces\n//---------------------\ninterface ValueOptions {\n isFirst: boolean; // is first value in the expression\n op?: string; // operator\n varValue?: any; // variable value\n varName?: string; // variable name\n modifier?: string; // modifier e.g *\n reserved?: boolean; // if true we'll keep reserved words with not encoding\n}\n\nexport interface UrlTemplateOptions {\n // if set to true, reserved characters will not be encoded\n allowReserved?: boolean;\n}\n\n// ---------------------\n// helpers\n// ---------------------\nfunction encodeComponent(val: string, reserved?: boolean, op?: string) {\n return (reserved ?? op === \"+\") || op === \"#\"\n ? encodeReservedComponent(val)\n : encodeRFC3986URIComponent(val);\n}\n\nfunction encodeReservedComponent(str: string) {\n return str\n .split(/(%[0-9A-Fa-f]{2})/g)\n .map((part) => (!/%[0-9A-Fa-f]/.test(part) ? encodeURI(part) : part))\n .join(\"\");\n}\n\nfunction encodeRFC3986URIComponent(str: string) {\n return encodeURIComponent(str).replace(\n /[!'()*]/g,\n (c) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`,\n );\n}\n\nfunction isDefined(val: any) {\n return val !== undefined && val !== null;\n}\n\nfunction getNamedAndIfEmpty(op?: string): [boolean, string] {\n return [!!op && [\";\", \"?\", \"&\"].includes(op), !!op && [\"?\", \"&\"].includes(op) ? \"=\" : \"\"];\n}\n\nfunction getFirstOrSep(op?: string, isFirst = false) {\n if (isFirst) {\n return !op || op === \"+\" ? \"\" : op;\n } else if (!op || op === \"+\" || op === \"#\") {\n return \",\";\n } else if (op === \"?\") {\n return \"&\";\n } else {\n return op;\n }\n}\n\nfunction getExpandedValue(option: ValueOptions) {\n let isFirst = option.isFirst;\n const { op, varName, varValue: value, reserved } = option;\n const vals: string[] = [];\n const [named, ifEmpty] = getNamedAndIfEmpty(op);\n\n if (Array.isArray(value)) {\n for (const val of value.filter(isDefined)) {\n // prepare the following parts: separator, varName, value\n vals.push(`${getFirstOrSep(op, isFirst)}`);\n if (named && varName) {\n vals.push(`${encodeURIComponent(varName)}`);\n val === \"\" ? vals.push(ifEmpty) : vals.push(\"=\");\n }\n vals.push(encodeComponent(val, reserved, op));\n isFirst = false;\n }\n } else if (typeof value === \"object\") {\n for (const key of Object.keys(value)) {\n const val = value[key];\n if (!isDefined(val)) {\n continue;\n }\n // prepare the following parts: separator, key, value\n vals.push(`${getFirstOrSep(op, isFirst)}`);\n if (key) {\n vals.push(`${encodeURIComponent(key)}`);\n named && val === \"\" ? vals.push(ifEmpty) : vals.push(\"=\");\n }\n vals.push(encodeComponent(val, reserved, op));\n isFirst = false;\n }\n }\n return vals.join(\"\");\n}\n\nfunction getNonExpandedValue(option: ValueOptions) {\n const { op, varName, varValue: value, isFirst, reserved } = option;\n const vals: string[] = [];\n const first = getFirstOrSep(op, isFirst);\n const [named, ifEmpty] = getNamedAndIfEmpty(op);\n if (named && varName) {\n vals.push(encodeComponent(varName, reserved, op));\n if (value === \"\") {\n if (!ifEmpty) {\n vals.push(ifEmpty);\n }\n return !vals.join(\"\") ? undefined : `${first}${vals.join(\"\")}`;\n }\n vals.push(\"=\");\n }\n\n const items = [];\n if (Array.isArray(value)) {\n for (const val of value.filter(isDefined)) {\n items.push(encodeComponent(val, reserved, op));\n }\n } else if (typeof value === \"object\") {\n for (const key of Object.keys(value)) {\n if (!isDefined(value[key])) {\n continue;\n }\n items.push(encodeRFC3986URIComponent(key));\n items.push(encodeComponent(value[key], reserved, op));\n }\n }\n vals.push(items.join(\",\"));\n return !vals.join(\",\") ? undefined : `${first}${vals.join(\"\")}`;\n}\n\nfunction getVarValue(option: ValueOptions): string | undefined {\n const { op, varName, modifier, isFirst, reserved, varValue: value } = option;\n\n if (!isDefined(value)) {\n return undefined;\n } else if ([\"string\", \"number\", \"boolean\"].includes(typeof value)) {\n let val = value.toString();\n const [named, ifEmpty] = getNamedAndIfEmpty(op);\n const vals: string[] = [getFirstOrSep(op, isFirst)];\n if (named && varName) {\n // No need to encode varName considering it is already encoded\n vals.push(varName);\n val === \"\" ? vals.push(ifEmpty) : vals.push(\"=\");\n }\n if (modifier && modifier !== \"*\") {\n val = val.substring(0, parseInt(modifier, 10));\n }\n vals.push(encodeComponent(val, reserved, op));\n return vals.join(\"\");\n } else if (modifier === \"*\") {\n return getExpandedValue(option);\n } else {\n return getNonExpandedValue(option);\n }\n}\n\n// ---------------------------------------------------------------------------------------------------\n// This is an implementation of RFC 6570 URI Template: https://datatracker.ietf.org/doc/html/rfc6570.\n// ---------------------------------------------------------------------------------------------------\nexport function expandUrlTemplate(\n template: string,\n context: Record<string, any>,\n option?: UrlTemplateOptions,\n): string {\n return template.replace(/\\{([^\\{\\}]+)\\}|([^\\{\\}]+)/g, (_, expr, text) => {\n if (!expr) {\n return encodeReservedComponent(text);\n }\n let op;\n if ([\"+\", \"#\", \".\", \"/\", \";\", \"?\", \"&\"].includes(expr[0])) {\n (op = expr[0]), (expr = expr.slice(1));\n }\n const varList = expr.split(/,/g);\n const result = [];\n for (const varSpec of varList) {\n const varMatch = /([^:\\*]*)(?::(\\d+)|(\\*))?/.exec(varSpec);\n if (!varMatch || !varMatch[1]) {\n continue;\n }\n const varValue = getVarValue({\n isFirst: result.length === 0,\n op,\n varValue: context[varMatch[1]],\n varName: varMatch[1],\n modifier: varMatch[2] || varMatch[3],\n reserved: option?.allowReserved,\n });\n if (varValue) {\n result.push(varValue);\n }\n }\n return result.join(\"\");\n });\n}\n"]}
@@ -1,26 +1,3 @@
1
- import { AssociationsInterfaceCreateOrUpdateOptionalParams, AssociationsInterfaceDeleteOptionalParams, AssociationsInterfaceGetOptionalParams, AssociationsInterfaceListByTrafficControllerOptionalParams, AssociationsInterfaceUpdateOptionalParams, ServiceNetworkingManagementContext as Client } from "../index.js";
2
- import { Association, AssociationUpdate, _AssociationListResult } from "../../models/models.js";
3
- import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
4
- import { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
5
- import { PollerLike, OperationState } from "@azure/core-lro";
6
- export declare function _associationsInterfaceListByTrafficControllerSend(context: Client, resourceGroupName: string, trafficControllerName: string, options?: AssociationsInterfaceListByTrafficControllerOptionalParams): StreamableMethod;
7
- export declare function _associationsInterfaceListByTrafficControllerDeserialize(result: PathUncheckedResponse): Promise<_AssociationListResult>;
8
- /** List Association resources by TrafficController */
9
- export declare function associationsInterfaceListByTrafficController(context: Client, resourceGroupName: string, trafficControllerName: string, options?: AssociationsInterfaceListByTrafficControllerOptionalParams): PagedAsyncIterableIterator<Association>;
10
- export declare function _associationsInterfaceDeleteSend(context: Client, resourceGroupName: string, trafficControllerName: string, associationName: string, options?: AssociationsInterfaceDeleteOptionalParams): StreamableMethod;
11
- export declare function _associationsInterfaceDeleteDeserialize(result: PathUncheckedResponse): Promise<void>;
12
- /** Delete a Association */
13
- export declare function associationsInterfaceDelete(context: Client, resourceGroupName: string, trafficControllerName: string, associationName: string, options?: AssociationsInterfaceDeleteOptionalParams): PollerLike<OperationState<void>, void>;
14
- export declare function _associationsInterfaceUpdateSend(context: Client, resourceGroupName: string, trafficControllerName: string, associationName: string, properties: AssociationUpdate, options?: AssociationsInterfaceUpdateOptionalParams): StreamableMethod;
15
- export declare function _associationsInterfaceUpdateDeserialize(result: PathUncheckedResponse): Promise<Association>;
16
- /** Update a Association */
17
- export declare function associationsInterfaceUpdate(context: Client, resourceGroupName: string, trafficControllerName: string, associationName: string, properties: AssociationUpdate, options?: AssociationsInterfaceUpdateOptionalParams): Promise<Association>;
18
- export declare function _associationsInterfaceCreateOrUpdateSend(context: Client, resourceGroupName: string, trafficControllerName: string, associationName: string, resource: Association, options?: AssociationsInterfaceCreateOrUpdateOptionalParams): StreamableMethod;
19
- export declare function _associationsInterfaceCreateOrUpdateDeserialize(result: PathUncheckedResponse): Promise<Association>;
20
- /** Create a Association */
21
- export declare function associationsInterfaceCreateOrUpdate(context: Client, resourceGroupName: string, trafficControllerName: string, associationName: string, resource: Association, options?: AssociationsInterfaceCreateOrUpdateOptionalParams): PollerLike<OperationState<Association>, Association>;
22
- export declare function _associationsInterfaceGetSend(context: Client, resourceGroupName: string, trafficControllerName: string, associationName: string, options?: AssociationsInterfaceGetOptionalParams): StreamableMethod;
23
- export declare function _associationsInterfaceGetDeserialize(result: PathUncheckedResponse): Promise<Association>;
24
- /** Get a Association */
25
- export declare function associationsInterfaceGet(context: Client, resourceGroupName: string, trafficControllerName: string, associationName: string, options?: AssociationsInterfaceGetOptionalParams): Promise<Association>;
1
+ export { listByTrafficController, $delete, update, createOrUpdate, get } from "./operations.js";
2
+ export { AssociationsInterfaceListByTrafficControllerOptionalParams, AssociationsInterfaceDeleteOptionalParams, AssociationsInterfaceUpdateOptionalParams, AssociationsInterfaceCreateOrUpdateOptionalParams, AssociationsInterfaceGetOptionalParams, } from "./options.js";
26
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/associationsInterface/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,iDAAiD,EACjD,yCAAyC,EACzC,sCAAsC,EACtC,0DAA0D,EAC1D,yCAAyC,EACzC,kCAAkC,IAAI,MAAM,EAC7C,MAAM,aAAa,CAAC;AACrB,OAAO,EAEL,WAAW,EAGX,iBAAiB,EAEjB,sBAAsB,EAEvB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,0BAA0B,EAE3B,MAAM,uCAAuC,CAAC;AAE/C,OAAO,EACL,gBAAgB,EAChB,qBAAqB,EAGtB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAE7D,wBAAgB,iDAAiD,CAC/D,OAAO,EAAE,MAAM,EACf,iBAAiB,EAAE,MAAM,EACzB,qBAAqB,EAAE,MAAM,EAC7B,OAAO,GAAE,0DAER,GACA,gBAAgB,CAgBlB;AAED,wBAAsB,wDAAwD,CAC5E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,WAAW,CAAC,CAUtB;AAED,wBAAgB,wCAAwC,CACtD,OAAO,EAAE,MAAM,EACf,iBAAiB,EAAE,MAAM,EACzB,qBAAqB,EAAE,MAAM,EAC7B,eAAe,EAAE,MAAM,EACvB,QAAQ,EAAE,WAAW,EACrB,OAAO,GAAE,iDAER,GACA,gBAAgB,CAmBlB;AAED,wBAAsB,+CAA+C,CACnE,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,WAAW,CAAC,CAStB;AAED,2BAA2B;AAC3B,wBAAgB,mCAAmC,CACjD,OAAO,EAAE,MAAM,EACf,iBAAiB,EAAE,MAAM,EACzB,qBAAqB,EAAE,MAAM,EAC7B,eAAe,EAAE,MAAM,EACvB,QAAQ,EAAE,WAAW,EACrB,OAAO,GAAE,iDAER,GACA,UAAU,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,WAAW,CAAC,CAoBtD;AAED,wBAAgB,6BAA6B,CAC3C,OAAO,EAAE,MAAM,EACf,iBAAiB,EAAE,MAAM,EACzB,qBAAqB,EAAE,MAAM,EAC7B,eAAe,EAAE,MAAM,EACvB,OAAO,GAAE,sCAA+D,GACvE,gBAAgB,CAiBlB;AAED,wBAAsB,oCAAoC,CACxD,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,WAAW,CAAC,CAStB;AAED,wBAAwB;AACxB,wBAAsB,wBAAwB,CAC5C,OAAO,EAAE,MAAM,EACf,iBAAiB,EAAE,MAAM,EACzB,qBAAqB,EAAE,MAAM,EAC7B,eAAe,EAAE,MAAM,EACvB,OAAO,GAAE,sCAA+D,GACvE,OAAO,CAAC,WAAW,CAAC,CAStB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/associationsInterface/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,uBAAuB,EAAE,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AAChG,OAAO,EACL,0DAA0D,EAC1D,yCAAyC,EACzC,yCAAyC,EACzC,iDAAiD,EACjD,sCAAsC,GACvC,MAAM,cAAc,CAAC"}
@@ -1,122 +1,4 @@
1
1
  // Copyright (c) Microsoft Corporation.
2
2
  // Licensed under the MIT License.
3
- import { errorResponseDeserializer, associationSerializer, associationDeserializer, associationUpdateSerializer, _associationListResultDeserializer, } from "../../models/models.js";
4
- import { buildPagedAsyncIterator, } from "../../static-helpers/pagingHelpers.js";
5
- import { getLongRunningPoller } from "../../static-helpers/pollingHelpers.js";
6
- import { createRestError, operationOptionsToRequestParameters, } from "@azure-rest/core-client";
7
- export function _associationsInterfaceListByTrafficControllerSend(context, resourceGroupName, trafficControllerName, options = {
8
- requestOptions: {},
9
- }) {
10
- var _a;
11
- return context
12
- .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/associations", context.subscriptionId, resourceGroupName, trafficControllerName)
13
- .get(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (_a = options.requestOptions) === null || _a === void 0 ? void 0 : _a.headers), queryParameters: { "api-version": context.apiVersion } }));
14
- }
15
- export async function _associationsInterfaceListByTrafficControllerDeserialize(result) {
16
- const expectedStatuses = ["200"];
17
- if (!expectedStatuses.includes(result.status)) {
18
- const error = createRestError(result);
19
- error.details = errorResponseDeserializer(result.body);
20
- throw error;
21
- }
22
- return _associationListResultDeserializer(result.body);
23
- }
24
- /** List Association resources by TrafficController */
25
- export function associationsInterfaceListByTrafficController(context, resourceGroupName, trafficControllerName, options = {
26
- requestOptions: {},
27
- }) {
28
- return buildPagedAsyncIterator(context, () => _associationsInterfaceListByTrafficControllerSend(context, resourceGroupName, trafficControllerName, options), _associationsInterfaceListByTrafficControllerDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
29
- }
30
- export function _associationsInterfaceDeleteSend(context, resourceGroupName, trafficControllerName, associationName, options = { requestOptions: {} }) {
31
- var _a;
32
- return context
33
- .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/associations/{associationName}", context.subscriptionId, resourceGroupName, trafficControllerName, associationName)
34
- .delete(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (_a = options.requestOptions) === null || _a === void 0 ? void 0 : _a.headers), queryParameters: { "api-version": context.apiVersion } }));
35
- }
36
- export async function _associationsInterfaceDeleteDeserialize(result) {
37
- const expectedStatuses = ["202", "204", "200"];
38
- if (!expectedStatuses.includes(result.status)) {
39
- const error = createRestError(result);
40
- error.details = errorResponseDeserializer(result.body);
41
- throw error;
42
- }
43
- return;
44
- }
45
- /** Delete a Association */
46
- export function associationsInterfaceDelete(context, resourceGroupName, trafficControllerName, associationName, options = { requestOptions: {} }) {
47
- return getLongRunningPoller(context, _associationsInterfaceDeleteDeserialize, ["202", "204", "200"], {
48
- updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
49
- abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
50
- getInitialResponse: () => _associationsInterfaceDeleteSend(context, resourceGroupName, trafficControllerName, associationName, options),
51
- resourceLocationConfig: "location",
52
- });
53
- }
54
- export function _associationsInterfaceUpdateSend(context, resourceGroupName, trafficControllerName, associationName, properties, options = { requestOptions: {} }) {
55
- var _a;
56
- return context
57
- .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/associations/{associationName}", context.subscriptionId, resourceGroupName, trafficControllerName, associationName)
58
- .patch(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_a = options.requestOptions) === null || _a === void 0 ? void 0 : _a.headers), queryParameters: { "api-version": context.apiVersion }, body: associationUpdateSerializer(properties) }));
59
- }
60
- export async function _associationsInterfaceUpdateDeserialize(result) {
61
- const expectedStatuses = ["200"];
62
- if (!expectedStatuses.includes(result.status)) {
63
- const error = createRestError(result);
64
- error.details = errorResponseDeserializer(result.body);
65
- throw error;
66
- }
67
- return associationDeserializer(result.body);
68
- }
69
- /** Update a Association */
70
- export async function associationsInterfaceUpdate(context, resourceGroupName, trafficControllerName, associationName, properties, options = { requestOptions: {} }) {
71
- const result = await _associationsInterfaceUpdateSend(context, resourceGroupName, trafficControllerName, associationName, properties, options);
72
- return _associationsInterfaceUpdateDeserialize(result);
73
- }
74
- export function _associationsInterfaceCreateOrUpdateSend(context, resourceGroupName, trafficControllerName, associationName, resource, options = {
75
- requestOptions: {},
76
- }) {
77
- var _a;
78
- return context
79
- .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/associations/{associationName}", context.subscriptionId, resourceGroupName, trafficControllerName, associationName)
80
- .put(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_a = options.requestOptions) === null || _a === void 0 ? void 0 : _a.headers), queryParameters: { "api-version": context.apiVersion }, body: associationSerializer(resource) }));
81
- }
82
- export async function _associationsInterfaceCreateOrUpdateDeserialize(result) {
83
- const expectedStatuses = ["200", "201"];
84
- if (!expectedStatuses.includes(result.status)) {
85
- const error = createRestError(result);
86
- error.details = errorResponseDeserializer(result.body);
87
- throw error;
88
- }
89
- return associationDeserializer(result.body);
90
- }
91
- /** Create a Association */
92
- export function associationsInterfaceCreateOrUpdate(context, resourceGroupName, trafficControllerName, associationName, resource, options = {
93
- requestOptions: {},
94
- }) {
95
- return getLongRunningPoller(context, _associationsInterfaceCreateOrUpdateDeserialize, ["200", "201"], {
96
- updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
97
- abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
98
- getInitialResponse: () => _associationsInterfaceCreateOrUpdateSend(context, resourceGroupName, trafficControllerName, associationName, resource, options),
99
- resourceLocationConfig: "azure-async-operation",
100
- });
101
- }
102
- export function _associationsInterfaceGetSend(context, resourceGroupName, trafficControllerName, associationName, options = { requestOptions: {} }) {
103
- var _a;
104
- return context
105
- .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/associations/{associationName}", context.subscriptionId, resourceGroupName, trafficControllerName, associationName)
106
- .get(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (_a = options.requestOptions) === null || _a === void 0 ? void 0 : _a.headers), queryParameters: { "api-version": context.apiVersion } }));
107
- }
108
- export async function _associationsInterfaceGetDeserialize(result) {
109
- const expectedStatuses = ["200"];
110
- if (!expectedStatuses.includes(result.status)) {
111
- const error = createRestError(result);
112
- error.details = errorResponseDeserializer(result.body);
113
- throw error;
114
- }
115
- return associationDeserializer(result.body);
116
- }
117
- /** Get a Association */
118
- export async function associationsInterfaceGet(context, resourceGroupName, trafficControllerName, associationName, options = { requestOptions: {} }) {
119
- const result = await _associationsInterfaceGetSend(context, resourceGroupName, trafficControllerName, associationName, options);
120
- return _associationsInterfaceGetDeserialize(result);
121
- }
3
+ export { listByTrafficController, $delete, update, createOrUpdate, get } from "./operations.js";
122
4
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/associationsInterface/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAUlC,OAAO,EACL,yBAAyB,EAEzB,qBAAqB,EACrB,uBAAuB,EAEvB,2BAA2B,EAE3B,kCAAkC,GACnC,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,uBAAuB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,EAGL,eAAe,EACf,mCAAmC,GACpC,MAAM,yBAAyB,CAAC;AAG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CAAC,CAAC;QACvD,MAAM,KAAK,CAAC;IACd,CAAC;IAED,OAAO,uBAAuB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AAC9C,CAAC;AAED,wBAAwB;AACxB,MAAM,CAAC,KAAK,UAAU,wBAAwB,CAC5C,OAAe,EACf,iBAAyB,EACzB,qBAA6B,EAC7B,eAAuB,EACvB,UAAkD,EAAE,cAAc,EAAE,EAAE,EAAE;IAExE,MAAM,MAAM,GAAG,MAAM,6BAA6B,CAChD,OAAO,EACP,iBAAiB,EACjB,qBAAqB,EACrB,eAAe,EACf,OAAO,CACR,CAAC;IACF,OAAO,oCAAoC,CAAC,MAAM,CAAC,CAAC;AACtD,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport {\n AssociationsInterfaceCreateOrUpdateOptionalParams,\n AssociationsInterfaceDeleteOptionalParams,\n AssociationsInterfaceGetOptionalParams,\n AssociationsInterfaceListByTrafficControllerOptionalParams,\n AssociationsInterfaceUpdateOptionalParams,\n ServiceNetworkingManagementContext as Client,\n} from \"../index.js\";\nimport {\n errorResponseDeserializer,\n Association,\n associationSerializer,\n associationDeserializer,\n AssociationUpdate,\n associationUpdateSerializer,\n _AssociationListResult,\n _associationListResultDeserializer,\n} from \"../../models/models.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport { getLongRunningPoller } from \"../../static-helpers/pollingHelpers.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\nimport { PollerLike, OperationState } from \"@azure/core-lro\";\n\nexport function _associationsInterfaceListByTrafficControllerSend(\n context: Client,\n resourceGroupName: string,\n trafficControllerName: string,\n options: AssociationsInterfaceListByTrafficControllerOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/associations\",\n context.subscriptionId,\n resourceGroupName,\n trafficControllerName,\n )\n .get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n queryParameters: { \"api-version\": context.apiVersion },\n });\n}\n\nexport async function _associationsInterfaceListByTrafficControllerDeserialize(\n result: PathUncheckedResponse,\n): Promise<_AssociationListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return _associationListResultDeserializer(result.body);\n}\n\n/** List Association resources by TrafficController */\nexport function associationsInterfaceListByTrafficController(\n context: Client,\n resourceGroupName: string,\n trafficControllerName: string,\n options: AssociationsInterfaceListByTrafficControllerOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<Association> {\n return buildPagedAsyncIterator(\n context,\n () =>\n _associationsInterfaceListByTrafficControllerSend(\n context,\n resourceGroupName,\n trafficControllerName,\n options,\n ),\n _associationsInterfaceListByTrafficControllerDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n\nexport function _associationsInterfaceDeleteSend(\n context: Client,\n resourceGroupName: string,\n trafficControllerName: string,\n associationName: string,\n options: AssociationsInterfaceDeleteOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/associations/{associationName}\",\n context.subscriptionId,\n resourceGroupName,\n trafficControllerName,\n associationName,\n )\n .delete({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n queryParameters: { \"api-version\": context.apiVersion },\n });\n}\n\nexport async function _associationsInterfaceDeleteDeserialize(\n result: PathUncheckedResponse,\n): Promise<void> {\n const expectedStatuses = [\"202\", \"204\", \"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return;\n}\n\n/** Delete a Association */\nexport function associationsInterfaceDelete(\n context: Client,\n resourceGroupName: string,\n trafficControllerName: string,\n associationName: string,\n options: AssociationsInterfaceDeleteOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<void>, void> {\n return getLongRunningPoller(\n context,\n _associationsInterfaceDeleteDeserialize,\n [\"202\", \"204\", \"200\"],\n {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _associationsInterfaceDeleteSend(\n context,\n resourceGroupName,\n trafficControllerName,\n associationName,\n options,\n ),\n resourceLocationConfig: \"location\",\n },\n ) as PollerLike<OperationState<void>, void>;\n}\n\nexport function _associationsInterfaceUpdateSend(\n context: Client,\n resourceGroupName: string,\n trafficControllerName: string,\n associationName: string,\n properties: AssociationUpdate,\n options: AssociationsInterfaceUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/associations/{associationName}\",\n context.subscriptionId,\n resourceGroupName,\n trafficControllerName,\n associationName,\n )\n .patch({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n queryParameters: { \"api-version\": context.apiVersion },\n body: associationUpdateSerializer(properties),\n });\n}\n\nexport async function _associationsInterfaceUpdateDeserialize(\n result: PathUncheckedResponse,\n): Promise<Association> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return associationDeserializer(result.body);\n}\n\n/** Update a Association */\nexport async function associationsInterfaceUpdate(\n context: Client,\n resourceGroupName: string,\n trafficControllerName: string,\n associationName: string,\n properties: AssociationUpdate,\n options: AssociationsInterfaceUpdateOptionalParams = { requestOptions: {} },\n): Promise<Association> {\n const result = await _associationsInterfaceUpdateSend(\n context,\n resourceGroupName,\n trafficControllerName,\n associationName,\n properties,\n options,\n );\n return _associationsInterfaceUpdateDeserialize(result);\n}\n\nexport function _associationsInterfaceCreateOrUpdateSend(\n context: Client,\n resourceGroupName: string,\n trafficControllerName: string,\n associationName: string,\n resource: Association,\n options: AssociationsInterfaceCreateOrUpdateOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/associations/{associationName}\",\n context.subscriptionId,\n resourceGroupName,\n trafficControllerName,\n associationName,\n )\n .put({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n queryParameters: { \"api-version\": context.apiVersion },\n body: associationSerializer(resource),\n });\n}\n\nexport async function _associationsInterfaceCreateOrUpdateDeserialize(\n result: PathUncheckedResponse,\n): Promise<Association> {\n const expectedStatuses = [\"200\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return associationDeserializer(result.body);\n}\n\n/** Create a Association */\nexport function associationsInterfaceCreateOrUpdate(\n context: Client,\n resourceGroupName: string,\n trafficControllerName: string,\n associationName: string,\n resource: Association,\n options: AssociationsInterfaceCreateOrUpdateOptionalParams = {\n requestOptions: {},\n },\n): PollerLike<OperationState<Association>, Association> {\n return getLongRunningPoller(\n context,\n _associationsInterfaceCreateOrUpdateDeserialize,\n [\"200\", \"201\"],\n {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _associationsInterfaceCreateOrUpdateSend(\n context,\n resourceGroupName,\n trafficControllerName,\n associationName,\n resource,\n options,\n ),\n resourceLocationConfig: \"azure-async-operation\",\n },\n ) as PollerLike<OperationState<Association>, Association>;\n}\n\nexport function _associationsInterfaceGetSend(\n context: Client,\n resourceGroupName: string,\n trafficControllerName: string,\n associationName: string,\n options: AssociationsInterfaceGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/associations/{associationName}\",\n context.subscriptionId,\n resourceGroupName,\n trafficControllerName,\n associationName,\n )\n .get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n queryParameters: { \"api-version\": context.apiVersion },\n });\n}\n\nexport async function _associationsInterfaceGetDeserialize(\n result: PathUncheckedResponse,\n): Promise<Association> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return associationDeserializer(result.body);\n}\n\n/** Get a Association */\nexport async function associationsInterfaceGet(\n context: Client,\n resourceGroupName: string,\n trafficControllerName: string,\n associationName: string,\n options: AssociationsInterfaceGetOptionalParams = { requestOptions: {} },\n): Promise<Association> {\n const result = await _associationsInterfaceGetSend(\n context,\n resourceGroupName,\n trafficControllerName,\n associationName,\n options,\n );\n return _associationsInterfaceGetDeserialize(result);\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/associationsInterface/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,uBAAuB,EAAE,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport { listByTrafficController, $delete, update, createOrUpdate, get } from \"./operations.js\";\nexport {\n AssociationsInterfaceListByTrafficControllerOptionalParams,\n AssociationsInterfaceDeleteOptionalParams,\n AssociationsInterfaceUpdateOptionalParams,\n AssociationsInterfaceCreateOrUpdateOptionalParams,\n AssociationsInterfaceGetOptionalParams,\n} from \"./options.js\";\n"]}
@@ -0,0 +1,32 @@
1
+ import { ServiceNetworkingManagementContext as Client } from "../index.js";
2
+ import { Association, AssociationUpdate, _AssociationListResult } from "../../models/models.js";
3
+ import { AssociationsInterfaceListByTrafficControllerOptionalParams, AssociationsInterfaceDeleteOptionalParams, AssociationsInterfaceUpdateOptionalParams, AssociationsInterfaceCreateOrUpdateOptionalParams, AssociationsInterfaceGetOptionalParams } from "./options.js";
4
+ import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
5
+ import { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
6
+ import { PollerLike, OperationState } from "@azure/core-lro";
7
+ export declare function _listByTrafficControllerSend(context: Client, resourceGroupName: string, trafficControllerName: string, options?: AssociationsInterfaceListByTrafficControllerOptionalParams): StreamableMethod;
8
+ export declare function _listByTrafficControllerDeserialize(result: PathUncheckedResponse): Promise<_AssociationListResult>;
9
+ /** List Association resources by TrafficController */
10
+ export declare function listByTrafficController(context: Client, resourceGroupName: string, trafficControllerName: string, options?: AssociationsInterfaceListByTrafficControllerOptionalParams): PagedAsyncIterableIterator<Association>;
11
+ export declare function _$deleteSend(context: Client, resourceGroupName: string, trafficControllerName: string, associationName: string, options?: AssociationsInterfaceDeleteOptionalParams): StreamableMethod;
12
+ export declare function _$deleteDeserialize(result: PathUncheckedResponse): Promise<void>;
13
+ /** Delete a Association */
14
+ /**
15
+ * @fixme delete is a reserved word that cannot be used as an operation name.
16
+ * Please add @clientName("clientName") or @clientName("<JS-Specific-Name>", "javascript")
17
+ * to the operation to override the generated name.
18
+ */
19
+ export declare function $delete(context: Client, resourceGroupName: string, trafficControllerName: string, associationName: string, options?: AssociationsInterfaceDeleteOptionalParams): PollerLike<OperationState<void>, void>;
20
+ export declare function _updateSend(context: Client, resourceGroupName: string, trafficControllerName: string, associationName: string, properties: AssociationUpdate, options?: AssociationsInterfaceUpdateOptionalParams): StreamableMethod;
21
+ export declare function _updateDeserialize(result: PathUncheckedResponse): Promise<Association>;
22
+ /** Update a Association */
23
+ export declare function update(context: Client, resourceGroupName: string, trafficControllerName: string, associationName: string, properties: AssociationUpdate, options?: AssociationsInterfaceUpdateOptionalParams): Promise<Association>;
24
+ export declare function _createOrUpdateSend(context: Client, resourceGroupName: string, trafficControllerName: string, associationName: string, resource: Association, options?: AssociationsInterfaceCreateOrUpdateOptionalParams): StreamableMethod;
25
+ export declare function _createOrUpdateDeserialize(result: PathUncheckedResponse): Promise<Association>;
26
+ /** Create a Association */
27
+ export declare function createOrUpdate(context: Client, resourceGroupName: string, trafficControllerName: string, associationName: string, resource: Association, options?: AssociationsInterfaceCreateOrUpdateOptionalParams): PollerLike<OperationState<Association>, Association>;
28
+ export declare function _getSend(context: Client, resourceGroupName: string, trafficControllerName: string, associationName: string, options?: AssociationsInterfaceGetOptionalParams): StreamableMethod;
29
+ export declare function _getDeserialize(result: PathUncheckedResponse): Promise<Association>;
30
+ /** Get a Association */
31
+ export declare function get(context: Client, resourceGroupName: string, trafficControllerName: string, associationName: string, options?: AssociationsInterfaceGetOptionalParams): Promise<Association>;
32
+ //# sourceMappingURL=operations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../../src/api/associationsInterface/operations.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kCAAkC,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC;AAC3E,OAAO,EACL,WAAW,EAIX,iBAAiB,EAEjB,sBAAsB,EAEvB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,0DAA0D,EAC1D,yCAAyC,EACzC,yCAAyC,EACzC,iDAAiD,EACjD,sCAAsC,EACvC,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,0BAA0B,EAE3B,MAAM,uCAAuC,CAAC;AAE/C,OAAO,EACL,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,OAAO,GAAE,sCAA+D,GACvE,OAAO,CAAC,WAAW,CAAC,CAStB"}
@@ -0,0 +1,162 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ import { associationSerializer, associationDeserializer, errorResponseDeserializer, associationUpdateSerializer, _associationListResultDeserializer, } from "../../models/models.js";
4
+ import { getLongRunningPoller } from "../../static-helpers/pollingHelpers.js";
5
+ import { buildPagedAsyncIterator, } from "../../static-helpers/pagingHelpers.js";
6
+ import { expandUrlTemplate } from "../../static-helpers/urlTemplate.js";
7
+ import { createRestError, operationOptionsToRequestParameters, } from "@azure-rest/core-client";
8
+ export function _listByTrafficControllerSend(context, resourceGroupName, trafficControllerName, options = {
9
+ requestOptions: {},
10
+ }) {
11
+ var _a, _b;
12
+ const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/associations{?api%2Dversion}", {
13
+ subscriptionId: context.subscriptionId,
14
+ resourceGroupName: resourceGroupName,
15
+ trafficControllerName: trafficControllerName,
16
+ "api%2Dversion": context.apiVersion,
17
+ }, {
18
+ allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
19
+ });
20
+ return context.path(path).get(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
21
+ }
22
+ export async function _listByTrafficControllerDeserialize(result) {
23
+ const expectedStatuses = ["200"];
24
+ if (!expectedStatuses.includes(result.status)) {
25
+ const error = createRestError(result);
26
+ error.details = errorResponseDeserializer(result.body);
27
+ throw error;
28
+ }
29
+ return _associationListResultDeserializer(result.body);
30
+ }
31
+ /** List Association resources by TrafficController */
32
+ export function listByTrafficController(context, resourceGroupName, trafficControllerName, options = {
33
+ requestOptions: {},
34
+ }) {
35
+ return buildPagedAsyncIterator(context, () => _listByTrafficControllerSend(context, resourceGroupName, trafficControllerName, options), _listByTrafficControllerDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
36
+ }
37
+ export function _$deleteSend(context, resourceGroupName, trafficControllerName, associationName, options = { requestOptions: {} }) {
38
+ var _a, _b;
39
+ const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/associations/{associationName}{?api%2Dversion}", {
40
+ subscriptionId: context.subscriptionId,
41
+ resourceGroupName: resourceGroupName,
42
+ trafficControllerName: trafficControllerName,
43
+ associationName: associationName,
44
+ "api%2Dversion": context.apiVersion,
45
+ }, {
46
+ allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
47
+ });
48
+ return context.path(path).delete(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
49
+ }
50
+ export async function _$deleteDeserialize(result) {
51
+ const expectedStatuses = ["202", "204", "200"];
52
+ if (!expectedStatuses.includes(result.status)) {
53
+ const error = createRestError(result);
54
+ error.details = errorResponseDeserializer(result.body);
55
+ throw error;
56
+ }
57
+ return;
58
+ }
59
+ /** Delete a Association */
60
+ /**
61
+ * @fixme delete is a reserved word that cannot be used as an operation name.
62
+ * Please add @clientName("clientName") or @clientName("<JS-Specific-Name>", "javascript")
63
+ * to the operation to override the generated name.
64
+ */
65
+ export function $delete(context, resourceGroupName, trafficControllerName, associationName, options = { requestOptions: {} }) {
66
+ return getLongRunningPoller(context, _$deleteDeserialize, ["202", "204", "200"], {
67
+ updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
68
+ abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
69
+ getInitialResponse: () => _$deleteSend(context, resourceGroupName, trafficControllerName, associationName, options),
70
+ resourceLocationConfig: "location",
71
+ });
72
+ }
73
+ export function _updateSend(context, resourceGroupName, trafficControllerName, associationName, properties, options = { requestOptions: {} }) {
74
+ var _a, _b;
75
+ const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/associations/{associationName}{?api%2Dversion}", {
76
+ subscriptionId: context.subscriptionId,
77
+ resourceGroupName: resourceGroupName,
78
+ trafficControllerName: trafficControllerName,
79
+ associationName: associationName,
80
+ "api%2Dversion": context.apiVersion,
81
+ }, {
82
+ allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
83
+ });
84
+ return context.path(path).patch(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: associationUpdateSerializer(properties) }));
85
+ }
86
+ export async function _updateDeserialize(result) {
87
+ const expectedStatuses = ["200"];
88
+ if (!expectedStatuses.includes(result.status)) {
89
+ const error = createRestError(result);
90
+ error.details = errorResponseDeserializer(result.body);
91
+ throw error;
92
+ }
93
+ return associationDeserializer(result.body);
94
+ }
95
+ /** Update a Association */
96
+ export async function update(context, resourceGroupName, trafficControllerName, associationName, properties, options = { requestOptions: {} }) {
97
+ const result = await _updateSend(context, resourceGroupName, trafficControllerName, associationName, properties, options);
98
+ return _updateDeserialize(result);
99
+ }
100
+ export function _createOrUpdateSend(context, resourceGroupName, trafficControllerName, associationName, resource, options = {
101
+ requestOptions: {},
102
+ }) {
103
+ var _a, _b;
104
+ const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/associations/{associationName}{?api%2Dversion}", {
105
+ subscriptionId: context.subscriptionId,
106
+ resourceGroupName: resourceGroupName,
107
+ trafficControllerName: trafficControllerName,
108
+ associationName: associationName,
109
+ "api%2Dversion": context.apiVersion,
110
+ }, {
111
+ allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
112
+ });
113
+ return context.path(path).put(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: associationSerializer(resource) }));
114
+ }
115
+ export async function _createOrUpdateDeserialize(result) {
116
+ const expectedStatuses = ["200", "201"];
117
+ if (!expectedStatuses.includes(result.status)) {
118
+ const error = createRestError(result);
119
+ error.details = errorResponseDeserializer(result.body);
120
+ throw error;
121
+ }
122
+ return associationDeserializer(result.body);
123
+ }
124
+ /** Create a Association */
125
+ export function createOrUpdate(context, resourceGroupName, trafficControllerName, associationName, resource, options = {
126
+ requestOptions: {},
127
+ }) {
128
+ return getLongRunningPoller(context, _createOrUpdateDeserialize, ["200", "201"], {
129
+ updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
130
+ abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
131
+ getInitialResponse: () => _createOrUpdateSend(context, resourceGroupName, trafficControllerName, associationName, resource, options),
132
+ resourceLocationConfig: "azure-async-operation",
133
+ });
134
+ }
135
+ export function _getSend(context, resourceGroupName, trafficControllerName, associationName, options = { requestOptions: {} }) {
136
+ var _a, _b;
137
+ const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/associations/{associationName}{?api%2Dversion}", {
138
+ subscriptionId: context.subscriptionId,
139
+ resourceGroupName: resourceGroupName,
140
+ trafficControllerName: trafficControllerName,
141
+ associationName: associationName,
142
+ "api%2Dversion": context.apiVersion,
143
+ }, {
144
+ allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
145
+ });
146
+ return context.path(path).get(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
147
+ }
148
+ export async function _getDeserialize(result) {
149
+ const expectedStatuses = ["200"];
150
+ if (!expectedStatuses.includes(result.status)) {
151
+ const error = createRestError(result);
152
+ error.details = errorResponseDeserializer(result.body);
153
+ throw error;
154
+ }
155
+ return associationDeserializer(result.body);
156
+ }
157
+ /** Get a Association */
158
+ export async function get(context, resourceGroupName, trafficControllerName, associationName, options = { requestOptions: {} }) {
159
+ const result = await _getSend(context, resourceGroupName, trafficControllerName, associationName, options);
160
+ return _getDeserialize(result);
161
+ }
162
+ //# sourceMappingURL=operations.js.map