Skip to content

Commit 0c76f44

Browse files
mgmt, upgrade AKS 2023-08-01; support nodeResourceGroup (Azure#36964)
* regen * support agentPoolResourceGroup
1 parent a974a06 commit 0c76f44

File tree

91 files changed

+3364
-559
lines changed

Some content is hidden

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

91 files changed

+3364
-559
lines changed

sdk/resourcemanager/api-specs.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
"dir": "azure-resourcemanager-containerservice",
7272
"source": "specification/containerservice/resource-manager/Microsoft.ContainerService/aks/readme.md",
7373
"package": "com.azure.resourcemanager.containerservice",
74-
"args": "--tag=package-2023-07 --preserve-model=ContainerServiceVMSizeTypes --rename-model=Ossku:OSSku"
74+
"args": "--tag=package-2023-08 --modelerfour.lenient-model-deduplication --preserve-model=ContainerServiceVMSizeTypes --rename-model=Ossku:OSSku"
7575
},
7676
"containerservice-hybrid": {
7777
"dir": "../resourcemanagerhybrid/azure-resourcemanager-containerservice",

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,14 @@
44

55
### Features Added
66

7-
### Breaking Changes
8-
9-
### Bugs Fixed
7+
- Supported specifying the resource group for agent pool nodes when creating `KubernetesCluster`.
108

119
### Other Changes
1210

11+
#### Dependency Updates
12+
13+
- Updated `api-version` to `2023-08-01`.
14+
1315
## 2.30.0 (2023-08-25)
1416

1517
### Other Changes

sdk/resourcemanager/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/resourcemanager/azure-resourcemanager-containerservice",
5-
"Tag": "java/resourcemanager/azure-resourcemanager-containerservice_38fae7edd6"
5+
"Tag": "java/resourcemanager/azure-resourcemanager-containerservice_7eed2a3ab4"
66
}

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

