@azure/arm-containerservice 22.0.0 → 22.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 (52) hide show
  1. package/CHANGELOG.md +295 -0
  2. package/README.md +1 -1
  3. package/dist/browser/containerServiceClient.js +2 -2
  4. package/dist/browser/containerServiceClient.js.map +1 -1
  5. package/dist/browser/models/index.d.ts +105 -4
  6. package/dist/browser/models/index.d.ts.map +1 -1
  7. package/dist/browser/models/index.js +12 -0
  8. package/dist/browser/models/index.js.map +1 -1
  9. package/dist/browser/models/mappers.d.ts +8 -0
  10. package/dist/browser/models/mappers.d.ts.map +1 -1
  11. package/dist/browser/models/mappers.js +236 -1
  12. package/dist/browser/models/mappers.js.map +1 -1
  13. package/dist/browser/models/parameters.js +1 -1
  14. package/dist/browser/models/parameters.js.map +1 -1
  15. package/dist/commonjs/containerServiceClient.js +2 -2
  16. package/dist/commonjs/containerServiceClient.js.map +1 -1
  17. package/dist/commonjs/models/index.d.ts +105 -4
  18. package/dist/commonjs/models/index.d.ts.map +1 -1
  19. package/dist/commonjs/models/index.js +13 -1
  20. package/dist/commonjs/models/index.js.map +1 -1
  21. package/dist/commonjs/models/mappers.d.ts +8 -0
  22. package/dist/commonjs/models/mappers.d.ts.map +1 -1
  23. package/dist/commonjs/models/mappers.js +240 -5
  24. package/dist/commonjs/models/mappers.js.map +1 -1
  25. package/dist/commonjs/models/parameters.js +1 -1
  26. package/dist/commonjs/models/parameters.js.map +1 -1
  27. package/dist/esm/containerServiceClient.js +2 -2
  28. package/dist/esm/containerServiceClient.js.map +1 -1
  29. package/dist/esm/models/index.d.ts +105 -4
  30. package/dist/esm/models/index.d.ts.map +1 -1
  31. package/dist/esm/models/index.js +12 -0
  32. package/dist/esm/models/index.js.map +1 -1
  33. package/dist/esm/models/mappers.d.ts +8 -0
  34. package/dist/esm/models/mappers.d.ts.map +1 -1
  35. package/dist/esm/models/mappers.js +236 -1
  36. package/dist/esm/models/mappers.js.map +1 -1
  37. package/dist/esm/models/parameters.js +1 -1
  38. package/dist/esm/models/parameters.js.map +1 -1
  39. package/dist/react-native/containerServiceClient.js +2 -2
  40. package/dist/react-native/containerServiceClient.js.map +1 -1
  41. package/dist/react-native/models/index.d.ts +105 -4
  42. package/dist/react-native/models/index.d.ts.map +1 -1
  43. package/dist/react-native/models/index.js +12 -0
  44. package/dist/react-native/models/index.js.map +1 -1
  45. package/dist/react-native/models/mappers.d.ts +8 -0
  46. package/dist/react-native/models/mappers.d.ts.map +1 -1
  47. package/dist/react-native/models/mappers.js +236 -1
  48. package/dist/react-native/models/mappers.js.map +1 -1
  49. package/dist/react-native/models/parameters.js +1 -1
  50. package/dist/react-native/models/parameters.js.map +1 -1
  51. package/package.json +3 -3
  52. package/review/arm-containerservice.api.md +66 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,300 @@
1
1
  # Release History
2
2
 
