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

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 (408) hide show
  1. package/dist/browser/api/autoUpgradeProfileOperations/index.d.ts +1 -1
  2. package/dist/browser/api/autoUpgradeProfileOperations/index.js.map +1 -1
  3. package/dist/browser/api/autoUpgradeProfileOperations/operations.js +5 -11
  4. package/dist/browser/api/autoUpgradeProfileOperations/operations.js.map +1 -1
  5. package/dist/browser/api/autoUpgradeProfiles/index.d.ts +1 -1
  6. package/dist/browser/api/autoUpgradeProfiles/index.js.map +1 -1
  7. package/dist/browser/api/autoUpgradeProfiles/operations.js +25 -31
  8. package/dist/browser/api/autoUpgradeProfiles/operations.js.map +1 -1
  9. package/dist/browser/api/autoUpgradeProfiles/options.d.ts +4 -0
  10. package/dist/browser/api/autoUpgradeProfiles/options.js.map +1 -1
  11. package/dist/browser/api/containerServiceFleetContext.d.ts +3 -3
  12. package/dist/browser/api/containerServiceFleetContext.js +4 -23
  13. package/dist/browser/api/containerServiceFleetContext.js.map +1 -1
  14. package/dist/browser/api/fleetManagedNamespaces/index.d.ts +1 -1
  15. package/dist/browser/api/fleetManagedNamespaces/index.js.map +1 -1
  16. package/dist/browser/api/fleetManagedNamespaces/operations.js +25 -32
  17. package/dist/browser/api/fleetManagedNamespaces/operations.js.map +1 -1
  18. package/dist/browser/api/fleetMembers/index.d.ts +1 -1
  19. package/dist/browser/api/fleetMembers/index.js.map +1 -1
  20. package/dist/browser/api/fleetMembers/operations.js +25 -21
  21. package/dist/browser/api/fleetMembers/operations.js.map +1 -1
  22. package/dist/browser/api/fleetMembers/options.d.ts +6 -0
  23. package/dist/browser/api/fleetMembers/options.js.map +1 -1
  24. package/dist/browser/api/fleetUpdateStrategies/index.d.ts +1 -1
  25. package/dist/browser/api/fleetUpdateStrategies/index.js.map +1 -1
  26. package/dist/browser/api/fleetUpdateStrategies/operations.js +25 -31
  27. package/dist/browser/api/fleetUpdateStrategies/operations.js.map +1 -1
  28. package/dist/browser/api/fleetUpdateStrategies/options.d.ts +4 -0
  29. package/dist/browser/api/fleetUpdateStrategies/options.js.map +1 -1
  30. package/dist/browser/api/fleets/index.d.ts +1 -1
  31. package/dist/browser/api/fleets/index.js.map +1 -1
  32. package/dist/browser/api/fleets/operations.js +33 -32
  33. package/dist/browser/api/fleets/operations.js.map +1 -1
  34. package/dist/browser/api/fleets/options.d.ts +4 -0
  35. package/dist/browser/api/fleets/options.js.map +1 -1
  36. package/dist/browser/api/gates/index.d.ts +1 -1
  37. package/dist/browser/api/gates/index.js.map +1 -1
  38. package/dist/browser/api/gates/operations.js +17 -15
  39. package/dist/browser/api/gates/operations.js.map +1 -1
  40. package/dist/browser/api/gates/options.d.ts +6 -0
  41. package/dist/browser/api/gates/options.js.map +1 -1
  42. package/dist/browser/api/index.d.ts +2 -1
  43. package/dist/browser/api/index.js +1 -1
  44. package/dist/browser/api/index.js.map +1 -1
  45. package/dist/browser/api/operations/index.d.ts +1 -1
  46. package/dist/browser/api/operations/index.js.map +1 -1
  47. package/dist/browser/api/operations/operations.js +7 -6
  48. package/dist/browser/api/operations/operations.js.map +1 -1
  49. package/dist/browser/api/updateRuns/index.d.ts +1 -1
  50. package/dist/browser/api/updateRuns/index.js.map +1 -1
  51. package/dist/browser/api/updateRuns/operations.js +30 -25
  52. package/dist/browser/api/updateRuns/operations.js.map +1 -1
  53. package/dist/browser/api/updateRuns/options.d.ts +4 -0
  54. package/dist/browser/api/updateRuns/options.js.map +1 -1
  55. package/dist/browser/classic/index.d.ts +9 -9
  56. package/dist/browser/classic/index.js.map +1 -1
  57. package/dist/browser/containerServiceFleetClient.d.ts +1 -1
  58. package/dist/browser/containerServiceFleetClient.js.map +1 -1
  59. package/dist/browser/index.d.ts +21 -17
  60. package/dist/browser/index.js.map +1 -1
  61. package/dist/browser/models/index.d.ts +2 -1
  62. package/dist/browser/models/index.js.map +1 -1
  63. package/dist/browser/models/models.d.ts +64 -5
  64. package/dist/browser/models/models.js +72 -21
  65. package/dist/browser/models/models.js.map +1 -1
  66. package/dist/browser/restorePollerHelpers.js +21 -54
  67. package/dist/browser/restorePollerHelpers.js.map +1 -1
  68. package/dist/browser/static-helpers/pagingHelpers.d.ts +1 -0
  69. package/dist/browser/static-helpers/pagingHelpers.js +27 -5
  70. package/dist/browser/static-helpers/pagingHelpers.js.map +1 -1
  71. package/dist/browser/static-helpers/pollingHelpers.d.ts +4 -0
  72. package/dist/browser/static-helpers/pollingHelpers.js +18 -2
  73. package/dist/browser/static-helpers/pollingHelpers.js.map +1 -1
  74. package/dist/browser/static-helpers/serialization/check-prop-undefined.d.ts +8 -0
  75. package/dist/browser/static-helpers/serialization/check-prop-undefined.js +17 -0
  76. package/dist/browser/static-helpers/serialization/check-prop-undefined.js.map +1 -0
  77. package/dist/browser/static-helpers/urlTemplate.js +5 -5
  78. package/dist/browser/static-helpers/urlTemplate.js.map +1 -1
  79. package/dist/commonjs/api/autoUpgradeProfileOperations/index.d.ts +1 -1
  80. package/dist/commonjs/api/autoUpgradeProfileOperations/index.js +27 -8
  81. package/dist/commonjs/api/autoUpgradeProfileOperations/index.js.map +7 -1
  82. package/dist/commonjs/api/autoUpgradeProfileOperations/operations.js +73 -48
  83. package/dist/commonjs/api/autoUpgradeProfileOperations/operations.js.map +7 -1
  84. package/dist/commonjs/api/autoUpgradeProfileOperations/options.js +15 -5
  85. package/dist/commonjs/api/autoUpgradeProfileOperations/options.js.map +7 -1
  86. package/dist/commonjs/api/autoUpgradeProfiles/index.d.ts +1 -1
  87. package/dist/commonjs/api/autoUpgradeProfiles/index.js +33 -11
  88. package/dist/commonjs/api/autoUpgradeProfiles/index.js.map +7 -1
  89. package/dist/commonjs/api/autoUpgradeProfiles/operations.js +204 -153
  90. package/dist/commonjs/api/autoUpgradeProfiles/operations.js.map +7 -1
  91. package/dist/commonjs/api/autoUpgradeProfiles/options.d.ts +4 -0
  92. package/dist/commonjs/api/autoUpgradeProfiles/options.js +15 -5
  93. package/dist/commonjs/api/autoUpgradeProfiles/options.js.map +7 -1
  94. package/dist/commonjs/api/containerServiceFleetContext.d.ts +3 -3
  95. package/dist/commonjs/api/containerServiceFleetContext.js +42 -44
  96. package/dist/commonjs/api/containerServiceFleetContext.js.map +7 -1
  97. package/dist/commonjs/api/fleetManagedNamespaces/index.d.ts +1 -1
  98. package/dist/commonjs/api/fleetManagedNamespaces/index.js +35 -12
  99. package/dist/commonjs/api/fleetManagedNamespaces/index.js.map +7 -1
  100. package/dist/commonjs/api/fleetManagedNamespaces/operations.js +245 -189
  101. package/dist/commonjs/api/fleetManagedNamespaces/operations.js.map +7 -1
  102. package/dist/commonjs/api/fleetManagedNamespaces/options.js +15 -5
  103. package/dist/commonjs/api/fleetManagedNamespaces/options.js.map +7 -1
  104. package/dist/commonjs/api/fleetMembers/index.d.ts +1 -1
  105. package/dist/commonjs/api/fleetMembers/index.js +35 -12
  106. package/dist/commonjs/api/fleetMembers/index.js.map +7 -1
  107. package/dist/commonjs/api/fleetMembers/operations.js +231 -177
  108. package/dist/commonjs/api/fleetMembers/operations.js.map +7 -1
  109. package/dist/commonjs/api/fleetMembers/options.d.ts +6 -0
  110. package/dist/commonjs/api/fleetMembers/options.js +15 -5
  111. package/dist/commonjs/api/fleetMembers/options.js.map +7 -1
  112. package/dist/commonjs/api/fleetUpdateStrategies/index.d.ts +1 -1
  113. package/dist/commonjs/api/fleetUpdateStrategies/index.js +33 -11
  114. package/dist/commonjs/api/fleetUpdateStrategies/index.js.map +7 -1
  115. package/dist/commonjs/api/fleetUpdateStrategies/operations.js +198 -153
  116. package/dist/commonjs/api/fleetUpdateStrategies/operations.js.map +7 -1
  117. package/dist/commonjs/api/fleetUpdateStrategies/options.d.ts +4 -0
  118. package/dist/commonjs/api/fleetUpdateStrategies/options.js +15 -5
  119. package/dist/commonjs/api/fleetUpdateStrategies/options.js.map +7 -1
  120. package/dist/commonjs/api/fleets/index.d.ts +1 -1
  121. package/dist/commonjs/api/fleets/index.js +39 -14
  122. package/dist/commonjs/api/fleets/index.js.map +7 -1
  123. package/dist/commonjs/api/fleets/operations.js +294 -225
  124. package/dist/commonjs/api/fleets/operations.js.map +7 -1
  125. package/dist/commonjs/api/fleets/options.d.ts +4 -0
  126. package/dist/commonjs/api/fleets/options.js +15 -5
  127. package/dist/commonjs/api/fleets/options.js.map +7 -1
  128. package/dist/commonjs/api/gates/index.d.ts +1 -1
  129. package/dist/commonjs/api/gates/index.js +31 -10
  130. package/dist/commonjs/api/gates/index.js.map +7 -1
  131. package/dist/commonjs/api/gates/operations.js +148 -103
  132. package/dist/commonjs/api/gates/operations.js.map +7 -1
  133. package/dist/commonjs/api/gates/options.d.ts +6 -0
  134. package/dist/commonjs/api/gates/options.js +15 -5
  135. package/dist/commonjs/api/gates/options.js.map +7 -1
  136. package/dist/commonjs/api/index.d.ts +2 -1
  137. package/dist/commonjs/api/index.js +27 -8
  138. package/dist/commonjs/api/index.js.map +7 -1
  139. package/dist/commonjs/api/operations/index.d.ts +1 -1
  140. package/dist/commonjs/api/operations/index.js +27 -8
  141. package/dist/commonjs/api/operations/index.js.map +7 -1
  142. package/dist/commonjs/api/operations/operations.js +65 -33
  143. package/dist/commonjs/api/operations/operations.js.map +7 -1
  144. package/dist/commonjs/api/operations/options.js +15 -5
  145. package/dist/commonjs/api/operations/options.js.map +7 -1
  146. package/dist/commonjs/api/updateRuns/index.d.ts +1 -1
  147. package/dist/commonjs/api/updateRuns/index.js +39 -14
  148. package/dist/commonjs/api/updateRuns/index.js.map +7 -1
  149. package/dist/commonjs/api/updateRuns/operations.js +312 -245
  150. package/dist/commonjs/api/updateRuns/operations.js.map +7 -1
  151. package/dist/commonjs/api/updateRuns/options.d.ts +4 -0
  152. package/dist/commonjs/api/updateRuns/options.js +15 -5
  153. package/dist/commonjs/api/updateRuns/options.js.map +7 -1
  154. package/dist/commonjs/classic/autoUpgradeProfileOperations/index.js +33 -13
  155. package/dist/commonjs/classic/autoUpgradeProfileOperations/index.js.map +7 -1
  156. package/dist/commonjs/classic/autoUpgradeProfiles/index.js +43 -16
  157. package/dist/commonjs/classic/autoUpgradeProfiles/index.js.map +7 -1
  158. package/dist/commonjs/classic/fleetManagedNamespaces/index.js +44 -17
  159. package/dist/commonjs/classic/fleetManagedNamespaces/index.js.map +7 -1
  160. package/dist/commonjs/classic/fleetMembers/index.js +37 -17
  161. package/dist/commonjs/classic/fleetMembers/index.js.map +7 -1
  162. package/dist/commonjs/classic/fleetUpdateStrategies/index.js +36 -16
  163. package/dist/commonjs/classic/fleetUpdateStrategies/index.js.map +7 -1
  164. package/dist/commonjs/classic/fleets/index.js +39 -19
  165. package/dist/commonjs/classic/fleets/index.js.map +7 -1
  166. package/dist/commonjs/classic/gates/index.js +35 -15
  167. package/dist/commonjs/classic/gates/index.js.map +7 -1
  168. package/dist/commonjs/classic/index.d.ts +9 -9
  169. package/dist/commonjs/classic/index.js +15 -5
  170. package/dist/commonjs/classic/index.js.map +7 -1
  171. package/dist/commonjs/classic/operations/index.js +33 -13
  172. package/dist/commonjs/classic/operations/index.js.map +7 -1
  173. package/dist/commonjs/classic/updateRuns/index.js +39 -19
  174. package/dist/commonjs/classic/updateRuns/index.js.map +7 -1
  175. package/dist/commonjs/containerServiceFleetClient.d.ts +1 -1
  176. package/dist/commonjs/containerServiceFleetClient.js +76 -59
  177. package/dist/commonjs/containerServiceFleetClient.js.map +7 -1
  178. package/dist/commonjs/index.d.ts +21 -17
  179. package/dist/commonjs/index.js +96 -44
  180. package/dist/commonjs/index.js.map +7 -1
  181. package/dist/commonjs/logger.js +28 -8
  182. package/dist/commonjs/logger.js.map +7 -1
  183. package/dist/commonjs/models/index.d.ts +2 -1
  184. package/dist/commonjs/models/index.js +87 -38
  185. package/dist/commonjs/models/index.js.map +7 -1
  186. package/dist/commonjs/models/models.d.ts +64 -5
  187. package/dist/commonjs/models/models.js +1417 -1480
  188. package/dist/commonjs/models/models.js.map +7 -1
  189. package/dist/commonjs/restorePollerHelpers.js +136 -160
  190. package/dist/commonjs/restorePollerHelpers.js.map +7 -1
  191. package/dist/commonjs/static-helpers/cloudSettingHelpers.js +49 -40
  192. package/dist/commonjs/static-helpers/cloudSettingHelpers.js.map +7 -1
  193. package/dist/commonjs/static-helpers/pagingHelpers.d.ts +1 -0
  194. package/dist/commonjs/static-helpers/pagingHelpers.js +124 -106
  195. package/dist/commonjs/static-helpers/pagingHelpers.js.map +7 -1
  196. package/dist/commonjs/static-helpers/pollingHelpers.d.ts +4 -0
  197. package/dist/commonjs/static-helpers/pollingHelpers.js +94 -76
  198. package/dist/commonjs/static-helpers/pollingHelpers.js.map +7 -1
  199. package/dist/commonjs/static-helpers/serialization/check-prop-undefined.d.ts +8 -0
  200. package/dist/commonjs/static-helpers/serialization/check-prop-undefined.js +34 -0
  201. package/dist/commonjs/static-helpers/serialization/check-prop-undefined.js.map +7 -0
  202. package/dist/commonjs/static-helpers/urlTemplate.js +165 -172
  203. package/dist/commonjs/static-helpers/urlTemplate.js.map +7 -1
  204. package/dist/commonjs/tsdoc-metadata.json +1 -1
  205. package/dist/esm/api/autoUpgradeProfileOperations/index.d.ts +1 -1
  206. package/dist/esm/api/autoUpgradeProfileOperations/index.js +4 -4
  207. package/dist/esm/api/autoUpgradeProfileOperations/index.js.map +7 -1
  208. package/dist/esm/api/autoUpgradeProfileOperations/operations.js +45 -40
  209. package/dist/esm/api/autoUpgradeProfileOperations/operations.js.map +7 -1
  210. package/dist/esm/api/autoUpgradeProfileOperations/options.js +0 -4
  211. package/dist/esm/api/autoUpgradeProfileOperations/options.js.map +7 -1
  212. package/dist/esm/api/autoUpgradeProfiles/index.d.ts +1 -1
  213. package/dist/esm/api/autoUpgradeProfiles/index.js +7 -4
  214. package/dist/esm/api/autoUpgradeProfiles/index.js.map +7 -1
  215. package/dist/esm/api/autoUpgradeProfiles/operations.js +176 -140
  216. package/dist/esm/api/autoUpgradeProfiles/operations.js.map +7 -1
  217. package/dist/esm/api/autoUpgradeProfiles/options.d.ts +4 -0
  218. package/dist/esm/api/autoUpgradeProfiles/options.js +0 -4
  219. package/dist/esm/api/autoUpgradeProfiles/options.js.map +7 -1
  220. package/dist/esm/api/containerServiceFleetContext.d.ts +3 -3
  221. package/dist/esm/api/containerServiceFleetContext.js +17 -39
  222. package/dist/esm/api/containerServiceFleetContext.js.map +7 -1
  223. package/dist/esm/api/fleetManagedNamespaces/index.d.ts +1 -1
  224. package/dist/esm/api/fleetManagedNamespaces/index.js +8 -4
  225. package/dist/esm/api/fleetManagedNamespaces/index.js.map +7 -1
  226. package/dist/esm/api/fleetManagedNamespaces/operations.js +217 -175
  227. package/dist/esm/api/fleetManagedNamespaces/operations.js.map +7 -1
  228. package/dist/esm/api/fleetManagedNamespaces/options.js +0 -4
  229. package/dist/esm/api/fleetManagedNamespaces/options.js.map +7 -1
  230. package/dist/esm/api/fleetMembers/index.d.ts +1 -1
  231. package/dist/esm/api/fleetMembers/index.js +8 -4
  232. package/dist/esm/api/fleetMembers/index.js.map +7 -1
  233. package/dist/esm/api/fleetMembers/operations.js +207 -167
  234. package/dist/esm/api/fleetMembers/operations.js.map +7 -1
  235. package/dist/esm/api/fleetMembers/options.d.ts +6 -0
  236. package/dist/esm/api/fleetMembers/options.js +0 -4
  237. package/dist/esm/api/fleetMembers/options.js.map +7 -1
  238. package/dist/esm/api/fleetUpdateStrategies/index.d.ts +1 -1
  239. package/dist/esm/api/fleetUpdateStrategies/index.js +7 -4
  240. package/dist/esm/api/fleetUpdateStrategies/index.js.map +7 -1
  241. package/dist/esm/api/fleetUpdateStrategies/operations.js +170 -140
  242. package/dist/esm/api/fleetUpdateStrategies/operations.js.map +7 -1
  243. package/dist/esm/api/fleetUpdateStrategies/options.d.ts +4 -0
  244. package/dist/esm/api/fleetUpdateStrategies/options.js +0 -4
  245. package/dist/esm/api/fleetUpdateStrategies/options.js.map +7 -1
  246. package/dist/esm/api/fleets/index.d.ts +1 -1
  247. package/dist/esm/api/fleets/index.js +18 -4
  248. package/dist/esm/api/fleets/index.js.map +7 -1
  249. package/dist/esm/api/fleets/operations.js +287 -231
  250. package/dist/esm/api/fleets/operations.js.map +7 -1
  251. package/dist/esm/api/fleets/options.d.ts +4 -0
  252. package/dist/esm/api/fleets/options.js +0 -4
  253. package/dist/esm/api/fleets/options.js.map +7 -1
  254. package/dist/esm/api/gates/index.d.ts +1 -1
  255. package/dist/esm/api/gates/index.js +6 -4
  256. package/dist/esm/api/gates/index.js.map +7 -1
  257. package/dist/esm/api/gates/operations.js +125 -95
  258. package/dist/esm/api/gates/operations.js.map +7 -1
  259. package/dist/esm/api/gates/options.d.ts +6 -0
  260. package/dist/esm/api/gates/options.js +0 -4
  261. package/dist/esm/api/gates/options.js.map +7 -1
  262. package/dist/esm/api/index.d.ts +2 -1
  263. package/dist/esm/api/index.js +4 -4
  264. package/dist/esm/api/index.js.map +7 -1
  265. package/dist/esm/api/operations/index.d.ts +1 -1
  266. package/dist/esm/api/operations/index.js +4 -4
  267. package/dist/esm/api/operations/index.js.map +7 -1
  268. package/dist/esm/api/operations/operations.js +43 -28
  269. package/dist/esm/api/operations/operations.js.map +7 -1
  270. package/dist/esm/api/operations/options.js +0 -4
  271. package/dist/esm/api/operations/options.js.map +7 -1
  272. package/dist/esm/api/updateRuns/index.d.ts +1 -1
  273. package/dist/esm/api/updateRuns/index.js +10 -4
  274. package/dist/esm/api/updateRuns/index.js.map +7 -1
  275. package/dist/esm/api/updateRuns/operations.js +286 -233
  276. package/dist/esm/api/updateRuns/operations.js.map +7 -1
  277. package/dist/esm/api/updateRuns/options.d.ts +4 -0
  278. package/dist/esm/api/updateRuns/options.js +0 -4
  279. package/dist/esm/api/updateRuns/options.js.map +7 -1
  280. package/dist/esm/classic/autoUpgradeProfileOperations/index.js +10 -10
  281. package/dist/esm/classic/autoUpgradeProfileOperations/index.js.map +7 -1
  282. package/dist/esm/classic/autoUpgradeProfiles/index.js +26 -14
  283. package/dist/esm/classic/autoUpgradeProfiles/index.js.map +7 -1
  284. package/dist/esm/classic/fleetManagedNamespaces/index.js +28 -15
  285. package/dist/esm/classic/fleetManagedNamespaces/index.js.map +7 -1
  286. package/dist/esm/classic/fleetMembers/index.js +21 -15
  287. package/dist/esm/classic/fleetMembers/index.js.map +7 -1
  288. package/dist/esm/classic/fleetUpdateStrategies/index.js +19 -14
  289. package/dist/esm/classic/fleetUpdateStrategies/index.js.map +7 -1
  290. package/dist/esm/classic/fleets/index.js +25 -17
  291. package/dist/esm/classic/fleets/index.js.map +7 -1
  292. package/dist/esm/classic/gates/index.js +12 -12
  293. package/dist/esm/classic/gates/index.js.map +7 -1
  294. package/dist/esm/classic/index.d.ts +9 -9
  295. package/dist/esm/classic/index.js +0 -4
  296. package/dist/esm/classic/index.js.map +7 -1
  297. package/dist/esm/classic/operations/index.js +10 -10
  298. package/dist/esm/classic/operations/index.js.map +7 -1
  299. package/dist/esm/classic/updateRuns/index.js +25 -17
  300. package/dist/esm/classic/updateRuns/index.js.map +7 -1
  301. package/dist/esm/containerServiceFleetClient.d.ts +1 -1
  302. package/dist/esm/containerServiceFleetClient.js +44 -46
  303. package/dist/esm/containerServiceFleetClient.js.map +7 -1
  304. package/dist/esm/index.d.ts +21 -17
  305. package/dist/esm/index.js +71 -7
  306. package/dist/esm/index.js.map +7 -1
  307. package/dist/esm/logger.js +4 -4
  308. package/dist/esm/logger.js.map +7 -1
  309. package/dist/esm/models/index.d.ts +2 -1
  310. package/dist/esm/models/index.js +66 -4
  311. package/dist/esm/models/index.js.map +7 -1
  312. package/dist/esm/models/models.d.ts +64 -5
  313. package/dist/esm/models/models.js +1509 -1624
  314. package/dist/esm/models/models.js.map +7 -1
  315. package/dist/esm/restorePollerHelpers.js +134 -154
  316. package/dist/esm/restorePollerHelpers.js.map +7 -1
  317. package/dist/esm/static-helpers/cloudSettingHelpers.js +26 -37
  318. package/dist/esm/static-helpers/cloudSettingHelpers.js.map +7 -1
  319. package/dist/esm/static-helpers/pagingHelpers.d.ts +1 -0
  320. package/dist/esm/static-helpers/pagingHelpers.js +100 -102
  321. package/dist/esm/static-helpers/pagingHelpers.js.map +7 -1
  322. package/dist/esm/static-helpers/pollingHelpers.d.ts +4 -0
  323. package/dist/esm/static-helpers/pollingHelpers.js +70 -72
  324. package/dist/esm/static-helpers/pollingHelpers.js.map +7 -1
  325. package/dist/esm/static-helpers/serialization/check-prop-undefined.d.ts +8 -0
  326. package/dist/esm/static-helpers/serialization/check-prop-undefined.js +11 -0
  327. package/dist/esm/static-helpers/serialization/check-prop-undefined.js.map +7 -0
  328. package/dist/esm/static-helpers/urlTemplate.js +142 -169
  329. package/dist/esm/static-helpers/urlTemplate.js.map +7 -1
  330. package/dist/react-native/api/autoUpgradeProfileOperations/index.d.ts +1 -1
  331. package/dist/react-native/api/autoUpgradeProfileOperations/index.js.map +1 -1
  332. package/dist/react-native/api/autoUpgradeProfileOperations/operations.js +5 -11
  333. package/dist/react-native/api/autoUpgradeProfileOperations/operations.js.map +1 -1
  334. package/dist/react-native/api/autoUpgradeProfiles/index.d.ts +1 -1
  335. package/dist/react-native/api/autoUpgradeProfiles/index.js.map +1 -1
  336. package/dist/react-native/api/autoUpgradeProfiles/operations.js +25 -31
  337. package/dist/react-native/api/autoUpgradeProfiles/operations.js.map +1 -1
  338. package/dist/react-native/api/autoUpgradeProfiles/options.d.ts +4 -0
  339. package/dist/react-native/api/autoUpgradeProfiles/options.js.map +1 -1
  340. package/dist/react-native/api/containerServiceFleetContext.d.ts +3 -3
  341. package/dist/react-native/api/containerServiceFleetContext.js +4 -23
  342. package/dist/react-native/api/containerServiceFleetContext.js.map +1 -1
  343. package/dist/react-native/api/fleetManagedNamespaces/index.d.ts +1 -1
  344. package/dist/react-native/api/fleetManagedNamespaces/index.js.map +1 -1
  345. package/dist/react-native/api/fleetManagedNamespaces/operations.js +25 -32
  346. package/dist/react-native/api/fleetManagedNamespaces/operations.js.map +1 -1
  347. package/dist/react-native/api/fleetMembers/index.d.ts +1 -1
  348. package/dist/react-native/api/fleetMembers/index.js.map +1 -1
  349. package/dist/react-native/api/fleetMembers/operations.js +25 -21
  350. package/dist/react-native/api/fleetMembers/operations.js.map +1 -1
  351. package/dist/react-native/api/fleetMembers/options.d.ts +6 -0
  352. package/dist/react-native/api/fleetMembers/options.js.map +1 -1
  353. package/dist/react-native/api/fleetUpdateStrategies/index.d.ts +1 -1
  354. package/dist/react-native/api/fleetUpdateStrategies/index.js.map +1 -1
  355. package/dist/react-native/api/fleetUpdateStrategies/operations.js +25 -31
  356. package/dist/react-native/api/fleetUpdateStrategies/operations.js.map +1 -1
  357. package/dist/react-native/api/fleetUpdateStrategies/options.d.ts +4 -0
  358. package/dist/react-native/api/fleetUpdateStrategies/options.js.map +1 -1
  359. package/dist/react-native/api/fleets/index.d.ts +1 -1
  360. package/dist/react-native/api/fleets/index.js.map +1 -1
  361. package/dist/react-native/api/fleets/operations.js +33 -32
  362. package/dist/react-native/api/fleets/operations.js.map +1 -1
  363. package/dist/react-native/api/fleets/options.d.ts +4 -0
  364. package/dist/react-native/api/fleets/options.js.map +1 -1
  365. package/dist/react-native/api/gates/index.d.ts +1 -1
  366. package/dist/react-native/api/gates/index.js.map +1 -1
  367. package/dist/react-native/api/gates/operations.js +17 -15
  368. package/dist/react-native/api/gates/operations.js.map +1 -1
  369. package/dist/react-native/api/gates/options.d.ts +6 -0
  370. package/dist/react-native/api/gates/options.js.map +1 -1
  371. package/dist/react-native/api/index.d.ts +2 -1
  372. package/dist/react-native/api/index.js +1 -1
  373. package/dist/react-native/api/index.js.map +1 -1
  374. package/dist/react-native/api/operations/index.d.ts +1 -1
  375. package/dist/react-native/api/operations/index.js.map +1 -1
  376. package/dist/react-native/api/operations/operations.js +7 -6
  377. package/dist/react-native/api/operations/operations.js.map +1 -1
  378. package/dist/react-native/api/updateRuns/index.d.ts +1 -1
  379. package/dist/react-native/api/updateRuns/index.js.map +1 -1
  380. package/dist/react-native/api/updateRuns/operations.js +30 -25
  381. package/dist/react-native/api/updateRuns/operations.js.map +1 -1
  382. package/dist/react-native/api/updateRuns/options.d.ts +4 -0
  383. package/dist/react-native/api/updateRuns/options.js.map +1 -1
  384. package/dist/react-native/classic/index.d.ts +9 -9
  385. package/dist/react-native/classic/index.js.map +1 -1
  386. package/dist/react-native/containerServiceFleetClient.d.ts +1 -1
  387. package/dist/react-native/containerServiceFleetClient.js.map +1 -1
  388. package/dist/react-native/index.d.ts +21 -17
  389. package/dist/react-native/index.js.map +1 -1
  390. package/dist/react-native/models/index.d.ts +2 -1
  391. package/dist/react-native/models/index.js.map +1 -1
  392. package/dist/react-native/models/models.d.ts +64 -5
  393. package/dist/react-native/models/models.js +72 -21
  394. package/dist/react-native/models/models.js.map +1 -1
  395. package/dist/react-native/restorePollerHelpers.js +21 -54
  396. package/dist/react-native/restorePollerHelpers.js.map +1 -1
  397. package/dist/react-native/static-helpers/pagingHelpers.d.ts +1 -0
  398. package/dist/react-native/static-helpers/pagingHelpers.js +27 -5
  399. package/dist/react-native/static-helpers/pagingHelpers.js.map +1 -1
  400. package/dist/react-native/static-helpers/pollingHelpers.d.ts +4 -0
  401. package/dist/react-native/static-helpers/pollingHelpers.js +18 -2
  402. package/dist/react-native/static-helpers/pollingHelpers.js.map +1 -1
  403. package/dist/react-native/static-helpers/serialization/check-prop-undefined.d.ts +8 -0
  404. package/dist/react-native/static-helpers/serialization/check-prop-undefined.js +17 -0
  405. package/dist/react-native/static-helpers/serialization/check-prop-undefined.js.map +1 -0
  406. package/dist/react-native/static-helpers/urlTemplate.js +5 -5
  407. package/dist/react-native/static-helpers/urlTemplate.js.map +1 -1
  408. package/package.json +3 -31
