Skip to content

Commit 2d74b50

Browse files
mgmt containerservice, update api-version to preview-2025-09-02 (#47336)
* feat(containerservice): update API spec to use preview tag - Changed tag from package-2025-09 to package-preview-2025-09 - Maintained existing modelerfour and sync stack configurations - Preserved ContainerServiceVMSizeTypes model mapping - Kept OSSku model renaming configuration * gulp codegen * chore(containerservice): update api-version to 2025-09-01-preview - Updated `api-version` to `2025-09-01-preview` in changelog - Marked release as non-breaking with other changes category - Removed unreleased status for version 2.57.0-beta.1 * feat(containerservice): update Kubernetes version in test - Updated AKS cluster version from 1.30.3 to 1.31.8 in integration test * chore(assets): update tag reference for container service - Updated asset tag to latest version - Maintained consistency with azure-sdk-assets repository structure * feat(containerservice): add node image version and upgrade strategy support - Add nodeImageVersion field to agent pool configuration - Add upgradeStrategy field to agent pool configuration - Enable preview API version features for virtual machine nodes - Update agent pool inner model with new properties * chore(containerservice): update samples and dependencies to stable API version - Updated API version references from preview/2025-09-02-preview to stable/2025-09-01 - Removed unreleased version entry for azure-resourcemanager-containerservice - Changed dependency version from 2.57.0-beta.1 to 2.56.0 - Removed several generated sample files that were based on preview API - Reordered imports and updated file paths in remaining samples - Removed unused AutoScaleProfile import from AgentPoolsCreateOrUpdateSamples - Fixed resource group path casing in snapshot creation sample * fix(containerservice): simplify managed cluster deletion call - Remove unnecessary null parameter in delete method call - Remove explicit Context.NONE usage in favor of default behavior * chore(containerservice): update changelog release date - Updated release date in CHANGELOG.md from 2025-11-25 to 2025-12-01 - No functional code changes included in this update --------- Co-authored-by: Xiaofei Cao <92354331+XiaofeiCao@users.noreply.github.com>
1 parent dff3b00 commit 2d74b50

File tree

182 files changed

+25108
-1092
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

182 files changed

+25108
-1092
lines changed

sdk/containerservice/azure-resourcemanager-containerservice/CHANGELOG.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
# Release History
22

3-
## 2.57.0-beta.1 (Unreleased)
3+
## 2.57.0-beta.1 (2025-12-01)
44

5-
### Features Added
6-
7-
### Breaking Changes
5+
### Other Changes
86

9-
### Bugs Fixed
7+
#### Dependency Updates
108

11-
### Other Changes
9+
- Updated `api-version` to `2025-09-01-preview`.
1210

1311
## 2.56.1 (2025-11-24)
1412

sdk/containerservice/azure-resourcemanager-containerservice/assets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"AssetsRepo": "Azure/azure-sdk-assets",
33
"AssetsRepoPrefixPath": "java",
44
"TagPrefix": "java/containerservice/azure-resourcemanager-containerservice",
5-
"Tag": "java/containerservice/azure-resourcemanager-containerservice_8815152626"
5+
"Tag": "java/containerservice/azure-resourcemanager-containerservice_c3a165c41a"
66
}

sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/AgentPoolsClient.java

