@azure/arm-containerservicefleet 2.1.0-beta.3 → 2.1.0-beta.4

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 (474) hide show
  1. package/dist/browser/api/autoUpgradeProfileOperations/operations.js +4 -4
  2. package/dist/browser/api/autoUpgradeProfileOperations/operations.js.map +1 -1
  3. package/dist/browser/api/autoUpgradeProfiles/operations.d.ts +0 -5
  4. package/dist/browser/api/autoUpgradeProfiles/operations.js +7 -12
  5. package/dist/browser/api/autoUpgradeProfiles/operations.js.map +1 -1
  6. package/dist/browser/api/clusterMeshProfiles/index.d.ts +3 -0
  7. package/dist/browser/api/clusterMeshProfiles/index.js +4 -0
  8. package/dist/browser/api/clusterMeshProfiles/index.js.map +1 -0
  9. package/dist/browser/api/clusterMeshProfiles/operations.d.ts +27 -0
  10. package/dist/{react-native/api/fleetManagedNamespaces → browser/api/clusterMeshProfiles}/operations.js +45 -52
  11. package/dist/browser/api/clusterMeshProfiles/operations.js.map +1 -0
  12. package/dist/{react-native/api/fleetManagedNamespaces → browser/api/clusterMeshProfiles}/options.d.ts +5 -5
  13. package/dist/browser/api/clusterMeshProfiles/options.js.map +1 -0
  14. package/dist/browser/api/containerServiceFleetContext.js +4 -2
  15. package/dist/browser/api/containerServiceFleetContext.js.map +1 -1
  16. package/dist/browser/api/fleetManagedNamespaces/operations.d.ts +0 -5
  17. package/dist/browser/api/fleetManagedNamespaces/operations.js +9 -14
  18. package/dist/browser/api/fleetManagedNamespaces/operations.js.map +1 -1
  19. package/dist/browser/api/fleetMembers/operations.d.ts +0 -5
  20. package/dist/browser/api/fleetMembers/operations.js +9 -14
  21. package/dist/browser/api/fleetMembers/operations.js.map +1 -1
  22. package/dist/browser/api/fleetUpdateStrategies/operations.d.ts +0 -5
  23. package/dist/browser/api/fleetUpdateStrategies/operations.js +7 -12
  24. package/dist/browser/api/fleetUpdateStrategies/operations.js.map +1 -1
  25. package/dist/browser/api/fleets/operations.d.ts +0 -5
  26. package/dist/browser/api/fleets/operations.js +12 -17
  27. package/dist/browser/api/fleets/operations.js.map +1 -1
  28. package/dist/browser/api/gates/operations.js +5 -5
  29. package/dist/browser/api/gates/operations.js.map +1 -1
  30. package/dist/browser/api/operations/operations.js +2 -2
  31. package/dist/browser/api/operations/operations.js.map +1 -1
  32. package/dist/browser/api/updateRuns/operations.d.ts +0 -5
  33. package/dist/browser/api/updateRuns/operations.js +19 -24
  34. package/dist/browser/api/updateRuns/operations.js.map +1 -1
  35. package/dist/browser/classic/autoUpgradeProfiles/index.d.ts +0 -5
  36. package/dist/browser/classic/autoUpgradeProfiles/index.js.map +1 -1
  37. package/dist/browser/classic/clusterMeshProfiles/index.d.ts +20 -0
  38. package/dist/browser/classic/clusterMeshProfiles/index.js +18 -0
  39. package/dist/browser/classic/clusterMeshProfiles/index.js.map +1 -0
  40. package/dist/browser/classic/fleetManagedNamespaces/index.d.ts +0 -5
  41. package/dist/browser/classic/fleetManagedNamespaces/index.js.map +1 -1
  42. package/dist/browser/classic/fleetMembers/index.d.ts +0 -5
  43. package/dist/browser/classic/fleetMembers/index.js.map +1 -1
  44. package/dist/browser/classic/fleetUpdateStrategies/index.d.ts +0 -5
  45. package/dist/browser/classic/fleetUpdateStrategies/index.js.map +1 -1
  46. package/dist/browser/classic/fleets/index.d.ts +0 -5
  47. package/dist/browser/classic/fleets/index.js.map +1 -1
  48. package/dist/browser/classic/index.d.ts +1 -0
  49. package/dist/browser/classic/index.js.map +1 -1
  50. package/dist/browser/classic/updateRuns/index.d.ts +0 -5
  51. package/dist/browser/classic/updateRuns/index.js.map +1 -1
  52. package/dist/browser/containerServiceFleetClient.d.ts +3 -0
  53. package/dist/browser/containerServiceFleetClient.js +4 -0
  54. package/dist/browser/containerServiceFleetClient.js.map +1 -1
  55. package/dist/browser/index.d.ts +5 -3
  56. package/dist/browser/index.js +2 -1
  57. package/dist/browser/index.js.map +1 -1
  58. package/dist/browser/models/index.d.ts +2 -2
  59. package/dist/browser/models/index.js +1 -1
  60. package/dist/browser/models/index.js.map +1 -1
  61. package/dist/browser/models/models.d.ts +226 -59
  62. package/dist/browser/models/models.js +201 -50
  63. package/dist/browser/models/models.js.map +1 -1
  64. package/dist/browser/restorePollerHelpers.js +14 -4
  65. package/dist/browser/restorePollerHelpers.js.map +1 -1
  66. package/dist/browser/static-helpers/pagingHelpers.js +1 -1
  67. package/dist/browser/static-helpers/pagingHelpers.js.map +1 -1
  68. package/dist/browser/static-helpers/pollingHelpers.js +1 -1
  69. package/dist/browser/static-helpers/pollingHelpers.js.map +1 -1
  70. package/dist/commonjs/api/autoUpgradeProfileOperations/index.js +1 -0
  71. package/dist/commonjs/api/autoUpgradeProfileOperations/index.js.map +1 -1
  72. package/dist/commonjs/api/autoUpgradeProfileOperations/operations.js +5 -4
  73. package/dist/commonjs/api/autoUpgradeProfileOperations/operations.js.map +2 -2
  74. package/dist/commonjs/api/autoUpgradeProfileOperations/options.js +1 -0
  75. package/dist/commonjs/api/autoUpgradeProfileOperations/options.js.map +1 -1
  76. package/dist/commonjs/api/autoUpgradeProfiles/index.js +1 -0
  77. package/dist/commonjs/api/autoUpgradeProfiles/index.js.map +1 -1
  78. package/dist/commonjs/api/autoUpgradeProfiles/operations.d.ts +0 -5
  79. package/dist/commonjs/api/autoUpgradeProfiles/operations.js +8 -7
  80. package/dist/commonjs/api/autoUpgradeProfiles/operations.js.map +3 -3
  81. package/dist/commonjs/api/autoUpgradeProfiles/options.js +1 -0
  82. package/dist/commonjs/api/autoUpgradeProfiles/options.js.map +1 -1
  83. package/dist/commonjs/api/clusterMeshProfiles/index.d.ts +3 -0
  84. package/dist/commonjs/api/clusterMeshProfiles/index.js +36 -0
  85. package/dist/commonjs/api/clusterMeshProfiles/index.js.map +7 -0
  86. package/dist/commonjs/api/clusterMeshProfiles/operations.d.ts +27 -0
  87. package/dist/commonjs/api/clusterMeshProfiles/operations.js +270 -0
  88. package/dist/commonjs/api/clusterMeshProfiles/operations.js.map +7 -0
  89. package/dist/{react-native/api/fleetMembers → commonjs/api/clusterMeshProfiles}/options.d.ts +7 -13
  90. package/dist/commonjs/api/clusterMeshProfiles/options.js +16 -0
  91. package/dist/commonjs/api/clusterMeshProfiles/options.js.map +7 -0
  92. package/dist/commonjs/api/containerServiceFleetContext.js +5 -2
  93. package/dist/commonjs/api/containerServiceFleetContext.js.map +3 -3
  94. package/dist/commonjs/api/fleetManagedNamespaces/index.js +1 -0
  95. package/dist/commonjs/api/fleetManagedNamespaces/index.js.map +1 -1
  96. package/dist/commonjs/api/fleetManagedNamespaces/operations.d.ts +0 -5
  97. package/dist/commonjs/api/fleetManagedNamespaces/operations.js +10 -9
  98. package/dist/commonjs/api/fleetManagedNamespaces/operations.js.map +3 -3
  99. package/dist/commonjs/api/fleetManagedNamespaces/options.js +1 -0
  100. package/dist/commonjs/api/fleetManagedNamespaces/options.js.map +1 -1
  101. package/dist/commonjs/api/fleetMembers/index.js +1 -0
  102. package/dist/commonjs/api/fleetMembers/index.js.map +1 -1
  103. package/dist/commonjs/api/fleetMembers/operations.d.ts +0 -5
  104. package/dist/commonjs/api/fleetMembers/operations.js +10 -9
  105. package/dist/commonjs/api/fleetMembers/operations.js.map +3 -3
  106. package/dist/commonjs/api/fleetMembers/options.js +1 -0
  107. package/dist/commonjs/api/fleetMembers/options.js.map +1 -1
  108. package/dist/commonjs/api/fleetUpdateStrategies/index.js +1 -0
  109. package/dist/commonjs/api/fleetUpdateStrategies/index.js.map +1 -1
  110. package/dist/commonjs/api/fleetUpdateStrategies/operations.d.ts +0 -5
  111. package/dist/commonjs/api/fleetUpdateStrategies/operations.js +8 -7
  112. package/dist/commonjs/api/fleetUpdateStrategies/operations.js.map +3 -3
  113. package/dist/commonjs/api/fleetUpdateStrategies/options.js +1 -0
  114. package/dist/commonjs/api/fleetUpdateStrategies/options.js.map +1 -1
  115. package/dist/commonjs/api/fleets/index.js +1 -0
  116. package/dist/commonjs/api/fleets/index.js.map +1 -1
  117. package/dist/commonjs/api/fleets/operations.d.ts +0 -5
  118. package/dist/commonjs/api/fleets/operations.js +13 -12
  119. package/dist/commonjs/api/fleets/operations.js.map +3 -3
  120. package/dist/commonjs/api/fleets/options.js +1 -0
  121. package/dist/commonjs/api/fleets/options.js.map +1 -1
  122. package/dist/commonjs/api/gates/index.js +1 -0
  123. package/dist/commonjs/api/gates/index.js.map +1 -1
  124. package/dist/commonjs/api/gates/operations.js +6 -5
  125. package/dist/commonjs/api/gates/operations.js.map +2 -2
  126. package/dist/commonjs/api/gates/options.js +1 -0
  127. package/dist/commonjs/api/gates/options.js.map +1 -1
  128. package/dist/commonjs/api/index.js +1 -0
  129. package/dist/commonjs/api/index.js.map +1 -1
  130. package/dist/commonjs/api/operations/index.js +1 -0
  131. package/dist/commonjs/api/operations/index.js.map +1 -1
  132. package/dist/commonjs/api/operations/operations.js +3 -2
  133. package/dist/commonjs/api/operations/operations.js.map +2 -2
  134. package/dist/commonjs/api/operations/options.js +1 -0
  135. package/dist/commonjs/api/operations/options.js.map +1 -1
  136. package/dist/commonjs/api/updateRuns/index.js +1 -0
  137. package/dist/commonjs/api/updateRuns/index.js.map +1 -1
  138. package/dist/commonjs/api/updateRuns/operations.d.ts +0 -5
  139. package/dist/commonjs/api/updateRuns/operations.js +20 -19
  140. package/dist/commonjs/api/updateRuns/operations.js.map +3 -3
  141. package/dist/commonjs/api/updateRuns/options.js +1 -0
  142. package/dist/commonjs/api/updateRuns/options.js.map +1 -1
  143. package/dist/commonjs/classic/autoUpgradeProfileOperations/index.js +1 -0
  144. package/dist/commonjs/classic/autoUpgradeProfileOperations/index.js.map +1 -1
  145. package/dist/commonjs/classic/autoUpgradeProfiles/index.d.ts +0 -5
  146. package/dist/commonjs/classic/autoUpgradeProfiles/index.js +1 -0
  147. package/dist/commonjs/classic/autoUpgradeProfiles/index.js.map +3 -3
  148. package/dist/commonjs/classic/clusterMeshProfiles/index.d.ts +20 -0
  149. package/dist/commonjs/classic/clusterMeshProfiles/index.js +49 -0
  150. package/dist/commonjs/classic/clusterMeshProfiles/index.js.map +7 -0
  151. package/dist/commonjs/classic/fleetManagedNamespaces/index.d.ts +0 -5
  152. package/dist/commonjs/classic/fleetManagedNamespaces/index.js +1 -0
  153. package/dist/commonjs/classic/fleetManagedNamespaces/index.js.map +3 -3
  154. package/dist/commonjs/classic/fleetMembers/index.d.ts +0 -5
  155. package/dist/commonjs/classic/fleetMembers/index.js +1 -0
  156. package/dist/commonjs/classic/fleetMembers/index.js.map +3 -3
  157. package/dist/commonjs/classic/fleetUpdateStrategies/index.d.ts +0 -5
  158. package/dist/commonjs/classic/fleetUpdateStrategies/index.js +1 -0
  159. package/dist/commonjs/classic/fleetUpdateStrategies/index.js.map +3 -3
  160. package/dist/commonjs/classic/fleets/index.d.ts +0 -5
  161. package/dist/commonjs/classic/fleets/index.js +1 -0
  162. package/dist/commonjs/classic/fleets/index.js.map +3 -3
  163. package/dist/commonjs/classic/gates/index.js +1 -0
  164. package/dist/commonjs/classic/gates/index.js.map +1 -1
  165. package/dist/commonjs/classic/index.d.ts +1 -0
  166. package/dist/commonjs/classic/index.js +1 -0
  167. package/dist/commonjs/classic/index.js.map +2 -2
  168. package/dist/commonjs/classic/operations/index.js +1 -0
  169. package/dist/commonjs/classic/operations/index.js.map +1 -1
  170. package/dist/commonjs/classic/updateRuns/index.d.ts +0 -5
  171. package/dist/commonjs/classic/updateRuns/index.js +1 -0
  172. package/dist/commonjs/classic/updateRuns/index.js.map +3 -3
  173. package/dist/commonjs/containerServiceFleetClient.d.ts +3 -0
  174. package/dist/commonjs/containerServiceFleetClient.js +5 -0
  175. package/dist/commonjs/containerServiceFleetClient.js.map +3 -3
  176. package/dist/commonjs/index.d.ts +5 -3
  177. package/dist/commonjs/index.js +12 -0
  178. package/dist/commonjs/index.js.map +3 -3
  179. package/dist/commonjs/logger.js +1 -0
  180. package/dist/commonjs/logger.js.map +1 -1
  181. package/dist/commonjs/models/index.d.ts +2 -2
  182. package/dist/commonjs/models/index.js +7 -0
  183. package/dist/commonjs/models/index.js.map +3 -3
  184. package/dist/commonjs/models/models.d.ts +226 -59
  185. package/dist/commonjs/models/models.js +193 -41
  186. package/dist/commonjs/models/models.js.map +4 -4
  187. package/dist/commonjs/restorePollerHelpers.js +16 -5
  188. package/dist/commonjs/restorePollerHelpers.js.map +4 -4
  189. package/dist/commonjs/static-helpers/cloudSettingHelpers.js +1 -0
  190. package/dist/commonjs/static-helpers/cloudSettingHelpers.js.map +1 -1
  191. package/dist/commonjs/static-helpers/pagingHelpers.js +2 -1
  192. package/dist/commonjs/static-helpers/pagingHelpers.js.map +3 -3
  193. package/dist/commonjs/static-helpers/pollingHelpers.js +2 -1
  194. package/dist/commonjs/static-helpers/pollingHelpers.js.map +3 -3
  195. package/dist/commonjs/static-helpers/serialization/check-prop-undefined.js +1 -0
  196. package/dist/commonjs/static-helpers/serialization/check-prop-undefined.js.map +1 -1
  197. package/dist/commonjs/static-helpers/urlTemplate.js +1 -0
  198. package/dist/commonjs/static-helpers/urlTemplate.js.map +1 -1
  199. package/dist/commonjs/tsdoc-metadata.json +1 -1
  200. package/dist/esm/api/autoUpgradeProfileOperations/index.js +4 -4
  201. package/dist/esm/api/autoUpgradeProfileOperations/index.js.map +1 -7
  202. package/dist/esm/api/autoUpgradeProfileOperations/operations.js +34 -45
  203. package/dist/esm/api/autoUpgradeProfileOperations/operations.js.map +1 -7
  204. package/dist/esm/api/autoUpgradeProfileOperations/options.js +4 -0
  205. package/dist/esm/api/autoUpgradeProfileOperations/options.js.map +1 -7
  206. package/dist/esm/api/autoUpgradeProfiles/index.js +4 -7
  207. package/dist/esm/api/autoUpgradeProfiles/index.js.map +1 -7
  208. package/dist/esm/api/autoUpgradeProfiles/operations.d.ts +0 -5
  209. package/dist/esm/api/autoUpgradeProfiles/operations.js +129 -176
  210. package/dist/esm/api/autoUpgradeProfiles/operations.js.map +1 -7
  211. package/dist/esm/api/autoUpgradeProfiles/options.js +4 -0
  212. package/dist/esm/api/autoUpgradeProfiles/options.js.map +1 -7
  213. package/dist/esm/api/clusterMeshProfiles/index.d.ts +3 -0
  214. package/dist/esm/api/clusterMeshProfiles/index.js +4 -0
  215. package/dist/esm/api/clusterMeshProfiles/index.js.map +1 -0
  216. package/dist/esm/api/clusterMeshProfiles/operations.d.ts +27 -0
  217. package/dist/{react-native/api/fleetMembers → esm/api/clusterMeshProfiles}/operations.js +70 -80
  218. package/dist/esm/api/clusterMeshProfiles/operations.js.map +1 -0
  219. package/dist/{react-native/api/autoUpgradeProfiles → esm/api/clusterMeshProfiles}/options.d.ts +11 -8
  220. package/dist/esm/api/clusterMeshProfiles/options.js.map +1 -0
  221. package/dist/esm/api/containerServiceFleetContext.js +22 -17
  222. package/dist/esm/api/containerServiceFleetContext.js.map +1 -7
  223. package/dist/esm/api/fleetManagedNamespaces/index.js +4 -8
  224. package/dist/esm/api/fleetManagedNamespaces/index.js.map +1 -7
  225. package/dist/esm/api/fleetManagedNamespaces/operations.d.ts +0 -5
  226. package/dist/esm/api/fleetManagedNamespaces/operations.js +163 -217
  227. package/dist/esm/api/fleetManagedNamespaces/operations.js.map +1 -7
  228. package/dist/esm/api/fleetManagedNamespaces/options.js +4 -0
  229. package/dist/esm/api/fleetManagedNamespaces/options.js.map +1 -7
  230. package/dist/esm/api/fleetMembers/index.js +4 -8
  231. package/dist/esm/api/fleetMembers/index.js.map +1 -7
  232. package/dist/esm/api/fleetMembers/operations.d.ts +0 -5
  233. package/dist/esm/api/fleetMembers/operations.js +166 -207
  234. package/dist/esm/api/fleetMembers/operations.js.map +1 -7
  235. package/dist/esm/api/fleetMembers/options.js +4 -0
  236. package/dist/esm/api/fleetMembers/options.js.map +1 -7
  237. package/dist/esm/api/fleetUpdateStrategies/index.js +4 -7
  238. package/dist/esm/api/fleetUpdateStrategies/index.js.map +1 -7
  239. package/dist/esm/api/fleetUpdateStrategies/operations.d.ts +0 -5
  240. package/dist/esm/api/fleetUpdateStrategies/operations.js +129 -170
  241. package/dist/esm/api/fleetUpdateStrategies/operations.js.map +1 -7
  242. package/dist/esm/api/fleetUpdateStrategies/options.js +4 -0
  243. package/dist/esm/api/fleetUpdateStrategies/options.js.map +1 -7
  244. package/dist/esm/api/fleets/index.js +4 -18
  245. package/dist/esm/api/fleets/index.js.map +1 -7
  246. package/dist/esm/api/fleets/operations.d.ts +0 -5
  247. package/dist/esm/api/fleets/operations.js +227 -287
  248. package/dist/esm/api/fleets/operations.js.map +1 -7
  249. package/dist/esm/api/fleets/options.js +4 -0
  250. package/dist/esm/api/fleets/options.js.map +1 -7
  251. package/dist/esm/api/gates/index.js +4 -6
  252. package/dist/esm/api/gates/index.js.map +1 -7
  253. package/dist/esm/api/gates/operations.js +97 -125
  254. package/dist/esm/api/gates/operations.js.map +1 -7
  255. package/dist/esm/api/gates/options.js +4 -0
  256. package/dist/esm/api/gates/options.js.map +1 -7
  257. package/dist/esm/api/index.js +4 -4
  258. package/dist/esm/api/index.js.map +1 -7
  259. package/dist/esm/api/operations/index.js +4 -4
  260. package/dist/esm/api/operations/index.js.map +1 -7
  261. package/dist/esm/api/operations/operations.js +29 -43
  262. package/dist/esm/api/operations/operations.js.map +1 -7
  263. package/dist/esm/api/operations/options.js +4 -0
  264. package/dist/esm/api/operations/options.js.map +1 -7
  265. package/dist/esm/api/updateRuns/index.js +4 -10
  266. package/dist/esm/api/updateRuns/index.js.map +1 -7
  267. package/dist/esm/api/updateRuns/operations.d.ts +0 -5
  268. package/dist/esm/api/updateRuns/operations.js +233 -286
  269. package/dist/esm/api/updateRuns/operations.js.map +1 -7
  270. package/dist/esm/api/updateRuns/options.js +4 -0
  271. package/dist/esm/api/updateRuns/options.js.map +1 -7
  272. package/dist/esm/classic/autoUpgradeProfileOperations/index.js +10 -10
  273. package/dist/esm/classic/autoUpgradeProfileOperations/index.js.map +1 -7
  274. package/dist/esm/classic/autoUpgradeProfiles/index.d.ts +0 -5
  275. package/dist/esm/classic/autoUpgradeProfiles/index.js +14 -26
  276. package/dist/esm/classic/autoUpgradeProfiles/index.js.map +1 -7
  277. package/dist/esm/classic/clusterMeshProfiles/index.d.ts +20 -0
  278. package/dist/esm/classic/clusterMeshProfiles/index.js +18 -0
  279. package/dist/esm/classic/clusterMeshProfiles/index.js.map +1 -0
  280. package/dist/esm/classic/fleetManagedNamespaces/index.d.ts +0 -5
  281. package/dist/esm/classic/fleetManagedNamespaces/index.js +15 -28
  282. package/dist/esm/classic/fleetManagedNamespaces/index.js.map +1 -7
  283. package/dist/esm/classic/fleetMembers/index.d.ts +0 -5
  284. package/dist/esm/classic/fleetMembers/index.js +15 -21
  285. package/dist/esm/classic/fleetMembers/index.js.map +1 -7
  286. package/dist/esm/classic/fleetUpdateStrategies/index.d.ts +0 -5
  287. package/dist/esm/classic/fleetUpdateStrategies/index.js +14 -19
  288. package/dist/esm/classic/fleetUpdateStrategies/index.js.map +1 -7
  289. package/dist/esm/classic/fleets/index.d.ts +0 -5
  290. package/dist/esm/classic/fleets/index.js +17 -25
  291. package/dist/esm/classic/fleets/index.js.map +1 -7
  292. package/dist/esm/classic/gates/index.js +12 -12
  293. package/dist/esm/classic/gates/index.js.map +1 -7
  294. package/dist/esm/classic/index.d.ts +1 -0
  295. package/dist/esm/classic/index.js +4 -0
  296. package/dist/esm/classic/index.js.map +1 -7
  297. package/dist/esm/classic/operations/index.js +10 -10
  298. package/dist/esm/classic/operations/index.js.map +1 -7
  299. package/dist/esm/classic/updateRuns/index.d.ts +0 -5
  300. package/dist/esm/classic/updateRuns/index.js +17 -25
  301. package/dist/esm/classic/updateRuns/index.js.map +1 -7
  302. package/dist/esm/containerServiceFleetClient.d.ts +3 -0
  303. package/dist/esm/containerServiceFleetClient.js +50 -44
  304. package/dist/esm/containerServiceFleetClient.js.map +1 -7
  305. package/dist/esm/index.d.ts +5 -3
  306. package/dist/esm/index.js +8 -71
  307. package/dist/esm/index.js.map +1 -7
  308. package/dist/esm/logger.js +4 -4
  309. package/dist/esm/logger.js.map +1 -7
  310. package/dist/esm/models/index.d.ts +2 -2
  311. package/dist/esm/models/index.js +4 -66
  312. package/dist/esm/models/index.js.map +1 -7
  313. package/dist/esm/models/models.d.ts +226 -59
  314. package/dist/esm/models/models.js +1825 -1508
  315. package/dist/esm/models/models.js.map +1 -7
  316. package/dist/esm/restorePollerHelpers.js +129 -132
  317. package/dist/esm/restorePollerHelpers.js.map +1 -7
  318. package/dist/esm/static-helpers/cloudSettingHelpers.js +37 -26
  319. package/dist/esm/static-helpers/cloudSettingHelpers.js.map +1 -7
  320. package/dist/esm/static-helpers/pagingHelpers.js +122 -98
  321. package/dist/esm/static-helpers/pagingHelpers.js.map +1 -7
  322. package/dist/esm/static-helpers/pollingHelpers.js +86 -68
  323. package/dist/esm/static-helpers/pollingHelpers.js.map +1 -7
  324. package/dist/esm/static-helpers/serialization/check-prop-undefined.js +15 -9
  325. package/dist/esm/static-helpers/serialization/check-prop-undefined.js.map +1 -7
  326. package/dist/esm/static-helpers/urlTemplate.js +169 -142
  327. package/dist/esm/static-helpers/urlTemplate.js.map +1 -7
  328. package/package.json +35 -60
  329. package/dist/react-native/api/autoUpgradeProfileOperations/index.d.ts +0 -3
  330. package/dist/react-native/api/autoUpgradeProfileOperations/index.js +0 -4
  331. package/dist/react-native/api/autoUpgradeProfileOperations/index.js.map +0 -1
  332. package/dist/react-native/api/autoUpgradeProfileOperations/operations.d.ts +0 -10
  333. package/dist/react-native/api/autoUpgradeProfileOperations/operations.js +0 -41
  334. package/dist/react-native/api/autoUpgradeProfileOperations/operations.js.map +0 -1
  335. package/dist/react-native/api/autoUpgradeProfileOperations/options.d.ts +0 -7
  336. package/dist/react-native/api/autoUpgradeProfileOperations/options.js.map +0 -1
  337. package/dist/react-native/api/autoUpgradeProfiles/index.d.ts +0 -3
  338. package/dist/react-native/api/autoUpgradeProfiles/index.js +0 -4
  339. package/dist/react-native/api/autoUpgradeProfiles/index.js.map +0 -1
  340. package/dist/react-native/api/autoUpgradeProfiles/operations.d.ts +0 -28
  341. package/dist/react-native/api/autoUpgradeProfiles/operations.js +0 -153
  342. package/dist/react-native/api/autoUpgradeProfiles/operations.js.map +0 -1
  343. package/dist/react-native/api/autoUpgradeProfiles/options.js.map +0 -1
  344. package/dist/react-native/api/containerServiceFleetContext.d.ts +0 -22
  345. package/dist/react-native/api/containerServiceFleetContext.js +0 -24
  346. package/dist/react-native/api/containerServiceFleetContext.js.map +0 -1
  347. package/dist/react-native/api/fleetManagedNamespaces/index.d.ts +0 -3
  348. package/dist/react-native/api/fleetManagedNamespaces/index.js +0 -4
  349. package/dist/react-native/api/fleetManagedNamespaces/index.js.map +0 -1
  350. package/dist/react-native/api/fleetManagedNamespaces/operations.d.ts +0 -32
  351. package/dist/react-native/api/fleetManagedNamespaces/operations.js.map +0 -1
  352. package/dist/react-native/api/fleetManagedNamespaces/options.js +0 -4
  353. package/dist/react-native/api/fleetManagedNamespaces/options.js.map +0 -1
  354. package/dist/react-native/api/fleetMembers/index.d.ts +0 -3
  355. package/dist/react-native/api/fleetMembers/index.js +0 -4
  356. package/dist/react-native/api/fleetMembers/index.js.map +0 -1
  357. package/dist/react-native/api/fleetMembers/operations.d.ts +0 -32
  358. package/dist/react-native/api/fleetMembers/operations.js.map +0 -1
  359. package/dist/react-native/api/fleetMembers/options.js +0 -4
  360. package/dist/react-native/api/fleetMembers/options.js.map +0 -1
  361. package/dist/react-native/api/fleetUpdateStrategies/index.d.ts +0 -3
  362. package/dist/react-native/api/fleetUpdateStrategies/index.js +0 -4
  363. package/dist/react-native/api/fleetUpdateStrategies/index.js.map +0 -1
  364. package/dist/react-native/api/fleetUpdateStrategies/operations.d.ts +0 -28
  365. package/dist/react-native/api/fleetUpdateStrategies/operations.js +0 -153
  366. package/dist/react-native/api/fleetUpdateStrategies/operations.js.map +0 -1
  367. package/dist/react-native/api/fleetUpdateStrategies/options.d.ts +0 -28
  368. package/dist/react-native/api/fleetUpdateStrategies/options.js +0 -4
  369. package/dist/react-native/api/fleetUpdateStrategies/options.js.map +0 -1
  370. package/dist/react-native/api/fleets/index.d.ts +0 -3
  371. package/dist/react-native/api/fleets/index.js +0 -4
  372. package/dist/react-native/api/fleets/index.js.map +0 -1
  373. package/dist/react-native/api/fleets/operations.d.ts +0 -40
  374. package/dist/react-native/api/fleets/operations.js +0 -245
  375. package/dist/react-native/api/fleets/operations.js.map +0 -1
  376. package/dist/react-native/api/fleets/options.d.ts +0 -41
  377. package/dist/react-native/api/fleets/options.js +0 -4
  378. package/dist/react-native/api/fleets/options.js.map +0 -1
  379. package/dist/react-native/api/gates/index.d.ts +0 -3
  380. package/dist/react-native/api/gates/index.js +0 -4
  381. package/dist/react-native/api/gates/index.js.map +0 -1
  382. package/dist/react-native/api/gates/operations.d.ts +0 -19
  383. package/dist/react-native/api/gates/operations.js +0 -112
  384. package/dist/react-native/api/gates/operations.js.map +0 -1
  385. package/dist/react-native/api/gates/options.d.ts +0 -23
  386. package/dist/react-native/api/gates/options.js +0 -4
  387. package/dist/react-native/api/gates/options.js.map +0 -1
  388. package/dist/react-native/api/index.d.ts +0 -3
  389. package/dist/react-native/api/index.js +0 -4
  390. package/dist/react-native/api/index.js.map +0 -1
  391. package/dist/react-native/api/operations/index.d.ts +0 -3
  392. package/dist/react-native/api/operations/index.js +0 -4
  393. package/dist/react-native/api/operations/index.js.map +0 -1
  394. package/dist/react-native/api/operations/operations.d.ts +0 -10
  395. package/dist/react-native/api/operations/operations.js +0 -35
  396. package/dist/react-native/api/operations/operations.js.map +0 -1
  397. package/dist/react-native/api/operations/options.d.ts +0 -5
  398. package/dist/react-native/api/operations/options.js +0 -4
  399. package/dist/react-native/api/operations/options.js.map +0 -1
  400. package/dist/react-native/api/updateRuns/index.d.ts +0 -3
  401. package/dist/react-native/api/updateRuns/index.js +0 -4
  402. package/dist/react-native/api/updateRuns/index.js.map +0 -1
  403. package/dist/react-native/api/updateRuns/operations.d.ts +0 -40
  404. package/dist/react-native/api/updateRuns/operations.js +0 -269
  405. package/dist/react-native/api/updateRuns/operations.js.map +0 -1
  406. package/dist/react-native/api/updateRuns/options.d.ts +0 -49
  407. package/dist/react-native/api/updateRuns/options.js +0 -4
  408. package/dist/react-native/api/updateRuns/options.js.map +0 -1
  409. package/dist/react-native/classic/autoUpgradeProfileOperations/index.d.ts +0 -11
  410. package/dist/react-native/classic/autoUpgradeProfileOperations/index.js +0 -14
  411. package/dist/react-native/classic/autoUpgradeProfileOperations/index.js.map +0 -1
  412. package/dist/react-native/classic/autoUpgradeProfiles/index.d.ts +0 -23
  413. package/dist/react-native/classic/autoUpgradeProfiles/index.js +0 -17
  414. package/dist/react-native/classic/autoUpgradeProfiles/index.js.map +0 -1
  415. package/dist/react-native/classic/fleetManagedNamespaces/index.d.ts +0 -25
  416. package/dist/react-native/classic/fleetManagedNamespaces/index.js +0 -18
  417. package/dist/react-native/classic/fleetManagedNamespaces/index.js.map +0 -1
  418. package/dist/react-native/classic/fleetMembers/index.d.ts +0 -25
  419. package/dist/react-native/classic/fleetMembers/index.js +0 -18
  420. package/dist/react-native/classic/fleetMembers/index.js.map +0 -1
  421. package/dist/react-native/classic/fleetUpdateStrategies/index.d.ts +0 -23
  422. package/dist/react-native/classic/fleetUpdateStrategies/index.js +0 -17
  423. package/dist/react-native/classic/fleetUpdateStrategies/index.js.map +0 -1
  424. package/dist/react-native/classic/fleets/index.d.ts +0 -29
  425. package/dist/react-native/classic/fleets/index.js +0 -20
  426. package/dist/react-native/classic/fleets/index.js.map +0 -1
  427. package/dist/react-native/classic/gates/index.d.ts +0 -16
  428. package/dist/react-native/classic/gates/index.js +0 -16
  429. package/dist/react-native/classic/gates/index.js.map +0 -1
  430. package/dist/react-native/classic/index.d.ts +0 -10
  431. package/dist/react-native/classic/index.js +0 -4
  432. package/dist/react-native/classic/index.js.map +0 -1
  433. package/dist/react-native/classic/operations/index.d.ts +0 -11
  434. package/dist/react-native/classic/operations/index.js +0 -14
  435. package/dist/react-native/classic/operations/index.js.map +0 -1
  436. package/dist/react-native/classic/updateRuns/index.d.ts +0 -29
  437. package/dist/react-native/classic/updateRuns/index.js +0 -20
  438. package/dist/react-native/classic/updateRuns/index.js.map +0 -1
  439. package/dist/react-native/containerServiceFleetClient.d.ts +0 -39
  440. package/dist/react-native/containerServiceFleetClient.js +0 -57
  441. package/dist/react-native/containerServiceFleetClient.js.map +0 -1
  442. package/dist/react-native/index.d.ts +0 -23
  443. package/dist/react-native/index.js +0 -8
  444. package/dist/react-native/index.js.map +0 -1
  445. package/dist/react-native/logger.d.ts +0 -2
  446. package/dist/react-native/logger.js +0 -5
  447. package/dist/react-native/logger.js.map +0 -1
  448. package/dist/react-native/models/index.d.ts +0 -3
  449. package/dist/react-native/models/index.js +0 -4
  450. package/dist/react-native/models/index.js.map +0 -1
  451. package/dist/react-native/models/models.d.ts +0 -1627
  452. package/dist/react-native/models/models.js +0 -1676
  453. package/dist/react-native/models/models.js.map +0 -1
  454. package/dist/react-native/package.json +0 -3
  455. package/dist/react-native/restorePollerHelpers.d.ts +0 -21
  456. package/dist/react-native/restorePollerHelpers.js +0 -135
  457. package/dist/react-native/restorePollerHelpers.js.map +0 -1
  458. package/dist/react-native/static-helpers/cloudSettingHelpers.d.ts +0 -22
  459. package/dist/react-native/static-helpers/cloudSettingHelpers.js +0 -38
  460. package/dist/react-native/static-helpers/cloudSettingHelpers.js.map +0 -1
  461. package/dist/react-native/static-helpers/pagingHelpers.d.ts +0 -74
  462. package/dist/react-native/static-helpers/pagingHelpers.js +0 -143
  463. package/dist/react-native/static-helpers/pagingHelpers.js.map +0 -1
  464. package/dist/react-native/static-helpers/pollingHelpers.d.ts +0 -34
  465. package/dist/react-native/static-helpers/pollingHelpers.js +0 -95
  466. package/dist/react-native/static-helpers/pollingHelpers.js.map +0 -1
  467. package/dist/react-native/static-helpers/serialization/check-prop-undefined.d.ts +0 -8
  468. package/dist/react-native/static-helpers/serialization/check-prop-undefined.js +0 -17
  469. package/dist/react-native/static-helpers/serialization/check-prop-undefined.js.map +0 -1
  470. package/dist/react-native/static-helpers/urlTemplate.d.ts +0 -5
  471. package/dist/react-native/static-helpers/urlTemplate.js +0 -200
  472. package/dist/react-native/static-helpers/urlTemplate.js.map +0 -1
  473. /package/dist/{react-native/api/autoUpgradeProfileOperations → browser/api/clusterMeshProfiles}/options.js +0 -0
  474. /package/dist/{react-native/api/autoUpgradeProfiles → esm/api/clusterMeshProfiles}/options.js +0 -0