@@ -1,168 +1,148 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT License.
3
1
  import { _generateUpdateRunDeserialize } from "./api/autoUpgradeProfileOperations/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";
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";
7
17
  import { _updateDeserialize } from "./api/gates/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";
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";
11
33
  import { getLongRunningPoller } from "./static-helpers/pollingHelpers.js";
12
34
  import { deserializeState } from "@azure/core-lro";
13
- /**
14
- * Creates a poller from the serialized state of another poller. This can be
15
- * useful when you want to create pollers on a different host or a poller
16
- * needs to be constructed after the original one is not in scope.
17
- */
18
- export function restorePoller(client, serializedState, sourceOperation, options) {
19
- const pollerConfig = deserializeState(serializedState).config;
20
- const { initialRequestUrl, requestMethod, metadata } = pollerConfig;
21
- if (!initialRequestUrl || !requestMethod) {
22
- throw new Error(`Invalid serialized state: ${serializedState} for sourceOperation ${sourceOperation?.name}`);
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
23
63
  }
24
- const resourceLocationConfig = metadata?.["resourceLocationConfig"];
25
- const { deserializer, expectedStatuses = [] } = getDeserializationHelper(initialRequestUrl, requestMethod) ?? {};
26
- const deserializeHelper = options?.processResponseBody ?? deserializer;
27
- if (!deserializeHelper) {
28
- throw new Error(`Please ensure the operation is in this client! We can't find its deserializeHelper for ${sourceOperation?.name}.`);
29
- }
30
- return getLongRunningPoller(client["_client"] ?? client, deserializeHelper, expectedStatuses, {
31
- updateIntervalInMs: options?.updateIntervalInMs,
32
- abortSignal: options?.abortSignal,
33
- resourceLocationConfig,
34
- restoreFrom: serializedState,
35
- initialRequestUrl,
36
- });
64
+ );
37
65
  }
