@azure/arm-hybridconnectivity 2.0.0-alpha.20250804.1 → 2.0.0-beta.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 (450) hide show
  1. package/README.md +10 -10
  2. package/dist/browser/api/endpoints/operations.d.ts +1 -1
  3. package/dist/browser/api/endpoints/operations.js +16 -16
  4. package/dist/browser/api/endpoints/operations.js.map +1 -1
  5. package/dist/browser/api/generateAwsTemplate/operations.d.ts +3 -3
  6. package/dist/browser/api/generateAwsTemplate/operations.js +4 -4
  7. package/dist/browser/api/generateAwsTemplate/operations.js.map +1 -1
  8. package/dist/browser/api/hybridConnectivityManagementAPIContext.d.ts +3 -0
  9. package/dist/browser/api/hybridConnectivityManagementAPIContext.js +3 -2
  10. package/dist/browser/api/hybridConnectivityManagementAPIContext.js.map +1 -1
  11. package/dist/browser/api/inventory/operations.d.ts +1 -1
  12. package/dist/browser/api/inventory/operations.js +4 -4
  13. package/dist/browser/api/inventory/operations.js.map +1 -1
  14. package/dist/browser/api/operations/operations.d.ts +1 -1
  15. package/dist/browser/api/operations/operations.js +3 -3
  16. package/dist/browser/api/operations/operations.js.map +1 -1
  17. package/dist/browser/api/publicCloudConnectors/operations.d.ts +2 -2
  18. package/dist/browser/api/publicCloudConnectors/operations.js +17 -17
  19. package/dist/browser/api/publicCloudConnectors/operations.js.map +1 -1
  20. package/dist/browser/api/serviceConfigurations/operations.d.ts +1 -1
  21. package/dist/browser/api/serviceConfigurations/operations.js +10 -10
  22. package/dist/browser/api/serviceConfigurations/operations.js.map +1 -1
  23. package/dist/browser/api/solutionConfigurations/operations.d.ts +2 -2
  24. package/dist/browser/api/solutionConfigurations/operations.js +13 -13
  25. package/dist/browser/api/solutionConfigurations/operations.js.map +1 -1
  26. package/dist/browser/api/solutionTypes/operations.d.ts +1 -1
  27. package/dist/browser/api/solutionTypes/operations.js +7 -7
  28. package/dist/browser/api/solutionTypes/operations.js.map +1 -1
  29. package/dist/browser/classic/endpoints/index.d.ts +1 -1
  30. package/dist/browser/classic/endpoints/index.js.map +1 -1
  31. package/dist/browser/classic/generateAwsTemplate/index.d.ts +2 -2
  32. package/dist/browser/classic/generateAwsTemplate/index.js.map +1 -1
  33. package/dist/browser/classic/inventory/index.d.ts +1 -1
  34. package/dist/browser/classic/inventory/index.js.map +1 -1
  35. package/dist/browser/classic/operations/index.d.ts +1 -1
  36. package/dist/browser/classic/operations/index.js.map +1 -1
  37. package/dist/browser/classic/publicCloudConnectors/index.d.ts +1 -1
  38. package/dist/browser/classic/publicCloudConnectors/index.js.map +1 -1
  39. package/dist/browser/classic/serviceConfigurations/index.d.ts +1 -1
  40. package/dist/browser/classic/serviceConfigurations/index.js.map +1 -1
  41. package/dist/browser/classic/solutionConfigurations/index.d.ts +1 -1
  42. package/dist/browser/classic/solutionConfigurations/index.js.map +1 -1
  43. package/dist/browser/classic/solutionTypes/index.d.ts +1 -1
  44. package/dist/browser/classic/solutionTypes/index.js.map +1 -1
  45. package/dist/browser/hybridConnectivityManagementAPI.d.ts +6 -6
  46. package/dist/browser/hybridConnectivityManagementAPI.js +5 -5
  47. package/dist/browser/hybridConnectivityManagementAPI.js.map +1 -1
  48. package/dist/browser/index.d.ts +3 -1
  49. package/dist/browser/index.js +3 -1
  50. package/dist/browser/index.js.map +1 -1
  51. package/dist/browser/models/index.d.ts +1 -1
  52. package/dist/browser/models/index.js +1 -1
  53. package/dist/browser/models/index.js.map +1 -1
  54. package/dist/browser/models/models.d.ts +463 -465
  55. package/dist/browser/models/models.js +359 -361
  56. package/dist/browser/models/models.js.map +1 -1
  57. package/dist/browser/restorePollerHelpers.js +1 -1
  58. package/dist/browser/restorePollerHelpers.js.map +1 -1
  59. package/dist/browser/static-helpers/cloudSettingHelpers.d.ts +13 -0
  60. package/dist/browser/static-helpers/cloudSettingHelpers.js +29 -0
  61. package/dist/browser/static-helpers/cloudSettingHelpers.js.map +1 -0
  62. package/dist/browser/static-helpers/serialization/serialize-record.d.ts +2 -0
  63. package/dist/browser/static-helpers/serialization/serialize-record.js +19 -0
  64. package/dist/browser/static-helpers/serialization/serialize-record.js.map +1 -0
  65. package/dist/browser/static-helpers/urlTemplate.js +2 -1
  66. package/dist/browser/static-helpers/urlTemplate.js.map +1 -1
  67. package/dist/commonjs/api/endpoints/operations.d.ts +1 -1
  68. package/dist/commonjs/api/endpoints/operations.js +16 -16
  69. package/dist/commonjs/api/endpoints/operations.js.map +1 -1
  70. package/dist/commonjs/api/generateAwsTemplate/operations.d.ts +3 -3
  71. package/dist/commonjs/api/generateAwsTemplate/operations.js +3 -3
  72. package/dist/commonjs/api/generateAwsTemplate/operations.js.map +1 -1
  73. package/dist/commonjs/api/hybridConnectivityManagementAPIContext.d.ts +3 -0
  74. package/dist/commonjs/api/hybridConnectivityManagementAPIContext.js +3 -2
  75. package/dist/commonjs/api/hybridConnectivityManagementAPIContext.js.map +1 -1
  76. package/dist/commonjs/api/inventory/operations.d.ts +1 -1
  77. package/dist/commonjs/api/inventory/operations.js +4 -4
  78. package/dist/commonjs/api/inventory/operations.js.map +1 -1
  79. package/dist/commonjs/api/operations/operations.d.ts +1 -1
  80. package/dist/commonjs/api/operations/operations.js +2 -2
  81. package/dist/commonjs/api/operations/operations.js.map +1 -1
  82. package/dist/commonjs/api/publicCloudConnectors/operations.d.ts +2 -2
  83. package/dist/commonjs/api/publicCloudConnectors/operations.js +16 -16
  84. package/dist/commonjs/api/publicCloudConnectors/operations.js.map +1 -1
  85. package/dist/commonjs/api/serviceConfigurations/operations.d.ts +1 -1
  86. package/dist/commonjs/api/serviceConfigurations/operations.js +10 -10
  87. package/dist/commonjs/api/serviceConfigurations/operations.js.map +1 -1
  88. package/dist/commonjs/api/solutionConfigurations/operations.d.ts +2 -2
  89. package/dist/commonjs/api/solutionConfigurations/operations.js +12 -12
  90. package/dist/commonjs/api/solutionConfigurations/operations.js.map +1 -1
  91. package/dist/commonjs/api/solutionTypes/operations.d.ts +1 -1
  92. package/dist/commonjs/api/solutionTypes/operations.js +6 -6
  93. package/dist/commonjs/api/solutionTypes/operations.js.map +1 -1
  94. package/dist/commonjs/classic/endpoints/index.d.ts +1 -1
  95. package/dist/commonjs/classic/endpoints/index.js.map +1 -1
  96. package/dist/commonjs/classic/generateAwsTemplate/index.d.ts +2 -2
  97. package/dist/commonjs/classic/generateAwsTemplate/index.js.map +1 -1
  98. package/dist/commonjs/classic/inventory/index.d.ts +1 -1
  99. package/dist/commonjs/classic/inventory/index.js.map +1 -1
  100. package/dist/commonjs/classic/operations/index.d.ts +1 -1
  101. package/dist/commonjs/classic/operations/index.js.map +1 -1
  102. package/dist/commonjs/classic/publicCloudConnectors/index.d.ts +1 -1
  103. package/dist/commonjs/classic/publicCloudConnectors/index.js.map +1 -1
  104. package/dist/commonjs/classic/serviceConfigurations/index.d.ts +1 -1
  105. package/dist/commonjs/classic/serviceConfigurations/index.js.map +1 -1
  106. package/dist/commonjs/classic/solutionConfigurations/index.d.ts +1 -1
  107. package/dist/commonjs/classic/solutionConfigurations/index.js.map +1 -1
  108. package/dist/commonjs/classic/solutionTypes/index.d.ts +1 -1
  109. package/dist/commonjs/classic/solutionTypes/index.js.map +1 -1
  110. package/dist/commonjs/hybridConnectivityManagementAPI.d.ts +6 -6
  111. package/dist/commonjs/hybridConnectivityManagementAPI.js +14 -14
  112. package/dist/commonjs/hybridConnectivityManagementAPI.js.map +1 -1
  113. package/dist/commonjs/index.d.ts +3 -1
  114. package/dist/commonjs/index.js +10 -8
  115. package/dist/commonjs/index.js.map +1 -1
  116. package/dist/commonjs/models/index.d.ts +1 -1
  117. package/dist/commonjs/models/index.js +8 -8
  118. package/dist/commonjs/models/index.js.map +1 -1
  119. package/dist/commonjs/models/models.d.ts +463 -465
  120. package/dist/commonjs/models/models.js +409 -412
  121. package/dist/commonjs/models/models.js.map +1 -1
  122. package/dist/commonjs/restorePollerHelpers.js +1 -1
  123. package/dist/commonjs/restorePollerHelpers.js.map +1 -1
  124. package/dist/commonjs/static-helpers/cloudSettingHelpers.d.ts +13 -0
  125. package/dist/commonjs/static-helpers/cloudSettingHelpers.js +33 -0
  126. package/dist/commonjs/static-helpers/cloudSettingHelpers.js.map +1 -0
  127. package/dist/commonjs/static-helpers/serialization/serialize-record.d.ts +2 -0
  128. package/dist/commonjs/static-helpers/serialization/serialize-record.js +22 -0
  129. package/dist/commonjs/static-helpers/serialization/serialize-record.js.map +1 -0
  130. package/dist/commonjs/static-helpers/urlTemplate.js +2 -1
  131. package/dist/commonjs/static-helpers/urlTemplate.js.map +1 -1
  132. package/dist/esm/api/endpoints/operations.d.ts +1 -1
  133. package/dist/esm/api/endpoints/operations.js +16 -16
  134. package/dist/esm/api/endpoints/operations.js.map +1 -1
  135. package/dist/esm/api/generateAwsTemplate/operations.d.ts +3 -3
  136. package/dist/esm/api/generateAwsTemplate/operations.js +4 -4
  137. package/dist/esm/api/generateAwsTemplate/operations.js.map +1 -1
  138. package/dist/esm/api/hybridConnectivityManagementAPIContext.d.ts +3 -0
  139. package/dist/esm/api/hybridConnectivityManagementAPIContext.js +3 -2
  140. package/dist/esm/api/hybridConnectivityManagementAPIContext.js.map +1 -1
  141. package/dist/esm/api/inventory/operations.d.ts +1 -1
  142. package/dist/esm/api/inventory/operations.js +4 -4
  143. package/dist/esm/api/inventory/operations.js.map +1 -1
  144. package/dist/esm/api/operations/operations.d.ts +1 -1
  145. package/dist/esm/api/operations/operations.js +3 -3
  146. package/dist/esm/api/operations/operations.js.map +1 -1
  147. package/dist/esm/api/publicCloudConnectors/operations.d.ts +2 -2
  148. package/dist/esm/api/publicCloudConnectors/operations.js +17 -17
  149. package/dist/esm/api/publicCloudConnectors/operations.js.map +1 -1
  150. package/dist/esm/api/serviceConfigurations/operations.d.ts +1 -1
  151. package/dist/esm/api/serviceConfigurations/operations.js +10 -10
  152. package/dist/esm/api/serviceConfigurations/operations.js.map +1 -1
  153. package/dist/esm/api/solutionConfigurations/operations.d.ts +2 -2
  154. package/dist/esm/api/solutionConfigurations/operations.js +13 -13
  155. package/dist/esm/api/solutionConfigurations/operations.js.map +1 -1
  156. package/dist/esm/api/solutionTypes/operations.d.ts +1 -1
  157. package/dist/esm/api/solutionTypes/operations.js +7 -7
  158. package/dist/esm/api/solutionTypes/operations.js.map +1 -1
  159. package/dist/esm/classic/endpoints/index.d.ts +1 -1
  160. package/dist/esm/classic/endpoints/index.js.map +1 -1
  161. package/dist/esm/classic/generateAwsTemplate/index.d.ts +2 -2
  162. package/dist/esm/classic/generateAwsTemplate/index.js.map +1 -1
  163. package/dist/esm/classic/inventory/index.d.ts +1 -1
  164. package/dist/esm/classic/inventory/index.js.map +1 -1
  165. package/dist/esm/classic/operations/index.d.ts +1 -1
  166. package/dist/esm/classic/operations/index.js.map +1 -1
  167. package/dist/esm/classic/publicCloudConnectors/index.d.ts +1 -1
  168. package/dist/esm/classic/publicCloudConnectors/index.js.map +1 -1
  169. package/dist/esm/classic/serviceConfigurations/index.d.ts +1 -1
  170. package/dist/esm/classic/serviceConfigurations/index.js.map +1 -1
  171. package/dist/esm/classic/solutionConfigurations/index.d.ts +1 -1
  172. package/dist/esm/classic/solutionConfigurations/index.js.map +1 -1
  173. package/dist/esm/classic/solutionTypes/index.d.ts +1 -1
  174. package/dist/esm/classic/solutionTypes/index.js.map +1 -1
  175. package/dist/esm/hybridConnectivityManagementAPI.d.ts +6 -6
  176. package/dist/esm/hybridConnectivityManagementAPI.js +5 -5
  177. package/dist/esm/hybridConnectivityManagementAPI.js.map +1 -1
  178. package/dist/esm/index.d.ts +3 -1
  179. package/dist/esm/index.js +3 -1
  180. package/dist/esm/index.js.map +1 -1
  181. package/dist/esm/models/index.d.ts +1 -1
  182. package/dist/esm/models/index.js +1 -1
  183. package/dist/esm/models/index.js.map +1 -1
  184. package/dist/esm/models/models.d.ts +463 -465
  185. package/dist/esm/models/models.js +359 -361
  186. package/dist/esm/models/models.js.map +1 -1
  187. package/dist/esm/restorePollerHelpers.js +1 -1
  188. package/dist/esm/restorePollerHelpers.js.map +1 -1
  189. package/dist/esm/static-helpers/cloudSettingHelpers.d.ts +13 -0
  190. package/dist/esm/static-helpers/cloudSettingHelpers.js +29 -0
  191. package/dist/esm/static-helpers/cloudSettingHelpers.js.map +1 -0
  192. package/dist/esm/static-helpers/serialization/serialize-record.d.ts +2 -0
  193. package/dist/esm/static-helpers/serialization/serialize-record.js +19 -0
  194. package/dist/esm/static-helpers/serialization/serialize-record.js.map +1 -0
  195. package/dist/esm/static-helpers/urlTemplate.js +2 -1
  196. package/dist/esm/static-helpers/urlTemplate.js.map +1 -1
  197. package/dist/react-native/api/endpoints/operations.d.ts +1 -1
  198. package/dist/react-native/api/endpoints/operations.js +16 -16
  199. package/dist/react-native/api/endpoints/operations.js.map +1 -1
  200. package/dist/react-native/api/generateAwsTemplate/operations.d.ts +3 -3
  201. package/dist/react-native/api/generateAwsTemplate/operations.js +4 -4
  202. package/dist/react-native/api/generateAwsTemplate/operations.js.map +1 -1
  203. package/dist/react-native/api/hybridConnectivityManagementAPIContext.d.ts +3 -0
  204. package/dist/react-native/api/hybridConnectivityManagementAPIContext.js +3 -2
  205. package/dist/react-native/api/hybridConnectivityManagementAPIContext.js.map +1 -1
  206. package/dist/react-native/api/inventory/operations.d.ts +1 -1
  207. package/dist/react-native/api/inventory/operations.js +4 -4
  208. package/dist/react-native/api/inventory/operations.js.map +1 -1
  209. package/dist/react-native/api/operations/operations.d.ts +1 -1
  210. package/dist/react-native/api/operations/operations.js +3 -3
  211. package/dist/react-native/api/operations/operations.js.map +1 -1
  212. package/dist/react-native/api/publicCloudConnectors/operations.d.ts +2 -2
  213. package/dist/react-native/api/publicCloudConnectors/operations.js +17 -17
  214. package/dist/react-native/api/publicCloudConnectors/operations.js.map +1 -1
  215. package/dist/react-native/api/serviceConfigurations/operations.d.ts +1 -1
  216. package/dist/react-native/api/serviceConfigurations/operations.js +10 -10
  217. package/dist/react-native/api/serviceConfigurations/operations.js.map +1 -1
  218. package/dist/react-native/api/solutionConfigurations/operations.d.ts +2 -2
  219. package/dist/react-native/api/solutionConfigurations/operations.js +13 -13
  220. package/dist/react-native/api/solutionConfigurations/operations.js.map +1 -1
  221. package/dist/react-native/api/solutionTypes/operations.d.ts +1 -1
  222. package/dist/react-native/api/solutionTypes/operations.js +7 -7
  223. package/dist/react-native/api/solutionTypes/operations.js.map +1 -1
  224. package/dist/react-native/classic/endpoints/index.d.ts +1 -1
  225. package/dist/react-native/classic/endpoints/index.js.map +1 -1
  226. package/dist/react-native/classic/generateAwsTemplate/index.d.ts +2 -2
  227. package/dist/react-native/classic/generateAwsTemplate/index.js.map +1 -1
  228. package/dist/react-native/classic/inventory/index.d.ts +1 -1
  229. package/dist/react-native/classic/inventory/index.js.map +1 -1
  230. package/dist/react-native/classic/operations/index.d.ts +1 -1
  231. package/dist/react-native/classic/operations/index.js.map +1 -1
  232. package/dist/react-native/classic/publicCloudConnectors/index.d.ts +1 -1
  233. package/dist/react-native/classic/publicCloudConnectors/index.js.map +1 -1
  234. package/dist/react-native/classic/serviceConfigurations/index.d.ts +1 -1
  235. package/dist/react-native/classic/serviceConfigurations/index.js.map +1 -1
  236. package/dist/react-native/classic/solutionConfigurations/index.d.ts +1 -1
  237. package/dist/react-native/classic/solutionConfigurations/index.js.map +1 -1
  238. package/dist/react-native/classic/solutionTypes/index.d.ts +1 -1
  239. package/dist/react-native/classic/solutionTypes/index.js.map +1 -1
  240. package/dist/react-native/hybridConnectivityManagementAPI.d.ts +6 -6
  241. package/dist/react-native/hybridConnectivityManagementAPI.js +5 -5
  242. package/dist/react-native/hybridConnectivityManagementAPI.js.map +1 -1
  243. package/dist/react-native/index.d.ts +3 -1
  244. package/dist/react-native/index.js +3 -1
  245. package/dist/react-native/index.js.map +1 -1
  246. package/dist/react-native/models/index.d.ts +1 -1
  247. package/dist/react-native/models/index.js +1 -1
  248. package/dist/react-native/models/index.js.map +1 -1
  249. package/dist/react-native/models/models.d.ts +463 -465
  250. package/dist/react-native/models/models.js +359 -361
  251. package/dist/react-native/models/models.js.map +1 -1
  252. package/dist/react-native/restorePollerHelpers.js +1 -1
  253. package/dist/react-native/restorePollerHelpers.js.map +1 -1
  254. package/dist/react-native/static-helpers/cloudSettingHelpers.d.ts +13 -0
  255. package/dist/react-native/static-helpers/cloudSettingHelpers.js +29 -0
  256. package/dist/react-native/static-helpers/cloudSettingHelpers.js.map +1 -0
  257. package/dist/react-native/static-helpers/serialization/serialize-record.d.ts +2 -0
  258. package/dist/react-native/static-helpers/serialization/serialize-record.js +19 -0
  259. package/dist/react-native/static-helpers/serialization/serialize-record.js.map +1 -0
  260. package/dist/react-native/static-helpers/urlTemplate.js +2 -1
  261. package/dist/react-native/static-helpers/urlTemplate.js.map +1 -1
  262. package/package.json +24 -25
  263. package/CHANGELOG.md +0 -111
  264. package/dist/browser/api/endpoints/index.d.ts.map +0 -1
  265. package/dist/browser/api/endpoints/operations.d.ts.map +0 -1
  266. package/dist/browser/api/endpoints/options.d.ts.map +0 -1
  267. package/dist/browser/api/generateAwsTemplate/index.d.ts.map +0 -1
  268. package/dist/browser/api/generateAwsTemplate/operations.d.ts.map +0 -1
  269. package/dist/browser/api/generateAwsTemplate/options.d.ts.map +0 -1
  270. package/dist/browser/api/hybridConnectivityManagementAPIContext.d.ts.map +0 -1
  271. package/dist/browser/api/index.d.ts.map +0 -1
  272. package/dist/browser/api/inventory/index.d.ts.map +0 -1
  273. package/dist/browser/api/inventory/operations.d.ts.map +0 -1
  274. package/dist/browser/api/inventory/options.d.ts.map +0 -1
  275. package/dist/browser/api/operations/index.d.ts.map +0 -1
  276. package/dist/browser/api/operations/operations.d.ts.map +0 -1
  277. package/dist/browser/api/operations/options.d.ts.map +0 -1
  278. package/dist/browser/api/publicCloudConnectors/index.d.ts.map +0 -1
  279. package/dist/browser/api/publicCloudConnectors/operations.d.ts.map +0 -1
  280. package/dist/browser/api/publicCloudConnectors/options.d.ts.map +0 -1
  281. package/dist/browser/api/serviceConfigurations/index.d.ts.map +0 -1
  282. package/dist/browser/api/serviceConfigurations/operations.d.ts.map +0 -1
  283. package/dist/browser/api/serviceConfigurations/options.d.ts.map +0 -1
  284. package/dist/browser/api/solutionConfigurations/index.d.ts.map +0 -1
  285. package/dist/browser/api/solutionConfigurations/operations.d.ts.map +0 -1
  286. package/dist/browser/api/solutionConfigurations/options.d.ts.map +0 -1
  287. package/dist/browser/api/solutionTypes/index.d.ts.map +0 -1
  288. package/dist/browser/api/solutionTypes/operations.d.ts.map +0 -1
  289. package/dist/browser/api/solutionTypes/options.d.ts.map +0 -1
  290. package/dist/browser/classic/endpoints/index.d.ts.map +0 -1
  291. package/dist/browser/classic/generateAwsTemplate/index.d.ts.map +0 -1
  292. package/dist/browser/classic/index.d.ts.map +0 -1
  293. package/dist/browser/classic/inventory/index.d.ts.map +0 -1
  294. package/dist/browser/classic/operations/index.d.ts.map +0 -1
  295. package/dist/browser/classic/publicCloudConnectors/index.d.ts.map +0 -1
  296. package/dist/browser/classic/serviceConfigurations/index.d.ts.map +0 -1
  297. package/dist/browser/classic/solutionConfigurations/index.d.ts.map +0 -1
  298. package/dist/browser/classic/solutionTypes/index.d.ts.map +0 -1
  299. package/dist/browser/hybridConnectivityManagementAPI.d.ts.map +0 -1
  300. package/dist/browser/index.d.ts.map +0 -1
  301. package/dist/browser/logger.d.ts.map +0 -1
  302. package/dist/browser/models/index.d.ts.map +0 -1
  303. package/dist/browser/models/models.d.ts.map +0 -1
  304. package/dist/browser/restorePollerHelpers.d.ts.map +0 -1
  305. package/dist/browser/static-helpers/pagingHelpers.d.ts.map +0 -1
  306. package/dist/browser/static-helpers/pollingHelpers.d.ts.map +0 -1
  307. package/dist/browser/static-helpers/urlTemplate.d.ts.map +0 -1
  308. package/dist/commonjs/api/endpoints/index.d.ts.map +0 -1
  309. package/dist/commonjs/api/endpoints/operations.d.ts.map +0 -1
  310. package/dist/commonjs/api/endpoints/options.d.ts.map +0 -1
  311. package/dist/commonjs/api/generateAwsTemplate/index.d.ts.map +0 -1
  312. package/dist/commonjs/api/generateAwsTemplate/operations.d.ts.map +0 -1
  313. package/dist/commonjs/api/generateAwsTemplate/options.d.ts.map +0 -1
  314. package/dist/commonjs/api/hybridConnectivityManagementAPIContext.d.ts.map +0 -1
  315. package/dist/commonjs/api/index.d.ts.map +0 -1
  316. package/dist/commonjs/api/inventory/index.d.ts.map +0 -1
  317. package/dist/commonjs/api/inventory/operations.d.ts.map +0 -1
  318. package/dist/commonjs/api/inventory/options.d.ts.map +0 -1
  319. package/dist/commonjs/api/operations/index.d.ts.map +0 -1
  320. package/dist/commonjs/api/operations/operations.d.ts.map +0 -1
  321. package/dist/commonjs/api/operations/options.d.ts.map +0 -1
  322. package/dist/commonjs/api/publicCloudConnectors/index.d.ts.map +0 -1
  323. package/dist/commonjs/api/publicCloudConnectors/operations.d.ts.map +0 -1
  324. package/dist/commonjs/api/publicCloudConnectors/options.d.ts.map +0 -1
  325. package/dist/commonjs/api/serviceConfigurations/index.d.ts.map +0 -1
  326. package/dist/commonjs/api/serviceConfigurations/operations.d.ts.map +0 -1
  327. package/dist/commonjs/api/serviceConfigurations/options.d.ts.map +0 -1
  328. package/dist/commonjs/api/solutionConfigurations/index.d.ts.map +0 -1
  329. package/dist/commonjs/api/solutionConfigurations/operations.d.ts.map +0 -1
  330. package/dist/commonjs/api/solutionConfigurations/options.d.ts.map +0 -1
  331. package/dist/commonjs/api/solutionTypes/index.d.ts.map +0 -1
  332. package/dist/commonjs/api/solutionTypes/operations.d.ts.map +0 -1
  333. package/dist/commonjs/api/solutionTypes/options.d.ts.map +0 -1
  334. package/dist/commonjs/classic/endpoints/index.d.ts.map +0 -1
  335. package/dist/commonjs/classic/generateAwsTemplate/index.d.ts.map +0 -1
  336. package/dist/commonjs/classic/index.d.ts.map +0 -1
  337. package/dist/commonjs/classic/inventory/index.d.ts.map +0 -1
  338. package/dist/commonjs/classic/operations/index.d.ts.map +0 -1
  339. package/dist/commonjs/classic/publicCloudConnectors/index.d.ts.map +0 -1
  340. package/dist/commonjs/classic/serviceConfigurations/index.d.ts.map +0 -1
  341. package/dist/commonjs/classic/solutionConfigurations/index.d.ts.map +0 -1
  342. package/dist/commonjs/classic/solutionTypes/index.d.ts.map +0 -1
  343. package/dist/commonjs/hybridConnectivityManagementAPI.d.ts.map +0 -1
  344. package/dist/commonjs/index.d.ts.map +0 -1
  345. package/dist/commonjs/logger.d.ts.map +0 -1
  346. package/dist/commonjs/models/index.d.ts.map +0 -1
  347. package/dist/commonjs/models/models.d.ts.map +0 -1
  348. package/dist/commonjs/restorePollerHelpers.d.ts.map +0 -1
  349. package/dist/commonjs/static-helpers/pagingHelpers.d.ts.map +0 -1
  350. package/dist/commonjs/static-helpers/pollingHelpers.d.ts.map +0 -1
  351. package/dist/commonjs/static-helpers/urlTemplate.d.ts.map +0 -1
  352. package/dist/esm/api/endpoints/index.d.ts.map +0 -1
  353. package/dist/esm/api/endpoints/operations.d.ts.map +0 -1
  354. package/dist/esm/api/endpoints/options.d.ts.map +0 -1
  355. package/dist/esm/api/generateAwsTemplate/index.d.ts.map +0 -1
  356. package/dist/esm/api/generateAwsTemplate/operations.d.ts.map +0 -1
  357. package/dist/esm/api/generateAwsTemplate/options.d.ts.map +0 -1
  358. package/dist/esm/api/hybridConnectivityManagementAPIContext.d.ts.map +0 -1
  359. package/dist/esm/api/index.d.ts.map +0 -1
  360. package/dist/esm/api/inventory/index.d.ts.map +0 -1
  361. package/dist/esm/api/inventory/operations.d.ts.map +0 -1
  362. package/dist/esm/api/inventory/options.d.ts.map +0 -1
  363. package/dist/esm/api/operations/index.d.ts.map +0 -1
  364. package/dist/esm/api/operations/operations.d.ts.map +0 -1
  365. package/dist/esm/api/operations/options.d.ts.map +0 -1
  366. package/dist/esm/api/publicCloudConnectors/index.d.ts.map +0 -1
  367. package/dist/esm/api/publicCloudConnectors/operations.d.ts.map +0 -1
  368. package/dist/esm/api/publicCloudConnectors/options.d.ts.map +0 -1
  369. package/dist/esm/api/serviceConfigurations/index.d.ts.map +0 -1
  370. package/dist/esm/api/serviceConfigurations/operations.d.ts.map +0 -1
  371. package/dist/esm/api/serviceConfigurations/options.d.ts.map +0 -1
  372. package/dist/esm/api/solutionConfigurations/index.d.ts.map +0 -1
  373. package/dist/esm/api/solutionConfigurations/operations.d.ts.map +0 -1
  374. package/dist/esm/api/solutionConfigurations/options.d.ts.map +0 -1
  375. package/dist/esm/api/solutionTypes/index.d.ts.map +0 -1
  376. package/dist/esm/api/solutionTypes/operations.d.ts.map +0 -1
  377. package/dist/esm/api/solutionTypes/options.d.ts.map +0 -1
  378. package/dist/esm/classic/endpoints/index.d.ts.map +0 -1
  379. package/dist/esm/classic/generateAwsTemplate/index.d.ts.map +0 -1
  380. package/dist/esm/classic/index.d.ts.map +0 -1
  381. package/dist/esm/classic/inventory/index.d.ts.map +0 -1
  382. package/dist/esm/classic/operations/index.d.ts.map +0 -1
  383. package/dist/esm/classic/publicCloudConnectors/index.d.ts.map +0 -1
  384. package/dist/esm/classic/serviceConfigurations/index.d.ts.map +0 -1
  385. package/dist/esm/classic/solutionConfigurations/index.d.ts.map +0 -1
  386. package/dist/esm/classic/solutionTypes/index.d.ts.map +0 -1
  387. package/dist/esm/hybridConnectivityManagementAPI.d.ts.map +0 -1
  388. package/dist/esm/index.d.ts.map +0 -1
  389. package/dist/esm/logger.d.ts.map +0 -1
  390. package/dist/esm/models/index.d.ts.map +0 -1
  391. package/dist/esm/models/models.d.ts.map +0 -1
  392. package/dist/esm/restorePollerHelpers.d.ts.map +0 -1
  393. package/dist/esm/static-helpers/pagingHelpers.d.ts.map +0 -1
  394. package/dist/esm/static-helpers/pollingHelpers.d.ts.map +0 -1
  395. package/dist/esm/static-helpers/urlTemplate.d.ts.map +0 -1
  396. package/dist/react-native/api/endpoints/index.d.ts.map +0 -1
  397. package/dist/react-native/api/endpoints/operations.d.ts.map +0 -1
  398. package/dist/react-native/api/endpoints/options.d.ts.map +0 -1
  399. package/dist/react-native/api/generateAwsTemplate/index.d.ts.map +0 -1
  400. package/dist/react-native/api/generateAwsTemplate/operations.d.ts.map +0 -1
  401. package/dist/react-native/api/generateAwsTemplate/options.d.ts.map +0 -1
  402. package/dist/react-native/api/hybridConnectivityManagementAPIContext.d.ts.map +0 -1
  403. package/dist/react-native/api/index.d.ts.map +0 -1
  404. package/dist/react-native/api/inventory/index.d.ts.map +0 -1
  405. package/dist/react-native/api/inventory/operations.d.ts.map +0 -1
  406. package/dist/react-native/api/inventory/options.d.ts.map +0 -1
  407. package/dist/react-native/api/operations/index.d.ts.map +0 -1
  408. package/dist/react-native/api/operations/operations.d.ts.map +0 -1
  409. package/dist/react-native/api/operations/options.d.ts.map +0 -1
  410. package/dist/react-native/api/publicCloudConnectors/index.d.ts.map +0 -1
  411. package/dist/react-native/api/publicCloudConnectors/operations.d.ts.map +0 -1
  412. package/dist/react-native/api/publicCloudConnectors/options.d.ts.map +0 -1
  413. package/dist/react-native/api/serviceConfigurations/index.d.ts.map +0 -1
  414. package/dist/react-native/api/serviceConfigurations/operations.d.ts.map +0 -1
  415. package/dist/react-native/api/serviceConfigurations/options.d.ts.map +0 -1
  416. package/dist/react-native/api/solutionConfigurations/index.d.ts.map +0 -1
  417. package/dist/react-native/api/solutionConfigurations/operations.d.ts.map +0 -1
  418. package/dist/react-native/api/solutionConfigurations/options.d.ts.map +0 -1
  419. package/dist/react-native/api/solutionTypes/index.d.ts.map +0 -1
  420. package/dist/react-native/api/solutionTypes/operations.d.ts.map +0 -1
  421. package/dist/react-native/api/solutionTypes/options.d.ts.map +0 -1
  422. package/dist/react-native/classic/endpoints/index.d.ts.map +0 -1
  423. package/dist/react-native/classic/generateAwsTemplate/index.d.ts.map +0 -1
  424. package/dist/react-native/classic/index.d.ts.map +0 -1
  425. package/dist/react-native/classic/inventory/index.d.ts.map +0 -1
  426. package/dist/react-native/classic/operations/index.d.ts.map +0 -1
  427. package/dist/react-native/classic/publicCloudConnectors/index.d.ts.map +0 -1
  428. package/dist/react-native/classic/serviceConfigurations/index.d.ts.map +0 -1
  429. package/dist/react-native/classic/solutionConfigurations/index.d.ts.map +0 -1
  430. package/dist/react-native/classic/solutionTypes/index.d.ts.map +0 -1
  431. package/dist/react-native/hybridConnectivityManagementAPI.d.ts.map +0 -1
  432. package/dist/react-native/index.d.ts.map +0 -1
  433. package/dist/react-native/logger.d.ts.map +0 -1
  434. package/dist/react-native/models/index.d.ts.map +0 -1
  435. package/dist/react-native/models/models.d.ts.map +0 -1
  436. package/dist/react-native/restorePollerHelpers.d.ts.map +0 -1
  437. package/dist/react-native/static-helpers/pagingHelpers.d.ts.map +0 -1
  438. package/dist/react-native/static-helpers/pollingHelpers.d.ts.map +0 -1
  439. package/dist/react-native/static-helpers/urlTemplate.d.ts.map +0 -1
  440. package/review/arm-hybridconnectivity-api-endpoints-node.api.md +0 -72
  441. package/review/arm-hybridconnectivity-api-generateAwsTemplate-node.api.md +0 -19
  442. package/review/arm-hybridconnectivity-api-inventory-node.api.md +0 -26
  443. package/review/arm-hybridconnectivity-api-node.api.md +0 -27
  444. package/review/arm-hybridconnectivity-api-operations-node.api.md +0 -19
  445. package/review/arm-hybridconnectivity-api-publicCloudConnectors-node.api.md +0 -65
  446. package/review/arm-hybridconnectivity-api-serviceConfigurations-node.api.md +0 -47
  447. package/review/arm-hybridconnectivity-api-solutionConfigurations-node.api.md +0 -57
  448. package/review/arm-hybridconnectivity-api-solutionTypes-node.api.md +0 -33
  449. package/review/arm-hybridconnectivity-models-node.api.md +0 -412
  450. package/review/arm-hybridconnectivity-node.api.md +0 -671