@@ -1,148 +1,145 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
1
3
  import { _generateUpdateRunDeserialize } from "./api/autoUpgradeProfileOperations/operations.js";
2
- import {
3
- _$deleteDeserialize,
4
- _createOrUpdateDeserialize
5
- } from "./api/autoUpgradeProfiles/operations.js";
6
- import {
7
- _$deleteDeserialize as _$deleteDeserializeFleetUpdateStrategies,
8
- _createOrUpdateDeserialize as _createOrUpdateDeserializeFleetUpdateStrategies
9
- } from "./api/fleetUpdateStrategies/operations.js";
10
- import {
11
- _skipDeserialize,
12
- _stopDeserialize,
13
- _startDeserialize,
14
- _$deleteDeserialize as _$deleteDeserializeUpdateRuns,
15
- _createOrUpdateDeserialize as _createOrUpdateDeserializeUpdateRuns
16
- } from "./api/updateRuns/operations.js";
4
+ import { _$deleteDeserialize, _createOrUpdateDeserialize, } from "./api/autoUpgradeProfiles/operations.js";
5
+ import { _$deleteDeserialize as _$deleteDeserializeFleetUpdateStrategies, _createOrUpdateDeserialize as _createOrUpdateDeserializeFleetUpdateStrategies, } from "./api/fleetUpdateStrategies/operations.js";
6
+ import { _skipDeserialize, _stopDeserialize, _startDeserialize, _$deleteDeserialize as _$deleteDeserializeUpdateRuns, _createOrUpdateDeserialize as _createOrUpdateDeserializeUpdateRuns, } from "./api/updateRuns/operations.js";
17
7
  import { _updateDeserialize } from "./api/gates/operations.js";