38
66
  const deserializeMap = {
39
- "POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/autoUpgradeProfiles/{autoUpgradeProfileName}/generateUpdateRun": {
40
- deserializer: _generateUpdateRunDeserialize,
41
- expectedStatuses: ["202", "200", "201"],
42
- },
43
- "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/autoUpgradeProfiles/{autoUpgradeProfileName}": {
44
- deserializer: _$deleteDeserialize,
45
- expectedStatuses: ["202", "204", "200", "201"],
46
- },
47
- "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/autoUpgradeProfiles/{autoUpgradeProfileName}": {
48
- deserializer: _createOrUpdateDeserialize,
49
- expectedStatuses: ["200", "201", "202"],
50
- },
51
- "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateStrategies/{updateStrategyName}": {
52
- deserializer: _$deleteDeserializeFleetUpdateStrategies,
53
- expectedStatuses: ["200", "202", "204", "201"],
54
- },
55
- "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateStrategies/{updateStrategyName}": {
56
- deserializer: _createOrUpdateDeserializeFleetUpdateStrategies,
57
- expectedStatuses: ["200", "201", "202"],
58
- },
59
- "POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateRuns/{updateRunName}/skip": { deserializer: _skipDeserialize, expectedStatuses: ["202", "200", "201"] },
60
- "POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateRuns/{updateRunName}/stop": { deserializer: _stopDeserialize, expectedStatuses: ["202", "200", "201"] },
61
- "POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateRuns/{updateRunName}/start": {
62
- deserializer: _startDeserialize,
63
- expectedStatuses: ["202", "200", "201"],
64
- },
65
- "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateRuns/{updateRunName}": {
66
- deserializer: _$deleteDeserializeUpdateRuns,
67
- expectedStatuses: ["200", "202", "204", "201"],
68
- },
69
- "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateRuns/{updateRunName}": {
70
- deserializer: _createOrUpdateDeserializeUpdateRuns,
71
- expectedStatuses: ["200", "201", "202"],
72
- },
73
- "PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/gates/{gateName}": {
74
- deserializer: _updateDeserialize,
75
- expectedStatuses: ["200", "202", "201"],
76
- },
77
- "PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/managedNamespaces/{managedNamespaceName}": {
78
- deserializer: _updateDeserializeFleetManagedNamespaces,
79
- expectedStatuses: ["200", "202", "201"],
80
- },
81
- "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/managedNamespaces/{managedNamespaceName}": {
82
- deserializer: _$deleteDeserializeFleetManagedNamespaces,
83
- expectedStatuses: ["202", "204", "200", "201"],
84
- },
85
- "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/managedNamespaces/{managedNamespaceName}": {
86
- deserializer: _createOrUpdateDeserializeFleetManagedNamespaces,
87
- expectedStatuses: ["200", "201", "202"],
88
- },
89
- "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/members/{fleetMemberName}": {
90
- deserializer: _$deleteDeserializeFleetMembers,
91
- expectedStatuses: ["200", "202", "204", "201"],
92
- },
93
- "PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/members/{fleetMemberName}": {
94
- deserializer: _updateAsyncDeserialize,
95
- expectedStatuses: ["200", "202", "201"],
96
- },
97
- "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/members/{fleetMemberName}": {
98
- deserializer: _createDeserialize,
99
- expectedStatuses: ["200", "201", "202"],
100
- },
101
- "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}": {
102
- deserializer: _$deleteDeserializeFleets,
103
- expectedStatuses: ["200", "202", "204", "201"],
104
- },
105
- "PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}": {
106
- deserializer: _updateAsyncDeserializeFleets,
107
- expectedStatuses: ["200", "202", "201"],
108
- },
109
- "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}": {
110
- deserializer: _createDeserializeFleets,
111
- expectedStatuses: ["200", "201", "202"],
112
- },
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"] }
113
102
  };