@@ -1 +1 @@
1
- {"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/models/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAQlC,MAAM,UAAU,gCAAgC,CAAC,IAAS;IACxD,OAAO;QACL,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC;QACd,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC;QAClB,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC;QAClB,UAAU,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC;YAC7B,CAA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,IAAY,WAOX;AAPD,WAAY,WAAW;IACrB,sDAAsD;IACtD,4BAAa,CAAA;IACb,wDAAwD;IACxD,gCAAiB,CAAA;IACjB,gEAAgE;IAChE,yCAA0B,CAAA;AAC5B,CAAC,EAPW,WAAW,KAAX,WAAW,QAOtB;AAaD,gHAAgH;AAChH,MAAM,CAAN,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,0CAA0C;IAC1C,wCAAqB,CAAA;AACvB,CAAC,EAHW,eAAe,KAAf,eAAe,QAG1B;AAWD,sDAAsD;AACtD,MAAM,CAAN,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,yBAAyB;IACzB,yCAAwB,CAAA;AAC1B,CAAC,EAHW,aAAa,KAAb,aAAa,QAGxB","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/** Concrete proxy resource types can be created by aliasing this type using a specific property type. */\nexport interface SolutionTypeResource extends ProxyResource {\n /** The resource-specific properties for this resource. */\n properties?: SolutionTypeProperties;\n}\n\nexport function solutionTypeResourceDeserializer(item: any): SolutionTypeResource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : solutionTypePropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** Definition of Solution type resource. */\nexport interface SolutionTypeProperties {\n /** The name of the solution type. */\n solutionType?: string;\n /** Short description of solution type. */\n description?: string;\n /** The locations this solution is supported in. */\n supportedAzureRegions?: string[];\n /** Array of solution settings and its description. */\n solutionSettings?: SolutionTypeSettingsProperties[];\n}\n\nexport function solutionTypePropertiesDeserializer(item: any): SolutionTypeProperties {\n return {\n solutionType: item[\"solutionType\"],\n description: item[\"description\"],\n supportedAzureRegions: !item[\"supportedAzureRegions\"]\n ? item[\"supportedAzureRegions\"]\n : item[\"supportedAzureRegions\"].map((p: any) => {\n return p;\n }),\n solutionSettings: !item[\"solutionSettings\"]\n ? item[\"solutionSettings\"]\n : solutionTypeSettingsPropertiesArrayDeserializer(item[\"solutionSettings\"]),\n };\n}\n\nexport function solutionTypeSettingsPropertiesArrayDeserializer(\n result: Array<SolutionTypeSettingsProperties>,\n): any[] {\n return result.map((item) => {\n return solutionTypeSettingsPropertiesDeserializer(item);\n });\n}\n\n/** Represent Solution settings properties description array. */\nexport interface SolutionTypeSettingsProperties {\n /** The name of the solution setting property. */\n name: string;\n /** The UI friendly name of the solution setting property. */\n displayName: string;\n /** Type of the solution setting property, represented as a string. */\n type: string;\n /** Description of solution setting property. */\n description: string;\n /** Array of allowed values for this solution settings property. */\n allowedValues: string[];\n /** Default value for this solution settings property. */\n defaultValue: string;\n}\n\nexport function solutionTypeSettingsPropertiesDeserializer(\n item: any,\n): SolutionTypeSettingsProperties {\n return {\n name: item[\"name\"],\n displayName: item[\"displayName\"],\n type: item[\"type\"],\n description: item[\"description\"],\n allowedValues: item[\"allowedValues\"].map((p: any) => {\n return p;\n }),\n defaultValue: item[\"defaultValue\"],\n };\n}\n\n/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */\nexport interface ProxyResource extends Resource {}\n\nexport function proxyResourceSerializer(item: ProxyResource): any {\n return item;\n}\n\nexport function proxyResourceDeserializer(item: any): ProxyResource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n };\n}\n\n/** Common fields that are returned in the response for all Azure Resource Manager resources */\nexport interface Resource {\n /** Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} */\n readonly id?: string;\n /** The name of the resource */\n readonly name?: string;\n /** The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or \"Microsoft.Storage/storageAccounts\" */\n readonly type?: string;\n /** Azure Resource Manager metadata containing createdBy and modifiedBy information. */\n readonly systemData?: SystemData;\n}\n\nexport function resourceSerializer(item: Resource): any {\n return item;\n}\n\nexport function resourceDeserializer(item: any): Resource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n };\n}\n\n/** Metadata pertaining to creation and last modification of the resource. */\nexport interface SystemData {\n /** The identity that created the resource. */\n createdBy?: string;\n /** The type of identity that created the resource. */\n createdByType?: CreatedByType;\n /** The timestamp of resource creation (UTC). */\n createdAt?: Date;\n /** The identity that last modified the resource. */\n lastModifiedBy?: string;\n /** The type of identity that last modified the resource. */\n lastModifiedByType?: CreatedByType;\n /** The timestamp of resource last modification (UTC) */\n lastModifiedAt?: Date;\n}\n\nexport function systemDataDeserializer(item: any): SystemData {\n return {\n createdBy: item[\"createdBy\"],\n createdByType: item[\"createdByType\"],\n createdAt: !item[\"createdAt\"] ? item[\"createdAt\"] : new Date(item[\"createdAt\"]),\n lastModifiedBy: item[\"lastModifiedBy\"],\n lastModifiedByType: item[\"lastModifiedByType\"],\n lastModifiedAt: !item[\"lastModifiedAt\"]\n ? item[\"lastModifiedAt\"]\n : new Date(item[\"lastModifiedAt\"]),\n };\n}\n\n/** The kind of entity that created the resource. */\nexport enum KnownCreatedByType {\n /** The entity was created by a user. */\n User = \"User\",\n /** The entity was created by an application. */\n Application = \"Application\",\n /** The entity was created by a managed identity. */\n ManagedIdentity = \"ManagedIdentity\",\n /** The entity was created by a key. */\n Key = \"Key\",\n}\n\n/**\n * The kind of entity that created the resource. \\\n * {@link KnowncreatedByType} can be used interchangeably with createdByType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **User**: The entity was created by a user. \\\n * **Application**: The entity was created by an application. \\\n * **ManagedIdentity**: The entity was created by a managed identity. \\\n * **Key**: The entity was created by a key.\n */\nexport type CreatedByType = string;\n\n/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. */\nexport interface ErrorResponse {\n /** The error object. */\n error?: ErrorDetail;\n}\n\nexport function errorResponseDeserializer(item: any): ErrorResponse {\n return {\n error: !item[\"error\"] ? item[\"error\"] : errorDetailDeserializer(item[\"error\"]),\n };\n}\n\n/** The error detail. */\nexport interface ErrorDetail {\n /** The error code. */\n readonly code?: string;\n /** The error message. */\n readonly message?: string;\n /** The error target. */\n readonly target?: string;\n /** The error details. */\n readonly details?: ErrorDetail[];\n /** The error additional info. */\n readonly additionalInfo?: ErrorAdditionalInfo[];\n}\n\nexport function errorDetailDeserializer(item: any): ErrorDetail {\n return {\n code: item[\"code\"],\n message: item[\"message\"],\n target: item[\"target\"],\n details: !item[\"details\"] ? item[\"details\"] : errorDetailArrayDeserializer(item[\"details\"]),\n additionalInfo: !item[\"additionalInfo\"]\n ? item[\"additionalInfo\"]\n : errorAdditionalInfoArrayDeserializer(item[\"additionalInfo\"]),\n };\n}\n\nexport function errorDetailArrayDeserializer(result: Array<ErrorDetail>): any[] {\n return result.map((item) => {\n return errorDetailDeserializer(item);\n });\n}\n\nexport function errorAdditionalInfoArrayDeserializer(result: Array<ErrorAdditionalInfo>): any[] {\n return result.map((item) => {\n return errorAdditionalInfoDeserializer(item);\n });\n}\n\n/** The resource management error additional info. */\nexport interface ErrorAdditionalInfo {\n /** The additional info type. */\n readonly type?: string;\n /** The additional info. */\n readonly info?: Record<string, any>;\n}\n\nexport function errorAdditionalInfoDeserializer(item: any): ErrorAdditionalInfo {\n return {\n type: item[\"type\"],\n info: !item[\"info\"] ? item[\"info\"] : _errorAdditionalInfoInfoDeserializer(item[\"info\"]),\n };\n}\n\n/** model interface _ErrorAdditionalInfoInfo */\nexport interface _ErrorAdditionalInfoInfo {}\n\nexport function _errorAdditionalInfoInfoDeserializer(item: any): _ErrorAdditionalInfoInfo {\n return item;\n}\n\n/** The response of a SolutionTypeResource list operation. */\nexport interface _SolutionTypeResourceListResult {\n /** The SolutionTypeResource items on this page */\n value: SolutionTypeResource[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _solutionTypeResourceListResultDeserializer(\n item: any,\n): _SolutionTypeResourceListResult {\n return {\n value: solutionTypeResourceArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function solutionTypeResourceArrayDeserializer(result: Array<SolutionTypeResource>): any[] {\n return result.map((item) => {\n return solutionTypeResourceDeserializer(item);\n });\n}\n\n/** Concrete proxy resource types can be created by aliasing this type using a specific property type. */\nexport interface InventoryResource extends ProxyResource {\n /** The resource-specific properties for this resource. */\n properties?: InventoryProperties;\n}\n\nexport function inventoryResourceDeserializer(item: any): InventoryResource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : inventoryPropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** Definition of inventory. */\nexport interface InventoryProperties {\n /** Gets or sets the cloud native resource type. */\n cloudNativeType?: CloudNativeType;\n /** Gets or sets the cloud native resource name. */\n cloudNativeResourceId?: string;\n /** Gets or sets the mapped azure resource id. */\n azureResourceId?: string;\n /** Gets or sets the status of the inventory. */\n status?: SolutionConfigurationStatus;\n /** Gets or sets the status details. */\n statusDetails?: string;\n /** The resource provisioning state. */\n readonly provisioningState?: ResourceProvisioningState;\n}\n\nexport function inventoryPropertiesDeserializer(item: any): InventoryProperties {\n return {\n cloudNativeType: item[\"cloudNativeType\"],\n cloudNativeResourceId: item[\"cloudNativeResourceId\"],\n azureResourceId: item[\"azureResourceId\"],\n status: item[\"status\"],\n statusDetails: item[\"statusDetails\"],\n provisioningState: item[\"provisioningState\"],\n };\n}\n\n/** Cloud Native Type enum. */\nexport enum KnownCloudNativeType {\n /** ec2 enum. */\n Ec2 = \"ec2\",\n}\n\n/**\n * Cloud Native Type enum. \\\n * {@link KnownCloudNativeType} can be used interchangeably with CloudNativeType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **ec2**: ec2 enum.\n */\nexport type CloudNativeType = string;\n\n/** Solution Configuration Status. */\nexport enum KnownSolutionConfigurationStatus {\n /** New status */\n New = \"New\",\n /** InProgress status */\n InProgress = \"InProgress\",\n /** Canceled status */\n Completed = \"Completed\",\n /** Failed status */\n Failed = \"Failed\",\n}\n\n/**\n * Solution Configuration Status. \\\n * {@link KnownSolutionConfigurationStatus} can be used interchangeably with SolutionConfigurationStatus,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **New**: New status \\\n * **InProgress**: InProgress status \\\n * **Completed**: Canceled status \\\n * **Failed**: Failed status\n */\nexport type SolutionConfigurationStatus = string;\n\n/** The provisioning state of a resource type. */\nexport enum KnownResourceProvisioningState {\n /** Resource has been created. */\n Succeeded = \"Succeeded\",\n /** Resource creation failed. */\n Failed = \"Failed\",\n /** Resource creation was canceled. */\n Canceled = \"Canceled\",\n}\n\n/**\n * The provisioning state of a resource type. \\\n * {@link KnownResourceProvisioningState} can be used interchangeably with ResourceProvisioningState,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Succeeded**: Resource has been created. \\\n * **Failed**: Resource creation failed. \\\n * **Canceled**: Resource creation was canceled.\n */\nexport type ResourceProvisioningState = string;\n\n/** The response of a InventoryResource list operation. */\nexport interface _InventoryResourceListResult {\n /** The InventoryResource items on this page */\n value: InventoryResource[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _inventoryResourceListResultDeserializer(item: any): _InventoryResourceListResult {\n return {\n value: inventoryResourceArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function inventoryResourceArrayDeserializer(result: Array<InventoryResource>): any[] {\n return result.map((item) => {\n return inventoryResourceDeserializer(item);\n });\n}\n\n/** Solution Configuration */\nexport interface SolutionConfiguration extends ExtensionResource {\n /** The resource-specific properties for this resource. */\n properties?: SolutionConfigurationProperties;\n}\n\nexport function solutionConfigurationSerializer(item: SolutionConfiguration): any {\n return {\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : solutionConfigurationPropertiesSerializer(item[\"properties\"]),\n };\n}\n\nexport function solutionConfigurationDeserializer(item: any): SolutionConfiguration {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : solutionConfigurationPropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** Solution configuration resource. */\nexport interface SolutionConfigurationProperties {\n /** The resource provisioning state. */\n readonly provisioningState?: ResourceProvisioningState;\n /** The type of the solution */\n solutionType: string;\n /** Solution settings */\n solutionSettings?: SolutionSettings;\n /** The status of solution configurations */\n readonly status?: SolutionConfigurationStatus;\n /** The detailed message of status details */\n readonly statusDetails?: string;\n /** The last time resources were inventoried */\n readonly lastSyncTime?: Date;\n}\n\nexport function solutionConfigurationPropertiesSerializer(\n item: SolutionConfigurationProperties,\n): any {\n return {\n solutionType: item[\"solutionType\"],\n solutionSettings: !item[\"solutionSettings\"]\n ? item[\"solutionSettings\"]\n : solutionSettingsSerializer(item[\"solutionSettings\"]),\n };\n}\n\nexport function solutionConfigurationPropertiesDeserializer(\n item: any,\n): SolutionConfigurationProperties {\n return {\n provisioningState: item[\"provisioningState\"],\n solutionType: item[\"solutionType\"],\n solutionSettings: !item[\"solutionSettings\"]\n ? item[\"solutionSettings\"]\n : solutionSettingsDeserializer(item[\"solutionSettings\"]),\n status: item[\"status\"],\n statusDetails: item[\"statusDetails\"],\n lastSyncTime: !item[\"lastSyncTime\"] ? item[\"lastSyncTime\"] : new Date(item[\"lastSyncTime\"]),\n };\n}\n\n/** Solution settings */\nexport interface SolutionSettings extends Record<string, string> {}\n\nexport function solutionSettingsSerializer(item: SolutionSettings): any {\n return { ...item };\n}\n\nexport function solutionSettingsDeserializer(item: any): SolutionSettings {\n return {\n ...item,\n };\n}\n\n/** The base extension resource. */\nexport interface ExtensionResource extends Resource {}\n\nexport function extensionResourceSerializer(item: ExtensionResource): any {\n return item;\n}\n\nexport function extensionResourceDeserializer(item: any): ExtensionResource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n };\n}\n\n/** Solution Configuration */\nexport interface SolutionConfigurationUpdate extends ProxyResource {\n /** The resource-specific properties for this resource. */\n properties?: SolutionConfigurationPropertiesUpdate;\n}\n\nexport function solutionConfigurationUpdateSerializer(item: SolutionConfigurationUpdate): any {\n return {\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : solutionConfigurationPropertiesUpdateSerializer(item[\"properties\"]),\n };\n}\n\n/** Solution configuration resource. */\nexport interface SolutionConfigurationPropertiesUpdate {\n /** The type of the solution */\n solutionType?: string;\n /** Solution settings */\n solutionSettings?: SolutionSettings;\n}\n\nexport function solutionConfigurationPropertiesUpdateSerializer(\n item: SolutionConfigurationPropertiesUpdate,\n): any {\n return {\n solutionType: item[\"solutionType\"],\n solutionSettings: !item[\"solutionSettings\"]\n ? item[\"solutionSettings\"]\n : solutionSettingsSerializer(item[\"solutionSettings\"]),\n };\n}\n\n/** The response of a SolutionConfiguration list operation. */\nexport interface _SolutionConfigurationListResult {\n /** The SolutionConfiguration items on this page */\n value: SolutionConfiguration[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _solutionConfigurationListResultDeserializer(\n item: any,\n): _SolutionConfigurationListResult {\n return {\n value: solutionConfigurationArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function solutionConfigurationArraySerializer(result: Array<SolutionConfiguration>): any[] {\n return result.map((item) => {\n return solutionConfigurationSerializer(item);\n });\n}\n\nexport function solutionConfigurationArrayDeserializer(\n result: Array<SolutionConfiguration>,\n): any[] {\n return result.map((item) => {\n return solutionConfigurationDeserializer(item);\n });\n}\n\n/** The current status of an async operation. */\nexport interface OperationStatusResult {\n /** Fully qualified ID for the async operation. */\n id?: string;\n /** Name of the async operation. */\n name?: string;\n /** Operation status. */\n status: string;\n /** Percent of the operation that is complete. */\n percentComplete?: number;\n /** The start time of the operation. */\n startTime?: Date;\n /** The end time of the operation. */\n endTime?: Date;\n /** The operations list. */\n operations?: OperationStatusResult[];\n /** If present, details of the operation error. */\n error?: ErrorDetail;\n /** Fully qualified ID of the resource against which the original async operation was started. */\n readonly resourceId?: string;\n}\n\nexport function operationStatusResultDeserializer(item: any): OperationStatusResult {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n status: item[\"status\"],\n percentComplete: item[\"percentComplete\"],\n startTime: !item[\"startTime\"] ? item[\"startTime\"] : new Date(item[\"startTime\"]),\n endTime: !item[\"endTime\"] ? item[\"endTime\"] : new Date(item[\"endTime\"]),\n operations: !item[\"operations\"]\n ? item[\"operations\"]\n : operationStatusResultArrayDeserializer(item[\"operations\"]),\n error: !item[\"error\"] ? item[\"error\"] : errorDetailDeserializer(item[\"error\"]),\n resourceId: item[\"resourceId\"],\n };\n}\n\nexport function operationStatusResultArrayDeserializer(\n result: Array<OperationStatusResult>,\n): any[] {\n return result.map((item) => {\n return operationStatusResultDeserializer(item);\n });\n}\n\n/** Public Cloud Connector */\nexport interface PublicCloudConnector extends TrackedResource {\n /** The resource-specific properties for this resource. */\n properties?: PublicCloudConnectorProperties;\n}\n\nexport function publicCloudConnectorSerializer(item: PublicCloudConnector): any {\n return {\n tags: item[\"tags\"],\n location: item[\"location\"],\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : publicCloudConnectorPropertiesSerializer(item[\"properties\"]),\n };\n}\n\nexport function publicCloudConnectorDeserializer(item: any): PublicCloudConnector {\n return {\n tags: item[\"tags\"],\n location: item[\"location\"],\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : publicCloudConnectorPropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** Properties of public cloud connectors. */\nexport interface PublicCloudConnectorProperties {\n /** Cloud profile for AWS. */\n awsCloudProfile: AwsCloudProfile;\n /** Host cloud the public cloud connector. */\n hostType: HostType;\n /** The resource provisioning state. */\n readonly provisioningState?: ResourceProvisioningState;\n /** Connector primary identifier. */\n readonly connectorPrimaryIdentifier?: string;\n}\n\nexport function publicCloudConnectorPropertiesSerializer(\n item: PublicCloudConnectorProperties,\n): any {\n return {\n awsCloudProfile: awsCloudProfileSerializer(item[\"awsCloudProfile\"]),\n hostType: item[\"hostType\"],\n };\n}\n\nexport function publicCloudConnectorPropertiesDeserializer(\n item: any,\n): PublicCloudConnectorProperties {\n return {\n awsCloudProfile: awsCloudProfileDeserializer(item[\"awsCloudProfile\"]),\n hostType: item[\"hostType\"],\n provisioningState: item[\"provisioningState\"],\n connectorPrimaryIdentifier: item[\"connectorPrimaryIdentifier\"],\n };\n}\n\n/** cloud profile for AWS. */\nexport interface AwsCloudProfile {\n /** Account id for the AWS account. */\n accountId: string;\n /** List of AWS accounts which need to be excluded. */\n excludedAccounts?: string[];\n /** Boolean value that indicates whether the account is organizational or not. True represents organization account, whereas false represents a single account. */\n isOrganizationalAccount?: boolean;\n}\n\nexport function awsCloudProfileSerializer(item: AwsCloudProfile): any {\n return {\n accountId: item[\"accountId\"],\n excludedAccounts: !item[\"excludedAccounts\"]\n ? item[\"excludedAccounts\"]\n : item[\"excludedAccounts\"].map((p: any) => {\n return p;\n }),\n isOrganizationalAccount: item[\"isOrganizationalAccount\"],\n };\n}\n\nexport function awsCloudProfileDeserializer(item: any): AwsCloudProfile {\n return {\n accountId: item[\"accountId\"],\n excludedAccounts: !item[\"excludedAccounts\"]\n ? item[\"excludedAccounts\"]\n : item[\"excludedAccounts\"].map((p: any) => {\n return p;\n }),\n isOrganizationalAccount: item[\"isOrganizationalAccount\"],\n };\n}\n\n/** Enum of host cloud the public cloud connector is referencing. */\nexport enum KnownHostType {\n /** AWS state */\n AWS = \"AWS\",\n}\n\n/**\n * Enum of host cloud the public cloud connector is referencing. \\\n * {@link KnownHostType} can be used interchangeably with HostType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **AWS**: AWS state\n */\nexport type HostType = string;\n\n/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */\nexport interface TrackedResource extends Resource {\n /** Resource tags. */\n tags?: Record<string, string>;\n /** The geo-location where the resource lives */\n location: string;\n}\n\nexport function trackedResourceSerializer(item: TrackedResource): any {\n return { tags: item[\"tags\"], location: item[\"location\"] };\n}\n\nexport function trackedResourceDeserializer(item: any): TrackedResource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n tags: item[\"tags\"],\n location: item[\"location\"],\n };\n}\n\n/** Public Cloud Connector */\nexport interface PublicCloudConnectorUpdate extends TrackedResourceUpdate {\n /** The resource-specific properties for this resource. */\n properties?: PublicCloudConnectorPropertiesUpdate;\n}\n\nexport function publicCloudConnectorUpdateSerializer(item: PublicCloudConnectorUpdate): any {\n return {\n tags: item[\"tags\"],\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : publicCloudConnectorPropertiesUpdateSerializer(item[\"properties\"]),\n };\n}\n\n/** Properties of public cloud connectors. */\nexport interface PublicCloudConnectorPropertiesUpdate {\n /** Cloud profile for AWS. */\n awsCloudProfile?: AwsCloudProfileUpdate;\n}\n\nexport function publicCloudConnectorPropertiesUpdateSerializer(\n item: PublicCloudConnectorPropertiesUpdate,\n): any {\n return {\n awsCloudProfile: !item[\"awsCloudProfile\"]\n ? item[\"awsCloudProfile\"]\n : awsCloudProfileUpdateSerializer(item[\"awsCloudProfile\"]),\n };\n}\n\n/** cloud profile for AWS. */\nexport interface AwsCloudProfileUpdate {\n /** List of AWS accounts which need to be excluded. */\n excludedAccounts?: string[];\n}\n\nexport function awsCloudProfileUpdateSerializer(item: AwsCloudProfileUpdate): any {\n return {\n excludedAccounts: !item[\"excludedAccounts\"]\n ? item[\"excludedAccounts\"]\n : item[\"excludedAccounts\"].map((p: any) => {\n return p;\n }),\n };\n}\n\n/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */\nexport interface TrackedResourceUpdate extends Resource {\n /** Resource tags. */\n tags?: Record<string, string>;\n}\n\nexport function trackedResourceUpdateSerializer(item: TrackedResourceUpdate): any {\n return { tags: item[\"tags\"] };\n}\n\n/** The response of a PublicCloudConnector list operation. */\nexport interface _PublicCloudConnectorListResult {\n /** The PublicCloudConnector items on this page */\n value: PublicCloudConnector[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _publicCloudConnectorListResultDeserializer(\n item: any,\n): _PublicCloudConnectorListResult {\n return {\n value: publicCloudConnectorArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function publicCloudConnectorArraySerializer(result: Array<PublicCloudConnector>): any[] {\n return result.map((item) => {\n return publicCloudConnectorSerializer(item);\n });\n}\n\nexport function publicCloudConnectorArrayDeserializer(result: Array<PublicCloudConnector>): any[] {\n return result.map((item) => {\n return publicCloudConnectorDeserializer(item);\n });\n}\n\n/** ConnectorId and SolutionTypes and their properties to Generate AWS CFT Template. */\nexport interface GenerateAwsTemplateRequest {\n /** The name of public cloud connector */\n connectorId: string;\n /** The list of solution types and their settings */\n solutionTypes?: SolutionTypeSettings[];\n}\n\nexport function generateAwsTemplateRequestSerializer(item: GenerateAwsTemplateRequest): any {\n return {\n connectorId: item[\"connectorId\"],\n solutionTypes: !item[\"solutionTypes\"]\n ? item[\"solutionTypes\"]\n : solutionTypeSettingsArraySerializer(item[\"solutionTypes\"]),\n };\n}\n\nexport function solutionTypeSettingsArraySerializer(result: Array<SolutionTypeSettings>): any[] {\n return result.map((item) => {\n return solutionTypeSettingsSerializer(item);\n });\n}\n\n/** The properties of Solution Type */\nexport interface SolutionTypeSettings {\n /** The type of the solution */\n solutionType: string;\n /** Solution settings */\n solutionSettings?: SolutionSettings;\n}\n\nexport function solutionTypeSettingsSerializer(item: SolutionTypeSettings): any {\n return {\n solutionType: item[\"solutionType\"],\n solutionSettings: !item[\"solutionSettings\"]\n ? item[\"solutionSettings\"]\n : solutionSettingsSerializer(item[\"solutionSettings\"]),\n };\n}\n\n/** model interface _PostResponse */\nexport interface _PostResponse {}\n\nexport function _postResponseDeserializer(item: any): _PostResponse {\n return item;\n}\n\n/** The service configuration details associated with the target resource. */\nexport interface ServiceConfigurationResource extends ExtensionResource {\n /** The service configuration properties. */\n properties?: ServiceConfigurationProperties;\n}\n\nexport function serviceConfigurationResourceSerializer(item: ServiceConfigurationResource): any {\n return {\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : serviceConfigurationPropertiesSerializer(item[\"properties\"]),\n };\n}\n\nexport function serviceConfigurationResourceDeserializer(item: any): ServiceConfigurationResource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : serviceConfigurationPropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** Service configuration details */\nexport interface ServiceConfigurationProperties {\n /** Name of the service. */\n serviceName: ServiceName;\n /** The resource Id of the connectivity endpoint (optional). */\n resourceId?: string;\n /** The port on which service is enabled. */\n port?: number;\n /** The resource provisioning state. */\n readonly provisioningState?: ProvisioningState;\n}\n\nexport function serviceConfigurationPropertiesSerializer(\n item: ServiceConfigurationProperties,\n): any {\n return {\n serviceName: item[\"serviceName\"],\n resourceId: item[\"resourceId\"],\n port: item[\"port\"],\n };\n}\n\nexport function serviceConfigurationPropertiesDeserializer(\n item: any,\n): ServiceConfigurationProperties {\n return {\n serviceName: item[\"serviceName\"],\n resourceId: item[\"resourceId\"],\n port: item[\"port\"],\n provisioningState: item[\"provisioningState\"],\n };\n}\n\n/** Name of the service. */\nexport enum KnownServiceName {\n SSH = \"SSH\",\n WAC = \"WAC\",\n}\n\n/**\n * Name of the service. \\\n * {@link KnownServiceName} can be used interchangeably with ServiceName,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **SSH** \\\n * **WAC**\n */\nexport type ServiceName = string;\n\n/** The resource provisioning state. */\nexport enum KnownProvisioningState {\n Succeeded = \"Succeeded\",\n Creating = \"Creating\",\n Updating = \"Updating\",\n Failed = \"Failed\",\n Canceled = \"Canceled\",\n}\n\n/**\n * The resource provisioning state. \\\n * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Succeeded** \\\n * **Creating** \\\n * **Updating** \\\n * **Failed** \\\n * **Canceled**\n */\nexport type ProvisioningState = string;\n\n/** The service details under service configuration for the target endpoint resource. */\nexport interface ServiceConfigurationResourcePatch {\n /** The service configuration properties. */\n properties?: ServiceConfigurationPropertiesPatch;\n}\n\nexport function serviceConfigurationResourcePatchSerializer(\n item: ServiceConfigurationResourcePatch,\n): any {\n return {\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : serviceConfigurationPropertiesPatchSerializer(item[\"properties\"]),\n };\n}\n\n/** Service configuration details */\nexport interface ServiceConfigurationPropertiesPatch {\n /** The port on which service is enabled. */\n port?: number;\n}\n\nexport function serviceConfigurationPropertiesPatchSerializer(\n item: ServiceConfigurationPropertiesPatch,\n): any {\n return { port: item[\"port\"] };\n}\n\n/** The paginated list of serviceConfigurations */\nexport interface _ServiceConfigurationList {\n /** The list of service configuration */\n value: ServiceConfigurationResource[];\n /** The link to fetch the next page of connected cluster */\n nextLink?: string;\n}\n\nexport function _serviceConfigurationListDeserializer(item: any): _ServiceConfigurationList {\n return {\n value: serviceConfigurationResourceArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function serviceConfigurationResourceArraySerializer(\n result: Array<ServiceConfigurationResource>,\n): any[] {\n return result.map((item) => {\n return serviceConfigurationResourceSerializer(item);\n });\n}\n\nexport function serviceConfigurationResourceArrayDeserializer(\n result: Array<ServiceConfigurationResource>,\n): any[] {\n return result.map((item) => {\n return serviceConfigurationResourceDeserializer(item);\n });\n}\n\n/** The endpoint for the target resource. */\nexport interface EndpointResource extends ExtensionResource {\n /** The endpoint properties. */\n properties?: EndpointProperties;\n}\n\nexport function endpointResourceSerializer(item: EndpointResource): any {\n return {\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : endpointPropertiesSerializer(item[\"properties\"]),\n };\n}\n\nexport function endpointResourceDeserializer(item: any): EndpointResource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : endpointPropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** Endpoint details */\nexport interface EndpointProperties {\n /** The type of endpoint. */\n type: Type;\n /** The resource Id of the connectivity endpoint (optional). */\n resourceId?: string;\n /** The resource provisioning state. */\n readonly provisioningState?: string;\n}\n\nexport function endpointPropertiesSerializer(item: EndpointProperties): any {\n return { type: item[\"type\"], resourceId: item[\"resourceId\"] };\n}\n\nexport function endpointPropertiesDeserializer(item: any): EndpointProperties {\n return {\n type: item[\"type\"],\n resourceId: item[\"resourceId\"],\n provisioningState: item[\"provisioningState\"],\n };\n}\n\n/** The type of endpoint. */\nexport enum KnownType {\n Default = \"default\",\n Custom = \"custom\",\n}\n\n/**\n * The type of endpoint. \\\n * {@link KnownType} can be used interchangeably with Type,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **default** \\\n * **custom**\n */\nexport type Type = string;\n\n/** The list of endpoints. */\nexport interface _EndpointsList {\n /** The list of endpoint. */\n value: EndpointResource[];\n /** The link used to get the next page of endpoints list. */\n nextLink?: string;\n}\n\nexport function _endpointsListDeserializer(item: any): _EndpointsList {\n return {\n value: endpointResourceArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function endpointResourceArraySerializer(result: Array<EndpointResource>): any[] {\n return result.map((item) => {\n return endpointResourceSerializer(item);\n });\n}\n\nexport function endpointResourceArrayDeserializer(result: Array<EndpointResource>): any[] {\n return result.map((item) => {\n return endpointResourceDeserializer(item);\n });\n}\n\n/** The details of the service for which credentials needs to be returned. */\nexport interface ListCredentialsRequest {\n /** The name of the service. If not provided, the request will by pass the generation of service configuration token */\n serviceName?: ServiceName;\n}\n\nexport function listCredentialsRequestSerializer(item: ListCredentialsRequest): any {\n return { serviceName: item[\"serviceName\"] };\n}\n\n/** The endpoint access for the target resource. */\nexport interface EndpointAccessResource {\n /** Azure relay hybrid connection access properties */\n relay?: RelayNamespaceAccessProperties;\n}\n\nexport function endpointAccessResourceDeserializer(item: any): EndpointAccessResource {\n return {\n relay: !item[\"relay\"]\n ? item[\"relay\"]\n : relayNamespaceAccessPropertiesDeserializer(item[\"relay\"]),\n };\n}\n\n/** Azure relay hybrid connection access properties */\nexport interface RelayNamespaceAccessProperties {\n /** The namespace name. */\n namespaceName: string;\n /** The suffix domain name of relay namespace. */\n namespaceNameSuffix: string;\n /** Azure Relay hybrid connection name for the resource. */\n hybridConnectionName: string;\n /** Access key for hybrid connection. */\n readonly accessKey?: string;\n /** The expiration of access key in unix time. */\n expiresOn?: number;\n /** The token to access the enabled service. */\n serviceConfigurationToken?: string;\n}\n\nexport function relayNamespaceAccessPropertiesDeserializer(\n item: any,\n): RelayNamespaceAccessProperties {\n return {\n namespaceName: item[\"namespaceName\"],\n namespaceNameSuffix: item[\"namespaceNameSuffix\"],\n hybridConnectionName: item[\"hybridConnectionName\"],\n accessKey: item[\"accessKey\"],\n expiresOn: item[\"expiresOn\"],\n serviceConfigurationToken: item[\"serviceConfigurationToken\"],\n };\n}\n\n/** Represent ListIngressGatewayCredentials Request object. */\nexport interface ListIngressGatewayCredentialsRequest {\n /** The name of the service. If not provided, the request will by pass the generation of service configuration token. */\n serviceName?: ServiceName;\n}\n\nexport function listIngressGatewayCredentialsRequestSerializer(\n item: ListIngressGatewayCredentialsRequest,\n): any {\n return { serviceName: item[\"serviceName\"] };\n}\n\n/** The ingress gateway access credentials */\nexport interface IngressGatewayResource {\n /** Azure relay hybrid connection access properties */\n relay?: RelayNamespaceAccessProperties;\n /** Ingress gateway profile */\n ingress?: IngressProfileProperties;\n}\n\nexport function ingressGatewayResourceDeserializer(item: any): IngressGatewayResource {\n return {\n relay: !item[\"relay\"]\n ? item[\"relay\"]\n : relayNamespaceAccessPropertiesDeserializer(item[\"relay\"]),\n ingress: !item[\"ingress\"]\n ? item[\"ingress\"]\n : ingressProfilePropertiesDeserializer(item[\"ingress\"]),\n };\n}\n\n/** Ingress gateway profile */\nexport interface IngressProfileProperties {\n /** The ingress hostname. */\n hostname: string;\n /** The AAD Profile */\n aadProfile: AADProfileProperties;\n}\n\nexport function ingressProfilePropertiesDeserializer(item: any): IngressProfileProperties {\n return {\n hostname: item[\"hostname\"],\n aadProfile: aadProfilePropertiesDeserializer(item[\"aadProfile\"]),\n };\n}\n\n/** The AAD Profile */\nexport interface AADProfileProperties {\n /** The arc ingress gateway server app id. */\n serverId: string;\n /** The target resource home tenant id. */\n tenantId: string;\n}\n\nexport function aadProfilePropertiesDeserializer(item: any): AADProfileProperties {\n return {\n serverId: item[\"serverId\"],\n tenantId: item[\"tenantId\"],\n };\n}\n\n/** Represent ManageProxy Request object. */\nexport interface ManagedProxyRequest {\n /** The name of the service. */\n service: string;\n /** The target host name. */\n hostname?: string;\n /** The name of the service. It is an optional property, if not provided, service configuration tokens issue code would be by passed. */\n serviceName?: ServiceName;\n}\n\nexport function managedProxyRequestSerializer(item: ManagedProxyRequest): any {\n return {\n service: item[\"service\"],\n hostname: item[\"hostname\"],\n serviceName: item[\"serviceName\"],\n };\n}\n\n/** Managed Proxy */\nexport interface ManagedProxyResource {\n /** The short lived proxy name. */\n proxy: string;\n /** The expiration time of short lived proxy name in unix epoch. */\n expiresOn: number;\n}\n\nexport function managedProxyResourceDeserializer(item: any): ManagedProxyResource {\n return {\n proxy: item[\"proxy\"],\n expiresOn: item[\"expiresOn\"],\n };\n}\n\n/** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */\nexport interface _OperationListResult {\n /** The Operation items on this page */\n value: Operation[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _operationListResultDeserializer(item: any): _OperationListResult {\n return {\n value: operationArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function operationArrayDeserializer(result: Array<Operation>): any[] {\n return result.map((item) => {\n return operationDeserializer(item);\n });\n}\n\n/** Details of a REST API operation, returned from the Resource Provider Operations API */\nexport interface Operation {\n /** The name of the operation, as per Resource-Based Access Control (RBAC). Examples: \"Microsoft.Compute/virtualMachines/write\", \"Microsoft.Compute/virtualMachines/capture/action\" */\n readonly name?: string;\n /** Whether the operation applies to data-plane. This is \"true\" for data-plane operations and \"false\" for Azure Resource Manager/control-plane operations. */\n readonly isDataAction?: boolean;\n /** Localized display information for this particular operation. */\n display?: OperationDisplay;\n /** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" */\n readonly origin?: Origin;\n /** Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. */\n readonly actionType?: ActionType;\n}\n\nexport function operationDeserializer(item: any): Operation {\n return {\n name: item[\"name\"],\n isDataAction: item[\"isDataAction\"],\n display: !item[\"display\"] ? item[\"display\"] : operationDisplayDeserializer(item[\"display\"]),\n origin: item[\"origin\"],\n actionType: item[\"actionType\"],\n };\n}\n\n/** Localized display information for and operation. */\nexport interface OperationDisplay {\n /** The localized friendly form of the resource provider name, e.g. \"Microsoft Monitoring Insights\" or \"Microsoft Compute\". */\n readonly provider?: string;\n /** The localized friendly name of the resource type related to this operation. E.g. \"Virtual Machines\" or \"Job Schedule Collections\". */\n readonly resource?: string;\n /** The concise, localized friendly name for the operation; suitable for dropdowns. E.g. \"Create or Update Virtual Machine\", \"Restart Virtual Machine\". */\n readonly operation?: string;\n /** The short, localized friendly description of the operation; suitable for tool tips and detailed views. */\n readonly description?: string;\n}\n\nexport function operationDisplayDeserializer(item: any): OperationDisplay {\n return {\n provider: item[\"provider\"],\n resource: item[\"resource\"],\n operation: item[\"operation\"],\n description: item[\"description\"],\n };\n}\n\n/** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" */\nexport enum KnownOrigin {\n /** Indicates the operation is initiated by a user. */\n User = \"user\",\n /** Indicates the operation is initiated by a system. */\n System = \"system\",\n /** Indicates the operation is initiated by a user or system. */\n UserSystem = \"user,system\",\n}\n\n/**\n * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" \\\n * {@link KnownOrigin} can be used interchangeably with Origin,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **user**: Indicates the operation is initiated by a user. \\\n * **system**: Indicates the operation is initiated by a system. \\\n * **user,system**: Indicates the operation is initiated by a user or system.\n */\nexport type Origin = string;\n\n/** Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. */\nexport enum KnownActionType {\n /** Actions are for internal-only APIs. */\n Internal = \"Internal\",\n}\n\n/**\n * Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. \\\n * {@link KnownActionType} can be used interchangeably with ActionType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Internal**: Actions are for internal-only APIs.\n */\nexport type ActionType = string;\n\n/** Hybrid Connectivity Management service version. */\nexport enum KnownVersions {\n /** Version 2024-12-01 */\n V20241201 = \"2024-12-01\",\n}\n"]}
1
+ {"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/models/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,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CAAC,CAAM,EAAE,EAAE;YAClD,OAAO,CAAC,CAAC;QACX,CAAC,CAAC;QACF,YAAY,EAAE,IAAI,CAAC,cAAc,CAAC;KACnC,CAAC;AACJ,CAAC;AAUD,MAAM,UAAU,2CAA2C,CACzD,IAAS;IAET,OAAO;QACL,KAAK,EAAE,qCAAqC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC3D,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC;KAC3B,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,qCAAqC,CAAC,MAAmC;IACvF,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QACzB,OAAO,gCAAgC,CAAC,IAAI,CAAC,CAAC;IAChD,CAAC,CAAC,CAAC;AACL,CAAC;AAED,sDAAsD;AACtD,MAAM,CAAN,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,yBAAyB;IACzB,yCAAwB,CAAA;AAC1B,CAAC,EAHW,aAAa,KAAb,aAAa,QAGxB","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { serializeRecord } from \"../static-helpers/serialization/serialize-record.js\";\n\n/** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */\nexport interface _OperationListResult {\n /** The Operation items on this page */\n value: Operation[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _operationListResultDeserializer(item: any): _OperationListResult {\n return {\n value: operationArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function operationArrayDeserializer(result: Array<Operation>): any[] {\n return result.map((item) => {\n return operationDeserializer(item);\n });\n}\n\n/** Details of a REST API operation, returned from the Resource Provider Operations API */\nexport interface Operation {\n /** The name of the operation, as per Resource-Based Access Control (RBAC). Examples: \"Microsoft.Compute/virtualMachines/write\", \"Microsoft.Compute/virtualMachines/capture/action\" */\n readonly name?: string;\n /** Whether the operation applies to data-plane. This is \"true\" for data-plane operations and \"false\" for Azure Resource Manager/control-plane operations. */\n readonly isDataAction?: boolean;\n /** Localized display information for this particular operation. */\n display?: OperationDisplay;\n /** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" */\n readonly origin?: Origin;\n /** Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. */\n readonly actionType?: ActionType;\n}\n\nexport function operationDeserializer(item: any): Operation {\n return {\n name: item[\"name\"],\n isDataAction: item[\"isDataAction\"],\n display: !item[\"display\"] ? item[\"display\"] : operationDisplayDeserializer(item[\"display\"]),\n origin: item[\"origin\"],\n actionType: item[\"actionType\"],\n };\n}\n\n/** Localized display information for and operation. */\nexport interface OperationDisplay {\n /** The localized friendly form of the resource provider name, e.g. \"Microsoft Monitoring Insights\" or \"Microsoft Compute\". */\n readonly provider?: string;\n /** The localized friendly name of the resource type related to this operation. E.g. \"Virtual Machines\" or \"Job Schedule Collections\". */\n readonly resource?: string;\n /** The concise, localized friendly name for the operation; suitable for dropdowns. E.g. \"Create or Update Virtual Machine\", \"Restart Virtual Machine\". */\n readonly operation?: string;\n /** The short, localized friendly description of the operation; suitable for tool tips and detailed views. */\n readonly description?: string;\n}\n\nexport function operationDisplayDeserializer(item: any): OperationDisplay {\n return {\n provider: item[\"provider\"],\n resource: item[\"resource\"],\n operation: item[\"operation\"],\n description: item[\"description\"],\n };\n}\n\n/** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" */\nexport enum KnownOrigin {\n /** Indicates the operation is initiated by a user. */\n User = \"user\",\n /** Indicates the operation is initiated by a system. */\n System = \"system\",\n /** Indicates the operation is initiated by a user or system. */\n UserSystem = \"user,system\",\n}\n\n/**\n * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" \\\n * {@link KnownOrigin} can be used interchangeably with Origin,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **user**: Indicates the operation is initiated by a user. \\\n * **system**: Indicates the operation is initiated by a system. \\\n * **user,system**: Indicates the operation is initiated by a user or system.\n */\nexport type Origin = string;\n\n/** Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. */\nexport enum KnownActionType {\n /** Actions are for internal-only APIs. */\n Internal = \"Internal\",\n}\n\n/**\n * Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. \\\n * {@link KnownActionType} can be used interchangeably with ActionType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Internal**: Actions are for internal-only APIs.\n */\nexport type ActionType = string;\n\n/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. */\nexport interface ErrorResponse {\n /** The error object. */\n error?: ErrorDetail;\n}\n\nexport function errorResponseDeserializer(item: any): ErrorResponse {\n return {\n error: !item[\"error\"] ? item[\"error\"] : errorDetailDeserializer(item[\"error\"]),\n };\n}\n\n/** The error detail. */\nexport interface ErrorDetail {\n /** The error code. */\n readonly code?: string;\n /** The error message. */\n readonly message?: string;\n /** The error target. */\n readonly target?: string;\n /** The error details. */\n readonly details?: ErrorDetail[];\n /** The error additional info. */\n readonly additionalInfo?: ErrorAdditionalInfo[];\n}\n\nexport function errorDetailDeserializer(item: any): ErrorDetail {\n return {\n code: item[\"code\"],\n message: item[\"message\"],\n target: item[\"target\"],\n details: !item[\"details\"] ? item[\"details\"] : errorDetailArrayDeserializer(item[\"details\"]),\n additionalInfo: !item[\"additionalInfo\"]\n ? item[\"additionalInfo\"]\n : errorAdditionalInfoArrayDeserializer(item[\"additionalInfo\"]),\n };\n}\n\nexport function errorDetailArrayDeserializer(result: Array<ErrorDetail>): any[] {\n return result.map((item) => {\n return errorDetailDeserializer(item);\n });\n}\n\nexport function errorAdditionalInfoArrayDeserializer(result: Array<ErrorAdditionalInfo>): any[] {\n return result.map((item) => {\n return errorAdditionalInfoDeserializer(item);\n });\n}\n\n/** The resource management error additional info. */\nexport interface ErrorAdditionalInfo {\n /** The additional info type. */\n readonly type?: string;\n /** The additional info. */\n readonly info?: any;\n}\n\nexport function errorAdditionalInfoDeserializer(item: any): ErrorAdditionalInfo {\n return {\n type: item[\"type\"],\n info: item[\"info\"],\n };\n}\n\n/** The endpoint for the target resource. */\nexport interface EndpointResource extends ExtensionResource {\n /** The endpoint properties. */\n properties?: EndpointProperties;\n}\n\nexport function endpointResourceSerializer(item: EndpointResource): any {\n return {\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : endpointPropertiesSerializer(item[\"properties\"]),\n };\n}\n\nexport function endpointResourceDeserializer(item: any): EndpointResource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : endpointPropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** Endpoint details */\nexport interface EndpointProperties {\n /** The type of endpoint. */\n type: Type;\n /** The resource Id of the connectivity endpoint (optional). */\n resourceId?: string;\n /** The resource provisioning state. */\n readonly provisioningState?: string;\n}\n\nexport function endpointPropertiesSerializer(item: EndpointProperties): any {\n return { type: item[\"type\"], resourceId: item[\"resourceId\"] };\n}\n\nexport function endpointPropertiesDeserializer(item: any): EndpointProperties {\n return {\n type: item[\"type\"],\n resourceId: item[\"resourceId\"],\n provisioningState: item[\"provisioningState\"],\n };\n}\n\n/** The type of endpoint. */\nexport enum KnownType {\n Default = \"default\",\n Custom = \"custom\",\n}\n\n/**\n * The type of endpoint. \\\n * {@link KnownType} can be used interchangeably with Type,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **default** \\\n * **custom**\n */\nexport type Type = string;\n\n/** The base extension resource. */\nexport interface ExtensionResource extends Resource {}\n\nexport function extensionResourceSerializer(item: ExtensionResource): any {\n return item;\n}\n\nexport function extensionResourceDeserializer(item: any): ExtensionResource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n };\n}\n\n/** Common fields that are returned in the response for all Azure Resource Manager resources */\nexport interface Resource {\n /** Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} */\n readonly id?: string;\n /** The name of the resource */\n readonly name?: string;\n /** The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or \"Microsoft.Storage/storageAccounts\" */\n readonly type?: string;\n /** Azure Resource Manager metadata containing createdBy and modifiedBy information. */\n readonly systemData?: SystemData;\n}\n\nexport function resourceSerializer(item: Resource): any {\n return item;\n}\n\nexport function resourceDeserializer(item: any): Resource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n };\n}\n\n/** Metadata pertaining to creation and last modification of the resource. */\nexport interface SystemData {\n /** The identity that created the resource. */\n createdBy?: string;\n /** The type of identity that created the resource. */\n createdByType?: CreatedByType;\n /** The timestamp of resource creation (UTC). */\n createdAt?: Date;\n /** The identity that last modified the resource. */\n lastModifiedBy?: string;\n /** The type of identity that last modified the resource. */\n lastModifiedByType?: CreatedByType;\n /** The timestamp of resource last modification (UTC) */\n lastModifiedAt?: Date;\n}\n\nexport function systemDataDeserializer(item: any): SystemData {\n return {\n createdBy: item[\"createdBy\"],\n createdByType: item[\"createdByType\"],\n createdAt: !item[\"createdAt\"] ? item[\"createdAt\"] : new Date(item[\"createdAt\"]),\n lastModifiedBy: item[\"lastModifiedBy\"],\n lastModifiedByType: item[\"lastModifiedByType\"],\n lastModifiedAt: !item[\"lastModifiedAt\"]\n ? item[\"lastModifiedAt\"]\n : new Date(item[\"lastModifiedAt\"]),\n };\n}\n\n/** The kind of entity that created the resource. */\nexport enum KnownCreatedByType {\n /** The entity was created by a user. */\n User = \"User\",\n /** The entity was created by an application. */\n Application = \"Application\",\n /** The entity was created by a managed identity. */\n ManagedIdentity = \"ManagedIdentity\",\n /** The entity was created by a key. */\n Key = \"Key\",\n}\n\n/**\n * The kind of entity that created the resource. \\\n * {@link KnowncreatedByType} can be used interchangeably with createdByType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **User**: The entity was created by a user. \\\n * **Application**: The entity was created by an application. \\\n * **ManagedIdentity**: The entity was created by a managed identity. \\\n * **Key**: The entity was created by a key.\n */\nexport type CreatedByType = string;\n\n/** The list of endpoints. */\nexport interface _EndpointsList {\n /** The list of endpoint. */\n value: EndpointResource[];\n /** The link used to get the next page of endpoints list. */\n nextLink?: string;\n}\n\nexport function _endpointsListDeserializer(item: any): _EndpointsList {\n return {\n value: endpointResourceArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function endpointResourceArraySerializer(result: Array<EndpointResource>): any[] {\n return result.map((item) => {\n return endpointResourceSerializer(item);\n });\n}\n\nexport function endpointResourceArrayDeserializer(result: Array<EndpointResource>): any[] {\n return result.map((item) => {\n return endpointResourceDeserializer(item);\n });\n}\n\n/** The details of the service for which credentials needs to be returned. */\nexport interface ListCredentialsRequest {\n /** The name of the service. If not provided, the request will by pass the generation of service configuration token */\n serviceName?: ServiceName;\n}\n\nexport function listCredentialsRequestSerializer(item: ListCredentialsRequest): any {\n return { serviceName: item[\"serviceName\"] };\n}\n\n/** Name of the service. */\nexport enum KnownServiceName {\n SSH = \"SSH\",\n WAC = \"WAC\",\n}\n\n/**\n * Name of the service. \\\n * {@link KnownServiceName} can be used interchangeably with ServiceName,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **SSH** \\\n * **WAC**\n */\nexport type ServiceName = string;\n\n/** The endpoint access for the target resource. */\nexport interface EndpointAccessResource {\n /** Azure relay hybrid connection access properties */\n relay?: RelayNamespaceAccessProperties;\n}\n\nexport function endpointAccessResourceDeserializer(item: any): EndpointAccessResource {\n return {\n relay: !item[\"relay\"]\n ? item[\"relay\"]\n : relayNamespaceAccessPropertiesDeserializer(item[\"relay\"]),\n };\n}\n\n/** Azure relay hybrid connection access properties */\nexport interface RelayNamespaceAccessProperties {\n /** The namespace name. */\n namespaceName: string;\n /** The suffix domain name of relay namespace. */\n namespaceNameSuffix: string;\n /** Azure Relay hybrid connection name for the resource. */\n hybridConnectionName: string;\n /** Access key for hybrid connection. */\n readonly accessKey?: string;\n /** The expiration of access key in unix time. */\n expiresOn?: number;\n /** The token to access the enabled service. */\n serviceConfigurationToken?: string;\n}\n\nexport function relayNamespaceAccessPropertiesDeserializer(\n item: any,\n): RelayNamespaceAccessProperties {\n return {\n namespaceName: item[\"namespaceName\"],\n namespaceNameSuffix: item[\"namespaceNameSuffix\"],\n hybridConnectionName: item[\"hybridConnectionName\"],\n accessKey: item[\"accessKey\"],\n expiresOn: item[\"expiresOn\"],\n serviceConfigurationToken: item[\"serviceConfigurationToken\"],\n };\n}\n\n/** Represent ListIngressGatewayCredentials Request object. */\nexport interface ListIngressGatewayCredentialsRequest {\n /** The name of the service. If not provided, the request will by pass the generation of service configuration token. */\n serviceName?: ServiceName;\n}\n\nexport function listIngressGatewayCredentialsRequestSerializer(\n item: ListIngressGatewayCredentialsRequest,\n): any {\n return { serviceName: item[\"serviceName\"] };\n}\n\n/** The ingress gateway access credentials */\nexport interface IngressGatewayResource {\n /** Azure relay hybrid connection access properties */\n relay?: RelayNamespaceAccessProperties;\n /** Ingress gateway profile */\n ingress?: IngressProfileProperties;\n}\n\nexport function ingressGatewayResourceDeserializer(item: any): IngressGatewayResource {\n return {\n relay: !item[\"relay\"]\n ? item[\"relay\"]\n : relayNamespaceAccessPropertiesDeserializer(item[\"relay\"]),\n ingress: !item[\"ingress\"]\n ? item[\"ingress\"]\n : ingressProfilePropertiesDeserializer(item[\"ingress\"]),\n };\n}\n\n/** Ingress gateway profile */\nexport interface IngressProfileProperties {\n /** The ingress hostname. */\n hostname: string;\n /** The AAD Profile */\n aadProfile: AADProfileProperties;\n}\n\nexport function ingressProfilePropertiesDeserializer(item: any): IngressProfileProperties {\n return {\n hostname: item[\"hostname\"],\n aadProfile: aadProfilePropertiesDeserializer(item[\"aadProfile\"]),\n };\n}\n\n/** The AAD Profile */\nexport interface AADProfileProperties {\n /** The arc ingress gateway server app id. */\n serverId: string;\n /** The target resource home tenant id. */\n tenantId: string;\n}\n\nexport function aadProfilePropertiesDeserializer(item: any): AADProfileProperties {\n return {\n serverId: item[\"serverId\"],\n tenantId: item[\"tenantId\"],\n };\n}\n\n/** Represent ManageProxy Request object. */\nexport interface ManagedProxyRequest {\n /** The name of the service. */\n service: string;\n /** The target host name. */\n hostname?: string;\n /** The name of the service. It is an optional property, if not provided, service configuration tokens issue code would be by passed. */\n serviceName?: ServiceName;\n}\n\nexport function managedProxyRequestSerializer(item: ManagedProxyRequest): any {\n return {\n service: item[\"service\"],\n hostname: item[\"hostname\"],\n serviceName: item[\"serviceName\"],\n };\n}\n\n/** Managed Proxy */\nexport interface ManagedProxyResource {\n /** The short lived proxy name. */\n proxy: string;\n /** The expiration time of short lived proxy name in unix epoch. */\n expiresOn: number;\n}\n\nexport function managedProxyResourceDeserializer(item: any): ManagedProxyResource {\n return {\n proxy: item[\"proxy\"],\n expiresOn: item[\"expiresOn\"],\n };\n}\n\n/** The service configuration details associated with the target resource. */\nexport interface ServiceConfigurationResource extends ExtensionResource {\n /** The service configuration properties. */\n properties?: ServiceConfigurationProperties;\n}\n\nexport function serviceConfigurationResourceSerializer(item: ServiceConfigurationResource): any {\n return {\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : serviceConfigurationPropertiesSerializer(item[\"properties\"]),\n };\n}\n\nexport function serviceConfigurationResourceDeserializer(item: any): ServiceConfigurationResource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : serviceConfigurationPropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** Service configuration details */\nexport interface ServiceConfigurationProperties {\n /** Name of the service. */\n serviceName: ServiceName;\n /** The resource Id of the connectivity endpoint (optional). */\n resourceId?: string;\n /** The port on which service is enabled. */\n port?: number;\n /** The resource provisioning state. */\n readonly provisioningState?: ProvisioningState;\n}\n\nexport function serviceConfigurationPropertiesSerializer(\n item: ServiceConfigurationProperties,\n): any {\n return {\n serviceName: item[\"serviceName\"],\n resourceId: item[\"resourceId\"],\n port: item[\"port\"],\n };\n}\n\nexport function serviceConfigurationPropertiesDeserializer(\n item: any,\n): ServiceConfigurationProperties {\n return {\n serviceName: item[\"serviceName\"],\n resourceId: item[\"resourceId\"],\n port: item[\"port\"],\n provisioningState: item[\"provisioningState\"],\n };\n}\n\n/** The resource provisioning state. */\nexport enum KnownProvisioningState {\n Succeeded = \"Succeeded\",\n Creating = \"Creating\",\n Updating = \"Updating\",\n Failed = \"Failed\",\n Canceled = \"Canceled\",\n}\n\n/**\n * The resource provisioning state. \\\n * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Succeeded** \\\n * **Creating** \\\n * **Updating** \\\n * **Failed** \\\n * **Canceled**\n */\nexport type ProvisioningState = string;\n\n/** The service details under service configuration for the target endpoint resource. */\nexport interface ServiceConfigurationResourcePatch {\n /** The service configuration properties. */\n properties?: ServiceConfigurationPropertiesPatch;\n}\n\nexport function serviceConfigurationResourcePatchSerializer(\n item: ServiceConfigurationResourcePatch,\n): any {\n return {\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : serviceConfigurationPropertiesPatchSerializer(item[\"properties\"]),\n };\n}\n\n/** Service configuration details */\nexport interface ServiceConfigurationPropertiesPatch {\n /** The port on which service is enabled. */\n port?: number;\n}\n\nexport function serviceConfigurationPropertiesPatchSerializer(\n item: ServiceConfigurationPropertiesPatch,\n): any {\n return { port: item[\"port\"] };\n}\n\n/** The paginated list of serviceConfigurations */\nexport interface _ServiceConfigurationList {\n /** The list of service configuration */\n value: ServiceConfigurationResource[];\n /** The link to fetch the next page of connected cluster */\n nextLink?: string;\n}\n\nexport function _serviceConfigurationListDeserializer(item: any): _ServiceConfigurationList {\n return {\n value: serviceConfigurationResourceArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function serviceConfigurationResourceArraySerializer(\n result: Array<ServiceConfigurationResource>,\n): any[] {\n return result.map((item) => {\n return serviceConfigurationResourceSerializer(item);\n });\n}\n\nexport function serviceConfigurationResourceArrayDeserializer(\n result: Array<ServiceConfigurationResource>,\n): any[] {\n return result.map((item) => {\n return serviceConfigurationResourceDeserializer(item);\n });\n}\n\n/** ConnectorId and SolutionTypes and their properties to Generate AWS CFT Template. */\nexport interface GenerateAwsTemplateRequest {\n /** The name of public cloud connector */\n connectorId: string;\n /** The list of solution types and their settings */\n solutionTypes?: SolutionTypeSettings[];\n}\n\nexport function generateAwsTemplateRequestSerializer(item: GenerateAwsTemplateRequest): any {\n return {\n connectorId: item[\"connectorId\"],\n solutionTypes: !item[\"solutionTypes\"]\n ? item[\"solutionTypes\"]\n : solutionTypeSettingsArraySerializer(item[\"solutionTypes\"]),\n };\n}\n\nexport function solutionTypeSettingsArraySerializer(result: Array<SolutionTypeSettings>): any[] {\n return result.map((item) => {\n return solutionTypeSettingsSerializer(item);\n });\n}\n\n/** The properties of Solution Type */\nexport interface SolutionTypeSettings {\n /** The type of the solution */\n solutionType: string;\n /** Solution settings */\n solutionSettings?: SolutionSettings;\n}\n\nexport function solutionTypeSettingsSerializer(item: SolutionTypeSettings): any {\n return {\n solutionType: item[\"solutionType\"],\n solutionSettings: !item[\"solutionSettings\"]\n ? item[\"solutionSettings\"]\n : solutionSettingsSerializer(item[\"solutionSettings\"]),\n };\n}\n\n/** Solution settings */\nexport interface SolutionSettings {\n /** Additional properties */\n additionalProperties?: Record<string, string>;\n}\n\nexport function solutionSettingsSerializer(item: SolutionSettings): any {\n return { ...serializeRecord(item.additionalProperties) };\n}\n\nexport function solutionSettingsDeserializer(item: any): SolutionSettings {\n return {\n additionalProperties: serializeRecord(item, []),\n };\n}\n\n/** The HybridConnectivity post operation response */\nexport interface GenerateAwsTemplateResponse {}\n\nexport function generateAwsTemplateResponseDeserializer(item: any): GenerateAwsTemplateResponse {\n return item;\n}\n\n/** Public Cloud Connector */\nexport interface PublicCloudConnector extends TrackedResource {\n /** The resource-specific properties for this resource. */\n properties?: PublicCloudConnectorProperties;\n}\n\nexport function publicCloudConnectorSerializer(item: PublicCloudConnector): any {\n return {\n tags: item[\"tags\"],\n location: item[\"location\"],\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : publicCloudConnectorPropertiesSerializer(item[\"properties\"]),\n };\n}\n\nexport function publicCloudConnectorDeserializer(item: any): PublicCloudConnector {\n return {\n tags: item[\"tags\"],\n location: item[\"location\"],\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : publicCloudConnectorPropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** Properties of public cloud connectors. */\nexport interface PublicCloudConnectorProperties {\n /** Cloud profile for AWS. */\n awsCloudProfile: AwsCloudProfile;\n /** Host cloud the public cloud connector. */\n hostType: HostType;\n /** The resource provisioning state. */\n readonly provisioningState?: ResourceProvisioningState;\n /** Connector primary identifier. */\n readonly connectorPrimaryIdentifier?: string;\n}\n\nexport function publicCloudConnectorPropertiesSerializer(\n item: PublicCloudConnectorProperties,\n): any {\n return {\n awsCloudProfile: awsCloudProfileSerializer(item[\"awsCloudProfile\"]),\n hostType: item[\"hostType\"],\n };\n}\n\nexport function publicCloudConnectorPropertiesDeserializer(\n item: any,\n): PublicCloudConnectorProperties {\n return {\n awsCloudProfile: awsCloudProfileDeserializer(item[\"awsCloudProfile\"]),\n hostType: item[\"hostType\"],\n provisioningState: item[\"provisioningState\"],\n connectorPrimaryIdentifier: item[\"connectorPrimaryIdentifier\"],\n };\n}\n\n/** cloud profile for AWS. */\nexport interface AwsCloudProfile {\n /** Account id for the AWS account. */\n accountId: string;\n /** List of AWS accounts which need to be excluded. */\n excludedAccounts?: string[];\n /** Boolean value that indicates whether the account is organizational or not. True represents organization account, whereas false represents a single account. */\n isOrganizationalAccount?: boolean;\n}\n\nexport function awsCloudProfileSerializer(item: AwsCloudProfile): any {\n return {\n accountId: item[\"accountId\"],\n excludedAccounts: !item[\"excludedAccounts\"]\n ? item[\"excludedAccounts\"]\n : item[\"excludedAccounts\"].map((p: any) => {\n return p;\n }),\n isOrganizationalAccount: item[\"isOrganizationalAccount\"],\n };\n}\n\nexport function awsCloudProfileDeserializer(item: any): AwsCloudProfile {\n return {\n accountId: item[\"accountId\"],\n excludedAccounts: !item[\"excludedAccounts\"]\n ? item[\"excludedAccounts\"]\n : item[\"excludedAccounts\"].map((p: any) => {\n return p;\n }),\n isOrganizationalAccount: item[\"isOrganizationalAccount\"],\n };\n}\n\n/** Enum of host cloud the public cloud connector is referencing. */\nexport enum KnownHostType {\n /** AWS state */\n AWS = \"AWS\",\n}\n\n/**\n * Enum of host cloud the public cloud connector is referencing. \\\n * {@link KnownHostType} can be used interchangeably with HostType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **AWS**: AWS state\n */\nexport type HostType = string;\n\n/** The provisioning state of a resource type. */\nexport enum KnownResourceProvisioningState {\n /** Resource has been created. */\n Succeeded = \"Succeeded\",\n /** Resource creation failed. */\n Failed = \"Failed\",\n /** Resource creation was canceled. */\n Canceled = \"Canceled\",\n}\n\n/**\n * The provisioning state of a resource type. \\\n * {@link KnownResourceProvisioningState} can be used interchangeably with ResourceProvisioningState,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Succeeded**: Resource has been created. \\\n * **Failed**: Resource creation failed. \\\n * **Canceled**: Resource creation was canceled.\n */\nexport type ResourceProvisioningState = string;\n\n/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */\nexport interface TrackedResource extends Resource {\n /** Resource tags. */\n tags?: Record<string, string>;\n /** The geo-location where the resource lives */\n location: string;\n}\n\nexport function trackedResourceSerializer(item: TrackedResource): any {\n return { tags: item[\"tags\"], location: item[\"location\"] };\n}\n\nexport function trackedResourceDeserializer(item: any): TrackedResource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n tags: item[\"tags\"],\n location: item[\"location\"],\n };\n}\n\n/** Public Cloud Connector */\nexport interface PublicCloudConnectorUpdate extends TrackedResourceUpdate {\n /** The resource-specific properties for this resource. */\n properties?: PublicCloudConnectorPropertiesUpdate;\n}\n\nexport function publicCloudConnectorUpdateSerializer(item: PublicCloudConnectorUpdate): any {\n return {\n tags: item[\"tags\"],\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : publicCloudConnectorPropertiesUpdateSerializer(item[\"properties\"]),\n };\n}\n\n/** Properties of public cloud connectors. */\nexport interface PublicCloudConnectorPropertiesUpdate {\n /** Cloud profile for AWS. */\n awsCloudProfile?: AwsCloudProfileUpdate;\n}\n\nexport function publicCloudConnectorPropertiesUpdateSerializer(\n item: PublicCloudConnectorPropertiesUpdate,\n): any {\n return {\n awsCloudProfile: !item[\"awsCloudProfile\"]\n ? item[\"awsCloudProfile\"]\n : awsCloudProfileUpdateSerializer(item[\"awsCloudProfile\"]),\n };\n}\n\n/** cloud profile for AWS. */\nexport interface AwsCloudProfileUpdate {\n /** List of AWS accounts which need to be excluded. */\n excludedAccounts?: string[];\n}\n\nexport function awsCloudProfileUpdateSerializer(item: AwsCloudProfileUpdate): any {\n return {\n excludedAccounts: !item[\"excludedAccounts\"]\n ? item[\"excludedAccounts\"]\n : item[\"excludedAccounts\"].map((p: any) => {\n return p;\n }),\n };\n}\n\n/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */\nexport interface TrackedResourceUpdate extends Resource {\n /** Resource tags. */\n tags?: Record<string, string>;\n}\n\nexport function trackedResourceUpdateSerializer(item: TrackedResourceUpdate): any {\n return { tags: item[\"tags\"] };\n}\n\n/** The response of a PublicCloudConnector list operation. */\nexport interface _PublicCloudConnectorListResult {\n /** The PublicCloudConnector items on this page */\n value: PublicCloudConnector[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _publicCloudConnectorListResultDeserializer(\n item: any,\n): _PublicCloudConnectorListResult {\n return {\n value: publicCloudConnectorArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function publicCloudConnectorArraySerializer(result: Array<PublicCloudConnector>): any[] {\n return result.map((item) => {\n return publicCloudConnectorSerializer(item);\n });\n}\n\nexport function publicCloudConnectorArrayDeserializer(result: Array<PublicCloudConnector>): any[] {\n return result.map((item) => {\n return publicCloudConnectorDeserializer(item);\n });\n}\n\n/** The current status of an async operation. */\nexport interface OperationStatusResult {\n /** Fully qualified ID for the async operation. */\n id?: string;\n /** Name of the async operation. */\n name?: string;\n /** Operation status. */\n status: string;\n /** Percent of the operation that is complete. */\n percentComplete?: number;\n /** The start time of the operation. */\n startTime?: Date;\n /** The end time of the operation. */\n endTime?: Date;\n /** The operations list. */\n operations?: OperationStatusResult[];\n /** If present, details of the operation error. */\n error?: ErrorDetail;\n /** Fully qualified ID of the resource against which the original async operation was started. */\n readonly resourceId?: string;\n}\n\nexport function operationStatusResultDeserializer(item: any): OperationStatusResult {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n status: item[\"status\"],\n percentComplete: item[\"percentComplete\"],\n startTime: !item[\"startTime\"] ? item[\"startTime\"] : new Date(item[\"startTime\"]),\n endTime: !item[\"endTime\"] ? item[\"endTime\"] : new Date(item[\"endTime\"]),\n operations: !item[\"operations\"]\n ? item[\"operations\"]\n : operationStatusResultArrayDeserializer(item[\"operations\"]),\n error: !item[\"error\"] ? item[\"error\"] : errorDetailDeserializer(item[\"error\"]),\n resourceId: item[\"resourceId\"],\n };\n}\n\nexport function operationStatusResultArrayDeserializer(\n result: Array<OperationStatusResult>,\n): any[] {\n return result.map((item) => {\n return operationStatusResultDeserializer(item);\n });\n}\n\n/** Solution Configuration */\nexport interface SolutionConfiguration extends ExtensionResource {\n /** The resource-specific properties for this resource. */\n properties?: SolutionConfigurationProperties;\n}\n\nexport function solutionConfigurationSerializer(item: SolutionConfiguration): any {\n return {\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : solutionConfigurationPropertiesSerializer(item[\"properties\"]),\n };\n}\n\nexport function solutionConfigurationDeserializer(item: any): SolutionConfiguration {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : solutionConfigurationPropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** Solution configuration resource. */\nexport interface SolutionConfigurationProperties {\n /** The resource provisioning state. */\n readonly provisioningState?: ResourceProvisioningState;\n /** The type of the solution */\n solutionType: string;\n /** Solution settings */\n solutionSettings?: SolutionSettings;\n /** The status of solution configurations */\n readonly status?: SolutionConfigurationStatus;\n /** The detailed message of status details */\n readonly statusDetails?: string;\n /** The last time resources were inventoried */\n readonly lastSyncTime?: Date;\n}\n\nexport function solutionConfigurationPropertiesSerializer(\n item: SolutionConfigurationProperties,\n): any {\n return {\n solutionType: item[\"solutionType\"],\n solutionSettings: !item[\"solutionSettings\"]\n ? item[\"solutionSettings\"]\n : solutionSettingsSerializer(item[\"solutionSettings\"]),\n };\n}\n\nexport function solutionConfigurationPropertiesDeserializer(\n item: any,\n): SolutionConfigurationProperties {\n return {\n provisioningState: item[\"provisioningState\"],\n solutionType: item[\"solutionType\"],\n solutionSettings: !item[\"solutionSettings\"]\n ? item[\"solutionSettings\"]\n : solutionSettingsDeserializer(item[\"solutionSettings\"]),\n status: item[\"status\"],\n statusDetails: item[\"statusDetails\"],\n lastSyncTime: !item[\"lastSyncTime\"] ? item[\"lastSyncTime\"] : new Date(item[\"lastSyncTime\"]),\n };\n}\n\n/** Solution Configuration Status. */\nexport enum KnownSolutionConfigurationStatus {\n /** New status */\n New = \"New\",\n /** InProgress status */\n InProgress = \"InProgress\",\n /** Canceled status */\n Completed = \"Completed\",\n /** Failed status */\n Failed = \"Failed\",\n}\n\n/**\n * Solution Configuration Status. \\\n * {@link KnownSolutionConfigurationStatus} can be used interchangeably with SolutionConfigurationStatus,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **New**: New status \\\n * **InProgress**: InProgress status \\\n * **Completed**: Canceled status \\\n * **Failed**: Failed status\n */\nexport type SolutionConfigurationStatus = string;\n\n/** Solution Configuration */\nexport interface SolutionConfigurationUpdate extends ProxyResource {\n /** The resource-specific properties for this resource. */\n properties?: SolutionConfigurationPropertiesUpdate;\n}\n\nexport function solutionConfigurationUpdateSerializer(item: SolutionConfigurationUpdate): any {\n return {\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : solutionConfigurationPropertiesUpdateSerializer(item[\"properties\"]),\n };\n}\n\n/** Solution configuration resource. */\nexport interface SolutionConfigurationPropertiesUpdate {\n /** The type of the solution */\n solutionType?: string;\n /** Solution settings */\n solutionSettings?: SolutionSettings;\n}\n\nexport function solutionConfigurationPropertiesUpdateSerializer(\n item: SolutionConfigurationPropertiesUpdate,\n): any {\n return {\n solutionType: item[\"solutionType\"],\n solutionSettings: !item[\"solutionSettings\"]\n ? item[\"solutionSettings\"]\n : solutionSettingsSerializer(item[\"solutionSettings\"]),\n };\n}\n\n/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */\nexport interface ProxyResource extends Resource {}\n\nexport function proxyResourceSerializer(item: ProxyResource): any {\n return item;\n}\n\nexport function proxyResourceDeserializer(item: any): ProxyResource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n };\n}\n\n/** The response of a SolutionConfiguration list operation. */\nexport interface _SolutionConfigurationListResult {\n /** The SolutionConfiguration items on this page */\n value: SolutionConfiguration[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _solutionConfigurationListResultDeserializer(\n item: any,\n): _SolutionConfigurationListResult {\n return {\n value: solutionConfigurationArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function solutionConfigurationArraySerializer(result: Array<SolutionConfiguration>): any[] {\n return result.map((item) => {\n return solutionConfigurationSerializer(item);\n });\n}\n\nexport function solutionConfigurationArrayDeserializer(\n result: Array<SolutionConfiguration>,\n): any[] {\n return result.map((item) => {\n return solutionConfigurationDeserializer(item);\n });\n}\n\n/** Concrete proxy resource types can be created by aliasing this type using a specific property type. */\nexport interface InventoryResource extends ProxyResource {\n /** The resource-specific properties for this resource. */\n properties?: InventoryProperties;\n}\n\nexport function inventoryResourceDeserializer(item: any): InventoryResource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : inventoryPropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** Definition of inventory. */\nexport interface InventoryProperties {\n /** Gets or sets the cloud native resource type. */\n cloudNativeType?: CloudNativeType;\n /** Gets or sets the cloud native resource name. */\n cloudNativeResourceId?: string;\n /** Gets or sets the mapped azure resource id. */\n azureResourceId?: string;\n /** Gets or sets the status of the inventory. */\n status?: SolutionConfigurationStatus;\n /** Gets or sets the status details. */\n statusDetails?: string;\n /** The resource provisioning state. */\n readonly provisioningState?: ResourceProvisioningState;\n}\n\nexport function inventoryPropertiesDeserializer(item: any): InventoryProperties {\n return {\n cloudNativeType: item[\"cloudNativeType\"],\n cloudNativeResourceId: item[\"cloudNativeResourceId\"],\n azureResourceId: item[\"azureResourceId\"],\n status: item[\"status\"],\n statusDetails: item[\"statusDetails\"],\n provisioningState: item[\"provisioningState\"],\n };\n}\n\n/** Cloud Native Type enum. */\nexport enum KnownCloudNativeType {\n /** ec2 enum. */\n Ec2 = \"ec2\",\n}\n\n/**\n * Cloud Native Type enum. \\\n * {@link KnownCloudNativeType} can be used interchangeably with CloudNativeType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **ec2**: ec2 enum.\n */\nexport type CloudNativeType = string;\n\n/** The response of a InventoryResource list operation. */\nexport interface _InventoryResourceListResult {\n /** The InventoryResource items on this page */\n value: InventoryResource[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _inventoryResourceListResultDeserializer(item: any): _InventoryResourceListResult {\n return {\n value: inventoryResourceArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function inventoryResourceArrayDeserializer(result: Array<InventoryResource>): any[] {\n return result.map((item) => {\n return inventoryResourceDeserializer(item);\n });\n}\n\n/** Concrete proxy resource types can be created by aliasing this type using a specific property type. */\nexport interface SolutionTypeResource extends ProxyResource {\n /** The resource-specific properties for this resource. */\n properties?: SolutionTypeProperties;\n}\n\nexport function solutionTypeResourceDeserializer(item: any): SolutionTypeResource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : solutionTypePropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** Definition of Solution type resource. */\nexport interface SolutionTypeProperties {\n /** The name of the solution type. */\n solutionType?: string;\n /** Short description of solution type. */\n description?: string;\n /** The locations this solution is supported in. */\n supportedAzureRegions?: string[];\n /** Array of solution settings and its description. */\n solutionSettings?: SolutionTypeSettingsProperties[];\n}\n\nexport function solutionTypePropertiesDeserializer(item: any): SolutionTypeProperties {\n return {\n solutionType: item[\"solutionType\"],\n description: item[\"description\"],\n supportedAzureRegions: !item[\"supportedAzureRegions\"]\n ? item[\"supportedAzureRegions\"]\n : item[\"supportedAzureRegions\"].map((p: any) => {\n return p;\n }),\n solutionSettings: !item[\"solutionSettings\"]\n ? item[\"solutionSettings\"]\n : solutionTypeSettingsPropertiesArrayDeserializer(item[\"solutionSettings\"]),\n };\n}\n\nexport function solutionTypeSettingsPropertiesArrayDeserializer(\n result: Array<SolutionTypeSettingsProperties>,\n): any[] {\n return result.map((item) => {\n return solutionTypeSettingsPropertiesDeserializer(item);\n });\n}\n\n/** Represent Solution settings properties description array. */\nexport interface SolutionTypeSettingsProperties {\n /** The name of the solution setting property. */\n name: string;\n /** The UI friendly name of the solution setting property. */\n displayName: string;\n /** Type of the solution setting property, represented as a string. */\n type: string;\n /** Description of solution setting property. */\n description: string;\n /** Array of allowed values for this solution settings property. */\n allowedValues: string[];\n /** Default value for this solution settings property. */\n defaultValue: string;\n}\n\nexport function solutionTypeSettingsPropertiesDeserializer(\n item: any,\n): SolutionTypeSettingsProperties {\n return {\n name: item[\"name\"],\n displayName: item[\"displayName\"],\n type: item[\"type\"],\n description: item[\"description\"],\n allowedValues: item[\"allowedValues\"].map((p: any) => {\n return p;\n }),\n defaultValue: item[\"defaultValue\"],\n };\n}\n\n/** The response of a SolutionTypeResource list operation. */\nexport interface _SolutionTypeResourceListResult {\n /** The SolutionTypeResource items on this page */\n value: SolutionTypeResource[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _solutionTypeResourceListResultDeserializer(\n item: any,\n): _SolutionTypeResourceListResult {\n return {\n value: solutionTypeResourceArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function solutionTypeResourceArrayDeserializer(result: Array<SolutionTypeResource>): any[] {\n return result.map((item) => {\n return solutionTypeResourceDeserializer(item);\n });\n}\n\n/** Hybrid Connectivity Management service version. */\nexport enum KnownVersions {\n /** Version 2024-12-01 */\n V20241201 = \"2024-12-01\",\n}\n"]}
@@ -37,7 +37,7 @@ const deserializeMap = {
37
37
  },
38
38
  "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridConnectivity/publicCloudConnectors/{publicCloudConnector}": {
39
39
  deserializer: _createOrUpdateDeserialize,
40
- expectedStatuses: ["200", "201"],
40
+ expectedStatuses: ["200", "201", "202"],
41
41
  },
42
42
  };
43
43
  function getDeserializationHelper(urlStr, method) {
@@ -1 +1 @@
1
- {"version":3,"file":"restorePollerHelpers.js","sourceRoot":"","sources":["../../src/restorePollerHelpers.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,mBAAmB,EAAE,MAAM,4CAA4C,CAAC;AACjF,OAAO,EACL,2BAA2B,EAC3B,0BAA0B,GAC3B,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAG1E,OAAO,EAGL,gBAAgB,GAEjB,MAAM,iBAAiB,CAAC;AAgBzB;;;;GAIG;AACH,MAAM,UAAU,aAAa,CAC3B,MAAuC,EACvC,eAAuB,EACvB,eAAiF,EACjF,OAAuC;IAEvC,MAAM,YAAY,GAAG,gBAAgB,CAAC,eAAe,CAAC,CAAC,MAAM,CAAC;IAC9D,MAAM,EAAE,iBAAiB,EAAE,aAAa,EAAE,QAAQ,EAAE,GAAG,YAAY,CAAC;IACpE,IAAI,CAAC,iBAAiB,IAAI,CAAC,aAAa,EAAE,CAAC;QACzC,MAAM,IAAI,KAAK,CACb,6BAA6B,eAAe,wBAAwB,eAAe,EAAE,IAAI,EAAE,CAC5F,CAAC;IACJ,CAAC;IACD,MAAM,sBAAsB,GAAG,QAAQ,EAAE,CAAC,wBAAwB,CAErD,CAAC;IACd,MAAM,EAAE,YAAY,EAAE,gBAAgB,GAAG,EAAE,EAAE,GAC3C,wBAAwB,CAAC,iBAAiB,EAAE,aAAa,CAAC,IAAI,EAAE,CAAC;IAC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AC,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC;gBACvC,KAAK,GAAG,KAAK,CAAC;gBACd,MAAM;YACR,CAAC;QACH,CAAC;QAED,qDAAqD;QACrD,sEAAsE;QACtE,IAAI,KAAK,IAAI,aAAa,CAAC,MAAM,GAAG,UAAU,EAAE,CAAC;YAC/C,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC;YAClC,YAAY,GAAG,KAAK,CAAC;QACvB,CAAC;IACH,CAAC;IAED,OAAO,YAAY,CAAC;AACtB,CAAC;AAED,SAAS,iBAAiB,CAAC,MAAc;IACvC,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACtC,OAAO,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { HybridConnectivityManagementAPI } from \"./hybridConnectivityManagementAPI.js\";\nimport { _syncNowDeserialize } from \"./api/solutionConfigurations/operations.js\";\nimport {\n _testPermissionsDeserialize,\n _createOrUpdateDeserialize,\n} from \"./api/publicCloudConnectors/operations.js\";\nimport { getLongRunningPoller } from \"./static-helpers/pollingHelpers.js\";\nimport { OperationOptions, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { AbortSignalLike } from \"@azure/abort-controller\";\nimport {\n PollerLike,\n OperationState,\n deserializeState,\n ResourceLocationConfig,\n} from \"@azure/core-lro\";\n\nexport interface RestorePollerOptions<\n TResult,\n TResponse extends PathUncheckedResponse = PathUncheckedResponse,\n> extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /**\n * The signal which can be used to abort requests.\n */\n abortSignal?: AbortSignalLike;\n /** Deserialization function for raw response body */\n processResponseBody?: (result: TResponse) => Promise<TResult>;\n}\n\n/**\n * Creates a poller from the serialized state of another poller. This can be\n * useful when you want to create pollers on a different host or a poller\n * needs to be constructed after the original one is not in scope.\n */\nexport function restorePoller<TResponse extends PathUncheckedResponse, TResult>(\n client: HybridConnectivityManagementAPI,\n serializedState: string,\n sourceOperation: (...args: any[]) => PollerLike<OperationState<TResult>, TResult>,\n options?: RestorePollerOptions<TResult>,\n): PollerLike<OperationState<TResult>, TResult> {\n const pollerConfig = deserializeState(serializedState).config;\n const { initialRequestUrl, requestMethod, metadata } = pollerConfig;\n if (!initialRequestUrl || !requestMethod) {\n throw new Error(\n `Invalid serialized state: ${serializedState} for sourceOperation ${sourceOperation?.name}`,\n );\n }\n const resourceLocationConfig = metadata?.[\"resourceLocationConfig\"] as\n | ResourceLocationConfig\n | undefined;\n const { deserializer, expectedStatuses = [] } =\n getDeserializationHelper(initialRequestUrl, requestMethod) ?? {};\n const deserializeHelper = options?.processResponseBody ?? deserializer;\n if (!deserializeHelper) {\n throw new Error(\n `Please ensure the operation is in this client! We can't find its deserializeHelper for ${sourceOperation?.name}.`,\n );\n }\n return getLongRunningPoller(\n (client as any)[\"_client\"] ?? client,\n deserializeHelper as (result: TResponse) => Promise<TResult>,\n expectedStatuses,\n {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n resourceLocationConfig,\n restoreFrom: serializedState,\n initialRequestUrl,\n },\n );\n}\n\ninterface DeserializationHelper {\n deserializer: Function;\n expectedStatuses: string[];\n}\n\nconst deserializeMap: Record<string, DeserializationHelper> = {\n \"POST /{resourceUri}/providers/Microsoft.HybridConnectivity/solutionConfigurations/{solutionConfiguration}/syncNow\":\n { deserializer: _syncNowDeserialize, expectedStatuses: [\"202\", \"200\"] },\n \"POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridConnectivity/publicCloudConnectors/{publicCloudConnector}/testPermissions\":\n {\n deserializer: _testPermissionsDeserialize,\n expectedStatuses: [\"202\", \"200\"],\n },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridConnectivity/publicCloudConnectors/{publicCloudConnector}\":\n {\n deserializer: _createOrUpdateDeserialize,\n expectedStatuses: [\"200\", \"201\"],\n },\n};\n\nfunction getDeserializationHelper(\n urlStr: string,\n method: string,\n): DeserializationHelper | undefined {\n const path = new URL(urlStr).pathname;\n const pathParts = path.split(\"/\");\n\n // Traverse list to match the longest candidate\n // matchedLen: the length of candidate path\n // matchedValue: the matched status code array\n let matchedLen = -1,\n matchedValue: DeserializationHelper | undefined;\n\n // Iterate the responseMap to find a match\n for (const [key, value] of Object.entries(deserializeMap)) {\n // Extracting the path from the map key which is in format\n // GET /path/foo\n if (!key.startsWith(method)) {\n continue;\n }\n const candidatePath = getPathFromMapKey(key);\n // Get each part of the url path\n const candidateParts = candidatePath.split(\"/\");\n\n // track if we have found a match to return the values found.\n let found = true;\n for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {\n if (candidateParts[i]?.startsWith(\"{\") && candidateParts[i]?.indexOf(\"}\") !== -1) {\n const start = candidateParts[i]!.indexOf(\"}\") + 1,\n end = candidateParts[i]?.length;\n // If the current part of the candidate is a \"template\" part\n // Try to use the suffix of pattern to match the path\n // {guid} ==> $\n // {guid}:export ==> :export$\n const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test(\n pathParts[j] || \"\",\n );\n\n if (!isMatched) {\n found = false;\n break;\n }\n continue;\n }\n\n // If the candidate part is not a template and\n // the parts don't match mark the candidate as not found\n // to move on with the next candidate path.\n if (candidateParts[i] !== pathParts[j]) {\n found = false;\n break;\n }\n }\n\n // We finished evaluating the current candidate parts\n // Update the matched value if and only if we found the longer pattern\n if (found && candidatePath.length > matchedLen) {\n matchedLen = candidatePath.length;\n matchedValue = value;\n }\n }\n\n return matchedValue;\n}\n\nfunction getPathFromMapKey(mapKey: string): string {\n const pathStart = mapKey.indexOf(\"/\");\n return mapKey.slice(pathStart);\n}\n"]}
1
+ {"version":3,"file":"restorePollerHelpers.js","sourceRoot":"","sources":["../../src/restorePollerHelpers.ts"],"names":[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AC,MAAc;IACvC,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACtC,OAAO,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { HybridConnectivityManagementAPI } from \"./hybridConnectivityManagementAPI.js\";\nimport { _syncNowDeserialize } from \"./api/solutionConfigurations/operations.js\";\nimport {\n _testPermissionsDeserialize,\n _createOrUpdateDeserialize,\n} from \"./api/publicCloudConnectors/operations.js\";\nimport { getLongRunningPoller } from \"./static-helpers/pollingHelpers.js\";\nimport { OperationOptions, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { AbortSignalLike } from \"@azure/abort-controller\";\nimport {\n PollerLike,\n OperationState,\n deserializeState,\n ResourceLocationConfig,\n} from \"@azure/core-lro\";\n\nexport interface RestorePollerOptions<\n TResult,\n TResponse extends PathUncheckedResponse = PathUncheckedResponse,\n> extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /**\n * The signal which can be used to abort requests.\n */\n abortSignal?: AbortSignalLike;\n /** Deserialization function for raw response body */\n processResponseBody?: (result: TResponse) => Promise<TResult>;\n}\n\n/**\n * Creates a poller from the serialized state of another poller. This can be\n * useful when you want to create pollers on a different host or a poller\n * needs to be constructed after the original one is not in scope.\n */\nexport function restorePoller<TResponse extends PathUncheckedResponse, TResult>(\n client: HybridConnectivityManagementAPI,\n serializedState: string,\n sourceOperation: (...args: any[]) => PollerLike<OperationState<TResult>, TResult>,\n options?: RestorePollerOptions<TResult>,\n): PollerLike<OperationState<TResult>, TResult> {\n const pollerConfig = deserializeState(serializedState).config;\n const { initialRequestUrl, requestMethod, metadata } = pollerConfig;\n if (!initialRequestUrl || !requestMethod) {\n throw new Error(\n `Invalid serialized state: ${serializedState} for sourceOperation ${sourceOperation?.name}`,\n );\n }\n const resourceLocationConfig = metadata?.[\"resourceLocationConfig\"] as\n | ResourceLocationConfig\n | undefined;\n const { deserializer, expectedStatuses = [] } =\n getDeserializationHelper(initialRequestUrl, requestMethod) ?? {};\n const deserializeHelper = options?.processResponseBody ?? deserializer;\n if (!deserializeHelper) {\n throw new Error(\n `Please ensure the operation is in this client! We can't find its deserializeHelper for ${sourceOperation?.name}.`,\n );\n }\n return getLongRunningPoller(\n (client as any)[\"_client\"] ?? client,\n deserializeHelper as (result: TResponse) => Promise<TResult>,\n expectedStatuses,\n {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n resourceLocationConfig,\n restoreFrom: serializedState,\n initialRequestUrl,\n },\n );\n}\n\ninterface DeserializationHelper {\n deserializer: Function;\n expectedStatuses: string[];\n}\n\nconst deserializeMap: Record<string, DeserializationHelper> = {\n \"POST /{resourceUri}/providers/Microsoft.HybridConnectivity/solutionConfigurations/{solutionConfiguration}/syncNow\":\n { deserializer: _syncNowDeserialize, expectedStatuses: [\"202\", \"200\"] },\n \"POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridConnectivity/publicCloudConnectors/{publicCloudConnector}/testPermissions\":\n {\n deserializer: _testPermissionsDeserialize,\n expectedStatuses: [\"202\", \"200\"],\n },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridConnectivity/publicCloudConnectors/{publicCloudConnector}\":\n {\n deserializer: _createOrUpdateDeserialize,\n expectedStatuses: [\"200\", \"201\", \"202\"],\n },\n};\n\nfunction getDeserializationHelper(\n urlStr: string,\n method: string,\n): DeserializationHelper | undefined {\n const path = new URL(urlStr).pathname;\n const pathParts = path.split(\"/\");\n\n // Traverse list to match the longest candidate\n // matchedLen: the length of candidate path\n // matchedValue: the matched status code array\n let matchedLen = -1,\n matchedValue: DeserializationHelper | undefined;\n\n // Iterate the responseMap to find a match\n for (const [key, value] of Object.entries(deserializeMap)) {\n // Extracting the path from the map key which is in format\n // GET /path/foo\n if (!key.startsWith(method)) {\n continue;\n }\n const candidatePath = getPathFromMapKey(key);\n // Get each part of the url path\n const candidateParts = candidatePath.split(\"/\");\n\n // track if we have found a match to return the values found.\n let found = true;\n for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {\n if (candidateParts[i]?.startsWith(\"{\") && candidateParts[i]?.indexOf(\"}\") !== -1) {\n const start = candidateParts[i]!.indexOf(\"}\") + 1,\n end = candidateParts[i]?.length;\n // If the current part of the candidate is a \"template\" part\n // Try to use the suffix of pattern to match the path\n // {guid} ==> $\n // {guid}:export ==> :export$\n const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test(\n pathParts[j] || \"\",\n );\n\n if (!isMatched) {\n found = false;\n break;\n }\n continue;\n }\n\n // If the candidate part is not a template and\n // the parts don't match mark the candidate as not found\n // to move on with the next candidate path.\n if (candidateParts[i] !== pathParts[j]) {\n found = false;\n break;\n }\n }\n\n // We finished evaluating the current candidate parts\n // Update the matched value if and only if we found the longer pattern\n if (found && candidatePath.length > matchedLen) {\n matchedLen = candidatePath.length;\n matchedValue = value;\n }\n }\n\n return matchedValue;\n}\n\nfunction getPathFromMapKey(mapKey: string): string {\n const pathStart = mapKey.indexOf(\"/\");\n return mapKey.slice(pathStart);\n}\n"]}
@@ -0,0 +1,13 @@
1
+ /** An enum to describe Azure Cloud. */
2
+ export declare enum AzureClouds {
3
+ /** Azure public cloud, which is the default cloud for Azure SDKs. */
4
+ AZURE_PUBLIC_CLOUD = "AZURE_PUBLIC_CLOUD",
5
+ /** Azure China cloud */
6
+ AZURE_CHINA_CLOUD = "AZURE_CHINA_CLOUD",
7
+ /** Azure US government cloud */
8
+ AZURE_US_GOVERNMENT = "AZURE_US_GOVERNMENT"
9
+ }
10
+ /** The supported values for cloud setting as a string literal type */
11
+ export type AzureSupportedClouds = `${AzureClouds}`;
12
+ export declare function getArmEndpoint(cloudSetting?: AzureSupportedClouds): string | undefined;
13
+ //# sourceMappingURL=cloudSettingHelpers.d.ts.map
@@ -0,0 +1,29 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ /** An enum to describe Azure Cloud. */
4
+ export var AzureClouds;
5
+ (function (AzureClouds) {
6
+ /** Azure public cloud, which is the default cloud for Azure SDKs. */
7
+ AzureClouds["AZURE_PUBLIC_CLOUD"] = "AZURE_PUBLIC_CLOUD";
8
+ /** Azure China cloud */
9
+ AzureClouds["AZURE_CHINA_CLOUD"] = "AZURE_CHINA_CLOUD";
10
+ /** Azure US government cloud */
11
+ AzureClouds["AZURE_US_GOVERNMENT"] = "AZURE_US_GOVERNMENT";
12
+ })(AzureClouds || (AzureClouds = {}));
13
+ export function getArmEndpoint(cloudSetting) {
14
+ if (cloudSetting === undefined) {
15
+ return undefined;
16
+ }
17
+ const cloudEndpoints = {
18
+ AZURE_CHINA_CLOUD: "https://management.chinacloudapi.cn/",
19
+ AZURE_US_GOVERNMENT: "https://management.usgovcloudapi.net/",
20
+ AZURE_PUBLIC_CLOUD: "https://management.azure.com/",
21
+ };
22
+ if (cloudSetting in cloudEndpoints) {
23
+ return cloudEndpoints[cloudSetting];
24
+ }
25
+ else {
26
+ throw new Error(`Unknown cloud setting: ${cloudSetting}. Please refer to the enum AzureClouds for possible values.`);
27
+ }
28
+ }
29
+ //# sourceMappingURL=cloudSettingHelpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cloudSettingHelpers.js","sourceRoot":"","sources":["../../../src/static-helpers/cloudSettingHelpers.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,uCAAuC;AACvC,MAAM,CAAN,IAAY,WAOX;AAPD,WAAY,WAAW;IACrB,qEAAqE;IACrE,wDAAyC,CAAA;IACzC,wBAAwB;IACxB,sDAAuC,CAAA;IACvC,gCAAgC;IAChC,0DAA2C,CAAA;AAC7C,CAAC,EAPW,WAAW,KAAX,WAAW,QAOtB;AAKD,MAAM,UAAU,cAAc,CAAC,YAAmC;IAChE,IAAI,YAAY,KAAK,SAAS,EAAE,CAAC;QAC/B,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,MAAM,cAAc,GAA6C;QAC/D,iBAAiB,EAAE,sCAAsC;QACzD,mBAAmB,EAAE,uCAAuC;QAC5D,kBAAkB,EAAE,+BAA+B;KACpD,CAAC;IACF,IAAI,YAAY,IAAI,cAAc,EAAE,CAAC;QACnC,OAAO,cAAc,CAAC,YAAY,CAAC,CAAC;IACtC,CAAC;SAAM,CAAC;QACN,MAAM,IAAI,KAAK,CACb,0BAA0B,YAAY,6DAA6D,CACpG,CAAC;IACJ,CAAC;AACH,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/** An enum to describe Azure Cloud. */\nexport enum AzureClouds {\n /** Azure public cloud, which is the default cloud for Azure SDKs. */\n AZURE_PUBLIC_CLOUD = \"AZURE_PUBLIC_CLOUD\",\n /** Azure China cloud */\n AZURE_CHINA_CLOUD = \"AZURE_CHINA_CLOUD\",\n /** Azure US government cloud */\n AZURE_US_GOVERNMENT = \"AZURE_US_GOVERNMENT\",\n}\n\n/** The supported values for cloud setting as a string literal type */\nexport type AzureSupportedClouds = `${AzureClouds}`;\n\nexport function getArmEndpoint(cloudSetting?: AzureSupportedClouds): string | undefined {\n if (cloudSetting === undefined) {\n return undefined;\n }\n const cloudEndpoints: Record<keyof typeof AzureClouds, string> = {\n AZURE_CHINA_CLOUD: \"https://management.chinacloudapi.cn/\",\n AZURE_US_GOVERNMENT: \"https://management.usgovcloudapi.net/\",\n AZURE_PUBLIC_CLOUD: \"https://management.azure.com/\",\n };\n if (cloudSetting in cloudEndpoints) {\n return cloudEndpoints[cloudSetting];\n } else {\n throw new Error(\n `Unknown cloud setting: ${cloudSetting}. Please refer to the enum AzureClouds for possible values.`,\n );\n }\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export declare function serializeRecord(item: any, excludes?: string[], serializer?: (item: any) => any): any;
2
+ //# sourceMappingURL=serialize-record.d.ts.map
@@ -0,0 +1,19 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ export function serializeRecord(item, excludes, serializer) {
4
+ excludes = excludes ?? [];
5
+ const res = {};
6
+ for (let key of Object.keys(item)) {
7
+ if (excludes.includes(key) || item[key] === undefined) {
8
+ continue;
9
+ }
10
+ if (serializer) {
11
+ res[key] = serializer(item[key]);
12
+ }
13
+ else {
14
+ res[key] = item[key];
15
+ }
16
+ }
17
+ return res;
18
+ }
19
+ //# sourceMappingURL=serialize-record.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serialize-record.js","sourceRoot":"","sources":["../../../../src/static-helpers/serialization/serialize-record.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,MAAM,UAAU,eAAe,CAAC,IAAS,EAAE,QAAmB,EAAE,UAA+B;IAC7F,QAAQ,GAAG,QAAQ,IAAI,EAAE,CAAC;IAC1B,MAAM,GAAG,GAAQ,EAAE,CAAC;IACpB,KAAK,IAAI,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;QAClC,IAAI,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,IAAI,CAAC,GAAG,CAAC,KAAK,SAAS,EAAE,CAAC;YACtD,SAAS;QACX,CAAC;QACD,IAAI,UAAU,EAAE,CAAC;YACf,GAAG,CAAC,GAAG,CAAC,GAAG,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;QACnC,CAAC;aAAM,CAAC;YACN,GAAG,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,GAAG,CAAQ,CAAC;QAC9B,CAAC;IACH,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport function serializeRecord(item: any, excludes?: string[], serializer?: (item: any) => any) {\n excludes = excludes ?? [];\n const res: any = {};\n for (let key of Object.keys(item)) {\n if (excludes.includes(key) || item[key] === undefined) {\n continue;\n }\n if (serializer) {\n res[key] = serializer(item[key]);\n } else {\n res[key] = item[key] as any;\n }\n }\n return res;\n}\n"]}
@@ -115,7 +115,8 @@ function getVarValue(option) {
115
115
  const [named, ifEmpty] = getNamedAndIfEmpty(op);
116
116
  const vals = [getFirstOrSep(op, isFirst)];
117
117
  if (named && varName) {
118
- vals.push(encodeRFC3986URIComponent(varName));
118
+ // No need to encode varName considering it is already encoded
119
+ vals.push(varName);
119
120
  val === "" ? vals.push(ifEmpty) : vals.push("=");
120
121
  }
121
122
  if (modifier && modifier !== "*") {
@@ -1 +1 @@
1
- {"version":3,"file":"urlTemplate.js","sourceRoot":"","sources":["../../../src/static-helpers/urlTemplate.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAmBlC,wBAAwB;AACxB,UAAU;AACV,wBAAwB;AACxB,SAAS,eAAe,CAAC,GAAW,EAAE,QAAkB,EAAE,EAAW;IACnE,OAAO,CAAC,QAAQ,IAAI,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,EAAE,CAAC,IAA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AC,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 vals.push(encodeRFC3986URIComponent(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
+ {"version":3,"file":"urlTemplate.js","sourceRoot":"","sources":["../../../src/static-helpers/urlTemplate.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAmBlC,wBAAwB;AACxB,UAAU;AACV,wBAAwB;AACxB,SAAS,eAAe,CAAC,GAAW,EAAE,QAAkB,EAAE,EAAW;IACnE,OAAO,CAAC,QAAQ,IAAI,EAAE,KAAK,GAAG,CAAC,IAAI,EAAE,KAAK,GAAG;QAC3C,CAAC,CAAC,uBAAuB,CAAC,GAAG,CAAC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X,CAAC;YACD,MAAM,QAAQ,GAAG,WAAW,CAAC;gBAC3B,OAAO,EAAE,MAAM,CAAC,MAAM,KAAK,CAAC;gBAC5B,EAAE;gBACF,QAAQ,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;gBAC9B,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC;gBACpB,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,IAAI,QAAQ,CAAC,CAAC,CAAC;gBACpC,QAAQ,EAAE,MAAM,EAAE,aAAa;aAChC,CAAC,CAAC;YACH,IAAI,QAAQ,EAAE,CAAC;gBACb,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;YACxB,CAAC;QACH,CAAC;QACD,OAAO,MAAM,CAAC,IAAI,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"]}