Lines changed: 216 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
import com.azure.resourcemanager.containerservice.fluent.models.ManagedClusterAccessProfileInner;
1919
import com.azure.resourcemanager.containerservice.fluent.models.ManagedClusterInner;
2020
import com.azure.resourcemanager.containerservice.fluent.models.ManagedClusterUpgradeProfileInner;
21+
import com.azure.resourcemanager.containerservice.fluent.models.MeshRevisionProfileInner;
22+
import com.azure.resourcemanager.containerservice.fluent.models.MeshUpgradeProfileInner;
2123
import com.azure.resourcemanager.containerservice.fluent.models.OSOptionProfileInner;
2224
import com.azure.resourcemanager.containerservice.fluent.models.OutboundEnvironmentEndpointInner;
2325
import com.azure.resourcemanager.containerservice.fluent.models.RunCommandResultInner;
@@ -1962,4 +1964,218 @@ PagedIterable<OutboundEnvironmentEndpointInner> listOutboundNetworkDependenciesE
19621964
@ServiceMethod(returns = ReturnType.COLLECTION)
19631965
PagedIterable<OutboundEnvironmentEndpointInner> listOutboundNetworkDependenciesEndpoints(
19641966
String resourceGroupName, String resourceName, Context context);
1967+
1968+
/**
1969+
* Lists mesh revision profiles for all meshes in the specified location.
1970+
*
1971+
* <p>Contains extra metadata on each revision, including supported revisions, cluster compatibility and available
1972+
* upgrades.
1973+
*
1974+
* @param location The name of Azure region.
1975+
* @throws IllegalArgumentException thrown if parameters fail the validation.
1976+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
1977+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
1978+
* @return holds an array of MeshRevisionsProfiles as paginated response with {@link PagedFlux}.
1979+
*/
1980+
@ServiceMethod(returns = ReturnType.COLLECTION)
1981+
PagedFlux<MeshRevisionProfileInner> listMeshRevisionProfilesAsync(String location);
1982+
1983+
/**
1984+
* Lists mesh revision profiles for all meshes in the specified location.
1985+
*
1986+
* <p>Contains extra metadata on each revision, including supported revisions, cluster compatibility and available
1987+
* upgrades.
1988+
*
1989+
* @param location The name of Azure region.
1990+
* @throws IllegalArgumentException thrown if parameters fail the validation.
1991+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
1992+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
1993+
* @return holds an array of MeshRevisionsProfiles as paginated response with {@link PagedIterable}.
1994+
*/
1995+
@ServiceMethod(returns = ReturnType.COLLECTION)
1996+
PagedIterable<MeshRevisionProfileInner> listMeshRevisionProfiles(String location);
1997+
1998+
/**
1999+
* Lists mesh revision profiles for all meshes in the specified location.
2000+
*
2001+
* <p>Contains extra metadata on each revision, including supported revisions, cluster compatibility and available
2002+
* upgrades.
2003+
*
2004+
* @param location The name of Azure region.
2005+
* @param context The context to associate with this operation.
2006+
* @throws IllegalArgumentException thrown if parameters fail the validation.
2007+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
2008+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
2009+
* @return holds an array of MeshRevisionsProfiles as paginated response with {@link PagedIterable}.
2010+
*/
2011+
@ServiceMethod(returns = ReturnType.COLLECTION)
2012+
PagedIterable<MeshRevisionProfileInner> listMeshRevisionProfiles(String location, Context context);
2013+
2014+
/**
2015+
* Gets a mesh revision profile for a specified mesh in the specified location.
2016+
*
2017+
* <p>Contains extra metadata on the revision, including supported revisions, cluster compatibility and available
2018+
* upgrades.
2019+
*
2020+
* @param location The name of Azure region.
2021+
* @param mode The mode of the mesh.
2022+
* @throws IllegalArgumentException thrown if parameters fail the validation.
2023+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
2024+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
2025+
* @return mesh revision profile for a mesh along with {@link Response} on successful completion of {@link Mono}.
2026+
*/
2027+
@ServiceMethod(returns = ReturnType.SINGLE)
2028+
Mono<Response<MeshRevisionProfileInner>> getMeshRevisionProfileWithResponseAsync(String location, String mode);
2029+
2030+
/**
2031+
* Gets a mesh revision profile for a specified mesh in the specified location.
2032+
*
2033+
* <p>Contains extra metadata on the revision, including supported revisions, cluster compatibility and available
2034+
* upgrades.
2035+
*
2036+
* @param location The name of Azure region.
2037+
* @param mode The mode of the mesh.
2038+
* @throws IllegalArgumentException thrown if parameters fail the validation.
2039+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
2040+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
2041+
* @return mesh revision profile for a mesh on successful completion of {@link Mono}.
2042+
*/
2043+
@ServiceMethod(returns = ReturnType.SINGLE)
2044+
Mono<MeshRevisionProfileInner> getMeshRevisionProfileAsync(String location, String mode);
2045+
2046+
/**
2047+
* Gets a mesh revision profile for a specified mesh in the specified location.
2048+
*
2049+
* <p>Contains extra metadata on the revision, including supported revisions, cluster compatibility and available
2050+
* upgrades.
2051+
*
2052+
* @param location The name of Azure region.
2053+
* @param mode The mode of the mesh.
2054+
* @param context The context to associate with this operation.
2055+
* @throws IllegalArgumentException thrown if parameters fail the validation.
2056+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
2057+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
2058+
* @return mesh revision profile for a mesh along with {@link Response}.
2059+
*/
2060+
@ServiceMethod(returns = ReturnType.SINGLE)
2061+
Response<MeshRevisionProfileInner> getMeshRevisionProfileWithResponse(
2062+
String location, String mode, Context context);
2063+
2064+
/**
2065+
* Gets a mesh revision profile for a specified mesh in the specified location.
2066+
*
2067+
* <p>Contains extra metadata on the revision, including supported revisions, cluster compatibility and available
2068+
* upgrades.
2069+
*
2070+
* @param location The name of Azure region.
2071+
* @param mode The mode of the mesh.
2072+
* @throws IllegalArgumentException thrown if parameters fail the validation.
2073+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
2074+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
2075+
* @return mesh revision profile for a mesh.
2076+
*/
2077+
@ServiceMethod(returns = ReturnType.SINGLE)
2078+
MeshRevisionProfileInner getMeshRevisionProfile(String location, String mode);
2079+
2080+
/**
2081+
* Lists available upgrades for all service meshes in a specific cluster.
2082+
*
2083+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
2084+
* @param resourceName The name of the managed cluster resource.
2085+
* @throws IllegalArgumentException thrown if parameters fail the validation.
2086+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
2087+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
2088+
* @return holds an array of MeshUpgradeProfiles as paginated response with {@link PagedFlux}.
2089+
*/
2090+
@ServiceMethod(returns = ReturnType.COLLECTION)
2091+
PagedFlux<MeshUpgradeProfileInner> listMeshUpgradeProfilesAsync(String resourceGroupName, String resourceName);
2092+
2093+
/**
2094+
* Lists available upgrades for all service meshes in a specific cluster.
2095+
*
2096+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
2097+
* @param resourceName The name of the managed cluster resource.
2098+
* @throws IllegalArgumentException thrown if parameters fail the validation.
2099+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
2100+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
2101+
* @return holds an array of MeshUpgradeProfiles as paginated response with {@link PagedIterable}.
2102+
*/
2103+
@ServiceMethod(returns = ReturnType.COLLECTION)
2104+
PagedIterable<MeshUpgradeProfileInner> listMeshUpgradeProfiles(String resourceGroupName, String resourceName);
2105+
2106+
/**
2107+
* Lists available upgrades for all service meshes in a specific cluster.
2108+
*
2109+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
2110+
* @param resourceName The name of the managed cluster resource.
2111+
* @param context The context to associate with this operation.
2112+
* @throws IllegalArgumentException thrown if parameters fail the validation.
2113+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
2114+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
2115+
* @return holds an array of MeshUpgradeProfiles as paginated response with {@link PagedIterable}.
2116+
*/
2117+
@ServiceMethod(returns = ReturnType.COLLECTION)
2118+
PagedIterable<MeshUpgradeProfileInner> listMeshUpgradeProfiles(
2119+
String resourceGroupName, String resourceName, Context context);
2120+
2121+
/**
2122+
* Gets available upgrades for a service mesh in a cluster.
2123+
*
2124+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
2125+
* @param resourceName The name of the managed cluster resource.
2126+
* @param mode The mode of the mesh.
2127+
* @throws IllegalArgumentException thrown if parameters fail the validation.
2128+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
2129+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
2130+
* @return available upgrades for a service mesh in a cluster along with {@link Response} on successful completion
2131+
* of {@link Mono}.
2132+
*/
2133+
@ServiceMethod(returns = ReturnType.SINGLE)
2134+
Mono<Response<MeshUpgradeProfileInner>> getMeshUpgradeProfileWithResponseAsync(
2135+
String resourceGroupName, String resourceName, String mode);
2136+
2137+
/**
2138+
* Gets available upgrades for a service mesh in a cluster.
2139+
*
2140+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
2141+
* @param resourceName The name of the managed cluster resource.
2142+
* @param mode The mode of the mesh.
2143+
* @throws IllegalArgumentException thrown if parameters fail the validation.
2144+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
2145+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
2146+
* @return available upgrades for a service mesh in a cluster on successful completion of {@link Mono}.
2147+
*/
2148+
@ServiceMethod(returns = ReturnType.SINGLE)
2149+
Mono<MeshUpgradeProfileInner> getMeshUpgradeProfileAsync(
2150+
String resourceGroupName, String resourceName, String mode);
2151+
2152+
/**
2153+
* Gets available upgrades for a service mesh in a cluster.
2154+
*
2155+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
2156+
* @param resourceName The name of the managed cluster resource.
2157+
* @param mode The mode of the mesh.
2158+
* @param context The context to associate with this operation.
2159+
* @throws IllegalArgumentException thrown if parameters fail the validation.
2160+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
2161+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
2162+
* @return available upgrades for a service mesh in a cluster along with {@link Response}.
2163+
*/
2164+
@ServiceMethod(returns = ReturnType.SINGLE)
2165+
Response<MeshUpgradeProfileInner> getMeshUpgradeProfileWithResponse(
2166+
String resourceGroupName, String resourceName, String mode, Context context);
2167+
2168+
/**
2169+
* Gets available upgrades for a service mesh in a cluster.
2170+
*
2171+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
2172+
* @param resourceName The name of the managed cluster resource.
2173+
* @param mode The mode of the mesh.
2174+
* @throws IllegalArgumentException thrown if parameters fail the validation.
2175+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
2176+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
2177+
* @return available upgrades for a service mesh in a cluster.
2178+
*/
2179+
@ServiceMethod(returns = ReturnType.SINGLE)
2180+
MeshUpgradeProfileInner getMeshUpgradeProfile(String resourceGroupName, String resourceName, String mode);
19652181
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public ManagedClusterAccessProfileInner withTags(Map<String, String> tags) {
6767
* @return the kubeConfig value.
6868
*/
6969
public byte[] kubeConfig() {
70-
return this.innerProperties() == null ? new byte[0] : this.innerProperties().kubeConfig();
70+
return this.innerProperties() == null ? null : this.innerProperties().kubeConfig();
7171
}
7272

7373
/**

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

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
import com.azure.resourcemanager.containerservice.models.ManagedClusterWorkloadAutoScalerProfile;
3232
import com.azure.resourcemanager.containerservice.models.PowerState;
3333
import com.azure.resourcemanager.containerservice.models.PublicNetworkAccess;
34+
import com.azure.resourcemanager.containerservice.models.ServiceMeshProfile;
3435
import com.azure.resourcemanager.containerservice.models.UserAssignedIdentity;
3536
import com.fasterxml.jackson.annotation.JsonProperty;
3637
import java.util.List;
@@ -993,6 +994,39 @@ public ManagedClusterInner withAzureMonitorProfile(ManagedClusterAzureMonitorPro
993994
return this;
994995
}
995996

997+
/**
998+
* Get the serviceMeshProfile property: Service mesh profile for a managed cluster.
999+
*
1000+
* @return the serviceMeshProfile value.
1001+
*/
1002+
public ServiceMeshProfile serviceMeshProfile() {
1003+
return this.innerProperties() == null ? null : this.innerProperties().serviceMeshProfile();
1004+
}
1005+
1006+
/**
1007+
* Set the serviceMeshProfile property: Service mesh profile for a managed cluster.
1008+
*
1009+
* @param serviceMeshProfile the serviceMeshProfile value to set.
1010+
* @return the ManagedClusterInner object itself.
1011+
*/
1012+
public ManagedClusterInner withServiceMeshProfile(ServiceMeshProfile serviceMeshProfile) {
1013+
if (this.innerProperties() == null) {
1014+
this.innerProperties = new ManagedClusterProperties();
1015+
}
1016+
this.innerProperties().withServiceMeshProfile(serviceMeshProfile);
1017+
return this;
1018+
}
1019+
1020+
/**
1021+
* Get the resourceUid property: The resourceUID uniquely identifies ManagedClusters that reuse ARM ResourceIds
1022+
* (i.e: create, delete, create sequence).
1023+
*
1024+
* @return the resourceUid value.
1025+
*/
1026+
public String resourceUid() {
1027+
return this.innerProperties() == null ? null : this.innerProperties().resourceUid();
1028+
}
1029+
9961030
/**
9971031
* Validates the instance.
9981032
*

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

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
import com.azure.resourcemanager.containerservice.models.ManagedClusterWorkloadAutoScalerProfile;
2727
import com.azure.resourcemanager.containerservice.models.PowerState;
2828
import com.azure.resourcemanager.containerservice.models.PublicNetworkAccess;
29+
import com.azure.resourcemanager.containerservice.models.ServiceMeshProfile;
2930
import com.azure.resourcemanager.containerservice.models.UserAssignedIdentity;
3031
import com.fasterxml.jackson.annotation.JsonInclude;
3132
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -295,6 +296,19 @@ public final class ManagedClusterProperties {
295296
@JsonProperty(value = "azureMonitorProfile")
296297
private ManagedClusterAzureMonitorProfile azureMonitorProfile;
297298

299+
/*
300+
* Service mesh profile for a managed cluster.
301+
*/
302+
@JsonProperty(value = "serviceMeshProfile")
303+
private ServiceMeshProfile serviceMeshProfile;
304+
305+
/*
306+
* The resourceUID uniquely identifies ManagedClusters that reuse ARM ResourceIds (i.e: create, delete, create
307+
* sequence)
308+
*/
309+
@JsonProperty(value = "resourceUID", access = JsonProperty.Access.WRITE_ONLY)
310+
private String resourceUid;
311+
298312
/** Creates an instance of ManagedClusterProperties class. */
299313
public ManagedClusterProperties() {
300314
}
@@ -1038,6 +1052,36 @@ public ManagedClusterProperties withAzureMonitorProfile(ManagedClusterAzureMonit
10381052
return this;
10391053
}
10401054

1055+
/**
1056+
* Get the serviceMeshProfile property: Service mesh profile for a managed cluster.
1057+
*
1058+
* @return the serviceMeshProfile value.
1059+
*/
1060+
public ServiceMeshProfile serviceMeshProfile() {
1061+
return this.serviceMeshProfile;
1062+
}
1063+
1064+
/**
1065+
* Set the serviceMeshProfile property: Service mesh profile for a managed cluster.
1066+
*
1067+
* @param serviceMeshProfile the serviceMeshProfile value to set.
1068+
* @return the ManagedClusterProperties object itself.
1069+
*/
1070+
public ManagedClusterProperties withServiceMeshProfile(ServiceMeshProfile serviceMeshProfile) {
1071+
this.serviceMeshProfile = serviceMeshProfile;
1072+
return this;
1073+
}
1074+
1075+
/**
1076+
* Get the resourceUid property: The resourceUID uniquely identifies ManagedClusters that reuse ARM ResourceIds
1077+
* (i.e: create, delete, create sequence).
1078+
*
1079+
* @return the resourceUid value.
1080+
*/
1081+
public String resourceUid() {
1082+
return this.resourceUid;
1083+
}
1084+
10411085
/**
10421086
* Validates the instance.
10431087
*
@@ -1121,5 +1165,8 @@ public void validate() {
11211165
if (azureMonitorProfile() != null) {
11221166
azureMonitorProfile().validate();
11231167
}
1168+
if (serviceMeshProfile() != null) {
1169+
serviceMeshProfile().validate();
1170+
}
11241171
}
11251172
}

0 commit comments

Comments
 (0)