Lines changed: 123 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public interface AgentPoolsClient {
3030
*
3131
* Aborts the currently running operation on the agent pool. The Agent Pool will be moved to a Canceling state and
3232
* eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can
33-
* take place, a 409 error code is returned.
33+
* take place, an error is returned.
3434
*
3535
* @param resourceGroupName The name of the resource group. The name is case insensitive.
3636
* @param resourceName The name of the managed cluster resource.
@@ -49,7 +49,7 @@ Mono<Response<Flux<ByteBuffer>>> abortLatestOperationWithResponseAsync(String re
4949
*
5050
* Aborts the currently running operation on the agent pool. The Agent Pool will be moved to a Canceling state and
5151
* eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can
52-
* take place, a 409 error code is returned.
52+
* take place, an error is returned.
5353
*
5454
* @param resourceGroupName The name of the resource group. The name is case insensitive.
5555
* @param resourceName The name of the managed cluster resource.
@@ -68,7 +68,7 @@ PollerFlux<PollResult<Void>, Void> beginAbortLatestOperationAsync(String resourc
6868
*
6969
* Aborts the currently running operation on the agent pool. The Agent Pool will be moved to a Canceling state and
7070
* eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can
71-
* take place, a 409 error code is returned.
71+
* take place, an error is returned.
7272
*
7373
* @param resourceGroupName The name of the resource group. The name is case insensitive.
7474
* @param resourceName The name of the managed cluster resource.
@@ -87,7 +87,7 @@ SyncPoller<PollResult<Void>, Void> beginAbortLatestOperation(String resourceGrou
8787
*
8888
* Aborts the currently running operation on the agent pool. The Agent Pool will be moved to a Canceling state and
8989
* eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can
90-
* take place, a 409 error code is returned.
90+
* take place, an error is returned.
9191
*
9292
* @param resourceGroupName The name of the resource group. The name is case insensitive.
9393
* @param resourceName The name of the managed cluster resource.
@@ -107,7 +107,7 @@ SyncPoller<PollResult<Void>, Void> beginAbortLatestOperation(String resourceGrou
107107
*
108108
* Aborts the currently running operation on the agent pool. The Agent Pool will be moved to a Canceling state and
109109
* eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can
110-
* take place, a 409 error code is returned.
110+
* take place, an error is returned.
111111
*
112112
* @param resourceGroupName The name of the resource group. The name is case insensitive.
113113
* @param resourceName The name of the managed cluster resource.
@@ -125,7 +125,7 @@ SyncPoller<PollResult<Void>, Void> beginAbortLatestOperation(String resourceGrou
125125
*
126126
* Aborts the currently running operation on the agent pool. The Agent Pool will be moved to a Canceling state and
127127
* eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can
128-
* take place, a 409 error code is returned.
128+
* take place, an error is returned.
129129
*
130130
* @param resourceGroupName The name of the resource group. The name is case insensitive.
131131
* @param resourceName The name of the managed cluster resource.
@@ -142,7 +142,7 @@ SyncPoller<PollResult<Void>, Void> beginAbortLatestOperation(String resourceGrou
142142
*
143143
* Aborts the currently running operation on the agent pool. The Agent Pool will be moved to a Canceling state and
144144
* eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can
145-
* take place, a 409 error code is returned.
145+
* take place, an error is returned.
146146
*
147147
* @param resourceGroupName The name of the resource group. The name is case insensitive.
148148
* @param resourceName The name of the managed cluster resource.
@@ -620,6 +620,122 @@ Response<AgentPoolUpgradeProfileInner> getUpgradeProfileWithResponse(String reso
620620
@ServiceMethod(returns = ReturnType.SINGLE)
621621
AgentPoolUpgradeProfileInner getUpgradeProfile(String resourceGroupName, String resourceName, String agentPoolName);
622622

623+
/**
624+
* Completes the upgrade of an agent pool.
625+
*
626+
* Completes the upgrade operation for the specified agent pool.
627+
*
628+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
629+
* @param resourceName The name of the managed cluster resource.
630+
* @param agentPoolName The name of the agent pool.
631+
* @throws IllegalArgumentException thrown if parameters fail the validation.
632+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
633+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
634+
* @return the {@link Response} on successful completion of {@link Mono}.
635+
*/
636+
@ServiceMethod(returns = ReturnType.SINGLE)
637+
Mono<Response<Flux<ByteBuffer>>> completeUpgradeWithResponseAsync(String resourceGroupName, String resourceName,
638+
String agentPoolName);
639+
640+
/**
641+
* Completes the upgrade of an agent pool.
642+
*
643+
* Completes the upgrade operation for the specified agent pool.
644+
*
645+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
646+
* @param resourceName The name of the managed cluster resource.
647+
* @param agentPoolName The name of the agent pool.
648+
* @throws IllegalArgumentException thrown if parameters fail the validation.
649+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
650+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
651+
* @return the {@link PollerFlux} for polling of long-running operation.
652+
*/
653+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
654+
PollerFlux<PollResult<Void>, Void> beginCompleteUpgradeAsync(String resourceGroupName, String resourceName,
655+
String agentPoolName);
656+
657+
/**
658+
* Completes the upgrade of an agent pool.
659+
*
660+
* Completes the upgrade operation for the specified agent pool.
661+
*
662+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
663+
* @param resourceName The name of the managed cluster resource.
664+
* @param agentPoolName The name of the agent pool.
665+
* @throws IllegalArgumentException thrown if parameters fail the validation.
666+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
667+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
668+
* @return the {@link SyncPoller} for polling of long-running operation.
669+
*/
670+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
671+
SyncPoller<PollResult<Void>, Void> beginCompleteUpgrade(String resourceGroupName, String resourceName,
672+
String agentPoolName);
673+
674+
/**
675+
* Completes the upgrade of an agent pool.
676+
*
677+
* Completes the upgrade operation for the specified agent pool.
678+
*
679+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
680+
* @param resourceName The name of the managed cluster resource.
681+
* @param agentPoolName The name of the agent pool.
682+
* @param context The context to associate with this operation.
683+
* @throws IllegalArgumentException thrown if parameters fail the validation.
684+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
685+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
686+
* @return the {@link SyncPoller} for polling of long-running operation.
687+
*/
688+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
689+
SyncPoller<PollResult<Void>, Void> beginCompleteUpgrade(String resourceGroupName, String resourceName,
690+
String agentPoolName, Context context);
691+
692+
/**
693+
* Completes the upgrade of an agent pool.
694+
*
695+
* Completes the upgrade operation for the specified agent pool.
696+
*
697+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
698+
* @param resourceName The name of the managed cluster resource.
699+
* @param agentPoolName The name of the agent pool.
700+
* @throws IllegalArgumentException thrown if parameters fail the validation.
701+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
702+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
703+
* @return A {@link Mono} that completes when a successful response is received.
704+
*/
705+
@ServiceMethod(returns = ReturnType.SINGLE)
706+
Mono<Void> completeUpgradeAsync(String resourceGroupName, String resourceName, String agentPoolName);
707+
708+
/**
709+
* Completes the upgrade of an agent pool.
710+
*
711+
* Completes the upgrade operation for the specified agent pool.
712+
*
713+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
714+
* @param resourceName The name of the managed cluster resource.
715+
* @param agentPoolName The name of the agent pool.
716+
* @throws IllegalArgumentException thrown if parameters fail the validation.
717+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
718+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
719+
*/
720+
@ServiceMethod(returns = ReturnType.SINGLE)
721+
void completeUpgrade(String resourceGroupName, String resourceName, String agentPoolName);
722+
723+
/**
724+
* Completes the upgrade of an agent pool.
725+
*
726+
* Completes the upgrade operation for the specified agent pool.
727+
*
728+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
729+
* @param resourceName The name of the managed cluster resource.
730+
* @param agentPoolName The name of the agent pool.
731+
* @param context The context to associate with this operation.
732+
* @throws IllegalArgumentException thrown if parameters fail the validation.
733+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
734+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
735+
*/
736+
@ServiceMethod(returns = ReturnType.SINGLE)
737+
void completeUpgrade(String resourceGroupName, String resourceName, String agentPoolName, Context context);
738+
623739
/**
624740
* Deletes specific machines in an agent pool.
625741
*

sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/ContainerServiceManagementClient.java

Lines changed: 55 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,13 @@ public interface ContainerServiceManagementClient {
6868
*/
6969
ManagedClustersClient getManagedClusters();
7070

71+
/**
72+
* Gets the ContainerServiceOperationsClient object to access its operations.
73+
*
74+
* @return the ContainerServiceOperationsClient object.
75+
*/
76+
ContainerServiceOperationsClient getContainerServiceOperations();
77+
7178
/**
7279
* Gets the MaintenanceConfigurationsClient object to access its operations.
7380
*
@@ -89,6 +96,13 @@ public interface ContainerServiceManagementClient {
8996
*/
9097
AgentPoolsClient getAgentPools();
9198

99+
/**
100+
* Gets the MachinesClient object to access its operations.
101+
*
102+
* @return the MachinesClient object.
103+
*/
104+
MachinesClient getMachines();
105+
92106
/**
93107
* Gets the PrivateEndpointConnectionsClient object to access its operations.
94108
*
@@ -110,6 +124,13 @@ public interface ContainerServiceManagementClient {
110124
*/
111125
ResolvePrivateLinkServiceIdsClient getResolvePrivateLinkServiceIds();
112126

127+
/**
128+
* Gets the OperationStatusResultsClient object to access its operations.
129+
*
130+
* @return the OperationStatusResultsClient object.
131+
*/
132+
OperationStatusResultsClient getOperationStatusResults();
133+
113134
/**
114135
* Gets the SnapshotsClient object to access its operations.
115136
*
@@ -118,11 +139,11 @@ public interface ContainerServiceManagementClient {
118139
SnapshotsClient getSnapshots();
119140

120141
/**
121-
* Gets the TrustedAccessRoleBindingsClient object to access its operations.
142+
* Gets the ManagedClusterSnapshotsClient object to access its operations.
122143
*
123-
* @return the TrustedAccessRoleBindingsClient object.
144+
* @return the ManagedClusterSnapshotsClient object.
124145
*/
125-
TrustedAccessRoleBindingsClient getTrustedAccessRoleBindings();
146+
ManagedClusterSnapshotsClient getManagedClusterSnapshots();
126147

127148
/**
128149
* Gets the TrustedAccessRolesClient object to access its operations.
@@ -132,9 +153,37 @@ public interface ContainerServiceManagementClient {
132153
TrustedAccessRolesClient getTrustedAccessRoles();
133154

134155
/**
135-
* Gets the MachinesClient object to access its operations.
156+
* Gets the TrustedAccessRoleBindingsClient object to access its operations.
136157
*
137-
* @return the MachinesClient object.
158+
* @return the TrustedAccessRoleBindingsClient object.
138159
*/
139-
MachinesClient getMachines();
160+
TrustedAccessRoleBindingsClient getTrustedAccessRoleBindings();
161+
162+
/**
163+
* Gets the LoadBalancersClient object to access its operations.
164+
*
165+
* @return the LoadBalancersClient object.
166+
*/
167+
LoadBalancersClient getLoadBalancers();
168+
169+
/**
170+
* Gets the IdentityBindingsClient object to access its operations.
171+
*
172+
* @return the IdentityBindingsClient object.
173+
*/
174+
IdentityBindingsClient getIdentityBindings();
175+
176+
/**
177+
* Gets the JwtAuthenticatorsClient object to access its operations.
178+
*
179+
* @return the JwtAuthenticatorsClient object.
180+
*/
181+
JwtAuthenticatorsClient getJwtAuthenticators();
182+
183+
/**
184+
* Gets the MeshMembershipsClient object to access its operations.
185+
*
186+
* @return the MeshMembershipsClient object.
187+
*/
188+
MeshMembershipsClient getMeshMemberships();
140189
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
// Code generated by Microsoft (R) AutoRest Code Generator.
4+
5+
package com.azure.resourcemanager.containerservice.fluent;
6+
7+
import com.azure.core.annotation.ReturnType;
8+
import com.azure.core.annotation.ServiceMethod;
9+
import com.azure.core.http.rest.PagedFlux;
10+
import com.azure.core.http.rest.PagedIterable;
11+
import com.azure.core.util.Context;
12+
import com.azure.resourcemanager.containerservice.fluent.models.NodeImageVersionInner;
13+
14+
/**
15+
* An instance of this class provides access to all the operations defined in ContainerServiceOperationsClient.
16+
*/
17+
public interface ContainerServiceOperationsClient {
18+
/**
19+
* Gets a list of supported NodeImage versions in the specified subscription.
20+
*
21+
* Only returns the latest version of each node image. For example there may be an
22+
* AKSUbuntu-1804gen2containerd-2024.01.26, but only AKSUbuntu-1804gen2containerd-2024.02.02 is visible in this
23+
* list.
24+
*
25+
* @param location The name of the Azure region.
26+
* @throws IllegalArgumentException thrown if parameters fail the validation.
27+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
28+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
29+
* @return holds an array NodeImageVersions as paginated response with {@link PagedFlux}.
30+
*/
31+
@ServiceMethod(returns = ReturnType.COLLECTION)
32+
PagedFlux<NodeImageVersionInner> listNodeImageVersionsAsync(String location);
33+
34+
/**
35+
* Gets a list of supported NodeImage versions in the specified subscription.
36+
*
37+
* Only returns the latest version of each node image. For example there may be an
38+
* AKSUbuntu-1804gen2containerd-2024.01.26, but only AKSUbuntu-1804gen2containerd-2024.02.02 is visible in this
39+
* list.
40+
*
41+
* @param location The name of the Azure region.
42+
* @throws IllegalArgumentException thrown if parameters fail the validation.
43+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
44+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
45+
* @return holds an array NodeImageVersions as paginated response with {@link PagedIterable}.
46+
*/
47+
@ServiceMethod(returns = ReturnType.COLLECTION)
48+
PagedIterable<NodeImageVersionInner> listNodeImageVersions(String location);
49+
50+
/**
51+
* Gets a list of supported NodeImage versions in the specified subscription.
52+
*
53+
* Only returns the latest version of each node image. For example there may be an
54+
* AKSUbuntu-1804gen2containerd-2024.01.26, but only AKSUbuntu-1804gen2containerd-2024.02.02 is visible in this
55+
* list.
56+
*
57+
* @param location The name of the Azure region.
58+
* @param context The context to associate with this operation.
59+
* @throws IllegalArgumentException thrown if parameters fail the validation.
60+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
61+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
62+
* @return holds an array NodeImageVersions as paginated response with {@link PagedIterable}.
63+
*/
64+
@ServiceMethod(returns = ReturnType.COLLECTION)
65+
PagedIterable<NodeImageVersionInner> listNodeImageVersions(String location, Context context);
66+
}

0 commit comments

Comments
 (0)