@azure/arm-containerservice 25.0.0 → 25.1.0

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 (330) hide show
  1. package/dist/browser/api/agentPools/operations.js +15 -15
  2. package/dist/browser/api/agentPools/operations.js.map +1 -1
  3. package/dist/browser/api/containerServiceContext.js +1 -1
  4. package/dist/browser/api/containerServiceContext.js.map +1 -1
  5. package/dist/browser/api/machines/operations.js +3 -3
  6. package/dist/browser/api/machines/operations.js.map +1 -1
  7. package/dist/browser/api/maintenanceConfigurations/operations.js +5 -5
  8. package/dist/browser/api/maintenanceConfigurations/operations.js.map +1 -1
  9. package/dist/browser/api/managedClusters/operations.js +42 -42
  10. package/dist/browser/api/managedClusters/operations.js.map +1 -1
  11. package/dist/browser/api/managedNamespaces/operations.js +9 -9
  12. package/dist/browser/api/managedNamespaces/operations.js.map +1 -1
  13. package/dist/browser/api/operations/operations.js +2 -2
  14. package/dist/browser/api/operations/operations.js.map +1 -1
  15. package/dist/browser/api/privateEndpointConnections/operations.js +5 -5
  16. package/dist/browser/api/privateEndpointConnections/operations.js.map +1 -1
  17. package/dist/browser/api/privateLinkResources/operations.js +1 -1
  18. package/dist/browser/api/privateLinkResources/operations.js.map +1 -1
  19. package/dist/browser/api/resolvePrivateLinkServiceId/operations.js +1 -1
  20. package/dist/browser/api/resolvePrivateLinkServiceId/operations.js.map +1 -1
  21. package/dist/browser/api/snapshots/operations.js +8 -8
  22. package/dist/browser/api/snapshots/operations.js.map +1 -1
  23. package/dist/browser/api/trustedAccessRoleBindings/operations.js +7 -7
  24. package/dist/browser/api/trustedAccessRoleBindings/operations.js.map +1 -1
  25. package/dist/browser/api/trustedAccessRoles/operations.js +2 -2
  26. package/dist/browser/api/trustedAccessRoles/operations.js.map +1 -1
  27. package/dist/browser/index.d.ts +2 -2
  28. package/dist/browser/index.js +1 -1
  29. package/dist/browser/index.js.map +1 -1
  30. package/dist/browser/models/index.d.ts +2 -2
  31. package/dist/browser/models/index.js +1 -1
  32. package/dist/browser/models/index.js.map +1 -1
  33. package/dist/browser/models/models.d.ts +100 -6
  34. package/dist/browser/models/models.js +127 -10
  35. package/dist/browser/models/models.js.map +1 -1
  36. package/dist/commonjs/api/agentPools/index.js +1 -0
  37. package/dist/commonjs/api/agentPools/index.js.map +1 -1
  38. package/dist/commonjs/api/agentPools/operations.js +16 -15
  39. package/dist/commonjs/api/agentPools/operations.js.map +2 -2
  40. package/dist/commonjs/api/agentPools/options.js +1 -0
  41. package/dist/commonjs/api/agentPools/options.js.map +1 -1
  42. package/dist/commonjs/api/containerServiceContext.js +2 -1
  43. package/dist/commonjs/api/containerServiceContext.js.map +2 -2
  44. package/dist/commonjs/api/index.js +1 -0
  45. package/dist/commonjs/api/index.js.map +1 -1
  46. package/dist/commonjs/api/machines/index.js +1 -0
  47. package/dist/commonjs/api/machines/index.js.map +1 -1
  48. package/dist/commonjs/api/machines/operations.js +4 -3
  49. package/dist/commonjs/api/machines/operations.js.map +2 -2
  50. package/dist/commonjs/api/machines/options.js +1 -0
  51. package/dist/commonjs/api/machines/options.js.map +1 -1
  52. package/dist/commonjs/api/maintenanceConfigurations/index.js +1 -0
  53. package/dist/commonjs/api/maintenanceConfigurations/index.js.map +1 -1
  54. package/dist/commonjs/api/maintenanceConfigurations/operations.js +6 -5
  55. package/dist/commonjs/api/maintenanceConfigurations/operations.js.map +2 -2
  56. package/dist/commonjs/api/maintenanceConfigurations/options.js +1 -0
  57. package/dist/commonjs/api/maintenanceConfigurations/options.js.map +1 -1
  58. package/dist/commonjs/api/managedClusters/index.js +1 -0
  59. package/dist/commonjs/api/managedClusters/index.js.map +1 -1
  60. package/dist/commonjs/api/managedClusters/operations.js +43 -42
  61. package/dist/commonjs/api/managedClusters/operations.js.map +2 -2
  62. package/dist/commonjs/api/managedClusters/options.js +1 -0
  63. package/dist/commonjs/api/managedClusters/options.js.map +1 -1
  64. package/dist/commonjs/api/managedNamespaces/index.js +1 -0
  65. package/dist/commonjs/api/managedNamespaces/index.js.map +1 -1
  66. package/dist/commonjs/api/managedNamespaces/operations.js +10 -9
  67. package/dist/commonjs/api/managedNamespaces/operations.js.map +2 -2
  68. package/dist/commonjs/api/managedNamespaces/options.js +1 -0
  69. package/dist/commonjs/api/managedNamespaces/options.js.map +1 -1
  70. package/dist/commonjs/api/operations/index.js +1 -0
  71. package/dist/commonjs/api/operations/index.js.map +1 -1
  72. package/dist/commonjs/api/operations/operations.js +3 -2
  73. package/dist/commonjs/api/operations/operations.js.map +2 -2
  74. package/dist/commonjs/api/operations/options.js +1 -0
  75. package/dist/commonjs/api/operations/options.js.map +1 -1
  76. package/dist/commonjs/api/privateEndpointConnections/index.js +1 -0
  77. package/dist/commonjs/api/privateEndpointConnections/index.js.map +1 -1
  78. package/dist/commonjs/api/privateEndpointConnections/operations.js +6 -5
  79. package/dist/commonjs/api/privateEndpointConnections/operations.js.map +2 -2
  80. package/dist/commonjs/api/privateEndpointConnections/options.js +1 -0
  81. package/dist/commonjs/api/privateEndpointConnections/options.js.map +1 -1
  82. package/dist/commonjs/api/privateLinkResources/index.js +1 -0
  83. package/dist/commonjs/api/privateLinkResources/index.js.map +1 -1
  84. package/dist/commonjs/api/privateLinkResources/operations.js +2 -1
  85. package/dist/commonjs/api/privateLinkResources/operations.js.map +2 -2
  86. package/dist/commonjs/api/privateLinkResources/options.js +1 -0
  87. package/dist/commonjs/api/privateLinkResources/options.js.map +1 -1
  88. package/dist/commonjs/api/resolvePrivateLinkServiceId/index.js +1 -0
  89. package/dist/commonjs/api/resolvePrivateLinkServiceId/index.js.map +1 -1
  90. package/dist/commonjs/api/resolvePrivateLinkServiceId/operations.js +2 -1
  91. package/dist/commonjs/api/resolvePrivateLinkServiceId/operations.js.map +2 -2
  92. package/dist/commonjs/api/resolvePrivateLinkServiceId/options.js +1 -0
  93. package/dist/commonjs/api/resolvePrivateLinkServiceId/options.js.map +1 -1
  94. package/dist/commonjs/api/snapshots/index.js +1 -0
  95. package/dist/commonjs/api/snapshots/index.js.map +1 -1
  96. package/dist/commonjs/api/snapshots/operations.js +9 -8
  97. package/dist/commonjs/api/snapshots/operations.js.map +2 -2
  98. package/dist/commonjs/api/snapshots/options.js +1 -0
  99. package/dist/commonjs/api/snapshots/options.js.map +1 -1
  100. package/dist/commonjs/api/trustedAccessRoleBindings/index.js +1 -0
  101. package/dist/commonjs/api/trustedAccessRoleBindings/index.js.map +1 -1
  102. package/dist/commonjs/api/trustedAccessRoleBindings/operations.js +8 -7
  103. package/dist/commonjs/api/trustedAccessRoleBindings/operations.js.map +2 -2
  104. package/dist/commonjs/api/trustedAccessRoleBindings/options.js +1 -0
  105. package/dist/commonjs/api/trustedAccessRoleBindings/options.js.map +1 -1
  106. package/dist/commonjs/api/trustedAccessRoles/index.js +1 -0
  107. package/dist/commonjs/api/trustedAccessRoles/index.js.map +1 -1
  108. package/dist/commonjs/api/trustedAccessRoles/operations.js +3 -2
  109. package/dist/commonjs/api/trustedAccessRoles/operations.js.map +2 -2
  110. package/dist/commonjs/api/trustedAccessRoles/options.js +1 -0
  111. package/dist/commonjs/api/trustedAccessRoles/options.js.map +1 -1
  112. package/dist/commonjs/classic/agentPools/index.js +1 -0
  113. package/dist/commonjs/classic/agentPools/index.js.map +1 -1
  114. package/dist/commonjs/classic/index.js +1 -0
  115. package/dist/commonjs/classic/index.js.map +1 -1
  116. package/dist/commonjs/classic/machines/index.js +1 -0
  117. package/dist/commonjs/classic/machines/index.js.map +1 -1
  118. package/dist/commonjs/classic/maintenanceConfigurations/index.js +1 -0
  119. package/dist/commonjs/classic/maintenanceConfigurations/index.js.map +1 -1
  120. package/dist/commonjs/classic/managedClusters/index.js +1 -0
  121. package/dist/commonjs/classic/managedClusters/index.js.map +1 -1
  122. package/dist/commonjs/classic/managedNamespaces/index.js +1 -0
  123. package/dist/commonjs/classic/managedNamespaces/index.js.map +1 -1
  124. package/dist/commonjs/classic/operations/index.js +1 -0
  125. package/dist/commonjs/classic/operations/index.js.map +1 -1
  126. package/dist/commonjs/classic/privateEndpointConnections/index.js +1 -0
  127. package/dist/commonjs/classic/privateEndpointConnections/index.js.map +1 -1
  128. package/dist/commonjs/classic/privateLinkResources/index.js +1 -0
  129. package/dist/commonjs/classic/privateLinkResources/index.js.map +1 -1
  130. package/dist/commonjs/classic/resolvePrivateLinkServiceId/index.js +1 -0
  131. package/dist/commonjs/classic/resolvePrivateLinkServiceId/index.js.map +1 -1
  132. package/dist/commonjs/classic/snapshots/index.js +1 -0
  133. package/dist/commonjs/classic/snapshots/index.js.map +1 -1
  134. package/dist/commonjs/classic/trustedAccessRoleBindings/index.js +1 -0
  135. package/dist/commonjs/classic/trustedAccessRoleBindings/index.js.map +1 -1
  136. package/dist/commonjs/classic/trustedAccessRoles/index.js +1 -0
  137. package/dist/commonjs/classic/trustedAccessRoles/index.js.map +1 -1
  138. package/dist/commonjs/containerServiceClient.js +1 -0
  139. package/dist/commonjs/containerServiceClient.js.map +1 -1
  140. package/dist/commonjs/index.d.ts +2 -2
  141. package/dist/commonjs/index.js +5 -0
  142. package/dist/commonjs/index.js.map +3 -3
  143. package/dist/commonjs/logger.js +1 -0
  144. package/dist/commonjs/logger.js.map +1 -1
  145. package/dist/commonjs/models/index.d.ts +2 -2
  146. package/dist/commonjs/models/index.js +5 -0
  147. package/dist/commonjs/models/index.js.map +3 -3
  148. package/dist/commonjs/models/models.d.ts +100 -6
  149. package/dist/commonjs/models/models.js +132 -14
  150. package/dist/commonjs/models/models.js.map +4 -4
  151. package/dist/commonjs/restorePollerHelpers.js +1 -0
  152. package/dist/commonjs/restorePollerHelpers.js.map +1 -1
  153. package/dist/commonjs/static-helpers/cloudSettingHelpers.js +1 -0
  154. package/dist/commonjs/static-helpers/cloudSettingHelpers.js.map +1 -1
  155. package/dist/commonjs/static-helpers/pagingHelpers.js +1 -0
  156. package/dist/commonjs/static-helpers/pagingHelpers.js.map +1 -1
  157. package/dist/commonjs/static-helpers/pollingHelpers.js +1 -0
  158. package/dist/commonjs/static-helpers/pollingHelpers.js.map +1 -1
  159. package/dist/commonjs/static-helpers/serialization/check-prop-undefined.js +1 -0
  160. package/dist/commonjs/static-helpers/serialization/check-prop-undefined.js.map +1 -1
  161. package/dist/commonjs/static-helpers/simplePollerHelpers.js +1 -0
  162. package/dist/commonjs/static-helpers/simplePollerHelpers.js.map +1 -1
  163. package/dist/commonjs/static-helpers/urlTemplate.js +1 -0
  164. package/dist/commonjs/static-helpers/urlTemplate.js.map +1 -1
  165. package/dist/commonjs/tsdoc-metadata.json +1 -1
  166. package/dist/esm/api/agentPools/index.js +4 -22
  167. package/dist/esm/api/agentPools/index.js.map +1 -7
  168. package/dist/esm/api/agentPools/operations.js +266 -364
  169. package/dist/esm/api/agentPools/operations.js.map +1 -7
  170. package/dist/esm/api/agentPools/options.js +4 -0
  171. package/dist/esm/api/agentPools/options.js.map +1 -7
  172. package/dist/esm/api/containerServiceContext.js +20 -17
  173. package/dist/esm/api/containerServiceContext.js.map +1 -7
  174. package/dist/esm/api/index.js +4 -4
  175. package/dist/esm/api/index.js.map +1 -7
  176. package/dist/esm/api/machines/index.js +4 -5
  177. package/dist/esm/api/machines/index.js.map +1 -7
  178. package/dist/esm/api/machines/operations.js +55 -83
  179. package/dist/esm/api/machines/operations.js.map +1 -7
  180. package/dist/esm/api/machines/options.js +4 -0
  181. package/dist/esm/api/machines/options.js.map +1 -7
  182. package/dist/esm/api/maintenanceConfigurations/index.js +4 -7
  183. package/dist/esm/api/maintenanceConfigurations/index.js.map +1 -7
  184. package/dist/esm/api/maintenanceConfigurations/operations.js +107 -143
  185. package/dist/esm/api/maintenanceConfigurations/operations.js.map +1 -7
  186. package/dist/esm/api/maintenanceConfigurations/options.js +4 -0
  187. package/dist/esm/api/maintenanceConfigurations/options.js.map +1 -7
  188. package/dist/esm/api/managedClusters/index.js +4 -56
  189. package/dist/esm/api/managedClusters/index.js.map +1 -7
  190. package/dist/esm/api/managedClusters/operations.js +772 -1035
  191. package/dist/esm/api/managedClusters/operations.js.map +1 -7
  192. package/dist/esm/api/managedClusters/options.js +4 -0
  193. package/dist/esm/api/managedClusters/options.js.map +1 -7
  194. package/dist/esm/api/managedNamespaces/index.js +4 -16
  195. package/dist/esm/api/managedNamespaces/index.js.map +1 -7
  196. package/dist/esm/api/managedNamespaces/operations.js +184 -253
  197. package/dist/esm/api/managedNamespaces/operations.js.map +1 -7
  198. package/dist/esm/api/managedNamespaces/options.js +4 -0
  199. package/dist/esm/api/managedNamespaces/options.js.map +1 -7
  200. package/dist/esm/api/operations/index.js +4 -4
  201. package/dist/esm/api/operations/index.js.map +1 -7
  202. package/dist/esm/api/operations/operations.js +25 -39
  203. package/dist/esm/api/operations/operations.js.map +1 -7
  204. package/dist/esm/api/operations/options.js +4 -0
  205. package/dist/esm/api/operations/options.js.map +1 -7
  206. package/dist/esm/api/privateEndpointConnections/index.js +4 -7
  207. package/dist/esm/api/privateEndpointConnections/index.js.map +1 -7
  208. package/dist/esm/api/privateEndpointConnections/operations.js +113 -155
  209. package/dist/esm/api/privateEndpointConnections/operations.js.map +1 -7
  210. package/dist/esm/api/privateEndpointConnections/options.js +4 -0
  211. package/dist/esm/api/privateEndpointConnections/options.js.map +1 -7
  212. package/dist/esm/api/privateLinkResources/index.js +4 -4
  213. package/dist/esm/api/privateLinkResources/index.js.map +1 -7
  214. package/dist/esm/api/privateLinkResources/operations.js +29 -37
  215. package/dist/esm/api/privateLinkResources/operations.js.map +1 -7
  216. package/dist/esm/api/privateLinkResources/options.js +4 -0
  217. package/dist/esm/api/privateLinkResources/options.js.map +1 -7
  218. package/dist/esm/api/resolvePrivateLinkServiceId/index.js +4 -4
  219. package/dist/esm/api/resolvePrivateLinkServiceId/index.js.map +1 -7
  220. package/dist/esm/api/resolvePrivateLinkServiceId/operations.js +31 -40
  221. package/dist/esm/api/resolvePrivateLinkServiceId/operations.js.map +1 -7
  222. package/dist/esm/api/resolvePrivateLinkServiceId/options.js +4 -0
  223. package/dist/esm/api/resolvePrivateLinkServiceId/options.js.map +1 -7
  224. package/dist/esm/api/snapshots/index.js +4 -16
  225. package/dist/esm/api/snapshots/index.js.map +1 -7
  226. package/dist/esm/api/snapshots/operations.js +167 -227
  227. package/dist/esm/api/snapshots/operations.js.map +1 -7
  228. package/dist/esm/api/snapshots/options.js +4 -0
  229. package/dist/esm/api/snapshots/options.js.map +1 -7
  230. package/dist/esm/api/trustedAccessRoleBindings/index.js +4 -7
  231. package/dist/esm/api/trustedAccessRoleBindings/index.js.map +1 -7
  232. package/dist/esm/api/trustedAccessRoleBindings/operations.js +117 -159
  233. package/dist/esm/api/trustedAccessRoleBindings/operations.js.map +1 -7
  234. package/dist/esm/api/trustedAccessRoleBindings/options.js +4 -0
  235. package/dist/esm/api/trustedAccessRoleBindings/options.js.map +1 -7
  236. package/dist/esm/api/trustedAccessRoles/index.js +4 -4
  237. package/dist/esm/api/trustedAccessRoles/index.js.map +1 -7
  238. package/dist/esm/api/trustedAccessRoles/operations.js +27 -41
  239. package/dist/esm/api/trustedAccessRoles/operations.js.map +1 -7
  240. package/dist/esm/api/trustedAccessRoles/options.js +4 -0
  241. package/dist/esm/api/trustedAccessRoles/options.js.map +1 -7
  242. package/dist/esm/classic/agentPools/index.js +59 -121
  243. package/dist/esm/classic/agentPools/index.js.map +1 -7
  244. package/dist/esm/classic/index.js +4 -0
  245. package/dist/esm/classic/index.js.map +1 -7
  246. package/dist/esm/classic/machines/index.js +11 -11
  247. package/dist/esm/classic/machines/index.js.map +1 -7
  248. package/dist/esm/classic/maintenanceConfigurations/index.js +14 -19
  249. package/dist/esm/classic/maintenanceConfigurations/index.js.map +1 -7
  250. package/dist/esm/classic/managedClusters/index.js +124 -173
  251. package/dist/esm/classic/managedClusters/index.js.map +1 -7
  252. package/dist/esm/classic/managedNamespaces/index.js +32 -66
  253. package/dist/esm/classic/managedNamespaces/index.js.map +1 -7
  254. package/dist/esm/classic/operations/index.js +10 -10
  255. package/dist/esm/classic/operations/index.js.map +1 -7
  256. package/dist/esm/classic/privateEndpointConnections/index.js +21 -40
  257. package/dist/esm/classic/privateEndpointConnections/index.js.map +1 -7
  258. package/dist/esm/classic/privateLinkResources/index.js +10 -10
  259. package/dist/esm/classic/privateLinkResources/index.js.map +1 -7
  260. package/dist/esm/classic/resolvePrivateLinkServiceId/index.js +10 -10
  261. package/dist/esm/classic/resolvePrivateLinkServiceId/index.js.map +1 -7
  262. package/dist/esm/classic/snapshots/index.js +16 -23
  263. package/dist/esm/classic/snapshots/index.js.map +1 -7
  264. package/dist/esm/classic/trustedAccessRoleBindings/index.js +30 -68
  265. package/dist/esm/classic/trustedAccessRoleBindings/index.js.map +1 -7
  266. package/dist/esm/classic/trustedAccessRoles/index.js +10 -10
  267. package/dist/esm/classic/trustedAccessRoles/index.js.map +1 -7
  268. package/dist/esm/containerServiceClient.js +62 -59
  269. package/dist/esm/containerServiceClient.js.map +1 -7
  270. package/dist/esm/index.d.ts +2 -2
  271. package/dist/esm/index.js +7 -147
  272. package/dist/esm/index.js.map +1 -7
  273. package/dist/esm/logger.js +4 -4
  274. package/dist/esm/logger.js.map +1 -7
  275. package/dist/esm/models/index.d.ts +2 -2
  276. package/dist/esm/models/index.js +4 -142
  277. package/dist/esm/models/index.js.map +1 -7
  278. package/dist/esm/models/models.d.ts +100 -6
  279. package/dist/esm/models/models.js +4899 -4137
  280. package/dist/esm/models/models.js.map +1 -7
  281. package/dist/esm/restorePollerHelpers.js +127 -140
  282. package/dist/esm/restorePollerHelpers.js.map +1 -7
  283. package/dist/esm/static-helpers/cloudSettingHelpers.js +37 -26
  284. package/dist/esm/static-helpers/cloudSettingHelpers.js.map +1 -7
  285. package/dist/esm/static-helpers/pagingHelpers.js +122 -98
  286. package/dist/esm/static-helpers/pagingHelpers.js.map +1 -7
  287. package/dist/esm/static-helpers/pollingHelpers.js +86 -68
  288. package/dist/esm/static-helpers/pollingHelpers.js.map +1 -7
  289. package/dist/esm/static-helpers/serialization/check-prop-undefined.js +15 -9
  290. package/dist/esm/static-helpers/serialization/check-prop-undefined.js.map +1 -7
  291. package/dist/esm/static-helpers/simplePollerHelpers.js +43 -42
  292. package/dist/esm/static-helpers/simplePollerHelpers.js.map +1 -7
  293. package/dist/esm/static-helpers/urlTemplate.js +169 -142
  294. package/dist/esm/static-helpers/urlTemplate.js.map +1 -7
  295. package/dist/react-native/api/agentPools/operations.js +15 -15
  296. package/dist/react-native/api/agentPools/operations.js.map +1 -1
  297. package/dist/react-native/api/containerServiceContext.js +1 -1
  298. package/dist/react-native/api/containerServiceContext.js.map +1 -1
  299. package/dist/react-native/api/machines/operations.js +3 -3
  300. package/dist/react-native/api/machines/operations.js.map +1 -1
  301. package/dist/react-native/api/maintenanceConfigurations/operations.js +5 -5
  302. package/dist/react-native/api/maintenanceConfigurations/operations.js.map +1 -1
  303. package/dist/react-native/api/managedClusters/operations.js +42 -42
  304. package/dist/react-native/api/managedClusters/operations.js.map +1 -1
  305. package/dist/react-native/api/managedNamespaces/operations.js +9 -9
  306. package/dist/react-native/api/managedNamespaces/operations.js.map +1 -1
  307. package/dist/react-native/api/operations/operations.js +2 -2
  308. package/dist/react-native/api/operations/operations.js.map +1 -1
  309. package/dist/react-native/api/privateEndpointConnections/operations.js +5 -5
  310. package/dist/react-native/api/privateEndpointConnections/operations.js.map +1 -1
  311. package/dist/react-native/api/privateLinkResources/operations.js +1 -1
  312. package/dist/react-native/api/privateLinkResources/operations.js.map +1 -1
  313. package/dist/react-native/api/resolvePrivateLinkServiceId/operations.js +1 -1
  314. package/dist/react-native/api/resolvePrivateLinkServiceId/operations.js.map +1 -1
  315. package/dist/react-native/api/snapshots/operations.js +8 -8
  316. package/dist/react-native/api/snapshots/operations.js.map +1 -1
  317. package/dist/react-native/api/trustedAccessRoleBindings/operations.js +7 -7
  318. package/dist/react-native/api/trustedAccessRoleBindings/operations.js.map +1 -1
  319. package/dist/react-native/api/trustedAccessRoles/operations.js +2 -2
  320. package/dist/react-native/api/trustedAccessRoles/operations.js.map +1 -1
  321. package/dist/react-native/index.d.ts +2 -2
  322. package/dist/react-native/index.js +1 -1
  323. package/dist/react-native/index.js.map +1 -1
  324. package/dist/react-native/models/index.d.ts +2 -2
  325. package/dist/react-native/models/index.js +1 -1
  326. package/dist/react-native/models/index.js.map +1 -1
  327. package/dist/react-native/models/models.d.ts +100 -6
  328. package/dist/react-native/models/models.js +127 -10
  329. package/dist/react-native/models/models.js.map +1 -1
  330. package/package.json +7 -7