3
+ ## 22.1.0 (2025-06-19)
4
+
5
+ ### Features Added
6
+
7
+ - Added Interface AgentPoolGatewayProfile
8
+ - Added Interface AgentPoolStatus
9
+ - Added Interface ManagedClusterStaticEgressGatewayProfile
10
+ - Added Interface ManagedClusterStatus
11
+ - Added Interface ManualScaleProfile
12
+ - Added Interface ScaleProfile
13
+ - Added Interface VirtualMachineNodes
14
+ - Added Interface VirtualMachinesProfile
15
+ - Added Type Alias PodIPAllocationMode
16
+ - Interface AgentPool has a new optional parameter gatewayProfile
17
+ - Interface AgentPool has a new optional parameter podIPAllocationMode
18
+ - Interface AgentPool has a new optional parameter status
19
+ - Interface AgentPool has a new optional parameter virtualMachineNodesStatus
20
+ - Interface AgentPool has a new optional parameter virtualMachinesProfile
21
+ - Interface ContainerServiceNetworkProfile has a new optional parameter staticEgressGatewayProfile
22
+ - Interface Machine has a new optional parameter zones
23
+ - Interface ManagedCluster has a new optional parameter status
24
+ - Interface ManagedClusterAgentPoolProfileProperties has a new optional parameter gatewayProfile
25
+ - Interface ManagedClusterAgentPoolProfileProperties has a new optional parameter podIPAllocationMode
26
+ - Interface ManagedClusterAgentPoolProfileProperties has a new optional parameter status
27
+ - Interface ManagedClusterAgentPoolProfileProperties has a new optional parameter virtualMachineNodesStatus
28
+ - Interface ManagedClusterAgentPoolProfileProperties has a new optional parameter virtualMachinesProfile
29
+ - Added Enum KnownPodIPAllocationMode
30
+ - Enum KnownAgentPoolMode has a new value Gateway
31
+ - Enum KnownAgentPoolType has a new value VirtualMachines
32
+
33
+
34
+ ## 23.0.0-beta.1 (2025-06-18)
35
+ Compared with version 22.0.0
36
+
37
+ ### Features Added
38
+
39
+ - Added operation group ContainerService
40
+ - Added operation group LoadBalancers
41
+ - Added operation group ManagedClusterSnapshots
42
+ - Added operation group ManagedNamespaces
43
+ - Added operation group OperationStatusResultOperations
44
+ - Added operation ManagedClusters.beginRebalanceLoadBalancers
45
+ - Added operation ManagedClusters.beginRebalanceLoadBalancersAndWait
46
+ - Added operation ManagedClusters.getGuardrailsVersions
47
+ - Added operation ManagedClusters.getSafeguardsVersions
48
+ - Added operation ManagedClusters.listGuardrailsVersions
49
+ - Added operation ManagedClusters.listSafeguardsVersions
50
+ - Added Interface AgentPoolArtifactStreamingProfile
51
+ - Added Interface AgentPoolGatewayProfile
52
+ - Added Interface AgentPoolStatus
53
+ - Added Interface AutoScaleProfile
54
+ - Added Interface Component
55
+ - Added Interface ComponentsByRelease
56
+ - Added Interface ContainerServiceListNodeImageVersionsNextOptionalParams
57
+ - Added Interface ContainerServiceListNodeImageVersionsOptionalParams
58
+ - Added Interface ContainerServiceNetworkProfileKubeProxyConfig
59
+ - Added Interface ContainerServiceNetworkProfileKubeProxyConfigIpvsConfig
60
+ - Added Interface GuardrailsAvailableVersion
61
+ - Added Interface GuardrailsAvailableVersionsList
62
+ - Added Interface GuardrailsAvailableVersionsProperties
63
+ - Added Interface LabelSelector
64
+ - Added Interface LabelSelectorRequirement
65
+ - Added Interface LoadBalancer
66
+ - Added Interface LoadBalancerListResult
67
+ - Added Interface LoadBalancersCreateOrUpdateOptionalParams
68
+ - Added Interface LoadBalancersDeleteHeaders
69
+ - Added Interface LoadBalancersDeleteOptionalParams
70
+ - Added Interface LoadBalancersGetOptionalParams
71
+ - Added Interface LoadBalancersListByManagedClusterNextOptionalParams
72
+ - Added Interface LoadBalancersListByManagedClusterOptionalParams
73
+ - Added Interface LocalDNSOverrides
74
+ - Added Interface LocalDNSProfile
75
+ - Added Interface ManagedClusterAIToolchainOperatorProfile
76
+ - Added Interface ManagedClusterAzureMonitorProfileAppMonitoring
77
+ - Added Interface ManagedClusterAzureMonitorProfileAppMonitoringAutoInstrumentation
78
+ - Added Interface ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryLogs
79
+ - Added Interface ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryMetrics
80
+ - Added Interface ManagedClusterAzureMonitorProfileContainerInsights
81
+ - Added Interface ManagedClusterNodeProvisioningProfile
82
+ - Added Interface ManagedClusterPropertiesForSnapshot
83
+ - Added Interface ManagedClusterSecurityProfileDefenderSecurityGating
84
+ - Added Interface ManagedClusterSecurityProfileDefenderSecurityGatingIdentitiesItem
85
+ - Added Interface ManagedClusterSecurityProfileImageIntegrity
86
+ - Added Interface ManagedClusterSecurityProfileNodeRestriction
87
+ - Added Interface ManagedClustersGetGuardrailsVersionsOptionalParams
88
+ - Added Interface ManagedClustersGetSafeguardsVersionsOptionalParams
89
+ - Added Interface ManagedClustersListGuardrailsVersionsNextOptionalParams
90
+ - Added Interface ManagedClustersListGuardrailsVersionsOptionalParams
91
+ - Added Interface ManagedClustersListSafeguardsVersionsNextOptionalParams
92
+ - Added Interface ManagedClustersListSafeguardsVersionsOptionalParams
93
+ - Added Interface ManagedClusterSnapshot
94
+ - Added Interface ManagedClusterSnapshotListResult
95
+ - Added Interface ManagedClusterSnapshotsCreateOrUpdateOptionalParams
96
+ - Added Interface ManagedClusterSnapshotsDeleteOptionalParams
97
+ - Added Interface ManagedClusterSnapshotsGetOptionalParams
98
+ - Added Interface ManagedClusterSnapshotsListByResourceGroupNextOptionalParams
99
+ - Added Interface ManagedClusterSnapshotsListByResourceGroupOptionalParams
100
+ - Added Interface ManagedClusterSnapshotsListNextOptionalParams
101
+ - Added Interface ManagedClusterSnapshotsListOptionalParams
102
+ - Added Interface ManagedClusterSnapshotsUpdateTagsOptionalParams
103
+ - Added Interface ManagedClustersRebalanceLoadBalancersHeaders
104
+ - Added Interface ManagedClustersRebalanceLoadBalancersOptionalParams
105
+ - Added Interface ManagedClusterStaticEgressGatewayProfile
106
+ - Added Interface ManagedClusterStatus
107
+ - Added Interface ManagedNamespace
108
+ - Added Interface ManagedNamespaceListResult
109
+ - Added Interface ManagedNamespacesCreateOrUpdateOptionalParams
110
+ - Added Interface ManagedNamespacesDeleteHeaders
111
+ - Added Interface ManagedNamespacesDeleteOptionalParams
112
+ - Added Interface ManagedNamespacesGetOptionalParams
113
+ - Added Interface ManagedNamespacesListByManagedClusterNextOptionalParams
114
+ - Added Interface ManagedNamespacesListByManagedClusterOptionalParams
115
+ - Added Interface ManagedNamespacesListCredentialOptionalParams
116
+ - Added Interface ManagedNamespacesUpdateOptionalParams
117
+ - Added Interface ManualScaleProfile
118
+ - Added Interface NamespaceProperties
119
+ - Added Interface NetworkPolicies
120
+ - Added Interface NetworkProfileForSnapshot
121
+ - Added Interface NodeImageVersion
122
+ - Added Interface NodeImageVersionsListResult
123
+ - Added Interface OperationStatusResult
124
+ - Added Interface OperationStatusResultGetByAgentPoolOptionalParams
125
+ - Added Interface OperationStatusResultGetOptionalParams
126
+ - Added Interface OperationStatusResultList
127
+ - Added Interface OperationStatusResultListNextOptionalParams
128
+ - Added Interface OperationStatusResultListOptionalParams
129
+ - Added Interface RebalanceLoadBalancersRequestBody
130
+ - Added Interface ResourceQuota
131
+ - Added Interface SafeguardsAvailableVersion
132
+ - Added Interface SafeguardsAvailableVersionsList
133
+ - Added Interface SafeguardsAvailableVersionsProperties
134
+ - Added Interface SafeguardsProfile
135
+ - Added Interface ScaleProfile
136
+ - Added Interface SchedulerInstanceProfile
137
+ - Added Interface SchedulerProfile
138
+ - Added Interface SchedulerProfileSchedulerInstanceProfiles
139
+ - Added Interface VirtualMachineNodes
140
+ - Added Interface VirtualMachinesProfile
141
+ - Added Type Alias AddonAutoscaling
142
+ - Added Type Alias AdoptionPolicy
143
+ - Added Type Alias AdvancedNetworkPolicies
144
+ - Added Type Alias AgentPoolSSHAccess
145
+ - Added Type Alias ClusterServiceLoadBalancerHealthProbeMode
146
+ - Added Type Alias ContainerServiceListNodeImageVersionsNextResponse
147
+ - Added Type Alias ContainerServiceListNodeImageVersionsResponse
148
+ - Added Type Alias DeletePolicy
149
+ - Added Type Alias DriverType
150
+ - Added Type Alias GuardrailsSupport
151
+ - Added Type Alias IpvsScheduler
152
+ - Added Type Alias Level
153
+ - Added Type Alias LoadBalancersCreateOrUpdateResponse
154
+ - Added Type Alias LoadBalancersDeleteResponse
155
+ - Added Type Alias LoadBalancersGetResponse
156
+ - Added Type Alias LoadBalancersListByManagedClusterNextResponse
157
+ - Added Type Alias LoadBalancersListByManagedClusterResponse
158
+ - Added Type Alias LocalDNSForwardDestination
159
+ - Added Type Alias LocalDNSForwardPolicy
160
+ - Added Type Alias LocalDNSMode
161
+ - Added Type Alias LocalDNSProtocol
162
+ - Added Type Alias LocalDNSQueryLogging
163
+ - Added Type Alias LocalDNSServeStale
164
+ - Added Type Alias LocalDNSState
165
+ - Added Type Alias ManagedClustersGetGuardrailsVersionsResponse
166
+ - Added Type Alias ManagedClustersGetSafeguardsVersionsResponse
167
+ - Added Type Alias ManagedClustersListGuardrailsVersionsNextResponse
168
+ - Added Type Alias ManagedClustersListGuardrailsVersionsResponse
169
+ - Added Type Alias ManagedClustersListSafeguardsVersionsNextResponse
170
+ - Added Type Alias ManagedClustersListSafeguardsVersionsResponse
171
+ - Added Type Alias ManagedClusterSnapshotsCreateOrUpdateResponse
172
+ - Added Type Alias ManagedClusterSnapshotsGetResponse
173
+ - Added Type Alias ManagedClusterSnapshotsListByResourceGroupNextResponse
174
+ - Added Type Alias ManagedClusterSnapshotsListByResourceGroupResponse
175
+ - Added Type Alias ManagedClusterSnapshotsListNextResponse
176
+ - Added Type Alias ManagedClusterSnapshotsListResponse
177
+ - Added Type Alias ManagedClusterSnapshotsUpdateTagsResponse
178
+ - Added Type Alias ManagedClustersRebalanceLoadBalancersResponse
179
+ - Added Type Alias ManagedNamespacesCreateOrUpdateResponse
180
+ - Added Type Alias ManagedNamespacesDeleteResponse
181
+ - Added Type Alias ManagedNamespacesGetResponse
182
+ - Added Type Alias ManagedNamespacesListByManagedClusterNextResponse
183
+ - Added Type Alias ManagedNamespacesListByManagedClusterResponse
184
+ - Added Type Alias ManagedNamespacesListCredentialResponse
185
+ - Added Type Alias ManagedNamespacesUpdateResponse
186
+ - Added Type Alias Mode
187
+ - Added Type Alias NamespaceProvisioningState
188
+ - Added Type Alias NodeProvisioningDefaultNodePools
189
+ - Added Type Alias NodeProvisioningMode
190
+ - Added Type Alias OperationStatusResultGetByAgentPoolResponse
191
+ - Added Type Alias OperationStatusResultGetResponse
192
+ - Added Type Alias OperationStatusResultListNextResponse
193
+ - Added Type Alias OperationStatusResultListResponse
194
+ - Added Type Alias Operator
195
+ - Added Type Alias PodIPAllocationMode
196
+ - Added Type Alias PodLinkLocalAccess
197
+ - Added Type Alias PolicyRule
198
+ - Added Type Alias SafeguardsSupport
199
+ - Added Type Alias SchedulerConfigMode
200
+ - Added Type Alias SeccompDefault
201
+ - Added Type Alias TransitEncryptionType
202
+ - Interface AdvancedNetworkingSecurity has a new optional parameter advancedNetworkPolicies
203
+ - Interface AdvancedNetworkingSecurity has a new optional parameter type
204
+ - Interface AgentPool has a new optional parameter artifactStreamingProfile
205
+ - Interface AgentPool has a new optional parameter enableCustomCATrust
206
+ - Interface AgentPool has a new optional parameter gatewayProfile
207
+ - Interface AgentPool has a new optional parameter localDNSProfile
208
+ - Interface AgentPool has a new optional parameter nodeInitializationTaints
209
+ - Interface AgentPool has a new optional parameter podIPAllocationMode
210
+ - Interface AgentPool has a new optional parameter status
211
+ - Interface AgentPool has a new optional parameter virtualMachineNodesStatus
212
+ - Interface AgentPool has a new optional parameter virtualMachinesProfile
213
+ - Interface AgentPoolSecurityProfile has a new optional parameter sshAccess
214
+ - Interface AgentPoolUpgradeProfile has a new optional parameter componentsByReleases
215
+ - Interface AgentPoolUpgradeProfilePropertiesUpgradesItem has a new optional parameter isOutOfSupport
216
+ - Interface AgentPoolUpgradeSettings has a new optional parameter maxBlockedNodes
217
+ - Interface ContainerServiceNetworkProfile has a new optional parameter kubeProxyConfig
218
+ - Interface ContainerServiceNetworkProfile has a new optional parameter podLinkLocalAccess
219
+ - Interface ContainerServiceNetworkProfile has a new optional parameter staticEgressGatewayProfile
220
+ - Interface GPUProfile has a new optional parameter driverType
221
+ - Interface IstioEgressGateway has a new optional parameter gatewayConfigurationName
222
+ - Interface IstioEgressGateway has a new optional parameter namespace
223
+ - Interface KubeletConfig has a new optional parameter seccompDefault
224
+ - Interface ManagedCluster has a new optional parameter aiToolchainOperatorProfile
225
+ - Interface ManagedCluster has a new optional parameter creationData
226
+ - Interface ManagedCluster has a new optional parameter enableNamespaceResources
227
+ - Interface ManagedCluster has a new optional parameter kind
228
+ - Interface ManagedCluster has a new optional parameter nodeProvisioningProfile
229
+ - Interface ManagedCluster has a new optional parameter safeguardsProfile
230
+ - Interface ManagedCluster has a new optional parameter schedulerProfile
231
+ - Interface ManagedCluster has a new optional parameter status
232
+ - Interface ManagedClusterAgentPoolProfileProperties has a new optional parameter artifactStreamingProfile
233
+ - Interface ManagedClusterAgentPoolProfileProperties has a new optional parameter enableCustomCATrust
234
+ - Interface ManagedClusterAgentPoolProfileProperties has a new optional parameter gatewayProfile
235
+ - Interface ManagedClusterAgentPoolProfileProperties has a new optional parameter localDNSProfile
236
+ - Interface ManagedClusterAgentPoolProfileProperties has a new optional parameter nodeInitializationTaints
237
+ - Interface ManagedClusterAgentPoolProfileProperties has a new optional parameter podIPAllocationMode
238
+ - Interface ManagedClusterAgentPoolProfileProperties has a new optional parameter status
239
+ - Interface ManagedClusterAgentPoolProfileProperties has a new optional parameter virtualMachineNodesStatus
240
+ - Interface ManagedClusterAgentPoolProfileProperties has a new optional parameter virtualMachinesProfile
241
+ - Interface ManagedClusterAzureMonitorProfile has a new optional parameter appMonitoring
242
+ - Interface ManagedClusterAzureMonitorProfile has a new optional parameter containerInsights
243
+ - Interface ManagedClusterHttpProxyConfig has a new optional parameter effectiveNoProxy
244
+ - Interface ManagedClusterHttpProxyConfig has a new optional parameter enabled
245
+ - Interface ManagedClusterLoadBalancerProfile has a new optional parameter clusterServiceLoadBalancerHealthProbeMode
246
+ - Interface ManagedClusterPoolUpgradeProfile has a new optional parameter componentsByReleases
247
+ - Interface ManagedClusterPoolUpgradeProfileUpgradesItem has a new optional parameter isOutOfSupport
248
+ - Interface ManagedClustersDeleteOptionalParams has a new optional parameter ignorePodDisruptionBudget
249
+ - Interface ManagedClusterSecurityProfile has a new optional parameter imageIntegrity
250
+ - Interface ManagedClusterSecurityProfile has a new optional parameter nodeRestriction
251
+ - Interface ManagedClusterSecurityProfileDefender has a new optional parameter securityGating
252
+ - Interface ManagedClusterStorageProfileDiskCSIDriver has a new optional parameter version
253
+ - Interface ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler has a new optional parameter addonAutoscaling
254
+ - Added Enum KnownAddonAutoscaling
255
+ - Added Enum KnownAdoptionPolicy
256
+ - Added Enum KnownAdvancedNetworkPolicies
257
+ - Added Enum KnownAgentPoolSSHAccess
258
+ - Added Enum KnownClusterServiceLoadBalancerHealthProbeMode
259
+ - Added Enum KnownDeletePolicy
260
+ - Added Enum KnownDriverType
261
+ - Added Enum KnownGuardrailsSupport
262
+ - Added Enum KnownIpvsScheduler
263
+ - Added Enum KnownLevel
264
+ - Added Enum KnownLocalDNSForwardDestination
265
+ - Added Enum KnownLocalDNSForwardPolicy
266
+ - Added Enum KnownLocalDNSMode
267
+ - Added Enum KnownLocalDNSProtocol
268
+ - Added Enum KnownLocalDNSQueryLogging
269
+ - Added Enum KnownLocalDNSServeStale
270
+ - Added Enum KnownLocalDNSState
271
+ - Added Enum KnownMode
272
+ - Added Enum KnownNamespaceProvisioningState
273
+ - Added Enum KnownNodeProvisioningDefaultNodePools
274
+ - Added Enum KnownNodeProvisioningMode
275
+ - Added Enum KnownOperator
276
+ - Added Enum KnownPodIPAllocationMode
277
+ - Added Enum KnownPodLinkLocalAccess
278
+ - Added Enum KnownPolicyRule
279
+ - Added Enum KnownSafeguardsSupport
280
+ - Added Enum KnownSchedulerConfigMode
281
+ - Added Enum KnownSeccompDefault
282
+ - Added Enum KnownTransitEncryptionType
283
+ - Enum KnownAgentPoolMode has a new value Gateway
284
+ - Enum KnownAgentPoolType has a new value VirtualMachines
285
+ - Enum KnownManagedClusterSKUName has a new value Automatic
286
+ - Enum KnownOssku has a new value Mariner
287
+ - Enum KnownOssku has a new value Ubuntu2404
288
+ - Enum KnownOssku has a new value WindowsAnnual
289
+ - Enum KnownPublicNetworkAccess has a new value SecuredByPerimeter
290
+ - Enum KnownSnapshotType has a new value ManagedCluster
291
+ - Enum KnownWorkloadRuntime has a new value KataMshvVmIsolation
292
+
293
+ ### Breaking Changes
294
+
295
+ - Interface IstioEgressGateway has a new required parameter name
296
+
297
+
3
298
  ## 22.0.0 (2025-06-09)
