@azure/arm-containerservice 25.3.0-beta.1 → 25.4.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (241) hide show
  1. package/dist/browser/api/agentPools/operations.js +47 -27
  2. package/dist/browser/api/agentPools/operations.js.map +1 -1
  3. package/dist/browser/api/containerService/operations.js +5 -3
  4. package/dist/browser/api/containerService/operations.js.map +1 -1
  5. package/dist/browser/api/containerServiceContext.js +4 -2
  6. package/dist/browser/api/containerServiceContext.js.map +1 -1
  7. package/dist/browser/api/identityBindings/operations.js +19 -11
  8. package/dist/browser/api/identityBindings/operations.js.map +1 -1
  9. package/dist/browser/api/jwtAuthenticators/operations.js +19 -11
  10. package/dist/browser/api/jwtAuthenticators/operations.js.map +1 -1
  11. package/dist/browser/api/loadBalancers/operations.js +18 -10
  12. package/dist/browser/api/loadBalancers/operations.js.map +1 -1
  13. package/dist/browser/api/machines/operations.js +14 -8
  14. package/dist/browser/api/machines/operations.js.map +1 -1
  15. package/dist/browser/api/maintenanceConfigurations/operations.js +17 -9
  16. package/dist/browser/api/maintenanceConfigurations/operations.js.map +1 -1
  17. package/dist/browser/api/maintenanceWindows/index.d.ts +3 -0
  18. package/dist/browser/api/maintenanceWindows/index.js +4 -0
  19. package/dist/browser/api/maintenanceWindows/index.js.map +1 -0
  20. package/dist/browser/api/maintenanceWindows/operations.d.ts +31 -0
  21. package/dist/browser/api/maintenanceWindows/operations.js +202 -0
  22. package/dist/browser/api/maintenanceWindows/operations.js.map +1 -0
  23. package/dist/browser/api/maintenanceWindows/options.d.ts +24 -0
  24. package/dist/browser/api/maintenanceWindows/options.js +4 -0
  25. package/dist/browser/api/maintenanceWindows/options.js.map +1 -0
  26. package/dist/browser/api/managedClusterSnapshots/operations.js +26 -14
  27. package/dist/browser/api/managedClusterSnapshots/operations.js.map +1 -1
  28. package/dist/browser/api/managedClusters/operations.d.ts +2 -2
  29. package/dist/browser/api/managedClusters/operations.js +146 -84
  30. package/dist/browser/api/managedClusters/operations.js.map +1 -1
  31. package/dist/browser/api/managedNamespaces/operations.js +27 -15
  32. package/dist/browser/api/managedNamespaces/operations.js.map +1 -1
  33. package/dist/browser/api/meshMemberships/operations.js +19 -11
  34. package/dist/browser/api/meshMemberships/operations.js.map +1 -1
  35. package/dist/browser/api/operationStatusResult/operations.js +13 -7
  36. package/dist/browser/api/operationStatusResult/operations.js.map +1 -1
  37. package/dist/browser/api/operations/operations.js +5 -3
  38. package/dist/browser/api/operations/operations.js.map +1 -1
  39. package/dist/browser/api/privateEndpointConnections/operations.js +17 -9
  40. package/dist/browser/api/privateEndpointConnections/operations.js.map +1 -1
  41. package/dist/browser/api/privateLinkResources/operations.js +4 -2
  42. package/dist/browser/api/privateLinkResources/operations.js.map +1 -1
  43. package/dist/browser/api/resolvePrivateLinkServiceId/operations.js +4 -2
  44. package/dist/browser/api/resolvePrivateLinkServiceId/operations.js.map +1 -1
  45. package/dist/browser/api/snapshots/operations.js +26 -14
  46. package/dist/browser/api/snapshots/operations.js.map +1 -1
  47. package/dist/browser/api/trustedAccessRoleBindings/operations.js +19 -11
  48. package/dist/browser/api/trustedAccessRoleBindings/operations.js.map +1 -1
  49. package/dist/browser/api/trustedAccessRoles/operations.js +5 -3
  50. package/dist/browser/api/trustedAccessRoles/operations.js.map +1 -1
  51. package/dist/browser/api/vmSkus/operations.js +5 -3
  52. package/dist/browser/api/vmSkus/operations.js.map +1 -1
  53. package/dist/browser/classic/index.d.ts +1 -0
  54. package/dist/browser/classic/index.js.map +1 -1
  55. package/dist/browser/classic/maintenanceWindows/index.d.ts +31 -0
  56. package/dist/browser/classic/maintenanceWindows/index.js +36 -0
  57. package/dist/browser/classic/maintenanceWindows/index.js.map +1 -0
  58. package/dist/browser/classic/managedClusters/index.d.ts +1 -1
  59. package/dist/browser/classic/managedClusters/index.js.map +1 -1
  60. package/dist/browser/containerServiceClient.d.ts +3 -0
  61. package/dist/browser/containerServiceClient.js +4 -0
  62. package/dist/browser/containerServiceClient.js.map +1 -1
  63. package/dist/browser/index.d.ts +5 -3
  64. package/dist/browser/index.js +2 -1
  65. package/dist/browser/index.js.map +1 -1
  66. package/dist/browser/models/index.d.ts +2 -2
  67. package/dist/browser/models/index.js +1 -1
  68. package/dist/browser/models/index.js.map +1 -1
  69. package/dist/browser/models/models.d.ts +153 -4
  70. package/dist/browser/models/models.js +114 -2
  71. package/dist/browser/models/models.js.map +1 -1
  72. package/dist/browser/restorePollerHelpers.js +10 -1
  73. package/dist/browser/restorePollerHelpers.js.map +1 -1
  74. package/dist/browser/static-helpers/pagingHelpers.js +1 -1
  75. package/dist/browser/static-helpers/pagingHelpers.js.map +1 -1
  76. package/dist/browser/static-helpers/pollingHelpers.d.ts +1 -1
  77. package/dist/browser/static-helpers/pollingHelpers.js +1 -1
  78. package/dist/browser/static-helpers/pollingHelpers.js.map +1 -1
  79. package/dist/browser/static-helpers/simplePollerHelpers.d.ts +1 -1
  80. package/dist/browser/static-helpers/simplePollerHelpers.js.map +1 -1
  81. package/dist/commonjs/api/agentPools/operations.js +47 -27
  82. package/dist/commonjs/api/agentPools/operations.js.map +2 -2
  83. package/dist/commonjs/api/containerService/operations.js +5 -3
  84. package/dist/commonjs/api/containerService/operations.js.map +2 -2
  85. package/dist/commonjs/api/containerServiceContext.js +4 -2
  86. package/dist/commonjs/api/containerServiceContext.js.map +2 -2
  87. package/dist/commonjs/api/identityBindings/operations.js +19 -11
  88. package/dist/commonjs/api/identityBindings/operations.js.map +2 -2
  89. package/dist/commonjs/api/jwtAuthenticators/operations.js +19 -11
  90. package/dist/commonjs/api/jwtAuthenticators/operations.js.map +2 -2
  91. package/dist/commonjs/api/loadBalancers/operations.js +18 -10
  92. package/dist/commonjs/api/loadBalancers/operations.js.map +2 -2
  93. package/dist/commonjs/api/machines/operations.js +14 -8
  94. package/dist/commonjs/api/machines/operations.js.map +2 -2
  95. package/dist/commonjs/api/maintenanceConfigurations/operations.js +17 -9
  96. package/dist/commonjs/api/maintenanceConfigurations/operations.js.map +2 -2
  97. package/dist/commonjs/api/maintenanceWindows/index.d.ts +3 -0
  98. package/dist/commonjs/api/maintenanceWindows/index.js +38 -0
  99. package/dist/commonjs/api/maintenanceWindows/index.js.map +7 -0
  100. package/dist/commonjs/api/maintenanceWindows/operations.d.ts +31 -0
  101. package/dist/commonjs/api/maintenanceWindows/operations.js +296 -0
  102. package/dist/commonjs/api/maintenanceWindows/operations.js.map +7 -0
  103. package/dist/commonjs/api/maintenanceWindows/options.d.ts +24 -0
  104. package/dist/commonjs/api/maintenanceWindows/options.js +16 -0
  105. package/dist/commonjs/api/maintenanceWindows/options.js.map +7 -0
  106. package/dist/commonjs/api/managedClusterSnapshots/operations.js +26 -14
  107. package/dist/commonjs/api/managedClusterSnapshots/operations.js.map +2 -2
  108. package/dist/commonjs/api/managedClusters/operations.d.ts +2 -2
  109. package/dist/commonjs/api/managedClusters/operations.js +146 -84
  110. package/dist/commonjs/api/managedClusters/operations.js.map +2 -2
  111. package/dist/commonjs/api/managedNamespaces/operations.js +27 -15
  112. package/dist/commonjs/api/managedNamespaces/operations.js.map +2 -2
  113. package/dist/commonjs/api/meshMemberships/operations.js +19 -11
  114. package/dist/commonjs/api/meshMemberships/operations.js.map +2 -2
  115. package/dist/commonjs/api/operationStatusResult/operations.js +13 -7
  116. package/dist/commonjs/api/operationStatusResult/operations.js.map +2 -2
  117. package/dist/commonjs/api/operations/operations.js +5 -3
  118. package/dist/commonjs/api/operations/operations.js.map +2 -2
  119. package/dist/commonjs/api/privateEndpointConnections/operations.js +17 -9
  120. package/dist/commonjs/api/privateEndpointConnections/operations.js.map +2 -2
  121. package/dist/commonjs/api/privateLinkResources/operations.js +4 -2
  122. package/dist/commonjs/api/privateLinkResources/operations.js.map +2 -2
  123. package/dist/commonjs/api/resolvePrivateLinkServiceId/operations.js +4 -2
  124. package/dist/commonjs/api/resolvePrivateLinkServiceId/operations.js.map +2 -2
  125. package/dist/commonjs/api/snapshots/operations.js +26 -14
  126. package/dist/commonjs/api/snapshots/operations.js.map +2 -2
  127. package/dist/commonjs/api/trustedAccessRoleBindings/operations.js +19 -11
  128. package/dist/commonjs/api/trustedAccessRoleBindings/operations.js.map +2 -2
  129. package/dist/commonjs/api/trustedAccessRoles/operations.js +5 -3
  130. package/dist/commonjs/api/trustedAccessRoles/operations.js.map +2 -2
  131. package/dist/commonjs/api/vmSkus/operations.js +5 -3
  132. package/dist/commonjs/api/vmSkus/operations.js.map +2 -2
  133. package/dist/commonjs/classic/index.d.ts +1 -0
  134. package/dist/commonjs/classic/index.js.map +1 -1
  135. package/dist/commonjs/classic/maintenanceWindows/index.d.ts +31 -0
  136. package/dist/commonjs/classic/maintenanceWindows/index.js +72 -0
  137. package/dist/commonjs/classic/maintenanceWindows/index.js.map +7 -0
  138. package/dist/commonjs/classic/managedClusters/index.d.ts +1 -1
  139. package/dist/commonjs/classic/managedClusters/index.js.map +1 -1
  140. package/dist/commonjs/containerServiceClient.d.ts +3 -0
  141. package/dist/commonjs/containerServiceClient.js +4 -0
  142. package/dist/commonjs/containerServiceClient.js.map +2 -2
  143. package/dist/commonjs/index.d.ts +5 -3
  144. package/dist/commonjs/index.js +9 -0
  145. package/dist/commonjs/index.js.map +2 -2
  146. package/dist/commonjs/models/index.d.ts +2 -2
  147. package/dist/commonjs/models/index.js +4 -0
  148. package/dist/commonjs/models/index.js.map +2 -2
  149. package/dist/commonjs/models/models.d.ts +153 -4
  150. package/dist/commonjs/models/models.js +109 -1
  151. package/dist/commonjs/models/models.js.map +3 -3
  152. package/dist/commonjs/restorePollerHelpers.js +29 -20
  153. package/dist/commonjs/restorePollerHelpers.js.map +3 -3
  154. package/dist/commonjs/static-helpers/pagingHelpers.js +1 -1
  155. package/dist/commonjs/static-helpers/pagingHelpers.js.map +2 -2
  156. package/dist/commonjs/static-helpers/pollingHelpers.d.ts +1 -1
  157. package/dist/commonjs/static-helpers/pollingHelpers.js +1 -1
  158. package/dist/commonjs/static-helpers/pollingHelpers.js.map +2 -2
  159. package/dist/commonjs/static-helpers/simplePollerHelpers.d.ts +1 -1
  160. package/dist/commonjs/static-helpers/simplePollerHelpers.js.map +1 -1
  161. package/dist/esm/api/agentPools/operations.js +47 -27
  162. package/dist/esm/api/agentPools/operations.js.map +1 -1
  163. package/dist/esm/api/containerService/operations.js +5 -3
  164. package/dist/esm/api/containerService/operations.js.map +1 -1
  165. package/dist/esm/api/containerServiceContext.js +4 -2
  166. package/dist/esm/api/containerServiceContext.js.map +1 -1
  167. package/dist/esm/api/identityBindings/operations.js +19 -11
  168. package/dist/esm/api/identityBindings/operations.js.map +1 -1
  169. package/dist/esm/api/jwtAuthenticators/operations.js +19 -11
  170. package/dist/esm/api/jwtAuthenticators/operations.js.map +1 -1
  171. package/dist/esm/api/loadBalancers/operations.js +18 -10
  172. package/dist/esm/api/loadBalancers/operations.js.map +1 -1
  173. package/dist/esm/api/machines/operations.js +14 -8
  174. package/dist/esm/api/machines/operations.js.map +1 -1
  175. package/dist/esm/api/maintenanceConfigurations/operations.js +17 -9
  176. package/dist/esm/api/maintenanceConfigurations/operations.js.map +1 -1
  177. package/dist/esm/api/maintenanceWindows/index.d.ts +3 -0
  178. package/dist/esm/api/maintenanceWindows/index.js +4 -0
  179. package/dist/esm/api/maintenanceWindows/index.js.map +1 -0
  180. package/dist/esm/api/maintenanceWindows/operations.d.ts +31 -0
  181. package/dist/esm/api/maintenanceWindows/operations.js +202 -0
  182. package/dist/esm/api/maintenanceWindows/operations.js.map +1 -0
  183. package/dist/esm/api/maintenanceWindows/options.d.ts +24 -0
  184. package/dist/esm/api/maintenanceWindows/options.js +4 -0
  185. package/dist/esm/api/maintenanceWindows/options.js.map +1 -0
  186. package/dist/esm/api/managedClusterSnapshots/operations.js +26 -14
  187. package/dist/esm/api/managedClusterSnapshots/operations.js.map +1 -1
  188. package/dist/esm/api/managedClusters/operations.d.ts +2 -2
  189. package/dist/esm/api/managedClusters/operations.js +146 -84
  190. package/dist/esm/api/managedClusters/operations.js.map +1 -1
  191. package/dist/esm/api/managedNamespaces/operations.js +27 -15
  192. package/dist/esm/api/managedNamespaces/operations.js.map +1 -1
  193. package/dist/esm/api/meshMemberships/operations.js +19 -11
  194. package/dist/esm/api/meshMemberships/operations.js.map +1 -1
  195. package/dist/esm/api/operationStatusResult/operations.js +13 -7
  196. package/dist/esm/api/operationStatusResult/operations.js.map +1 -1
  197. package/dist/esm/api/operations/operations.js +5 -3
  198. package/dist/esm/api/operations/operations.js.map +1 -1
  199. package/dist/esm/api/privateEndpointConnections/operations.js +17 -9
  200. package/dist/esm/api/privateEndpointConnections/operations.js.map +1 -1
  201. package/dist/esm/api/privateLinkResources/operations.js +4 -2
  202. package/dist/esm/api/privateLinkResources/operations.js.map +1 -1
  203. package/dist/esm/api/resolvePrivateLinkServiceId/operations.js +4 -2
  204. package/dist/esm/api/resolvePrivateLinkServiceId/operations.js.map +1 -1
  205. package/dist/esm/api/snapshots/operations.js +26 -14
  206. package/dist/esm/api/snapshots/operations.js.map +1 -1
  207. package/dist/esm/api/trustedAccessRoleBindings/operations.js +19 -11
  208. package/dist/esm/api/trustedAccessRoleBindings/operations.js.map +1 -1
  209. package/dist/esm/api/trustedAccessRoles/operations.js +5 -3
  210. package/dist/esm/api/trustedAccessRoles/operations.js.map +1 -1
  211. package/dist/esm/api/vmSkus/operations.js +5 -3
  212. package/dist/esm/api/vmSkus/operations.js.map +1 -1
  213. package/dist/esm/classic/index.d.ts +1 -0
  214. package/dist/esm/classic/index.js.map +1 -1
  215. package/dist/esm/classic/maintenanceWindows/index.d.ts +31 -0
  216. package/dist/esm/classic/maintenanceWindows/index.js +36 -0
  217. package/dist/esm/classic/maintenanceWindows/index.js.map +1 -0
  218. package/dist/esm/classic/managedClusters/index.d.ts +1 -1
  219. package/dist/esm/classic/managedClusters/index.js.map +1 -1
  220. package/dist/esm/containerServiceClient.d.ts +3 -0
  221. package/dist/esm/containerServiceClient.js +4 -0
  222. package/dist/esm/containerServiceClient.js.map +1 -1
  223. package/dist/esm/index.d.ts +5 -3
  224. package/dist/esm/index.js +2 -1
  225. package/dist/esm/index.js.map +1 -1
  226. package/dist/esm/models/index.d.ts +2 -2
  227. package/dist/esm/models/index.js +1 -1
  228. package/dist/esm/models/index.js.map +1 -1
  229. package/dist/esm/models/models.d.ts +153 -4
  230. package/dist/esm/models/models.js +114 -2
  231. package/dist/esm/models/models.js.map +1 -1
  232. package/dist/esm/restorePollerHelpers.js +10 -1
  233. package/dist/esm/restorePollerHelpers.js.map +1 -1
  234. package/dist/esm/static-helpers/pagingHelpers.js +1 -1
  235. package/dist/esm/static-helpers/pagingHelpers.js.map +1 -1
  236. package/dist/esm/static-helpers/pollingHelpers.d.ts +1 -1
  237. package/dist/esm/static-helpers/pollingHelpers.js +1 -1
  238. package/dist/esm/static-helpers/pollingHelpers.js.map +1 -1
  239. package/dist/esm/static-helpers/simplePollerHelpers.d.ts +1 -1
  240. package/dist/esm/static-helpers/simplePollerHelpers.js.map +1 -1
  241. package/package.json +18 -3