18
- import {
19
- _updateDeserialize as _updateDeserializeFleetManagedNamespaces,
20
- _$deleteDeserialize as _$deleteDeserializeFleetManagedNamespaces,
21
- _createOrUpdateDeserialize as _createOrUpdateDeserializeFleetManagedNamespaces
22
- } from "./api/fleetManagedNamespaces/operations.js";
23
- import {
24
- _$deleteDeserialize as _$deleteDeserializeFleetMembers,
25
- _updateAsyncDeserialize,
26
- _createDeserialize
27
- } from "./api/fleetMembers/operations.js";
28
- import {
29
- _$deleteDeserialize as _$deleteDeserializeFleets,
30
- _updateAsyncDeserialize as _updateAsyncDeserializeFleets,
31
- _createDeserialize as _createDeserializeFleets
32
- } from "./api/fleets/operations.js";
8
+ import { _updateDeserialize as _updateDeserializeFleetManagedNamespaces, _$deleteDeserialize as _$deleteDeserializeFleetManagedNamespaces, _createOrUpdateDeserialize as _createOrUpdateDeserializeFleetManagedNamespaces, } from "./api/fleetManagedNamespaces/operations.js";
9
+ import { _$deleteDeserialize as _$deleteDeserializeFleetMembers, _updateAsyncDeserialize, _createDeserialize, } from "./api/fleetMembers/operations.js";
10
+ import { _$deleteDeserialize as _$deleteDeserializeFleets, _updateAsyncDeserialize as _updateAsyncDeserializeFleets, _createDeserialize as _createDeserializeFleets, } from "./api/fleets/operations.js";
11
+ import { _applyDeserialize, _$deleteDeserialize as _$deleteDeserializeClusterMeshProfiles, _createOrUpdateDeserialize as _createOrUpdateDeserializeClusterMeshProfiles, } from "./api/clusterMeshProfiles/operations.js";
33
12
  import { getLongRunningPoller } from "./static-helpers/pollingHelpers.js";