@@ -1,1069 +1,806 @@
1
- import {
2
- errorResponseDeserializer,
3
- managedClusterSerializer,
4
- managedClusterDeserializer,
5
- managedClusterServicePrincipalProfileSerializer,
6
- managedClusterAADProfileSerializer,
7
- tagsObjectSerializer,
8
- _managedClusterListResultDeserializer,
9
- managedClusterAccessProfileDeserializer,
10
- credentialResultsDeserializer,
11
- runCommandRequestSerializer,
12
- runCommandResultDeserializer,
13
- _outboundEnvironmentEndpointCollectionDeserializer,
14
- managedClusterUpgradeProfileDeserializer,
15
- meshRevisionProfileDeserializer,
16
- _meshRevisionProfileListDeserializer,
17
- meshUpgradeProfileDeserializer,
18
- _meshUpgradeProfileListDeserializer,
19
- kubernetesVersionListResultDeserializer
20
- } from "../../models/models.js";
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ import { errorResponseDeserializer, managedClusterSerializer, managedClusterDeserializer, managedClusterServicePrincipalProfileSerializer, managedClusterAADProfileSerializer, tagsObjectSerializer, _managedClusterListResultDeserializer, managedClusterAccessProfileDeserializer, credentialResultsDeserializer, runCommandRequestSerializer, runCommandResultDeserializer, _outboundEnvironmentEndpointCollectionDeserializer, managedClusterUpgradeProfileDeserializer, meshRevisionProfileDeserializer, _meshRevisionProfileListDeserializer, meshUpgradeProfileDeserializer, _meshUpgradeProfileListDeserializer, kubernetesVersionListResultDeserializer, } from "../../models/models.js";
21
4
  import { buildPagedAsyncIterator } from "../../static-helpers/pagingHelpers.js";
22
5
  import { getLongRunningPoller } from "../../static-helpers/pollingHelpers.js";