4
299
 
5
300
  ### Features Added
package/README.md CHANGED
@@ -6,7 +6,7 @@ The Container Service Client.
6
6
 
7
7
  [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/containerservice/arm-containerservice) |
8
8
  [Package (NPM)](https://www.npmjs.com/package/@azure/arm-containerservice) |
9
- [API reference documentation](https://learn.microsoft.com/javascript/api/@azure/arm-containerservice) |
9
+ [API reference documentation](https://learn.microsoft.com/javascript/api/@azure/arm-containerservice?view=azure-node-preview) |
10
10
  [Samples](https://github.com/Azure-Samples/azure-samples-js-management)
11
11
 
12
12
  ## Getting started
@@ -31,7 +31,7 @@ export class ContainerServiceClient extends coreClient.ServiceClient {
31
31
  requestContentType: "application/json; charset=utf-8",
32
32
  credential: credentials,
33
33
  };
34
- const packageDetails = `azsdk-js-arm-containerservice/22.0.0`;
34
+ const packageDetails = `azsdk-js-arm-containerservice/22.1.0`;
35
35
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
36
36
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
37
37
  : `${packageDetails}`;
@@ -64,7 +64,7 @@ export class ContainerServiceClient extends coreClient.ServiceClient {
64
64
  this.subscriptionId = subscriptionId;
65
65
  // Assigning values to Constant parameters
66
66
  this.$host = options.$host || "https://management.azure.com";
67
- this.apiVersion = options.apiVersion || "2025-03-01";
67
+ this.apiVersion = options.apiVersion || "2025-04-01";
68
68
  this.operations = new OperationsImpl(this);
69
69
  this.managedClusters = new ManagedClustersImpl(this);
70
70
  this.maintenanceConfigurations = new MaintenanceConfigurationsImpl(this);
@@ -1 +1 @@
1
- {"version":3,"file":"containerServiceClient.js","sourceRoot":"","sources":["../../src/containerServiceClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,6BAA6B,EAC7B,cAAc,EACd,8BAA8B,EAC9B,wBAAwB,EACxB,+BAA+B,EAC/B,aAAa,EACb,6BAA6B,EAC7B,sBAAsB,EACtB,YAAY,GACb,MAAM,uBAAuB,CAAC;AAgB/B,MAAM,OAAO,sBAAuB,SAAQ,UAAU,CAAC,aAAa;IAKlE;;;;;OAKG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAA8C;;QAE9C,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;QACD,IAAI,cAAc,KAAK,SAAS,EAAE,CAAC;YACjC,MAAM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n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport type {\n PipelineRequest,\n PipelineResponse,\n SendRequest,\n} from \"@azure/core-rest-pipeline\";\nimport type * as coreAuth from \"@azure/core-auth\";\nimport {\n OperationsImpl,\n ManagedClustersImpl,\n MaintenanceConfigurationsImpl,\n AgentPoolsImpl,\n PrivateEndpointConnectionsImpl,\n PrivateLinkResourcesImpl,\n ResolvePrivateLinkServiceIdImpl,\n SnapshotsImpl,\n TrustedAccessRoleBindingsImpl,\n TrustedAccessRolesImpl,\n MachinesImpl,\n} from \"./operations/index.js\";\nimport type {\n Operations,\n ManagedClusters,\n MaintenanceConfigurations,\n AgentPools,\n PrivateEndpointConnections,\n PrivateLinkResources,\n ResolvePrivateLinkServiceId,\n Snapshots,\n TrustedAccessRoleBindings,\n TrustedAccessRoles,\n Machines,\n} from \"./operationsInterfaces/index.js\";\nimport type { ContainerServiceClientOptionalParams } from \"./models/index.js\";\n\nexport class ContainerServiceClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the ContainerServiceClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The ID of the target subscription. The value must be an UUID.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: ContainerServiceClientOptionalParams,\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: ContainerServiceClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-containerservice/22.0.0`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\",\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =\n options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName,\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName,\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge,\n },\n }),\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2025-03-01\";\n this.operations = new OperationsImpl(this);\n this.managedClusters = new ManagedClustersImpl(this);\n this.maintenanceConfigurations = new MaintenanceConfigurationsImpl(this);\n this.agentPools = new AgentPoolsImpl(this);\n this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);\n this.privateLinkResources = new PrivateLinkResourcesImpl(this);\n this.resolvePrivateLinkServiceId = new ResolvePrivateLinkServiceIdImpl(\n this,\n );\n this.snapshots = new SnapshotsImpl(this);\n this.trustedAccessRoleBindings = new TrustedAccessRoleBindingsImpl(this);\n this.trustedAccessRoles = new TrustedAccessRolesImpl(this);\n this.machines = new MachinesImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest,\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n },\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n operations: Operations;\n managedClusters: ManagedClusters;\n maintenanceConfigurations: MaintenanceConfigurations;\n agentPools: AgentPools;\n privateEndpointConnections: PrivateEndpointConnections;\n privateLinkResources: PrivateLinkResources;\n resolvePrivateLinkServiceId: ResolvePrivateLinkServiceId;\n snapshots: Snapshots;\n trustedAccessRoleBindings: TrustedAccessRoleBindings;\n trustedAccessRoles: TrustedAccessRoles;\n machines: Machines;\n}\n"]}
1
+ {"version":3,"file":"containerServiceClient.js","sourceRoot":"","sources":["../../src/containerServiceClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,6BAA6B,EAC7B,cAAc,EACd,8BAA8B,EAC9B,wBAAwB,EACxB,+BAA+B,EAC/B,aAAa,EACb,6BAA6B,EAC7B,sBAAsB,EACtB,YAAY,GACb,MAAM,uBAAuB,CAAC;AAgB/B,MAAM,OAAO,sBAAuB,SAAQ,UAAU,CAAC,aAAa;IAKl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BACrD,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;CAaF","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport type {\n PipelineRequest,\n PipelineResponse,\n SendRequest,\n} from \"@azure/core-rest-pipeline\";\nimport type * as coreAuth from \"@azure/core-auth\";\nimport {\n OperationsImpl,\n ManagedClustersImpl,\n MaintenanceConfigurationsImpl,\n AgentPoolsImpl,\n PrivateEndpointConnectionsImpl,\n PrivateLinkResourcesImpl,\n ResolvePrivateLinkServiceIdImpl,\n SnapshotsImpl,\n TrustedAccessRoleBindingsImpl,\n TrustedAccessRolesImpl,\n MachinesImpl,\n} from \"./operations/index.js\";\nimport type {\n Operations,\n ManagedClusters,\n MaintenanceConfigurations,\n AgentPools,\n PrivateEndpointConnections,\n PrivateLinkResources,\n ResolvePrivateLinkServiceId,\n Snapshots,\n TrustedAccessRoleBindings,\n TrustedAccessRoles,\n Machines,\n} from \"./operationsInterfaces/index.js\";\nimport type { ContainerServiceClientOptionalParams } from \"./models/index.js\";\n\nexport class ContainerServiceClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the ContainerServiceClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The ID of the target subscription. The value must be an UUID.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: ContainerServiceClientOptionalParams,\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: ContainerServiceClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-containerservice/22.1.0`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\",\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =\n options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName,\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName,\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge,\n },\n }),\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2025-04-01\";\n this.operations = new OperationsImpl(this);\n this.managedClusters = new ManagedClustersImpl(this);\n this.maintenanceConfigurations = new MaintenanceConfigurationsImpl(this);\n this.agentPools = new AgentPoolsImpl(this);\n this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);\n this.privateLinkResources = new PrivateLinkResourcesImpl(this);\n this.resolvePrivateLinkServiceId = new ResolvePrivateLinkServiceIdImpl(\n this,\n );\n this.snapshots = new SnapshotsImpl(this);\n this.trustedAccessRoleBindings = new TrustedAccessRoleBindingsImpl(this);\n this.trustedAccessRoles = new TrustedAccessRolesImpl(this);\n this.machines = new MachinesImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest,\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n },\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n operations: Operations;\n managedClusters: ManagedClusters;\n maintenanceConfigurations: MaintenanceConfigurations;\n agentPools: AgentPools;\n privateEndpointConnections: PrivateEndpointConnections;\n privateLinkResources: PrivateLinkResources;\n resolvePrivateLinkServiceId: ResolvePrivateLinkServiceId;\n snapshots: Snapshots;\n trustedAccessRoleBindings: TrustedAccessRoleBindings;\n trustedAccessRoles: TrustedAccessRoles;\n machines: Machines;\n}\n"]}
@@ -185,6 +185,8 @@ export interface ManagedClusterAgentPoolProfileProperties {
185
185
  vnetSubnetID?: string;
186
186
  /** If omitted, pod IPs are statically assigned on the node subnet (see vnetSubnetID for more details). This is of the form: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName} */
187
187
  podSubnetID?: string;
188
+ /** The IP allocation mode for pods in the agent pool. Must be used with podSubnetId. The default is 'DynamicIndividual'. */
189
+ podIPAllocationMode?: PodIPAllocationMode;
188
190
  /** The maximum number of pods that can run on a node. */
189
191
  maxPods?: number;
190
192
  /** The operating system type. The default is Linux. */
@@ -274,6 +276,14 @@ export interface ManagedClusterAgentPoolProfileProperties {
274
276
  securityProfile?: AgentPoolSecurityProfile;
275
277
  /** GPU settings for the Agent Pool. */
276
278
  gpuProfile?: GPUProfile;
279
+ /** Profile specific to a managed agent pool in Gateway mode. This field cannot be set if agent pool mode is not Gateway. */
280
+ gatewayProfile?: AgentPoolGatewayProfile;
281
+ /** Specifications on VirtualMachines agent pool. */
282
+ virtualMachinesProfile?: VirtualMachinesProfile;
283
+ /** The status of nodes in a VirtualMachines agent pool. */
284
+ virtualMachineNodesStatus?: VirtualMachineNodes[];
285
+ /** Contains read-only information about the Agent Pool. */
286
+ status?: AgentPoolStatus;
277
287
  }
278
288
  /** Settings for upgrading an agentpool */
279
289
  export interface AgentPoolUpgradeSettings {
@@ -430,6 +440,43 @@ export interface GPUProfile {
430
440
  /** Whether to install GPU drivers. When it's not specified, default is Install. */
431
441
  driver?: GPUDriver;
432
442
  }
443
+ /** Profile of the managed cluster gateway agent pool. */
444
+ export interface AgentPoolGatewayProfile {
445
+ /** The Gateway agent pool associates one public IPPrefix for each static egress gateway to provide public egress. The size of Public IPPrefix should be selected by the user. Each node in the agent pool is assigned with one IP from the IPPrefix. The IPPrefix size thus serves as a cap on the size of the Gateway agent pool. Due to Azure public IPPrefix size limitation, the valid value range is [28, 31] (/31 = 2 nodes/IPs, /30 = 4 nodes/IPs, /29 = 8 nodes/IPs, /28 = 16 nodes/IPs). The default value is 31. */
446
+ publicIPPrefixSize?: number;
447
+ }
448
+ /** Specifications on VirtualMachines agent pool. */
449
+ export interface VirtualMachinesProfile {
450
+ /** Specifications on how to scale a VirtualMachines agent pool. */
451
+ scale?: ScaleProfile;
452
+ }
453
+ /** Specifications on how to scale a VirtualMachines agent pool. */
454
+ export interface ScaleProfile {
455
+ /** Specifications on how to scale the VirtualMachines agent pool to a fixed size. */
456
+ manual?: ManualScaleProfile[];
457
+ }
458
+ /** Specifications on number of machines. */
459
+ export interface ManualScaleProfile {
460
+ /** VM size that AKS will use when creating and scaling e.g. 'Standard_E4s_v3', 'Standard_E16s_v3' or 'Standard_D16s_v5'. */
461
+ size?: string;
462
+ /** Number of nodes. */
463
+ count?: number;
464
+ }
465
+ /** Current status on a group of nodes of the same vm size. */
466
+ export interface VirtualMachineNodes {
467
+ /** The VM size of the agents used to host this group of nodes. */
468
+ size?: string;
469
+ /** Number of nodes. */
470
+ count?: number;
471
+ }
472
+ /** Contains read-only information about the Agent Pool. */
473
+ export interface AgentPoolStatus {
474
+ /**
475
+ * Preserves the detailed info of failure. If there was no error, this field is omitted.
476
+ * NOTE: This property will not be serialized. It can only be populated by the server.
477
+ */
478
+ readonly provisioningError?: CloudErrorBody;
479
+ }
433
480
  /** Profile for Linux VMs in the container service cluster. */
434
481
  export interface ContainerServiceLinuxProfile {
435
482
  /** The administrator username to use for Linux VMs. */
@@ -602,6 +649,8 @@ export interface ContainerServiceNetworkProfile {
602
649
  loadBalancerProfile?: ManagedClusterLoadBalancerProfile;
603
650
  /** Profile of the cluster NAT gateway. */
604
651
  natGatewayProfile?: ManagedClusterNATGatewayProfile;
652
+ /** The profile for Static Egress Gateway addon. For more details about Static Egress Gateway, see https://aka.ms/aks/static-egress-gateway. */
653
+ staticEgressGatewayProfile?: ManagedClusterStaticEgressGatewayProfile;
605
654
  /** One IPv4 CIDR is expected for single-stack networking. Two CIDRs, one for each IP family (IPv4/IPv6), is expected for dual-stack networking. */
606
655
  podCidrs?: string[];
607
656
  /** One IPv4 CIDR is expected for single-stack networking. Two CIDRs, one for each IP family (IPv4/IPv6), is expected for dual-stack networking. They must not overlap with any Subnet IP ranges. */
@@ -689,6 +738,11 @@ export interface ManagedClusterManagedOutboundIPProfile {
689
738
  /** The desired number of outbound IPs created/managed by Azure. Allowed values must be in the range of 1 to 16 (inclusive). The default value is 1. */
690
739
  count?: number;
691
740
  }
741
+ /** The Static Egress Gateway addon configuration for the cluster. */
742
+ export interface ManagedClusterStaticEgressGatewayProfile {
743
+ /** Indicates if Static Egress Gateway addon is enabled or not. */
744
+ enabled?: boolean;
745
+ }
692
746
  /** For more details see [managed AAD on AKS](https://docs.microsoft.com/azure/aks/managed-aad). */
693
747
  export interface ManagedClusterAADProfile {
694
748
  /** Whether to enable managed AAD. */
@@ -1022,6 +1076,14 @@ export interface ManagedClusterBootstrapProfile {
1022
1076
  /** The resource Id of Azure Container Registry. The registry must have private network access, premium SKU and zone redundancy. */
1023
1077
  containerRegistryId?: string;
1024
1078
  }
1079
+ /** Contains read-only information about the Managed Cluster. */
1080
+ export interface ManagedClusterStatus {
1081
+ /**
1082
+ * Preserves the detailed info of failure. If there was no error, this field is omitted.
1083
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1084
+ */
1085
+ readonly provisioningError?: CloudErrorBody;
1086
+ }
1025
1087
  /** Common fields that are returned in the response for all Azure Resource Manager resources */
1026
1088
  export interface Resource {
1027
1089
  /**
@@ -1716,6 +1778,8 @@ export interface AgentPool extends SubResource {
1716
1778
  vnetSubnetID?: string;
1717
1779
  /** If omitted, pod IPs are statically assigned on the node subnet (see vnetSubnetID for more details). This is of the form: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName} */
1718
1780
  podSubnetID?: string;
1781
+ /** The IP allocation mode for pods in the agent pool. Must be used with podSubnetId. The default is 'DynamicIndividual'. */
1782
+ podIPAllocationMode?: PodIPAllocationMode;
1719
1783
  /** The maximum number of pods that can run on a node. */
1720
1784
  maxPods?: number;
1721
1785
  /** The operating system type. The default is Linux. */
@@ -1805,9 +1869,22 @@ export interface AgentPool extends SubResource {
1805
1869
  securityProfile?: AgentPoolSecurityProfile;
1806
1870
  /** GPU settings for the Agent Pool. */
1807
1871
  gpuProfile?: GPUProfile;
1872
+ /** Profile specific to a managed agent pool in Gateway mode. This field cannot be set if agent pool mode is not Gateway. */
1873
+ gatewayProfile?: AgentPoolGatewayProfile;
1874
+ /** Specifications on VirtualMachines agent pool. */
1875
+ virtualMachinesProfile?: VirtualMachinesProfile;
1876
+ /** The status of nodes in a VirtualMachines agent pool. */
1877
+ virtualMachineNodesStatus?: VirtualMachineNodes[];
1878
+ /** Contains read-only information about the Agent Pool. */
1879
+ status?: AgentPoolStatus;
1808
1880
  }
1809
1881
  /** A machine. Contains details about the underlying virtual machine. A machine may be visible here but not in kubectl get nodes; if so it may be because the machine has not been registered with the Kubernetes API Server yet. */
1810
1882
  export interface Machine extends SubResource {
1883
+ /**
1884
+ * The Availability zone in which machine is located.
1885
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1886
+ */
1887
+ readonly zones?: string[];
1811
1888
  /**
1812
1889
  * The properties of the machine
1813
1890
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -1942,6 +2019,8 @@ export interface ManagedCluster extends TrackedResource {
1942
2019
  metricsProfile?: ManagedClusterMetricsProfile;
1943
2020
  /** Profile of the cluster bootstrap configuration. */
1944
2021
  bootstrapProfile?: ManagedClusterBootstrapProfile;
2022
+ /** Contains read-only information about the Managed Cluster. */
2023
+ status?: ManagedClusterStatus;
1945
2024
  }
1946
2025
  /** Managed cluster Access Profile. */
1947
2026
  export interface ManagedClusterAccessProfile extends TrackedResource {
@@ -2198,6 +2277,22 @@ export declare enum KnownWorkloadRuntime {
2198
2277
  * **WasmWasi**: Nodes will use Krustlet to run WASM workloads using the WASI provider (Preview).
2199
2278
  */
2200
2279
  export type WorkloadRuntime = string;
2280
+ /** Known values of {@link PodIPAllocationMode} that the service accepts. */
2281
+ export declare enum KnownPodIPAllocationMode {
2282
+ /** Each node gets allocated with a non-contiguous list of IP addresses assignable to pods. This is better for maximizing a small to medium subnet of size \/16 or smaller. The Azure CNI cluster with dynamic IP allocation defaults to this mode if the customer does not explicitly specify a podIPAllocationMode */
2283
+ DynamicIndividual = "DynamicIndividual",
2284
+ /** Each node is statically allocated CIDR block(s) of size \/28 = 16 IPs per block to satisfy the maxPods per node. Number of CIDR blocks >= (maxPods \/ 16). The block, rather than a single IP, counts against the Azure Vnet Private IP limit of 65K. Therefore block mode is suitable for running larger workloads with more than the current limit of 65K pods in a cluster. This mode is better suited to scale with larger subnets of \/15 or bigger */
2285
+ StaticBlock = "StaticBlock"
2286
+ }
2287
+ /**
2288
+ * Defines values for PodIPAllocationMode. \
2289
+ * {@link KnownPodIPAllocationMode} can be used interchangeably with PodIPAllocationMode,
2290
+ * this enum contains the known values that the service supports.
2291
+ * ### Known values supported by the service
2292
+ * **DynamicIndividual**: Each node gets allocated with a non-contiguous list of IP addresses assignable to pods. This is better for maximizing a small to medium subnet of size \/16 or smaller. The Azure CNI cluster with dynamic IP allocation defaults to this mode if the customer does not explicitly specify a podIPAllocationMode \
2293
+ * **StaticBlock**: Each node is statically allocated CIDR block(s) of size \/28 = 16 IPs per block to satisfy the maxPods per node. Number of CIDR blocks >= (maxPods \/ 16). The block, rather than a single IP, counts against the Azure Vnet Private IP limit of 65K. Therefore block mode is suitable for running larger workloads with more than the current limit of 65K pods in a cluster. This mode is better suited to scale with larger subnets of \/15 or bigger
2294
+ */
2295
+ export type PodIPAllocationMode = string;
2201
2296
  /** Known values of {@link OSType} that the service accepts. */
2202
2297
  export declare enum KnownOSType {
2203
2298
  /** Use Linux. */
@@ -2263,7 +2358,9 @@ export declare enum KnownAgentPoolType {
2263
2358
  /** Create an Agent Pool backed by a Virtual Machine Scale Set. */
2264
2359
  VirtualMachineScaleSets = "VirtualMachineScaleSets",
2265
2360
  /** Use of this is strongly discouraged. */
2266
- AvailabilitySet = "AvailabilitySet"
2361
+ AvailabilitySet = "AvailabilitySet",
2362
+ /** Create an Agent Pool backed by a Single Instance VM orchestration mode. */
2363
+ VirtualMachines = "VirtualMachines"
2267
2364
  }
2268
2365
  /**
2269
2366
  * Defines values for AgentPoolType. \
@@ -2271,7 +2368,8 @@ export declare enum KnownAgentPoolType {
2271
2368
  * this enum contains the known values that the service supports.
2272
2369
  * ### Known values supported by the service
2273
2370
  * **VirtualMachineScaleSets**: Create an Agent Pool backed by a Virtual Machine Scale Set. \
2274
- * **AvailabilitySet**: Use of this is strongly discouraged.
2371
+ * **AvailabilitySet**: Use of this is strongly discouraged. \
2372
+ * **VirtualMachines**: Create an Agent Pool backed by a Single Instance VM orchestration mode.
2275
2373
  */
2276
2374
  export type AgentPoolType = string;
2277
2375
  /** Known values of {@link AgentPoolMode} that the service accepts. */
@@ -2279,7 +2377,9 @@ export declare enum KnownAgentPoolMode {
2279
2377
  /** System agent pools are primarily for hosting critical system pods such as CoreDNS and metrics-server. System agent pools osType must be Linux. System agent pools VM SKU must have at least 2vCPUs and 4GB of memory. */
2280
2378
  System = "System",
2281
2379
  /** User agent pools are primarily for hosting your application pods. */
2282
- User = "User"
2380
+ User = "User",
2381
+ /** Gateway agent pools are dedicated to providing static egress IPs to pods. For more details, see https:\//aka.ms\/aks\/static-egress-gateway. */
2382
+ Gateway = "Gateway"
2283
2383
  }
2284
2384
  /**
2285
2385
  * Defines values for AgentPoolMode. \
@@ -2287,7 +2387,8 @@ export declare enum KnownAgentPoolMode {
2287
2387
  * this enum contains the known values that the service supports.
2288
2388
  * ### Known values supported by the service
2289
2389
  * **System**: System agent pools are primarily for hosting critical system pods such as CoreDNS and metrics-server. System agent pools osType must be Linux. System agent pools VM SKU must have at least 2vCPUs and 4GB of memory. \
2290
- * **User**: User agent pools are primarily for hosting your application pods.
2390
+ * **User**: User agent pools are primarily for hosting your application pods. \
2391
+ * **Gateway**: Gateway agent pools are dedicated to providing static egress IPs to pods. For more details, see https:\/\/aka.ms\/aks\/static-egress-gateway.
2291
2392
  */
2292
2393
  export type AgentPoolMode = string;
2293
2394
  /** Known values of {@link UndrainableNodeBehavior} that the service accepts. */