114
103
  function getDeserializationHelper(urlStr, method) {
115
- const path = new URL(urlStr).pathname;
116
- const pathParts = path.split("/");
117
- // Traverse list to match the longest candidate
118
- // matchedLen: the length of candidate path
119
- // matchedValue: the matched status code array
120
- let matchedLen = -1, matchedValue;
121
- // Iterate the responseMap to find a match
122
- for (const [key, value] of Object.entries(deserializeMap)) {
123
- // Extracting the path from the map key which is in format
124
- // GET /path/foo
125
- if (!key.startsWith(method)) {
126
- continue;
127
- }
128
- const candidatePath = getPathFromMapKey(key);
129
- // Get each part of the url path
130
- const candidateParts = candidatePath.split("/");
131
- // track if we have found a match to return the values found.
132
- let found = true;
133
- for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {
134
- if (candidateParts[i]?.startsWith("{") && candidateParts[i]?.indexOf("}") !== -1) {
135
- const start = candidateParts[i].indexOf("}") + 1, end = candidateParts[i]?.length;
136
- // If the current part of the candidate is a "template" part
137
- // Try to use the suffix of pattern to match the path
138
- // {guid} ==> $
139
- // {guid}:export ==> :export$
140
- const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test(pathParts[j] || "");
141
- if (!isMatched) {
142
- found = false;
143
- break;
144
- }
145
- continue;
146
- }
147
- // If the candidate part is not a template and
148
- // the parts don't match mark the candidate as not found
149
- // to move on with the next candidate path.
150
- if (candidateParts[i] !== pathParts[j]) {
151
- found = false;
152
- break;
153
- }
154
- }
155
- // We finished evaluating the current candidate parts
156
- // Update the matched value if and only if we found the longer pattern
157
- if (found && candidatePath.length > matchedLen) {
158
- matchedLen = candidatePath.length;
159
- matchedValue = value;
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;
160
123
  }
124
+ continue;
125
+ }
126
+ if (candidateParts[i] !== pathParts[j]) {
127
+ found = false;
128
+ break;
129
+ }
161
130
  }