@@ -123,7 +123,7 @@ function _listKubernetesVersionsSend(context, location, options = { requestOptio
123
123
  {
124
124
  subscriptionId: context.subscriptionId,
125
125
  location,
126
- "api%2Dversion": context.apiVersion ?? "2026-03-02-preview"
126
+ "api%2Dversion": context.apiVersion ?? "2026-04-02-preview"
127
127
  },
128
128
  {
129
129
  allowReserved: options?.requestOptions?.skipUrlEncoding
@@ -138,7 +138,9 @@ async function _listKubernetesVersionsDeserialize(result) {
138
138
  const expectedStatuses = ["200"];
139
139
  if (!expectedStatuses.includes(result.status)) {
140
140
  const error = (0, import_core_client.createRestError)(result);
141
- error.details = (0, import_models.errorResponseDeserializer)(result.body);
141
+ if (result.body) {
142
+ error.details = (0, import_models.errorResponseDeserializer)(result.body);
143
+ }
142
144
  throw error;
143
145
  }
144
146
  return (0, import_models.kubernetesVersionListResultDeserializer)(result.body);
@@ -154,7 +156,7 @@ function _listMeshUpgradeProfilesSend(context, resourceGroupName, resourceName,
154
156
  subscriptionId: context.subscriptionId,
155
157
  resourceGroupName,
156
158
  resourceName,
157
- "api%2Dversion": context.apiVersion ?? "2026-03-02-preview"
159
+ "api%2Dversion": context.apiVersion ?? "2026-04-02-preview"
158
160
  },
159
161
  {
160
162
  allowReserved: options?.requestOptions?.skipUrlEncoding
@@ -169,7 +171,9 @@ async function _listMeshUpgradeProfilesDeserialize(result) {
169
171
  const expectedStatuses = ["200"];
170
172
  if (!expectedStatuses.includes(result.status)) {
171
173
  const error = (0, import_core_client.createRestError)(result);
172
- error.details = (0, import_models.errorResponseDeserializer)(result.body);
174
+ if (result.body) {
175
+ error.details = (0, import_models.errorResponseDeserializer)(result.body);
176
+ }
173
177
  throw error;
174
178
  }
175
179
  return (0, import_models._meshUpgradeProfileListDeserializer)(result.body);
@@ -183,7 +187,7 @@ function listMeshUpgradeProfiles(context, resourceGroupName, resourceName, optio
183
187
  {
184
188
  itemName: "value",
185
189
  nextLinkName: "nextLink",
186
- apiVersion: context.apiVersion ?? "2026-03-02-preview"
190
+ apiVersion: context.apiVersion ?? "2026-04-02-preview"
187
191
  }
188
192
  );
189
193
  }
@@ -195,7 +199,7 @@ function _getMeshUpgradeProfileSend(context, resourceGroupName, resourceName, mo
195
199
  resourceGroupName,
196
200
  resourceName,
197
201
  mode,
198
- "api%2Dversion": context.apiVersion ?? "2026-03-02-preview"
202
+ "api%2Dversion": context.apiVersion ?? "2026-04-02-preview"
199
203
  },
200
204
  {
201
205
  allowReserved: options?.requestOptions?.skipUrlEncoding
@@ -210,7 +214,9 @@ async function _getMeshUpgradeProfileDeserialize(result) {
210
214
  const expectedStatuses = ["200"];
211
215
  if (!expectedStatuses.includes(result.status)) {
212
216
  const error = (0, import_core_client.createRestError)(result);
213
- error.details = (0, import_models.errorResponseDeserializer)(result.body);
217
+ if (result.body) {
218
+ error.details = (0, import_models.errorResponseDeserializer)(result.body);
219
+ }
214
220
  throw error;
215
221
  }
216
222
  return (0, import_models.meshUpgradeProfileDeserializer)(result.body);
@@ -231,7 +237,7 @@ function _listMeshRevisionProfilesSend(context, location, options = { requestOpt
231
237
  {
232
238
  subscriptionId: context.subscriptionId,
233
239
  location,
234
- "api%2Dversion": context.apiVersion ?? "2026-03-02-preview"
240
+ "api%2Dversion": context.apiVersion ?? "2026-04-02-preview"
235
241
  },
236
242
  {
237
243
  allowReserved: options?.requestOptions?.skipUrlEncoding
@@ -246,7 +252,9 @@ async function _listMeshRevisionProfilesDeserialize(result) {
246
252
  const expectedStatuses = ["200"];
247
253
  if (!expectedStatuses.includes(result.status)) {
248
254
  const error = (0, import_core_client.createRestError)(result);
249
- error.details = (0, import_models.errorResponseDeserializer)(result.body);
255
+ if (result.body) {
256
+ error.details = (0, import_models.errorResponseDeserializer)(result.body);
257
+ }
250
258
  throw error;
251
259
  }
252
260
  return (0, import_models._meshRevisionProfileListDeserializer)(result.body);
@@ -260,7 +268,7 @@ function listMeshRevisionProfiles(context, location, options = { requestOptions:
260
268
  {
261
269
  itemName: "value",
262
270
  nextLinkName: "nextLink",
263
- apiVersion: context.apiVersion ?? "2026-03-02-preview"
271
+ apiVersion: context.apiVersion ?? "2026-04-02-preview"
264
272
  }
265
273
  );
266
274
  }
@@ -271,7 +279,7 @@ function _getMeshRevisionProfileSend(context, location, mode, options = { reques
271
279
  subscriptionId: context.subscriptionId,
272
280
  location,
273
281
  mode,
274
- "api%2Dversion": context.apiVersion ?? "2026-03-02-preview"
282
+ "api%2Dversion": context.apiVersion ?? "2026-04-02-preview"
275
283
  },
276
284
  {
277
285
  allowReserved: options?.requestOptions?.skipUrlEncoding
@@ -286,7 +294,9 @@ async function _getMeshRevisionProfileDeserialize(result) {
286
294
  const expectedStatuses = ["200"];
287
295
  if (!expectedStatuses.includes(result.status)) {
288
296
  const error = (0, import_core_client.createRestError)(result);
289
- error.details = (0, import_models.errorResponseDeserializer)(result.body);
297
+ if (result.body) {
298
+ error.details = (0, import_models.errorResponseDeserializer)(result.body);
299
+ }
290
300
  throw error;
291
301
  }
292
302
  return (0, import_models.meshRevisionProfileDeserializer)(result.body);
@@ -301,7 +311,7 @@ function _listSafeguardsVersionsSend(context, location, options = { requestOptio
301
311
  {
302
312
  subscriptionId: context.subscriptionId,
303
313
  location,
304
- "api%2Dversion": context.apiVersion ?? "2026-03-02-preview"
314
+ "api%2Dversion": context.apiVersion ?? "2026-04-02-preview"
305
315
  },
306
316
  {
307
317
  allowReserved: options?.requestOptions?.skipUrlEncoding
@@ -316,7 +326,9 @@ async function _listSafeguardsVersionsDeserialize(result) {
316
326
  const expectedStatuses = ["200"];
317
327
  if (!expectedStatuses.includes(result.status)) {
318
328
  const error = (0, import_core_client.createRestError)(result);
319
- error.details = (0, import_models.errorResponseDeserializer)(result.body);
329
+ if (result.body) {
330
+ error.details = (0, import_models.errorResponseDeserializer)(result.body);
331
+ }
320
332
  throw error;
321
333
  }
322
334
  return (0, import_models._safeguardsAvailableVersionsListDeserializer)(result.body);
@@ -330,7 +342,7 @@ function listSafeguardsVersions(context, location, options = { requestOptions: {
330
342
  {
331
343
  itemName: "value",
332
344
  nextLinkName: "nextLink",
333
- apiVersion: context.apiVersion ?? "2026-03-02-preview"
345
+ apiVersion: context.apiVersion ?? "2026-04-02-preview"
334
346
  }
335
347
  );
336
348
  }
@@ -341,7 +353,7 @@ function _getSafeguardsVersionsSend(context, location, version, options = { requ
341
353
  subscriptionId: context.subscriptionId,
342
354
  location,
343
355
  version,
344
- "api%2Dversion": context.apiVersion ?? "2026-03-02-preview"
356
+ "api%2Dversion": context.apiVersion ?? "2026-04-02-preview"
345
357
  },
346
358
  {
347
359
  allowReserved: options?.requestOptions?.skipUrlEncoding
@@ -356,7 +368,9 @@ async function _getSafeguardsVersionsDeserialize(result) {
356
368
  const expectedStatuses = ["200"];
357
369
  if (!expectedStatuses.includes(result.status)) {
358
370
  const error = (0, import_core_client.createRestError)(result);
359
- error.details = (0, import_models.errorResponseDeserializer)(result.body);
371
+ if (result.body) {
372
+ error.details = (0, import_models.errorResponseDeserializer)(result.body);
373
+ }
360
374
  throw error;
361
375
  }
362
376
  return (0, import_models.safeguardsAvailableVersionDeserializer)(result.body);
@@ -371,7 +385,7 @@ function _listGuardrailsVersionsSend(context, location, options = { requestOptio
371
385
  {
372
386
  subscriptionId: context.subscriptionId,
373
387
  location,
374
- "api%2Dversion": context.apiVersion ?? "2026-03-02-preview"
388
+ "api%2Dversion": context.apiVersion ?? "2026-04-02-preview"
375
389
  },
376
390
  {
377
391
  allowReserved: options?.requestOptions?.skipUrlEncoding
@@ -386,7 +400,9 @@ async function _listGuardrailsVersionsDeserialize(result) {
386
400
  const expectedStatuses = ["200"];
387
401
  if (!expectedStatuses.includes(result.status)) {
388
402
  const error = (0, import_core_client.createRestError)(result);
389
- error.details = (0, import_models.errorResponseDeserializer)(result.body);
403
+ if (result.body) {
404
+ error.details = (0, import_models.errorResponseDeserializer)(result.body);
405
+ }
390
406
  throw error;
391
407
  }
392
408
  return (0, import_models._guardrailsAvailableVersionsListDeserializer)(result.body);
@@ -400,7 +416,7 @@ function listGuardrailsVersions(context, location, options = { requestOptions: {
400
416
  {
401
417
  itemName: "value",
402
418
  nextLinkName: "nextLink",
403
- apiVersion: context.apiVersion ?? "2026-03-02-preview"
419
+ apiVersion: context.apiVersion ?? "2026-04-02-preview"
404
420
  }
405
421
  );
406
422
  }
@@ -411,7 +427,7 @@ function _getGuardrailsVersionsSend(context, location, version, options = { requ
411
427
  subscriptionId: context.subscriptionId,
412
428
  location,
413
429
  version,
414
- "api%2Dversion": context.apiVersion ?? "2026-03-02-preview"
430
+ "api%2Dversion": context.apiVersion ?? "2026-04-02-preview"
415
431
  },
416
432
  {
417
433
  allowReserved: options?.requestOptions?.skipUrlEncoding
@@ -426,7 +442,9 @@ async function _getGuardrailsVersionsDeserialize(result) {
426
442
  const expectedStatuses = ["200"];
427
443
  if (!expectedStatuses.includes(result.status)) {
428
444
  const error = (0, import_core_client.createRestError)(result);
429
- error.details = (0, import_models.errorResponseDeserializer)(result.body);
445
+ if (result.body) {
446
+ error.details = (0, import_models.errorResponseDeserializer)(result.body);
447
+ }
430
448
  throw error;
431
449
  }
432
450
  return (0, import_models.guardrailsAvailableVersionDeserializer)(result.body);
@@ -442,7 +460,7 @@ function _getUpgradeProfileSend(context, resourceGroupName, resourceName, option
442
460
  subscriptionId: context.subscriptionId,
443
461
  resourceGroupName,
444
462
  resourceName,
445
- "api%2Dversion": context.apiVersion ?? "2026-03-02-preview"
463
+ "api%2Dversion": context.apiVersion ?? "2026-04-02-preview"
446
464
  },
447
465
  {
448
466
  allowReserved: options?.requestOptions?.skipUrlEncoding
@@ -457,7 +475,9 @@ async function _getUpgradeProfileDeserialize(result) {
457
475
  const expectedStatuses = ["200"];
458
476
  if (!expectedStatuses.includes(result.status)) {
459
477
  const error = (0, import_core_client.createRestError)(result);
460
- error.details = (0, import_models.errorResponseDeserializer)(result.body);
478
+ if (result.body) {
479
+ error.details = (0, import_models.errorResponseDeserializer)(result.body);
480
+ }
461
481
  throw error;
462
482
  }
463
483
  return (0, import_models.managedClusterUpgradeProfileDeserializer)(result.body);
@@ -473,7 +493,7 @@ function _rebalanceLoadBalancersSend(context, resourceGroupName, resourceName, p
473
493
  subscriptionId: context.subscriptionId,
474
494
  resourceGroupName,
475
495
  resourceName,
476
- "api%2Dversion": context.apiVersion ?? "2026-03-02-preview"
496
+ "api%2Dversion": context.apiVersion ?? "2026-04-02-preview"
477
497
  },
478
498
  {
479
499
  allowReserved: options?.requestOptions?.skipUrlEncoding
@@ -489,7 +509,9 @@ async function _rebalanceLoadBalancersDeserialize(result) {
489
509
  const expectedStatuses = ["202", "204", "200", "201"];
490
510
  if (!expectedStatuses.includes(result.status)) {
491
511
  const error = (0, import_core_client.createRestError)(result);
492
- error.details = (0, import_models.errorResponseDeserializer)(result.body);
512
+ if (result.body) {
513
+ error.details = (0, import_models.errorResponseDeserializer)(result.body);
514
+ }
493
515
  throw error;
494
516
  }
495
517
  return;
@@ -504,7 +526,7 @@ function rebalanceLoadBalancers(context, resourceGroupName, resourceName, parame
504
526
  abortSignal: options?.abortSignal,
505
527
  getInitialResponse: () => _rebalanceLoadBalancersSend(context, resourceGroupName, resourceName, parameters, options),
506
528
  resourceLocationConfig: "azure-async-operation",
507
- apiVersion: context.apiVersion ?? "2026-03-02-preview"
529
+ apiVersion: context.apiVersion ?? "2026-04-02-preview"
508
530
  }
509
531
  );
510
532
  }
@@ -517,7 +539,7 @@ function _listOutboundNetworkDependenciesEndpointsSend(context, resourceGroupNam
517
539
  subscriptionId: context.subscriptionId,
518
540
  resourceGroupName,
519
541
  resourceName,
520
- "api%2Dversion": context.apiVersion ?? "2026-03-02-preview"
542
+ "api%2Dversion": context.apiVersion ?? "2026-04-02-preview"
521
543
  },
522
544
  {
523
545
  allowReserved: options?.requestOptions?.skipUrlEncoding
@@ -532,7 +554,9 @@ async function _listOutboundNetworkDependenciesEndpointsDeserialize(result) {
532
554
  const expectedStatuses = ["200"];
533
555
  if (!expectedStatuses.includes(result.status)) {
534
556
  const error = (0, import_core_client.createRestError)(result);
535
- error.details = (0, import_models.errorResponseDeserializer)(result.body);
557
+ if (result.body) {
558
+ error.details = (0, import_models.errorResponseDeserializer)(result.body);
559
+ }
536
560
  throw error;
537
561
  }
538
562
  return (0, import_models._outboundEnvironmentEndpointCollectionDeserializer)(result.body);
@@ -553,7 +577,7 @@ function listOutboundNetworkDependenciesEndpoints(context, resourceGroupName, re
553
577
  {
554
578
  itemName: "value",
555
579
  nextLinkName: "nextLink",
556
- apiVersion: context.apiVersion ?? "2026-03-02-preview"
580
+ apiVersion: context.apiVersion ?? "2026-04-02-preview"
557
581
  }
558
582
  );
559
583
  }
@@ -565,7 +589,7 @@ function _getCommandResultSend(context, resourceGroupName, resourceName, command
565
589
  resourceGroupName,
566
590
  resourceName,
567
591
  commandId,
568
- "api%2Dversion": context.apiVersion ?? "2026-03-02-preview"
592
+ "api%2Dversion": context.apiVersion ?? "2026-04-02-preview"
569
593
  },
570
594
  {
571
595
  allowReserved: options?.requestOptions?.skipUrlEncoding
@@ -580,10 +604,12 @@ async function _getCommandResultDeserialize(result) {
580
604
  const expectedStatuses = ["200", "202"];
581
605
  if (!expectedStatuses.includes(result.status)) {
582
606
  const error = (0, import_core_client.createRestError)(result);
583
- error.details = (0, import_models.errorResponseDeserializer)(result.body);
607
+ if (result.body) {
608
+ error.details = (0, import_models.errorResponseDeserializer)(result.body);
609
+ }
584
610
  throw error;
585
611
  }
586
- return (0, import_models.runCommandResultDeserializer)(result.body);
612
+ return result.body ? (0, import_models.runCommandResultDeserializer)(result.body) : void 0;
587
613
  }
588
614
  async function getCommandResult(context, resourceGroupName, resourceName, commandId, options = { requestOptions: {} }) {
589
615
  const result = await _getCommandResultSend(
@@ -602,7 +628,7 @@ function _runCommandSend(context, resourceGroupName, resourceName, requestPayloa
602
628
  subscriptionId: context.subscriptionId,
603
629
  resourceGroupName,
604
630
  resourceName,
605
- "api%2Dversion": context.apiVersion ?? "2026-03-02-preview"
631
+ "api%2Dversion": context.apiVersion ?? "2026-04-02-preview"
606
632
  },
607
633
  {
608
634
  allowReserved: options?.requestOptions?.skipUrlEncoding
@@ -616,21 +642,23 @@ function _runCommandSend(context, resourceGroupName, resourceName, requestPayloa
616
642
  });
617
643
  }
618
644
  async function _runCommandDeserialize(result) {
619
- const expectedStatuses = ["202", "200", "201"];
645
+ const expectedStatuses = ["200", "202", "201"];
620
646
  if (!expectedStatuses.includes(result.status)) {
621
647
  const error = (0, import_core_client.createRestError)(result);
622
- error.details = (0, import_models.errorResponseDeserializer)(result.body);
648
+ if (result.body) {
649
+ error.details = (0, import_models.errorResponseDeserializer)(result.body);
650
+ }
623
651
  throw error;
624
652
  }
625
653
  return (0, import_models.runCommandResultDeserializer)(result.body);
626
654
  }
627
655
  function runCommand(context, resourceGroupName, resourceName, requestPayload, options = { requestOptions: {} }) {
628
- return (0, import_pollingHelpers.getLongRunningPoller)(context, _runCommandDeserialize, ["202", "200", "201"], {
656
+ return (0, import_pollingHelpers.getLongRunningPoller)(context, _runCommandDeserialize, ["200", "202", "201"], {
629
657
  updateIntervalInMs: options?.updateIntervalInMs,
630
658
  abortSignal: options?.abortSignal,
631
659
  getInitialResponse: () => _runCommandSend(context, resourceGroupName, resourceName, requestPayload, options),
632
660
  resourceLocationConfig: "location",
633
- apiVersion: context.apiVersion ?? "2026-03-02-preview"
661
+ apiVersion: context.apiVersion ?? "2026-04-02-preview"
634
662
  });
635
663
  }
636
664
  function _startSend(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
@@ -640,7 +668,7 @@ function _startSend(context, resourceGroupName, resourceName, options = { reques
640
668
  subscriptionId: context.subscriptionId,
641
669
  resourceGroupName,
642
670
  resourceName,
643
- "api%2Dversion": context.apiVersion ?? "2026-03-02-preview"
671
+ "api%2Dversion": context.apiVersion ?? "2026-04-02-preview"
644
672
  },
645
673
  {
646
674
  allowReserved: options?.requestOptions?.skipUrlEncoding
@@ -652,7 +680,9 @@ async function _startDeserialize(result) {
652
680
  const expectedStatuses = ["202", "204", "200", "201"];
653
681
  if (!expectedStatuses.includes(result.status)) {
654
682
  const error = (0, import_core_client.createRestError)(result);
655
- error.details = (0, import_models.errorResponseDeserializer)(result.body);
683
+ if (result.body) {
684
+ error.details = (0, import_models.errorResponseDeserializer)(result.body);
685
+ }
656
686
  throw error;
657
687
  }
658
688
  return;
@@ -663,7 +693,7 @@ function start(context, resourceGroupName, resourceName, options = { requestOpti
663
693
  abortSignal: options?.abortSignal,
664
694
  getInitialResponse: () => _startSend(context, resourceGroupName, resourceName, options),
665
695
  resourceLocationConfig: "location",
666
- apiVersion: context.apiVersion ?? "2026-03-02-preview"
696
+ apiVersion: context.apiVersion ?? "2026-04-02-preview"
667
697
  });
668
698
  }
669
699
  function _stopSend(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
@@ -673,7 +703,7 @@ function _stopSend(context, resourceGroupName, resourceName, options = { request
673
703
  subscriptionId: context.subscriptionId,
674
704
  resourceGroupName,
675
705
  resourceName,
676
- "api%2Dversion": context.apiVersion ?? "2026-03-02-preview"
706
+ "api%2Dversion": context.apiVersion ?? "2026-04-02-preview"
677
707
  },
678
708
  {
679
709
  allowReserved: options?.requestOptions?.skipUrlEncoding
@@ -685,7 +715,9 @@ async function _stopDeserialize(result) {
685
715
  const expectedStatuses = ["202", "204", "200", "201"];
686
716
  if (!expectedStatuses.includes(result.status)) {
687
717
  const error = (0, import_core_client.createRestError)(result);
688
- error.details = (0, import_models.errorResponseDeserializer)(result.body);
718
+ if (result.body) {
719
+ error.details = (0, import_models.errorResponseDeserializer)(result.body);
720
+ }
689
721
  throw error;
690
722
  }
691
723
  return;
@@ -696,7 +728,7 @@ function stop(context, resourceGroupName, resourceName, options = { requestOptio
696
728
  abortSignal: options?.abortSignal,
697
729
  getInitialResponse: () => _stopSend(context, resourceGroupName, resourceName, options),
698
730
  resourceLocationConfig: "location",
699
- apiVersion: context.apiVersion ?? "2026-03-02-preview"
731
+ apiVersion: context.apiVersion ?? "2026-04-02-preview"
700
732
  });
701
733
  }
702
734
  function _rotateServiceAccountSigningKeysSend(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
@@ -706,7 +738,7 @@ function _rotateServiceAccountSigningKeysSend(context, resourceGroupName, resour
706
738
  subscriptionId: context.subscriptionId,
707
739
  resourceGroupName,
708
740
  resourceName,
709
- "api%2Dversion": context.apiVersion ?? "2026-03-02-preview"
741
+ "api%2Dversion": context.apiVersion ?? "2026-04-02-preview"
710
742
  },
711
743
  {
712
744
  allowReserved: options?.requestOptions?.skipUrlEncoding
@@ -718,7 +750,9 @@ async function _rotateServiceAccountSigningKeysDeserialize(result) {
718
750
  const expectedStatuses = ["202", "204", "200", "201"];
719
751
  if (!expectedStatuses.includes(result.status)) {
720
752
  const error = (0, import_core_client.createRestError)(result);
721
- error.details = (0, import_models.errorResponseDeserializer)(result.body);
753
+ if (result.body) {
754
+ error.details = (0, import_models.errorResponseDeserializer)(result.body);
755
+ }
722
756
  throw error;
723
757
  }
724
758
  return;
@@ -733,7 +767,7 @@ function rotateServiceAccountSigningKeys(context, resourceGroupName, resourceNam
733
767
  abortSignal: options?.abortSignal,
734
768
  getInitialResponse: () => _rotateServiceAccountSigningKeysSend(context, resourceGroupName, resourceName, options),
735
769
  resourceLocationConfig: "location",
736
- apiVersion: context.apiVersion ?? "2026-03-02-preview"
770
+ apiVersion: context.apiVersion ?? "2026-04-02-preview"
737
771
  }
738
772
  );
739
773
  }
@@ -744,7 +778,7 @@ function _abortLatestOperationSend(context, resourceGroupName, resourceName, opt
744
778
  subscriptionId: context.subscriptionId,
745
779
  resourceGroupName,
746
780
  resourceName,
747
- "api%2Dversion": context.apiVersion ?? "2026-03-02-preview"
781
+ "api%2Dversion": context.apiVersion ?? "2026-04-02-preview"
748
782
  },
749
783
  {
750
784
  allowReserved: options?.requestOptions?.skipUrlEncoding
@@ -756,7 +790,9 @@ async function _abortLatestOperationDeserialize(result) {
756
790
  const expectedStatuses = ["202", "204", "200", "201"];
757
791
  if (!expectedStatuses.includes(result.status)) {
758
792
  const error = (0, import_core_client.createRestError)(result);
759
- error.details = (0, import_models.errorResponseDeserializer)(result.body);
793
+ if (result.body) {
794
+ error.details = (0, import_models.errorResponseDeserializer)(result.body);
795
+ }
760
796
  throw error;
761
797
  }
762
798
  return;
@@ -771,7 +807,7 @@ function abortLatestOperation(context, resourceGroupName, resourceName, options
771
807
  abortSignal: options?.abortSignal,
772
808
  getInitialResponse: () => _abortLatestOperationSend(context, resourceGroupName, resourceName, options),
773
809
  resourceLocationConfig: "location",
774
- apiVersion: context.apiVersion ?? "2026-03-02-preview"
810
+ apiVersion: context.apiVersion ?? "2026-04-02-preview"
775
811
  }
776
812
  );
777
813
  }
@@ -782,7 +818,7 @@ function _rotateClusterCertificatesSend(context, resourceGroupName, resourceName
782
818
  subscriptionId: context.subscriptionId,
783
819
  resourceGroupName,
784
820
  resourceName,
785
- "api%2Dversion": context.apiVersion ?? "2026-03-02-preview"
821
+ "api%2Dversion": context.apiVersion ?? "2026-04-02-preview"
786
822
  },
787
823
  {
788
824
  allowReserved: options?.requestOptions?.skipUrlEncoding
@@ -794,7 +830,9 @@ async function _rotateClusterCertificatesDeserialize(result) {
794
830
  const expectedStatuses = ["202", "204", "200", "201"];
795
831
  if (!expectedStatuses.includes(result.status)) {
796
832
  const error = (0, import_core_client.createRestError)(result);
797
- error.details = (0, import_models.errorResponseDeserializer)(result.body);
833
+ if (result.body) {
834
+ error.details = (0, import_models.errorResponseDeserializer)(result.body);
835
+ }
798
836
  throw error;
799
837
  }
800
838
  return;
@@ -809,7 +847,7 @@ function rotateClusterCertificates(context, resourceGroupName, resourceName, opt
809
847
  abortSignal: options?.abortSignal,
810
848
  getInitialResponse: () => _rotateClusterCertificatesSend(context, resourceGroupName, resourceName, options),
811
849
  resourceLocationConfig: "location",
812
- apiVersion: context.apiVersion ?? "2026-03-02-preview"
850
+ apiVersion: context.apiVersion ?? "2026-04-02-preview"
813
851
  }
814
852
  );
815
853
  }
@@ -820,7 +858,7 @@ function _resetAADProfileSend(context, resourceGroupName, resourceName, paramete
820
858
  subscriptionId: context.subscriptionId,
821
859
  resourceGroupName,
822
860
  resourceName,
823
- "api%2Dversion": context.apiVersion ?? "2026-03-02-preview"
861
+ "api%2Dversion": context.apiVersion ?? "2026-04-02-preview"
824
862
  },
825
863
  {
826
864
  allowReserved: options?.requestOptions?.skipUrlEncoding
@@ -836,7 +874,9 @@ async function _resetAADProfileDeserialize(result) {
836
874
  const expectedStatuses = ["202", "200", "201"];
837
875
  if (!expectedStatuses.includes(result.status)) {
838
876
  const error = (0, import_core_client.createRestError)(result);
839
- error.details = (0, import_models.errorResponseDeserializer)(result.body);
877
+ if (result.body) {
878
+ error.details = (0, import_models.errorResponseDeserializer)(result.body);
879
+ }
840
880
  throw error;
841
881
  }
842
882
  return;
@@ -847,7 +887,7 @@ function resetAADProfile(context, resourceGroupName, resourceName, parameters, o
847
887
  abortSignal: options?.abortSignal,
848
888
  getInitialResponse: () => _resetAADProfileSend(context, resourceGroupName, resourceName, parameters, options),
849
889
  resourceLocationConfig: "location",
850
- apiVersion: context.apiVersion ?? "2026-03-02-preview"
890
+ apiVersion: context.apiVersion ?? "2026-04-02-preview"
851
891
  });
852
892
  }
853
893
  function _resetServicePrincipalProfileSend(context, resourceGroupName, resourceName, parameters, options = { requestOptions: {} }) {
@@ -857,7 +897,7 @@ function _resetServicePrincipalProfileSend(context, resourceGroupName, resourceN
857
897
  subscriptionId: context.subscriptionId,
858
898
  resourceGroupName,
859
899
  resourceName,
860
- "api%2Dversion": context.apiVersion ?? "2026-03-02-preview"
900
+ "api%2Dversion": context.apiVersion ?? "2026-04-02-preview"
861
901
  },
862
902
  {
863
903
  allowReserved: options?.requestOptions?.skipUrlEncoding
@@ -873,7 +913,9 @@ async function _resetServicePrincipalProfileDeserialize(result) {
873
913
  const expectedStatuses = ["202", "200", "201"];
874
914
  if (!expectedStatuses.includes(result.status)) {
875
915
  const error = (0, import_core_client.createRestError)(result);
876
- error.details = (0, import_models.errorResponseDeserializer)(result.body);
916
+ if (result.body) {
917
+ error.details = (0, import_models.errorResponseDeserializer)(result.body);
918
+ }
877
919
  throw error;
878
920
  }
879
921
  return;
@@ -894,7 +936,7 @@ function resetServicePrincipalProfile(context, resourceGroupName, resourceName,
894
936
  options
895
937
  ),
896
938
  resourceLocationConfig: "location",
897
- apiVersion: context.apiVersion ?? "2026-03-02-preview"
939
+ apiVersion: context.apiVersion ?? "2026-04-02-preview"
898
940
  }
899
941
  );
900
942
  }
@@ -907,7 +949,7 @@ function _listClusterMonitoringUserCredentialsSend(context, resourceGroupName, r
907
949
  subscriptionId: context.subscriptionId,
908
950
  resourceGroupName,
909
951
  resourceName,
910
- "api%2Dversion": context.apiVersion ?? "2026-03-02-preview",
952
+ "api%2Dversion": context.apiVersion ?? "2026-04-02-preview",
911
953
  "server%2Dfqdn": options?.serverFqdn
912
954
  },
913
955
  {
@@ -923,7 +965,9 @@ async function _listClusterMonitoringUserCredentialsDeserialize(result) {
923
965
  const expectedStatuses = ["200"];
924
966
  if (!expectedStatuses.includes(result.status)) {
925
967
  const error = (0, import_core_client.createRestError)(result);
926
- error.details = (0, import_models.errorResponseDeserializer)(result.body);
968
+ if (result.body) {
969
+ error.details = (0, import_models.errorResponseDeserializer)(result.body);
970
+ }
927
971
  throw error;
928
972
  }
929
973
  return (0, import_models.credentialResultsDeserializer)(result.body);
@@ -946,7 +990,7 @@ function _listClusterUserCredentialsSend(context, resourceGroupName, resourceNam
946
990
  subscriptionId: context.subscriptionId,
947
991
  resourceGroupName,
948
992
  resourceName,
949
- "api%2Dversion": context.apiVersion ?? "2026-03-02-preview",
993
+ "api%2Dversion": context.apiVersion ?? "2026-04-02-preview",
950
994
  "server%2Dfqdn": options?.serverFqdn,
951
995
  format: options?.format
952
996
  },
@@ -963,7 +1007,9 @@ async function _listClusterUserCredentialsDeserialize(result) {
963
1007
  const expectedStatuses = ["200"];
964
1008
  if (!expectedStatuses.includes(result.status)) {
965
1009
  const error = (0, import_core_client.createRestError)(result);
966
- error.details = (0, import_models.errorResponseDeserializer)(result.body);
1010
+ if (result.body) {
1011
+ error.details = (0, import_models.errorResponseDeserializer)(result.body);
1012
+ }
967
1013
  throw error;
968
1014
  }
969
1015
  return (0, import_models.credentialResultsDeserializer)(result.body);
@@ -984,7 +1030,7 @@ function _listClusterAdminCredentialsSend(context, resourceGroupName, resourceNa
984
1030
  subscriptionId: context.subscriptionId,
985
1031
  resourceGroupName,
986
1032
  resourceName,
987
- "api%2Dversion": context.apiVersion ?? "2026-03-02-preview",
1033
+ "api%2Dversion": context.apiVersion ?? "2026-04-02-preview",
988
1034
  "server%2Dfqdn": options?.serverFqdn
989
1035
  },
990
1036
  {
@@ -1000,7 +1046,9 @@ async function _listClusterAdminCredentialsDeserialize(result) {
1000
1046
  const expectedStatuses = ["200"];
1001
1047
  if (!expectedStatuses.includes(result.status)) {
1002
1048
  const error = (0, import_core_client.createRestError)(result);
1003
- error.details = (0, import_models.errorResponseDeserializer)(result.body);
1049
+ if (result.body) {
1050
+ error.details = (0, import_models.errorResponseDeserializer)(result.body);
1051
+ }
1004
1052
  throw error;
1005
1053
  }
1006
1054
  return (0, import_models.credentialResultsDeserializer)(result.body);
@@ -1022,7 +1070,7 @@ function _getAccessProfileSend(context, resourceGroupName, resourceName, roleNam
1022
1070
  resourceGroupName,
1023
1071
  resourceName,
1024
1072
  roleName,
1025
- "api%2Dversion": context.apiVersion ?? "2026-03-02-preview"
1073
+ "api%2Dversion": context.apiVersion ?? "2026-04-02-preview"
1026
1074
  },
1027
1075
  {
1028
1076
  allowReserved: options?.requestOptions?.skipUrlEncoding
@@ -1037,7 +1085,9 @@ async function _getAccessProfileDeserialize(result) {
1037
1085
  const expectedStatuses = ["200"];
1038
1086
  if (!expectedStatuses.includes(result.status)) {
1039
1087
  const error = (0, import_core_client.createRestError)(result);
1040
- error.details = (0, import_models.errorResponseDeserializer)(result.body);
1088
+ if (result.body) {
1089
+ error.details = (0, import_models.errorResponseDeserializer)(result.body);
1090
+ }
1041
1091
  throw error;
1042
1092
  }
1043
1093
  return (0, import_models.managedClusterAccessProfileDeserializer)(result.body);
@@ -1057,7 +1107,7 @@ function _listSend(context, options = { requestOptions: {} }) {
1057
1107
  "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/managedClusters{?api%2Dversion}",
1058
1108
  {
1059
1109
  subscriptionId: context.subscriptionId,
1060
- "api%2Dversion": context.apiVersion ?? "2026-03-02-preview"
1110
+ "api%2Dversion": context.apiVersion ?? "2026-04-02-preview"
1061
1111
  },
1062
1112
  {
1063
1113
  allowReserved: options?.requestOptions?.skipUrlEncoding
@@ -1072,7 +1122,9 @@ async function _listDeserialize(result) {
1072
1122
  const expectedStatuses = ["200"];
1073
1123
  if (!expectedStatuses.includes(result.status)) {
1074
1124
  const error = (0, import_core_client.createRestError)(result);
1075
- error.details = (0, import_models.errorResponseDeserializer)(result.body);
1125
+ if (result.body) {
1126
+ error.details = (0, import_models.errorResponseDeserializer)(result.body);
1127
+ }
1076
1128
  throw error;
1077
1129
  }
1078
1130
  return (0, import_models._managedClusterListResultDeserializer)(result.body);
@@ -1086,7 +1138,7 @@ function list(context, options = { requestOptions: {} }) {
1086
1138
  {
1087
1139
  itemName: "value",
1088
1140
  nextLinkName: "nextLink",
1089
- apiVersion: context.apiVersion ?? "2026-03-02-preview"
1141
+ apiVersion: context.apiVersion ?? "2026-04-02-preview"
1090
1142
  }
1091
1143
  );
1092
1144
  }
@@ -1096,7 +1148,7 @@ function _listByResourceGroupSend(context, resourceGroupName, options = { reques
1096
1148
  {
1097
1149
  subscriptionId: context.subscriptionId,
1098
1150
  resourceGroupName,
1099
- "api%2Dversion": context.apiVersion ?? "2026-03-02-preview"
1151
+ "api%2Dversion": context.apiVersion ?? "2026-04-02-preview"
1100
1152
  },
1101
1153
  {
1102
1154
  allowReserved: options?.requestOptions?.skipUrlEncoding
@@ -1111,7 +1163,9 @@ async function _listByResourceGroupDeserialize(result) {
1111
1163
  const expectedStatuses = ["200"];
1112
1164
  if (!expectedStatuses.includes(result.status)) {
1113
1165
  const error = (0, import_core_client.createRestError)(result);
1114
- error.details = (0, import_models.errorResponseDeserializer)(result.body);
1166
+ if (result.body) {
1167
+ error.details = (0, import_models.errorResponseDeserializer)(result.body);
1168
+ }
1115
1169
  throw error;
1116
1170
  }
1117
1171
  return (0, import_models._managedClusterListResultDeserializer)(result.body);
@@ -1125,7 +1179,7 @@ function listByResourceGroup(context, resourceGroupName, options = { requestOpti
1125
1179
  {
1126
1180
  itemName: "value",
1127
1181
  nextLinkName: "nextLink",
1128
- apiVersion: context.apiVersion ?? "2026-03-02-preview"
1182
+ apiVersion: context.apiVersion ?? "2026-04-02-preview"
1129
1183
  }
1130
1184
  );
1131
1185
  }
@@ -1136,7 +1190,7 @@ function _$deleteSend(context, resourceGroupName, resourceName, options = { requ
1136
1190
  subscriptionId: context.subscriptionId,
1137
1191
  resourceGroupName,
1138
1192
  resourceName,
1139
- "api%2Dversion": context.apiVersion ?? "2026-03-02-preview",
1193
+ "api%2Dversion": context.apiVersion ?? "2026-04-02-preview",
1140
1194
  "ignore%2Dpod%2Ddisruption%2Dbudget": options?.ignorePodDisruptionBudget
1141
1195
  },
1142
1196
  {
@@ -1155,7 +1209,9 @@ async function _$deleteDeserialize(result) {
1155
1209
  const expectedStatuses = ["202", "204", "200"];
1156
1210
  if (!expectedStatuses.includes(result.status)) {
1157
1211
  const error = (0, import_core_client.createRestError)(result);
1158
- error.details = (0, import_models.errorResponseDeserializer)(result.body);
1212
+ if (result.body) {
1213
+ error.details = (0, import_models.errorResponseDeserializer)(result.body);
1214
+ }
1159
1215
  throw error;
1160
1216
  }
1161
1217
  return;
@@ -1166,7 +1222,7 @@ function $delete(context, resourceGroupName, resourceName, options = { requestOp
1166
1222
  abortSignal: options?.abortSignal,
1167
1223
  getInitialResponse: () => _$deleteSend(context, resourceGroupName, resourceName, options),
1168
1224
  resourceLocationConfig: "azure-async-operation",
1169
- apiVersion: context.apiVersion ?? "2026-03-02-preview"
1225
+ apiVersion: context.apiVersion ?? "2026-04-02-preview"
1170
1226
  });
1171
1227
  }
1172
1228
  function _updateTagsSend(context, resourceGroupName, resourceName, parameters, options = { requestOptions: {} }) {
@@ -1176,7 +1232,7 @@ function _updateTagsSend(context, resourceGroupName, resourceName, parameters, o
1176
1232
  subscriptionId: context.subscriptionId,
1177
1233
  resourceGroupName,
1178
1234
  resourceName,
1179
- "api%2Dversion": context.apiVersion ?? "2026-03-02-preview"
1235
+ "api%2Dversion": context.apiVersion ?? "2026-04-02-preview"
1180
1236
  },
1181
1237
  {
1182
1238
  allowReserved: options?.requestOptions?.skipUrlEncoding
@@ -1197,7 +1253,9 @@ async function _updateTagsDeserialize(result) {
1197
1253
  const expectedStatuses = ["200", "202", "201"];
1198
1254
  if (!expectedStatuses.includes(result.status)) {
1199
1255
  const error = (0, import_core_client.createRestError)(result);
1200
- error.details = (0, import_models.errorResponseDeserializer)(result.body);
1256
+ if (result.body) {
1257
+ error.details = (0, import_models.errorResponseDeserializer)(result.body);
1258
+ }
1201
1259
  throw error;
1202
1260
  }
1203
1261
  return (0, import_models.managedClusterDeserializer)(result.body);
@@ -1208,7 +1266,7 @@ function updateTags(context, resourceGroupName, resourceName, parameters, option
1208
1266
  abortSignal: options?.abortSignal,
1209
1267
  getInitialResponse: () => _updateTagsSend(context, resourceGroupName, resourceName, parameters, options),
1210
1268
  resourceLocationConfig: "azure-async-operation",
1211
- apiVersion: context.apiVersion ?? "2026-03-02-preview"
1269
+ apiVersion: context.apiVersion ?? "2026-04-02-preview"
1212
1270
  });
1213
1271
  }
1214
1272
  function _createOrUpdateSend(context, resourceGroupName, resourceName, parameters, options = { requestOptions: {} }) {
@@ -1218,7 +1276,7 @@ function _createOrUpdateSend(context, resourceGroupName, resourceName, parameter
1218
1276
  subscriptionId: context.subscriptionId,
1219
1277
  resourceGroupName,
1220
1278
  resourceName,
1221
- "api%2Dversion": context.apiVersion ?? "2026-03-02-preview"
1279
+ "api%2Dversion": context.apiVersion ?? "2026-04-02-preview"
1222
1280
  },
1223
1281
  {
1224
1282
  allowReserved: options?.requestOptions?.skipUrlEncoding
@@ -1240,7 +1298,9 @@ async function _createOrUpdateDeserialize(result) {
1240
1298
  const expectedStatuses = ["200", "201", "202"];
1241
1299
  if (!expectedStatuses.includes(result.status)) {
1242
1300
  const error = (0, import_core_client.createRestError)(result);
1243
- error.details = (0, import_models.errorResponseDeserializer)(result.body);
1301
+ if (result.body) {
1302
+ error.details = (0, import_models.errorResponseDeserializer)(result.body);
1303
+ }
1244
1304
  throw error;
1245
1305
  }
1246
1306
  return (0, import_models.managedClusterDeserializer)(result.body);
@@ -1251,7 +1311,7 @@ function createOrUpdate(context, resourceGroupName, resourceName, parameters, op
1251
1311
  abortSignal: options?.abortSignal,
1252
1312
  getInitialResponse: () => _createOrUpdateSend(context, resourceGroupName, resourceName, parameters, options),
1253
1313
  resourceLocationConfig: "azure-async-operation",
1254
- apiVersion: context.apiVersion ?? "2026-03-02-preview"
1314
+ apiVersion: context.apiVersion ?? "2026-04-02-preview"
1255
1315
  });
1256
1316
  }
1257
1317
  function _getSend(context, resourceGroupName, resourceName, options = { requestOptions: {} }) {
@@ -1261,7 +1321,7 @@ function _getSend(context, resourceGroupName, resourceName, options = { requestO
1261
1321
  subscriptionId: context.subscriptionId,
1262
1322
  resourceGroupName,
1263
1323
  resourceName,
1264
- "api%2Dversion": context.apiVersion ?? "2026-03-02-preview"
1324
+ "api%2Dversion": context.apiVersion ?? "2026-04-02-preview"
1265
1325
  },
1266
1326
  {
1267
1327
  allowReserved: options?.requestOptions?.skipUrlEncoding
@@ -1276,7 +1336,9 @@ async function _getDeserialize(result) {
1276
1336
  const expectedStatuses = ["200"];
1277
1337
  if (!expectedStatuses.includes(result.status)) {
1278
1338
  const error = (0, import_core_client.createRestError)(result);
1279
- error.details = (0, import_models.errorResponseDeserializer)(result.body);
1339
+ if (result.body) {
1340
+ error.details = (0, import_models.errorResponseDeserializer)(result.body);
1341
+ }
1280
1342
  throw error;
1281
1343
  }
1282
1344
  return (0, import_models.managedClusterDeserializer)(result.body);