23
6
  import { expandUrlTemplate } from "../../static-helpers/urlTemplate.js";
24
7
  import { createRestError, operationOptionsToRequestParameters } from "@azure-rest/core-client";
25
- function _listKubernetesVersionsSend(context, location, options = { requestOptions: {} }) {
26
- const path = expandUrlTemplate(
27
- "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/locations/{location}/kubernetesVersions{?api%2Dversion}",
28
- {
29
- subscriptionId: context.subscriptionId,
30
- location,
31
- "api%2Dversion": context.apiVersion ?? "2026-01-01"
32
- },
33
- {
34
- allowReserved: options?.requestOptions?.skipUrlEncoding
8
+ export function _listKubernetesVersionsSend(context, location, options = { requestOptions: {} }) {
9
+ const path = expandUrlTemplate("/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/locations/{location}/kubernetesVersions{?api%2Dversion}", {
10
+ subscriptionId: context.subscriptionId,
11
+ location: location,
12
+ "api%2Dversion": context.apiVersion ?? "2026-02-01",
13
+ }, {
14
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
15
+ });
16
+ return context.path(path).get({
17
+ ...operationOptionsToRequestParameters(options),
18
+ headers: { accept: "application/json", ...options.requestOptions?.headers },
19
+ });
20
+ }
21
+ export async function _listKubernetesVersionsDeserialize(result) {
22
+ const expectedStatuses = ["200"];
23
+ if (!expectedStatuses.includes(result.status)) {
24
+ const error = createRestError(result);
25
+ error.details = errorResponseDeserializer(result.body);
26
+ throw error;
35
27
  }
36
- );
37
- return context.path(path).get({
38
- ...operationOptionsToRequestParameters(options),
39
- headers: { accept: "application/json", ...options.requestOptions?.headers }
40
- });
41
- }
42
- async function _listKubernetesVersionsDeserialize(result) {
43
- const expectedStatuses = ["200"];
44
- if (!expectedStatuses.includes(result.status)) {
45
- const error = createRestError(result);
46
- error.details = errorResponseDeserializer(result.body);
47
- throw error;
48
- }
49
- return kubernetesVersionListResultDeserializer(result.body);
50
- }
51
- async function listKubernetesVersions(context, location, options = { requestOptions: {} }) {
52
- const result = await _listKubernetesVersionsSend(context, location, options);
53
- return _listKubernetesVersionsDeserialize(result);
54
- }
55
- function _listMeshUpgradeProfilesSend(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
56
- const path = expandUrlTemplate(
57
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/meshUpgradeProfiles{?api%2Dversion}",
58
- {
59
- subscriptionId: context.subscriptionId,
60
- resourceGroupName,
61
- resourceName,
62
- "api%2Dversion": context.apiVersion ?? "2026-01-01"
63
- },
64
- {
65
- allowReserved: options?.requestOptions?.skipUrlEncoding
28
+ return kubernetesVersionListResultDeserializer(result.body);
29
+ }
30
+ /** Contains extra metadata on the version, including supported patch versions, capabilities, available upgrades, and details on preview status of the version */
31
+ export async function listKubernetesVersions(context, location, options = { requestOptions: {} }) {
32
+ const result = await _listKubernetesVersionsSend(context, location, options);
33
+ return _listKubernetesVersionsDeserialize(result);
34
+ }
35
+ export function _listMeshUpgradeProfilesSend(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
36
+ const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/meshUpgradeProfiles{?api%2Dversion}", {
37
+ subscriptionId: context.subscriptionId,
38
+ resourceGroupName: resourceGroupName,
39
+ resourceName: resourceName,
40
+ "api%2Dversion": context.apiVersion ?? "2026-02-01",
41
+ }, {
42
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
43
+ });
44
+ return context.path(path).get({
45
+ ...operationOptionsToRequestParameters(options),
46
+ headers: { accept: "application/json", ...options.requestOptions?.headers },
47
+ });
48
+ }
49
+ export async function _listMeshUpgradeProfilesDeserialize(result) {
50
+ const expectedStatuses = ["200"];
51
+ if (!expectedStatuses.includes(result.status)) {
52
+ const error = createRestError(result);
53
+ error.details = errorResponseDeserializer(result.body);
54
+ throw error;
66
55
  }
67
- );
68
- return context.path(path).get({
69
- ...operationOptionsToRequestParameters(options),
70
- headers: { accept: "application/json", ...options.requestOptions?.headers }
71
- });
72
- }
73
- async function _listMeshUpgradeProfilesDeserialize(result) {
74
- const expectedStatuses = ["200"];
75
- if (!expectedStatuses.includes(result.status)) {
76
- const error = createRestError(result);
77
- error.details = errorResponseDeserializer(result.body);
78
- throw error;
79
- }
80
- return _meshUpgradeProfileListDeserializer(result.body);
81
- }
82
- function listMeshUpgradeProfiles(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
83
- return buildPagedAsyncIterator(
84
- context,
85
- () => _listMeshUpgradeProfilesSend(context, resourceGroupName, resourceName, options),
86
- _listMeshUpgradeProfilesDeserialize,
87
- ["200"],
88
- { itemName: "value", nextLinkName: "nextLink", apiVersion: context.apiVersion ?? "2026-01-01" }
89
- );
90
- }
91
- function _getMeshUpgradeProfileSend(context, resourceGroupName, resourceName, mode, options = { requestOptions: {} }) {
92
- const path = expandUrlTemplate(
93
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/meshUpgradeProfiles/{mode}{?api%2Dversion}",
94
- {
95
- subscriptionId: context.subscriptionId,
96
- resourceGroupName,
97
- resourceName,
98
- mode,
99
- "api%2Dversion": context.apiVersion ?? "2026-01-01"
100
- },
101
- {
102
- allowReserved: options?.requestOptions?.skipUrlEncoding
56
+ return _meshUpgradeProfileListDeserializer(result.body);
57
+ }
58
+ /** Lists available upgrades for all service meshes in a specific cluster. */
59
+ export function listMeshUpgradeProfiles(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
60
+ return buildPagedAsyncIterator(context, () => _listMeshUpgradeProfilesSend(context, resourceGroupName, resourceName, options), _listMeshUpgradeProfilesDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink", apiVersion: context.apiVersion ?? "2026-02-01" });
61
+ }
62
+ export function _getMeshUpgradeProfileSend(context, resourceGroupName, resourceName, mode, options = { requestOptions: {} }) {
63
+ const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/meshUpgradeProfiles/{mode}{?api%2Dversion}", {
64
+ subscriptionId: context.subscriptionId,
65
+ resourceGroupName: resourceGroupName,
66
+ resourceName: resourceName,
67
+ mode: mode,
68
+ "api%2Dversion": context.apiVersion ?? "2026-02-01",
69
+ }, {
70
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
71
+ });
72
+ return context.path(path).get({
73
+ ...operationOptionsToRequestParameters(options),
74
+ headers: { accept: "application/json", ...options.requestOptions?.headers },
75
+ });
76
+ }
77
+ export async function _getMeshUpgradeProfileDeserialize(result) {
78
+ const expectedStatuses = ["200"];
79
+ if (!expectedStatuses.includes(result.status)) {
80
+ const error = createRestError(result);
81
+ error.details = errorResponseDeserializer(result.body);
82
+ throw error;
103
83
  }
104
- );
105
- return context.path(path).get({
106
- ...operationOptionsToRequestParameters(options),
107
- headers: { accept: "application/json", ...options.requestOptions?.headers }
108
- });
109
- }
110
- async function _getMeshUpgradeProfileDeserialize(result) {
111
- const expectedStatuses = ["200"];
112
- if (!expectedStatuses.includes(result.status)) {
113
- const error = createRestError(result);
114
- error.details = errorResponseDeserializer(result.body);
115
- throw error;
116
- }
117
- return meshUpgradeProfileDeserializer(result.body);
118
- }
119
- async function getMeshUpgradeProfile(context, resourceGroupName, resourceName, mode, options = { requestOptions: {} }) {
120
- const result = await _getMeshUpgradeProfileSend(
121
- context,
122
- resourceGroupName,
123
- resourceName,
124
- mode,
125
- options
126
- );
127
- return _getMeshUpgradeProfileDeserialize(result);
128
- }
129
- function _listMeshRevisionProfilesSend(context, location, options = { requestOptions: {} }) {
130
- const path = expandUrlTemplate(
131
- "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/locations/{location}/meshRevisionProfiles{?api%2Dversion}",
132
- {
133
- subscriptionId: context.subscriptionId,
134
- location,
135
- "api%2Dversion": context.apiVersion ?? "2026-01-01"
136
- },
137
- {
138
- allowReserved: options?.requestOptions?.skipUrlEncoding
84
+ return meshUpgradeProfileDeserializer(result.body);
85
+ }
86
+ /** Gets available upgrades for a service mesh in a cluster. */
87
+ export async function getMeshUpgradeProfile(context, resourceGroupName, resourceName, mode, options = { requestOptions: {} }) {
88
+ const result = await _getMeshUpgradeProfileSend(context, resourceGroupName, resourceName, mode, options);
89
+ return _getMeshUpgradeProfileDeserialize(result);
90
+ }
91
+ export function _listMeshRevisionProfilesSend(context, location, options = { requestOptions: {} }) {
92
+ const path = expandUrlTemplate("/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/locations/{location}/meshRevisionProfiles{?api%2Dversion}", {
93
+ subscriptionId: context.subscriptionId,
94
+ location: location,
95
+ "api%2Dversion": context.apiVersion ?? "2026-02-01",
96
+ }, {
97
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
98
+ });
99
+ return context.path(path).get({
100
+ ...operationOptionsToRequestParameters(options),
101
+ headers: { accept: "application/json", ...options.requestOptions?.headers },
102
+ });
103
+ }
104
+ export async function _listMeshRevisionProfilesDeserialize(result) {
105
+ const expectedStatuses = ["200"];
106
+ if (!expectedStatuses.includes(result.status)) {
107
+ const error = createRestError(result);
108
+ error.details = errorResponseDeserializer(result.body);
109
+ throw error;
139
110
  }
140
- );
141
- return context.path(path).get({
142
- ...operationOptionsToRequestParameters(options),
143
- headers: { accept: "application/json", ...options.requestOptions?.headers }
144
- });
145
- }
146
- async function _listMeshRevisionProfilesDeserialize(result) {
147
- const expectedStatuses = ["200"];
148
- if (!expectedStatuses.includes(result.status)) {
149
- const error = createRestError(result);
150
- error.details = errorResponseDeserializer(result.body);
151
- throw error;
152
- }
153
- return _meshRevisionProfileListDeserializer(result.body);
154
- }
155
- function listMeshRevisionProfiles(context, location, options = { requestOptions: {} }) {
156
- return buildPagedAsyncIterator(
157
- context,
158
- () => _listMeshRevisionProfilesSend(context, location, options),
159
- _listMeshRevisionProfilesDeserialize,
160
- ["200"],
161
- { itemName: "value", nextLinkName: "nextLink", apiVersion: context.apiVersion ?? "2026-01-01" }
162
- );
163
- }
164
- function _getMeshRevisionProfileSend(context, location, mode, options = { requestOptions: {} }) {
165
- const path = expandUrlTemplate(
166
- "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/locations/{location}/meshRevisionProfiles/{mode}{?api%2Dversion}",
167
- {
168
- subscriptionId: context.subscriptionId,
169
- location,
170
- mode,
171
- "api%2Dversion": context.apiVersion ?? "2026-01-01"
172
- },
173
- {
174
- allowReserved: options?.requestOptions?.skipUrlEncoding
111
+ return _meshRevisionProfileListDeserializer(result.body);
112
+ }
113
+ /** Contains extra metadata on each revision, including supported revisions, cluster compatibility and available upgrades */
114
+ export function listMeshRevisionProfiles(context, location, options = { requestOptions: {} }) {
115
+ return buildPagedAsyncIterator(context, () => _listMeshRevisionProfilesSend(context, location, options), _listMeshRevisionProfilesDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink", apiVersion: context.apiVersion ?? "2026-02-01" });
116
+ }
117
+ export function _getMeshRevisionProfileSend(context, location, mode, options = { requestOptions: {} }) {
118
+ const path = expandUrlTemplate("/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/locations/{location}/meshRevisionProfiles/{mode}{?api%2Dversion}", {
119
+ subscriptionId: context.subscriptionId,
120
+ location: location,
121
+ mode: mode,
122
+ "api%2Dversion": context.apiVersion ?? "2026-02-01",
123
+ }, {
124
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
125
+ });
126
+ return context.path(path).get({
127
+ ...operationOptionsToRequestParameters(options),
128
+ headers: { accept: "application/json", ...options.requestOptions?.headers },
129
+ });
130
+ }
131
+ export async function _getMeshRevisionProfileDeserialize(result) {
132
+ const expectedStatuses = ["200"];
133
+ if (!expectedStatuses.includes(result.status)) {
134
+ const error = createRestError(result);
135
+ error.details = errorResponseDeserializer(result.body);
136
+ throw error;
175
137
  }
176
- );
177
- return context.path(path).get({
178
- ...operationOptionsToRequestParameters(options),
179
- headers: { accept: "application/json", ...options.requestOptions?.headers }
180
- });
181
- }
182
- async function _getMeshRevisionProfileDeserialize(result) {
183
- const expectedStatuses = ["200"];
184
- if (!expectedStatuses.includes(result.status)) {
185
- const error = createRestError(result);
186
- error.details = errorResponseDeserializer(result.body);
187
- throw error;
188
- }
189
- return meshRevisionProfileDeserializer(result.body);
190
- }
191
- async function getMeshRevisionProfile(context, location, mode, options = { requestOptions: {} }) {
192
- const result = await _getMeshRevisionProfileSend(context, location, mode, options);
193
- return _getMeshRevisionProfileDeserialize(result);
194
- }
195
- function _getUpgradeProfileSend(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
196
- const path = expandUrlTemplate(
197
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/upgradeProfiles/default{?api%2Dversion}",
198
- {
199
- subscriptionId: context.subscriptionId,
200
- resourceGroupName,
201
- resourceName,
202
- "api%2Dversion": context.apiVersion ?? "2026-01-01"
203
- },
204
- {
205
- allowReserved: options?.requestOptions?.skipUrlEncoding
138
+ return meshRevisionProfileDeserializer(result.body);
139
+ }
140
+ /** Contains extra metadata on the revision, including supported revisions, cluster compatibility and available upgrades */
141
+ export async function getMeshRevisionProfile(context, location, mode, options = { requestOptions: {} }) {
142
+ const result = await _getMeshRevisionProfileSend(context, location, mode, options);
143
+ return _getMeshRevisionProfileDeserialize(result);
144
+ }
145
+ export function _getUpgradeProfileSend(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
146
+ const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/upgradeProfiles/default{?api%2Dversion}", {
147
+ subscriptionId: context.subscriptionId,
148
+ resourceGroupName: resourceGroupName,
149
+ resourceName: resourceName,
150
+ "api%2Dversion": context.apiVersion ?? "2026-02-01",
151
+ }, {
152
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
153
+ });
154
+ return context.path(path).get({
155
+ ...operationOptionsToRequestParameters(options),
156
+ headers: { accept: "application/json", ...options.requestOptions?.headers },
157
+ });
158
+ }
159
+ export async function _getUpgradeProfileDeserialize(result) {
160
+ const expectedStatuses = ["200"];
161
+ if (!expectedStatuses.includes(result.status)) {
162
+ const error = createRestError(result);
163
+ error.details = errorResponseDeserializer(result.body);
164
+ throw error;
206
165
  }
207
- );
208
- return context.path(path).get({
209
- ...operationOptionsToRequestParameters(options),
210
- headers: { accept: "application/json", ...options.requestOptions?.headers }
211
- });
212
- }
213
- async function _getUpgradeProfileDeserialize(result) {
214
- const expectedStatuses = ["200"];
215
- if (!expectedStatuses.includes(result.status)) {
216
- const error = createRestError(result);
217
- error.details = errorResponseDeserializer(result.body);
218
- throw error;
219
- }
220
- return managedClusterUpgradeProfileDeserializer(result.body);
221
- }
222
- async function getUpgradeProfile(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
223
- const result = await _getUpgradeProfileSend(context, resourceGroupName, resourceName, options);
224
- return _getUpgradeProfileDeserialize(result);
225
- }
226
- function _listOutboundNetworkDependenciesEndpointsSend(context, resourceGroupName, resourceName, options = {
227
- requestOptions: {}
166
+ return managedClusterUpgradeProfileDeserializer(result.body);
167
+ }
168
+ /** Gets the upgrade profile of a managed cluster. */
169
+ export async function getUpgradeProfile(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
170
+ const result = await _getUpgradeProfileSend(context, resourceGroupName, resourceName, options);
171
+ return _getUpgradeProfileDeserialize(result);
172
+ }
173
+ export function _listOutboundNetworkDependenciesEndpointsSend(context, resourceGroupName, resourceName, options = {
174
+ requestOptions: {},
228
175
  }) {
229
- const path = expandUrlTemplate(
230
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/outboundNetworkDependenciesEndpoints{?api%2Dversion}",
231
- {
232
- subscriptionId: context.subscriptionId,
233
- resourceGroupName,
234
- resourceName,
235
- "api%2Dversion": context.apiVersion ?? "2026-01-01"
236
- },
237
- {
238
- allowReserved: options?.requestOptions?.skipUrlEncoding
176
+ const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/outboundNetworkDependenciesEndpoints{?api%2Dversion}", {
177
+ subscriptionId: context.subscriptionId,
178
+ resourceGroupName: resourceGroupName,
179
+ resourceName: resourceName,
180
+ "api%2Dversion": context.apiVersion ?? "2026-02-01",
181
+ }, {
182
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
183
+ });
184
+ return context.path(path).get({
185
+ ...operationOptionsToRequestParameters(options),
186
+ headers: { accept: "application/json", ...options.requestOptions?.headers },
187
+ });
188
+ }
189
+ export async function _listOutboundNetworkDependenciesEndpointsDeserialize(result) {
190
+ const expectedStatuses = ["200"];
191
+ if (!expectedStatuses.includes(result.status)) {
192
+ const error = createRestError(result);
193
+ error.details = errorResponseDeserializer(result.body);
194
+ throw error;
239
195
  }
240
- );
241
- return context.path(path).get({
242
- ...operationOptionsToRequestParameters(options),
243
- headers: { accept: "application/json", ...options.requestOptions?.headers }
244
- });
245
- }
246
- async function _listOutboundNetworkDependenciesEndpointsDeserialize(result) {
247
- const expectedStatuses = ["200"];
248
- if (!expectedStatuses.includes(result.status)) {
249
- const error = createRestError(result);
250
- error.details = errorResponseDeserializer(result.body);
251
- throw error;
252
- }
253
- return _outboundEnvironmentEndpointCollectionDeserializer(result.body);
254
- }
255
- function listOutboundNetworkDependenciesEndpoints(context, resourceGroupName, resourceName, options = {
256
- requestOptions: {}
196
+ return _outboundEnvironmentEndpointCollectionDeserializer(result.body);
197
+ }
198
+ /** Gets a list of egress endpoints (network endpoints of all outbound dependencies) in the specified managed cluster. The operation returns properties of each egress endpoint. */
199
+ export function listOutboundNetworkDependenciesEndpoints(context, resourceGroupName, resourceName, options = {
200
+ requestOptions: {},
257
201
  }) {
258
- return buildPagedAsyncIterator(
259
- context,
260
- () => _listOutboundNetworkDependenciesEndpointsSend(
261
- context,
262
- resourceGroupName,
263
- resourceName,
264
- options
265
- ),
266
- _listOutboundNetworkDependenciesEndpointsDeserialize,
267
- ["200"],
268
- { itemName: "value", nextLinkName: "nextLink", apiVersion: context.apiVersion ?? "2026-01-01" }
269
- );
270
- }
271
- function _getCommandResultSend(context, resourceGroupName, resourceName, commandId, options = { requestOptions: {} }) {
272
- const path = expandUrlTemplate(
273
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/commandResults/{commandId}{?api%2Dversion}",
274
- {
275
- subscriptionId: context.subscriptionId,
276
- resourceGroupName,
277
- resourceName,
278
- commandId,
279
- "api%2Dversion": context.apiVersion ?? "2026-01-01"
280
- },
281
- {
282
- allowReserved: options?.requestOptions?.skipUrlEncoding
283
- }
284
- );
285
- return context.path(path).get({
286
- ...operationOptionsToRequestParameters(options),
287
- headers: { accept: "application/json", ...options.requestOptions?.headers }
288
- });
289
- }
290
- async function _getCommandResultDeserialize(result) {
291
- const expectedStatuses = ["200", "202"];
292
- if (!expectedStatuses.includes(result.status)) {
293
- const error = createRestError(result);
294
- error.details = errorResponseDeserializer(result.body);
295
- throw error;
296
- }
297
- return runCommandResultDeserializer(result.body);
298
- }
299
- async function getCommandResult(context, resourceGroupName, resourceName, commandId, options = { requestOptions: {} }) {
300
- const result = await _getCommandResultSend(
301
- context,
302
- resourceGroupName,
303
- resourceName,
304
- commandId,
305
- options
306
- );
307
- return _getCommandResultDeserialize(result);
308
- }
309
- function _runCommandSend(context, resourceGroupName, resourceName, requestPayload, options = { requestOptions: {} }) {
310
- const path = expandUrlTemplate(
311
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/runCommand{?api%2Dversion}",
312
- {
313
- subscriptionId: context.subscriptionId,
314
- resourceGroupName,
315
- resourceName,
316
- "api%2Dversion": context.apiVersion ?? "2026-01-01"
317
- },
318
- {
319
- allowReserved: options?.requestOptions?.skipUrlEncoding
320
- }
321
- );
322
- return context.path(path).post({
323
- ...operationOptionsToRequestParameters(options),
324
- contentType: "application/json",
325
- headers: { accept: "application/json", ...options.requestOptions?.headers },
326
- body: runCommandRequestSerializer(requestPayload)
327
- });
328
- }
329
- async function _runCommandDeserialize(result) {
330
- const expectedStatuses = ["202", "200", "201"];
331
- if (!expectedStatuses.includes(result.status)) {
332
- const error = createRestError(result);
333
- error.details = errorResponseDeserializer(result.body);
334
- throw error;
335
- }
336
- return runCommandResultDeserializer(result.body);
337
- }
338
- function runCommand(context, resourceGroupName, resourceName, requestPayload, options = { requestOptions: {} }) {
339
- return getLongRunningPoller(context, _runCommandDeserialize, ["202", "200", "201"], {
340
- updateIntervalInMs: options?.updateIntervalInMs,
341
- abortSignal: options?.abortSignal,
342
- getInitialResponse: () => _runCommandSend(context, resourceGroupName, resourceName, requestPayload, options),
343
- resourceLocationConfig: "location",
344
- apiVersion: context.apiVersion ?? "2026-01-01"
345
- });
346
- }
347
- function _startSend(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
348
- const path = expandUrlTemplate(
349
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/start{?api%2Dversion}",
350
- {
351
- subscriptionId: context.subscriptionId,
352
- resourceGroupName,
353
- resourceName,
354
- "api%2Dversion": context.apiVersion ?? "2026-01-01"
355
- },
356
- {
357
- allowReserved: options?.requestOptions?.skipUrlEncoding
358
- }
359
- );
360
- return context.path(path).post({ ...operationOptionsToRequestParameters(options) });
361
- }
362
- async function _startDeserialize(result) {
363
- const expectedStatuses = ["202", "204", "200", "201"];
364
- if (!expectedStatuses.includes(result.status)) {
365
- const error = createRestError(result);
366
- error.details = errorResponseDeserializer(result.body);
367
- throw error;
368
- }
369
- return;
370
- }
371
- function start(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
372
- return getLongRunningPoller(context, _startDeserialize, ["202", "204", "200", "201"], {
373
- updateIntervalInMs: options?.updateIntervalInMs,
374
- abortSignal: options?.abortSignal,
375
- getInitialResponse: () => _startSend(context, resourceGroupName, resourceName, options),
376
- resourceLocationConfig: "location",
377
- apiVersion: context.apiVersion ?? "2026-01-01"
378
- });
379
- }
380
- function _stopSend(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
381
- const path = expandUrlTemplate(
382
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/stop{?api%2Dversion}",
383
- {
384
- subscriptionId: context.subscriptionId,
385
- resourceGroupName,
386
- resourceName,
387
- "api%2Dversion": context.apiVersion ?? "2026-01-01"
388
- },
389
- {
390
- allowReserved: options?.requestOptions?.skipUrlEncoding
202
+ return buildPagedAsyncIterator(context, () => _listOutboundNetworkDependenciesEndpointsSend(context, resourceGroupName, resourceName, options), _listOutboundNetworkDependenciesEndpointsDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink", apiVersion: context.apiVersion ?? "2026-02-01" });
203
+ }
204
+ export function _getCommandResultSend(context, resourceGroupName, resourceName, commandId, options = { requestOptions: {} }) {
205
+ const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/commandResults/{commandId}{?api%2Dversion}", {
206
+ subscriptionId: context.subscriptionId,
207
+ resourceGroupName: resourceGroupName,
208
+ resourceName: resourceName,
209
+ commandId: commandId,
210
+ "api%2Dversion": context.apiVersion ?? "2026-02-01",
211
+ }, {
212
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
213
+ });
214
+ return context.path(path).get({
215
+ ...operationOptionsToRequestParameters(options),
216
+ headers: { accept: "application/json", ...options.requestOptions?.headers },
217
+ });
218
+ }
219
+ export async function _getCommandResultDeserialize(result) {
220
+ const expectedStatuses = ["200", "202"];
221
+ if (!expectedStatuses.includes(result.status)) {
222
+ const error = createRestError(result);
223
+ error.details = errorResponseDeserializer(result.body);
224
+ throw error;
391
225
  }
392
- );
393
- return context.path(path).post({ ...operationOptionsToRequestParameters(options) });
394
- }
395
- async function _stopDeserialize(result) {
396
- const expectedStatuses = ["202", "204", "200", "201"];
397
- if (!expectedStatuses.includes(result.status)) {
398
- const error = createRestError(result);
399
- error.details = errorResponseDeserializer(result.body);
400
- throw error;
401
- }
402
- return;
403
- }
404
- function stop(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
405
- return getLongRunningPoller(context, _stopDeserialize, ["202", "204", "200", "201"], {
406
- updateIntervalInMs: options?.updateIntervalInMs,
407
- abortSignal: options?.abortSignal,
408
- getInitialResponse: () => _stopSend(context, resourceGroupName, resourceName, options),
409
- resourceLocationConfig: "location",
410
- apiVersion: context.apiVersion ?? "2026-01-01"
411
- });
412
- }
413
- function _rotateServiceAccountSigningKeysSend(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
414
- const path = expandUrlTemplate(
415
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/rotateServiceAccountSigningKeys{?api%2Dversion}",
416
- {
417
- subscriptionId: context.subscriptionId,
418
- resourceGroupName,
419
- resourceName,
420
- "api%2Dversion": context.apiVersion ?? "2026-01-01"
421
- },
422
- {
423
- allowReserved: options?.requestOptions?.skipUrlEncoding
226
+ return runCommandResultDeserializer(result.body);
227
+ }
228
+ /** Gets the results of a command which has been run on the Managed Cluster. */
229
+ export async function getCommandResult(context, resourceGroupName, resourceName, commandId, options = { requestOptions: {} }) {
230
+ const result = await _getCommandResultSend(context, resourceGroupName, resourceName, commandId, options);
231
+ return _getCommandResultDeserialize(result);
232
+ }
233
+ export function _runCommandSend(context, resourceGroupName, resourceName, requestPayload, options = { requestOptions: {} }) {
234
+ const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/runCommand{?api%2Dversion}", {
235
+ subscriptionId: context.subscriptionId,
236
+ resourceGroupName: resourceGroupName,
237
+ resourceName: resourceName,
238
+ "api%2Dversion": context.apiVersion ?? "2026-02-01",
239
+ }, {
240
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
241
+ });
242
+ return context.path(path).post({
243
+ ...operationOptionsToRequestParameters(options),
244
+ contentType: "application/json",
245
+ headers: { accept: "application/json", ...options.requestOptions?.headers },
246
+ body: runCommandRequestSerializer(requestPayload),
247
+ });
248
+ }
249
+ export async function _runCommandDeserialize(result) {
250
+ const expectedStatuses = ["202", "200", "201"];
251
+ if (!expectedStatuses.includes(result.status)) {
252
+ const error = createRestError(result);
253
+ error.details = errorResponseDeserializer(result.body);
254
+ throw error;
424
255
  }
425
- );
426
- return context.path(path).post({ ...operationOptionsToRequestParameters(options) });
427
- }
428
- async function _rotateServiceAccountSigningKeysDeserialize(result) {
429
- const expectedStatuses = ["202", "204", "200", "201"];
430
- if (!expectedStatuses.includes(result.status)) {
431
- const error = createRestError(result);
432
- error.details = errorResponseDeserializer(result.body);
433
- throw error;
434
- }
435
- return;
436
- }
437
- function rotateServiceAccountSigningKeys(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
438
- return getLongRunningPoller(
439
- context,
440
- _rotateServiceAccountSigningKeysDeserialize,
441
- ["202", "204", "200", "201"],
442
- {
443
- updateIntervalInMs: options?.updateIntervalInMs,
444
- abortSignal: options?.abortSignal,
445
- getInitialResponse: () => _rotateServiceAccountSigningKeysSend(context, resourceGroupName, resourceName, options),
446
- resourceLocationConfig: "location",
447
- apiVersion: context.apiVersion ?? "2026-01-01"
256
+ return runCommandResultDeserializer(result.body);
257
+ }
258
+ /** AKS will create a pod to run the command. This is primarily useful for private clusters. For more information see [AKS Run Command](https://docs.microsoft.com/azure/aks/private-clusters#aks-run-command-preview). */
259
+ export function runCommand(context, resourceGroupName, resourceName, requestPayload, options = { requestOptions: {} }) {
260
+ return getLongRunningPoller(context, _runCommandDeserialize, ["202", "200", "201"], {
261
+ updateIntervalInMs: options?.updateIntervalInMs,
262
+ abortSignal: options?.abortSignal,
263
+ getInitialResponse: () => _runCommandSend(context, resourceGroupName, resourceName, requestPayload, options),
264
+ resourceLocationConfig: "location",
265
+ apiVersion: context.apiVersion ?? "2026-02-01",
266
+ });
267
+ }
268
+ export function _startSend(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
269
+ const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/start{?api%2Dversion}", {
270
+ subscriptionId: context.subscriptionId,
271
+ resourceGroupName: resourceGroupName,
272
+ resourceName: resourceName,
273
+ "api%2Dversion": context.apiVersion ?? "2026-02-01",
274
+ }, {
275
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
276
+ });
277
+ return context.path(path).post({ ...operationOptionsToRequestParameters(options) });
278
+ }
279
+ export async function _startDeserialize(result) {
280
+ const expectedStatuses = ["202", "204", "200", "201"];
281
+ if (!expectedStatuses.includes(result.status)) {
282
+ const error = createRestError(result);
283
+ error.details = errorResponseDeserializer(result.body);
284
+ throw error;
448
285
  }
449
- );
450
- }
451
- function _abortLatestOperationSend(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
452
- const path = expandUrlTemplate(
453
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/abort{?api%2Dversion}",
454
- {
455
- subscriptionId: context.subscriptionId,
456
- resourceGroupName,
457
- resourceName,
458
- "api%2Dversion": context.apiVersion ?? "2026-01-01"
459
- },
460
- {
461
- allowReserved: options?.requestOptions?.skipUrlEncoding
286
+ return;
287
+ }
288
+ /** See [starting a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) for more details about starting a cluster. */
289
+ export function start(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
290
+ return getLongRunningPoller(context, _startDeserialize, ["202", "204", "200", "201"], {
291
+ updateIntervalInMs: options?.updateIntervalInMs,
292
+ abortSignal: options?.abortSignal,
293
+ getInitialResponse: () => _startSend(context, resourceGroupName, resourceName, options),
294
+ resourceLocationConfig: "location",
295
+ apiVersion: context.apiVersion ?? "2026-02-01",
296
+ });
297
+ }
298
+ export function _stopSend(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
299
+ const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/stop{?api%2Dversion}", {
300
+ subscriptionId: context.subscriptionId,
301
+ resourceGroupName: resourceGroupName,
302
+ resourceName: resourceName,
303
+ "api%2Dversion": context.apiVersion ?? "2026-02-01",
304
+ }, {
305
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
306
+ });
307
+ return context.path(path).post({ ...operationOptionsToRequestParameters(options) });
308
+ }
309
+ export async function _stopDeserialize(result) {
310
+ const expectedStatuses = ["202", "204", "200", "201"];
311
+ if (!expectedStatuses.includes(result.status)) {
312
+ const error = createRestError(result);
313
+ error.details = errorResponseDeserializer(result.body);
314
+ throw error;
462
315
  }
463
- );
464
- return context.path(path).post({ ...operationOptionsToRequestParameters(options) });
465
- }
466
- async function _abortLatestOperationDeserialize(result) {
467
- const expectedStatuses = ["202", "204", "200", "201"];
468
- if (!expectedStatuses.includes(result.status)) {
469
- const error = createRestError(result);
470
- error.details = errorResponseDeserializer(result.body);
471
- throw error;
472
- }
473
- return;
474
- }
475
- function abortLatestOperation(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
476
- return getLongRunningPoller(
477
- context,
478
- _abortLatestOperationDeserialize,
479
- ["202", "204", "200", "201"],
480
- {
481
- updateIntervalInMs: options?.updateIntervalInMs,
482
- abortSignal: options?.abortSignal,
483
- getInitialResponse: () => _abortLatestOperationSend(context, resourceGroupName, resourceName, options),
484
- resourceLocationConfig: "location",
485
- apiVersion: context.apiVersion ?? "2026-01-01"
316
+ return;
317
+ }
318
+ /** This can only be performed on Azure Virtual Machine Scale set backed clusters. Stopping a cluster stops the control plane and agent nodes entirely, while maintaining all object and cluster state. A cluster does not accrue charges while it is stopped. See [stopping a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) for more details about stopping a cluster. */
319
+ export function stop(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
320
+ return getLongRunningPoller(context, _stopDeserialize, ["202", "204", "200", "201"], {
321
+ updateIntervalInMs: options?.updateIntervalInMs,
322
+ abortSignal: options?.abortSignal,
323
+ getInitialResponse: () => _stopSend(context, resourceGroupName, resourceName, options),
324
+ resourceLocationConfig: "location",
325
+ apiVersion: context.apiVersion ?? "2026-02-01",
326
+ });
327
+ }
328
+ export function _rotateServiceAccountSigningKeysSend(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
329
+ const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/rotateServiceAccountSigningKeys{?api%2Dversion}", {
330
+ subscriptionId: context.subscriptionId,
331
+ resourceGroupName: resourceGroupName,
332
+ resourceName: resourceName,
333
+ "api%2Dversion": context.apiVersion ?? "2026-02-01",
334
+ }, {
335
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
336
+ });
337
+ return context.path(path).post({ ...operationOptionsToRequestParameters(options) });
338
+ }
339
+ export async function _rotateServiceAccountSigningKeysDeserialize(result) {
340
+ const expectedStatuses = ["202", "204", "200", "201"];
341
+ if (!expectedStatuses.includes(result.status)) {
342
+ const error = createRestError(result);
343
+ error.details = errorResponseDeserializer(result.body);
344
+ throw error;
486
345
  }
487
- );
488
- }
489
- function _rotateClusterCertificatesSend(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
490
- const path = expandUrlTemplate(
491
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/rotateClusterCertificates{?api%2Dversion}",
492
- {
493
- subscriptionId: context.subscriptionId,
494
- resourceGroupName,
495
- resourceName,
496
- "api%2Dversion": context.apiVersion ?? "2026-01-01"
497
- },
498
- {
499
- allowReserved: options?.requestOptions?.skipUrlEncoding
346
+ return;
347
+ }
348
+ /** Rotates the service account signing keys of a managed cluster. */
349
+ export function rotateServiceAccountSigningKeys(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
350
+ return getLongRunningPoller(context, _rotateServiceAccountSigningKeysDeserialize, ["202", "204", "200", "201"], {
351
+ updateIntervalInMs: options?.updateIntervalInMs,
352
+ abortSignal: options?.abortSignal,
353
+ getInitialResponse: () => _rotateServiceAccountSigningKeysSend(context, resourceGroupName, resourceName, options),
354
+ resourceLocationConfig: "location",
355
+ apiVersion: context.apiVersion ?? "2026-02-01",
356
+ });
357
+ }
358
+ export function _abortLatestOperationSend(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
359
+ const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/abort{?api%2Dversion}", {
360
+ subscriptionId: context.subscriptionId,
361
+ resourceGroupName: resourceGroupName,
362
+ resourceName: resourceName,
363
+ "api%2Dversion": context.apiVersion ?? "2026-02-01",
364
+ }, {
365
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
366
+ });
367
+ return context.path(path).post({ ...operationOptionsToRequestParameters(options) });
368
+ }
369
+ export async function _abortLatestOperationDeserialize(result) {
370
+ const expectedStatuses = ["202", "204", "200", "201"];
371
+ if (!expectedStatuses.includes(result.status)) {
372
+ const error = createRestError(result);
373
+ error.details = errorResponseDeserializer(result.body);
374
+ throw error;
500
375
  }
501
- );
502
- return context.path(path).post({ ...operationOptionsToRequestParameters(options) });
503
- }
504
- async function _rotateClusterCertificatesDeserialize(result) {
505
- const expectedStatuses = ["202", "204", "200", "201"];
506
- if (!expectedStatuses.includes(result.status)) {
507
- const error = createRestError(result);
508
- error.details = errorResponseDeserializer(result.body);
509
- throw error;
510
- }
511
- return;
512
- }
513
- function rotateClusterCertificates(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
514
- return getLongRunningPoller(
515
- context,
516
- _rotateClusterCertificatesDeserialize,
517
- ["202", "204", "200", "201"],
518
- {
519
- updateIntervalInMs: options?.updateIntervalInMs,
520
- abortSignal: options?.abortSignal,
521
- getInitialResponse: () => _rotateClusterCertificatesSend(context, resourceGroupName, resourceName, options),
522
- resourceLocationConfig: "location",
523
- apiVersion: context.apiVersion ?? "2026-01-01"
376
+ return;
377
+ }
378
+ /** Aborts the currently running operation on the managed cluster. The Managed Cluster will be moved to a Canceling state and eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can take place, a 409 error code is returned. */
379
+ export function abortLatestOperation(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
380
+ return getLongRunningPoller(context, _abortLatestOperationDeserialize, ["202", "204", "200", "201"], {
381
+ updateIntervalInMs: options?.updateIntervalInMs,
382
+ abortSignal: options?.abortSignal,
383
+ getInitialResponse: () => _abortLatestOperationSend(context, resourceGroupName, resourceName, options),
384
+ resourceLocationConfig: "location",
385
+ apiVersion: context.apiVersion ?? "2026-02-01",
386
+ });
387
+ }
388
+ export function _rotateClusterCertificatesSend(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
389
+ const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/rotateClusterCertificates{?api%2Dversion}", {
390
+ subscriptionId: context.subscriptionId,
391
+ resourceGroupName: resourceGroupName,
392
+ resourceName: resourceName,
393
+ "api%2Dversion": context.apiVersion ?? "2026-02-01",
394
+ }, {
395
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
396
+ });
397
+ return context.path(path).post({ ...operationOptionsToRequestParameters(options) });
398
+ }
399
+ export async function _rotateClusterCertificatesDeserialize(result) {
400
+ const expectedStatuses = ["202", "204", "200", "201"];
401
+ if (!expectedStatuses.includes(result.status)) {
402
+ const error = createRestError(result);
403
+ error.details = errorResponseDeserializer(result.body);
404
+ throw error;
524
405
  }
525
- );
526
- }
527
- function _resetAADProfileSend(context, resourceGroupName, resourceName, parameters, options = { requestOptions: {} }) {
528
- const path = expandUrlTemplate(
529
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/resetAADProfile{?api%2Dversion}",
530
- {
531
- subscriptionId: context.subscriptionId,
532
- resourceGroupName,
533
- resourceName,
534
- "api%2Dversion": context.apiVersion ?? "2026-01-01"
535
- },
536
- {
537
- allowReserved: options?.requestOptions?.skipUrlEncoding
406
+ return;
407
+ }
408
+ /** See [Certificate rotation](https://docs.microsoft.com/azure/aks/certificate-rotation) for more details about rotating managed cluster certificates. */
409
+ export function rotateClusterCertificates(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
410
+ return getLongRunningPoller(context, _rotateClusterCertificatesDeserialize, ["202", "204", "200", "201"], {
411
+ updateIntervalInMs: options?.updateIntervalInMs,
412
+ abortSignal: options?.abortSignal,
413
+ getInitialResponse: () => _rotateClusterCertificatesSend(context, resourceGroupName, resourceName, options),
414
+ resourceLocationConfig: "location",
415
+ apiVersion: context.apiVersion ?? "2026-02-01",
416
+ });
417
+ }
418
+ export function _resetAADProfileSend(context, resourceGroupName, resourceName, parameters, options = { requestOptions: {} }) {
419
+ const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/resetAADProfile{?api%2Dversion}", {
420
+ subscriptionId: context.subscriptionId,
421
+ resourceGroupName: resourceGroupName,
422
+ resourceName: resourceName,
423
+ "api%2Dversion": context.apiVersion ?? "2026-02-01",
424
+ }, {
425
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
426
+ });
427
+ return context.path(path).post({
428
+ ...operationOptionsToRequestParameters(options),
429
+ contentType: "application/json",
430
+ body: managedClusterAADProfileSerializer(parameters),
431
+ });
432
+ }
433
+ export async function _resetAADProfileDeserialize(result) {
434
+ const expectedStatuses = ["202", "200", "201"];
435
+ if (!expectedStatuses.includes(result.status)) {
436
+ const error = createRestError(result);
437
+ error.details = errorResponseDeserializer(result.body);
438
+ throw error;
538
439
  }
539
- );
540
- return context.path(path).post({
541
- ...operationOptionsToRequestParameters(options),
542
- contentType: "application/json",
543
- body: managedClusterAADProfileSerializer(parameters)
544
- });
545
- }
546
- async function _resetAADProfileDeserialize(result) {
547
- const expectedStatuses = ["202", "200", "201"];
548
- if (!expectedStatuses.includes(result.status)) {
549
- const error = createRestError(result);
550
- error.details = errorResponseDeserializer(result.body);
551
- throw error;
552
- }
553
- return;
554
- }
555
- function resetAADProfile(context, resourceGroupName, resourceName, parameters, options = { requestOptions: {} }) {
556
- return getLongRunningPoller(context, _resetAADProfileDeserialize, ["202", "200", "201"], {
557
- updateIntervalInMs: options?.updateIntervalInMs,
558
- abortSignal: options?.abortSignal,
559
- getInitialResponse: () => _resetAADProfileSend(context, resourceGroupName, resourceName, parameters, options),
560
- resourceLocationConfig: "location",
561
- apiVersion: context.apiVersion ?? "2026-01-01"
562
- });
563
- }
564
- function _resetServicePrincipalProfileSend(context, resourceGroupName, resourceName, parameters, options = { requestOptions: {} }) {
565
- const path = expandUrlTemplate(
566
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/resetServicePrincipalProfile{?api%2Dversion}",
567
- {
568
- subscriptionId: context.subscriptionId,
569
- resourceGroupName,
570
- resourceName,
571
- "api%2Dversion": context.apiVersion ?? "2026-01-01"
572
- },
573
- {
574
- allowReserved: options?.requestOptions?.skipUrlEncoding
440
+ return;
441
+ }
442
+ /** **WARNING**: This API will be deprecated. Please see [AKS-managed Azure Active Directory integration](https://aka.ms/aks-managed-aad) to update your cluster with AKS-managed Azure AD. */
443
+ export function resetAADProfile(context, resourceGroupName, resourceName, parameters, options = { requestOptions: {} }) {
444
+ return getLongRunningPoller(context, _resetAADProfileDeserialize, ["202", "200", "201"], {
445
+ updateIntervalInMs: options?.updateIntervalInMs,
446
+ abortSignal: options?.abortSignal,
447
+ getInitialResponse: () => _resetAADProfileSend(context, resourceGroupName, resourceName, parameters, options),
448
+ resourceLocationConfig: "location",
449
+ apiVersion: context.apiVersion ?? "2026-02-01",
450
+ });
451
+ }
452
+ export function _resetServicePrincipalProfileSend(context, resourceGroupName, resourceName, parameters, options = { requestOptions: {} }) {
453
+ const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/resetServicePrincipalProfile{?api%2Dversion}", {
454
+ subscriptionId: context.subscriptionId,
455
+ resourceGroupName: resourceGroupName,
456
+ resourceName: resourceName,
457
+ "api%2Dversion": context.apiVersion ?? "2026-02-01",
458
+ }, {
459
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
460
+ });
461
+ return context.path(path).post({
462
+ ...operationOptionsToRequestParameters(options),
463
+ contentType: "application/json",
464
+ body: managedClusterServicePrincipalProfileSerializer(parameters),
465
+ });
466
+ }
467
+ export async function _resetServicePrincipalProfileDeserialize(result) {
468
+ const expectedStatuses = ["202", "200", "201"];
469
+ if (!expectedStatuses.includes(result.status)) {
470
+ const error = createRestError(result);
471
+ error.details = errorResponseDeserializer(result.body);
472
+ throw error;
575
473
  }
576
- );
577
- return context.path(path).post({
578
- ...operationOptionsToRequestParameters(options),
579
- contentType: "application/json",
580
- body: managedClusterServicePrincipalProfileSerializer(parameters)
581
- });
582
- }
583
- async function _resetServicePrincipalProfileDeserialize(result) {
584
- const expectedStatuses = ["202", "200", "201"];
585
- if (!expectedStatuses.includes(result.status)) {
586
- const error = createRestError(result);
587
- error.details = errorResponseDeserializer(result.body);
588
- throw error;
589
- }
590
- return;
591
- }
592
- function resetServicePrincipalProfile(context, resourceGroupName, resourceName, parameters, options = { requestOptions: {} }) {
593
- return getLongRunningPoller(
594
- context,
595
- _resetServicePrincipalProfileDeserialize,
596
- ["202", "200", "201"],
597
- {
598
- updateIntervalInMs: options?.updateIntervalInMs,
599
- abortSignal: options?.abortSignal,
600
- getInitialResponse: () => _resetServicePrincipalProfileSend(
601
- context,
602
- resourceGroupName,
603
- resourceName,
604
- parameters,
605
- options
606
- ),
607
- resourceLocationConfig: "location",
608
- apiVersion: context.apiVersion ?? "2026-01-01"
609
- }
610
- );
611
- }
612
- function _listClusterMonitoringUserCredentialsSend(context, resourceGroupName, resourceName, options = {
613
- requestOptions: {}
474
+ return;
475
+ }
476
+ /** This action cannot be performed on a cluster that is not using a service principal */
477
+ export function resetServicePrincipalProfile(context, resourceGroupName, resourceName, parameters, options = { requestOptions: {} }) {
478
+ return getLongRunningPoller(context, _resetServicePrincipalProfileDeserialize, ["202", "200", "201"], {
479
+ updateIntervalInMs: options?.updateIntervalInMs,
480
+ abortSignal: options?.abortSignal,
481
+ getInitialResponse: () => _resetServicePrincipalProfileSend(context, resourceGroupName, resourceName, parameters, options),
482
+ resourceLocationConfig: "location",
483
+ apiVersion: context.apiVersion ?? "2026-02-01",
484
+ });
485
+ }
486
+ export function _listClusterMonitoringUserCredentialsSend(context, resourceGroupName, resourceName, options = {
487
+ requestOptions: {},
614
488
  }) {
615
- const path = expandUrlTemplate(
616
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/listClusterMonitoringUserCredential{?api%2Dversion,server%2Dfqdn}",
617
- {
618
- subscriptionId: context.subscriptionId,
619
- resourceGroupName,
620
- resourceName,
621
- "api%2Dversion": context.apiVersion ?? "2026-01-01",
622
- "server%2Dfqdn": options?.serverFqdn
623
- },
624
- {
625
- allowReserved: options?.requestOptions?.skipUrlEncoding
489
+ const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/listClusterMonitoringUserCredential{?api%2Dversion,server%2Dfqdn}", {
490
+ subscriptionId: context.subscriptionId,
491
+ resourceGroupName: resourceGroupName,
492
+ resourceName: resourceName,
493
+ "api%2Dversion": context.apiVersion ?? "2026-02-01",
494
+ "server%2Dfqdn": options?.serverFqdn,
495
+ }, {
496
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
497
+ });
498
+ return context.path(path).post({
499
+ ...operationOptionsToRequestParameters(options),
500
+ headers: { accept: "application/json", ...options.requestOptions?.headers },
501
+ });
502
+ }
503
+ export async function _listClusterMonitoringUserCredentialsDeserialize(result) {
504
+ const expectedStatuses = ["200"];
505
+ if (!expectedStatuses.includes(result.status)) {
506
+ const error = createRestError(result);
507
+ error.details = errorResponseDeserializer(result.body);
508
+ throw error;
626
509
  }
627
- );
628
- return context.path(path).post({
629
- ...operationOptionsToRequestParameters(options),
630
- headers: { accept: "application/json", ...options.requestOptions?.headers }
631
- });
632
- }
633
- async function _listClusterMonitoringUserCredentialsDeserialize(result) {
634
- const expectedStatuses = ["200"];
635
- if (!expectedStatuses.includes(result.status)) {
636
- const error = createRestError(result);
637
- error.details = errorResponseDeserializer(result.body);
638
- throw error;
639
- }
640
- return credentialResultsDeserializer(result.body);
641
- }
642
- async function listClusterMonitoringUserCredentials(context, resourceGroupName, resourceName, options = {
643
- requestOptions: {}
510
+ return credentialResultsDeserializer(result.body);
511
+ }
512
+ /** Lists the cluster monitoring user credentials of a managed cluster. */
513
+ export async function listClusterMonitoringUserCredentials(context, resourceGroupName, resourceName, options = {
514
+ requestOptions: {},
644
515
  }) {
645
- const result = await _listClusterMonitoringUserCredentialsSend(
646
- context,
647
- resourceGroupName,
648
- resourceName,
649
- options
650
- );
651
- return _listClusterMonitoringUserCredentialsDeserialize(result);
652
- }
653
- function _listClusterUserCredentialsSend(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
654
- const path = expandUrlTemplate(
655
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/listClusterUserCredential{?api%2Dversion,server%2Dfqdn,format}",
656
- {
657
- subscriptionId: context.subscriptionId,
658
- resourceGroupName,
659
- resourceName,
660
- "api%2Dversion": context.apiVersion ?? "2026-01-01",
661
- "server%2Dfqdn": options?.serverFqdn,
662
- format: options?.format
663
- },
664
- {
665
- allowReserved: options?.requestOptions?.skipUrlEncoding
516
+ const result = await _listClusterMonitoringUserCredentialsSend(context, resourceGroupName, resourceName, options);
517
+ return _listClusterMonitoringUserCredentialsDeserialize(result);
518
+ }
519
+ export function _listClusterUserCredentialsSend(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
520
+ const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/listClusterUserCredential{?api%2Dversion,server%2Dfqdn,format}", {
521
+ subscriptionId: context.subscriptionId,
522
+ resourceGroupName: resourceGroupName,
523
+ resourceName: resourceName,
524
+ "api%2Dversion": context.apiVersion ?? "2026-02-01",
525
+ "server%2Dfqdn": options?.serverFqdn,
526
+ format: options?.format,
527
+ }, {
528
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
529
+ });
530
+ return context.path(path).post({
531
+ ...operationOptionsToRequestParameters(options),
532
+ headers: { accept: "application/json", ...options.requestOptions?.headers },
533
+ });
534
+ }
535
+ export async function _listClusterUserCredentialsDeserialize(result) {
536
+ const expectedStatuses = ["200"];
537
+ if (!expectedStatuses.includes(result.status)) {
538
+ const error = createRestError(result);
539
+ error.details = errorResponseDeserializer(result.body);
540
+ throw error;
666
541
  }
667
- );
668
- return context.path(path).post({
669
- ...operationOptionsToRequestParameters(options),
670
- headers: { accept: "application/json", ...options.requestOptions?.headers }
671
- });
672
- }
673
- async function _listClusterUserCredentialsDeserialize(result) {
674
- const expectedStatuses = ["200"];
675
- if (!expectedStatuses.includes(result.status)) {
676
- const error = createRestError(result);
677
- error.details = errorResponseDeserializer(result.body);
678
- throw error;
679
- }
680
- return credentialResultsDeserializer(result.body);
681
- }
682
- async function listClusterUserCredentials(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
683
- const result = await _listClusterUserCredentialsSend(
684
- context,
685
- resourceGroupName,
686
- resourceName,
687
- options
688
- );
689
- return _listClusterUserCredentialsDeserialize(result);
690
- }
691
- function _listClusterAdminCredentialsSend(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
692
- const path = expandUrlTemplate(
693
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/listClusterAdminCredential{?api%2Dversion,server%2Dfqdn}",
694
- {
695
- subscriptionId: context.subscriptionId,
696
- resourceGroupName,
697
- resourceName,
698
- "api%2Dversion": context.apiVersion ?? "2026-01-01",
699
- "server%2Dfqdn": options?.serverFqdn
700
- },
701
- {
702
- allowReserved: options?.requestOptions?.skipUrlEncoding
542
+ return credentialResultsDeserializer(result.body);
543
+ }
544
+ /** Lists the user credentials of a managed cluster. */
545
+ export async function listClusterUserCredentials(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
546
+ const result = await _listClusterUserCredentialsSend(context, resourceGroupName, resourceName, options);
547
+ return _listClusterUserCredentialsDeserialize(result);
548
+ }
549
+ export function _listClusterAdminCredentialsSend(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
550
+ const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/listClusterAdminCredential{?api%2Dversion,server%2Dfqdn}", {
551
+ subscriptionId: context.subscriptionId,
552
+ resourceGroupName: resourceGroupName,
553
+ resourceName: resourceName,
554
+ "api%2Dversion": context.apiVersion ?? "2026-02-01",
555
+ "server%2Dfqdn": options?.serverFqdn,
556
+ }, {
557
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
558
+ });
559
+ return context.path(path).post({
560
+ ...operationOptionsToRequestParameters(options),
561
+ headers: { accept: "application/json", ...options.requestOptions?.headers },
562
+ });
563
+ }
564
+ export async function _listClusterAdminCredentialsDeserialize(result) {
565
+ const expectedStatuses = ["200"];
566
+ if (!expectedStatuses.includes(result.status)) {
567
+ const error = createRestError(result);
568
+ error.details = errorResponseDeserializer(result.body);
569
+ throw error;
703
570
  }
704
- );
705
- return context.path(path).post({
706
- ...operationOptionsToRequestParameters(options),
707
- headers: { accept: "application/json", ...options.requestOptions?.headers }
708
- });
709
- }
710
- async function _listClusterAdminCredentialsDeserialize(result) {
711
- const expectedStatuses = ["200"];
712
- if (!expectedStatuses.includes(result.status)) {
713
- const error = createRestError(result);
714
- error.details = errorResponseDeserializer(result.body);
715
- throw error;
716
- }
717
- return credentialResultsDeserializer(result.body);
718
- }
719
- async function listClusterAdminCredentials(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
720
- const result = await _listClusterAdminCredentialsSend(
721
- context,
722
- resourceGroupName,
723
- resourceName,
724
- options
725
- );
726
- return _listClusterAdminCredentialsDeserialize(result);
727
- }
728
- function _getAccessProfileSend(context, resourceGroupName, resourceName, roleName, options = { requestOptions: {} }) {
729
- const path = expandUrlTemplate(
730
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/accessProfiles/{roleName}/listCredential{?api%2Dversion}",
731
- {
732
- subscriptionId: context.subscriptionId,
733
- resourceGroupName,
734
- resourceName,
735
- roleName,
736
- "api%2Dversion": context.apiVersion ?? "2026-01-01"
737
- },
738
- {
739
- allowReserved: options?.requestOptions?.skipUrlEncoding
571
+ return credentialResultsDeserializer(result.body);
572
+ }
573
+ /** Lists the admin credentials of a managed cluster. */
574
+ export async function listClusterAdminCredentials(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
575
+ const result = await _listClusterAdminCredentialsSend(context, resourceGroupName, resourceName, options);
576
+ return _listClusterAdminCredentialsDeserialize(result);
577
+ }
578
+ export function _getAccessProfileSend(context, resourceGroupName, resourceName, roleName, options = { requestOptions: {} }) {
579
+ const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/accessProfiles/{roleName}/listCredential{?api%2Dversion}", {
580
+ subscriptionId: context.subscriptionId,
581
+ resourceGroupName: resourceGroupName,
582
+ resourceName: resourceName,
583
+ roleName: roleName,
584
+ "api%2Dversion": context.apiVersion ?? "2026-02-01",
585
+ }, {
586
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
587
+ });
588
+ return context.path(path).post({
589
+ ...operationOptionsToRequestParameters(options),
590
+ headers: { accept: "application/json", ...options.requestOptions?.headers },
591
+ });
592
+ }
593
+ export async function _getAccessProfileDeserialize(result) {
594
+ const expectedStatuses = ["200"];
595
+ if (!expectedStatuses.includes(result.status)) {
596
+ const error = createRestError(result);
597
+ error.details = errorResponseDeserializer(result.body);
598
+ throw error;
740
599
  }
741
- );
742
- return context.path(path).post({
743
- ...operationOptionsToRequestParameters(options),
744
- headers: { accept: "application/json", ...options.requestOptions?.headers }
745
- });
746
- }
747
- async function _getAccessProfileDeserialize(result) {
748
- const expectedStatuses = ["200"];
749
- if (!expectedStatuses.includes(result.status)) {
750
- const error = createRestError(result);
751
- error.details = errorResponseDeserializer(result.body);
752
- throw error;
753
- }
754
- return managedClusterAccessProfileDeserializer(result.body);
755
- }
756
- async function getAccessProfile(context, resourceGroupName, resourceName, roleName, options = { requestOptions: {} }) {
757
- const result = await _getAccessProfileSend(
758
- context,
759
- resourceGroupName,
760
- resourceName,
761
- roleName,
762
- options
763
- );
764
- return _getAccessProfileDeserialize(result);
765
- }
766
- function _listSend(context, options = { requestOptions: {} }) {
767
- const path = expandUrlTemplate(
768
- "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/managedClusters{?api%2Dversion}",
769
- {
770
- subscriptionId: context.subscriptionId,
771
- "api%2Dversion": context.apiVersion ?? "2026-01-01"
772
- },
773
- {
774
- allowReserved: options?.requestOptions?.skipUrlEncoding
600
+ return managedClusterAccessProfileDeserializer(result.body);
601
+ }
602
+ /** **WARNING**: This API will be deprecated. Instead use [ListClusterUserCredentials](https://docs.microsoft.com/rest/api/aks/managedclusters/listclusterusercredentials) or [ListClusterAdminCredentials](https://docs.microsoft.com/rest/api/aks/managedclusters/listclusteradmincredentials) . */
603
+ export async function getAccessProfile(context, resourceGroupName, resourceName, roleName, options = { requestOptions: {} }) {
604
+ const result = await _getAccessProfileSend(context, resourceGroupName, resourceName, roleName, options);
605
+ return _getAccessProfileDeserialize(result);
606
+ }
607
+ export function _listSend(context, options = { requestOptions: {} }) {
608
+ const path = expandUrlTemplate("/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/managedClusters{?api%2Dversion}", {
609
+ subscriptionId: context.subscriptionId,
610
+ "api%2Dversion": context.apiVersion ?? "2026-02-01",
611
+ }, {
612
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
613
+ });
614
+ return context.path(path).get({
615
+ ...operationOptionsToRequestParameters(options),
616
+ headers: { accept: "application/json", ...options.requestOptions?.headers },
617
+ });
618
+ }
619
+ export async function _listDeserialize(result) {
620
+ const expectedStatuses = ["200"];
621
+ if (!expectedStatuses.includes(result.status)) {
622
+ const error = createRestError(result);
623
+ error.details = errorResponseDeserializer(result.body);
624
+ throw error;
775
625
  }
776
- );
777
- return context.path(path).get({
778
- ...operationOptionsToRequestParameters(options),
779
- headers: { accept: "application/json", ...options.requestOptions?.headers }
780
- });
781
- }
782
- async function _listDeserialize(result) {
783
- const expectedStatuses = ["200"];
784
- if (!expectedStatuses.includes(result.status)) {
785
- const error = createRestError(result);
786
- error.details = errorResponseDeserializer(result.body);
787
- throw error;
788
- }
789
- return _managedClusterListResultDeserializer(result.body);
790
- }
791
- function list(context, options = { requestOptions: {} }) {
792
- return buildPagedAsyncIterator(
793
- context,
794
- () => _listSend(context, options),
795
- _listDeserialize,
796
- ["200"],
797
- { itemName: "value", nextLinkName: "nextLink", apiVersion: context.apiVersion ?? "2026-01-01" }
798
- );
799
- }
800
- function _listByResourceGroupSend(context, resourceGroupName, options = { requestOptions: {} }) {
801
- const path = expandUrlTemplate(
802
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters{?api%2Dversion}",
803
- {
804
- subscriptionId: context.subscriptionId,
805
- resourceGroupName,
806
- "api%2Dversion": context.apiVersion ?? "2026-01-01"
807
- },
808
- {
809
- allowReserved: options?.requestOptions?.skipUrlEncoding
626
+ return _managedClusterListResultDeserializer(result.body);
627
+ }
628
+ /** Gets a list of managed clusters in the specified subscription. */
629
+ export function list(context, options = { requestOptions: {} }) {
630
+ return buildPagedAsyncIterator(context, () => _listSend(context, options), _listDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink", apiVersion: context.apiVersion ?? "2026-02-01" });
631
+ }
632
+ export function _listByResourceGroupSend(context, resourceGroupName, options = { requestOptions: {} }) {
633
+ const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters{?api%2Dversion}", {
634
+ subscriptionId: context.subscriptionId,
635
+ resourceGroupName: resourceGroupName,
636
+ "api%2Dversion": context.apiVersion ?? "2026-02-01",
637
+ }, {
638
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
639
+ });
640
+ return context.path(path).get({
641
+ ...operationOptionsToRequestParameters(options),
642
+ headers: { accept: "application/json", ...options.requestOptions?.headers },
643
+ });
644
+ }
645
+ export async function _listByResourceGroupDeserialize(result) {
646
+ const expectedStatuses = ["200"];
647
+ if (!expectedStatuses.includes(result.status)) {
648
+ const error = createRestError(result);
649
+ error.details = errorResponseDeserializer(result.body);
650
+ throw error;
810
651
  }
811
- );
812
- return context.path(path).get({
813
- ...operationOptionsToRequestParameters(options),
814
- headers: { accept: "application/json", ...options.requestOptions?.headers }
815
- });
816
- }
817
- async function _listByResourceGroupDeserialize(result) {
818
- const expectedStatuses = ["200"];
819
- if (!expectedStatuses.includes(result.status)) {
820
- const error = createRestError(result);
821
- error.details = errorResponseDeserializer(result.body);
822
- throw error;
823
- }
824
- return _managedClusterListResultDeserializer(result.body);
825
- }
826
- function listByResourceGroup(context, resourceGroupName, options = { requestOptions: {} }) {
827
- return buildPagedAsyncIterator(
828
- context,
829
- () => _listByResourceGroupSend(context, resourceGroupName, options),
830
- _listByResourceGroupDeserialize,
831
- ["200"],
832
- { itemName: "value", nextLinkName: "nextLink", apiVersion: context.apiVersion ?? "2026-01-01" }
833
- );
834
- }
835
- function _$deleteSend(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
836
- const path = expandUrlTemplate(
837
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}{?api%2Dversion}",
838
- {
839
- subscriptionId: context.subscriptionId,
840
- resourceGroupName,
841
- resourceName,
842
- "api%2Dversion": context.apiVersion ?? "2026-01-01"
843
- },
844
- {
845
- allowReserved: options?.requestOptions?.skipUrlEncoding
652
+ return _managedClusterListResultDeserializer(result.body);
653
+ }
654
+ /** Lists managed clusters in the specified subscription and resource group. */
655
+ export function listByResourceGroup(context, resourceGroupName, options = { requestOptions: {} }) {
656
+ return buildPagedAsyncIterator(context, () => _listByResourceGroupSend(context, resourceGroupName, options), _listByResourceGroupDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink", apiVersion: context.apiVersion ?? "2026-02-01" });
657
+ }
658
+ export function _$deleteSend(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
659
+ const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}{?api%2Dversion}", {
660
+ subscriptionId: context.subscriptionId,
661
+ resourceGroupName: resourceGroupName,
662
+ resourceName: resourceName,
663
+ "api%2Dversion": context.apiVersion ?? "2026-02-01",
664
+ }, {
665
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
666
+ });
667
+ return context.path(path).delete({
668
+ ...operationOptionsToRequestParameters(options),
669
+ headers: {
670
+ ...(options?.ifMatch !== undefined ? { "if-match": options?.ifMatch } : {}),
671
+ ...options.requestOptions?.headers,
672
+ },
673
+ });
674
+ }
675
+ export async function _$deleteDeserialize(result) {
676
+ const expectedStatuses = ["202", "204", "200"];
677
+ if (!expectedStatuses.includes(result.status)) {
678
+ const error = createRestError(result);
679
+ error.details = errorResponseDeserializer(result.body);
680
+ throw error;
846
681
  }
847
- );
848
- return context.path(path).delete({
849
- ...operationOptionsToRequestParameters(options),
850
- headers: {
851
- ...options?.ifMatch !== void 0 ? { "if-match": options?.ifMatch } : {},
852
- ...options.requestOptions?.headers
682
+ return;
683
+ }
684
+ /** Deletes a managed cluster. */
685
+ /**
686
+ * @fixme delete is a reserved word that cannot be used as an operation name.
687
+ * Please add @clientName("clientName") or @clientName("<JS-Specific-Name>", "javascript")
688
+ * to the operation to override the generated name.
689
+ */
690
+ export function $delete(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
691
+ return getLongRunningPoller(context, _$deleteDeserialize, ["202", "204", "200"], {
692
+ updateIntervalInMs: options?.updateIntervalInMs,
693
+ abortSignal: options?.abortSignal,
694
+ getInitialResponse: () => _$deleteSend(context, resourceGroupName, resourceName, options),
695
+ resourceLocationConfig: "azure-async-operation",
696
+ apiVersion: context.apiVersion ?? "2026-02-01",
697
+ });
698
+ }
699
+ export function _updateTagsSend(context, resourceGroupName, resourceName, parameters, options = { requestOptions: {} }) {
700
+ const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}{?api%2Dversion}", {
701
+ subscriptionId: context.subscriptionId,
702
+ resourceGroupName: resourceGroupName,
703
+ resourceName: resourceName,
704
+ "api%2Dversion": context.apiVersion ?? "2026-02-01",
705
+ }, {
706
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
707
+ });
708
+ return context.path(path).patch({
709
+ ...operationOptionsToRequestParameters(options),
710
+ contentType: "application/json",
711
+ headers: {
712
+ ...(options?.ifMatch !== undefined ? { "if-match": options?.ifMatch } : {}),
713
+ accept: "application/json",
714
+ ...options.requestOptions?.headers,
715
+ },
716
+ body: tagsObjectSerializer(parameters),
717
+ });
718
+ }
719
+ export async function _updateTagsDeserialize(result) {
720
+ const expectedStatuses = ["200", "202", "201"];
721
+ if (!expectedStatuses.includes(result.status)) {
722
+ const error = createRestError(result);
723
+ error.details = errorResponseDeserializer(result.body);
724
+ throw error;
853
725
  }
854
- });
855
- }
856
- async function _$deleteDeserialize(result) {
857
- const expectedStatuses = ["202", "204", "200"];
858
- if (!expectedStatuses.includes(result.status)) {
859
- const error = createRestError(result);
860
- error.details = errorResponseDeserializer(result.body);
861
- throw error;
862
- }
863
- return;
864
- }
865
- function $delete(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
866
- return getLongRunningPoller(context, _$deleteDeserialize, ["202", "204", "200"], {
867
- updateIntervalInMs: options?.updateIntervalInMs,
868
- abortSignal: options?.abortSignal,
869
- getInitialResponse: () => _$deleteSend(context, resourceGroupName, resourceName, options),
870
- resourceLocationConfig: "azure-async-operation",
871
- apiVersion: context.apiVersion ?? "2026-01-01"
872
- });
873
- }
874
- function _updateTagsSend(context, resourceGroupName, resourceName, parameters, options = { requestOptions: {} }) {
875
- const path = expandUrlTemplate(
876
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}{?api%2Dversion}",
877
- {
878
- subscriptionId: context.subscriptionId,
879
- resourceGroupName,
880
- resourceName,
881
- "api%2Dversion": context.apiVersion ?? "2026-01-01"
882
- },
883
- {
884
- allowReserved: options?.requestOptions?.skipUrlEncoding
726
+ return managedClusterDeserializer(result.body);
727
+ }
728
+ /** Updates tags on a managed cluster. */
729
+ export function updateTags(context, resourceGroupName, resourceName, parameters, options = { requestOptions: {} }) {
730
+ return getLongRunningPoller(context, _updateTagsDeserialize, ["200", "202", "201"], {
731
+ updateIntervalInMs: options?.updateIntervalInMs,
732
+ abortSignal: options?.abortSignal,
733
+ getInitialResponse: () => _updateTagsSend(context, resourceGroupName, resourceName, parameters, options),
734
+ resourceLocationConfig: "azure-async-operation",
735
+ apiVersion: context.apiVersion ?? "2026-02-01",
736
+ });
737
+ }
738
+ export function _createOrUpdateSend(context, resourceGroupName, resourceName, parameters, options = { requestOptions: {} }) {
739
+ const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}{?api%2Dversion}", {
740
+ subscriptionId: context.subscriptionId,
741
+ resourceGroupName: resourceGroupName,
742
+ resourceName: resourceName,
743
+ "api%2Dversion": context.apiVersion ?? "2026-02-01",
744
+ }, {
745
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
746
+ });
747
+ return context.path(path).put({
748
+ ...operationOptionsToRequestParameters(options),
749
+ contentType: "application/json",
750
+ headers: {
751
+ ...(options?.ifMatch !== undefined ? { "if-match": options?.ifMatch } : {}),
752
+ ...(options?.ifNoneMatch !== undefined ? { "if-none-match": options?.ifNoneMatch } : {}),
753
+ accept: "application/json",
754
+ ...options.requestOptions?.headers,
755
+ },
756
+ body: managedClusterSerializer(parameters),
757
+ });
758
+ }
759
+ export async function _createOrUpdateDeserialize(result) {
760
+ const expectedStatuses = ["200", "201", "202"];
761
+ if (!expectedStatuses.includes(result.status)) {
762
+ const error = createRestError(result);
763
+ error.details = errorResponseDeserializer(result.body);
764
+ throw error;
885
765
  }
886
- );
887
- return context.path(path).patch({
888
- ...operationOptionsToRequestParameters(options),
889
- contentType: "application/json",
890
- headers: {
891
- ...options?.ifMatch !== void 0 ? { "if-match": options?.ifMatch } : {},
892
- accept: "application/json",
893
- ...options.requestOptions?.headers
894
- },
895
- body: tagsObjectSerializer(parameters)
896
- });
897
- }
898
- async function _updateTagsDeserialize(result) {
899
- const expectedStatuses = ["200", "202", "201"];
900
- if (!expectedStatuses.includes(result.status)) {
901
- const error = createRestError(result);
902
- error.details = errorResponseDeserializer(result.body);
903
- throw error;
904
- }
905
- return managedClusterDeserializer(result.body);
906
- }
907
- function updateTags(context, resourceGroupName, resourceName, parameters, options = { requestOptions: {} }) {
908
- return getLongRunningPoller(context, _updateTagsDeserialize, ["200", "202", "201"], {
909
- updateIntervalInMs: options?.updateIntervalInMs,
910
- abortSignal: options?.abortSignal,
911
- getInitialResponse: () => _updateTagsSend(context, resourceGroupName, resourceName, parameters, options),
912
- resourceLocationConfig: "azure-async-operation",
913
- apiVersion: context.apiVersion ?? "2026-01-01"
914
- });
915
- }
916
- function _createOrUpdateSend(context, resourceGroupName, resourceName, parameters, options = { requestOptions: {} }) {
917
- const path = expandUrlTemplate(
918
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}{?api%2Dversion}",
919
- {
920
- subscriptionId: context.subscriptionId,
921
- resourceGroupName,
922
- resourceName,
923
- "api%2Dversion": context.apiVersion ?? "2026-01-01"
924
- },
925
- {
926
- allowReserved: options?.requestOptions?.skipUrlEncoding
766
+ return managedClusterDeserializer(result.body);
767
+ }
768
+ /** Creates or updates a managed cluster. */
769
+ export function createOrUpdate(context, resourceGroupName, resourceName, parameters, options = { requestOptions: {} }) {
770
+ return getLongRunningPoller(context, _createOrUpdateDeserialize, ["200", "201", "202"], {
771
+ updateIntervalInMs: options?.updateIntervalInMs,
772
+ abortSignal: options?.abortSignal,
773
+ getInitialResponse: () => _createOrUpdateSend(context, resourceGroupName, resourceName, parameters, options),
774
+ resourceLocationConfig: "azure-async-operation",
775
+ apiVersion: context.apiVersion ?? "2026-02-01",
776
+ });
777
+ }
778
+ export function _getSend(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
779
+ const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}{?api%2Dversion}", {
780
+ subscriptionId: context.subscriptionId,
781
+ resourceGroupName: resourceGroupName,
782
+ resourceName: resourceName,
783
+ "api%2Dversion": context.apiVersion ?? "2026-02-01",
784
+ }, {
785
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
786
+ });
787
+ return context.path(path).get({
788
+ ...operationOptionsToRequestParameters(options),
789
+ headers: { accept: "application/json", ...options.requestOptions?.headers },
790
+ });
791
+ }
792
+ export async function _getDeserialize(result) {
793
+ const expectedStatuses = ["200"];
794
+ if (!expectedStatuses.includes(result.status)) {
795
+ const error = createRestError(result);
796
+ error.details = errorResponseDeserializer(result.body);
797
+ throw error;
927
798
  }
928
- );
929
- return context.path(path).put({
930
- ...operationOptionsToRequestParameters(options),
931
- contentType: "application/json",
932
- headers: {
933
- ...options?.ifMatch !== void 0 ? { "if-match": options?.ifMatch } : {},
934
- ...options?.ifNoneMatch !== void 0 ? { "if-none-match": options?.ifNoneMatch } : {},
935
- accept: "application/json",
936
- ...options.requestOptions?.headers
937
- },
938
- body: managedClusterSerializer(parameters)
939
- });
940
- }
941
- async function _createOrUpdateDeserialize(result) {
942
- const expectedStatuses = ["200", "201", "202"];
943
- if (!expectedStatuses.includes(result.status)) {
944
- const error = createRestError(result);
945
- error.details = errorResponseDeserializer(result.body);
946
- throw error;
947
- }
948
- return managedClusterDeserializer(result.body);
949
- }
950
- function createOrUpdate(context, resourceGroupName, resourceName, parameters, options = { requestOptions: {} }) {
951
- return getLongRunningPoller(context, _createOrUpdateDeserialize, ["200", "201", "202"], {
952
- updateIntervalInMs: options?.updateIntervalInMs,
953
- abortSignal: options?.abortSignal,
954
- getInitialResponse: () => _createOrUpdateSend(context, resourceGroupName, resourceName, parameters, options),
955
- resourceLocationConfig: "azure-async-operation",
956
- apiVersion: context.apiVersion ?? "2026-01-01"
957
- });
958
- }
959
- function _getSend(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
960
- const path = expandUrlTemplate(
961
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}{?api%2Dversion}",
962
- {
963
- subscriptionId: context.subscriptionId,
964
- resourceGroupName,
965
- resourceName,
966
- "api%2Dversion": context.apiVersion ?? "2026-01-01"
967
- },
968
- {
969
- allowReserved: options?.requestOptions?.skipUrlEncoding
970
- }
971
- );
972
- return context.path(path).get({
973
- ...operationOptionsToRequestParameters(options),
974
- headers: { accept: "application/json", ...options.requestOptions?.headers }
975
- });
976
- }
977
- async function _getDeserialize(result) {
978
- const expectedStatuses = ["200"];
979
- if (!expectedStatuses.includes(result.status)) {
980
- const error = createRestError(result);
981
- error.details = errorResponseDeserializer(result.body);
982
- throw error;
983
- }
984
- return managedClusterDeserializer(result.body);
985
- }
986
- async function get(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
987
- const result = await _getSend(context, resourceGroupName, resourceName, options);
988
- return _getDeserialize(result);
989
- }
990
- export {
991
- $delete,
992
- _$deleteDeserialize,
993
- _$deleteSend,
994
- _abortLatestOperationDeserialize,
995
- _abortLatestOperationSend,
996
- _createOrUpdateDeserialize,
997
- _createOrUpdateSend,
998
- _getAccessProfileDeserialize,
999
- _getAccessProfileSend,
1000
- _getCommandResultDeserialize,
1001
- _getCommandResultSend,
1002
- _getDeserialize,
1003
- _getMeshRevisionProfileDeserialize,
1004
- _getMeshRevisionProfileSend,
1005
- _getMeshUpgradeProfileDeserialize,
1006
- _getMeshUpgradeProfileSend,
1007
- _getSend,
1008
- _getUpgradeProfileDeserialize,
1009
- _getUpgradeProfileSend,
1010
- _listByResourceGroupDeserialize,
1011
- _listByResourceGroupSend,
1012
- _listClusterAdminCredentialsDeserialize,
1013
- _listClusterAdminCredentialsSend,
1014
- _listClusterMonitoringUserCredentialsDeserialize,
1015
- _listClusterMonitoringUserCredentialsSend,
1016
- _listClusterUserCredentialsDeserialize,
1017
- _listClusterUserCredentialsSend,
1018
- _listDeserialize,
1019
- _listKubernetesVersionsDeserialize,
1020
- _listKubernetesVersionsSend,
1021
- _listMeshRevisionProfilesDeserialize,
1022
- _listMeshRevisionProfilesSend,
1023
- _listMeshUpgradeProfilesDeserialize,
1024
- _listMeshUpgradeProfilesSend,
1025
- _listOutboundNetworkDependenciesEndpointsDeserialize,
1026
- _listOutboundNetworkDependenciesEndpointsSend,
1027
- _listSend,
1028
- _resetAADProfileDeserialize,
1029
- _resetAADProfileSend,
1030
- _resetServicePrincipalProfileDeserialize,
1031
- _resetServicePrincipalProfileSend,
1032
- _rotateClusterCertificatesDeserialize,
1033
- _rotateClusterCertificatesSend,
1034
- _rotateServiceAccountSigningKeysDeserialize,
1035
- _rotateServiceAccountSigningKeysSend,
1036
- _runCommandDeserialize,
1037
- _runCommandSend,
1038
- _startDeserialize,
1039
- _startSend,
1040
- _stopDeserialize,
1041
- _stopSend,
1042
- _updateTagsDeserialize,
1043
- _updateTagsSend,
1044
- abortLatestOperation,
1045
- createOrUpdate,
1046
- get,
1047
- getAccessProfile,
1048
- getCommandResult,
1049
- getMeshRevisionProfile,
1050
- getMeshUpgradeProfile,
1051
- getUpgradeProfile,
1052
- list,
1053
- listByResourceGroup,
1054
- listClusterAdminCredentials,
1055
- listClusterMonitoringUserCredentials,
1056
- listClusterUserCredentials,
1057
- listKubernetesVersions,
1058
- listMeshRevisionProfiles,
1059
- listMeshUpgradeProfiles,
1060
- listOutboundNetworkDependenciesEndpoints,
1061
- resetAADProfile,
1062
- resetServicePrincipalProfile,
1063
- rotateClusterCertificates,
1064
- rotateServiceAccountSigningKeys,
1065
- runCommand,
1066
- start,
1067
- stop,
1068
- updateTags
1069
- };
799
+ return managedClusterDeserializer(result.body);
800
+ }
801
+ /** Gets a managed cluster. */
802
+ export async function get(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
803
+ const result = await _getSend(context, resourceGroupName, resourceName, options);
804
+ return _getDeserialize(result);
805
+ }
806
+ //# sourceMappingURL=operations.js.map