diff --git a/sdk/resourcemanager/api-specs.json b/sdk/resourcemanager/api-specs.json index e07726d013c72..9b923d0bf874b 100644 --- a/sdk/resourcemanager/api-specs.json +++ b/sdk/resourcemanager/api-specs.json @@ -70,7 +70,7 @@ "dir": "azure-resourcemanager-containerservice", "source": "specification/containerservice/resource-manager/Microsoft.ContainerService/aks/readme.md", "package": "com.azure.resourcemanager.containerservice", - "args": "--tag=package-2024-08 --modelerfour.lenient-model-deduplication --preserve-model=ContainerServiceVMSizeTypes --rename-model=Ossku:OSSku" + "args": "--tag=package-2024-09 --modelerfour.lenient-model-deduplication --preserve-model=ContainerServiceVMSizeTypes --rename-model=Ossku:OSSku" }, "containerservice-hybrid": { "dir": "../resourcemanagerhybrid/azure-resourcemanager-containerservice", diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/CHANGELOG.md b/sdk/resourcemanager/azure-resourcemanager-containerservice/CHANGELOG.md index 08ee96f2d8bb0..60b50cb0be449 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/CHANGELOG.md +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/CHANGELOG.md @@ -2,13 +2,11 @@ ## 2.45.0-beta.1 (Unreleased) -### Features Added - -### Breaking Changes +### Other Changes -### Bugs Fixed +#### Dependency Updates -### Other Changes +- Updated `api-version` to `2024-09-01`. ## 2.44.0 (2024-10-25) diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/assets.json b/sdk/resourcemanager/azure-resourcemanager-containerservice/assets.json index 9654394251d3f..7a80721303494 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/assets.json +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "java", "TagPrefix": "java/resourcemanager/azure-resourcemanager-containerservice", - "Tag": "java/resourcemanager/azure-resourcemanager-containerservice_11db77097a" + "Tag": "java/resourcemanager/azure-resourcemanager-containerservice_ac00fa0812" } diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/AgentPoolsClient.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/AgentPoolsClient.java index 74eaf0c6547f0..f1ec76e42adb5 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/AgentPoolsClient.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/AgentPoolsClient.java @@ -262,6 +262,8 @@ Response getWithResponse(String resourceGroupName, String resour * @param resourceName The name of the managed cluster resource. * @param agentPoolName The name of the agent pool. * @param parameters The agent pool to create or update. + * @param ifMatch The request should only proceed if an entity matches this string. + * @param ifNoneMatch The request should only proceed if no entity matches this string. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -269,7 +271,25 @@ Response getWithResponse(String resourceGroupName, String resour */ @ServiceMethod(returns = ReturnType.SINGLE) Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, String resourceName, - String agentPoolName, AgentPoolInner parameters); + String agentPoolName, AgentPoolInner parameters, String ifMatch, String ifNoneMatch); + + /** + * Creates or updates an agent pool in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param parameters The agent pool to create or update. + * @param ifMatch The request should only proceed if an entity matches this string. + * @param ifNoneMatch The request should only proceed if no entity matches this string. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of agent Pool. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, AgentPoolInner> beginCreateOrUpdateAsync(String resourceGroupName, + String resourceName, String agentPoolName, AgentPoolInner parameters, String ifMatch, String ifNoneMatch); /** * Creates or updates an agent pool in the specified managed cluster. @@ -310,6 +330,8 @@ SyncPoller, AgentPoolInner> beginCreateOrUpdate(Strin * @param resourceName The name of the managed cluster resource. * @param agentPoolName The name of the agent pool. * @param parameters The agent pool to create or update. + * @param ifMatch The request should only proceed if an entity matches this string. + * @param ifNoneMatch The request should only proceed if no entity matches this string. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -318,7 +340,26 @@ SyncPoller, AgentPoolInner> beginCreateOrUpdate(Strin */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, AgentPoolInner> beginCreateOrUpdate(String resourceGroupName, - String resourceName, String agentPoolName, AgentPoolInner parameters, Context context); + String resourceName, String agentPoolName, AgentPoolInner parameters, String ifMatch, String ifNoneMatch, + Context context); + + /** + * Creates or updates an agent pool in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param parameters The agent pool to create or update. + * @param ifMatch The request should only proceed if an entity matches this string. + * @param ifNoneMatch The request should only proceed if no entity matches this string. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return agent Pool on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono createOrUpdateAsync(String resourceGroupName, String resourceName, String agentPoolName, + AgentPoolInner parameters, String ifMatch, String ifNoneMatch); /** * Creates or updates an agent pool in the specified managed cluster. @@ -359,6 +400,8 @@ AgentPoolInner createOrUpdate(String resourceGroupName, String resourceName, Str * @param resourceName The name of the managed cluster resource. * @param agentPoolName The name of the agent pool. * @param parameters The agent pool to create or update. + * @param ifMatch The request should only proceed if an entity matches this string. + * @param ifNoneMatch The request should only proceed if no entity matches this string. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -367,7 +410,7 @@ AgentPoolInner createOrUpdate(String resourceGroupName, String resourceName, Str */ @ServiceMethod(returns = ReturnType.SINGLE) AgentPoolInner createOrUpdate(String resourceGroupName, String resourceName, String agentPoolName, - AgentPoolInner parameters, Context context); + AgentPoolInner parameters, String ifMatch, String ifNoneMatch, Context context); /** * Deletes an agent pool in the specified managed cluster. @@ -377,6 +420,7 @@ AgentPoolInner createOrUpdate(String resourceGroupName, String resourceName, Str * @param agentPoolName The name of the agent pool. * @param ignorePodDisruptionBudget ignore-pod-disruption-budget=true to delete those pods on a node without * considering Pod Disruption Budget. + * @param ifMatch The request should only proceed if an entity matches this string. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -384,7 +428,7 @@ AgentPoolInner createOrUpdate(String resourceGroupName, String resourceName, Str */ @ServiceMethod(returns = ReturnType.SINGLE) Mono>> deleteWithResponseAsync(String resourceGroupName, String resourceName, - String agentPoolName, Boolean ignorePodDisruptionBudget); + String agentPoolName, Boolean ignorePodDisruptionBudget, String ifMatch); /** * Deletes an agent pool in the specified managed cluster. @@ -394,6 +438,7 @@ Mono>> deleteWithResponseAsync(String resourceGroupNam * @param agentPoolName The name of the agent pool. * @param ignorePodDisruptionBudget ignore-pod-disruption-budget=true to delete those pods on a node without * considering Pod Disruption Budget. + * @param ifMatch The request should only proceed if an entity matches this string. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -401,7 +446,7 @@ Mono>> deleteWithResponseAsync(String resourceGroupNam */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String resourceName, - String agentPoolName, Boolean ignorePodDisruptionBudget); + String agentPoolName, Boolean ignorePodDisruptionBudget, String ifMatch); /** * Deletes an agent pool in the specified managed cluster. @@ -440,6 +485,7 @@ PollerFlux, Void> beginDeleteAsync(String resourceGroupName, St * @param agentPoolName The name of the agent pool. * @param ignorePodDisruptionBudget ignore-pod-disruption-budget=true to delete those pods on a node without * considering Pod Disruption Budget. + * @param ifMatch The request should only proceed if an entity matches this string. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -448,7 +494,7 @@ PollerFlux, Void> beginDeleteAsync(String resourceGroupName, St */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, String agentPoolName, - Boolean ignorePodDisruptionBudget, Context context); + Boolean ignorePodDisruptionBudget, String ifMatch, Context context); /** * Deletes an agent pool in the specified managed cluster. @@ -458,6 +504,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String * @param agentPoolName The name of the agent pool. * @param ignorePodDisruptionBudget ignore-pod-disruption-budget=true to delete those pods on a node without * considering Pod Disruption Budget. + * @param ifMatch The request should only proceed if an entity matches this string. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -465,7 +512,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String */ @ServiceMethod(returns = ReturnType.SINGLE) Mono deleteAsync(String resourceGroupName, String resourceName, String agentPoolName, - Boolean ignorePodDisruptionBudget); + Boolean ignorePodDisruptionBudget, String ifMatch); /** * Deletes an agent pool in the specified managed cluster. @@ -502,6 +549,7 @@ Mono deleteAsync(String resourceGroupName, String resourceName, String age * @param agentPoolName The name of the agent pool. * @param ignorePodDisruptionBudget ignore-pod-disruption-budget=true to delete those pods on a node without * considering Pod Disruption Budget. + * @param ifMatch The request should only proceed if an entity matches this string. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -509,7 +557,7 @@ Mono deleteAsync(String resourceGroupName, String resourceName, String age */ @ServiceMethod(returns = ReturnType.SINGLE) void delete(String resourceGroupName, String resourceName, String agentPoolName, Boolean ignorePodDisruptionBudget, - Context context); + String ifMatch, Context context); /** * Gets the upgrade profile for an agent pool. diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/ManagedClustersClient.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/ManagedClustersClient.java index f8907436dddef..1e03332b8dffe 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/ManagedClustersClient.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/ManagedClustersClient.java @@ -552,6 +552,8 @@ Response getByResourceGroupWithResponse(String resourceGrou * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param parameters The managed cluster to create or update. + * @param ifMatch The request should only proceed if an entity matches this string. + * @param ifNoneMatch The request should only proceed if no entity matches this string. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -559,7 +561,24 @@ Response getByResourceGroupWithResponse(String resourceGrou */ @ServiceMethod(returns = ReturnType.SINGLE) Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, String resourceName, - ManagedClusterInner parameters); + ManagedClusterInner parameters, String ifMatch, String ifNoneMatch); + + /** + * Creates or updates a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param parameters The managed cluster to create or update. + * @param ifMatch The request should only proceed if an entity matches this string. + * @param ifNoneMatch The request should only proceed if no entity matches this string. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of managed cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, ManagedClusterInner> beginCreateOrUpdateAsync(String resourceGroupName, + String resourceName, ManagedClusterInner parameters, String ifMatch, String ifNoneMatch); /** * Creates or updates a managed cluster. @@ -597,6 +616,8 @@ SyncPoller, ManagedClusterInner> beginCreateOrUp * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param parameters The managed cluster to create or update. + * @param ifMatch The request should only proceed if an entity matches this string. + * @param ifNoneMatch The request should only proceed if no entity matches this string. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -605,7 +626,24 @@ SyncPoller, ManagedClusterInner> beginCreateOrUp */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ManagedClusterInner> beginCreateOrUpdate(String resourceGroupName, - String resourceName, ManagedClusterInner parameters, Context context); + String resourceName, ManagedClusterInner parameters, String ifMatch, String ifNoneMatch, Context context); + + /** + * Creates or updates a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param parameters The managed cluster to create or update. + * @param ifMatch The request should only proceed if an entity matches this string. + * @param ifNoneMatch The request should only proceed if no entity matches this string. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return managed cluster on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono createOrUpdateAsync(String resourceGroupName, String resourceName, + ManagedClusterInner parameters, String ifMatch, String ifNoneMatch); /** * Creates or updates a managed cluster. @@ -642,6 +680,8 @@ Mono createOrUpdateAsync(String resourceGroupName, String r * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param parameters The managed cluster to create or update. + * @param ifMatch The request should only proceed if an entity matches this string. + * @param ifNoneMatch The request should only proceed if no entity matches this string. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -650,7 +690,7 @@ Mono createOrUpdateAsync(String resourceGroupName, String r */ @ServiceMethod(returns = ReturnType.SINGLE) ManagedClusterInner createOrUpdate(String resourceGroupName, String resourceName, ManagedClusterInner parameters, - Context context); + String ifMatch, String ifNoneMatch, Context context); /** * Updates tags on a managed cluster. @@ -658,6 +698,7 @@ ManagedClusterInner createOrUpdate(String resourceGroupName, String resourceName * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param parameters Parameters supplied to the Update Managed Cluster Tags operation. + * @param ifMatch The request should only proceed if an entity matches this string. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -665,7 +706,23 @@ ManagedClusterInner createOrUpdate(String resourceGroupName, String resourceName */ @ServiceMethod(returns = ReturnType.SINGLE) Mono>> updateTagsWithResponseAsync(String resourceGroupName, String resourceName, - TagsObject parameters); + TagsObject parameters, String ifMatch); + + /** + * Updates tags on a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param parameters Parameters supplied to the Update Managed Cluster Tags operation. + * @param ifMatch The request should only proceed if an entity matches this string. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of managed cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, ManagedClusterInner> beginUpdateTagsAsync(String resourceGroupName, + String resourceName, TagsObject parameters, String ifMatch); /** * Updates tags on a managed cluster. @@ -703,6 +760,7 @@ SyncPoller, ManagedClusterInner> beginUpdateTags * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param parameters Parameters supplied to the Update Managed Cluster Tags operation. + * @param ifMatch The request should only proceed if an entity matches this string. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -711,7 +769,23 @@ SyncPoller, ManagedClusterInner> beginUpdateTags */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ManagedClusterInner> beginUpdateTags(String resourceGroupName, - String resourceName, TagsObject parameters, Context context); + String resourceName, TagsObject parameters, String ifMatch, Context context); + + /** + * Updates tags on a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param parameters Parameters supplied to the Update Managed Cluster Tags operation. + * @param ifMatch The request should only proceed if an entity matches this string. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return managed cluster on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono updateTagsAsync(String resourceGroupName, String resourceName, TagsObject parameters, + String ifMatch); /** * Updates tags on a managed cluster. @@ -747,6 +821,7 @@ SyncPoller, ManagedClusterInner> beginUpdateTags * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param parameters Parameters supplied to the Update Managed Cluster Tags operation. + * @param ifMatch The request should only proceed if an entity matches this string. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -754,7 +829,7 @@ SyncPoller, ManagedClusterInner> beginUpdateTags * @return managed cluster. */ @ServiceMethod(returns = ReturnType.SINGLE) - ManagedClusterInner updateTags(String resourceGroupName, String resourceName, TagsObject parameters, + ManagedClusterInner updateTags(String resourceGroupName, String resourceName, TagsObject parameters, String ifMatch, Context context); /** @@ -762,13 +837,29 @@ ManagedClusterInner updateTags(String resourceGroupName, String resourceName, Ta * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. + * @param ifMatch The request should only proceed if an entity matches this string. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> deleteWithResponseAsync(String resourceGroupName, String resourceName); + Mono>> deleteWithResponseAsync(String resourceGroupName, String resourceName, + String ifMatch); + + /** + * Deletes a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param ifMatch The request should only proceed if an entity matches this string. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String resourceName, String ifMatch); /** * Deletes a managed cluster. @@ -801,6 +892,7 @@ ManagedClusterInner updateTags(String resourceGroupName, String resourceName, Ta * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. + * @param ifMatch The request should only proceed if an entity matches this string. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -808,7 +900,22 @@ ManagedClusterInner updateTags(String resourceGroupName, String resourceName, Ta * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, Context context); + SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, String ifMatch, + Context context); + + /** + * Deletes a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param ifMatch The request should only proceed if an entity matches this string. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono deleteAsync(String resourceGroupName, String resourceName, String ifMatch); /** * Deletes a managed cluster. @@ -840,13 +947,14 @@ ManagedClusterInner updateTags(String resourceGroupName, String resourceName, Ta * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. + * @param ifMatch The request should only proceed if an entity matches this string. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String resourceName, Context context); + void delete(String resourceGroupName, String resourceName, String ifMatch, Context context); /** * Reset the Service Principal Profile of a managed cluster. diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/AgentPoolInner.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/AgentPoolInner.java index 3f30ffb77a536..c9507d7356dff 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/AgentPoolInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/AgentPoolInner.java @@ -95,6 +95,17 @@ public AgentPoolInner withId(String id) { return this; } + /** + * Get the etag property: Unique read-only string used to implement optimistic concurrency. The eTag value will + * change when the resource is updated. Specify an if-match or if-none-match header with the eTag value for a + * subsequent request to enable optimistic concurrency per the normal etag convention. + * + * @return the etag value. + */ + public String etag() { + return this.innerProperties() == null ? null : this.innerProperties().etag(); + } + /** * Get the count property: Number of agents (VMs) to host docker containers. Allowed values must be in the range of * 0 to 1000 (inclusive) for user pools and in the range of 1 to 1000 (inclusive) for system pools. The default diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterAgentPoolProfileProperties.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterAgentPoolProfileProperties.java index 9821d875ef72d..fc45544e8e1aa 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterAgentPoolProfileProperties.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterAgentPoolProfileProperties.java @@ -38,6 +38,13 @@ @Fluent public class ManagedClusterAgentPoolProfileProperties implements JsonSerializable { + /* + * Unique read-only string used to implement optimistic concurrency. The eTag value will change when the resource is + * updated. Specify an if-match or if-none-match header with the eTag value for a subsequent request to enable + * optimistic concurrency per the normal etag convention. + */ + private String etag; + /* * Number of agents (VMs) to host docker containers. Allowed values must be in the range of 0 to 1000 (inclusive) * for user pools and in the range of 1 to 1000 (inclusive) for system pools. The default value is 1. @@ -309,6 +316,30 @@ public class ManagedClusterAgentPoolProfileProperties public ManagedClusterAgentPoolProfileProperties() { } + /** + * Get the etag property: Unique read-only string used to implement optimistic concurrency. The eTag value will + * change when the resource is updated. Specify an if-match or if-none-match header with the eTag value for a + * subsequent request to enable optimistic concurrency per the normal etag convention. + * + * @return the etag value. + */ + public String etag() { + return this.etag; + } + + /** + * Set the etag property: Unique read-only string used to implement optimistic concurrency. The eTag value will + * change when the resource is updated. Specify an if-match or if-none-match header with the eTag value for a + * subsequent request to enable optimistic concurrency per the normal etag convention. + * + * @param etag the etag value to set. + * @return the ManagedClusterAgentPoolProfileProperties object itself. + */ + ManagedClusterAgentPoolProfileProperties withEtag(String etag) { + this.etag = etag; + return this; + } + /** * Get the count property: Number of agents (VMs) to host docker containers. Allowed values must be in the range of * 0 to 1000 (inclusive) for user pools and in the range of 1 to 1000 (inclusive) for system pools. The default @@ -1415,7 +1446,9 @@ public static ManagedClusterAgentPoolProfileProperties fromJson(JsonReader jsonR String fieldName = reader.getFieldName(); reader.nextToken(); - if ("count".equals(fieldName)) { + if ("eTag".equals(fieldName)) { + deserializedManagedClusterAgentPoolProfileProperties.etag = reader.getString(); + } else if ("count".equals(fieldName)) { deserializedManagedClusterAgentPoolProfileProperties.count = reader.getNullable(JsonReader::getInt); } else if ("vmSize".equals(fieldName)) { deserializedManagedClusterAgentPoolProfileProperties.vmSize = reader.getString(); diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterInner.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterInner.java index 7af65f6056f28..bc6ad097e1a52 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterInner.java @@ -25,6 +25,7 @@ import com.azure.resourcemanager.containerservice.models.ManagedClusterIdentity; import com.azure.resourcemanager.containerservice.models.ManagedClusterIngressProfile; import com.azure.resourcemanager.containerservice.models.ManagedClusterMetricsProfile; +import com.azure.resourcemanager.containerservice.models.ManagedClusterNodeResourceGroupProfile; import com.azure.resourcemanager.containerservice.models.ManagedClusterOidcIssuerProfile; import com.azure.resourcemanager.containerservice.models.ManagedClusterPodIdentityProfile; import com.azure.resourcemanager.containerservice.models.ManagedClusterPropertiesAutoScalerProfile; @@ -47,6 +48,13 @@ */ @Fluent public final class ManagedClusterInner extends Resource { + /* + * Unique read-only string used to implement optimistic concurrency. The eTag value will change when the resource is + * updated. Specify an if-match or if-none-match header with the eTag value for a subsequent request to enable + * optimistic concurrency per the normal etag convention. + */ + private String etag; + /* * The managed cluster SKU. */ @@ -93,6 +101,17 @@ public final class ManagedClusterInner extends Resource { public ManagedClusterInner() { } + /** + * Get the etag property: Unique read-only string used to implement optimistic concurrency. The eTag value will + * change when the resource is updated. Specify an if-match or if-none-match header with the eTag value for a + * subsequent request to enable optimistic concurrency per the normal etag convention. + * + * @return the etag value. + */ + public String etag() { + return this.etag; + } + /** * Get the sku property: The managed cluster SKU. * @@ -560,6 +579,30 @@ public ManagedClusterInner withNodeResourceGroup(String nodeResourceGroup) { return this; } + /** + * Get the nodeResourceGroupProfile property: Profile of the node resource group configuration. + * + * @return the nodeResourceGroupProfile value. + */ + public ManagedClusterNodeResourceGroupProfile nodeResourceGroupProfile() { + return this.innerProperties() == null ? null : this.innerProperties().nodeResourceGroupProfile(); + } + + /** + * Set the nodeResourceGroupProfile property: Profile of the node resource group configuration. + * + * @param nodeResourceGroupProfile the nodeResourceGroupProfile value to set. + * @return the ManagedClusterInner object itself. + */ + public ManagedClusterInner + withNodeResourceGroupProfile(ManagedClusterNodeResourceGroupProfile nodeResourceGroupProfile) { + if (this.innerProperties() == null) { + this.innerProperties = new ManagedClusterProperties(); + } + this.innerProperties().withNodeResourceGroupProfile(nodeResourceGroupProfile); + return this; + } + /** * Get the enableRbac property: Whether to enable Kubernetes Role-Based Access Control. * @@ -799,7 +842,10 @@ public ManagedClusterInner withDiskEncryptionSetId(String diskEncryptionSetId) { } /** - * Get the identityProfile property: Identities associated with the cluster. + * Get the identityProfile property: The user identity associated with the managed cluster. This identity will be + * used by the kubelet. Only one user assigned identity is allowed. The only accepted key is "kubeletidentity", with + * value of "resourceId": + * "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}". * * @return the identityProfile value. */ @@ -808,7 +854,10 @@ public Map identityProfile() { } /** - * Set the identityProfile property: Identities associated with the cluster. + * Set the identityProfile property: The user identity associated with the managed cluster. This identity will be + * used by the kubelet. Only one user assigned identity is allowed. The only accepted key is "kubeletidentity", with + * value of "resourceId": + * "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}". * * @param identityProfile the identityProfile value to set. * @return the ManagedClusterInner object itself. @@ -1151,6 +1200,8 @@ public static ManagedClusterInner fromJson(JsonReader jsonReader) throws IOExcep } else if ("tags".equals(fieldName)) { Map tags = reader.readMap(reader1 -> reader1.getString()); deserializedManagedClusterInner.withTags(tags); + } else if ("eTag".equals(fieldName)) { + deserializedManagedClusterInner.etag = reader.getString(); } else if ("sku".equals(fieldName)) { deserializedManagedClusterInner.sku = ManagedClusterSku.fromJson(reader); } else if ("extendedLocation".equals(fieldName)) { diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterProperties.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterProperties.java index f7a59a636dafd..bf7221e10ef51 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterProperties.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterProperties.java @@ -22,6 +22,7 @@ import com.azure.resourcemanager.containerservice.models.ManagedClusterHttpProxyConfig; import com.azure.resourcemanager.containerservice.models.ManagedClusterIngressProfile; import com.azure.resourcemanager.containerservice.models.ManagedClusterMetricsProfile; +import com.azure.resourcemanager.containerservice.models.ManagedClusterNodeResourceGroupProfile; import com.azure.resourcemanager.containerservice.models.ManagedClusterOidcIssuerProfile; import com.azure.resourcemanager.containerservice.models.ManagedClusterPodIdentityProfile; import com.azure.resourcemanager.containerservice.models.ManagedClusterPropertiesAutoScalerProfile; @@ -143,6 +144,11 @@ public final class ManagedClusterProperties implements JsonSerializable identityProfile; @@ -579,6 +587,27 @@ public ManagedClusterProperties withNodeResourceGroup(String nodeResourceGroup) return this; } + /** + * Get the nodeResourceGroupProfile property: Profile of the node resource group configuration. + * + * @return the nodeResourceGroupProfile value. + */ + public ManagedClusterNodeResourceGroupProfile nodeResourceGroupProfile() { + return this.nodeResourceGroupProfile; + } + + /** + * Set the nodeResourceGroupProfile property: Profile of the node resource group configuration. + * + * @param nodeResourceGroupProfile the nodeResourceGroupProfile value to set. + * @return the ManagedClusterProperties object itself. + */ + public ManagedClusterProperties + withNodeResourceGroupProfile(ManagedClusterNodeResourceGroupProfile nodeResourceGroupProfile) { + this.nodeResourceGroupProfile = nodeResourceGroupProfile; + return this; + } + /** * Get the enableRbac property: Whether to enable Kubernetes Role-Based Access Control. * @@ -789,7 +818,10 @@ public ManagedClusterProperties withDiskEncryptionSetId(String diskEncryptionSet } /** - * Get the identityProfile property: Identities associated with the cluster. + * Get the identityProfile property: The user identity associated with the managed cluster. This identity will be + * used by the kubelet. Only one user assigned identity is allowed. The only accepted key is "kubeletidentity", with + * value of "resourceId": + * "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}". * * @return the identityProfile value. */ @@ -798,7 +830,10 @@ public Map identityProfile() { } /** - * Set the identityProfile property: Identities associated with the cluster. + * Set the identityProfile property: The user identity associated with the managed cluster. This identity will be + * used by the kubelet. Only one user assigned identity is allowed. The only accepted key is "kubeletidentity", with + * value of "resourceId": + * "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}". * * @param identityProfile the identityProfile value to set. * @return the ManagedClusterProperties object itself. @@ -1077,6 +1112,9 @@ public void validate() { if (oidcIssuerProfile() != null) { oidcIssuerProfile().validate(); } + if (nodeResourceGroupProfile() != null) { + nodeResourceGroupProfile().validate(); + } if (networkProfile() != null) { networkProfile().validate(); } @@ -1149,6 +1187,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeJsonField("podIdentityProfile", this.podIdentityProfile); jsonWriter.writeJsonField("oidcIssuerProfile", this.oidcIssuerProfile); jsonWriter.writeStringField("nodeResourceGroup", this.nodeResourceGroup); + jsonWriter.writeJsonField("nodeResourceGroupProfile", this.nodeResourceGroupProfile); jsonWriter.writeBooleanField("enableRBAC", this.enableRbac); jsonWriter.writeStringField("supportPlan", this.supportPlan == null ? null : this.supportPlan.toString()); jsonWriter.writeBooleanField("enablePodSecurityPolicy", this.enablePodSecurityPolicy); @@ -1235,6 +1274,9 @@ public static ManagedClusterProperties fromJson(JsonReader jsonReader) throws IO = ManagedClusterOidcIssuerProfile.fromJson(reader); } else if ("nodeResourceGroup".equals(fieldName)) { deserializedManagedClusterProperties.nodeResourceGroup = reader.getString(); + } else if ("nodeResourceGroupProfile".equals(fieldName)) { + deserializedManagedClusterProperties.nodeResourceGroupProfile + = ManagedClusterNodeResourceGroupProfile.fromJson(reader); } else if ("enableRBAC".equals(fieldName)) { deserializedManagedClusterProperties.enableRbac = reader.getNullable(JsonReader::getBoolean); } else if ("supportPlan".equals(fieldName)) { diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/AgentPoolsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/AgentPoolsClientImpl.java index 5643dcb2b12a3..7c0c5af65af9e 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/AgentPoolsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/AgentPoolsClientImpl.java @@ -108,7 +108,8 @@ Mono> get(@HostParam("$host") String endpoint, Mono>> createOrUpdate(@HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, - @PathParam("agentPoolName") String agentPoolName, @BodyParam("application/json") AgentPoolInner parameters, + @PathParam("agentPoolName") String agentPoolName, @HeaderParam("If-Match") String ifMatch, + @HeaderParam("If-None-Match") String ifNoneMatch, @BodyParam("application/json") AgentPoolInner parameters, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @@ -120,7 +121,7 @@ Mono>> delete(@HostParam("$host") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, @PathParam("agentPoolName") String agentPoolName, @QueryParam("ignore-pod-disruption-budget") Boolean ignorePodDisruptionBudget, - @HeaderParam("Accept") String accept, Context context); + @HeaderParam("If-Match") String ifMatch, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}/upgradeProfiles/default") @@ -205,7 +206,7 @@ public Mono>> abortLatestOperationWithResponseAsync(St if (agentPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.abortLatestOperation(this.client.getEndpoint(), apiVersion, @@ -250,7 +251,7 @@ private Mono>> abortLatestOperationWithResponseAsync(S if (agentPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.abortLatestOperation(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -463,7 +464,7 @@ private Mono> listSinglePageAsync(String resourceG if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -503,7 +504,7 @@ private Mono> listSinglePageAsync(String resourceG if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -610,7 +611,7 @@ public Mono> getWithResponseAsync(String resourceGroupN if (agentPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -652,7 +653,7 @@ private Mono> getWithResponseAsync(String resourceGroup if (agentPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, @@ -717,6 +718,8 @@ public AgentPoolInner get(String resourceGroupName, String resourceName, String * @param resourceName The name of the managed cluster resource. * @param agentPoolName The name of the agent pool. * @param parameters The agent pool to create or update. + * @param ifMatch The request should only proceed if an entity matches this string. + * @param ifNoneMatch The request should only proceed if no entity matches this string. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -724,7 +727,7 @@ public AgentPoolInner get(String resourceGroupName, String resourceName, String */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String resourceName, String agentPoolName, AgentPoolInner parameters) { + String resourceName, String agentPoolName, AgentPoolInner parameters, String ifMatch, String ifNoneMatch) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -748,12 +751,12 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { parameters.validate(); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, - this.client.getSubscriptionId(), resourceGroupName, resourceName, agentPoolName, parameters, accept, - context)) + this.client.getSubscriptionId(), resourceGroupName, resourceName, agentPoolName, ifMatch, ifNoneMatch, + parameters, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -764,6 +767,8 @@ public Mono>> createOrUpdateWithResponseAsync(String r * @param resourceName The name of the managed cluster resource. * @param agentPoolName The name of the agent pool. * @param parameters The agent pool to create or update. + * @param ifMatch The request should only proceed if an entity matches this string. + * @param ifNoneMatch The request should only proceed if no entity matches this string. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -772,7 +777,8 @@ public Mono>> createOrUpdateWithResponseAsync(String r */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String resourceName, String agentPoolName, AgentPoolInner parameters, Context context) { + String resourceName, String agentPoolName, AgentPoolInner parameters, String ifMatch, String ifNoneMatch, + Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -796,11 +802,34 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, resourceName, agentPoolName, parameters, accept, context); + resourceGroupName, resourceName, agentPoolName, ifMatch, ifNoneMatch, parameters, accept, context); + } + + /** + * Creates or updates an agent pool in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param parameters The agent pool to create or update. + * @param ifMatch The request should only proceed if an entity matches this string. + * @param ifNoneMatch The request should only proceed if no entity matches this string. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of agent Pool. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, AgentPoolInner> beginCreateOrUpdateAsync(String resourceGroupName, + String resourceName, String agentPoolName, AgentPoolInner parameters, String ifMatch, String ifNoneMatch) { + Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName, resourceName, + agentPoolName, parameters, ifMatch, ifNoneMatch); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + AgentPoolInner.class, AgentPoolInner.class, this.client.getContext()); } /** @@ -818,8 +847,10 @@ private Mono>> createOrUpdateWithResponseAsync(String @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public PollerFlux, AgentPoolInner> beginCreateOrUpdateAsync(String resourceGroupName, String resourceName, String agentPoolName, AgentPoolInner parameters) { - Mono>> mono - = createOrUpdateWithResponseAsync(resourceGroupName, resourceName, agentPoolName, parameters); + final String ifMatch = null; + final String ifNoneMatch = null; + Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName, resourceName, + agentPoolName, parameters, ifMatch, ifNoneMatch); return this.client.getLroResult(mono, this.client.getHttpPipeline(), AgentPoolInner.class, AgentPoolInner.class, this.client.getContext()); } @@ -831,6 +862,8 @@ public PollerFlux, AgentPoolInner> beginCreateOrUpdat * @param resourceName The name of the managed cluster resource. * @param agentPoolName The name of the agent pool. * @param parameters The agent pool to create or update. + * @param ifMatch The request should only proceed if an entity matches this string. + * @param ifNoneMatch The request should only proceed if no entity matches this string. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -839,10 +872,11 @@ public PollerFlux, AgentPoolInner> beginCreateOrUpdat */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, AgentPoolInner> beginCreateOrUpdateAsync(String resourceGroupName, - String resourceName, String agentPoolName, AgentPoolInner parameters, Context context) { + String resourceName, String agentPoolName, AgentPoolInner parameters, String ifMatch, String ifNoneMatch, + Context context) { context = this.client.mergeContext(context); - Mono>> mono - = createOrUpdateWithResponseAsync(resourceGroupName, resourceName, agentPoolName, parameters, context); + Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName, resourceName, + agentPoolName, parameters, ifMatch, ifNoneMatch, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), AgentPoolInner.class, AgentPoolInner.class, context); } @@ -862,7 +896,10 @@ private PollerFlux, AgentPoolInner> beginCreateOrUpda @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, AgentPoolInner> beginCreateOrUpdate(String resourceGroupName, String resourceName, String agentPoolName, AgentPoolInner parameters) { - return this.beginCreateOrUpdateAsync(resourceGroupName, resourceName, agentPoolName, parameters) + final String ifMatch = null; + final String ifNoneMatch = null; + return this + .beginCreateOrUpdateAsync(resourceGroupName, resourceName, agentPoolName, parameters, ifMatch, ifNoneMatch) .getSyncPoller(); } @@ -873,6 +910,8 @@ public SyncPoller, AgentPoolInner> beginCreateOrUpdat * @param resourceName The name of the managed cluster resource. * @param agentPoolName The name of the agent pool. * @param parameters The agent pool to create or update. + * @param ifMatch The request should only proceed if an entity matches this string. + * @param ifNoneMatch The request should only proceed if no entity matches this string. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -881,11 +920,35 @@ public SyncPoller, AgentPoolInner> beginCreateOrUpdat */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, AgentPoolInner> beginCreateOrUpdate(String resourceGroupName, - String resourceName, String agentPoolName, AgentPoolInner parameters, Context context) { - return this.beginCreateOrUpdateAsync(resourceGroupName, resourceName, agentPoolName, parameters, context) + String resourceName, String agentPoolName, AgentPoolInner parameters, String ifMatch, String ifNoneMatch, + Context context) { + return this + .beginCreateOrUpdateAsync(resourceGroupName, resourceName, agentPoolName, parameters, ifMatch, ifNoneMatch, + context) .getSyncPoller(); } + /** + * Creates or updates an agent pool in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param parameters The agent pool to create or update. + * @param ifMatch The request should only proceed if an entity matches this string. + * @param ifNoneMatch The request should only proceed if no entity matches this string. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return agent Pool on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono createOrUpdateAsync(String resourceGroupName, String resourceName, String agentPoolName, + AgentPoolInner parameters, String ifMatch, String ifNoneMatch) { + return beginCreateOrUpdateAsync(resourceGroupName, resourceName, agentPoolName, parameters, ifMatch, + ifNoneMatch).last().flatMap(this.client::getLroFinalResultOrError); + } + /** * Creates or updates an agent pool in the specified managed cluster. * @@ -901,8 +964,10 @@ public SyncPoller, AgentPoolInner> beginCreateOrUpdat @ServiceMethod(returns = ReturnType.SINGLE) public Mono createOrUpdateAsync(String resourceGroupName, String resourceName, String agentPoolName, AgentPoolInner parameters) { - return beginCreateOrUpdateAsync(resourceGroupName, resourceName, agentPoolName, parameters).last() - .flatMap(this.client::getLroFinalResultOrError); + final String ifMatch = null; + final String ifNoneMatch = null; + return beginCreateOrUpdateAsync(resourceGroupName, resourceName, agentPoolName, parameters, ifMatch, + ifNoneMatch).last().flatMap(this.client::getLroFinalResultOrError); } /** @@ -912,6 +977,8 @@ public Mono createOrUpdateAsync(String resourceGroupName, String * @param resourceName The name of the managed cluster resource. * @param agentPoolName The name of the agent pool. * @param parameters The agent pool to create or update. + * @param ifMatch The request should only proceed if an entity matches this string. + * @param ifNoneMatch The request should only proceed if no entity matches this string. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -920,9 +987,9 @@ public Mono createOrUpdateAsync(String resourceGroupName, String */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync(String resourceGroupName, String resourceName, - String agentPoolName, AgentPoolInner parameters, Context context) { - return beginCreateOrUpdateAsync(resourceGroupName, resourceName, agentPoolName, parameters, context).last() - .flatMap(this.client::getLroFinalResultOrError); + String agentPoolName, AgentPoolInner parameters, String ifMatch, String ifNoneMatch, Context context) { + return beginCreateOrUpdateAsync(resourceGroupName, resourceName, agentPoolName, parameters, ifMatch, + ifNoneMatch, context).last().flatMap(this.client::getLroFinalResultOrError); } /** @@ -940,7 +1007,10 @@ private Mono createOrUpdateAsync(String resourceGroupName, Strin @ServiceMethod(returns = ReturnType.SINGLE) public AgentPoolInner createOrUpdate(String resourceGroupName, String resourceName, String agentPoolName, AgentPoolInner parameters) { - return createOrUpdateAsync(resourceGroupName, resourceName, agentPoolName, parameters).block(); + final String ifMatch = null; + final String ifNoneMatch = null; + return createOrUpdateAsync(resourceGroupName, resourceName, agentPoolName, parameters, ifMatch, ifNoneMatch) + .block(); } /** @@ -950,6 +1020,8 @@ public AgentPoolInner createOrUpdate(String resourceGroupName, String resourceNa * @param resourceName The name of the managed cluster resource. * @param agentPoolName The name of the agent pool. * @param parameters The agent pool to create or update. + * @param ifMatch The request should only proceed if an entity matches this string. + * @param ifNoneMatch The request should only proceed if no entity matches this string. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -958,8 +1030,9 @@ public AgentPoolInner createOrUpdate(String resourceGroupName, String resourceNa */ @ServiceMethod(returns = ReturnType.SINGLE) public AgentPoolInner createOrUpdate(String resourceGroupName, String resourceName, String agentPoolName, - AgentPoolInner parameters, Context context) { - return createOrUpdateAsync(resourceGroupName, resourceName, agentPoolName, parameters, context).block(); + AgentPoolInner parameters, String ifMatch, String ifNoneMatch, Context context) { + return createOrUpdateAsync(resourceGroupName, resourceName, agentPoolName, parameters, ifMatch, ifNoneMatch, + context).block(); } /** @@ -970,6 +1043,7 @@ public AgentPoolInner createOrUpdate(String resourceGroupName, String resourceNa * @param agentPoolName The name of the agent pool. * @param ignorePodDisruptionBudget ignore-pod-disruption-budget=true to delete those pods on a node without * considering Pod Disruption Budget. + * @param ifMatch The request should only proceed if an entity matches this string. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -977,7 +1051,7 @@ public AgentPoolInner createOrUpdate(String resourceGroupName, String resourceNa */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono>> deleteWithResponseAsync(String resourceGroupName, String resourceName, - String agentPoolName, Boolean ignorePodDisruptionBudget) { + String agentPoolName, Boolean ignorePodDisruptionBudget, String ifMatch) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -996,12 +1070,12 @@ public Mono>> deleteWithResponseAsync(String resourceG if (agentPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, resourceName, agentPoolName, ignorePodDisruptionBudget, accept, context)) + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, resourceName, agentPoolName, + ignorePodDisruptionBudget, ifMatch, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -1013,6 +1087,7 @@ public Mono>> deleteWithResponseAsync(String resourceG * @param agentPoolName The name of the agent pool. * @param ignorePodDisruptionBudget ignore-pod-disruption-budget=true to delete those pods on a node without * considering Pod Disruption Budget. + * @param ifMatch The request should only proceed if an entity matches this string. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1021,7 +1096,7 @@ public Mono>> deleteWithResponseAsync(String resourceG */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync(String resourceGroupName, String resourceName, - String agentPoolName, Boolean ignorePodDisruptionBudget, Context context) { + String agentPoolName, Boolean ignorePodDisruptionBudget, String ifMatch, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -1040,11 +1115,11 @@ private Mono>> deleteWithResponseAsync(String resource if (agentPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - resourceName, agentPoolName, ignorePodDisruptionBudget, accept, context); + resourceName, agentPoolName, ignorePodDisruptionBudget, ifMatch, accept, context); } /** @@ -1055,6 +1130,7 @@ private Mono>> deleteWithResponseAsync(String resource * @param agentPoolName The name of the agent pool. * @param ignorePodDisruptionBudget ignore-pod-disruption-budget=true to delete those pods on a node without * considering Pod Disruption Budget. + * @param ifMatch The request should only proceed if an entity matches this string. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1062,9 +1138,9 @@ private Mono>> deleteWithResponseAsync(String resource */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String resourceName, - String agentPoolName, Boolean ignorePodDisruptionBudget) { - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, resourceName, agentPoolName, ignorePodDisruptionBudget); + String agentPoolName, Boolean ignorePodDisruptionBudget, String ifMatch) { + Mono>> mono = deleteWithResponseAsync(resourceGroupName, resourceName, agentPoolName, + ignorePodDisruptionBudget, ifMatch); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } @@ -1084,8 +1160,9 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String resourceName, String agentPoolName) { final Boolean ignorePodDisruptionBudget = null; - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, resourceName, agentPoolName, ignorePodDisruptionBudget); + final String ifMatch = null; + Mono>> mono = deleteWithResponseAsync(resourceGroupName, resourceName, agentPoolName, + ignorePodDisruptionBudget, ifMatch); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } @@ -1098,6 +1175,7 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN * @param agentPoolName The name of the agent pool. * @param ignorePodDisruptionBudget ignore-pod-disruption-budget=true to delete those pods on a node without * considering Pod Disruption Budget. + * @param ifMatch The request should only proceed if an entity matches this string. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1106,10 +1184,10 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String resourceName, - String agentPoolName, Boolean ignorePodDisruptionBudget, Context context) { + String agentPoolName, Boolean ignorePodDisruptionBudget, String ifMatch, Context context) { context = this.client.mergeContext(context); Mono>> mono = deleteWithResponseAsync(resourceGroupName, resourceName, agentPoolName, - ignorePodDisruptionBudget, context); + ignorePodDisruptionBudget, ifMatch, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); } @@ -1129,7 +1207,8 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup public SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, String agentPoolName) { final Boolean ignorePodDisruptionBudget = null; - return this.beginDeleteAsync(resourceGroupName, resourceName, agentPoolName, ignorePodDisruptionBudget) + final String ifMatch = null; + return this.beginDeleteAsync(resourceGroupName, resourceName, agentPoolName, ignorePodDisruptionBudget, ifMatch) .getSyncPoller(); } @@ -1141,6 +1220,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, * @param agentPoolName The name of the agent pool. * @param ignorePodDisruptionBudget ignore-pod-disruption-budget=true to delete those pods on a node without * considering Pod Disruption Budget. + * @param ifMatch The request should only proceed if an entity matches this string. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1149,8 +1229,10 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, - String agentPoolName, Boolean ignorePodDisruptionBudget, Context context) { - return this.beginDeleteAsync(resourceGroupName, resourceName, agentPoolName, ignorePodDisruptionBudget, context) + String agentPoolName, Boolean ignorePodDisruptionBudget, String ifMatch, Context context) { + return this + .beginDeleteAsync(resourceGroupName, resourceName, agentPoolName, ignorePodDisruptionBudget, ifMatch, + context) .getSyncPoller(); } @@ -1162,6 +1244,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, * @param agentPoolName The name of the agent pool. * @param ignorePodDisruptionBudget ignore-pod-disruption-budget=true to delete those pods on a node without * considering Pod Disruption Budget. + * @param ifMatch The request should only proceed if an entity matches this string. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1169,8 +1252,9 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono deleteAsync(String resourceGroupName, String resourceName, String agentPoolName, - Boolean ignorePodDisruptionBudget) { - return beginDeleteAsync(resourceGroupName, resourceName, agentPoolName, ignorePodDisruptionBudget).last() + Boolean ignorePodDisruptionBudget, String ifMatch) { + return beginDeleteAsync(resourceGroupName, resourceName, agentPoolName, ignorePodDisruptionBudget, ifMatch) + .last() .flatMap(this.client::getLroFinalResultOrError); } @@ -1188,7 +1272,9 @@ public Mono deleteAsync(String resourceGroupName, String resourceName, Str @ServiceMethod(returns = ReturnType.SINGLE) public Mono deleteAsync(String resourceGroupName, String resourceName, String agentPoolName) { final Boolean ignorePodDisruptionBudget = null; - return beginDeleteAsync(resourceGroupName, resourceName, agentPoolName, ignorePodDisruptionBudget).last() + final String ifMatch = null; + return beginDeleteAsync(resourceGroupName, resourceName, agentPoolName, ignorePodDisruptionBudget, ifMatch) + .last() .flatMap(this.client::getLroFinalResultOrError); } @@ -1200,6 +1286,7 @@ public Mono deleteAsync(String resourceGroupName, String resourceName, Str * @param agentPoolName The name of the agent pool. * @param ignorePodDisruptionBudget ignore-pod-disruption-budget=true to delete those pods on a node without * considering Pod Disruption Budget. + * @param ifMatch The request should only proceed if an entity matches this string. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1208,10 +1295,9 @@ public Mono deleteAsync(String resourceGroupName, String resourceName, Str */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync(String resourceGroupName, String resourceName, String agentPoolName, - Boolean ignorePodDisruptionBudget, Context context) { - return beginDeleteAsync(resourceGroupName, resourceName, agentPoolName, ignorePodDisruptionBudget, context) - .last() - .flatMap(this.client::getLroFinalResultOrError); + Boolean ignorePodDisruptionBudget, String ifMatch, Context context) { + return beginDeleteAsync(resourceGroupName, resourceName, agentPoolName, ignorePodDisruptionBudget, ifMatch, + context).last().flatMap(this.client::getLroFinalResultOrError); } /** @@ -1227,7 +1313,8 @@ private Mono deleteAsync(String resourceGroupName, String resourceName, St @ServiceMethod(returns = ReturnType.SINGLE) public void delete(String resourceGroupName, String resourceName, String agentPoolName) { final Boolean ignorePodDisruptionBudget = null; - deleteAsync(resourceGroupName, resourceName, agentPoolName, ignorePodDisruptionBudget).block(); + final String ifMatch = null; + deleteAsync(resourceGroupName, resourceName, agentPoolName, ignorePodDisruptionBudget, ifMatch).block(); } /** @@ -1238,6 +1325,7 @@ public void delete(String resourceGroupName, String resourceName, String agentPo * @param agentPoolName The name of the agent pool. * @param ignorePodDisruptionBudget ignore-pod-disruption-budget=true to delete those pods on a node without * considering Pod Disruption Budget. + * @param ifMatch The request should only proceed if an entity matches this string. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1245,8 +1333,9 @@ public void delete(String resourceGroupName, String resourceName, String agentPo */ @ServiceMethod(returns = ReturnType.SINGLE) public void delete(String resourceGroupName, String resourceName, String agentPoolName, - Boolean ignorePodDisruptionBudget, Context context) { - deleteAsync(resourceGroupName, resourceName, agentPoolName, ignorePodDisruptionBudget, context).block(); + Boolean ignorePodDisruptionBudget, String ifMatch, Context context) { + deleteAsync(resourceGroupName, resourceName, agentPoolName, ignorePodDisruptionBudget, ifMatch, context) + .block(); } /** @@ -1282,7 +1371,7 @@ public Mono> getUpgradeProfileWithRespons if (agentPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getUpgradeProfile(this.client.getEndpoint(), apiVersion, @@ -1324,7 +1413,7 @@ private Mono> getUpgradeProfileWithRespon if (agentPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getUpgradeProfile(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -1422,7 +1511,7 @@ public Mono>> deleteMachinesWithResponseAsync(String r } else { machines.validate(); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil.withContext(context -> service.deleteMachines(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, resourceName, agentPoolName, machines, accept, context)) @@ -1468,7 +1557,7 @@ private Mono>> deleteMachinesWithResponseAsync(String } else { machines.validate(); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.deleteMachines(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -1663,7 +1752,7 @@ public void deleteMachines(String resourceGroupName, String resourceName, String if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getAvailableAgentPoolVersions(this.client.getEndpoint(), apiVersion, @@ -1704,7 +1793,7 @@ public void deleteMachines(String resourceGroupName, String resourceName, String if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getAvailableAgentPoolVersions(this.client.getEndpoint(), apiVersion, @@ -1806,7 +1895,7 @@ public Mono>> upgradeNodeImageVersionWithResponseAsync if (agentPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.upgradeNodeImageVersion(this.client.getEndpoint(), apiVersion, @@ -1851,7 +1940,7 @@ private Mono>> upgradeNodeImageVersionWithResponseAsyn if (agentPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.upgradeNodeImageVersion(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/KubernetesClusterImpl.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/KubernetesClusterImpl.java index 529ba97817bea..cddd98a137f9b 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/KubernetesClusterImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/KubernetesClusterImpl.java @@ -323,7 +323,8 @@ public Accepted beginCreateAgentPool(String agentPoolName, AgentPoolD () -> this.manager() .serviceClient() .getAgentPools() - .createOrUpdateWithResponseAsync(resourceGroupName(), name(), agentPoolName, agentPool.innerModel()) + .createOrUpdateWithResponseAsync(resourceGroupName(), name(), agentPoolName, agentPool.innerModel(), + null, null) .block(), AgentPoolDataImpl::new, AgentPoolInner.class, null, Context.NONE); } diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/MachinesClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/MachinesClientImpl.java index 3d8aa9abf87d5..101145a924dcc 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/MachinesClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/MachinesClientImpl.java @@ -121,7 +121,7 @@ private Mono> listSinglePageAsync(String resourceGro if (agentPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -165,7 +165,7 @@ private Mono> listSinglePageAsync(String resourceGro if (agentPoolName == null) { return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -282,7 +282,7 @@ public Mono> getWithResponseAsync(String resourceGroupNam if (machineName == null) { return Mono.error(new IllegalArgumentException("Parameter machineName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -328,7 +328,7 @@ private Mono> getWithResponseAsync(String resourceGroupNa if (machineName == null) { return Mono.error(new IllegalArgumentException("Parameter machineName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/MaintenanceConfigurationsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/MaintenanceConfigurationsClientImpl.java index 71a92d360881e..0fb94a5337e00 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/MaintenanceConfigurationsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/MaintenanceConfigurationsClientImpl.java @@ -141,7 +141,7 @@ Mono> listByManagedClusterNext( if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByManagedCluster(this.client.getEndpoint(), apiVersion, @@ -181,7 +181,7 @@ Mono> listByManagedClusterNext( if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -296,7 +296,7 @@ public Mono> getWithResponseAsync(String if (configName == null) { return Mono.error(new IllegalArgumentException("Parameter configName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -338,7 +338,7 @@ private Mono> getWithResponseAsync(Strin if (configName == null) { return Mono.error(new IllegalArgumentException("Parameter configName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, @@ -436,7 +436,7 @@ public Mono> createOrUpdateWithResponseA } else { parameters.validate(); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil.withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, resourceName, configName, parameters, accept, context)) @@ -483,7 +483,7 @@ private Mono> createOrUpdateWithResponse } else { parameters.validate(); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -582,7 +582,7 @@ public Mono> deleteWithResponseAsync(String resourceGroupName, St if (configName == null) { return Mono.error(new IllegalArgumentException("Parameter configName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, @@ -623,7 +623,7 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S if (configName == null) { return Mono.error(new IllegalArgumentException("Parameter configName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/ManagedClustersClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/ManagedClustersClientImpl.java index d43c0c08d49fc..2ac99e9f55767 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/ManagedClustersClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/ManagedClustersClientImpl.java @@ -180,6 +180,7 @@ Mono> getByResourceGroup(@HostParam("$host") Strin Mono>> createOrUpdate(@HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, + @HeaderParam("If-Match") String ifMatch, @HeaderParam("If-None-Match") String ifNoneMatch, @BodyParam("application/json") ManagedClusterInner parameters, @HeaderParam("Accept") String accept, Context context); @@ -190,8 +191,8 @@ Mono>> createOrUpdate(@HostParam("$host") String endpo Mono>> updateTags(@HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, - @BodyParam("application/json") TagsObject parameters, @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("If-Match") String ifMatch, @BodyParam("application/json") TagsObject parameters, + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}") @@ -200,7 +201,7 @@ Mono>> updateTags(@HostParam("$host") String endpoint, Mono>> delete(@HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, - @HeaderParam("Accept") String accept, Context context); + @HeaderParam("If-Match") String ifMatch, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/resetServicePrincipalProfile") @@ -398,7 +399,7 @@ public Mono> listKubernetesVersionsWi if (location == null) { return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listKubernetesVersions(this.client.getEndpoint(), apiVersion, @@ -434,7 +435,7 @@ private Mono> listKubernetesVersionsW if (location == null) { return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.listKubernetesVersions(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -512,7 +513,7 @@ private Mono> listSinglePageAsync() { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -542,7 +543,7 @@ private Mono> listSinglePageAsync(Context con return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) @@ -629,7 +630,7 @@ private Mono> listByResourceGroupSinglePageAs return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), apiVersion, @@ -665,7 +666,7 @@ private Mono> listByResourceGroupSinglePageAs return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -764,7 +765,7 @@ public PagedIterable listByResourceGroup(String resourceGro if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getUpgradeProfile(this.client.getEndpoint(), apiVersion, @@ -802,7 +803,7 @@ public PagedIterable listByResourceGroup(String resourceGro if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getUpgradeProfile(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -896,7 +897,7 @@ public Mono> getAccessProfileWithResp if (roleName == null) { return Mono.error(new IllegalArgumentException("Parameter roleName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getAccessProfile(this.client.getEndpoint(), apiVersion, @@ -943,7 +944,7 @@ private Mono> getAccessProfileWithRes if (roleName == null) { return Mono.error(new IllegalArgumentException("Parameter roleName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getAccessProfile(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -1050,7 +1051,7 @@ public Mono> listClusterAdminCredentialsWithRes if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listClusterAdminCredentials(this.client.getEndpoint(), apiVersion, @@ -1088,7 +1089,7 @@ private Mono> listClusterAdminCredentialsWithRe if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.listClusterAdminCredentials(this.client.getEndpoint(), apiVersion, @@ -1181,7 +1182,7 @@ public Mono> listClusterUserCredentialsWithResp if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listClusterUserCredentials(this.client.getEndpoint(), apiVersion, @@ -1222,7 +1223,7 @@ private Mono> listClusterUserCredentialsWithRes if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.listClusterUserCredentials(this.client.getEndpoint(), apiVersion, @@ -1316,7 +1317,7 @@ public Mono> listClusterMonitoringUserCredentia if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listClusterMonitoringUserCredentials(this.client.getEndpoint(), apiVersion, @@ -1354,7 +1355,7 @@ private Mono> listClusterMonitoringUserCredenti if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.listClusterMonitoringUserCredentials(this.client.getEndpoint(), apiVersion, @@ -1443,7 +1444,7 @@ public Mono> getByResourceGroupWithResponseAsync(S if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), apiVersion, @@ -1480,7 +1481,7 @@ private Mono> getByResourceGroupWithResponseAsync( if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -1541,6 +1542,8 @@ public ManagedClusterInner getByResourceGroup(String resourceGroupName, String r * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param parameters The managed cluster to create or update. + * @param ifMatch The request should only proceed if an entity matches this string. + * @param ifNoneMatch The request should only proceed if no entity matches this string. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1548,7 +1551,7 @@ public ManagedClusterInner getByResourceGroup(String resourceGroupName, String r */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String resourceName, ManagedClusterInner parameters) { + String resourceName, ManagedClusterInner parameters, String ifMatch, String ifNoneMatch) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -1569,11 +1572,12 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { parameters.validate(); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, - this.client.getSubscriptionId(), resourceGroupName, resourceName, parameters, accept, context)) + this.client.getSubscriptionId(), resourceGroupName, resourceName, ifMatch, ifNoneMatch, parameters, + accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -1583,6 +1587,8 @@ public Mono>> createOrUpdateWithResponseAsync(String r * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param parameters The managed cluster to create or update. + * @param ifMatch The request should only proceed if an entity matches this string. + * @param ifNoneMatch The request should only proceed if no entity matches this string. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1591,7 +1597,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String resourceName, ManagedClusterInner parameters, Context context) { + String resourceName, ManagedClusterInner parameters, String ifMatch, String ifNoneMatch, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -1612,11 +1618,34 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, resourceName, parameters, accept, context); + resourceGroupName, resourceName, ifMatch, ifNoneMatch, parameters, accept, context); + } + + /** + * Creates or updates a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param parameters The managed cluster to create or update. + * @param ifMatch The request should only proceed if an entity matches this string. + * @param ifNoneMatch The request should only proceed if no entity matches this string. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of managed cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, ManagedClusterInner> beginCreateOrUpdateAsync( + String resourceGroupName, String resourceName, ManagedClusterInner parameters, String ifMatch, + String ifNoneMatch) { + Mono>> mono + = createOrUpdateWithResponseAsync(resourceGroupName, resourceName, parameters, ifMatch, ifNoneMatch); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + ManagedClusterInner.class, ManagedClusterInner.class, this.client.getContext()); } /** @@ -1633,8 +1662,10 @@ private Mono>> createOrUpdateWithResponseAsync(String @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public PollerFlux, ManagedClusterInner> beginCreateOrUpdateAsync(String resourceGroupName, String resourceName, ManagedClusterInner parameters) { + final String ifMatch = null; + final String ifNoneMatch = null; Mono>> mono - = createOrUpdateWithResponseAsync(resourceGroupName, resourceName, parameters); + = createOrUpdateWithResponseAsync(resourceGroupName, resourceName, parameters, ifMatch, ifNoneMatch); return this.client.getLroResult(mono, this.client.getHttpPipeline(), ManagedClusterInner.class, ManagedClusterInner.class, this.client.getContext()); } @@ -1645,6 +1676,8 @@ private Mono>> createOrUpdateWithResponseAsync(String * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param parameters The managed cluster to create or update. + * @param ifMatch The request should only proceed if an entity matches this string. + * @param ifNoneMatch The request should only proceed if no entity matches this string. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1653,10 +1686,11 @@ private Mono>> createOrUpdateWithResponseAsync(String */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ManagedClusterInner> beginCreateOrUpdateAsync( - String resourceGroupName, String resourceName, ManagedClusterInner parameters, Context context) { + String resourceGroupName, String resourceName, ManagedClusterInner parameters, String ifMatch, + String ifNoneMatch, Context context) { context = this.client.mergeContext(context); - Mono>> mono - = createOrUpdateWithResponseAsync(resourceGroupName, resourceName, parameters, context); + Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName, resourceName, + parameters, ifMatch, ifNoneMatch, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), ManagedClusterInner.class, ManagedClusterInner.class, context); } @@ -1675,7 +1709,10 @@ private PollerFlux, ManagedClusterInner> beginCr @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ManagedClusterInner> beginCreateOrUpdate(String resourceGroupName, String resourceName, ManagedClusterInner parameters) { - return this.beginCreateOrUpdateAsync(resourceGroupName, resourceName, parameters).getSyncPoller(); + final String ifMatch = null; + final String ifNoneMatch = null; + return this.beginCreateOrUpdateAsync(resourceGroupName, resourceName, parameters, ifMatch, ifNoneMatch) + .getSyncPoller(); } /** @@ -1684,6 +1721,8 @@ private PollerFlux, ManagedClusterInner> beginCr * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param parameters The managed cluster to create or update. + * @param ifMatch The request should only proceed if an entity matches this string. + * @param ifNoneMatch The request should only proceed if no entity matches this string. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1692,8 +1731,30 @@ private PollerFlux, ManagedClusterInner> beginCr */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ManagedClusterInner> beginCreateOrUpdate( - String resourceGroupName, String resourceName, ManagedClusterInner parameters, Context context) { - return this.beginCreateOrUpdateAsync(resourceGroupName, resourceName, parameters, context).getSyncPoller(); + String resourceGroupName, String resourceName, ManagedClusterInner parameters, String ifMatch, + String ifNoneMatch, Context context) { + return this.beginCreateOrUpdateAsync(resourceGroupName, resourceName, parameters, ifMatch, ifNoneMatch, context) + .getSyncPoller(); + } + + /** + * Creates or updates a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param parameters The managed cluster to create or update. + * @param ifMatch The request should only proceed if an entity matches this string. + * @param ifNoneMatch The request should only proceed if no entity matches this string. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return managed cluster on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono createOrUpdateAsync(String resourceGroupName, String resourceName, + ManagedClusterInner parameters, String ifMatch, String ifNoneMatch) { + return beginCreateOrUpdateAsync(resourceGroupName, resourceName, parameters, ifMatch, ifNoneMatch).last() + .flatMap(this.client::getLroFinalResultOrError); } /** @@ -1710,7 +1771,9 @@ public SyncPoller, ManagedClusterInner> beginCre @ServiceMethod(returns = ReturnType.SINGLE) public Mono createOrUpdateAsync(String resourceGroupName, String resourceName, ManagedClusterInner parameters) { - return beginCreateOrUpdateAsync(resourceGroupName, resourceName, parameters).last() + final String ifMatch = null; + final String ifNoneMatch = null; + return beginCreateOrUpdateAsync(resourceGroupName, resourceName, parameters, ifMatch, ifNoneMatch).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -1720,6 +1783,8 @@ public Mono createOrUpdateAsync(String resourceGroupName, S * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param parameters The managed cluster to create or update. + * @param ifMatch The request should only proceed if an entity matches this string. + * @param ifNoneMatch The request should only proceed if no entity matches this string. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1728,8 +1793,9 @@ public Mono createOrUpdateAsync(String resourceGroupName, S */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync(String resourceGroupName, String resourceName, - ManagedClusterInner parameters, Context context) { - return beginCreateOrUpdateAsync(resourceGroupName, resourceName, parameters, context).last() + ManagedClusterInner parameters, String ifMatch, String ifNoneMatch, Context context) { + return beginCreateOrUpdateAsync(resourceGroupName, resourceName, parameters, ifMatch, ifNoneMatch, context) + .last() .flatMap(this.client::getLroFinalResultOrError); } @@ -1747,7 +1813,9 @@ private Mono createOrUpdateAsync(String resourceGroupName, @ServiceMethod(returns = ReturnType.SINGLE) public ManagedClusterInner createOrUpdate(String resourceGroupName, String resourceName, ManagedClusterInner parameters) { - return createOrUpdateAsync(resourceGroupName, resourceName, parameters).block(); + final String ifMatch = null; + final String ifNoneMatch = null; + return createOrUpdateAsync(resourceGroupName, resourceName, parameters, ifMatch, ifNoneMatch).block(); } /** @@ -1756,6 +1824,8 @@ public ManagedClusterInner createOrUpdate(String resourceGroupName, String resou * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param parameters The managed cluster to create or update. + * @param ifMatch The request should only proceed if an entity matches this string. + * @param ifNoneMatch The request should only proceed if no entity matches this string. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1764,8 +1834,8 @@ public ManagedClusterInner createOrUpdate(String resourceGroupName, String resou */ @ServiceMethod(returns = ReturnType.SINGLE) public ManagedClusterInner createOrUpdate(String resourceGroupName, String resourceName, - ManagedClusterInner parameters, Context context) { - return createOrUpdateAsync(resourceGroupName, resourceName, parameters, context).block(); + ManagedClusterInner parameters, String ifMatch, String ifNoneMatch, Context context) { + return createOrUpdateAsync(resourceGroupName, resourceName, parameters, ifMatch, ifNoneMatch, context).block(); } /** @@ -1774,6 +1844,7 @@ public ManagedClusterInner createOrUpdate(String resourceGroupName, String resou * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param parameters Parameters supplied to the Update Managed Cluster Tags operation. + * @param ifMatch The request should only proceed if an entity matches this string. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1781,7 +1852,7 @@ public ManagedClusterInner createOrUpdate(String resourceGroupName, String resou */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono>> updateTagsWithResponseAsync(String resourceGroupName, String resourceName, - TagsObject parameters) { + TagsObject parameters, String ifMatch) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -1802,11 +1873,11 @@ public Mono>> updateTagsWithResponseAsync(String resou } else { parameters.validate(); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.updateTags(this.client.getEndpoint(), apiVersion, - this.client.getSubscriptionId(), resourceGroupName, resourceName, parameters, accept, context)) + this.client.getSubscriptionId(), resourceGroupName, resourceName, ifMatch, parameters, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -1816,6 +1887,7 @@ public Mono>> updateTagsWithResponseAsync(String resou * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param parameters Parameters supplied to the Update Managed Cluster Tags operation. + * @param ifMatch The request should only proceed if an entity matches this string. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1824,7 +1896,7 @@ public Mono>> updateTagsWithResponseAsync(String resou */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> updateTagsWithResponseAsync(String resourceGroupName, String resourceName, - TagsObject parameters, Context context) { + TagsObject parameters, String ifMatch, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -1845,11 +1917,32 @@ private Mono>> updateTagsWithResponseAsync(String reso } else { parameters.validate(); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), - resourceGroupName, resourceName, parameters, accept, context); + resourceGroupName, resourceName, ifMatch, parameters, accept, context); + } + + /** + * Updates tags on a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param parameters Parameters supplied to the Update Managed Cluster Tags operation. + * @param ifMatch The request should only proceed if an entity matches this string. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of managed cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, ManagedClusterInner> + beginUpdateTagsAsync(String resourceGroupName, String resourceName, TagsObject parameters, String ifMatch) { + Mono>> mono + = updateTagsWithResponseAsync(resourceGroupName, resourceName, parameters, ifMatch); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + ManagedClusterInner.class, ManagedClusterInner.class, this.client.getContext()); } /** @@ -1866,8 +1959,9 @@ private Mono>> updateTagsWithResponseAsync(String reso @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public PollerFlux, ManagedClusterInner> beginUpdateTagsAsync(String resourceGroupName, String resourceName, TagsObject parameters) { + final String ifMatch = null; Mono>> mono - = updateTagsWithResponseAsync(resourceGroupName, resourceName, parameters); + = updateTagsWithResponseAsync(resourceGroupName, resourceName, parameters, ifMatch); return this.client.getLroResult(mono, this.client.getHttpPipeline(), ManagedClusterInner.class, ManagedClusterInner.class, this.client.getContext()); } @@ -1878,6 +1972,7 @@ private Mono>> updateTagsWithResponseAsync(String reso * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param parameters Parameters supplied to the Update Managed Cluster Tags operation. + * @param ifMatch The request should only proceed if an entity matches this string. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1885,11 +1980,11 @@ private Mono>> updateTagsWithResponseAsync(String reso * @return the {@link PollerFlux} for polling of managed cluster. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, ManagedClusterInner> - beginUpdateTagsAsync(String resourceGroupName, String resourceName, TagsObject parameters, Context context) { + private PollerFlux, ManagedClusterInner> beginUpdateTagsAsync( + String resourceGroupName, String resourceName, TagsObject parameters, String ifMatch, Context context) { context = this.client.mergeContext(context); Mono>> mono - = updateTagsWithResponseAsync(resourceGroupName, resourceName, parameters, context); + = updateTagsWithResponseAsync(resourceGroupName, resourceName, parameters, ifMatch, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), ManagedClusterInner.class, ManagedClusterInner.class, context); } @@ -1908,7 +2003,8 @@ private Mono>> updateTagsWithResponseAsync(String reso @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ManagedClusterInner> beginUpdateTags(String resourceGroupName, String resourceName, TagsObject parameters) { - return this.beginUpdateTagsAsync(resourceGroupName, resourceName, parameters).getSyncPoller(); + final String ifMatch = null; + return this.beginUpdateTagsAsync(resourceGroupName, resourceName, parameters, ifMatch).getSyncPoller(); } /** @@ -1917,6 +2013,7 @@ public SyncPoller, ManagedClusterInner> beginUpd * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param parameters Parameters supplied to the Update Managed Cluster Tags operation. + * @param ifMatch The request should only proceed if an entity matches this string. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1925,8 +2022,27 @@ public SyncPoller, ManagedClusterInner> beginUpd */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ManagedClusterInner> beginUpdateTags(String resourceGroupName, - String resourceName, TagsObject parameters, Context context) { - return this.beginUpdateTagsAsync(resourceGroupName, resourceName, parameters, context).getSyncPoller(); + String resourceName, TagsObject parameters, String ifMatch, Context context) { + return this.beginUpdateTagsAsync(resourceGroupName, resourceName, parameters, ifMatch, context).getSyncPoller(); + } + + /** + * Updates tags on a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param parameters Parameters supplied to the Update Managed Cluster Tags operation. + * @param ifMatch The request should only proceed if an entity matches this string. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return managed cluster on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono updateTagsAsync(String resourceGroupName, String resourceName, + TagsObject parameters, String ifMatch) { + return beginUpdateTagsAsync(resourceGroupName, resourceName, parameters, ifMatch).last() + .flatMap(this.client::getLroFinalResultOrError); } /** @@ -1943,7 +2059,8 @@ public SyncPoller, ManagedClusterInner> beginUpd @ServiceMethod(returns = ReturnType.SINGLE) public Mono updateTagsAsync(String resourceGroupName, String resourceName, TagsObject parameters) { - return beginUpdateTagsAsync(resourceGroupName, resourceName, parameters).last() + final String ifMatch = null; + return beginUpdateTagsAsync(resourceGroupName, resourceName, parameters, ifMatch).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -1953,6 +2070,7 @@ public Mono updateTagsAsync(String resourceGroupName, Strin * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param parameters Parameters supplied to the Update Managed Cluster Tags operation. + * @param ifMatch The request should only proceed if an entity matches this string. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1961,8 +2079,8 @@ public Mono updateTagsAsync(String resourceGroupName, Strin */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateTagsAsync(String resourceGroupName, String resourceName, - TagsObject parameters, Context context) { - return beginUpdateTagsAsync(resourceGroupName, resourceName, parameters, context).last() + TagsObject parameters, String ifMatch, Context context) { + return beginUpdateTagsAsync(resourceGroupName, resourceName, parameters, ifMatch, context).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -1979,7 +2097,8 @@ private Mono updateTagsAsync(String resourceGroupName, Stri */ @ServiceMethod(returns = ReturnType.SINGLE) public ManagedClusterInner updateTags(String resourceGroupName, String resourceName, TagsObject parameters) { - return updateTagsAsync(resourceGroupName, resourceName, parameters).block(); + final String ifMatch = null; + return updateTagsAsync(resourceGroupName, resourceName, parameters, ifMatch).block(); } /** @@ -1988,6 +2107,7 @@ public ManagedClusterInner updateTags(String resourceGroupName, String resourceN * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param parameters Parameters supplied to the Update Managed Cluster Tags operation. + * @param ifMatch The request should only proceed if an entity matches this string. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1996,8 +2116,8 @@ public ManagedClusterInner updateTags(String resourceGroupName, String resourceN */ @ServiceMethod(returns = ReturnType.SINGLE) public ManagedClusterInner updateTags(String resourceGroupName, String resourceName, TagsObject parameters, - Context context) { - return updateTagsAsync(resourceGroupName, resourceName, parameters, context).block(); + String ifMatch, Context context) { + return updateTagsAsync(resourceGroupName, resourceName, parameters, ifMatch, context).block(); } /** @@ -2005,13 +2125,15 @@ public ManagedClusterInner updateTags(String resourceGroupName, String resourceN * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. + * @param ifMatch The request should only proceed if an entity matches this string. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> deleteWithResponseAsync(String resourceGroupName, String resourceName) { + public Mono>> deleteWithResponseAsync(String resourceGroupName, String resourceName, + String ifMatch) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -2027,11 +2149,11 @@ public Mono>> deleteWithResponseAsync(String resourceG if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, - this.client.getSubscriptionId(), resourceGroupName, resourceName, accept, context)) + this.client.getSubscriptionId(), resourceGroupName, resourceName, ifMatch, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -2040,6 +2162,7 @@ public Mono>> deleteWithResponseAsync(String resourceG * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. + * @param ifMatch The request should only proceed if an entity matches this string. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2048,7 +2171,7 @@ public Mono>> deleteWithResponseAsync(String resourceG */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync(String resourceGroupName, String resourceName, - Context context) { + String ifMatch, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -2064,11 +2187,30 @@ private Mono>> deleteWithResponseAsync(String resource if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, - resourceName, accept, context); + resourceName, ifMatch, accept, context); + } + + /** + * Deletes a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param ifMatch The request should only proceed if an entity matches this string. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String resourceName, + String ifMatch) { + Mono>> mono = deleteWithResponseAsync(resourceGroupName, resourceName, ifMatch); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); } /** @@ -2083,7 +2225,8 @@ private Mono>> deleteWithResponseAsync(String resource */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String resourceName) { - Mono>> mono = deleteWithResponseAsync(resourceGroupName, resourceName); + final String ifMatch = null; + Mono>> mono = deleteWithResponseAsync(resourceGroupName, resourceName, ifMatch); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } @@ -2093,6 +2236,7 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. + * @param ifMatch The request should only proceed if an entity matches this string. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2101,9 +2245,10 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String resourceName, - Context context) { + String ifMatch, Context context) { context = this.client.mergeContext(context); - Mono>> mono = deleteWithResponseAsync(resourceGroupName, resourceName, context); + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, resourceName, ifMatch, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); } @@ -2120,7 +2265,8 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName) { - return this.beginDeleteAsync(resourceGroupName, resourceName).getSyncPoller(); + final String ifMatch = null; + return this.beginDeleteAsync(resourceGroupName, resourceName, ifMatch).getSyncPoller(); } /** @@ -2128,6 +2274,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. + * @param ifMatch The request should only proceed if an entity matches this string. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2135,9 +2282,26 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, + public SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, String ifMatch, Context context) { - return this.beginDeleteAsync(resourceGroupName, resourceName, context).getSyncPoller(); + return this.beginDeleteAsync(resourceGroupName, resourceName, ifMatch, context).getSyncPoller(); + } + + /** + * Deletes a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param ifMatch The request should only proceed if an entity matches this string. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono deleteAsync(String resourceGroupName, String resourceName, String ifMatch) { + return beginDeleteAsync(resourceGroupName, resourceName, ifMatch).last() + .flatMap(this.client::getLroFinalResultOrError); } /** @@ -2152,7 +2316,9 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono deleteAsync(String resourceGroupName, String resourceName) { - return beginDeleteAsync(resourceGroupName, resourceName).last().flatMap(this.client::getLroFinalResultOrError); + final String ifMatch = null; + return beginDeleteAsync(resourceGroupName, resourceName, ifMatch).last() + .flatMap(this.client::getLroFinalResultOrError); } /** @@ -2160,6 +2326,7 @@ public Mono deleteAsync(String resourceGroupName, String resourceName) { * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. + * @param ifMatch The request should only proceed if an entity matches this string. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2167,8 +2334,8 @@ public Mono deleteAsync(String resourceGroupName, String resourceName) { * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String resourceName, Context context) { - return beginDeleteAsync(resourceGroupName, resourceName, context).last() + private Mono deleteAsync(String resourceGroupName, String resourceName, String ifMatch, Context context) { + return beginDeleteAsync(resourceGroupName, resourceName, ifMatch, context).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -2183,7 +2350,8 @@ private Mono deleteAsync(String resourceGroupName, String resourceName, Co */ @ServiceMethod(returns = ReturnType.SINGLE) public void delete(String resourceGroupName, String resourceName) { - deleteAsync(resourceGroupName, resourceName).block(); + final String ifMatch = null; + deleteAsync(resourceGroupName, resourceName, ifMatch).block(); } /** @@ -2191,14 +2359,15 @@ public void delete(String resourceGroupName, String resourceName) { * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. + * @param ifMatch The request should only proceed if an entity matches this string. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String resourceName, Context context) { - deleteAsync(resourceGroupName, resourceName, context).block(); + public void delete(String resourceGroupName, String resourceName, String ifMatch, Context context) { + deleteAsync(resourceGroupName, resourceName, ifMatch, context).block(); } /** @@ -2237,7 +2406,7 @@ public Mono>> resetServicePrincipalProfileWithResponse } else { parameters.validate(); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.resetServicePrincipalProfile(this.client.getEndpoint(), apiVersion, @@ -2282,7 +2451,7 @@ private Mono>> resetServicePrincipalProfileWithRespons } else { parameters.validate(); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.resetServicePrincipalProfile(this.client.getEndpoint(), apiVersion, @@ -2490,7 +2659,7 @@ public Mono>> resetAadProfileWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.resetAadProfile(this.client.getEndpoint(), apiVersion, @@ -2536,7 +2705,7 @@ private Mono>> resetAadProfileWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.resetAadProfile(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -2744,7 +2913,7 @@ public Mono>> rotateClusterCertificatesWithResponseAsy if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.rotateClusterCertificates(this.client.getEndpoint(), apiVersion, @@ -2784,7 +2953,7 @@ private Mono>> rotateClusterCertificatesWithResponseAs if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.rotateClusterCertificates(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -2982,7 +3151,7 @@ public Mono>> abortLatestOperationWithResponseAsync(St if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.abortLatestOperation(this.client.getEndpoint(), apiVersion, @@ -3023,7 +3192,7 @@ private Mono>> abortLatestOperationWithResponseAsync(S if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.abortLatestOperation(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -3223,7 +3392,7 @@ public Mono>> rotateServiceAccountSigningKeysWithRespo if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.rotateServiceAccountSigningKeys(this.client.getEndpoint(), apiVersion, @@ -3260,7 +3429,7 @@ private Mono>> rotateServiceAccountSigningKeysWithResp if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.rotateServiceAccountSigningKeys(this.client.getEndpoint(), apiVersion, @@ -3435,7 +3604,7 @@ public Mono>> stopWithResponseAsync(String resourceGro if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.stop(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -3477,7 +3646,7 @@ private Mono>> stopWithResponseAsync(String resourceGr if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.stop(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, @@ -3684,7 +3853,7 @@ public Mono>> startWithResponseAsync(String resourceGr if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.start(this.client.getEndpoint(), apiVersion, @@ -3724,7 +3893,7 @@ private Mono>> startWithResponseAsync(String resourceG if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.start(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, @@ -3922,7 +4091,7 @@ public Mono>> runCommandWithResponseAsync(String resou } else { requestPayload.validate(); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.runCommand(this.client.getEndpoint(), apiVersion, @@ -3968,7 +4137,7 @@ private Mono>> runCommandWithResponseAsync(String reso } else { requestPayload.validate(); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.runCommand(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -4182,7 +4351,7 @@ public Mono getCommandResultWithRespons if (commandId == null) { return Mono.error(new IllegalArgumentException("Parameter commandId is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getCommandResult(this.client.getEndpoint(), apiVersion, @@ -4224,7 +4393,7 @@ private Mono getCommandResultWithRespon if (commandId == null) { return Mono.error(new IllegalArgumentException("Parameter commandId is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getCommandResult(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -4317,7 +4486,7 @@ public RunCommandResultInner getCommandResult(String resourceGroupName, String r if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listOutboundNetworkDependenciesEndpoints(this.client.getEndpoint(), @@ -4362,7 +4531,7 @@ public RunCommandResultInner getCommandResult(String resourceGroupName, String r if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -4489,7 +4658,7 @@ private Mono> listMeshRevisionProfilesSi if (location == null) { return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listMeshRevisionProfiles(this.client.getEndpoint(), apiVersion, @@ -4527,7 +4696,7 @@ private Mono> listMeshRevisionProfilesSi if (location == null) { return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -4639,7 +4808,7 @@ public Mono> getMeshRevisionProfileWithRespon if (mode == null) { return Mono.error(new IllegalArgumentException("Parameter mode is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getMeshRevisionProfile(this.client.getEndpoint(), apiVersion, @@ -4678,7 +4847,7 @@ private Mono> getMeshRevisionProfileWithRespo if (mode == null) { return Mono.error(new IllegalArgumentException("Parameter mode is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getMeshRevisionProfile(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -4770,7 +4939,7 @@ public MeshRevisionProfileInner getMeshRevisionProfile(String location, String m if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listMeshUpgradeProfiles(this.client.getEndpoint(), apiVersion, @@ -4810,7 +4979,7 @@ public MeshRevisionProfileInner getMeshRevisionProfile(String location, String m if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -4921,7 +5090,7 @@ public Mono> getMeshUpgradeProfileWithResponse if (mode == null) { return Mono.error(new IllegalArgumentException("Parameter mode is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getMeshUpgradeProfile(this.client.getEndpoint(), apiVersion, @@ -4963,7 +5132,7 @@ private Mono> getMeshUpgradeProfileWithRespons if (mode == null) { return Mono.error(new IllegalArgumentException("Parameter mode is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getMeshUpgradeProfile(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/OperationsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/OperationsClientImpl.java index 8a9e083280c9b..51d89d154313a 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/OperationsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/OperationsClientImpl.java @@ -82,7 +82,7 @@ private Mono> listSinglePageAsync() { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil.withContext(context -> service.list(this.client.getEndpoint(), apiVersion, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), @@ -105,7 +105,7 @@ private Mono> listSinglePageAsync(Context con return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), apiVersion, accept, context) diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/PrivateEndpointConnectionsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/PrivateEndpointConnectionsClientImpl.java index 0e274bbb6f17a..3350566d21670 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/PrivateEndpointConnectionsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/PrivateEndpointConnectionsClientImpl.java @@ -138,7 +138,7 @@ public Mono> listWithResponse if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -178,7 +178,7 @@ private Mono> listWithRespons if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, @@ -273,7 +273,7 @@ public Mono> getWithResponseAsync(Strin return Mono.error(new IllegalArgumentException( "Parameter privateEndpointConnectionName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -317,7 +317,7 @@ private Mono> getWithResponseAsync(Stri return Mono.error(new IllegalArgumentException( "Parameter privateEndpointConnectionName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, @@ -422,7 +422,7 @@ public Mono> updateWithResponseAsync(St } else { parameters.validate(); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -472,7 +472,7 @@ private Mono> updateWithResponseAsync(S } else { parameters.validate(); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.update(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, @@ -570,7 +570,7 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException( "Parameter privateEndpointConnectionName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -613,7 +613,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException( "Parameter privateEndpointConnectionName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/PrivateLinkResourcesClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/PrivateLinkResourcesClientImpl.java index 70c4f450be44a..e7922db2a4013 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/PrivateLinkResourcesClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/PrivateLinkResourcesClientImpl.java @@ -97,7 +97,7 @@ public Mono> listWithResponseAsync if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -136,7 +136,7 @@ private Mono> listWithResponseAsyn if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/ResolvePrivateLinkServiceIdsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/ResolvePrivateLinkServiceIdsClientImpl.java index b91f06987b872..851dc921c25cb 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/ResolvePrivateLinkServiceIdsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/ResolvePrivateLinkServiceIdsClientImpl.java @@ -104,7 +104,7 @@ public Mono> postWithResponseAsync(String res } else { parameters.validate(); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.post(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -148,7 +148,7 @@ private Mono> postWithResponseAsync(String re } else { parameters.validate(); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.post(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/SnapshotsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/SnapshotsClientImpl.java index 21bd014d6c0b7..b3271173e588e 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/SnapshotsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/SnapshotsClientImpl.java @@ -160,7 +160,7 @@ private Mono> listSinglePageAsync() { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -190,7 +190,7 @@ private Mono> listSinglePageAsync(Context context) return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) @@ -275,7 +275,7 @@ private Mono> listByResourceGroupSinglePageAsync(St return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), apiVersion, @@ -311,7 +311,7 @@ private Mono> listByResourceGroupSinglePageAsync(St return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -409,7 +409,7 @@ public Mono> getByResourceGroupWithResponseAsync(String if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), apiVersion, @@ -446,7 +446,7 @@ private Mono> getByResourceGroupWithResponseAsync(String if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -535,7 +535,7 @@ public Mono> createOrUpdateWithResponseAsync(String reso } else { parameters.validate(); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, @@ -578,7 +578,7 @@ private Mono> createOrUpdateWithResponseAsync(String res } else { parameters.validate(); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -671,7 +671,7 @@ public Mono> updateTagsWithResponseAsync(String resource } else { parameters.validate(); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.updateTags(this.client.getEndpoint(), apiVersion, @@ -714,7 +714,7 @@ private Mono> updateTagsWithResponseAsync(String resourc } else { parameters.validate(); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.updateTags(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -799,7 +799,7 @@ public Mono> deleteWithResponseAsync(String resourceGroupName, St if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, @@ -836,7 +836,7 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/TrustedAccessRoleBindingsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/TrustedAccessRoleBindingsClientImpl.java index e40e89797d793..91d533d298843 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/TrustedAccessRoleBindingsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/TrustedAccessRoleBindingsClientImpl.java @@ -148,7 +148,7 @@ private Mono> listSinglePageAsync(S if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -188,7 +188,7 @@ private Mono> listSinglePageAsync(S if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -297,7 +297,7 @@ public Mono> getWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter trustedAccessRoleBindingName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -339,7 +339,7 @@ private Mono> getWithResponseAsync(Strin return Mono.error( new IllegalArgumentException("Parameter trustedAccessRoleBindingName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, @@ -441,7 +441,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { trustedAccessRoleBinding.validate(); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, @@ -493,7 +493,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { trustedAccessRoleBinding.validate(); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -704,7 +704,7 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error( new IllegalArgumentException("Parameter trustedAccessRoleBindingName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -747,7 +747,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error( new IllegalArgumentException("Parameter trustedAccessRoleBindingName is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/TrustedAccessRolesClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/TrustedAccessRolesClientImpl.java index bea2e27c9c24b..05c82641a57fb 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/TrustedAccessRolesClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/TrustedAccessRolesClientImpl.java @@ -101,7 +101,7 @@ private Mono> listSinglePageAsync(String l if (location == null) { return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -134,7 +134,7 @@ private Mono> listSinglePageAsync(String l if (location == null) { return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); } - final String apiVersion = "2024-08-01"; + final String apiVersion = "2024-09-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AdvancedNetworking.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AdvancedNetworking.java new file mode 100644 index 0000000000000..6132ead8e9b42 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AdvancedNetworking.java @@ -0,0 +1,164 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Advanced Networking profile for enabling observability and security feature suite on a cluster. For more information + * see aka.ms/aksadvancednetworking. + */ +@Fluent +public final class AdvancedNetworking implements JsonSerializable { + /* + * Indicates the enablement of Advanced Networking functionalities of observability and security on AKS clusters. + * When this is set to true, all observability and security features will be set to enabled unless explicitly + * disabled. If not specified, the default is false. + */ + private Boolean enabled; + + /* + * Observability profile to enable advanced network metrics and flow logs with historical contexts. + */ + private AdvancedNetworkingObservability observability; + + /* + * Security profile to enable security features on cilium based cluster. + */ + private AdvancedNetworkingSecurity security; + + /** + * Creates an instance of AdvancedNetworking class. + */ + public AdvancedNetworking() { + } + + /** + * Get the enabled property: Indicates the enablement of Advanced Networking functionalities of observability and + * security on AKS clusters. When this is set to true, all observability and security features will be set to + * enabled unless explicitly disabled. If not specified, the default is false. + * + * @return the enabled value. + */ + public Boolean enabled() { + return this.enabled; + } + + /** + * Set the enabled property: Indicates the enablement of Advanced Networking functionalities of observability and + * security on AKS clusters. When this is set to true, all observability and security features will be set to + * enabled unless explicitly disabled. If not specified, the default is false. + * + * @param enabled the enabled value to set. + * @return the AdvancedNetworking object itself. + */ + public AdvancedNetworking withEnabled(Boolean enabled) { + this.enabled = enabled; + return this; + } + + /** + * Get the observability property: Observability profile to enable advanced network metrics and flow logs with + * historical contexts. + * + * @return the observability value. + */ + public AdvancedNetworkingObservability observability() { + return this.observability; + } + + /** + * Set the observability property: Observability profile to enable advanced network metrics and flow logs with + * historical contexts. + * + * @param observability the observability value to set. + * @return the AdvancedNetworking object itself. + */ + public AdvancedNetworking withObservability(AdvancedNetworkingObservability observability) { + this.observability = observability; + return this; + } + + /** + * Get the security property: Security profile to enable security features on cilium based cluster. + * + * @return the security value. + */ + public AdvancedNetworkingSecurity security() { + return this.security; + } + + /** + * Set the security property: Security profile to enable security features on cilium based cluster. + * + * @param security the security value to set. + * @return the AdvancedNetworking object itself. + */ + public AdvancedNetworking withSecurity(AdvancedNetworkingSecurity security) { + this.security = security; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (observability() != null) { + observability().validate(); + } + if (security() != null) { + security().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeBooleanField("enabled", this.enabled); + jsonWriter.writeJsonField("observability", this.observability); + jsonWriter.writeJsonField("security", this.security); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of AdvancedNetworking from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of AdvancedNetworking if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the AdvancedNetworking. + */ + public static AdvancedNetworking fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + AdvancedNetworking deserializedAdvancedNetworking = new AdvancedNetworking(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("enabled".equals(fieldName)) { + deserializedAdvancedNetworking.enabled = reader.getNullable(JsonReader::getBoolean); + } else if ("observability".equals(fieldName)) { + deserializedAdvancedNetworking.observability = AdvancedNetworkingObservability.fromJson(reader); + } else if ("security".equals(fieldName)) { + deserializedAdvancedNetworking.security = AdvancedNetworkingSecurity.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedAdvancedNetworking; + }); + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AdvancedNetworkingObservability.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AdvancedNetworkingObservability.java new file mode 100644 index 0000000000000..d5296ad62ccd6 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AdvancedNetworkingObservability.java @@ -0,0 +1,96 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Observability profile to enable advanced network metrics and flow logs with historical contexts. + */ +@Fluent +public final class AdvancedNetworkingObservability implements JsonSerializable { + /* + * Indicates the enablement of Advanced Networking observability functionalities on clusters. + */ + private Boolean enabled; + + /** + * Creates an instance of AdvancedNetworkingObservability class. + */ + public AdvancedNetworkingObservability() { + } + + /** + * Get the enabled property: Indicates the enablement of Advanced Networking observability functionalities on + * clusters. + * + * @return the enabled value. + */ + public Boolean enabled() { + return this.enabled; + } + + /** + * Set the enabled property: Indicates the enablement of Advanced Networking observability functionalities on + * clusters. + * + * @param enabled the enabled value to set. + * @return the AdvancedNetworkingObservability object itself. + */ + public AdvancedNetworkingObservability withEnabled(Boolean enabled) { + this.enabled = enabled; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeBooleanField("enabled", this.enabled); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of AdvancedNetworkingObservability from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of AdvancedNetworkingObservability if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the AdvancedNetworkingObservability. + */ + public static AdvancedNetworkingObservability fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + AdvancedNetworkingObservability deserializedAdvancedNetworkingObservability + = new AdvancedNetworkingObservability(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("enabled".equals(fieldName)) { + deserializedAdvancedNetworkingObservability.enabled = reader.getNullable(JsonReader::getBoolean); + } else { + reader.skipChildren(); + } + } + + return deserializedAdvancedNetworkingObservability; + }); + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AdvancedNetworkingSecurity.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AdvancedNetworkingSecurity.java new file mode 100644 index 0000000000000..7d14b493eb6c4 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AdvancedNetworkingSecurity.java @@ -0,0 +1,96 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Security profile to enable security features on cilium based cluster. + */ +@Fluent +public final class AdvancedNetworkingSecurity implements JsonSerializable { + /* + * This feature allows user to configure network policy based on DNS (FQDN) names. It can be enabled only on cilium + * based clusters. If not specified, the default is false. + */ + private Boolean enabled; + + /** + * Creates an instance of AdvancedNetworkingSecurity class. + */ + public AdvancedNetworkingSecurity() { + } + + /** + * Get the enabled property: This feature allows user to configure network policy based on DNS (FQDN) names. It can + * be enabled only on cilium based clusters. If not specified, the default is false. + * + * @return the enabled value. + */ + public Boolean enabled() { + return this.enabled; + } + + /** + * Set the enabled property: This feature allows user to configure network policy based on DNS (FQDN) names. It can + * be enabled only on cilium based clusters. If not specified, the default is false. + * + * @param enabled the enabled value to set. + * @return the AdvancedNetworkingSecurity object itself. + */ + public AdvancedNetworkingSecurity withEnabled(Boolean enabled) { + this.enabled = enabled; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeBooleanField("enabled", this.enabled); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of AdvancedNetworkingSecurity from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of AdvancedNetworkingSecurity if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IOException If an error occurs while reading the AdvancedNetworkingSecurity. + */ + public static AdvancedNetworkingSecurity fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + AdvancedNetworkingSecurity deserializedAdvancedNetworkingSecurity = new AdvancedNetworkingSecurity(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("enabled".equals(fieldName)) { + deserializedAdvancedNetworkingSecurity.enabled = reader.getNullable(JsonReader::getBoolean); + } else { + reader.skipChildren(); + } + } + + return deserializedAdvancedNetworkingSecurity; + }); + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ContainerServiceNetworkProfile.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ContainerServiceNetworkProfile.java index 0b8b753f82c66..fdbd06c52590f 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ContainerServiceNetworkProfile.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ContainerServiceNetworkProfile.java @@ -42,6 +42,12 @@ public final class ContainerServiceNetworkProfile implements JsonSerializable ipFamilies) * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { + if (advancedNetworking() != null) { + advancedNetworking().validate(); + } if (loadBalancerProfile() != null) { loadBalancerProfile().validate(); } @@ -448,6 +479,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStringField("networkMode", this.networkMode == null ? null : this.networkMode.toString()); jsonWriter.writeStringField("networkDataplane", this.networkDataplane == null ? null : this.networkDataplane.toString()); + jsonWriter.writeJsonField("advancedNetworking", this.advancedNetworking); jsonWriter.writeStringField("podCidr", this.podCidr); jsonWriter.writeStringField("serviceCidr", this.serviceCidr); jsonWriter.writeStringField("dnsServiceIP", this.dnsServiceIp); @@ -493,6 +525,8 @@ public static ContainerServiceNetworkProfile fromJson(JsonReader jsonReader) thr } else if ("networkDataplane".equals(fieldName)) { deserializedContainerServiceNetworkProfile.networkDataplane = NetworkDataplane.fromString(reader.getString()); + } else if ("advancedNetworking".equals(fieldName)) { + deserializedContainerServiceNetworkProfile.advancedNetworking = AdvancedNetworking.fromJson(reader); } else if ("podCidr".equals(fieldName)) { deserializedContainerServiceNetworkProfile.podCidr = reader.getString(); } else if ("serviceCidr".equals(fieldName)) { diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAgentPoolProfile.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAgentPoolProfile.java index 7fb575f11cdf0..ab334e24ccec3 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAgentPoolProfile.java +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAgentPoolProfile.java @@ -40,6 +40,13 @@ public final class ManagedClusterAgentPoolProfile extends ManagedClusterAgentPoo */ private String currentOrchestratorVersion; + /* + * Unique read-only string used to implement optimistic concurrency. The eTag value will change when the resource is + * updated. Specify an if-match or if-none-match header with the eTag value for a subsequent request to enable + * optimistic concurrency per the normal etag convention. + */ + private String etag; + /** * Creates an instance of ManagedClusterAgentPoolProfile class. */ @@ -98,6 +105,18 @@ public String currentOrchestratorVersion() { return this.currentOrchestratorVersion; } + /** + * Get the etag property: Unique read-only string used to implement optimistic concurrency. The eTag value will + * change when the resource is updated. Specify an if-match or if-none-match header with the eTag value for a + * subsequent request to enable optimistic concurrency per the normal etag convention. + * + * @return the etag value. + */ + @Override + public String etag() { + return this.etag; + } + /** * {@inheritDoc} */ @@ -589,7 +608,9 @@ public static ManagedClusterAgentPoolProfile fromJson(JsonReader jsonReader) thr String fieldName = reader.getFieldName(); reader.nextToken(); - if ("count".equals(fieldName)) { + if ("eTag".equals(fieldName)) { + deserializedManagedClusterAgentPoolProfile.etag = reader.getString(); + } else if ("count".equals(fieldName)) { deserializedManagedClusterAgentPoolProfile.withCount(reader.getNullable(JsonReader::getInt)); } else if ("vmSize".equals(fieldName)) { deserializedManagedClusterAgentPoolProfile.withVmSize(reader.getString()); diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterNodeResourceGroupProfile.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterNodeResourceGroupProfile.java new file mode 100644 index 0000000000000..e3485eccdee3c --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterNodeResourceGroupProfile.java @@ -0,0 +1,100 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Node resource group lockdown profile for a managed cluster. + */ +@Fluent +public final class ManagedClusterNodeResourceGroupProfile + implements JsonSerializable { + /* + * The restriction level applied to the cluster's node resource group. If not specified, the default is + * 'Unrestricted' + */ + private RestrictionLevel restrictionLevel; + + /** + * Creates an instance of ManagedClusterNodeResourceGroupProfile class. + */ + public ManagedClusterNodeResourceGroupProfile() { + } + + /** + * Get the restrictionLevel property: The restriction level applied to the cluster's node resource group. If not + * specified, the default is 'Unrestricted'. + * + * @return the restrictionLevel value. + */ + public RestrictionLevel restrictionLevel() { + return this.restrictionLevel; + } + + /** + * Set the restrictionLevel property: The restriction level applied to the cluster's node resource group. If not + * specified, the default is 'Unrestricted'. + * + * @param restrictionLevel the restrictionLevel value to set. + * @return the ManagedClusterNodeResourceGroupProfile object itself. + */ + public ManagedClusterNodeResourceGroupProfile withRestrictionLevel(RestrictionLevel restrictionLevel) { + this.restrictionLevel = restrictionLevel; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("restrictionLevel", + this.restrictionLevel == null ? null : this.restrictionLevel.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ManagedClusterNodeResourceGroupProfile from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ManagedClusterNodeResourceGroupProfile if the JsonReader was pointing to an instance of + * it, or null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the ManagedClusterNodeResourceGroupProfile. + */ + public static ManagedClusterNodeResourceGroupProfile fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ManagedClusterNodeResourceGroupProfile deserializedManagedClusterNodeResourceGroupProfile + = new ManagedClusterNodeResourceGroupProfile(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("restrictionLevel".equals(fieldName)) { + deserializedManagedClusterNodeResourceGroupProfile.restrictionLevel + = RestrictionLevel.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedManagedClusterNodeResourceGroupProfile; + }); + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/RestrictionLevel.java b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/RestrictionLevel.java new file mode 100644 index 0000000000000..70664c2e4cace --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/RestrictionLevel.java @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The restriction level applied to the cluster's node resource group. If not specified, the default is 'Unrestricted'. + */ +public final class RestrictionLevel extends ExpandableStringEnum { + /** + * Static value Unrestricted for RestrictionLevel. + */ + public static final RestrictionLevel UNRESTRICTED = fromString("Unrestricted"); + + /** + * Static value ReadOnly for RestrictionLevel. + */ + public static final RestrictionLevel READ_ONLY = fromString("ReadOnly"); + + /** + * Creates a new instance of RestrictionLevel value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public RestrictionLevel() { + } + + /** + * Creates or finds a RestrictionLevel from its string representation. + * + * @param name a name to look for. + * @return the corresponding RestrictionLevel. + */ + public static RestrictionLevel fromString(String name) { + return fromString(name, RestrictionLevel.class); + } + + /** + * Gets known RestrictionLevel values. + * + * @return known RestrictionLevel values. + */ + public static Collection values() { + return values(RestrictionLevel.class); + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsAbortLatestOperationSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsAbortLatestOperationSamples.java index 4027adb9bfe1c..72da8929c11e3 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsAbortLatestOperationSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsAbortLatestOperationSamples.java @@ -10,7 +10,7 @@ public final class AgentPoolsAbortLatestOperationSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * AgentPoolsAbortOperation.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsCreateOrUpdateSamples.java index 7f0a419eb17c9..339eeb8f860c9 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsCreateOrUpdateSamples.java @@ -30,7 +30,7 @@ public final class AgentPoolsCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * AgentPoolsCreate_EnableFIPS.json */ /** @@ -49,12 +49,12 @@ public static void createAgentPoolWithFIPSEnabledOS(com.azure.resourcemanager.Az .withOsType(OSType.LINUX) .withOrchestratorVersion("") .withEnableFips(true), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * AgentPools_Update.json */ /** @@ -78,12 +78,12 @@ public static void updateAgentPool(com.azure.resourcemanager.AzureResourceManage .withScaleSetPriority(ScaleSetPriority.SPOT) .withScaleSetEvictionPolicy(ScaleSetEvictionPolicy.DELETE) .withNodeTaints(Arrays.asList("Key1=Value1:NoSchedule")), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * AgentPoolsCreate_GPUMIG.json */ /** @@ -118,12 +118,12 @@ public static void createAgentPoolWithGPUMIG(com.azure.resourcemanager.AzureReso .withTransparentHugePageDefrag("madvise") .withSwapFileSizeMB(1500)) .withGpuInstanceProfile(GpuInstanceProfile.MIG2G), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * AgentPoolsCreate_WindowsOSSKU.json */ /** @@ -142,12 +142,12 @@ public static void createAgentPoolWithWindowsOSSKU(com.azure.resourcemanager.Azu .withOsType(OSType.WINDOWS) .withOsSku(OSSku.WINDOWS2022) .withOrchestratorVersion("1.23.3"), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * AgentPoolsCreate_DedicatedHostGroup.json */ /** @@ -166,12 +166,12 @@ public static void createAgentPoolWithDedicatedHostGroup(com.azure.resourcemanag .withOrchestratorVersion("") .withHostGroupId( "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg/providers/Microsoft.Compute/hostGroups/hostgroup1"), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * AgentPoolsCreate_Update.json */ /** @@ -195,12 +195,12 @@ public static void createUpdateAgentPool(com.azure.resourcemanager.AzureResource .withTags(mapOf("name1", "val1")) .withNodeLabels(mapOf("key1", "fakeTokenPlaceholder")) .withNodeTaints(Arrays.asList("Key1=Value1:NoSchedule")), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * AgentPoolsCreate_WindowsDisableOutboundNAT.json */ /** @@ -221,12 +221,12 @@ public static void createUpdateAgentPool(com.azure.resourcemanager.AzureResource .withOsSku(OSSku.WINDOWS2022) .withOrchestratorVersion("1.23.8") .withWindowsProfile(new AgentPoolWindowsProfile().withDisableOutboundNat(true)), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * AgentPools_Start.json */ /** @@ -240,13 +240,13 @@ public static void startAgentPool(com.azure.resourcemanager.AzureResourceManager .serviceClient() .getAgentPools() .createOrUpdate("rg1", "clustername1", "agentpool1", - new AgentPoolInner().withPowerState(new PowerState().withCode(Code.RUNNING)), + new AgentPoolInner().withPowerState(new PowerState().withCode(Code.RUNNING)), null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * AgentPoolsCreate_Spot.json */ /** @@ -269,12 +269,12 @@ public static void createSpotAgentPool(com.azure.resourcemanager.AzureResourceMa .withTags(mapOf("name1", "val1")) .withNodeLabels(mapOf("key1", "fakeTokenPlaceholder")) .withNodeTaints(Arrays.asList("Key1=Value1:NoSchedule")), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * AgentPoolsCreate_Ephemeral.json */ /** @@ -294,12 +294,12 @@ public static void createAgentPoolWithEphemeralOSDisk(com.azure.resourcemanager. .withOsDiskType(OSDiskType.EPHEMERAL) .withOsType(OSType.LINUX) .withOrchestratorVersion(""), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * AgentPoolsCreate_EnableEncryptionAtHost.json */ /** @@ -319,12 +319,12 @@ public static void createAgentPoolWithEphemeralOSDisk(com.azure.resourcemanager. .withOsType(OSType.LINUX) .withOrchestratorVersion("") .withEnableEncryptionAtHost(true), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * AgentPoolsCreate_EnableUltraSSD.json */ /** @@ -343,12 +343,12 @@ public static void createAgentPoolWithUltraSSDEnabled(com.azure.resourcemanager. .withOsType(OSType.LINUX) .withOrchestratorVersion("") .withEnableUltraSsd(true), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * AgentPoolsCreate_WasmWasi.json */ /** @@ -370,12 +370,12 @@ public static void createAgentPoolWithUltraSSDEnabled(com.azure.resourcemanager. .withOsType(OSType.LINUX) .withMode(AgentPoolMode.USER) .withOrchestratorVersion(""), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * AgentPoolsCreate_Snapshot.json */ /** @@ -395,12 +395,12 @@ public static void createAgentPoolUsingAnAgentPoolSnapshot(com.azure.resourceman .withEnableFips(true) .withCreationData(new CreationData().withSourceResourceId( "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.ContainerService/snapshots/snapshot1")), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * AgentPoolsCreate_PPG.json */ /** @@ -419,12 +419,12 @@ public static void createAgentPoolWithPPG(com.azure.resourcemanager.AzureResourc .withOrchestratorVersion("") .withProximityPlacementGroupId( "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Compute/proximityPlacementGroups/ppg1"), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * AgentPoolsCreate_CustomNodeConfig.json */ /** @@ -459,12 +459,12 @@ public static void createAgentPoolWithPPG(com.azure.resourcemanager.AzureResourc .withTransparentHugePageEnabled("always") .withTransparentHugePageDefrag("madvise") .withSwapFileSizeMB(1500)), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * AgentPools_Stop.json */ /** @@ -478,13 +478,13 @@ public static void stopAgentPool(com.azure.resourcemanager.AzureResourceManager .serviceClient() .getAgentPools() .createOrUpdate("rg1", "clustername1", "agentpool1", - new AgentPoolInner().withPowerState(new PowerState().withCode(Code.STOPPED)), + new AgentPoolInner().withPowerState(new PowerState().withCode(Code.STOPPED)), null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * AgentPoolsCreate_CRG.json */ /** @@ -504,12 +504,12 @@ public static void stopAgentPool(com.azure.resourcemanager.AzureResourceManager .withOrchestratorVersion("") .withCapacityReservationGroupId( "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Compute/CapacityReservationGroups/crg1"), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * AgentPoolsCreate_OSSKU.json */ /** @@ -544,7 +544,7 @@ public static void createAgentPoolWithOSSKU(com.azure.resourcemanager.AzureResou .withTransparentHugePageEnabled("always") .withTransparentHugePageDefrag("madvise") .withSwapFileSizeMB(1500)), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } // Use "Map.of" if available diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsDeleteMachinesSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsDeleteMachinesSamples.java index a8d67e24a29e9..816975f7c68b2 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsDeleteMachinesSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsDeleteMachinesSamples.java @@ -13,7 +13,7 @@ public final class AgentPoolsDeleteMachinesSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * AgentPoolsDeleteMachines.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsDeleteSamples.java index 4966ca1c168ac..7c5005a152945 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsDeleteSamples.java @@ -10,7 +10,7 @@ public final class AgentPoolsDeleteSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * AgentPoolsDelete.json */ /** @@ -23,6 +23,6 @@ public static void deleteAgentPool(com.azure.resourcemanager.AzureResourceManage .manager() .serviceClient() .getAgentPools() - .delete("rg1", "clustername1", "agentpool1", null, com.azure.core.util.Context.NONE); + .delete("rg1", "clustername1", "agentpool1", null, null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsGetAvailableAgentPoolVersionsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsGetAvailableAgentPoolVersionsSamples.java index 5181dd14fd029..2ef94ee80e0d4 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsGetAvailableAgentPoolVersionsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsGetAvailableAgentPoolVersionsSamples.java @@ -10,7 +10,7 @@ public final class AgentPoolsGetAvailableAgentPoolVersionsSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * AgentPoolsGetAgentPoolAvailableVersions.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsGetSamples.java index cdc286bda2b88..25ab08618dcc3 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsGetSamples.java @@ -10,7 +10,7 @@ public final class AgentPoolsGetSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * AgentPoolsGet.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsGetUpgradeProfileSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsGetUpgradeProfileSamples.java index d567a3c7f778f..d4030a60868e0 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsGetUpgradeProfileSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsGetUpgradeProfileSamples.java @@ -10,7 +10,7 @@ public final class AgentPoolsGetUpgradeProfileSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * AgentPoolsGetUpgradeProfile.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsListSamples.java index 7e98f287c3db9..384f07cde231f 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsListSamples.java @@ -10,7 +10,7 @@ public final class AgentPoolsListSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * AgentPoolsList.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsUpgradeNodeImageVersionSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsUpgradeNodeImageVersionSamples.java index 802da0d86b0c5..96a8e78b1f179 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsUpgradeNodeImageVersionSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsUpgradeNodeImageVersionSamples.java @@ -10,7 +10,7 @@ public final class AgentPoolsUpgradeNodeImageVersionSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * AgentPoolsUpgradeNodeImageVersion.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/MachinesGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/MachinesGetSamples.java index 5d040c747f3b8..a8efcc9f0b1a4 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/MachinesGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/MachinesGetSamples.java @@ -10,7 +10,7 @@ public final class MachinesGetSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * MachineGet.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/MachinesListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/MachinesListSamples.java index ad1fe7eef86f5..e89f4362fc859 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/MachinesListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/MachinesListSamples.java @@ -10,7 +10,7 @@ public final class MachinesListSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * MachineList.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceConfigurationsCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceConfigurationsCreateOrUpdateSamples.java index 6093bc185616d..6d036189c04ea 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceConfigurationsCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceConfigurationsCreateOrUpdateSamples.java @@ -23,7 +23,7 @@ public final class MaintenanceConfigurationsCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * MaintenanceConfigurationsCreate_Update.json */ /** @@ -46,7 +46,7 @@ public static void createUpdateMaintenanceConfiguration(com.azure.resourcemanage /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * MaintenanceConfigurationsCreate_Update_MaintenanceWindow.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceConfigurationsDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceConfigurationsDeleteSamples.java index 4a8e549adce03..07849aa482c76 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceConfigurationsDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceConfigurationsDeleteSamples.java @@ -10,7 +10,7 @@ public final class MaintenanceConfigurationsDeleteSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * MaintenanceConfigurationsDelete.json */ /** @@ -28,7 +28,7 @@ public static void deleteMaintenanceConfiguration(com.azure.resourcemanager.Azur /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * MaintenanceConfigurationsDelete_MaintenanceWindow.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceConfigurationsGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceConfigurationsGetSamples.java index 8d755b5faf478..260fe0302e5ac 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceConfigurationsGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceConfigurationsGetSamples.java @@ -10,7 +10,7 @@ public final class MaintenanceConfigurationsGetSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * MaintenanceConfigurationsGet.json */ /** @@ -28,7 +28,7 @@ public static void getMaintenanceConfiguration(com.azure.resourcemanager.AzureRe /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * MaintenanceConfigurationsGet_MaintenanceWindow.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceConfigurationsListByManagedClusterSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceConfigurationsListByManagedClusterSamples.java index a63990ebf216a..f6f4b267c651e 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceConfigurationsListByManagedClusterSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceConfigurationsListByManagedClusterSamples.java @@ -10,7 +10,7 @@ public final class MaintenanceConfigurationsListByManagedClusterSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * MaintenanceConfigurationsList_MaintenanceWindow.json */ /** @@ -29,7 +29,7 @@ public static void listMaintenanceConfigurationsConfiguredWithMaintenanceWindowB /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * MaintenanceConfigurationsList.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersAbortLatestOperationSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersAbortLatestOperationSamples.java index 86ac5844f16df..6eb9a4a283083 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersAbortLatestOperationSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersAbortLatestOperationSamples.java @@ -10,7 +10,7 @@ public final class ManagedClustersAbortLatestOperationSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersAbortOperation.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersCreateOrUpdateSamples.java index 9d89c2247024b..4df4a54f404c6 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersCreateOrUpdateSamples.java @@ -70,7 +70,7 @@ public final class ManagedClustersCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersCreate_CRG.json */ /** @@ -117,12 +117,12 @@ public final class ManagedClustersCreateOrUpdateSamples { .withScaleDownDelayAfterAdd("15m")) .withDiskEncryptionSetId( "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des"), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersCreate_DualStackNetworking.json */ /** @@ -180,12 +180,12 @@ public final class ManagedClustersCreateOrUpdateSamples { .withSkipNodesWithSystemPods("false")) .withDiskEncryptionSetId( "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des"), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersCreate_PodIdentity.json */ /** @@ -232,12 +232,12 @@ public final class ManagedClustersCreateOrUpdateSamples { .withScaleDownDelayAfterAdd("15m")) .withDiskEncryptionSetId( "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des"), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersCreate_UserAssignedNATGateway.json */ /** @@ -281,12 +281,12 @@ public static void createManagedClusterWithUserAssignedNATGatewayAsOutboundType( .withScaleDownDelayAfterAdd("15m")) .withDiskEncryptionSetId( "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des"), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersCreate_Update.json */ /** @@ -345,12 +345,12 @@ public static void createUpdateManagedCluster(com.azure.resourcemanager.AzureRes .withSkipNodesWithSystemPods("false")) .withDiskEncryptionSetId( "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des"), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersCreate_PrivateClusterFQDNSubdomain.json */ /** @@ -397,12 +397,12 @@ public static void createUpdateManagedCluster(com.azure.resourcemanager.AzureRes .withApiServerAccessProfile(new ManagedClusterApiServerAccessProfile().withEnablePrivateCluster(true) .withPrivateDnsZone( "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Network/privateDnsZones/privatelink.location1.azmk8s.io")), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersCreate_ManagedNATGateway.json */ /** @@ -448,12 +448,12 @@ public static void createManagedClusterWithAKSManagedNATGatewayAsOutboundType( .withScaleDownDelayAfterAdd("15m")) .withDiskEncryptionSetId( "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des"), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersCreate_Premium.json */ /** @@ -498,12 +498,12 @@ public static void createManagedClusterWithLongTermSupport(com.azure.resourceman .withAutoScalerProfile(new ManagedClusterPropertiesAutoScalerProfile().withScanInterval("20s") .withScaleDownDelayAfterAdd("15m")) .withApiServerAccessProfile(new ManagedClusterApiServerAccessProfile().withDisableRunCommand(true)), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersCreate_NodePublicIPPrefix.json */ /** @@ -550,12 +550,12 @@ public static void createManagedClusterWithLongTermSupport(com.azure.resourceman .withScaleDownDelayAfterAdd("15m")) .withDiskEncryptionSetId( "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des"), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersCreate_EnableEncryptionAtHost.json */ /** @@ -601,12 +601,12 @@ public static void createManagedClusterWithLongTermSupport(com.azure.resourceman .withScaleDownDelayAfterAdd("15m")) .withDiskEncryptionSetId( "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des"), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersCreate_PrivateClusterPublicFQDN.json */ /** @@ -652,12 +652,12 @@ public static void createManagedClusterWithLongTermSupport(com.azure.resourceman .withScaleDownDelayAfterAdd("15m")) .withApiServerAccessProfile(new ManagedClusterApiServerAccessProfile().withEnablePrivateCluster(true) .withEnablePrivateClusterPublicFqdn(true)), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersCreate_HTTPProxy.json */ /** @@ -706,12 +706,12 @@ public static void createManagedClusterWithLongTermSupport(com.azure.resourceman .withHttpsProxy("https://myproxy.server.com:8080") .withNoProxy(Arrays.asList("localhost", "127.0.0.1")) .withTrustedCa("Q29uZ3JhdHMhIFlvdSBoYXZlIGZvdW5kIGEgaGlkZGVuIG1lc3NhZ2U=")), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersCreate_DedicatedHostGroup.json */ /** @@ -757,12 +757,12 @@ public static void createManagedClusterWithLongTermSupport(com.azure.resourceman .withScaleDownDelayAfterAdd("15m")) .withDiskEncryptionSetId( "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des"), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersCreate_EnabledFIPS.json */ /** @@ -807,12 +807,12 @@ public static void createManagedClusterWithFIPSEnabledOS(com.azure.resourcemanag .withScaleDownDelayAfterAdd("15m")) .withDiskEncryptionSetId( "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des"), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersCreate_SecurityProfile.json */ /** @@ -852,12 +852,12 @@ public static void createManagedClusterWithFIPSEnabledOS(com.azure.resourcemanag .withSecurityMonitoring( new ManagedClusterSecurityProfileDefenderSecurityMonitoring().withEnabled(true))) .withWorkloadIdentity(new ManagedClusterSecurityProfileWorkloadIdentity().withEnabled(true))), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersCreate_PPG.json */ /** @@ -903,12 +903,12 @@ public static void createManagedClusterWithPPG(com.azure.resourcemanager.AzureRe .withScaleDownDelayAfterAdd("15m")) .withDiskEncryptionSetId( "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des"), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersCreate_IngressProfile_WebAppRouting.json */ /** @@ -946,12 +946,12 @@ public static void createManagedClusterWithWebAppRoutingIngressProfileConfigured .withWebAppRouting(new ManagedClusterIngressProfileWebAppRouting().withEnabled(true) .withDnsZoneResourceIds(Arrays.asList( "/subscriptions/SUB_ID/resourceGroups/RG_NAME/providers/Microsoft.Network/dnszones/DNS_ZONE_NAME")))), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersCreate_UpdateWithAHUB.json */ /** @@ -1001,12 +1001,12 @@ public static void createUpdateManagedClusterWithEnableAHUB(com.azure.resourcema .withScaleDownDelayAfterAdd("15m")) .withDiskEncryptionSetId( "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des"), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersCreate_DisableRunCommand.json */ /** @@ -1051,12 +1051,12 @@ public static void createUpdateManagedClusterWithEnableAHUB(com.azure.resourcema .withAutoScalerProfile(new ManagedClusterPropertiesAutoScalerProfile().withScanInterval("20s") .withScaleDownDelayAfterAdd("15m")) .withApiServerAccessProfile(new ManagedClusterApiServerAccessProfile().withDisableRunCommand(true)), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersCreate_Snapshot.json */ /** @@ -1104,12 +1104,12 @@ public static void createUpdateManagedClusterWithEnableAHUB(com.azure.resourcema .withScaleDownDelayAfterAdd("15m")) .withDiskEncryptionSetId( "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des"), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersCreate_AzureServiceMesh.json */ /** @@ -1174,12 +1174,12 @@ public static void createUpdateManagedClusterWithEnableAHUB(com.azure.resourcema .withKeyObjectName("fakeTokenPlaceholder") .withRootCertObjectName("root-cert") .withCertChainObjectName("cert-chain"))))), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersCreate_AzureKeyvaultSecretsProvider.json */ /** @@ -1231,12 +1231,12 @@ public static void createManagedClusterWithAzureKeyVaultSecretsProviderAddon( .withScaleDownDelayAfterAdd("15m")) .withDiskEncryptionSetId( "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des"), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersCreate_OSSKU.json */ /** @@ -1285,12 +1285,12 @@ public static void createManagedClusterWithOSSKU(com.azure.resourcemanager.Azure .withHttpsProxy("https://myproxy.server.com:8080") .withNoProxy(Arrays.asList("localhost", "127.0.0.1")) .withTrustedCa("Q29uZ3JhdHMhIFlvdSBoYXZlIGZvdW5kIGEgaGlkZGVuIG1lc3NhZ2U=")), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersCreate_UpdateWithEnableAzureRBAC.json */ /** @@ -1337,12 +1337,12 @@ public static void createManagedClusterWithOSSKU(com.azure.resourcemanager.Azure .withScaleDownDelayAfterAdd("15m")) .withDiskEncryptionSetId( "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des"), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersCreate_EnableUltraSSD.json */ /** @@ -1387,12 +1387,12 @@ public static void createManagedClusterWithUltraSSDEnabled(com.azure.resourceman .withScaleDownDelayAfterAdd("15m")) .withDiskEncryptionSetId( "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des"), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersCreate_UpdateWindowsGmsa.json */ /** @@ -1443,12 +1443,12 @@ public static void createManagedClusterWithUltraSSDEnabled(com.azure.resourceman .withScaleDownDelayAfterAdd("15m")) .withDiskEncryptionSetId( "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des"), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersCreate_GPUMIG.json */ /** @@ -1497,7 +1497,7 @@ public static void createManagedClusterWithGPUMIG(com.azure.resourcemanager.Azur .withHttpsProxy("https://myproxy.server.com:8080") .withNoProxy(Arrays.asList("localhost", "127.0.0.1")) .withTrustedCa("Q29uZ3JhdHMhIFlvdSBoYXZlIGZvdW5kIGEgaGlkZGVuIG1lc3NhZ2U=")), - com.azure.core.util.Context.NONE); + null, null, com.azure.core.util.Context.NONE); } // Use "Map.of" if available diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersDeleteSamples.java index 97b8a54b25b93..81a5ebf6a0fed 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersDeleteSamples.java @@ -10,7 +10,7 @@ public final class ManagedClustersDeleteSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersDelete.json */ /** @@ -23,6 +23,6 @@ public static void deleteManagedCluster(com.azure.resourcemanager.AzureResourceM .manager() .serviceClient() .getManagedClusters() - .delete("rg1", "clustername1", com.azure.core.util.Context.NONE); + .delete("rg1", "clustername1", null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetAccessProfileSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetAccessProfileSamples.java index 6ba6671e6fa93..4dc3f8e193fbc 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetAccessProfileSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetAccessProfileSamples.java @@ -10,7 +10,7 @@ public final class ManagedClustersGetAccessProfileSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersGetAccessProfile.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetByResourceGroupSamples.java index 03e1137eef1c5..1d1ad7d9c382d 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetByResourceGroupSamples.java @@ -10,7 +10,7 @@ public final class ManagedClustersGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersGet.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetCommandResultSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetCommandResultSamples.java index 998faf870f807..bd3db16b3f596 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetCommandResultSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetCommandResultSamples.java @@ -10,7 +10,7 @@ public final class ManagedClustersGetCommandResultSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * RunCommandResultFailed.json */ /** @@ -29,7 +29,7 @@ public static void commandFailedResult(com.azure.resourcemanager.AzureResourceMa /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * RunCommandResultSucceed.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetMeshRevisionProfileSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetMeshRevisionProfileSamples.java index 4c247ba34e5ff..e1e28d929c4cf 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetMeshRevisionProfileSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetMeshRevisionProfileSamples.java @@ -10,7 +10,7 @@ public final class ManagedClustersGetMeshRevisionProfileSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersGet_MeshRevisionProfile.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetMeshUpgradeProfileSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetMeshUpgradeProfileSamples.java index f0f414766803b..9ac93273e3c69 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetMeshUpgradeProfileSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetMeshUpgradeProfileSamples.java @@ -10,7 +10,7 @@ public final class ManagedClustersGetMeshUpgradeProfileSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersGet_MeshUpgradeProfile.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetUpgradeProfileSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetUpgradeProfileSamples.java index bbc056572d8e3..f181ad4900b59 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetUpgradeProfileSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetUpgradeProfileSamples.java @@ -10,7 +10,7 @@ public final class ManagedClustersGetUpgradeProfileSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersGetUpgradeProfile.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListByResourceGroupSamples.java index 979d34485df97..a2d6d7e454383 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListByResourceGroupSamples.java @@ -10,7 +10,7 @@ public final class ManagedClustersListByResourceGroupSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersListByResourceGroup.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListClusterAdminCredentialsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListClusterAdminCredentialsSamples.java index 24d07a768845f..c7a560daf64eb 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListClusterAdminCredentialsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListClusterAdminCredentialsSamples.java @@ -10,7 +10,7 @@ public final class ManagedClustersListClusterAdminCredentialsSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersListClusterAdminCredentials.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListClusterMonitoringUserCredentialsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListClusterMonitoringUserCredentialsSamples.java index 5c6f85b9db0fb..2c8dcdd79427e 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListClusterMonitoringUserCredentialsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListClusterMonitoringUserCredentialsSamples.java @@ -10,7 +10,7 @@ public final class ManagedClustersListClusterMonitoringUserCredentialsSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersListClusterMonitoringUserCredentials.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListClusterUserCredentialsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListClusterUserCredentialsSamples.java index aac8be121a002..74d871a5a2888 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListClusterUserCredentialsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListClusterUserCredentialsSamples.java @@ -10,7 +10,7 @@ public final class ManagedClustersListClusterUserCredentialsSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersListClusterUserCredentials.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListKubernetesVersionsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListKubernetesVersionsSamples.java index eafb149a70d03..7810058415d1c 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListKubernetesVersionsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListKubernetesVersionsSamples.java @@ -10,7 +10,7 @@ public final class ManagedClustersListKubernetesVersionsSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * KubernetesVersions_List.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListMeshRevisionProfilesSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListMeshRevisionProfilesSamples.java index ff7dac1160aa1..a532bcf6ea1b0 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListMeshRevisionProfilesSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListMeshRevisionProfilesSamples.java @@ -10,7 +10,7 @@ public final class ManagedClustersListMeshRevisionProfilesSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersList_MeshRevisionProfiles.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListMeshUpgradeProfilesSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListMeshUpgradeProfilesSamples.java index d4e4b6af8d2cf..783fe1bf2187e 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListMeshUpgradeProfilesSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListMeshUpgradeProfilesSamples.java @@ -10,7 +10,7 @@ public final class ManagedClustersListMeshUpgradeProfilesSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersList_MeshUpgradeProfiles.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListOutboundNetworkDependenciesEndpointsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListOutboundNetworkDependenciesEndpointsSamples.java index 60378001fd961..e9a6c6d8627b1 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListOutboundNetworkDependenciesEndpointsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListOutboundNetworkDependenciesEndpointsSamples.java @@ -10,7 +10,7 @@ public final class ManagedClustersListOutboundNetworkDependenciesEndpointsSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * OutboundNetworkDependenciesEndpointsList.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListSamples.java index 7f0e064267dc6..d9f45d51ae1ea 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListSamples.java @@ -10,7 +10,7 @@ public final class ManagedClustersListSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersList.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersResetAadProfileSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersResetAadProfileSamples.java index 0bc3d3aeff82e..4d9fb57d77fd8 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersResetAadProfileSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersResetAadProfileSamples.java @@ -12,7 +12,7 @@ public final class ManagedClustersResetAadProfileSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersResetAADProfile.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersResetServicePrincipalProfileSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersResetServicePrincipalProfileSamples.java index 108a5441bc033..1b90264fb075a 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersResetServicePrincipalProfileSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersResetServicePrincipalProfileSamples.java @@ -12,7 +12,7 @@ public final class ManagedClustersResetServicePrincipalProfileSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersResetServicePrincipalProfile.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersRotateClusterCertificatesSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersRotateClusterCertificatesSamples.java index 4519b2ec6c860..4c7b02023f95b 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersRotateClusterCertificatesSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersRotateClusterCertificatesSamples.java @@ -10,7 +10,7 @@ public final class ManagedClustersRotateClusterCertificatesSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersRotateClusterCertificates.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersRotateServiceAccountSigningKeysSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersRotateServiceAccountSigningKeysSamples.java index 31071de33de2a..db1c82319e755 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersRotateServiceAccountSigningKeysSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersRotateServiceAccountSigningKeysSamples.java @@ -10,7 +10,7 @@ public final class ManagedClustersRotateServiceAccountSigningKeysSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersRotateServiceAccountSigningKeys.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersRunCommandSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersRunCommandSamples.java index a9078f9b454bc..78d3833d15139 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersRunCommandSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersRunCommandSamples.java @@ -12,7 +12,7 @@ public final class ManagedClustersRunCommandSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * RunCommandRequest.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersStartSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersStartSamples.java index e63d7d6154885..279382dbdfc4e 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersStartSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersStartSamples.java @@ -10,7 +10,7 @@ public final class ManagedClustersStartSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersStart.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersStopSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersStopSamples.java index 756c5bd192c5e..a435296c2ef66 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersStopSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersStopSamples.java @@ -10,7 +10,7 @@ public final class ManagedClustersStopSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersStop.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersUpdateTagsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersUpdateTagsSamples.java index 992b43554b50d..20aa10d8d93af 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersUpdateTagsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersUpdateTagsSamples.java @@ -14,7 +14,7 @@ public final class ManagedClustersUpdateTagsSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ManagedClustersUpdateTags.json */ /** @@ -27,7 +27,7 @@ public static void updateManagedClusterTags(com.azure.resourcemanager.AzureResou .manager() .serviceClient() .getManagedClusters() - .updateTags("rg1", "clustername1", new TagsObject().withTags(mapOf("archv3", "", "tier", "testing")), + .updateTags("rg1", "clustername1", new TagsObject().withTags(mapOf("archv3", "", "tier", "testing")), null, com.azure.core.util.Context.NONE); } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/OperationsListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/OperationsListSamples.java index dd0eba542a768..ef39d3ccd9e0e 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/OperationsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/OperationsListSamples.java @@ -10,7 +10,7 @@ public final class OperationsListSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * Operation_List.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateEndpointConnectionsDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateEndpointConnectionsDeleteSamples.java index 09372c00894e6..45ac4eadafe69 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateEndpointConnectionsDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateEndpointConnectionsDeleteSamples.java @@ -10,7 +10,7 @@ public final class PrivateEndpointConnectionsDeleteSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * PrivateEndpointConnectionsDelete.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateEndpointConnectionsGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateEndpointConnectionsGetSamples.java index 4e027ff081130..47524bb2e409e 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateEndpointConnectionsGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateEndpointConnectionsGetSamples.java @@ -10,7 +10,7 @@ public final class PrivateEndpointConnectionsGetSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * PrivateEndpointConnectionsGet.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateEndpointConnectionsListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateEndpointConnectionsListSamples.java index 021b21e078a20..70b86fc4f9d6f 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateEndpointConnectionsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateEndpointConnectionsListSamples.java @@ -10,7 +10,7 @@ public final class PrivateEndpointConnectionsListSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * PrivateEndpointConnectionsList.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateEndpointConnectionsUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateEndpointConnectionsUpdateSamples.java index 0bc240502ac3c..1c65964e411fc 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateEndpointConnectionsUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateEndpointConnectionsUpdateSamples.java @@ -14,7 +14,7 @@ public final class PrivateEndpointConnectionsUpdateSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * PrivateEndpointConnectionsUpdate.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateLinkResourcesListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateLinkResourcesListSamples.java index 66ea70e3275d8..f11bebc54c464 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateLinkResourcesListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateLinkResourcesListSamples.java @@ -10,7 +10,7 @@ public final class PrivateLinkResourcesListSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * PrivateLinkResourcesList.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ResolvePrivateLinkServiceIdPostSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ResolvePrivateLinkServiceIdPostSamples.java index 3ee9317559a2b..e0082224da82b 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ResolvePrivateLinkServiceIdPostSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ResolvePrivateLinkServiceIdPostSamples.java @@ -12,7 +12,7 @@ public final class ResolvePrivateLinkServiceIdPostSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * ResolvePrivateLinkServiceId.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsCreateOrUpdateSamples.java index 7bdaec3e795e8..76fe160b9a57a 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsCreateOrUpdateSamples.java @@ -15,7 +15,7 @@ public final class SnapshotsCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * SnapshotsCreate.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsDeleteSamples.java index 1cd4b3a3bc404..ddc08c7565a60 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsDeleteSamples.java @@ -10,7 +10,7 @@ public final class SnapshotsDeleteSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * SnapshotsDelete.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsGetByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsGetByResourceGroupSamples.java index f4aabc7a6d5e7..9f483827aba2c 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsGetByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsGetByResourceGroupSamples.java @@ -10,7 +10,7 @@ public final class SnapshotsGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * SnapshotsGet.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsListByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsListByResourceGroupSamples.java index dde5cc6c7dcd8..09ed427940b29 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsListByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsListByResourceGroupSamples.java @@ -10,7 +10,7 @@ public final class SnapshotsListByResourceGroupSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * SnapshotsListByResourceGroup.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsListSamples.java index 2e0b48d707868..cdf59b996f611 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsListSamples.java @@ -10,7 +10,7 @@ public final class SnapshotsListSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * SnapshotsList.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsUpdateTagsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsUpdateTagsSamples.java index 1ff1ddce00617..d921720f9c3f7 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsUpdateTagsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsUpdateTagsSamples.java @@ -14,7 +14,7 @@ public final class SnapshotsUpdateTagsSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * SnapshotsUpdateTags.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/TrustedAccessRoleBindingsCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/TrustedAccessRoleBindingsCreateOrUpdateSamples.java index f5d8b1d5d4c48..28718c552c78e 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/TrustedAccessRoleBindingsCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/TrustedAccessRoleBindingsCreateOrUpdateSamples.java @@ -13,7 +13,7 @@ public final class TrustedAccessRoleBindingsCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * TrustedAccessRoleBindings_CreateOrUpdate.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/TrustedAccessRoleBindingsDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/TrustedAccessRoleBindingsDeleteSamples.java index 21730e4167edc..2c2fb172453b8 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/TrustedAccessRoleBindingsDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/TrustedAccessRoleBindingsDeleteSamples.java @@ -10,7 +10,7 @@ public final class TrustedAccessRoleBindingsDeleteSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * TrustedAccessRoleBindings_Delete.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/TrustedAccessRoleBindingsGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/TrustedAccessRoleBindingsGetSamples.java index 1fc705dbca37b..2a241bf8d10ca 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/TrustedAccessRoleBindingsGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/TrustedAccessRoleBindingsGetSamples.java @@ -10,7 +10,7 @@ public final class TrustedAccessRoleBindingsGetSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * TrustedAccessRoleBindings_Get.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/TrustedAccessRoleBindingsListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/TrustedAccessRoleBindingsListSamples.java index fb44d85aaefda..fa9f4c246a675 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/TrustedAccessRoleBindingsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/TrustedAccessRoleBindingsListSamples.java @@ -10,7 +10,7 @@ public final class TrustedAccessRoleBindingsListSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * TrustedAccessRoleBindings_List.json */ /** diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/TrustedAccessRolesListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/TrustedAccessRolesListSamples.java index 6ee46c7bb2742..1b8b07d9ba9fb 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/TrustedAccessRolesListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/TrustedAccessRolesListSamples.java @@ -10,7 +10,7 @@ public final class TrustedAccessRolesListSamples { /* * x-ms-original-file: - * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ + * specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ * TrustedAccessRoles_List.json */ /**