162
- return matchedValue;
131
+ if (found && candidatePath.length > matchedLen) {
132
+ matchedLen = candidatePath.length;
133
+ matchedValue = value;
134
+ }
135
+ }
136
+ return matchedValue;
163
137
  }
164
138
  function getPathFromMapKey(mapKey) {
165
- const pathStart = mapKey.indexOf("/");
166
- return mapKey.slice(pathStart);
139
+ const pathStart = mapKey.indexOf("/");
140
+ return mapKey.slice(pathStart);
141
+ }
142
+ function getApiVersionFromUrl(urlStr) {
143
+ const url = new URL(urlStr);
144
+ return url.searchParams.get("api-version") ?? void 0;
167
145
  }
168
- //# sourceMappingURL=restorePollerHelpers.js.map
146
+ export {
147
+ restorePoller
148
+ };
@@ -1 +1,7 @@
1
- {"version":3,"file":"restorePollerHelpers.js","sourceRoot":"","sources":["../../src/restorePollerHelpers.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,6BAA6B,EAAE,MAAM,kDAAkD,CAAC;AACjG,OAAO,EACL,mBAAmB,EACnB,0BAA0B,GAC3B,MAAM,yCAAyC,CAAC;AACjD,OAAO,EACL,mBAAmB,IAAI,wCAAwC,EAC/D,0BAA0B,IAAI,+CAA+C,GAC9E,MAAM,2CAA2C,CAAC;AACnD,OAAO,EACL,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,EACjB,mBAAmB,IAAI,6BAA6B,EACpD,0BAA0B,IAAI,oCAAoC,GACnE,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EACL,kBAAkB,IAAI,wCAAwC,EAC9D,mBAAmB,IAAI,yCAAyC,EAChE,0BAA0B,IAAI,gDAAgD,GAC/E,MAAM,4CAA4C,CAAC;AACpD,OAAO,EACL,mBAAmB,IAAI,+BAA+B,EACtD,uBAAuB,EACvB,kBAAkB,GACnB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACL,mBAAmB,IAAI,yBAAyB,EAChD,uBAAuB,IAAI,6BAA6B,EACxD,kBAAkB,IAAI,wBAAwB,GAC/C,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAI1E,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAgBnD;;;;GAIG;AACH,MAAM,UAAU,aAAa,CAC3B,MAAmC,EACnC,eAAuB,EACvB,eAAiF,EACjF,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R,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","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 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: (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 {\n deserializer: _generateUpdateRunDeserialize,\n expectedStatuses: [\"202\", \"200\", \"201\"],\n },\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/autoUpgradeProfiles/{autoUpgradeProfileName}\":\n {\n deserializer: _$deleteDeserialize,\n expectedStatuses: [\"202\", \"204\", \"200\", \"201\"],\n },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/autoUpgradeProfiles/{autoUpgradeProfileName}\":\n {\n deserializer: _createOrUpdateDeserialize,\n expectedStatuses: [\"200\", \"201\", \"202\"],\n },\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateStrategies/{updateStrategyName}\":\n {\n deserializer: _$deleteDeserializeFleetUpdateStrategies,\n expectedStatuses: [\"200\", \"202\", \"204\", \"201\"],\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 {\n deserializer: _startDeserialize,\n expectedStatuses: [\"202\", \"200\", \"201\"],\n },\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateRuns/{updateRunName}\":\n {\n deserializer: _$deleteDeserializeUpdateRuns,\n expectedStatuses: [\"200\", \"202\", \"204\", \"201\"],\n },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateRuns/{updateRunName}\":\n {\n deserializer: _createOrUpdateDeserializeUpdateRuns,\n expectedStatuses: [\"200\", \"201\", \"202\"],\n },\n \"PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/gates/{gateName}\":\n {\n deserializer: _updateDeserialize,\n expectedStatuses: [\"200\", \"202\", \"201\"],\n },\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\", \"201\"],\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 {\n deserializer: _$deleteDeserializeFleetMembers,\n expectedStatuses: [\"200\", \"202\", \"204\", \"201\"],\n },\n \"PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/members/{fleetMemberName}\":\n {\n deserializer: _updateAsyncDeserialize,\n expectedStatuses: [\"200\", \"202\", \"201\"],\n },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/members/{fleetMemberName}\":\n {\n deserializer: _createDeserialize,\n expectedStatuses: [\"200\", \"201\", \"202\"],\n },\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}\":\n {\n deserializer: _$deleteDeserializeFleets,\n expectedStatuses: [\"200\", \"202\", \"204\", \"201\"],\n },\n \"PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}\":\n {\n deserializer: _updateAsyncDeserializeFleets,\n expectedStatuses: [\"200\", \"202\", \"201\"],\n },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}\":\n {\n deserializer: _createDeserializeFleets,\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"]}
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,QAA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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
- }
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
+ }
37
23
  }
38
- //# sourceMappingURL=cloudSettingHelpers.js.map
24
+ export {
25
+ AzureClouds,
26
+ getArmEndpoint
27
+ };
@@ -1 +1,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"]}
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
+ }
@@ -65,6 +65,7 @@ export interface BuildPagedAsyncIteratorOptions {
65
65
  itemName?: string;
66
66
  nextLinkName?: string;
67
67
  nextLinkMethod?: "GET" | "POST";
68
+ apiVersion?: string;
68
69
  }
69
70
  /**
70
71
  * Helper to paginate results in a generic way and return a PagedAsyncIterableIterator