34
13
  import { deserializeState } from "@azure/core-lro";
35
- function restorePoller(client, serializedState, sourceOperation, options) {
36
- const pollerConfig = deserializeState(serializedState).config;
37
- const { initialRequestUrl, requestMethod, metadata } = pollerConfig;
38
- if (!initialRequestUrl || !requestMethod) {
39
- throw new Error(
40
- `Invalid serialized state: ${serializedState} for sourceOperation ${sourceOperation?.name}`
41
- );
42
- }
43
- const resourceLocationConfig = metadata?.["resourceLocationConfig"];
44
- const { deserializer, expectedStatuses = [] } = getDeserializationHelper(initialRequestUrl, requestMethod) ?? {};
45
- const deserializeHelper = options?.processResponseBody ?? deserializer;
46
- if (!deserializeHelper) {
47
- throw new Error(
48
- `Please ensure the operation is in this client! We can't find its deserializeHelper for ${sourceOperation?.name}.`
49
- );
50
- }
51
- const apiVersion = getApiVersionFromUrl(initialRequestUrl);
52
- return getLongRunningPoller(
53
- client["_client"] ?? client,
54
- deserializeHelper,
55
- expectedStatuses,
56
- {
57
- updateIntervalInMs: options?.updateIntervalInMs,
58
- abortSignal: options?.abortSignal,
59
- resourceLocationConfig,
60
- restoreFrom: serializedState,
61
- initialRequestUrl,
62
- apiVersion
14
+ /**
15
+ * Creates a poller from the serialized state of another poller. This can be
16
+ * useful when you want to create pollers on a different host or a poller
17
+ * needs to be constructed after the original one is not in scope.
18
+ */
19
+ export function restorePoller(client, serializedState, sourceOperation, options) {
20
+ const pollerConfig = deserializeState(serializedState).config;
21
+ const { initialRequestUrl, requestMethod, metadata } = pollerConfig;
22
+ if (!initialRequestUrl || !requestMethod) {
23
+ throw new Error(`Invalid serialized state: ${serializedState} for sourceOperation ${sourceOperation?.name}`);
63
24
  }
64
- );
25
+ const resourceLocationConfig = metadata?.["resourceLocationConfig"];
26
+ const { deserializer, expectedStatuses = [] } = getDeserializationHelper(initialRequestUrl, requestMethod) ?? {};
27
+ const deserializeHelper = options?.processResponseBody ?? deserializer;
28
+ if (!deserializeHelper) {
29
+ throw new Error(`Please ensure the operation is in this client! We can't find its deserializeHelper for ${sourceOperation?.name}.`);
30
+ }
31
+ const apiVersion = getApiVersionFromUrl(initialRequestUrl);
32
+ return getLongRunningPoller(client["_client"] ?? client, deserializeHelper, expectedStatuses, {
33
+ updateIntervalInMs: options?.updateIntervalInMs,
34
+ abortSignal: options?.abortSignal,
35
+ resourceLocationConfig,
36
+ restoreFrom: serializedState,
37
+ initialRequestUrl,
38
+ apiVersion,
39
+ });
65
40
  }
66
41
  const deserializeMap = {
67
- "POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/autoUpgradeProfiles/{autoUpgradeProfileName}/generateUpdateRun": { deserializer: _generateUpdateRunDeserialize, expectedStatuses: ["202", "200", "201"] },
68
- "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/autoUpgradeProfiles/{autoUpgradeProfileName}": { deserializer: _$deleteDeserialize, expectedStatuses: ["202", "204", "200"] },
69
- "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/autoUpgradeProfiles/{autoUpgradeProfileName}": { deserializer: _createOrUpdateDeserialize, expectedStatuses: ["200", "201", "202"] },
70
- "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateStrategies/{updateStrategyName}": {
71
- deserializer: _$deleteDeserializeFleetUpdateStrategies,
72
- expectedStatuses: ["200", "202", "204"]
73
- },
74
- "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateStrategies/{updateStrategyName}": {
75
- deserializer: _createOrUpdateDeserializeFleetUpdateStrategies,
76
- expectedStatuses: ["200", "201", "202"]
77
- },
78
- "POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateRuns/{updateRunName}/skip": { deserializer: _skipDeserialize, expectedStatuses: ["202", "200", "201"] },
79
- "POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateRuns/{updateRunName}/stop": { deserializer: _stopDeserialize, expectedStatuses: ["202", "200", "201"] },
80
- "POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateRuns/{updateRunName}/start": { deserializer: _startDeserialize, expectedStatuses: ["202", "200", "201"] },
81
- "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateRuns/{updateRunName}": { deserializer: _$deleteDeserializeUpdateRuns, expectedStatuses: ["200", "202", "204"] },
82
- "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateRuns/{updateRunName}": { deserializer: _createOrUpdateDeserializeUpdateRuns, expectedStatuses: ["200", "201", "202"] },
83
- "PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/gates/{gateName}": { deserializer: _updateDeserialize, expectedStatuses: ["200", "202", "201"] },
84
- "PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/managedNamespaces/{managedNamespaceName}": {
85
- deserializer: _updateDeserializeFleetManagedNamespaces,
86
- expectedStatuses: ["200", "202", "201"]
87
- },
88
- "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/managedNamespaces/{managedNamespaceName}": {
89
- deserializer: _$deleteDeserializeFleetManagedNamespaces,
90
- expectedStatuses: ["202", "204", "200"]
91
- },
92
- "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/managedNamespaces/{managedNamespaceName}": {
93
- deserializer: _createOrUpdateDeserializeFleetManagedNamespaces,
94
- expectedStatuses: ["200", "201", "202"]
95
- },
96
- "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/members/{fleetMemberName}": { deserializer: _$deleteDeserializeFleetMembers, expectedStatuses: ["200", "202", "204"] },
97
- "PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/members/{fleetMemberName}": { deserializer: _updateAsyncDeserialize, expectedStatuses: ["200", "202", "201"] },
98
- "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/members/{fleetMemberName}": { deserializer: _createDeserialize, expectedStatuses: ["200", "201", "202"] },
99
- "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}": { deserializer: _$deleteDeserializeFleets, expectedStatuses: ["200", "202", "204"] },
100
- "PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}": { deserializer: _updateAsyncDeserializeFleets, expectedStatuses: ["200", "202", "201"] },
101
- "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}": { deserializer: _createDeserializeFleets, expectedStatuses: ["200", "201", "202"] }
42
+ "POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/autoUpgradeProfiles/{autoUpgradeProfileName}/generateUpdateRun": { deserializer: _generateUpdateRunDeserialize, expectedStatuses: ["200", "202", "201"] },
43
+ "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/autoUpgradeProfiles/{autoUpgradeProfileName}": { deserializer: _$deleteDeserialize, expectedStatuses: ["202", "204", "200"] },
44
+ "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/autoUpgradeProfiles/{autoUpgradeProfileName}": { deserializer: _createOrUpdateDeserialize, expectedStatuses: ["200", "201", "202"] },
45
+ "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateStrategies/{updateStrategyName}": {
46
+ deserializer: _$deleteDeserializeFleetUpdateStrategies,
47
+ expectedStatuses: ["200", "202", "204"],
48
+ },
49
+ "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateStrategies/{updateStrategyName}": {
50
+ deserializer: _createOrUpdateDeserializeFleetUpdateStrategies,
51
+ expectedStatuses: ["200", "201", "202"],
52
+ },
53
+ "POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateRuns/{updateRunName}/skip": { deserializer: _skipDeserialize, expectedStatuses: ["200", "202", "201"] },
54
+ "POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateRuns/{updateRunName}/stop": { deserializer: _stopDeserialize, expectedStatuses: ["200", "202", "201"] },
55
+ "POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateRuns/{updateRunName}/start": { deserializer: _startDeserialize, expectedStatuses: ["200", "202", "201"] },
56
+ "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateRuns/{updateRunName}": { deserializer: _$deleteDeserializeUpdateRuns, expectedStatuses: ["200", "202", "204"] },
57
+ "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateRuns/{updateRunName}": { deserializer: _createOrUpdateDeserializeUpdateRuns, expectedStatuses: ["200", "201", "202"] },
58
+ "PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/gates/{gateName}": { deserializer: _updateDeserialize, expectedStatuses: ["200", "202", "201"] },
59
+ "PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/managedNamespaces/{managedNamespaceName}": {
60
+ deserializer: _updateDeserializeFleetManagedNamespaces,
61
+ expectedStatuses: ["200", "202", "201"],
62
+ },
63
+ "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/managedNamespaces/{managedNamespaceName}": {
64
+ deserializer: _$deleteDeserializeFleetManagedNamespaces,
65
+ expectedStatuses: ["202", "204", "200"],
66
+ },
67
+ "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/managedNamespaces/{managedNamespaceName}": {
68
+ deserializer: _createOrUpdateDeserializeFleetManagedNamespaces,
69
+ expectedStatuses: ["200", "201", "202"],
70
+ },
71
+ "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/members/{fleetMemberName}": { deserializer: _$deleteDeserializeFleetMembers, expectedStatuses: ["200", "202", "204"] },
72
+ "PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/members/{fleetMemberName}": { deserializer: _updateAsyncDeserialize, expectedStatuses: ["200", "202", "201"] },
73
+ "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/members/{fleetMemberName}": { deserializer: _createDeserialize, expectedStatuses: ["200", "201", "202"] },
74
+ "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}": { deserializer: _$deleteDeserializeFleets, expectedStatuses: ["200", "202", "204"] },
75
+ "PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}": { deserializer: _updateAsyncDeserializeFleets, expectedStatuses: ["200", "202", "201"] },
76
+ "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}": { deserializer: _createDeserializeFleets, expectedStatuses: ["200", "201", "202"] },
77
+ "POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/clusterMeshProfiles/{clusterMeshProfileName}/apply": { deserializer: _applyDeserialize, expectedStatuses: ["200", "202", "201"] },
78
+ "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/clusterMeshProfiles/{clusterMeshProfileName}": {
79
+ deserializer: _$deleteDeserializeClusterMeshProfiles,
80
+ expectedStatuses: ["202", "204", "200"],
81
+ },
82
+ "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/clusterMeshProfiles/{clusterMeshProfileName}": {
83
+ deserializer: _createOrUpdateDeserializeClusterMeshProfiles,
84
+ expectedStatuses: ["200", "201", "202"],
85
+ },
102
86
  };
103
87
  function getDeserializationHelper(urlStr, method) {
104
- const path = new URL(urlStr).pathname;
105
- const pathParts = path.split("/");
106
- let matchedLen = -1, matchedValue;
107
- for (const [key, value] of Object.entries(deserializeMap)) {
108
- if (!key.startsWith(method)) {
109
- continue;
110
- }
111
- const candidatePath = getPathFromMapKey(key);
112
- const candidateParts = candidatePath.split("/");
113
- let found = true;
114
- for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {
115
- if (candidateParts[i]?.startsWith("{") && candidateParts[i]?.indexOf("}") !== -1) {
116
- const start = candidateParts[i].indexOf("}") + 1, end = candidateParts[i]?.length;
117
- const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test(
118
- pathParts[j] || ""
119
- );
120
- if (!isMatched) {
121
- found = false;
122
- break;
88
+ const path = new URL(urlStr).pathname;
89
+ const pathParts = path.split("/");
90
+ // Traverse list to match the longest candidate
91
+ // matchedLen: the length of candidate path
92
+ // matchedValue: the matched status code array
93
+ let matchedLen = -1, matchedValue;
94
+ // Iterate the responseMap to find a match
95
+ for (const [key, value] of Object.entries(deserializeMap)) {
96
+ // Extracting the path from the map key which is in format
97
+ // GET /path/foo
98
+ if (!key.startsWith(method)) {
99
+ continue;
100
+ }
101
+ const candidatePath = getPathFromMapKey(key);
102
+ // Get each part of the url path
103
+ const candidateParts = candidatePath.split("/");
104
+ // track if we have found a match to return the values found.
105
+ let found = true;
106
+ for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {
107
+ if (candidateParts[i]?.startsWith("{") && candidateParts[i]?.indexOf("}") !== -1) {
108
+ const start = candidateParts[i].indexOf("}") + 1, end = candidateParts[i]?.length;
109
+ // If the current part of the candidate is a "template" part
110
+ // Try to use the suffix of pattern to match the path
111
+ // {guid} ==> $
112
+ // {guid}:export ==> :export$
113
+ const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test(pathParts[j] || "");
114
+ if (!isMatched) {
115
+ found = false;
116
+ break;
117
+ }
118
+ continue;
119
+ }
120
+ // If the candidate part is not a template and
121
+ // the parts don't match mark the candidate as not found
122
+ // to move on with the next candidate path.
123
+ if (candidateParts[i] !== pathParts[j]) {
124
+ found = false;
125
+ break;
126
+ }
127
+ }
128
+ // We finished evaluating the current candidate parts
129
+ // Update the matched value if and only if we found the longer pattern
130
+ if (found && candidatePath.length > matchedLen) {
131
+ matchedLen = candidatePath.length;
132
+ matchedValue = value;
123
133
  }
124
- continue;
125
- }
126
- if (candidateParts[i] !== pathParts[j]) {
127
- found = false;
128
- break;
129
- }
130
- }
131
- if (found && candidatePath.length > matchedLen) {
132
- matchedLen = candidatePath.length;
133
- matchedValue = value;
134
134
  }
135
- }
136
- return matchedValue;
135
+ return matchedValue;
137
136
  }
138
137
  function getPathFromMapKey(mapKey) {
139
- const pathStart = mapKey.indexOf("/");
140
- return mapKey.slice(pathStart);
138
+ const pathStart = mapKey.indexOf("/");
139
+ return mapKey.slice(pathStart);
141
140
  }
142
141
  function getApiVersionFromUrl(urlStr) {
143
- const url = new URL(urlStr);
144
- return url.searchParams.get("api-version") ?? void 0;
142
+ const url = new URL(urlStr);
143
+ return url.searchParams.get("api-version") ?? undefined;
145
144
  }
146
- export {
147
- restorePoller
148
- };
145
+ //# sourceMappingURL=restorePollerHelpers.js.map
@@ -1,7 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["/mnt/vss/_work/1/s/sdk/containerservice/arm-containerservicefleet/src/restorePollerHelpers.ts"],
4
- "sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { ContainerServiceFleetClient } from \"./containerServiceFleetClient.js\";\nimport { _generateUpdateRunDeserialize } from \"./api/autoUpgradeProfileOperations/operations.js\";\nimport {\n _$deleteDeserialize,\n _createOrUpdateDeserialize,\n} from \"./api/autoUpgradeProfiles/operations.js\";\nimport {\n _$deleteDeserialize as _$deleteDeserializeFleetUpdateStrategies,\n _createOrUpdateDeserialize as _createOrUpdateDeserializeFleetUpdateStrategies,\n} from \"./api/fleetUpdateStrategies/operations.js\";\nimport {\n _skipDeserialize,\n _stopDeserialize,\n _startDeserialize,\n _$deleteDeserialize as _$deleteDeserializeUpdateRuns,\n _createOrUpdateDeserialize as _createOrUpdateDeserializeUpdateRuns,\n} from \"./api/updateRuns/operations.js\";\nimport { _updateDeserialize } from \"./api/gates/operations.js\";\nimport {\n _updateDeserialize as _updateDeserializeFleetManagedNamespaces,\n _$deleteDeserialize as _$deleteDeserializeFleetManagedNamespaces,\n _createOrUpdateDeserialize as _createOrUpdateDeserializeFleetManagedNamespaces,\n} from \"./api/fleetManagedNamespaces/operations.js\";\nimport {\n _$deleteDeserialize as _$deleteDeserializeFleetMembers,\n _updateAsyncDeserialize,\n _createDeserialize,\n} from \"./api/fleetMembers/operations.js\";\nimport {\n _$deleteDeserialize as _$deleteDeserializeFleets,\n _updateAsyncDeserialize as _updateAsyncDeserializeFleets,\n _createDeserialize as _createDeserializeFleets,\n} from \"./api/fleets/operations.js\";\nimport { getLongRunningPoller } from \"./static-helpers/pollingHelpers.js\";\nimport type { OperationOptions, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport type { AbortSignalLike } from \"@azure/abort-controller\";\nimport type { PollerLike, OperationState, ResourceLocationConfig } from \"@azure/core-lro\";\nimport { deserializeState } from \"@azure/core-lro\";\n\nexport interface RestorePollerOptions<\n TResult,\n TResponse extends PathUncheckedResponse = PathUncheckedResponse,\n> extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /**\n * The signal which can be used to abort requests.\n */\n abortSignal?: AbortSignalLike;\n /** Deserialization function for raw response body */\n processResponseBody?: (result: TResponse) => Promise<TResult>;\n}\n\n/**\n * Creates a poller from the serialized state of another poller. This can be\n * useful when you want to create pollers on a different host or a poller\n * needs to be constructed after the original one is not in scope.\n */\nexport function restorePoller<TResponse extends PathUncheckedResponse, TResult>(\n client: ContainerServiceFleetClient,\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 const apiVersion = getApiVersionFromUrl(initialRequestUrl);\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 apiVersion,\n },\n );\n}\n\ninterface DeserializationHelper {\n deserializer: (result: PathUncheckedResponse) => Promise<any>;\n expectedStatuses: string[];\n}\n\nconst deserializeMap: Record<string, DeserializationHelper> = {\n \"POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/autoUpgradeProfiles/{autoUpgradeProfileName}/generateUpdateRun\":\n { deserializer: _generateUpdateRunDeserialize, expectedStatuses: [\"202\", \"200\", \"201\"] },\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/autoUpgradeProfiles/{autoUpgradeProfileName}\":\n { deserializer: _$deleteDeserialize, expectedStatuses: [\"202\", \"204\", \"200\"] },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/autoUpgradeProfiles/{autoUpgradeProfileName}\":\n { deserializer: _createOrUpdateDeserialize, expectedStatuses: [\"200\", \"201\", \"202\"] },\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateStrategies/{updateStrategyName}\":\n {\n deserializer: _$deleteDeserializeFleetUpdateStrategies,\n expectedStatuses: [\"200\", \"202\", \"204\"],\n },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateStrategies/{updateStrategyName}\":\n {\n deserializer: _createOrUpdateDeserializeFleetUpdateStrategies,\n expectedStatuses: [\"200\", \"201\", \"202\"],\n },\n \"POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateRuns/{updateRunName}/skip\":\n { deserializer: _skipDeserialize, expectedStatuses: [\"202\", \"200\", \"201\"] },\n \"POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateRuns/{updateRunName}/stop\":\n { deserializer: _stopDeserialize, expectedStatuses: [\"202\", \"200\", \"201\"] },\n \"POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateRuns/{updateRunName}/start\":\n { deserializer: _startDeserialize, expectedStatuses: [\"202\", \"200\", \"201\"] },\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateRuns/{updateRunName}\":\n { deserializer: _$deleteDeserializeUpdateRuns, expectedStatuses: [\"200\", \"202\", \"204\"] },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateRuns/{updateRunName}\":\n { deserializer: _createOrUpdateDeserializeUpdateRuns, expectedStatuses: [\"200\", \"201\", \"202\"] },\n \"PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/gates/{gateName}\":\n { deserializer: _updateDeserialize, expectedStatuses: [\"200\", \"202\", \"201\"] },\n \"PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/managedNamespaces/{managedNamespaceName}\":\n {\n deserializer: _updateDeserializeFleetManagedNamespaces,\n expectedStatuses: [\"200\", \"202\", \"201\"],\n },\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/managedNamespaces/{managedNamespaceName}\":\n {\n deserializer: _$deleteDeserializeFleetManagedNamespaces,\n expectedStatuses: [\"202\", \"204\", \"200\"],\n },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/managedNamespaces/{managedNamespaceName}\":\n {\n deserializer: _createOrUpdateDeserializeFleetManagedNamespaces,\n expectedStatuses: [\"200\", \"201\", \"202\"],\n },\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/members/{fleetMemberName}\":\n { deserializer: _$deleteDeserializeFleetMembers, expectedStatuses: [\"200\", \"202\", \"204\"] },\n \"PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/members/{fleetMemberName}\":\n { deserializer: _updateAsyncDeserialize, expectedStatuses: [\"200\", \"202\", \"201\"] },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/members/{fleetMemberName}\":\n { deserializer: _createDeserialize, expectedStatuses: [\"200\", \"201\", \"202\"] },\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}\":\n { deserializer: _$deleteDeserializeFleets, expectedStatuses: [\"200\", \"202\", \"204\"] },\n \"PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}\":\n { deserializer: _updateAsyncDeserializeFleets, expectedStatuses: [\"200\", \"202\", \"201\"] },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}\":\n { deserializer: _createDeserializeFleets, expectedStatuses: [\"200\", \"201\", \"202\"] },\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\nfunction getApiVersionFromUrl(urlStr: string): string | undefined {\n const url = new URL(urlStr);\n return url.searchParams.get(\"api-version\") ?? undefined;\n}\n"],
5
- "mappings": "AAIA,SAAS,qCAAqC;AAC9C;AAAA,EACE;AAAA,EACA;AAAA,OACK;AACP;AAAA,EACE,uBAAuB;AAAA,EACvB,8BAA8B;AAAA,OACzB;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA,uBAAuB;AAAA,EACvB,8BAA8B;AAAA,OACzB;AACP,SAAS,0BAA0B;AACnC;AAAA,EACE,sBAAsB;AAAA,EACtB,uBAAuB;AAAA,EACvB,8BAA8B;AAAA,OACzB;AACP;AAAA,EACE,uBAAuB;AAAA,EACvB;AAAA,EACA;AAAA,OACK;AACP;AAAA,EACE,uBAAuB;AAAA,EACvB,2BAA2B;AAAA,EAC3B,sBAAsB;AAAA,OACjB;AACP,SAAS,4BAA4B;AAIrC,SAAS,wBAAwB;AAqB1B,SAAS,cACd,QACA,iBACA,iBACA,SAC8C;AAC9C,QAAM,eAAe,iBAAiB,eAAe,EAAE;AACvD,QAAM,EAAE,mBAAmB,eAAe,SAAS,IAAI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IAAI,CAC1E,SAAS,CAAC,CAAC,CAAC,IAAI,EAAE,CACnB,CAAC;gBAEF,IAAI,CAAC,SAAS,EAAE,CAAC;oBACf,KAAK,GAAG,KAAK,CAAC;oBACd,MAAM;gBACR,CAAC;gBACD,SAAS;YACX,CAAC;YAED,8CAA8C;YAC9C,wDAAwD;YACxD,2CAA2C;YAC3C,IAAI,cAAc,CAAC,CAAC,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC;gBACvC,KAAK,GAAG,KAAK,CAAC;gBACd,MAAM;YACR,CAAC;QACH,CAAC;QAED,qDAAqD;QACrD,sEAAsE;QACtE,IAAI,KAAK,IAAI,aAAa,CAAC,MAAM,GAAG,UAAU,EAAE,CAAC;YAC/C,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC;YAClC,YAAY,GAAG,KAAK,CAAC;QACvB,CAAC;IACH,CAAC;IAED,OAAO,YAAY,CAAC;AACtB,CAAC;AAED,SAAS,iBAAiB,CAAC,MAAc;IACvC,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACtC,OAAO,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;AACjC,CAAC;AAED,SAAS,oBAAoB,CAAC,MAAc;IAC1C,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC;IAC5B,OAAO,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,aAAa,CAAC,IAAI,SAAS,CAAC;AAC1D,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { ContainerServiceFleetClient } from \"./containerServiceFleetClient.js\";\nimport { _generateUpdateRunDeserialize } from \"./api/autoUpgradeProfileOperations/operations.js\";\nimport {\n _$deleteDeserialize,\n _createOrUpdateDeserialize,\n} from \"./api/autoUpgradeProfiles/operations.js\";\nimport {\n _$deleteDeserialize as _$deleteDeserializeFleetUpdateStrategies,\n _createOrUpdateDeserialize as _createOrUpdateDeserializeFleetUpdateStrategies,\n} from \"./api/fleetUpdateStrategies/operations.js\";\nimport {\n _skipDeserialize,\n _stopDeserialize,\n _startDeserialize,\n _$deleteDeserialize as _$deleteDeserializeUpdateRuns,\n _createOrUpdateDeserialize as _createOrUpdateDeserializeUpdateRuns,\n} from \"./api/updateRuns/operations.js\";\nimport { _updateDeserialize } from \"./api/gates/operations.js\";\nimport {\n _updateDeserialize as _updateDeserializeFleetManagedNamespaces,\n _$deleteDeserialize as _$deleteDeserializeFleetManagedNamespaces,\n _createOrUpdateDeserialize as _createOrUpdateDeserializeFleetManagedNamespaces,\n} from \"./api/fleetManagedNamespaces/operations.js\";\nimport {\n _$deleteDeserialize as _$deleteDeserializeFleetMembers,\n _updateAsyncDeserialize,\n _createDeserialize,\n} from \"./api/fleetMembers/operations.js\";\nimport {\n _$deleteDeserialize as _$deleteDeserializeFleets,\n _updateAsyncDeserialize as _updateAsyncDeserializeFleets,\n _createDeserialize as _createDeserializeFleets,\n} from \"./api/fleets/operations.js\";\nimport {\n _applyDeserialize,\n _$deleteDeserialize as _$deleteDeserializeClusterMeshProfiles,\n _createOrUpdateDeserialize as _createOrUpdateDeserializeClusterMeshProfiles,\n} from \"./api/clusterMeshProfiles/operations.js\";\nimport { getLongRunningPoller } from \"./static-helpers/pollingHelpers.js\";\nimport type { OperationOptions, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport type { AbortSignalLike } from \"@azure/abort-controller\";\nimport type { PollerLike, OperationState, ResourceLocationConfig } from \"@azure/core-lro\";\nimport { deserializeState } from \"@azure/core-lro\";\n\nexport interface RestorePollerOptions<\n TResult,\n TResponse extends PathUncheckedResponse = PathUncheckedResponse,\n> extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /**\n * The signal which can be used to abort requests.\n */\n abortSignal?: AbortSignalLike;\n /** Deserialization function for raw response body */\n processResponseBody?: (result: TResponse) => Promise<TResult>;\n}\n\n/**\n * Creates a poller from the serialized state of another poller. This can be\n * useful when you want to create pollers on a different host or a poller\n * needs to be constructed after the original one is not in scope.\n */\nexport function restorePoller<TResponse extends PathUncheckedResponse, TResult>(\n client: ContainerServiceFleetClient,\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 const apiVersion = getApiVersionFromUrl(initialRequestUrl);\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 apiVersion,\n },\n );\n}\n\ninterface DeserializationHelper {\n deserializer: (result: PathUncheckedResponse) => Promise<any>;\n expectedStatuses: string[];\n}\n\nconst deserializeMap: Record<string, DeserializationHelper> = {\n \"POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/autoUpgradeProfiles/{autoUpgradeProfileName}/generateUpdateRun\":\n { deserializer: _generateUpdateRunDeserialize, expectedStatuses: [\"200\", \"202\", \"201\"] },\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/autoUpgradeProfiles/{autoUpgradeProfileName}\":\n { deserializer: _$deleteDeserialize, expectedStatuses: [\"202\", \"204\", \"200\"] },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/autoUpgradeProfiles/{autoUpgradeProfileName}\":\n { deserializer: _createOrUpdateDeserialize, expectedStatuses: [\"200\", \"201\", \"202\"] },\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateStrategies/{updateStrategyName}\":\n {\n deserializer: _$deleteDeserializeFleetUpdateStrategies,\n expectedStatuses: [\"200\", \"202\", \"204\"],\n },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateStrategies/{updateStrategyName}\":\n {\n deserializer: _createOrUpdateDeserializeFleetUpdateStrategies,\n expectedStatuses: [\"200\", \"201\", \"202\"],\n },\n \"POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateRuns/{updateRunName}/skip\":\n { deserializer: _skipDeserialize, expectedStatuses: [\"200\", \"202\", \"201\"] },\n \"POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateRuns/{updateRunName}/stop\":\n { deserializer: _stopDeserialize, expectedStatuses: [\"200\", \"202\", \"201\"] },\n \"POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateRuns/{updateRunName}/start\":\n { deserializer: _startDeserialize, expectedStatuses: [\"200\", \"202\", \"201\"] },\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateRuns/{updateRunName}\":\n { deserializer: _$deleteDeserializeUpdateRuns, expectedStatuses: [\"200\", \"202\", \"204\"] },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateRuns/{updateRunName}\":\n { deserializer: _createOrUpdateDeserializeUpdateRuns, expectedStatuses: [\"200\", \"201\", \"202\"] },\n \"PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/gates/{gateName}\":\n { deserializer: _updateDeserialize, expectedStatuses: [\"200\", \"202\", \"201\"] },\n \"PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/managedNamespaces/{managedNamespaceName}\":\n {\n deserializer: _updateDeserializeFleetManagedNamespaces,\n expectedStatuses: [\"200\", \"202\", \"201\"],\n },\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/managedNamespaces/{managedNamespaceName}\":\n {\n deserializer: _$deleteDeserializeFleetManagedNamespaces,\n expectedStatuses: [\"202\", \"204\", \"200\"],\n },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/managedNamespaces/{managedNamespaceName}\":\n {\n deserializer: _createOrUpdateDeserializeFleetManagedNamespaces,\n expectedStatuses: [\"200\", \"201\", \"202\"],\n },\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/members/{fleetMemberName}\":\n { deserializer: _$deleteDeserializeFleetMembers, expectedStatuses: [\"200\", \"202\", \"204\"] },\n \"PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/members/{fleetMemberName}\":\n { deserializer: _updateAsyncDeserialize, expectedStatuses: [\"200\", \"202\", \"201\"] },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/members/{fleetMemberName}\":\n { deserializer: _createDeserialize, expectedStatuses: [\"200\", \"201\", \"202\"] },\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}\":\n { deserializer: _$deleteDeserializeFleets, expectedStatuses: [\"200\", \"202\", \"204\"] },\n \"PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}\":\n { deserializer: _updateAsyncDeserializeFleets, expectedStatuses: [\"200\", \"202\", \"201\"] },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}\":\n { deserializer: _createDeserializeFleets, expectedStatuses: [\"200\", \"201\", \"202\"] },\n \"POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/clusterMeshProfiles/{clusterMeshProfileName}/apply\":\n { deserializer: _applyDeserialize, expectedStatuses: [\"200\", \"202\", \"201\"] },\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/clusterMeshProfiles/{clusterMeshProfileName}\":\n {\n deserializer: _$deleteDeserializeClusterMeshProfiles,\n expectedStatuses: [\"202\", \"204\", \"200\"],\n },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/clusterMeshProfiles/{clusterMeshProfileName}\":\n {\n deserializer: _createOrUpdateDeserializeClusterMeshProfiles,\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\nfunction getApiVersionFromUrl(urlStr: string): string | undefined {\n const url = new URL(urlStr);\n return url.searchParams.get(\"api-version\") ?? undefined;\n}\n"]}
@@ -1,27 +1,38 @@
1
- var AzureClouds = /* @__PURE__ */ ((AzureClouds2) => {
2
- AzureClouds2["AZURE_PUBLIC_CLOUD"] = "AZURE_PUBLIC_CLOUD";
3
- AzureClouds2["AZURE_CHINA_CLOUD"] = "AZURE_CHINA_CLOUD";
4
- AzureClouds2["AZURE_US_GOVERNMENT"] = "AZURE_US_GOVERNMENT";
5
- return AzureClouds2;
6
- })(AzureClouds || {});
7
- function getArmEndpoint(cloudSetting) {
8
- if (cloudSetting === void 0) {
9
- return void 0;
10
- }
11
- const cloudEndpoints = {
12
- AZURE_CHINA_CLOUD: "https://management.chinacloudapi.cn/",
13
- AZURE_US_GOVERNMENT: "https://management.usgovcloudapi.net/",
14
- AZURE_PUBLIC_CLOUD: "https://management.azure.com/"
15
- };
16
- if (cloudSetting in cloudEndpoints) {
17
- return cloudEndpoints[cloudSetting];
18
- } else {
19
- throw new Error(
20
- `Unknown cloud setting: ${cloudSetting}. Please refer to the enum AzureClouds for possible values.`
21
- );
22
- }
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ /**
4
+ * An enum to describe Azure Cloud environments.
5
+ * @enum {string}
6
+ */
7
+ export var AzureClouds;
8
+ (function (AzureClouds) {
9
+ /** Azure public cloud, which is the default cloud for Azure SDKs. */
10
+ AzureClouds["AZURE_PUBLIC_CLOUD"] = "AZURE_PUBLIC_CLOUD";
11
+ /** Azure China cloud */
12
+ AzureClouds["AZURE_CHINA_CLOUD"] = "AZURE_CHINA_CLOUD";
13
+ /** Azure US government cloud */
14
+ AzureClouds["AZURE_US_GOVERNMENT"] = "AZURE_US_GOVERNMENT";
15
+ })(AzureClouds || (AzureClouds = {}));
16
+ /**
17
+ * Gets the Azure Resource Manager endpoint URL for the specified cloud setting.
18
+ * @param cloudSetting - The Azure cloud environment setting. Use one of the AzureClouds enum values.
19
+ * @returns The ARM endpoint URL for the specified cloud, or undefined if cloudSetting is undefined.
20
+ * @throws {Error} Throws an error if an unknown cloud setting is provided.
21
+ */
22
+ export function getArmEndpoint(cloudSetting) {
23
+ if (cloudSetting === undefined) {
24
+ return undefined;
25
+ }
26
+ const cloudEndpoints = {
27
+ AZURE_CHINA_CLOUD: "https://management.chinacloudapi.cn/",
28
+ AZURE_US_GOVERNMENT: "https://management.usgovcloudapi.net/",
29
+ AZURE_PUBLIC_CLOUD: "https://management.azure.com/",
30
+ };
31
+ if (cloudSetting in cloudEndpoints) {
32
+ return cloudEndpoints[cloudSetting];
33
+ }
34
+ else {
35
+ throw new Error(`Unknown cloud setting: ${cloudSetting}. Please refer to the enum AzureClouds for possible values.`);
36
+ }
23
37
  }
24
- export {
25
- AzureClouds,
26
- getArmEndpoint
27
- };
38
+ //# sourceMappingURL=cloudSettingHelpers.js.map
@@ -1,7 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["/mnt/vss/_work/1/s/sdk/containerservice/arm-containerservicefleet/src/static-helpers/cloudSettingHelpers.ts"],
4
- "sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * An enum to describe Azure Cloud environments.\n * @enum {string}\n */\nexport enum AzureClouds {\n /** Azure public cloud, which is the default cloud for Azure SDKs. */\n AZURE_PUBLIC_CLOUD = \"AZURE_PUBLIC_CLOUD\",\n /** Azure China cloud */\n AZURE_CHINA_CLOUD = \"AZURE_CHINA_CLOUD\",\n /** Azure US government cloud */\n AZURE_US_GOVERNMENT = \"AZURE_US_GOVERNMENT\",\n}\n\n/** The supported values for cloud setting as a string literal type */\nexport type AzureSupportedClouds = `${AzureClouds}`;\n\n/**\n * Gets the Azure Resource Manager endpoint URL for the specified cloud setting.\n * @param cloudSetting - The Azure cloud environment setting. Use one of the AzureClouds enum values.\n * @returns The ARM endpoint URL for the specified cloud, or undefined if cloudSetting is undefined.\n * @throws {Error} Throws an error if an unknown cloud setting is provided.\n */\nexport function getArmEndpoint(cloudSetting?: AzureSupportedClouds): string | undefined {\n if (cloudSetting === undefined) {\n return undefined;\n }\n const cloudEndpoints: Record<keyof typeof AzureClouds, string> = {\n AZURE_CHINA_CLOUD: \"https://management.chinacloudapi.cn/\",\n AZURE_US_GOVERNMENT: \"https://management.usgovcloudapi.net/\",\n AZURE_PUBLIC_CLOUD: \"https://management.azure.com/\",\n };\n if (cloudSetting in cloudEndpoints) {\n return cloudEndpoints[cloudSetting];\n } else {\n throw new Error(\n `Unknown cloud setting: ${cloudSetting}. Please refer to the enum AzureClouds for possible values.`,\n );\n }\n}\n"],
5
- "mappings": "AAOO,IAAK,cAAL,kBAAKA,iBAAL;AAEL,EAAAA,aAAA,wBAAqB;AAErB,EAAAA,aAAA,uBAAoB;AAEpB,EAAAA,aAAA,yBAAsB;AANZ,SAAAA;AAAA,GAAA;AAkBL,SAAS,eAAe,cAAyD;AACtF,MAAI,iBAAiB,QAAW;AAC9B,WAAO;AAAA,EACT;AACA,QAAM,iBAA2D;AAAA,IAC/D,mBAAmB;AAAA,IACnB,qBAAqB;AAAA,IACrB,oBAAoB;AAAA,EACtB;AACA,MAAI,gBAAgB,gBAAgB;AAClC,WAAO,eAAe,YAAY;AAAA,EACpC,OAAO;AACL,UAAM,IAAI;AAAA,MACR,0BAA0B,YAAY;AAAA,IACxC;AAAA,EACF;AACF;",
6
- "names": ["AzureClouds"]
7
- }
1
+ {"version":3,"file":"cloudSettingHelpers.js","sourceRoot":"","sources":["../../../src/static-helpers/cloudSettingHelpers.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC;;;GAGG;AACH,MAAM,CAAN,IAAY,WAOX;AAPD,WAAY,WAAW;IACrB,qEAAqE;IACrE,wDAAyC,CAAA;IACzC,wBAAwB;IACxB,sDAAuC,CAAA;IACvC,gCAAgC;IAChC,0DAA2C,CAAA;AAC7C,CAAC,EAPW,WAAW,KAAX,WAAW,QAOtB;AAKD;;;;;GAKG;AACH,MAAM,UAAU,cAAc,CAAC,YAAmC;IAChE,IAAI,YAAY,KAAK,SAAS,EAAE,CAAC;QAC/B,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,MAAM,cAAc,GAA6C;QAC/D,iBAAiB,EAAE,sCAAsC;QACzD,mBAAmB,EAAE,uCAAuC;QAC5D,kBAAkB,EAAE,+BAA+B;KACpD,CAAC;IACF,IAAI,YAAY,IAAI,cAAc,EAAE,CAAC;QACnC,OAAO,cAAc,CAAC,YAAY,CAAC,CAAC;IACtC,CAAC;SAAM,CAAC;QACN,MAAM,IAAI,KAAK,CACb,0BAA0B,YAAY,6DAA6D,CACpG,CAAC;IACJ,CAAC;AACH,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * An enum to describe Azure Cloud environments.\n * @enum {string}\n */\nexport enum AzureClouds {\n /** Azure public cloud, which is the default cloud for Azure SDKs. */\n AZURE_PUBLIC_CLOUD = \"AZURE_PUBLIC_CLOUD\",\n /** Azure China cloud */\n AZURE_CHINA_CLOUD = \"AZURE_CHINA_CLOUD\",\n /** Azure US government cloud */\n AZURE_US_GOVERNMENT = \"AZURE_US_GOVERNMENT\",\n}\n\n/** The supported values for cloud setting as a string literal type */\nexport type AzureSupportedClouds = `${AzureClouds}`;\n\n/**\n * Gets the Azure Resource Manager endpoint URL for the specified cloud setting.\n * @param cloudSetting - The Azure cloud environment setting. Use one of the AzureClouds enum values.\n * @returns The ARM endpoint URL for the specified cloud, or undefined if cloudSetting is undefined.\n * @throws {Error} Throws an error if an unknown cloud setting is provided.\n */\nexport function getArmEndpoint(cloudSetting?: AzureSupportedClouds): string | undefined {\n if (cloudSetting === undefined) {\n return undefined;\n }\n const cloudEndpoints: Record<keyof typeof AzureClouds, string> = {\n AZURE_CHINA_CLOUD: \"https://management.chinacloudapi.cn/\",\n AZURE_US_GOVERNMENT: \"https://management.usgovcloudapi.net/\",\n AZURE_PUBLIC_CLOUD: \"https://management.azure.com/\",\n };\n if (cloudSetting in cloudEndpoints) {\n return cloudEndpoints[cloudSetting];\n } else {\n throw new Error(\n `Unknown cloud setting: ${cloudSetting}. Please refer to the enum AzureClouds for possible values.`,\n );\n }\n}\n"]}